alpic 1.132.0 → 1.134.0
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/lib/vendor/pipenet.js +1920 -1217
- package/dist/lib/vendor/pipenet.js.map +4 -4
- package/package.json +2 -2
|
@@ -9996,7 +9996,7 @@ var require_form_data = __commonJS({
|
|
|
9996
9996
|
var path = __require("path");
|
|
9997
9997
|
var http3 = __require("http");
|
|
9998
9998
|
var https2 = __require("https");
|
|
9999
|
-
var
|
|
9999
|
+
var parseUrl2 = __require("url").parse;
|
|
10000
10000
|
var fs2 = __require("fs");
|
|
10001
10001
|
var Stream = __require("stream").Stream;
|
|
10002
10002
|
var crypto2 = __require("crypto");
|
|
@@ -10249,7 +10249,7 @@ var require_form_data = __commonJS({
|
|
|
10249
10249
|
var options;
|
|
10250
10250
|
var defaults2 = { method: "post" };
|
|
10251
10251
|
if (typeof params === "string") {
|
|
10252
|
-
params =
|
|
10252
|
+
params = parseUrl2(params);
|
|
10253
10253
|
options = populate({
|
|
10254
10254
|
port: params.port,
|
|
10255
10255
|
path: params.pathname,
|
|
@@ -10306,76 +10306,6 @@ var require_form_data = __commonJS({
|
|
|
10306
10306
|
}
|
|
10307
10307
|
});
|
|
10308
10308
|
|
|
10309
|
-
// ../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js
|
|
10310
|
-
var require_proxy_from_env = __commonJS({
|
|
10311
|
-
"../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"(exports) {
|
|
10312
|
-
"use strict";
|
|
10313
|
-
var parseUrl = __require("url").parse;
|
|
10314
|
-
var DEFAULT_PORTS = {
|
|
10315
|
-
ftp: 21,
|
|
10316
|
-
gopher: 70,
|
|
10317
|
-
http: 80,
|
|
10318
|
-
https: 443,
|
|
10319
|
-
ws: 80,
|
|
10320
|
-
wss: 443
|
|
10321
|
-
};
|
|
10322
|
-
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
10323
|
-
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
10324
|
-
};
|
|
10325
|
-
function getProxyForUrl(url2) {
|
|
10326
|
-
var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
|
|
10327
|
-
var proto = parsedUrl.protocol;
|
|
10328
|
-
var hostname = parsedUrl.host;
|
|
10329
|
-
var port = parsedUrl.port;
|
|
10330
|
-
if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
|
|
10331
|
-
return "";
|
|
10332
|
-
}
|
|
10333
|
-
proto = proto.split(":", 1)[0];
|
|
10334
|
-
hostname = hostname.replace(/:\d*$/, "");
|
|
10335
|
-
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
|
10336
|
-
if (!shouldProxy(hostname, port)) {
|
|
10337
|
-
return "";
|
|
10338
|
-
}
|
|
10339
|
-
var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
|
|
10340
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
|
10341
|
-
proxy = proto + "://" + proxy;
|
|
10342
|
-
}
|
|
10343
|
-
return proxy;
|
|
10344
|
-
}
|
|
10345
|
-
function shouldProxy(hostname, port) {
|
|
10346
|
-
var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
|
|
10347
|
-
if (!NO_PROXY) {
|
|
10348
|
-
return true;
|
|
10349
|
-
}
|
|
10350
|
-
if (NO_PROXY === "*") {
|
|
10351
|
-
return false;
|
|
10352
|
-
}
|
|
10353
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
10354
|
-
if (!proxy) {
|
|
10355
|
-
return true;
|
|
10356
|
-
}
|
|
10357
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
10358
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
10359
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
10360
|
-
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
10361
|
-
return true;
|
|
10362
|
-
}
|
|
10363
|
-
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
10364
|
-
return hostname !== parsedProxyHostname;
|
|
10365
|
-
}
|
|
10366
|
-
if (parsedProxyHostname.charAt(0) === "*") {
|
|
10367
|
-
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
10368
|
-
}
|
|
10369
|
-
return !stringEndsWith.call(hostname, parsedProxyHostname);
|
|
10370
|
-
});
|
|
10371
|
-
}
|
|
10372
|
-
function getEnv(key) {
|
|
10373
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
10374
|
-
}
|
|
10375
|
-
exports.getProxyForUrl = getProxyForUrl;
|
|
10376
|
-
}
|
|
10377
|
-
});
|
|
10378
|
-
|
|
10379
10309
|
// ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
|
|
10380
10310
|
var require_ms = __commonJS({
|
|
10381
10311
|
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
|
|
@@ -11502,7 +11432,7 @@ var require_follow_redirects = __commonJS({
|
|
|
11502
11432
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
11503
11433
|
}
|
|
11504
11434
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
11505
|
-
var currentUrlParts =
|
|
11435
|
+
var currentUrlParts = parseUrl2(this._currentUrl);
|
|
11506
11436
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
11507
11437
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
11508
11438
|
var redirectUrl = resolveUrl(location, currentUrl);
|
|
@@ -11541,7 +11471,7 @@ var require_follow_redirects = __commonJS({
|
|
|
11541
11471
|
if (isURL(input)) {
|
|
11542
11472
|
input = spreadUrlObject(input);
|
|
11543
11473
|
} else if (isString2(input)) {
|
|
11544
|
-
input = spreadUrlObject(
|
|
11474
|
+
input = spreadUrlObject(parseUrl2(input));
|
|
11545
11475
|
} else {
|
|
11546
11476
|
callback = options;
|
|
11547
11477
|
options = validateUrl(input);
|
|
@@ -11577,7 +11507,7 @@ var require_follow_redirects = __commonJS({
|
|
|
11577
11507
|
}
|
|
11578
11508
|
function noop2() {
|
|
11579
11509
|
}
|
|
11580
|
-
function
|
|
11510
|
+
function parseUrl2(input) {
|
|
11581
11511
|
var parsed;
|
|
11582
11512
|
if (useNativeURL) {
|
|
11583
11513
|
parsed = new URL2(input);
|
|
@@ -11590,7 +11520,7 @@ var require_follow_redirects = __commonJS({
|
|
|
11590
11520
|
return parsed;
|
|
11591
11521
|
}
|
|
11592
11522
|
function resolveUrl(relative, base) {
|
|
11593
|
-
return useNativeURL ? new URL2(relative, base) :
|
|
11523
|
+
return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
|
|
11594
11524
|
}
|
|
11595
11525
|
function validateUrl(input) {
|
|
11596
11526
|
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
@@ -11682,14 +11612,14 @@ var require_follow_redirects = __commonJS({
|
|
|
11682
11612
|
}
|
|
11683
11613
|
});
|
|
11684
11614
|
|
|
11685
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11615
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
|
|
11686
11616
|
function bind(fn, thisArg) {
|
|
11687
11617
|
return function wrap() {
|
|
11688
11618
|
return fn.apply(thisArg, arguments);
|
|
11689
11619
|
};
|
|
11690
11620
|
}
|
|
11691
11621
|
|
|
11692
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11622
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/utils.js
|
|
11693
11623
|
var { toString } = Object.prototype;
|
|
11694
11624
|
var { getPrototypeOf } = Object;
|
|
11695
11625
|
var { iterator, toStringTag } = Symbol;
|
|
@@ -11741,13 +11671,31 @@ var isEmptyObject = (val) => {
|
|
|
11741
11671
|
};
|
|
11742
11672
|
var isDate = kindOfTest("Date");
|
|
11743
11673
|
var isFile = kindOfTest("File");
|
|
11674
|
+
var isReactNativeBlob = (value) => {
|
|
11675
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
11676
|
+
};
|
|
11677
|
+
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
11744
11678
|
var isBlob = kindOfTest("Blob");
|
|
11745
11679
|
var isFileList = kindOfTest("FileList");
|
|
11746
11680
|
var isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
11681
|
+
function getGlobal() {
|
|
11682
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
11683
|
+
if (typeof self !== "undefined") return self;
|
|
11684
|
+
if (typeof window !== "undefined") return window;
|
|
11685
|
+
if (typeof global !== "undefined") return global;
|
|
11686
|
+
return {};
|
|
11687
|
+
}
|
|
11688
|
+
var G = getGlobal();
|
|
11689
|
+
var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
11747
11690
|
var isFormData = (thing) => {
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11691
|
+
if (!thing) return false;
|
|
11692
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
11693
|
+
const proto = getPrototypeOf(thing);
|
|
11694
|
+
if (!proto || proto === Object.prototype) return false;
|
|
11695
|
+
if (!isFunction(thing.append)) return false;
|
|
11696
|
+
const kind = kindOf(thing);
|
|
11697
|
+
return kind === "formdata" || // detect form-data instance
|
|
11698
|
+
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
|
|
11751
11699
|
};
|
|
11752
11700
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
11753
11701
|
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
@@ -11756,7 +11704,9 @@ var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
|
11756
11704
|
"Response",
|
|
11757
11705
|
"Headers"
|
|
11758
11706
|
].map(kindOfTest);
|
|
11759
|
-
var trim = (str) =>
|
|
11707
|
+
var trim = (str) => {
|
|
11708
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
11709
|
+
};
|
|
11760
11710
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
11761
11711
|
if (obj === null || typeof obj === "undefined") {
|
|
11762
11712
|
return;
|
|
@@ -11804,7 +11754,7 @@ var _global = (() => {
|
|
|
11804
11754
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
11805
11755
|
})();
|
|
11806
11756
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
11807
|
-
function merge() {
|
|
11757
|
+
function merge(...objs) {
|
|
11808
11758
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
11809
11759
|
const result = {};
|
|
11810
11760
|
const assignValue = (val, key) => {
|
|
@@ -11812,8 +11762,9 @@ function merge() {
|
|
|
11812
11762
|
return;
|
|
11813
11763
|
}
|
|
11814
11764
|
const targetKey = caseless && findKey(result, key) || key;
|
|
11815
|
-
|
|
11816
|
-
|
|
11765
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
11766
|
+
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
11767
|
+
result[targetKey] = merge(existing, val);
|
|
11817
11768
|
} else if (isPlainObject(val)) {
|
|
11818
11769
|
result[targetKey] = merge({}, val);
|
|
11819
11770
|
} else if (isArray(val)) {
|
|
@@ -11822,8 +11773,8 @@ function merge() {
|
|
|
11822
11773
|
result[targetKey] = val;
|
|
11823
11774
|
}
|
|
11824
11775
|
};
|
|
11825
|
-
for (let i = 0, l =
|
|
11826
|
-
|
|
11776
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
11777
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
11827
11778
|
}
|
|
11828
11779
|
return result;
|
|
11829
11780
|
}
|
|
@@ -11833,6 +11784,9 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
11833
11784
|
(val, key) => {
|
|
11834
11785
|
if (thisArg && isFunction(val)) {
|
|
11835
11786
|
Object.defineProperty(a, key, {
|
|
11787
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
11788
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
11789
|
+
__proto__: null,
|
|
11836
11790
|
value: bind(val, thisArg),
|
|
11837
11791
|
writable: true,
|
|
11838
11792
|
enumerable: true,
|
|
@@ -11840,6 +11794,7 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
11840
11794
|
});
|
|
11841
11795
|
} else {
|
|
11842
11796
|
Object.defineProperty(a, key, {
|
|
11797
|
+
__proto__: null,
|
|
11843
11798
|
value: val,
|
|
11844
11799
|
writable: true,
|
|
11845
11800
|
enumerable: true,
|
|
@@ -11858,17 +11813,16 @@ var stripBOM = (content) => {
|
|
|
11858
11813
|
return content;
|
|
11859
11814
|
};
|
|
11860
11815
|
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
11861
|
-
constructor.prototype = Object.create(
|
|
11862
|
-
superConstructor.prototype,
|
|
11863
|
-
descriptors
|
|
11864
|
-
);
|
|
11816
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
11865
11817
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
11818
|
+
__proto__: null,
|
|
11866
11819
|
value: constructor,
|
|
11867
11820
|
writable: true,
|
|
11868
11821
|
enumerable: false,
|
|
11869
11822
|
configurable: true
|
|
11870
11823
|
});
|
|
11871
11824
|
Object.defineProperty(constructor, "super", {
|
|
11825
|
+
__proto__: null,
|
|
11872
11826
|
value: superConstructor.prototype
|
|
11873
11827
|
});
|
|
11874
11828
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -11957,7 +11911,7 @@ var reduceDescriptors = (obj, reducer) => {
|
|
|
11957
11911
|
};
|
|
11958
11912
|
var freezeMethods = (obj) => {
|
|
11959
11913
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
11960
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].
|
|
11914
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
|
|
11961
11915
|
return false;
|
|
11962
11916
|
}
|
|
11963
11917
|
const value = obj[name];
|
|
@@ -12060,6 +12014,8 @@ var utils_default = {
|
|
|
12060
12014
|
isUndefined,
|
|
12061
12015
|
isDate,
|
|
12062
12016
|
isFile,
|
|
12017
|
+
isReactNativeBlob,
|
|
12018
|
+
isReactNative,
|
|
12063
12019
|
isBlob,
|
|
12064
12020
|
isRegExp,
|
|
12065
12021
|
isFunction,
|
|
@@ -12102,838 +12058,957 @@ var utils_default = {
|
|
|
12102
12058
|
isIterable
|
|
12103
12059
|
};
|
|
12104
12060
|
|
|
12105
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12106
|
-
var
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
|
|
12061
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
|
|
12062
|
+
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
12063
|
+
"age",
|
|
12064
|
+
"authorization",
|
|
12065
|
+
"content-length",
|
|
12066
|
+
"content-type",
|
|
12067
|
+
"etag",
|
|
12068
|
+
"expires",
|
|
12069
|
+
"from",
|
|
12070
|
+
"host",
|
|
12071
|
+
"if-modified-since",
|
|
12072
|
+
"if-unmodified-since",
|
|
12073
|
+
"last-modified",
|
|
12074
|
+
"location",
|
|
12075
|
+
"max-forwards",
|
|
12076
|
+
"proxy-authorization",
|
|
12077
|
+
"referer",
|
|
12078
|
+
"retry-after",
|
|
12079
|
+
"user-agent"
|
|
12080
|
+
]);
|
|
12081
|
+
var parseHeaders_default = (rawHeaders) => {
|
|
12082
|
+
const parsed = {};
|
|
12083
|
+
let key;
|
|
12084
|
+
let val;
|
|
12085
|
+
let i;
|
|
12086
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
12087
|
+
i = line.indexOf(":");
|
|
12088
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
12089
|
+
val = line.substring(i + 1).trim();
|
|
12090
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
12091
|
+
return;
|
|
12135
12092
|
}
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
-
|
|
12142
|
-
|
|
12143
|
-
|
|
12144
|
-
|
|
12145
|
-
|
|
12146
|
-
|
|
12147
|
-
lineNumber: this.lineNumber,
|
|
12148
|
-
columnNumber: this.columnNumber,
|
|
12149
|
-
stack: this.stack,
|
|
12150
|
-
// Axios
|
|
12151
|
-
config: utils_default.toJSONObject(this.config),
|
|
12152
|
-
code: this.code,
|
|
12153
|
-
status: this.status
|
|
12154
|
-
};
|
|
12155
|
-
}
|
|
12093
|
+
if (key === "set-cookie") {
|
|
12094
|
+
if (parsed[key]) {
|
|
12095
|
+
parsed[key].push(val);
|
|
12096
|
+
} else {
|
|
12097
|
+
parsed[key] = [val];
|
|
12098
|
+
}
|
|
12099
|
+
} else {
|
|
12100
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
12101
|
+
}
|
|
12102
|
+
});
|
|
12103
|
+
return parsed;
|
|
12156
12104
|
};
|
|
12157
|
-
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
12158
|
-
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
12159
|
-
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
12160
|
-
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
12161
|
-
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
12162
|
-
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
12163
|
-
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
12164
|
-
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
12165
|
-
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
12166
|
-
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
12167
|
-
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
12168
|
-
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
12169
|
-
var AxiosError_default = AxiosError;
|
|
12170
|
-
|
|
12171
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
12172
|
-
var import_form_data = __toESM(require_form_data(), 1);
|
|
12173
|
-
var FormData_default = import_form_data.default;
|
|
12174
12105
|
|
|
12175
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12106
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
|
|
12107
|
+
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
12108
|
+
var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
12109
|
+
function trimSPorHTAB(str) {
|
|
12110
|
+
let start = 0;
|
|
12111
|
+
let end = str.length;
|
|
12112
|
+
while (start < end) {
|
|
12113
|
+
const code = str.charCodeAt(start);
|
|
12114
|
+
if (code !== 9 && code !== 32) {
|
|
12115
|
+
break;
|
|
12116
|
+
}
|
|
12117
|
+
start += 1;
|
|
12118
|
+
}
|
|
12119
|
+
while (end > start) {
|
|
12120
|
+
const code = str.charCodeAt(end - 1);
|
|
12121
|
+
if (code !== 9 && code !== 32) {
|
|
12122
|
+
break;
|
|
12123
|
+
}
|
|
12124
|
+
end -= 1;
|
|
12125
|
+
}
|
|
12126
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
12181
12127
|
}
|
|
12182
|
-
function
|
|
12183
|
-
|
|
12184
|
-
return path.concat(key).map(function each(token, i) {
|
|
12185
|
-
token = removeBrackets(token);
|
|
12186
|
-
return !dots && i ? "[" + token + "]" : token;
|
|
12187
|
-
}).join(dots ? "." : "");
|
|
12128
|
+
function normalizeHeader(header) {
|
|
12129
|
+
return header && String(header).trim().toLowerCase();
|
|
12188
12130
|
}
|
|
12189
|
-
function
|
|
12190
|
-
return
|
|
12131
|
+
function sanitizeHeaderValue(str) {
|
|
12132
|
+
return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
|
|
12191
12133
|
}
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
function toFormData(obj, formData, options) {
|
|
12196
|
-
if (!utils_default.isObject(obj)) {
|
|
12197
|
-
throw new TypeError("target must be an object");
|
|
12134
|
+
function normalizeValue(value) {
|
|
12135
|
+
if (value === false || value == null) {
|
|
12136
|
+
return value;
|
|
12198
12137
|
}
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
const metaTokens = options.metaTokens;
|
|
12208
|
-
const visitor = options.visitor || defaultVisitor;
|
|
12209
|
-
const dots = options.dots;
|
|
12210
|
-
const indexes = options.indexes;
|
|
12211
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
12212
|
-
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
12213
|
-
if (!utils_default.isFunction(visitor)) {
|
|
12214
|
-
throw new TypeError("visitor must be a function");
|
|
12138
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
12139
|
+
}
|
|
12140
|
+
function parseTokens(str) {
|
|
12141
|
+
const tokens = /* @__PURE__ */ Object.create(null);
|
|
12142
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
12143
|
+
let match;
|
|
12144
|
+
while (match = tokensRE.exec(str)) {
|
|
12145
|
+
tokens[match[1]] = match[2];
|
|
12215
12146
|
}
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
return value.toString();
|
|
12223
|
-
}
|
|
12224
|
-
if (!useBlob && utils_default.isBlob(value)) {
|
|
12225
|
-
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
12226
|
-
}
|
|
12227
|
-
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
12228
|
-
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
12229
|
-
}
|
|
12230
|
-
return value;
|
|
12147
|
+
return tokens;
|
|
12148
|
+
}
|
|
12149
|
+
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
12150
|
+
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
12151
|
+
if (utils_default.isFunction(filter2)) {
|
|
12152
|
+
return filter2.call(this, value, header);
|
|
12231
12153
|
}
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
if (value && !path && typeof value === "object") {
|
|
12235
|
-
if (utils_default.endsWith(key, "{}")) {
|
|
12236
|
-
key = metaTokens ? key : key.slice(0, -2);
|
|
12237
|
-
value = JSON.stringify(value);
|
|
12238
|
-
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
12239
|
-
key = removeBrackets(key);
|
|
12240
|
-
arr.forEach(function each(el, index) {
|
|
12241
|
-
!(utils_default.isUndefined(el) || el === null) && formData.append(
|
|
12242
|
-
// eslint-disable-next-line no-nested-ternary
|
|
12243
|
-
indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
|
|
12244
|
-
convertValue(el)
|
|
12245
|
-
);
|
|
12246
|
-
});
|
|
12247
|
-
return false;
|
|
12248
|
-
}
|
|
12249
|
-
}
|
|
12250
|
-
if (isVisitable(value)) {
|
|
12251
|
-
return true;
|
|
12252
|
-
}
|
|
12253
|
-
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
12254
|
-
return false;
|
|
12154
|
+
if (isHeaderNameFilter) {
|
|
12155
|
+
value = header;
|
|
12255
12156
|
}
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
convertValue,
|
|
12260
|
-
isVisitable
|
|
12261
|
-
});
|
|
12262
|
-
function build(value, path) {
|
|
12263
|
-
if (utils_default.isUndefined(value)) return;
|
|
12264
|
-
if (stack.indexOf(value) !== -1) {
|
|
12265
|
-
throw Error("Circular reference detected in " + path.join("."));
|
|
12266
|
-
}
|
|
12267
|
-
stack.push(value);
|
|
12268
|
-
utils_default.forEach(value, function each(el, key) {
|
|
12269
|
-
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
|
|
12270
|
-
formData,
|
|
12271
|
-
el,
|
|
12272
|
-
utils_default.isString(key) ? key.trim() : key,
|
|
12273
|
-
path,
|
|
12274
|
-
exposedHelpers
|
|
12275
|
-
);
|
|
12276
|
-
if (result === true) {
|
|
12277
|
-
build(el, path ? path.concat(key) : [key]);
|
|
12278
|
-
}
|
|
12279
|
-
});
|
|
12280
|
-
stack.pop();
|
|
12157
|
+
if (!utils_default.isString(value)) return;
|
|
12158
|
+
if (utils_default.isString(filter2)) {
|
|
12159
|
+
return value.indexOf(filter2) !== -1;
|
|
12281
12160
|
}
|
|
12282
|
-
if (
|
|
12283
|
-
|
|
12161
|
+
if (utils_default.isRegExp(filter2)) {
|
|
12162
|
+
return filter2.test(value);
|
|
12284
12163
|
}
|
|
12285
|
-
build(obj);
|
|
12286
|
-
return formData;
|
|
12287
12164
|
}
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
-
function encode(str) {
|
|
12292
|
-
const charMap = {
|
|
12293
|
-
"!": "%21",
|
|
12294
|
-
"'": "%27",
|
|
12295
|
-
"(": "%28",
|
|
12296
|
-
")": "%29",
|
|
12297
|
-
"~": "%7E",
|
|
12298
|
-
"%20": "+",
|
|
12299
|
-
"%00": "\0"
|
|
12300
|
-
};
|
|
12301
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
12302
|
-
return charMap[match];
|
|
12165
|
+
function formatHeader(header) {
|
|
12166
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
12167
|
+
return char.toUpperCase() + str;
|
|
12303
12168
|
});
|
|
12304
12169
|
}
|
|
12305
|
-
function
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
|
-
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
12319
|
-
}, "").join("&");
|
|
12320
|
-
};
|
|
12321
|
-
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
12322
|
-
|
|
12323
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
|
|
12324
|
-
function encode2(val) {
|
|
12325
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
12170
|
+
function buildAccessors(obj, header) {
|
|
12171
|
+
const accessorName = utils_default.toCamelCase(" " + header);
|
|
12172
|
+
["get", "set", "has"].forEach((methodName) => {
|
|
12173
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
12174
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
12175
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
12176
|
+
__proto__: null,
|
|
12177
|
+
value: function(arg1, arg2, arg3) {
|
|
12178
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
12179
|
+
},
|
|
12180
|
+
configurable: true
|
|
12181
|
+
});
|
|
12182
|
+
});
|
|
12326
12183
|
}
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
}
|
|
12331
|
-
const _encode = options && options.encode || encode2;
|
|
12332
|
-
const _options = utils_default.isFunction(options) ? {
|
|
12333
|
-
serialize: options
|
|
12334
|
-
} : options;
|
|
12335
|
-
const serializeFn = _options && _options.serialize;
|
|
12336
|
-
let serializedParams;
|
|
12337
|
-
if (serializeFn) {
|
|
12338
|
-
serializedParams = serializeFn(params, _options);
|
|
12339
|
-
} else {
|
|
12340
|
-
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
|
|
12184
|
+
var AxiosHeaders = class {
|
|
12185
|
+
constructor(headers) {
|
|
12186
|
+
headers && this.set(headers);
|
|
12341
12187
|
}
|
|
12342
|
-
|
|
12343
|
-
const
|
|
12344
|
-
|
|
12345
|
-
|
|
12188
|
+
set(header, valueOrRewrite, rewrite) {
|
|
12189
|
+
const self2 = this;
|
|
12190
|
+
function setHeader(_value, _header, _rewrite) {
|
|
12191
|
+
const lHeader = normalizeHeader(_header);
|
|
12192
|
+
if (!lHeader) {
|
|
12193
|
+
throw new Error("header name must be a non-empty string");
|
|
12194
|
+
}
|
|
12195
|
+
const key = utils_default.findKey(self2, lHeader);
|
|
12196
|
+
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
12197
|
+
self2[key || _header] = normalizeValue(_value);
|
|
12198
|
+
}
|
|
12346
12199
|
}
|
|
12347
|
-
|
|
12200
|
+
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
12201
|
+
if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
|
|
12202
|
+
setHeaders(header, valueOrRewrite);
|
|
12203
|
+
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
12204
|
+
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
12205
|
+
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
12206
|
+
let obj = {}, dest, key;
|
|
12207
|
+
for (const entry of header) {
|
|
12208
|
+
if (!utils_default.isArray(entry)) {
|
|
12209
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
12210
|
+
}
|
|
12211
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
12212
|
+
}
|
|
12213
|
+
setHeaders(obj, valueOrRewrite);
|
|
12214
|
+
} else {
|
|
12215
|
+
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
12216
|
+
}
|
|
12217
|
+
return this;
|
|
12348
12218
|
}
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12219
|
+
get(header, parser) {
|
|
12220
|
+
header = normalizeHeader(header);
|
|
12221
|
+
if (header) {
|
|
12222
|
+
const key = utils_default.findKey(this, header);
|
|
12223
|
+
if (key) {
|
|
12224
|
+
const value = this[key];
|
|
12225
|
+
if (!parser) {
|
|
12226
|
+
return value;
|
|
12227
|
+
}
|
|
12228
|
+
if (parser === true) {
|
|
12229
|
+
return parseTokens(value);
|
|
12230
|
+
}
|
|
12231
|
+
if (utils_default.isFunction(parser)) {
|
|
12232
|
+
return parser.call(this, value, key);
|
|
12233
|
+
}
|
|
12234
|
+
if (utils_default.isRegExp(parser)) {
|
|
12235
|
+
return parser.exec(value);
|
|
12236
|
+
}
|
|
12237
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
12238
|
+
}
|
|
12239
|
+
}
|
|
12356
12240
|
}
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
* @return {Number} An ID used to remove interceptor later
|
|
12365
|
-
*/
|
|
12366
|
-
use(fulfilled, rejected, options) {
|
|
12367
|
-
this.handlers.push({
|
|
12368
|
-
fulfilled,
|
|
12369
|
-
rejected,
|
|
12370
|
-
synchronous: options ? options.synchronous : false,
|
|
12371
|
-
runWhen: options ? options.runWhen : null
|
|
12372
|
-
});
|
|
12373
|
-
return this.handlers.length - 1;
|
|
12241
|
+
has(header, matcher) {
|
|
12242
|
+
header = normalizeHeader(header);
|
|
12243
|
+
if (header) {
|
|
12244
|
+
const key = utils_default.findKey(this, header);
|
|
12245
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
12246
|
+
}
|
|
12247
|
+
return false;
|
|
12374
12248
|
}
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12249
|
+
delete(header, matcher) {
|
|
12250
|
+
const self2 = this;
|
|
12251
|
+
let deleted = false;
|
|
12252
|
+
function deleteHeader(_header) {
|
|
12253
|
+
_header = normalizeHeader(_header);
|
|
12254
|
+
if (_header) {
|
|
12255
|
+
const key = utils_default.findKey(self2, _header);
|
|
12256
|
+
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
12257
|
+
delete self2[key];
|
|
12258
|
+
deleted = true;
|
|
12259
|
+
}
|
|
12260
|
+
}
|
|
12261
|
+
}
|
|
12262
|
+
if (utils_default.isArray(header)) {
|
|
12263
|
+
header.forEach(deleteHeader);
|
|
12264
|
+
} else {
|
|
12265
|
+
deleteHeader(header);
|
|
12385
12266
|
}
|
|
12267
|
+
return deleted;
|
|
12386
12268
|
}
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12269
|
+
clear(matcher) {
|
|
12270
|
+
const keys = Object.keys(this);
|
|
12271
|
+
let i = keys.length;
|
|
12272
|
+
let deleted = false;
|
|
12273
|
+
while (i--) {
|
|
12274
|
+
const key = keys[i];
|
|
12275
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
12276
|
+
delete this[key];
|
|
12277
|
+
deleted = true;
|
|
12278
|
+
}
|
|
12395
12279
|
}
|
|
12280
|
+
return deleted;
|
|
12396
12281
|
}
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
fn(h);
|
|
12282
|
+
normalize(format) {
|
|
12283
|
+
const self2 = this;
|
|
12284
|
+
const headers = {};
|
|
12285
|
+
utils_default.forEach(this, (value, header) => {
|
|
12286
|
+
const key = utils_default.findKey(headers, header);
|
|
12287
|
+
if (key) {
|
|
12288
|
+
self2[key] = normalizeValue(value);
|
|
12289
|
+
delete self2[header];
|
|
12290
|
+
return;
|
|
12291
|
+
}
|
|
12292
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
12293
|
+
if (normalized !== header) {
|
|
12294
|
+
delete self2[header];
|
|
12411
12295
|
}
|
|
12296
|
+
self2[normalized] = normalizeValue(value);
|
|
12297
|
+
headers[normalized] = true;
|
|
12412
12298
|
});
|
|
12299
|
+
return this;
|
|
12413
12300
|
}
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
|
|
12418
|
-
var transitional_default = {
|
|
12419
|
-
silentJSONParsing: true,
|
|
12420
|
-
forcedJSONParsing: true,
|
|
12421
|
-
clarifyTimeoutError: false,
|
|
12422
|
-
legacyInterceptorReqResOrdering: true
|
|
12423
|
-
};
|
|
12424
|
-
|
|
12425
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
|
|
12426
|
-
import crypto from "crypto";
|
|
12427
|
-
|
|
12428
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
12429
|
-
import url from "url";
|
|
12430
|
-
var URLSearchParams_default = url.URLSearchParams;
|
|
12431
|
-
|
|
12432
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
|
|
12433
|
-
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
12434
|
-
var DIGIT = "0123456789";
|
|
12435
|
-
var ALPHABET = {
|
|
12436
|
-
DIGIT,
|
|
12437
|
-
ALPHA,
|
|
12438
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
12439
|
-
};
|
|
12440
|
-
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
12441
|
-
let str = "";
|
|
12442
|
-
const { length } = alphabet;
|
|
12443
|
-
const randomValues = new Uint32Array(size);
|
|
12444
|
-
crypto.randomFillSync(randomValues);
|
|
12445
|
-
for (let i = 0; i < size; i++) {
|
|
12446
|
-
str += alphabet[randomValues[i] % length];
|
|
12301
|
+
concat(...targets) {
|
|
12302
|
+
return this.constructor.concat(this, ...targets);
|
|
12447
12303
|
}
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
classes: {
|
|
12453
|
-
URLSearchParams: URLSearchParams_default,
|
|
12454
|
-
FormData: FormData_default,
|
|
12455
|
-
Blob: typeof Blob !== "undefined" && Blob || null
|
|
12456
|
-
},
|
|
12457
|
-
ALPHABET,
|
|
12458
|
-
generateString,
|
|
12459
|
-
protocols: ["http", "https", "file", "data"]
|
|
12460
|
-
};
|
|
12461
|
-
|
|
12462
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
|
|
12463
|
-
var utils_exports = {};
|
|
12464
|
-
__export(utils_exports, {
|
|
12465
|
-
hasBrowserEnv: () => hasBrowserEnv,
|
|
12466
|
-
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
12467
|
-
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
12468
|
-
navigator: () => _navigator,
|
|
12469
|
-
origin: () => origin
|
|
12470
|
-
});
|
|
12471
|
-
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
12472
|
-
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
12473
|
-
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
12474
|
-
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
12475
|
-
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
12476
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
12477
|
-
})();
|
|
12478
|
-
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
12479
|
-
|
|
12480
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/index.js
|
|
12481
|
-
var platform_default = {
|
|
12482
|
-
...utils_exports,
|
|
12483
|
-
...node_default
|
|
12484
|
-
};
|
|
12485
|
-
|
|
12486
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
12487
|
-
function toURLEncodedForm(data, options) {
|
|
12488
|
-
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
12489
|
-
visitor: function(value, key, path, helpers) {
|
|
12490
|
-
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
12491
|
-
this.append(key, value.toString("base64"));
|
|
12492
|
-
return false;
|
|
12493
|
-
}
|
|
12494
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
12495
|
-
},
|
|
12496
|
-
...options
|
|
12497
|
-
});
|
|
12498
|
-
}
|
|
12499
|
-
|
|
12500
|
-
// ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
12501
|
-
function parsePropPath(name) {
|
|
12502
|
-
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
12503
|
-
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
12504
|
-
});
|
|
12505
|
-
}
|
|
12506
|
-
function arrayToObject(arr) {
|
|
12507
|
-
const obj = {};
|
|
12508
|
-
const keys = Object.keys(arr);
|
|
12509
|
-
let i;
|
|
12510
|
-
const len = keys.length;
|
|
12511
|
-
let key;
|
|
12512
|
-
for (i = 0; i < len; i++) {
|
|
12513
|
-
key = keys[i];
|
|
12514
|
-
obj[key] = arr[key];
|
|
12515
|
-
}
|
|
12516
|
-
return obj;
|
|
12517
|
-
}
|
|
12518
|
-
function formDataToJSON(formData) {
|
|
12519
|
-
function buildPath(path, value, target, index) {
|
|
12520
|
-
let name = path[index++];
|
|
12521
|
-
if (name === "__proto__") return true;
|
|
12522
|
-
const isNumericKey = Number.isFinite(+name);
|
|
12523
|
-
const isLast = index >= path.length;
|
|
12524
|
-
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
12525
|
-
if (isLast) {
|
|
12526
|
-
if (utils_default.hasOwnProp(target, name)) {
|
|
12527
|
-
target[name] = [target[name], value];
|
|
12528
|
-
} else {
|
|
12529
|
-
target[name] = value;
|
|
12530
|
-
}
|
|
12531
|
-
return !isNumericKey;
|
|
12532
|
-
}
|
|
12533
|
-
if (!target[name] || !utils_default.isObject(target[name])) {
|
|
12534
|
-
target[name] = [];
|
|
12535
|
-
}
|
|
12536
|
-
const result = buildPath(path, value, target[name], index);
|
|
12537
|
-
if (result && utils_default.isArray(target[name])) {
|
|
12538
|
-
target[name] = arrayToObject(target[name]);
|
|
12539
|
-
}
|
|
12540
|
-
return !isNumericKey;
|
|
12541
|
-
}
|
|
12542
|
-
if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
|
|
12543
|
-
const obj = {};
|
|
12544
|
-
utils_default.forEachEntry(formData, (name, value) => {
|
|
12545
|
-
buildPath(parsePropPath(name), value, obj, 0);
|
|
12304
|
+
toJSON(asStrings) {
|
|
12305
|
+
const obj = /* @__PURE__ */ Object.create(null);
|
|
12306
|
+
utils_default.forEach(this, (value, header) => {
|
|
12307
|
+
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
12546
12308
|
});
|
|
12547
12309
|
return obj;
|
|
12548
12310
|
}
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
|
|
12561
|
-
|
|
12311
|
+
[Symbol.iterator]() {
|
|
12312
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
12313
|
+
}
|
|
12314
|
+
toString() {
|
|
12315
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
12316
|
+
}
|
|
12317
|
+
getSetCookie() {
|
|
12318
|
+
return this.get("set-cookie") || [];
|
|
12319
|
+
}
|
|
12320
|
+
get [Symbol.toStringTag]() {
|
|
12321
|
+
return "AxiosHeaders";
|
|
12322
|
+
}
|
|
12323
|
+
static from(thing) {
|
|
12324
|
+
return thing instanceof this ? thing : new this(thing);
|
|
12325
|
+
}
|
|
12326
|
+
static concat(first, ...targets) {
|
|
12327
|
+
const computed = new this(first);
|
|
12328
|
+
targets.forEach((target) => computed.set(target));
|
|
12329
|
+
return computed;
|
|
12330
|
+
}
|
|
12331
|
+
static accessor(header) {
|
|
12332
|
+
const internals = this[$internals] = this[$internals] = {
|
|
12333
|
+
accessors: {}
|
|
12334
|
+
};
|
|
12335
|
+
const accessors = internals.accessors;
|
|
12336
|
+
const prototype2 = this.prototype;
|
|
12337
|
+
function defineAccessor(_header) {
|
|
12338
|
+
const lHeader = normalizeHeader(_header);
|
|
12339
|
+
if (!accessors[lHeader]) {
|
|
12340
|
+
buildAccessors(prototype2, _header);
|
|
12341
|
+
accessors[lHeader] = true;
|
|
12562
12342
|
}
|
|
12563
12343
|
}
|
|
12344
|
+
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
12345
|
+
return this;
|
|
12564
12346
|
}
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
}
|
|
12581
|
-
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
|
|
12582
|
-
return data;
|
|
12583
|
-
}
|
|
12584
|
-
if (utils_default.isArrayBufferView(data)) {
|
|
12585
|
-
return data.buffer;
|
|
12347
|
+
};
|
|
12348
|
+
AxiosHeaders.accessor([
|
|
12349
|
+
"Content-Type",
|
|
12350
|
+
"Content-Length",
|
|
12351
|
+
"Accept",
|
|
12352
|
+
"Accept-Encoding",
|
|
12353
|
+
"User-Agent",
|
|
12354
|
+
"Authorization"
|
|
12355
|
+
]);
|
|
12356
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
12357
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
12358
|
+
return {
|
|
12359
|
+
get: () => value,
|
|
12360
|
+
set(headerValue) {
|
|
12361
|
+
this[mapped] = headerValue;
|
|
12586
12362
|
}
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12363
|
+
};
|
|
12364
|
+
});
|
|
12365
|
+
utils_default.freezeMethods(AxiosHeaders);
|
|
12366
|
+
var AxiosHeaders_default = AxiosHeaders;
|
|
12367
|
+
|
|
12368
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
|
|
12369
|
+
var REDACTED = "[REDACTED ****]";
|
|
12370
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
12371
|
+
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
12372
|
+
return true;
|
|
12373
|
+
}
|
|
12374
|
+
let prototype2 = Object.getPrototypeOf(source);
|
|
12375
|
+
while (prototype2 && prototype2 !== Object.prototype) {
|
|
12376
|
+
if (utils_default.hasOwnProp(prototype2, "toJSON")) {
|
|
12377
|
+
return true;
|
|
12590
12378
|
}
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12379
|
+
prototype2 = Object.getPrototypeOf(prototype2);
|
|
12380
|
+
}
|
|
12381
|
+
return false;
|
|
12382
|
+
}
|
|
12383
|
+
function redactConfig(config, redactKeys) {
|
|
12384
|
+
const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
|
|
12385
|
+
const seen = [];
|
|
12386
|
+
const visit = (source) => {
|
|
12387
|
+
if (source === null || typeof source !== "object") return source;
|
|
12388
|
+
if (utils_default.isBuffer(source)) return source;
|
|
12389
|
+
if (seen.indexOf(source) !== -1) return void 0;
|
|
12390
|
+
if (source instanceof AxiosHeaders_default) {
|
|
12391
|
+
source = source.toJSON();
|
|
12392
|
+
}
|
|
12393
|
+
seen.push(source);
|
|
12394
|
+
let result;
|
|
12395
|
+
if (utils_default.isArray(source)) {
|
|
12396
|
+
result = [];
|
|
12397
|
+
source.forEach((v, i) => {
|
|
12398
|
+
const reducedValue = visit(v);
|
|
12399
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
12400
|
+
result[i] = reducedValue;
|
|
12401
|
+
}
|
|
12402
|
+
});
|
|
12403
|
+
} else {
|
|
12404
|
+
if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
12405
|
+
seen.pop();
|
|
12406
|
+
return source;
|
|
12603
12407
|
}
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12609
|
-
return data;
|
|
12610
|
-
}],
|
|
12611
|
-
transformResponse: [function transformResponse(data) {
|
|
12612
|
-
const transitional2 = this.transitional || defaults.transitional;
|
|
12613
|
-
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
12614
|
-
const JSONRequested = this.responseType === "json";
|
|
12615
|
-
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
12616
|
-
return data;
|
|
12617
|
-
}
|
|
12618
|
-
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
12619
|
-
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
12620
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
12621
|
-
try {
|
|
12622
|
-
return JSON.parse(data, this.parseReviver);
|
|
12623
|
-
} catch (e) {
|
|
12624
|
-
if (strictJSONParsing) {
|
|
12625
|
-
if (e.name === "SyntaxError") {
|
|
12626
|
-
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
|
|
12627
|
-
}
|
|
12628
|
-
throw e;
|
|
12408
|
+
result = /* @__PURE__ */ Object.create(null);
|
|
12409
|
+
for (const [key, value] of Object.entries(source)) {
|
|
12410
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
|
|
12411
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
12412
|
+
result[key] = reducedValue;
|
|
12629
12413
|
}
|
|
12630
12414
|
}
|
|
12631
12415
|
}
|
|
12632
|
-
|
|
12633
|
-
|
|
12416
|
+
seen.pop();
|
|
12417
|
+
return result;
|
|
12418
|
+
};
|
|
12419
|
+
return visit(config);
|
|
12420
|
+
}
|
|
12421
|
+
var AxiosError = class _AxiosError extends Error {
|
|
12422
|
+
static from(error, code, config, request, response, customProps) {
|
|
12423
|
+
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
12424
|
+
axiosError.cause = error;
|
|
12425
|
+
axiosError.name = error.name;
|
|
12426
|
+
if (error.status != null && axiosError.status == null) {
|
|
12427
|
+
axiosError.status = error.status;
|
|
12428
|
+
}
|
|
12429
|
+
customProps && Object.assign(axiosError, customProps);
|
|
12430
|
+
return axiosError;
|
|
12431
|
+
}
|
|
12634
12432
|
/**
|
|
12635
|
-
*
|
|
12636
|
-
*
|
|
12433
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
12434
|
+
*
|
|
12435
|
+
* @param {string} message The error message.
|
|
12436
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
12437
|
+
* @param {Object} [config] The config.
|
|
12438
|
+
* @param {Object} [request] The request.
|
|
12439
|
+
* @param {Object} [response] The response.
|
|
12440
|
+
*
|
|
12441
|
+
* @returns {Error} The created error.
|
|
12637
12442
|
*/
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12443
|
+
constructor(message, code, config, request, response) {
|
|
12444
|
+
super(message);
|
|
12445
|
+
Object.defineProperty(this, "message", {
|
|
12446
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
12447
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
12448
|
+
__proto__: null,
|
|
12449
|
+
value: message,
|
|
12450
|
+
enumerable: true,
|
|
12451
|
+
writable: true,
|
|
12452
|
+
configurable: true
|
|
12453
|
+
});
|
|
12454
|
+
this.name = "AxiosError";
|
|
12455
|
+
this.isAxiosError = true;
|
|
12456
|
+
code && (this.code = code);
|
|
12457
|
+
config && (this.config = config);
|
|
12458
|
+
request && (this.request = request);
|
|
12459
|
+
if (response) {
|
|
12460
|
+
this.response = response;
|
|
12461
|
+
this.status = response.status;
|
|
12654
12462
|
}
|
|
12655
12463
|
}
|
|
12464
|
+
toJSON() {
|
|
12465
|
+
const config = this.config;
|
|
12466
|
+
const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
|
|
12467
|
+
const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
|
|
12468
|
+
return {
|
|
12469
|
+
// Standard
|
|
12470
|
+
message: this.message,
|
|
12471
|
+
name: this.name,
|
|
12472
|
+
// Microsoft
|
|
12473
|
+
description: this.description,
|
|
12474
|
+
number: this.number,
|
|
12475
|
+
// Mozilla
|
|
12476
|
+
fileName: this.fileName,
|
|
12477
|
+
lineNumber: this.lineNumber,
|
|
12478
|
+
columnNumber: this.columnNumber,
|
|
12479
|
+
stack: this.stack,
|
|
12480
|
+
// Axios
|
|
12481
|
+
config: serializedConfig,
|
|
12482
|
+
code: this.code,
|
|
12483
|
+
status: this.status
|
|
12484
|
+
};
|
|
12485
|
+
}
|
|
12656
12486
|
};
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
|
|
12662
|
-
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
i
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12487
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
12488
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
12489
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
12490
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
12491
|
+
AxiosError.ECONNREFUSED = "ECONNREFUSED";
|
|
12492
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
12493
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
12494
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
12495
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
12496
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
12497
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
12498
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
12499
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
12500
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
12501
|
+
var AxiosError_default = AxiosError;
|
|
12502
|
+
|
|
12503
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
12504
|
+
var import_form_data = __toESM(require_form_data(), 1);
|
|
12505
|
+
var FormData_default = import_form_data.default;
|
|
12506
|
+
|
|
12507
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
|
|
12508
|
+
function isVisitable(thing) {
|
|
12509
|
+
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
12510
|
+
}
|
|
12511
|
+
function removeBrackets(key) {
|
|
12512
|
+
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
12513
|
+
}
|
|
12514
|
+
function renderKey(path, key, dots) {
|
|
12515
|
+
if (!path) return key;
|
|
12516
|
+
return path.concat(key).map(function each(token, i) {
|
|
12517
|
+
token = removeBrackets(token);
|
|
12518
|
+
return !dots && i ? "[" + token + "]" : token;
|
|
12519
|
+
}).join(dots ? "." : "");
|
|
12520
|
+
}
|
|
12521
|
+
function isFlatArray(arr) {
|
|
12522
|
+
return utils_default.isArray(arr) && !arr.some(isVisitable);
|
|
12523
|
+
}
|
|
12524
|
+
var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
|
|
12525
|
+
return /^is[A-Z]/.test(prop);
|
|
12526
|
+
});
|
|
12527
|
+
function toFormData(obj, formData, options) {
|
|
12528
|
+
if (!utils_default.isObject(obj)) {
|
|
12529
|
+
throw new TypeError("target must be an object");
|
|
12530
|
+
}
|
|
12531
|
+
formData = formData || new (FormData_default || FormData)();
|
|
12532
|
+
options = utils_default.toFlatObject(
|
|
12533
|
+
options,
|
|
12534
|
+
{
|
|
12535
|
+
metaTokens: true,
|
|
12536
|
+
dots: false,
|
|
12537
|
+
indexes: false
|
|
12538
|
+
},
|
|
12539
|
+
false,
|
|
12540
|
+
function defined(option, source) {
|
|
12541
|
+
return !utils_default.isUndefined(source[option]);
|
|
12693
12542
|
}
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12543
|
+
);
|
|
12544
|
+
const metaTokens = options.metaTokens;
|
|
12545
|
+
const visitor = options.visitor || defaultVisitor;
|
|
12546
|
+
const dots = options.dots;
|
|
12547
|
+
const indexes = options.indexes;
|
|
12548
|
+
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
12549
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
12550
|
+
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
12551
|
+
if (!utils_default.isFunction(visitor)) {
|
|
12552
|
+
throw new TypeError("visitor must be a function");
|
|
12553
|
+
}
|
|
12554
|
+
function convertValue(value) {
|
|
12555
|
+
if (value === null) return "";
|
|
12556
|
+
if (utils_default.isDate(value)) {
|
|
12557
|
+
return value.toISOString();
|
|
12558
|
+
}
|
|
12559
|
+
if (utils_default.isBoolean(value)) {
|
|
12560
|
+
return value.toString();
|
|
12561
|
+
}
|
|
12562
|
+
if (!useBlob && utils_default.isBlob(value)) {
|
|
12563
|
+
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
12564
|
+
}
|
|
12565
|
+
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
12566
|
+
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
12567
|
+
}
|
|
12568
|
+
return value;
|
|
12569
|
+
}
|
|
12570
|
+
function defaultVisitor(value, key, path) {
|
|
12571
|
+
let arr = value;
|
|
12572
|
+
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
12573
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
12574
|
+
return false;
|
|
12575
|
+
}
|
|
12576
|
+
if (value && !path && typeof value === "object") {
|
|
12577
|
+
if (utils_default.endsWith(key, "{}")) {
|
|
12578
|
+
key = metaTokens ? key : key.slice(0, -2);
|
|
12579
|
+
value = JSON.stringify(value);
|
|
12580
|
+
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
12581
|
+
key = removeBrackets(key);
|
|
12582
|
+
arr.forEach(function each(el, index) {
|
|
12583
|
+
!(utils_default.isUndefined(el) || el === null) && formData.append(
|
|
12584
|
+
// eslint-disable-next-line no-nested-ternary
|
|
12585
|
+
indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
|
|
12586
|
+
convertValue(el)
|
|
12587
|
+
);
|
|
12588
|
+
});
|
|
12589
|
+
return false;
|
|
12699
12590
|
}
|
|
12700
|
-
} else {
|
|
12701
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
12702
12591
|
}
|
|
12592
|
+
if (isVisitable(value)) {
|
|
12593
|
+
return true;
|
|
12594
|
+
}
|
|
12595
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
12596
|
+
return false;
|
|
12597
|
+
}
|
|
12598
|
+
const stack = [];
|
|
12599
|
+
const exposedHelpers = Object.assign(predicates, {
|
|
12600
|
+
defaultVisitor,
|
|
12601
|
+
convertValue,
|
|
12602
|
+
isVisitable
|
|
12703
12603
|
});
|
|
12704
|
-
|
|
12705
|
-
|
|
12604
|
+
function build(value, path, depth = 0) {
|
|
12605
|
+
if (utils_default.isUndefined(value)) return;
|
|
12606
|
+
if (depth > maxDepth) {
|
|
12607
|
+
throw new AxiosError_default(
|
|
12608
|
+
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
12609
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
12610
|
+
);
|
|
12611
|
+
}
|
|
12612
|
+
if (stack.indexOf(value) !== -1) {
|
|
12613
|
+
throw Error("Circular reference detected in " + path.join("."));
|
|
12614
|
+
}
|
|
12615
|
+
stack.push(value);
|
|
12616
|
+
utils_default.forEach(value, function each(el, key) {
|
|
12617
|
+
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
12618
|
+
if (result === true) {
|
|
12619
|
+
build(el, path ? path.concat(key) : [key], depth + 1);
|
|
12620
|
+
}
|
|
12621
|
+
});
|
|
12622
|
+
stack.pop();
|
|
12623
|
+
}
|
|
12624
|
+
if (!utils_default.isObject(obj)) {
|
|
12625
|
+
throw new TypeError("data must be an object");
|
|
12626
|
+
}
|
|
12627
|
+
build(obj);
|
|
12628
|
+
return formData;
|
|
12629
|
+
}
|
|
12630
|
+
var toFormData_default = toFormData;
|
|
12706
12631
|
|
|
12707
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12632
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
12633
|
+
function encode(str) {
|
|
12634
|
+
const charMap = {
|
|
12635
|
+
"!": "%21",
|
|
12636
|
+
"'": "%27",
|
|
12637
|
+
"(": "%28",
|
|
12638
|
+
")": "%29",
|
|
12639
|
+
"~": "%7E",
|
|
12640
|
+
"%20": "+"
|
|
12641
|
+
};
|
|
12642
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
12643
|
+
return charMap[match];
|
|
12644
|
+
});
|
|
12711
12645
|
}
|
|
12712
|
-
function
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
}
|
|
12716
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
12646
|
+
function AxiosURLSearchParams(params, options) {
|
|
12647
|
+
this._pairs = [];
|
|
12648
|
+
params && toFormData_default(params, this, options);
|
|
12717
12649
|
}
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
12650
|
+
var prototype = AxiosURLSearchParams.prototype;
|
|
12651
|
+
prototype.append = function append(name, value) {
|
|
12652
|
+
this._pairs.push([name, value]);
|
|
12653
|
+
};
|
|
12654
|
+
prototype.toString = function toString2(encoder) {
|
|
12655
|
+
const _encode = encoder ? function(value) {
|
|
12656
|
+
return encoder.call(this, value, encode);
|
|
12657
|
+
} : encode;
|
|
12658
|
+
return this._pairs.map(function each(pair) {
|
|
12659
|
+
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
12660
|
+
}, "").join("&");
|
|
12661
|
+
};
|
|
12662
|
+
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
12663
|
+
|
|
12664
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
|
|
12665
|
+
function encode2(val) {
|
|
12666
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
12726
12667
|
}
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
12730
|
-
return filter2.call(this, value, header);
|
|
12731
|
-
}
|
|
12732
|
-
if (isHeaderNameFilter) {
|
|
12733
|
-
value = header;
|
|
12668
|
+
function buildURL(url2, params, options) {
|
|
12669
|
+
if (!params) {
|
|
12670
|
+
return url2;
|
|
12734
12671
|
}
|
|
12735
|
-
|
|
12736
|
-
|
|
12737
|
-
|
|
12672
|
+
const _encode = options && options.encode || encode2;
|
|
12673
|
+
const _options = utils_default.isFunction(options) ? {
|
|
12674
|
+
serialize: options
|
|
12675
|
+
} : options;
|
|
12676
|
+
const serializeFn = _options && _options.serialize;
|
|
12677
|
+
let serializedParams;
|
|
12678
|
+
if (serializeFn) {
|
|
12679
|
+
serializedParams = serializeFn(params, _options);
|
|
12680
|
+
} else {
|
|
12681
|
+
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
|
|
12738
12682
|
}
|
|
12739
|
-
if (
|
|
12740
|
-
|
|
12683
|
+
if (serializedParams) {
|
|
12684
|
+
const hashmarkIndex = url2.indexOf("#");
|
|
12685
|
+
if (hashmarkIndex !== -1) {
|
|
12686
|
+
url2 = url2.slice(0, hashmarkIndex);
|
|
12687
|
+
}
|
|
12688
|
+
url2 += (url2.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
12741
12689
|
}
|
|
12690
|
+
return url2;
|
|
12742
12691
|
}
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
|
|
12692
|
+
|
|
12693
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
|
|
12694
|
+
var InterceptorManager = class {
|
|
12695
|
+
constructor() {
|
|
12696
|
+
this.handlers = [];
|
|
12697
|
+
}
|
|
12698
|
+
/**
|
|
12699
|
+
* Add a new interceptor to the stack
|
|
12700
|
+
*
|
|
12701
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
12702
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
12703
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
12704
|
+
*
|
|
12705
|
+
* @return {Number} An ID used to remove interceptor later
|
|
12706
|
+
*/
|
|
12707
|
+
use(fulfilled, rejected, options) {
|
|
12708
|
+
this.handlers.push({
|
|
12709
|
+
fulfilled,
|
|
12710
|
+
rejected,
|
|
12711
|
+
synchronous: options ? options.synchronous : false,
|
|
12712
|
+
runWhen: options ? options.runWhen : null
|
|
12756
12713
|
});
|
|
12757
|
-
|
|
12758
|
-
}
|
|
12759
|
-
var AxiosHeaders = class {
|
|
12760
|
-
constructor(headers) {
|
|
12761
|
-
headers && this.set(headers);
|
|
12714
|
+
return this.handlers.length - 1;
|
|
12762
12715
|
}
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
}
|
|
12716
|
+
/**
|
|
12717
|
+
* Remove an interceptor from the stack
|
|
12718
|
+
*
|
|
12719
|
+
* @param {Number} id The ID that was returned by `use`
|
|
12720
|
+
*
|
|
12721
|
+
* @returns {void}
|
|
12722
|
+
*/
|
|
12723
|
+
eject(id) {
|
|
12724
|
+
if (this.handlers[id]) {
|
|
12725
|
+
this.handlers[id] = null;
|
|
12774
12726
|
}
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
12785
|
-
}
|
|
12786
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
12787
|
-
}
|
|
12788
|
-
setHeaders(obj, valueOrRewrite);
|
|
12789
|
-
} else {
|
|
12790
|
-
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
12727
|
+
}
|
|
12728
|
+
/**
|
|
12729
|
+
* Clear all interceptors from the stack
|
|
12730
|
+
*
|
|
12731
|
+
* @returns {void}
|
|
12732
|
+
*/
|
|
12733
|
+
clear() {
|
|
12734
|
+
if (this.handlers) {
|
|
12735
|
+
this.handlers = [];
|
|
12791
12736
|
}
|
|
12792
|
-
return this;
|
|
12793
12737
|
}
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
|
|
12738
|
+
/**
|
|
12739
|
+
* Iterate over all the registered interceptors
|
|
12740
|
+
*
|
|
12741
|
+
* This method is particularly useful for skipping over any
|
|
12742
|
+
* interceptors that may have become `null` calling `eject`.
|
|
12743
|
+
*
|
|
12744
|
+
* @param {Function} fn The function to call for each interceptor
|
|
12745
|
+
*
|
|
12746
|
+
* @returns {void}
|
|
12747
|
+
*/
|
|
12748
|
+
forEach(fn) {
|
|
12749
|
+
utils_default.forEach(this.handlers, function forEachHandler(h) {
|
|
12750
|
+
if (h !== null) {
|
|
12751
|
+
fn(h);
|
|
12752
|
+
}
|
|
12753
|
+
});
|
|
12754
|
+
}
|
|
12755
|
+
};
|
|
12756
|
+
var InterceptorManager_default = InterceptorManager;
|
|
12757
|
+
|
|
12758
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
|
|
12759
|
+
var transitional_default = {
|
|
12760
|
+
silentJSONParsing: true,
|
|
12761
|
+
forcedJSONParsing: true,
|
|
12762
|
+
clarifyTimeoutError: false,
|
|
12763
|
+
legacyInterceptorReqResOrdering: true
|
|
12764
|
+
};
|
|
12765
|
+
|
|
12766
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
|
|
12767
|
+
import crypto from "crypto";
|
|
12768
|
+
|
|
12769
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
12770
|
+
import url from "url";
|
|
12771
|
+
var URLSearchParams_default = url.URLSearchParams;
|
|
12772
|
+
|
|
12773
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
|
|
12774
|
+
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
12775
|
+
var DIGIT = "0123456789";
|
|
12776
|
+
var ALPHABET = {
|
|
12777
|
+
DIGIT,
|
|
12778
|
+
ALPHA,
|
|
12779
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
12780
|
+
};
|
|
12781
|
+
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
12782
|
+
let str = "";
|
|
12783
|
+
const { length } = alphabet;
|
|
12784
|
+
const randomValues = new Uint32Array(size);
|
|
12785
|
+
crypto.randomFillSync(randomValues);
|
|
12786
|
+
for (let i = 0; i < size; i++) {
|
|
12787
|
+
str += alphabet[randomValues[i] % length];
|
|
12788
|
+
}
|
|
12789
|
+
return str;
|
|
12790
|
+
};
|
|
12791
|
+
var node_default = {
|
|
12792
|
+
isNode: true,
|
|
12793
|
+
classes: {
|
|
12794
|
+
URLSearchParams: URLSearchParams_default,
|
|
12795
|
+
FormData: FormData_default,
|
|
12796
|
+
Blob: typeof Blob !== "undefined" && Blob || null
|
|
12797
|
+
},
|
|
12798
|
+
ALPHABET,
|
|
12799
|
+
generateString,
|
|
12800
|
+
protocols: ["http", "https", "file", "data"]
|
|
12801
|
+
};
|
|
12802
|
+
|
|
12803
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
|
|
12804
|
+
var utils_exports = {};
|
|
12805
|
+
__export(utils_exports, {
|
|
12806
|
+
hasBrowserEnv: () => hasBrowserEnv,
|
|
12807
|
+
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
12808
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
12809
|
+
navigator: () => _navigator,
|
|
12810
|
+
origin: () => origin
|
|
12811
|
+
});
|
|
12812
|
+
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
12813
|
+
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
12814
|
+
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
12815
|
+
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
12816
|
+
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
12817
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
12818
|
+
})();
|
|
12819
|
+
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
12820
|
+
|
|
12821
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/index.js
|
|
12822
|
+
var platform_default = {
|
|
12823
|
+
...utils_exports,
|
|
12824
|
+
...node_default
|
|
12825
|
+
};
|
|
12826
|
+
|
|
12827
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
12828
|
+
function toURLEncodedForm(data, options) {
|
|
12829
|
+
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
12830
|
+
visitor: function(value, key, path, helpers) {
|
|
12831
|
+
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
12832
|
+
this.append(key, value.toString("base64"));
|
|
12833
|
+
return false;
|
|
12813
12834
|
}
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12835
|
+
return helpers.defaultVisitor.apply(this, arguments);
|
|
12836
|
+
},
|
|
12837
|
+
...options
|
|
12838
|
+
});
|
|
12839
|
+
}
|
|
12840
|
+
|
|
12841
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
12842
|
+
function parsePropPath(name) {
|
|
12843
|
+
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
12844
|
+
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
12845
|
+
});
|
|
12846
|
+
}
|
|
12847
|
+
function arrayToObject(arr) {
|
|
12848
|
+
const obj = {};
|
|
12849
|
+
const keys = Object.keys(arr);
|
|
12850
|
+
let i;
|
|
12851
|
+
const len = keys.length;
|
|
12852
|
+
let key;
|
|
12853
|
+
for (i = 0; i < len; i++) {
|
|
12854
|
+
key = keys[i];
|
|
12855
|
+
obj[key] = arr[key];
|
|
12823
12856
|
}
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12857
|
+
return obj;
|
|
12858
|
+
}
|
|
12859
|
+
function formDataToJSON(formData) {
|
|
12860
|
+
function buildPath(path, value, target, index) {
|
|
12861
|
+
let name = path[index++];
|
|
12862
|
+
if (name === "__proto__") return true;
|
|
12863
|
+
const isNumericKey = Number.isFinite(+name);
|
|
12864
|
+
const isLast = index >= path.length;
|
|
12865
|
+
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
12866
|
+
if (isLast) {
|
|
12867
|
+
if (utils_default.hasOwnProp(target, name)) {
|
|
12868
|
+
target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
12869
|
+
} else {
|
|
12870
|
+
target[name] = value;
|
|
12835
12871
|
}
|
|
12872
|
+
return !isNumericKey;
|
|
12836
12873
|
}
|
|
12837
|
-
if (utils_default.
|
|
12838
|
-
|
|
12839
|
-
} else {
|
|
12840
|
-
deleteHeader(header);
|
|
12874
|
+
if (!target[name] || !utils_default.isObject(target[name])) {
|
|
12875
|
+
target[name] = [];
|
|
12841
12876
|
}
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
const keys = Object.keys(this);
|
|
12846
|
-
let i = keys.length;
|
|
12847
|
-
let deleted = false;
|
|
12848
|
-
while (i--) {
|
|
12849
|
-
const key = keys[i];
|
|
12850
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
12851
|
-
delete this[key];
|
|
12852
|
-
deleted = true;
|
|
12853
|
-
}
|
|
12877
|
+
const result = buildPath(path, value, target[name], index);
|
|
12878
|
+
if (result && utils_default.isArray(target[name])) {
|
|
12879
|
+
target[name] = arrayToObject(target[name]);
|
|
12854
12880
|
}
|
|
12855
|
-
return
|
|
12856
|
-
}
|
|
12857
|
-
normalize(format) {
|
|
12858
|
-
const self2 = this;
|
|
12859
|
-
const headers = {};
|
|
12860
|
-
utils_default.forEach(this, (value, header) => {
|
|
12861
|
-
const key = utils_default.findKey(headers, header);
|
|
12862
|
-
if (key) {
|
|
12863
|
-
self2[key] = normalizeValue(value);
|
|
12864
|
-
delete self2[header];
|
|
12865
|
-
return;
|
|
12866
|
-
}
|
|
12867
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
12868
|
-
if (normalized !== header) {
|
|
12869
|
-
delete self2[header];
|
|
12870
|
-
}
|
|
12871
|
-
self2[normalized] = normalizeValue(value);
|
|
12872
|
-
headers[normalized] = true;
|
|
12873
|
-
});
|
|
12874
|
-
return this;
|
|
12875
|
-
}
|
|
12876
|
-
concat(...targets) {
|
|
12877
|
-
return this.constructor.concat(this, ...targets);
|
|
12881
|
+
return !isNumericKey;
|
|
12878
12882
|
}
|
|
12879
|
-
|
|
12880
|
-
const obj =
|
|
12881
|
-
utils_default.
|
|
12882
|
-
|
|
12883
|
+
if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
|
|
12884
|
+
const obj = {};
|
|
12885
|
+
utils_default.forEachEntry(formData, (name, value) => {
|
|
12886
|
+
buildPath(parsePropPath(name), value, obj, 0);
|
|
12883
12887
|
});
|
|
12884
12888
|
return obj;
|
|
12885
12889
|
}
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
const computed = new this(first);
|
|
12903
|
-
targets.forEach((target) => computed.set(target));
|
|
12904
|
-
return computed;
|
|
12890
|
+
return null;
|
|
12891
|
+
}
|
|
12892
|
+
var formDataToJSON_default = formDataToJSON;
|
|
12893
|
+
|
|
12894
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/defaults/index.js
|
|
12895
|
+
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
12896
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
12897
|
+
if (utils_default.isString(rawValue)) {
|
|
12898
|
+
try {
|
|
12899
|
+
(parser || JSON.parse)(rawValue);
|
|
12900
|
+
return utils_default.trim(rawValue);
|
|
12901
|
+
} catch (e) {
|
|
12902
|
+
if (e.name !== "SyntaxError") {
|
|
12903
|
+
throw e;
|
|
12904
|
+
}
|
|
12905
|
+
}
|
|
12905
12906
|
}
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
function
|
|
12913
|
-
const
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12907
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
12908
|
+
}
|
|
12909
|
+
var defaults = {
|
|
12910
|
+
transitional: transitional_default,
|
|
12911
|
+
adapter: ["xhr", "http", "fetch"],
|
|
12912
|
+
transformRequest: [
|
|
12913
|
+
function transformRequest(data, headers) {
|
|
12914
|
+
const contentType = headers.getContentType() || "";
|
|
12915
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
12916
|
+
const isObjectPayload = utils_default.isObject(data);
|
|
12917
|
+
if (isObjectPayload && utils_default.isHTMLForm(data)) {
|
|
12918
|
+
data = new FormData(data);
|
|
12919
|
+
}
|
|
12920
|
+
const isFormData2 = utils_default.isFormData(data);
|
|
12921
|
+
if (isFormData2) {
|
|
12922
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
12923
|
+
}
|
|
12924
|
+
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
|
|
12925
|
+
return data;
|
|
12926
|
+
}
|
|
12927
|
+
if (utils_default.isArrayBufferView(data)) {
|
|
12928
|
+
return data.buffer;
|
|
12929
|
+
}
|
|
12930
|
+
if (utils_default.isURLSearchParams(data)) {
|
|
12931
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
12932
|
+
return data.toString();
|
|
12933
|
+
}
|
|
12934
|
+
let isFileList2;
|
|
12935
|
+
if (isObjectPayload) {
|
|
12936
|
+
const formSerializer = own(this, "formSerializer");
|
|
12937
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
12938
|
+
return toURLEncodedForm(data, formSerializer).toString();
|
|
12939
|
+
}
|
|
12940
|
+
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
12941
|
+
const env = own(this, "env");
|
|
12942
|
+
const _FormData = env && env.FormData;
|
|
12943
|
+
return toFormData_default(
|
|
12944
|
+
isFileList2 ? { "files[]": data } : data,
|
|
12945
|
+
_FormData && new _FormData(),
|
|
12946
|
+
formSerializer
|
|
12947
|
+
);
|
|
12948
|
+
}
|
|
12949
|
+
}
|
|
12950
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
12951
|
+
headers.setContentType("application/json", false);
|
|
12952
|
+
return stringifySafely(data);
|
|
12917
12953
|
}
|
|
12954
|
+
return data;
|
|
12955
|
+
}
|
|
12956
|
+
],
|
|
12957
|
+
transformResponse: [
|
|
12958
|
+
function transformResponse(data) {
|
|
12959
|
+
const transitional2 = own(this, "transitional") || defaults.transitional;
|
|
12960
|
+
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
12961
|
+
const responseType = own(this, "responseType");
|
|
12962
|
+
const JSONRequested = responseType === "json";
|
|
12963
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
12964
|
+
return data;
|
|
12965
|
+
}
|
|
12966
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
12967
|
+
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
12968
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
12969
|
+
try {
|
|
12970
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
12971
|
+
} catch (e) {
|
|
12972
|
+
if (strictJSONParsing) {
|
|
12973
|
+
if (e.name === "SyntaxError") {
|
|
12974
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
12975
|
+
}
|
|
12976
|
+
throw e;
|
|
12977
|
+
}
|
|
12978
|
+
}
|
|
12979
|
+
}
|
|
12980
|
+
return data;
|
|
12981
|
+
}
|
|
12982
|
+
],
|
|
12983
|
+
/**
|
|
12984
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
12985
|
+
* timeout is not created.
|
|
12986
|
+
*/
|
|
12987
|
+
timeout: 0,
|
|
12988
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
12989
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
12990
|
+
maxContentLength: -1,
|
|
12991
|
+
maxBodyLength: -1,
|
|
12992
|
+
env: {
|
|
12993
|
+
FormData: platform_default.classes.FormData,
|
|
12994
|
+
Blob: platform_default.classes.Blob
|
|
12995
|
+
},
|
|
12996
|
+
validateStatus: function validateStatus(status) {
|
|
12997
|
+
return status >= 200 && status < 300;
|
|
12998
|
+
},
|
|
12999
|
+
headers: {
|
|
13000
|
+
common: {
|
|
13001
|
+
Accept: "application/json, text/plain, */*",
|
|
13002
|
+
"Content-Type": void 0
|
|
12918
13003
|
}
|
|
12919
|
-
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
12920
|
-
return this;
|
|
12921
13004
|
}
|
|
12922
13005
|
};
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
12926
|
-
return {
|
|
12927
|
-
get: () => value,
|
|
12928
|
-
set(headerValue) {
|
|
12929
|
-
this[mapped] = headerValue;
|
|
12930
|
-
}
|
|
12931
|
-
};
|
|
13006
|
+
utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
|
|
13007
|
+
defaults.headers[method] = {};
|
|
12932
13008
|
});
|
|
12933
|
-
|
|
12934
|
-
var AxiosHeaders_default = AxiosHeaders;
|
|
13009
|
+
var defaults_default = defaults;
|
|
12935
13010
|
|
|
12936
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13011
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/transformData.js
|
|
12937
13012
|
function transformData(fns, response) {
|
|
12938
13013
|
const config = this || defaults_default;
|
|
12939
13014
|
const context = response || config;
|
|
@@ -12946,12 +13021,12 @@ function transformData(fns, response) {
|
|
|
12946
13021
|
return data;
|
|
12947
13022
|
}
|
|
12948
13023
|
|
|
12949
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13024
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
|
|
12950
13025
|
function isCancel(value) {
|
|
12951
13026
|
return !!(value && value.__CANCEL__);
|
|
12952
13027
|
}
|
|
12953
13028
|
|
|
12954
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13029
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
|
|
12955
13030
|
var CanceledError = class extends AxiosError_default {
|
|
12956
13031
|
/**
|
|
12957
13032
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -12970,7 +13045,7 @@ var CanceledError = class extends AxiosError_default {
|
|
|
12970
13045
|
};
|
|
12971
13046
|
var CanceledError_default = CanceledError;
|
|
12972
13047
|
|
|
12973
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13048
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/settle.js
|
|
12974
13049
|
function settle(resolve, reject, response) {
|
|
12975
13050
|
const validateStatus2 = response.config.validateStatus;
|
|
12976
13051
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -12978,7 +13053,7 @@ function settle(resolve, reject, response) {
|
|
|
12978
13053
|
} else {
|
|
12979
13054
|
reject(new AxiosError_default(
|
|
12980
13055
|
"Request failed with status code " + response.status,
|
|
12981
|
-
|
|
13056
|
+
response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
|
|
12982
13057
|
response.config,
|
|
12983
13058
|
response.request,
|
|
12984
13059
|
response
|
|
@@ -12986,7 +13061,7 @@ function settle(resolve, reject, response) {
|
|
|
12986
13061
|
}
|
|
12987
13062
|
}
|
|
12988
13063
|
|
|
12989
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13064
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
12990
13065
|
function isAbsoluteURL(url2) {
|
|
12991
13066
|
if (typeof url2 !== "string") {
|
|
12992
13067
|
return false;
|
|
@@ -12994,39 +13069,106 @@ function isAbsoluteURL(url2) {
|
|
|
12994
13069
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
12995
13070
|
}
|
|
12996
13071
|
|
|
12997
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13072
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
|
|
12998
13073
|
function combineURLs(baseURL, relativeURL) {
|
|
12999
13074
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
13000
13075
|
}
|
|
13001
13076
|
|
|
13002
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13077
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
|
|
13003
13078
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
13004
13079
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
13005
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
13080
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
13006
13081
|
return combineURLs(baseURL, requestedURL);
|
|
13007
13082
|
}
|
|
13008
13083
|
return requestedURL;
|
|
13009
13084
|
}
|
|
13010
13085
|
|
|
13011
|
-
// ../../node_modules/.pnpm/
|
|
13012
|
-
var
|
|
13086
|
+
// ../../node_modules/.pnpm/proxy-from-env@2.1.0/node_modules/proxy-from-env/index.js
|
|
13087
|
+
var DEFAULT_PORTS = {
|
|
13088
|
+
ftp: 21,
|
|
13089
|
+
gopher: 70,
|
|
13090
|
+
http: 80,
|
|
13091
|
+
https: 443,
|
|
13092
|
+
ws: 80,
|
|
13093
|
+
wss: 443
|
|
13094
|
+
};
|
|
13095
|
+
function parseUrl(urlString) {
|
|
13096
|
+
try {
|
|
13097
|
+
return new URL(urlString);
|
|
13098
|
+
} catch {
|
|
13099
|
+
return null;
|
|
13100
|
+
}
|
|
13101
|
+
}
|
|
13102
|
+
function getProxyForUrl(url2) {
|
|
13103
|
+
var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
|
|
13104
|
+
var proto = parsedUrl.protocol;
|
|
13105
|
+
var hostname = parsedUrl.host;
|
|
13106
|
+
var port = parsedUrl.port;
|
|
13107
|
+
if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
|
|
13108
|
+
return "";
|
|
13109
|
+
}
|
|
13110
|
+
proto = proto.split(":", 1)[0];
|
|
13111
|
+
hostname = hostname.replace(/:\d*$/, "");
|
|
13112
|
+
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
|
13113
|
+
if (!shouldProxy(hostname, port)) {
|
|
13114
|
+
return "";
|
|
13115
|
+
}
|
|
13116
|
+
var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
|
|
13117
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
|
13118
|
+
proxy = proto + "://" + proxy;
|
|
13119
|
+
}
|
|
13120
|
+
return proxy;
|
|
13121
|
+
}
|
|
13122
|
+
function shouldProxy(hostname, port) {
|
|
13123
|
+
var NO_PROXY = getEnv("no_proxy").toLowerCase();
|
|
13124
|
+
if (!NO_PROXY) {
|
|
13125
|
+
return true;
|
|
13126
|
+
}
|
|
13127
|
+
if (NO_PROXY === "*") {
|
|
13128
|
+
return false;
|
|
13129
|
+
}
|
|
13130
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
13131
|
+
if (!proxy) {
|
|
13132
|
+
return true;
|
|
13133
|
+
}
|
|
13134
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
13135
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
13136
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
13137
|
+
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
13138
|
+
return true;
|
|
13139
|
+
}
|
|
13140
|
+
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
13141
|
+
return hostname !== parsedProxyHostname;
|
|
13142
|
+
}
|
|
13143
|
+
if (parsedProxyHostname.charAt(0) === "*") {
|
|
13144
|
+
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
13145
|
+
}
|
|
13146
|
+
return !hostname.endsWith(parsedProxyHostname);
|
|
13147
|
+
});
|
|
13148
|
+
}
|
|
13149
|
+
function getEnv(key) {
|
|
13150
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
13151
|
+
}
|
|
13152
|
+
|
|
13153
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
|
|
13013
13154
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
13014
13155
|
import http from "http";
|
|
13015
13156
|
import https from "https";
|
|
13016
13157
|
import http2 from "http2";
|
|
13017
13158
|
import util2 from "util";
|
|
13159
|
+
import { resolve as resolvePath } from "path";
|
|
13018
13160
|
import zlib from "zlib";
|
|
13019
13161
|
|
|
13020
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13021
|
-
var VERSION = "1.
|
|
13162
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/env/data.js
|
|
13163
|
+
var VERSION = "1.16.0";
|
|
13022
13164
|
|
|
13023
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13165
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
|
|
13024
13166
|
function parseProtocol(url2) {
|
|
13025
|
-
const match = /^([-+\w]{1,25})(
|
|
13167
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
13026
13168
|
return match && match[1] || "";
|
|
13027
13169
|
}
|
|
13028
13170
|
|
|
13029
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13171
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
|
|
13030
13172
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
13031
13173
|
function fromDataURI(uri, asBlob, options) {
|
|
13032
13174
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
@@ -13055,24 +13197,29 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
13055
13197
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
13056
13198
|
}
|
|
13057
13199
|
|
|
13058
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13200
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
|
|
13059
13201
|
import stream3 from "stream";
|
|
13060
13202
|
|
|
13061
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13203
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
13062
13204
|
import stream from "stream";
|
|
13063
13205
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
13064
13206
|
var AxiosTransformStream = class extends stream.Transform {
|
|
13065
13207
|
constructor(options) {
|
|
13066
|
-
options = utils_default.toFlatObject(
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
|
|
13074
|
-
|
|
13075
|
-
|
|
13208
|
+
options = utils_default.toFlatObject(
|
|
13209
|
+
options,
|
|
13210
|
+
{
|
|
13211
|
+
maxRate: 0,
|
|
13212
|
+
chunkSize: 64 * 1024,
|
|
13213
|
+
minChunkSize: 100,
|
|
13214
|
+
timeWindow: 500,
|
|
13215
|
+
ticksRate: 2,
|
|
13216
|
+
samplesCount: 15
|
|
13217
|
+
},
|
|
13218
|
+
null,
|
|
13219
|
+
(prop, source) => {
|
|
13220
|
+
return !utils_default.isUndefined(source[prop]);
|
|
13221
|
+
}
|
|
13222
|
+
);
|
|
13076
13223
|
super({
|
|
13077
13224
|
readableHighWaterMark: options.chunkSize
|
|
13078
13225
|
});
|
|
@@ -13155,9 +13302,12 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
13155
13302
|
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
13156
13303
|
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
13157
13304
|
}
|
|
13158
|
-
pushChunk(
|
|
13159
|
-
|
|
13160
|
-
|
|
13305
|
+
pushChunk(
|
|
13306
|
+
_chunk,
|
|
13307
|
+
chunkRemainder ? () => {
|
|
13308
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
13309
|
+
} : _callback
|
|
13310
|
+
);
|
|
13161
13311
|
};
|
|
13162
13312
|
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
13163
13313
|
if (err) {
|
|
@@ -13173,14 +13323,14 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
13173
13323
|
};
|
|
13174
13324
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
13175
13325
|
|
|
13176
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13326
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
|
|
13177
13327
|
import { EventEmitter } from "events";
|
|
13178
13328
|
|
|
13179
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13329
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
|
|
13180
13330
|
import util from "util";
|
|
13181
13331
|
import { Readable } from "stream";
|
|
13182
13332
|
|
|
13183
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13333
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
|
|
13184
13334
|
var { asyncIterator } = Symbol;
|
|
13185
13335
|
var readBlob = async function* (blob) {
|
|
13186
13336
|
if (blob.stream) {
|
|
@@ -13195,7 +13345,7 @@ var readBlob = async function* (blob) {
|
|
|
13195
13345
|
};
|
|
13196
13346
|
var readBlob_default = readBlob;
|
|
13197
13347
|
|
|
13198
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13348
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
|
|
13199
13349
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
13200
13350
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
13201
13351
|
var CRLF = "\r\n";
|
|
@@ -13209,7 +13359,8 @@ var FormDataPart = class {
|
|
|
13209
13359
|
if (isStringValue) {
|
|
13210
13360
|
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
13211
13361
|
} else {
|
|
13212
|
-
|
|
13362
|
+
const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
13363
|
+
headers += `Content-Type: ${safeType}${CRLF}`;
|
|
13213
13364
|
}
|
|
13214
13365
|
this.headers = textEncoder.encode(headers + CRLF);
|
|
13215
13366
|
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
@@ -13228,11 +13379,14 @@ var FormDataPart = class {
|
|
|
13228
13379
|
yield CRLF_BYTES;
|
|
13229
13380
|
}
|
|
13230
13381
|
static escapeName(name) {
|
|
13231
|
-
return String(name).replace(
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
|
|
13382
|
+
return String(name).replace(
|
|
13383
|
+
/[\r\n"]/g,
|
|
13384
|
+
(match) => ({
|
|
13385
|
+
"\r": "%0D",
|
|
13386
|
+
"\n": "%0A",
|
|
13387
|
+
'"': "%22"
|
|
13388
|
+
})[match]
|
|
13389
|
+
);
|
|
13236
13390
|
}
|
|
13237
13391
|
};
|
|
13238
13392
|
var formDataToStream = (form, headersHandler, options) => {
|
|
@@ -13245,7 +13399,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
13245
13399
|
throw TypeError("FormData instance required");
|
|
13246
13400
|
}
|
|
13247
13401
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
13248
|
-
throw Error("boundary must be
|
|
13402
|
+
throw Error("boundary must be 1-70 characters long");
|
|
13249
13403
|
}
|
|
13250
13404
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
13251
13405
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -13264,17 +13418,19 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
13264
13418
|
computedHeaders["Content-Length"] = contentLength;
|
|
13265
13419
|
}
|
|
13266
13420
|
headersHandler && headersHandler(computedHeaders);
|
|
13267
|
-
return Readable.from(
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
|
|
13421
|
+
return Readable.from(
|
|
13422
|
+
(async function* () {
|
|
13423
|
+
for (const part of parts) {
|
|
13424
|
+
yield boundaryBytes;
|
|
13425
|
+
yield* part.encode();
|
|
13426
|
+
}
|
|
13427
|
+
yield footerBytes;
|
|
13428
|
+
})()
|
|
13429
|
+
);
|
|
13274
13430
|
};
|
|
13275
13431
|
var formDataToStream_default = formDataToStream;
|
|
13276
13432
|
|
|
13277
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13433
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
13278
13434
|
import stream2 from "stream";
|
|
13279
13435
|
var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
13280
13436
|
__transform(chunk, encoding, callback) {
|
|
@@ -13296,7 +13452,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
|
13296
13452
|
};
|
|
13297
13453
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
13298
13454
|
|
|
13299
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13455
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
|
|
13300
13456
|
var callbackify = (fn, reducer) => {
|
|
13301
13457
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
13302
13458
|
const cb = args.pop();
|
|
@@ -13311,7 +13467,129 @@ var callbackify = (fn, reducer) => {
|
|
|
13311
13467
|
};
|
|
13312
13468
|
var callbackify_default = callbackify;
|
|
13313
13469
|
|
|
13314
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13470
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
13471
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
13472
|
+
var isIPv4Loopback = (host) => {
|
|
13473
|
+
const parts = host.split(".");
|
|
13474
|
+
if (parts.length !== 4) return false;
|
|
13475
|
+
if (parts[0] !== "127") return false;
|
|
13476
|
+
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
13477
|
+
};
|
|
13478
|
+
var isIPv6Loopback = (host) => {
|
|
13479
|
+
if (host === "::1") return true;
|
|
13480
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
13481
|
+
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
13482
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
13483
|
+
if (v4MappedHex) {
|
|
13484
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
13485
|
+
return high >= 32512 && high <= 32767;
|
|
13486
|
+
}
|
|
13487
|
+
const groups = host.split(":");
|
|
13488
|
+
if (groups.length === 8) {
|
|
13489
|
+
for (let i = 0; i < 7; i++) {
|
|
13490
|
+
if (!/^0+$/.test(groups[i])) return false;
|
|
13491
|
+
}
|
|
13492
|
+
return /^0*1$/.test(groups[7]);
|
|
13493
|
+
}
|
|
13494
|
+
return false;
|
|
13495
|
+
};
|
|
13496
|
+
var isLoopback = (host) => {
|
|
13497
|
+
if (!host) return false;
|
|
13498
|
+
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
13499
|
+
if (isIPv4Loopback(host)) return true;
|
|
13500
|
+
return isIPv6Loopback(host);
|
|
13501
|
+
};
|
|
13502
|
+
var DEFAULT_PORTS2 = {
|
|
13503
|
+
http: 80,
|
|
13504
|
+
https: 443,
|
|
13505
|
+
ws: 80,
|
|
13506
|
+
wss: 443,
|
|
13507
|
+
ftp: 21
|
|
13508
|
+
};
|
|
13509
|
+
var parseNoProxyEntry = (entry) => {
|
|
13510
|
+
let entryHost = entry;
|
|
13511
|
+
let entryPort = 0;
|
|
13512
|
+
if (entryHost.charAt(0) === "[") {
|
|
13513
|
+
const bracketIndex = entryHost.indexOf("]");
|
|
13514
|
+
if (bracketIndex !== -1) {
|
|
13515
|
+
const host = entryHost.slice(1, bracketIndex);
|
|
13516
|
+
const rest = entryHost.slice(bracketIndex + 1);
|
|
13517
|
+
if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
|
|
13518
|
+
entryPort = Number.parseInt(rest.slice(1), 10);
|
|
13519
|
+
}
|
|
13520
|
+
return [host, entryPort];
|
|
13521
|
+
}
|
|
13522
|
+
}
|
|
13523
|
+
const firstColon = entryHost.indexOf(":");
|
|
13524
|
+
const lastColon = entryHost.lastIndexOf(":");
|
|
13525
|
+
if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
|
|
13526
|
+
entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
|
|
13527
|
+
entryHost = entryHost.slice(0, lastColon);
|
|
13528
|
+
}
|
|
13529
|
+
return [entryHost, entryPort];
|
|
13530
|
+
};
|
|
13531
|
+
var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
13532
|
+
var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
|
|
13533
|
+
var unmapIPv4MappedIPv6 = (host) => {
|
|
13534
|
+
if (typeof host !== "string" || host.indexOf(":") === -1) return host;
|
|
13535
|
+
const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
|
|
13536
|
+
if (dotted) return dotted[1];
|
|
13537
|
+
const hex = host.match(IPV4_MAPPED_HEX_RE);
|
|
13538
|
+
if (hex) {
|
|
13539
|
+
const high = parseInt(hex[1], 16);
|
|
13540
|
+
const low = parseInt(hex[2], 16);
|
|
13541
|
+
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
13542
|
+
}
|
|
13543
|
+
return host;
|
|
13544
|
+
};
|
|
13545
|
+
var normalizeNoProxyHost = (hostname) => {
|
|
13546
|
+
if (!hostname) {
|
|
13547
|
+
return hostname;
|
|
13548
|
+
}
|
|
13549
|
+
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
13550
|
+
hostname = hostname.slice(1, -1);
|
|
13551
|
+
}
|
|
13552
|
+
return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
|
|
13553
|
+
};
|
|
13554
|
+
function shouldBypassProxy(location) {
|
|
13555
|
+
let parsed;
|
|
13556
|
+
try {
|
|
13557
|
+
parsed = new URL(location);
|
|
13558
|
+
} catch (_err) {
|
|
13559
|
+
return false;
|
|
13560
|
+
}
|
|
13561
|
+
const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
|
|
13562
|
+
if (!noProxy) {
|
|
13563
|
+
return false;
|
|
13564
|
+
}
|
|
13565
|
+
if (noProxy === "*") {
|
|
13566
|
+
return true;
|
|
13567
|
+
}
|
|
13568
|
+
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
|
|
13569
|
+
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
13570
|
+
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
13571
|
+
if (!entry) {
|
|
13572
|
+
return false;
|
|
13573
|
+
}
|
|
13574
|
+
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
13575
|
+
entryHost = normalizeNoProxyHost(entryHost);
|
|
13576
|
+
if (!entryHost) {
|
|
13577
|
+
return false;
|
|
13578
|
+
}
|
|
13579
|
+
if (entryPort && entryPort !== port) {
|
|
13580
|
+
return false;
|
|
13581
|
+
}
|
|
13582
|
+
if (entryHost.charAt(0) === "*") {
|
|
13583
|
+
entryHost = entryHost.slice(1);
|
|
13584
|
+
}
|
|
13585
|
+
if (entryHost.charAt(0) === ".") {
|
|
13586
|
+
return hostname.endsWith(entryHost);
|
|
13587
|
+
}
|
|
13588
|
+
return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
|
|
13589
|
+
});
|
|
13590
|
+
}
|
|
13591
|
+
|
|
13592
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
|
|
13315
13593
|
function speedometer(samplesCount, min) {
|
|
13316
13594
|
samplesCount = samplesCount || 10;
|
|
13317
13595
|
const bytes = new Array(samplesCount);
|
|
@@ -13347,7 +13625,7 @@ function speedometer(samplesCount, min) {
|
|
|
13347
13625
|
}
|
|
13348
13626
|
var speedometer_default = speedometer;
|
|
13349
13627
|
|
|
13350
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13628
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
|
|
13351
13629
|
function throttle(fn, freq) {
|
|
13352
13630
|
let timestamp = 0;
|
|
13353
13631
|
let threshold = 1e3 / freq;
|
|
@@ -13382,24 +13660,24 @@ function throttle(fn, freq) {
|
|
|
13382
13660
|
}
|
|
13383
13661
|
var throttle_default = throttle;
|
|
13384
13662
|
|
|
13385
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13663
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
13386
13664
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
13387
13665
|
let bytesNotified = 0;
|
|
13388
13666
|
const _speedometer = speedometer_default(50, 250);
|
|
13389
13667
|
return throttle_default((e) => {
|
|
13390
|
-
const
|
|
13668
|
+
const rawLoaded = e.loaded;
|
|
13391
13669
|
const total = e.lengthComputable ? e.total : void 0;
|
|
13392
|
-
const
|
|
13670
|
+
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
13671
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
13393
13672
|
const rate = _speedometer(progressBytes);
|
|
13394
|
-
|
|
13395
|
-
bytesNotified = loaded;
|
|
13673
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
13396
13674
|
const data = {
|
|
13397
13675
|
loaded,
|
|
13398
13676
|
total,
|
|
13399
13677
|
progress: total ? loaded / total : void 0,
|
|
13400
13678
|
bytes: progressBytes,
|
|
13401
13679
|
rate: rate ? rate : void 0,
|
|
13402
|
-
estimated: rate && total
|
|
13680
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
13403
13681
|
event: e,
|
|
13404
13682
|
lengthComputable: total != null,
|
|
13405
13683
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -13409,15 +13687,18 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
13409
13687
|
};
|
|
13410
13688
|
var progressEventDecorator = (total, throttled) => {
|
|
13411
13689
|
const lengthComputable = total != null;
|
|
13412
|
-
return [
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13690
|
+
return [
|
|
13691
|
+
(loaded) => throttled[0]({
|
|
13692
|
+
lengthComputable,
|
|
13693
|
+
total,
|
|
13694
|
+
loaded
|
|
13695
|
+
}),
|
|
13696
|
+
throttled[1]
|
|
13697
|
+
];
|
|
13417
13698
|
};
|
|
13418
13699
|
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
13419
13700
|
|
|
13420
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13701
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
13421
13702
|
function estimateDataURLDecodedBytes(url2) {
|
|
13422
13703
|
if (!url2 || typeof url2 !== "string") return 0;
|
|
13423
13704
|
if (!url2.startsWith("data:")) return 0;
|
|
@@ -13462,13 +13743,35 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
13462
13743
|
}
|
|
13463
13744
|
}
|
|
13464
13745
|
const groups = Math.floor(effectiveLen / 4);
|
|
13465
|
-
const
|
|
13466
|
-
return
|
|
13746
|
+
const bytes2 = groups * 3 - (pad || 0);
|
|
13747
|
+
return bytes2 > 0 ? bytes2 : 0;
|
|
13748
|
+
}
|
|
13749
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
13750
|
+
return Buffer.byteLength(body, "utf8");
|
|
13751
|
+
}
|
|
13752
|
+
let bytes = 0;
|
|
13753
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
13754
|
+
const c = body.charCodeAt(i);
|
|
13755
|
+
if (c < 128) {
|
|
13756
|
+
bytes += 1;
|
|
13757
|
+
} else if (c < 2048) {
|
|
13758
|
+
bytes += 2;
|
|
13759
|
+
} else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
13760
|
+
const next = body.charCodeAt(i + 1);
|
|
13761
|
+
if (next >= 56320 && next <= 57343) {
|
|
13762
|
+
bytes += 4;
|
|
13763
|
+
i++;
|
|
13764
|
+
} else {
|
|
13765
|
+
bytes += 3;
|
|
13766
|
+
}
|
|
13767
|
+
} else {
|
|
13768
|
+
bytes += 3;
|
|
13769
|
+
}
|
|
13467
13770
|
}
|
|
13468
|
-
return
|
|
13771
|
+
return bytes;
|
|
13469
13772
|
}
|
|
13470
13773
|
|
|
13471
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13774
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
|
|
13472
13775
|
var zlibOptions = {
|
|
13473
13776
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
13474
13777
|
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
@@ -13480,9 +13783,33 @@ var brotliOptions = {
|
|
|
13480
13783
|
var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
|
|
13481
13784
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
13482
13785
|
var isHttps = /https:?/;
|
|
13786
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
13787
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
13788
|
+
if (policy !== "content-only") {
|
|
13789
|
+
headers.set(formHeaders);
|
|
13790
|
+
return;
|
|
13791
|
+
}
|
|
13792
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
13793
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
13794
|
+
headers.set(key, val);
|
|
13795
|
+
}
|
|
13796
|
+
});
|
|
13797
|
+
}
|
|
13798
|
+
var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
|
|
13799
|
+
var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
|
|
13483
13800
|
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
13484
13801
|
return protocol + ":";
|
|
13485
13802
|
});
|
|
13803
|
+
var decodeURIComponentSafe = (value) => {
|
|
13804
|
+
if (!utils_default.isString(value)) {
|
|
13805
|
+
return value;
|
|
13806
|
+
}
|
|
13807
|
+
try {
|
|
13808
|
+
return decodeURIComponent(value);
|
|
13809
|
+
} catch (error) {
|
|
13810
|
+
return value;
|
|
13811
|
+
}
|
|
13812
|
+
};
|
|
13486
13813
|
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
13487
13814
|
stream4.on("end", flush).on("error", flush);
|
|
13488
13815
|
return throttled;
|
|
@@ -13492,9 +13819,12 @@ var Http2Sessions = class {
|
|
|
13492
13819
|
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
13493
13820
|
}
|
|
13494
13821
|
getSession(authority, options) {
|
|
13495
|
-
options = Object.assign(
|
|
13496
|
-
|
|
13497
|
-
|
|
13822
|
+
options = Object.assign(
|
|
13823
|
+
{
|
|
13824
|
+
sessionTimeout: 1e3
|
|
13825
|
+
},
|
|
13826
|
+
options
|
|
13827
|
+
);
|
|
13498
13828
|
let authoritySessions = this.sessions[authority];
|
|
13499
13829
|
if (authoritySessions) {
|
|
13500
13830
|
let len = authoritySessions.length;
|
|
@@ -13520,6 +13850,9 @@ var Http2Sessions = class {
|
|
|
13520
13850
|
} else {
|
|
13521
13851
|
entries.splice(i, 1);
|
|
13522
13852
|
}
|
|
13853
|
+
if (!session.closed) {
|
|
13854
|
+
session.close();
|
|
13855
|
+
}
|
|
13523
13856
|
return;
|
|
13524
13857
|
}
|
|
13525
13858
|
}
|
|
@@ -13548,57 +13881,81 @@ var Http2Sessions = class {
|
|
|
13548
13881
|
};
|
|
13549
13882
|
}
|
|
13550
13883
|
session.once("close", removeSession);
|
|
13551
|
-
let entry = [
|
|
13552
|
-
session,
|
|
13553
|
-
options
|
|
13554
|
-
];
|
|
13884
|
+
let entry = [session, options];
|
|
13555
13885
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
13556
13886
|
return session;
|
|
13557
13887
|
}
|
|
13558
13888
|
};
|
|
13559
13889
|
var http2Sessions = new Http2Sessions();
|
|
13560
|
-
function dispatchBeforeRedirect(options, responseDetails) {
|
|
13890
|
+
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
13561
13891
|
if (options.beforeRedirects.proxy) {
|
|
13562
13892
|
options.beforeRedirects.proxy(options);
|
|
13563
13893
|
}
|
|
13564
13894
|
if (options.beforeRedirects.config) {
|
|
13565
|
-
options.beforeRedirects.config(options, responseDetails);
|
|
13895
|
+
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
13566
13896
|
}
|
|
13567
13897
|
}
|
|
13568
|
-
function setProxy(options, configProxy, location) {
|
|
13898
|
+
function setProxy(options, configProxy, location, isRedirect) {
|
|
13569
13899
|
let proxy = configProxy;
|
|
13570
13900
|
if (!proxy && proxy !== false) {
|
|
13571
|
-
const proxyUrl =
|
|
13901
|
+
const proxyUrl = getProxyForUrl(location);
|
|
13572
13902
|
if (proxyUrl) {
|
|
13573
|
-
|
|
13903
|
+
if (!shouldBypassProxy(location)) {
|
|
13904
|
+
proxy = new URL(proxyUrl);
|
|
13905
|
+
}
|
|
13574
13906
|
}
|
|
13575
13907
|
}
|
|
13576
|
-
if (
|
|
13577
|
-
|
|
13578
|
-
|
|
13908
|
+
if (isRedirect && options.headers) {
|
|
13909
|
+
for (const name of Object.keys(options.headers)) {
|
|
13910
|
+
if (name.toLowerCase() === "proxy-authorization") {
|
|
13911
|
+
delete options.headers[name];
|
|
13912
|
+
}
|
|
13579
13913
|
}
|
|
13580
|
-
|
|
13581
|
-
|
|
13914
|
+
}
|
|
13915
|
+
if (proxy) {
|
|
13916
|
+
const isProxyURL = proxy instanceof URL;
|
|
13917
|
+
const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
13918
|
+
const proxyUsername = readProxyField("username");
|
|
13919
|
+
const proxyPassword = readProxyField("password");
|
|
13920
|
+
let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
|
|
13921
|
+
if (proxyUsername) {
|
|
13922
|
+
proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
|
|
13923
|
+
}
|
|
13924
|
+
if (proxyAuth) {
|
|
13925
|
+
const authIsObject = typeof proxyAuth === "object";
|
|
13926
|
+
const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
|
|
13927
|
+
const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
|
|
13928
|
+
const validProxyAuth = Boolean(authUsername || authPassword);
|
|
13582
13929
|
if (validProxyAuth) {
|
|
13583
|
-
|
|
13584
|
-
} else if (
|
|
13930
|
+
proxyAuth = (authUsername || "") + ":" + (authPassword || "");
|
|
13931
|
+
} else if (authIsObject) {
|
|
13585
13932
|
throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
|
|
13586
13933
|
}
|
|
13587
|
-
const base64 = Buffer.from(
|
|
13934
|
+
const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
|
|
13588
13935
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
13589
13936
|
}
|
|
13590
|
-
|
|
13591
|
-
const
|
|
13937
|
+
let hasUserHostHeader = false;
|
|
13938
|
+
for (const name of Object.keys(options.headers)) {
|
|
13939
|
+
if (name.toLowerCase() === "host") {
|
|
13940
|
+
hasUserHostHeader = true;
|
|
13941
|
+
break;
|
|
13942
|
+
}
|
|
13943
|
+
}
|
|
13944
|
+
if (!hasUserHostHeader) {
|
|
13945
|
+
options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
|
|
13946
|
+
}
|
|
13947
|
+
const proxyHost = readProxyField("hostname") || readProxyField("host");
|
|
13592
13948
|
options.hostname = proxyHost;
|
|
13593
13949
|
options.host = proxyHost;
|
|
13594
|
-
options.port =
|
|
13950
|
+
options.port = readProxyField("port");
|
|
13595
13951
|
options.path = location;
|
|
13596
|
-
|
|
13597
|
-
|
|
13952
|
+
const proxyProtocol = readProxyField("protocol");
|
|
13953
|
+
if (proxyProtocol) {
|
|
13954
|
+
options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
|
|
13598
13955
|
}
|
|
13599
13956
|
}
|
|
13600
13957
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
13601
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
13958
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true);
|
|
13602
13959
|
};
|
|
13603
13960
|
}
|
|
13604
13961
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
@@ -13637,12 +13994,7 @@ var http2Transport = {
|
|
|
13637
13994
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
13638
13995
|
const { http2Options, headers } = options;
|
|
13639
13996
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
13640
|
-
const {
|
|
13641
|
-
HTTP2_HEADER_SCHEME,
|
|
13642
|
-
HTTP2_HEADER_METHOD,
|
|
13643
|
-
HTTP2_HEADER_PATH,
|
|
13644
|
-
HTTP2_HEADER_STATUS
|
|
13645
|
-
} = http2.constants;
|
|
13997
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
|
|
13646
13998
|
const http2Headers = {
|
|
13647
13999
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
13648
14000
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -13666,12 +14018,20 @@ var http2Transport = {
|
|
|
13666
14018
|
};
|
|
13667
14019
|
var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
13668
14020
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
13669
|
-
|
|
13670
|
-
|
|
14021
|
+
const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
14022
|
+
let data = own2("data");
|
|
14023
|
+
let lookup = own2("lookup");
|
|
14024
|
+
let family = own2("family");
|
|
14025
|
+
let httpVersion = own2("httpVersion");
|
|
14026
|
+
if (httpVersion === void 0) httpVersion = 1;
|
|
14027
|
+
let http2Options = own2("http2Options");
|
|
14028
|
+
const responseType = own2("responseType");
|
|
14029
|
+
const responseEncoding = own2("responseEncoding");
|
|
13671
14030
|
const method = config.method.toUpperCase();
|
|
13672
14031
|
let isDone;
|
|
13673
14032
|
let rejected = false;
|
|
13674
14033
|
let req;
|
|
14034
|
+
let connectPhaseTimer;
|
|
13675
14035
|
httpVersion = +httpVersion;
|
|
13676
14036
|
if (Number.isNaN(httpVersion)) {
|
|
13677
14037
|
throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
|
|
@@ -13695,13 +14055,36 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13695
14055
|
const abortEmitter = new EventEmitter();
|
|
13696
14056
|
function abort(reason) {
|
|
13697
14057
|
try {
|
|
13698
|
-
abortEmitter.emit(
|
|
14058
|
+
abortEmitter.emit(
|
|
14059
|
+
"abort",
|
|
14060
|
+
!reason || reason.type ? new CanceledError_default(null, config, req) : reason
|
|
14061
|
+
);
|
|
13699
14062
|
} catch (err) {
|
|
13700
14063
|
console.warn("emit error", err);
|
|
13701
14064
|
}
|
|
13702
14065
|
}
|
|
14066
|
+
function clearConnectPhaseTimer() {
|
|
14067
|
+
if (connectPhaseTimer) {
|
|
14068
|
+
clearTimeout(connectPhaseTimer);
|
|
14069
|
+
connectPhaseTimer = null;
|
|
14070
|
+
}
|
|
14071
|
+
}
|
|
14072
|
+
function createTimeoutError() {
|
|
14073
|
+
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
14074
|
+
const transitional2 = config.transitional || transitional_default;
|
|
14075
|
+
if (config.timeoutErrorMessage) {
|
|
14076
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
14077
|
+
}
|
|
14078
|
+
return new AxiosError_default(
|
|
14079
|
+
timeoutErrorMessage,
|
|
14080
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
14081
|
+
config,
|
|
14082
|
+
req
|
|
14083
|
+
);
|
|
14084
|
+
}
|
|
13703
14085
|
abortEmitter.once("abort", reject);
|
|
13704
14086
|
const onFinished = () => {
|
|
14087
|
+
clearConnectPhaseTimer();
|
|
13705
14088
|
if (config.cancelToken) {
|
|
13706
14089
|
config.cancelToken.unsubscribe(abort);
|
|
13707
14090
|
}
|
|
@@ -13718,6 +14101,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13718
14101
|
}
|
|
13719
14102
|
onDone((response, isRejected) => {
|
|
13720
14103
|
isDone = true;
|
|
14104
|
+
clearConnectPhaseTimer();
|
|
13721
14105
|
if (isRejected) {
|
|
13722
14106
|
rejected = true;
|
|
13723
14107
|
onFinished();
|
|
@@ -13741,11 +14125,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13741
14125
|
const dataUrl = String(config.url || fullPath || "");
|
|
13742
14126
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
13743
14127
|
if (estimated > config.maxContentLength) {
|
|
13744
|
-
return reject(
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
14128
|
+
return reject(
|
|
14129
|
+
new AxiosError_default(
|
|
14130
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
14131
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
14132
|
+
config
|
|
14133
|
+
)
|
|
14134
|
+
);
|
|
13749
14135
|
}
|
|
13750
14136
|
}
|
|
13751
14137
|
let convertedData;
|
|
@@ -13781,11 +14167,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13781
14167
|
});
|
|
13782
14168
|
}
|
|
13783
14169
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
13784
|
-
return reject(
|
|
13785
|
-
"Unsupported protocol " + protocol,
|
|
13786
|
-
|
|
13787
|
-
config
|
|
13788
|
-
));
|
|
14170
|
+
return reject(
|
|
14171
|
+
new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
|
|
14172
|
+
);
|
|
13789
14173
|
}
|
|
13790
14174
|
const headers = AxiosHeaders_default.from(config.headers).normalize();
|
|
13791
14175
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
@@ -13795,14 +14179,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13795
14179
|
let maxDownloadRate = void 0;
|
|
13796
14180
|
if (utils_default.isSpecCompliantForm(data)) {
|
|
13797
14181
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
13798
|
-
data = formDataToStream_default(
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
|
|
14182
|
+
data = formDataToStream_default(
|
|
14183
|
+
data,
|
|
14184
|
+
(formHeaders) => {
|
|
14185
|
+
headers.set(formHeaders);
|
|
14186
|
+
},
|
|
14187
|
+
{
|
|
14188
|
+
tag: `axios-${VERSION}-boundary`,
|
|
14189
|
+
boundary: userBoundary && userBoundary[1] || void 0
|
|
14190
|
+
}
|
|
14191
|
+
);
|
|
14192
|
+
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
14193
|
+
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
13806
14194
|
if (!headers.hasContentLength()) {
|
|
13807
14195
|
try {
|
|
13808
14196
|
const knownLength = await util2.promisify(data.getLength).call(data);
|
|
@@ -13821,19 +14209,23 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13821
14209
|
} else if (utils_default.isString(data)) {
|
|
13822
14210
|
data = Buffer.from(data, "utf-8");
|
|
13823
14211
|
} else {
|
|
13824
|
-
return reject(
|
|
13825
|
-
|
|
13826
|
-
|
|
13827
|
-
|
|
13828
|
-
|
|
14212
|
+
return reject(
|
|
14213
|
+
new AxiosError_default(
|
|
14214
|
+
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
14215
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
14216
|
+
config
|
|
14217
|
+
)
|
|
14218
|
+
);
|
|
13829
14219
|
}
|
|
13830
14220
|
headers.setContentLength(data.length, false);
|
|
13831
14221
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
13832
|
-
return reject(
|
|
13833
|
-
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
|
|
14222
|
+
return reject(
|
|
14223
|
+
new AxiosError_default(
|
|
14224
|
+
"Request body larger than maxBodyLength limit",
|
|
14225
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
14226
|
+
config
|
|
14227
|
+
)
|
|
14228
|
+
);
|
|
13837
14229
|
}
|
|
13838
14230
|
}
|
|
13839
14231
|
const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
|
|
@@ -13847,26 +14239,36 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13847
14239
|
if (!utils_default.isStream(data)) {
|
|
13848
14240
|
data = stream3.Readable.from(data, { objectMode: false });
|
|
13849
14241
|
}
|
|
13850
|
-
data = stream3.pipeline(
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13854
|
-
|
|
13855
|
-
|
|
13856
|
-
|
|
13857
|
-
|
|
14242
|
+
data = stream3.pipeline(
|
|
14243
|
+
[
|
|
14244
|
+
data,
|
|
14245
|
+
new AxiosTransformStream_default({
|
|
14246
|
+
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
14247
|
+
})
|
|
14248
|
+
],
|
|
14249
|
+
utils_default.noop
|
|
14250
|
+
);
|
|
14251
|
+
onUploadProgress && data.on(
|
|
14252
|
+
"progress",
|
|
14253
|
+
flushOnFinish(
|
|
14254
|
+
data,
|
|
14255
|
+
progressEventDecorator(
|
|
14256
|
+
contentLength,
|
|
14257
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
14258
|
+
)
|
|
13858
14259
|
)
|
|
13859
|
-
)
|
|
14260
|
+
);
|
|
13860
14261
|
}
|
|
13861
14262
|
let auth = void 0;
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
const
|
|
14263
|
+
const configAuth = own2("auth");
|
|
14264
|
+
if (configAuth) {
|
|
14265
|
+
const username = configAuth.username || "";
|
|
14266
|
+
const password = configAuth.password || "";
|
|
13865
14267
|
auth = username + ":" + password;
|
|
13866
14268
|
}
|
|
13867
14269
|
if (!auth && parsed.username) {
|
|
13868
|
-
const urlUsername = parsed.username;
|
|
13869
|
-
const urlPassword = parsed.password;
|
|
14270
|
+
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
14271
|
+
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
13870
14272
|
auth = urlUsername + ":" + urlPassword;
|
|
13871
14273
|
}
|
|
13872
14274
|
auth && headers.delete("authorization");
|
|
@@ -13889,7 +14291,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13889
14291
|
"gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
|
|
13890
14292
|
false
|
|
13891
14293
|
);
|
|
13892
|
-
const options = {
|
|
14294
|
+
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
13893
14295
|
path,
|
|
13894
14296
|
method,
|
|
13895
14297
|
headers: headers.toJSON(),
|
|
@@ -13898,33 +14300,62 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13898
14300
|
protocol,
|
|
13899
14301
|
family,
|
|
13900
14302
|
beforeRedirect: dispatchBeforeRedirect,
|
|
13901
|
-
beforeRedirects:
|
|
14303
|
+
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
13902
14304
|
http2Options
|
|
13903
|
-
};
|
|
14305
|
+
});
|
|
13904
14306
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
13905
14307
|
if (config.socketPath) {
|
|
14308
|
+
if (typeof config.socketPath !== "string") {
|
|
14309
|
+
return reject(
|
|
14310
|
+
new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
|
|
14311
|
+
);
|
|
14312
|
+
}
|
|
14313
|
+
if (config.allowedSocketPaths != null) {
|
|
14314
|
+
const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
|
|
14315
|
+
const resolvedSocket = resolvePath(config.socketPath);
|
|
14316
|
+
const isAllowed = allowed.some(
|
|
14317
|
+
(entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
|
|
14318
|
+
);
|
|
14319
|
+
if (!isAllowed) {
|
|
14320
|
+
return reject(
|
|
14321
|
+
new AxiosError_default(
|
|
14322
|
+
`socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
|
|
14323
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
14324
|
+
config
|
|
14325
|
+
)
|
|
14326
|
+
);
|
|
14327
|
+
}
|
|
14328
|
+
}
|
|
13906
14329
|
options.socketPath = config.socketPath;
|
|
13907
14330
|
} else {
|
|
13908
14331
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
13909
14332
|
options.port = parsed.port;
|
|
13910
|
-
setProxy(
|
|
14333
|
+
setProxy(
|
|
14334
|
+
options,
|
|
14335
|
+
config.proxy,
|
|
14336
|
+
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
14337
|
+
);
|
|
13911
14338
|
}
|
|
13912
14339
|
let transport;
|
|
14340
|
+
let isNativeTransport = false;
|
|
13913
14341
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
13914
14342
|
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
13915
14343
|
if (isHttp2) {
|
|
13916
14344
|
transport = http2Transport;
|
|
13917
14345
|
} else {
|
|
13918
|
-
|
|
13919
|
-
|
|
14346
|
+
const configTransport = own2("transport");
|
|
14347
|
+
if (configTransport) {
|
|
14348
|
+
transport = configTransport;
|
|
13920
14349
|
} else if (config.maxRedirects === 0) {
|
|
13921
14350
|
transport = isHttpsRequest ? https : http;
|
|
14351
|
+
isNativeTransport = true;
|
|
13922
14352
|
} else {
|
|
13923
14353
|
if (config.maxRedirects) {
|
|
13924
14354
|
options.maxRedirects = config.maxRedirects;
|
|
13925
14355
|
}
|
|
13926
|
-
|
|
13927
|
-
|
|
14356
|
+
const configBeforeRedirect = own2("beforeRedirect");
|
|
14357
|
+
if (configBeforeRedirect) {
|
|
14358
|
+
options.beforeRedirects.config = configBeforeRedirect;
|
|
13928
14359
|
}
|
|
13929
14360
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
13930
14361
|
}
|
|
@@ -13934,10 +14365,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13934
14365
|
} else {
|
|
13935
14366
|
options.maxBodyLength = Infinity;
|
|
13936
14367
|
}
|
|
13937
|
-
|
|
13938
|
-
options.insecureHTTPParser = config.insecureHTTPParser;
|
|
13939
|
-
}
|
|
14368
|
+
options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
|
|
13940
14369
|
req = transport.request(options, function handleResponse(res) {
|
|
14370
|
+
clearConnectPhaseTimer();
|
|
13941
14371
|
if (req.destroyed) return;
|
|
13942
14372
|
const streams = [res];
|
|
13943
14373
|
const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
|
|
@@ -13945,13 +14375,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13945
14375
|
const transformStream = new AxiosTransformStream_default({
|
|
13946
14376
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
13947
14377
|
});
|
|
13948
|
-
onDownloadProgress && transformStream.on(
|
|
13949
|
-
|
|
13950
|
-
|
|
13951
|
-
|
|
13952
|
-
|
|
14378
|
+
onDownloadProgress && transformStream.on(
|
|
14379
|
+
"progress",
|
|
14380
|
+
flushOnFinish(
|
|
14381
|
+
transformStream,
|
|
14382
|
+
progressEventDecorator(
|
|
14383
|
+
responseLength,
|
|
14384
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
14385
|
+
)
|
|
13953
14386
|
)
|
|
13954
|
-
)
|
|
14387
|
+
);
|
|
13955
14388
|
streams.push(transformStream);
|
|
13956
14389
|
}
|
|
13957
14390
|
let responseStream = res;
|
|
@@ -13990,6 +14423,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13990
14423
|
request: lastRequest
|
|
13991
14424
|
};
|
|
13992
14425
|
if (responseType === "stream") {
|
|
14426
|
+
if (config.maxContentLength > -1) {
|
|
14427
|
+
const limit = config.maxContentLength;
|
|
14428
|
+
const source = responseStream;
|
|
14429
|
+
async function* enforceMaxContentLength() {
|
|
14430
|
+
let totalResponseBytes = 0;
|
|
14431
|
+
for await (const chunk of source) {
|
|
14432
|
+
totalResponseBytes += chunk.length;
|
|
14433
|
+
if (totalResponseBytes > limit) {
|
|
14434
|
+
throw new AxiosError_default(
|
|
14435
|
+
"maxContentLength size of " + limit + " exceeded",
|
|
14436
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
14437
|
+
config,
|
|
14438
|
+
lastRequest
|
|
14439
|
+
);
|
|
14440
|
+
}
|
|
14441
|
+
yield chunk;
|
|
14442
|
+
}
|
|
14443
|
+
}
|
|
14444
|
+
responseStream = stream3.Readable.from(enforceMaxContentLength(), {
|
|
14445
|
+
objectMode: false
|
|
14446
|
+
});
|
|
14447
|
+
}
|
|
13993
14448
|
response.data = responseStream;
|
|
13994
14449
|
settle(resolve, reject, response);
|
|
13995
14450
|
} else {
|
|
@@ -14001,12 +14456,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14001
14456
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
14002
14457
|
rejected = true;
|
|
14003
14458
|
responseStream.destroy();
|
|
14004
|
-
abort(
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14459
|
+
abort(
|
|
14460
|
+
new AxiosError_default(
|
|
14461
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
14462
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
14463
|
+
config,
|
|
14464
|
+
lastRequest
|
|
14465
|
+
)
|
|
14466
|
+
);
|
|
14010
14467
|
}
|
|
14011
14468
|
});
|
|
14012
14469
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
@@ -14017,14 +14474,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14017
14474
|
"stream has been aborted",
|
|
14018
14475
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
14019
14476
|
config,
|
|
14020
|
-
lastRequest
|
|
14477
|
+
lastRequest,
|
|
14478
|
+
response
|
|
14021
14479
|
);
|
|
14022
14480
|
responseStream.destroy(err);
|
|
14023
14481
|
reject(err);
|
|
14024
14482
|
});
|
|
14025
14483
|
responseStream.on("error", function handleStreamError(err) {
|
|
14026
|
-
if (
|
|
14027
|
-
reject(AxiosError_default.from(err, null, config, lastRequest));
|
|
14484
|
+
if (rejected) return;
|
|
14485
|
+
reject(AxiosError_default.from(err, null, config, lastRequest, response));
|
|
14028
14486
|
});
|
|
14029
14487
|
responseStream.on("end", function handleStreamEnd() {
|
|
14030
14488
|
try {
|
|
@@ -14059,34 +14517,51 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14059
14517
|
req.on("error", function handleRequestError(err) {
|
|
14060
14518
|
reject(AxiosError_default.from(err, null, config, req));
|
|
14061
14519
|
});
|
|
14520
|
+
const boundSockets = /* @__PURE__ */ new Set();
|
|
14062
14521
|
req.on("socket", function handleRequestSocket(socket) {
|
|
14063
14522
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
14523
|
+
if (!socket[kAxiosSocketListener]) {
|
|
14524
|
+
socket.on("error", function handleSocketError(err) {
|
|
14525
|
+
const current = socket[kAxiosCurrentReq];
|
|
14526
|
+
if (current && !current.destroyed) {
|
|
14527
|
+
current.destroy(err);
|
|
14528
|
+
}
|
|
14529
|
+
});
|
|
14530
|
+
socket[kAxiosSocketListener] = true;
|
|
14531
|
+
}
|
|
14532
|
+
socket[kAxiosCurrentReq] = req;
|
|
14533
|
+
boundSockets.add(socket);
|
|
14534
|
+
});
|
|
14535
|
+
req.once("close", function clearCurrentReq() {
|
|
14536
|
+
clearConnectPhaseTimer();
|
|
14537
|
+
for (const socket of boundSockets) {
|
|
14538
|
+
if (socket[kAxiosCurrentReq] === req) {
|
|
14539
|
+
socket[kAxiosCurrentReq] = null;
|
|
14540
|
+
}
|
|
14541
|
+
}
|
|
14542
|
+
boundSockets.clear();
|
|
14064
14543
|
});
|
|
14065
14544
|
if (config.timeout) {
|
|
14066
14545
|
const timeout = parseInt(config.timeout, 10);
|
|
14067
14546
|
if (Number.isNaN(timeout)) {
|
|
14068
|
-
abort(
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
|
|
14073
|
-
|
|
14547
|
+
abort(
|
|
14548
|
+
new AxiosError_default(
|
|
14549
|
+
"error trying to parse `config.timeout` to int",
|
|
14550
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
14551
|
+
config,
|
|
14552
|
+
req
|
|
14553
|
+
)
|
|
14554
|
+
);
|
|
14074
14555
|
return;
|
|
14075
14556
|
}
|
|
14076
|
-
|
|
14557
|
+
const handleTimeout = function handleTimeout2() {
|
|
14077
14558
|
if (isDone) return;
|
|
14078
|
-
|
|
14079
|
-
|
|
14080
|
-
|
|
14081
|
-
|
|
14082
|
-
|
|
14083
|
-
|
|
14084
|
-
timeoutErrorMessage,
|
|
14085
|
-
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
14086
|
-
config,
|
|
14087
|
-
req
|
|
14088
|
-
));
|
|
14089
|
-
});
|
|
14559
|
+
abort(createTimeoutError());
|
|
14560
|
+
};
|
|
14561
|
+
if (isNativeTransport && timeout > 0) {
|
|
14562
|
+
connectPhaseTimer = setTimeout(handleTimeout, timeout);
|
|
14563
|
+
}
|
|
14564
|
+
req.setTimeout(timeout, handleTimeout);
|
|
14090
14565
|
} else {
|
|
14091
14566
|
req.setTimeout(0);
|
|
14092
14567
|
}
|
|
@@ -14105,7 +14580,37 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14105
14580
|
abort(new CanceledError_default("Request stream has been aborted", config, req));
|
|
14106
14581
|
}
|
|
14107
14582
|
});
|
|
14108
|
-
data
|
|
14583
|
+
let uploadStream = data;
|
|
14584
|
+
if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
|
|
14585
|
+
const limit = config.maxBodyLength;
|
|
14586
|
+
let bytesSent = 0;
|
|
14587
|
+
uploadStream = stream3.pipeline(
|
|
14588
|
+
[
|
|
14589
|
+
data,
|
|
14590
|
+
new stream3.Transform({
|
|
14591
|
+
transform(chunk, _enc, cb) {
|
|
14592
|
+
bytesSent += chunk.length;
|
|
14593
|
+
if (bytesSent > limit) {
|
|
14594
|
+
return cb(
|
|
14595
|
+
new AxiosError_default(
|
|
14596
|
+
"Request body larger than maxBodyLength limit",
|
|
14597
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
14598
|
+
config,
|
|
14599
|
+
req
|
|
14600
|
+
)
|
|
14601
|
+
);
|
|
14602
|
+
}
|
|
14603
|
+
cb(null, chunk);
|
|
14604
|
+
}
|
|
14605
|
+
})
|
|
14606
|
+
],
|
|
14607
|
+
utils_default.noop
|
|
14608
|
+
);
|
|
14609
|
+
uploadStream.on("error", (err) => {
|
|
14610
|
+
if (!req.destroyed) req.destroy(err);
|
|
14611
|
+
});
|
|
14612
|
+
}
|
|
14613
|
+
uploadStream.pipe(req);
|
|
14109
14614
|
} else {
|
|
14110
14615
|
data && req.write(data);
|
|
14111
14616
|
req.end();
|
|
@@ -14113,7 +14618,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14113
14618
|
});
|
|
14114
14619
|
};
|
|
14115
14620
|
|
|
14116
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14621
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
14117
14622
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
14118
14623
|
url2 = new URL(url2, platform_default.origin);
|
|
14119
14624
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
@@ -14122,7 +14627,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
|
|
|
14122
14627
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
14123
14628
|
) : () => true;
|
|
14124
14629
|
|
|
14125
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14630
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
|
|
14126
14631
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
14127
14632
|
// Standard browser envs support document.cookie
|
|
14128
14633
|
{
|
|
@@ -14148,8 +14653,15 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
14148
14653
|
},
|
|
14149
14654
|
read(name) {
|
|
14150
14655
|
if (typeof document === "undefined") return null;
|
|
14151
|
-
const
|
|
14152
|
-
|
|
14656
|
+
const cookies = document.cookie.split(";");
|
|
14657
|
+
for (let i = 0; i < cookies.length; i++) {
|
|
14658
|
+
const cookie = cookies[i].replace(/^\s+/, "");
|
|
14659
|
+
const eq = cookie.indexOf("=");
|
|
14660
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
14661
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
14662
|
+
}
|
|
14663
|
+
}
|
|
14664
|
+
return null;
|
|
14153
14665
|
},
|
|
14154
14666
|
remove(name) {
|
|
14155
14667
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
@@ -14168,11 +14680,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
14168
14680
|
}
|
|
14169
14681
|
);
|
|
14170
14682
|
|
|
14171
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14683
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
|
|
14172
14684
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
14173
14685
|
function mergeConfig(config1, config2) {
|
|
14174
14686
|
config2 = config2 || {};
|
|
14175
|
-
const config =
|
|
14687
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
14688
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
14689
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
14690
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
14691
|
+
__proto__: null,
|
|
14692
|
+
value: Object.prototype.hasOwnProperty,
|
|
14693
|
+
enumerable: false,
|
|
14694
|
+
writable: true,
|
|
14695
|
+
configurable: true
|
|
14696
|
+
});
|
|
14176
14697
|
function getMergedValue(target, source, prop, caseless) {
|
|
14177
14698
|
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
14178
14699
|
return utils_default.merge.call({ caseless }, target, source);
|
|
@@ -14203,9 +14724,9 @@ function mergeConfig(config1, config2) {
|
|
|
14203
14724
|
}
|
|
14204
14725
|
}
|
|
14205
14726
|
function mergeDirectKeys(a, b, prop) {
|
|
14206
|
-
if (prop
|
|
14727
|
+
if (utils_default.hasOwnProp(config2, prop)) {
|
|
14207
14728
|
return getMergedValue(a, b);
|
|
14208
|
-
} else if (prop
|
|
14729
|
+
} else if (utils_default.hasOwnProp(config1, prop)) {
|
|
14209
14730
|
return getMergedValue(void 0, a);
|
|
14210
14731
|
}
|
|
14211
14732
|
}
|
|
@@ -14236,51 +14757,76 @@ function mergeConfig(config1, config2) {
|
|
|
14236
14757
|
httpsAgent: defaultToConfig2,
|
|
14237
14758
|
cancelToken: defaultToConfig2,
|
|
14238
14759
|
socketPath: defaultToConfig2,
|
|
14760
|
+
allowedSocketPaths: defaultToConfig2,
|
|
14239
14761
|
responseEncoding: defaultToConfig2,
|
|
14240
14762
|
validateStatus: mergeDirectKeys,
|
|
14241
14763
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
14242
14764
|
};
|
|
14243
|
-
utils_default.forEach(
|
|
14244
|
-
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
}
|
|
14252
|
-
);
|
|
14765
|
+
utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
14766
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
14767
|
+
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
14768
|
+
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
14769
|
+
const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
14770
|
+
const configValue = merge2(a, b, prop);
|
|
14771
|
+
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
14772
|
+
});
|
|
14253
14773
|
return config;
|
|
14254
14774
|
}
|
|
14255
14775
|
|
|
14256
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14776
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
|
|
14777
|
+
var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
|
|
14778
|
+
function setFormDataHeaders2(headers, formHeaders, policy) {
|
|
14779
|
+
if (policy !== "content-only") {
|
|
14780
|
+
headers.set(formHeaders);
|
|
14781
|
+
return;
|
|
14782
|
+
}
|
|
14783
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
14784
|
+
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
|
|
14785
|
+
headers.set(key, val);
|
|
14786
|
+
}
|
|
14787
|
+
});
|
|
14788
|
+
}
|
|
14789
|
+
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
14790
|
+
/%([0-9A-F]{2})/gi,
|
|
14791
|
+
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
14792
|
+
);
|
|
14257
14793
|
var resolveConfig_default = (config) => {
|
|
14258
14794
|
const newConfig = mergeConfig({}, config);
|
|
14259
|
-
|
|
14795
|
+
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
14796
|
+
const data = own2("data");
|
|
14797
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
14798
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
14799
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
14800
|
+
let headers = own2("headers");
|
|
14801
|
+
const auth = own2("auth");
|
|
14802
|
+
const baseURL = own2("baseURL");
|
|
14803
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
14804
|
+
const url2 = own2("url");
|
|
14260
14805
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
14261
|
-
newConfig.url = buildURL(
|
|
14806
|
+
newConfig.url = buildURL(
|
|
14807
|
+
buildFullPath(baseURL, url2, allowAbsoluteUrls),
|
|
14808
|
+
config.params,
|
|
14809
|
+
config.paramsSerializer
|
|
14810
|
+
);
|
|
14262
14811
|
if (auth) {
|
|
14263
14812
|
headers.set(
|
|
14264
14813
|
"Authorization",
|
|
14265
|
-
"Basic " + btoa((auth.username || "") + ":" + (auth.password ?
|
|
14814
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
|
|
14266
14815
|
);
|
|
14267
14816
|
}
|
|
14268
14817
|
if (utils_default.isFormData(data)) {
|
|
14269
14818
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
14270
14819
|
headers.setContentType(void 0);
|
|
14271
14820
|
} else if (utils_default.isFunction(data.getHeaders)) {
|
|
14272
|
-
|
|
14273
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
14274
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
14275
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
14276
|
-
headers.set(key, val);
|
|
14277
|
-
}
|
|
14278
|
-
});
|
|
14821
|
+
setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
14279
14822
|
}
|
|
14280
14823
|
}
|
|
14281
14824
|
if (platform_default.hasStandardBrowserEnv) {
|
|
14282
|
-
|
|
14283
|
-
|
|
14825
|
+
if (utils_default.isFunction(withXSRFToken)) {
|
|
14826
|
+
withXSRFToken = withXSRFToken(newConfig);
|
|
14827
|
+
}
|
|
14828
|
+
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
|
|
14829
|
+
if (shouldSendXSRF) {
|
|
14284
14830
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
14285
14831
|
if (xsrfValue) {
|
|
14286
14832
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -14290,7 +14836,7 @@ var resolveConfig_default = (config) => {
|
|
|
14290
14836
|
return newConfig;
|
|
14291
14837
|
};
|
|
14292
14838
|
|
|
14293
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14839
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
|
|
14294
14840
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
14295
14841
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
14296
14842
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -14326,13 +14872,17 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14326
14872
|
config,
|
|
14327
14873
|
request
|
|
14328
14874
|
};
|
|
14329
|
-
settle(
|
|
14330
|
-
|
|
14331
|
-
|
|
14332
|
-
|
|
14333
|
-
|
|
14334
|
-
|
|
14335
|
-
|
|
14875
|
+
settle(
|
|
14876
|
+
function _resolve(value) {
|
|
14877
|
+
resolve(value);
|
|
14878
|
+
done();
|
|
14879
|
+
},
|
|
14880
|
+
function _reject(err) {
|
|
14881
|
+
reject(err);
|
|
14882
|
+
done();
|
|
14883
|
+
},
|
|
14884
|
+
response
|
|
14885
|
+
);
|
|
14336
14886
|
request = null;
|
|
14337
14887
|
}
|
|
14338
14888
|
if ("onloadend" in request) {
|
|
@@ -14342,7 +14892,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14342
14892
|
if (!request || request.readyState !== 4) {
|
|
14343
14893
|
return;
|
|
14344
14894
|
}
|
|
14345
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
14895
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
14346
14896
|
return;
|
|
14347
14897
|
}
|
|
14348
14898
|
setTimeout(onloadend);
|
|
@@ -14353,6 +14903,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14353
14903
|
return;
|
|
14354
14904
|
}
|
|
14355
14905
|
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
14906
|
+
done();
|
|
14356
14907
|
request = null;
|
|
14357
14908
|
};
|
|
14358
14909
|
request.onerror = function handleError(event) {
|
|
@@ -14360,6 +14911,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14360
14911
|
const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
|
|
14361
14912
|
err.event = event || null;
|
|
14362
14913
|
reject(err);
|
|
14914
|
+
done();
|
|
14363
14915
|
request = null;
|
|
14364
14916
|
};
|
|
14365
14917
|
request.ontimeout = function handleTimeout() {
|
|
@@ -14368,12 +14920,15 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14368
14920
|
if (_config.timeoutErrorMessage) {
|
|
14369
14921
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
14370
14922
|
}
|
|
14371
|
-
reject(
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14923
|
+
reject(
|
|
14924
|
+
new AxiosError_default(
|
|
14925
|
+
timeoutErrorMessage,
|
|
14926
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
14927
|
+
config,
|
|
14928
|
+
request
|
|
14929
|
+
)
|
|
14930
|
+
);
|
|
14931
|
+
done();
|
|
14377
14932
|
request = null;
|
|
14378
14933
|
};
|
|
14379
14934
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -14404,6 +14959,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14404
14959
|
}
|
|
14405
14960
|
reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
|
|
14406
14961
|
request.abort();
|
|
14962
|
+
done();
|
|
14407
14963
|
request = null;
|
|
14408
14964
|
};
|
|
14409
14965
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
@@ -14412,15 +14968,21 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14412
14968
|
}
|
|
14413
14969
|
}
|
|
14414
14970
|
const protocol = parseProtocol(_config.url);
|
|
14415
|
-
if (protocol && platform_default.protocols.
|
|
14416
|
-
reject(
|
|
14971
|
+
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
14972
|
+
reject(
|
|
14973
|
+
new AxiosError_default(
|
|
14974
|
+
"Unsupported protocol " + protocol + ":",
|
|
14975
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
14976
|
+
config
|
|
14977
|
+
)
|
|
14978
|
+
);
|
|
14417
14979
|
return;
|
|
14418
14980
|
}
|
|
14419
14981
|
request.send(requestData || null);
|
|
14420
14982
|
});
|
|
14421
14983
|
};
|
|
14422
14984
|
|
|
14423
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14985
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
|
|
14424
14986
|
var composeSignals = (signals, timeout) => {
|
|
14425
14987
|
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
14426
14988
|
if (timeout || length) {
|
|
@@ -14431,7 +14993,9 @@ var composeSignals = (signals, timeout) => {
|
|
|
14431
14993
|
aborted = true;
|
|
14432
14994
|
unsubscribe();
|
|
14433
14995
|
const err = reason instanceof Error ? reason : this.reason;
|
|
14434
|
-
controller.abort(
|
|
14996
|
+
controller.abort(
|
|
14997
|
+
err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
|
|
14998
|
+
);
|
|
14435
14999
|
}
|
|
14436
15000
|
};
|
|
14437
15001
|
let timer = timeout && setTimeout(() => {
|
|
@@ -14456,7 +15020,7 @@ var composeSignals = (signals, timeout) => {
|
|
|
14456
15020
|
};
|
|
14457
15021
|
var composeSignals_default = composeSignals;
|
|
14458
15022
|
|
|
14459
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15023
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
|
|
14460
15024
|
var streamChunk = function* (chunk, chunkSize) {
|
|
14461
15025
|
let len = chunk.byteLength;
|
|
14462
15026
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -14504,46 +15068,41 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
14504
15068
|
onFinish && onFinish(e);
|
|
14505
15069
|
}
|
|
14506
15070
|
};
|
|
14507
|
-
return new ReadableStream(
|
|
14508
|
-
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
|
|
15071
|
+
return new ReadableStream(
|
|
15072
|
+
{
|
|
15073
|
+
async pull(controller) {
|
|
15074
|
+
try {
|
|
15075
|
+
const { done: done2, value } = await iterator2.next();
|
|
15076
|
+
if (done2) {
|
|
15077
|
+
_onFinish();
|
|
15078
|
+
controller.close();
|
|
15079
|
+
return;
|
|
15080
|
+
}
|
|
15081
|
+
let len = value.byteLength;
|
|
15082
|
+
if (onProgress) {
|
|
15083
|
+
let loadedBytes = bytes += len;
|
|
15084
|
+
onProgress(loadedBytes);
|
|
15085
|
+
}
|
|
15086
|
+
controller.enqueue(new Uint8Array(value));
|
|
15087
|
+
} catch (err) {
|
|
15088
|
+
_onFinish(err);
|
|
15089
|
+
throw err;
|
|
14520
15090
|
}
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
_onFinish(
|
|
14524
|
-
|
|
15091
|
+
},
|
|
15092
|
+
cancel(reason) {
|
|
15093
|
+
_onFinish(reason);
|
|
15094
|
+
return iterator2.return();
|
|
14525
15095
|
}
|
|
14526
15096
|
},
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
return iterator2.return();
|
|
15097
|
+
{
|
|
15098
|
+
highWaterMark: 2
|
|
14530
15099
|
}
|
|
14531
|
-
|
|
14532
|
-
highWaterMark: 2
|
|
14533
|
-
});
|
|
15100
|
+
);
|
|
14534
15101
|
};
|
|
14535
15102
|
|
|
14536
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15103
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
|
|
14537
15104
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
14538
15105
|
var { isFunction: isFunction2 } = utils_default;
|
|
14539
|
-
var globalFetchAPI = (({ Request, Response }) => ({
|
|
14540
|
-
Request,
|
|
14541
|
-
Response
|
|
14542
|
-
}))(utils_default.global);
|
|
14543
|
-
var {
|
|
14544
|
-
ReadableStream: ReadableStream2,
|
|
14545
|
-
TextEncoder: TextEncoder2
|
|
14546
|
-
} = utils_default.global;
|
|
14547
15106
|
var test = (fn, ...args) => {
|
|
14548
15107
|
try {
|
|
14549
15108
|
return !!fn(...args);
|
|
@@ -14552,9 +15111,18 @@ var test = (fn, ...args) => {
|
|
|
14552
15111
|
}
|
|
14553
15112
|
};
|
|
14554
15113
|
var factory = (env) => {
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
15114
|
+
const globalObject = utils_default.global ?? globalThis;
|
|
15115
|
+
const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
|
|
15116
|
+
env = utils_default.merge.call(
|
|
15117
|
+
{
|
|
15118
|
+
skipUndefined: true
|
|
15119
|
+
},
|
|
15120
|
+
{
|
|
15121
|
+
Request: globalObject.Request,
|
|
15122
|
+
Response: globalObject.Response
|
|
15123
|
+
},
|
|
15124
|
+
env
|
|
15125
|
+
);
|
|
14558
15126
|
const { fetch: envFetch, Request, Response } = env;
|
|
14559
15127
|
const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
|
|
14560
15128
|
const isRequestSupported = isFunction2(Request);
|
|
@@ -14566,14 +15134,18 @@ var factory = (env) => {
|
|
|
14566
15134
|
const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
14567
15135
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
14568
15136
|
let duplexAccessed = false;
|
|
14569
|
-
const
|
|
15137
|
+
const request = new Request(platform_default.origin, {
|
|
14570
15138
|
body: new ReadableStream2(),
|
|
14571
15139
|
method: "POST",
|
|
14572
15140
|
get duplex() {
|
|
14573
15141
|
duplexAccessed = true;
|
|
14574
15142
|
return "half";
|
|
14575
15143
|
}
|
|
14576
|
-
})
|
|
15144
|
+
});
|
|
15145
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
15146
|
+
if (request.body != null) {
|
|
15147
|
+
request.body.cancel();
|
|
15148
|
+
}
|
|
14577
15149
|
return duplexAccessed && !hasContentType;
|
|
14578
15150
|
});
|
|
14579
15151
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
@@ -14587,7 +15159,11 @@ var factory = (env) => {
|
|
|
14587
15159
|
if (method) {
|
|
14588
15160
|
return method.call(res);
|
|
14589
15161
|
}
|
|
14590
|
-
throw new AxiosError_default(
|
|
15162
|
+
throw new AxiosError_default(
|
|
15163
|
+
`Response type '${type}' is not supported`,
|
|
15164
|
+
AxiosError_default.ERR_NOT_SUPPORT,
|
|
15165
|
+
config
|
|
15166
|
+
);
|
|
14591
15167
|
});
|
|
14592
15168
|
});
|
|
14593
15169
|
})();
|
|
@@ -14632,17 +15208,46 @@ var factory = (env) => {
|
|
|
14632
15208
|
responseType,
|
|
14633
15209
|
headers,
|
|
14634
15210
|
withCredentials = "same-origin",
|
|
14635
|
-
fetchOptions
|
|
15211
|
+
fetchOptions,
|
|
15212
|
+
maxContentLength,
|
|
15213
|
+
maxBodyLength
|
|
14636
15214
|
} = resolveConfig_default(config);
|
|
15215
|
+
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
15216
|
+
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
14637
15217
|
let _fetch = envFetch || fetch;
|
|
14638
15218
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
14639
|
-
let composedSignal = composeSignals_default(
|
|
15219
|
+
let composedSignal = composeSignals_default(
|
|
15220
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
15221
|
+
timeout
|
|
15222
|
+
);
|
|
14640
15223
|
let request = null;
|
|
14641
15224
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
14642
15225
|
composedSignal.unsubscribe();
|
|
14643
15226
|
});
|
|
14644
15227
|
let requestContentLength;
|
|
14645
15228
|
try {
|
|
15229
|
+
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
15230
|
+
const estimated = estimateDataURLDecodedBytes(url2);
|
|
15231
|
+
if (estimated > maxContentLength) {
|
|
15232
|
+
throw new AxiosError_default(
|
|
15233
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
15234
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
15235
|
+
config,
|
|
15236
|
+
request
|
|
15237
|
+
);
|
|
15238
|
+
}
|
|
15239
|
+
}
|
|
15240
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
15241
|
+
const outboundLength = await resolveBodyLength(headers, data);
|
|
15242
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
|
|
15243
|
+
throw new AxiosError_default(
|
|
15244
|
+
"Request body larger than maxBodyLength limit",
|
|
15245
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
15246
|
+
config,
|
|
15247
|
+
request
|
|
15248
|
+
);
|
|
15249
|
+
}
|
|
15250
|
+
}
|
|
14646
15251
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
14647
15252
|
let _request = new Request(url2, {
|
|
14648
15253
|
method: "POST",
|
|
@@ -14665,6 +15270,13 @@ var factory = (env) => {
|
|
|
14665
15270
|
withCredentials = withCredentials ? "include" : "omit";
|
|
14666
15271
|
}
|
|
14667
15272
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
15273
|
+
if (utils_default.isFormData(data)) {
|
|
15274
|
+
const contentType = headers.getContentType();
|
|
15275
|
+
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
|
|
15276
|
+
headers.delete("content-type");
|
|
15277
|
+
}
|
|
15278
|
+
}
|
|
15279
|
+
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
14668
15280
|
const resolvedOptions = {
|
|
14669
15281
|
...fetchOptions,
|
|
14670
15282
|
signal: composedSignal,
|
|
@@ -14676,8 +15288,19 @@ var factory = (env) => {
|
|
|
14676
15288
|
};
|
|
14677
15289
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
14678
15290
|
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
|
|
15291
|
+
if (hasMaxContentLength) {
|
|
15292
|
+
const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
15293
|
+
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
15294
|
+
throw new AxiosError_default(
|
|
15295
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
15296
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
15297
|
+
config,
|
|
15298
|
+
request
|
|
15299
|
+
);
|
|
15300
|
+
}
|
|
15301
|
+
}
|
|
14679
15302
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
14680
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
15303
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
14681
15304
|
const options = {};
|
|
14682
15305
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
14683
15306
|
options[prop] = response[prop];
|
|
@@ -14687,8 +15310,23 @@ var factory = (env) => {
|
|
|
14687
15310
|
responseContentLength,
|
|
14688
15311
|
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
14689
15312
|
) || [];
|
|
15313
|
+
let bytesRead = 0;
|
|
15314
|
+
const onChunkProgress = (loadedBytes) => {
|
|
15315
|
+
if (hasMaxContentLength) {
|
|
15316
|
+
bytesRead = loadedBytes;
|
|
15317
|
+
if (bytesRead > maxContentLength) {
|
|
15318
|
+
throw new AxiosError_default(
|
|
15319
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
15320
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
15321
|
+
config,
|
|
15322
|
+
request
|
|
15323
|
+
);
|
|
15324
|
+
}
|
|
15325
|
+
}
|
|
15326
|
+
onProgress && onProgress(loadedBytes);
|
|
15327
|
+
};
|
|
14690
15328
|
response = new Response(
|
|
14691
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
15329
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
14692
15330
|
flush && flush();
|
|
14693
15331
|
unsubscribe && unsubscribe();
|
|
14694
15332
|
}),
|
|
@@ -14696,7 +15334,30 @@ var factory = (env) => {
|
|
|
14696
15334
|
);
|
|
14697
15335
|
}
|
|
14698
15336
|
responseType = responseType || "text";
|
|
14699
|
-
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
|
|
15337
|
+
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
|
|
15338
|
+
response,
|
|
15339
|
+
config
|
|
15340
|
+
);
|
|
15341
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
15342
|
+
let materializedSize;
|
|
15343
|
+
if (responseData != null) {
|
|
15344
|
+
if (typeof responseData.byteLength === "number") {
|
|
15345
|
+
materializedSize = responseData.byteLength;
|
|
15346
|
+
} else if (typeof responseData.size === "number") {
|
|
15347
|
+
materializedSize = responseData.size;
|
|
15348
|
+
} else if (typeof responseData === "string") {
|
|
15349
|
+
materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
|
|
15350
|
+
}
|
|
15351
|
+
}
|
|
15352
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
|
|
15353
|
+
throw new AxiosError_default(
|
|
15354
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
15355
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
15356
|
+
config,
|
|
15357
|
+
request
|
|
15358
|
+
);
|
|
15359
|
+
}
|
|
15360
|
+
}
|
|
14700
15361
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
14701
15362
|
return await new Promise((resolve, reject) => {
|
|
14702
15363
|
settle(resolve, reject, {
|
|
@@ -14710,9 +15371,22 @@ var factory = (env) => {
|
|
|
14710
15371
|
});
|
|
14711
15372
|
} catch (err) {
|
|
14712
15373
|
unsubscribe && unsubscribe();
|
|
15374
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
|
|
15375
|
+
const canceledError = composedSignal.reason;
|
|
15376
|
+
canceledError.config = config;
|
|
15377
|
+
request && (canceledError.request = request);
|
|
15378
|
+
err !== canceledError && (canceledError.cause = err);
|
|
15379
|
+
throw canceledError;
|
|
15380
|
+
}
|
|
14713
15381
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
14714
15382
|
throw Object.assign(
|
|
14715
|
-
new AxiosError_default(
|
|
15383
|
+
new AxiosError_default(
|
|
15384
|
+
"Network Error",
|
|
15385
|
+
AxiosError_default.ERR_NETWORK,
|
|
15386
|
+
config,
|
|
15387
|
+
request,
|
|
15388
|
+
err && err.response
|
|
15389
|
+
),
|
|
14716
15390
|
{
|
|
14717
15391
|
cause: err.cause || err
|
|
14718
15392
|
}
|
|
@@ -14726,11 +15400,7 @@ var seedCache = /* @__PURE__ */ new Map();
|
|
|
14726
15400
|
var getFetch = (config) => {
|
|
14727
15401
|
let env = config && config.env || {};
|
|
14728
15402
|
const { fetch: fetch2, Request, Response } = env;
|
|
14729
|
-
const seeds = [
|
|
14730
|
-
Request,
|
|
14731
|
-
Response,
|
|
14732
|
-
fetch2
|
|
14733
|
-
];
|
|
15403
|
+
const seeds = [Request, Response, fetch2];
|
|
14734
15404
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
14735
15405
|
while (i--) {
|
|
14736
15406
|
seed = seeds[i];
|
|
@@ -14742,7 +15412,7 @@ var getFetch = (config) => {
|
|
|
14742
15412
|
};
|
|
14743
15413
|
var adapter = getFetch();
|
|
14744
15414
|
|
|
14745
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15415
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
|
|
14746
15416
|
var knownAdapters = {
|
|
14747
15417
|
http: http_default,
|
|
14748
15418
|
xhr: xhr_default,
|
|
@@ -14753,10 +15423,10 @@ var knownAdapters = {
|
|
|
14753
15423
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
14754
15424
|
if (fn) {
|
|
14755
15425
|
try {
|
|
14756
|
-
Object.defineProperty(fn, "name", { value });
|
|
15426
|
+
Object.defineProperty(fn, "name", { __proto__: null, value });
|
|
14757
15427
|
} catch (e) {
|
|
14758
15428
|
}
|
|
14759
|
-
Object.defineProperty(fn, "adapterName", { value });
|
|
15429
|
+
Object.defineProperty(fn, "adapterName", { __proto__: null, value });
|
|
14760
15430
|
}
|
|
14761
15431
|
});
|
|
14762
15432
|
var renderReason = (reason) => `- ${reason}`;
|
|
@@ -14807,7 +15477,7 @@ var adapters_default = {
|
|
|
14807
15477
|
adapters: knownAdapters
|
|
14808
15478
|
};
|
|
14809
15479
|
|
|
14810
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15480
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
|
|
14811
15481
|
function throwIfCancellationRequested(config) {
|
|
14812
15482
|
if (config.cancelToken) {
|
|
14813
15483
|
config.cancelToken.throwIfRequested();
|
|
@@ -14819,40 +15489,46 @@ function throwIfCancellationRequested(config) {
|
|
|
14819
15489
|
function dispatchRequest(config) {
|
|
14820
15490
|
throwIfCancellationRequested(config);
|
|
14821
15491
|
config.headers = AxiosHeaders_default.from(config.headers);
|
|
14822
|
-
config.data = transformData.call(
|
|
14823
|
-
config,
|
|
14824
|
-
config.transformRequest
|
|
14825
|
-
);
|
|
15492
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
14826
15493
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
14827
15494
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
14828
15495
|
}
|
|
14829
15496
|
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
14830
|
-
return adapter2(config).then(
|
|
14831
|
-
|
|
14832
|
-
response.data = transformData.call(
|
|
14833
|
-
config,
|
|
14834
|
-
config.transformResponse,
|
|
14835
|
-
response
|
|
14836
|
-
);
|
|
14837
|
-
response.headers = AxiosHeaders_default.from(response.headers);
|
|
14838
|
-
return response;
|
|
14839
|
-
}, function onAdapterRejection(reason) {
|
|
14840
|
-
if (!isCancel(reason)) {
|
|
15497
|
+
return adapter2(config).then(
|
|
15498
|
+
function onAdapterResolution(response) {
|
|
14841
15499
|
throwIfCancellationRequested(config);
|
|
14842
|
-
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
15500
|
+
config.response = response;
|
|
15501
|
+
try {
|
|
15502
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
15503
|
+
} finally {
|
|
15504
|
+
delete config.response;
|
|
15505
|
+
}
|
|
15506
|
+
response.headers = AxiosHeaders_default.from(response.headers);
|
|
15507
|
+
return response;
|
|
15508
|
+
},
|
|
15509
|
+
function onAdapterRejection(reason) {
|
|
15510
|
+
if (!isCancel(reason)) {
|
|
15511
|
+
throwIfCancellationRequested(config);
|
|
15512
|
+
if (reason && reason.response) {
|
|
15513
|
+
config.response = reason.response;
|
|
15514
|
+
try {
|
|
15515
|
+
reason.response.data = transformData.call(
|
|
15516
|
+
config,
|
|
15517
|
+
config.transformResponse,
|
|
15518
|
+
reason.response
|
|
15519
|
+
);
|
|
15520
|
+
} finally {
|
|
15521
|
+
delete config.response;
|
|
15522
|
+
}
|
|
15523
|
+
reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
|
|
15524
|
+
}
|
|
14849
15525
|
}
|
|
15526
|
+
return Promise.reject(reason);
|
|
14850
15527
|
}
|
|
14851
|
-
|
|
14852
|
-
});
|
|
15528
|
+
);
|
|
14853
15529
|
}
|
|
14854
15530
|
|
|
14855
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15531
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
|
|
14856
15532
|
var validators = {};
|
|
14857
15533
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
14858
15534
|
validators[type] = function validator(thing) {
|
|
@@ -14897,12 +15573,15 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
14897
15573
|
let i = keys.length;
|
|
14898
15574
|
while (i-- > 0) {
|
|
14899
15575
|
const opt = keys[i];
|
|
14900
|
-
const validator = schema[opt];
|
|
15576
|
+
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
14901
15577
|
if (validator) {
|
|
14902
15578
|
const value = options[opt];
|
|
14903
15579
|
const result = value === void 0 || validator(value, opt, options);
|
|
14904
15580
|
if (result !== true) {
|
|
14905
|
-
throw new AxiosError_default(
|
|
15581
|
+
throw new AxiosError_default(
|
|
15582
|
+
"option " + opt + " must be " + result,
|
|
15583
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE
|
|
15584
|
+
);
|
|
14906
15585
|
}
|
|
14907
15586
|
continue;
|
|
14908
15587
|
}
|
|
@@ -14916,7 +15595,7 @@ var validator_default = {
|
|
|
14916
15595
|
validators
|
|
14917
15596
|
};
|
|
14918
15597
|
|
|
14919
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15598
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/Axios.js
|
|
14920
15599
|
var validators2 = validator_default.validators;
|
|
14921
15600
|
var Axios = class {
|
|
14922
15601
|
constructor(instanceConfig) {
|
|
@@ -14941,12 +15620,23 @@ var Axios = class {
|
|
|
14941
15620
|
if (err instanceof Error) {
|
|
14942
15621
|
let dummy = {};
|
|
14943
15622
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
14944
|
-
const stack =
|
|
15623
|
+
const stack = (() => {
|
|
15624
|
+
if (!dummy.stack) {
|
|
15625
|
+
return "";
|
|
15626
|
+
}
|
|
15627
|
+
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
15628
|
+
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
15629
|
+
})();
|
|
14945
15630
|
try {
|
|
14946
15631
|
if (!err.stack) {
|
|
14947
15632
|
err.stack = stack;
|
|
14948
|
-
} else if (stack
|
|
14949
|
-
|
|
15633
|
+
} else if (stack) {
|
|
15634
|
+
const firstNewlineIndex = stack.indexOf("\n");
|
|
15635
|
+
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
15636
|
+
const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
|
|
15637
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
|
|
15638
|
+
err.stack += "\n" + stack;
|
|
15639
|
+
}
|
|
14950
15640
|
}
|
|
14951
15641
|
} catch (e) {
|
|
14952
15642
|
}
|
|
@@ -14964,12 +15654,16 @@ var Axios = class {
|
|
|
14964
15654
|
config = mergeConfig(this.defaults, config);
|
|
14965
15655
|
const { transitional: transitional2, paramsSerializer, headers } = config;
|
|
14966
15656
|
if (transitional2 !== void 0) {
|
|
14967
|
-
validator_default.assertOptions(
|
|
14968
|
-
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
15657
|
+
validator_default.assertOptions(
|
|
15658
|
+
transitional2,
|
|
15659
|
+
{
|
|
15660
|
+
silentJSONParsing: validators2.transitional(validators2.boolean),
|
|
15661
|
+
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
15662
|
+
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
15663
|
+
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
15664
|
+
},
|
|
15665
|
+
false
|
|
15666
|
+
);
|
|
14973
15667
|
}
|
|
14974
15668
|
if (paramsSerializer != null) {
|
|
14975
15669
|
if (utils_default.isFunction(paramsSerializer)) {
|
|
@@ -14977,10 +15671,14 @@ var Axios = class {
|
|
|
14977
15671
|
serialize: paramsSerializer
|
|
14978
15672
|
};
|
|
14979
15673
|
} else {
|
|
14980
|
-
validator_default.assertOptions(
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
15674
|
+
validator_default.assertOptions(
|
|
15675
|
+
paramsSerializer,
|
|
15676
|
+
{
|
|
15677
|
+
encode: validators2.function,
|
|
15678
|
+
serialize: validators2.function
|
|
15679
|
+
},
|
|
15680
|
+
true
|
|
15681
|
+
);
|
|
14984
15682
|
}
|
|
14985
15683
|
}
|
|
14986
15684
|
if (config.allowAbsoluteUrls !== void 0) {
|
|
@@ -14989,21 +15687,19 @@ var Axios = class {
|
|
|
14989
15687
|
} else {
|
|
14990
15688
|
config.allowAbsoluteUrls = true;
|
|
14991
15689
|
}
|
|
14992
|
-
validator_default.assertOptions(
|
|
14993
|
-
|
|
14994
|
-
|
|
14995
|
-
|
|
14996
|
-
|
|
14997
|
-
|
|
14998
|
-
|
|
14999
|
-
headers[config.method]
|
|
15000
|
-
);
|
|
15001
|
-
headers && utils_default.forEach(
|
|
15002
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
15003
|
-
(method) => {
|
|
15004
|
-
delete headers[method];
|
|
15005
|
-
}
|
|
15690
|
+
validator_default.assertOptions(
|
|
15691
|
+
config,
|
|
15692
|
+
{
|
|
15693
|
+
baseUrl: validators2.spelling("baseURL"),
|
|
15694
|
+
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
15695
|
+
},
|
|
15696
|
+
true
|
|
15006
15697
|
);
|
|
15698
|
+
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
15699
|
+
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
15700
|
+
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
|
|
15701
|
+
delete headers[method];
|
|
15702
|
+
});
|
|
15007
15703
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
15008
15704
|
const requestInterceptorChain = [];
|
|
15009
15705
|
let synchronousRequestInterceptors = true;
|
|
@@ -15070,32 +15766,38 @@ var Axios = class {
|
|
|
15070
15766
|
};
|
|
15071
15767
|
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
15072
15768
|
Axios.prototype[method] = function(url2, config) {
|
|
15073
|
-
return this.request(
|
|
15074
|
-
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
|
|
15769
|
+
return this.request(
|
|
15770
|
+
mergeConfig(config || {}, {
|
|
15771
|
+
method,
|
|
15772
|
+
url: url2,
|
|
15773
|
+
data: (config || {}).data
|
|
15774
|
+
})
|
|
15775
|
+
);
|
|
15078
15776
|
};
|
|
15079
15777
|
});
|
|
15080
|
-
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
15778
|
+
utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
15081
15779
|
function generateHTTPMethod(isForm) {
|
|
15082
15780
|
return function httpMethod(url2, data, config) {
|
|
15083
|
-
return this.request(
|
|
15084
|
-
|
|
15085
|
-
|
|
15086
|
-
|
|
15087
|
-
|
|
15088
|
-
|
|
15089
|
-
|
|
15090
|
-
|
|
15781
|
+
return this.request(
|
|
15782
|
+
mergeConfig(config || {}, {
|
|
15783
|
+
method,
|
|
15784
|
+
headers: isForm ? {
|
|
15785
|
+
"Content-Type": "multipart/form-data"
|
|
15786
|
+
} : {},
|
|
15787
|
+
url: url2,
|
|
15788
|
+
data
|
|
15789
|
+
})
|
|
15790
|
+
);
|
|
15091
15791
|
};
|
|
15092
15792
|
}
|
|
15093
15793
|
Axios.prototype[method] = generateHTTPMethod();
|
|
15094
|
-
|
|
15794
|
+
if (method !== "query") {
|
|
15795
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
15796
|
+
}
|
|
15095
15797
|
});
|
|
15096
15798
|
var Axios_default = Axios;
|
|
15097
15799
|
|
|
15098
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15800
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
|
|
15099
15801
|
var CancelToken = class _CancelToken {
|
|
15100
15802
|
constructor(executor) {
|
|
15101
15803
|
if (typeof executor !== "function") {
|
|
@@ -15193,19 +15895,19 @@ var CancelToken = class _CancelToken {
|
|
|
15193
15895
|
};
|
|
15194
15896
|
var CancelToken_default = CancelToken;
|
|
15195
15897
|
|
|
15196
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15898
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
|
|
15197
15899
|
function spread(callback) {
|
|
15198
15900
|
return function wrap(arr) {
|
|
15199
15901
|
return callback.apply(null, arr);
|
|
15200
15902
|
};
|
|
15201
15903
|
}
|
|
15202
15904
|
|
|
15203
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15905
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
|
|
15204
15906
|
function isAxiosError(payload) {
|
|
15205
15907
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
15206
15908
|
}
|
|
15207
15909
|
|
|
15208
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15910
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
15209
15911
|
var HttpStatusCode = {
|
|
15210
15912
|
Continue: 100,
|
|
15211
15913
|
SwitchingProtocols: 101,
|
|
@@ -15282,13 +15984,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
15282
15984
|
});
|
|
15283
15985
|
var HttpStatusCode_default = HttpStatusCode;
|
|
15284
15986
|
|
|
15285
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15987
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/axios.js
|
|
15286
15988
|
function createInstance(defaultConfig) {
|
|
15287
15989
|
const context = new Axios_default(defaultConfig);
|
|
15288
15990
|
const instance = bind(Axios_default.prototype.request, context);
|
|
15289
15991
|
utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
|
|
15290
15992
|
utils_default.extend(instance, context, null, { allOwnKeys: true });
|
|
15291
|
-
instance.create = function
|
|
15993
|
+
instance.create = function create2(instanceConfig) {
|
|
15292
15994
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
15293
15995
|
};
|
|
15294
15996
|
return instance;
|
|
@@ -15315,7 +16017,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
15315
16017
|
axios.default = axios;
|
|
15316
16018
|
var axios_default = axios;
|
|
15317
16019
|
|
|
15318
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16020
|
+
// ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/index.js
|
|
15319
16021
|
var {
|
|
15320
16022
|
Axios: Axios2,
|
|
15321
16023
|
AxiosError: AxiosError2,
|
|
@@ -15332,7 +16034,8 @@ var {
|
|
|
15332
16034
|
HttpStatusCode: HttpStatusCode2,
|
|
15333
16035
|
formToJSON,
|
|
15334
16036
|
getAdapter: getAdapter2,
|
|
15335
|
-
mergeConfig: mergeConfig2
|
|
16037
|
+
mergeConfig: mergeConfig2,
|
|
16038
|
+
create
|
|
15336
16039
|
} = axios_default;
|
|
15337
16040
|
|
|
15338
16041
|
// ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=283f0d16759aba9c68cd55bb0821c977833a401969b0ecf9492a6618e019f6c1/node_modules/pipenet/dist/Tunnel.js
|