@fragment-dev/cli 2026.11.2-5 → 2026.11.2-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/{chunk-MXOS5EPJ.js → chunk-2P5K2WKS.js} +2 -2
- package/dist/{chunk-GP4YLGE7.js → chunk-6H5VEWMH.js} +1 -1
- package/dist/{chunk-E4T4CP73.js → chunk-73S4B5JI.js} +2 -2
- package/dist/{chunk-GOGDDT4C.js → chunk-AZMONNLZ.js} +2 -2
- package/dist/{chunk-VCN774BB.js → chunk-CI336LA7.js} +1 -1
- package/dist/{chunk-QX3NXBLX.js → chunk-D3DRLQ25.js} +2 -2
- package/dist/{chunk-AKIEH2HZ.js → chunk-DOAFTVT3.js} +2 -2
- package/dist/{chunk-5LLCLJEG.js → chunk-EGNK4KUX.js} +2 -2
- package/dist/{chunk-G7IGOKUP.js → chunk-G3IDF3GN.js} +1 -1
- package/dist/{chunk-TEIKGRUQ.js → chunk-GAP2APZG.js} +2 -2
- package/dist/{chunk-4CPAGLCS.js → chunk-GGL4MWJU.js} +1 -1
- package/dist/{chunk-3KS5DNPN.js → chunk-H2L6NCTX.js} +1 -1
- package/dist/{chunk-TL3KRDAP.js → chunk-HJE45EFG.js} +1 -1
- package/dist/{chunk-LYGOFFXO.js → chunk-I7K26FQI.js} +2 -2
- package/dist/{chunk-ZVFEX5VD.js → chunk-IDHEMAJZ.js} +1 -1
- package/dist/{chunk-53VFUDCA.js → chunk-JOGYN7JJ.js} +27 -27
- package/dist/{chunk-MC6MXTZU.js → chunk-LW73ZWKG.js} +2 -2
- package/dist/{chunk-OVNMMP6Y.js → chunk-NCLNJVTI.js} +1 -1
- package/dist/{chunk-IL2ZGSAA.js → chunk-NNQUDAR7.js} +3 -3
- package/dist/{chunk-STXI7CMX.js → chunk-O2X42NNE.js} +2 -2
- package/dist/{chunk-EJUS5RSR.js → chunk-PYJHE57L.js} +2 -2
- package/dist/{chunk-VWXLO5QZ.js → chunk-R3TVGOYA.js} +1 -1
- package/dist/{chunk-DF3U6ZLT.js → chunk-S6EUZBEH.js} +1 -1
- package/dist/{chunk-O2UI66CW.js → chunk-SFAI567W.js} +2 -2
- package/dist/{chunk-XWCVZGAX.js → chunk-SLD5GAXB.js} +1 -1
- package/dist/{chunk-Z3BHNI23.js → chunk-SLY7YZB6.js} +1 -1
- package/dist/{chunk-N2SKO3MO.js → chunk-UELH643B.js} +1 -1
- package/dist/{chunk-MVAJNY4X.js → chunk-WABMYMTO.js} +2 -2
- package/dist/{chunk-UWK7ZUEI.js → chunk-XFADR3NA.js} +2 -2
- package/dist/{chunk-HOYPQHWF.js → chunk-XL7JNGCZ.js} +1 -1
- package/dist/{chunk-VPOARVKJ.js → chunk-ZYFQDN2K.js} +1639 -408
- package/dist/commands/add-ledger-entry.js +3 -3
- package/dist/commands/api-client/create.js +2 -2
- package/dist/commands/create-custom-link.js +3 -3
- package/dist/commands/create-ledger.js +3 -3
- package/dist/commands/delete-custom-txs.js +3 -3
- package/dist/commands/delete-ledger.js +3 -3
- package/dist/commands/delete-schema.js +3 -3
- package/dist/commands/gen-graphql.js +2 -2
- package/dist/commands/get-schema.js +4 -4
- package/dist/commands/init.js +2 -2
- package/dist/commands/login.js +3 -3
- package/dist/commands/migrate-ledger-entry.js +3 -3
- package/dist/commands/print-schema.js +2 -2
- package/dist/commands/query/ledgerAccounts.js +3 -3
- package/dist/commands/query/ledgers.js +3 -3
- package/dist/commands/query/schema.js +3 -3
- package/dist/commands/query/schemas.js +3 -3
- package/dist/commands/reverse-ledger-entry.js +3 -3
- package/dist/commands/simulate-scenario.js +2 -2
- package/dist/commands/start.js +2 -2
- package/dist/commands/store-schema.js +3 -3
- package/dist/commands/token.js +3 -3
- package/dist/commands/update-ledger-account.js +3 -3
- package/dist/commands/update.js +3 -3
- package/dist/commands/verify-schema.js +2 -2
- package/dist/commands/version.js +2 -2
- package/dist/commands/workspace.js +3 -3
- package/dist/commands.js +31 -31
- package/dist/index.js +31 -31
- package/dist/lib/authenticatedCommand.js +2 -2
- package/dist/lib/baseCommand.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -9797,7 +9797,7 @@ var require_commonjs2 = __commonJS({
|
|
|
9797
9797
|
"use strict";
|
|
9798
9798
|
init_cjs_shims();
|
|
9799
9799
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9800
|
-
exports.EXPANSION_MAX_LENGTH = exports.EXPANSION_MAX = void 0;
|
|
9800
|
+
exports.EXPANSION_MAX_REWRITES = exports.EXPANSION_MAX_DEPTH = exports.EXPANSION_MAX_LENGTH = exports.EXPANSION_MAX = void 0;
|
|
9801
9801
|
exports.expand = expand;
|
|
9802
9802
|
var balanced_match_1 = require_commonjs();
|
|
9803
9803
|
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
@@ -9817,6 +9817,8 @@ var require_commonjs2 = __commonJS({
|
|
|
9817
9817
|
var periodPattern = /\\\./g;
|
|
9818
9818
|
exports.EXPANSION_MAX = 1e5;
|
|
9819
9819
|
exports.EXPANSION_MAX_LENGTH = 4e6;
|
|
9820
|
+
exports.EXPANSION_MAX_DEPTH = 1e3;
|
|
9821
|
+
exports.EXPANSION_MAX_REWRITES = 1e3;
|
|
9820
9822
|
function numeric(str) {
|
|
9821
9823
|
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
9822
9824
|
}
|
|
@@ -9826,36 +9828,44 @@ var require_commonjs2 = __commonJS({
|
|
|
9826
9828
|
function unescapeBraces(str) {
|
|
9827
9829
|
return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
|
|
9828
9830
|
}
|
|
9829
|
-
function
|
|
9830
|
-
|
|
9831
|
-
|
|
9831
|
+
function pushAll(target, items) {
|
|
9832
|
+
for (let i = 0; i < items.length; i++) {
|
|
9833
|
+
target.push(items[i]);
|
|
9832
9834
|
}
|
|
9835
|
+
}
|
|
9836
|
+
function parseCommaParts(str) {
|
|
9833
9837
|
const parts = [];
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
;
|
|
9844
|
-
p
|
|
9845
|
-
p
|
|
9838
|
+
let carry = "";
|
|
9839
|
+
for (; ; ) {
|
|
9840
|
+
const m = (0, balanced_match_1.balanced)("{", "}", str);
|
|
9841
|
+
if (!m) {
|
|
9842
|
+
const tail = str.split(",");
|
|
9843
|
+
tail[0] = carry + tail[0];
|
|
9844
|
+
pushAll(parts, tail);
|
|
9845
|
+
return parts;
|
|
9846
|
+
}
|
|
9847
|
+
const { pre, body, post } = m;
|
|
9848
|
+
const p = pre.split(",");
|
|
9849
|
+
p[0] = carry + p[0];
|
|
9850
|
+
p[p.length - 1] += "{" + body + "}";
|
|
9851
|
+
if (!post.length) {
|
|
9852
|
+
pushAll(parts, p);
|
|
9853
|
+
return parts;
|
|
9854
|
+
}
|
|
9855
|
+
carry = p.pop();
|
|
9856
|
+
pushAll(parts, p);
|
|
9857
|
+
str = post;
|
|
9846
9858
|
}
|
|
9847
|
-
parts.push.apply(parts, p);
|
|
9848
|
-
return parts;
|
|
9849
9859
|
}
|
|
9850
9860
|
function expand(str, options = {}) {
|
|
9851
9861
|
if (!str) {
|
|
9852
9862
|
return [];
|
|
9853
9863
|
}
|
|
9854
|
-
const { max = exports.EXPANSION_MAX, maxLength = exports.EXPANSION_MAX_LENGTH } = options;
|
|
9864
|
+
const { max = exports.EXPANSION_MAX, maxLength = exports.EXPANSION_MAX_LENGTH, maxDepth = exports.EXPANSION_MAX_DEPTH, maxRewrites = exports.EXPANSION_MAX_REWRITES } = options;
|
|
9855
9865
|
if (str.slice(0, 2) === "{}") {
|
|
9856
9866
|
str = "\\{\\}" + str.slice(2);
|
|
9857
9867
|
}
|
|
9858
|
-
return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
|
|
9868
|
+
return expand_(escapeBraces(str), max, maxLength, maxDepth, 0, maxRewrites, true).map(unescapeBraces);
|
|
9859
9869
|
}
|
|
9860
9870
|
function embrace(str) {
|
|
9861
9871
|
return "{" + str + "}";
|
|
@@ -9933,8 +9943,12 @@ var require_commonjs2 = __commonJS({
|
|
|
9933
9943
|
}
|
|
9934
9944
|
return N;
|
|
9935
9945
|
}
|
|
9936
|
-
function expand_(str, max, maxLength, isTop) {
|
|
9946
|
+
function expand_(str, max, maxLength, maxDepth, depth, maxRewrites, isTop) {
|
|
9947
|
+
if (depth > maxDepth) {
|
|
9948
|
+
return [str];
|
|
9949
|
+
}
|
|
9937
9950
|
let acc = [""];
|
|
9951
|
+
let rewrites = 0;
|
|
9938
9952
|
let dropEmpties = false;
|
|
9939
9953
|
let firstGroup = true;
|
|
9940
9954
|
for (; ; ) {
|
|
@@ -9956,7 +9970,8 @@ var require_commonjs2 = __commonJS({
|
|
|
9956
9970
|
const isSequence = isNumericSequence || isAlphaSequence;
|
|
9957
9971
|
const isOptions = m.body.indexOf(",") >= 0;
|
|
9958
9972
|
if (!isSequence && !isOptions) {
|
|
9959
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
9973
|
+
if (rewrites < maxRewrites && m.post.match(/,(?!,).*\}/)) {
|
|
9974
|
+
rewrites++;
|
|
9960
9975
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
9961
9976
|
isTop = true;
|
|
9962
9977
|
continue;
|
|
@@ -9973,7 +9988,7 @@ var require_commonjs2 = __commonJS({
|
|
|
9973
9988
|
} else {
|
|
9974
9989
|
let n = parseCommaParts(m.body);
|
|
9975
9990
|
if (n.length === 1 && n[0] !== void 0) {
|
|
9976
|
-
n = expand_(n[0], max, maxLength, false).map(embrace);
|
|
9991
|
+
n = expand_(n[0], max, maxLength, maxDepth, depth + 1, maxRewrites, false).map(embrace);
|
|
9977
9992
|
if (n.length === 1) {
|
|
9978
9993
|
acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
|
|
9979
9994
|
if (!m.post.length)
|
|
@@ -9992,7 +10007,7 @@ var require_commonjs2 = __commonJS({
|
|
|
9992
10007
|
let valuesLength = 0;
|
|
9993
10008
|
outer:
|
|
9994
10009
|
for (let j = 0; j < n.length; j++) {
|
|
9995
|
-
const expanded = expand_(n[j], max, maxLength, false);
|
|
10010
|
+
const expanded = expand_(n[j], max, maxLength, maxDepth, depth + 1, maxRewrites, false);
|
|
9996
10011
|
for (let k = 0; k < expanded.length; k++) {
|
|
9997
10012
|
const v = expanded[k];
|
|
9998
10013
|
if (dropsEmpties && !v)
|
|
@@ -37664,8 +37679,14 @@ var require_follow_redirects = __commonJS({
|
|
|
37664
37679
|
RedirectableRequest.prototype._sanitizeOptions = function(options) {
|
|
37665
37680
|
if (!options.headers) {
|
|
37666
37681
|
options.headers = {};
|
|
37682
|
+
} else if (Array.isArray(options.headers)) {
|
|
37683
|
+
var headerList = options.headers;
|
|
37684
|
+
options.headers = {};
|
|
37685
|
+
for (var i = 0; i < headerList.length; i += 2) {
|
|
37686
|
+
options.headers[headerList[i]] = headerList[i + 1];
|
|
37687
|
+
}
|
|
37667
37688
|
}
|
|
37668
|
-
if (!isArray(options.sensitiveHeaders)) {
|
|
37689
|
+
if (!Array.isArray(options.sensitiveHeaders)) {
|
|
37669
37690
|
options.sensitiveHeaders = [];
|
|
37670
37691
|
}
|
|
37671
37692
|
if (options.host) {
|
|
@@ -37922,9 +37943,6 @@ var require_follow_redirects = __commonJS({
|
|
|
37922
37943
|
var dot = subdomain.length - domain.length - 1;
|
|
37923
37944
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
37924
37945
|
}
|
|
37925
|
-
function isArray(value) {
|
|
37926
|
-
return value instanceof Array;
|
|
37927
|
-
}
|
|
37928
37946
|
function isString(value) {
|
|
37929
37947
|
return typeof value === "string" || value instanceof String;
|
|
37930
37948
|
}
|
|
@@ -37938,7 +37956,7 @@ var require_follow_redirects = __commonJS({
|
|
|
37938
37956
|
return URL2 && value instanceof URL2;
|
|
37939
37957
|
}
|
|
37940
37958
|
function escapeRegex(regex) {
|
|
37941
|
-
return regex.replace(/[\]\\/()
|
|
37959
|
+
return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
|
|
37942
37960
|
}
|
|
37943
37961
|
module.exports = wrap({ http, https });
|
|
37944
37962
|
module.exports.wrap = wrap;
|
|
@@ -37981,22 +37999,82 @@ var require_axios = __commonJS({
|
|
|
37981
37999
|
var hasOwnProperty = (({
|
|
37982
38000
|
hasOwnProperty: hasOwnProperty2
|
|
37983
38001
|
}) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
38002
|
+
var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
|
|
38003
|
+
var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
|
|
38004
|
+
var isSafeAndFullyMutable = (obj) => {
|
|
38005
|
+
if (!Object.isExtensible(obj)) {
|
|
38006
|
+
return false;
|
|
38007
|
+
}
|
|
38008
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
38009
|
+
if (Object.getOwnPropertySymbols) {
|
|
38010
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
38011
|
+
}
|
|
38012
|
+
return props.every((prop) => {
|
|
38013
|
+
if (isUnsafeObjectKey(prop)) {
|
|
38014
|
+
return false;
|
|
38015
|
+
}
|
|
38016
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
38017
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
38018
|
+
});
|
|
38019
|
+
};
|
|
37984
38020
|
var hasOwnInPrototypeChain = (thing, prop) => {
|
|
37985
38021
|
let obj = thing;
|
|
37986
38022
|
const seen = [];
|
|
37987
|
-
while (obj != null
|
|
38023
|
+
while (obj != null) {
|
|
37988
38024
|
if (seen.indexOf(obj) !== -1) {
|
|
37989
38025
|
return false;
|
|
37990
38026
|
}
|
|
37991
38027
|
seen.push(obj);
|
|
38028
|
+
const prototype2 = getPrototypeOf(obj);
|
|
38029
|
+
if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
|
|
38030
|
+
return false;
|
|
38031
|
+
}
|
|
37992
38032
|
if (hasOwnProperty(obj, prop)) {
|
|
37993
38033
|
return true;
|
|
37994
38034
|
}
|
|
37995
|
-
obj =
|
|
38035
|
+
obj = prototype2;
|
|
37996
38036
|
}
|
|
37997
38037
|
return false;
|
|
37998
38038
|
};
|
|
37999
38039
|
var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
|
|
38040
|
+
var toSafeFlatObject = (thing) => {
|
|
38041
|
+
if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
|
|
38042
|
+
return thing;
|
|
38043
|
+
}
|
|
38044
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
38045
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
38046
|
+
return thing;
|
|
38047
|
+
}
|
|
38048
|
+
const result = /* @__PURE__ */ Object.create(null);
|
|
38049
|
+
const merged = /* @__PURE__ */ Object.create(null);
|
|
38050
|
+
const seen = [];
|
|
38051
|
+
let current = thing;
|
|
38052
|
+
while (current != null) {
|
|
38053
|
+
if (seen.indexOf(current) !== -1) {
|
|
38054
|
+
break;
|
|
38055
|
+
}
|
|
38056
|
+
seen.push(current);
|
|
38057
|
+
const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
38058
|
+
if (isPrototypeBoundary(current, prototype2, current === thing)) {
|
|
38059
|
+
break;
|
|
38060
|
+
}
|
|
38061
|
+
const props = Object.getOwnPropertyNames(current);
|
|
38062
|
+
if (Object.getOwnPropertySymbols) {
|
|
38063
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
38064
|
+
}
|
|
38065
|
+
for (const prop of props) {
|
|
38066
|
+
if (isUnsafeObjectKey(prop)) {
|
|
38067
|
+
continue;
|
|
38068
|
+
}
|
|
38069
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
38070
|
+
result[prop] = thing[prop];
|
|
38071
|
+
merged[prop] = true;
|
|
38072
|
+
}
|
|
38073
|
+
}
|
|
38074
|
+
current = prototype2;
|
|
38075
|
+
}
|
|
38076
|
+
return result;
|
|
38077
|
+
};
|
|
38000
38078
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
38001
38079
|
const str = toString.call(thing);
|
|
38002
38080
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -38033,10 +38111,16 @@ var require_axios = __commonJS({
|
|
|
38033
38111
|
return false;
|
|
38034
38112
|
}
|
|
38035
38113
|
const prototype2 = getPrototypeOf(val);
|
|
38036
|
-
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat
|
|
38037
|
-
//
|
|
38038
|
-
//
|
|
38039
|
-
|
|
38114
|
+
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat own Symbol.toStringTag or Symbol.iterator members as evidence the
|
|
38115
|
+
// value is tagged/iterable, ignoring members reachable only through shared
|
|
38116
|
+
// or terminal prototype boundaries. This is exactly what
|
|
38117
|
+
// hasOwnInPrototypeChain(val, prop) computes here: every prototype admitted
|
|
38118
|
+
// above (null, Object.prototype, or a terminal null-prototype template) is
|
|
38119
|
+
// a boundary, so the walk never inspects anything but `val`'s own members,
|
|
38120
|
+
// and stops before even those when `val` is itself the boundary
|
|
38121
|
+
// Object.prototype. Checking that inline avoids allocating the walker's
|
|
38122
|
+
// `seen` list twice per call on the mergeConfig / merge hot path.
|
|
38123
|
+
(isPrototypeBoundary(val, prototype2, true) || !hasOwnProperty(val, toStringTag) && !hasOwnProperty(val, iterator));
|
|
38040
38124
|
};
|
|
38041
38125
|
var isEmptyObject = (val) => {
|
|
38042
38126
|
if (!isObject(val) || isBuffer(val)) {
|
|
@@ -38056,6 +38140,7 @@ var require_axios = __commonJS({
|
|
|
38056
38140
|
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
38057
38141
|
var isBlob = kindOfTest("Blob");
|
|
38058
38142
|
var isFileList = kindOfTest("FileList");
|
|
38143
|
+
var isSet = kindOfTest("Set");
|
|
38059
38144
|
var isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
38060
38145
|
function getGlobal() {
|
|
38061
38146
|
if (typeof globalThis !== "undefined")
|
|
@@ -38145,11 +38230,21 @@ var require_axios = __commonJS({
|
|
|
38145
38230
|
skipUndefined
|
|
38146
38231
|
} = isContextDefined(this) && this || {};
|
|
38147
38232
|
const result = {};
|
|
38233
|
+
const lowerCaseKeys = caseless ? /* @__PURE__ */ Object.create(null) : null;
|
|
38148
38234
|
const assignValue = (val, key) => {
|
|
38149
38235
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
38150
38236
|
return;
|
|
38151
38237
|
}
|
|
38152
|
-
|
|
38238
|
+
let targetKey = key;
|
|
38239
|
+
if (lowerCaseKeys && typeof key === "string") {
|
|
38240
|
+
const lowerKey = key.toLowerCase();
|
|
38241
|
+
const knownKey = lowerCaseKeys[lowerKey];
|
|
38242
|
+
if (knownKey !== void 0 && hasOwnProperty(result, knownKey)) {
|
|
38243
|
+
targetKey = knownKey;
|
|
38244
|
+
} else {
|
|
38245
|
+
lowerCaseKeys[lowerKey] = key;
|
|
38246
|
+
}
|
|
38247
|
+
}
|
|
38153
38248
|
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
38154
38249
|
if (isPlainObject2(existing) && isPlainObject2(val)) {
|
|
38155
38250
|
result[targetKey] = merge(existing, val);
|
|
@@ -38167,7 +38262,7 @@ var require_axios = __commonJS({
|
|
|
38167
38262
|
continue;
|
|
38168
38263
|
}
|
|
38169
38264
|
forEach(source, assignValue);
|
|
38170
|
-
if (typeof source !== "object" || isArray(source)) {
|
|
38265
|
+
if (typeof source !== "object" || isArray(source) || !Object.getOwnPropertySymbols) {
|
|
38171
38266
|
continue;
|
|
38172
38267
|
}
|
|
38173
38268
|
const symbols = Object.getOwnPropertySymbols(source);
|
|
@@ -38266,7 +38361,27 @@ var require_axios = __commonJS({
|
|
|
38266
38361
|
if (isArray(thing))
|
|
38267
38362
|
return thing;
|
|
38268
38363
|
let i = thing.length;
|
|
38269
|
-
if (!
|
|
38364
|
+
if (!Number.isSafeInteger(i) || i < 0 || i > 4294967295)
|
|
38365
|
+
return null;
|
|
38366
|
+
const indexes = /* @__PURE__ */ new Set();
|
|
38367
|
+
const seen = /* @__PURE__ */ new Set();
|
|
38368
|
+
let source = thing;
|
|
38369
|
+
while (source != null && indexes.size < i) {
|
|
38370
|
+
if (seen.has(source))
|
|
38371
|
+
return null;
|
|
38372
|
+
seen.add(source);
|
|
38373
|
+
const prototype2 = getPrototypeOf(source);
|
|
38374
|
+
if (isPrototypeBoundary(source, prototype2, source === thing))
|
|
38375
|
+
break;
|
|
38376
|
+
Object.getOwnPropertyNames(source).forEach((key) => {
|
|
38377
|
+
const index = +key;
|
|
38378
|
+
if (Number.isInteger(index) && index >= 0 && index < i && String(index) === key && hasOwnProperty(source, key)) {
|
|
38379
|
+
indexes.add(index);
|
|
38380
|
+
}
|
|
38381
|
+
});
|
|
38382
|
+
source = prototype2;
|
|
38383
|
+
}
|
|
38384
|
+
if (indexes.size !== i)
|
|
38270
38385
|
return null;
|
|
38271
38386
|
const arr = new Array(i);
|
|
38272
38387
|
while (i-- > 0) {
|
|
@@ -38367,11 +38482,20 @@ var require_axios = __commonJS({
|
|
|
38367
38482
|
}
|
|
38368
38483
|
if (!("toJSON" in source)) {
|
|
38369
38484
|
visited.add(source);
|
|
38370
|
-
|
|
38371
|
-
|
|
38372
|
-
|
|
38373
|
-
|
|
38374
|
-
|
|
38485
|
+
let target;
|
|
38486
|
+
if (isSet(source)) {
|
|
38487
|
+
target = [];
|
|
38488
|
+
for (const value of source) {
|
|
38489
|
+
const reducedValue = visit(value);
|
|
38490
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
38491
|
+
}
|
|
38492
|
+
} else {
|
|
38493
|
+
target = isArray(source) ? [] : {};
|
|
38494
|
+
forEach(source, (value, key) => {
|
|
38495
|
+
const reducedValue = visit(value);
|
|
38496
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
38497
|
+
});
|
|
38498
|
+
}
|
|
38375
38499
|
visited.delete(source);
|
|
38376
38500
|
return target;
|
|
38377
38501
|
}
|
|
@@ -38451,6 +38575,7 @@ var require_axios = __commonJS({
|
|
|
38451
38575
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
38452
38576
|
hasOwnInPrototypeChain,
|
|
38453
38577
|
getSafeProp,
|
|
38578
|
+
toSafeFlatObject,
|
|
38454
38579
|
reduceDescriptors,
|
|
38455
38580
|
freezeMethods,
|
|
38456
38581
|
toObjectSet,
|
|
@@ -38471,7 +38596,7 @@ var require_axios = __commonJS({
|
|
|
38471
38596
|
};
|
|
38472
38597
|
var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
|
|
38473
38598
|
var parseHeaders = (rawHeaders) => {
|
|
38474
|
-
const parsed =
|
|
38599
|
+
const parsed = /* @__PURE__ */ Object.create(null);
|
|
38475
38600
|
let key;
|
|
38476
38601
|
let val;
|
|
38477
38602
|
let i;
|
|
@@ -38479,17 +38604,18 @@ var require_axios = __commonJS({
|
|
|
38479
38604
|
i = line.indexOf(":");
|
|
38480
38605
|
key = line.substring(0, i).trim().toLowerCase();
|
|
38481
38606
|
val = line.substring(i + 1).trim();
|
|
38482
|
-
|
|
38607
|
+
const hasKey = utils$1.hasOwnProp(parsed, key);
|
|
38608
|
+
if (!key || hasKey && utils$1.hasOwnProp(ignoreDuplicateOf, key)) {
|
|
38483
38609
|
return;
|
|
38484
38610
|
}
|
|
38485
38611
|
if (key === "set-cookie") {
|
|
38486
|
-
if (
|
|
38612
|
+
if (hasKey) {
|
|
38487
38613
|
parsed[key].push(val);
|
|
38488
38614
|
} else {
|
|
38489
38615
|
parsed[key] = [val];
|
|
38490
38616
|
}
|
|
38491
38617
|
} else {
|
|
38492
|
-
parsed[key] =
|
|
38618
|
+
parsed[key] = hasKey ? parsed[key] + ", " + val : val;
|
|
38493
38619
|
}
|
|
38494
38620
|
});
|
|
38495
38621
|
return parsed;
|
|
@@ -38530,7 +38656,7 @@ var require_axios = __commonJS({
|
|
|
38530
38656
|
});
|
|
38531
38657
|
return byteStringHeaders;
|
|
38532
38658
|
}
|
|
38533
|
-
var $internals = Symbol("internals");
|
|
38659
|
+
var $internals$1 = Symbol("internals");
|
|
38534
38660
|
function normalizeHeader(header) {
|
|
38535
38661
|
return header && String(header).trim().toLowerCase();
|
|
38536
38662
|
}
|
|
@@ -38549,10 +38675,96 @@ var require_axios = __commonJS({
|
|
|
38549
38675
|
}
|
|
38550
38676
|
return tokens;
|
|
38551
38677
|
}
|
|
38678
|
+
var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
38679
|
+
function trimOWS(value) {
|
|
38680
|
+
let start = 0;
|
|
38681
|
+
let end = value.length;
|
|
38682
|
+
while (start < end) {
|
|
38683
|
+
const code = value.charCodeAt(start);
|
|
38684
|
+
if (code !== 9 && code !== 32) {
|
|
38685
|
+
break;
|
|
38686
|
+
}
|
|
38687
|
+
start += 1;
|
|
38688
|
+
}
|
|
38689
|
+
while (end > start) {
|
|
38690
|
+
const code = value.charCodeAt(end - 1);
|
|
38691
|
+
if (code !== 9 && code !== 32) {
|
|
38692
|
+
break;
|
|
38693
|
+
}
|
|
38694
|
+
end -= 1;
|
|
38695
|
+
}
|
|
38696
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
38697
|
+
}
|
|
38698
|
+
function decodeQuotedString(value) {
|
|
38699
|
+
const last = value.length - 1;
|
|
38700
|
+
if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
|
|
38701
|
+
return value;
|
|
38702
|
+
}
|
|
38703
|
+
let decoded = "";
|
|
38704
|
+
for (let i = 1; i < last; i++) {
|
|
38705
|
+
const code = value.charCodeAt(i);
|
|
38706
|
+
if (code === 34) {
|
|
38707
|
+
return value;
|
|
38708
|
+
}
|
|
38709
|
+
if (code === 92) {
|
|
38710
|
+
i += 1;
|
|
38711
|
+
if (i >= last) {
|
|
38712
|
+
return value;
|
|
38713
|
+
}
|
|
38714
|
+
}
|
|
38715
|
+
decoded += value[i];
|
|
38716
|
+
}
|
|
38717
|
+
return decoded;
|
|
38718
|
+
}
|
|
38719
|
+
function parseParameters(value) {
|
|
38720
|
+
const parameters = /* @__PURE__ */ Object.create(null);
|
|
38721
|
+
const str = String(value);
|
|
38722
|
+
let start = 0;
|
|
38723
|
+
let quoted = false;
|
|
38724
|
+
let escaped = false;
|
|
38725
|
+
function parseParameter(end) {
|
|
38726
|
+
const part = trimOWS(str.slice(start, end));
|
|
38727
|
+
const equals = part.indexOf("=");
|
|
38728
|
+
if (equals < 1) {
|
|
38729
|
+
return;
|
|
38730
|
+
}
|
|
38731
|
+
const name = trimOWS(part.slice(0, equals));
|
|
38732
|
+
if (!parameterNameRE.test(name)) {
|
|
38733
|
+
return;
|
|
38734
|
+
}
|
|
38735
|
+
const normalizedName = name.toLowerCase();
|
|
38736
|
+
if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
|
|
38737
|
+
return;
|
|
38738
|
+
}
|
|
38739
|
+
const parameterValue = trimOWS(part.slice(equals + 1));
|
|
38740
|
+
parameters[normalizedName] = decodeQuotedString(parameterValue);
|
|
38741
|
+
}
|
|
38742
|
+
for (let i = 0; i < str.length; i++) {
|
|
38743
|
+
const code = str.charCodeAt(i);
|
|
38744
|
+
if (quoted) {
|
|
38745
|
+
if (escaped) {
|
|
38746
|
+
escaped = false;
|
|
38747
|
+
} else if (code === 92) {
|
|
38748
|
+
escaped = true;
|
|
38749
|
+
} else if (code === 34) {
|
|
38750
|
+
quoted = false;
|
|
38751
|
+
}
|
|
38752
|
+
} else if (code === 34) {
|
|
38753
|
+
quoted = true;
|
|
38754
|
+
} else if (code === 44 || code === 59) {
|
|
38755
|
+
parseParameter(i);
|
|
38756
|
+
start = i + 1;
|
|
38757
|
+
}
|
|
38758
|
+
}
|
|
38759
|
+
parseParameter(str.length);
|
|
38760
|
+
return parameters;
|
|
38761
|
+
}
|
|
38552
38762
|
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
38763
|
+
var PROTO_HEADER_SLOT = "__Proto__";
|
|
38764
|
+
var headerSlot = (name) => name === "__proto__" ? PROTO_HEADER_SLOT : name;
|
|
38553
38765
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
38554
38766
|
if (utils$1.isFunction(filter)) {
|
|
38555
|
-
return filter.call(
|
|
38767
|
+
return filter.call(context, value, header);
|
|
38556
38768
|
}
|
|
38557
38769
|
if (isHeaderNameFilter) {
|
|
38558
38770
|
value = header;
|
|
@@ -38598,7 +38810,7 @@ var require_axios = __commonJS({
|
|
|
38598
38810
|
}
|
|
38599
38811
|
const key = utils$1.findKey(self2, lHeader);
|
|
38600
38812
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
38601
|
-
self2[key || _header] = normalizeValue(_value);
|
|
38813
|
+
self2[headerSlot(key || _header)] = normalizeValue(_value);
|
|
38602
38814
|
}
|
|
38603
38815
|
}
|
|
38604
38816
|
const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
@@ -38691,7 +38903,7 @@ var require_axios = __commonJS({
|
|
|
38691
38903
|
}
|
|
38692
38904
|
normalize(format) {
|
|
38693
38905
|
const self2 = this;
|
|
38694
|
-
const headers =
|
|
38906
|
+
const headers = /* @__PURE__ */ Object.create(null);
|
|
38695
38907
|
utils$1.forEach(this, (value, header) => {
|
|
38696
38908
|
const key = utils$1.findKey(headers, header);
|
|
38697
38909
|
if (key) {
|
|
@@ -38699,7 +38911,7 @@ var require_axios = __commonJS({
|
|
|
38699
38911
|
delete self2[header];
|
|
38700
38912
|
return;
|
|
38701
38913
|
}
|
|
38702
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
38914
|
+
const normalized = headerSlot(format ? formatHeader(header) : String(header).trim());
|
|
38703
38915
|
if (normalized !== header) {
|
|
38704
38916
|
delete self2[header];
|
|
38705
38917
|
}
|
|
@@ -38725,7 +38937,8 @@ var require_axios = __commonJS({
|
|
|
38725
38937
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
38726
38938
|
}
|
|
38727
38939
|
getSetCookie() {
|
|
38728
|
-
|
|
38940
|
+
const value = this.get("set-cookie");
|
|
38941
|
+
return utils$1.isArray(value) ? value : value == null || value === false ? [] : [value];
|
|
38729
38942
|
}
|
|
38730
38943
|
get [Symbol.toStringTag]() {
|
|
38731
38944
|
return "AxiosHeaders";
|
|
@@ -38733,13 +38946,16 @@ var require_axios = __commonJS({
|
|
|
38733
38946
|
static from(thing) {
|
|
38734
38947
|
return thing instanceof this ? thing : new this(thing);
|
|
38735
38948
|
}
|
|
38949
|
+
static parseParameters(value) {
|
|
38950
|
+
return parseParameters(value);
|
|
38951
|
+
}
|
|
38736
38952
|
static concat(first, ...targets) {
|
|
38737
38953
|
const computed = new this(first);
|
|
38738
38954
|
targets.forEach((target) => computed.set(target));
|
|
38739
38955
|
return computed;
|
|
38740
38956
|
}
|
|
38741
38957
|
static accessor(header) {
|
|
38742
|
-
const internals = this[$internals] = this[$internals] = {
|
|
38958
|
+
const internals = this[$internals$1] = this[$internals$1] = {
|
|
38743
38959
|
accessors: {}
|
|
38744
38960
|
};
|
|
38745
38961
|
const accessors = internals.accessors;
|
|
@@ -38823,9 +39039,55 @@ var require_axios = __commonJS({
|
|
|
38823
39039
|
};
|
|
38824
39040
|
return visit(config);
|
|
38825
39041
|
}
|
|
39042
|
+
function stringifySafely$1(value) {
|
|
39043
|
+
try {
|
|
39044
|
+
return String(value);
|
|
39045
|
+
} catch (err) {
|
|
39046
|
+
return "";
|
|
39047
|
+
}
|
|
39048
|
+
}
|
|
39049
|
+
function aggregateErrorMessage(error) {
|
|
39050
|
+
const message = error.errors.map((entry) => {
|
|
39051
|
+
try {
|
|
39052
|
+
return entry && entry.message ? stringifySafely$1(entry.message) : stringifySafely$1(entry);
|
|
39053
|
+
} catch (err) {
|
|
39054
|
+
return "";
|
|
39055
|
+
}
|
|
39056
|
+
}).filter(Boolean).join("; ");
|
|
39057
|
+
return message || error.name || "AggregateError";
|
|
39058
|
+
}
|
|
39059
|
+
var CAUSED_BY_SEPARATOR = "\nCaused by: ";
|
|
39060
|
+
var $causeStack = Symbol("causeStack");
|
|
39061
|
+
function getCauseStackIndex(error, stack) {
|
|
39062
|
+
const causeStack = utils$1.hasOwnProp(error, $causeStack) && error[$causeStack];
|
|
39063
|
+
return causeStack && stack.endsWith(causeStack) ? stack.length - causeStack.length : -1;
|
|
39064
|
+
}
|
|
39065
|
+
function appendCauseStack(target, source) {
|
|
39066
|
+
try {
|
|
39067
|
+
const sourceStack = source && source.stack;
|
|
39068
|
+
if (typeof sourceStack !== "string" || !sourceStack) {
|
|
39069
|
+
return;
|
|
39070
|
+
}
|
|
39071
|
+
const targetStack = target.stack;
|
|
39072
|
+
if (typeof targetStack !== "string" || !targetStack) {
|
|
39073
|
+
return;
|
|
39074
|
+
}
|
|
39075
|
+
const causeStack = CAUSED_BY_SEPARATOR + sourceStack;
|
|
39076
|
+
target.stack = targetStack + causeStack;
|
|
39077
|
+
Object.defineProperty(target, $causeStack, {
|
|
39078
|
+
__proto__: null,
|
|
39079
|
+
value: causeStack
|
|
39080
|
+
});
|
|
39081
|
+
} catch (e) {
|
|
39082
|
+
}
|
|
39083
|
+
}
|
|
38826
39084
|
var AxiosError = class _AxiosError extends Error {
|
|
38827
39085
|
static from(error, code, config, request, response, customProps) {
|
|
38828
|
-
|
|
39086
|
+
let message = error.message;
|
|
39087
|
+
if (!message && utils$1.isArray(error.errors) && error.errors.length) {
|
|
39088
|
+
message = aggregateErrorMessage(error);
|
|
39089
|
+
}
|
|
39090
|
+
const axiosError = new _AxiosError(message, code || error.code, config, request, response);
|
|
38829
39091
|
Object.defineProperty(axiosError, "cause", {
|
|
38830
39092
|
__proto__: null,
|
|
38831
39093
|
value: error,
|
|
@@ -38834,6 +39096,7 @@ var require_axios = __commonJS({
|
|
|
38834
39096
|
configurable: true
|
|
38835
39097
|
});
|
|
38836
39098
|
axiosError.name = error.name;
|
|
39099
|
+
appendCauseStack(axiosError, error);
|
|
38837
39100
|
if (error.status != null && axiosError.status == null) {
|
|
38838
39101
|
axiosError.status = error.status;
|
|
38839
39102
|
}
|
|
@@ -38909,6 +39172,14 @@ var require_axios = __commonJS({
|
|
|
38909
39172
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
38910
39173
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
38911
39174
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
39175
|
+
var PlatformBuffer = {
|
|
39176
|
+
isBufferAvailable() {
|
|
39177
|
+
return typeof Buffer !== "undefined";
|
|
39178
|
+
},
|
|
39179
|
+
from(value) {
|
|
39180
|
+
return Buffer.from(value);
|
|
39181
|
+
}
|
|
39182
|
+
};
|
|
38912
39183
|
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
38913
39184
|
function isVisitable(thing) {
|
|
38914
39185
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
@@ -38935,19 +39206,16 @@ var require_axios = __commonJS({
|
|
|
38935
39206
|
throw new TypeError("target must be an object");
|
|
38936
39207
|
}
|
|
38937
39208
|
formData = formData || new (FormData$1 || FormData)();
|
|
38938
|
-
|
|
38939
|
-
|
|
38940
|
-
|
|
38941
|
-
|
|
38942
|
-
|
|
38943
|
-
|
|
38944
|
-
|
|
38945
|
-
const
|
|
38946
|
-
const
|
|
38947
|
-
const
|
|
38948
|
-
const indexes = options.indexes;
|
|
38949
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
38950
|
-
const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
|
|
39209
|
+
const option = (name, fallback) => {
|
|
39210
|
+
const value = utils$1.getSafeProp(options, name);
|
|
39211
|
+
return utils$1.isUndefined(value) ? fallback : value;
|
|
39212
|
+
};
|
|
39213
|
+
const metaTokens = option("metaTokens", true);
|
|
39214
|
+
const visitor = option("visitor") || defaultVisitor;
|
|
39215
|
+
const dots = option("dots", false);
|
|
39216
|
+
const indexes = option("indexes", false);
|
|
39217
|
+
const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
|
|
39218
|
+
const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
38951
39219
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
38952
39220
|
const stack = [];
|
|
38953
39221
|
if (!utils$1.isFunction(visitor)) {
|
|
@@ -38969,8 +39237,8 @@ var require_axios = __commonJS({
|
|
|
38969
39237
|
if (useBlob && typeof _Blob === "function") {
|
|
38970
39238
|
return new _Blob([value]);
|
|
38971
39239
|
}
|
|
38972
|
-
if (
|
|
38973
|
-
return
|
|
39240
|
+
if (PlatformBuffer && PlatformBuffer.isBufferAvailable()) {
|
|
39241
|
+
return PlatformBuffer.from(value);
|
|
38974
39242
|
}
|
|
38975
39243
|
throw new AxiosError("Blob is not supported. Use a Buffer instead.", AxiosError.ERR_NOT_SUPPORT);
|
|
38976
39244
|
}
|
|
@@ -39108,9 +39376,53 @@ var require_axios = __commonJS({
|
|
|
39108
39376
|
}
|
|
39109
39377
|
return url2;
|
|
39110
39378
|
}
|
|
39379
|
+
var $internals = Symbol("internals");
|
|
39380
|
+
function countHandlers(handlers) {
|
|
39381
|
+
return handlers ? handlers.length : 0;
|
|
39382
|
+
}
|
|
39383
|
+
function trimHandlers(handlers) {
|
|
39384
|
+
if (!handlers) {
|
|
39385
|
+
return;
|
|
39386
|
+
}
|
|
39387
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
39388
|
+
handlers.pop();
|
|
39389
|
+
}
|
|
39390
|
+
}
|
|
39391
|
+
function normalizeHandlerId(id) {
|
|
39392
|
+
if (typeof id === "string" && id !== "" && String(Number(id)) === id) {
|
|
39393
|
+
return Number(id);
|
|
39394
|
+
}
|
|
39395
|
+
return id;
|
|
39396
|
+
}
|
|
39397
|
+
function syncHandlerEntries(manager, internals) {
|
|
39398
|
+
const handlers = manager.handlers;
|
|
39399
|
+
const length = countHandlers(handlers);
|
|
39400
|
+
if (handlers !== internals.handlersRef) {
|
|
39401
|
+
internals.handlersRef = handlers;
|
|
39402
|
+
internals.handlerEntries.clear();
|
|
39403
|
+
} else if (length !== internals.handlersLength) {
|
|
39404
|
+
if (!length) {
|
|
39405
|
+
internals.handlerEntries.clear();
|
|
39406
|
+
} else {
|
|
39407
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
39408
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
39409
|
+
internals.handlerEntries.delete(id);
|
|
39410
|
+
}
|
|
39411
|
+
});
|
|
39412
|
+
}
|
|
39413
|
+
}
|
|
39414
|
+
internals.handlersLength = length;
|
|
39415
|
+
}
|
|
39111
39416
|
var InterceptorManager = class {
|
|
39112
39417
|
constructor() {
|
|
39113
39418
|
this.handlers = [];
|
|
39419
|
+
this[$internals] = {
|
|
39420
|
+
handlersRef: this.handlers,
|
|
39421
|
+
handlersLength: this.handlers.length,
|
|
39422
|
+
handlerEntries: /* @__PURE__ */ new Map(),
|
|
39423
|
+
iterationDepth: 0,
|
|
39424
|
+
nextId: 0
|
|
39425
|
+
};
|
|
39114
39426
|
}
|
|
39115
39427
|
/**
|
|
39116
39428
|
* Add a new interceptor to the stack
|
|
@@ -39122,13 +39434,25 @@ var require_axios = __commonJS({
|
|
|
39122
39434
|
* @return {Number} An ID used to remove interceptor later
|
|
39123
39435
|
*/
|
|
39124
39436
|
use(fulfilled, rejected, options) {
|
|
39125
|
-
|
|
39437
|
+
const handler = {
|
|
39126
39438
|
fulfilled,
|
|
39127
39439
|
rejected,
|
|
39128
39440
|
synchronous: options ? options.synchronous : false,
|
|
39129
39441
|
runWhen: options ? options.runWhen : null
|
|
39442
|
+
};
|
|
39443
|
+
const internals = this[$internals];
|
|
39444
|
+
if (this.handlers == null) {
|
|
39445
|
+
this.handlers = [];
|
|
39446
|
+
}
|
|
39447
|
+
syncHandlerEntries(this, internals);
|
|
39448
|
+
const id = internals.nextId++;
|
|
39449
|
+
this.handlers.push(handler);
|
|
39450
|
+
internals.handlerEntries.set(id, {
|
|
39451
|
+
handler,
|
|
39452
|
+
index: this.handlers.length - 1
|
|
39130
39453
|
});
|
|
39131
|
-
|
|
39454
|
+
internals.handlersLength = this.handlers.length;
|
|
39455
|
+
return id;
|
|
39132
39456
|
}
|
|
39133
39457
|
/**
|
|
39134
39458
|
* Remove an interceptor from the stack
|
|
@@ -39138,8 +39462,20 @@ var require_axios = __commonJS({
|
|
|
39138
39462
|
* @returns {void}
|
|
39139
39463
|
*/
|
|
39140
39464
|
eject(id) {
|
|
39141
|
-
|
|
39142
|
-
|
|
39465
|
+
const internals = this[$internals];
|
|
39466
|
+
syncHandlerEntries(this, internals);
|
|
39467
|
+
const handlerId = normalizeHandlerId(id);
|
|
39468
|
+
const entry = internals.handlerEntries.get(handlerId);
|
|
39469
|
+
if (entry) {
|
|
39470
|
+
internals.handlerEntries.delete(handlerId);
|
|
39471
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
39472
|
+
return;
|
|
39473
|
+
}
|
|
39474
|
+
this.handlers[entry.index] = null;
|
|
39475
|
+
if (!internals.iterationDepth) {
|
|
39476
|
+
trimHandlers(this.handlers);
|
|
39477
|
+
internals.handlersLength = this.handlers.length;
|
|
39478
|
+
}
|
|
39143
39479
|
}
|
|
39144
39480
|
}
|
|
39145
39481
|
/**
|
|
@@ -39150,6 +39486,7 @@ var require_axios = __commonJS({
|
|
|
39150
39486
|
clear() {
|
|
39151
39487
|
if (this.handlers) {
|
|
39152
39488
|
this.handlers = [];
|
|
39489
|
+
syncHandlerEntries(this, this[$internals]);
|
|
39153
39490
|
}
|
|
39154
39491
|
}
|
|
39155
39492
|
/**
|
|
@@ -39163,11 +39500,22 @@ var require_axios = __commonJS({
|
|
|
39163
39500
|
* @returns {void}
|
|
39164
39501
|
*/
|
|
39165
39502
|
forEach(fn) {
|
|
39166
|
-
|
|
39167
|
-
|
|
39168
|
-
|
|
39503
|
+
const internals = this[$internals];
|
|
39504
|
+
syncHandlerEntries(this, internals);
|
|
39505
|
+
internals.iterationDepth++;
|
|
39506
|
+
try {
|
|
39507
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
39508
|
+
if (h !== null) {
|
|
39509
|
+
fn(h);
|
|
39510
|
+
}
|
|
39511
|
+
});
|
|
39512
|
+
} finally {
|
|
39513
|
+
if (!--internals.iterationDepth) {
|
|
39514
|
+
syncHandlerEntries(this, internals);
|
|
39515
|
+
trimHandlers(this.handlers);
|
|
39516
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
39169
39517
|
}
|
|
39170
|
-
}
|
|
39518
|
+
}
|
|
39171
39519
|
}
|
|
39172
39520
|
};
|
|
39173
39521
|
var transitionalDefaults = {
|
|
@@ -39176,7 +39524,8 @@ var require_axios = __commonJS({
|
|
|
39176
39524
|
clarifyTimeoutError: false,
|
|
39177
39525
|
legacyInterceptorReqResOrdering: true,
|
|
39178
39526
|
advertiseZstdAcceptEncoding: false,
|
|
39179
|
-
validateStatusUndefinedResolves: true
|
|
39527
|
+
validateStatusUndefinedResolves: true,
|
|
39528
|
+
encodeBasicAuthUsername: false
|
|
39180
39529
|
};
|
|
39181
39530
|
var URLSearchParams = url.URLSearchParams;
|
|
39182
39531
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
@@ -39249,7 +39598,7 @@ var require_axios = __commonJS({
|
|
|
39249
39598
|
}
|
|
39250
39599
|
function parsePropPath(name) {
|
|
39251
39600
|
const path2 = [];
|
|
39252
|
-
const pattern =
|
|
39601
|
+
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
39253
39602
|
let match;
|
|
39254
39603
|
while ((match = pattern.exec(name)) !== null) {
|
|
39255
39604
|
throwIfDepthExceeded(path2.length);
|
|
@@ -39269,6 +39618,25 @@ var require_axios = __commonJS({
|
|
|
39269
39618
|
}
|
|
39270
39619
|
return obj;
|
|
39271
39620
|
}
|
|
39621
|
+
function normalizeArray(value) {
|
|
39622
|
+
if (!utils$1.isArray(value))
|
|
39623
|
+
return value;
|
|
39624
|
+
const keys = Object.keys(value);
|
|
39625
|
+
return keys.length !== value.length || keys.some((key, index) => key !== String(index)) ? arrayToObject(value) : value;
|
|
39626
|
+
}
|
|
39627
|
+
function normalizeArrays(obj) {
|
|
39628
|
+
const pending = [obj];
|
|
39629
|
+
while (pending.length) {
|
|
39630
|
+
const target = pending.pop();
|
|
39631
|
+
Object.keys(target).forEach((key) => {
|
|
39632
|
+
const value = target[key] = normalizeArray(target[key]);
|
|
39633
|
+
if (utils$1.isArray(value) || utils$1.isPlainObject(value)) {
|
|
39634
|
+
pending.push(value);
|
|
39635
|
+
}
|
|
39636
|
+
});
|
|
39637
|
+
}
|
|
39638
|
+
return obj;
|
|
39639
|
+
}
|
|
39272
39640
|
function formDataToJSON(formData) {
|
|
39273
39641
|
function buildPath(path2, value, target, index) {
|
|
39274
39642
|
throwIfDepthExceeded(index);
|
|
@@ -39280,6 +39648,7 @@ var require_axios = __commonJS({
|
|
|
39280
39648
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
39281
39649
|
if (isLast) {
|
|
39282
39650
|
if (utils$1.hasOwnProp(target, name)) {
|
|
39651
|
+
target[name] = normalizeArray(target[name]);
|
|
39283
39652
|
target[name] = utils$1.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
39284
39653
|
} else {
|
|
39285
39654
|
target[name] = value;
|
|
@@ -39300,10 +39669,11 @@ var require_axios = __commonJS({
|
|
|
39300
39669
|
utils$1.forEachEntry(formData, (name, value) => {
|
|
39301
39670
|
buildPath(parsePropPath(name), value, obj, 0);
|
|
39302
39671
|
});
|
|
39303
|
-
return obj;
|
|
39672
|
+
return normalizeArrays(obj);
|
|
39304
39673
|
}
|
|
39305
39674
|
return null;
|
|
39306
39675
|
}
|
|
39676
|
+
var methodList = Object.freeze(["get", "delete", "head", "options", "post", "put", "patch", "purge", "link", "unlink", "query"]);
|
|
39307
39677
|
var own = (obj, key) => obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
39308
39678
|
function stringifySafely(rawValue, parser, encoder) {
|
|
39309
39679
|
if (utils$1.isString(rawValue)) {
|
|
@@ -39409,7 +39779,7 @@ var require_axios = __commonJS({
|
|
|
39409
39779
|
}
|
|
39410
39780
|
}
|
|
39411
39781
|
};
|
|
39412
|
-
utils$1.forEach(
|
|
39782
|
+
utils$1.forEach(methodList, (method) => {
|
|
39413
39783
|
defaults.headers[method] = {};
|
|
39414
39784
|
});
|
|
39415
39785
|
function transformData(fns, response) {
|
|
@@ -39457,23 +39827,51 @@ var require_axios = __commonJS({
|
|
|
39457
39827
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
39458
39828
|
}
|
|
39459
39829
|
function combineURLs(baseURL, relativeURL) {
|
|
39460
|
-
|
|
39830
|
+
if (!relativeURL) {
|
|
39831
|
+
return baseURL;
|
|
39832
|
+
}
|
|
39833
|
+
let end = baseURL.length;
|
|
39834
|
+
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
|
|
39835
|
+
end--;
|
|
39836
|
+
}
|
|
39837
|
+
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
39838
|
+
}
|
|
39839
|
+
var urlParserControlCharacters = /[\t\n\r]/g;
|
|
39840
|
+
function normalizeURLForProtocolCheck(url2) {
|
|
39841
|
+
if (typeof url2 !== "string") {
|
|
39842
|
+
return url2;
|
|
39843
|
+
}
|
|
39844
|
+
let start = 0;
|
|
39845
|
+
while (start < url2.length && url2.charCodeAt(start) <= 32) {
|
|
39846
|
+
start++;
|
|
39847
|
+
}
|
|
39848
|
+
return url2.slice(start).replace(urlParserControlCharacters, "");
|
|
39461
39849
|
}
|
|
39462
39850
|
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
39463
|
-
|
|
39464
|
-
|
|
39465
|
-
|
|
39466
|
-
while (i < url2.length && url2.charCodeAt(i) <= 32) {
|
|
39467
|
-
i++;
|
|
39851
|
+
function redactFragment(fragment) {
|
|
39852
|
+
if (!fragment) {
|
|
39853
|
+
return fragment;
|
|
39468
39854
|
}
|
|
39469
|
-
return
|
|
39855
|
+
return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
|
|
39856
|
+
return `${separator}${parameterName}${REDACTED}`;
|
|
39857
|
+
});
|
|
39470
39858
|
}
|
|
39471
|
-
function
|
|
39472
|
-
|
|
39859
|
+
function redactSensitiveURLParts(url2) {
|
|
39860
|
+
const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
|
|
39861
|
+
const fragmentIndex = redactedURL.indexOf("#");
|
|
39862
|
+
const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
|
|
39863
|
+
const redactedURLWithoutFragment = urlWithoutFragment.replace(/([?&][^=&#]*=)[^&#]*/g, `$1${REDACTED}`);
|
|
39864
|
+
if (fragmentIndex === -1) {
|
|
39865
|
+
return redactedURLWithoutFragment;
|
|
39866
|
+
}
|
|
39867
|
+
return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
|
|
39473
39868
|
}
|
|
39474
39869
|
function assertValidHttpProtocolURL(url2, config) {
|
|
39475
|
-
if (typeof url2 === "string"
|
|
39476
|
-
|
|
39870
|
+
if (typeof url2 === "string") {
|
|
39871
|
+
const normalizedURL = normalizeURLForProtocolCheck(url2);
|
|
39872
|
+
if (malformedHttpProtocol.test(normalizedURL)) {
|
|
39873
|
+
throw new AxiosError(`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`, AxiosError.ERR_INVALID_URL, config);
|
|
39874
|
+
}
|
|
39477
39875
|
}
|
|
39478
39876
|
}
|
|
39479
39877
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
@@ -39550,12 +39948,12 @@ var require_axios = __commonJS({
|
|
|
39550
39948
|
function getEnv(key) {
|
|
39551
39949
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
39552
39950
|
}
|
|
39553
|
-
var VERSION = "1.
|
|
39951
|
+
var VERSION = "1.21.0";
|
|
39554
39952
|
function parseProtocol(url2) {
|
|
39555
39953
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
39556
|
-
return match && match[1] || "";
|
|
39954
|
+
return match && match[1].toLowerCase() || "";
|
|
39557
39955
|
}
|
|
39558
|
-
var DATA_URL_PATTERN = /^([
|
|
39956
|
+
var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/i;
|
|
39559
39957
|
function fromDataURI(uri, asBlob, options) {
|
|
39560
39958
|
const _Blob = options && options.Blob || platform.classes.Blob;
|
|
39561
39959
|
const protocol = parseProtocol(uri);
|
|
@@ -39578,7 +39976,7 @@ var require_axios = __commonJS({
|
|
|
39578
39976
|
} else if (params) {
|
|
39579
39977
|
mime = "text/plain" + params;
|
|
39580
39978
|
}
|
|
39581
|
-
const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
|
|
39979
|
+
const buffer = encoding === "base64" ? Buffer.from(body.replace(/%([\da-f]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))), "base64") : Buffer.from(decodeURIComponent(body), encoding);
|
|
39582
39980
|
if (asBlob) {
|
|
39583
39981
|
if (!_Blob) {
|
|
39584
39982
|
throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
@@ -39591,6 +39989,18 @@ var require_axios = __commonJS({
|
|
|
39591
39989
|
}
|
|
39592
39990
|
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
39593
39991
|
}
|
|
39992
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
39993
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
39994
|
+
if (policy !== "content-only") {
|
|
39995
|
+
headers.set(formHeaders);
|
|
39996
|
+
return;
|
|
39997
|
+
}
|
|
39998
|
+
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
39999
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
40000
|
+
headers.set(key, val);
|
|
40001
|
+
}
|
|
40002
|
+
});
|
|
40003
|
+
}
|
|
39594
40004
|
var kInternals = Symbol("internals");
|
|
39595
40005
|
var AxiosTransformStream = class extends stream.Transform {
|
|
39596
40006
|
constructor(options) {
|
|
@@ -39641,7 +40051,10 @@ var require_axios = __commonJS({
|
|
|
39641
40051
|
const timeWindow = internals.timeWindow;
|
|
39642
40052
|
const divider = 1e3 / timeWindow;
|
|
39643
40053
|
const bytesThreshold = maxRate / divider;
|
|
39644
|
-
|
|
40054
|
+
let minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
40055
|
+
if (maxRate) {
|
|
40056
|
+
minChunkSize = Math.min(bytesThreshold, minChunkSize);
|
|
40057
|
+
}
|
|
39645
40058
|
const pushChunk = (_chunk, _callback) => {
|
|
39646
40059
|
const bytes = Buffer.byteLength(_chunk);
|
|
39647
40060
|
internals.bytesSeen += bytes;
|
|
@@ -39657,6 +40070,9 @@ var require_axios = __commonJS({
|
|
|
39657
40070
|
}
|
|
39658
40071
|
};
|
|
39659
40072
|
const transformChunk = (_chunk, _callback) => {
|
|
40073
|
+
if (this.destroyed) {
|
|
40074
|
+
return _callback();
|
|
40075
|
+
}
|
|
39660
40076
|
const chunkSize = Buffer.byteLength(_chunk);
|
|
39661
40077
|
let chunkRemainder = null;
|
|
39662
40078
|
let maxChunkSize = readableHighWaterMark;
|
|
@@ -39679,7 +40095,7 @@ var require_axios = __commonJS({
|
|
|
39679
40095
|
}, timeWindow - passed);
|
|
39680
40096
|
}
|
|
39681
40097
|
if (bytesLeft < maxChunkSize) {
|
|
39682
|
-
maxChunkSize = bytesLeft;
|
|
40098
|
+
maxChunkSize = Math.max(1, Math.floor(bytesLeft));
|
|
39683
40099
|
}
|
|
39684
40100
|
}
|
|
39685
40101
|
if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {
|
|
@@ -39718,23 +40134,23 @@ var require_axios = __commonJS({
|
|
|
39718
40134
|
};
|
|
39719
40135
|
var BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + "-_";
|
|
39720
40136
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
39721
|
-
var CRLF = "\r\n";
|
|
39722
|
-
var CRLF_BYTES = textEncoder.encode(CRLF);
|
|
40137
|
+
var CRLF$1 = "\r\n";
|
|
40138
|
+
var CRLF_BYTES = textEncoder.encode(CRLF$1);
|
|
39723
40139
|
var CRLF_BYTES_COUNT = 2;
|
|
39724
40140
|
var FormDataPart = class {
|
|
39725
40141
|
constructor(name, value) {
|
|
39726
40142
|
const {
|
|
39727
|
-
escapeName
|
|
40143
|
+
escapeName: escapeName2
|
|
39728
40144
|
} = this.constructor;
|
|
39729
40145
|
const isStringValue = utils$1.isString(value);
|
|
39730
|
-
let headers = `Content-Disposition: form-data; name="${
|
|
40146
|
+
let headers = `Content-Disposition: form-data; name="${escapeName2(name)}"${!isStringValue && value.name ? `; filename="${escapeName2(value.name)}"` : ""}${CRLF$1}`;
|
|
39731
40147
|
if (isStringValue) {
|
|
39732
|
-
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
40148
|
+
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF$1));
|
|
39733
40149
|
} else {
|
|
39734
40150
|
const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
39735
|
-
headers += `Content-Type: ${safeType}${CRLF}`;
|
|
40151
|
+
headers += `Content-Type: ${safeType}${CRLF$1}`;
|
|
39736
40152
|
}
|
|
39737
|
-
this.headers = textEncoder.encode(headers + CRLF);
|
|
40153
|
+
this.headers = textEncoder.encode(headers + CRLF$1);
|
|
39738
40154
|
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
39739
40155
|
this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;
|
|
39740
40156
|
this.name = name;
|
|
@@ -39772,8 +40188,8 @@ var require_axios = __commonJS({
|
|
|
39772
40188
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
39773
40189
|
throw new Error("boundary must be 1-70 characters long");
|
|
39774
40190
|
}
|
|
39775
|
-
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
39776
|
-
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
40191
|
+
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF$1);
|
|
40192
|
+
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF$1);
|
|
39777
40193
|
let contentLength = footerBytes.byteLength;
|
|
39778
40194
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
39779
40195
|
const part = new FormDataPart(name, value);
|
|
@@ -39820,7 +40236,7 @@ var require_axios = __commonJS({
|
|
|
39820
40236
|
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
39821
40237
|
}
|
|
39822
40238
|
getSession(authority, options) {
|
|
39823
|
-
options = Object.assign({
|
|
40239
|
+
options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
39824
40240
|
sessionTimeout: 1e3
|
|
39825
40241
|
}, options);
|
|
39826
40242
|
let authoritySessions = this.sessions[authority];
|
|
@@ -39874,7 +40290,7 @@ var require_axios = __commonJS({
|
|
|
39874
40290
|
timer = null;
|
|
39875
40291
|
}
|
|
39876
40292
|
stream2.once("close", () => {
|
|
39877
|
-
if (!--streamsCount) {
|
|
40293
|
+
if (!--streamsCount && !removed) {
|
|
39878
40294
|
timer = setTimeout(() => {
|
|
39879
40295
|
timer = null;
|
|
39880
40296
|
removeSession();
|
|
@@ -39885,6 +40301,8 @@ var require_axios = __commonJS({
|
|
|
39885
40301
|
};
|
|
39886
40302
|
}
|
|
39887
40303
|
session.once("close", removeSession);
|
|
40304
|
+
session.once("error", removeSession);
|
|
40305
|
+
session.once("goaway", removeSession);
|
|
39888
40306
|
let entry = [session, options];
|
|
39889
40307
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
39890
40308
|
return session;
|
|
@@ -39903,6 +40321,13 @@ var require_axios = __commonJS({
|
|
|
39903
40321
|
} : fn;
|
|
39904
40322
|
};
|
|
39905
40323
|
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
|
|
40324
|
+
var trimTrailingDots = (value) => {
|
|
40325
|
+
let end = value.length;
|
|
40326
|
+
while (end && value.charCodeAt(end - 1) === 46) {
|
|
40327
|
+
end--;
|
|
40328
|
+
}
|
|
40329
|
+
return end === value.length ? value : value.slice(0, end);
|
|
40330
|
+
};
|
|
39906
40331
|
var isIPv4Loopback = (host) => {
|
|
39907
40332
|
const parts = host.split(".");
|
|
39908
40333
|
if (parts.length !== 4)
|
|
@@ -39911,6 +40336,67 @@ var require_axios = __commonJS({
|
|
|
39911
40336
|
return false;
|
|
39912
40337
|
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
39913
40338
|
};
|
|
40339
|
+
var parseIPv4Octet = (text) => {
|
|
40340
|
+
if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
|
|
40341
|
+
const n = parseInt(text.slice(2), 16);
|
|
40342
|
+
return Number.isFinite(n) ? n : null;
|
|
40343
|
+
}
|
|
40344
|
+
if (text.length > 1 && /^0[0-7]+$/.test(text)) {
|
|
40345
|
+
const n = parseInt(text, 8);
|
|
40346
|
+
return Number.isFinite(n) ? n : null;
|
|
40347
|
+
}
|
|
40348
|
+
if (text.length > 1 && /^0[0-9]+$/.test(text)) {
|
|
40349
|
+
return null;
|
|
40350
|
+
}
|
|
40351
|
+
if (/^[0-9]+$/.test(text)) {
|
|
40352
|
+
const n = parseInt(text, 10);
|
|
40353
|
+
return Number.isFinite(n) ? n : null;
|
|
40354
|
+
}
|
|
40355
|
+
return null;
|
|
40356
|
+
};
|
|
40357
|
+
var normalizeIPAddress = (host) => {
|
|
40358
|
+
if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
|
|
40359
|
+
return host;
|
|
40360
|
+
}
|
|
40361
|
+
let h = host;
|
|
40362
|
+
if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
|
|
40363
|
+
h = h.slice(1, -1);
|
|
40364
|
+
}
|
|
40365
|
+
h = trimTrailingDots(h);
|
|
40366
|
+
if (!/^[0-9.xXa-fA-F]+$/.test(h))
|
|
40367
|
+
return host;
|
|
40368
|
+
const parts = h.split(".");
|
|
40369
|
+
if (parts.some((p) => p === ""))
|
|
40370
|
+
return host;
|
|
40371
|
+
if (parts.length === 4) {
|
|
40372
|
+
const octets = parts.map(parseIPv4Octet);
|
|
40373
|
+
if (octets.some((n) => n === null || n < 0 || n > 255))
|
|
40374
|
+
return host;
|
|
40375
|
+
return octets.join(".");
|
|
40376
|
+
}
|
|
40377
|
+
if (parts.length > 4) {
|
|
40378
|
+
return host;
|
|
40379
|
+
}
|
|
40380
|
+
if (parts.length === 1)
|
|
40381
|
+
return host;
|
|
40382
|
+
const literalOctets = parts.slice(0, -1);
|
|
40383
|
+
const tail = parts[parts.length - 1];
|
|
40384
|
+
const tailSlots = 4 - literalOctets.length;
|
|
40385
|
+
const tailValue = parseIPv4Octet(tail);
|
|
40386
|
+
if (tailValue === null)
|
|
40387
|
+
return host;
|
|
40388
|
+
const maxTail = (1 << 8 * tailSlots) - 1;
|
|
40389
|
+
if (tailValue < 0 || tailValue > maxTail)
|
|
40390
|
+
return host;
|
|
40391
|
+
const tailOctets = new Array(tailSlots).fill(0);
|
|
40392
|
+
for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
|
|
40393
|
+
tailOctets[i] = v & 255;
|
|
40394
|
+
}
|
|
40395
|
+
const literal = literalOctets.map(parseIPv4Octet);
|
|
40396
|
+
if (literal.some((n) => n === null || n < 0 || n > 255))
|
|
40397
|
+
return host;
|
|
40398
|
+
return [...literal, ...tailOctets].join(".");
|
|
40399
|
+
};
|
|
39914
40400
|
var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
|
|
39915
40401
|
var isIPv6Unspecified = (host) => {
|
|
39916
40402
|
if (host === "::")
|
|
@@ -40006,6 +40492,40 @@ var require_axios = __commonJS({
|
|
|
40006
40492
|
}
|
|
40007
40493
|
return host;
|
|
40008
40494
|
};
|
|
40495
|
+
var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
|
|
40496
|
+
var ipv4ToBytes = (host) => {
|
|
40497
|
+
const parts = host.split(".");
|
|
40498
|
+
return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
|
|
40499
|
+
};
|
|
40500
|
+
var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
|
|
40501
|
+
var ipv6ToBytes = (host) => {
|
|
40502
|
+
const halves = host.split("::");
|
|
40503
|
+
if (halves.length > 2) {
|
|
40504
|
+
return null;
|
|
40505
|
+
}
|
|
40506
|
+
const groups = halves[0] ? halves[0].split(":") : [];
|
|
40507
|
+
if (halves.length === 2) {
|
|
40508
|
+
const rear = halves[1] ? halves[1].split(":") : [];
|
|
40509
|
+
const missing = 8 - groups.length - rear.length;
|
|
40510
|
+
if (missing < 1) {
|
|
40511
|
+
return null;
|
|
40512
|
+
}
|
|
40513
|
+
groups.push(...new Array(missing).fill("0"), ...rear);
|
|
40514
|
+
}
|
|
40515
|
+
if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
|
|
40516
|
+
return null;
|
|
40517
|
+
}
|
|
40518
|
+
return groups.flatMap((group) => {
|
|
40519
|
+
const value = Number.parseInt(group, 16);
|
|
40520
|
+
return [value >> 8 & 255, value & 255];
|
|
40521
|
+
});
|
|
40522
|
+
};
|
|
40523
|
+
var ipToBytes = (host) => {
|
|
40524
|
+
if (typeof host !== "string" || !host) {
|
|
40525
|
+
return null;
|
|
40526
|
+
}
|
|
40527
|
+
return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
|
|
40528
|
+
};
|
|
40009
40529
|
var normalizeNoProxyHost = (hostname) => {
|
|
40010
40530
|
if (!hostname) {
|
|
40011
40531
|
return hostname;
|
|
@@ -40013,7 +40533,112 @@ var require_axios = __commonJS({
|
|
|
40013
40533
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
40014
40534
|
hostname = hostname.slice(1, -1);
|
|
40015
40535
|
}
|
|
40016
|
-
|
|
40536
|
+
let trimmed = trimTrailingDots(hostname);
|
|
40537
|
+
if (trimmed.indexOf(":") !== -1) {
|
|
40538
|
+
try {
|
|
40539
|
+
trimmed = new URL("http://[" + trimmed + "]/").hostname.slice(1, -1);
|
|
40540
|
+
} catch (_err) {
|
|
40541
|
+
return trimmed;
|
|
40542
|
+
}
|
|
40543
|
+
} else if (/[\u0080-\uffff]/.test(trimmed)) {
|
|
40544
|
+
const prefix = /^[*.]+/.exec(trimmed);
|
|
40545
|
+
const start = prefix ? prefix[0] : "";
|
|
40546
|
+
const ascii = url.domainToASCII(trimmed.slice(start.length));
|
|
40547
|
+
if (!ascii)
|
|
40548
|
+
return "";
|
|
40549
|
+
trimmed = start + trimTrailingDots(ascii);
|
|
40550
|
+
}
|
|
40551
|
+
const ipv4 = normalizeIPAddress(trimmed);
|
|
40552
|
+
if (ipv4 !== trimmed) {
|
|
40553
|
+
return ipv4;
|
|
40554
|
+
}
|
|
40555
|
+
return unmapIPv4MappedIPv6(trimmed);
|
|
40556
|
+
};
|
|
40557
|
+
var normalizeCidrBase = (input) => {
|
|
40558
|
+
let base = input;
|
|
40559
|
+
const startsBracket = base.charAt(0) === "[";
|
|
40560
|
+
const endsBracket = base.charAt(base.length - 1) === "]";
|
|
40561
|
+
const hasBracket = base.includes("[") || base.includes("]");
|
|
40562
|
+
if (startsBracket || endsBracket) {
|
|
40563
|
+
if (!startsBracket || !endsBracket) {
|
|
40564
|
+
return null;
|
|
40565
|
+
}
|
|
40566
|
+
base = base.slice(1, -1);
|
|
40567
|
+
if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
|
|
40568
|
+
return null;
|
|
40569
|
+
}
|
|
40570
|
+
} else if (hasBracket) {
|
|
40571
|
+
return null;
|
|
40572
|
+
}
|
|
40573
|
+
if (!base || base.charAt(base.length - 1) === ".") {
|
|
40574
|
+
return null;
|
|
40575
|
+
}
|
|
40576
|
+
const wasIPv6 = base.indexOf(":") !== -1;
|
|
40577
|
+
if (wasIPv6) {
|
|
40578
|
+
try {
|
|
40579
|
+
base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
|
|
40580
|
+
} catch (_err) {
|
|
40581
|
+
return null;
|
|
40582
|
+
}
|
|
40583
|
+
} else {
|
|
40584
|
+
base = normalizeIPAddress(base);
|
|
40585
|
+
if (!ipv4ToBytes(base)) {
|
|
40586
|
+
return null;
|
|
40587
|
+
}
|
|
40588
|
+
}
|
|
40589
|
+
return {
|
|
40590
|
+
normalized: unmapIPv4MappedIPv6(base),
|
|
40591
|
+
wasIPv6
|
|
40592
|
+
};
|
|
40593
|
+
};
|
|
40594
|
+
var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
|
|
40595
|
+
var parseCidrEntry = (entry) => {
|
|
40596
|
+
if (entry.indexOf("/") === -1) {
|
|
40597
|
+
return void 0;
|
|
40598
|
+
}
|
|
40599
|
+
const match = CIDR_ENTRY_RE.exec(entry);
|
|
40600
|
+
if (!match) {
|
|
40601
|
+
return null;
|
|
40602
|
+
}
|
|
40603
|
+
let prefix = Number(match[2]);
|
|
40604
|
+
const parsedBase = normalizeCidrBase(match[1]);
|
|
40605
|
+
if (!parsedBase) {
|
|
40606
|
+
return null;
|
|
40607
|
+
}
|
|
40608
|
+
const {
|
|
40609
|
+
normalized,
|
|
40610
|
+
wasIPv6
|
|
40611
|
+
} = parsedBase;
|
|
40612
|
+
if (wasIPv6 && normalized.indexOf(":") === -1) {
|
|
40613
|
+
if (prefix < 96) {
|
|
40614
|
+
return null;
|
|
40615
|
+
}
|
|
40616
|
+
prefix -= 96;
|
|
40617
|
+
}
|
|
40618
|
+
const bytes = ipToBytes(normalized);
|
|
40619
|
+
if (!bytes || prefix > bytes.length * 8) {
|
|
40620
|
+
return null;
|
|
40621
|
+
}
|
|
40622
|
+
return {
|
|
40623
|
+
bytes,
|
|
40624
|
+
prefix
|
|
40625
|
+
};
|
|
40626
|
+
};
|
|
40627
|
+
var isInSubnet = (addressBytes, networkBytes, prefix) => {
|
|
40628
|
+
const fullBytes = prefix >> 3;
|
|
40629
|
+
for (let i = 0; i < fullBytes; i++) {
|
|
40630
|
+
if (addressBytes[i] !== networkBytes[i]) {
|
|
40631
|
+
return false;
|
|
40632
|
+
}
|
|
40633
|
+
}
|
|
40634
|
+
const remainingBits = prefix & 7;
|
|
40635
|
+
if (remainingBits) {
|
|
40636
|
+
const mask = 255 << 8 - remainingBits & 255;
|
|
40637
|
+
if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
|
|
40638
|
+
return false;
|
|
40639
|
+
}
|
|
40640
|
+
}
|
|
40641
|
+
return true;
|
|
40017
40642
|
};
|
|
40018
40643
|
function shouldBypassProxy(location) {
|
|
40019
40644
|
let parsed;
|
|
@@ -40031,10 +40656,18 @@ var require_axios = __commonJS({
|
|
|
40031
40656
|
}
|
|
40032
40657
|
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS[parsed.protocol.split(":", 1)[0]] || 0;
|
|
40033
40658
|
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
40659
|
+
const hostnameBytes = ipToBytes(hostname);
|
|
40034
40660
|
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
40035
40661
|
if (!entry) {
|
|
40036
40662
|
return false;
|
|
40037
40663
|
}
|
|
40664
|
+
if (entry === "*") {
|
|
40665
|
+
return true;
|
|
40666
|
+
}
|
|
40667
|
+
const cidr = parseCidrEntry(entry);
|
|
40668
|
+
if (cidr !== void 0) {
|
|
40669
|
+
return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
|
|
40670
|
+
}
|
|
40038
40671
|
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
40039
40672
|
entryHost = normalizeNoProxyHost(entryHost);
|
|
40040
40673
|
if (!entryHost) {
|
|
@@ -40115,18 +40748,19 @@ var require_axios = __commonJS({
|
|
|
40115
40748
|
}
|
|
40116
40749
|
};
|
|
40117
40750
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
40118
|
-
|
|
40751
|
+
const flushWith = (...args) => invoke(args);
|
|
40752
|
+
return [throttled, flush, flushWith];
|
|
40119
40753
|
}
|
|
40120
40754
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
40121
40755
|
let bytesNotified = 0;
|
|
40122
40756
|
const _speedometer = speedometer(50, 250);
|
|
40123
40757
|
return throttle((e) => {
|
|
40124
|
-
if (!e ||
|
|
40758
|
+
if (!e || !utils$1.isNumber(e.loaded)) {
|
|
40125
40759
|
return;
|
|
40126
40760
|
}
|
|
40127
40761
|
const rawLoaded = e.loaded;
|
|
40128
40762
|
const total = e.lengthComputable ? e.total : void 0;
|
|
40129
|
-
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
40763
|
+
const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
|
|
40130
40764
|
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
40131
40765
|
const rate = _speedometer(progressBytes);
|
|
40132
40766
|
bytesNotified = Math.max(bytesNotified, loaded);
|
|
@@ -40152,58 +40786,96 @@ var require_axios = __commonJS({
|
|
|
40152
40786
|
loaded
|
|
40153
40787
|
}), throttled[1]];
|
|
40154
40788
|
};
|
|
40155
|
-
var asyncDecorator = (fn) => (...args) =>
|
|
40789
|
+
var asyncDecorator = (fn, scheduler = utils$1.asap) => (...args) => scheduler(() => fn(...args));
|
|
40156
40790
|
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
40157
40791
|
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
40158
|
-
|
|
40792
|
+
var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
|
|
40793
|
+
var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
|
|
40794
|
+
charCode >= 97 && charCode <= 122 || // a-z
|
|
40795
|
+
charCode >= 48 && charCode <= 57 || // 0-9
|
|
40796
|
+
charCode === 43 || // +
|
|
40797
|
+
charCode === 47 || // /
|
|
40798
|
+
charCode === 45 || // - (base64url)
|
|
40799
|
+
charCode === 95;
|
|
40800
|
+
var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
|
|
40801
|
+
var base64Bytes = (significant) => {
|
|
40802
|
+
const groups = Math.floor(significant / 4);
|
|
40803
|
+
const remainder = significant % 4;
|
|
40804
|
+
return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
|
|
40805
|
+
};
|
|
40806
|
+
var estimateBase64BufferAllocation = (body) => {
|
|
40807
|
+
const len = body.length;
|
|
40808
|
+
let padding = 0;
|
|
40809
|
+
if (len > 0 && body.charCodeAt(len - 1) === 61) {
|
|
40810
|
+
padding++;
|
|
40811
|
+
if (len > 1 && body.charCodeAt(len - 2) === 61) {
|
|
40812
|
+
padding++;
|
|
40813
|
+
}
|
|
40814
|
+
}
|
|
40815
|
+
return Math.floor((len - padding) * 3 / 4);
|
|
40816
|
+
};
|
|
40817
|
+
var estimatePercentDecodedBase64BufferAllocation = (body) => {
|
|
40818
|
+
if (body.indexOf("%") === -1) {
|
|
40819
|
+
return estimateBase64BufferAllocation(body);
|
|
40820
|
+
}
|
|
40821
|
+
let length = 0;
|
|
40822
|
+
let previous = 0;
|
|
40823
|
+
let last = 0;
|
|
40824
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
40825
|
+
let code = body.charCodeAt(i);
|
|
40826
|
+
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
40827
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
40828
|
+
i += 2;
|
|
40829
|
+
}
|
|
40830
|
+
length++;
|
|
40831
|
+
previous = last;
|
|
40832
|
+
last = code;
|
|
40833
|
+
}
|
|
40834
|
+
const padding = last === 61 ? previous === 61 ? 2 : 1 : 0;
|
|
40835
|
+
return Math.floor((length - padding) * 3 / 4);
|
|
40836
|
+
};
|
|
40837
|
+
var estimatePercentDecodedBase64Bytes = (body) => {
|
|
40838
|
+
const len = body.length;
|
|
40839
|
+
let significant = 0;
|
|
40840
|
+
let padding = 0;
|
|
40841
|
+
let invalid = false;
|
|
40842
|
+
for (let i = 0; i < len; i++) {
|
|
40843
|
+
let code = body.charCodeAt(i);
|
|
40844
|
+
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
40845
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
40846
|
+
i += 2;
|
|
40847
|
+
}
|
|
40848
|
+
if (isBase64Whitespace(code)) {
|
|
40849
|
+
continue;
|
|
40850
|
+
}
|
|
40851
|
+
if (code === 61) {
|
|
40852
|
+
padding++;
|
|
40853
|
+
continue;
|
|
40854
|
+
}
|
|
40855
|
+
if (!isBase64Char(code) || padding > 0) {
|
|
40856
|
+
invalid = true;
|
|
40857
|
+
continue;
|
|
40858
|
+
}
|
|
40859
|
+
significant++;
|
|
40860
|
+
}
|
|
40861
|
+
if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
|
|
40862
|
+
return estimateBase64BufferAllocation(body);
|
|
40863
|
+
}
|
|
40864
|
+
return base64Bytes(significant);
|
|
40865
|
+
};
|
|
40866
|
+
var estimateDataURLBytes = (url2, estimateBase64, base64Pattern) => {
|
|
40159
40867
|
if (!url2 || typeof url2 !== "string")
|
|
40160
40868
|
return 0;
|
|
40161
|
-
if (
|
|
40869
|
+
if (!/^data:/i.test(url2))
|
|
40162
40870
|
return 0;
|
|
40163
40871
|
const comma = url2.indexOf(",");
|
|
40164
40872
|
if (comma < 0)
|
|
40165
40873
|
return 0;
|
|
40166
40874
|
const meta = url2.slice(5, comma);
|
|
40167
40875
|
const body = url2.slice(comma + 1);
|
|
40168
|
-
const isBase64 =
|
|
40876
|
+
const isBase64 = base64Pattern.test(meta);
|
|
40169
40877
|
if (isBase64) {
|
|
40170
|
-
|
|
40171
|
-
const len = body.length;
|
|
40172
|
-
for (let i = 0; i < len; i++) {
|
|
40173
|
-
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
40174
|
-
const a = body.charCodeAt(i + 1);
|
|
40175
|
-
const b = body.charCodeAt(i + 2);
|
|
40176
|
-
const isHex = isHexDigit(a) && isHexDigit(b);
|
|
40177
|
-
if (isHex) {
|
|
40178
|
-
effectiveLen -= 2;
|
|
40179
|
-
i += 2;
|
|
40180
|
-
}
|
|
40181
|
-
}
|
|
40182
|
-
}
|
|
40183
|
-
let pad = 0;
|
|
40184
|
-
let idx = len - 1;
|
|
40185
|
-
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
|
|
40186
|
-
body.charCodeAt(j - 1) === 51 && // '3'
|
|
40187
|
-
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
40188
|
-
if (idx >= 0) {
|
|
40189
|
-
if (body.charCodeAt(idx) === 61) {
|
|
40190
|
-
pad++;
|
|
40191
|
-
idx--;
|
|
40192
|
-
} else if (tailIsPct3D(idx)) {
|
|
40193
|
-
pad++;
|
|
40194
|
-
idx -= 3;
|
|
40195
|
-
}
|
|
40196
|
-
}
|
|
40197
|
-
if (pad === 1 && idx >= 0) {
|
|
40198
|
-
if (body.charCodeAt(idx) === 61) {
|
|
40199
|
-
pad++;
|
|
40200
|
-
} else if (tailIsPct3D(idx)) {
|
|
40201
|
-
pad++;
|
|
40202
|
-
}
|
|
40203
|
-
}
|
|
40204
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
40205
|
-
const bytes2 = groups * 3 - (pad || 0);
|
|
40206
|
-
return bytes2 > 0 ? bytes2 : 0;
|
|
40878
|
+
return estimateBase64(body);
|
|
40207
40879
|
}
|
|
40208
40880
|
let bytes = 0;
|
|
40209
40881
|
for (let i = 0, len = body.length; i < len; i++) {
|
|
@@ -40228,6 +40900,13 @@ var require_axios = __commonJS({
|
|
|
40228
40900
|
}
|
|
40229
40901
|
}
|
|
40230
40902
|
return bytes;
|
|
40903
|
+
};
|
|
40904
|
+
function estimateDataURLDecodedBytes(url2) {
|
|
40905
|
+
const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
|
|
40906
|
+
return estimateDataURLBytes(fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes, /; *base64[\t\n\f\r ]*$/i);
|
|
40907
|
+
}
|
|
40908
|
+
function estimateDataURLBufferAllocation(url2) {
|
|
40909
|
+
return estimateDataURLBytes(url2, estimatePercentDecodedBase64BufferAllocation, /;base64$/i);
|
|
40231
40910
|
}
|
|
40232
40911
|
var zlibOptions = {
|
|
40233
40912
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
@@ -40245,28 +40924,26 @@ var require_axios = __commonJS({
|
|
|
40245
40924
|
var isZstdSupported = utils$1.isFunction(zlib.createZstdDecompress);
|
|
40246
40925
|
var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
|
|
40247
40926
|
var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
|
|
40927
|
+
var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils$1.asap;
|
|
40248
40928
|
var {
|
|
40249
40929
|
http: httpFollow,
|
|
40250
40930
|
https: httpsFollow
|
|
40251
40931
|
} = followRedirects;
|
|
40252
40932
|
var isHttps = /https:?/;
|
|
40253
|
-
var FORM_DATA_CONTENT_HEADERS$1 = ["content-type", "content-length"];
|
|
40254
|
-
function setFormDataHeaders$1(headers, formHeaders, policy) {
|
|
40255
|
-
if (policy !== "content-only") {
|
|
40256
|
-
headers.set(formHeaders);
|
|
40257
|
-
return;
|
|
40258
|
-
}
|
|
40259
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
40260
|
-
if (FORM_DATA_CONTENT_HEADERS$1.includes(key.toLowerCase())) {
|
|
40261
|
-
headers.set(key, val);
|
|
40262
|
-
}
|
|
40263
|
-
});
|
|
40264
|
-
}
|
|
40265
40933
|
var kAxiosSocketListener = Symbol("axios.http.socketListener");
|
|
40266
40934
|
var kAxiosCurrentReq = Symbol("axios.http.currentReq");
|
|
40935
|
+
function handleSocketError(err) {
|
|
40936
|
+
const current = this[kAxiosCurrentReq];
|
|
40937
|
+
if (current && !current.destroyed) {
|
|
40938
|
+
current.destroy(err);
|
|
40939
|
+
}
|
|
40940
|
+
}
|
|
40267
40941
|
var kAxiosInstalledTunnel = Symbol("axios.http.installedTunnel");
|
|
40268
40942
|
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
40269
40943
|
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
40944
|
+
var directAgents = /* @__PURE__ */ new WeakMap();
|
|
40945
|
+
var directAgentHooks = ["createConnection", "getName"];
|
|
40946
|
+
var nativeAgentPoolHooks = ["addRequest", "createSocket", "removeSocket", "keepSocketAlive", "reuseSocket", "_getSession", "_cacheSession", "_evictSession"];
|
|
40270
40947
|
var NODE_NATIVE_ENV_PROXY_SUPPORT = {
|
|
40271
40948
|
22: 21,
|
|
40272
40949
|
24: 5
|
|
@@ -40294,6 +40971,49 @@ var require_axios = __commonJS({
|
|
|
40294
40971
|
function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
|
|
40295
40972
|
return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
|
|
40296
40973
|
}
|
|
40974
|
+
function getDirectAgent(configuredAgent, transport) {
|
|
40975
|
+
if (!process.allowedNodeEnvironmentFlags || !process.allowedNodeEnvironmentFlags.has("--use-env-proxy")) {
|
|
40976
|
+
return configuredAgent;
|
|
40977
|
+
}
|
|
40978
|
+
const agent = configuredAgent || transport.globalAgent;
|
|
40979
|
+
const options = agent && agent.options;
|
|
40980
|
+
if (!(agent instanceof transport.Agent) || agent.protocol !== transport.globalAgent.protocol || !options || !utils$1.hasOwnProp(options, "proxyEnv") || typeof options.proxyEnv !== "object" || options.proxyEnv === null) {
|
|
40981
|
+
return configuredAgent;
|
|
40982
|
+
}
|
|
40983
|
+
for (const hook of nativeAgentPoolHooks) {
|
|
40984
|
+
if (utils$1.isFunction(transport.Agent.prototype[hook]) && agent[hook] !== transport.Agent.prototype[hook]) {
|
|
40985
|
+
throw new AxiosError("proxy: false cannot adapt an agent overriding " + hook + "; use an agent constructed without proxyEnv", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
40986
|
+
}
|
|
40987
|
+
}
|
|
40988
|
+
let direct = directAgents.get(agent);
|
|
40989
|
+
if (!direct) {
|
|
40990
|
+
direct = new transport.Agent({
|
|
40991
|
+
...options,
|
|
40992
|
+
proxyEnv: void 0
|
|
40993
|
+
});
|
|
40994
|
+
const destroy = agent.destroy;
|
|
40995
|
+
agent.destroy = function destroyWithDirectAgent() {
|
|
40996
|
+
try {
|
|
40997
|
+
return destroy.apply(this, arguments);
|
|
40998
|
+
} finally {
|
|
40999
|
+
direct.destroy();
|
|
41000
|
+
}
|
|
41001
|
+
};
|
|
41002
|
+
directAgents.set(agent, direct);
|
|
41003
|
+
}
|
|
41004
|
+
for (const hook of directAgentHooks) {
|
|
41005
|
+
direct[hook] = agent[hook] === transport.Agent.prototype[hook] ? transport.Agent.prototype[hook] : bind(agent[hook], agent);
|
|
41006
|
+
}
|
|
41007
|
+
return direct;
|
|
41008
|
+
}
|
|
41009
|
+
function setDirectAgent(options, configHttpAgent, configHttpsAgent) {
|
|
41010
|
+
const secure = isHttps.test(options.protocol);
|
|
41011
|
+
const agent = getDirectAgent(secure ? configHttpsAgent : configHttpAgent, secure ? https : http);
|
|
41012
|
+
options.agent = agent;
|
|
41013
|
+
if (options.agents) {
|
|
41014
|
+
options.agents[secure ? "https" : "http"] = agent;
|
|
41015
|
+
}
|
|
41016
|
+
}
|
|
40297
41017
|
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
40298
41018
|
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
40299
41019
|
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
|
|
@@ -40305,18 +41025,15 @@ var require_axios = __commonJS({
|
|
|
40305
41025
|
...agentOptions
|
|
40306
41026
|
} : agentOptions;
|
|
40307
41027
|
agent = new HttpsProxyAgent(merged);
|
|
40308
|
-
|
|
40309
|
-
|
|
40310
|
-
|
|
40311
|
-
|
|
40312
|
-
|
|
40313
|
-
|
|
40314
|
-
|
|
40315
|
-
|
|
40316
|
-
|
|
40317
|
-
});
|
|
40318
|
-
};
|
|
40319
|
-
}
|
|
41028
|
+
const callback = agent.callback;
|
|
41029
|
+
agent.callback = function axiosTunnelingAgentCallback(req, opts) {
|
|
41030
|
+
const originTLSAgent = userHttpsAgent || https.globalAgent;
|
|
41031
|
+
const originTLSOptions = originTLSAgent && originTLSAgent.options;
|
|
41032
|
+
return callback.call(this, req, {
|
|
41033
|
+
...originTLSOptions,
|
|
41034
|
+
...opts
|
|
41035
|
+
});
|
|
41036
|
+
};
|
|
40320
41037
|
agent[kAxiosInstalledTunnel] = true;
|
|
40321
41038
|
cache.set(key, agent);
|
|
40322
41039
|
return agent;
|
|
@@ -40340,6 +41057,10 @@ var require_axios = __commonJS({
|
|
|
40340
41057
|
};
|
|
40341
41058
|
var http2Sessions = new Http2Sessions();
|
|
40342
41059
|
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
41060
|
+
if (!isSameOriginRedirect(options, requestDetails)) {
|
|
41061
|
+
stripMatchingHeaders(options.headers, /* @__PURE__ */ new Set(["authorization", "cookie"]));
|
|
41062
|
+
delete options.auth;
|
|
41063
|
+
}
|
|
40343
41064
|
if (options.beforeRedirects.proxy) {
|
|
40344
41065
|
options.beforeRedirects.proxy(options);
|
|
40345
41066
|
}
|
|
@@ -40349,6 +41070,9 @@ var require_axios = __commonJS({
|
|
|
40349
41070
|
if (options.beforeRedirects.sensitiveHeaders) {
|
|
40350
41071
|
options.beforeRedirects.sensitiveHeaders(options, requestDetails);
|
|
40351
41072
|
}
|
|
41073
|
+
if (options.beforeRedirects.direct) {
|
|
41074
|
+
options.beforeRedirects.direct(options);
|
|
41075
|
+
}
|
|
40352
41076
|
if (options.beforeRedirects.config) {
|
|
40353
41077
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
40354
41078
|
}
|
|
@@ -40373,10 +41097,10 @@ var require_axios = __commonJS({
|
|
|
40373
41097
|
return false;
|
|
40374
41098
|
}
|
|
40375
41099
|
}
|
|
40376
|
-
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
|
|
41100
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
|
|
40377
41101
|
let proxy = configProxy;
|
|
40378
41102
|
const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
|
|
40379
|
-
if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
41103
|
+
if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
40380
41104
|
const proxyUrl = getProxyForUrl(location);
|
|
40381
41105
|
if (proxyUrl) {
|
|
40382
41106
|
if (!shouldBypassProxy(location)) {
|
|
@@ -40394,6 +41118,9 @@ var require_axios = __commonJS({
|
|
|
40394
41118
|
if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
|
|
40395
41119
|
options.agent = void 0;
|
|
40396
41120
|
}
|
|
41121
|
+
if (isRedirect && options.agents && options.agents.https && options.agents.https[kAxiosInstalledTunnel]) {
|
|
41122
|
+
options.agents.https = configHttpsAgent;
|
|
41123
|
+
}
|
|
40397
41124
|
if (proxy) {
|
|
40398
41125
|
const isProxyURL = proxy instanceof URL;
|
|
40399
41126
|
const readProxyField = (key) => isProxyURL || utils$1.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
@@ -40467,8 +41194,9 @@ var require_axios = __commonJS({
|
|
|
40467
41194
|
}
|
|
40468
41195
|
}
|
|
40469
41196
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
40470
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent);
|
|
41197
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent, allowEnvProxy);
|
|
40471
41198
|
};
|
|
41199
|
+
return Boolean(proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent));
|
|
40472
41200
|
}
|
|
40473
41201
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils$1.kindOf(process) === "process";
|
|
40474
41202
|
var wrapAsync = (asyncExecutor) => {
|
|
@@ -40497,7 +41225,7 @@ var require_axios = __commonJS({
|
|
|
40497
41225
|
family
|
|
40498
41226
|
}) => {
|
|
40499
41227
|
if (!utils$1.isString(address)) {
|
|
40500
|
-
throw
|
|
41228
|
+
throw new AxiosError("address must be a string", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
40501
41229
|
}
|
|
40502
41230
|
return {
|
|
40503
41231
|
address,
|
|
@@ -40508,6 +41236,30 @@ var require_axios = __commonJS({
|
|
|
40508
41236
|
address,
|
|
40509
41237
|
family
|
|
40510
41238
|
});
|
|
41239
|
+
var normalizedLookupCache = /* @__PURE__ */ new WeakMap();
|
|
41240
|
+
var normalizeLookup = (lookup) => {
|
|
41241
|
+
let normalized = normalizedLookupCache.get(lookup);
|
|
41242
|
+
if (normalized) {
|
|
41243
|
+
return normalized;
|
|
41244
|
+
}
|
|
41245
|
+
const callbackLookup = callbackify(lookup, (value) => utils$1.isArray(value) ? value : [value]);
|
|
41246
|
+
normalized = (hostname, opt, cb) => {
|
|
41247
|
+
callbackLookup(hostname, opt, (err, arg0, arg1) => {
|
|
41248
|
+
if (err) {
|
|
41249
|
+
return cb(err);
|
|
41250
|
+
}
|
|
41251
|
+
let addresses;
|
|
41252
|
+
try {
|
|
41253
|
+
addresses = utils$1.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
41254
|
+
} catch (error) {
|
|
41255
|
+
return cb(error);
|
|
41256
|
+
}
|
|
41257
|
+
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
41258
|
+
});
|
|
41259
|
+
};
|
|
41260
|
+
normalizedLookupCache.set(lookup, normalized);
|
|
41261
|
+
return normalized;
|
|
41262
|
+
};
|
|
40511
41263
|
var http2Transport = {
|
|
40512
41264
|
request(options, cb) {
|
|
40513
41265
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
@@ -40553,10 +41305,11 @@ var require_axios = __commonJS({
|
|
|
40553
41305
|
let httpVersion = own2("httpVersion");
|
|
40554
41306
|
if (httpVersion === void 0)
|
|
40555
41307
|
httpVersion = 1;
|
|
41308
|
+
const rawHttpVersion = httpVersion;
|
|
40556
41309
|
let http2Options = own2("http2Options");
|
|
41310
|
+
const configProxy = own2("proxy");
|
|
40557
41311
|
const httpAgent = own2("httpAgent");
|
|
40558
41312
|
const httpsAgent = own2("httpsAgent");
|
|
40559
|
-
const configProxy = own2("proxy");
|
|
40560
41313
|
const responseType = own2("responseType");
|
|
40561
41314
|
const responseEncoding = own2("responseEncoding");
|
|
40562
41315
|
const socketPath = own2("socketPath");
|
|
@@ -40569,25 +41322,20 @@ var require_axios = __commonJS({
|
|
|
40569
41322
|
let rejected = false;
|
|
40570
41323
|
let req;
|
|
40571
41324
|
let connectPhaseTimer;
|
|
40572
|
-
|
|
41325
|
+
try {
|
|
41326
|
+
httpVersion = +httpVersion;
|
|
41327
|
+
} catch (err) {
|
|
41328
|
+
throw new AxiosError("Invalid protocol version: value is not a number", AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
41329
|
+
}
|
|
40573
41330
|
if (Number.isNaN(httpVersion)) {
|
|
40574
|
-
throw
|
|
41331
|
+
throw new AxiosError(`Invalid protocol version: '${rawHttpVersion}' is not a number`, AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
40575
41332
|
}
|
|
40576
41333
|
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
40577
|
-
throw
|
|
41334
|
+
throw new AxiosError(`Unsupported protocol version '${httpVersion}'`, AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
40578
41335
|
}
|
|
40579
41336
|
const isHttp2 = httpVersion === 2;
|
|
40580
41337
|
if (lookup) {
|
|
40581
|
-
|
|
40582
|
-
lookup = (hostname, opt, cb) => {
|
|
40583
|
-
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
40584
|
-
if (err) {
|
|
40585
|
-
return cb(err);
|
|
40586
|
-
}
|
|
40587
|
-
const addresses = utils$1.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
40588
|
-
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
40589
|
-
});
|
|
40590
|
-
};
|
|
41338
|
+
lookup = normalizeLookup(lookup);
|
|
40591
41339
|
}
|
|
40592
41340
|
const abortEmitter = new events.EventEmitter();
|
|
40593
41341
|
function abort(reason) {
|
|
@@ -40655,7 +41403,7 @@ var require_axios = __commonJS({
|
|
|
40655
41403
|
if (protocol === "data:") {
|
|
40656
41404
|
if (maxContentLength > -1) {
|
|
40657
41405
|
const dataUrl = String(own2("url") || fullPath || "");
|
|
40658
|
-
const estimated =
|
|
41406
|
+
const estimated = estimateDataURLBufferAllocation(dataUrl);
|
|
40659
41407
|
if (estimated > maxContentLength) {
|
|
40660
41408
|
return reject(new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config));
|
|
40661
41409
|
}
|
|
@@ -40676,6 +41424,9 @@ var require_axios = __commonJS({
|
|
|
40676
41424
|
} catch (err) {
|
|
40677
41425
|
throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);
|
|
40678
41426
|
}
|
|
41427
|
+
if (maxContentLength > -1 && (responseType === "blob" ? convertedData.size : convertedData.length) > maxContentLength) {
|
|
41428
|
+
return reject(new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config));
|
|
41429
|
+
}
|
|
40679
41430
|
if (responseType === "text") {
|
|
40680
41431
|
convertedData = convertedData.toString(responseEncoding);
|
|
40681
41432
|
if (!responseEncoding || responseEncoding === "utf8") {
|
|
@@ -40713,7 +41464,7 @@ var require_axios = __commonJS({
|
|
|
40713
41464
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
40714
41465
|
});
|
|
40715
41466
|
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
40716
|
-
setFormDataHeaders
|
|
41467
|
+
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
40717
41468
|
if (!headers.hasContentLength()) {
|
|
40718
41469
|
try {
|
|
40719
41470
|
const knownLength = await util.promisify(data.getLength).call(data);
|
|
@@ -40756,7 +41507,7 @@ var require_axios = __commonJS({
|
|
|
40756
41507
|
data = stream.pipeline([data, new AxiosTransformStream({
|
|
40757
41508
|
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
40758
41509
|
})], utils$1.noop);
|
|
40759
|
-
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
41510
|
+
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3))));
|
|
40760
41511
|
}
|
|
40761
41512
|
let auth = void 0;
|
|
40762
41513
|
const configAuth = own2("auth");
|
|
@@ -40781,6 +41532,11 @@ var require_axios = __commonJS({
|
|
|
40781
41532
|
}));
|
|
40782
41533
|
}
|
|
40783
41534
|
headers.set("Accept-Encoding", utils$1.hasOwnProp(transitional, "advertiseZstdAcceptEncoding") && transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, false);
|
|
41535
|
+
if (isHttp2 && lookup) {
|
|
41536
|
+
http2Options = Object.assign(/* @__PURE__ */ Object.create(null), http2Options, {
|
|
41537
|
+
lookup
|
|
41538
|
+
});
|
|
41539
|
+
}
|
|
40784
41540
|
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
40785
41541
|
path: path$1,
|
|
40786
41542
|
method,
|
|
@@ -40794,9 +41550,11 @@ var require_axios = __commonJS({
|
|
|
40794
41550
|
family,
|
|
40795
41551
|
beforeRedirect: dispatchBeforeRedirect,
|
|
40796
41552
|
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
40797
|
-
http2Options
|
|
41553
|
+
http2Options,
|
|
41554
|
+
createConnection: void 0
|
|
40798
41555
|
});
|
|
40799
41556
|
!utils$1.isUndefined(lookup) && (options.lookup = lookup);
|
|
41557
|
+
let proxyApplied = false;
|
|
40800
41558
|
if (socketPath) {
|
|
40801
41559
|
if (typeof socketPath !== "string") {
|
|
40802
41560
|
return reject(new AxiosError("socketPath must be a string", AxiosError.ERR_BAD_OPTION_VALUE, config));
|
|
@@ -40814,16 +41572,34 @@ var require_axios = __commonJS({
|
|
|
40814
41572
|
} else {
|
|
40815
41573
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
40816
41574
|
options.port = parsed.port;
|
|
40817
|
-
|
|
41575
|
+
proxyApplied = setProxy(
|
|
41576
|
+
options,
|
|
41577
|
+
configProxy,
|
|
41578
|
+
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
|
|
41579
|
+
false,
|
|
41580
|
+
httpsAgent,
|
|
41581
|
+
httpAgent,
|
|
41582
|
+
// The HTTP/2 transport connects independently of HTTP/1 agents, so it
|
|
41583
|
+
// cannot apply either axios-resolved or agent-local environment proxies.
|
|
41584
|
+
// Explicit proxy config is still processed and rejected below.
|
|
41585
|
+
!isHttp2
|
|
41586
|
+
);
|
|
40818
41587
|
}
|
|
40819
41588
|
let transport;
|
|
40820
41589
|
let isNativeTransport = false;
|
|
40821
|
-
let transportEnforcesMaxBodyLength = false;
|
|
40822
41590
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
40823
|
-
if (
|
|
41591
|
+
if (!isHttp2 && configProxy === false) {
|
|
41592
|
+
setDirectAgent(options, httpAgent, httpsAgent);
|
|
41593
|
+
options.beforeRedirects.direct = (redirectOptions) => {
|
|
41594
|
+
setDirectAgent(redirectOptions, httpAgent, httpsAgent);
|
|
41595
|
+
};
|
|
41596
|
+
} else if (options.agent == null) {
|
|
40824
41597
|
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
40825
41598
|
}
|
|
40826
41599
|
if (isHttp2) {
|
|
41600
|
+
if (proxyApplied) {
|
|
41601
|
+
return reject(new AxiosError("HTTP/2 requests with a proxy are not supported", AxiosError.ERR_NOT_SUPPORT, config));
|
|
41602
|
+
}
|
|
40827
41603
|
transport = http2Transport;
|
|
40828
41604
|
} else {
|
|
40829
41605
|
const configTransport = own2("transport");
|
|
@@ -40833,7 +41609,6 @@ var require_axios = __commonJS({
|
|
|
40833
41609
|
transport = isHttpsRequest ? https : http;
|
|
40834
41610
|
isNativeTransport = true;
|
|
40835
41611
|
} else {
|
|
40836
|
-
transportEnforcesMaxBodyLength = true;
|
|
40837
41612
|
options.sensitiveHeaders = [];
|
|
40838
41613
|
if (maxRedirects) {
|
|
40839
41614
|
options.maxRedirects = maxRedirects;
|
|
@@ -40894,7 +41669,7 @@ var require_axios = __commonJS({
|
|
|
40894
41669
|
const transformStream = new AxiosTransformStream({
|
|
40895
41670
|
maxRate: utils$1.toFiniteNumber(maxDownloadRate)
|
|
40896
41671
|
});
|
|
40897
|
-
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3))));
|
|
41672
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3))));
|
|
40898
41673
|
streams.push(transformStream);
|
|
40899
41674
|
}
|
|
40900
41675
|
let responseStream = res;
|
|
@@ -41022,12 +41797,7 @@ var require_axios = __commonJS({
|
|
|
41022
41797
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
41023
41798
|
}
|
|
41024
41799
|
if (!socket[kAxiosSocketListener]) {
|
|
41025
|
-
socket.on("error",
|
|
41026
|
-
const current = socket[kAxiosCurrentReq];
|
|
41027
|
-
if (current && !current.destroyed) {
|
|
41028
|
-
current.destroy(err);
|
|
41029
|
-
}
|
|
41030
|
-
});
|
|
41800
|
+
socket.on("error", handleSocketError);
|
|
41031
41801
|
socket[kAxiosSocketListener] = true;
|
|
41032
41802
|
}
|
|
41033
41803
|
socket[kAxiosCurrentReq] = req;
|
|
@@ -41076,7 +41846,7 @@ var require_axios = __commonJS({
|
|
|
41076
41846
|
}
|
|
41077
41847
|
});
|
|
41078
41848
|
let uploadStream = data;
|
|
41079
|
-
if (maxBodyLength > -1
|
|
41849
|
+
if (maxBodyLength > -1) {
|
|
41080
41850
|
const limit = maxBodyLength;
|
|
41081
41851
|
let bytesSent = 0;
|
|
41082
41852
|
uploadStream = stream.pipeline([data, new stream.Transform({
|
|
@@ -41100,10 +41870,13 @@ var require_axios = __commonJS({
|
|
|
41100
41870
|
}
|
|
41101
41871
|
});
|
|
41102
41872
|
};
|
|
41103
|
-
var
|
|
41104
|
-
|
|
41105
|
-
|
|
41106
|
-
|
|
41873
|
+
var decodeCookieValue = (value) => {
|
|
41874
|
+
try {
|
|
41875
|
+
return decodeURIComponent(value);
|
|
41876
|
+
} catch (e) {
|
|
41877
|
+
return value;
|
|
41878
|
+
}
|
|
41879
|
+
};
|
|
41107
41880
|
var cookies = platform.hasStandardBrowserEnv ? (
|
|
41108
41881
|
// Standard browser envs support document.cookie
|
|
41109
41882
|
{
|
|
@@ -41131,20 +41904,30 @@ var require_axios = __commonJS({
|
|
|
41131
41904
|
read(name) {
|
|
41132
41905
|
if (typeof document === "undefined")
|
|
41133
41906
|
return null;
|
|
41134
|
-
const
|
|
41907
|
+
const cookieString = document.cookie;
|
|
41908
|
+
if (!cookieString)
|
|
41909
|
+
return null;
|
|
41910
|
+
const cookies2 = cookieString.split(";");
|
|
41135
41911
|
for (let i = 0; i < cookies2.length; i++) {
|
|
41136
41912
|
const cookie = cookies2[i].replace(/^\s+/, "");
|
|
41137
41913
|
const eq = cookie.indexOf("=");
|
|
41138
41914
|
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
41139
|
-
|
|
41140
|
-
return decodeURIComponent(cookie.slice(eq + 1));
|
|
41141
|
-
} catch (e) {
|
|
41142
|
-
return cookie.slice(eq + 1);
|
|
41143
|
-
}
|
|
41915
|
+
return decodeCookieValue(cookie.slice(eq + 1));
|
|
41144
41916
|
}
|
|
41145
41917
|
}
|
|
41146
41918
|
return null;
|
|
41147
41919
|
},
|
|
41920
|
+
async readAsync(name) {
|
|
41921
|
+
try {
|
|
41922
|
+
const store = typeof window !== "undefined" && window.cookieStore;
|
|
41923
|
+
if (store && utils$1.isFunction(store.get)) {
|
|
41924
|
+
const cookie = await store.get(name);
|
|
41925
|
+
return cookie ? decodeCookieValue(cookie.value) : null;
|
|
41926
|
+
}
|
|
41927
|
+
} catch (e) {
|
|
41928
|
+
}
|
|
41929
|
+
return this.read(name);
|
|
41930
|
+
},
|
|
41148
41931
|
remove(name) {
|
|
41149
41932
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
41150
41933
|
}
|
|
@@ -41157,126 +41940,246 @@ var require_axios = __commonJS({
|
|
|
41157
41940
|
read() {
|
|
41158
41941
|
return null;
|
|
41159
41942
|
},
|
|
41943
|
+
async readAsync() {
|
|
41944
|
+
return null;
|
|
41945
|
+
},
|
|
41160
41946
|
remove() {
|
|
41161
41947
|
}
|
|
41162
41948
|
}
|
|
41163
41949
|
);
|
|
41950
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2) => (url2) => {
|
|
41951
|
+
url2 = new URL(url2, document.baseURI || platform.origin);
|
|
41952
|
+
return origin2.protocol === url2.protocol && origin2.host === url2.host && origin2.port === url2.port;
|
|
41953
|
+
})(new URL(platform.origin)) : () => true;
|
|
41954
|
+
function assertParamsAcyclic(params) {
|
|
41955
|
+
const pending = [{
|
|
41956
|
+
value: params
|
|
41957
|
+
}];
|
|
41958
|
+
const active = /* @__PURE__ */ new WeakSet();
|
|
41959
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
41960
|
+
while (pending.length) {
|
|
41961
|
+
const {
|
|
41962
|
+
value,
|
|
41963
|
+
done
|
|
41964
|
+
} = pending.pop();
|
|
41965
|
+
if (!utils$1.isPlainObject(value) && !utils$1.isArray(value))
|
|
41966
|
+
continue;
|
|
41967
|
+
if (done) {
|
|
41968
|
+
active.delete(value);
|
|
41969
|
+
continue;
|
|
41970
|
+
}
|
|
41971
|
+
if (active.has(value)) {
|
|
41972
|
+
throw new AxiosError("Circular reference detected in params", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
41973
|
+
}
|
|
41974
|
+
if (visited.has(value))
|
|
41975
|
+
continue;
|
|
41976
|
+
visited.add(value);
|
|
41977
|
+
active.add(value);
|
|
41978
|
+
pending.push({
|
|
41979
|
+
value,
|
|
41980
|
+
done: true
|
|
41981
|
+
});
|
|
41982
|
+
const keys = Object.keys(value);
|
|
41983
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
41984
|
+
Object.getOwnPropertySymbols(value).forEach((key) => {
|
|
41985
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
41986
|
+
if (descriptor && descriptor.enumerable)
|
|
41987
|
+
keys.push(key);
|
|
41988
|
+
});
|
|
41989
|
+
}
|
|
41990
|
+
keys.forEach((key) => {
|
|
41991
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
41992
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
41993
|
+
if (descriptor && utils$1.hasOwnProp(descriptor, "value")) {
|
|
41994
|
+
pending.push({
|
|
41995
|
+
value: descriptor.value
|
|
41996
|
+
});
|
|
41997
|
+
}
|
|
41998
|
+
} else {
|
|
41999
|
+
pending.push({
|
|
42000
|
+
value: value[key]
|
|
42001
|
+
});
|
|
42002
|
+
}
|
|
42003
|
+
});
|
|
42004
|
+
}
|
|
42005
|
+
}
|
|
41164
42006
|
var headersToObject = (thing) => thing instanceof AxiosHeaders ? {
|
|
41165
42007
|
...thing
|
|
41166
42008
|
} : thing;
|
|
41167
|
-
|
|
41168
|
-
|
|
41169
|
-
|
|
41170
|
-
|
|
41171
|
-
|
|
41172
|
-
|
|
41173
|
-
// this data descriptor into an accessor descriptor on the way in.
|
|
41174
|
-
__proto__: null,
|
|
41175
|
-
value: Object.prototype.hasOwnProperty,
|
|
41176
|
-
enumerable: false,
|
|
41177
|
-
writable: true,
|
|
41178
|
-
configurable: true
|
|
41179
|
-
});
|
|
41180
|
-
function getMergedValue(target, source, prop, caseless) {
|
|
41181
|
-
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
41182
|
-
return utils$1.merge.call({
|
|
41183
|
-
caseless
|
|
41184
|
-
}, target, source);
|
|
41185
|
-
} else if (utils$1.isPlainObject(source)) {
|
|
41186
|
-
return utils$1.merge({}, source);
|
|
41187
|
-
} else if (utils$1.isArray(source)) {
|
|
41188
|
-
return source.slice();
|
|
41189
|
-
}
|
|
41190
|
-
return source;
|
|
42009
|
+
var ownEnumerableKeys = (thing) => {
|
|
42010
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
42011
|
+
return Object.keys(thing).concat(Object.getOwnPropertySymbols(thing).filter((symbol) => {
|
|
42012
|
+
const descriptor = Object.getOwnPropertyDescriptor(thing, symbol);
|
|
42013
|
+
return descriptor && descriptor.enumerable;
|
|
42014
|
+
}));
|
|
41191
42015
|
}
|
|
41192
|
-
|
|
41193
|
-
|
|
41194
|
-
|
|
41195
|
-
|
|
41196
|
-
|
|
41197
|
-
|
|
42016
|
+
return Object.keys(thing);
|
|
42017
|
+
};
|
|
42018
|
+
function mergeParams(a, b) {
|
|
42019
|
+
const pending = [];
|
|
42020
|
+
const copies = /* @__PURE__ */ new WeakMap();
|
|
42021
|
+
const empty = {};
|
|
42022
|
+
function copy(target, source) {
|
|
42023
|
+
if (!utils$1.isPlainObject(source)) {
|
|
42024
|
+
return utils$1.isArray(source) ? source.slice() : source;
|
|
42025
|
+
}
|
|
42026
|
+
const base = utils$1.isPlainObject(target) ? target : empty;
|
|
42027
|
+
let bases = copies.get(source);
|
|
42028
|
+
if (!bases) {
|
|
42029
|
+
bases = /* @__PURE__ */ new WeakMap();
|
|
42030
|
+
copies.set(source, bases);
|
|
42031
|
+
}
|
|
42032
|
+
if (bases.has(base))
|
|
42033
|
+
return bases.get(base);
|
|
42034
|
+
const result2 = {};
|
|
42035
|
+
bases.set(base, result2);
|
|
42036
|
+
pending.push({
|
|
42037
|
+
base,
|
|
42038
|
+
source,
|
|
42039
|
+
result: result2
|
|
42040
|
+
});
|
|
42041
|
+
return result2;
|
|
41198
42042
|
}
|
|
41199
|
-
|
|
41200
|
-
|
|
41201
|
-
|
|
41202
|
-
|
|
42043
|
+
const result = utils$1.isUndefined(b) ? copy(void 0, a) : copy(a, b);
|
|
42044
|
+
while (pending.length) {
|
|
42045
|
+
const {
|
|
42046
|
+
base,
|
|
42047
|
+
source,
|
|
42048
|
+
result: target
|
|
42049
|
+
} = pending.pop();
|
|
42050
|
+
const baseKeys = new Set(ownEnumerableKeys(base));
|
|
42051
|
+
const sourceKeys = new Set(ownEnumerableKeys(source));
|
|
42052
|
+
const keys = /* @__PURE__ */ new Set([...baseKeys, ...sourceKeys]);
|
|
42053
|
+
keys.forEach((key) => {
|
|
42054
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype")
|
|
42055
|
+
return;
|
|
42056
|
+
const hasSource = sourceKeys.has(key);
|
|
42057
|
+
const value = hasSource ? source[key] : void 0;
|
|
42058
|
+
const previous = (!hasSource || utils$1.isPlainObject(value)) && baseKeys.has(key) ? base[key] : void 0;
|
|
42059
|
+
target[key] = hasSource ? copy(previous, value) : copy(void 0, previous);
|
|
42060
|
+
});
|
|
41203
42061
|
}
|
|
41204
|
-
|
|
41205
|
-
|
|
41206
|
-
|
|
41207
|
-
|
|
41208
|
-
|
|
41209
|
-
|
|
42062
|
+
assertParamsAcyclic(result);
|
|
42063
|
+
return result;
|
|
42064
|
+
}
|
|
42065
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
42066
|
+
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
42067
|
+
return utils$1.merge.call({
|
|
42068
|
+
caseless
|
|
42069
|
+
}, target, source);
|
|
42070
|
+
} else if (utils$1.isPlainObject(source)) {
|
|
42071
|
+
return utils$1.merge({}, source);
|
|
42072
|
+
} else if (utils$1.isArray(source)) {
|
|
42073
|
+
return source.slice();
|
|
41210
42074
|
}
|
|
41211
|
-
|
|
41212
|
-
|
|
41213
|
-
|
|
41214
|
-
|
|
41215
|
-
|
|
41216
|
-
|
|
41217
|
-
|
|
41218
|
-
|
|
41219
|
-
|
|
42075
|
+
return source;
|
|
42076
|
+
}
|
|
42077
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
42078
|
+
if (!utils$1.isUndefined(b)) {
|
|
42079
|
+
return getMergedValue(a, b, prop, caseless);
|
|
42080
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
42081
|
+
return getMergedValue(void 0, a, prop, caseless);
|
|
42082
|
+
}
|
|
42083
|
+
}
|
|
42084
|
+
function valueFromConfig2(a, b) {
|
|
42085
|
+
if (!utils$1.isUndefined(b)) {
|
|
42086
|
+
return getMergedValue(void 0, b);
|
|
42087
|
+
}
|
|
42088
|
+
}
|
|
42089
|
+
function defaultToConfig2(a, b) {
|
|
42090
|
+
if (!utils$1.isUndefined(b)) {
|
|
42091
|
+
return getMergedValue(void 0, b);
|
|
42092
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
42093
|
+
return getMergedValue(void 0, a);
|
|
42094
|
+
}
|
|
42095
|
+
}
|
|
42096
|
+
function getMergedTransitionalOption(config1, config2, prop) {
|
|
42097
|
+
const transitional2 = utils$1.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
42098
|
+
if (!utils$1.isUndefined(transitional2)) {
|
|
42099
|
+
if (utils$1.isPlainObject(transitional2)) {
|
|
42100
|
+
if (utils$1.hasOwnProp(transitional2, prop)) {
|
|
42101
|
+
return transitional2[prop];
|
|
41220
42102
|
}
|
|
42103
|
+
} else {
|
|
42104
|
+
return void 0;
|
|
41221
42105
|
}
|
|
41222
|
-
const transitional1 = utils$1.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
41223
|
-
if (utils$1.isPlainObject(transitional1) && utils$1.hasOwnProp(transitional1, prop)) {
|
|
41224
|
-
return transitional1[prop];
|
|
41225
|
-
}
|
|
41226
|
-
return void 0;
|
|
41227
42106
|
}
|
|
41228
|
-
|
|
41229
|
-
|
|
41230
|
-
|
|
41231
|
-
|
|
41232
|
-
|
|
41233
|
-
|
|
41234
|
-
|
|
41235
|
-
|
|
41236
|
-
|
|
41237
|
-
|
|
41238
|
-
|
|
41239
|
-
|
|
41240
|
-
|
|
41241
|
-
|
|
41242
|
-
|
|
41243
|
-
|
|
41244
|
-
|
|
41245
|
-
|
|
41246
|
-
|
|
41247
|
-
|
|
41248
|
-
|
|
41249
|
-
|
|
41250
|
-
|
|
41251
|
-
|
|
41252
|
-
|
|
41253
|
-
|
|
41254
|
-
|
|
41255
|
-
|
|
41256
|
-
|
|
41257
|
-
|
|
41258
|
-
|
|
41259
|
-
|
|
41260
|
-
|
|
41261
|
-
|
|
41262
|
-
|
|
41263
|
-
|
|
41264
|
-
|
|
41265
|
-
|
|
41266
|
-
|
|
41267
|
-
|
|
42107
|
+
const transitional1 = utils$1.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
42108
|
+
if (utils$1.isPlainObject(transitional1) && utils$1.hasOwnProp(transitional1, prop)) {
|
|
42109
|
+
return transitional1[prop];
|
|
42110
|
+
}
|
|
42111
|
+
return void 0;
|
|
42112
|
+
}
|
|
42113
|
+
function mergeDirectKeys(a, b, prop, config1, config2) {
|
|
42114
|
+
if (utils$1.hasOwnProp(config2, prop)) {
|
|
42115
|
+
return getMergedValue(a, b);
|
|
42116
|
+
} else if (utils$1.hasOwnProp(config1, prop)) {
|
|
42117
|
+
return getMergedValue(void 0, a);
|
|
42118
|
+
}
|
|
42119
|
+
}
|
|
42120
|
+
function mergeHeaders(a, b, prop) {
|
|
42121
|
+
return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
|
|
42122
|
+
}
|
|
42123
|
+
var hasOwnPropertyDescriptor = Object.freeze({
|
|
42124
|
+
__proto__: null,
|
|
42125
|
+
value: Object.prototype.hasOwnProperty,
|
|
42126
|
+
enumerable: false,
|
|
42127
|
+
writable: true,
|
|
42128
|
+
configurable: true
|
|
42129
|
+
});
|
|
42130
|
+
var mergeMap = {
|
|
42131
|
+
url: valueFromConfig2,
|
|
42132
|
+
method: valueFromConfig2,
|
|
42133
|
+
data: valueFromConfig2,
|
|
42134
|
+
baseURL: defaultToConfig2,
|
|
42135
|
+
transformRequest: defaultToConfig2,
|
|
42136
|
+
transformResponse: defaultToConfig2,
|
|
42137
|
+
params: mergeParams,
|
|
42138
|
+
paramsSerializer: defaultToConfig2,
|
|
42139
|
+
timeout: defaultToConfig2,
|
|
42140
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
42141
|
+
withCredentials: defaultToConfig2,
|
|
42142
|
+
withXSRFToken: defaultToConfig2,
|
|
42143
|
+
adapter: defaultToConfig2,
|
|
42144
|
+
responseType: defaultToConfig2,
|
|
42145
|
+
xsrfCookieName: defaultToConfig2,
|
|
42146
|
+
xsrfHeaderName: defaultToConfig2,
|
|
42147
|
+
onUploadProgress: defaultToConfig2,
|
|
42148
|
+
onDownloadProgress: defaultToConfig2,
|
|
42149
|
+
decompress: defaultToConfig2,
|
|
42150
|
+
maxContentLength: defaultToConfig2,
|
|
42151
|
+
maxBodyLength: defaultToConfig2,
|
|
42152
|
+
beforeRedirect: defaultToConfig2,
|
|
42153
|
+
transport: defaultToConfig2,
|
|
42154
|
+
httpAgent: defaultToConfig2,
|
|
42155
|
+
httpsAgent: defaultToConfig2,
|
|
42156
|
+
cancelToken: defaultToConfig2,
|
|
42157
|
+
socketPath: defaultToConfig2,
|
|
42158
|
+
allowedSocketPaths: defaultToConfig2,
|
|
42159
|
+
responseEncoding: defaultToConfig2,
|
|
42160
|
+
validateStatus: mergeDirectKeys,
|
|
42161
|
+
headers: mergeHeaders
|
|
42162
|
+
};
|
|
42163
|
+
function mergeConfig(config1, config2) {
|
|
42164
|
+
config1 = config1 || {};
|
|
42165
|
+
config2 = config2 || {};
|
|
42166
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
42167
|
+
Object.defineProperty(config, "hasOwnProperty", hasOwnPropertyDescriptor);
|
|
42168
|
+
const keys = ownEnumerableKeys({
|
|
41268
42169
|
...config1,
|
|
41269
42170
|
...config2
|
|
41270
|
-
})
|
|
42171
|
+
});
|
|
42172
|
+
for (let i = 0, len = keys.length; i < len; i++) {
|
|
42173
|
+
const prop = keys[i];
|
|
41271
42174
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
|
|
41272
|
-
|
|
42175
|
+
continue;
|
|
41273
42176
|
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
41274
42177
|
const a = utils$1.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
41275
42178
|
const b = utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
41276
|
-
const configValue = merge2(a, b, prop);
|
|
42179
|
+
const configValue = merge2 === mergeDirectKeys ? merge2(a, b, prop, config1, config2) : merge2(a, b, prop);
|
|
41277
42180
|
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
41278
|
-
}
|
|
41279
|
-
if (utils$1.hasOwnProp(config2, "validateStatus") && utils$1.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
|
|
42181
|
+
}
|
|
42182
|
+
if (utils$1.hasOwnProp(config2, "validateStatus") && utils$1.isUndefined(config2.validateStatus) && getMergedTransitionalOption(config1, config2, "validateStatusUndefinedResolves") === false) {
|
|
41280
42183
|
if (utils$1.hasOwnProp(config1, "validateStatus")) {
|
|
41281
42184
|
config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
41282
42185
|
} else {
|
|
@@ -41285,20 +42188,9 @@ var require_axios = __commonJS({
|
|
|
41285
42188
|
}
|
|
41286
42189
|
return config;
|
|
41287
42190
|
}
|
|
41288
|
-
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
41289
|
-
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
41290
|
-
if (policy !== "content-only") {
|
|
41291
|
-
headers.set(formHeaders);
|
|
41292
|
-
return;
|
|
41293
|
-
}
|
|
41294
|
-
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
41295
|
-
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
41296
|
-
headers.set(key, val);
|
|
41297
|
-
}
|
|
41298
|
-
});
|
|
41299
|
-
}
|
|
41300
42191
|
var encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
41301
|
-
|
|
42192
|
+
var readCookie = (name) => cookies.read(name);
|
|
42193
|
+
function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
41302
42194
|
const newConfig = mergeConfig({}, config);
|
|
41303
42195
|
const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
41304
42196
|
const data = own2("data");
|
|
@@ -41315,17 +42207,24 @@ var require_axios = __commonJS({
|
|
|
41315
42207
|
if (auth) {
|
|
41316
42208
|
const username = utils$1.getSafeProp(auth, "username") || "";
|
|
41317
42209
|
const password = utils$1.getSafeProp(auth, "password") || "";
|
|
42210
|
+
const transitional = own2("transitional");
|
|
42211
|
+
const encodeUsername = transitional && utils$1.hasOwnProp(transitional, "encodeBasicAuthUsername") && transitional.encodeBasicAuthUsername === true;
|
|
41318
42212
|
try {
|
|
41319
|
-
headers.set(
|
|
42213
|
+
headers.set(
|
|
42214
|
+
"Authorization",
|
|
42215
|
+
// Preserve legacy username bytes unless the caller opts in to UTF-8.
|
|
42216
|
+
"Basic " + btoa((encodeUsername ? encodeUTF8$1(username) : username) + ":" + (password ? encodeUTF8$1(password) : ""))
|
|
42217
|
+
);
|
|
41320
42218
|
} catch (e) {
|
|
41321
42219
|
throw AxiosError.from(e, AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
41322
42220
|
}
|
|
41323
42221
|
}
|
|
41324
42222
|
if (utils$1.isFormData(data)) {
|
|
42223
|
+
const getHeaders = utils$1.getSafeProp(data, "getHeaders");
|
|
41325
42224
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv || utils$1.isReactNative(data)) {
|
|
41326
42225
|
headers.setContentType(void 0);
|
|
41327
|
-
} else if (utils$1.isFunction(
|
|
41328
|
-
setFormDataHeaders(headers,
|
|
42226
|
+
} else if (utils$1.isFunction(getHeaders)) {
|
|
42227
|
+
setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
|
|
41329
42228
|
}
|
|
41330
42229
|
}
|
|
41331
42230
|
if (platform.hasStandardBrowserEnv) {
|
|
@@ -41334,7 +42233,7 @@ var require_axios = __commonJS({
|
|
|
41334
42233
|
}
|
|
41335
42234
|
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin(newConfig.url);
|
|
41336
42235
|
if (shouldSendXSRF) {
|
|
41337
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName &&
|
|
42236
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && readXsrfCookie(xsrfCookieName);
|
|
41338
42237
|
if (xsrfValue) {
|
|
41339
42238
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
41340
42239
|
}
|
|
@@ -41345,7 +42244,17 @@ var require_axios = __commonJS({
|
|
|
41345
42244
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
41346
42245
|
var xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
41347
42246
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
41348
|
-
|
|
42247
|
+
let useAsyncXsrf;
|
|
42248
|
+
try {
|
|
42249
|
+
const store = platform.hasStandardBrowserEnv && typeof window !== "undefined" && window.cookieStore;
|
|
42250
|
+
useAsyncXsrf = store && utils$1.isFunction(store.get);
|
|
42251
|
+
} catch (e) {
|
|
42252
|
+
}
|
|
42253
|
+
let xsrfCookieName;
|
|
42254
|
+
const _config = resolveConfig(config, useAsyncXsrf ? (name) => {
|
|
42255
|
+
xsrfCookieName = name;
|
|
42256
|
+
return null;
|
|
42257
|
+
} : void 0);
|
|
41349
42258
|
let requestData = _config.data;
|
|
41350
42259
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
41351
42260
|
let {
|
|
@@ -41354,18 +42263,59 @@ var require_axios = __commonJS({
|
|
|
41354
42263
|
onDownloadProgress
|
|
41355
42264
|
} = _config;
|
|
41356
42265
|
let onCanceled;
|
|
42266
|
+
let timeoutId;
|
|
41357
42267
|
let uploadThrottled, downloadThrottled;
|
|
41358
|
-
let flushUpload, flushDownload;
|
|
42268
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
41359
42269
|
function done() {
|
|
41360
|
-
|
|
41361
|
-
|
|
42270
|
+
clearTimeout(timeoutId);
|
|
42271
|
+
try {
|
|
42272
|
+
flushUpload && flushUpload();
|
|
42273
|
+
} catch (err) {
|
|
42274
|
+
setTimeout(() => {
|
|
42275
|
+
throw err;
|
|
42276
|
+
});
|
|
42277
|
+
}
|
|
42278
|
+
try {
|
|
42279
|
+
flushDownload && flushDownload();
|
|
42280
|
+
} catch (err) {
|
|
42281
|
+
setTimeout(() => {
|
|
42282
|
+
throw err;
|
|
42283
|
+
});
|
|
42284
|
+
}
|
|
42285
|
+
if (request) {
|
|
42286
|
+
downloadThrottled && request.removeEventListener("progress", downloadThrottled);
|
|
42287
|
+
if (request.upload) {
|
|
42288
|
+
uploadThrottled && request.upload.removeEventListener("progress", uploadThrottled);
|
|
42289
|
+
flushUpload && request.upload.removeEventListener("loadend", flushUpload);
|
|
42290
|
+
}
|
|
42291
|
+
}
|
|
41362
42292
|
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
41363
42293
|
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
41364
42294
|
}
|
|
41365
42295
|
let request = new XMLHttpRequest();
|
|
41366
42296
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
41367
42297
|
request.timeout = _config.timeout;
|
|
41368
|
-
function onloadend() {
|
|
42298
|
+
function onloadend(event) {
|
|
42299
|
+
if (!request) {
|
|
42300
|
+
return;
|
|
42301
|
+
}
|
|
42302
|
+
if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
42303
|
+
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
42304
|
+
done();
|
|
42305
|
+
request = null;
|
|
42306
|
+
return;
|
|
42307
|
+
}
|
|
42308
|
+
try {
|
|
42309
|
+
if (event) {
|
|
42310
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
42311
|
+
} else {
|
|
42312
|
+
flushDownload && flushDownload();
|
|
42313
|
+
}
|
|
42314
|
+
} catch (err) {
|
|
42315
|
+
setTimeout(() => {
|
|
42316
|
+
throw err;
|
|
42317
|
+
});
|
|
42318
|
+
}
|
|
41369
42319
|
if (!request) {
|
|
41370
42320
|
return;
|
|
41371
42321
|
}
|
|
@@ -41418,6 +42368,8 @@ var require_axios = __commonJS({
|
|
|
41418
42368
|
request = null;
|
|
41419
42369
|
};
|
|
41420
42370
|
request.ontimeout = function handleTimeout() {
|
|
42371
|
+
if (!request)
|
|
42372
|
+
return;
|
|
41421
42373
|
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
41422
42374
|
const transitional = _config.transitional || transitionalDefaults;
|
|
41423
42375
|
if (_config.timeoutErrorMessage) {
|
|
@@ -41428,11 +42380,6 @@ var require_axios = __commonJS({
|
|
|
41428
42380
|
request = null;
|
|
41429
42381
|
};
|
|
41430
42382
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
41431
|
-
if ("setRequestHeader" in request) {
|
|
41432
|
-
utils$1.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
41433
|
-
request.setRequestHeader(key, val);
|
|
41434
|
-
});
|
|
41435
|
-
}
|
|
41436
42383
|
if (!utils$1.isUndefined(_config.withCredentials)) {
|
|
41437
42384
|
request.withCredentials = !!_config.withCredentials;
|
|
41438
42385
|
}
|
|
@@ -41440,7 +42387,7 @@ var require_axios = __commonJS({
|
|
|
41440
42387
|
request.responseType = _config.responseType;
|
|
41441
42388
|
}
|
|
41442
42389
|
if (onDownloadProgress) {
|
|
41443
|
-
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
42390
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(onDownloadProgress, true);
|
|
41444
42391
|
request.addEventListener("progress", downloadThrottled);
|
|
41445
42392
|
}
|
|
41446
42393
|
if (onUploadProgress && request.upload) {
|
|
@@ -41454,22 +42401,79 @@ var require_axios = __commonJS({
|
|
|
41454
42401
|
return;
|
|
41455
42402
|
}
|
|
41456
42403
|
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
41457
|
-
request
|
|
42404
|
+
const xhr = request;
|
|
41458
42405
|
done();
|
|
41459
42406
|
request = null;
|
|
42407
|
+
xhr.abort();
|
|
41460
42408
|
};
|
|
41461
42409
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
42410
|
+
if (!request)
|
|
42411
|
+
return;
|
|
41462
42412
|
if (_config.signal) {
|
|
41463
42413
|
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
41464
42414
|
}
|
|
41465
42415
|
}
|
|
42416
|
+
if (!request)
|
|
42417
|
+
return;
|
|
41466
42418
|
const protocol = parseProtocol(_config.url);
|
|
41467
42419
|
if (protocol && !platform.protocols.includes(protocol)) {
|
|
41468
42420
|
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
41469
42421
|
done();
|
|
41470
42422
|
return;
|
|
41471
42423
|
}
|
|
41472
|
-
|
|
42424
|
+
const sendRequest = () => {
|
|
42425
|
+
if (!request)
|
|
42426
|
+
return;
|
|
42427
|
+
if ("setRequestHeader" in request) {
|
|
42428
|
+
utils$1.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
42429
|
+
request.setRequestHeader(key, val);
|
|
42430
|
+
});
|
|
42431
|
+
}
|
|
42432
|
+
request.send(requestData || null);
|
|
42433
|
+
};
|
|
42434
|
+
if (xsrfCookieName) {
|
|
42435
|
+
const now = typeof performance !== "undefined" && utils$1.isFunction(performance.now) ? () => performance.now() : Date.now;
|
|
42436
|
+
const deadline = request.timeout > 0 ? now() + Number(request.timeout) : void 0;
|
|
42437
|
+
const abortOnTimeout = () => {
|
|
42438
|
+
if (!request)
|
|
42439
|
+
return;
|
|
42440
|
+
const xhr = request;
|
|
42441
|
+
xhr.ontimeout();
|
|
42442
|
+
xhr.abort();
|
|
42443
|
+
};
|
|
42444
|
+
if (deadline !== void 0) {
|
|
42445
|
+
const scheduleTimeout = () => {
|
|
42446
|
+
const remaining = deadline - now();
|
|
42447
|
+
if (remaining > 0) {
|
|
42448
|
+
timeoutId = setTimeout(scheduleTimeout, Math.min(remaining, 2147483647));
|
|
42449
|
+
} else {
|
|
42450
|
+
abortOnTimeout();
|
|
42451
|
+
}
|
|
42452
|
+
};
|
|
42453
|
+
scheduleTimeout();
|
|
42454
|
+
}
|
|
42455
|
+
cookies.readAsync(xsrfCookieName).then((value) => {
|
|
42456
|
+
if (!request)
|
|
42457
|
+
return;
|
|
42458
|
+
if (deadline !== void 0 && now() >= deadline) {
|
|
42459
|
+
abortOnTimeout();
|
|
42460
|
+
return;
|
|
42461
|
+
}
|
|
42462
|
+
if (value) {
|
|
42463
|
+
const headerName = utils$1.hasOwnProp(_config, "xsrfHeaderName") && _config.xsrfHeaderName;
|
|
42464
|
+
requestHeaders.set(headerName, value);
|
|
42465
|
+
}
|
|
42466
|
+
sendRequest();
|
|
42467
|
+
}).catch((error) => {
|
|
42468
|
+
if (!request)
|
|
42469
|
+
return;
|
|
42470
|
+
reject(AxiosError.from(error, null, config, request));
|
|
42471
|
+
done();
|
|
42472
|
+
request = null;
|
|
42473
|
+
});
|
|
42474
|
+
} else {
|
|
42475
|
+
sendRequest();
|
|
42476
|
+
}
|
|
41473
42477
|
});
|
|
41474
42478
|
};
|
|
41475
42479
|
var composeSignals = (signals, timeout) => {
|
|
@@ -41498,13 +42502,23 @@ var require_axios = __commonJS({
|
|
|
41498
42502
|
timer && clearTimeout(timer);
|
|
41499
42503
|
timer = null;
|
|
41500
42504
|
signals.forEach((signal2) => {
|
|
41501
|
-
|
|
42505
|
+
const unsubscribeSignal = utils$1.getSafeProp(signal2, "unsubscribe");
|
|
42506
|
+
utils$1.isFunction(unsubscribeSignal) ? unsubscribeSignal.call(signal2, onabort) : signal2.removeEventListener("abort", onabort);
|
|
41502
42507
|
});
|
|
41503
42508
|
signals = null;
|
|
41504
42509
|
};
|
|
41505
|
-
signals.forEach((signal2) =>
|
|
41506
|
-
|
|
41507
|
-
|
|
42510
|
+
signals.forEach((signal2) => {
|
|
42511
|
+
if (aborted) {
|
|
42512
|
+
return;
|
|
42513
|
+
}
|
|
42514
|
+
if (signal2.aborted) {
|
|
42515
|
+
onabort.call(signal2);
|
|
42516
|
+
return;
|
|
42517
|
+
}
|
|
42518
|
+
signal2.addEventListener("abort", onabort, {
|
|
42519
|
+
once: true
|
|
42520
|
+
});
|
|
42521
|
+
});
|
|
41508
42522
|
const {
|
|
41509
42523
|
signal
|
|
41510
42524
|
} = controller;
|
|
@@ -41592,7 +42606,121 @@ var require_axios = __commonJS({
|
|
|
41592
42606
|
highWaterMark: 2
|
|
41593
42607
|
});
|
|
41594
42608
|
};
|
|
42609
|
+
var CRLF = "\r\n";
|
|
42610
|
+
var normalizeLines = (value) => String(value).replace(/\r\n|\r|\n/g, CRLF);
|
|
42611
|
+
var escapeName = (value) => String(value).replace(/[\r\n"]/g, (char) => char === "\r" ? "%0D" : char === "\n" ? "%0A" : "%22");
|
|
42612
|
+
var stringBytes = (value, normalize) => {
|
|
42613
|
+
let length = 0;
|
|
42614
|
+
for (let i = 0; i < value.length; i++) {
|
|
42615
|
+
const code = value.charCodeAt(i);
|
|
42616
|
+
if (normalize && (code === 13 || code === 10)) {
|
|
42617
|
+
if (code === 13 && value.charCodeAt(i + 1) === 10)
|
|
42618
|
+
i++;
|
|
42619
|
+
length += 2;
|
|
42620
|
+
} else if (code < 128) {
|
|
42621
|
+
length++;
|
|
42622
|
+
} else if (code < 2048) {
|
|
42623
|
+
length += 2;
|
|
42624
|
+
} else if (code >= 55296 && code <= 56319 && value.charCodeAt(i + 1) >= 56320 && value.charCodeAt(i + 1) <= 57343) {
|
|
42625
|
+
length += 4;
|
|
42626
|
+
i++;
|
|
42627
|
+
} else {
|
|
42628
|
+
length += 3;
|
|
42629
|
+
}
|
|
42630
|
+
}
|
|
42631
|
+
return length;
|
|
42632
|
+
};
|
|
42633
|
+
var FormDataError = class extends TypeError {
|
|
42634
|
+
constructor(message, reason) {
|
|
42635
|
+
super(message);
|
|
42636
|
+
this.name = "FormDataError";
|
|
42637
|
+
this.reason = reason;
|
|
42638
|
+
}
|
|
42639
|
+
};
|
|
42640
|
+
function formDataToBlob(form, Blob2, limit, limitError, boundary) {
|
|
42641
|
+
if (!utils$1.isFunction(Blob2)) {
|
|
42642
|
+
throw new FormDataError("Blob is not supported", "blob");
|
|
42643
|
+
}
|
|
42644
|
+
if (!utils$1.isString(boundary) || !/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(boundary) || / $/.test(boundary)) {
|
|
42645
|
+
throw new FormDataError("Invalid multipart boundary", "boundary");
|
|
42646
|
+
}
|
|
42647
|
+
const footer = "--" + boundary + "--" + CRLF;
|
|
42648
|
+
let length = footer.length;
|
|
42649
|
+
const parts = [];
|
|
42650
|
+
const checkLength = (extra) => {
|
|
42651
|
+
if (length + extra > limit)
|
|
42652
|
+
throw limitError();
|
|
42653
|
+
};
|
|
42654
|
+
checkLength(0);
|
|
42655
|
+
for (const [name, value] of form) {
|
|
42656
|
+
const isString2 = utils$1.isString(value);
|
|
42657
|
+
const valueLength = isString2 ? stringBytes(value, true) : value.size;
|
|
42658
|
+
if (!Number.isFinite(valueLength) || valueLength < 0) {
|
|
42659
|
+
throw new FormDataError("Unsupported FormData part size", "part");
|
|
42660
|
+
}
|
|
42661
|
+
checkLength(valueLength + stringBytes(name, true) + (!isString2 && value.name ? stringBytes(value.name, false) : 0) + (!isString2 && value.type ? stringBytes(value.type, false) : 0));
|
|
42662
|
+
let header = "--" + boundary + CRLF + 'Content-Disposition: form-data; name="' + escapeName(normalizeLines(name)) + '"';
|
|
42663
|
+
if (!isString2) {
|
|
42664
|
+
header += '; filename="' + escapeName(utils$1.isString(value.name) ? value.name : "blob") + '"' + CRLF + "Content-Type: " + String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
42665
|
+
}
|
|
42666
|
+
header += CRLF + CRLF;
|
|
42667
|
+
const partLength = stringBytes(header, false) + valueLength + CRLF.length;
|
|
42668
|
+
checkLength(partLength);
|
|
42669
|
+
length += partLength;
|
|
42670
|
+
parts.push({
|
|
42671
|
+
header,
|
|
42672
|
+
value,
|
|
42673
|
+
isString: isString2
|
|
42674
|
+
});
|
|
42675
|
+
}
|
|
42676
|
+
const blobParts = [];
|
|
42677
|
+
for (const part of parts) {
|
|
42678
|
+
blobParts.push(part.header, part.isString ? normalizeLines(part.value) : part.value, CRLF);
|
|
42679
|
+
}
|
|
42680
|
+
blobParts.push(footer);
|
|
42681
|
+
return new Blob2(blobParts, {
|
|
42682
|
+
type: "multipart/form-data; boundary=" + boundary
|
|
42683
|
+
});
|
|
42684
|
+
}
|
|
42685
|
+
function createMultipartBody(form, Blob2, limit, limitError, boundary) {
|
|
42686
|
+
if (!utils$1.isFunction(Blob2)) {
|
|
42687
|
+
throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
42688
|
+
}
|
|
42689
|
+
if (boundary === void 0) {
|
|
42690
|
+
if (utils$1.isFunction(platform.generateString)) {
|
|
42691
|
+
boundary = "axios-" + platform.generateString(36, "0123456789abcdef");
|
|
42692
|
+
} else {
|
|
42693
|
+
const crypto2 = utils$1.global.crypto;
|
|
42694
|
+
if (!crypto2 || !utils$1.isFunction(crypto2.getRandomValues)) {
|
|
42695
|
+
throw new AxiosError("Random byte generation is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
42696
|
+
}
|
|
42697
|
+
const random = new Uint8Array(18);
|
|
42698
|
+
crypto2.getRandomValues(random);
|
|
42699
|
+
boundary = "axios-" + Array.from(random, (value) => ("0" + value.toString(16)).slice(-2)).join("");
|
|
42700
|
+
}
|
|
42701
|
+
}
|
|
42702
|
+
try {
|
|
42703
|
+
return formDataToBlob(form, Blob2, limit, limitError, boundary);
|
|
42704
|
+
} catch (error) {
|
|
42705
|
+
if (error instanceof FormDataError) {
|
|
42706
|
+
const code = error.reason === "boundary" ? AxiosError.ERR_BAD_OPTION_VALUE : AxiosError.ERR_BAD_REQUEST;
|
|
42707
|
+
throw new AxiosError(error.message, code);
|
|
42708
|
+
}
|
|
42709
|
+
throw error;
|
|
42710
|
+
}
|
|
42711
|
+
}
|
|
41595
42712
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
42713
|
+
var DEFAULT_REQUEST_OPTIONS = {
|
|
42714
|
+
cache: "default",
|
|
42715
|
+
redirect: "follow",
|
|
42716
|
+
referrer: "about:client",
|
|
42717
|
+
referrerPolicy: "",
|
|
42718
|
+
mode: "cors",
|
|
42719
|
+
integrity: "",
|
|
42720
|
+
keepalive: false,
|
|
42721
|
+
priority: "auto",
|
|
42722
|
+
window: null
|
|
42723
|
+
};
|
|
41596
42724
|
var {
|
|
41597
42725
|
isFunction
|
|
41598
42726
|
} = utils$1;
|
|
@@ -41632,12 +42760,14 @@ var require_axios = __commonJS({
|
|
|
41632
42760
|
skipUndefined: true
|
|
41633
42761
|
}, {
|
|
41634
42762
|
Request: globalObject.Request,
|
|
41635
|
-
Response: globalObject.Response
|
|
42763
|
+
Response: globalObject.Response,
|
|
42764
|
+
Blob: globalObject.Blob
|
|
41636
42765
|
}, env);
|
|
42766
|
+
const envFetch = utils$1.hasOwnProp(env, "fetch") ? env.fetch : void 0;
|
|
41637
42767
|
const {
|
|
41638
|
-
fetch: envFetch,
|
|
41639
42768
|
Request,
|
|
41640
|
-
Response
|
|
42769
|
+
Response,
|
|
42770
|
+
Blob: Blob2
|
|
41641
42771
|
} = env;
|
|
41642
42772
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
41643
42773
|
const isRequestSupported = isFunction(Request);
|
|
@@ -41664,6 +42794,13 @@ var require_axios = __commonJS({
|
|
|
41664
42794
|
return duplexAccessed && !hasContentType;
|
|
41665
42795
|
});
|
|
41666
42796
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
42797
|
+
const requestDefaults = Object.assign(/* @__PURE__ */ Object.create(null), DEFAULT_REQUEST_OPTIONS);
|
|
42798
|
+
if (isRequestSupported && !test(() => new Request(platform.origin, requestDefaults))) {
|
|
42799
|
+
delete requestDefaults.cache;
|
|
42800
|
+
if (!test(() => new Request(platform.origin, requestDefaults))) {
|
|
42801
|
+
requestDefaults.cache = DEFAULT_REQUEST_OPTIONS.cache;
|
|
42802
|
+
}
|
|
42803
|
+
}
|
|
41667
42804
|
const resolvers = {
|
|
41668
42805
|
stream: supportsResponseStream && ((res) => res.body)
|
|
41669
42806
|
};
|
|
@@ -41685,13 +42822,6 @@ var require_axios = __commonJS({
|
|
|
41685
42822
|
if (utils$1.isBlob(body)) {
|
|
41686
42823
|
return body.size;
|
|
41687
42824
|
}
|
|
41688
|
-
if (utils$1.isSpecCompliantForm(body)) {
|
|
41689
|
-
const _request = new Request(platform.origin, {
|
|
41690
|
-
method: "POST",
|
|
41691
|
-
body
|
|
41692
|
-
});
|
|
41693
|
-
return (await _request.arrayBuffer()).byteLength;
|
|
41694
|
-
}
|
|
41695
42825
|
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
41696
42826
|
return body.byteLength;
|
|
41697
42827
|
}
|
|
@@ -41721,7 +42851,8 @@ var require_axios = __commonJS({
|
|
|
41721
42851
|
withCredentials = "same-origin",
|
|
41722
42852
|
fetchOptions,
|
|
41723
42853
|
maxContentLength,
|
|
41724
|
-
maxBodyLength
|
|
42854
|
+
maxBodyLength,
|
|
42855
|
+
maxRedirects
|
|
41725
42856
|
} = resolveConfig(config);
|
|
41726
42857
|
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
41727
42858
|
const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
@@ -41735,6 +42866,7 @@ var require_axios = __commonJS({
|
|
|
41735
42866
|
});
|
|
41736
42867
|
let requestContentLength;
|
|
41737
42868
|
let pendingBodyError = null;
|
|
42869
|
+
let pendingResponseError = null;
|
|
41738
42870
|
const maxBodyLengthError = () => new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
|
|
41739
42871
|
try {
|
|
41740
42872
|
let auth = void 0;
|
|
@@ -41747,8 +42879,9 @@ var require_axios = __commonJS({
|
|
|
41747
42879
|
password
|
|
41748
42880
|
};
|
|
41749
42881
|
}
|
|
42882
|
+
let parsedURL;
|
|
41750
42883
|
if (maybeWithAuthCredentials(url2)) {
|
|
41751
|
-
|
|
42884
|
+
parsedURL = new URL(url2, platform.origin);
|
|
41752
42885
|
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
41753
42886
|
const urlUsername = decodeURIComponentSafe(parsedURL.username);
|
|
41754
42887
|
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
@@ -41767,12 +42900,24 @@ var require_axios = __commonJS({
|
|
|
41767
42900
|
headers.delete("authorization");
|
|
41768
42901
|
headers.set("Authorization", "Basic " + btoa(encodeUTF8((auth.username || "") + ":" + (auth.password || ""))));
|
|
41769
42902
|
}
|
|
41770
|
-
if (hasMaxContentLength &&
|
|
41771
|
-
const estimated = estimateDataURLDecodedBytes(
|
|
42903
|
+
if (hasMaxContentLength && parsedURL && parsedURL.protocol === "data:") {
|
|
42904
|
+
const estimated = estimateDataURLDecodedBytes(parsedURL.href);
|
|
41772
42905
|
if (estimated > maxContentLength) {
|
|
41773
42906
|
throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
41774
42907
|
}
|
|
41775
42908
|
}
|
|
42909
|
+
const formContentType = utils$1.isSpecCompliantForm(data) && AxiosHeaders.from(own2("headers")).getContentType();
|
|
42910
|
+
let formBoundary;
|
|
42911
|
+
if (utils$1.isString(formContentType) && /^multipart\/form-data(?:\s*;|$)/i.test(formContentType.trim())) {
|
|
42912
|
+
const parameters = AxiosHeaders.parseParameters(formContentType);
|
|
42913
|
+
if (utils$1.hasOwnProp(parameters, "boundary"))
|
|
42914
|
+
formBoundary = parameters.boundary;
|
|
42915
|
+
}
|
|
42916
|
+
if (utils$1.isSpecCompliantForm(data) && method !== "get" && method !== "head" && (hasMaxBodyLength || onUploadProgress && supportsRequestStream || formBoundary !== void 0)) {
|
|
42917
|
+
data = createMultipartBody(data, Blob2, hasMaxBodyLength ? maxBodyLength : Infinity, maxBodyLengthError, formBoundary);
|
|
42918
|
+
headers.setContentType(formBoundary === void 0 ? data.type : formContentType);
|
|
42919
|
+
requestContentLength = data.size;
|
|
42920
|
+
}
|
|
41776
42921
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
41777
42922
|
const outboundLength = await getBodyLength(data);
|
|
41778
42923
|
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
@@ -41822,17 +42967,44 @@ var require_axios = __commonJS({
|
|
|
41822
42967
|
}
|
|
41823
42968
|
}
|
|
41824
42969
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
41825
|
-
const
|
|
41826
|
-
|
|
42970
|
+
const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
|
|
42971
|
+
if (safeFetchOptions) {
|
|
42972
|
+
delete safeFetchOptions.body;
|
|
42973
|
+
delete safeFetchOptions.headers;
|
|
42974
|
+
delete safeFetchOptions.method;
|
|
42975
|
+
delete safeFetchOptions.signal;
|
|
42976
|
+
delete safeFetchOptions.duplex;
|
|
42977
|
+
delete safeFetchOptions.credentials;
|
|
42978
|
+
}
|
|
42979
|
+
const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
|
|
41827
42980
|
signal: composedSignal,
|
|
41828
42981
|
method: method.toUpperCase(),
|
|
41829
42982
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
41830
42983
|
body: data,
|
|
41831
42984
|
duplex: "half",
|
|
41832
42985
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
41833
|
-
};
|
|
42986
|
+
});
|
|
42987
|
+
if (isRequestSupported) {
|
|
42988
|
+
utils$1.forEach(requestDefaults, (value, key) => {
|
|
42989
|
+
if (resolvedOptions[key] === void 0) {
|
|
42990
|
+
resolvedOptions[key] = value;
|
|
42991
|
+
}
|
|
42992
|
+
});
|
|
42993
|
+
if (resolvedOptions.signal === void 0) {
|
|
42994
|
+
resolvedOptions.signal = null;
|
|
42995
|
+
}
|
|
42996
|
+
if (resolvedOptions.body === void 0) {
|
|
42997
|
+
resolvedOptions.body = null;
|
|
42998
|
+
}
|
|
42999
|
+
}
|
|
43000
|
+
if (maxRedirects === 0) {
|
|
43001
|
+
resolvedOptions.redirect = "manual";
|
|
43002
|
+
if (safeFetchOptions) {
|
|
43003
|
+
safeFetchOptions.redirect = "manual";
|
|
43004
|
+
}
|
|
43005
|
+
}
|
|
41834
43006
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
41835
|
-
let response = await (isRequestSupported ? _fetch2(request,
|
|
43007
|
+
let response = await (isRequestSupported ? _fetch2(request, safeFetchOptions) : _fetch2(url2, resolvedOptions));
|
|
41836
43008
|
const responseHeaders = AxiosHeaders.from(response.headers);
|
|
41837
43009
|
if (hasMaxContentLength) {
|
|
41838
43010
|
const declaredLength = utils$1.toFiniteNumber(responseHeaders.getContentLength());
|
|
@@ -41853,7 +43025,7 @@ var require_axios = __commonJS({
|
|
|
41853
43025
|
if (hasMaxContentLength) {
|
|
41854
43026
|
bytesRead = loadedBytes;
|
|
41855
43027
|
if (bytesRead > maxContentLength) {
|
|
41856
|
-
throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
43028
|
+
throw pendingResponseError = new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
41857
43029
|
}
|
|
41858
43030
|
}
|
|
41859
43031
|
onProgress && onProgress(loadedBytes);
|
|
@@ -41912,6 +43084,9 @@ var require_axios = __commonJS({
|
|
|
41912
43084
|
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
41913
43085
|
throw pendingBodyError;
|
|
41914
43086
|
}
|
|
43087
|
+
if (pendingResponseError) {
|
|
43088
|
+
throw pendingResponseError;
|
|
43089
|
+
}
|
|
41915
43090
|
if (err instanceof AxiosError) {
|
|
41916
43091
|
request && !err.request && (err.request = request);
|
|
41917
43092
|
throw err;
|
|
@@ -41933,13 +43108,20 @@ var require_axios = __commonJS({
|
|
|
41933
43108
|
};
|
|
41934
43109
|
var seedCache = /* @__PURE__ */ new Map();
|
|
41935
43110
|
var getFetch2 = (config) => {
|
|
41936
|
-
|
|
43111
|
+
const env = /* @__PURE__ */ Object.create(null);
|
|
43112
|
+
const configuredEnv = config && utils$1.hasOwnProp(config, "env") && config.env;
|
|
43113
|
+
["fetch", "Request", "Response", "Blob"].forEach((key) => {
|
|
43114
|
+
if (configuredEnv && utils$1.hasOwnProp(configuredEnv, key)) {
|
|
43115
|
+
env[key] = configuredEnv[key];
|
|
43116
|
+
}
|
|
43117
|
+
});
|
|
41937
43118
|
const {
|
|
41938
43119
|
fetch: fetch2,
|
|
41939
43120
|
Request,
|
|
41940
|
-
Response
|
|
43121
|
+
Response,
|
|
43122
|
+
Blob: Blob2
|
|
41941
43123
|
} = env;
|
|
41942
|
-
const seeds = [Request, Response, fetch2];
|
|
43124
|
+
const seeds = [Request, Response, fetch2, Blob2];
|
|
41943
43125
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
41944
43126
|
while (i--) {
|
|
41945
43127
|
seed = seeds[i];
|
|
@@ -42024,16 +43206,22 @@ var require_axios = __commonJS({
|
|
|
42024
43206
|
throw new CanceledError(null, config);
|
|
42025
43207
|
}
|
|
42026
43208
|
}
|
|
42027
|
-
function
|
|
43209
|
+
function elapsedSince(start) {
|
|
43210
|
+
return Math.max(0, Date.now() - start);
|
|
43211
|
+
}
|
|
43212
|
+
function dispatchRequest(_config) {
|
|
43213
|
+
const config = utils$1.toSafeFlatObject(_config);
|
|
42028
43214
|
throwIfCancellationRequested(config);
|
|
42029
|
-
config.headers = AxiosHeaders.from(config
|
|
43215
|
+
config.headers = AxiosHeaders.from(utils$1.getSafeProp(config, "headers"));
|
|
42030
43216
|
config.data = transformData.call(config, config.transformRequest);
|
|
42031
43217
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
42032
43218
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
42033
43219
|
}
|
|
42034
43220
|
const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
|
|
43221
|
+
const start = Date.now();
|
|
42035
43222
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
42036
43223
|
throwIfCancellationRequested(config);
|
|
43224
|
+
response.duration = elapsedSince(start);
|
|
42037
43225
|
config.response = response;
|
|
42038
43226
|
try {
|
|
42039
43227
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
@@ -42046,6 +43234,7 @@ var require_axios = __commonJS({
|
|
|
42046
43234
|
if (!isCancel(reason)) {
|
|
42047
43235
|
throwIfCancellationRequested(config);
|
|
42048
43236
|
if (reason && reason.response) {
|
|
43237
|
+
reason.response.duration = elapsedSince(start);
|
|
42049
43238
|
config.response = reason.response;
|
|
42050
43239
|
try {
|
|
42051
43240
|
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
@@ -42113,6 +43302,16 @@ var require_axios = __commonJS({
|
|
|
42113
43302
|
validators: validators$1
|
|
42114
43303
|
};
|
|
42115
43304
|
var validators = validator.validators;
|
|
43305
|
+
var isHeadersBucket = (value) => {
|
|
43306
|
+
if (value == null || utils$1.isPlainObject(value) || value instanceof AxiosHeaders) {
|
|
43307
|
+
return true;
|
|
43308
|
+
}
|
|
43309
|
+
try {
|
|
43310
|
+
return utils$1.isObject(value) && utils$1.getSafeProp(value, Symbol.toStringTag) === "AxiosHeaders" && ["toJSON", "set", "get", "has", "delete", "clear", "normalize", "concat", "toString", Symbol.iterator].every((method) => utils$1.isFunction(utils$1.getSafeProp(value, method)));
|
|
43311
|
+
} catch (e) {
|
|
43312
|
+
return false;
|
|
43313
|
+
}
|
|
43314
|
+
};
|
|
42116
43315
|
var Axios = class {
|
|
42117
43316
|
constructor(instanceConfig) {
|
|
42118
43317
|
this.defaults = instanceConfig || {};
|
|
@@ -42134,24 +43333,27 @@ var require_axios = __commonJS({
|
|
|
42134
43333
|
return await this._request(configOrUrl, config);
|
|
42135
43334
|
} catch (err) {
|
|
42136
43335
|
if (err instanceof Error) {
|
|
42137
|
-
let dummy = {};
|
|
42138
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
42139
|
-
const stack = (() => {
|
|
42140
|
-
if (!dummy.stack) {
|
|
42141
|
-
return "";
|
|
42142
|
-
}
|
|
42143
|
-
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
42144
|
-
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
42145
|
-
})();
|
|
42146
43336
|
try {
|
|
43337
|
+
let dummy = {};
|
|
43338
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
43339
|
+
const dummyStack = dummy.stack;
|
|
43340
|
+
let stack = "";
|
|
43341
|
+
if (typeof dummyStack === "string") {
|
|
43342
|
+
const firstNewlineIndex = dummyStack.indexOf("\n");
|
|
43343
|
+
stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
|
|
43344
|
+
}
|
|
42147
43345
|
if (!err.stack) {
|
|
42148
43346
|
err.stack = stack;
|
|
42149
43347
|
} else if (stack) {
|
|
42150
43348
|
const firstNewlineIndex = stack.indexOf("\n");
|
|
42151
43349
|
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
42152
|
-
const
|
|
42153
|
-
|
|
42154
|
-
|
|
43350
|
+
const duplicateCheckSuffix = secondNewlineIndex === -1 ? stack : stack.slice(secondNewlineIndex + 1);
|
|
43351
|
+
const currentStack = String(err.stack);
|
|
43352
|
+
const causeIndex = getCauseStackIndex(err, currentStack);
|
|
43353
|
+
const stackHead = causeIndex === -1 ? currentStack : currentStack.slice(0, causeIndex);
|
|
43354
|
+
const causeSection = causeIndex === -1 ? "" : currentStack.slice(causeIndex);
|
|
43355
|
+
if (!stackHead.endsWith(duplicateCheckSuffix)) {
|
|
43356
|
+
err.stack = stackHead + "\n" + stack + causeSection;
|
|
42155
43357
|
}
|
|
42156
43358
|
}
|
|
42157
43359
|
} catch (e) {
|
|
@@ -42180,7 +43382,8 @@ var require_axios = __commonJS({
|
|
|
42180
43382
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
42181
43383
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
42182
43384
|
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
42183
|
-
validateStatusUndefinedResolves: validators.transitional(validators.boolean)
|
|
43385
|
+
validateStatusUndefinedResolves: validators.transitional(validators.boolean),
|
|
43386
|
+
encodeBasicAuthUsername: validators.transitional(validators.boolean)
|
|
42184
43387
|
}, false);
|
|
42185
43388
|
}
|
|
42186
43389
|
if (paramsSerializer != null) {
|
|
@@ -42197,7 +43400,7 @@ var require_axios = __commonJS({
|
|
|
42197
43400
|
}
|
|
42198
43401
|
if (config.allowAbsoluteUrls !== void 0)
|
|
42199
43402
|
;
|
|
42200
|
-
else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
43403
|
+
else if (utils$1.hasOwnProp(this.defaults, "allowAbsoluteUrls") && this.defaults.allowAbsoluteUrls !== void 0) {
|
|
42201
43404
|
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
42202
43405
|
} else {
|
|
42203
43406
|
config.allowAbsoluteUrls = true;
|
|
@@ -42206,10 +43409,14 @@ var require_axios = __commonJS({
|
|
|
42206
43409
|
baseUrl: validators.spelling("baseURL"),
|
|
42207
43410
|
withXsrfToken: validators.spelling("withXSRFToken")
|
|
42208
43411
|
}, true);
|
|
42209
|
-
config.method = (config
|
|
42210
|
-
|
|
42211
|
-
|
|
42212
|
-
|
|
43412
|
+
config.method = (utils$1.getSafeProp(config, "method") || utils$1.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
43413
|
+
const commonHeaders = utils$1.getSafeProp(headers, "common");
|
|
43414
|
+
const methodHeaders = utils$1.getSafeProp(headers, config.method);
|
|
43415
|
+
const contextHeaders = headers && utils$1.merge(isHeadersBucket(commonHeaders) ? commonHeaders : void 0, isHeadersBucket(methodHeaders) ? methodHeaders : void 0);
|
|
43416
|
+
headers && utils$1.forEach(methodList.concat("common"), (method) => {
|
|
43417
|
+
if (isHeadersBucket(utils$1.getSafeProp(headers, method))) {
|
|
43418
|
+
delete headers[method];
|
|
43419
|
+
}
|
|
42213
43420
|
});
|
|
42214
43421
|
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
42215
43422
|
const requestInterceptorChain = [];
|
|
@@ -42251,16 +43458,29 @@ var require_axios = __commonJS({
|
|
|
42251
43458
|
const onFulfilled = requestInterceptorChain[i++];
|
|
42252
43459
|
const onRejected = requestInterceptorChain[i++];
|
|
42253
43460
|
try {
|
|
42254
|
-
newConfig = onFulfilled(newConfig);
|
|
43461
|
+
newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
|
|
42255
43462
|
} catch (error) {
|
|
42256
|
-
onRejected
|
|
43463
|
+
if (!onRejected) {
|
|
43464
|
+
promise = Promise.reject(error);
|
|
43465
|
+
break;
|
|
43466
|
+
}
|
|
43467
|
+
try {
|
|
43468
|
+
const rejectedResult = onRejected.call(this, error);
|
|
43469
|
+
if (utils$1.isThenable(rejectedResult)) {
|
|
43470
|
+
promise = Promise.resolve(rejectedResult).then(() => dispatchRequest.call(this, newConfig));
|
|
43471
|
+
}
|
|
43472
|
+
} catch (rejectedError) {
|
|
43473
|
+
promise = Promise.reject(rejectedError);
|
|
43474
|
+
}
|
|
42257
43475
|
break;
|
|
42258
43476
|
}
|
|
42259
43477
|
}
|
|
42260
|
-
|
|
42261
|
-
|
|
42262
|
-
|
|
42263
|
-
|
|
43478
|
+
if (!promise) {
|
|
43479
|
+
try {
|
|
43480
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
43481
|
+
} catch (error) {
|
|
43482
|
+
promise = Promise.reject(error);
|
|
43483
|
+
}
|
|
42264
43484
|
}
|
|
42265
43485
|
i = 0;
|
|
42266
43486
|
len = responseInterceptorChain.length;
|
|
@@ -42276,7 +43496,7 @@ var require_axios = __commonJS({
|
|
|
42276
43496
|
}
|
|
42277
43497
|
};
|
|
42278
43498
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
42279
|
-
Axios.prototype[method] = function(url2, config) {
|
|
43499
|
+
Axios.prototype[method] = async function(url2, config) {
|
|
42280
43500
|
return this.request(mergeConfig(config || {}, {
|
|
42281
43501
|
method,
|
|
42282
43502
|
url: url2,
|
|
@@ -42286,7 +43506,7 @@ var require_axios = __commonJS({
|
|
|
42286
43506
|
});
|
|
42287
43507
|
utils$1.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
42288
43508
|
function generateHTTPMethod(isForm) {
|
|
42289
|
-
return function httpMethod(url2, data, config) {
|
|
43509
|
+
return async function httpMethod(url2, data, config) {
|
|
42290
43510
|
return this.request(mergeConfig(config || {}, {
|
|
42291
43511
|
method,
|
|
42292
43512
|
headers: isForm ? {
|
|
@@ -42443,14 +43663,22 @@ var require_axios = __commonJS({
|
|
|
42443
43663
|
Gone: 410,
|
|
42444
43664
|
LengthRequired: 411,
|
|
42445
43665
|
PreconditionFailed: 412,
|
|
43666
|
+
/**
|
|
43667
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
43668
|
+
*/
|
|
42446
43669
|
PayloadTooLarge: 413,
|
|
43670
|
+
ContentTooLarge: 413,
|
|
42447
43671
|
UriTooLong: 414,
|
|
42448
43672
|
UnsupportedMediaType: 415,
|
|
42449
43673
|
RangeNotSatisfiable: 416,
|
|
42450
43674
|
ExpectationFailed: 417,
|
|
42451
43675
|
ImATeapot: 418,
|
|
42452
43676
|
MisdirectedRequest: 421,
|
|
43677
|
+
/**
|
|
43678
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
43679
|
+
*/
|
|
42453
43680
|
UnprocessableEntity: 422,
|
|
43681
|
+
UnprocessableContent: 422,
|
|
42454
43682
|
Locked: 423,
|
|
42455
43683
|
FailedDependency: 424,
|
|
42456
43684
|
TooEarly: 425,
|
|
@@ -42470,6 +43698,7 @@ var require_axios = __commonJS({
|
|
|
42470
43698
|
LoopDetected: 508,
|
|
42471
43699
|
NotExtended: 510,
|
|
42472
43700
|
NetworkAuthenticationRequired: 511,
|
|
43701
|
+
WebServerReturnsAnUnknownError: 520,
|
|
42473
43702
|
WebServerIsDown: 521,
|
|
42474
43703
|
ConnectionTimedOut: 522,
|
|
42475
43704
|
OriginIsUnreachable: 523,
|
|
@@ -42478,7 +43707,9 @@ var require_axios = __commonJS({
|
|
|
42478
43707
|
InvalidSslCertificate: 526
|
|
42479
43708
|
};
|
|
42480
43709
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
42481
|
-
HttpStatusCode[value]
|
|
43710
|
+
if (HttpStatusCode[value] === void 0) {
|
|
43711
|
+
HttpStatusCode[value] = key;
|
|
43712
|
+
}
|
|
42482
43713
|
});
|
|
42483
43714
|
function createInstance(defaultConfig) {
|
|
42484
43715
|
const context = new Axios(defaultConfig);
|
|
@@ -49101,7 +50332,7 @@ mime-types/index.js:
|
|
|
49101
50332
|
*)
|
|
49102
50333
|
|
|
49103
50334
|
axios/dist/node/axios.cjs:
|
|
49104
|
-
(*! Axios v1.
|
|
50335
|
+
(*! Axios v1.21.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
49105
50336
|
|
|
49106
50337
|
posthog-node/lib/node/index.mjs:
|
|
49107
50338
|
(**
|