@modern-js/create 2.71.0 → 2.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1780 -630
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6823,7 +6823,7 @@ var require_templates = __commonJS({
|
|
|
6823
6823
|
["e", "\x1B"],
|
|
6824
6824
|
["a", "\x07"]
|
|
6825
6825
|
]);
|
|
6826
|
-
function
|
|
6826
|
+
function unescape(c) {
|
|
6827
6827
|
const u2 = c[0] === "u";
|
|
6828
6828
|
const bracket = c[1] === "{";
|
|
6829
6829
|
if (u2 && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
@@ -6843,7 +6843,7 @@ var require_templates = __commonJS({
|
|
|
6843
6843
|
if (!Number.isNaN(number)) {
|
|
6844
6844
|
results.push(number);
|
|
6845
6845
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
6846
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (m2, escape, character) => escape ?
|
|
6846
|
+
results.push(matches[2].replace(ESCAPE_REGEX, (m2, escape, character) => escape ? unescape(escape) : character));
|
|
6847
6847
|
} else {
|
|
6848
6848
|
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
6849
6849
|
}
|
|
@@ -6890,7 +6890,7 @@ var require_templates = __commonJS({
|
|
|
6890
6890
|
let chunk = [];
|
|
6891
6891
|
temporary.replace(TEMPLATE_REGEX, (m2, escapeCharacter, inverse, style, close, character) => {
|
|
6892
6892
|
if (escapeCharacter) {
|
|
6893
|
-
chunk.push(
|
|
6893
|
+
chunk.push(unescape(escapeCharacter));
|
|
6894
6894
|
} else if (style) {
|
|
6895
6895
|
const string = chunk.join("");
|
|
6896
6896
|
chunk = [];
|
|
@@ -17157,7 +17157,7 @@ var require_lodash = __commonJS({
|
|
|
17157
17157
|
copyObject(source, keys(source), object, customizer);
|
|
17158
17158
|
});
|
|
17159
17159
|
var at2 = flatRest(baseAt);
|
|
17160
|
-
function
|
|
17160
|
+
function create2(prototype2, properties) {
|
|
17161
17161
|
var result2 = baseCreate(prototype2);
|
|
17162
17162
|
return properties == null ? result2 : baseAssign(result2, properties);
|
|
17163
17163
|
}
|
|
@@ -17674,7 +17674,7 @@ var require_lodash = __commonJS({
|
|
|
17674
17674
|
}
|
|
17675
17675
|
return result2 + omission;
|
|
17676
17676
|
}
|
|
17677
|
-
function
|
|
17677
|
+
function unescape(string) {
|
|
17678
17678
|
string = toString3(string);
|
|
17679
17679
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
|
17680
17680
|
}
|
|
@@ -17909,7 +17909,7 @@ var require_lodash = __commonJS({
|
|
|
17909
17909
|
lodash.conforms = conforms;
|
|
17910
17910
|
lodash.constant = constant;
|
|
17911
17911
|
lodash.countBy = countBy;
|
|
17912
|
-
lodash.create =
|
|
17912
|
+
lodash.create = create2;
|
|
17913
17913
|
lodash.curry = curry;
|
|
17914
17914
|
lodash.curryRight = curryRight;
|
|
17915
17915
|
lodash.debounce = debounce;
|
|
@@ -18188,7 +18188,7 @@ var require_lodash = __commonJS({
|
|
|
18188
18188
|
lodash.trimEnd = trimEnd;
|
|
18189
18189
|
lodash.trimStart = trimStart;
|
|
18190
18190
|
lodash.truncate = truncate;
|
|
18191
|
-
lodash.unescape =
|
|
18191
|
+
lodash.unescape = unescape;
|
|
18192
18192
|
lodash.uniqueId = uniqueId;
|
|
18193
18193
|
lodash.upperCase = upperCase;
|
|
18194
18194
|
lodash.upperFirst = upperFirst;
|
|
@@ -18505,9 +18505,9 @@ var require_ms = __commonJS({
|
|
|
18505
18505
|
}
|
|
18506
18506
|
});
|
|
18507
18507
|
|
|
18508
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
18508
|
+
// ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js
|
|
18509
18509
|
var require_common = __commonJS({
|
|
18510
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18510
|
+
"../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
|
|
18511
18511
|
"use strict";
|
|
18512
18512
|
function setup(env) {
|
|
18513
18513
|
createDebug.debug = createDebug;
|
|
@@ -18669,9 +18669,9 @@ var require_common = __commonJS({
|
|
|
18669
18669
|
}
|
|
18670
18670
|
});
|
|
18671
18671
|
|
|
18672
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
18672
|
+
// ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js
|
|
18673
18673
|
var require_browser = __commonJS({
|
|
18674
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18674
|
+
"../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
|
|
18675
18675
|
"use strict";
|
|
18676
18676
|
exports.formatArgs = formatArgs;
|
|
18677
18677
|
exports.save = save;
|
|
@@ -18840,9 +18840,118 @@ var require_browser = __commonJS({
|
|
|
18840
18840
|
}
|
|
18841
18841
|
});
|
|
18842
18842
|
|
|
18843
|
-
// ../../../node_modules/.pnpm/
|
|
18843
|
+
// ../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
|
|
18844
|
+
var require_has_flag2 = __commonJS({
|
|
18845
|
+
"../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
18846
|
+
"use strict";
|
|
18847
|
+
module2.exports = (flag, argv) => {
|
|
18848
|
+
argv = argv || process.argv;
|
|
18849
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
18850
|
+
const pos = argv.indexOf(prefix + flag);
|
|
18851
|
+
const terminatorPos = argv.indexOf("--");
|
|
18852
|
+
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
18853
|
+
};
|
|
18854
|
+
}
|
|
18855
|
+
});
|
|
18856
|
+
|
|
18857
|
+
// ../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
18858
|
+
var require_supports_color2 = __commonJS({
|
|
18859
|
+
"../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
18860
|
+
"use strict";
|
|
18861
|
+
var os4 = require("os");
|
|
18862
|
+
var hasFlag = require_has_flag2();
|
|
18863
|
+
var env = process.env;
|
|
18864
|
+
var forceColor;
|
|
18865
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
18866
|
+
forceColor = false;
|
|
18867
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
18868
|
+
forceColor = true;
|
|
18869
|
+
}
|
|
18870
|
+
if ("FORCE_COLOR" in env) {
|
|
18871
|
+
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
18872
|
+
}
|
|
18873
|
+
function translateLevel(level) {
|
|
18874
|
+
if (level === 0) {
|
|
18875
|
+
return false;
|
|
18876
|
+
}
|
|
18877
|
+
return {
|
|
18878
|
+
level,
|
|
18879
|
+
hasBasic: true,
|
|
18880
|
+
has256: level >= 2,
|
|
18881
|
+
has16m: level >= 3
|
|
18882
|
+
};
|
|
18883
|
+
}
|
|
18884
|
+
function supportsColor(stream4) {
|
|
18885
|
+
if (forceColor === false) {
|
|
18886
|
+
return 0;
|
|
18887
|
+
}
|
|
18888
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
18889
|
+
return 3;
|
|
18890
|
+
}
|
|
18891
|
+
if (hasFlag("color=256")) {
|
|
18892
|
+
return 2;
|
|
18893
|
+
}
|
|
18894
|
+
if (stream4 && !stream4.isTTY && forceColor !== true) {
|
|
18895
|
+
return 0;
|
|
18896
|
+
}
|
|
18897
|
+
const min = forceColor ? 1 : 0;
|
|
18898
|
+
if (process.platform === "win32") {
|
|
18899
|
+
const osRelease = os4.release().split(".");
|
|
18900
|
+
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
18901
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
18902
|
+
}
|
|
18903
|
+
return 1;
|
|
18904
|
+
}
|
|
18905
|
+
if ("CI" in env) {
|
|
18906
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
18907
|
+
return 1;
|
|
18908
|
+
}
|
|
18909
|
+
return min;
|
|
18910
|
+
}
|
|
18911
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
18912
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
18913
|
+
}
|
|
18914
|
+
if (env.COLORTERM === "truecolor") {
|
|
18915
|
+
return 3;
|
|
18916
|
+
}
|
|
18917
|
+
if ("TERM_PROGRAM" in env) {
|
|
18918
|
+
const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
18919
|
+
switch (env.TERM_PROGRAM) {
|
|
18920
|
+
case "iTerm.app":
|
|
18921
|
+
return version2 >= 3 ? 3 : 2;
|
|
18922
|
+
case "Apple_Terminal":
|
|
18923
|
+
return 2;
|
|
18924
|
+
}
|
|
18925
|
+
}
|
|
18926
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
18927
|
+
return 2;
|
|
18928
|
+
}
|
|
18929
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
18930
|
+
return 1;
|
|
18931
|
+
}
|
|
18932
|
+
if ("COLORTERM" in env) {
|
|
18933
|
+
return 1;
|
|
18934
|
+
}
|
|
18935
|
+
if (env.TERM === "dumb") {
|
|
18936
|
+
return min;
|
|
18937
|
+
}
|
|
18938
|
+
return min;
|
|
18939
|
+
}
|
|
18940
|
+
function getSupportLevel(stream4) {
|
|
18941
|
+
const level = supportsColor(stream4);
|
|
18942
|
+
return translateLevel(level);
|
|
18943
|
+
}
|
|
18944
|
+
module2.exports = {
|
|
18945
|
+
supportsColor: getSupportLevel,
|
|
18946
|
+
stdout: getSupportLevel(process.stdout),
|
|
18947
|
+
stderr: getSupportLevel(process.stderr)
|
|
18948
|
+
};
|
|
18949
|
+
}
|
|
18950
|
+
});
|
|
18951
|
+
|
|
18952
|
+
// ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
18844
18953
|
var require_node2 = __commonJS({
|
|
18845
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
18954
|
+
"../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
|
|
18846
18955
|
"use strict";
|
|
18847
18956
|
var tty = require("tty");
|
|
18848
18957
|
var util3 = require("util");
|
|
@@ -18859,7 +18968,7 @@ var require_node2 = __commonJS({
|
|
|
18859
18968
|
);
|
|
18860
18969
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
18861
18970
|
try {
|
|
18862
|
-
const supportsColor =
|
|
18971
|
+
const supportsColor = require_supports_color2();
|
|
18863
18972
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
18864
18973
|
exports.colors = [
|
|
18865
18974
|
20,
|
|
@@ -19015,9 +19124,9 @@ var require_node2 = __commonJS({
|
|
|
19015
19124
|
}
|
|
19016
19125
|
});
|
|
19017
19126
|
|
|
19018
|
-
// ../../../node_modules/.pnpm/debug@4.3.
|
|
19127
|
+
// ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js
|
|
19019
19128
|
var require_src = __commonJS({
|
|
19020
|
-
"../../../node_modules/.pnpm/debug@4.3.
|
|
19129
|
+
"../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
|
|
19021
19130
|
"use strict";
|
|
19022
19131
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
19023
19132
|
module2.exports = require_browser();
|
|
@@ -34662,9 +34771,9 @@ var require_get_proto = __commonJS({
|
|
|
34662
34771
|
}
|
|
34663
34772
|
});
|
|
34664
34773
|
|
|
34665
|
-
// ../../../node_modules/.pnpm/hasown@2.0.
|
|
34774
|
+
// ../../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
|
|
34666
34775
|
var require_hasown = __commonJS({
|
|
34667
|
-
"../../../node_modules/.pnpm/hasown@2.0.
|
|
34776
|
+
"../../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module2) {
|
|
34668
34777
|
"use strict";
|
|
34669
34778
|
var call = Function.prototype.call;
|
|
34670
34779
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -35379,9 +35488,459 @@ var require_form_data = __commonJS({
|
|
|
35379
35488
|
}
|
|
35380
35489
|
});
|
|
35381
35490
|
|
|
35382
|
-
// ../../../node_modules/.pnpm/
|
|
35491
|
+
// ../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js
|
|
35492
|
+
var require_promisify = __commonJS({
|
|
35493
|
+
"../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js"(exports) {
|
|
35494
|
+
"use strict";
|
|
35495
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35496
|
+
function promisify(fn2) {
|
|
35497
|
+
return function(req, opts) {
|
|
35498
|
+
return new Promise((resolve, reject) => {
|
|
35499
|
+
fn2.call(this, req, opts, (err, rtn) => {
|
|
35500
|
+
if (err) {
|
|
35501
|
+
reject(err);
|
|
35502
|
+
} else {
|
|
35503
|
+
resolve(rtn);
|
|
35504
|
+
}
|
|
35505
|
+
});
|
|
35506
|
+
});
|
|
35507
|
+
};
|
|
35508
|
+
}
|
|
35509
|
+
exports.default = promisify;
|
|
35510
|
+
}
|
|
35511
|
+
});
|
|
35512
|
+
|
|
35513
|
+
// ../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js
|
|
35514
|
+
var require_src2 = __commonJS({
|
|
35515
|
+
"../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module2) {
|
|
35516
|
+
"use strict";
|
|
35517
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
35518
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35519
|
+
};
|
|
35520
|
+
var events_1 = require("events");
|
|
35521
|
+
var debug_1 = __importDefault(require_src());
|
|
35522
|
+
var promisify_1 = __importDefault(require_promisify());
|
|
35523
|
+
var debug2 = debug_1.default("agent-base");
|
|
35524
|
+
function isAgent(v2) {
|
|
35525
|
+
return Boolean(v2) && typeof v2.addRequest === "function";
|
|
35526
|
+
}
|
|
35527
|
+
function isSecureEndpoint() {
|
|
35528
|
+
const { stack } = new Error();
|
|
35529
|
+
if (typeof stack !== "string")
|
|
35530
|
+
return false;
|
|
35531
|
+
return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
|
|
35532
|
+
}
|
|
35533
|
+
function createAgent(callback, opts) {
|
|
35534
|
+
return new createAgent.Agent(callback, opts);
|
|
35535
|
+
}
|
|
35536
|
+
(function(createAgent2) {
|
|
35537
|
+
class Agent extends events_1.EventEmitter {
|
|
35538
|
+
constructor(callback, _opts) {
|
|
35539
|
+
super();
|
|
35540
|
+
let opts = _opts;
|
|
35541
|
+
if (typeof callback === "function") {
|
|
35542
|
+
this.callback = callback;
|
|
35543
|
+
} else if (callback) {
|
|
35544
|
+
opts = callback;
|
|
35545
|
+
}
|
|
35546
|
+
this.timeout = null;
|
|
35547
|
+
if (opts && typeof opts.timeout === "number") {
|
|
35548
|
+
this.timeout = opts.timeout;
|
|
35549
|
+
}
|
|
35550
|
+
this.maxFreeSockets = 1;
|
|
35551
|
+
this.maxSockets = 1;
|
|
35552
|
+
this.maxTotalSockets = Infinity;
|
|
35553
|
+
this.sockets = {};
|
|
35554
|
+
this.freeSockets = {};
|
|
35555
|
+
this.requests = {};
|
|
35556
|
+
this.options = {};
|
|
35557
|
+
}
|
|
35558
|
+
get defaultPort() {
|
|
35559
|
+
if (typeof this.explicitDefaultPort === "number") {
|
|
35560
|
+
return this.explicitDefaultPort;
|
|
35561
|
+
}
|
|
35562
|
+
return isSecureEndpoint() ? 443 : 80;
|
|
35563
|
+
}
|
|
35564
|
+
set defaultPort(v2) {
|
|
35565
|
+
this.explicitDefaultPort = v2;
|
|
35566
|
+
}
|
|
35567
|
+
get protocol() {
|
|
35568
|
+
if (typeof this.explicitProtocol === "string") {
|
|
35569
|
+
return this.explicitProtocol;
|
|
35570
|
+
}
|
|
35571
|
+
return isSecureEndpoint() ? "https:" : "http:";
|
|
35572
|
+
}
|
|
35573
|
+
set protocol(v2) {
|
|
35574
|
+
this.explicitProtocol = v2;
|
|
35575
|
+
}
|
|
35576
|
+
callback(req, opts, fn2) {
|
|
35577
|
+
throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
|
|
35578
|
+
}
|
|
35579
|
+
/**
|
|
35580
|
+
* Called by node-core's "_http_client.js" module when creating
|
|
35581
|
+
* a new HTTP request with this Agent instance.
|
|
35582
|
+
*
|
|
35583
|
+
* @api public
|
|
35584
|
+
*/
|
|
35585
|
+
addRequest(req, _opts) {
|
|
35586
|
+
const opts = Object.assign({}, _opts);
|
|
35587
|
+
if (typeof opts.secureEndpoint !== "boolean") {
|
|
35588
|
+
opts.secureEndpoint = isSecureEndpoint();
|
|
35589
|
+
}
|
|
35590
|
+
if (opts.host == null) {
|
|
35591
|
+
opts.host = "localhost";
|
|
35592
|
+
}
|
|
35593
|
+
if (opts.port == null) {
|
|
35594
|
+
opts.port = opts.secureEndpoint ? 443 : 80;
|
|
35595
|
+
}
|
|
35596
|
+
if (opts.protocol == null) {
|
|
35597
|
+
opts.protocol = opts.secureEndpoint ? "https:" : "http:";
|
|
35598
|
+
}
|
|
35599
|
+
if (opts.host && opts.path) {
|
|
35600
|
+
delete opts.path;
|
|
35601
|
+
}
|
|
35602
|
+
delete opts.agent;
|
|
35603
|
+
delete opts.hostname;
|
|
35604
|
+
delete opts._defaultAgent;
|
|
35605
|
+
delete opts.defaultPort;
|
|
35606
|
+
delete opts.createConnection;
|
|
35607
|
+
req._last = true;
|
|
35608
|
+
req.shouldKeepAlive = false;
|
|
35609
|
+
let timedOut = false;
|
|
35610
|
+
let timeoutId = null;
|
|
35611
|
+
const timeoutMs = opts.timeout || this.timeout;
|
|
35612
|
+
const onerror = (err) => {
|
|
35613
|
+
if (req._hadError)
|
|
35614
|
+
return;
|
|
35615
|
+
req.emit("error", err);
|
|
35616
|
+
req._hadError = true;
|
|
35617
|
+
};
|
|
35618
|
+
const ontimeout = () => {
|
|
35619
|
+
timeoutId = null;
|
|
35620
|
+
timedOut = true;
|
|
35621
|
+
const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
|
|
35622
|
+
err.code = "ETIMEOUT";
|
|
35623
|
+
onerror(err);
|
|
35624
|
+
};
|
|
35625
|
+
const callbackError = (err) => {
|
|
35626
|
+
if (timedOut)
|
|
35627
|
+
return;
|
|
35628
|
+
if (timeoutId !== null) {
|
|
35629
|
+
clearTimeout(timeoutId);
|
|
35630
|
+
timeoutId = null;
|
|
35631
|
+
}
|
|
35632
|
+
onerror(err);
|
|
35633
|
+
};
|
|
35634
|
+
const onsocket = (socket) => {
|
|
35635
|
+
if (timedOut)
|
|
35636
|
+
return;
|
|
35637
|
+
if (timeoutId != null) {
|
|
35638
|
+
clearTimeout(timeoutId);
|
|
35639
|
+
timeoutId = null;
|
|
35640
|
+
}
|
|
35641
|
+
if (isAgent(socket)) {
|
|
35642
|
+
debug2("Callback returned another Agent instance %o", socket.constructor.name);
|
|
35643
|
+
socket.addRequest(req, opts);
|
|
35644
|
+
return;
|
|
35645
|
+
}
|
|
35646
|
+
if (socket) {
|
|
35647
|
+
socket.once("free", () => {
|
|
35648
|
+
this.freeSocket(socket, opts);
|
|
35649
|
+
});
|
|
35650
|
+
req.onSocket(socket);
|
|
35651
|
+
return;
|
|
35652
|
+
}
|
|
35653
|
+
const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
|
|
35654
|
+
onerror(err);
|
|
35655
|
+
};
|
|
35656
|
+
if (typeof this.callback !== "function") {
|
|
35657
|
+
onerror(new Error("`callback` is not defined"));
|
|
35658
|
+
return;
|
|
35659
|
+
}
|
|
35660
|
+
if (!this.promisifiedCallback) {
|
|
35661
|
+
if (this.callback.length >= 3) {
|
|
35662
|
+
debug2("Converting legacy callback function to promise");
|
|
35663
|
+
this.promisifiedCallback = promisify_1.default(this.callback);
|
|
35664
|
+
} else {
|
|
35665
|
+
this.promisifiedCallback = this.callback;
|
|
35666
|
+
}
|
|
35667
|
+
}
|
|
35668
|
+
if (typeof timeoutMs === "number" && timeoutMs > 0) {
|
|
35669
|
+
timeoutId = setTimeout(ontimeout, timeoutMs);
|
|
35670
|
+
}
|
|
35671
|
+
if ("port" in opts && typeof opts.port !== "number") {
|
|
35672
|
+
opts.port = Number(opts.port);
|
|
35673
|
+
}
|
|
35674
|
+
try {
|
|
35675
|
+
debug2("Resolving socket for %o request: %o", opts.protocol, `${req.method} ${req.path}`);
|
|
35676
|
+
Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
|
|
35677
|
+
} catch (err) {
|
|
35678
|
+
Promise.reject(err).catch(callbackError);
|
|
35679
|
+
}
|
|
35680
|
+
}
|
|
35681
|
+
freeSocket(socket, opts) {
|
|
35682
|
+
debug2("Freeing socket %o %o", socket.constructor.name, opts);
|
|
35683
|
+
socket.destroy();
|
|
35684
|
+
}
|
|
35685
|
+
destroy() {
|
|
35686
|
+
debug2("Destroying agent %o", this.constructor.name);
|
|
35687
|
+
}
|
|
35688
|
+
}
|
|
35689
|
+
createAgent2.Agent = Agent;
|
|
35690
|
+
createAgent2.prototype = createAgent2.Agent.prototype;
|
|
35691
|
+
})(createAgent || (createAgent = {}));
|
|
35692
|
+
module2.exports = createAgent;
|
|
35693
|
+
}
|
|
35694
|
+
});
|
|
35695
|
+
|
|
35696
|
+
// ../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
35697
|
+
var require_parse_proxy_response = __commonJS({
|
|
35698
|
+
"../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
35699
|
+
"use strict";
|
|
35700
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
35701
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35702
|
+
};
|
|
35703
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35704
|
+
var debug_1 = __importDefault(require_src());
|
|
35705
|
+
var debug2 = debug_1.default("https-proxy-agent:parse-proxy-response");
|
|
35706
|
+
function parseProxyResponse(socket) {
|
|
35707
|
+
return new Promise((resolve, reject) => {
|
|
35708
|
+
let buffersLength = 0;
|
|
35709
|
+
const buffers = [];
|
|
35710
|
+
function read() {
|
|
35711
|
+
const b2 = socket.read();
|
|
35712
|
+
if (b2)
|
|
35713
|
+
ondata(b2);
|
|
35714
|
+
else
|
|
35715
|
+
socket.once("readable", read);
|
|
35716
|
+
}
|
|
35717
|
+
function cleanup() {
|
|
35718
|
+
socket.removeListener("end", onend);
|
|
35719
|
+
socket.removeListener("error", onerror);
|
|
35720
|
+
socket.removeListener("close", onclose);
|
|
35721
|
+
socket.removeListener("readable", read);
|
|
35722
|
+
}
|
|
35723
|
+
function onclose(err) {
|
|
35724
|
+
debug2("onclose had error %o", err);
|
|
35725
|
+
}
|
|
35726
|
+
function onend() {
|
|
35727
|
+
debug2("onend");
|
|
35728
|
+
}
|
|
35729
|
+
function onerror(err) {
|
|
35730
|
+
cleanup();
|
|
35731
|
+
debug2("onerror %o", err);
|
|
35732
|
+
reject(err);
|
|
35733
|
+
}
|
|
35734
|
+
function ondata(b2) {
|
|
35735
|
+
buffers.push(b2);
|
|
35736
|
+
buffersLength += b2.length;
|
|
35737
|
+
const buffered = Buffer.concat(buffers, buffersLength);
|
|
35738
|
+
const endOfHeaders = buffered.indexOf("\r\n\r\n");
|
|
35739
|
+
if (endOfHeaders === -1) {
|
|
35740
|
+
debug2("have not received end of HTTP headers yet...");
|
|
35741
|
+
read();
|
|
35742
|
+
return;
|
|
35743
|
+
}
|
|
35744
|
+
const firstLine = buffered.toString("ascii", 0, buffered.indexOf("\r\n"));
|
|
35745
|
+
const statusCode = +firstLine.split(" ")[1];
|
|
35746
|
+
debug2("got proxy server response: %o", firstLine);
|
|
35747
|
+
resolve({
|
|
35748
|
+
statusCode,
|
|
35749
|
+
buffered
|
|
35750
|
+
});
|
|
35751
|
+
}
|
|
35752
|
+
socket.on("error", onerror);
|
|
35753
|
+
socket.on("close", onclose);
|
|
35754
|
+
socket.on("end", onend);
|
|
35755
|
+
read();
|
|
35756
|
+
});
|
|
35757
|
+
}
|
|
35758
|
+
exports.default = parseProxyResponse;
|
|
35759
|
+
}
|
|
35760
|
+
});
|
|
35761
|
+
|
|
35762
|
+
// ../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
|
|
35763
|
+
var require_agent = __commonJS({
|
|
35764
|
+
"../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
|
|
35765
|
+
"use strict";
|
|
35766
|
+
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
35767
|
+
function adopt(value) {
|
|
35768
|
+
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
35769
|
+
resolve(value);
|
|
35770
|
+
});
|
|
35771
|
+
}
|
|
35772
|
+
return new (P2 || (P2 = Promise))(function(resolve, reject) {
|
|
35773
|
+
function fulfilled(value) {
|
|
35774
|
+
try {
|
|
35775
|
+
step(generator.next(value));
|
|
35776
|
+
} catch (e) {
|
|
35777
|
+
reject(e);
|
|
35778
|
+
}
|
|
35779
|
+
}
|
|
35780
|
+
function rejected(value) {
|
|
35781
|
+
try {
|
|
35782
|
+
step(generator["throw"](value));
|
|
35783
|
+
} catch (e) {
|
|
35784
|
+
reject(e);
|
|
35785
|
+
}
|
|
35786
|
+
}
|
|
35787
|
+
function step(result) {
|
|
35788
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
35789
|
+
}
|
|
35790
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35791
|
+
});
|
|
35792
|
+
};
|
|
35793
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
35794
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35795
|
+
};
|
|
35796
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35797
|
+
var net_1 = __importDefault(require("net"));
|
|
35798
|
+
var tls_1 = __importDefault(require("tls"));
|
|
35799
|
+
var url_1 = __importDefault(require("url"));
|
|
35800
|
+
var assert_1 = __importDefault(require("assert"));
|
|
35801
|
+
var debug_1 = __importDefault(require_src());
|
|
35802
|
+
var agent_base_1 = require_src2();
|
|
35803
|
+
var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
|
|
35804
|
+
var debug2 = debug_1.default("https-proxy-agent:agent");
|
|
35805
|
+
var HttpsProxyAgent2 = class extends agent_base_1.Agent {
|
|
35806
|
+
constructor(_opts) {
|
|
35807
|
+
let opts;
|
|
35808
|
+
if (typeof _opts === "string") {
|
|
35809
|
+
opts = url_1.default.parse(_opts);
|
|
35810
|
+
} else {
|
|
35811
|
+
opts = _opts;
|
|
35812
|
+
}
|
|
35813
|
+
if (!opts) {
|
|
35814
|
+
throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");
|
|
35815
|
+
}
|
|
35816
|
+
debug2("creating new HttpsProxyAgent instance: %o", opts);
|
|
35817
|
+
super(opts);
|
|
35818
|
+
const proxy = Object.assign({}, opts);
|
|
35819
|
+
this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
|
|
35820
|
+
proxy.host = proxy.hostname || proxy.host;
|
|
35821
|
+
if (typeof proxy.port === "string") {
|
|
35822
|
+
proxy.port = parseInt(proxy.port, 10);
|
|
35823
|
+
}
|
|
35824
|
+
if (!proxy.port && proxy.host) {
|
|
35825
|
+
proxy.port = this.secureProxy ? 443 : 80;
|
|
35826
|
+
}
|
|
35827
|
+
if (this.secureProxy && !("ALPNProtocols" in proxy)) {
|
|
35828
|
+
proxy.ALPNProtocols = ["http 1.1"];
|
|
35829
|
+
}
|
|
35830
|
+
if (proxy.host && proxy.path) {
|
|
35831
|
+
delete proxy.path;
|
|
35832
|
+
delete proxy.pathname;
|
|
35833
|
+
}
|
|
35834
|
+
this.proxy = proxy;
|
|
35835
|
+
}
|
|
35836
|
+
/**
|
|
35837
|
+
* Called when the node-core HTTP client library is creating a
|
|
35838
|
+
* new HTTP request.
|
|
35839
|
+
*
|
|
35840
|
+
* @api protected
|
|
35841
|
+
*/
|
|
35842
|
+
callback(req, opts) {
|
|
35843
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35844
|
+
const { proxy, secureProxy } = this;
|
|
35845
|
+
let socket;
|
|
35846
|
+
if (secureProxy) {
|
|
35847
|
+
debug2("Creating `tls.Socket`: %o", proxy);
|
|
35848
|
+
socket = tls_1.default.connect(proxy);
|
|
35849
|
+
} else {
|
|
35850
|
+
debug2("Creating `net.Socket`: %o", proxy);
|
|
35851
|
+
socket = net_1.default.connect(proxy);
|
|
35852
|
+
}
|
|
35853
|
+
const headers = Object.assign({}, proxy.headers);
|
|
35854
|
+
const hostname = `${opts.host}:${opts.port}`;
|
|
35855
|
+
let payload = `CONNECT ${hostname} HTTP/1.1\r
|
|
35856
|
+
`;
|
|
35857
|
+
if (proxy.auth) {
|
|
35858
|
+
headers["Proxy-Authorization"] = `Basic ${Buffer.from(proxy.auth).toString("base64")}`;
|
|
35859
|
+
}
|
|
35860
|
+
let { host, port, secureEndpoint } = opts;
|
|
35861
|
+
if (!isDefaultPort(port, secureEndpoint)) {
|
|
35862
|
+
host += `:${port}`;
|
|
35863
|
+
}
|
|
35864
|
+
headers.Host = host;
|
|
35865
|
+
headers.Connection = "close";
|
|
35866
|
+
for (const name of Object.keys(headers)) {
|
|
35867
|
+
payload += `${name}: ${headers[name]}\r
|
|
35868
|
+
`;
|
|
35869
|
+
}
|
|
35870
|
+
const proxyResponsePromise = parse_proxy_response_1.default(socket);
|
|
35871
|
+
socket.write(`${payload}\r
|
|
35872
|
+
`);
|
|
35873
|
+
const { statusCode, buffered } = yield proxyResponsePromise;
|
|
35874
|
+
if (statusCode === 200) {
|
|
35875
|
+
req.once("socket", resume);
|
|
35876
|
+
if (opts.secureEndpoint) {
|
|
35877
|
+
debug2("Upgrading socket connection to TLS");
|
|
35878
|
+
const servername = opts.servername || opts.host;
|
|
35879
|
+
return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, "host", "hostname", "path", "port")), {
|
|
35880
|
+
socket,
|
|
35881
|
+
servername
|
|
35882
|
+
}));
|
|
35883
|
+
}
|
|
35884
|
+
return socket;
|
|
35885
|
+
}
|
|
35886
|
+
socket.destroy();
|
|
35887
|
+
const fakeSocket = new net_1.default.Socket({ writable: false });
|
|
35888
|
+
fakeSocket.readable = true;
|
|
35889
|
+
req.once("socket", (s3) => {
|
|
35890
|
+
debug2("replaying proxy buffer for failed request");
|
|
35891
|
+
assert_1.default(s3.listenerCount("data") > 0);
|
|
35892
|
+
s3.push(buffered);
|
|
35893
|
+
s3.push(null);
|
|
35894
|
+
});
|
|
35895
|
+
return fakeSocket;
|
|
35896
|
+
});
|
|
35897
|
+
}
|
|
35898
|
+
};
|
|
35899
|
+
exports.default = HttpsProxyAgent2;
|
|
35900
|
+
function resume(socket) {
|
|
35901
|
+
socket.resume();
|
|
35902
|
+
}
|
|
35903
|
+
function isDefaultPort(port, secure) {
|
|
35904
|
+
return Boolean(!secure && port === 80 || secure && port === 443);
|
|
35905
|
+
}
|
|
35906
|
+
function isHTTPS(protocol) {
|
|
35907
|
+
return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
|
|
35908
|
+
}
|
|
35909
|
+
function omit(obj, ...keys) {
|
|
35910
|
+
const ret = {};
|
|
35911
|
+
let key;
|
|
35912
|
+
for (key in obj) {
|
|
35913
|
+
if (!keys.includes(key)) {
|
|
35914
|
+
ret[key] = obj[key];
|
|
35915
|
+
}
|
|
35916
|
+
}
|
|
35917
|
+
return ret;
|
|
35918
|
+
}
|
|
35919
|
+
}
|
|
35920
|
+
});
|
|
35921
|
+
|
|
35922
|
+
// ../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
|
|
35923
|
+
var require_dist = __commonJS({
|
|
35924
|
+
"../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module2) {
|
|
35925
|
+
"use strict";
|
|
35926
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
35927
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35928
|
+
};
|
|
35929
|
+
var agent_1 = __importDefault(require_agent());
|
|
35930
|
+
function createHttpsProxyAgent(opts) {
|
|
35931
|
+
return new agent_1.default(opts);
|
|
35932
|
+
}
|
|
35933
|
+
(function(createHttpsProxyAgent2) {
|
|
35934
|
+
createHttpsProxyAgent2.HttpsProxyAgent = agent_1.default;
|
|
35935
|
+
createHttpsProxyAgent2.prototype = agent_1.default.prototype;
|
|
35936
|
+
})(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
|
|
35937
|
+
module2.exports = createHttpsProxyAgent;
|
|
35938
|
+
}
|
|
35939
|
+
});
|
|
35940
|
+
|
|
35941
|
+
// ../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/debug.js
|
|
35383
35942
|
var require_debug2 = __commonJS({
|
|
35384
|
-
"../../../node_modules/.pnpm/follow-redirects@1.
|
|
35943
|
+
"../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/debug.js"(exports, module2) {
|
|
35385
35944
|
"use strict";
|
|
35386
35945
|
var debug2;
|
|
35387
35946
|
module2.exports = function() {
|
|
@@ -35400,9 +35959,9 @@ var require_debug2 = __commonJS({
|
|
|
35400
35959
|
}
|
|
35401
35960
|
});
|
|
35402
35961
|
|
|
35403
|
-
// ../../../node_modules/.pnpm/follow-redirects@1.
|
|
35962
|
+
// ../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/index.js
|
|
35404
35963
|
var require_follow_redirects = __commonJS({
|
|
35405
|
-
"../../../node_modules/.pnpm/follow-redirects@1.
|
|
35964
|
+
"../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/index.js"(exports, module2) {
|
|
35406
35965
|
"use strict";
|
|
35407
35966
|
var url2 = require("url");
|
|
35408
35967
|
var URL2 = url2.URL;
|
|
@@ -35425,6 +35984,11 @@ var require_follow_redirects = __commonJS({
|
|
|
35425
35984
|
} catch (error) {
|
|
35426
35985
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
35427
35986
|
}
|
|
35987
|
+
var sensitiveHeaders = [
|
|
35988
|
+
"Authorization",
|
|
35989
|
+
"Proxy-Authorization",
|
|
35990
|
+
"Cookie"
|
|
35991
|
+
];
|
|
35428
35992
|
var preservedUrlFields = [
|
|
35429
35993
|
"auth",
|
|
35430
35994
|
"host",
|
|
@@ -35489,6 +36053,7 @@ var require_follow_redirects = __commonJS({
|
|
|
35489
36053
|
self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
35490
36054
|
}
|
|
35491
36055
|
};
|
|
36056
|
+
this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
|
|
35492
36057
|
this._performRequest();
|
|
35493
36058
|
}
|
|
35494
36059
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
@@ -35626,6 +36191,9 @@ var require_follow_redirects = __commonJS({
|
|
|
35626
36191
|
if (!options.headers) {
|
|
35627
36192
|
options.headers = {};
|
|
35628
36193
|
}
|
|
36194
|
+
if (!isArray2(options.sensitiveHeaders)) {
|
|
36195
|
+
options.sensitiveHeaders = [];
|
|
36196
|
+
}
|
|
35629
36197
|
if (options.host) {
|
|
35630
36198
|
if (!options.hostname) {
|
|
35631
36199
|
options.hostname = options.host;
|
|
@@ -35731,7 +36299,7 @@ var require_follow_redirects = __commonJS({
|
|
|
35731
36299
|
this._isRedirect = true;
|
|
35732
36300
|
spreadUrlObject(redirectUrl, this._options);
|
|
35733
36301
|
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
35734
|
-
removeMatchingHeaders(
|
|
36302
|
+
removeMatchingHeaders(this._headerFilter, this._options.headers);
|
|
35735
36303
|
}
|
|
35736
36304
|
if (isFunction3(beforeRedirect)) {
|
|
35737
36305
|
var responseDetails = {
|
|
@@ -35880,6 +36448,9 @@ var require_follow_redirects = __commonJS({
|
|
|
35880
36448
|
var dot = subdomain.length - domain.length - 1;
|
|
35881
36449
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
35882
36450
|
}
|
|
36451
|
+
function isArray2(value) {
|
|
36452
|
+
return value instanceof Array;
|
|
36453
|
+
}
|
|
35883
36454
|
function isString3(value) {
|
|
35884
36455
|
return typeof value === "string" || value instanceof String;
|
|
35885
36456
|
}
|
|
@@ -35892,6 +36463,9 @@ var require_follow_redirects = __commonJS({
|
|
|
35892
36463
|
function isURL(value) {
|
|
35893
36464
|
return URL2 && value instanceof URL2;
|
|
35894
36465
|
}
|
|
36466
|
+
function escapeRegex(regex) {
|
|
36467
|
+
return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
|
|
36468
|
+
}
|
|
35895
36469
|
module2.exports = wrap({ http: http3, https: https2 });
|
|
35896
36470
|
module2.exports.wrap = wrap;
|
|
35897
36471
|
}
|
|
@@ -36091,7 +36665,7 @@ function cleanCacheAction() {
|
|
|
36091
36665
|
}
|
|
36092
36666
|
|
|
36093
36667
|
// src/createAction.ts
|
|
36094
|
-
var
|
|
36668
|
+
var import_path15 = __toESM(require("path"));
|
|
36095
36669
|
|
|
36096
36670
|
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
|
|
36097
36671
|
var LoggerLevel;
|
|
@@ -36167,11 +36741,11 @@ var Logger = class {
|
|
|
36167
36741
|
};
|
|
36168
36742
|
|
|
36169
36743
|
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
|
36170
|
-
var
|
|
36744
|
+
var import_path13 = __toESM(require("path"));
|
|
36171
36745
|
|
|
36172
36746
|
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
|
36173
36747
|
var import_events4 = require("events");
|
|
36174
|
-
var
|
|
36748
|
+
var import_path11 = __toESM(require("path"));
|
|
36175
36749
|
|
|
36176
36750
|
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
|
36177
36751
|
var import_path3 = __toESM(require("path"));
|
|
@@ -36393,7 +36967,7 @@ function timeoutPromise(promise, ms2, reason = "Operation") {
|
|
|
36393
36967
|
|
|
36394
36968
|
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
36395
36969
|
var import_os2 = __toESM(require("os"));
|
|
36396
|
-
var
|
|
36970
|
+
var import_path9 = __toESM(require("path"));
|
|
36397
36971
|
|
|
36398
36972
|
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
|
36399
36973
|
var NPM_API_TIMEOUT = 3e4;
|
|
@@ -36402,14 +36976,14 @@ var CATCHE_VALIDITY_PREIOD = 7 * 24 * 3600 * 1e3;
|
|
|
36402
36976
|
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.9/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
|
36403
36977
|
var import_semver = __toESM(require_semver2());
|
|
36404
36978
|
|
|
36405
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
36979
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/bind.js
|
|
36406
36980
|
function bind(fn2, thisArg) {
|
|
36407
36981
|
return function wrap() {
|
|
36408
36982
|
return fn2.apply(thisArg, arguments);
|
|
36409
36983
|
};
|
|
36410
36984
|
}
|
|
36411
36985
|
|
|
36412
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
36986
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/utils.js
|
|
36413
36987
|
var { toString } = Object.prototype;
|
|
36414
36988
|
var { getPrototypeOf } = Object;
|
|
36415
36989
|
var { iterator, toStringTag } = Symbol;
|
|
@@ -36482,9 +37056,18 @@ function getGlobal() {
|
|
|
36482
37056
|
var G = getGlobal();
|
|
36483
37057
|
var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
36484
37058
|
var isFormData = (thing) => {
|
|
36485
|
-
|
|
36486
|
-
|
|
36487
|
-
|
|
37059
|
+
if (!thing)
|
|
37060
|
+
return false;
|
|
37061
|
+
if (FormDataCtor && thing instanceof FormDataCtor)
|
|
37062
|
+
return true;
|
|
37063
|
+
const proto = getPrototypeOf(thing);
|
|
37064
|
+
if (!proto || proto === Object.prototype)
|
|
37065
|
+
return false;
|
|
37066
|
+
if (!isFunction(thing.append))
|
|
37067
|
+
return false;
|
|
37068
|
+
const kind = kindOf(thing);
|
|
37069
|
+
return kind === "formdata" || // detect form-data instance
|
|
37070
|
+
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
|
|
36488
37071
|
};
|
|
36489
37072
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
36490
37073
|
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
@@ -36544,7 +37127,7 @@ var _global = (() => {
|
|
|
36544
37127
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
36545
37128
|
})();
|
|
36546
37129
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
36547
|
-
function merge() {
|
|
37130
|
+
function merge(...objs) {
|
|
36548
37131
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
36549
37132
|
const result = {};
|
|
36550
37133
|
const assignValue = (val, key) => {
|
|
@@ -36552,8 +37135,9 @@ function merge() {
|
|
|
36552
37135
|
return;
|
|
36553
37136
|
}
|
|
36554
37137
|
const targetKey = caseless && findKey(result, key) || key;
|
|
36555
|
-
|
|
36556
|
-
|
|
37138
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
37139
|
+
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
37140
|
+
result[targetKey] = merge(existing, val);
|
|
36557
37141
|
} else if (isPlainObject(val)) {
|
|
36558
37142
|
result[targetKey] = merge({}, val);
|
|
36559
37143
|
} else if (isArray(val)) {
|
|
@@ -36562,8 +37146,8 @@ function merge() {
|
|
|
36562
37146
|
result[targetKey] = val;
|
|
36563
37147
|
}
|
|
36564
37148
|
};
|
|
36565
|
-
for (let i = 0, l =
|
|
36566
|
-
|
|
37149
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
37150
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
36567
37151
|
}
|
|
36568
37152
|
return result;
|
|
36569
37153
|
}
|
|
@@ -36573,6 +37157,9 @@ var extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
|
|
|
36573
37157
|
(val, key) => {
|
|
36574
37158
|
if (thisArg && isFunction(val)) {
|
|
36575
37159
|
Object.defineProperty(a, key, {
|
|
37160
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
37161
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
37162
|
+
__proto__: null,
|
|
36576
37163
|
value: bind(val, thisArg),
|
|
36577
37164
|
writable: true,
|
|
36578
37165
|
enumerable: true,
|
|
@@ -36580,6 +37167,7 @@ var extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
|
|
|
36580
37167
|
});
|
|
36581
37168
|
} else {
|
|
36582
37169
|
Object.defineProperty(a, key, {
|
|
37170
|
+
__proto__: null,
|
|
36583
37171
|
value: val,
|
|
36584
37172
|
writable: true,
|
|
36585
37173
|
enumerable: true,
|
|
@@ -36600,12 +37188,14 @@ var stripBOM = (content) => {
|
|
|
36600
37188
|
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
36601
37189
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
36602
37190
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
37191
|
+
__proto__: null,
|
|
36603
37192
|
value: constructor,
|
|
36604
37193
|
writable: true,
|
|
36605
37194
|
enumerable: false,
|
|
36606
37195
|
configurable: true
|
|
36607
37196
|
});
|
|
36608
37197
|
Object.defineProperty(constructor, "super", {
|
|
37198
|
+
__proto__: null,
|
|
36609
37199
|
value: superConstructor.prototype
|
|
36610
37200
|
});
|
|
36611
37201
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -36698,7 +37288,7 @@ var reduceDescriptors = (obj, reducer) => {
|
|
|
36698
37288
|
};
|
|
36699
37289
|
var freezeMethods = (obj) => {
|
|
36700
37290
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
36701
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].
|
|
37291
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
|
|
36702
37292
|
return false;
|
|
36703
37293
|
}
|
|
36704
37294
|
const value = obj[name];
|
|
@@ -36735,29 +37325,29 @@ function isSpecCompliantForm(thing) {
|
|
|
36735
37325
|
return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
36736
37326
|
}
|
|
36737
37327
|
var toJSONObject = (obj) => {
|
|
36738
|
-
const
|
|
36739
|
-
const visit = (source
|
|
37328
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
37329
|
+
const visit = (source) => {
|
|
36740
37330
|
if (isObject2(source)) {
|
|
36741
|
-
if (
|
|
37331
|
+
if (visited.has(source)) {
|
|
36742
37332
|
return;
|
|
36743
37333
|
}
|
|
36744
37334
|
if (isBuffer(source)) {
|
|
36745
37335
|
return source;
|
|
36746
37336
|
}
|
|
36747
37337
|
if (!("toJSON" in source)) {
|
|
36748
|
-
|
|
37338
|
+
visited.add(source);
|
|
36749
37339
|
const target = isArray(source) ? [] : {};
|
|
36750
37340
|
forEach(source, (value, key) => {
|
|
36751
|
-
const reducedValue = visit(value
|
|
37341
|
+
const reducedValue = visit(value);
|
|
36752
37342
|
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
36753
37343
|
});
|
|
36754
|
-
|
|
37344
|
+
visited.delete(source);
|
|
36755
37345
|
return target;
|
|
36756
37346
|
}
|
|
36757
37347
|
}
|
|
36758
37348
|
return source;
|
|
36759
37349
|
};
|
|
36760
|
-
return visit(obj
|
|
37350
|
+
return visit(obj);
|
|
36761
37351
|
};
|
|
36762
37352
|
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
36763
37353
|
var isThenable = (thing) => thing && (isObject2(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
@@ -36846,7 +37436,385 @@ var utils_default = {
|
|
|
36846
37436
|
isIterable
|
|
36847
37437
|
};
|
|
36848
37438
|
|
|
36849
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
37439
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/parseHeaders.js
|
|
37440
|
+
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
37441
|
+
"age",
|
|
37442
|
+
"authorization",
|
|
37443
|
+
"content-length",
|
|
37444
|
+
"content-type",
|
|
37445
|
+
"etag",
|
|
37446
|
+
"expires",
|
|
37447
|
+
"from",
|
|
37448
|
+
"host",
|
|
37449
|
+
"if-modified-since",
|
|
37450
|
+
"if-unmodified-since",
|
|
37451
|
+
"last-modified",
|
|
37452
|
+
"location",
|
|
37453
|
+
"max-forwards",
|
|
37454
|
+
"proxy-authorization",
|
|
37455
|
+
"referer",
|
|
37456
|
+
"retry-after",
|
|
37457
|
+
"user-agent"
|
|
37458
|
+
]);
|
|
37459
|
+
var parseHeaders_default = (rawHeaders) => {
|
|
37460
|
+
const parsed = {};
|
|
37461
|
+
let key;
|
|
37462
|
+
let val;
|
|
37463
|
+
let i;
|
|
37464
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
37465
|
+
i = line.indexOf(":");
|
|
37466
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
37467
|
+
val = line.substring(i + 1).trim();
|
|
37468
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
37469
|
+
return;
|
|
37470
|
+
}
|
|
37471
|
+
if (key === "set-cookie") {
|
|
37472
|
+
if (parsed[key]) {
|
|
37473
|
+
parsed[key].push(val);
|
|
37474
|
+
} else {
|
|
37475
|
+
parsed[key] = [val];
|
|
37476
|
+
}
|
|
37477
|
+
} else {
|
|
37478
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
37479
|
+
}
|
|
37480
|
+
});
|
|
37481
|
+
return parsed;
|
|
37482
|
+
};
|
|
37483
|
+
|
|
37484
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
37485
|
+
function trimSPorHTAB(str) {
|
|
37486
|
+
let start = 0;
|
|
37487
|
+
let end = str.length;
|
|
37488
|
+
while (start < end) {
|
|
37489
|
+
const code = str.charCodeAt(start);
|
|
37490
|
+
if (code !== 9 && code !== 32) {
|
|
37491
|
+
break;
|
|
37492
|
+
}
|
|
37493
|
+
start += 1;
|
|
37494
|
+
}
|
|
37495
|
+
while (end > start) {
|
|
37496
|
+
const code = str.charCodeAt(end - 1);
|
|
37497
|
+
if (code !== 9 && code !== 32) {
|
|
37498
|
+
break;
|
|
37499
|
+
}
|
|
37500
|
+
end -= 1;
|
|
37501
|
+
}
|
|
37502
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
37503
|
+
}
|
|
37504
|
+
var INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
|
|
37505
|
+
var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
37506
|
+
function sanitizeValue(value, invalidChars) {
|
|
37507
|
+
if (utils_default.isArray(value)) {
|
|
37508
|
+
return value.map((item) => sanitizeValue(item, invalidChars));
|
|
37509
|
+
}
|
|
37510
|
+
return trimSPorHTAB(String(value).replace(invalidChars, ""));
|
|
37511
|
+
}
|
|
37512
|
+
var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
|
|
37513
|
+
var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
|
|
37514
|
+
function toByteStringHeaderObject(headers) {
|
|
37515
|
+
const byteStringHeaders = /* @__PURE__ */ Object.create(null);
|
|
37516
|
+
utils_default.forEach(headers.toJSON(), (value, header) => {
|
|
37517
|
+
byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
|
|
37518
|
+
});
|
|
37519
|
+
return byteStringHeaders;
|
|
37520
|
+
}
|
|
37521
|
+
|
|
37522
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/AxiosHeaders.js
|
|
37523
|
+
var $internals = Symbol("internals");
|
|
37524
|
+
function normalizeHeader(header) {
|
|
37525
|
+
return header && String(header).trim().toLowerCase();
|
|
37526
|
+
}
|
|
37527
|
+
function normalizeValue(value) {
|
|
37528
|
+
if (value === false || value == null) {
|
|
37529
|
+
return value;
|
|
37530
|
+
}
|
|
37531
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
37532
|
+
}
|
|
37533
|
+
function parseTokens(str) {
|
|
37534
|
+
const tokens = /* @__PURE__ */ Object.create(null);
|
|
37535
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
37536
|
+
let match;
|
|
37537
|
+
while (match = tokensRE.exec(str)) {
|
|
37538
|
+
tokens[match[1]] = match[2];
|
|
37539
|
+
}
|
|
37540
|
+
return tokens;
|
|
37541
|
+
}
|
|
37542
|
+
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
37543
|
+
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
37544
|
+
if (utils_default.isFunction(filter2)) {
|
|
37545
|
+
return filter2.call(this, value, header);
|
|
37546
|
+
}
|
|
37547
|
+
if (isHeaderNameFilter) {
|
|
37548
|
+
value = header;
|
|
37549
|
+
}
|
|
37550
|
+
if (!utils_default.isString(value))
|
|
37551
|
+
return;
|
|
37552
|
+
if (utils_default.isString(filter2)) {
|
|
37553
|
+
return value.indexOf(filter2) !== -1;
|
|
37554
|
+
}
|
|
37555
|
+
if (utils_default.isRegExp(filter2)) {
|
|
37556
|
+
return filter2.test(value);
|
|
37557
|
+
}
|
|
37558
|
+
}
|
|
37559
|
+
function formatHeader(header) {
|
|
37560
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
|
|
37561
|
+
return char.toUpperCase() + str;
|
|
37562
|
+
});
|
|
37563
|
+
}
|
|
37564
|
+
function buildAccessors(obj, header) {
|
|
37565
|
+
const accessorName = utils_default.toCamelCase(" " + header);
|
|
37566
|
+
["get", "set", "has"].forEach((methodName) => {
|
|
37567
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
37568
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
37569
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
37570
|
+
__proto__: null,
|
|
37571
|
+
value: function(arg1, arg2, arg3) {
|
|
37572
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
37573
|
+
},
|
|
37574
|
+
configurable: true
|
|
37575
|
+
});
|
|
37576
|
+
});
|
|
37577
|
+
}
|
|
37578
|
+
var AxiosHeaders = class {
|
|
37579
|
+
constructor(headers) {
|
|
37580
|
+
headers && this.set(headers);
|
|
37581
|
+
}
|
|
37582
|
+
set(header, valueOrRewrite, rewrite) {
|
|
37583
|
+
const self2 = this;
|
|
37584
|
+
function setHeader(_value, _header, _rewrite) {
|
|
37585
|
+
const lHeader = normalizeHeader(_header);
|
|
37586
|
+
if (!lHeader) {
|
|
37587
|
+
throw new Error("header name must be a non-empty string");
|
|
37588
|
+
}
|
|
37589
|
+
const key = utils_default.findKey(self2, lHeader);
|
|
37590
|
+
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
37591
|
+
self2[key || _header] = normalizeValue(_value);
|
|
37592
|
+
}
|
|
37593
|
+
}
|
|
37594
|
+
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
37595
|
+
if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
|
|
37596
|
+
setHeaders(header, valueOrRewrite);
|
|
37597
|
+
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
37598
|
+
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
37599
|
+
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
37600
|
+
let obj = {}, dest, key;
|
|
37601
|
+
for (const entry of header) {
|
|
37602
|
+
if (!utils_default.isArray(entry)) {
|
|
37603
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
37604
|
+
}
|
|
37605
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
37606
|
+
}
|
|
37607
|
+
setHeaders(obj, valueOrRewrite);
|
|
37608
|
+
} else {
|
|
37609
|
+
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
37610
|
+
}
|
|
37611
|
+
return this;
|
|
37612
|
+
}
|
|
37613
|
+
get(header, parser) {
|
|
37614
|
+
header = normalizeHeader(header);
|
|
37615
|
+
if (header) {
|
|
37616
|
+
const key = utils_default.findKey(this, header);
|
|
37617
|
+
if (key) {
|
|
37618
|
+
const value = this[key];
|
|
37619
|
+
if (!parser) {
|
|
37620
|
+
return value;
|
|
37621
|
+
}
|
|
37622
|
+
if (parser === true) {
|
|
37623
|
+
return parseTokens(value);
|
|
37624
|
+
}
|
|
37625
|
+
if (utils_default.isFunction(parser)) {
|
|
37626
|
+
return parser.call(this, value, key);
|
|
37627
|
+
}
|
|
37628
|
+
if (utils_default.isRegExp(parser)) {
|
|
37629
|
+
return parser.exec(value);
|
|
37630
|
+
}
|
|
37631
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
37632
|
+
}
|
|
37633
|
+
}
|
|
37634
|
+
}
|
|
37635
|
+
has(header, matcher) {
|
|
37636
|
+
header = normalizeHeader(header);
|
|
37637
|
+
if (header) {
|
|
37638
|
+
const key = utils_default.findKey(this, header);
|
|
37639
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
37640
|
+
}
|
|
37641
|
+
return false;
|
|
37642
|
+
}
|
|
37643
|
+
delete(header, matcher) {
|
|
37644
|
+
const self2 = this;
|
|
37645
|
+
let deleted = false;
|
|
37646
|
+
function deleteHeader(_header) {
|
|
37647
|
+
_header = normalizeHeader(_header);
|
|
37648
|
+
if (_header) {
|
|
37649
|
+
const key = utils_default.findKey(self2, _header);
|
|
37650
|
+
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
37651
|
+
delete self2[key];
|
|
37652
|
+
deleted = true;
|
|
37653
|
+
}
|
|
37654
|
+
}
|
|
37655
|
+
}
|
|
37656
|
+
if (utils_default.isArray(header)) {
|
|
37657
|
+
header.forEach(deleteHeader);
|
|
37658
|
+
} else {
|
|
37659
|
+
deleteHeader(header);
|
|
37660
|
+
}
|
|
37661
|
+
return deleted;
|
|
37662
|
+
}
|
|
37663
|
+
clear(matcher) {
|
|
37664
|
+
const keys = Object.keys(this);
|
|
37665
|
+
let i = keys.length;
|
|
37666
|
+
let deleted = false;
|
|
37667
|
+
while (i--) {
|
|
37668
|
+
const key = keys[i];
|
|
37669
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
37670
|
+
delete this[key];
|
|
37671
|
+
deleted = true;
|
|
37672
|
+
}
|
|
37673
|
+
}
|
|
37674
|
+
return deleted;
|
|
37675
|
+
}
|
|
37676
|
+
normalize(format) {
|
|
37677
|
+
const self2 = this;
|
|
37678
|
+
const headers = {};
|
|
37679
|
+
utils_default.forEach(this, (value, header) => {
|
|
37680
|
+
const key = utils_default.findKey(headers, header);
|
|
37681
|
+
if (key) {
|
|
37682
|
+
self2[key] = normalizeValue(value);
|
|
37683
|
+
delete self2[header];
|
|
37684
|
+
return;
|
|
37685
|
+
}
|
|
37686
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
37687
|
+
if (normalized !== header) {
|
|
37688
|
+
delete self2[header];
|
|
37689
|
+
}
|
|
37690
|
+
self2[normalized] = normalizeValue(value);
|
|
37691
|
+
headers[normalized] = true;
|
|
37692
|
+
});
|
|
37693
|
+
return this;
|
|
37694
|
+
}
|
|
37695
|
+
concat(...targets) {
|
|
37696
|
+
return this.constructor.concat(this, ...targets);
|
|
37697
|
+
}
|
|
37698
|
+
toJSON(asStrings) {
|
|
37699
|
+
const obj = /* @__PURE__ */ Object.create(null);
|
|
37700
|
+
utils_default.forEach(this, (value, header) => {
|
|
37701
|
+
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
37702
|
+
});
|
|
37703
|
+
return obj;
|
|
37704
|
+
}
|
|
37705
|
+
[Symbol.iterator]() {
|
|
37706
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
37707
|
+
}
|
|
37708
|
+
toString() {
|
|
37709
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
37710
|
+
}
|
|
37711
|
+
getSetCookie() {
|
|
37712
|
+
return this.get("set-cookie") || [];
|
|
37713
|
+
}
|
|
37714
|
+
get [Symbol.toStringTag]() {
|
|
37715
|
+
return "AxiosHeaders";
|
|
37716
|
+
}
|
|
37717
|
+
static from(thing) {
|
|
37718
|
+
return thing instanceof this ? thing : new this(thing);
|
|
37719
|
+
}
|
|
37720
|
+
static concat(first, ...targets) {
|
|
37721
|
+
const computed = new this(first);
|
|
37722
|
+
targets.forEach((target) => computed.set(target));
|
|
37723
|
+
return computed;
|
|
37724
|
+
}
|
|
37725
|
+
static accessor(header) {
|
|
37726
|
+
const internals = this[$internals] = this[$internals] = {
|
|
37727
|
+
accessors: {}
|
|
37728
|
+
};
|
|
37729
|
+
const accessors = internals.accessors;
|
|
37730
|
+
const prototype2 = this.prototype;
|
|
37731
|
+
function defineAccessor(_header) {
|
|
37732
|
+
const lHeader = normalizeHeader(_header);
|
|
37733
|
+
if (!accessors[lHeader]) {
|
|
37734
|
+
buildAccessors(prototype2, _header);
|
|
37735
|
+
accessors[lHeader] = true;
|
|
37736
|
+
}
|
|
37737
|
+
}
|
|
37738
|
+
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
37739
|
+
return this;
|
|
37740
|
+
}
|
|
37741
|
+
};
|
|
37742
|
+
AxiosHeaders.accessor([
|
|
37743
|
+
"Content-Type",
|
|
37744
|
+
"Content-Length",
|
|
37745
|
+
"Accept",
|
|
37746
|
+
"Accept-Encoding",
|
|
37747
|
+
"User-Agent",
|
|
37748
|
+
"Authorization"
|
|
37749
|
+
]);
|
|
37750
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
37751
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
37752
|
+
return {
|
|
37753
|
+
get: () => value,
|
|
37754
|
+
set(headerValue) {
|
|
37755
|
+
this[mapped] = headerValue;
|
|
37756
|
+
}
|
|
37757
|
+
};
|
|
37758
|
+
});
|
|
37759
|
+
utils_default.freezeMethods(AxiosHeaders);
|
|
37760
|
+
var AxiosHeaders_default = AxiosHeaders;
|
|
37761
|
+
|
|
37762
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/AxiosError.js
|
|
37763
|
+
var REDACTED = "[REDACTED ****]";
|
|
37764
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
37765
|
+
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
37766
|
+
return true;
|
|
37767
|
+
}
|
|
37768
|
+
let prototype2 = Object.getPrototypeOf(source);
|
|
37769
|
+
while (prototype2 && prototype2 !== Object.prototype) {
|
|
37770
|
+
if (utils_default.hasOwnProp(prototype2, "toJSON")) {
|
|
37771
|
+
return true;
|
|
37772
|
+
}
|
|
37773
|
+
prototype2 = Object.getPrototypeOf(prototype2);
|
|
37774
|
+
}
|
|
37775
|
+
return false;
|
|
37776
|
+
}
|
|
37777
|
+
function redactConfig(config, redactKeys) {
|
|
37778
|
+
const lowerKeys = new Set(redactKeys.map((k2) => String(k2).toLowerCase()));
|
|
37779
|
+
const seen = [];
|
|
37780
|
+
const visit = (source) => {
|
|
37781
|
+
if (source === null || typeof source !== "object")
|
|
37782
|
+
return source;
|
|
37783
|
+
if (utils_default.isBuffer(source))
|
|
37784
|
+
return source;
|
|
37785
|
+
if (seen.indexOf(source) !== -1)
|
|
37786
|
+
return void 0;
|
|
37787
|
+
if (source instanceof AxiosHeaders_default) {
|
|
37788
|
+
source = source.toJSON();
|
|
37789
|
+
}
|
|
37790
|
+
seen.push(source);
|
|
37791
|
+
let result;
|
|
37792
|
+
if (utils_default.isArray(source)) {
|
|
37793
|
+
result = [];
|
|
37794
|
+
source.forEach((v2, i) => {
|
|
37795
|
+
const reducedValue = visit(v2);
|
|
37796
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
37797
|
+
result[i] = reducedValue;
|
|
37798
|
+
}
|
|
37799
|
+
});
|
|
37800
|
+
} else {
|
|
37801
|
+
if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
37802
|
+
seen.pop();
|
|
37803
|
+
return source;
|
|
37804
|
+
}
|
|
37805
|
+
result = /* @__PURE__ */ Object.create(null);
|
|
37806
|
+
for (const [key, value] of Object.entries(source)) {
|
|
37807
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
|
|
37808
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
37809
|
+
result[key] = reducedValue;
|
|
37810
|
+
}
|
|
37811
|
+
}
|
|
37812
|
+
}
|
|
37813
|
+
seen.pop();
|
|
37814
|
+
return result;
|
|
37815
|
+
};
|
|
37816
|
+
return visit(config);
|
|
37817
|
+
}
|
|
36850
37818
|
var AxiosError = class _AxiosError extends Error {
|
|
36851
37819
|
static from(error, code, config, request, response, customProps) {
|
|
36852
37820
|
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
@@ -36872,6 +37840,9 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
36872
37840
|
constructor(message, code, config, request, response) {
|
|
36873
37841
|
super(message);
|
|
36874
37842
|
Object.defineProperty(this, "message", {
|
|
37843
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
37844
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
37845
|
+
__proto__: null,
|
|
36875
37846
|
value: message,
|
|
36876
37847
|
enumerable: true,
|
|
36877
37848
|
writable: true,
|
|
@@ -36888,6 +37859,9 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
36888
37859
|
}
|
|
36889
37860
|
}
|
|
36890
37861
|
toJSON() {
|
|
37862
|
+
const config = this.config;
|
|
37863
|
+
const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
|
|
37864
|
+
const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
|
|
36891
37865
|
return {
|
|
36892
37866
|
// Standard
|
|
36893
37867
|
message: this.message,
|
|
@@ -36901,7 +37875,7 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
36901
37875
|
columnNumber: this.columnNumber,
|
|
36902
37876
|
stack: this.stack,
|
|
36903
37877
|
// Axios
|
|
36904
|
-
config:
|
|
37878
|
+
config: serializedConfig,
|
|
36905
37879
|
code: this.code,
|
|
36906
37880
|
status: this.status
|
|
36907
37881
|
};
|
|
@@ -36911,6 +37885,7 @@ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
|
36911
37885
|
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
36912
37886
|
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
36913
37887
|
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
37888
|
+
AxiosError.ECONNREFUSED = "ECONNREFUSED";
|
|
36914
37889
|
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
36915
37890
|
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
36916
37891
|
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
@@ -36919,13 +37894,14 @@ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
|
36919
37894
|
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
36920
37895
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
36921
37896
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
37897
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
36922
37898
|
var AxiosError_default = AxiosError;
|
|
36923
37899
|
|
|
36924
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
37900
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
36925
37901
|
var import_form_data = __toESM(require_form_data());
|
|
36926
37902
|
var FormData_default = import_form_data.default;
|
|
36927
37903
|
|
|
36928
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
37904
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/toFormData.js
|
|
36929
37905
|
function isVisitable(thing) {
|
|
36930
37906
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
36931
37907
|
}
|
|
@@ -36968,6 +37944,7 @@ function toFormData(obj, formData, options) {
|
|
|
36968
37944
|
const dots = options.dots;
|
|
36969
37945
|
const indexes = options.indexes;
|
|
36970
37946
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
37947
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
36971
37948
|
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
36972
37949
|
if (!utils_default.isFunction(visitor)) {
|
|
36973
37950
|
throw new TypeError("visitor must be a function");
|
|
@@ -37023,9 +38000,15 @@ function toFormData(obj, formData, options) {
|
|
|
37023
38000
|
convertValue,
|
|
37024
38001
|
isVisitable
|
|
37025
38002
|
});
|
|
37026
|
-
function build(value, path12) {
|
|
38003
|
+
function build(value, path12, depth = 0) {
|
|
37027
38004
|
if (utils_default.isUndefined(value))
|
|
37028
38005
|
return;
|
|
38006
|
+
if (depth > maxDepth) {
|
|
38007
|
+
throw new AxiosError_default(
|
|
38008
|
+
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
38009
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
38010
|
+
);
|
|
38011
|
+
}
|
|
37029
38012
|
if (stack.indexOf(value) !== -1) {
|
|
37030
38013
|
throw Error("Circular reference detected in " + path12.join("."));
|
|
37031
38014
|
}
|
|
@@ -37033,7 +38016,7 @@ function toFormData(obj, formData, options) {
|
|
|
37033
38016
|
utils_default.forEach(value, function each(el, key) {
|
|
37034
38017
|
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path12, exposedHelpers);
|
|
37035
38018
|
if (result === true) {
|
|
37036
|
-
build(el, path12 ? path12.concat(key) : [key]);
|
|
38019
|
+
build(el, path12 ? path12.concat(key) : [key], depth + 1);
|
|
37037
38020
|
}
|
|
37038
38021
|
});
|
|
37039
38022
|
stack.pop();
|
|
@@ -37046,7 +38029,7 @@ function toFormData(obj, formData, options) {
|
|
|
37046
38029
|
}
|
|
37047
38030
|
var toFormData_default = toFormData;
|
|
37048
38031
|
|
|
37049
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38032
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
37050
38033
|
function encode(str) {
|
|
37051
38034
|
const charMap = {
|
|
37052
38035
|
"!": "%21",
|
|
@@ -37054,10 +38037,9 @@ function encode(str) {
|
|
|
37054
38037
|
"(": "%28",
|
|
37055
38038
|
")": "%29",
|
|
37056
38039
|
"~": "%7E",
|
|
37057
|
-
"%20": "+"
|
|
37058
|
-
"%00": "\0"
|
|
38040
|
+
"%20": "+"
|
|
37059
38041
|
};
|
|
37060
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20
|
|
38042
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
37061
38043
|
return charMap[match];
|
|
37062
38044
|
});
|
|
37063
38045
|
}
|
|
@@ -37079,7 +38061,7 @@ prototype.toString = function toString2(encoder) {
|
|
|
37079
38061
|
};
|
|
37080
38062
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
37081
38063
|
|
|
37082
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38064
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/buildURL.js
|
|
37083
38065
|
function encode2(val) {
|
|
37084
38066
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
37085
38067
|
}
|
|
@@ -37108,7 +38090,7 @@ function buildURL(url2, params, options) {
|
|
|
37108
38090
|
return url2;
|
|
37109
38091
|
}
|
|
37110
38092
|
|
|
37111
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38093
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/InterceptorManager.js
|
|
37112
38094
|
var InterceptorManager = class {
|
|
37113
38095
|
constructor() {
|
|
37114
38096
|
this.handlers = [];
|
|
@@ -37173,7 +38155,7 @@ var InterceptorManager = class {
|
|
|
37173
38155
|
};
|
|
37174
38156
|
var InterceptorManager_default = InterceptorManager;
|
|
37175
38157
|
|
|
37176
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38158
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/defaults/transitional.js
|
|
37177
38159
|
var transitional_default = {
|
|
37178
38160
|
silentJSONParsing: true,
|
|
37179
38161
|
forcedJSONParsing: true,
|
|
@@ -37181,14 +38163,14 @@ var transitional_default = {
|
|
|
37181
38163
|
legacyInterceptorReqResOrdering: true
|
|
37182
38164
|
};
|
|
37183
38165
|
|
|
37184
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38166
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/index.js
|
|
37185
38167
|
var import_crypto = __toESM(require("crypto"));
|
|
37186
38168
|
|
|
37187
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38169
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
37188
38170
|
var import_url = __toESM(require("url"));
|
|
37189
38171
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
37190
38172
|
|
|
37191
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38173
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/index.js
|
|
37192
38174
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
37193
38175
|
var DIGIT = "0123456789";
|
|
37194
38176
|
var ALPHABET = {
|
|
@@ -37218,7 +38200,7 @@ var node_default = {
|
|
|
37218
38200
|
protocols: ["http", "https", "file", "data"]
|
|
37219
38201
|
};
|
|
37220
38202
|
|
|
37221
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38203
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/common/utils.js
|
|
37222
38204
|
var utils_exports = {};
|
|
37223
38205
|
__export(utils_exports, {
|
|
37224
38206
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -37236,10 +38218,10 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
37236
38218
|
})();
|
|
37237
38219
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
37238
38220
|
|
|
37239
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38221
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/index.js
|
|
37240
38222
|
var platform_default = __spreadValues(__spreadValues({}, utils_exports), node_default);
|
|
37241
38223
|
|
|
37242
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38224
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
37243
38225
|
function toURLEncodedForm(data, options) {
|
|
37244
38226
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), __spreadValues({
|
|
37245
38227
|
visitor: function(value, key, path12, helpers) {
|
|
@@ -37252,7 +38234,7 @@ function toURLEncodedForm(data, options) {
|
|
|
37252
38234
|
}, options));
|
|
37253
38235
|
}
|
|
37254
38236
|
|
|
37255
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38237
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
37256
38238
|
function parsePropPath(name) {
|
|
37257
38239
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
37258
38240
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -37280,13 +38262,13 @@ function formDataToJSON(formData) {
|
|
|
37280
38262
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
37281
38263
|
if (isLast) {
|
|
37282
38264
|
if (utils_default.hasOwnProp(target, name)) {
|
|
37283
|
-
target[name] = [target[name], value];
|
|
38265
|
+
target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
37284
38266
|
} else {
|
|
37285
38267
|
target[name] = value;
|
|
37286
38268
|
}
|
|
37287
38269
|
return !isNumericKey;
|
|
37288
38270
|
}
|
|
37289
|
-
if (!target
|
|
38271
|
+
if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
|
|
37290
38272
|
target[name] = [];
|
|
37291
38273
|
}
|
|
37292
38274
|
const result = buildPath(path12, value, target[name], index);
|
|
@@ -37306,7 +38288,8 @@ function formDataToJSON(formData) {
|
|
|
37306
38288
|
}
|
|
37307
38289
|
var formDataToJSON_default = formDataToJSON;
|
|
37308
38290
|
|
|
37309
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38291
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/defaults/index.js
|
|
38292
|
+
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
37310
38293
|
function stringifySafely(rawValue, parser, encoder) {
|
|
37311
38294
|
if (utils_default.isString(rawValue)) {
|
|
37312
38295
|
try {
|
|
@@ -37347,15 +38330,17 @@ var defaults = {
|
|
|
37347
38330
|
}
|
|
37348
38331
|
let isFileList2;
|
|
37349
38332
|
if (isObjectPayload) {
|
|
38333
|
+
const formSerializer = own(this, "formSerializer");
|
|
37350
38334
|
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
37351
|
-
return toURLEncodedForm(data,
|
|
38335
|
+
return toURLEncodedForm(data, formSerializer).toString();
|
|
37352
38336
|
}
|
|
37353
38337
|
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
37354
|
-
const
|
|
38338
|
+
const env = own(this, "env");
|
|
38339
|
+
const _FormData = env && env.FormData;
|
|
37355
38340
|
return toFormData_default(
|
|
37356
38341
|
isFileList2 ? { "files[]": data } : data,
|
|
37357
38342
|
_FormData && new _FormData(),
|
|
37358
|
-
|
|
38343
|
+
formSerializer
|
|
37359
38344
|
);
|
|
37360
38345
|
}
|
|
37361
38346
|
}
|
|
@@ -37368,21 +38353,22 @@ var defaults = {
|
|
|
37368
38353
|
],
|
|
37369
38354
|
transformResponse: [
|
|
37370
38355
|
function transformResponse(data) {
|
|
37371
|
-
const transitional2 = this
|
|
38356
|
+
const transitional2 = own(this, "transitional") || defaults.transitional;
|
|
37372
38357
|
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
37373
|
-
const
|
|
38358
|
+
const responseType = own(this, "responseType");
|
|
38359
|
+
const JSONRequested = responseType === "json";
|
|
37374
38360
|
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
37375
38361
|
return data;
|
|
37376
38362
|
}
|
|
37377
|
-
if (data && utils_default.isString(data) && (forcedJSONParsing && !
|
|
38363
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
37378
38364
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
37379
38365
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
37380
38366
|
try {
|
|
37381
|
-
return JSON.parse(data, this
|
|
38367
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
37382
38368
|
} catch (e) {
|
|
37383
38369
|
if (strictJSONParsing) {
|
|
37384
38370
|
if (e.name === "SyntaxError") {
|
|
37385
|
-
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this
|
|
38371
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
37386
38372
|
}
|
|
37387
38373
|
throw e;
|
|
37388
38374
|
}
|
|
@@ -37414,319 +38400,12 @@ var defaults = {
|
|
|
37414
38400
|
}
|
|
37415
38401
|
}
|
|
37416
38402
|
};
|
|
37417
|
-
utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
38403
|
+
utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
|
|
37418
38404
|
defaults.headers[method] = {};
|
|
37419
38405
|
});
|
|
37420
38406
|
var defaults_default = defaults;
|
|
37421
38407
|
|
|
37422
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
37423
|
-
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
37424
|
-
"age",
|
|
37425
|
-
"authorization",
|
|
37426
|
-
"content-length",
|
|
37427
|
-
"content-type",
|
|
37428
|
-
"etag",
|
|
37429
|
-
"expires",
|
|
37430
|
-
"from",
|
|
37431
|
-
"host",
|
|
37432
|
-
"if-modified-since",
|
|
37433
|
-
"if-unmodified-since",
|
|
37434
|
-
"last-modified",
|
|
37435
|
-
"location",
|
|
37436
|
-
"max-forwards",
|
|
37437
|
-
"proxy-authorization",
|
|
37438
|
-
"referer",
|
|
37439
|
-
"retry-after",
|
|
37440
|
-
"user-agent"
|
|
37441
|
-
]);
|
|
37442
|
-
var parseHeaders_default = (rawHeaders) => {
|
|
37443
|
-
const parsed = {};
|
|
37444
|
-
let key;
|
|
37445
|
-
let val;
|
|
37446
|
-
let i;
|
|
37447
|
-
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
37448
|
-
i = line.indexOf(":");
|
|
37449
|
-
key = line.substring(0, i).trim().toLowerCase();
|
|
37450
|
-
val = line.substring(i + 1).trim();
|
|
37451
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
37452
|
-
return;
|
|
37453
|
-
}
|
|
37454
|
-
if (key === "set-cookie") {
|
|
37455
|
-
if (parsed[key]) {
|
|
37456
|
-
parsed[key].push(val);
|
|
37457
|
-
} else {
|
|
37458
|
-
parsed[key] = [val];
|
|
37459
|
-
}
|
|
37460
|
-
} else {
|
|
37461
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
37462
|
-
}
|
|
37463
|
-
});
|
|
37464
|
-
return parsed;
|
|
37465
|
-
};
|
|
37466
|
-
|
|
37467
|
-
// ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/AxiosHeaders.js
|
|
37468
|
-
var $internals = Symbol("internals");
|
|
37469
|
-
var isValidHeaderValue = (value) => !/[\r\n]/.test(value);
|
|
37470
|
-
function assertValidHeaderValue(value, header) {
|
|
37471
|
-
if (value === false || value == null) {
|
|
37472
|
-
return;
|
|
37473
|
-
}
|
|
37474
|
-
if (utils_default.isArray(value)) {
|
|
37475
|
-
value.forEach((v2) => assertValidHeaderValue(v2, header));
|
|
37476
|
-
return;
|
|
37477
|
-
}
|
|
37478
|
-
if (!isValidHeaderValue(String(value))) {
|
|
37479
|
-
throw new Error(`Invalid character in header content ["${header}"]`);
|
|
37480
|
-
}
|
|
37481
|
-
}
|
|
37482
|
-
function normalizeHeader(header) {
|
|
37483
|
-
return header && String(header).trim().toLowerCase();
|
|
37484
|
-
}
|
|
37485
|
-
function stripTrailingCRLF(str) {
|
|
37486
|
-
let end = str.length;
|
|
37487
|
-
while (end > 0) {
|
|
37488
|
-
const charCode = str.charCodeAt(end - 1);
|
|
37489
|
-
if (charCode !== 10 && charCode !== 13) {
|
|
37490
|
-
break;
|
|
37491
|
-
}
|
|
37492
|
-
end -= 1;
|
|
37493
|
-
}
|
|
37494
|
-
return end === str.length ? str : str.slice(0, end);
|
|
37495
|
-
}
|
|
37496
|
-
function normalizeValue(value) {
|
|
37497
|
-
if (value === false || value == null) {
|
|
37498
|
-
return value;
|
|
37499
|
-
}
|
|
37500
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
37501
|
-
}
|
|
37502
|
-
function parseTokens(str) {
|
|
37503
|
-
const tokens = /* @__PURE__ */ Object.create(null);
|
|
37504
|
-
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
37505
|
-
let match;
|
|
37506
|
-
while (match = tokensRE.exec(str)) {
|
|
37507
|
-
tokens[match[1]] = match[2];
|
|
37508
|
-
}
|
|
37509
|
-
return tokens;
|
|
37510
|
-
}
|
|
37511
|
-
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
37512
|
-
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
37513
|
-
if (utils_default.isFunction(filter2)) {
|
|
37514
|
-
return filter2.call(this, value, header);
|
|
37515
|
-
}
|
|
37516
|
-
if (isHeaderNameFilter) {
|
|
37517
|
-
value = header;
|
|
37518
|
-
}
|
|
37519
|
-
if (!utils_default.isString(value))
|
|
37520
|
-
return;
|
|
37521
|
-
if (utils_default.isString(filter2)) {
|
|
37522
|
-
return value.indexOf(filter2) !== -1;
|
|
37523
|
-
}
|
|
37524
|
-
if (utils_default.isRegExp(filter2)) {
|
|
37525
|
-
return filter2.test(value);
|
|
37526
|
-
}
|
|
37527
|
-
}
|
|
37528
|
-
function formatHeader(header) {
|
|
37529
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
|
|
37530
|
-
return char.toUpperCase() + str;
|
|
37531
|
-
});
|
|
37532
|
-
}
|
|
37533
|
-
function buildAccessors(obj, header) {
|
|
37534
|
-
const accessorName = utils_default.toCamelCase(" " + header);
|
|
37535
|
-
["get", "set", "has"].forEach((methodName) => {
|
|
37536
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
37537
|
-
value: function(arg1, arg2, arg3) {
|
|
37538
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
37539
|
-
},
|
|
37540
|
-
configurable: true
|
|
37541
|
-
});
|
|
37542
|
-
});
|
|
37543
|
-
}
|
|
37544
|
-
var AxiosHeaders = class {
|
|
37545
|
-
constructor(headers) {
|
|
37546
|
-
headers && this.set(headers);
|
|
37547
|
-
}
|
|
37548
|
-
set(header, valueOrRewrite, rewrite) {
|
|
37549
|
-
const self2 = this;
|
|
37550
|
-
function setHeader(_value, _header, _rewrite) {
|
|
37551
|
-
const lHeader = normalizeHeader(_header);
|
|
37552
|
-
if (!lHeader) {
|
|
37553
|
-
throw new Error("header name must be a non-empty string");
|
|
37554
|
-
}
|
|
37555
|
-
const key = utils_default.findKey(self2, lHeader);
|
|
37556
|
-
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
37557
|
-
assertValidHeaderValue(_value, _header);
|
|
37558
|
-
self2[key || _header] = normalizeValue(_value);
|
|
37559
|
-
}
|
|
37560
|
-
}
|
|
37561
|
-
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
37562
|
-
if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
|
|
37563
|
-
setHeaders(header, valueOrRewrite);
|
|
37564
|
-
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
37565
|
-
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
37566
|
-
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
37567
|
-
let obj = {}, dest, key;
|
|
37568
|
-
for (const entry of header) {
|
|
37569
|
-
if (!utils_default.isArray(entry)) {
|
|
37570
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
37571
|
-
}
|
|
37572
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
37573
|
-
}
|
|
37574
|
-
setHeaders(obj, valueOrRewrite);
|
|
37575
|
-
} else {
|
|
37576
|
-
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
37577
|
-
}
|
|
37578
|
-
return this;
|
|
37579
|
-
}
|
|
37580
|
-
get(header, parser) {
|
|
37581
|
-
header = normalizeHeader(header);
|
|
37582
|
-
if (header) {
|
|
37583
|
-
const key = utils_default.findKey(this, header);
|
|
37584
|
-
if (key) {
|
|
37585
|
-
const value = this[key];
|
|
37586
|
-
if (!parser) {
|
|
37587
|
-
return value;
|
|
37588
|
-
}
|
|
37589
|
-
if (parser === true) {
|
|
37590
|
-
return parseTokens(value);
|
|
37591
|
-
}
|
|
37592
|
-
if (utils_default.isFunction(parser)) {
|
|
37593
|
-
return parser.call(this, value, key);
|
|
37594
|
-
}
|
|
37595
|
-
if (utils_default.isRegExp(parser)) {
|
|
37596
|
-
return parser.exec(value);
|
|
37597
|
-
}
|
|
37598
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
37599
|
-
}
|
|
37600
|
-
}
|
|
37601
|
-
}
|
|
37602
|
-
has(header, matcher) {
|
|
37603
|
-
header = normalizeHeader(header);
|
|
37604
|
-
if (header) {
|
|
37605
|
-
const key = utils_default.findKey(this, header);
|
|
37606
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
37607
|
-
}
|
|
37608
|
-
return false;
|
|
37609
|
-
}
|
|
37610
|
-
delete(header, matcher) {
|
|
37611
|
-
const self2 = this;
|
|
37612
|
-
let deleted = false;
|
|
37613
|
-
function deleteHeader(_header) {
|
|
37614
|
-
_header = normalizeHeader(_header);
|
|
37615
|
-
if (_header) {
|
|
37616
|
-
const key = utils_default.findKey(self2, _header);
|
|
37617
|
-
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
37618
|
-
delete self2[key];
|
|
37619
|
-
deleted = true;
|
|
37620
|
-
}
|
|
37621
|
-
}
|
|
37622
|
-
}
|
|
37623
|
-
if (utils_default.isArray(header)) {
|
|
37624
|
-
header.forEach(deleteHeader);
|
|
37625
|
-
} else {
|
|
37626
|
-
deleteHeader(header);
|
|
37627
|
-
}
|
|
37628
|
-
return deleted;
|
|
37629
|
-
}
|
|
37630
|
-
clear(matcher) {
|
|
37631
|
-
const keys = Object.keys(this);
|
|
37632
|
-
let i = keys.length;
|
|
37633
|
-
let deleted = false;
|
|
37634
|
-
while (i--) {
|
|
37635
|
-
const key = keys[i];
|
|
37636
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
37637
|
-
delete this[key];
|
|
37638
|
-
deleted = true;
|
|
37639
|
-
}
|
|
37640
|
-
}
|
|
37641
|
-
return deleted;
|
|
37642
|
-
}
|
|
37643
|
-
normalize(format) {
|
|
37644
|
-
const self2 = this;
|
|
37645
|
-
const headers = {};
|
|
37646
|
-
utils_default.forEach(this, (value, header) => {
|
|
37647
|
-
const key = utils_default.findKey(headers, header);
|
|
37648
|
-
if (key) {
|
|
37649
|
-
self2[key] = normalizeValue(value);
|
|
37650
|
-
delete self2[header];
|
|
37651
|
-
return;
|
|
37652
|
-
}
|
|
37653
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
37654
|
-
if (normalized !== header) {
|
|
37655
|
-
delete self2[header];
|
|
37656
|
-
}
|
|
37657
|
-
self2[normalized] = normalizeValue(value);
|
|
37658
|
-
headers[normalized] = true;
|
|
37659
|
-
});
|
|
37660
|
-
return this;
|
|
37661
|
-
}
|
|
37662
|
-
concat(...targets) {
|
|
37663
|
-
return this.constructor.concat(this, ...targets);
|
|
37664
|
-
}
|
|
37665
|
-
toJSON(asStrings) {
|
|
37666
|
-
const obj = /* @__PURE__ */ Object.create(null);
|
|
37667
|
-
utils_default.forEach(this, (value, header) => {
|
|
37668
|
-
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
37669
|
-
});
|
|
37670
|
-
return obj;
|
|
37671
|
-
}
|
|
37672
|
-
[Symbol.iterator]() {
|
|
37673
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
37674
|
-
}
|
|
37675
|
-
toString() {
|
|
37676
|
-
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
37677
|
-
}
|
|
37678
|
-
getSetCookie() {
|
|
37679
|
-
return this.get("set-cookie") || [];
|
|
37680
|
-
}
|
|
37681
|
-
get [Symbol.toStringTag]() {
|
|
37682
|
-
return "AxiosHeaders";
|
|
37683
|
-
}
|
|
37684
|
-
static from(thing) {
|
|
37685
|
-
return thing instanceof this ? thing : new this(thing);
|
|
37686
|
-
}
|
|
37687
|
-
static concat(first, ...targets) {
|
|
37688
|
-
const computed = new this(first);
|
|
37689
|
-
targets.forEach((target) => computed.set(target));
|
|
37690
|
-
return computed;
|
|
37691
|
-
}
|
|
37692
|
-
static accessor(header) {
|
|
37693
|
-
const internals = this[$internals] = this[$internals] = {
|
|
37694
|
-
accessors: {}
|
|
37695
|
-
};
|
|
37696
|
-
const accessors = internals.accessors;
|
|
37697
|
-
const prototype2 = this.prototype;
|
|
37698
|
-
function defineAccessor(_header) {
|
|
37699
|
-
const lHeader = normalizeHeader(_header);
|
|
37700
|
-
if (!accessors[lHeader]) {
|
|
37701
|
-
buildAccessors(prototype2, _header);
|
|
37702
|
-
accessors[lHeader] = true;
|
|
37703
|
-
}
|
|
37704
|
-
}
|
|
37705
|
-
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
37706
|
-
return this;
|
|
37707
|
-
}
|
|
37708
|
-
};
|
|
37709
|
-
AxiosHeaders.accessor([
|
|
37710
|
-
"Content-Type",
|
|
37711
|
-
"Content-Length",
|
|
37712
|
-
"Accept",
|
|
37713
|
-
"Accept-Encoding",
|
|
37714
|
-
"User-Agent",
|
|
37715
|
-
"Authorization"
|
|
37716
|
-
]);
|
|
37717
|
-
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
37718
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
37719
|
-
return {
|
|
37720
|
-
get: () => value,
|
|
37721
|
-
set(headerValue) {
|
|
37722
|
-
this[mapped] = headerValue;
|
|
37723
|
-
}
|
|
37724
|
-
};
|
|
37725
|
-
});
|
|
37726
|
-
utils_default.freezeMethods(AxiosHeaders);
|
|
37727
|
-
var AxiosHeaders_default = AxiosHeaders;
|
|
37728
|
-
|
|
37729
|
-
// ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/transformData.js
|
|
38408
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/transformData.js
|
|
37730
38409
|
function transformData(fns, response) {
|
|
37731
38410
|
const config = this || defaults_default;
|
|
37732
38411
|
const context = response || config;
|
|
@@ -37739,12 +38418,12 @@ function transformData(fns, response) {
|
|
|
37739
38418
|
return data;
|
|
37740
38419
|
}
|
|
37741
38420
|
|
|
37742
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38421
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/isCancel.js
|
|
37743
38422
|
function isCancel(value) {
|
|
37744
38423
|
return !!(value && value.__CANCEL__);
|
|
37745
38424
|
}
|
|
37746
38425
|
|
|
37747
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38426
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/CanceledError.js
|
|
37748
38427
|
var CanceledError = class extends AxiosError_default {
|
|
37749
38428
|
/**
|
|
37750
38429
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -37763,25 +38442,23 @@ var CanceledError = class extends AxiosError_default {
|
|
|
37763
38442
|
};
|
|
37764
38443
|
var CanceledError_default = CanceledError;
|
|
37765
38444
|
|
|
37766
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38445
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/settle.js
|
|
37767
38446
|
function settle(resolve, reject, response) {
|
|
37768
38447
|
const validateStatus2 = response.config.validateStatus;
|
|
37769
38448
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
37770
38449
|
resolve(response);
|
|
37771
38450
|
} else {
|
|
37772
|
-
reject(
|
|
37773
|
-
|
|
37774
|
-
|
|
37775
|
-
|
|
37776
|
-
|
|
37777
|
-
|
|
37778
|
-
|
|
37779
|
-
)
|
|
37780
|
-
);
|
|
38451
|
+
reject(new AxiosError_default(
|
|
38452
|
+
"Request failed with status code " + response.status,
|
|
38453
|
+
response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
|
|
38454
|
+
response.config,
|
|
38455
|
+
response.request,
|
|
38456
|
+
response
|
|
38457
|
+
));
|
|
37781
38458
|
}
|
|
37782
38459
|
}
|
|
37783
38460
|
|
|
37784
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38461
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
37785
38462
|
function isAbsoluteURL(url2) {
|
|
37786
38463
|
if (typeof url2 !== "string") {
|
|
37787
38464
|
return false;
|
|
@@ -37789,15 +38466,15 @@ function isAbsoluteURL(url2) {
|
|
|
37789
38466
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
37790
38467
|
}
|
|
37791
38468
|
|
|
37792
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38469
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/combineURLs.js
|
|
37793
38470
|
function combineURLs(baseURL, relativeURL) {
|
|
37794
38471
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
37795
38472
|
}
|
|
37796
38473
|
|
|
37797
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38474
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/buildFullPath.js
|
|
37798
38475
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
37799
38476
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
37800
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
38477
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
37801
38478
|
return combineURLs(baseURL, requestedURL);
|
|
37802
38479
|
}
|
|
37803
38480
|
return requestedURL;
|
|
@@ -37870,25 +38547,27 @@ function getEnv(key) {
|
|
|
37870
38547
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
37871
38548
|
}
|
|
37872
38549
|
|
|
37873
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38550
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
38551
|
+
var import_https_proxy_agent = __toESM(require_dist());
|
|
37874
38552
|
var import_http = __toESM(require("http"));
|
|
37875
38553
|
var import_https = __toESM(require("https"));
|
|
37876
38554
|
var import_http2 = __toESM(require("http2"));
|
|
37877
38555
|
var import_util2 = __toESM(require("util"));
|
|
38556
|
+
var import_path5 = require("path");
|
|
37878
38557
|
var import_follow_redirects = __toESM(require_follow_redirects());
|
|
37879
38558
|
var import_zlib = __toESM(require("zlib"));
|
|
37880
38559
|
|
|
37881
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
37882
|
-
var VERSION = "1.
|
|
38560
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/env/data.js
|
|
38561
|
+
var VERSION = "1.16.1";
|
|
37883
38562
|
|
|
37884
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38563
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/parseProtocol.js
|
|
37885
38564
|
function parseProtocol(url2) {
|
|
37886
|
-
const match = /^([-+\w]{1,25})(
|
|
38565
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
37887
38566
|
return match && match[1] || "";
|
|
37888
38567
|
}
|
|
37889
38568
|
|
|
37890
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
37891
|
-
var DATA_URL_PATTERN = /^(
|
|
38569
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/fromDataURI.js
|
|
38570
|
+
var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
|
|
37892
38571
|
function fromDataURI(uri, asBlob, options) {
|
|
37893
38572
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
37894
38573
|
const protocol = parseProtocol(uri);
|
|
@@ -37901,10 +38580,17 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
37901
38580
|
if (!match) {
|
|
37902
38581
|
throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
|
|
37903
38582
|
}
|
|
37904
|
-
const
|
|
37905
|
-
const
|
|
37906
|
-
const
|
|
37907
|
-
const
|
|
38583
|
+
const type = match[1];
|
|
38584
|
+
const params = match[2];
|
|
38585
|
+
const encoding = match[3] ? "base64" : "utf8";
|
|
38586
|
+
const body = match[4];
|
|
38587
|
+
let mime;
|
|
38588
|
+
if (type) {
|
|
38589
|
+
mime = params ? type + params : type;
|
|
38590
|
+
} else if (params) {
|
|
38591
|
+
mime = "text/plain" + params;
|
|
38592
|
+
}
|
|
38593
|
+
const buffer = Buffer.from(decodeURIComponent(body), encoding);
|
|
37908
38594
|
if (asBlob) {
|
|
37909
38595
|
if (!_Blob) {
|
|
37910
38596
|
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
@@ -37916,10 +38602,10 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
37916
38602
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
37917
38603
|
}
|
|
37918
38604
|
|
|
37919
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38605
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
37920
38606
|
var import_stream4 = __toESM(require("stream"));
|
|
37921
38607
|
|
|
37922
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38608
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
37923
38609
|
var import_stream = __toESM(require("stream"));
|
|
37924
38610
|
var kInternals = Symbol("internals");
|
|
37925
38611
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
@@ -38042,14 +38728,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
38042
38728
|
};
|
|
38043
38729
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
38044
38730
|
|
|
38045
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38731
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
38046
38732
|
var import_events = require("events");
|
|
38047
38733
|
|
|
38048
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38734
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
38049
38735
|
var import_util = __toESM(require("util"));
|
|
38050
38736
|
var import_stream2 = require("stream");
|
|
38051
38737
|
|
|
38052
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38738
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/readBlob.js
|
|
38053
38739
|
var { asyncIterator } = Symbol;
|
|
38054
38740
|
var readBlob = function(blob) {
|
|
38055
38741
|
return __asyncGenerator(this, null, function* () {
|
|
@@ -38066,7 +38752,7 @@ var readBlob = function(blob) {
|
|
|
38066
38752
|
};
|
|
38067
38753
|
var readBlob_default = readBlob;
|
|
38068
38754
|
|
|
38069
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38755
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
38070
38756
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
38071
38757
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new import_util.default.TextEncoder();
|
|
38072
38758
|
var CRLF = "\r\n";
|
|
@@ -38080,7 +38766,8 @@ var FormDataPart = class {
|
|
|
38080
38766
|
if (isStringValue) {
|
|
38081
38767
|
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
38082
38768
|
} else {
|
|
38083
|
-
|
|
38769
|
+
const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
38770
|
+
headers += `Content-Type: ${safeType}${CRLF}`;
|
|
38084
38771
|
}
|
|
38085
38772
|
this.headers = textEncoder.encode(headers + CRLF);
|
|
38086
38773
|
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
@@ -38121,7 +38808,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
38121
38808
|
throw TypeError("FormData instance required");
|
|
38122
38809
|
}
|
|
38123
38810
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
38124
|
-
throw Error("boundary must be
|
|
38811
|
+
throw Error("boundary must be 1-70 characters long");
|
|
38125
38812
|
}
|
|
38126
38813
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
38127
38814
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -38154,7 +38841,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
38154
38841
|
};
|
|
38155
38842
|
var formDataToStream_default = formDataToStream;
|
|
38156
38843
|
|
|
38157
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38844
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
38158
38845
|
var import_stream3 = __toESM(require("stream"));
|
|
38159
38846
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
38160
38847
|
__transform(chunk, encoding, callback) {
|
|
@@ -38176,7 +38863,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
|
38176
38863
|
};
|
|
38177
38864
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
38178
38865
|
|
|
38179
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38866
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/callbackify.js
|
|
38180
38867
|
var callbackify = (fn2, reducer) => {
|
|
38181
38868
|
return utils_default.isAsyncFn(fn2) ? function(...args) {
|
|
38182
38869
|
const cb = args.pop();
|
|
@@ -38191,7 +38878,46 @@ var callbackify = (fn2, reducer) => {
|
|
|
38191
38878
|
};
|
|
38192
38879
|
var callbackify_default = callbackify;
|
|
38193
38880
|
|
|
38194
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
38881
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
38882
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
38883
|
+
var isIPv4Loopback = (host) => {
|
|
38884
|
+
const parts = host.split(".");
|
|
38885
|
+
if (parts.length !== 4)
|
|
38886
|
+
return false;
|
|
38887
|
+
if (parts[0] !== "127")
|
|
38888
|
+
return false;
|
|
38889
|
+
return parts.every((p2) => /^\d+$/.test(p2) && Number(p2) >= 0 && Number(p2) <= 255);
|
|
38890
|
+
};
|
|
38891
|
+
var isIPv6Loopback = (host) => {
|
|
38892
|
+
if (host === "::1")
|
|
38893
|
+
return true;
|
|
38894
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
38895
|
+
if (v4MappedDotted)
|
|
38896
|
+
return isIPv4Loopback(v4MappedDotted[1]);
|
|
38897
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
38898
|
+
if (v4MappedHex) {
|
|
38899
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
38900
|
+
return high >= 32512 && high <= 32767;
|
|
38901
|
+
}
|
|
38902
|
+
const groups = host.split(":");
|
|
38903
|
+
if (groups.length === 8) {
|
|
38904
|
+
for (let i = 0; i < 7; i++) {
|
|
38905
|
+
if (!/^0+$/.test(groups[i]))
|
|
38906
|
+
return false;
|
|
38907
|
+
}
|
|
38908
|
+
return /^0*1$/.test(groups[7]);
|
|
38909
|
+
}
|
|
38910
|
+
return false;
|
|
38911
|
+
};
|
|
38912
|
+
var isLoopback = (host) => {
|
|
38913
|
+
if (!host)
|
|
38914
|
+
return false;
|
|
38915
|
+
if (LOOPBACK_HOSTNAMES.has(host))
|
|
38916
|
+
return true;
|
|
38917
|
+
if (isIPv4Loopback(host))
|
|
38918
|
+
return true;
|
|
38919
|
+
return isIPv6Loopback(host);
|
|
38920
|
+
};
|
|
38195
38921
|
var DEFAULT_PORTS2 = {
|
|
38196
38922
|
http: 80,
|
|
38197
38923
|
https: 443,
|
|
@@ -38221,6 +38947,22 @@ var parseNoProxyEntry = (entry) => {
|
|
|
38221
38947
|
}
|
|
38222
38948
|
return [entryHost, entryPort];
|
|
38223
38949
|
};
|
|
38950
|
+
var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
38951
|
+
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;
|
|
38952
|
+
var unmapIPv4MappedIPv6 = (host) => {
|
|
38953
|
+
if (typeof host !== "string" || host.indexOf(":") === -1)
|
|
38954
|
+
return host;
|
|
38955
|
+
const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
|
|
38956
|
+
if (dotted)
|
|
38957
|
+
return dotted[1];
|
|
38958
|
+
const hex = host.match(IPV4_MAPPED_HEX_RE);
|
|
38959
|
+
if (hex) {
|
|
38960
|
+
const high = parseInt(hex[1], 16);
|
|
38961
|
+
const low = parseInt(hex[2], 16);
|
|
38962
|
+
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
38963
|
+
}
|
|
38964
|
+
return host;
|
|
38965
|
+
};
|
|
38224
38966
|
var normalizeNoProxyHost = (hostname) => {
|
|
38225
38967
|
if (!hostname) {
|
|
38226
38968
|
return hostname;
|
|
@@ -38228,7 +38970,7 @@ var normalizeNoProxyHost = (hostname) => {
|
|
|
38228
38970
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
38229
38971
|
hostname = hostname.slice(1, -1);
|
|
38230
38972
|
}
|
|
38231
|
-
return hostname.replace(/\.+$/, "");
|
|
38973
|
+
return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
|
|
38232
38974
|
};
|
|
38233
38975
|
function shouldBypassProxy(location) {
|
|
38234
38976
|
let parsed;
|
|
@@ -38264,11 +39006,11 @@ function shouldBypassProxy(location) {
|
|
|
38264
39006
|
if (entryHost.charAt(0) === ".") {
|
|
38265
39007
|
return hostname.endsWith(entryHost);
|
|
38266
39008
|
}
|
|
38267
|
-
return hostname === entryHost;
|
|
39009
|
+
return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
|
|
38268
39010
|
});
|
|
38269
39011
|
}
|
|
38270
39012
|
|
|
38271
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
39013
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/speedometer.js
|
|
38272
39014
|
function speedometer(samplesCount, min) {
|
|
38273
39015
|
samplesCount = samplesCount || 10;
|
|
38274
39016
|
const bytes = new Array(samplesCount);
|
|
@@ -38304,7 +39046,7 @@ function speedometer(samplesCount, min) {
|
|
|
38304
39046
|
}
|
|
38305
39047
|
var speedometer_default = speedometer;
|
|
38306
39048
|
|
|
38307
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
39049
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/throttle.js
|
|
38308
39050
|
function throttle(fn2, freq) {
|
|
38309
39051
|
let timestamp = 0;
|
|
38310
39052
|
let threshold = 1e3 / freq;
|
|
@@ -38339,24 +39081,27 @@ function throttle(fn2, freq) {
|
|
|
38339
39081
|
}
|
|
38340
39082
|
var throttle_default = throttle;
|
|
38341
39083
|
|
|
38342
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
39084
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
38343
39085
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
38344
39086
|
let bytesNotified = 0;
|
|
38345
39087
|
const _speedometer = speedometer_default(50, 250);
|
|
38346
39088
|
return throttle_default((e) => {
|
|
38347
|
-
|
|
39089
|
+
if (!e || typeof e.loaded !== "number") {
|
|
39090
|
+
return;
|
|
39091
|
+
}
|
|
39092
|
+
const rawLoaded = e.loaded;
|
|
38348
39093
|
const total = e.lengthComputable ? e.total : void 0;
|
|
38349
|
-
const
|
|
39094
|
+
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
39095
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
38350
39096
|
const rate = _speedometer(progressBytes);
|
|
38351
|
-
|
|
38352
|
-
bytesNotified = loaded;
|
|
39097
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
38353
39098
|
const data = {
|
|
38354
39099
|
loaded,
|
|
38355
39100
|
total,
|
|
38356
39101
|
progress: total ? loaded / total : void 0,
|
|
38357
39102
|
bytes: progressBytes,
|
|
38358
39103
|
rate: rate ? rate : void 0,
|
|
38359
|
-
estimated: rate && total
|
|
39104
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
38360
39105
|
event: e,
|
|
38361
39106
|
lengthComputable: total != null,
|
|
38362
39107
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -38377,7 +39122,7 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
38377
39122
|
};
|
|
38378
39123
|
var asyncDecorator = (fn2) => (...args) => utils_default.asap(() => fn2(...args));
|
|
38379
39124
|
|
|
38380
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
39125
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
38381
39126
|
function estimateDataURLDecodedBytes(url2) {
|
|
38382
39127
|
if (!url2 || typeof url2 !== "string")
|
|
38383
39128
|
return 0;
|
|
@@ -38425,13 +39170,35 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
38425
39170
|
}
|
|
38426
39171
|
}
|
|
38427
39172
|
const groups = Math.floor(effectiveLen / 4);
|
|
38428
|
-
const
|
|
38429
|
-
return
|
|
39173
|
+
const bytes2 = groups * 3 - (pad || 0);
|
|
39174
|
+
return bytes2 > 0 ? bytes2 : 0;
|
|
39175
|
+
}
|
|
39176
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
39177
|
+
return Buffer.byteLength(body, "utf8");
|
|
39178
|
+
}
|
|
39179
|
+
let bytes = 0;
|
|
39180
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
39181
|
+
const c = body.charCodeAt(i);
|
|
39182
|
+
if (c < 128) {
|
|
39183
|
+
bytes += 1;
|
|
39184
|
+
} else if (c < 2048) {
|
|
39185
|
+
bytes += 2;
|
|
39186
|
+
} else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
39187
|
+
const next = body.charCodeAt(i + 1);
|
|
39188
|
+
if (next >= 56320 && next <= 57343) {
|
|
39189
|
+
bytes += 4;
|
|
39190
|
+
i++;
|
|
39191
|
+
} else {
|
|
39192
|
+
bytes += 3;
|
|
39193
|
+
}
|
|
39194
|
+
} else {
|
|
39195
|
+
bytes += 3;
|
|
39196
|
+
}
|
|
38430
39197
|
}
|
|
38431
|
-
return
|
|
39198
|
+
return bytes;
|
|
38432
39199
|
}
|
|
38433
39200
|
|
|
38434
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
39201
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
38435
39202
|
var zlibOptions = {
|
|
38436
39203
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
38437
39204
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -38443,9 +39210,48 @@ var brotliOptions = {
|
|
|
38443
39210
|
var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
|
|
38444
39211
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
38445
39212
|
var isHttps = /https:?/;
|
|
39213
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
39214
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
39215
|
+
if (policy !== "content-only") {
|
|
39216
|
+
headers.set(formHeaders);
|
|
39217
|
+
return;
|
|
39218
|
+
}
|
|
39219
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
39220
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
39221
|
+
headers.set(key, val);
|
|
39222
|
+
}
|
|
39223
|
+
});
|
|
39224
|
+
}
|
|
39225
|
+
var kAxiosSocketListener = Symbol("axios.http.socketListener");
|
|
39226
|
+
var kAxiosCurrentReq = Symbol("axios.http.currentReq");
|
|
39227
|
+
var kAxiosInstalledTunnel = Symbol("axios.http.installedTunnel");
|
|
39228
|
+
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
39229
|
+
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
39230
|
+
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
39231
|
+
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
39232
|
+
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
|
|
39233
|
+
let agent = cache.get(key);
|
|
39234
|
+
if (agent)
|
|
39235
|
+
return agent;
|
|
39236
|
+
const merged = userHttpsAgent && userHttpsAgent.options ? __spreadValues(__spreadValues({}, userHttpsAgent.options), agentOptions) : agentOptions;
|
|
39237
|
+
agent = new import_https_proxy_agent.default(merged);
|
|
39238
|
+
agent[kAxiosInstalledTunnel] = true;
|
|
39239
|
+
cache.set(key, agent);
|
|
39240
|
+
return agent;
|
|
39241
|
+
}
|
|
38446
39242
|
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
38447
39243
|
return protocol + ":";
|
|
38448
39244
|
});
|
|
39245
|
+
var decodeURIComponentSafe = (value) => {
|
|
39246
|
+
if (!utils_default.isString(value)) {
|
|
39247
|
+
return value;
|
|
39248
|
+
}
|
|
39249
|
+
try {
|
|
39250
|
+
return decodeURIComponent(value);
|
|
39251
|
+
} catch (error) {
|
|
39252
|
+
return value;
|
|
39253
|
+
}
|
|
39254
|
+
};
|
|
38449
39255
|
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
38450
39256
|
stream4.on("end", flush).on("error", flush);
|
|
38451
39257
|
return throttled;
|
|
@@ -38523,15 +39329,15 @@ var Http2Sessions = class {
|
|
|
38523
39329
|
}
|
|
38524
39330
|
};
|
|
38525
39331
|
var http2Sessions = new Http2Sessions();
|
|
38526
|
-
function dispatchBeforeRedirect(options, responseDetails) {
|
|
39332
|
+
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
38527
39333
|
if (options.beforeRedirects.proxy) {
|
|
38528
39334
|
options.beforeRedirects.proxy(options);
|
|
38529
39335
|
}
|
|
38530
39336
|
if (options.beforeRedirects.config) {
|
|
38531
|
-
options.beforeRedirects.config(options, responseDetails);
|
|
39337
|
+
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
38532
39338
|
}
|
|
38533
39339
|
}
|
|
38534
|
-
function setProxy(options, configProxy, location) {
|
|
39340
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
|
|
38535
39341
|
let proxy = configProxy;
|
|
38536
39342
|
if (!proxy && proxy !== false) {
|
|
38537
39343
|
const proxyUrl = getProxyForUrl(location);
|
|
@@ -38541,32 +39347,90 @@ function setProxy(options, configProxy, location) {
|
|
|
38541
39347
|
}
|
|
38542
39348
|
}
|
|
38543
39349
|
}
|
|
38544
|
-
if (
|
|
38545
|
-
|
|
38546
|
-
|
|
39350
|
+
if (isRedirect && options.headers) {
|
|
39351
|
+
for (const name of Object.keys(options.headers)) {
|
|
39352
|
+
if (name.toLowerCase() === "proxy-authorization") {
|
|
39353
|
+
delete options.headers[name];
|
|
39354
|
+
}
|
|
38547
39355
|
}
|
|
38548
|
-
|
|
38549
|
-
|
|
39356
|
+
}
|
|
39357
|
+
if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
|
|
39358
|
+
options.agent = void 0;
|
|
39359
|
+
}
|
|
39360
|
+
if (proxy) {
|
|
39361
|
+
const isProxyURL = proxy instanceof URL;
|
|
39362
|
+
const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
39363
|
+
const proxyUsername = readProxyField("username");
|
|
39364
|
+
const proxyPassword = readProxyField("password");
|
|
39365
|
+
let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
|
|
39366
|
+
if (proxyUsername) {
|
|
39367
|
+
proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
|
|
39368
|
+
}
|
|
39369
|
+
if (proxyAuth) {
|
|
39370
|
+
const authIsObject = typeof proxyAuth === "object";
|
|
39371
|
+
const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
|
|
39372
|
+
const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
|
|
39373
|
+
const validProxyAuth = Boolean(authUsername || authPassword);
|
|
38550
39374
|
if (validProxyAuth) {
|
|
38551
|
-
|
|
38552
|
-
} else if (
|
|
39375
|
+
proxyAuth = (authUsername || "") + ":" + (authPassword || "");
|
|
39376
|
+
} else if (authIsObject) {
|
|
38553
39377
|
throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
|
|
38554
39378
|
}
|
|
38555
|
-
const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
38556
|
-
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
38557
39379
|
}
|
|
38558
|
-
|
|
38559
|
-
|
|
38560
|
-
|
|
38561
|
-
|
|
38562
|
-
|
|
38563
|
-
|
|
38564
|
-
|
|
38565
|
-
|
|
39380
|
+
const targetIsHttps = isHttps.test(options.protocol);
|
|
39381
|
+
if (targetIsHttps) {
|
|
39382
|
+
if (!(configHttpsAgent instanceof import_https_proxy_agent.default)) {
|
|
39383
|
+
const proxyHost = readProxyField("hostname") || readProxyField("host");
|
|
39384
|
+
const proxyPort = readProxyField("port");
|
|
39385
|
+
const rawProxyProtocol = readProxyField("protocol");
|
|
39386
|
+
const normalizedProtocol = rawProxyProtocol ? rawProxyProtocol.includes(":") ? rawProxyProtocol : `${rawProxyProtocol}:` : "http:";
|
|
39387
|
+
const proxyHostForURL = proxyHost && proxyHost.includes(":") && !proxyHost.startsWith("[") ? `[${proxyHost}]` : proxyHost;
|
|
39388
|
+
const proxyURL = new URL(
|
|
39389
|
+
`${normalizedProtocol}//${proxyHostForURL}${proxyPort ? ":" + proxyPort : ""}`
|
|
39390
|
+
);
|
|
39391
|
+
const agentOptions = {
|
|
39392
|
+
protocol: proxyURL.protocol,
|
|
39393
|
+
hostname: proxyURL.hostname.replace(/^\[|\]$/g, ""),
|
|
39394
|
+
port: proxyURL.port,
|
|
39395
|
+
auth: proxyAuth && typeof proxyAuth === "string" ? proxyAuth : void 0
|
|
39396
|
+
};
|
|
39397
|
+
if (proxyURL.protocol === "https:") {
|
|
39398
|
+
agentOptions.ALPNProtocols = ["http/1.1"];
|
|
39399
|
+
}
|
|
39400
|
+
const tunnelingAgent = getTunnelingAgent(agentOptions, configHttpsAgent);
|
|
39401
|
+
options.agent = tunnelingAgent;
|
|
39402
|
+
if (options.agents) {
|
|
39403
|
+
options.agents.https = tunnelingAgent;
|
|
39404
|
+
}
|
|
39405
|
+
}
|
|
39406
|
+
} else {
|
|
39407
|
+
if (proxyAuth) {
|
|
39408
|
+
const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
|
|
39409
|
+
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
39410
|
+
}
|
|
39411
|
+
let hasUserHostHeader = false;
|
|
39412
|
+
for (const name of Object.keys(options.headers)) {
|
|
39413
|
+
if (name.toLowerCase() === "host") {
|
|
39414
|
+
hasUserHostHeader = true;
|
|
39415
|
+
break;
|
|
39416
|
+
}
|
|
39417
|
+
}
|
|
39418
|
+
if (!hasUserHostHeader) {
|
|
39419
|
+
options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
|
|
39420
|
+
}
|
|
39421
|
+
const proxyHost = readProxyField("hostname") || readProxyField("host");
|
|
39422
|
+
options.hostname = proxyHost;
|
|
39423
|
+
options.host = proxyHost;
|
|
39424
|
+
options.port = readProxyField("port");
|
|
39425
|
+
options.path = location;
|
|
39426
|
+
const proxyProtocol = readProxyField("protocol");
|
|
39427
|
+
if (proxyProtocol) {
|
|
39428
|
+
options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
|
|
39429
|
+
}
|
|
38566
39430
|
}
|
|
38567
39431
|
}
|
|
38568
39432
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
38569
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
39433
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
|
|
38570
39434
|
};
|
|
38571
39435
|
}
|
|
38572
39436
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
@@ -38631,12 +39495,21 @@ var http2Transport = {
|
|
|
38631
39495
|
var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
38632
39496
|
return wrapAsync(function dispatchHttpRequest(resolve, reject, onDone) {
|
|
38633
39497
|
return __async(this, null, function* () {
|
|
38634
|
-
|
|
38635
|
-
|
|
39498
|
+
const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
39499
|
+
let data = own2("data");
|
|
39500
|
+
let lookup = own2("lookup");
|
|
39501
|
+
let family = own2("family");
|
|
39502
|
+
let httpVersion = own2("httpVersion");
|
|
39503
|
+
if (httpVersion === void 0)
|
|
39504
|
+
httpVersion = 1;
|
|
39505
|
+
let http2Options = own2("http2Options");
|
|
39506
|
+
const responseType = own2("responseType");
|
|
39507
|
+
const responseEncoding = own2("responseEncoding");
|
|
38636
39508
|
const method = config.method.toUpperCase();
|
|
38637
39509
|
let isDone;
|
|
38638
39510
|
let rejected = false;
|
|
38639
39511
|
let req;
|
|
39512
|
+
let connectPhaseTimer;
|
|
38640
39513
|
httpVersion = +httpVersion;
|
|
38641
39514
|
if (Number.isNaN(httpVersion)) {
|
|
38642
39515
|
throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
|
|
@@ -38668,8 +39541,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
38668
39541
|
console.warn("emit error", err);
|
|
38669
39542
|
}
|
|
38670
39543
|
}
|
|
39544
|
+
function clearConnectPhaseTimer() {
|
|
39545
|
+
if (connectPhaseTimer) {
|
|
39546
|
+
clearTimeout(connectPhaseTimer);
|
|
39547
|
+
connectPhaseTimer = null;
|
|
39548
|
+
}
|
|
39549
|
+
}
|
|
39550
|
+
function createTimeoutError() {
|
|
39551
|
+
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
39552
|
+
const transitional2 = config.transitional || transitional_default;
|
|
39553
|
+
if (config.timeoutErrorMessage) {
|
|
39554
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
39555
|
+
}
|
|
39556
|
+
return new AxiosError_default(
|
|
39557
|
+
timeoutErrorMessage,
|
|
39558
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
39559
|
+
config,
|
|
39560
|
+
req
|
|
39561
|
+
);
|
|
39562
|
+
}
|
|
38671
39563
|
abortEmitter.once("abort", reject);
|
|
38672
39564
|
const onFinished = () => {
|
|
39565
|
+
clearConnectPhaseTimer();
|
|
38673
39566
|
if (config.cancelToken) {
|
|
38674
39567
|
config.cancelToken.unsubscribe(abort);
|
|
38675
39568
|
}
|
|
@@ -38686,6 +39579,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
38686
39579
|
}
|
|
38687
39580
|
onDone((response, isRejected) => {
|
|
38688
39581
|
isDone = true;
|
|
39582
|
+
clearConnectPhaseTimer();
|
|
38689
39583
|
if (isRejected) {
|
|
38690
39584
|
rejected = true;
|
|
38691
39585
|
onFinished();
|
|
@@ -38773,8 +39667,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
38773
39667
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
38774
39668
|
}
|
|
38775
39669
|
);
|
|
38776
|
-
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
|
|
38777
|
-
headers
|
|
39670
|
+
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
39671
|
+
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
38778
39672
|
if (!headers.hasContentLength()) {
|
|
38779
39673
|
try {
|
|
38780
39674
|
const knownLength = yield import_util2.default.promisify(data.getLength).call(data);
|
|
@@ -38844,14 +39738,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
38844
39738
|
);
|
|
38845
39739
|
}
|
|
38846
39740
|
let auth = void 0;
|
|
38847
|
-
|
|
38848
|
-
|
|
38849
|
-
const
|
|
39741
|
+
const configAuth = own2("auth");
|
|
39742
|
+
if (configAuth) {
|
|
39743
|
+
const username = configAuth.username || "";
|
|
39744
|
+
const password = configAuth.password || "";
|
|
38850
39745
|
auth = username + ":" + password;
|
|
38851
39746
|
}
|
|
38852
39747
|
if (!auth && parsed.username) {
|
|
38853
|
-
const urlUsername = parsed.username;
|
|
38854
|
-
const urlPassword = parsed.password;
|
|
39748
|
+
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
39749
|
+
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
38855
39750
|
auth = urlUsername + ":" + urlPassword;
|
|
38856
39751
|
}
|
|
38857
39752
|
auth && headers.delete("authorization");
|
|
@@ -38874,20 +39769,41 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
38874
39769
|
"gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
|
|
38875
39770
|
false
|
|
38876
39771
|
);
|
|
38877
|
-
const options = {
|
|
39772
|
+
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
38878
39773
|
path: path12,
|
|
38879
39774
|
method,
|
|
38880
|
-
headers: headers
|
|
39775
|
+
headers: toByteStringHeaderObject(headers),
|
|
38881
39776
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
38882
39777
|
auth,
|
|
38883
39778
|
protocol,
|
|
38884
39779
|
family,
|
|
38885
39780
|
beforeRedirect: dispatchBeforeRedirect,
|
|
38886
|
-
beforeRedirects:
|
|
39781
|
+
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
38887
39782
|
http2Options
|
|
38888
|
-
};
|
|
39783
|
+
});
|
|
38889
39784
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
38890
39785
|
if (config.socketPath) {
|
|
39786
|
+
if (typeof config.socketPath !== "string") {
|
|
39787
|
+
return reject(
|
|
39788
|
+
new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
|
|
39789
|
+
);
|
|
39790
|
+
}
|
|
39791
|
+
if (config.allowedSocketPaths != null) {
|
|
39792
|
+
const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
|
|
39793
|
+
const resolvedSocket = (0, import_path5.resolve)(config.socketPath);
|
|
39794
|
+
const isAllowed = allowed.some(
|
|
39795
|
+
(entry) => typeof entry === "string" && (0, import_path5.resolve)(entry) === resolvedSocket
|
|
39796
|
+
);
|
|
39797
|
+
if (!isAllowed) {
|
|
39798
|
+
return reject(
|
|
39799
|
+
new AxiosError_default(
|
|
39800
|
+
`socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
|
|
39801
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
39802
|
+
config
|
|
39803
|
+
)
|
|
39804
|
+
);
|
|
39805
|
+
}
|
|
39806
|
+
}
|
|
38891
39807
|
options.socketPath = config.socketPath;
|
|
38892
39808
|
} else {
|
|
38893
39809
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
@@ -38895,25 +39811,33 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
38895
39811
|
setProxy(
|
|
38896
39812
|
options,
|
|
38897
39813
|
config.proxy,
|
|
38898
|
-
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
39814
|
+
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
|
|
39815
|
+
false,
|
|
39816
|
+
config.httpsAgent
|
|
38899
39817
|
);
|
|
38900
39818
|
}
|
|
38901
39819
|
let transport;
|
|
39820
|
+
let isNativeTransport = false;
|
|
38902
39821
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
38903
|
-
options.agent
|
|
39822
|
+
if (options.agent == null) {
|
|
39823
|
+
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
39824
|
+
}
|
|
38904
39825
|
if (isHttp2) {
|
|
38905
39826
|
transport = http2Transport;
|
|
38906
39827
|
} else {
|
|
38907
|
-
|
|
38908
|
-
|
|
39828
|
+
const configTransport = own2("transport");
|
|
39829
|
+
if (configTransport) {
|
|
39830
|
+
transport = configTransport;
|
|
38909
39831
|
} else if (config.maxRedirects === 0) {
|
|
38910
39832
|
transport = isHttpsRequest ? import_https.default : import_http.default;
|
|
39833
|
+
isNativeTransport = true;
|
|
38911
39834
|
} else {
|
|
38912
39835
|
if (config.maxRedirects) {
|
|
38913
39836
|
options.maxRedirects = config.maxRedirects;
|
|
38914
39837
|
}
|
|
38915
|
-
|
|
38916
|
-
|
|
39838
|
+
const configBeforeRedirect = own2("beforeRedirect");
|
|
39839
|
+
if (configBeforeRedirect) {
|
|
39840
|
+
options.beforeRedirects.config = configBeforeRedirect;
|
|
38917
39841
|
}
|
|
38918
39842
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
38919
39843
|
}
|
|
@@ -38923,10 +39847,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
38923
39847
|
} else {
|
|
38924
39848
|
options.maxBodyLength = Infinity;
|
|
38925
39849
|
}
|
|
38926
|
-
|
|
38927
|
-
options.insecureHTTPParser = config.insecureHTTPParser;
|
|
38928
|
-
}
|
|
39850
|
+
options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
|
|
38929
39851
|
req = transport.request(options, function handleResponse(res) {
|
|
39852
|
+
clearConnectPhaseTimer();
|
|
38930
39853
|
if (req.destroyed)
|
|
38931
39854
|
return;
|
|
38932
39855
|
const streams = [res];
|
|
@@ -38982,6 +39905,42 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
38982
39905
|
request: lastRequest
|
|
38983
39906
|
};
|
|
38984
39907
|
if (responseType === "stream") {
|
|
39908
|
+
if (config.maxContentLength > -1) {
|
|
39909
|
+
const limit = config.maxContentLength;
|
|
39910
|
+
const source = responseStream;
|
|
39911
|
+
function enforceMaxContentLength() {
|
|
39912
|
+
return __asyncGenerator(this, null, function* () {
|
|
39913
|
+
let totalResponseBytes = 0;
|
|
39914
|
+
try {
|
|
39915
|
+
for (var iter = __forAwait(source), more, temp, error; more = !(temp = yield new __await(iter.next())).done; more = false) {
|
|
39916
|
+
const chunk = temp.value;
|
|
39917
|
+
totalResponseBytes += chunk.length;
|
|
39918
|
+
if (totalResponseBytes > limit) {
|
|
39919
|
+
throw new AxiosError_default(
|
|
39920
|
+
"maxContentLength size of " + limit + " exceeded",
|
|
39921
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
39922
|
+
config,
|
|
39923
|
+
lastRequest
|
|
39924
|
+
);
|
|
39925
|
+
}
|
|
39926
|
+
yield chunk;
|
|
39927
|
+
}
|
|
39928
|
+
} catch (temp) {
|
|
39929
|
+
error = [temp];
|
|
39930
|
+
} finally {
|
|
39931
|
+
try {
|
|
39932
|
+
more && (temp = iter.return) && (yield new __await(temp.call(iter)));
|
|
39933
|
+
} finally {
|
|
39934
|
+
if (error)
|
|
39935
|
+
throw error[0];
|
|
39936
|
+
}
|
|
39937
|
+
}
|
|
39938
|
+
});
|
|
39939
|
+
}
|
|
39940
|
+
responseStream = import_stream4.default.Readable.from(enforceMaxContentLength(), {
|
|
39941
|
+
objectMode: false
|
|
39942
|
+
});
|
|
39943
|
+
}
|
|
38985
39944
|
response.data = responseStream;
|
|
38986
39945
|
settle(resolve, reject, response);
|
|
38987
39946
|
} else {
|
|
@@ -39011,15 +39970,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
39011
39970
|
"stream has been aborted",
|
|
39012
39971
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
39013
39972
|
config,
|
|
39014
|
-
lastRequest
|
|
39973
|
+
lastRequest,
|
|
39974
|
+
response
|
|
39015
39975
|
);
|
|
39016
39976
|
responseStream.destroy(err);
|
|
39017
39977
|
reject(err);
|
|
39018
39978
|
});
|
|
39019
39979
|
responseStream.on("error", function handleStreamError(err) {
|
|
39020
|
-
if (
|
|
39980
|
+
if (rejected)
|
|
39021
39981
|
return;
|
|
39022
|
-
reject(AxiosError_default.from(err, null, config, lastRequest));
|
|
39982
|
+
reject(AxiosError_default.from(err, null, config, lastRequest, response));
|
|
39023
39983
|
});
|
|
39024
39984
|
responseStream.on("end", function handleStreamEnd() {
|
|
39025
39985
|
try {
|
|
@@ -39054,8 +40014,29 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
39054
40014
|
req.on("error", function handleRequestError(err) {
|
|
39055
40015
|
reject(AxiosError_default.from(err, null, config, req));
|
|
39056
40016
|
});
|
|
40017
|
+
const boundSockets = /* @__PURE__ */ new Set();
|
|
39057
40018
|
req.on("socket", function handleRequestSocket(socket) {
|
|
39058
40019
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
40020
|
+
if (!socket[kAxiosSocketListener]) {
|
|
40021
|
+
socket.on("error", function handleSocketError(err) {
|
|
40022
|
+
const current = socket[kAxiosCurrentReq];
|
|
40023
|
+
if (current && !current.destroyed) {
|
|
40024
|
+
current.destroy(err);
|
|
40025
|
+
}
|
|
40026
|
+
});
|
|
40027
|
+
socket[kAxiosSocketListener] = true;
|
|
40028
|
+
}
|
|
40029
|
+
socket[kAxiosCurrentReq] = req;
|
|
40030
|
+
boundSockets.add(socket);
|
|
40031
|
+
});
|
|
40032
|
+
req.once("close", function clearCurrentReq() {
|
|
40033
|
+
clearConnectPhaseTimer();
|
|
40034
|
+
for (const socket of boundSockets) {
|
|
40035
|
+
if (socket[kAxiosCurrentReq] === req) {
|
|
40036
|
+
socket[kAxiosCurrentReq] = null;
|
|
40037
|
+
}
|
|
40038
|
+
}
|
|
40039
|
+
boundSockets.clear();
|
|
39059
40040
|
});
|
|
39060
40041
|
if (config.timeout) {
|
|
39061
40042
|
const timeout = parseInt(config.timeout, 10);
|
|
@@ -39070,23 +40051,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
39070
40051
|
);
|
|
39071
40052
|
return;
|
|
39072
40053
|
}
|
|
39073
|
-
|
|
40054
|
+
const handleTimeout = function handleTimeout2() {
|
|
39074
40055
|
if (isDone)
|
|
39075
40056
|
return;
|
|
39076
|
-
|
|
39077
|
-
|
|
39078
|
-
|
|
39079
|
-
|
|
39080
|
-
|
|
39081
|
-
|
|
39082
|
-
new AxiosError_default(
|
|
39083
|
-
timeoutErrorMessage,
|
|
39084
|
-
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
39085
|
-
config,
|
|
39086
|
-
req
|
|
39087
|
-
)
|
|
39088
|
-
);
|
|
39089
|
-
});
|
|
40057
|
+
abort(createTimeoutError());
|
|
40058
|
+
};
|
|
40059
|
+
if (isNativeTransport && timeout > 0) {
|
|
40060
|
+
connectPhaseTimer = setTimeout(handleTimeout, timeout);
|
|
40061
|
+
}
|
|
40062
|
+
req.setTimeout(timeout, handleTimeout);
|
|
39090
40063
|
} else {
|
|
39091
40064
|
req.setTimeout(0);
|
|
39092
40065
|
}
|
|
@@ -39105,7 +40078,38 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
39105
40078
|
abort(new CanceledError_default("Request stream has been aborted", config, req));
|
|
39106
40079
|
}
|
|
39107
40080
|
});
|
|
39108
|
-
data
|
|
40081
|
+
let uploadStream = data;
|
|
40082
|
+
if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
|
|
40083
|
+
const limit = config.maxBodyLength;
|
|
40084
|
+
let bytesSent = 0;
|
|
40085
|
+
uploadStream = import_stream4.default.pipeline(
|
|
40086
|
+
[
|
|
40087
|
+
data,
|
|
40088
|
+
new import_stream4.default.Transform({
|
|
40089
|
+
transform(chunk, _enc, cb) {
|
|
40090
|
+
bytesSent += chunk.length;
|
|
40091
|
+
if (bytesSent > limit) {
|
|
40092
|
+
return cb(
|
|
40093
|
+
new AxiosError_default(
|
|
40094
|
+
"Request body larger than maxBodyLength limit",
|
|
40095
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
40096
|
+
config,
|
|
40097
|
+
req
|
|
40098
|
+
)
|
|
40099
|
+
);
|
|
40100
|
+
}
|
|
40101
|
+
cb(null, chunk);
|
|
40102
|
+
}
|
|
40103
|
+
})
|
|
40104
|
+
],
|
|
40105
|
+
utils_default.noop
|
|
40106
|
+
);
|
|
40107
|
+
uploadStream.on("error", (err) => {
|
|
40108
|
+
if (!req.destroyed)
|
|
40109
|
+
req.destroy(err);
|
|
40110
|
+
});
|
|
40111
|
+
}
|
|
40112
|
+
uploadStream.pipe(req);
|
|
39109
40113
|
} else {
|
|
39110
40114
|
data && req.write(data);
|
|
39111
40115
|
req.end();
|
|
@@ -39114,7 +40118,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
39114
40118
|
});
|
|
39115
40119
|
};
|
|
39116
40120
|
|
|
39117
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
40121
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
39118
40122
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url2) => {
|
|
39119
40123
|
url2 = new URL(url2, platform_default.origin);
|
|
39120
40124
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
@@ -39123,7 +40127,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2
|
|
|
39123
40127
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
39124
40128
|
) : () => true;
|
|
39125
40129
|
|
|
39126
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
40130
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/cookies.js
|
|
39127
40131
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
39128
40132
|
// Standard browser envs support document.cookie
|
|
39129
40133
|
{
|
|
@@ -39151,8 +40155,15 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
39151
40155
|
read(name) {
|
|
39152
40156
|
if (typeof document === "undefined")
|
|
39153
40157
|
return null;
|
|
39154
|
-
const
|
|
39155
|
-
|
|
40158
|
+
const cookies = document.cookie.split(";");
|
|
40159
|
+
for (let i = 0; i < cookies.length; i++) {
|
|
40160
|
+
const cookie = cookies[i].replace(/^\s+/, "");
|
|
40161
|
+
const eq = cookie.indexOf("=");
|
|
40162
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
40163
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
40164
|
+
}
|
|
40165
|
+
}
|
|
40166
|
+
return null;
|
|
39156
40167
|
},
|
|
39157
40168
|
remove(name) {
|
|
39158
40169
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
@@ -39171,11 +40182,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
39171
40182
|
}
|
|
39172
40183
|
);
|
|
39173
40184
|
|
|
39174
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
40185
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/mergeConfig.js
|
|
39175
40186
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? __spreadValues({}, thing) : thing;
|
|
39176
40187
|
function mergeConfig(config1, config2) {
|
|
39177
40188
|
config2 = config2 || {};
|
|
39178
|
-
const config =
|
|
40189
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
40190
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
40191
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
40192
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
40193
|
+
__proto__: null,
|
|
40194
|
+
value: Object.prototype.hasOwnProperty,
|
|
40195
|
+
enumerable: false,
|
|
40196
|
+
writable: true,
|
|
40197
|
+
configurable: true
|
|
40198
|
+
});
|
|
39179
40199
|
function getMergedValue(target, source, prop, caseless) {
|
|
39180
40200
|
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
39181
40201
|
return utils_default.merge.call({ caseless }, target, source);
|
|
@@ -39206,9 +40226,9 @@ function mergeConfig(config1, config2) {
|
|
|
39206
40226
|
}
|
|
39207
40227
|
}
|
|
39208
40228
|
function mergeDirectKeys(a, b2, prop) {
|
|
39209
|
-
if (prop
|
|
40229
|
+
if (utils_default.hasOwnProp(config2, prop)) {
|
|
39210
40230
|
return getMergedValue(a, b2);
|
|
39211
|
-
} else if (prop
|
|
40231
|
+
} else if (utils_default.hasOwnProp(config1, prop)) {
|
|
39212
40232
|
return getMergedValue(void 0, a);
|
|
39213
40233
|
}
|
|
39214
40234
|
}
|
|
@@ -39239,6 +40259,7 @@ function mergeConfig(config1, config2) {
|
|
|
39239
40259
|
httpsAgent: defaultToConfig2,
|
|
39240
40260
|
cancelToken: defaultToConfig2,
|
|
39241
40261
|
socketPath: defaultToConfig2,
|
|
40262
|
+
allowedSocketPaths: defaultToConfig2,
|
|
39242
40263
|
responseEncoding: defaultToConfig2,
|
|
39243
40264
|
validateStatus: mergeDirectKeys,
|
|
39244
40265
|
headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true)
|
|
@@ -39247,46 +40268,68 @@ function mergeConfig(config1, config2) {
|
|
|
39247
40268
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
|
|
39248
40269
|
return;
|
|
39249
40270
|
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
39250
|
-
const
|
|
40271
|
+
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
40272
|
+
const b2 = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
40273
|
+
const configValue = merge2(a, b2, prop);
|
|
39251
40274
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
39252
40275
|
});
|
|
39253
40276
|
return config;
|
|
39254
40277
|
}
|
|
39255
40278
|
|
|
39256
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
40279
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/resolveConfig.js
|
|
40280
|
+
var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
|
|
40281
|
+
function setFormDataHeaders2(headers, formHeaders, policy) {
|
|
40282
|
+
if (policy !== "content-only") {
|
|
40283
|
+
headers.set(formHeaders);
|
|
40284
|
+
return;
|
|
40285
|
+
}
|
|
40286
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
40287
|
+
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
|
|
40288
|
+
headers.set(key, val);
|
|
40289
|
+
}
|
|
40290
|
+
});
|
|
40291
|
+
}
|
|
40292
|
+
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
40293
|
+
/%([0-9A-F]{2})/gi,
|
|
40294
|
+
(_2, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
40295
|
+
);
|
|
39257
40296
|
var resolveConfig_default = (config) => {
|
|
39258
40297
|
const newConfig = mergeConfig({}, config);
|
|
39259
|
-
|
|
40298
|
+
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
40299
|
+
const data = own2("data");
|
|
40300
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
40301
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
40302
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
40303
|
+
let headers = own2("headers");
|
|
40304
|
+
const auth = own2("auth");
|
|
40305
|
+
const baseURL = own2("baseURL");
|
|
40306
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
40307
|
+
const url2 = own2("url");
|
|
39260
40308
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
39261
40309
|
newConfig.url = buildURL(
|
|
39262
|
-
buildFullPath(
|
|
40310
|
+
buildFullPath(baseURL, url2, allowAbsoluteUrls),
|
|
39263
40311
|
config.params,
|
|
39264
40312
|
config.paramsSerializer
|
|
39265
40313
|
);
|
|
39266
40314
|
if (auth) {
|
|
39267
40315
|
headers.set(
|
|
39268
40316
|
"Authorization",
|
|
39269
|
-
"Basic " + btoa(
|
|
39270
|
-
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
39271
|
-
)
|
|
40317
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
|
|
39272
40318
|
);
|
|
39273
40319
|
}
|
|
39274
40320
|
if (utils_default.isFormData(data)) {
|
|
39275
40321
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
39276
40322
|
headers.setContentType(void 0);
|
|
39277
40323
|
} else if (utils_default.isFunction(data.getHeaders)) {
|
|
39278
|
-
|
|
39279
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
39280
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
39281
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
39282
|
-
headers.set(key, val);
|
|
39283
|
-
}
|
|
39284
|
-
});
|
|
40324
|
+
setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
39285
40325
|
}
|
|
39286
40326
|
}
|
|
39287
40327
|
if (platform_default.hasStandardBrowserEnv) {
|
|
39288
|
-
|
|
39289
|
-
|
|
40328
|
+
if (utils_default.isFunction(withXSRFToken)) {
|
|
40329
|
+
withXSRFToken = withXSRFToken(newConfig);
|
|
40330
|
+
}
|
|
40331
|
+
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
|
|
40332
|
+
if (shouldSendXSRF) {
|
|
39290
40333
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
39291
40334
|
if (xsrfValue) {
|
|
39292
40335
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -39296,7 +40339,7 @@ var resolveConfig_default = (config) => {
|
|
|
39296
40339
|
return newConfig;
|
|
39297
40340
|
};
|
|
39298
40341
|
|
|
39299
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
40342
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/xhr.js
|
|
39300
40343
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
39301
40344
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
39302
40345
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -39352,7 +40395,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
39352
40395
|
if (!request || request.readyState !== 4) {
|
|
39353
40396
|
return;
|
|
39354
40397
|
}
|
|
39355
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
40398
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
39356
40399
|
return;
|
|
39357
40400
|
}
|
|
39358
40401
|
setTimeout(onloadend);
|
|
@@ -39363,6 +40406,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
39363
40406
|
return;
|
|
39364
40407
|
}
|
|
39365
40408
|
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
40409
|
+
done();
|
|
39366
40410
|
request = null;
|
|
39367
40411
|
};
|
|
39368
40412
|
request.onerror = function handleError(event) {
|
|
@@ -39370,6 +40414,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
39370
40414
|
const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
|
|
39371
40415
|
err.event = event || null;
|
|
39372
40416
|
reject(err);
|
|
40417
|
+
done();
|
|
39373
40418
|
request = null;
|
|
39374
40419
|
};
|
|
39375
40420
|
request.ontimeout = function handleTimeout() {
|
|
@@ -39386,11 +40431,12 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
39386
40431
|
request
|
|
39387
40432
|
)
|
|
39388
40433
|
);
|
|
40434
|
+
done();
|
|
39389
40435
|
request = null;
|
|
39390
40436
|
};
|
|
39391
40437
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
39392
40438
|
if ("setRequestHeader" in request) {
|
|
39393
|
-
utils_default.forEach(requestHeaders
|
|
40439
|
+
utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
39394
40440
|
request.setRequestHeader(key, val);
|
|
39395
40441
|
});
|
|
39396
40442
|
}
|
|
@@ -39416,6 +40462,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
39416
40462
|
}
|
|
39417
40463
|
reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
|
|
39418
40464
|
request.abort();
|
|
40465
|
+
done();
|
|
39419
40466
|
request = null;
|
|
39420
40467
|
};
|
|
39421
40468
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
@@ -39424,7 +40471,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
39424
40471
|
}
|
|
39425
40472
|
}
|
|
39426
40473
|
const protocol = parseProtocol(_config.url);
|
|
39427
|
-
if (protocol && platform_default.protocols.
|
|
40474
|
+
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
39428
40475
|
reject(
|
|
39429
40476
|
new AxiosError_default(
|
|
39430
40477
|
"Unsupported protocol " + protocol + ":",
|
|
@@ -39438,45 +40485,47 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
39438
40485
|
});
|
|
39439
40486
|
};
|
|
39440
40487
|
|
|
39441
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
40488
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/composeSignals.js
|
|
39442
40489
|
var composeSignals = (signals, timeout) => {
|
|
39443
|
-
|
|
39444
|
-
if (timeout
|
|
39445
|
-
|
|
39446
|
-
let aborted;
|
|
39447
|
-
const onabort = function(reason) {
|
|
39448
|
-
if (!aborted) {
|
|
39449
|
-
aborted = true;
|
|
39450
|
-
unsubscribe();
|
|
39451
|
-
const err = reason instanceof Error ? reason : this.reason;
|
|
39452
|
-
controller.abort(
|
|
39453
|
-
err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
|
|
39454
|
-
);
|
|
39455
|
-
}
|
|
39456
|
-
};
|
|
39457
|
-
let timer = timeout && setTimeout(() => {
|
|
39458
|
-
timer = null;
|
|
39459
|
-
onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
39460
|
-
}, timeout);
|
|
39461
|
-
const unsubscribe = () => {
|
|
39462
|
-
if (signals) {
|
|
39463
|
-
timer && clearTimeout(timer);
|
|
39464
|
-
timer = null;
|
|
39465
|
-
signals.forEach((signal2) => {
|
|
39466
|
-
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
39467
|
-
});
|
|
39468
|
-
signals = null;
|
|
39469
|
-
}
|
|
39470
|
-
};
|
|
39471
|
-
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
39472
|
-
const { signal } = controller;
|
|
39473
|
-
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
39474
|
-
return signal;
|
|
40490
|
+
signals = signals ? signals.filter(Boolean) : [];
|
|
40491
|
+
if (!timeout && !signals.length) {
|
|
40492
|
+
return;
|
|
39475
40493
|
}
|
|
40494
|
+
const controller = new AbortController();
|
|
40495
|
+
let aborted = false;
|
|
40496
|
+
const onabort = function(reason) {
|
|
40497
|
+
if (!aborted) {
|
|
40498
|
+
aborted = true;
|
|
40499
|
+
unsubscribe();
|
|
40500
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
40501
|
+
controller.abort(
|
|
40502
|
+
err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
|
|
40503
|
+
);
|
|
40504
|
+
}
|
|
40505
|
+
};
|
|
40506
|
+
let timer = timeout && setTimeout(() => {
|
|
40507
|
+
timer = null;
|
|
40508
|
+
onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
40509
|
+
}, timeout);
|
|
40510
|
+
const unsubscribe = () => {
|
|
40511
|
+
if (!signals) {
|
|
40512
|
+
return;
|
|
40513
|
+
}
|
|
40514
|
+
timer && clearTimeout(timer);
|
|
40515
|
+
timer = null;
|
|
40516
|
+
signals.forEach((signal2) => {
|
|
40517
|
+
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
40518
|
+
});
|
|
40519
|
+
signals = null;
|
|
40520
|
+
};
|
|
40521
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
40522
|
+
const { signal } = controller;
|
|
40523
|
+
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
40524
|
+
return signal;
|
|
39476
40525
|
};
|
|
39477
40526
|
var composeSignals_default = composeSignals;
|
|
39478
40527
|
|
|
39479
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
40528
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/trackStream.js
|
|
39480
40529
|
var streamChunk = function* (chunk, chunkSize) {
|
|
39481
40530
|
let len = chunk.byteLength;
|
|
39482
40531
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -39574,14 +40623,9 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
39574
40623
|
);
|
|
39575
40624
|
};
|
|
39576
40625
|
|
|
39577
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
40626
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/fetch.js
|
|
39578
40627
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
39579
40628
|
var { isFunction: isFunction2 } = utils_default;
|
|
39580
|
-
var globalFetchAPI = (({ Request, Response }) => ({
|
|
39581
|
-
Request,
|
|
39582
|
-
Response
|
|
39583
|
-
}))(utils_default.global);
|
|
39584
|
-
var { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global;
|
|
39585
40629
|
var test = (fn2, ...args) => {
|
|
39586
40630
|
try {
|
|
39587
40631
|
return !!fn2(...args);
|
|
@@ -39590,11 +40634,16 @@ var test = (fn2, ...args) => {
|
|
|
39590
40634
|
}
|
|
39591
40635
|
};
|
|
39592
40636
|
var factory = (env) => {
|
|
40637
|
+
const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
|
|
40638
|
+
const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
|
|
39593
40639
|
env = utils_default.merge.call(
|
|
39594
40640
|
{
|
|
39595
40641
|
skipUndefined: true
|
|
39596
40642
|
},
|
|
39597
|
-
|
|
40643
|
+
{
|
|
40644
|
+
Request: globalObject.Request,
|
|
40645
|
+
Response: globalObject.Response
|
|
40646
|
+
},
|
|
39598
40647
|
env
|
|
39599
40648
|
);
|
|
39600
40649
|
const { fetch: envFetch, Request, Response } = env;
|
|
@@ -39610,16 +40659,18 @@ var factory = (env) => {
|
|
|
39610
40659
|
}));
|
|
39611
40660
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
39612
40661
|
let duplexAccessed = false;
|
|
39613
|
-
const
|
|
39614
|
-
|
|
39615
|
-
body,
|
|
40662
|
+
const request = new Request(platform_default.origin, {
|
|
40663
|
+
body: new ReadableStream2(),
|
|
39616
40664
|
method: "POST",
|
|
39617
40665
|
get duplex() {
|
|
39618
40666
|
duplexAccessed = true;
|
|
39619
40667
|
return "half";
|
|
39620
40668
|
}
|
|
39621
|
-
})
|
|
39622
|
-
|
|
40669
|
+
});
|
|
40670
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
40671
|
+
if (request.body != null) {
|
|
40672
|
+
request.body.cancel();
|
|
40673
|
+
}
|
|
39623
40674
|
return duplexAccessed && !hasContentType;
|
|
39624
40675
|
});
|
|
39625
40676
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
@@ -39682,8 +40733,12 @@ var factory = (env) => {
|
|
|
39682
40733
|
responseType,
|
|
39683
40734
|
headers,
|
|
39684
40735
|
withCredentials = "same-origin",
|
|
39685
|
-
fetchOptions
|
|
40736
|
+
fetchOptions,
|
|
40737
|
+
maxContentLength,
|
|
40738
|
+
maxBodyLength
|
|
39686
40739
|
} = resolveConfig_default(config);
|
|
40740
|
+
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
40741
|
+
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
39687
40742
|
let _fetch = envFetch || fetch;
|
|
39688
40743
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
39689
40744
|
let composedSignal = composeSignals_default(
|
|
@@ -39696,6 +40751,28 @@ var factory = (env) => {
|
|
|
39696
40751
|
});
|
|
39697
40752
|
let requestContentLength;
|
|
39698
40753
|
try {
|
|
40754
|
+
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
40755
|
+
const estimated = estimateDataURLDecodedBytes(url2);
|
|
40756
|
+
if (estimated > maxContentLength) {
|
|
40757
|
+
throw new AxiosError_default(
|
|
40758
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
40759
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
40760
|
+
config,
|
|
40761
|
+
request
|
|
40762
|
+
);
|
|
40763
|
+
}
|
|
40764
|
+
}
|
|
40765
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
40766
|
+
const outboundLength = yield resolveBodyLength(headers, data);
|
|
40767
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
|
|
40768
|
+
throw new AxiosError_default(
|
|
40769
|
+
"Request body larger than maxBodyLength limit",
|
|
40770
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
40771
|
+
config,
|
|
40772
|
+
request
|
|
40773
|
+
);
|
|
40774
|
+
}
|
|
40775
|
+
}
|
|
39699
40776
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = yield resolveBodyLength(headers, data)) !== 0) {
|
|
39700
40777
|
let _request = new Request(url2, {
|
|
39701
40778
|
method: "POST",
|
|
@@ -39718,18 +40795,36 @@ var factory = (env) => {
|
|
|
39718
40795
|
withCredentials = withCredentials ? "include" : "omit";
|
|
39719
40796
|
}
|
|
39720
40797
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
40798
|
+
if (utils_default.isFormData(data)) {
|
|
40799
|
+
const contentType = headers.getContentType();
|
|
40800
|
+
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
|
|
40801
|
+
headers.delete("content-type");
|
|
40802
|
+
}
|
|
40803
|
+
}
|
|
40804
|
+
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
39721
40805
|
const resolvedOptions = __spreadProps(__spreadValues({}, fetchOptions), {
|
|
39722
40806
|
signal: composedSignal,
|
|
39723
40807
|
method: method.toUpperCase(),
|
|
39724
|
-
headers: headers.normalize()
|
|
40808
|
+
headers: toByteStringHeaderObject(headers.normalize()),
|
|
39725
40809
|
body: data,
|
|
39726
40810
|
duplex: "half",
|
|
39727
40811
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
39728
40812
|
});
|
|
39729
40813
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
39730
40814
|
let response = yield isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions);
|
|
40815
|
+
if (hasMaxContentLength) {
|
|
40816
|
+
const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
40817
|
+
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
40818
|
+
throw new AxiosError_default(
|
|
40819
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
40820
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
40821
|
+
config,
|
|
40822
|
+
request
|
|
40823
|
+
);
|
|
40824
|
+
}
|
|
40825
|
+
}
|
|
39731
40826
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
39732
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
40827
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
39733
40828
|
const options = {};
|
|
39734
40829
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
39735
40830
|
options[prop] = response[prop];
|
|
@@ -39739,8 +40834,23 @@ var factory = (env) => {
|
|
|
39739
40834
|
responseContentLength,
|
|
39740
40835
|
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
39741
40836
|
) || [];
|
|
40837
|
+
let bytesRead = 0;
|
|
40838
|
+
const onChunkProgress = (loadedBytes) => {
|
|
40839
|
+
if (hasMaxContentLength) {
|
|
40840
|
+
bytesRead = loadedBytes;
|
|
40841
|
+
if (bytesRead > maxContentLength) {
|
|
40842
|
+
throw new AxiosError_default(
|
|
40843
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
40844
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
40845
|
+
config,
|
|
40846
|
+
request
|
|
40847
|
+
);
|
|
40848
|
+
}
|
|
40849
|
+
}
|
|
40850
|
+
onProgress && onProgress(loadedBytes);
|
|
40851
|
+
};
|
|
39742
40852
|
response = new Response(
|
|
39743
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
40853
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
39744
40854
|
flush && flush();
|
|
39745
40855
|
unsubscribe && unsubscribe();
|
|
39746
40856
|
}),
|
|
@@ -39752,6 +40862,26 @@ var factory = (env) => {
|
|
|
39752
40862
|
response,
|
|
39753
40863
|
config
|
|
39754
40864
|
);
|
|
40865
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
40866
|
+
let materializedSize;
|
|
40867
|
+
if (responseData != null) {
|
|
40868
|
+
if (typeof responseData.byteLength === "number") {
|
|
40869
|
+
materializedSize = responseData.byteLength;
|
|
40870
|
+
} else if (typeof responseData.size === "number") {
|
|
40871
|
+
materializedSize = responseData.size;
|
|
40872
|
+
} else if (typeof responseData === "string") {
|
|
40873
|
+
materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
|
|
40874
|
+
}
|
|
40875
|
+
}
|
|
40876
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
|
|
40877
|
+
throw new AxiosError_default(
|
|
40878
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
40879
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
40880
|
+
config,
|
|
40881
|
+
request
|
|
40882
|
+
);
|
|
40883
|
+
}
|
|
40884
|
+
}
|
|
39755
40885
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
39756
40886
|
return yield new Promise((resolve, reject) => {
|
|
39757
40887
|
settle(resolve, reject, {
|
|
@@ -39765,6 +40895,13 @@ var factory = (env) => {
|
|
|
39765
40895
|
});
|
|
39766
40896
|
} catch (err) {
|
|
39767
40897
|
unsubscribe && unsubscribe();
|
|
40898
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
|
|
40899
|
+
const canceledError = composedSignal.reason;
|
|
40900
|
+
canceledError.config = config;
|
|
40901
|
+
request && (canceledError.request = request);
|
|
40902
|
+
err !== canceledError && (canceledError.cause = err);
|
|
40903
|
+
throw canceledError;
|
|
40904
|
+
}
|
|
39768
40905
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
39769
40906
|
throw Object.assign(
|
|
39770
40907
|
new AxiosError_default(
|
|
@@ -39799,7 +40936,7 @@ var getFetch = (config) => {
|
|
|
39799
40936
|
};
|
|
39800
40937
|
var adapter = getFetch();
|
|
39801
40938
|
|
|
39802
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
40939
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/adapters.js
|
|
39803
40940
|
var knownAdapters = {
|
|
39804
40941
|
http: http_default,
|
|
39805
40942
|
xhr: xhr_default,
|
|
@@ -39810,10 +40947,10 @@ var knownAdapters = {
|
|
|
39810
40947
|
utils_default.forEach(knownAdapters, (fn2, value) => {
|
|
39811
40948
|
if (fn2) {
|
|
39812
40949
|
try {
|
|
39813
|
-
Object.defineProperty(fn2, "name", { value });
|
|
40950
|
+
Object.defineProperty(fn2, "name", { __proto__: null, value });
|
|
39814
40951
|
} catch (e) {
|
|
39815
40952
|
}
|
|
39816
|
-
Object.defineProperty(fn2, "adapterName", { value });
|
|
40953
|
+
Object.defineProperty(fn2, "adapterName", { __proto__: null, value });
|
|
39817
40954
|
}
|
|
39818
40955
|
});
|
|
39819
40956
|
var renderReason = (reason) => `- ${reason}`;
|
|
@@ -39864,7 +41001,7 @@ var adapters_default = {
|
|
|
39864
41001
|
adapters: knownAdapters
|
|
39865
41002
|
};
|
|
39866
41003
|
|
|
39867
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
41004
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/dispatchRequest.js
|
|
39868
41005
|
function throwIfCancellationRequested(config) {
|
|
39869
41006
|
if (config.cancelToken) {
|
|
39870
41007
|
config.cancelToken.throwIfRequested();
|
|
@@ -39884,7 +41021,12 @@ function dispatchRequest(config) {
|
|
|
39884
41021
|
return adapter2(config).then(
|
|
39885
41022
|
function onAdapterResolution(response) {
|
|
39886
41023
|
throwIfCancellationRequested(config);
|
|
39887
|
-
response
|
|
41024
|
+
config.response = response;
|
|
41025
|
+
try {
|
|
41026
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
41027
|
+
} finally {
|
|
41028
|
+
delete config.response;
|
|
41029
|
+
}
|
|
39888
41030
|
response.headers = AxiosHeaders_default.from(response.headers);
|
|
39889
41031
|
return response;
|
|
39890
41032
|
},
|
|
@@ -39892,11 +41034,16 @@ function dispatchRequest(config) {
|
|
|
39892
41034
|
if (!isCancel(reason)) {
|
|
39893
41035
|
throwIfCancellationRequested(config);
|
|
39894
41036
|
if (reason && reason.response) {
|
|
39895
|
-
|
|
39896
|
-
|
|
39897
|
-
|
|
39898
|
-
|
|
39899
|
-
|
|
41037
|
+
config.response = reason.response;
|
|
41038
|
+
try {
|
|
41039
|
+
reason.response.data = transformData.call(
|
|
41040
|
+
config,
|
|
41041
|
+
config.transformResponse,
|
|
41042
|
+
reason.response
|
|
41043
|
+
);
|
|
41044
|
+
} finally {
|
|
41045
|
+
delete config.response;
|
|
41046
|
+
}
|
|
39900
41047
|
reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
|
|
39901
41048
|
}
|
|
39902
41049
|
}
|
|
@@ -39905,7 +41052,7 @@ function dispatchRequest(config) {
|
|
|
39905
41052
|
);
|
|
39906
41053
|
}
|
|
39907
41054
|
|
|
39908
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
41055
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/validator.js
|
|
39909
41056
|
var validators = {};
|
|
39910
41057
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
39911
41058
|
validators[type] = function validator(thing) {
|
|
@@ -39950,7 +41097,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
39950
41097
|
let i = keys.length;
|
|
39951
41098
|
while (i-- > 0) {
|
|
39952
41099
|
const opt = keys[i];
|
|
39953
|
-
const validator = schema[opt];
|
|
41100
|
+
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
39954
41101
|
if (validator) {
|
|
39955
41102
|
const value = options[opt];
|
|
39956
41103
|
const result = value === void 0 || validator(value, opt, options);
|
|
@@ -39972,7 +41119,7 @@ var validator_default = {
|
|
|
39972
41119
|
validators
|
|
39973
41120
|
};
|
|
39974
41121
|
|
|
39975
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
41122
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/Axios.js
|
|
39976
41123
|
var validators2 = validator_default.validators;
|
|
39977
41124
|
var Axios = class {
|
|
39978
41125
|
constructor(instanceConfig) {
|
|
@@ -40076,7 +41223,7 @@ var Axios = class {
|
|
|
40076
41223
|
);
|
|
40077
41224
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
40078
41225
|
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
40079
|
-
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
41226
|
+
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
|
|
40080
41227
|
delete headers[method];
|
|
40081
41228
|
});
|
|
40082
41229
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
@@ -40154,7 +41301,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
|
|
|
40154
41301
|
);
|
|
40155
41302
|
};
|
|
40156
41303
|
});
|
|
40157
|
-
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
41304
|
+
utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
40158
41305
|
function generateHTTPMethod(isForm) {
|
|
40159
41306
|
return function httpMethod(url2, data, config) {
|
|
40160
41307
|
return this.request(
|
|
@@ -40170,11 +41317,13 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
40170
41317
|
};
|
|
40171
41318
|
}
|
|
40172
41319
|
Axios.prototype[method] = generateHTTPMethod();
|
|
40173
|
-
|
|
41320
|
+
if (method !== "query") {
|
|
41321
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
41322
|
+
}
|
|
40174
41323
|
});
|
|
40175
41324
|
var Axios_default = Axios;
|
|
40176
41325
|
|
|
40177
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
41326
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/CancelToken.js
|
|
40178
41327
|
var CancelToken = class _CancelToken {
|
|
40179
41328
|
constructor(executor) {
|
|
40180
41329
|
if (typeof executor !== "function") {
|
|
@@ -40273,19 +41422,19 @@ var CancelToken = class _CancelToken {
|
|
|
40273
41422
|
};
|
|
40274
41423
|
var CancelToken_default = CancelToken;
|
|
40275
41424
|
|
|
40276
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
41425
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/spread.js
|
|
40277
41426
|
function spread(callback) {
|
|
40278
41427
|
return function wrap(arr) {
|
|
40279
41428
|
return callback.apply(null, arr);
|
|
40280
41429
|
};
|
|
40281
41430
|
}
|
|
40282
41431
|
|
|
40283
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
41432
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isAxiosError.js
|
|
40284
41433
|
function isAxiosError(payload) {
|
|
40285
41434
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
40286
41435
|
}
|
|
40287
41436
|
|
|
40288
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
41437
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
40289
41438
|
var HttpStatusCode = {
|
|
40290
41439
|
Continue: 100,
|
|
40291
41440
|
SwitchingProtocols: 101,
|
|
@@ -40362,13 +41511,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
40362
41511
|
});
|
|
40363
41512
|
var HttpStatusCode_default = HttpStatusCode;
|
|
40364
41513
|
|
|
40365
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
41514
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/axios.js
|
|
40366
41515
|
function createInstance(defaultConfig) {
|
|
40367
41516
|
const context = new Axios_default(defaultConfig);
|
|
40368
41517
|
const instance = bind(Axios_default.prototype.request, context);
|
|
40369
41518
|
utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
|
|
40370
41519
|
utils_default.extend(instance, context, null, { allOwnKeys: true });
|
|
40371
|
-
instance.create = function
|
|
41520
|
+
instance.create = function create2(instanceConfig) {
|
|
40372
41521
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
40373
41522
|
};
|
|
40374
41523
|
return instance;
|
|
@@ -40395,7 +41544,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
40395
41544
|
axios.default = axios;
|
|
40396
41545
|
var axios_default = axios;
|
|
40397
41546
|
|
|
40398
|
-
// ../../../node_modules/.pnpm/axios@1.
|
|
41547
|
+
// ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/index.js
|
|
40399
41548
|
var {
|
|
40400
41549
|
Axios: Axios2,
|
|
40401
41550
|
AxiosError: AxiosError2,
|
|
@@ -40412,7 +41561,8 @@ var {
|
|
|
40412
41561
|
HttpStatusCode: HttpStatusCode2,
|
|
40413
41562
|
formToJSON,
|
|
40414
41563
|
getAdapter: getAdapter2,
|
|
40415
|
-
mergeConfig: mergeConfig2
|
|
41564
|
+
mergeConfig: mergeConfig2,
|
|
41565
|
+
create
|
|
40416
41566
|
} = axios_default;
|
|
40417
41567
|
|
|
40418
41568
|
// ../../../node_modules/.pnpm/tar@7.5.10/node_modules/tar/dist/esm/index.min.js
|
|
@@ -40423,7 +41573,7 @@ var import_node_stream = __toESM(require("stream"));
|
|
|
40423
41573
|
var import_node_string_decoder = require("string_decoder");
|
|
40424
41574
|
var import_node_path = __toESM(require("path"));
|
|
40425
41575
|
var import_node_fs = __toESM(require("fs"));
|
|
40426
|
-
var
|
|
41576
|
+
var import_path6 = require("path");
|
|
40427
41577
|
var import_events3 = require("events");
|
|
40428
41578
|
var import_assert = __toESM(require("assert"));
|
|
40429
41579
|
var import_buffer = require("buffer");
|
|
@@ -40433,9 +41583,9 @@ var import_node_path2 = require("path");
|
|
|
40433
41583
|
var import_node_path3 = require("path");
|
|
40434
41584
|
var import_fs2 = __toESM(require("fs"));
|
|
40435
41585
|
var import_fs3 = __toESM(require("fs"));
|
|
40436
|
-
var import_path6 = __toESM(require("path"));
|
|
40437
|
-
var import_node_path4 = require("path");
|
|
40438
41586
|
var import_path7 = __toESM(require("path"));
|
|
41587
|
+
var import_node_path4 = require("path");
|
|
41588
|
+
var import_path8 = __toESM(require("path"));
|
|
40439
41589
|
var import_node_fs2 = __toESM(require("fs"));
|
|
40440
41590
|
var import_node_assert = __toESM(require("assert"));
|
|
40441
41591
|
var import_node_crypto = require("crypto");
|
|
@@ -41894,12 +43044,12 @@ var _n4 = (s3) => {
|
|
|
41894
43044
|
};
|
|
41895
43045
|
var Yi = (s3, t) => {
|
|
41896
43046
|
let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
|
|
41897
|
-
let h = o || (0,
|
|
43047
|
+
let h = o || (0, import_path6.parse)(n).root || ".", a;
|
|
41898
43048
|
if (n === h)
|
|
41899
43049
|
a = false;
|
|
41900
43050
|
else {
|
|
41901
43051
|
let l = e.get(n);
|
|
41902
|
-
l !== void 0 ? a = l : a = r((0,
|
|
43052
|
+
l !== void 0 ? a = l : a = r((0, import_path6.dirname)(n), h);
|
|
41903
43053
|
}
|
|
41904
43054
|
return e.set(n, a), a;
|
|
41905
43055
|
};
|
|
@@ -42024,7 +43174,7 @@ var de = (_a10 = class extends A {
|
|
|
42024
43174
|
let [o, h] = ce(this.path);
|
|
42025
43175
|
o && typeof h == "string" && (this.path = h, r = o);
|
|
42026
43176
|
}
|
|
42027
|
-
this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = Vs(this.path.replace(/\\/g, "/")), t = t.replace(/\\/g, "/")), this.absolute = f(i.absolute ||
|
|
43177
|
+
this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = Vs(this.path.replace(/\\/g, "/")), t = t.replace(/\\/g, "/")), this.absolute = f(i.absolute || import_path7.default.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
|
|
42028
43178
|
let n = this.statCache.get(this.absolute);
|
|
42029
43179
|
n ? this[ti](n) : this[ji]();
|
|
42030
43180
|
}
|
|
@@ -42090,7 +43240,7 @@ var de = (_a10 = class extends A {
|
|
|
42090
43240
|
[Js](t) {
|
|
42091
43241
|
if (!this.stat)
|
|
42092
43242
|
throw new Error("cannot create link entry without stat");
|
|
42093
|
-
this.type = "Link", this.linkpath = f(
|
|
43243
|
+
this.type = "Link", this.linkpath = f(import_path7.default.relative(this.cwd, t)), this.stat.size = 0, this[fe](), this.end();
|
|
42094
43244
|
}
|
|
42095
43245
|
[js]() {
|
|
42096
43246
|
if (!this.stat)
|
|
@@ -42566,7 +43716,7 @@ var Et = class extends A {
|
|
|
42566
43716
|
return t instanceof Yt ? this[ir](t) : this[oi](t), this.flowing;
|
|
42567
43717
|
}
|
|
42568
43718
|
[ir](t) {
|
|
42569
|
-
let e = f(
|
|
43719
|
+
let e = f(import_path8.default.resolve(this.cwd, t.path));
|
|
42570
43720
|
if (!this.filter(t.path, t))
|
|
42571
43721
|
t.resume();
|
|
42572
43722
|
else {
|
|
@@ -42576,7 +43726,7 @@ var Et = class extends A {
|
|
|
42576
43726
|
this[Ft]();
|
|
42577
43727
|
}
|
|
42578
43728
|
[oi](t) {
|
|
42579
|
-
let e = f(
|
|
43729
|
+
let e = f(import_path8.default.resolve(this.cwd, t));
|
|
42580
43730
|
this[W].push(new fi(t, e)), this[Ft]();
|
|
42581
43731
|
}
|
|
42582
43732
|
[hs](t) {
|
|
@@ -43872,7 +45022,7 @@ function downloadWithNpmPack(pkgName, pkgVersion, targetDir, options) {
|
|
|
43872
45022
|
})
|
|
43873
45023
|
});
|
|
43874
45024
|
const tarballFileName = stdout.trim();
|
|
43875
|
-
const tarballPath =
|
|
45025
|
+
const tarballPath = import_path9.default.join(tempDir, tarballFileName);
|
|
43876
45026
|
if (!(yield fsExists(tarballPath))) {
|
|
43877
45027
|
throw new Error(`npm pack failed: tarball file ${tarballPath} not found`);
|
|
43878
45028
|
}
|
|
@@ -43970,18 +45120,18 @@ function getPackageInfo(packageName) {
|
|
|
43970
45120
|
}
|
|
43971
45121
|
|
|
43972
45122
|
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
|
43973
|
-
var
|
|
45123
|
+
var import_path10 = __toESM(require("path"));
|
|
43974
45124
|
var MaxTimes = 5;
|
|
43975
45125
|
function getGeneratorDir(generator) {
|
|
43976
45126
|
return __async(this, null, function* () {
|
|
43977
45127
|
let result = generator;
|
|
43978
45128
|
const isDirectory = (yield import_fs_extra.default.stat(generator)).isDirectory();
|
|
43979
45129
|
if (!isDirectory) {
|
|
43980
|
-
result =
|
|
45130
|
+
result = import_path10.default.dirname(generator);
|
|
43981
45131
|
}
|
|
43982
45132
|
let times = 0;
|
|
43983
|
-
while (times < MaxTimes && !(yield fsExists(
|
|
43984
|
-
result =
|
|
45133
|
+
while (times < MaxTimes && !(yield fsExists(import_path10.default.join(result, "package.json")))) {
|
|
45134
|
+
result = import_path10.default.join(result, "../");
|
|
43985
45135
|
times++;
|
|
43986
45136
|
}
|
|
43987
45137
|
if (times >= MaxTimes) {
|
|
@@ -44092,9 +45242,9 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
44092
45242
|
(_this_logger = this.logger) === null || _this_logger === void 0 ? void 0 : (_this_logger_timing = _this_logger.timing) === null || _this_logger_timing === void 0 ? void 0 : _this_logger_timing.call(_this_logger, `🕒 LoadGenerator ${generator}`);
|
|
44093
45243
|
let generatorPath = generator;
|
|
44094
45244
|
if (generator.startsWith("file:")) {
|
|
44095
|
-
generatorPath =
|
|
45245
|
+
generatorPath = import_path11.default.join(this.basePath, generator.slice(5));
|
|
44096
45246
|
}
|
|
44097
|
-
const loadGeneratorPromise =
|
|
45247
|
+
const loadGeneratorPromise = import_path11.default.isAbsolute(generatorPath) ? this.loadLocalGenerator(generatorPath) : this.loadRemoteGenerator(generator);
|
|
44098
45248
|
const { generatorPkg, pkgJson, materialKey } = yield loadGeneratorPromise;
|
|
44099
45249
|
if (!generatorPkg || !pkgJson || !materialKey) {
|
|
44100
45250
|
return {};
|
|
@@ -44153,7 +45303,7 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
44153
45303
|
const subContext = __spreadProps(__spreadValues({}, this._context), {
|
|
44154
45304
|
config: __spreadValues(__spreadValues({}, this._context.config), config),
|
|
44155
45305
|
materials: __spreadProps(__spreadValues({}, this._context.materials), {
|
|
44156
|
-
default: new FsMaterial(
|
|
45306
|
+
default: new FsMaterial(import_path11.default.resolve(this.outputPath, relativePwdPath))
|
|
44157
45307
|
}),
|
|
44158
45308
|
current: {
|
|
44159
45309
|
material: generatorPkg
|
|
@@ -44161,7 +45311,7 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
44161
45311
|
});
|
|
44162
45312
|
const preOutputPath = this.outputPath;
|
|
44163
45313
|
const preBasePath = this.basePath;
|
|
44164
|
-
this.setOutputPath(
|
|
45314
|
+
this.setOutputPath(import_path11.default.resolve(this.outputPath, relativePwdPath || ""));
|
|
44165
45315
|
this.setbasePath(subContext.current.material.basePath);
|
|
44166
45316
|
spinner.stop();
|
|
44167
45317
|
yield generatorScript(subContext, this);
|
|
@@ -44187,8 +45337,8 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
44187
45337
|
constructor({ logger, materialsManager, outputPath }) {
|
|
44188
45338
|
this.output = {
|
|
44189
45339
|
fs: (file, content, options) => __async(this, null, function* () {
|
|
44190
|
-
const filePath =
|
|
44191
|
-
yield import_fs_extra.default.mkdirp(
|
|
45340
|
+
const filePath = import_path11.default.resolve(this.outputPath, file.toString());
|
|
45341
|
+
yield import_fs_extra.default.mkdirp(import_path11.default.dirname(filePath));
|
|
44192
45342
|
yield import_fs_extra.default.writeFile(filePath, content, options);
|
|
44193
45343
|
})
|
|
44194
45344
|
};
|
|
@@ -44208,10 +45358,10 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
|
44208
45358
|
};
|
|
44209
45359
|
|
|
44210
45360
|
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
|
44211
|
-
var
|
|
45361
|
+
var import_path12 = __toESM(require("path"));
|
|
44212
45362
|
var MaterialsManager = class {
|
|
44213
45363
|
loadLocalGenerator(generator) {
|
|
44214
|
-
if (!
|
|
45364
|
+
if (!import_path12.default.isAbsolute(generator)) {
|
|
44215
45365
|
return Promise.reject(new Error("only support absolute local path"));
|
|
44216
45366
|
}
|
|
44217
45367
|
const fsMaterial = new FsMaterial(generator);
|
|
@@ -44284,7 +45434,7 @@ var CodeSmith = class {
|
|
|
44284
45434
|
materialsManager: this.materialsManager,
|
|
44285
45435
|
outputPath: pwd || process.cwd()
|
|
44286
45436
|
});
|
|
44287
|
-
this.core.addMaterial("default", new FsMaterial(
|
|
45437
|
+
this.core.addMaterial("default", new FsMaterial(import_path13.default.resolve(pwd || process.cwd())));
|
|
44288
45438
|
try {
|
|
44289
45439
|
for (const task of tasks) {
|
|
44290
45440
|
yield this.runTask(task);
|
|
@@ -44333,10 +45483,10 @@ var CodeSmith = class {
|
|
|
44333
45483
|
};
|
|
44334
45484
|
|
|
44335
45485
|
// package.json
|
|
44336
|
-
var version = "2.71.
|
|
45486
|
+
var version = "2.71.1";
|
|
44337
45487
|
|
|
44338
45488
|
// src/utils/index.ts
|
|
44339
|
-
var
|
|
45489
|
+
var import_path14 = __toESM(require("path"));
|
|
44340
45490
|
function isEmptyDir(dirname) {
|
|
44341
45491
|
try {
|
|
44342
45492
|
const files = import_fs_extra.default.readdirSync(dirname);
|
|
@@ -44346,7 +45496,7 @@ function isEmptyDir(dirname) {
|
|
|
44346
45496
|
}
|
|
44347
45497
|
}
|
|
44348
45498
|
function createDir(dirname, pwd) {
|
|
44349
|
-
const createPath =
|
|
45499
|
+
const createPath = import_path14.default.resolve(pwd, dirname);
|
|
44350
45500
|
if (import_fs_extra.default.existsSync(createPath) && !isEmptyDir(createPath)) {
|
|
44351
45501
|
throw new Error(`directory '${dirname}' already exists`);
|
|
44352
45502
|
}
|
|
@@ -44356,7 +45506,7 @@ function createDir(dirname, pwd) {
|
|
|
44356
45506
|
|
|
44357
45507
|
// src/createAction.ts
|
|
44358
45508
|
var MWA_GENERATOR = "@modern-js/mwa-generator";
|
|
44359
|
-
function getDefaultConfig(projectDir =
|
|
45509
|
+
function getDefaultConfig(projectDir = import_path15.default.basename(process.cwd()), options = {}, logger) {
|
|
44360
45510
|
const { mwa, config, packages, registry, distTag, needInstall, lang } = options;
|
|
44361
45511
|
let initialConfig = {};
|
|
44362
45512
|
try {
|
|
@@ -44444,7 +45594,7 @@ function createAction(projectDir, options) {
|
|
|
44444
45594
|
let generator = MWA_GENERATOR;
|
|
44445
45595
|
if (process.env.CODESMITH_ENV === "development" && generator === MWA_GENERATOR) {
|
|
44446
45596
|
generator = require.resolve(MWA_GENERATOR);
|
|
44447
|
-
} else if (!
|
|
45597
|
+
} else if (!import_path15.default.isAbsolute(generator) && distTag) {
|
|
44448
45598
|
generator = `${generator}@${distTag}`;
|
|
44449
45599
|
yield prepareGeneratorPromise;
|
|
44450
45600
|
}
|