@alpic-ai/sdk 0.0.0-dev.ge52b305 → 0.0.0-dev.ge5497b2
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/api/auth-scope.js +1 -0
- package/dist/api/auth-scope.js.map +1 -1
- package/dist/auth/api-key.d.ts +1 -0
- package/dist/auth/api-key.js +23 -0
- package/dist/auth/api-key.js.map +1 -0
- package/dist/auth/index.d.ts +4 -0
- package/dist/auth/index.js +13 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/oauth-client.d.ts +1 -1
- package/dist/auth/oauth-client.js +6 -5
- package/dist/auth/oauth-client.js.map +1 -1
- package/dist/auth/server/assets/authorize.html +43 -1
- package/dist/auth/server/index.js +1 -1
- package/dist/auth/server/index.js.map +1 -1
- package/dist/auth/store.js +1 -0
- package/dist/auth/store.js.map +1 -1
- package/dist/client.d.ts +6 -0
- package/dist/client.js +11 -4
- package/dist/client.js.map +1 -1
- package/dist/deploy/archive.d.ts +8 -0
- package/dist/deploy/archive.js +61 -0
- package/dist/deploy/archive.js.map +1 -0
- package/dist/deploy/deployments.d.ts +45 -0
- package/dist/deploy/deployments.js +90 -0
- package/dist/deploy/deployments.js.map +1 -0
- package/dist/deploy/poll.d.ts +2 -0
- package/dist/deploy/poll.js +10 -0
- package/dist/deploy/poll.js.map +1 -0
- package/dist/deploy/upload.d.ts +1 -0
- package/dist/deploy/upload.js +13 -0
- package/dist/deploy/upload.js.map +1 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/emitter.js +5 -6
- package/dist/lib/emitter.js.map +1 -1
- package/dist/lib/errors.d.ts +3 -0
- package/dist/lib/errors.js +7 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/project/config.d.ts +10 -0
- package/dist/project/config.js +31 -0
- package/dist/project/config.js.map +1 -0
- package/dist/project/detect-runtime.d.ts +2 -0
- package/dist/project/detect-runtime.js +25 -0
- package/dist/project/detect-runtime.js.map +1 -0
- package/dist/project/projects.d.ts +21 -0
- package/dist/project/projects.js +52 -0
- package/dist/project/projects.js.map +1 -0
- package/dist/tunnel/tunnel.d.ts +1 -2
- package/dist/tunnel/tunnel.js +9 -23
- package/dist/tunnel/tunnel.js.map +1 -1
- package/dist/vendor/pipenet.js +1688 -576
- package/dist/vendor/pipenet.js.map +4 -4
- package/dist/whoami.d.ts +15 -0
- package/dist/whoami.js +13 -0
- package/dist/whoami.js.map +1 -0
- package/package.json +15 -14
package/dist/vendor/pipenet.js
CHANGED
|
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
45
|
var require_delayed_stream = __commonJS({
|
|
46
46
|
"../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
|
|
47
47
|
var Stream = __require("stream").Stream;
|
|
48
|
-
var
|
|
48
|
+
var util4 = __require("util");
|
|
49
49
|
module.exports = DelayedStream;
|
|
50
50
|
function DelayedStream() {
|
|
51
51
|
this.source = null;
|
|
@@ -56,7 +56,7 @@ var require_delayed_stream = __commonJS({
|
|
|
56
56
|
this._released = false;
|
|
57
57
|
this._bufferedEvents = [];
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
util4.inherits(DelayedStream, Stream);
|
|
60
60
|
DelayedStream.create = function(source, options) {
|
|
61
61
|
var delayedStream = new this();
|
|
62
62
|
options = options || {};
|
|
@@ -135,7 +135,7 @@ var require_delayed_stream = __commonJS({
|
|
|
135
135
|
// ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
|
|
136
136
|
var require_combined_stream = __commonJS({
|
|
137
137
|
"../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
|
|
138
|
-
var
|
|
138
|
+
var util4 = __require("util");
|
|
139
139
|
var Stream = __require("stream").Stream;
|
|
140
140
|
var DelayedStream = require_delayed_stream();
|
|
141
141
|
module.exports = CombinedStream;
|
|
@@ -151,7 +151,7 @@ var require_combined_stream = __commonJS({
|
|
|
151
151
|
this._insideLoop = false;
|
|
152
152
|
this._pendingNext = false;
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
util4.inherits(CombinedStream, Stream);
|
|
155
155
|
CombinedStream.create = function(options) {
|
|
156
156
|
var combinedStream = new this();
|
|
157
157
|
options = options || {};
|
|
@@ -9593,9 +9593,9 @@ var require_get_proto = __commonJS({
|
|
|
9593
9593
|
}
|
|
9594
9594
|
});
|
|
9595
9595
|
|
|
9596
|
-
// ../../node_modules/.pnpm/hasown@2.0.
|
|
9596
|
+
// ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
|
|
9597
9597
|
var require_hasown = __commonJS({
|
|
9598
|
-
"../../node_modules/.pnpm/hasown@2.0.
|
|
9598
|
+
"../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module) {
|
|
9599
9599
|
"use strict";
|
|
9600
9600
|
var call = Function.prototype.call;
|
|
9601
9601
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -9978,9 +9978,9 @@ var require_es_set_tostringtag = __commonJS({
|
|
|
9978
9978
|
}
|
|
9979
9979
|
});
|
|
9980
9980
|
|
|
9981
|
-
// ../../node_modules/.pnpm/form-data@4.0.
|
|
9981
|
+
// ../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js
|
|
9982
9982
|
var require_populate = __commonJS({
|
|
9983
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
9983
|
+
"../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js"(exports, module) {
|
|
9984
9984
|
"use strict";
|
|
9985
9985
|
module.exports = function(dst, src) {
|
|
9986
9986
|
Object.keys(src).forEach(function(prop) {
|
|
@@ -9991,12 +9991,12 @@ var require_populate = __commonJS({
|
|
|
9991
9991
|
}
|
|
9992
9992
|
});
|
|
9993
9993
|
|
|
9994
|
-
// ../../node_modules/.pnpm/form-data@4.0.
|
|
9994
|
+
// ../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js
|
|
9995
9995
|
var require_form_data = __commonJS({
|
|
9996
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
9996
|
+
"../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js"(exports, module) {
|
|
9997
9997
|
"use strict";
|
|
9998
9998
|
var CombinedStream = require_combined_stream();
|
|
9999
|
-
var
|
|
9999
|
+
var util4 = __require("util");
|
|
10000
10000
|
var path = __require("path");
|
|
10001
10001
|
var http3 = __require("http");
|
|
10002
10002
|
var https2 = __require("https");
|
|
@@ -10009,6 +10009,9 @@ var require_form_data = __commonJS({
|
|
|
10009
10009
|
var setToStringTag = require_es_set_tostringtag();
|
|
10010
10010
|
var hasOwn = require_hasown();
|
|
10011
10011
|
var populate = require_populate();
|
|
10012
|
+
function escapeHeaderParam(str) {
|
|
10013
|
+
return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
|
|
10014
|
+
}
|
|
10012
10015
|
function FormData3(options) {
|
|
10013
10016
|
if (!(this instanceof FormData3)) {
|
|
10014
10017
|
return new FormData3(options);
|
|
@@ -10022,7 +10025,7 @@ var require_form_data = __commonJS({
|
|
|
10022
10025
|
this[option] = options[option];
|
|
10023
10026
|
}
|
|
10024
10027
|
}
|
|
10025
|
-
|
|
10028
|
+
util4.inherits(FormData3, CombinedStream);
|
|
10026
10029
|
FormData3.LINE_BREAK = "\r\n";
|
|
10027
10030
|
FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
10028
10031
|
FormData3.prototype.append = function(field, value, options) {
|
|
@@ -10098,7 +10101,7 @@ var require_form_data = __commonJS({
|
|
|
10098
10101
|
var contents = "";
|
|
10099
10102
|
var headers = {
|
|
10100
10103
|
// add custom disposition as third element or keep it two elements if not
|
|
10101
|
-
"Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
|
|
10104
|
+
"Content-Disposition": ["form-data", 'name="' + escapeHeaderParam(field) + '"'].concat(contentDisposition || []),
|
|
10102
10105
|
// if no content type. allow it to be empty array
|
|
10103
10106
|
"Content-Type": [].concat(contentType || [])
|
|
10104
10107
|
};
|
|
@@ -10132,7 +10135,7 @@ var require_form_data = __commonJS({
|
|
|
10132
10135
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
10133
10136
|
}
|
|
10134
10137
|
if (filename) {
|
|
10135
|
-
return 'filename="' + filename + '"';
|
|
10138
|
+
return 'filename="' + escapeHeaderParam(filename) + '"';
|
|
10136
10139
|
}
|
|
10137
10140
|
};
|
|
10138
10141
|
FormData3.prototype._getContentType = function(value, options) {
|
|
@@ -10426,9 +10429,9 @@ var require_ms = __commonJS({
|
|
|
10426
10429
|
}
|
|
10427
10430
|
});
|
|
10428
10431
|
|
|
10429
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
10432
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js
|
|
10430
10433
|
var require_common = __commonJS({
|
|
10431
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
10434
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module) {
|
|
10432
10435
|
function setup(env) {
|
|
10433
10436
|
createDebug.debug = createDebug;
|
|
10434
10437
|
createDebug.default = createDebug;
|
|
@@ -10603,9 +10606,9 @@ var require_common = __commonJS({
|
|
|
10603
10606
|
}
|
|
10604
10607
|
});
|
|
10605
10608
|
|
|
10606
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
10609
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js
|
|
10607
10610
|
var require_browser = __commonJS({
|
|
10608
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
10611
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module) {
|
|
10609
10612
|
exports.formatArgs = formatArgs;
|
|
10610
10613
|
exports.save = save;
|
|
10611
10614
|
exports.load = load;
|
|
@@ -10900,18 +10903,18 @@ var require_supports_color = __commonJS({
|
|
|
10900
10903
|
}
|
|
10901
10904
|
});
|
|
10902
10905
|
|
|
10903
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
10906
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js
|
|
10904
10907
|
var require_node = __commonJS({
|
|
10905
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
10908
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
|
|
10906
10909
|
var tty = __require("tty");
|
|
10907
|
-
var
|
|
10910
|
+
var util4 = __require("util");
|
|
10908
10911
|
exports.init = init;
|
|
10909
10912
|
exports.log = log3;
|
|
10910
10913
|
exports.formatArgs = formatArgs;
|
|
10911
10914
|
exports.save = save;
|
|
10912
10915
|
exports.load = load;
|
|
10913
10916
|
exports.useColors = useColors;
|
|
10914
|
-
exports.destroy =
|
|
10917
|
+
exports.destroy = util4.deprecate(
|
|
10915
10918
|
() => {
|
|
10916
10919
|
},
|
|
10917
10920
|
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
@@ -11042,7 +11045,7 @@ var require_node = __commonJS({
|
|
|
11042
11045
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
11043
11046
|
}
|
|
11044
11047
|
function log3(...args) {
|
|
11045
|
-
return process.stderr.write(
|
|
11048
|
+
return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
11046
11049
|
}
|
|
11047
11050
|
function save(namespaces) {
|
|
11048
11051
|
if (namespaces) {
|
|
@@ -11065,18 +11068,18 @@ var require_node = __commonJS({
|
|
|
11065
11068
|
var { formatters } = module.exports;
|
|
11066
11069
|
formatters.o = function(v) {
|
|
11067
11070
|
this.inspectOpts.colors = this.useColors;
|
|
11068
|
-
return
|
|
11071
|
+
return util4.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
11069
11072
|
};
|
|
11070
11073
|
formatters.O = function(v) {
|
|
11071
11074
|
this.inspectOpts.colors = this.useColors;
|
|
11072
|
-
return
|
|
11075
|
+
return util4.inspect(v, this.inspectOpts);
|
|
11073
11076
|
};
|
|
11074
11077
|
}
|
|
11075
11078
|
});
|
|
11076
11079
|
|
|
11077
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
11080
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js
|
|
11078
11081
|
var require_src = __commonJS({
|
|
11079
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
11082
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module) {
|
|
11080
11083
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
11081
11084
|
module.exports = require_browser();
|
|
11082
11085
|
} else {
|
|
@@ -11085,9 +11088,9 @@ var require_src = __commonJS({
|
|
|
11085
11088
|
}
|
|
11086
11089
|
});
|
|
11087
11090
|
|
|
11088
|
-
// ../../node_modules/.pnpm/agent-base@6.0.
|
|
11091
|
+
// ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js
|
|
11089
11092
|
var require_promisify = __commonJS({
|
|
11090
|
-
"../../node_modules/.pnpm/agent-base@6.0.
|
|
11093
|
+
"../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js"(exports) {
|
|
11091
11094
|
"use strict";
|
|
11092
11095
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11093
11096
|
function promisify(fn) {
|
|
@@ -11107,9 +11110,9 @@ var require_promisify = __commonJS({
|
|
|
11107
11110
|
}
|
|
11108
11111
|
});
|
|
11109
11112
|
|
|
11110
|
-
// ../../node_modules/.pnpm/agent-base@6.0.
|
|
11113
|
+
// ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js
|
|
11111
11114
|
var require_src2 = __commonJS({
|
|
11112
|
-
"../../node_modules/.pnpm/agent-base@6.0.
|
|
11115
|
+
"../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js"(exports, module) {
|
|
11113
11116
|
"use strict";
|
|
11114
11117
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11115
11118
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11290,9 +11293,9 @@ var require_src2 = __commonJS({
|
|
|
11290
11293
|
}
|
|
11291
11294
|
});
|
|
11292
11295
|
|
|
11293
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
11296
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
11294
11297
|
var require_parse_proxy_response = __commonJS({
|
|
11295
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
11298
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
11296
11299
|
"use strict";
|
|
11297
11300
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11298
11301
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11356,9 +11359,9 @@ var require_parse_proxy_response = __commonJS({
|
|
|
11356
11359
|
}
|
|
11357
11360
|
});
|
|
11358
11361
|
|
|
11359
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
|
|
11362
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js
|
|
11360
11363
|
var require_agent = __commonJS({
|
|
11361
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
|
|
11364
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
|
|
11362
11365
|
"use strict";
|
|
11363
11366
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
11364
11367
|
function adopt(value) {
|
|
@@ -11516,9 +11519,9 @@ var require_agent = __commonJS({
|
|
|
11516
11519
|
}
|
|
11517
11520
|
});
|
|
11518
11521
|
|
|
11519
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
|
|
11522
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js
|
|
11520
11523
|
var require_dist = __commonJS({
|
|
11521
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
|
|
11524
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
|
|
11522
11525
|
"use strict";
|
|
11523
11526
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11524
11527
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11535,9 +11538,9 @@ var require_dist = __commonJS({
|
|
|
11535
11538
|
}
|
|
11536
11539
|
});
|
|
11537
11540
|
|
|
11538
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.
|
|
11541
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
|
|
11539
11542
|
var require_debug = __commonJS({
|
|
11540
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.
|
|
11543
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
11541
11544
|
var debug3;
|
|
11542
11545
|
module.exports = function() {
|
|
11543
11546
|
if (!debug3) {
|
|
@@ -11555,9 +11558,9 @@ var require_debug = __commonJS({
|
|
|
11555
11558
|
}
|
|
11556
11559
|
});
|
|
11557
11560
|
|
|
11558
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.
|
|
11561
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
|
|
11559
11562
|
var require_follow_redirects = __commonJS({
|
|
11560
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.
|
|
11563
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
|
|
11561
11564
|
var url2 = __require("url");
|
|
11562
11565
|
var URL2 = url2.URL;
|
|
11563
11566
|
var http3 = __require("http");
|
|
@@ -12066,17 +12069,94 @@ var require_follow_redirects = __commonJS({
|
|
|
12066
12069
|
}
|
|
12067
12070
|
});
|
|
12068
12071
|
|
|
12069
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12072
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
|
|
12070
12073
|
function bind(fn, thisArg) {
|
|
12071
12074
|
return function wrap() {
|
|
12072
12075
|
return fn.apply(thisArg, arguments);
|
|
12073
12076
|
};
|
|
12074
12077
|
}
|
|
12075
12078
|
|
|
12076
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12079
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
|
|
12077
12080
|
var { toString } = Object.prototype;
|
|
12078
12081
|
var { getPrototypeOf } = Object;
|
|
12079
12082
|
var { iterator, toStringTag } = Symbol;
|
|
12083
|
+
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
12084
|
+
var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
|
|
12085
|
+
var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
|
|
12086
|
+
var isSafeAndFullyMutable = (obj) => {
|
|
12087
|
+
if (!Object.isExtensible(obj)) {
|
|
12088
|
+
return false;
|
|
12089
|
+
}
|
|
12090
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
12091
|
+
if (Object.getOwnPropertySymbols) {
|
|
12092
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
12093
|
+
}
|
|
12094
|
+
return props.every((prop) => {
|
|
12095
|
+
if (isUnsafeObjectKey(prop)) {
|
|
12096
|
+
return false;
|
|
12097
|
+
}
|
|
12098
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
12099
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
12100
|
+
});
|
|
12101
|
+
};
|
|
12102
|
+
var hasOwnInPrototypeChain = (thing, prop) => {
|
|
12103
|
+
let obj = thing;
|
|
12104
|
+
const seen = [];
|
|
12105
|
+
while (obj != null) {
|
|
12106
|
+
if (seen.indexOf(obj) !== -1) {
|
|
12107
|
+
return false;
|
|
12108
|
+
}
|
|
12109
|
+
seen.push(obj);
|
|
12110
|
+
const prototype2 = getPrototypeOf(obj);
|
|
12111
|
+
if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
|
|
12112
|
+
return false;
|
|
12113
|
+
}
|
|
12114
|
+
if (hasOwnProperty(obj, prop)) {
|
|
12115
|
+
return true;
|
|
12116
|
+
}
|
|
12117
|
+
obj = prototype2;
|
|
12118
|
+
}
|
|
12119
|
+
return false;
|
|
12120
|
+
};
|
|
12121
|
+
var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
|
|
12122
|
+
var toSafeFlatObject = (thing) => {
|
|
12123
|
+
if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
|
|
12124
|
+
return thing;
|
|
12125
|
+
}
|
|
12126
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
12127
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
12128
|
+
return thing;
|
|
12129
|
+
}
|
|
12130
|
+
const result = /* @__PURE__ */ Object.create(null);
|
|
12131
|
+
const merged = /* @__PURE__ */ Object.create(null);
|
|
12132
|
+
const seen = [];
|
|
12133
|
+
let current = thing;
|
|
12134
|
+
while (current != null) {
|
|
12135
|
+
if (seen.indexOf(current) !== -1) {
|
|
12136
|
+
break;
|
|
12137
|
+
}
|
|
12138
|
+
seen.push(current);
|
|
12139
|
+
const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
12140
|
+
if (isPrototypeBoundary(current, prototype2, current === thing)) {
|
|
12141
|
+
break;
|
|
12142
|
+
}
|
|
12143
|
+
const props = Object.getOwnPropertyNames(current);
|
|
12144
|
+
if (Object.getOwnPropertySymbols) {
|
|
12145
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
12146
|
+
}
|
|
12147
|
+
for (const prop of props) {
|
|
12148
|
+
if (isUnsafeObjectKey(prop)) {
|
|
12149
|
+
continue;
|
|
12150
|
+
}
|
|
12151
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
12152
|
+
result[prop] = thing[prop];
|
|
12153
|
+
merged[prop] = true;
|
|
12154
|
+
}
|
|
12155
|
+
}
|
|
12156
|
+
current = prototype2;
|
|
12157
|
+
}
|
|
12158
|
+
return result;
|
|
12159
|
+
};
|
|
12080
12160
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
12081
12161
|
const str = toString.call(thing);
|
|
12082
12162
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -12107,11 +12187,14 @@ var isNumber = typeOfTest("number");
|
|
|
12107
12187
|
var isObject = (thing) => thing !== null && typeof thing === "object";
|
|
12108
12188
|
var isBoolean = (thing) => thing === true || thing === false;
|
|
12109
12189
|
var isPlainObject = (val) => {
|
|
12110
|
-
if (
|
|
12190
|
+
if (!isObject(val)) {
|
|
12111
12191
|
return false;
|
|
12112
12192
|
}
|
|
12113
12193
|
const prototype2 = getPrototypeOf(val);
|
|
12114
|
-
return (prototype2 === null || prototype2 === Object.prototype ||
|
|
12194
|
+
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
12195
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
12196
|
+
// only through shared or terminal prototype boundaries.
|
|
12197
|
+
!hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
|
|
12115
12198
|
};
|
|
12116
12199
|
var isEmptyObject = (val) => {
|
|
12117
12200
|
if (!isObject(val) || isBuffer(val)) {
|
|
@@ -12131,6 +12214,7 @@ var isReactNativeBlob = (value) => {
|
|
|
12131
12214
|
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
12132
12215
|
var isBlob = kindOfTest("Blob");
|
|
12133
12216
|
var isFileList = kindOfTest("FileList");
|
|
12217
|
+
var isSet = kindOfTest("Set");
|
|
12134
12218
|
var isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
12135
12219
|
function getGlobal() {
|
|
12136
12220
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
@@ -12215,7 +12299,7 @@ function merge(...objs) {
|
|
|
12215
12299
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
12216
12300
|
return;
|
|
12217
12301
|
}
|
|
12218
|
-
const targetKey = caseless && findKey(result, key) || key;
|
|
12302
|
+
const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
|
|
12219
12303
|
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
12220
12304
|
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
12221
12305
|
result[targetKey] = merge(existing, val);
|
|
@@ -12228,7 +12312,21 @@ function merge(...objs) {
|
|
|
12228
12312
|
}
|
|
12229
12313
|
};
|
|
12230
12314
|
for (let i = 0, l = objs.length; i < l; i++) {
|
|
12231
|
-
|
|
12315
|
+
const source = objs[i];
|
|
12316
|
+
if (!source || isBuffer(source)) {
|
|
12317
|
+
continue;
|
|
12318
|
+
}
|
|
12319
|
+
forEach(source, assignValue);
|
|
12320
|
+
if (typeof source !== "object" || isArray(source)) {
|
|
12321
|
+
continue;
|
|
12322
|
+
}
|
|
12323
|
+
const symbols = Object.getOwnPropertySymbols(source);
|
|
12324
|
+
for (let j = 0; j < symbols.length; j++) {
|
|
12325
|
+
const symbol = symbols[j];
|
|
12326
|
+
if (propertyIsEnumerable.call(source, symbol)) {
|
|
12327
|
+
assignValue(source[symbol], symbol);
|
|
12328
|
+
}
|
|
12329
|
+
}
|
|
12232
12330
|
}
|
|
12233
12331
|
return result;
|
|
12234
12332
|
}
|
|
@@ -12350,7 +12448,7 @@ var toCamelCase = (str) => {
|
|
|
12350
12448
|
return p1.toUpperCase() + p2;
|
|
12351
12449
|
});
|
|
12352
12450
|
};
|
|
12353
|
-
var
|
|
12451
|
+
var { propertyIsEnumerable } = Object.prototype;
|
|
12354
12452
|
var isRegExp = kindOfTest("RegExp");
|
|
12355
12453
|
var reduceDescriptors = (obj, reducer) => {
|
|
12356
12454
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -12412,11 +12510,20 @@ var toJSONObject = (obj) => {
|
|
|
12412
12510
|
}
|
|
12413
12511
|
if (!("toJSON" in source)) {
|
|
12414
12512
|
visited.add(source);
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12513
|
+
let target;
|
|
12514
|
+
if (isSet(source)) {
|
|
12515
|
+
target = [];
|
|
12516
|
+
for (const value of source) {
|
|
12517
|
+
const reducedValue = visit(value);
|
|
12518
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
12519
|
+
}
|
|
12520
|
+
} else {
|
|
12521
|
+
target = isArray(source) ? [] : {};
|
|
12522
|
+
forEach(source, (value, key) => {
|
|
12523
|
+
const reducedValue = visit(value);
|
|
12524
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
12525
|
+
});
|
|
12526
|
+
}
|
|
12420
12527
|
visited.delete(source);
|
|
12421
12528
|
return target;
|
|
12422
12529
|
}
|
|
@@ -12449,6 +12556,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
12449
12556
|
})(typeof setImmediate === "function", isFunction(_global.postMessage));
|
|
12450
12557
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
12451
12558
|
var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
12559
|
+
var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
|
|
12452
12560
|
var utils_default = {
|
|
12453
12561
|
isArray,
|
|
12454
12562
|
isArrayBuffer,
|
|
@@ -12494,6 +12602,9 @@ var utils_default = {
|
|
|
12494
12602
|
hasOwnProperty,
|
|
12495
12603
|
hasOwnProp: hasOwnProperty,
|
|
12496
12604
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
12605
|
+
hasOwnInPrototypeChain,
|
|
12606
|
+
getSafeProp,
|
|
12607
|
+
toSafeFlatObject,
|
|
12497
12608
|
reduceDescriptors,
|
|
12498
12609
|
freezeMethods,
|
|
12499
12610
|
toObjectSet,
|
|
@@ -12509,10 +12620,11 @@ var utils_default = {
|
|
|
12509
12620
|
isThenable,
|
|
12510
12621
|
setImmediate: _setImmediate,
|
|
12511
12622
|
asap,
|
|
12512
|
-
isIterable
|
|
12623
|
+
isIterable,
|
|
12624
|
+
isSafeIterable
|
|
12513
12625
|
};
|
|
12514
12626
|
|
|
12515
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12627
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
|
|
12516
12628
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
12517
12629
|
"age",
|
|
12518
12630
|
"authorization",
|
|
@@ -12541,23 +12653,24 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
12541
12653
|
i = line.indexOf(":");
|
|
12542
12654
|
key = line.substring(0, i).trim().toLowerCase();
|
|
12543
12655
|
val = line.substring(i + 1).trim();
|
|
12544
|
-
|
|
12656
|
+
const hasKey = utils_default.hasOwnProp(parsed, key);
|
|
12657
|
+
if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
|
|
12545
12658
|
return;
|
|
12546
12659
|
}
|
|
12547
12660
|
if (key === "set-cookie") {
|
|
12548
|
-
if (
|
|
12661
|
+
if (hasKey) {
|
|
12549
12662
|
parsed[key].push(val);
|
|
12550
12663
|
} else {
|
|
12551
12664
|
parsed[key] = [val];
|
|
12552
12665
|
}
|
|
12553
12666
|
} else {
|
|
12554
|
-
parsed[key] =
|
|
12667
|
+
parsed[key] = hasKey ? parsed[key] + ", " + val : val;
|
|
12555
12668
|
}
|
|
12556
12669
|
});
|
|
12557
12670
|
return parsed;
|
|
12558
12671
|
};
|
|
12559
12672
|
|
|
12560
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12673
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
12561
12674
|
function trimSPorHTAB(str) {
|
|
12562
12675
|
let start = 0;
|
|
12563
12676
|
let end = str.length;
|
|
@@ -12595,7 +12708,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
12595
12708
|
return byteStringHeaders;
|
|
12596
12709
|
}
|
|
12597
12710
|
|
|
12598
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12711
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
|
|
12599
12712
|
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
12600
12713
|
function normalizeHeader(header) {
|
|
12601
12714
|
return header && String(header).trim().toLowerCase();
|
|
@@ -12615,6 +12728,90 @@ function parseTokens(str) {
|
|
|
12615
12728
|
}
|
|
12616
12729
|
return tokens;
|
|
12617
12730
|
}
|
|
12731
|
+
var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
12732
|
+
function trimOWS(value) {
|
|
12733
|
+
let start = 0;
|
|
12734
|
+
let end = value.length;
|
|
12735
|
+
while (start < end) {
|
|
12736
|
+
const code = value.charCodeAt(start);
|
|
12737
|
+
if (code !== 9 && code !== 32) {
|
|
12738
|
+
break;
|
|
12739
|
+
}
|
|
12740
|
+
start += 1;
|
|
12741
|
+
}
|
|
12742
|
+
while (end > start) {
|
|
12743
|
+
const code = value.charCodeAt(end - 1);
|
|
12744
|
+
if (code !== 9 && code !== 32) {
|
|
12745
|
+
break;
|
|
12746
|
+
}
|
|
12747
|
+
end -= 1;
|
|
12748
|
+
}
|
|
12749
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
12750
|
+
}
|
|
12751
|
+
function decodeQuotedString(value) {
|
|
12752
|
+
const last = value.length - 1;
|
|
12753
|
+
if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
|
|
12754
|
+
return value;
|
|
12755
|
+
}
|
|
12756
|
+
let decoded = "";
|
|
12757
|
+
for (let i = 1; i < last; i++) {
|
|
12758
|
+
const code = value.charCodeAt(i);
|
|
12759
|
+
if (code === 34) {
|
|
12760
|
+
return value;
|
|
12761
|
+
}
|
|
12762
|
+
if (code === 92) {
|
|
12763
|
+
i += 1;
|
|
12764
|
+
if (i >= last) {
|
|
12765
|
+
return value;
|
|
12766
|
+
}
|
|
12767
|
+
}
|
|
12768
|
+
decoded += value[i];
|
|
12769
|
+
}
|
|
12770
|
+
return decoded;
|
|
12771
|
+
}
|
|
12772
|
+
function parseParameters(value) {
|
|
12773
|
+
const parameters = /* @__PURE__ */ Object.create(null);
|
|
12774
|
+
const str = String(value);
|
|
12775
|
+
let start = 0;
|
|
12776
|
+
let quoted = false;
|
|
12777
|
+
let escaped = false;
|
|
12778
|
+
function parseParameter(end) {
|
|
12779
|
+
const part = trimOWS(str.slice(start, end));
|
|
12780
|
+
const equals = part.indexOf("=");
|
|
12781
|
+
if (equals < 1) {
|
|
12782
|
+
return;
|
|
12783
|
+
}
|
|
12784
|
+
const name = trimOWS(part.slice(0, equals));
|
|
12785
|
+
if (!parameterNameRE.test(name)) {
|
|
12786
|
+
return;
|
|
12787
|
+
}
|
|
12788
|
+
const normalizedName = name.toLowerCase();
|
|
12789
|
+
if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
|
|
12790
|
+
return;
|
|
12791
|
+
}
|
|
12792
|
+
const parameterValue = trimOWS(part.slice(equals + 1));
|
|
12793
|
+
parameters[normalizedName] = decodeQuotedString(parameterValue);
|
|
12794
|
+
}
|
|
12795
|
+
for (let i = 0; i < str.length; i++) {
|
|
12796
|
+
const code = str.charCodeAt(i);
|
|
12797
|
+
if (quoted) {
|
|
12798
|
+
if (escaped) {
|
|
12799
|
+
escaped = false;
|
|
12800
|
+
} else if (code === 92) {
|
|
12801
|
+
escaped = true;
|
|
12802
|
+
} else if (code === 34) {
|
|
12803
|
+
quoted = false;
|
|
12804
|
+
}
|
|
12805
|
+
} else if (code === 34) {
|
|
12806
|
+
quoted = true;
|
|
12807
|
+
} else if (code === 44 || code === 59) {
|
|
12808
|
+
parseParameter(i);
|
|
12809
|
+
start = i + 1;
|
|
12810
|
+
}
|
|
12811
|
+
}
|
|
12812
|
+
parseParameter(str.length);
|
|
12813
|
+
return parameters;
|
|
12814
|
+
}
|
|
12618
12815
|
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
12619
12816
|
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
12620
12817
|
if (utils_default.isFunction(filter2)) {
|
|
@@ -12659,7 +12856,7 @@ var AxiosHeaders = class {
|
|
|
12659
12856
|
function setHeader(_value, _header, _rewrite) {
|
|
12660
12857
|
const lHeader = normalizeHeader(_header);
|
|
12661
12858
|
if (!lHeader) {
|
|
12662
|
-
|
|
12859
|
+
return;
|
|
12663
12860
|
}
|
|
12664
12861
|
const key = utils_default.findKey(self2, lHeader);
|
|
12665
12862
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
@@ -12671,13 +12868,19 @@ var AxiosHeaders = class {
|
|
|
12671
12868
|
setHeaders(header, valueOrRewrite);
|
|
12672
12869
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
12673
12870
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
12674
|
-
} else if (utils_default.isObject(header) && utils_default.
|
|
12675
|
-
let obj =
|
|
12871
|
+
} else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
|
|
12872
|
+
let obj = /* @__PURE__ */ Object.create(null), dest, key;
|
|
12676
12873
|
for (const entry of header) {
|
|
12677
12874
|
if (!utils_default.isArray(entry)) {
|
|
12678
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
12875
|
+
throw new TypeError("Object iterator must return a key-value pair");
|
|
12876
|
+
}
|
|
12877
|
+
key = entry[0];
|
|
12878
|
+
if (utils_default.hasOwnProp(obj, key)) {
|
|
12879
|
+
dest = obj[key];
|
|
12880
|
+
obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
|
|
12881
|
+
} else {
|
|
12882
|
+
obj[key] = entry[1];
|
|
12679
12883
|
}
|
|
12680
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
12681
12884
|
}
|
|
12682
12885
|
setHeaders(obj, valueOrRewrite);
|
|
12683
12886
|
} else {
|
|
@@ -12784,7 +12987,8 @@ var AxiosHeaders = class {
|
|
|
12784
12987
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
12785
12988
|
}
|
|
12786
12989
|
getSetCookie() {
|
|
12787
|
-
|
|
12990
|
+
const value = this.get("set-cookie");
|
|
12991
|
+
return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
|
|
12788
12992
|
}
|
|
12789
12993
|
get [Symbol.toStringTag]() {
|
|
12790
12994
|
return "AxiosHeaders";
|
|
@@ -12792,6 +12996,9 @@ var AxiosHeaders = class {
|
|
|
12792
12996
|
static from(thing) {
|
|
12793
12997
|
return thing instanceof this ? thing : new this(thing);
|
|
12794
12998
|
}
|
|
12999
|
+
static parseParameters(value) {
|
|
13000
|
+
return parseParameters(value);
|
|
13001
|
+
}
|
|
12795
13002
|
static concat(first, ...targets) {
|
|
12796
13003
|
const computed = new this(first);
|
|
12797
13004
|
targets.forEach((target) => computed.set(target));
|
|
@@ -12834,7 +13041,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
12834
13041
|
utils_default.freezeMethods(AxiosHeaders);
|
|
12835
13042
|
var AxiosHeaders_default = AxiosHeaders;
|
|
12836
13043
|
|
|
12837
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13044
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
|
|
12838
13045
|
var REDACTED = "[REDACTED ****]";
|
|
12839
13046
|
function hasOwnOrPrototypeToJSON(source) {
|
|
12840
13047
|
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
@@ -12887,10 +13094,37 @@ function redactConfig(config, redactKeys) {
|
|
|
12887
13094
|
};
|
|
12888
13095
|
return visit(config);
|
|
12889
13096
|
}
|
|
13097
|
+
function stringifySafely(value) {
|
|
13098
|
+
try {
|
|
13099
|
+
return String(value);
|
|
13100
|
+
} catch (err) {
|
|
13101
|
+
return "";
|
|
13102
|
+
}
|
|
13103
|
+
}
|
|
13104
|
+
function aggregateErrorMessage(error) {
|
|
13105
|
+
const message = error.errors.map((entry) => {
|
|
13106
|
+
try {
|
|
13107
|
+
return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
|
|
13108
|
+
} catch (err) {
|
|
13109
|
+
return "";
|
|
13110
|
+
}
|
|
13111
|
+
}).filter(Boolean).join("; ");
|
|
13112
|
+
return message || error.name || "AggregateError";
|
|
13113
|
+
}
|
|
12890
13114
|
var AxiosError = class _AxiosError extends Error {
|
|
12891
13115
|
static from(error, code, config, request, response, customProps) {
|
|
12892
|
-
|
|
12893
|
-
|
|
13116
|
+
let message = error.message;
|
|
13117
|
+
if (!message && utils_default.isArray(error.errors) && error.errors.length) {
|
|
13118
|
+
message = aggregateErrorMessage(error);
|
|
13119
|
+
}
|
|
13120
|
+
const axiosError = new _AxiosError(message, code || error.code, config, request, response);
|
|
13121
|
+
Object.defineProperty(axiosError, "cause", {
|
|
13122
|
+
__proto__: null,
|
|
13123
|
+
value: error,
|
|
13124
|
+
writable: true,
|
|
13125
|
+
enumerable: false,
|
|
13126
|
+
configurable: true
|
|
13127
|
+
});
|
|
12894
13128
|
axiosError.name = error.name;
|
|
12895
13129
|
if (error.status != null && axiosError.status == null) {
|
|
12896
13130
|
axiosError.status = error.status;
|
|
@@ -12969,11 +13203,22 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
|
12969
13203
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
12970
13204
|
var AxiosError_default = AxiosError;
|
|
12971
13205
|
|
|
12972
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13206
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
12973
13207
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
12974
13208
|
var FormData_default = import_form_data.default;
|
|
12975
13209
|
|
|
12976
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13210
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
|
|
13211
|
+
var Buffer_default = {
|
|
13212
|
+
isBufferAvailable() {
|
|
13213
|
+
return typeof Buffer !== "undefined";
|
|
13214
|
+
},
|
|
13215
|
+
from(value) {
|
|
13216
|
+
return Buffer.from(value);
|
|
13217
|
+
}
|
|
13218
|
+
};
|
|
13219
|
+
|
|
13220
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
|
|
13221
|
+
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
12977
13222
|
function isVisitable(thing) {
|
|
12978
13223
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
12979
13224
|
}
|
|
@@ -12998,25 +13243,18 @@ function toFormData(obj, formData, options) {
|
|
|
12998
13243
|
throw new TypeError("target must be an object");
|
|
12999
13244
|
}
|
|
13000
13245
|
formData = formData || new (FormData_default || FormData)();
|
|
13001
|
-
|
|
13002
|
-
options,
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
}
|
|
13012
|
-
);
|
|
13013
|
-
const metaTokens = options.metaTokens;
|
|
13014
|
-
const visitor = options.visitor || defaultVisitor;
|
|
13015
|
-
const dots = options.dots;
|
|
13016
|
-
const indexes = options.indexes;
|
|
13017
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
13018
|
-
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
13246
|
+
const option = (name, fallback) => {
|
|
13247
|
+
const value = utils_default.getSafeProp(options, name);
|
|
13248
|
+
return utils_default.isUndefined(value) ? fallback : value;
|
|
13249
|
+
};
|
|
13250
|
+
const metaTokens = option("metaTokens", true);
|
|
13251
|
+
const visitor = option("visitor") || defaultVisitor;
|
|
13252
|
+
const dots = option("dots", false);
|
|
13253
|
+
const indexes = option("indexes", false);
|
|
13254
|
+
const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
|
|
13255
|
+
const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
13019
13256
|
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
13257
|
+
const stack = [];
|
|
13020
13258
|
if (!utils_default.isFunction(visitor)) {
|
|
13021
13259
|
throw new TypeError("visitor must be a function");
|
|
13022
13260
|
}
|
|
@@ -13032,10 +13270,44 @@ function toFormData(obj, formData, options) {
|
|
|
13032
13270
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
13033
13271
|
}
|
|
13034
13272
|
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
13035
|
-
|
|
13273
|
+
if (useBlob && typeof _Blob === "function") {
|
|
13274
|
+
return new _Blob([value]);
|
|
13275
|
+
}
|
|
13276
|
+
if (Buffer_default && Buffer_default.isBufferAvailable()) {
|
|
13277
|
+
return Buffer_default.from(value);
|
|
13278
|
+
}
|
|
13279
|
+
throw new AxiosError_default(
|
|
13280
|
+
"Blob is not supported. Use a Buffer instead.",
|
|
13281
|
+
AxiosError_default.ERR_NOT_SUPPORT
|
|
13282
|
+
);
|
|
13036
13283
|
}
|
|
13037
13284
|
return value;
|
|
13038
13285
|
}
|
|
13286
|
+
function throwIfMaxDepthExceeded(depth) {
|
|
13287
|
+
if (depth > maxDepth) {
|
|
13288
|
+
throw new AxiosError_default(
|
|
13289
|
+
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
13290
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
13291
|
+
);
|
|
13292
|
+
}
|
|
13293
|
+
}
|
|
13294
|
+
function stringifyWithDepthLimit(value, depth) {
|
|
13295
|
+
if (maxDepth === Infinity) {
|
|
13296
|
+
return JSON.stringify(value);
|
|
13297
|
+
}
|
|
13298
|
+
const ancestors = [];
|
|
13299
|
+
return JSON.stringify(value, function limitDepth(_key, currentValue) {
|
|
13300
|
+
if (!utils_default.isObject(currentValue)) {
|
|
13301
|
+
return currentValue;
|
|
13302
|
+
}
|
|
13303
|
+
while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
|
|
13304
|
+
ancestors.pop();
|
|
13305
|
+
}
|
|
13306
|
+
ancestors.push(currentValue);
|
|
13307
|
+
throwIfMaxDepthExceeded(depth + ancestors.length - 1);
|
|
13308
|
+
return currentValue;
|
|
13309
|
+
});
|
|
13310
|
+
}
|
|
13039
13311
|
function defaultVisitor(value, key, path) {
|
|
13040
13312
|
let arr = value;
|
|
13041
13313
|
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
@@ -13045,7 +13317,7 @@ function toFormData(obj, formData, options) {
|
|
|
13045
13317
|
if (value && !path && typeof value === "object") {
|
|
13046
13318
|
if (utils_default.endsWith(key, "{}")) {
|
|
13047
13319
|
key = metaTokens ? key : key.slice(0, -2);
|
|
13048
|
-
value =
|
|
13320
|
+
value = stringifyWithDepthLimit(value, 1);
|
|
13049
13321
|
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
13050
13322
|
key = removeBrackets(key);
|
|
13051
13323
|
arr.forEach(function each(el, index) {
|
|
@@ -13064,7 +13336,6 @@ function toFormData(obj, formData, options) {
|
|
|
13064
13336
|
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
13065
13337
|
return false;
|
|
13066
13338
|
}
|
|
13067
|
-
const stack = [];
|
|
13068
13339
|
const exposedHelpers = Object.assign(predicates, {
|
|
13069
13340
|
defaultVisitor,
|
|
13070
13341
|
convertValue,
|
|
@@ -13072,14 +13343,9 @@ function toFormData(obj, formData, options) {
|
|
|
13072
13343
|
});
|
|
13073
13344
|
function build(value, path, depth = 0) {
|
|
13074
13345
|
if (utils_default.isUndefined(value)) return;
|
|
13075
|
-
|
|
13076
|
-
throw new AxiosError_default(
|
|
13077
|
-
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
13078
|
-
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
13079
|
-
);
|
|
13080
|
-
}
|
|
13346
|
+
throwIfMaxDepthExceeded(depth);
|
|
13081
13347
|
if (stack.indexOf(value) !== -1) {
|
|
13082
|
-
throw Error("Circular reference detected in " + path.join("."));
|
|
13348
|
+
throw new Error("Circular reference detected in " + path.join("."));
|
|
13083
13349
|
}
|
|
13084
13350
|
stack.push(value);
|
|
13085
13351
|
utils_default.forEach(value, function each(el, key) {
|
|
@@ -13098,7 +13364,7 @@ function toFormData(obj, formData, options) {
|
|
|
13098
13364
|
}
|
|
13099
13365
|
var toFormData_default = toFormData;
|
|
13100
13366
|
|
|
13101
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13367
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
13102
13368
|
function encode(str) {
|
|
13103
13369
|
const charMap = {
|
|
13104
13370
|
"!": "%21",
|
|
@@ -13121,16 +13387,14 @@ prototype.append = function append(name, value) {
|
|
|
13121
13387
|
this._pairs.push([name, value]);
|
|
13122
13388
|
};
|
|
13123
13389
|
prototype.toString = function toString2(encoder) {
|
|
13124
|
-
const _encode = encoder ?
|
|
13125
|
-
return encoder.call(this, value, encode);
|
|
13126
|
-
} : encode;
|
|
13390
|
+
const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
|
|
13127
13391
|
return this._pairs.map(function each(pair) {
|
|
13128
13392
|
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
13129
13393
|
}, "").join("&");
|
|
13130
13394
|
};
|
|
13131
13395
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
13132
13396
|
|
|
13133
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13397
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
|
|
13134
13398
|
function encode2(val) {
|
|
13135
13399
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
13136
13400
|
}
|
|
@@ -13138,11 +13402,12 @@ function buildURL(url2, params, options) {
|
|
|
13138
13402
|
if (!params) {
|
|
13139
13403
|
return url2;
|
|
13140
13404
|
}
|
|
13141
|
-
|
|
13405
|
+
url2 = url2 || "";
|
|
13142
13406
|
const _options = utils_default.isFunction(options) ? {
|
|
13143
13407
|
serialize: options
|
|
13144
13408
|
} : options;
|
|
13145
|
-
const
|
|
13409
|
+
const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
|
|
13410
|
+
const serializeFn = utils_default.getSafeProp(_options, "serialize");
|
|
13146
13411
|
let serializedParams;
|
|
13147
13412
|
if (serializeFn) {
|
|
13148
13413
|
serializedParams = serializeFn(params, _options);
|
|
@@ -13159,10 +13424,48 @@ function buildURL(url2, params, options) {
|
|
|
13159
13424
|
return url2;
|
|
13160
13425
|
}
|
|
13161
13426
|
|
|
13162
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13427
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
|
|
13428
|
+
var $internals2 = /* @__PURE__ */ Symbol("internals");
|
|
13429
|
+
function countHandlers(handlers) {
|
|
13430
|
+
return handlers ? handlers.length : 0;
|
|
13431
|
+
}
|
|
13432
|
+
function trimHandlers(handlers) {
|
|
13433
|
+
if (!handlers) {
|
|
13434
|
+
return;
|
|
13435
|
+
}
|
|
13436
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
13437
|
+
handlers.pop();
|
|
13438
|
+
}
|
|
13439
|
+
}
|
|
13440
|
+
function syncHandlerEntries(manager, internals) {
|
|
13441
|
+
const handlers = manager.handlers;
|
|
13442
|
+
const length = countHandlers(handlers);
|
|
13443
|
+
if (handlers !== internals.handlersRef) {
|
|
13444
|
+
internals.handlersRef = handlers;
|
|
13445
|
+
internals.handlerEntries.clear();
|
|
13446
|
+
} else if (length !== internals.handlersLength) {
|
|
13447
|
+
if (!length) {
|
|
13448
|
+
internals.handlerEntries.clear();
|
|
13449
|
+
} else {
|
|
13450
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
13451
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
13452
|
+
internals.handlerEntries.delete(id);
|
|
13453
|
+
}
|
|
13454
|
+
});
|
|
13455
|
+
}
|
|
13456
|
+
}
|
|
13457
|
+
internals.handlersLength = length;
|
|
13458
|
+
}
|
|
13163
13459
|
var InterceptorManager = class {
|
|
13164
13460
|
constructor() {
|
|
13165
13461
|
this.handlers = [];
|
|
13462
|
+
this[$internals2] = {
|
|
13463
|
+
handlersRef: this.handlers,
|
|
13464
|
+
handlersLength: this.handlers.length,
|
|
13465
|
+
handlerEntries: /* @__PURE__ */ new Map(),
|
|
13466
|
+
iterationDepth: 0,
|
|
13467
|
+
nextId: 0
|
|
13468
|
+
};
|
|
13166
13469
|
}
|
|
13167
13470
|
/**
|
|
13168
13471
|
* Add a new interceptor to the stack
|
|
@@ -13174,13 +13477,25 @@ var InterceptorManager = class {
|
|
|
13174
13477
|
* @return {Number} An ID used to remove interceptor later
|
|
13175
13478
|
*/
|
|
13176
13479
|
use(fulfilled, rejected, options) {
|
|
13177
|
-
|
|
13480
|
+
const handler = {
|
|
13178
13481
|
fulfilled,
|
|
13179
13482
|
rejected,
|
|
13180
13483
|
synchronous: options ? options.synchronous : false,
|
|
13181
13484
|
runWhen: options ? options.runWhen : null
|
|
13485
|
+
};
|
|
13486
|
+
const internals = this[$internals2];
|
|
13487
|
+
if (this.handlers == null) {
|
|
13488
|
+
this.handlers = [];
|
|
13489
|
+
}
|
|
13490
|
+
syncHandlerEntries(this, internals);
|
|
13491
|
+
const id = internals.nextId++;
|
|
13492
|
+
this.handlers.push(handler);
|
|
13493
|
+
internals.handlerEntries.set(id, {
|
|
13494
|
+
handler,
|
|
13495
|
+
index: this.handlers.length - 1
|
|
13182
13496
|
});
|
|
13183
|
-
|
|
13497
|
+
internals.handlersLength = this.handlers.length;
|
|
13498
|
+
return id;
|
|
13184
13499
|
}
|
|
13185
13500
|
/**
|
|
13186
13501
|
* Remove an interceptor from the stack
|
|
@@ -13190,8 +13505,19 @@ var InterceptorManager = class {
|
|
|
13190
13505
|
* @returns {void}
|
|
13191
13506
|
*/
|
|
13192
13507
|
eject(id) {
|
|
13193
|
-
|
|
13194
|
-
|
|
13508
|
+
const internals = this[$internals2];
|
|
13509
|
+
syncHandlerEntries(this, internals);
|
|
13510
|
+
const entry = internals.handlerEntries.get(id);
|
|
13511
|
+
if (entry) {
|
|
13512
|
+
internals.handlerEntries.delete(id);
|
|
13513
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
13514
|
+
return;
|
|
13515
|
+
}
|
|
13516
|
+
this.handlers[entry.index] = null;
|
|
13517
|
+
if (!internals.iterationDepth) {
|
|
13518
|
+
trimHandlers(this.handlers);
|
|
13519
|
+
internals.handlersLength = this.handlers.length;
|
|
13520
|
+
}
|
|
13195
13521
|
}
|
|
13196
13522
|
}
|
|
13197
13523
|
/**
|
|
@@ -13202,6 +13528,7 @@ var InterceptorManager = class {
|
|
|
13202
13528
|
clear() {
|
|
13203
13529
|
if (this.handlers) {
|
|
13204
13530
|
this.handlers = [];
|
|
13531
|
+
syncHandlerEntries(this, this[$internals2]);
|
|
13205
13532
|
}
|
|
13206
13533
|
}
|
|
13207
13534
|
/**
|
|
@@ -13215,31 +13542,44 @@ var InterceptorManager = class {
|
|
|
13215
13542
|
* @returns {void}
|
|
13216
13543
|
*/
|
|
13217
13544
|
forEach(fn) {
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13545
|
+
const internals = this[$internals2];
|
|
13546
|
+
syncHandlerEntries(this, internals);
|
|
13547
|
+
internals.iterationDepth++;
|
|
13548
|
+
try {
|
|
13549
|
+
utils_default.forEach(this.handlers, function forEachHandler(h) {
|
|
13550
|
+
if (h !== null) {
|
|
13551
|
+
fn(h);
|
|
13552
|
+
}
|
|
13553
|
+
});
|
|
13554
|
+
} finally {
|
|
13555
|
+
if (!--internals.iterationDepth) {
|
|
13556
|
+
syncHandlerEntries(this, internals);
|
|
13557
|
+
trimHandlers(this.handlers);
|
|
13558
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
13221
13559
|
}
|
|
13222
|
-
}
|
|
13560
|
+
}
|
|
13223
13561
|
}
|
|
13224
13562
|
};
|
|
13225
13563
|
var InterceptorManager_default = InterceptorManager;
|
|
13226
13564
|
|
|
13227
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13565
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
|
|
13228
13566
|
var transitional_default = {
|
|
13229
13567
|
silentJSONParsing: true,
|
|
13230
13568
|
forcedJSONParsing: true,
|
|
13231
13569
|
clarifyTimeoutError: false,
|
|
13232
|
-
legacyInterceptorReqResOrdering: true
|
|
13570
|
+
legacyInterceptorReqResOrdering: true,
|
|
13571
|
+
advertiseZstdAcceptEncoding: false,
|
|
13572
|
+
validateStatusUndefinedResolves: true
|
|
13233
13573
|
};
|
|
13234
13574
|
|
|
13235
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13575
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13236
13576
|
import crypto from "crypto";
|
|
13237
13577
|
|
|
13238
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13578
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
13239
13579
|
import url from "url";
|
|
13240
13580
|
var URLSearchParams_default = url.URLSearchParams;
|
|
13241
13581
|
|
|
13242
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13582
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13243
13583
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
13244
13584
|
var DIGIT = "0123456789";
|
|
13245
13585
|
var ALPHABET = {
|
|
@@ -13269,7 +13609,7 @@ var node_default = {
|
|
|
13269
13609
|
protocols: ["http", "https", "file", "data"]
|
|
13270
13610
|
};
|
|
13271
13611
|
|
|
13272
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13612
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
|
|
13273
13613
|
var utils_exports = {};
|
|
13274
13614
|
__export(utils_exports, {
|
|
13275
13615
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -13287,13 +13627,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
13287
13627
|
})();
|
|
13288
13628
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
13289
13629
|
|
|
13290
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13630
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
|
|
13291
13631
|
var platform_default = {
|
|
13292
13632
|
...utils_exports,
|
|
13293
13633
|
...node_default
|
|
13294
13634
|
};
|
|
13295
13635
|
|
|
13296
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13636
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
13297
13637
|
function toURLEncodedForm(data, options) {
|
|
13298
13638
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
13299
13639
|
visitor: function(value, key, path, helpers) {
|
|
@@ -13307,11 +13647,25 @@ function toURLEncodedForm(data, options) {
|
|
|
13307
13647
|
});
|
|
13308
13648
|
}
|
|
13309
13649
|
|
|
13310
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13650
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
13651
|
+
var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
|
|
13652
|
+
function throwIfDepthExceeded(index) {
|
|
13653
|
+
if (index > MAX_DEPTH) {
|
|
13654
|
+
throw new AxiosError_default(
|
|
13655
|
+
"FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
|
|
13656
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
13657
|
+
);
|
|
13658
|
+
}
|
|
13659
|
+
}
|
|
13311
13660
|
function parsePropPath(name) {
|
|
13312
|
-
|
|
13313
|
-
|
|
13314
|
-
|
|
13661
|
+
const path = [];
|
|
13662
|
+
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
13663
|
+
let match;
|
|
13664
|
+
while ((match = pattern.exec(name)) !== null) {
|
|
13665
|
+
throwIfDepthExceeded(path.length);
|
|
13666
|
+
path.push(match[0] === "[]" ? "" : match[1] || match[0]);
|
|
13667
|
+
}
|
|
13668
|
+
return path;
|
|
13315
13669
|
}
|
|
13316
13670
|
function arrayToObject(arr) {
|
|
13317
13671
|
const obj = {};
|
|
@@ -13327,6 +13681,7 @@ function arrayToObject(arr) {
|
|
|
13327
13681
|
}
|
|
13328
13682
|
function formDataToJSON(formData) {
|
|
13329
13683
|
function buildPath(path, value, target, index) {
|
|
13684
|
+
throwIfDepthExceeded(index);
|
|
13330
13685
|
let name = path[index++];
|
|
13331
13686
|
if (name === "__proto__") return true;
|
|
13332
13687
|
const isNumericKey = Number.isFinite(+name);
|
|
@@ -13360,9 +13715,25 @@ function formDataToJSON(formData) {
|
|
|
13360
13715
|
}
|
|
13361
13716
|
var formDataToJSON_default = formDataToJSON;
|
|
13362
13717
|
|
|
13363
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13718
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
|
|
13719
|
+
var methodList = Object.freeze([
|
|
13720
|
+
"get",
|
|
13721
|
+
"delete",
|
|
13722
|
+
"head",
|
|
13723
|
+
"options",
|
|
13724
|
+
"post",
|
|
13725
|
+
"put",
|
|
13726
|
+
"patch",
|
|
13727
|
+
"purge",
|
|
13728
|
+
"link",
|
|
13729
|
+
"unlink",
|
|
13730
|
+
"query"
|
|
13731
|
+
]);
|
|
13732
|
+
var methodList_default = methodList;
|
|
13733
|
+
|
|
13734
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
|
|
13364
13735
|
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
13365
|
-
function
|
|
13736
|
+
function stringifySafely2(rawValue, parser, encoder) {
|
|
13366
13737
|
if (utils_default.isString(rawValue)) {
|
|
13367
13738
|
try {
|
|
13368
13739
|
(parser || JSON.parse)(rawValue);
|
|
@@ -13418,7 +13789,7 @@ var defaults = {
|
|
|
13418
13789
|
}
|
|
13419
13790
|
if (isObjectPayload || hasJSONContentType) {
|
|
13420
13791
|
headers.setContentType("application/json", false);
|
|
13421
|
-
return
|
|
13792
|
+
return stringifySafely2(data);
|
|
13422
13793
|
}
|
|
13423
13794
|
return data;
|
|
13424
13795
|
}
|
|
@@ -13472,12 +13843,12 @@ var defaults = {
|
|
|
13472
13843
|
}
|
|
13473
13844
|
}
|
|
13474
13845
|
};
|
|
13475
|
-
utils_default.forEach(
|
|
13846
|
+
utils_default.forEach(methodList_default, (method) => {
|
|
13476
13847
|
defaults.headers[method] = {};
|
|
13477
13848
|
});
|
|
13478
13849
|
var defaults_default = defaults;
|
|
13479
13850
|
|
|
13480
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13851
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
|
|
13481
13852
|
function transformData(fns, response) {
|
|
13482
13853
|
const config = this || defaults_default;
|
|
13483
13854
|
const context = response || config;
|
|
@@ -13490,12 +13861,12 @@ function transformData(fns, response) {
|
|
|
13490
13861
|
return data;
|
|
13491
13862
|
}
|
|
13492
13863
|
|
|
13493
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13864
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
|
|
13494
13865
|
function isCancel(value) {
|
|
13495
13866
|
return !!(value && value.__CANCEL__);
|
|
13496
13867
|
}
|
|
13497
13868
|
|
|
13498
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13869
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
|
|
13499
13870
|
var CanceledError = class extends AxiosError_default {
|
|
13500
13871
|
/**
|
|
13501
13872
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -13514,7 +13885,7 @@ var CanceledError = class extends AxiosError_default {
|
|
|
13514
13885
|
};
|
|
13515
13886
|
var CanceledError_default = CanceledError;
|
|
13516
13887
|
|
|
13517
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13888
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
|
|
13518
13889
|
function settle(resolve, reject, response) {
|
|
13519
13890
|
const validateStatus2 = response.config.validateStatus;
|
|
13520
13891
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -13530,7 +13901,7 @@ function settle(resolve, reject, response) {
|
|
|
13530
13901
|
}
|
|
13531
13902
|
}
|
|
13532
13903
|
|
|
13533
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13904
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
13534
13905
|
function isAbsoluteURL(url2) {
|
|
13535
13906
|
if (typeof url2 !== "string") {
|
|
13536
13907
|
return false;
|
|
@@ -13538,15 +13909,71 @@ function isAbsoluteURL(url2) {
|
|
|
13538
13909
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
13539
13910
|
}
|
|
13540
13911
|
|
|
13541
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13912
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
|
|
13542
13913
|
function combineURLs(baseURL, relativeURL) {
|
|
13543
|
-
|
|
13914
|
+
if (!relativeURL) {
|
|
13915
|
+
return baseURL;
|
|
13916
|
+
}
|
|
13917
|
+
let end = baseURL.length;
|
|
13918
|
+
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
|
|
13919
|
+
end--;
|
|
13920
|
+
}
|
|
13921
|
+
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
13922
|
+
}
|
|
13923
|
+
|
|
13924
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
|
|
13925
|
+
var urlParserControlCharacters = /[\t\n\r]/g;
|
|
13926
|
+
function normalizeURLForProtocolCheck(url2) {
|
|
13927
|
+
if (typeof url2 !== "string") {
|
|
13928
|
+
return url2;
|
|
13929
|
+
}
|
|
13930
|
+
let start = 0;
|
|
13931
|
+
while (start < url2.length && url2.charCodeAt(start) <= 32) {
|
|
13932
|
+
start++;
|
|
13933
|
+
}
|
|
13934
|
+
return url2.slice(start).replace(urlParserControlCharacters, "");
|
|
13544
13935
|
}
|
|
13545
13936
|
|
|
13546
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13547
|
-
|
|
13937
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
|
|
13938
|
+
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
13939
|
+
function redactFragment(fragment) {
|
|
13940
|
+
if (!fragment) {
|
|
13941
|
+
return fragment;
|
|
13942
|
+
}
|
|
13943
|
+
return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
|
|
13944
|
+
return `${separator}${parameterName}${REDACTED}`;
|
|
13945
|
+
});
|
|
13946
|
+
}
|
|
13947
|
+
function redactSensitiveURLParts(url2) {
|
|
13948
|
+
const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
|
|
13949
|
+
const fragmentIndex = redactedURL.indexOf("#");
|
|
13950
|
+
const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
|
|
13951
|
+
const redactedURLWithoutFragment = urlWithoutFragment.replace(
|
|
13952
|
+
/([?&][^=&#]*=)[^&#]*/g,
|
|
13953
|
+
`$1${REDACTED}`
|
|
13954
|
+
);
|
|
13955
|
+
if (fragmentIndex === -1) {
|
|
13956
|
+
return redactedURLWithoutFragment;
|
|
13957
|
+
}
|
|
13958
|
+
return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
|
|
13959
|
+
}
|
|
13960
|
+
function assertValidHttpProtocolURL(url2, config) {
|
|
13961
|
+
if (typeof url2 === "string") {
|
|
13962
|
+
const normalizedURL = normalizeURLForProtocolCheck(url2);
|
|
13963
|
+
if (malformedHttpProtocol.test(normalizedURL)) {
|
|
13964
|
+
throw new AxiosError_default(
|
|
13965
|
+
`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
|
|
13966
|
+
AxiosError_default.ERR_INVALID_URL,
|
|
13967
|
+
config
|
|
13968
|
+
);
|
|
13969
|
+
}
|
|
13970
|
+
}
|
|
13971
|
+
}
|
|
13972
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
13973
|
+
assertValidHttpProtocolURL(requestedURL, config);
|
|
13548
13974
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
13549
13975
|
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
13976
|
+
assertValidHttpProtocolURL(baseURL, config);
|
|
13550
13977
|
return combineURLs(baseURL, requestedURL);
|
|
13551
13978
|
}
|
|
13552
13979
|
return requestedURL;
|
|
@@ -13619,27 +14046,27 @@ function getEnv(key) {
|
|
|
13619
14046
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
13620
14047
|
}
|
|
13621
14048
|
|
|
13622
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14049
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
13623
14050
|
var import_https_proxy_agent = __toESM(require_dist(), 1);
|
|
13624
14051
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
13625
14052
|
import http from "http";
|
|
13626
14053
|
import https from "https";
|
|
13627
|
-
import
|
|
13628
|
-
import
|
|
14054
|
+
import http22 from "http2";
|
|
14055
|
+
import util3 from "util";
|
|
13629
14056
|
import { resolve as resolvePath } from "path";
|
|
13630
14057
|
import zlib from "zlib";
|
|
13631
14058
|
|
|
13632
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13633
|
-
var VERSION = "1.
|
|
14059
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
|
|
14060
|
+
var VERSION = "1.20.0";
|
|
13634
14061
|
|
|
13635
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14062
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
|
|
13636
14063
|
function parseProtocol(url2) {
|
|
13637
14064
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
13638
14065
|
return match && match[1] || "";
|
|
13639
14066
|
}
|
|
13640
14067
|
|
|
13641
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13642
|
-
var DATA_URL_PATTERN = /^([
|
|
14068
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
|
|
14069
|
+
var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
|
|
13643
14070
|
function fromDataURI(uri, asBlob, options) {
|
|
13644
14071
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
13645
14072
|
const protocol = parseProtocol(uri);
|
|
@@ -13656,13 +14083,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
13656
14083
|
const params = match[2];
|
|
13657
14084
|
const encoding = match[3] ? "base64" : "utf8";
|
|
13658
14085
|
const body = match[4];
|
|
13659
|
-
let mime;
|
|
14086
|
+
let mime = "";
|
|
13660
14087
|
if (type) {
|
|
13661
14088
|
mime = params ? type + params : type;
|
|
13662
14089
|
} else if (params) {
|
|
13663
14090
|
mime = "text/plain" + params;
|
|
13664
14091
|
}
|
|
13665
|
-
const buffer = Buffer.from(decodeURIComponent(body), encoding);
|
|
14092
|
+
const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
|
|
13666
14093
|
if (asBlob) {
|
|
13667
14094
|
if (!_Blob) {
|
|
13668
14095
|
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
@@ -13674,10 +14101,24 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
13674
14101
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
13675
14102
|
}
|
|
13676
14103
|
|
|
13677
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14104
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
13678
14105
|
import stream3 from "stream";
|
|
13679
14106
|
|
|
13680
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14107
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
|
|
14108
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
14109
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
14110
|
+
if (policy !== "content-only") {
|
|
14111
|
+
headers.set(formHeaders);
|
|
14112
|
+
return;
|
|
14113
|
+
}
|
|
14114
|
+
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
14115
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
14116
|
+
headers.set(key, val);
|
|
14117
|
+
}
|
|
14118
|
+
});
|
|
14119
|
+
}
|
|
14120
|
+
|
|
14121
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
13681
14122
|
import stream from "stream";
|
|
13682
14123
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
13683
14124
|
var AxiosTransformStream = class extends stream.Transform {
|
|
@@ -13800,14 +14241,14 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
13800
14241
|
};
|
|
13801
14242
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
13802
14243
|
|
|
13803
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14244
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
13804
14245
|
import { EventEmitter } from "events";
|
|
13805
14246
|
|
|
13806
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14247
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
13807
14248
|
import util from "util";
|
|
13808
14249
|
import { Readable } from "stream";
|
|
13809
14250
|
|
|
13810
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14251
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
|
|
13811
14252
|
var { asyncIterator } = Symbol;
|
|
13812
14253
|
var readBlob = async function* (blob) {
|
|
13813
14254
|
if (blob.stream) {
|
|
@@ -13822,7 +14263,7 @@ var readBlob = async function* (blob) {
|
|
|
13822
14263
|
};
|
|
13823
14264
|
var readBlob_default = readBlob;
|
|
13824
14265
|
|
|
13825
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14266
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
13826
14267
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
13827
14268
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
13828
14269
|
var CRLF = "\r\n";
|
|
@@ -13873,10 +14314,10 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
13873
14314
|
boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
|
|
13874
14315
|
} = options || {};
|
|
13875
14316
|
if (!utils_default.isFormData(form)) {
|
|
13876
|
-
throw TypeError("FormData instance required");
|
|
14317
|
+
throw new TypeError("FormData instance required");
|
|
13877
14318
|
}
|
|
13878
14319
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
13879
|
-
throw Error("boundary must be 1-70 characters long");
|
|
14320
|
+
throw new Error("boundary must be 1-70 characters long");
|
|
13880
14321
|
}
|
|
13881
14322
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
13882
14323
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -13907,7 +14348,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
13907
14348
|
};
|
|
13908
14349
|
var formDataToStream_default = formDataToStream;
|
|
13909
14350
|
|
|
13910
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14351
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
13911
14352
|
import stream2 from "stream";
|
|
13912
14353
|
var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
13913
14354
|
__transform(chunk, encoding, callback) {
|
|
@@ -13929,51 +14370,212 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
|
13929
14370
|
};
|
|
13930
14371
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
13931
14372
|
|
|
13932
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13933
|
-
|
|
13934
|
-
|
|
13935
|
-
|
|
13936
|
-
|
|
13937
|
-
|
|
13938
|
-
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
|
13939
|
-
} catch (err) {
|
|
13940
|
-
cb(err);
|
|
13941
|
-
}
|
|
13942
|
-
}, cb);
|
|
13943
|
-
} : fn;
|
|
13944
|
-
};
|
|
13945
|
-
var callbackify_default = callbackify;
|
|
13946
|
-
|
|
13947
|
-
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
13948
|
-
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
13949
|
-
var isIPv4Loopback = (host) => {
|
|
13950
|
-
const parts = host.split(".");
|
|
13951
|
-
if (parts.length !== 4) return false;
|
|
13952
|
-
if (parts[0] !== "127") return false;
|
|
13953
|
-
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
13954
|
-
};
|
|
13955
|
-
var isIPv6Loopback = (host) => {
|
|
13956
|
-
if (host === "::1") return true;
|
|
13957
|
-
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
13958
|
-
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
13959
|
-
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
13960
|
-
if (v4MappedHex) {
|
|
13961
|
-
const high = parseInt(v4MappedHex[1], 16);
|
|
13962
|
-
return high >= 32512 && high <= 32767;
|
|
14373
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
|
|
14374
|
+
import http2 from "http2";
|
|
14375
|
+
import util2 from "util";
|
|
14376
|
+
var Http2Sessions = class {
|
|
14377
|
+
constructor() {
|
|
14378
|
+
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
13963
14379
|
}
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
|
|
13967
|
-
|
|
14380
|
+
getSession(authority, options) {
|
|
14381
|
+
options = Object.assign(
|
|
14382
|
+
/* @__PURE__ */ Object.create(null),
|
|
14383
|
+
{
|
|
14384
|
+
sessionTimeout: 1e3
|
|
14385
|
+
},
|
|
14386
|
+
options
|
|
14387
|
+
);
|
|
14388
|
+
let authoritySessions = this.sessions[authority];
|
|
14389
|
+
if (authoritySessions) {
|
|
14390
|
+
let len = authoritySessions.length;
|
|
14391
|
+
for (let i = 0; i < len; i++) {
|
|
14392
|
+
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
14393
|
+
if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
|
|
14394
|
+
return sessionHandle;
|
|
14395
|
+
}
|
|
14396
|
+
}
|
|
13968
14397
|
}
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
|
|
14398
|
+
const session = http2.connect(authority, options);
|
|
14399
|
+
let removed;
|
|
14400
|
+
let timer;
|
|
14401
|
+
const removeSession = () => {
|
|
14402
|
+
if (removed) {
|
|
14403
|
+
return;
|
|
14404
|
+
}
|
|
14405
|
+
removed = true;
|
|
14406
|
+
if (timer) {
|
|
14407
|
+
clearTimeout(timer);
|
|
14408
|
+
timer = null;
|
|
14409
|
+
}
|
|
14410
|
+
let entries = authoritySessions, len = entries.length, i = len;
|
|
14411
|
+
while (i--) {
|
|
14412
|
+
if (entries[i][0] === session) {
|
|
14413
|
+
if (len === 1) {
|
|
14414
|
+
delete this.sessions[authority];
|
|
14415
|
+
} else {
|
|
14416
|
+
entries.splice(i, 1);
|
|
14417
|
+
}
|
|
14418
|
+
if (!session.closed) {
|
|
14419
|
+
session.close();
|
|
14420
|
+
}
|
|
14421
|
+
return;
|
|
14422
|
+
}
|
|
14423
|
+
}
|
|
14424
|
+
};
|
|
14425
|
+
const originalRequestFn = session.request;
|
|
14426
|
+
const { sessionTimeout } = options;
|
|
14427
|
+
if (sessionTimeout != null) {
|
|
14428
|
+
let streamsCount = 0;
|
|
14429
|
+
session.request = function() {
|
|
14430
|
+
const stream4 = originalRequestFn.apply(this, arguments);
|
|
14431
|
+
streamsCount++;
|
|
14432
|
+
if (timer) {
|
|
14433
|
+
clearTimeout(timer);
|
|
14434
|
+
timer = null;
|
|
14435
|
+
}
|
|
14436
|
+
stream4.once("close", () => {
|
|
14437
|
+
if (!--streamsCount) {
|
|
14438
|
+
timer = setTimeout(() => {
|
|
14439
|
+
timer = null;
|
|
14440
|
+
removeSession();
|
|
14441
|
+
}, sessionTimeout);
|
|
14442
|
+
}
|
|
14443
|
+
});
|
|
14444
|
+
return stream4;
|
|
14445
|
+
};
|
|
14446
|
+
}
|
|
14447
|
+
session.once("close", removeSession);
|
|
14448
|
+
session.once("error", removeSession);
|
|
14449
|
+
let entry = [session, options];
|
|
14450
|
+
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
14451
|
+
return session;
|
|
14452
|
+
}
|
|
14453
|
+
};
|
|
14454
|
+
var Http2Sessions_default = Http2Sessions;
|
|
14455
|
+
|
|
14456
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
|
|
14457
|
+
var callbackify = (fn, reducer) => {
|
|
14458
|
+
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
14459
|
+
const cb = args.pop();
|
|
14460
|
+
fn.apply(this, args).then((value) => {
|
|
14461
|
+
try {
|
|
14462
|
+
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
|
14463
|
+
} catch (err) {
|
|
14464
|
+
cb(err);
|
|
14465
|
+
}
|
|
14466
|
+
}, cb);
|
|
14467
|
+
} : fn;
|
|
14468
|
+
};
|
|
14469
|
+
var callbackify_default = callbackify;
|
|
14470
|
+
|
|
14471
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
14472
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
|
|
14473
|
+
var trimTrailingDots = (value) => {
|
|
14474
|
+
let end = value.length;
|
|
14475
|
+
while (end && value.charCodeAt(end - 1) === 46) {
|
|
14476
|
+
end--;
|
|
14477
|
+
}
|
|
14478
|
+
return end === value.length ? value : value.slice(0, end);
|
|
14479
|
+
};
|
|
14480
|
+
var isIPv4Loopback = (host) => {
|
|
14481
|
+
const parts = host.split(".");
|
|
14482
|
+
if (parts.length !== 4) return false;
|
|
14483
|
+
if (parts[0] !== "127") return false;
|
|
14484
|
+
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
14485
|
+
};
|
|
14486
|
+
var parseIPv4Octet = (text) => {
|
|
14487
|
+
if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
|
|
14488
|
+
const n = parseInt(text.slice(2), 16);
|
|
14489
|
+
return Number.isFinite(n) ? n : null;
|
|
14490
|
+
}
|
|
14491
|
+
if (text.length > 1 && /^0[0-7]+$/.test(text)) {
|
|
14492
|
+
const n = parseInt(text, 8);
|
|
14493
|
+
return Number.isFinite(n) ? n : null;
|
|
14494
|
+
}
|
|
14495
|
+
if (text.length > 1 && /^0[0-9]+$/.test(text)) {
|
|
14496
|
+
return null;
|
|
14497
|
+
}
|
|
14498
|
+
if (/^[0-9]+$/.test(text)) {
|
|
14499
|
+
const n = parseInt(text, 10);
|
|
14500
|
+
return Number.isFinite(n) ? n : null;
|
|
14501
|
+
}
|
|
14502
|
+
return null;
|
|
14503
|
+
};
|
|
14504
|
+
var normalizeIPAddress = (host) => {
|
|
14505
|
+
if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
|
|
14506
|
+
return host;
|
|
14507
|
+
}
|
|
14508
|
+
let h = host;
|
|
14509
|
+
if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
|
|
14510
|
+
h = h.slice(1, -1);
|
|
14511
|
+
}
|
|
14512
|
+
h = trimTrailingDots(h);
|
|
14513
|
+
if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
|
|
14514
|
+
const parts = h.split(".");
|
|
14515
|
+
if (parts.some((p) => p === "")) return host;
|
|
14516
|
+
if (parts.length === 4) {
|
|
14517
|
+
const octets = parts.map(parseIPv4Octet);
|
|
14518
|
+
if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
|
|
14519
|
+
return octets.join(".");
|
|
14520
|
+
}
|
|
14521
|
+
if (parts.length > 4) {
|
|
14522
|
+
return host;
|
|
14523
|
+
}
|
|
14524
|
+
if (parts.length === 1) return host;
|
|
14525
|
+
const literalOctets = parts.slice(0, -1);
|
|
14526
|
+
const tail = parts[parts.length - 1];
|
|
14527
|
+
const tailSlots = 4 - literalOctets.length;
|
|
14528
|
+
const tailValue = parseIPv4Octet(tail);
|
|
14529
|
+
if (tailValue === null) return host;
|
|
14530
|
+
const maxTail = (1 << 8 * tailSlots) - 1;
|
|
14531
|
+
if (tailValue < 0 || tailValue > maxTail) return host;
|
|
14532
|
+
const tailOctets = new Array(tailSlots).fill(0);
|
|
14533
|
+
for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
|
|
14534
|
+
tailOctets[i] = v & 255;
|
|
14535
|
+
}
|
|
14536
|
+
const literal = literalOctets.map(parseIPv4Octet);
|
|
14537
|
+
if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
|
|
14538
|
+
return [...literal, ...tailOctets].join(".");
|
|
14539
|
+
};
|
|
14540
|
+
var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
|
|
14541
|
+
var isIPv6Unspecified = (host) => {
|
|
14542
|
+
if (host === "::") return true;
|
|
14543
|
+
const compressionIndex = host.indexOf("::");
|
|
14544
|
+
if (compressionIndex !== -1) {
|
|
14545
|
+
if (compressionIndex !== host.lastIndexOf("::")) return false;
|
|
14546
|
+
const left = host.slice(0, compressionIndex);
|
|
14547
|
+
const right = host.slice(compressionIndex + 2);
|
|
14548
|
+
const leftGroups = left ? left.split(":") : [];
|
|
14549
|
+
const rightGroups = right ? right.split(":") : [];
|
|
14550
|
+
const explicitGroups = leftGroups.length + rightGroups.length;
|
|
14551
|
+
return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
|
|
14552
|
+
}
|
|
14553
|
+
const groups = host.split(":");
|
|
14554
|
+
return groups.length === 8 && groups.every(isIPv6ZeroGroup);
|
|
14555
|
+
};
|
|
14556
|
+
var isIPv6Loopback = (host) => {
|
|
14557
|
+
if (host === "::1") return true;
|
|
14558
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
14559
|
+
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
14560
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
14561
|
+
if (v4MappedHex) {
|
|
14562
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
14563
|
+
return high >= 32512 && high <= 32767;
|
|
14564
|
+
}
|
|
14565
|
+
const groups = host.split(":");
|
|
14566
|
+
if (groups.length === 8) {
|
|
14567
|
+
for (let i = 0; i < 7; i++) {
|
|
14568
|
+
if (!/^0+$/.test(groups[i])) return false;
|
|
14569
|
+
}
|
|
14570
|
+
return /^0*1$/.test(groups[7]);
|
|
14571
|
+
}
|
|
14572
|
+
return false;
|
|
14573
|
+
};
|
|
14574
|
+
var isLoopback = (host) => {
|
|
14575
|
+
if (!host) return false;
|
|
14576
|
+
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
13976
14577
|
if (isIPv4Loopback(host)) return true;
|
|
14578
|
+
if (isIPv6Unspecified(host)) return true;
|
|
13977
14579
|
return isIPv6Loopback(host);
|
|
13978
14580
|
};
|
|
13979
14581
|
var DEFAULT_PORTS2 = {
|
|
@@ -14019,6 +14621,40 @@ var unmapIPv4MappedIPv6 = (host) => {
|
|
|
14019
14621
|
}
|
|
14020
14622
|
return host;
|
|
14021
14623
|
};
|
|
14624
|
+
var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
|
|
14625
|
+
var ipv4ToBytes = (host) => {
|
|
14626
|
+
const parts = host.split(".");
|
|
14627
|
+
return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
|
|
14628
|
+
};
|
|
14629
|
+
var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
|
|
14630
|
+
var ipv6ToBytes = (host) => {
|
|
14631
|
+
const halves = host.split("::");
|
|
14632
|
+
if (halves.length > 2) {
|
|
14633
|
+
return null;
|
|
14634
|
+
}
|
|
14635
|
+
const groups = halves[0] ? halves[0].split(":") : [];
|
|
14636
|
+
if (halves.length === 2) {
|
|
14637
|
+
const rear = halves[1] ? halves[1].split(":") : [];
|
|
14638
|
+
const missing = 8 - groups.length - rear.length;
|
|
14639
|
+
if (missing < 1) {
|
|
14640
|
+
return null;
|
|
14641
|
+
}
|
|
14642
|
+
groups.push(...new Array(missing).fill("0"), ...rear);
|
|
14643
|
+
}
|
|
14644
|
+
if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
|
|
14645
|
+
return null;
|
|
14646
|
+
}
|
|
14647
|
+
return groups.flatMap((group) => {
|
|
14648
|
+
const value = Number.parseInt(group, 16);
|
|
14649
|
+
return [value >> 8 & 255, value & 255];
|
|
14650
|
+
});
|
|
14651
|
+
};
|
|
14652
|
+
var ipToBytes = (host) => {
|
|
14653
|
+
if (typeof host !== "string" || !host) {
|
|
14654
|
+
return null;
|
|
14655
|
+
}
|
|
14656
|
+
return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
|
|
14657
|
+
};
|
|
14022
14658
|
var normalizeNoProxyHost = (hostname) => {
|
|
14023
14659
|
if (!hostname) {
|
|
14024
14660
|
return hostname;
|
|
@@ -14026,7 +14662,89 @@ var normalizeNoProxyHost = (hostname) => {
|
|
|
14026
14662
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
14027
14663
|
hostname = hostname.slice(1, -1);
|
|
14028
14664
|
}
|
|
14029
|
-
|
|
14665
|
+
const trimmed = trimTrailingDots(hostname);
|
|
14666
|
+
const ipv4 = normalizeIPAddress(trimmed);
|
|
14667
|
+
if (ipv4 !== trimmed) {
|
|
14668
|
+
return ipv4;
|
|
14669
|
+
}
|
|
14670
|
+
return unmapIPv4MappedIPv6(trimmed);
|
|
14671
|
+
};
|
|
14672
|
+
var normalizeCidrBase = (input) => {
|
|
14673
|
+
let base = input;
|
|
14674
|
+
const startsBracket = base.charAt(0) === "[";
|
|
14675
|
+
const endsBracket = base.charAt(base.length - 1) === "]";
|
|
14676
|
+
const hasBracket = base.includes("[") || base.includes("]");
|
|
14677
|
+
if (startsBracket || endsBracket) {
|
|
14678
|
+
if (!startsBracket || !endsBracket) {
|
|
14679
|
+
return null;
|
|
14680
|
+
}
|
|
14681
|
+
base = base.slice(1, -1);
|
|
14682
|
+
if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
|
|
14683
|
+
return null;
|
|
14684
|
+
}
|
|
14685
|
+
} else if (hasBracket) {
|
|
14686
|
+
return null;
|
|
14687
|
+
}
|
|
14688
|
+
if (!base || base.charAt(base.length - 1) === ".") {
|
|
14689
|
+
return null;
|
|
14690
|
+
}
|
|
14691
|
+
const wasIPv6 = base.indexOf(":") !== -1;
|
|
14692
|
+
if (wasIPv6) {
|
|
14693
|
+
try {
|
|
14694
|
+
base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
|
|
14695
|
+
} catch (_err) {
|
|
14696
|
+
return null;
|
|
14697
|
+
}
|
|
14698
|
+
} else {
|
|
14699
|
+
base = normalizeIPAddress(base);
|
|
14700
|
+
if (!ipv4ToBytes(base)) {
|
|
14701
|
+
return null;
|
|
14702
|
+
}
|
|
14703
|
+
}
|
|
14704
|
+
return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
|
|
14705
|
+
};
|
|
14706
|
+
var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
|
|
14707
|
+
var parseCidrEntry = (entry) => {
|
|
14708
|
+
if (entry.indexOf("/") === -1) {
|
|
14709
|
+
return void 0;
|
|
14710
|
+
}
|
|
14711
|
+
const match = CIDR_ENTRY_RE.exec(entry);
|
|
14712
|
+
if (!match) {
|
|
14713
|
+
return null;
|
|
14714
|
+
}
|
|
14715
|
+
let prefix = Number(match[2]);
|
|
14716
|
+
const parsedBase = normalizeCidrBase(match[1]);
|
|
14717
|
+
if (!parsedBase) {
|
|
14718
|
+
return null;
|
|
14719
|
+
}
|
|
14720
|
+
const { normalized, wasIPv6 } = parsedBase;
|
|
14721
|
+
if (wasIPv6 && normalized.indexOf(":") === -1) {
|
|
14722
|
+
if (prefix < 96) {
|
|
14723
|
+
return null;
|
|
14724
|
+
}
|
|
14725
|
+
prefix -= 96;
|
|
14726
|
+
}
|
|
14727
|
+
const bytes = ipToBytes(normalized);
|
|
14728
|
+
if (!bytes || prefix > bytes.length * 8) {
|
|
14729
|
+
return null;
|
|
14730
|
+
}
|
|
14731
|
+
return { bytes, prefix };
|
|
14732
|
+
};
|
|
14733
|
+
var isInSubnet = (addressBytes, networkBytes, prefix) => {
|
|
14734
|
+
const fullBytes = prefix >> 3;
|
|
14735
|
+
for (let i = 0; i < fullBytes; i++) {
|
|
14736
|
+
if (addressBytes[i] !== networkBytes[i]) {
|
|
14737
|
+
return false;
|
|
14738
|
+
}
|
|
14739
|
+
}
|
|
14740
|
+
const remainingBits = prefix & 7;
|
|
14741
|
+
if (remainingBits) {
|
|
14742
|
+
const mask = 255 << 8 - remainingBits & 255;
|
|
14743
|
+
if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
|
|
14744
|
+
return false;
|
|
14745
|
+
}
|
|
14746
|
+
}
|
|
14747
|
+
return true;
|
|
14030
14748
|
};
|
|
14031
14749
|
function shouldBypassProxy(location) {
|
|
14032
14750
|
let parsed;
|
|
@@ -14044,10 +14762,18 @@ function shouldBypassProxy(location) {
|
|
|
14044
14762
|
}
|
|
14045
14763
|
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
|
|
14046
14764
|
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
14765
|
+
const hostnameBytes = ipToBytes(hostname);
|
|
14047
14766
|
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
14048
14767
|
if (!entry) {
|
|
14049
14768
|
return false;
|
|
14050
14769
|
}
|
|
14770
|
+
if (entry === "*") {
|
|
14771
|
+
return true;
|
|
14772
|
+
}
|
|
14773
|
+
const cidr = parseCidrEntry(entry);
|
|
14774
|
+
if (cidr !== void 0) {
|
|
14775
|
+
return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
|
|
14776
|
+
}
|
|
14051
14777
|
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
14052
14778
|
entryHost = normalizeNoProxyHost(entryHost);
|
|
14053
14779
|
if (!entryHost) {
|
|
@@ -14066,7 +14792,7 @@ function shouldBypassProxy(location) {
|
|
|
14066
14792
|
});
|
|
14067
14793
|
}
|
|
14068
14794
|
|
|
14069
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14795
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
|
|
14070
14796
|
function speedometer(samplesCount, min) {
|
|
14071
14797
|
samplesCount = samplesCount || 10;
|
|
14072
14798
|
const bytes = new Array(samplesCount);
|
|
@@ -14102,7 +14828,7 @@ function speedometer(samplesCount, min) {
|
|
|
14102
14828
|
}
|
|
14103
14829
|
var speedometer_default = speedometer;
|
|
14104
14830
|
|
|
14105
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14831
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
|
|
14106
14832
|
function throttle(fn, freq) {
|
|
14107
14833
|
let timestamp = 0;
|
|
14108
14834
|
let threshold = 1e3 / freq;
|
|
@@ -14133,21 +14859,22 @@ function throttle(fn, freq) {
|
|
|
14133
14859
|
}
|
|
14134
14860
|
};
|
|
14135
14861
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
14136
|
-
|
|
14862
|
+
const flushWith = (...args) => invoke(args);
|
|
14863
|
+
return [throttled, flush, flushWith];
|
|
14137
14864
|
}
|
|
14138
14865
|
var throttle_default = throttle;
|
|
14139
14866
|
|
|
14140
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14867
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
14141
14868
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
14142
14869
|
let bytesNotified = 0;
|
|
14143
14870
|
const _speedometer = speedometer_default(50, 250);
|
|
14144
14871
|
return throttle_default((e) => {
|
|
14145
|
-
if (!e ||
|
|
14872
|
+
if (!e || !utils_default.isNumber(e.loaded)) {
|
|
14146
14873
|
return;
|
|
14147
14874
|
}
|
|
14148
14875
|
const rawLoaded = e.loaded;
|
|
14149
14876
|
const total = e.lengthComputable ? e.total : void 0;
|
|
14150
|
-
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
14877
|
+
const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
|
|
14151
14878
|
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
14152
14879
|
const rate = _speedometer(progressBytes);
|
|
14153
14880
|
bytesNotified = Math.max(bytesNotified, loaded);
|
|
@@ -14176,10 +14903,66 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
14176
14903
|
throttled[1]
|
|
14177
14904
|
];
|
|
14178
14905
|
};
|
|
14179
|
-
var asyncDecorator = (fn) => (...args) =>
|
|
14906
|
+
var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
|
|
14180
14907
|
|
|
14181
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14182
|
-
|
|
14908
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
14909
|
+
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
14910
|
+
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
14911
|
+
var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
|
|
14912
|
+
var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
|
|
14913
|
+
charCode >= 97 && charCode <= 122 || // a-z
|
|
14914
|
+
charCode >= 48 && charCode <= 57 || // 0-9
|
|
14915
|
+
charCode === 43 || // +
|
|
14916
|
+
charCode === 47 || // /
|
|
14917
|
+
charCode === 45 || // - (base64url)
|
|
14918
|
+
charCode === 95;
|
|
14919
|
+
var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
|
|
14920
|
+
var base64Bytes = (significant) => {
|
|
14921
|
+
const groups = Math.floor(significant / 4);
|
|
14922
|
+
const remainder = significant % 4;
|
|
14923
|
+
return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
|
|
14924
|
+
};
|
|
14925
|
+
var estimateBase64BufferAllocation = (body) => {
|
|
14926
|
+
const len = body.length;
|
|
14927
|
+
let padding = 0;
|
|
14928
|
+
if (len > 0 && body.charCodeAt(len - 1) === 61) {
|
|
14929
|
+
padding++;
|
|
14930
|
+
if (len > 1 && body.charCodeAt(len - 2) === 61) {
|
|
14931
|
+
padding++;
|
|
14932
|
+
}
|
|
14933
|
+
}
|
|
14934
|
+
return Math.floor((len - padding) * 3 / 4);
|
|
14935
|
+
};
|
|
14936
|
+
var estimatePercentDecodedBase64Bytes = (body) => {
|
|
14937
|
+
const len = body.length;
|
|
14938
|
+
let significant = 0;
|
|
14939
|
+
let padding = 0;
|
|
14940
|
+
let invalid = false;
|
|
14941
|
+
for (let i = 0; i < len; i++) {
|
|
14942
|
+
let code = body.charCodeAt(i);
|
|
14943
|
+
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
14944
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
14945
|
+
i += 2;
|
|
14946
|
+
}
|
|
14947
|
+
if (isBase64Whitespace(code)) {
|
|
14948
|
+
continue;
|
|
14949
|
+
}
|
|
14950
|
+
if (code === 61) {
|
|
14951
|
+
padding++;
|
|
14952
|
+
continue;
|
|
14953
|
+
}
|
|
14954
|
+
if (!isBase64Char(code) || padding > 0) {
|
|
14955
|
+
invalid = true;
|
|
14956
|
+
continue;
|
|
14957
|
+
}
|
|
14958
|
+
significant++;
|
|
14959
|
+
}
|
|
14960
|
+
if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
|
|
14961
|
+
return estimateBase64BufferAllocation(body);
|
|
14962
|
+
}
|
|
14963
|
+
return base64Bytes(significant);
|
|
14964
|
+
};
|
|
14965
|
+
var estimateDataURLBytes = (url2, estimateBase64) => {
|
|
14183
14966
|
if (!url2 || typeof url2 !== "string") return 0;
|
|
14184
14967
|
if (!url2.startsWith("data:")) return 0;
|
|
14185
14968
|
const comma = url2.indexOf(",");
|
|
@@ -14188,51 +14971,15 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
14188
14971
|
const body = url2.slice(comma + 1);
|
|
14189
14972
|
const isBase64 = /;base64/i.test(meta);
|
|
14190
14973
|
if (isBase64) {
|
|
14191
|
-
|
|
14192
|
-
const len = body.length;
|
|
14193
|
-
for (let i = 0; i < len; i++) {
|
|
14194
|
-
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
14195
|
-
const a = body.charCodeAt(i + 1);
|
|
14196
|
-
const b = body.charCodeAt(i + 2);
|
|
14197
|
-
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
14198
|
-
if (isHex) {
|
|
14199
|
-
effectiveLen -= 2;
|
|
14200
|
-
i += 2;
|
|
14201
|
-
}
|
|
14202
|
-
}
|
|
14203
|
-
}
|
|
14204
|
-
let pad = 0;
|
|
14205
|
-
let idx = len - 1;
|
|
14206
|
-
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
|
|
14207
|
-
body.charCodeAt(j - 1) === 51 && // '3'
|
|
14208
|
-
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
14209
|
-
if (idx >= 0) {
|
|
14210
|
-
if (body.charCodeAt(idx) === 61) {
|
|
14211
|
-
pad++;
|
|
14212
|
-
idx--;
|
|
14213
|
-
} else if (tailIsPct3D(idx)) {
|
|
14214
|
-
pad++;
|
|
14215
|
-
idx -= 3;
|
|
14216
|
-
}
|
|
14217
|
-
}
|
|
14218
|
-
if (pad === 1 && idx >= 0) {
|
|
14219
|
-
if (body.charCodeAt(idx) === 61) {
|
|
14220
|
-
pad++;
|
|
14221
|
-
} else if (tailIsPct3D(idx)) {
|
|
14222
|
-
pad++;
|
|
14223
|
-
}
|
|
14224
|
-
}
|
|
14225
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
14226
|
-
const bytes2 = groups * 3 - (pad || 0);
|
|
14227
|
-
return bytes2 > 0 ? bytes2 : 0;
|
|
14228
|
-
}
|
|
14229
|
-
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
14230
|
-
return Buffer.byteLength(body, "utf8");
|
|
14974
|
+
return estimateBase64(body);
|
|
14231
14975
|
}
|
|
14232
14976
|
let bytes = 0;
|
|
14233
14977
|
for (let i = 0, len = body.length; i < len; i++) {
|
|
14234
14978
|
const c = body.charCodeAt(i);
|
|
14235
|
-
if (c
|
|
14979
|
+
if (c === 37 && isPercentEncodedByte(body, i, len)) {
|
|
14980
|
+
bytes += 1;
|
|
14981
|
+
i += 2;
|
|
14982
|
+
} else if (c < 128) {
|
|
14236
14983
|
bytes += 1;
|
|
14237
14984
|
} else if (c < 2048) {
|
|
14238
14985
|
bytes += 2;
|
|
@@ -14249,9 +14996,19 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
14249
14996
|
}
|
|
14250
14997
|
}
|
|
14251
14998
|
return bytes;
|
|
14999
|
+
};
|
|
15000
|
+
function estimateDataURLDecodedBytes(url2) {
|
|
15001
|
+
const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
|
|
15002
|
+
return estimateDataURLBytes(
|
|
15003
|
+
fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
|
|
15004
|
+
estimatePercentDecodedBase64Bytes
|
|
15005
|
+
);
|
|
15006
|
+
}
|
|
15007
|
+
function estimateDataURLBufferAllocation(url2) {
|
|
15008
|
+
return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
|
|
14252
15009
|
}
|
|
14253
15010
|
|
|
14254
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15011
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14255
15012
|
var zlibOptions = {
|
|
14256
15013
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
14257
15014
|
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
@@ -14260,138 +15017,131 @@ var brotliOptions = {
|
|
|
14260
15017
|
flush: zlib.constants.BROTLI_OPERATION_FLUSH,
|
|
14261
15018
|
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
|
|
14262
15019
|
};
|
|
15020
|
+
var zstdOptions = {
|
|
15021
|
+
flush: zlib.constants.ZSTD_e_flush,
|
|
15022
|
+
finishFlush: zlib.constants.ZSTD_e_flush
|
|
15023
|
+
};
|
|
14263
15024
|
var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
|
|
15025
|
+
var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
|
|
15026
|
+
var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
|
|
15027
|
+
var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
|
|
15028
|
+
var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils_default.asap;
|
|
14264
15029
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
14265
15030
|
var isHttps = /https:?/;
|
|
14266
|
-
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
14267
|
-
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
14268
|
-
if (policy !== "content-only") {
|
|
14269
|
-
headers.set(formHeaders);
|
|
14270
|
-
return;
|
|
14271
|
-
}
|
|
14272
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
14273
|
-
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
14274
|
-
headers.set(key, val);
|
|
14275
|
-
}
|
|
14276
|
-
});
|
|
14277
|
-
}
|
|
14278
15031
|
var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
|
|
14279
15032
|
var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
|
|
15033
|
+
function handleSocketError(err) {
|
|
15034
|
+
const current = this[kAxiosCurrentReq];
|
|
15035
|
+
if (current && !current.destroyed) {
|
|
15036
|
+
current.destroy(err);
|
|
15037
|
+
}
|
|
15038
|
+
}
|
|
14280
15039
|
var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
|
|
14281
15040
|
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
14282
15041
|
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
14283
|
-
|
|
14284
|
-
|
|
14285
|
-
|
|
14286
|
-
|
|
14287
|
-
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
agent[kAxiosInstalledTunnel] = true;
|
|
14291
|
-
cache.set(key, agent);
|
|
14292
|
-
return agent;
|
|
14293
|
-
}
|
|
14294
|
-
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
14295
|
-
return protocol + ":";
|
|
14296
|
-
});
|
|
14297
|
-
var decodeURIComponentSafe = (value) => {
|
|
14298
|
-
if (!utils_default.isString(value)) {
|
|
14299
|
-
return value;
|
|
15042
|
+
var NODE_NATIVE_ENV_PROXY_SUPPORT = {
|
|
15043
|
+
22: 21,
|
|
15044
|
+
24: 5
|
|
15045
|
+
};
|
|
15046
|
+
function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
|
|
15047
|
+
if (!nodeVersion) {
|
|
15048
|
+
return false;
|
|
14300
15049
|
}
|
|
14301
|
-
|
|
14302
|
-
|
|
14303
|
-
|
|
14304
|
-
return value;
|
|
15050
|
+
const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
|
|
15051
|
+
if (!Number.isInteger(major) || !Number.isInteger(minor)) {
|
|
15052
|
+
return false;
|
|
14305
15053
|
}
|
|
14306
|
-
|
|
14307
|
-
|
|
14308
|
-
stream4.on("end", flush).on("error", flush);
|
|
14309
|
-
return throttled;
|
|
14310
|
-
};
|
|
14311
|
-
var Http2Sessions = class {
|
|
14312
|
-
constructor() {
|
|
14313
|
-
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
15054
|
+
if (major > 24) {
|
|
15055
|
+
return true;
|
|
14314
15056
|
}
|
|
14315
|
-
|
|
14316
|
-
|
|
14317
|
-
|
|
14318
|
-
|
|
14319
|
-
|
|
14320
|
-
|
|
14321
|
-
|
|
14322
|
-
|
|
14323
|
-
|
|
14324
|
-
|
|
14325
|
-
|
|
14326
|
-
|
|
14327
|
-
|
|
14328
|
-
|
|
14329
|
-
|
|
14330
|
-
|
|
14331
|
-
|
|
14332
|
-
|
|
14333
|
-
|
|
14334
|
-
|
|
14335
|
-
|
|
14336
|
-
|
|
14337
|
-
|
|
14338
|
-
|
|
14339
|
-
|
|
14340
|
-
|
|
14341
|
-
|
|
14342
|
-
|
|
14343
|
-
|
|
14344
|
-
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14352
|
-
|
|
14353
|
-
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
|
|
14357
|
-
|
|
14358
|
-
let streamsCount = 0;
|
|
14359
|
-
session.request = function() {
|
|
14360
|
-
const stream4 = originalRequestFn.apply(this, arguments);
|
|
14361
|
-
streamsCount++;
|
|
14362
|
-
if (timer) {
|
|
14363
|
-
clearTimeout(timer);
|
|
14364
|
-
timer = null;
|
|
14365
|
-
}
|
|
14366
|
-
stream4.once("close", () => {
|
|
14367
|
-
if (!--streamsCount) {
|
|
14368
|
-
timer = setTimeout(() => {
|
|
14369
|
-
timer = null;
|
|
14370
|
-
removeSession();
|
|
14371
|
-
}, sessionTimeout);
|
|
14372
|
-
}
|
|
14373
|
-
});
|
|
14374
|
-
return stream4;
|
|
14375
|
-
};
|
|
14376
|
-
}
|
|
14377
|
-
session.once("close", removeSession);
|
|
14378
|
-
let entry = [session, options];
|
|
14379
|
-
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
14380
|
-
return session;
|
|
15057
|
+
return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
|
|
15058
|
+
}
|
|
15059
|
+
function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
|
|
15060
|
+
if (!isNodeNativeEnvProxySupported(nodeVersion)) {
|
|
15061
|
+
return false;
|
|
15062
|
+
}
|
|
15063
|
+
const agentOptions = agent && agent.options;
|
|
15064
|
+
return Boolean(
|
|
15065
|
+
agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
|
|
15066
|
+
);
|
|
15067
|
+
}
|
|
15068
|
+
function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
|
|
15069
|
+
return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
|
|
15070
|
+
}
|
|
15071
|
+
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
15072
|
+
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
15073
|
+
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
|
|
15074
|
+
let agent = cache.get(key);
|
|
15075
|
+
if (agent) return agent;
|
|
15076
|
+
const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
|
|
15077
|
+
agent = new import_https_proxy_agent.default(merged);
|
|
15078
|
+
if (userHttpsAgent && userHttpsAgent.options) {
|
|
15079
|
+
const originTLSOptions = { ...userHttpsAgent.options };
|
|
15080
|
+
const callback = agent.callback;
|
|
15081
|
+
agent.callback = function axiosTunnelingAgentCallback(req, opts) {
|
|
15082
|
+
return callback.call(this, req, { ...originTLSOptions, ...opts });
|
|
15083
|
+
};
|
|
15084
|
+
}
|
|
15085
|
+
agent[kAxiosInstalledTunnel] = true;
|
|
15086
|
+
cache.set(key, agent);
|
|
15087
|
+
return agent;
|
|
15088
|
+
}
|
|
15089
|
+
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
15090
|
+
return protocol + ":";
|
|
15091
|
+
});
|
|
15092
|
+
var decodeURIComponentSafe = (value) => {
|
|
15093
|
+
if (!utils_default.isString(value)) {
|
|
15094
|
+
return value;
|
|
15095
|
+
}
|
|
15096
|
+
try {
|
|
15097
|
+
return decodeURIComponent(value);
|
|
15098
|
+
} catch (error) {
|
|
15099
|
+
return value;
|
|
14381
15100
|
}
|
|
14382
15101
|
};
|
|
14383
|
-
var
|
|
15102
|
+
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
15103
|
+
stream4.on("end", flush).on("error", flush);
|
|
15104
|
+
return throttled;
|
|
15105
|
+
};
|
|
15106
|
+
var http2Sessions = new Http2Sessions_default();
|
|
14384
15107
|
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
14385
15108
|
if (options.beforeRedirects.proxy) {
|
|
14386
15109
|
options.beforeRedirects.proxy(options);
|
|
14387
15110
|
}
|
|
15111
|
+
if (options.beforeRedirects.auth) {
|
|
15112
|
+
options.beforeRedirects.auth(options);
|
|
15113
|
+
}
|
|
15114
|
+
if (options.beforeRedirects.sensitiveHeaders) {
|
|
15115
|
+
options.beforeRedirects.sensitiveHeaders(options, requestDetails);
|
|
15116
|
+
}
|
|
14388
15117
|
if (options.beforeRedirects.config) {
|
|
14389
15118
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
14390
15119
|
}
|
|
14391
15120
|
}
|
|
14392
|
-
function
|
|
15121
|
+
function stripMatchingHeaders(headers, sensitiveSet) {
|
|
15122
|
+
if (!headers) {
|
|
15123
|
+
return;
|
|
15124
|
+
}
|
|
15125
|
+
Object.keys(headers).forEach((header) => {
|
|
15126
|
+
if (sensitiveSet.has(header.toLowerCase())) {
|
|
15127
|
+
delete headers[header];
|
|
15128
|
+
}
|
|
15129
|
+
});
|
|
15130
|
+
}
|
|
15131
|
+
function isSameOriginRedirect(redirectOptions, requestDetails) {
|
|
15132
|
+
if (!requestDetails) {
|
|
15133
|
+
return false;
|
|
15134
|
+
}
|
|
15135
|
+
try {
|
|
15136
|
+
return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
|
|
15137
|
+
} catch (e) {
|
|
15138
|
+
return false;
|
|
15139
|
+
}
|
|
15140
|
+
}
|
|
15141
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
|
|
14393
15142
|
let proxy = configProxy;
|
|
14394
|
-
|
|
15143
|
+
const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
|
|
15144
|
+
if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
14395
15145
|
const proxyUrl = getProxyForUrl(location);
|
|
14396
15146
|
if (proxyUrl) {
|
|
14397
15147
|
if (!shouldBypassProxy(location)) {
|
|
@@ -14482,8 +15232,19 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
|
|
|
14482
15232
|
}
|
|
14483
15233
|
}
|
|
14484
15234
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
14485
|
-
setProxy(
|
|
15235
|
+
setProxy(
|
|
15236
|
+
redirectOptions,
|
|
15237
|
+
configProxy,
|
|
15238
|
+
redirectOptions.href,
|
|
15239
|
+
true,
|
|
15240
|
+
configHttpsAgent,
|
|
15241
|
+
configHttpAgent,
|
|
15242
|
+
allowEnvProxy
|
|
15243
|
+
);
|
|
14486
15244
|
};
|
|
15245
|
+
return Boolean(
|
|
15246
|
+
proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent)
|
|
15247
|
+
);
|
|
14487
15248
|
}
|
|
14488
15249
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
14489
15250
|
var wrapAsync = (asyncExecutor) => {
|
|
@@ -14508,7 +15269,7 @@ var wrapAsync = (asyncExecutor) => {
|
|
|
14508
15269
|
};
|
|
14509
15270
|
var resolveFamily = ({ address, family }) => {
|
|
14510
15271
|
if (!utils_default.isString(address)) {
|
|
14511
|
-
throw
|
|
15272
|
+
throw new AxiosError_default("address must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
14512
15273
|
}
|
|
14513
15274
|
return {
|
|
14514
15275
|
address,
|
|
@@ -14516,12 +15277,36 @@ var resolveFamily = ({ address, family }) => {
|
|
|
14516
15277
|
};
|
|
14517
15278
|
};
|
|
14518
15279
|
var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
|
|
15280
|
+
var normalizedLookupCache = /* @__PURE__ */ new WeakMap();
|
|
15281
|
+
var normalizeLookup = (lookup) => {
|
|
15282
|
+
let normalized = normalizedLookupCache.get(lookup);
|
|
15283
|
+
if (normalized) {
|
|
15284
|
+
return normalized;
|
|
15285
|
+
}
|
|
15286
|
+
const callbackLookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
15287
|
+
normalized = (hostname, opt, cb) => {
|
|
15288
|
+
callbackLookup(hostname, opt, (err, arg0, arg1) => {
|
|
15289
|
+
if (err) {
|
|
15290
|
+
return cb(err);
|
|
15291
|
+
}
|
|
15292
|
+
let addresses;
|
|
15293
|
+
try {
|
|
15294
|
+
addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
15295
|
+
} catch (error) {
|
|
15296
|
+
return cb(error);
|
|
15297
|
+
}
|
|
15298
|
+
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
15299
|
+
});
|
|
15300
|
+
};
|
|
15301
|
+
normalizedLookupCache.set(lookup, normalized);
|
|
15302
|
+
return normalized;
|
|
15303
|
+
};
|
|
14519
15304
|
var http2Transport = {
|
|
14520
15305
|
request(options, cb) {
|
|
14521
15306
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
14522
15307
|
const { http2Options, headers } = options;
|
|
14523
15308
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
14524
|
-
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } =
|
|
15309
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
|
|
14525
15310
|
const http2Headers = {
|
|
14526
15311
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
14527
15312
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -14545,39 +15330,56 @@ var http2Transport = {
|
|
|
14545
15330
|
};
|
|
14546
15331
|
var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
14547
15332
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
14548
|
-
const own2 = (key) => utils_default.
|
|
15333
|
+
const own2 = (key) => utils_default.getSafeProp(config, key);
|
|
15334
|
+
const transitional2 = own2("transitional") || transitional_default;
|
|
14549
15335
|
let data = own2("data");
|
|
14550
15336
|
let lookup = own2("lookup");
|
|
14551
15337
|
let family = own2("family");
|
|
14552
15338
|
let httpVersion = own2("httpVersion");
|
|
14553
15339
|
if (httpVersion === void 0) httpVersion = 1;
|
|
15340
|
+
const rawHttpVersion = httpVersion;
|
|
14554
15341
|
let http2Options = own2("http2Options");
|
|
15342
|
+
const httpAgent = own2("httpAgent");
|
|
15343
|
+
const httpsAgent = own2("httpsAgent");
|
|
15344
|
+
const configProxy = own2("proxy");
|
|
14555
15345
|
const responseType = own2("responseType");
|
|
14556
15346
|
const responseEncoding = own2("responseEncoding");
|
|
14557
|
-
const
|
|
15347
|
+
const socketPath = own2("socketPath");
|
|
15348
|
+
const method = own2("method").toUpperCase();
|
|
15349
|
+
const maxRedirects = own2("maxRedirects");
|
|
15350
|
+
const maxBodyLength = own2("maxBodyLength");
|
|
15351
|
+
const maxContentLength = own2("maxContentLength");
|
|
15352
|
+
const decompress = own2("decompress");
|
|
14558
15353
|
let isDone;
|
|
14559
15354
|
let rejected = false;
|
|
14560
15355
|
let req;
|
|
14561
15356
|
let connectPhaseTimer;
|
|
14562
|
-
|
|
15357
|
+
try {
|
|
15358
|
+
httpVersion = +httpVersion;
|
|
15359
|
+
} catch (err) {
|
|
15360
|
+
throw new AxiosError_default(
|
|
15361
|
+
"Invalid protocol version: value is not a number",
|
|
15362
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15363
|
+
config
|
|
15364
|
+
);
|
|
15365
|
+
}
|
|
14563
15366
|
if (Number.isNaN(httpVersion)) {
|
|
14564
|
-
throw
|
|
15367
|
+
throw new AxiosError_default(
|
|
15368
|
+
`Invalid protocol version: '${rawHttpVersion}' is not a number`,
|
|
15369
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15370
|
+
config
|
|
15371
|
+
);
|
|
14565
15372
|
}
|
|
14566
15373
|
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
14567
|
-
throw
|
|
15374
|
+
throw new AxiosError_default(
|
|
15375
|
+
`Unsupported protocol version '${httpVersion}'`,
|
|
15376
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15377
|
+
config
|
|
15378
|
+
);
|
|
14568
15379
|
}
|
|
14569
15380
|
const isHttp2 = httpVersion === 2;
|
|
14570
15381
|
if (lookup) {
|
|
14571
|
-
|
|
14572
|
-
lookup = (hostname, opt, cb) => {
|
|
14573
|
-
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
14574
|
-
if (err) {
|
|
14575
|
-
return cb(err);
|
|
14576
|
-
}
|
|
14577
|
-
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
14578
|
-
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
14579
|
-
});
|
|
14580
|
-
};
|
|
15382
|
+
lookup = normalizeLookup(lookup);
|
|
14581
15383
|
}
|
|
14582
15384
|
const abortEmitter = new EventEmitter();
|
|
14583
15385
|
function abort(reason) {
|
|
@@ -14587,7 +15389,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14587
15389
|
!reason || reason.type ? new CanceledError_default(null, config, req) : reason
|
|
14588
15390
|
);
|
|
14589
15391
|
} catch (err) {
|
|
14590
|
-
console.warn("emit error", err);
|
|
14591
15392
|
}
|
|
14592
15393
|
}
|
|
14593
15394
|
function clearConnectPhaseTimer() {
|
|
@@ -14597,10 +15398,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14597
15398
|
}
|
|
14598
15399
|
}
|
|
14599
15400
|
function createTimeoutError() {
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
|
|
14603
|
-
|
|
15401
|
+
const configTimeout = own2("timeout");
|
|
15402
|
+
let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
|
|
15403
|
+
const configTimeoutErrorMessage = own2("timeoutErrorMessage");
|
|
15404
|
+
if (configTimeoutErrorMessage) {
|
|
15405
|
+
timeoutErrorMessage = configTimeoutErrorMessage;
|
|
14604
15406
|
}
|
|
14605
15407
|
return new AxiosError_default(
|
|
14606
15408
|
timeoutErrorMessage,
|
|
@@ -14644,17 +15446,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14644
15446
|
onFinished();
|
|
14645
15447
|
}
|
|
14646
15448
|
});
|
|
14647
|
-
const fullPath = buildFullPath(
|
|
14648
|
-
const
|
|
15449
|
+
const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
|
|
15450
|
+
const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : void 0;
|
|
15451
|
+
const parsed = new URL(fullPath, urlBase);
|
|
14649
15452
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
14650
15453
|
if (protocol === "data:") {
|
|
14651
|
-
if (
|
|
14652
|
-
const dataUrl = String(
|
|
14653
|
-
const estimated =
|
|
14654
|
-
if (estimated >
|
|
15454
|
+
if (maxContentLength > -1) {
|
|
15455
|
+
const dataUrl = String(own2("url") || fullPath || "");
|
|
15456
|
+
const estimated = estimateDataURLBufferAllocation(dataUrl);
|
|
15457
|
+
if (estimated > maxContentLength) {
|
|
14655
15458
|
return reject(
|
|
14656
15459
|
new AxiosError_default(
|
|
14657
|
-
"maxContentLength size of " +
|
|
15460
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
14658
15461
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
14659
15462
|
config
|
|
14660
15463
|
)
|
|
@@ -14671,7 +15474,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14671
15474
|
});
|
|
14672
15475
|
}
|
|
14673
15476
|
try {
|
|
14674
|
-
convertedData = fromDataURI(
|
|
15477
|
+
convertedData = fromDataURI(own2("url"), responseType === "blob", {
|
|
14675
15478
|
Blob: config.env && config.env.Blob
|
|
14676
15479
|
});
|
|
14677
15480
|
} catch (err) {
|
|
@@ -14720,7 +15523,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14720
15523
|
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
14721
15524
|
if (!headers.hasContentLength()) {
|
|
14722
15525
|
try {
|
|
14723
|
-
const knownLength = await
|
|
15526
|
+
const knownLength = await util3.promisify(data.getLength).call(data);
|
|
14724
15527
|
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
|
|
14725
15528
|
} catch (e) {
|
|
14726
15529
|
}
|
|
@@ -14745,7 +15548,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14745
15548
|
);
|
|
14746
15549
|
}
|
|
14747
15550
|
headers.setContentLength(data.length, false);
|
|
14748
|
-
if (
|
|
15551
|
+
if (maxBodyLength > -1 && data.length > maxBodyLength) {
|
|
14749
15552
|
return reject(
|
|
14750
15553
|
new AxiosError_default(
|
|
14751
15554
|
"Request body larger than maxBodyLength limit",
|
|
@@ -14781,7 +15584,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14781
15584
|
data,
|
|
14782
15585
|
progressEventDecorator(
|
|
14783
15586
|
contentLength,
|
|
14784
|
-
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
15587
|
+
progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
|
|
14785
15588
|
)
|
|
14786
15589
|
)
|
|
14787
15590
|
);
|
|
@@ -14789,11 +15592,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14789
15592
|
let auth = void 0;
|
|
14790
15593
|
const configAuth = own2("auth");
|
|
14791
15594
|
if (configAuth) {
|
|
14792
|
-
const username = configAuth
|
|
14793
|
-
const password = configAuth
|
|
15595
|
+
const username = utils_default.getSafeProp(configAuth, "username") || "";
|
|
15596
|
+
const password = utils_default.getSafeProp(configAuth, "password") || "";
|
|
14794
15597
|
auth = username + ":" + password;
|
|
14795
15598
|
}
|
|
14796
|
-
if (!auth && parsed.username) {
|
|
15599
|
+
if (!auth && (parsed.username || parsed.password)) {
|
|
14797
15600
|
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
14798
15601
|
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
14799
15602
|
auth = urlUsername + ":" + urlPassword;
|
|
@@ -14803,96 +15606,165 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14803
15606
|
try {
|
|
14804
15607
|
path = buildURL(
|
|
14805
15608
|
parsed.pathname + parsed.search,
|
|
14806
|
-
|
|
14807
|
-
|
|
15609
|
+
own2("params"),
|
|
15610
|
+
own2("paramsSerializer")
|
|
14808
15611
|
).replace(/^\?/, "");
|
|
14809
15612
|
} catch (err) {
|
|
14810
|
-
|
|
14811
|
-
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
|
|
15613
|
+
return reject(
|
|
15614
|
+
AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
|
|
15615
|
+
url: own2("url"),
|
|
15616
|
+
exists: true
|
|
15617
|
+
})
|
|
15618
|
+
);
|
|
14815
15619
|
}
|
|
14816
15620
|
headers.set(
|
|
14817
15621
|
"Accept-Encoding",
|
|
14818
|
-
|
|
15622
|
+
utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
|
|
14819
15623
|
false
|
|
14820
15624
|
);
|
|
15625
|
+
if (isHttp2 && lookup) {
|
|
15626
|
+
http2Options = Object.assign(/* @__PURE__ */ Object.create(null), http2Options, { lookup });
|
|
15627
|
+
}
|
|
14821
15628
|
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
14822
15629
|
path,
|
|
14823
15630
|
method,
|
|
14824
15631
|
headers: toByteStringHeaderObject(headers),
|
|
14825
|
-
agents: { http:
|
|
15632
|
+
agents: { http: httpAgent, https: httpsAgent },
|
|
14826
15633
|
auth,
|
|
14827
15634
|
protocol,
|
|
14828
15635
|
family,
|
|
14829
15636
|
beforeRedirect: dispatchBeforeRedirect,
|
|
14830
15637
|
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
14831
|
-
http2Options
|
|
15638
|
+
http2Options,
|
|
15639
|
+
createConnection: void 0
|
|
14832
15640
|
});
|
|
14833
15641
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
14834
|
-
|
|
14835
|
-
|
|
15642
|
+
let proxyApplied = false;
|
|
15643
|
+
if (socketPath) {
|
|
15644
|
+
if (typeof socketPath !== "string") {
|
|
14836
15645
|
return reject(
|
|
14837
15646
|
new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
|
|
14838
15647
|
);
|
|
14839
15648
|
}
|
|
14840
|
-
|
|
14841
|
-
|
|
14842
|
-
const
|
|
15649
|
+
const allowedSocketPaths = own2("allowedSocketPaths");
|
|
15650
|
+
if (allowedSocketPaths != null) {
|
|
15651
|
+
const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
|
|
15652
|
+
const resolvedSocket = resolvePath(socketPath);
|
|
14843
15653
|
const isAllowed = allowed.some(
|
|
14844
15654
|
(entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
|
|
14845
15655
|
);
|
|
14846
15656
|
if (!isAllowed) {
|
|
14847
15657
|
return reject(
|
|
14848
15658
|
new AxiosError_default(
|
|
14849
|
-
`socketPath "${
|
|
15659
|
+
`socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
|
|
14850
15660
|
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
14851
15661
|
config
|
|
14852
15662
|
)
|
|
14853
15663
|
);
|
|
14854
15664
|
}
|
|
14855
15665
|
}
|
|
14856
|
-
options.socketPath =
|
|
15666
|
+
options.socketPath = socketPath;
|
|
14857
15667
|
} else {
|
|
14858
15668
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
14859
15669
|
options.port = parsed.port;
|
|
14860
|
-
setProxy(
|
|
15670
|
+
proxyApplied = setProxy(
|
|
14861
15671
|
options,
|
|
14862
|
-
|
|
15672
|
+
configProxy,
|
|
14863
15673
|
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
|
|
14864
15674
|
false,
|
|
14865
|
-
|
|
15675
|
+
httpsAgent,
|
|
15676
|
+
httpAgent,
|
|
15677
|
+
// The HTTP/2 transport connects independently of HTTP/1 agents, so it
|
|
15678
|
+
// cannot apply either axios-resolved or agent-local environment proxies.
|
|
15679
|
+
// Explicit proxy config is still processed and rejected below.
|
|
15680
|
+
!isHttp2
|
|
14866
15681
|
);
|
|
14867
15682
|
}
|
|
14868
15683
|
let transport;
|
|
14869
15684
|
let isNativeTransport = false;
|
|
15685
|
+
let transportEnforcesMaxBodyLength = false;
|
|
14870
15686
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
14871
15687
|
if (options.agent == null) {
|
|
14872
|
-
options.agent = isHttpsRequest ?
|
|
15688
|
+
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
14873
15689
|
}
|
|
14874
15690
|
if (isHttp2) {
|
|
15691
|
+
if (proxyApplied) {
|
|
15692
|
+
return reject(
|
|
15693
|
+
new AxiosError_default(
|
|
15694
|
+
"HTTP/2 requests with a proxy are not supported",
|
|
15695
|
+
AxiosError_default.ERR_NOT_SUPPORT,
|
|
15696
|
+
config
|
|
15697
|
+
)
|
|
15698
|
+
);
|
|
15699
|
+
}
|
|
14875
15700
|
transport = http2Transport;
|
|
14876
15701
|
} else {
|
|
14877
15702
|
const configTransport = own2("transport");
|
|
14878
15703
|
if (configTransport) {
|
|
14879
15704
|
transport = configTransport;
|
|
14880
|
-
} else if (
|
|
15705
|
+
} else if (maxRedirects === 0) {
|
|
14881
15706
|
transport = isHttpsRequest ? https : http;
|
|
14882
15707
|
isNativeTransport = true;
|
|
14883
15708
|
} else {
|
|
14884
|
-
|
|
14885
|
-
|
|
15709
|
+
transportEnforcesMaxBodyLength = true;
|
|
15710
|
+
options.sensitiveHeaders = [];
|
|
15711
|
+
if (maxRedirects) {
|
|
15712
|
+
options.maxRedirects = maxRedirects;
|
|
14886
15713
|
}
|
|
14887
15714
|
const configBeforeRedirect = own2("beforeRedirect");
|
|
14888
15715
|
if (configBeforeRedirect) {
|
|
14889
15716
|
options.beforeRedirects.config = configBeforeRedirect;
|
|
14890
15717
|
}
|
|
15718
|
+
if (auth) {
|
|
15719
|
+
const requestOrigin = parsed.origin;
|
|
15720
|
+
const authToRestore = auth;
|
|
15721
|
+
options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
|
|
15722
|
+
try {
|
|
15723
|
+
if (new URL(redirectOptions.href).origin === requestOrigin) {
|
|
15724
|
+
redirectOptions.auth = authToRestore;
|
|
15725
|
+
}
|
|
15726
|
+
} catch (e) {
|
|
15727
|
+
}
|
|
15728
|
+
};
|
|
15729
|
+
}
|
|
15730
|
+
const sensitiveHeaders = own2("sensitiveHeaders");
|
|
15731
|
+
if (sensitiveHeaders != null) {
|
|
15732
|
+
if (!utils_default.isArray(sensitiveHeaders)) {
|
|
15733
|
+
return reject(
|
|
15734
|
+
new AxiosError_default(
|
|
15735
|
+
"sensitiveHeaders must be an array of strings",
|
|
15736
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15737
|
+
config
|
|
15738
|
+
)
|
|
15739
|
+
);
|
|
15740
|
+
}
|
|
15741
|
+
const sensitiveSet = /* @__PURE__ */ new Set();
|
|
15742
|
+
for (const header of sensitiveHeaders) {
|
|
15743
|
+
if (!utils_default.isString(header)) {
|
|
15744
|
+
return reject(
|
|
15745
|
+
new AxiosError_default(
|
|
15746
|
+
"sensitiveHeaders must be an array of strings",
|
|
15747
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15748
|
+
config
|
|
15749
|
+
)
|
|
15750
|
+
);
|
|
15751
|
+
}
|
|
15752
|
+
sensitiveSet.add(header.toLowerCase());
|
|
15753
|
+
}
|
|
15754
|
+
if (sensitiveSet.size) {
|
|
15755
|
+
options.sensitiveHeaders = Array.from(sensitiveSet);
|
|
15756
|
+
options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
|
|
15757
|
+
if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
|
|
15758
|
+
stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
|
|
15759
|
+
}
|
|
15760
|
+
};
|
|
15761
|
+
}
|
|
15762
|
+
}
|
|
14891
15763
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
14892
15764
|
}
|
|
14893
15765
|
}
|
|
14894
|
-
if (
|
|
14895
|
-
options.maxBodyLength =
|
|
15766
|
+
if (maxBodyLength > -1) {
|
|
15767
|
+
options.maxBodyLength = maxBodyLength;
|
|
14896
15768
|
} else {
|
|
14897
15769
|
options.maxBodyLength = Infinity;
|
|
14898
15770
|
}
|
|
@@ -14912,7 +15784,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14912
15784
|
transformStream,
|
|
14913
15785
|
progressEventDecorator(
|
|
14914
15786
|
responseLength,
|
|
14915
|
-
progressEventReducer(
|
|
15787
|
+
progressEventReducer(
|
|
15788
|
+
asyncDecorator(onDownloadProgress, scheduleProgress),
|
|
15789
|
+
true,
|
|
15790
|
+
3
|
|
15791
|
+
)
|
|
14916
15792
|
)
|
|
14917
15793
|
)
|
|
14918
15794
|
);
|
|
@@ -14920,7 +15796,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14920
15796
|
}
|
|
14921
15797
|
let responseStream = res;
|
|
14922
15798
|
const lastRequest = res.req || req;
|
|
14923
|
-
if (
|
|
15799
|
+
if (decompress !== false && res.headers["content-encoding"]) {
|
|
14924
15800
|
if (method === "HEAD" || res.statusCode === 204) {
|
|
14925
15801
|
delete res.headers["content-encoding"];
|
|
14926
15802
|
}
|
|
@@ -14943,6 +15819,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14943
15819
|
streams.push(zlib.createBrotliDecompress(brotliOptions));
|
|
14944
15820
|
delete res.headers["content-encoding"];
|
|
14945
15821
|
}
|
|
15822
|
+
break;
|
|
15823
|
+
case "zstd":
|
|
15824
|
+
if (isZstdSupported) {
|
|
15825
|
+
streams.push(zlib.createZstdDecompress(zstdOptions));
|
|
15826
|
+
delete res.headers["content-encoding"];
|
|
15827
|
+
}
|
|
15828
|
+
break;
|
|
14946
15829
|
}
|
|
14947
15830
|
}
|
|
14948
15831
|
responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
|
|
@@ -14954,8 +15837,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14954
15837
|
request: lastRequest
|
|
14955
15838
|
};
|
|
14956
15839
|
if (responseType === "stream") {
|
|
14957
|
-
if (
|
|
14958
|
-
const limit =
|
|
15840
|
+
if (maxContentLength > -1) {
|
|
15841
|
+
const limit = maxContentLength;
|
|
14959
15842
|
const source = responseStream;
|
|
14960
15843
|
async function* enforceMaxContentLength() {
|
|
14961
15844
|
let totalResponseBytes = 0;
|
|
@@ -14984,12 +15867,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14984
15867
|
responseStream.on("data", function handleStreamData(chunk) {
|
|
14985
15868
|
responseBuffer.push(chunk);
|
|
14986
15869
|
totalResponseBytes += chunk.length;
|
|
14987
|
-
if (
|
|
15870
|
+
if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
|
|
14988
15871
|
rejected = true;
|
|
14989
15872
|
responseStream.destroy();
|
|
14990
15873
|
abort(
|
|
14991
15874
|
new AxiosError_default(
|
|
14992
|
-
"maxContentLength size of " +
|
|
15875
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
14993
15876
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
14994
15877
|
config,
|
|
14995
15878
|
lastRequest
|
|
@@ -15050,14 +15933,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15050
15933
|
});
|
|
15051
15934
|
const boundSockets = /* @__PURE__ */ new Set();
|
|
15052
15935
|
req.on("socket", function handleRequestSocket(socket) {
|
|
15053
|
-
socket.setKeepAlive
|
|
15936
|
+
if (typeof socket.setKeepAlive === "function") {
|
|
15937
|
+
socket.setKeepAlive(true, 1e3 * 60);
|
|
15938
|
+
}
|
|
15054
15939
|
if (!socket[kAxiosSocketListener]) {
|
|
15055
|
-
socket.on("error",
|
|
15056
|
-
const current = socket[kAxiosCurrentReq];
|
|
15057
|
-
if (current && !current.destroyed) {
|
|
15058
|
-
current.destroy(err);
|
|
15059
|
-
}
|
|
15060
|
-
});
|
|
15940
|
+
socket.on("error", handleSocketError);
|
|
15061
15941
|
socket[kAxiosSocketListener] = true;
|
|
15062
15942
|
}
|
|
15063
15943
|
socket[kAxiosCurrentReq] = req;
|
|
@@ -15072,8 +15952,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15072
15952
|
}
|
|
15073
15953
|
boundSockets.clear();
|
|
15074
15954
|
});
|
|
15075
|
-
if (
|
|
15076
|
-
const timeout = parseInt(
|
|
15955
|
+
if (own2("timeout")) {
|
|
15956
|
+
const timeout = parseInt(own2("timeout"), 10);
|
|
15077
15957
|
if (Number.isNaN(timeout)) {
|
|
15078
15958
|
abort(
|
|
15079
15959
|
new AxiosError_default(
|
|
@@ -15112,8 +15992,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15112
15992
|
}
|
|
15113
15993
|
});
|
|
15114
15994
|
let uploadStream = data;
|
|
15115
|
-
if (
|
|
15116
|
-
const limit =
|
|
15995
|
+
if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
|
|
15996
|
+
const limit = maxBodyLength;
|
|
15117
15997
|
let bytesSent = 0;
|
|
15118
15998
|
uploadStream = stream3.pipeline(
|
|
15119
15999
|
[
|
|
@@ -15149,7 +16029,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15149
16029
|
});
|
|
15150
16030
|
};
|
|
15151
16031
|
|
|
15152
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16032
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
15153
16033
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
15154
16034
|
url2 = new URL(url2, platform_default.origin);
|
|
15155
16035
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
@@ -15158,7 +16038,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
|
|
|
15158
16038
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
15159
16039
|
) : () => true;
|
|
15160
16040
|
|
|
15161
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16041
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
|
|
15162
16042
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
15163
16043
|
// Standard browser envs support document.cookie
|
|
15164
16044
|
{
|
|
@@ -15189,7 +16069,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
15189
16069
|
const cookie = cookies[i].replace(/^\s+/, "");
|
|
15190
16070
|
const eq = cookie.indexOf("=");
|
|
15191
16071
|
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
15192
|
-
|
|
16072
|
+
try {
|
|
16073
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
16074
|
+
} catch (e) {
|
|
16075
|
+
return cookie.slice(eq + 1);
|
|
16076
|
+
}
|
|
15193
16077
|
}
|
|
15194
16078
|
}
|
|
15195
16079
|
return null;
|
|
@@ -15211,9 +16095,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
15211
16095
|
}
|
|
15212
16096
|
);
|
|
15213
16097
|
|
|
15214
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16098
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
|
|
15215
16099
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
16100
|
+
var ownEnumerableKeys = (thing) => {
|
|
16101
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
16102
|
+
return Object.keys(thing).concat(
|
|
16103
|
+
Object.getOwnPropertySymbols(thing).filter(
|
|
16104
|
+
(symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
|
|
16105
|
+
)
|
|
16106
|
+
);
|
|
16107
|
+
}
|
|
16108
|
+
return Object.keys(thing);
|
|
16109
|
+
};
|
|
15216
16110
|
function mergeConfig(config1, config2) {
|
|
16111
|
+
config1 = config1 || {};
|
|
15217
16112
|
config2 = config2 || {};
|
|
15218
16113
|
const config = /* @__PURE__ */ Object.create(null);
|
|
15219
16114
|
Object.defineProperty(config, "hasOwnProperty", {
|
|
@@ -15254,6 +16149,23 @@ function mergeConfig(config1, config2) {
|
|
|
15254
16149
|
return getMergedValue(void 0, a);
|
|
15255
16150
|
}
|
|
15256
16151
|
}
|
|
16152
|
+
function getMergedTransitionalOption(prop) {
|
|
16153
|
+
const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
16154
|
+
if (!utils_default.isUndefined(transitional2)) {
|
|
16155
|
+
if (utils_default.isPlainObject(transitional2)) {
|
|
16156
|
+
if (utils_default.hasOwnProp(transitional2, prop)) {
|
|
16157
|
+
return transitional2[prop];
|
|
16158
|
+
}
|
|
16159
|
+
} else {
|
|
16160
|
+
return void 0;
|
|
16161
|
+
}
|
|
16162
|
+
}
|
|
16163
|
+
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
16164
|
+
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
|
|
16165
|
+
return transitional1[prop];
|
|
16166
|
+
}
|
|
16167
|
+
return void 0;
|
|
16168
|
+
}
|
|
15257
16169
|
function mergeDirectKeys(a, b, prop) {
|
|
15258
16170
|
if (utils_default.hasOwnProp(config2, prop)) {
|
|
15259
16171
|
return getMergedValue(a, b);
|
|
@@ -15270,7 +16182,7 @@ function mergeConfig(config1, config2) {
|
|
|
15270
16182
|
transformResponse: defaultToConfig2,
|
|
15271
16183
|
paramsSerializer: defaultToConfig2,
|
|
15272
16184
|
timeout: defaultToConfig2,
|
|
15273
|
-
|
|
16185
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
15274
16186
|
withCredentials: defaultToConfig2,
|
|
15275
16187
|
withXSRFToken: defaultToConfig2,
|
|
15276
16188
|
adapter: defaultToConfig2,
|
|
@@ -15293,7 +16205,7 @@ function mergeConfig(config1, config2) {
|
|
|
15293
16205
|
validateStatus: mergeDirectKeys,
|
|
15294
16206
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
15295
16207
|
};
|
|
15296
|
-
utils_default.forEach(
|
|
16208
|
+
utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
15297
16209
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
15298
16210
|
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
15299
16211
|
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
@@ -15301,27 +16213,22 @@ function mergeConfig(config1, config2) {
|
|
|
15301
16213
|
const configValue = merge2(a, b, prop);
|
|
15302
16214
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
15303
16215
|
});
|
|
16216
|
+
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
|
|
16217
|
+
if (utils_default.hasOwnProp(config1, "validateStatus")) {
|
|
16218
|
+
config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
16219
|
+
} else {
|
|
16220
|
+
delete config.validateStatus;
|
|
16221
|
+
}
|
|
16222
|
+
}
|
|
15304
16223
|
return config;
|
|
15305
16224
|
}
|
|
15306
16225
|
|
|
15307
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15308
|
-
var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
|
|
15309
|
-
function setFormDataHeaders2(headers, formHeaders, policy) {
|
|
15310
|
-
if (policy !== "content-only") {
|
|
15311
|
-
headers.set(formHeaders);
|
|
15312
|
-
return;
|
|
15313
|
-
}
|
|
15314
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
15315
|
-
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
|
|
15316
|
-
headers.set(key, val);
|
|
15317
|
-
}
|
|
15318
|
-
});
|
|
15319
|
-
}
|
|
16226
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
|
|
15320
16227
|
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
15321
16228
|
/%([0-9A-F]{2})/gi,
|
|
15322
16229
|
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
15323
16230
|
);
|
|
15324
|
-
|
|
16231
|
+
function resolveConfig(config) {
|
|
15325
16232
|
const newConfig = mergeConfig({}, config);
|
|
15326
16233
|
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
15327
16234
|
const data = own2("data");
|
|
@@ -15335,21 +16242,28 @@ var resolveConfig_default = (config) => {
|
|
|
15335
16242
|
const url2 = own2("url");
|
|
15336
16243
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
15337
16244
|
newConfig.url = buildURL(
|
|
15338
|
-
buildFullPath(baseURL, url2, allowAbsoluteUrls),
|
|
15339
|
-
|
|
15340
|
-
|
|
16245
|
+
buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
|
|
16246
|
+
own2("params"),
|
|
16247
|
+
own2("paramsSerializer")
|
|
15341
16248
|
);
|
|
15342
16249
|
if (auth) {
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
|
|
15346
|
-
|
|
16250
|
+
const username = utils_default.getSafeProp(auth, "username") || "";
|
|
16251
|
+
const password = utils_default.getSafeProp(auth, "password") || "";
|
|
16252
|
+
try {
|
|
16253
|
+
headers.set(
|
|
16254
|
+
"Authorization",
|
|
16255
|
+
"Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
|
|
16256
|
+
);
|
|
16257
|
+
} catch (e) {
|
|
16258
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
|
|
16259
|
+
}
|
|
15347
16260
|
}
|
|
15348
16261
|
if (utils_default.isFormData(data)) {
|
|
15349
|
-
|
|
16262
|
+
const getHeaders = utils_default.getSafeProp(data, "getHeaders");
|
|
16263
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
|
|
15350
16264
|
headers.setContentType(void 0);
|
|
15351
|
-
} else if (utils_default.isFunction(
|
|
15352
|
-
|
|
16265
|
+
} else if (utils_default.isFunction(getHeaders)) {
|
|
16266
|
+
setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
|
|
15353
16267
|
}
|
|
15354
16268
|
}
|
|
15355
16269
|
if (platform_default.hasStandardBrowserEnv) {
|
|
@@ -15365,9 +16279,10 @@ var resolveConfig_default = (config) => {
|
|
|
15365
16279
|
}
|
|
15366
16280
|
}
|
|
15367
16281
|
return newConfig;
|
|
15368
|
-
}
|
|
16282
|
+
}
|
|
16283
|
+
var resolveConfig_default = resolveConfig;
|
|
15369
16284
|
|
|
15370
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16285
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
|
|
15371
16286
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
15372
16287
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
15373
16288
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -15377,7 +16292,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15377
16292
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
15378
16293
|
let onCanceled;
|
|
15379
16294
|
let uploadThrottled, downloadThrottled;
|
|
15380
|
-
let flushUpload, flushDownload;
|
|
16295
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
15381
16296
|
function done() {
|
|
15382
16297
|
flushUpload && flushUpload();
|
|
15383
16298
|
flushDownload && flushDownload();
|
|
@@ -15387,7 +16302,27 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15387
16302
|
let request = new XMLHttpRequest();
|
|
15388
16303
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
15389
16304
|
request.timeout = _config.timeout;
|
|
15390
|
-
function onloadend() {
|
|
16305
|
+
function onloadend(event) {
|
|
16306
|
+
if (!request) {
|
|
16307
|
+
return;
|
|
16308
|
+
}
|
|
16309
|
+
if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
16310
|
+
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
16311
|
+
done();
|
|
16312
|
+
request = null;
|
|
16313
|
+
return;
|
|
16314
|
+
}
|
|
16315
|
+
try {
|
|
16316
|
+
if (event) {
|
|
16317
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
16318
|
+
} else {
|
|
16319
|
+
flushDownload && flushDownload();
|
|
16320
|
+
}
|
|
16321
|
+
} catch (err) {
|
|
16322
|
+
setTimeout(() => {
|
|
16323
|
+
throw err;
|
|
16324
|
+
});
|
|
16325
|
+
}
|
|
15391
16326
|
if (!request) {
|
|
15392
16327
|
return;
|
|
15393
16328
|
}
|
|
@@ -15475,7 +16410,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15475
16410
|
request.responseType = _config.responseType;
|
|
15476
16411
|
}
|
|
15477
16412
|
if (onDownloadProgress) {
|
|
15478
|
-
[downloadThrottled, flushDownload] = progressEventReducer(
|
|
16413
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
|
|
16414
|
+
onDownloadProgress,
|
|
16415
|
+
true
|
|
16416
|
+
);
|
|
15479
16417
|
request.addEventListener("progress", downloadThrottled);
|
|
15480
16418
|
}
|
|
15481
16419
|
if (onUploadProgress && request.upload) {
|
|
@@ -15507,13 +16445,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15507
16445
|
config
|
|
15508
16446
|
)
|
|
15509
16447
|
);
|
|
16448
|
+
done();
|
|
15510
16449
|
return;
|
|
15511
16450
|
}
|
|
15512
16451
|
request.send(requestData || null);
|
|
15513
16452
|
});
|
|
15514
16453
|
};
|
|
15515
16454
|
|
|
15516
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16455
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
|
|
15517
16456
|
var composeSignals = (signals, timeout) => {
|
|
15518
16457
|
signals = signals ? signals.filter(Boolean) : [];
|
|
15519
16458
|
if (!timeout && !signals.length) {
|
|
@@ -15546,14 +16485,23 @@ var composeSignals = (signals, timeout) => {
|
|
|
15546
16485
|
});
|
|
15547
16486
|
signals = null;
|
|
15548
16487
|
};
|
|
15549
|
-
signals.forEach((signal2) =>
|
|
16488
|
+
signals.forEach((signal2) => {
|
|
16489
|
+
if (aborted) {
|
|
16490
|
+
return;
|
|
16491
|
+
}
|
|
16492
|
+
if (signal2.aborted) {
|
|
16493
|
+
onabort.call(signal2);
|
|
16494
|
+
return;
|
|
16495
|
+
}
|
|
16496
|
+
signal2.addEventListener("abort", onabort, { once: true });
|
|
16497
|
+
});
|
|
15550
16498
|
const { signal } = controller;
|
|
15551
16499
|
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
15552
16500
|
return signal;
|
|
15553
16501
|
};
|
|
15554
16502
|
var composeSignals_default = composeSignals;
|
|
15555
16503
|
|
|
15556
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16504
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
|
|
15557
16505
|
var streamChunk = function* (chunk, chunkSize) {
|
|
15558
16506
|
let len = chunk.byteLength;
|
|
15559
16507
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -15633,9 +16581,34 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
15633
16581
|
);
|
|
15634
16582
|
};
|
|
15635
16583
|
|
|
15636
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16584
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
|
|
15637
16585
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
16586
|
+
var DEFAULT_REQUEST_OPTIONS = {
|
|
16587
|
+
cache: "default",
|
|
16588
|
+
redirect: "follow",
|
|
16589
|
+
referrer: "about:client",
|
|
16590
|
+
referrerPolicy: "",
|
|
16591
|
+
mode: "cors",
|
|
16592
|
+
integrity: "",
|
|
16593
|
+
keepalive: false,
|
|
16594
|
+
priority: "auto",
|
|
16595
|
+
window: null
|
|
16596
|
+
};
|
|
15638
16597
|
var { isFunction: isFunction2 } = utils_default;
|
|
16598
|
+
var encodeUTF82 = (str) => encodeURIComponent(str).replace(
|
|
16599
|
+
/%([0-9A-F]{2})/gi,
|
|
16600
|
+
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
16601
|
+
);
|
|
16602
|
+
var decodeURIComponentSafe2 = (value) => {
|
|
16603
|
+
if (!utils_default.isString(value)) {
|
|
16604
|
+
return value;
|
|
16605
|
+
}
|
|
16606
|
+
try {
|
|
16607
|
+
return decodeURIComponent(value);
|
|
16608
|
+
} catch (error) {
|
|
16609
|
+
return value;
|
|
16610
|
+
}
|
|
16611
|
+
};
|
|
15639
16612
|
var test = (fn, ...args) => {
|
|
15640
16613
|
try {
|
|
15641
16614
|
return !!fn(...args);
|
|
@@ -15643,6 +16616,14 @@ var test = (fn, ...args) => {
|
|
|
15643
16616
|
return false;
|
|
15644
16617
|
}
|
|
15645
16618
|
};
|
|
16619
|
+
var maybeWithAuthCredentials = (url2) => {
|
|
16620
|
+
const protocolIndex = url2.indexOf("://");
|
|
16621
|
+
let urlToCheck = url2;
|
|
16622
|
+
if (protocolIndex !== -1) {
|
|
16623
|
+
urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
16624
|
+
}
|
|
16625
|
+
return urlToCheck.includes("@") || urlToCheck.includes(":");
|
|
16626
|
+
};
|
|
15646
16627
|
var factory = (env) => {
|
|
15647
16628
|
const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
|
|
15648
16629
|
const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
|
|
@@ -15743,10 +16724,12 @@ var factory = (env) => {
|
|
|
15743
16724
|
withCredentials = "same-origin",
|
|
15744
16725
|
fetchOptions,
|
|
15745
16726
|
maxContentLength,
|
|
15746
|
-
maxBodyLength
|
|
16727
|
+
maxBodyLength,
|
|
16728
|
+
maxRedirects
|
|
15747
16729
|
} = resolveConfig_default(config);
|
|
15748
16730
|
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
15749
16731
|
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
16732
|
+
const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
15750
16733
|
let _fetch = envFetch || fetch;
|
|
15751
16734
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
15752
16735
|
let composedSignal = composeSignals_default(
|
|
@@ -15758,7 +16741,47 @@ var factory = (env) => {
|
|
|
15758
16741
|
composedSignal.unsubscribe();
|
|
15759
16742
|
});
|
|
15760
16743
|
let requestContentLength;
|
|
16744
|
+
let pendingBodyError = null;
|
|
16745
|
+
const maxBodyLengthError = () => new AxiosError_default(
|
|
16746
|
+
"Request body larger than maxBodyLength limit",
|
|
16747
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
16748
|
+
config,
|
|
16749
|
+
request
|
|
16750
|
+
);
|
|
15761
16751
|
try {
|
|
16752
|
+
let auth = void 0;
|
|
16753
|
+
const configAuth = own2("auth");
|
|
16754
|
+
if (configAuth) {
|
|
16755
|
+
const username = utils_default.getSafeProp(configAuth, "username") || "";
|
|
16756
|
+
const password = utils_default.getSafeProp(configAuth, "password") || "";
|
|
16757
|
+
auth = {
|
|
16758
|
+
username,
|
|
16759
|
+
password
|
|
16760
|
+
};
|
|
16761
|
+
}
|
|
16762
|
+
if (maybeWithAuthCredentials(url2)) {
|
|
16763
|
+
const parsedURL = new URL(url2, platform_default.origin);
|
|
16764
|
+
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
16765
|
+
const urlUsername = decodeURIComponentSafe2(parsedURL.username);
|
|
16766
|
+
const urlPassword = decodeURIComponentSafe2(parsedURL.password);
|
|
16767
|
+
auth = {
|
|
16768
|
+
username: urlUsername,
|
|
16769
|
+
password: urlPassword
|
|
16770
|
+
};
|
|
16771
|
+
}
|
|
16772
|
+
if (parsedURL.username || parsedURL.password) {
|
|
16773
|
+
parsedURL.username = "";
|
|
16774
|
+
parsedURL.password = "";
|
|
16775
|
+
url2 = parsedURL.href;
|
|
16776
|
+
}
|
|
16777
|
+
}
|
|
16778
|
+
if (auth) {
|
|
16779
|
+
headers.delete("authorization");
|
|
16780
|
+
headers.set(
|
|
16781
|
+
"Authorization",
|
|
16782
|
+
"Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
|
|
16783
|
+
);
|
|
16784
|
+
}
|
|
15762
16785
|
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
15763
16786
|
const estimated = estimateDataURLDecodedBytes(url2);
|
|
15764
16787
|
if (estimated > maxContentLength) {
|
|
@@ -15771,33 +16794,55 @@ var factory = (env) => {
|
|
|
15771
16794
|
}
|
|
15772
16795
|
}
|
|
15773
16796
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
15774
|
-
const outboundLength = await
|
|
15775
|
-
if (typeof outboundLength === "number" && isFinite(outboundLength)
|
|
15776
|
-
|
|
15777
|
-
|
|
15778
|
-
|
|
15779
|
-
|
|
15780
|
-
request
|
|
15781
|
-
);
|
|
16797
|
+
const outboundLength = await getBodyLength(data);
|
|
16798
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
16799
|
+
requestContentLength = outboundLength;
|
|
16800
|
+
if (outboundLength > maxBodyLength) {
|
|
16801
|
+
throw maxBodyLengthError();
|
|
16802
|
+
}
|
|
15782
16803
|
}
|
|
15783
16804
|
}
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
}
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
|
|
16805
|
+
const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
|
|
16806
|
+
const trackRequestStream = (stream4, onProgress, flush) => trackStream(
|
|
16807
|
+
stream4,
|
|
16808
|
+
DEFAULT_CHUNK_SIZE,
|
|
16809
|
+
(loadedBytes) => {
|
|
16810
|
+
if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
|
|
16811
|
+
throw pendingBodyError = maxBodyLengthError();
|
|
16812
|
+
}
|
|
16813
|
+
onProgress && onProgress(loadedBytes);
|
|
16814
|
+
},
|
|
16815
|
+
flush
|
|
16816
|
+
);
|
|
16817
|
+
if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
|
|
16818
|
+
requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
|
|
16819
|
+
if (requestContentLength !== 0 || mustEnforceStreamBody) {
|
|
16820
|
+
let _request = new Request(url2, {
|
|
16821
|
+
method: "POST",
|
|
16822
|
+
body: data,
|
|
16823
|
+
duplex: "half"
|
|
16824
|
+
});
|
|
16825
|
+
let contentTypeHeader;
|
|
16826
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
16827
|
+
headers.setContentType(contentTypeHeader);
|
|
16828
|
+
}
|
|
16829
|
+
if (_request.body) {
|
|
16830
|
+
const [onProgress, flush] = onUploadProgress && progressEventDecorator(
|
|
16831
|
+
requestContentLength,
|
|
16832
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
16833
|
+
) || [];
|
|
16834
|
+
data = trackRequestStream(_request.body, onProgress, flush);
|
|
16835
|
+
}
|
|
15800
16836
|
}
|
|
16837
|
+
} else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
|
|
16838
|
+
data = trackRequestStream(data);
|
|
16839
|
+
} else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
|
|
16840
|
+
throw new AxiosError_default(
|
|
16841
|
+
"Stream request bodies are not supported by the current fetch implementation",
|
|
16842
|
+
AxiosError_default.ERR_NOT_SUPPORT,
|
|
16843
|
+
config,
|
|
16844
|
+
request
|
|
16845
|
+
);
|
|
15801
16846
|
}
|
|
15802
16847
|
if (!utils_default.isString(withCredentials)) {
|
|
15803
16848
|
withCredentials = withCredentials ? "include" : "omit";
|
|
@@ -15810,19 +16855,47 @@ var factory = (env) => {
|
|
|
15810
16855
|
}
|
|
15811
16856
|
}
|
|
15812
16857
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
15813
|
-
const
|
|
15814
|
-
|
|
16858
|
+
const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
|
|
16859
|
+
if (safeFetchOptions) {
|
|
16860
|
+
delete safeFetchOptions.body;
|
|
16861
|
+
delete safeFetchOptions.headers;
|
|
16862
|
+
delete safeFetchOptions.method;
|
|
16863
|
+
delete safeFetchOptions.signal;
|
|
16864
|
+
delete safeFetchOptions.duplex;
|
|
16865
|
+
delete safeFetchOptions.credentials;
|
|
16866
|
+
}
|
|
16867
|
+
const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
|
|
15815
16868
|
signal: composedSignal,
|
|
15816
16869
|
method: method.toUpperCase(),
|
|
15817
16870
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
15818
16871
|
body: data,
|
|
15819
16872
|
duplex: "half",
|
|
15820
16873
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
15821
|
-
};
|
|
16874
|
+
});
|
|
16875
|
+
if (isRequestSupported) {
|
|
16876
|
+
utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
16877
|
+
if (resolvedOptions[key] === void 0) {
|
|
16878
|
+
resolvedOptions[key] = value;
|
|
16879
|
+
}
|
|
16880
|
+
});
|
|
16881
|
+
if (resolvedOptions.signal === void 0) {
|
|
16882
|
+
resolvedOptions.signal = null;
|
|
16883
|
+
}
|
|
16884
|
+
if (resolvedOptions.body === void 0) {
|
|
16885
|
+
resolvedOptions.body = null;
|
|
16886
|
+
}
|
|
16887
|
+
}
|
|
16888
|
+
if (maxRedirects === 0) {
|
|
16889
|
+
resolvedOptions.redirect = "manual";
|
|
16890
|
+
if (safeFetchOptions) {
|
|
16891
|
+
safeFetchOptions.redirect = "manual";
|
|
16892
|
+
}
|
|
16893
|
+
}
|
|
15822
16894
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
15823
|
-
let response = await (isRequestSupported ? _fetch(request,
|
|
16895
|
+
let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url2, resolvedOptions));
|
|
16896
|
+
const responseHeaders = AxiosHeaders_default.from(response.headers);
|
|
15824
16897
|
if (hasMaxContentLength) {
|
|
15825
|
-
const declaredLength = utils_default.toFiniteNumber(
|
|
16898
|
+
const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
15826
16899
|
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
15827
16900
|
throw new AxiosError_default(
|
|
15828
16901
|
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
@@ -15838,7 +16911,7 @@ var factory = (env) => {
|
|
|
15838
16911
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
15839
16912
|
options[prop] = response[prop];
|
|
15840
16913
|
});
|
|
15841
|
-
const responseContentLength = utils_default.toFiniteNumber(
|
|
16914
|
+
const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
15842
16915
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
15843
16916
|
responseContentLength,
|
|
15844
16917
|
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
@@ -15908,22 +16981,41 @@ var factory = (env) => {
|
|
|
15908
16981
|
const canceledError = composedSignal.reason;
|
|
15909
16982
|
canceledError.config = config;
|
|
15910
16983
|
request && (canceledError.request = request);
|
|
15911
|
-
err !== canceledError
|
|
16984
|
+
if (err !== canceledError) {
|
|
16985
|
+
Object.defineProperty(canceledError, "cause", {
|
|
16986
|
+
__proto__: null,
|
|
16987
|
+
value: err,
|
|
16988
|
+
writable: true,
|
|
16989
|
+
enumerable: false,
|
|
16990
|
+
configurable: true
|
|
16991
|
+
});
|
|
16992
|
+
}
|
|
15912
16993
|
throw canceledError;
|
|
15913
16994
|
}
|
|
16995
|
+
if (pendingBodyError) {
|
|
16996
|
+
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
16997
|
+
throw pendingBodyError;
|
|
16998
|
+
}
|
|
16999
|
+
if (err instanceof AxiosError_default) {
|
|
17000
|
+
request && !err.request && (err.request = request);
|
|
17001
|
+
throw err;
|
|
17002
|
+
}
|
|
15914
17003
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
15915
|
-
|
|
15916
|
-
|
|
15917
|
-
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
err && err.response
|
|
15922
|
-
),
|
|
15923
|
-
{
|
|
15924
|
-
cause: err.cause || err
|
|
15925
|
-
}
|
|
17004
|
+
const networkError = new AxiosError_default(
|
|
17005
|
+
"Network Error",
|
|
17006
|
+
AxiosError_default.ERR_NETWORK,
|
|
17007
|
+
config,
|
|
17008
|
+
request,
|
|
17009
|
+
err && err.response
|
|
15926
17010
|
);
|
|
17011
|
+
Object.defineProperty(networkError, "cause", {
|
|
17012
|
+
__proto__: null,
|
|
17013
|
+
value: err.cause || err,
|
|
17014
|
+
writable: true,
|
|
17015
|
+
enumerable: false,
|
|
17016
|
+
configurable: true
|
|
17017
|
+
});
|
|
17018
|
+
throw networkError;
|
|
15927
17019
|
}
|
|
15928
17020
|
throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
|
|
15929
17021
|
}
|
|
@@ -15945,7 +17037,7 @@ var getFetch = (config) => {
|
|
|
15945
17037
|
};
|
|
15946
17038
|
var adapter = getFetch();
|
|
15947
17039
|
|
|
15948
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17040
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
|
|
15949
17041
|
var knownAdapters = {
|
|
15950
17042
|
http: http_default,
|
|
15951
17043
|
xhr: xhr_default,
|
|
@@ -15992,7 +17084,7 @@ function getAdapter(adapters, config) {
|
|
|
15992
17084
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
15993
17085
|
throw new AxiosError_default(
|
|
15994
17086
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
15995
|
-
|
|
17087
|
+
AxiosError_default.ERR_NOT_SUPPORT
|
|
15996
17088
|
);
|
|
15997
17089
|
}
|
|
15998
17090
|
return adapter2;
|
|
@@ -16010,7 +17102,7 @@ var adapters_default = {
|
|
|
16010
17102
|
adapters: knownAdapters
|
|
16011
17103
|
};
|
|
16012
17104
|
|
|
16013
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17105
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
|
|
16014
17106
|
function throwIfCancellationRequested(config) {
|
|
16015
17107
|
if (config.cancelToken) {
|
|
16016
17108
|
config.cancelToken.throwIfRequested();
|
|
@@ -16019,9 +17111,10 @@ function throwIfCancellationRequested(config) {
|
|
|
16019
17111
|
throw new CanceledError_default(null, config);
|
|
16020
17112
|
}
|
|
16021
17113
|
}
|
|
16022
|
-
function dispatchRequest(
|
|
17114
|
+
function dispatchRequest(_config) {
|
|
17115
|
+
const config = utils_default.toSafeFlatObject(_config);
|
|
16023
17116
|
throwIfCancellationRequested(config);
|
|
16024
|
-
config.headers = AxiosHeaders_default.from(config
|
|
17117
|
+
config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
|
|
16025
17118
|
config.data = transformData.call(config, config.transformRequest);
|
|
16026
17119
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
16027
17120
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
@@ -16061,7 +17154,7 @@ function dispatchRequest(config) {
|
|
|
16061
17154
|
);
|
|
16062
17155
|
}
|
|
16063
17156
|
|
|
16064
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17157
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
|
|
16065
17158
|
var validators = {};
|
|
16066
17159
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
16067
17160
|
validators[type] = function validator(thing) {
|
|
@@ -16099,7 +17192,7 @@ validators.spelling = function spelling(correctSpelling) {
|
|
|
16099
17192
|
};
|
|
16100
17193
|
};
|
|
16101
17194
|
function assertOptions(options, schema, allowUnknown) {
|
|
16102
|
-
if (typeof options !== "object") {
|
|
17195
|
+
if (typeof options !== "object" || options === null) {
|
|
16103
17196
|
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
16104
17197
|
}
|
|
16105
17198
|
const keys = Object.keys(options);
|
|
@@ -16128,7 +17221,7 @@ var validator_default = {
|
|
|
16128
17221
|
validators
|
|
16129
17222
|
};
|
|
16130
17223
|
|
|
16131
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17224
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
|
|
16132
17225
|
var validators2 = validator_default.validators;
|
|
16133
17226
|
var Axios = class {
|
|
16134
17227
|
constructor(instanceConfig) {
|
|
@@ -16151,16 +17244,15 @@ var Axios = class {
|
|
|
16151
17244
|
return await this._request(configOrUrl, config);
|
|
16152
17245
|
} catch (err) {
|
|
16153
17246
|
if (err instanceof Error) {
|
|
16154
|
-
let dummy = {};
|
|
16155
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
16156
|
-
const stack = (() => {
|
|
16157
|
-
if (!dummy.stack) {
|
|
16158
|
-
return "";
|
|
16159
|
-
}
|
|
16160
|
-
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
16161
|
-
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
16162
|
-
})();
|
|
16163
17247
|
try {
|
|
17248
|
+
let dummy = {};
|
|
17249
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
17250
|
+
const dummyStack = dummy.stack;
|
|
17251
|
+
let stack = "";
|
|
17252
|
+
if (typeof dummyStack === "string") {
|
|
17253
|
+
const firstNewlineIndex = dummyStack.indexOf("\n");
|
|
17254
|
+
stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
|
|
17255
|
+
}
|
|
16164
17256
|
if (!err.stack) {
|
|
16165
17257
|
err.stack = stack;
|
|
16166
17258
|
} else if (stack) {
|
|
@@ -16193,7 +17285,9 @@ var Axios = class {
|
|
|
16193
17285
|
silentJSONParsing: validators2.transitional(validators2.boolean),
|
|
16194
17286
|
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
16195
17287
|
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
16196
|
-
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
17288
|
+
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
|
|
17289
|
+
advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
|
|
17290
|
+
validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
|
|
16197
17291
|
},
|
|
16198
17292
|
false
|
|
16199
17293
|
);
|
|
@@ -16228,9 +17322,9 @@ var Axios = class {
|
|
|
16228
17322
|
},
|
|
16229
17323
|
true
|
|
16230
17324
|
);
|
|
16231
|
-
config.method = (config
|
|
17325
|
+
config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
16232
17326
|
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
16233
|
-
headers && utils_default.forEach(
|
|
17327
|
+
headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
|
|
16234
17328
|
delete headers[method];
|
|
16235
17329
|
});
|
|
16236
17330
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
@@ -16273,16 +17367,31 @@ var Axios = class {
|
|
|
16273
17367
|
const onFulfilled = requestInterceptorChain[i++];
|
|
16274
17368
|
const onRejected = requestInterceptorChain[i++];
|
|
16275
17369
|
try {
|
|
16276
|
-
newConfig = onFulfilled(newConfig);
|
|
17370
|
+
newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
|
|
16277
17371
|
} catch (error) {
|
|
16278
|
-
onRejected
|
|
17372
|
+
if (!onRejected) {
|
|
17373
|
+
promise = Promise.reject(error);
|
|
17374
|
+
break;
|
|
17375
|
+
}
|
|
17376
|
+
try {
|
|
17377
|
+
const rejectedResult = onRejected.call(this, error);
|
|
17378
|
+
if (utils_default.isThenable(rejectedResult)) {
|
|
17379
|
+
promise = Promise.resolve(rejectedResult).then(
|
|
17380
|
+
() => dispatchRequest.call(this, newConfig)
|
|
17381
|
+
);
|
|
17382
|
+
}
|
|
17383
|
+
} catch (rejectedError) {
|
|
17384
|
+
promise = Promise.reject(rejectedError);
|
|
17385
|
+
}
|
|
16279
17386
|
break;
|
|
16280
17387
|
}
|
|
16281
17388
|
}
|
|
16282
|
-
|
|
16283
|
-
|
|
16284
|
-
|
|
16285
|
-
|
|
17389
|
+
if (!promise) {
|
|
17390
|
+
try {
|
|
17391
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
17392
|
+
} catch (error) {
|
|
17393
|
+
promise = Promise.reject(error);
|
|
17394
|
+
}
|
|
16286
17395
|
}
|
|
16287
17396
|
i = 0;
|
|
16288
17397
|
len = responseInterceptorChain.length;
|
|
@@ -16293,7 +17402,7 @@ var Axios = class {
|
|
|
16293
17402
|
}
|
|
16294
17403
|
getUri(config) {
|
|
16295
17404
|
config = mergeConfig(this.defaults, config);
|
|
16296
|
-
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
17405
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
|
|
16297
17406
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
16298
17407
|
}
|
|
16299
17408
|
};
|
|
@@ -16303,7 +17412,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
|
|
|
16303
17412
|
mergeConfig(config || {}, {
|
|
16304
17413
|
method,
|
|
16305
17414
|
url: url2,
|
|
16306
|
-
data: (config
|
|
17415
|
+
data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
|
|
16307
17416
|
})
|
|
16308
17417
|
);
|
|
16309
17418
|
};
|
|
@@ -16330,7 +17439,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
|
|
|
16330
17439
|
});
|
|
16331
17440
|
var Axios_default = Axios;
|
|
16332
17441
|
|
|
16333
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17442
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
|
|
16334
17443
|
var CancelToken = class _CancelToken {
|
|
16335
17444
|
constructor(executor) {
|
|
16336
17445
|
if (typeof executor !== "function") {
|
|
@@ -16428,19 +17537,19 @@ var CancelToken = class _CancelToken {
|
|
|
16428
17537
|
};
|
|
16429
17538
|
var CancelToken_default = CancelToken;
|
|
16430
17539
|
|
|
16431
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17540
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
|
|
16432
17541
|
function spread(callback) {
|
|
16433
17542
|
return function wrap(arr) {
|
|
16434
17543
|
return callback.apply(null, arr);
|
|
16435
17544
|
};
|
|
16436
17545
|
}
|
|
16437
17546
|
|
|
16438
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17547
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
|
|
16439
17548
|
function isAxiosError(payload) {
|
|
16440
17549
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
16441
17550
|
}
|
|
16442
17551
|
|
|
16443
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17552
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
16444
17553
|
var HttpStatusCode = {
|
|
16445
17554
|
Continue: 100,
|
|
16446
17555
|
SwitchingProtocols: 101,
|
|
@@ -16478,14 +17587,22 @@ var HttpStatusCode = {
|
|
|
16478
17587
|
Gone: 410,
|
|
16479
17588
|
LengthRequired: 411,
|
|
16480
17589
|
PreconditionFailed: 412,
|
|
17590
|
+
/**
|
|
17591
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
17592
|
+
*/
|
|
16481
17593
|
PayloadTooLarge: 413,
|
|
17594
|
+
ContentTooLarge: 413,
|
|
16482
17595
|
UriTooLong: 414,
|
|
16483
17596
|
UnsupportedMediaType: 415,
|
|
16484
17597
|
RangeNotSatisfiable: 416,
|
|
16485
17598
|
ExpectationFailed: 417,
|
|
16486
17599
|
ImATeapot: 418,
|
|
16487
17600
|
MisdirectedRequest: 421,
|
|
17601
|
+
/**
|
|
17602
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
17603
|
+
*/
|
|
16488
17604
|
UnprocessableEntity: 422,
|
|
17605
|
+
UnprocessableContent: 422,
|
|
16489
17606
|
Locked: 423,
|
|
16490
17607
|
FailedDependency: 424,
|
|
16491
17608
|
TooEarly: 425,
|
|
@@ -16505,6 +17622,7 @@ var HttpStatusCode = {
|
|
|
16505
17622
|
LoopDetected: 508,
|
|
16506
17623
|
NotExtended: 510,
|
|
16507
17624
|
NetworkAuthenticationRequired: 511,
|
|
17625
|
+
WebServerReturnsAnUnknownError: 520,
|
|
16508
17626
|
WebServerIsDown: 521,
|
|
16509
17627
|
ConnectionTimedOut: 522,
|
|
16510
17628
|
OriginIsUnreachable: 523,
|
|
@@ -16513,11 +17631,13 @@ var HttpStatusCode = {
|
|
|
16513
17631
|
InvalidSslCertificate: 526
|
|
16514
17632
|
};
|
|
16515
17633
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
16516
|
-
HttpStatusCode[value]
|
|
17634
|
+
if (HttpStatusCode[value] === void 0) {
|
|
17635
|
+
HttpStatusCode[value] = key;
|
|
17636
|
+
}
|
|
16517
17637
|
});
|
|
16518
17638
|
var HttpStatusCode_default = HttpStatusCode;
|
|
16519
17639
|
|
|
16520
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17640
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
|
|
16521
17641
|
function createInstance(defaultConfig) {
|
|
16522
17642
|
const context = new Axios_default(defaultConfig);
|
|
16523
17643
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -16550,7 +17670,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
16550
17670
|
axios.default = axios;
|
|
16551
17671
|
var axios_default = axios;
|
|
16552
17672
|
|
|
16553
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17673
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
|
|
16554
17674
|
var {
|
|
16555
17675
|
Axios: Axios2,
|
|
16556
17676
|
AxiosError: AxiosError2,
|
|
@@ -16571,18 +17691,18 @@ var {
|
|
|
16571
17691
|
create
|
|
16572
17692
|
} = axios_default;
|
|
16573
17693
|
|
|
16574
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
17694
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
|
|
16575
17695
|
var import_debug2 = __toESM(require_src(), 1);
|
|
16576
17696
|
import { EventEmitter as EventEmitter3 } from "events";
|
|
16577
17697
|
|
|
16578
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
17698
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
|
|
16579
17699
|
var import_debug = __toESM(require_src(), 1);
|
|
16580
17700
|
import { EventEmitter as EventEmitter2 } from "events";
|
|
16581
17701
|
import fs from "fs";
|
|
16582
17702
|
import net from "net";
|
|
16583
17703
|
import tls from "tls";
|
|
16584
17704
|
|
|
16585
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
17705
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
|
|
16586
17706
|
import { Transform } from "stream";
|
|
16587
17707
|
var HeaderHostTransformer = class extends Transform {
|
|
16588
17708
|
host;
|
|
@@ -16600,7 +17720,7 @@ var HeaderHostTransformer = class extends Transform {
|
|
|
16600
17720
|
}
|
|
16601
17721
|
};
|
|
16602
17722
|
|
|
16603
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
17723
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
|
|
16604
17724
|
var log = (0, import_debug.default)("pipenet:client");
|
|
16605
17725
|
var TunnelCluster = class extends EventEmitter2 {
|
|
16606
17726
|
opts;
|
|
@@ -16633,18 +17753,10 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16633
17753
|
}
|
|
16634
17754
|
remote.end();
|
|
16635
17755
|
});
|
|
16636
|
-
let deadEmitted = false;
|
|
16637
|
-
const emitDead = () => {
|
|
16638
|
-
if (deadEmitted) {
|
|
16639
|
-
return;
|
|
16640
|
-
}
|
|
16641
|
-
deadEmitted = true;
|
|
16642
|
-
this.emit("dead", remote);
|
|
16643
|
-
};
|
|
16644
17756
|
const connLocal = () => {
|
|
16645
17757
|
if (remote.destroyed) {
|
|
16646
17758
|
log("remote destroyed");
|
|
16647
|
-
|
|
17759
|
+
this.emit("dead", remote);
|
|
16648
17760
|
return;
|
|
16649
17761
|
}
|
|
16650
17762
|
log("connecting locally to %s://%s:%d", localProtocol, localHost, localPort);
|
|
@@ -16660,7 +17772,7 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16660
17772
|
const local = opt.localHttps ? tls.connect({ host: localHost, port: localPort, ...getLocalCertOpts() }) : net.connect({ host: localHost, port: localPort });
|
|
16661
17773
|
const remoteClose = () => {
|
|
16662
17774
|
log("remote close");
|
|
16663
|
-
|
|
17775
|
+
this.emit("dead", remote);
|
|
16664
17776
|
local.end();
|
|
16665
17777
|
};
|
|
16666
17778
|
remote.once("close", remoteClose);
|
|
@@ -16708,7 +17820,7 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16708
17820
|
}
|
|
16709
17821
|
};
|
|
16710
17822
|
|
|
16711
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
17823
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
|
|
16712
17824
|
var log2 = (0, import_debug2.default)("pipenet:client");
|
|
16713
17825
|
var Tunnel = class extends EventEmitter3 {
|
|
16714
17826
|
cachedUrl;
|
|
@@ -16856,7 +17968,7 @@ var Tunnel = class extends EventEmitter3 {
|
|
|
16856
17968
|
}
|
|
16857
17969
|
};
|
|
16858
17970
|
|
|
16859
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
17971
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
|
|
16860
17972
|
function pipenet(arg1, arg2, arg3) {
|
|
16861
17973
|
const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
|
|
16862
17974
|
const callback = typeof arg1 === "object" ? arg2 : arg3;
|