piral-cli 1.11.2-beta.2c397c2 → 1.11.2-beta.767b0ab

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.
Files changed (2) hide show
  1. package/lib/external/index.js +1972 -320
  2. package/package.json +2 -2
@@ -64,7 +64,7 @@ var require_unicode = __commonJS({
64
64
  var require_parse = __commonJS({
65
65
  "../../../node_modules/jju/lib/parse.js"(exports2, module2) {
66
66
  var Uni = require_unicode();
67
- function isHexDigit(x) {
67
+ function isHexDigit2(x) {
68
68
  return x >= "0" && x <= "9" || x >= "A" && x <= "F" || x >= "a" && x <= "f";
69
69
  }
70
70
  function isOctDigit(x) {
@@ -430,7 +430,7 @@ var require_parse = __commonJS({
430
430
  var is_octal = chr === "o" || chr === "O" || isOctDigit(chr);
431
431
  var is_hex = chr === "x" || chr === "X";
432
432
  if (json5 && (is_octal || is_hex)) {
433
- while (position < length && (is_hex ? isHexDigit : isOctDigit)(input[position])) position++;
433
+ while (position < length && (is_hex ? isHexDigit2 : isOctDigit)(input[position])) position++;
434
434
  var sign = 1;
435
435
  if (input[start] === "-") {
436
436
  sign = -1;
@@ -459,7 +459,7 @@ var require_parse = __commonJS({
459
459
  var result = "";
460
460
  while (position < length) {
461
461
  var chr = input[position++];
462
- if (chr === "\\" && input[position] === "u" && isHexDigit(input[position + 1]) && isHexDigit(input[position + 2]) && isHexDigit(input[position + 3]) && isHexDigit(input[position + 4])) {
462
+ if (chr === "\\" && input[position] === "u" && isHexDigit2(input[position + 1]) && isHexDigit2(input[position + 2]) && isHexDigit2(input[position + 3]) && isHexDigit2(input[position + 4])) {
463
463
  chr = String.fromCharCode(parseInt(input.substr(position + 1, 4), 16));
464
464
  position += 5;
465
465
  }
@@ -497,7 +497,7 @@ var require_parse = __commonJS({
497
497
  var off = chr === "u" ? 4 : 2;
498
498
  for (var i = 0; i < off; i++) {
499
499
  if (position >= length) fail();
500
- if (!isHexDigit(input[position])) fail("Bad escape sequence");
500
+ if (!isHexDigit2(input[position])) fail("Bad escape sequence");
501
501
  position++;
502
502
  }
503
503
  result += String.fromCharCode(parseInt(input.substr(position - off, off), 16));
@@ -1734,7 +1734,7 @@ var require_yargs_parser = __commonJS({
1734
1734
  var decamelize = require_decamelize();
1735
1735
  var path3 = require("path");
1736
1736
  var tokenizeArgString = require_tokenize_arg_string();
1737
- var util3 = require("util");
1737
+ var util4 = require("util");
1738
1738
  function parse6(args, opts) {
1739
1739
  opts = Object.assign(/* @__PURE__ */ Object.create(null), opts);
1740
1740
  args = tokenizeArgString(args);
@@ -1765,7 +1765,7 @@ var require_yargs_parser = __commonJS({
1765
1765
  const notFlagsArgv = notFlagsOption ? "--" : "_";
1766
1766
  const newAliases = /* @__PURE__ */ Object.create(null);
1767
1767
  const defaulted = /* @__PURE__ */ Object.create(null);
1768
- const __ = opts.__ || util3.format;
1768
+ const __ = opts.__ || util4.format;
1769
1769
  const flags = {
1770
1770
  aliases: /* @__PURE__ */ Object.create(null),
1771
1771
  arrays: /* @__PURE__ */ Object.create(null),
@@ -5583,7 +5583,7 @@ var require_y18n = __commonJS({
5583
5583
  "node_modules/y18n/index.js"(exports2, module2) {
5584
5584
  var fs3 = require("fs");
5585
5585
  var path3 = require("path");
5586
- var util3 = require("util");
5586
+ var util4 = require("util");
5587
5587
  function Y18N(opts) {
5588
5588
  opts = opts || {};
5589
5589
  this.directory = opts.directory || "./locales";
@@ -5611,7 +5611,7 @@ var require_y18n = __commonJS({
5611
5611
  } else {
5612
5612
  cb();
5613
5613
  }
5614
- return util3.format.apply(util3, [this.cache[this.locale][str] || str].concat(args));
5614
+ return util4.format.apply(util4, [this.cache[this.locale][str] || str].concat(args));
5615
5615
  };
5616
5616
  Y18N.prototype._taggedLiteral = function(parts) {
5617
5617
  var args = arguments;
@@ -5696,7 +5696,7 @@ var require_y18n = __commonJS({
5696
5696
  }
5697
5697
  var values = [str];
5698
5698
  if (~str.indexOf("%d")) values.push(quantity);
5699
- return util3.format.apply(util3, values.concat(args));
5699
+ return util4.format.apply(util4, values.concat(args));
5700
5700
  };
5701
5701
  Y18N.prototype.setLocale = function(locale) {
5702
5702
  this.locale = locale;
@@ -8222,13 +8222,13 @@ var require_inherits_browser = __commonJS({
8222
8222
  var require_inherits = __commonJS({
8223
8223
  "../../../node_modules/inherits/inherits.js"(exports2, module2) {
8224
8224
  try {
8225
- util3 = require("util");
8226
- if (typeof util3.inherits !== "function") throw "";
8227
- module2.exports = util3.inherits;
8225
+ util4 = require("util");
8226
+ if (typeof util4.inherits !== "function") throw "";
8227
+ module2.exports = util4.inherits;
8228
8228
  } catch (e) {
8229
8229
  module2.exports = require_inherits_browser();
8230
8230
  }
8231
- var util3;
8231
+ var util4;
8232
8232
  }
8233
8233
  });
8234
8234
 
@@ -8439,7 +8439,7 @@ var require_sync = __commonJS({
8439
8439
  var minimatch2 = require_minimatch();
8440
8440
  var Minimatch2 = minimatch2.Minimatch;
8441
8441
  var Glob2 = require_glob().Glob;
8442
- var util3 = require("util");
8442
+ var util4 = require("util");
8443
8443
  var path3 = require("path");
8444
8444
  var assert = require("assert");
8445
8445
  var isAbsolute = require("path").isAbsolute;
@@ -8922,7 +8922,7 @@ var require_glob = __commonJS({
8922
8922
  var setopts = common2.setopts;
8923
8923
  var ownProp = common2.ownProp;
8924
8924
  var inflight = require_inflight();
8925
- var util3 = require("util");
8925
+ var util4 = require("util");
8926
8926
  var childrenIgnored = common2.childrenIgnored;
8927
8927
  var isIgnored = common2.isIgnored;
8928
8928
  var once = require_once();
@@ -9465,7 +9465,7 @@ var require_glob = __commonJS({
9465
9465
  var require_delayed_stream = __commonJS({
9466
9466
  "../../../node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
9467
9467
  var Stream2 = require("stream").Stream;
9468
- var util3 = require("util");
9468
+ var util4 = require("util");
9469
9469
  module2.exports = DelayedStream;
9470
9470
  function DelayedStream() {
9471
9471
  this.source = null;
@@ -9476,7 +9476,7 @@ var require_delayed_stream = __commonJS({
9476
9476
  this._released = false;
9477
9477
  this._bufferedEvents = [];
9478
9478
  }
9479
- util3.inherits(DelayedStream, Stream2);
9479
+ util4.inherits(DelayedStream, Stream2);
9480
9480
  DelayedStream.create = function(source, options) {
9481
9481
  var delayedStream = new this();
9482
9482
  options = options || {};
@@ -9555,7 +9555,7 @@ var require_delayed_stream = __commonJS({
9555
9555
  // ../../../node_modules/combined-stream/lib/combined_stream.js
9556
9556
  var require_combined_stream = __commonJS({
9557
9557
  "../../../node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) {
9558
- var util3 = require("util");
9558
+ var util4 = require("util");
9559
9559
  var Stream2 = require("stream").Stream;
9560
9560
  var DelayedStream = require_delayed_stream();
9561
9561
  module2.exports = CombinedStream;
@@ -9571,7 +9571,7 @@ var require_combined_stream = __commonJS({
9571
9571
  this._insideLoop = false;
9572
9572
  this._pendingNext = false;
9573
9573
  }
9574
- util3.inherits(CombinedStream, Stream2);
9574
+ util4.inherits(CombinedStream, Stream2);
9575
9575
  CombinedStream.create = function(options) {
9576
9576
  var combinedStream = new this();
9577
9577
  options = options || {};
@@ -19416,7 +19416,7 @@ var require_form_data = __commonJS({
19416
19416
  "../../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
19417
19417
  "use strict";
19418
19418
  var CombinedStream = require_combined_stream();
19419
- var util3 = require("util");
19419
+ var util4 = require("util");
19420
19420
  var path3 = require("path");
19421
19421
  var http3 = require("http");
19422
19422
  var https2 = require("https");
@@ -19445,7 +19445,7 @@ var require_form_data = __commonJS({
19445
19445
  this[option] = options[option];
19446
19446
  }
19447
19447
  }
19448
- util3.inherits(FormData4, CombinedStream);
19448
+ util4.inherits(FormData4, CombinedStream);
19449
19449
  FormData4.LINE_BREAK = "\r\n";
19450
19450
  FormData4.DEFAULT_CONTENT_TYPE = "application/octet-stream";
19451
19451
  FormData4.prototype.append = function(field, value, options) {
@@ -19733,8 +19733,1221 @@ var require_form_data = __commonJS({
19733
19733
  }
19734
19734
  });
19735
19735
 
19736
- // ../../../node_modules/debug/node_modules/ms/index.js
19736
+ // ../../../node_modules/ms/index.js
19737
19737
  var require_ms = __commonJS({
19738
+ "../../../node_modules/ms/index.js"(exports2, module2) {
19739
+ var s3 = 1e3;
19740
+ var m2 = s3 * 60;
19741
+ var h = m2 * 60;
19742
+ var d = h * 24;
19743
+ var w2 = d * 7;
19744
+ var y2 = d * 365.25;
19745
+ module2.exports = function(val, options) {
19746
+ options = options || {};
19747
+ var type = typeof val;
19748
+ if (type === "string" && val.length > 0) {
19749
+ return parse6(val);
19750
+ } else if (type === "number" && isFinite(val)) {
19751
+ return options.long ? fmtLong(val) : fmtShort(val);
19752
+ }
19753
+ throw new Error(
19754
+ "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
19755
+ );
19756
+ };
19757
+ function parse6(str) {
19758
+ str = String(str);
19759
+ if (str.length > 100) {
19760
+ return;
19761
+ }
19762
+ var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
19763
+ str
19764
+ );
19765
+ if (!match2) {
19766
+ return;
19767
+ }
19768
+ var n = parseFloat(match2[1]);
19769
+ var type = (match2[2] || "ms").toLowerCase();
19770
+ switch (type) {
19771
+ case "years":
19772
+ case "year":
19773
+ case "yrs":
19774
+ case "yr":
19775
+ case "y":
19776
+ return n * y2;
19777
+ case "weeks":
19778
+ case "week":
19779
+ case "w":
19780
+ return n * w2;
19781
+ case "days":
19782
+ case "day":
19783
+ case "d":
19784
+ return n * d;
19785
+ case "hours":
19786
+ case "hour":
19787
+ case "hrs":
19788
+ case "hr":
19789
+ case "h":
19790
+ return n * h;
19791
+ case "minutes":
19792
+ case "minute":
19793
+ case "mins":
19794
+ case "min":
19795
+ case "m":
19796
+ return n * m2;
19797
+ case "seconds":
19798
+ case "second":
19799
+ case "secs":
19800
+ case "sec":
19801
+ case "s":
19802
+ return n * s3;
19803
+ case "milliseconds":
19804
+ case "millisecond":
19805
+ case "msecs":
19806
+ case "msec":
19807
+ case "ms":
19808
+ return n;
19809
+ default:
19810
+ return void 0;
19811
+ }
19812
+ }
19813
+ function fmtShort(ms2) {
19814
+ var msAbs = Math.abs(ms2);
19815
+ if (msAbs >= d) {
19816
+ return Math.round(ms2 / d) + "d";
19817
+ }
19818
+ if (msAbs >= h) {
19819
+ return Math.round(ms2 / h) + "h";
19820
+ }
19821
+ if (msAbs >= m2) {
19822
+ return Math.round(ms2 / m2) + "m";
19823
+ }
19824
+ if (msAbs >= s3) {
19825
+ return Math.round(ms2 / s3) + "s";
19826
+ }
19827
+ return ms2 + "ms";
19828
+ }
19829
+ function fmtLong(ms2) {
19830
+ var msAbs = Math.abs(ms2);
19831
+ if (msAbs >= d) {
19832
+ return plural(ms2, msAbs, d, "day");
19833
+ }
19834
+ if (msAbs >= h) {
19835
+ return plural(ms2, msAbs, h, "hour");
19836
+ }
19837
+ if (msAbs >= m2) {
19838
+ return plural(ms2, msAbs, m2, "minute");
19839
+ }
19840
+ if (msAbs >= s3) {
19841
+ return plural(ms2, msAbs, s3, "second");
19842
+ }
19843
+ return ms2 + " ms";
19844
+ }
19845
+ function plural(ms2, msAbs, n, name) {
19846
+ var isPlural = msAbs >= n * 1.5;
19847
+ return Math.round(ms2 / n) + " " + name + (isPlural ? "s" : "");
19848
+ }
19849
+ }
19850
+ });
19851
+
19852
+ // ../../../node_modules/axios/node_modules/debug/src/common.js
19853
+ var require_common2 = __commonJS({
19854
+ "../../../node_modules/axios/node_modules/debug/src/common.js"(exports2, module2) {
19855
+ function setup(env4) {
19856
+ createDebug.debug = createDebug;
19857
+ createDebug.default = createDebug;
19858
+ createDebug.coerce = coerce;
19859
+ createDebug.disable = disable;
19860
+ createDebug.enable = enable;
19861
+ createDebug.enabled = enabled;
19862
+ createDebug.humanize = require_ms();
19863
+ createDebug.destroy = destroy;
19864
+ Object.keys(env4).forEach((key) => {
19865
+ createDebug[key] = env4[key];
19866
+ });
19867
+ createDebug.names = [];
19868
+ createDebug.skips = [];
19869
+ createDebug.formatters = {};
19870
+ function selectColor(namespace) {
19871
+ let hash = 0;
19872
+ for (let i = 0; i < namespace.length; i++) {
19873
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
19874
+ hash |= 0;
19875
+ }
19876
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
19877
+ }
19878
+ createDebug.selectColor = selectColor;
19879
+ function createDebug(namespace) {
19880
+ let prevTime;
19881
+ let enableOverride = null;
19882
+ let namespacesCache;
19883
+ let enabledCache;
19884
+ function debug(...args) {
19885
+ if (!debug.enabled) {
19886
+ return;
19887
+ }
19888
+ const self2 = debug;
19889
+ const curr = Number(/* @__PURE__ */ new Date());
19890
+ const ms2 = curr - (prevTime || curr);
19891
+ self2.diff = ms2;
19892
+ self2.prev = prevTime;
19893
+ self2.curr = curr;
19894
+ prevTime = curr;
19895
+ args[0] = createDebug.coerce(args[0]);
19896
+ if (typeof args[0] !== "string") {
19897
+ args.unshift("%O");
19898
+ }
19899
+ let index = 0;
19900
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
19901
+ if (match2 === "%%") {
19902
+ return "%";
19903
+ }
19904
+ index++;
19905
+ const formatter = createDebug.formatters[format];
19906
+ if (typeof formatter === "function") {
19907
+ const val = args[index];
19908
+ match2 = formatter.call(self2, val);
19909
+ args.splice(index, 1);
19910
+ index--;
19911
+ }
19912
+ return match2;
19913
+ });
19914
+ createDebug.formatArgs.call(self2, args);
19915
+ const logFn = self2.log || createDebug.log;
19916
+ logFn.apply(self2, args);
19917
+ }
19918
+ debug.namespace = namespace;
19919
+ debug.useColors = createDebug.useColors();
19920
+ debug.color = createDebug.selectColor(namespace);
19921
+ debug.extend = extend2;
19922
+ debug.destroy = createDebug.destroy;
19923
+ Object.defineProperty(debug, "enabled", {
19924
+ enumerable: true,
19925
+ configurable: false,
19926
+ get: () => {
19927
+ if (enableOverride !== null) {
19928
+ return enableOverride;
19929
+ }
19930
+ if (namespacesCache !== createDebug.namespaces) {
19931
+ namespacesCache = createDebug.namespaces;
19932
+ enabledCache = createDebug.enabled(namespace);
19933
+ }
19934
+ return enabledCache;
19935
+ },
19936
+ set: (v2) => {
19937
+ enableOverride = v2;
19938
+ }
19939
+ });
19940
+ if (typeof createDebug.init === "function") {
19941
+ createDebug.init(debug);
19942
+ }
19943
+ return debug;
19944
+ }
19945
+ function extend2(namespace, delimiter) {
19946
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
19947
+ newDebug.log = this.log;
19948
+ return newDebug;
19949
+ }
19950
+ function enable(namespaces) {
19951
+ createDebug.save(namespaces);
19952
+ createDebug.namespaces = namespaces;
19953
+ createDebug.names = [];
19954
+ createDebug.skips = [];
19955
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
19956
+ for (const ns2 of split) {
19957
+ if (ns2[0] === "-") {
19958
+ createDebug.skips.push(ns2.slice(1));
19959
+ } else {
19960
+ createDebug.names.push(ns2);
19961
+ }
19962
+ }
19963
+ }
19964
+ function matchesTemplate(search, template) {
19965
+ let searchIndex = 0;
19966
+ let templateIndex = 0;
19967
+ let starIndex = -1;
19968
+ let matchIndex = 0;
19969
+ while (searchIndex < search.length) {
19970
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
19971
+ if (template[templateIndex] === "*") {
19972
+ starIndex = templateIndex;
19973
+ matchIndex = searchIndex;
19974
+ templateIndex++;
19975
+ } else {
19976
+ searchIndex++;
19977
+ templateIndex++;
19978
+ }
19979
+ } else if (starIndex !== -1) {
19980
+ templateIndex = starIndex + 1;
19981
+ matchIndex++;
19982
+ searchIndex = matchIndex;
19983
+ } else {
19984
+ return false;
19985
+ }
19986
+ }
19987
+ while (templateIndex < template.length && template[templateIndex] === "*") {
19988
+ templateIndex++;
19989
+ }
19990
+ return templateIndex === template.length;
19991
+ }
19992
+ function disable() {
19993
+ const namespaces = [
19994
+ ...createDebug.names,
19995
+ ...createDebug.skips.map((namespace) => "-" + namespace)
19996
+ ].join(",");
19997
+ createDebug.enable("");
19998
+ return namespaces;
19999
+ }
20000
+ function enabled(name) {
20001
+ for (const skip of createDebug.skips) {
20002
+ if (matchesTemplate(name, skip)) {
20003
+ return false;
20004
+ }
20005
+ }
20006
+ for (const ns2 of createDebug.names) {
20007
+ if (matchesTemplate(name, ns2)) {
20008
+ return true;
20009
+ }
20010
+ }
20011
+ return false;
20012
+ }
20013
+ function coerce(val) {
20014
+ if (val instanceof Error) {
20015
+ return val.stack || val.message;
20016
+ }
20017
+ return val;
20018
+ }
20019
+ function destroy() {
20020
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
20021
+ }
20022
+ createDebug.enable(createDebug.load());
20023
+ return createDebug;
20024
+ }
20025
+ module2.exports = setup;
20026
+ }
20027
+ });
20028
+
20029
+ // ../../../node_modules/axios/node_modules/debug/src/browser.js
20030
+ var require_browser = __commonJS({
20031
+ "../../../node_modules/axios/node_modules/debug/src/browser.js"(exports2, module2) {
20032
+ exports2.formatArgs = formatArgs;
20033
+ exports2.save = save;
20034
+ exports2.load = load3;
20035
+ exports2.useColors = useColors;
20036
+ exports2.storage = localstorage();
20037
+ exports2.destroy = /* @__PURE__ */ (() => {
20038
+ let warned2 = false;
20039
+ return () => {
20040
+ if (!warned2) {
20041
+ warned2 = true;
20042
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
20043
+ }
20044
+ };
20045
+ })();
20046
+ exports2.colors = [
20047
+ "#0000CC",
20048
+ "#0000FF",
20049
+ "#0033CC",
20050
+ "#0033FF",
20051
+ "#0066CC",
20052
+ "#0066FF",
20053
+ "#0099CC",
20054
+ "#0099FF",
20055
+ "#00CC00",
20056
+ "#00CC33",
20057
+ "#00CC66",
20058
+ "#00CC99",
20059
+ "#00CCCC",
20060
+ "#00CCFF",
20061
+ "#3300CC",
20062
+ "#3300FF",
20063
+ "#3333CC",
20064
+ "#3333FF",
20065
+ "#3366CC",
20066
+ "#3366FF",
20067
+ "#3399CC",
20068
+ "#3399FF",
20069
+ "#33CC00",
20070
+ "#33CC33",
20071
+ "#33CC66",
20072
+ "#33CC99",
20073
+ "#33CCCC",
20074
+ "#33CCFF",
20075
+ "#6600CC",
20076
+ "#6600FF",
20077
+ "#6633CC",
20078
+ "#6633FF",
20079
+ "#66CC00",
20080
+ "#66CC33",
20081
+ "#9900CC",
20082
+ "#9900FF",
20083
+ "#9933CC",
20084
+ "#9933FF",
20085
+ "#99CC00",
20086
+ "#99CC33",
20087
+ "#CC0000",
20088
+ "#CC0033",
20089
+ "#CC0066",
20090
+ "#CC0099",
20091
+ "#CC00CC",
20092
+ "#CC00FF",
20093
+ "#CC3300",
20094
+ "#CC3333",
20095
+ "#CC3366",
20096
+ "#CC3399",
20097
+ "#CC33CC",
20098
+ "#CC33FF",
20099
+ "#CC6600",
20100
+ "#CC6633",
20101
+ "#CC9900",
20102
+ "#CC9933",
20103
+ "#CCCC00",
20104
+ "#CCCC33",
20105
+ "#FF0000",
20106
+ "#FF0033",
20107
+ "#FF0066",
20108
+ "#FF0099",
20109
+ "#FF00CC",
20110
+ "#FF00FF",
20111
+ "#FF3300",
20112
+ "#FF3333",
20113
+ "#FF3366",
20114
+ "#FF3399",
20115
+ "#FF33CC",
20116
+ "#FF33FF",
20117
+ "#FF6600",
20118
+ "#FF6633",
20119
+ "#FF9900",
20120
+ "#FF9933",
20121
+ "#FFCC00",
20122
+ "#FFCC33"
20123
+ ];
20124
+ function useColors() {
20125
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
20126
+ return true;
20127
+ }
20128
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
20129
+ return false;
20130
+ }
20131
+ let m2;
20132
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
20133
+ typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
20134
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
20135
+ typeof navigator !== "undefined" && navigator.userAgent && (m2 = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m2[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
20136
+ typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
20137
+ }
20138
+ function formatArgs(args) {
20139
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
20140
+ if (!this.useColors) {
20141
+ return;
20142
+ }
20143
+ const c = "color: " + this.color;
20144
+ args.splice(1, 0, c, "color: inherit");
20145
+ let index = 0;
20146
+ let lastC = 0;
20147
+ args[0].replace(/%[a-zA-Z%]/g, (match2) => {
20148
+ if (match2 === "%%") {
20149
+ return;
20150
+ }
20151
+ index++;
20152
+ if (match2 === "%c") {
20153
+ lastC = index;
20154
+ }
20155
+ });
20156
+ args.splice(lastC, 0, c);
20157
+ }
20158
+ exports2.log = console.debug || console.log || (() => {
20159
+ });
20160
+ function save(namespaces) {
20161
+ try {
20162
+ if (namespaces) {
20163
+ exports2.storage.setItem("debug", namespaces);
20164
+ } else {
20165
+ exports2.storage.removeItem("debug");
20166
+ }
20167
+ } catch (error) {
20168
+ }
20169
+ }
20170
+ function load3() {
20171
+ let r;
20172
+ try {
20173
+ r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
20174
+ } catch (error) {
20175
+ }
20176
+ if (!r && typeof process !== "undefined" && "env" in process) {
20177
+ r = process.env.DEBUG;
20178
+ }
20179
+ return r;
20180
+ }
20181
+ function localstorage() {
20182
+ try {
20183
+ return localStorage;
20184
+ } catch (error) {
20185
+ }
20186
+ }
20187
+ module2.exports = require_common2()(exports2);
20188
+ var { formatters } = module2.exports;
20189
+ formatters.j = function(v2) {
20190
+ try {
20191
+ return JSON.stringify(v2);
20192
+ } catch (error) {
20193
+ return "[UnexpectedJSONParseError]: " + error.message;
20194
+ }
20195
+ };
20196
+ }
20197
+ });
20198
+
20199
+ // ../../../node_modules/has-flag/index.js
20200
+ var require_has_flag = __commonJS({
20201
+ "../../../node_modules/has-flag/index.js"(exports2, module2) {
20202
+ "use strict";
20203
+ module2.exports = (flag, argv = process.argv) => {
20204
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
20205
+ const position = argv.indexOf(prefix + flag);
20206
+ const terminatorPosition = argv.indexOf("--");
20207
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
20208
+ };
20209
+ }
20210
+ });
20211
+
20212
+ // ../../../node_modules/supports-color/index.js
20213
+ var require_supports_color = __commonJS({
20214
+ "../../../node_modules/supports-color/index.js"(exports2, module2) {
20215
+ "use strict";
20216
+ var os7 = require("os");
20217
+ var tty4 = require("tty");
20218
+ var hasFlag4 = require_has_flag();
20219
+ var { env: env4 } = process;
20220
+ var forceColor;
20221
+ if (hasFlag4("no-color") || hasFlag4("no-colors") || hasFlag4("color=false") || hasFlag4("color=never")) {
20222
+ forceColor = 0;
20223
+ } else if (hasFlag4("color") || hasFlag4("colors") || hasFlag4("color=true") || hasFlag4("color=always")) {
20224
+ forceColor = 1;
20225
+ }
20226
+ if ("FORCE_COLOR" in env4) {
20227
+ if (env4.FORCE_COLOR === "true") {
20228
+ forceColor = 1;
20229
+ } else if (env4.FORCE_COLOR === "false") {
20230
+ forceColor = 0;
20231
+ } else {
20232
+ forceColor = env4.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env4.FORCE_COLOR, 10), 3);
20233
+ }
20234
+ }
20235
+ function translateLevel4(level) {
20236
+ if (level === 0) {
20237
+ return false;
20238
+ }
20239
+ return {
20240
+ level,
20241
+ hasBasic: true,
20242
+ has256: level >= 2,
20243
+ has16m: level >= 3
20244
+ };
20245
+ }
20246
+ function supportsColor4(haveStream, streamIsTTY) {
20247
+ if (forceColor === 0) {
20248
+ return 0;
20249
+ }
20250
+ if (hasFlag4("color=16m") || hasFlag4("color=full") || hasFlag4("color=truecolor")) {
20251
+ return 3;
20252
+ }
20253
+ if (hasFlag4("color=256")) {
20254
+ return 2;
20255
+ }
20256
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
20257
+ return 0;
20258
+ }
20259
+ const min = forceColor || 0;
20260
+ if (env4.TERM === "dumb") {
20261
+ return min;
20262
+ }
20263
+ if (process.platform === "win32") {
20264
+ const osRelease = os7.release().split(".");
20265
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
20266
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
20267
+ }
20268
+ return 1;
20269
+ }
20270
+ if ("CI" in env4) {
20271
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env4) || env4.CI_NAME === "codeship") {
20272
+ return 1;
20273
+ }
20274
+ return min;
20275
+ }
20276
+ if ("TEAMCITY_VERSION" in env4) {
20277
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env4.TEAMCITY_VERSION) ? 1 : 0;
20278
+ }
20279
+ if (env4.COLORTERM === "truecolor") {
20280
+ return 3;
20281
+ }
20282
+ if ("TERM_PROGRAM" in env4) {
20283
+ const version = parseInt((env4.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
20284
+ switch (env4.TERM_PROGRAM) {
20285
+ case "iTerm.app":
20286
+ return version >= 3 ? 3 : 2;
20287
+ case "Apple_Terminal":
20288
+ return 2;
20289
+ }
20290
+ }
20291
+ if (/-256(color)?$/i.test(env4.TERM)) {
20292
+ return 2;
20293
+ }
20294
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env4.TERM)) {
20295
+ return 1;
20296
+ }
20297
+ if ("COLORTERM" in env4) {
20298
+ return 1;
20299
+ }
20300
+ return min;
20301
+ }
20302
+ function getSupportLevel(stream5) {
20303
+ const level = supportsColor4(stream5, stream5 && stream5.isTTY);
20304
+ return translateLevel4(level);
20305
+ }
20306
+ module2.exports = {
20307
+ supportsColor: getSupportLevel,
20308
+ stdout: translateLevel4(supportsColor4(true, tty4.isatty(1))),
20309
+ stderr: translateLevel4(supportsColor4(true, tty4.isatty(2)))
20310
+ };
20311
+ }
20312
+ });
20313
+
20314
+ // ../../../node_modules/axios/node_modules/debug/src/node.js
20315
+ var require_node = __commonJS({
20316
+ "../../../node_modules/axios/node_modules/debug/src/node.js"(exports2, module2) {
20317
+ var tty4 = require("tty");
20318
+ var util4 = require("util");
20319
+ exports2.init = init;
20320
+ exports2.log = log;
20321
+ exports2.formatArgs = formatArgs;
20322
+ exports2.save = save;
20323
+ exports2.load = load3;
20324
+ exports2.useColors = useColors;
20325
+ exports2.destroy = util4.deprecate(
20326
+ () => {
20327
+ },
20328
+ "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
20329
+ );
20330
+ exports2.colors = [6, 2, 3, 4, 5, 1];
20331
+ try {
20332
+ const supportsColor4 = require_supports_color();
20333
+ if (supportsColor4 && (supportsColor4.stderr || supportsColor4).level >= 2) {
20334
+ exports2.colors = [
20335
+ 20,
20336
+ 21,
20337
+ 26,
20338
+ 27,
20339
+ 32,
20340
+ 33,
20341
+ 38,
20342
+ 39,
20343
+ 40,
20344
+ 41,
20345
+ 42,
20346
+ 43,
20347
+ 44,
20348
+ 45,
20349
+ 56,
20350
+ 57,
20351
+ 62,
20352
+ 63,
20353
+ 68,
20354
+ 69,
20355
+ 74,
20356
+ 75,
20357
+ 76,
20358
+ 77,
20359
+ 78,
20360
+ 79,
20361
+ 80,
20362
+ 81,
20363
+ 92,
20364
+ 93,
20365
+ 98,
20366
+ 99,
20367
+ 112,
20368
+ 113,
20369
+ 128,
20370
+ 129,
20371
+ 134,
20372
+ 135,
20373
+ 148,
20374
+ 149,
20375
+ 160,
20376
+ 161,
20377
+ 162,
20378
+ 163,
20379
+ 164,
20380
+ 165,
20381
+ 166,
20382
+ 167,
20383
+ 168,
20384
+ 169,
20385
+ 170,
20386
+ 171,
20387
+ 172,
20388
+ 173,
20389
+ 178,
20390
+ 179,
20391
+ 184,
20392
+ 185,
20393
+ 196,
20394
+ 197,
20395
+ 198,
20396
+ 199,
20397
+ 200,
20398
+ 201,
20399
+ 202,
20400
+ 203,
20401
+ 204,
20402
+ 205,
20403
+ 206,
20404
+ 207,
20405
+ 208,
20406
+ 209,
20407
+ 214,
20408
+ 215,
20409
+ 220,
20410
+ 221
20411
+ ];
20412
+ }
20413
+ } catch (error) {
20414
+ }
20415
+ exports2.inspectOpts = Object.keys(process.env).filter((key) => {
20416
+ return /^debug_/i.test(key);
20417
+ }).reduce((obj, key) => {
20418
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_3, k2) => {
20419
+ return k2.toUpperCase();
20420
+ });
20421
+ let val = process.env[key];
20422
+ if (/^(yes|on|true|enabled)$/i.test(val)) {
20423
+ val = true;
20424
+ } else if (/^(no|off|false|disabled)$/i.test(val)) {
20425
+ val = false;
20426
+ } else if (val === "null") {
20427
+ val = null;
20428
+ } else {
20429
+ val = Number(val);
20430
+ }
20431
+ obj[prop] = val;
20432
+ return obj;
20433
+ }, {});
20434
+ function useColors() {
20435
+ return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty4.isatty(process.stderr.fd);
20436
+ }
20437
+ function formatArgs(args) {
20438
+ const { namespace: name, useColors: useColors2 } = this;
20439
+ if (useColors2) {
20440
+ const c = this.color;
20441
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
20442
+ const prefix = ` ${colorCode};1m${name} \x1B[0m`;
20443
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
20444
+ args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
20445
+ } else {
20446
+ args[0] = getDate() + name + " " + args[0];
20447
+ }
20448
+ }
20449
+ function getDate() {
20450
+ if (exports2.inspectOpts.hideDate) {
20451
+ return "";
20452
+ }
20453
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
20454
+ }
20455
+ function log(...args) {
20456
+ return process.stderr.write(util4.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
20457
+ }
20458
+ function save(namespaces) {
20459
+ if (namespaces) {
20460
+ process.env.DEBUG = namespaces;
20461
+ } else {
20462
+ delete process.env.DEBUG;
20463
+ }
20464
+ }
20465
+ function load3() {
20466
+ return process.env.DEBUG;
20467
+ }
20468
+ function init(debug) {
20469
+ debug.inspectOpts = {};
20470
+ const keys = Object.keys(exports2.inspectOpts);
20471
+ for (let i = 0; i < keys.length; i++) {
20472
+ debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
20473
+ }
20474
+ }
20475
+ module2.exports = require_common2()(exports2);
20476
+ var { formatters } = module2.exports;
20477
+ formatters.o = function(v2) {
20478
+ this.inspectOpts.colors = this.useColors;
20479
+ return util4.inspect(v2, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
20480
+ };
20481
+ formatters.O = function(v2) {
20482
+ this.inspectOpts.colors = this.useColors;
20483
+ return util4.inspect(v2, this.inspectOpts);
20484
+ };
20485
+ }
20486
+ });
20487
+
20488
+ // ../../../node_modules/axios/node_modules/debug/src/index.js
20489
+ var require_src = __commonJS({
20490
+ "../../../node_modules/axios/node_modules/debug/src/index.js"(exports2, module2) {
20491
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
20492
+ module2.exports = require_browser();
20493
+ } else {
20494
+ module2.exports = require_node();
20495
+ }
20496
+ }
20497
+ });
20498
+
20499
+ // ../../../node_modules/axios/node_modules/agent-base/dist/src/promisify.js
20500
+ var require_promisify = __commonJS({
20501
+ "../../../node_modules/axios/node_modules/agent-base/dist/src/promisify.js"(exports2) {
20502
+ "use strict";
20503
+ Object.defineProperty(exports2, "__esModule", { value: true });
20504
+ function promisify(fn2) {
20505
+ return function(req, opts) {
20506
+ return new Promise((resolve6, reject) => {
20507
+ fn2.call(this, req, opts, (err, rtn) => {
20508
+ if (err) {
20509
+ reject(err);
20510
+ } else {
20511
+ resolve6(rtn);
20512
+ }
20513
+ });
20514
+ });
20515
+ };
20516
+ }
20517
+ exports2.default = promisify;
20518
+ }
20519
+ });
20520
+
20521
+ // ../../../node_modules/axios/node_modules/agent-base/dist/src/index.js
20522
+ var require_src2 = __commonJS({
20523
+ "../../../node_modules/axios/node_modules/agent-base/dist/src/index.js"(exports2, module2) {
20524
+ "use strict";
20525
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
20526
+ return mod && mod.__esModule ? mod : { "default": mod };
20527
+ };
20528
+ var events_1 = require("events");
20529
+ var debug_1 = __importDefault(require_src());
20530
+ var promisify_1 = __importDefault(require_promisify());
20531
+ var debug = debug_1.default("agent-base");
20532
+ function isAgent(v2) {
20533
+ return Boolean(v2) && typeof v2.addRequest === "function";
20534
+ }
20535
+ function isSecureEndpoint() {
20536
+ const { stack } = new Error();
20537
+ if (typeof stack !== "string")
20538
+ return false;
20539
+ return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
20540
+ }
20541
+ function createAgent(callback, opts) {
20542
+ return new createAgent.Agent(callback, opts);
20543
+ }
20544
+ (function(createAgent2) {
20545
+ class Agent extends events_1.EventEmitter {
20546
+ constructor(callback, _opts) {
20547
+ super();
20548
+ let opts = _opts;
20549
+ if (typeof callback === "function") {
20550
+ this.callback = callback;
20551
+ } else if (callback) {
20552
+ opts = callback;
20553
+ }
20554
+ this.timeout = null;
20555
+ if (opts && typeof opts.timeout === "number") {
20556
+ this.timeout = opts.timeout;
20557
+ }
20558
+ this.maxFreeSockets = 1;
20559
+ this.maxSockets = 1;
20560
+ this.maxTotalSockets = Infinity;
20561
+ this.sockets = {};
20562
+ this.freeSockets = {};
20563
+ this.requests = {};
20564
+ this.options = {};
20565
+ }
20566
+ get defaultPort() {
20567
+ if (typeof this.explicitDefaultPort === "number") {
20568
+ return this.explicitDefaultPort;
20569
+ }
20570
+ return isSecureEndpoint() ? 443 : 80;
20571
+ }
20572
+ set defaultPort(v2) {
20573
+ this.explicitDefaultPort = v2;
20574
+ }
20575
+ get protocol() {
20576
+ if (typeof this.explicitProtocol === "string") {
20577
+ return this.explicitProtocol;
20578
+ }
20579
+ return isSecureEndpoint() ? "https:" : "http:";
20580
+ }
20581
+ set protocol(v2) {
20582
+ this.explicitProtocol = v2;
20583
+ }
20584
+ callback(req, opts, fn2) {
20585
+ throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
20586
+ }
20587
+ /**
20588
+ * Called by node-core's "_http_client.js" module when creating
20589
+ * a new HTTP request with this Agent instance.
20590
+ *
20591
+ * @api public
20592
+ */
20593
+ addRequest(req, _opts) {
20594
+ const opts = Object.assign({}, _opts);
20595
+ if (typeof opts.secureEndpoint !== "boolean") {
20596
+ opts.secureEndpoint = isSecureEndpoint();
20597
+ }
20598
+ if (opts.host == null) {
20599
+ opts.host = "localhost";
20600
+ }
20601
+ if (opts.port == null) {
20602
+ opts.port = opts.secureEndpoint ? 443 : 80;
20603
+ }
20604
+ if (opts.protocol == null) {
20605
+ opts.protocol = opts.secureEndpoint ? "https:" : "http:";
20606
+ }
20607
+ if (opts.host && opts.path) {
20608
+ delete opts.path;
20609
+ }
20610
+ delete opts.agent;
20611
+ delete opts.hostname;
20612
+ delete opts._defaultAgent;
20613
+ delete opts.defaultPort;
20614
+ delete opts.createConnection;
20615
+ req._last = true;
20616
+ req.shouldKeepAlive = false;
20617
+ let timedOut = false;
20618
+ let timeoutId = null;
20619
+ const timeoutMs = opts.timeout || this.timeout;
20620
+ const onerror = (err) => {
20621
+ if (req._hadError)
20622
+ return;
20623
+ req.emit("error", err);
20624
+ req._hadError = true;
20625
+ };
20626
+ const ontimeout = () => {
20627
+ timeoutId = null;
20628
+ timedOut = true;
20629
+ const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
20630
+ err.code = "ETIMEOUT";
20631
+ onerror(err);
20632
+ };
20633
+ const callbackError = (err) => {
20634
+ if (timedOut)
20635
+ return;
20636
+ if (timeoutId !== null) {
20637
+ clearTimeout(timeoutId);
20638
+ timeoutId = null;
20639
+ }
20640
+ onerror(err);
20641
+ };
20642
+ const onsocket = (socket) => {
20643
+ if (timedOut)
20644
+ return;
20645
+ if (timeoutId != null) {
20646
+ clearTimeout(timeoutId);
20647
+ timeoutId = null;
20648
+ }
20649
+ if (isAgent(socket)) {
20650
+ debug("Callback returned another Agent instance %o", socket.constructor.name);
20651
+ socket.addRequest(req, opts);
20652
+ return;
20653
+ }
20654
+ if (socket) {
20655
+ socket.once("free", () => {
20656
+ this.freeSocket(socket, opts);
20657
+ });
20658
+ req.onSocket(socket);
20659
+ return;
20660
+ }
20661
+ const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
20662
+ onerror(err);
20663
+ };
20664
+ if (typeof this.callback !== "function") {
20665
+ onerror(new Error("`callback` is not defined"));
20666
+ return;
20667
+ }
20668
+ if (!this.promisifiedCallback) {
20669
+ if (this.callback.length >= 3) {
20670
+ debug("Converting legacy callback function to promise");
20671
+ this.promisifiedCallback = promisify_1.default(this.callback);
20672
+ } else {
20673
+ this.promisifiedCallback = this.callback;
20674
+ }
20675
+ }
20676
+ if (typeof timeoutMs === "number" && timeoutMs > 0) {
20677
+ timeoutId = setTimeout(ontimeout, timeoutMs);
20678
+ }
20679
+ if ("port" in opts && typeof opts.port !== "number") {
20680
+ opts.port = Number(opts.port);
20681
+ }
20682
+ try {
20683
+ debug("Resolving socket for %o request: %o", opts.protocol, `${req.method} ${req.path}`);
20684
+ Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
20685
+ } catch (err) {
20686
+ Promise.reject(err).catch(callbackError);
20687
+ }
20688
+ }
20689
+ freeSocket(socket, opts) {
20690
+ debug("Freeing socket %o %o", socket.constructor.name, opts);
20691
+ socket.destroy();
20692
+ }
20693
+ destroy() {
20694
+ debug("Destroying agent %o", this.constructor.name);
20695
+ }
20696
+ }
20697
+ createAgent2.Agent = Agent;
20698
+ createAgent2.prototype = createAgent2.Agent.prototype;
20699
+ })(createAgent || (createAgent = {}));
20700
+ module2.exports = createAgent;
20701
+ }
20702
+ });
20703
+
20704
+ // ../../../node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js
20705
+ var require_parse_proxy_response = __commonJS({
20706
+ "../../../node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports2) {
20707
+ "use strict";
20708
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
20709
+ return mod && mod.__esModule ? mod : { "default": mod };
20710
+ };
20711
+ Object.defineProperty(exports2, "__esModule", { value: true });
20712
+ var debug_1 = __importDefault(require_src());
20713
+ var debug = debug_1.default("https-proxy-agent:parse-proxy-response");
20714
+ function parseProxyResponse(socket) {
20715
+ return new Promise((resolve6, reject) => {
20716
+ let buffersLength = 0;
20717
+ const buffers = [];
20718
+ function read() {
20719
+ const b2 = socket.read();
20720
+ if (b2)
20721
+ ondata(b2);
20722
+ else
20723
+ socket.once("readable", read);
20724
+ }
20725
+ function cleanup() {
20726
+ socket.removeListener("end", onend);
20727
+ socket.removeListener("error", onerror);
20728
+ socket.removeListener("close", onclose);
20729
+ socket.removeListener("readable", read);
20730
+ }
20731
+ function onclose(err) {
20732
+ debug("onclose had error %o", err);
20733
+ }
20734
+ function onend() {
20735
+ debug("onend");
20736
+ }
20737
+ function onerror(err) {
20738
+ cleanup();
20739
+ debug("onerror %o", err);
20740
+ reject(err);
20741
+ }
20742
+ function ondata(b2) {
20743
+ buffers.push(b2);
20744
+ buffersLength += b2.length;
20745
+ const buffered = Buffer.concat(buffers, buffersLength);
20746
+ const endOfHeaders = buffered.indexOf("\r\n\r\n");
20747
+ if (endOfHeaders === -1) {
20748
+ debug("have not received end of HTTP headers yet...");
20749
+ read();
20750
+ return;
20751
+ }
20752
+ const firstLine = buffered.toString("ascii", 0, buffered.indexOf("\r\n"));
20753
+ const statusCode = +firstLine.split(" ")[1];
20754
+ debug("got proxy server response: %o", firstLine);
20755
+ resolve6({
20756
+ statusCode,
20757
+ buffered
20758
+ });
20759
+ }
20760
+ socket.on("error", onerror);
20761
+ socket.on("close", onclose);
20762
+ socket.on("end", onend);
20763
+ read();
20764
+ });
20765
+ }
20766
+ exports2.default = parseProxyResponse;
20767
+ }
20768
+ });
20769
+
20770
+ // ../../../node_modules/axios/node_modules/https-proxy-agent/dist/agent.js
20771
+ var require_agent = __commonJS({
20772
+ "../../../node_modules/axios/node_modules/https-proxy-agent/dist/agent.js"(exports2) {
20773
+ "use strict";
20774
+ var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P2, generator) {
20775
+ function adopt(value) {
20776
+ return value instanceof P2 ? value : new P2(function(resolve6) {
20777
+ resolve6(value);
20778
+ });
20779
+ }
20780
+ return new (P2 || (P2 = Promise))(function(resolve6, reject) {
20781
+ function fulfilled(value) {
20782
+ try {
20783
+ step(generator.next(value));
20784
+ } catch (e) {
20785
+ reject(e);
20786
+ }
20787
+ }
20788
+ function rejected(value) {
20789
+ try {
20790
+ step(generator["throw"](value));
20791
+ } catch (e) {
20792
+ reject(e);
20793
+ }
20794
+ }
20795
+ function step(result) {
20796
+ result.done ? resolve6(result.value) : adopt(result.value).then(fulfilled, rejected);
20797
+ }
20798
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20799
+ });
20800
+ };
20801
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
20802
+ return mod && mod.__esModule ? mod : { "default": mod };
20803
+ };
20804
+ Object.defineProperty(exports2, "__esModule", { value: true });
20805
+ var net_1 = __importDefault(require("net"));
20806
+ var tls_1 = __importDefault(require("tls"));
20807
+ var url_1 = __importDefault(require("url"));
20808
+ var assert_1 = __importDefault(require("assert"));
20809
+ var debug_1 = __importDefault(require_src());
20810
+ var agent_base_1 = require_src2();
20811
+ var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
20812
+ var debug = debug_1.default("https-proxy-agent:agent");
20813
+ var HttpsProxyAgent2 = class extends agent_base_1.Agent {
20814
+ constructor(_opts) {
20815
+ let opts;
20816
+ if (typeof _opts === "string") {
20817
+ opts = url_1.default.parse(_opts);
20818
+ } else {
20819
+ opts = _opts;
20820
+ }
20821
+ if (!opts) {
20822
+ throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");
20823
+ }
20824
+ debug("creating new HttpsProxyAgent instance: %o", opts);
20825
+ super(opts);
20826
+ const proxy = Object.assign({}, opts);
20827
+ this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
20828
+ proxy.host = proxy.hostname || proxy.host;
20829
+ if (typeof proxy.port === "string") {
20830
+ proxy.port = parseInt(proxy.port, 10);
20831
+ }
20832
+ if (!proxy.port && proxy.host) {
20833
+ proxy.port = this.secureProxy ? 443 : 80;
20834
+ }
20835
+ if (this.secureProxy && !("ALPNProtocols" in proxy)) {
20836
+ proxy.ALPNProtocols = ["http 1.1"];
20837
+ }
20838
+ if (proxy.host && proxy.path) {
20839
+ delete proxy.path;
20840
+ delete proxy.pathname;
20841
+ }
20842
+ this.proxy = proxy;
20843
+ }
20844
+ /**
20845
+ * Called when the node-core HTTP client library is creating a
20846
+ * new HTTP request.
20847
+ *
20848
+ * @api protected
20849
+ */
20850
+ callback(req, opts) {
20851
+ return __awaiter(this, void 0, void 0, function* () {
20852
+ const { proxy, secureProxy } = this;
20853
+ let socket;
20854
+ if (secureProxy) {
20855
+ debug("Creating `tls.Socket`: %o", proxy);
20856
+ socket = tls_1.default.connect(proxy);
20857
+ } else {
20858
+ debug("Creating `net.Socket`: %o", proxy);
20859
+ socket = net_1.default.connect(proxy);
20860
+ }
20861
+ const headers = Object.assign({}, proxy.headers);
20862
+ const hostname = `${opts.host}:${opts.port}`;
20863
+ let payload = `CONNECT ${hostname} HTTP/1.1\r
20864
+ `;
20865
+ if (proxy.auth) {
20866
+ headers["Proxy-Authorization"] = `Basic ${Buffer.from(proxy.auth).toString("base64")}`;
20867
+ }
20868
+ let { host, port, secureEndpoint } = opts;
20869
+ if (!isDefaultPort(port, secureEndpoint)) {
20870
+ host += `:${port}`;
20871
+ }
20872
+ headers.Host = host;
20873
+ headers.Connection = "close";
20874
+ for (const name of Object.keys(headers)) {
20875
+ payload += `${name}: ${headers[name]}\r
20876
+ `;
20877
+ }
20878
+ const proxyResponsePromise = parse_proxy_response_1.default(socket);
20879
+ socket.write(`${payload}\r
20880
+ `);
20881
+ const { statusCode, buffered } = yield proxyResponsePromise;
20882
+ if (statusCode === 200) {
20883
+ req.once("socket", resume);
20884
+ if (opts.secureEndpoint) {
20885
+ debug("Upgrading socket connection to TLS");
20886
+ const servername = opts.servername || opts.host;
20887
+ return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, "host", "hostname", "path", "port")), {
20888
+ socket,
20889
+ servername
20890
+ }));
20891
+ }
20892
+ return socket;
20893
+ }
20894
+ socket.destroy();
20895
+ const fakeSocket = new net_1.default.Socket({ writable: false });
20896
+ fakeSocket.readable = true;
20897
+ req.once("socket", (s3) => {
20898
+ debug("replaying proxy buffer for failed request");
20899
+ assert_1.default(s3.listenerCount("data") > 0);
20900
+ s3.push(buffered);
20901
+ s3.push(null);
20902
+ });
20903
+ return fakeSocket;
20904
+ });
20905
+ }
20906
+ };
20907
+ exports2.default = HttpsProxyAgent2;
20908
+ function resume(socket) {
20909
+ socket.resume();
20910
+ }
20911
+ function isDefaultPort(port, secure) {
20912
+ return Boolean(!secure && port === 80 || secure && port === 443);
20913
+ }
20914
+ function isHTTPS(protocol) {
20915
+ return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
20916
+ }
20917
+ function omit(obj, ...keys) {
20918
+ const ret = {};
20919
+ let key;
20920
+ for (key in obj) {
20921
+ if (!keys.includes(key)) {
20922
+ ret[key] = obj[key];
20923
+ }
20924
+ }
20925
+ return ret;
20926
+ }
20927
+ }
20928
+ });
20929
+
20930
+ // ../../../node_modules/axios/node_modules/https-proxy-agent/dist/index.js
20931
+ var require_dist = __commonJS({
20932
+ "../../../node_modules/axios/node_modules/https-proxy-agent/dist/index.js"(exports2, module2) {
20933
+ "use strict";
20934
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
20935
+ return mod && mod.__esModule ? mod : { "default": mod };
20936
+ };
20937
+ var agent_1 = __importDefault(require_agent());
20938
+ function createHttpsProxyAgent(opts) {
20939
+ return new agent_1.default(opts);
20940
+ }
20941
+ (function(createHttpsProxyAgent2) {
20942
+ createHttpsProxyAgent2.HttpsProxyAgent = agent_1.default;
20943
+ createHttpsProxyAgent2.prototype = agent_1.default.prototype;
20944
+ })(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
20945
+ module2.exports = createHttpsProxyAgent;
20946
+ }
20947
+ });
20948
+
20949
+ // ../../../node_modules/debug/node_modules/ms/index.js
20950
+ var require_ms2 = __commonJS({
19738
20951
  "../../../node_modules/debug/node_modules/ms/index.js"(exports2, module2) {
19739
20952
  var s3 = 1e3;
19740
20953
  var m2 = s3 * 60;
@@ -19843,7 +21056,7 @@ var require_debug = __commonJS({
19843
21056
  exports2.disable = disable;
19844
21057
  exports2.enable = enable;
19845
21058
  exports2.enabled = enabled;
19846
- exports2.humanize = require_ms();
21059
+ exports2.humanize = require_ms2();
19847
21060
  exports2.names = [];
19848
21061
  exports2.skips = [];
19849
21062
  exports2.formatters = {};
@@ -19941,7 +21154,7 @@ var require_debug = __commonJS({
19941
21154
  });
19942
21155
 
19943
21156
  // ../../../node_modules/debug/src/browser.js
19944
- var require_browser = __commonJS({
21157
+ var require_browser2 = __commonJS({
19945
21158
  "../../../node_modules/debug/src/browser.js"(exports2, module2) {
19946
21159
  exports2 = module2.exports = require_debug();
19947
21160
  exports2.log = log;
@@ -20027,10 +21240,10 @@ var require_browser = __commonJS({
20027
21240
  });
20028
21241
 
20029
21242
  // ../../../node_modules/debug/src/node.js
20030
- var require_node = __commonJS({
21243
+ var require_node2 = __commonJS({
20031
21244
  "../../../node_modules/debug/src/node.js"(exports2, module2) {
20032
21245
  var tty4 = require("tty");
20033
- var util3 = require("util");
21246
+ var util4 = require("util");
20034
21247
  exports2 = module2.exports = require_debug();
20035
21248
  exports2.init = init;
20036
21249
  exports2.log = log;
@@ -20055,7 +21268,7 @@ var require_node = __commonJS({
20055
21268
  }, {});
20056
21269
  var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
20057
21270
  if (1 !== fd && 2 !== fd) {
20058
- util3.deprecate(function() {
21271
+ util4.deprecate(function() {
20059
21272
  }, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
20060
21273
  }
20061
21274
  var stream5 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
@@ -20064,13 +21277,13 @@ var require_node = __commonJS({
20064
21277
  }
20065
21278
  exports2.formatters.o = function(v2) {
20066
21279
  this.inspectOpts.colors = this.useColors;
20067
- return util3.inspect(v2, this.inspectOpts).split("\n").map(function(str) {
21280
+ return util4.inspect(v2, this.inspectOpts).split("\n").map(function(str) {
20068
21281
  return str.trim();
20069
21282
  }).join(" ");
20070
21283
  };
20071
21284
  exports2.formatters.O = function(v2) {
20072
21285
  this.inspectOpts.colors = this.useColors;
20073
- return util3.inspect(v2, this.inspectOpts);
21286
+ return util4.inspect(v2, this.inspectOpts);
20074
21287
  };
20075
21288
  function formatArgs(args) {
20076
21289
  var name = this.namespace;
@@ -20085,7 +21298,7 @@ var require_node = __commonJS({
20085
21298
  }
20086
21299
  }
20087
21300
  function log() {
20088
- return stream5.write(util3.format.apply(util3, arguments) + "\n");
21301
+ return stream5.write(util4.format.apply(util4, arguments) + "\n");
20089
21302
  }
20090
21303
  function save(namespaces) {
20091
21304
  if (null == namespaces) {
@@ -20147,12 +21360,12 @@ var require_node = __commonJS({
20147
21360
  });
20148
21361
 
20149
21362
  // ../../../node_modules/debug/src/index.js
20150
- var require_src = __commonJS({
21363
+ var require_src3 = __commonJS({
20151
21364
  "../../../node_modules/debug/src/index.js"(exports2, module2) {
20152
21365
  if (typeof process !== "undefined" && process.type === "renderer") {
20153
- module2.exports = require_browser();
21366
+ module2.exports = require_browser2();
20154
21367
  } else {
20155
- module2.exports = require_node();
21368
+ module2.exports = require_node2();
20156
21369
  }
20157
21370
  }
20158
21371
  });
@@ -20164,7 +21377,7 @@ var require_debug2 = __commonJS({
20164
21377
  module2.exports = function() {
20165
21378
  if (!debug) {
20166
21379
  try {
20167
- debug = require_src()("follow-redirects");
21380
+ debug = require_src3()("follow-redirects");
20168
21381
  } catch (error) {
20169
21382
  }
20170
21383
  if (typeof debug !== "function") {
@@ -20930,7 +22143,7 @@ var require_lib = __commonJS({
20930
22143
  });
20931
22144
 
20932
22145
  // ../../../node_modules/chardet/lib/fs/node.js
20933
- var require_node2 = __commonJS({
22146
+ var require_node3 = __commonJS({
20934
22147
  "../../../node_modules/chardet/lib/fs/node.js"(exports2, module2) {
20935
22148
  "use strict";
20936
22149
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -26432,7 +27645,7 @@ var require_lib2 = __commonJS({
26432
27645
  };
26433
27646
  Object.defineProperty(exports2, "__esModule", { value: true });
26434
27647
  exports2.detectFileSync = exports2.detectFile = exports2.analyse = exports2.detect = void 0;
26435
- var node_1 = __importDefault(require_node2());
27648
+ var node_1 = __importDefault(require_node3());
26436
27649
  var ascii_1 = __importDefault(require_ascii());
26437
27650
  var utf8_1 = __importDefault(require_utf8());
26438
27651
  var unicode = __importStar(require_unicode2());
@@ -41920,7 +43133,7 @@ var require_graceful_fs = __commonJS({
41920
43133
  var polyfills = require_polyfills();
41921
43134
  var legacy = require_legacy_streams();
41922
43135
  var clone = require_clone();
41923
- var util3 = require("util");
43136
+ var util4 = require("util");
41924
43137
  var gracefulQueue;
41925
43138
  var previousSymbol;
41926
43139
  if (typeof Symbol === "function" && typeof Symbol.for === "function") {
@@ -41940,11 +43153,11 @@ var require_graceful_fs = __commonJS({
41940
43153
  });
41941
43154
  }
41942
43155
  var debug = noop2;
41943
- if (util3.debuglog)
41944
- debug = util3.debuglog("gfs4");
43156
+ if (util4.debuglog)
43157
+ debug = util4.debuglog("gfs4");
41945
43158
  else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
41946
43159
  debug = function() {
41947
- var m2 = util3.format.apply(util3, arguments);
43160
+ var m2 = util4.format.apply(util4, arguments);
41948
43161
  m2 = "GFS4: " + m2.split(/\n/).join("\nGFS4: ");
41949
43162
  console.error(m2);
41950
43163
  };
@@ -45085,8 +46298,8 @@ var require_PnpPlugin = __commonJS({
45085
46298
  var require_Hook = __commonJS({
45086
46299
  "../../../node_modules/tapable/lib/Hook.js"(exports2, module2) {
45087
46300
  "use strict";
45088
- var util3 = require("util");
45089
- var deprecateContext = util3.deprecate(
46301
+ var util4 = require("util");
46302
+ var deprecateContext = util4.deprecate(
45090
46303
  () => {
45091
46304
  },
45092
46305
  "Hook.context is deprecated and will be removed"
@@ -45962,7 +47175,7 @@ var require_AsyncSeriesWaterfallHook = __commonJS({
45962
47175
  var require_HookMap = __commonJS({
45963
47176
  "../../../node_modules/tapable/lib/HookMap.js"(exports2, module2) {
45964
47177
  "use strict";
45965
- var util3 = require("util");
47178
+ var util4 = require("util");
45966
47179
  var defaultFactory = (key, hook) => hook;
45967
47180
  var HookMap = class {
45968
47181
  constructor(factory2, name = void 0) {
@@ -45998,13 +47211,13 @@ var require_HookMap = __commonJS({
45998
47211
  );
45999
47212
  }
46000
47213
  };
46001
- HookMap.prototype.tap = util3.deprecate(function tap(key, options, fn2) {
47214
+ HookMap.prototype.tap = util4.deprecate(function tap(key, options, fn2) {
46002
47215
  return this.for(key).tap(options, fn2);
46003
47216
  }, "HookMap#tap(key,\u2026) is deprecated. Use HookMap#for(key).tap(\u2026) instead.");
46004
- HookMap.prototype.tapAsync = util3.deprecate(function tapAsync(key, options, fn2) {
47217
+ HookMap.prototype.tapAsync = util4.deprecate(function tapAsync(key, options, fn2) {
46005
47218
  return this.for(key).tapAsync(options, fn2);
46006
47219
  }, "HookMap#tapAsync(key,\u2026) is deprecated. Use HookMap#for(key).tapAsync(\u2026) instead.");
46007
- HookMap.prototype.tapPromise = util3.deprecate(function tapPromise(key, options, fn2) {
47220
+ HookMap.prototype.tapPromise = util4.deprecate(function tapPromise(key, options, fn2) {
46008
47221
  return this.for(key).tapPromise(options, fn2);
46009
47222
  }, "HookMap#tapPromise(key,\u2026) is deprecated. Use HookMap#for(key).tapPromise(\u2026) instead.");
46010
47223
  module2.exports = HookMap;
@@ -53426,6 +54639,23 @@ function bind(fn2, thisArg) {
53426
54639
  var { toString } = Object.prototype;
53427
54640
  var { getPrototypeOf } = Object;
53428
54641
  var { iterator, toStringTag } = Symbol;
54642
+ var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
54643
+ var hasOwnInPrototypeChain = (thing, prop) => {
54644
+ let obj = thing;
54645
+ const seen = [];
54646
+ while (obj != null && obj !== Object.prototype) {
54647
+ if (seen.indexOf(obj) !== -1) {
54648
+ return false;
54649
+ }
54650
+ seen.push(obj);
54651
+ if (hasOwnProperty(obj, prop)) {
54652
+ return true;
54653
+ }
54654
+ obj = getPrototypeOf(obj);
54655
+ }
54656
+ return false;
54657
+ };
54658
+ var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
53429
54659
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
53430
54660
  const str = toString.call(thing);
53431
54661
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -53456,11 +54686,14 @@ var isNumber = typeOfTest("number");
53456
54686
  var isObject = (thing) => thing !== null && typeof thing === "object";
53457
54687
  var isBoolean = (thing) => thing === true || thing === false;
53458
54688
  var isPlainObject = (val) => {
53459
- if (kindOf(val) !== "object") {
54689
+ if (!isObject(val)) {
53460
54690
  return false;
53461
54691
  }
53462
54692
  const prototype2 = getPrototypeOf(val);
53463
- return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
54693
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
54694
+ // Symbol.iterator as evidence the value is a tagged/iterable type rather
54695
+ // than a plain object, while ignoring keys injected onto Object.prototype.
54696
+ !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
53464
54697
  };
53465
54698
  var isEmptyObject = (val) => {
53466
54699
  if (!isObject(val) || isBuffer(val)) {
@@ -53564,7 +54797,7 @@ function merge(...objs) {
53564
54797
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
53565
54798
  return;
53566
54799
  }
53567
- const targetKey = caseless && findKey(result, key) || key;
54800
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
53568
54801
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
53569
54802
  if (isPlainObject(existing) && isPlainObject(val)) {
53570
54803
  result[targetKey] = merge(existing, val);
@@ -53577,7 +54810,21 @@ function merge(...objs) {
53577
54810
  }
53578
54811
  };
53579
54812
  for (let i = 0, l = objs.length; i < l; i++) {
53580
- objs[i] && forEach(objs[i], assignValue);
54813
+ const source = objs[i];
54814
+ if (!source || isBuffer(source)) {
54815
+ continue;
54816
+ }
54817
+ forEach(source, assignValue);
54818
+ if (typeof source !== "object" || isArray(source)) {
54819
+ continue;
54820
+ }
54821
+ const symbols = Object.getOwnPropertySymbols(source);
54822
+ for (let j2 = 0; j2 < symbols.length; j2++) {
54823
+ const symbol = symbols[j2];
54824
+ if (propertyIsEnumerable.call(source, symbol)) {
54825
+ assignValue(source[symbol], symbol);
54826
+ }
54827
+ }
53581
54828
  }
53582
54829
  return result;
53583
54830
  }
@@ -53699,7 +54946,7 @@ var toCamelCase = (str) => {
53699
54946
  return p1.toUpperCase() + p2;
53700
54947
  });
53701
54948
  };
53702
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
54949
+ var { propertyIsEnumerable } = Object.prototype;
53703
54950
  var isRegExp = kindOfTest("RegExp");
53704
54951
  var reduceDescriptors = (obj, reducer) => {
53705
54952
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -53750,29 +54997,29 @@ function isSpecCompliantForm(thing) {
53750
54997
  return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
53751
54998
  }
53752
54999
  var toJSONObject = (obj) => {
53753
- const stack = new Array(10);
53754
- const visit = (source, i) => {
55000
+ const visited = /* @__PURE__ */ new WeakSet();
55001
+ const visit = (source) => {
53755
55002
  if (isObject(source)) {
53756
- if (stack.indexOf(source) >= 0) {
55003
+ if (visited.has(source)) {
53757
55004
  return;
53758
55005
  }
53759
55006
  if (isBuffer(source)) {
53760
55007
  return source;
53761
55008
  }
53762
55009
  if (!("toJSON" in source)) {
53763
- stack[i] = source;
55010
+ visited.add(source);
53764
55011
  const target = isArray(source) ? [] : {};
53765
55012
  forEach(source, (value, key) => {
53766
- const reducedValue = visit(value, i + 1);
55013
+ const reducedValue = visit(value);
53767
55014
  !isUndefined(reducedValue) && (target[key] = reducedValue);
53768
55015
  });
53769
- stack[i] = void 0;
55016
+ visited.delete(source);
53770
55017
  return target;
53771
55018
  }
53772
55019
  }
53773
55020
  return source;
53774
55021
  };
53775
- return visit(obj, 0);
55022
+ return visit(obj);
53776
55023
  };
53777
55024
  var isAsyncFn = kindOfTest("AsyncFunction");
53778
55025
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
@@ -53798,6 +55045,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
53798
55045
  })(typeof setImmediate === "function", isFunction(_global.postMessage));
53799
55046
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
53800
55047
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
55048
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
53801
55049
  var utils_default = {
53802
55050
  isArray,
53803
55051
  isArrayBuffer,
@@ -53843,6 +55091,8 @@ var utils_default = {
53843
55091
  hasOwnProperty,
53844
55092
  hasOwnProp: hasOwnProperty,
53845
55093
  // an alias to avoid ESLint no-prototype-builtins detection
55094
+ hasOwnInPrototypeChain,
55095
+ getSafeProp,
53846
55096
  reduceDescriptors,
53847
55097
  freezeMethods,
53848
55098
  toObjectSet,
@@ -53858,7 +55108,8 @@ var utils_default = {
53858
55108
  isThenable,
53859
55109
  setImmediate: _setImmediate,
53860
55110
  asap,
53861
- isIterable
55111
+ isIterable,
55112
+ isSafeIterable
53862
55113
  };
53863
55114
 
53864
55115
  // ../../../node_modules/axios/lib/helpers/parseHeaders.js
@@ -53906,9 +55157,7 @@ var parseHeaders_default = (rawHeaders) => {
53906
55157
  return parsed;
53907
55158
  };
53908
55159
 
53909
- // ../../../node_modules/axios/lib/core/AxiosHeaders.js
53910
- var $internals = /* @__PURE__ */ Symbol("internals");
53911
- var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
55160
+ // ../../../node_modules/axios/lib/helpers/sanitizeHeaderValue.js
53912
55161
  function trimSPorHTAB(str) {
53913
55162
  let start = 0;
53914
55163
  let end = str.length;
@@ -53928,12 +55177,29 @@ function trimSPorHTAB(str) {
53928
55177
  }
53929
55178
  return start === 0 && end === str.length ? str : str.slice(start, end);
53930
55179
  }
55180
+ var INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
55181
+ var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
55182
+ function sanitizeValue(value, invalidChars) {
55183
+ if (utils_default.isArray(value)) {
55184
+ return value.map((item) => sanitizeValue(item, invalidChars));
55185
+ }
55186
+ return trimSPorHTAB(String(value).replace(invalidChars, ""));
55187
+ }
55188
+ var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
55189
+ var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
55190
+ function toByteStringHeaderObject(headers) {
55191
+ const byteStringHeaders = /* @__PURE__ */ Object.create(null);
55192
+ utils_default.forEach(headers.toJSON(), (value, header) => {
55193
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
55194
+ });
55195
+ return byteStringHeaders;
55196
+ }
55197
+
55198
+ // ../../../node_modules/axios/lib/core/AxiosHeaders.js
55199
+ var $internals = /* @__PURE__ */ Symbol("internals");
53931
55200
  function normalizeHeader(header) {
53932
55201
  return header && String(header).trim().toLowerCase();
53933
55202
  }
53934
- function sanitizeHeaderValue(str) {
53935
- return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
53936
- }
53937
55203
  function normalizeValue(value) {
53938
55204
  if (value === false || value == null) {
53939
55205
  return value;
@@ -53993,7 +55259,7 @@ var AxiosHeaders = class {
53993
55259
  function setHeader(_value, _header, _rewrite) {
53994
55260
  const lHeader = normalizeHeader(_header);
53995
55261
  if (!lHeader) {
53996
- throw new Error("header name must be a non-empty string");
55262
+ return;
53997
55263
  }
53998
55264
  const key = utils_default.findKey(self2, lHeader);
53999
55265
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -54005,13 +55271,19 @@ var AxiosHeaders = class {
54005
55271
  setHeaders(header, valueOrRewrite);
54006
55272
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
54007
55273
  setHeaders(parseHeaders_default(header), valueOrRewrite);
54008
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
54009
- let obj = {}, dest, key;
55274
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
55275
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
54010
55276
  for (const entry of header) {
54011
55277
  if (!utils_default.isArray(entry)) {
54012
- throw TypeError("Object iterator must return a key-value pair");
55278
+ throw new TypeError("Object iterator must return a key-value pair");
55279
+ }
55280
+ key = entry[0];
55281
+ if (utils_default.hasOwnProp(obj, key)) {
55282
+ dest = obj[key];
55283
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
55284
+ } else {
55285
+ obj[key] = entry[1];
54013
55286
  }
54014
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
54015
55287
  }
54016
55288
  setHeaders(obj, valueOrRewrite);
54017
55289
  } else {
@@ -54308,6 +55580,7 @@ var import_form_data = __toESM(require_form_data(), 1);
54308
55580
  var FormData_default = import_form_data.default;
54309
55581
 
54310
55582
  // ../../../node_modules/axios/lib/helpers/toFormData.js
55583
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
54311
55584
  function isVisitable(thing) {
54312
55585
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
54313
55586
  }
@@ -54349,8 +55622,9 @@ function toFormData(obj, formData, options) {
54349
55622
  const dots = options.dots;
54350
55623
  const indexes = options.indexes;
54351
55624
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
54352
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
55625
+ const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
54353
55626
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
55627
+ const stack = [];
54354
55628
  if (!utils_default.isFunction(visitor)) {
54355
55629
  throw new TypeError("visitor must be a function");
54356
55630
  }
@@ -54370,6 +55644,31 @@ function toFormData(obj, formData, options) {
54370
55644
  }
54371
55645
  return value;
54372
55646
  }
55647
+ function throwIfMaxDepthExceeded(depth) {
55648
+ if (depth > maxDepth) {
55649
+ throw new AxiosError_default(
55650
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
55651
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
55652
+ );
55653
+ }
55654
+ }
55655
+ function stringifyWithDepthLimit(value, depth) {
55656
+ if (maxDepth === Infinity) {
55657
+ return JSON.stringify(value);
55658
+ }
55659
+ const ancestors = [];
55660
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
55661
+ if (!utils_default.isObject(currentValue)) {
55662
+ return currentValue;
55663
+ }
55664
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
55665
+ ancestors.pop();
55666
+ }
55667
+ ancestors.push(currentValue);
55668
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
55669
+ return currentValue;
55670
+ });
55671
+ }
54373
55672
  function defaultVisitor(value, key, path3) {
54374
55673
  let arr = value;
54375
55674
  if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
@@ -54379,7 +55678,7 @@ function toFormData(obj, formData, options) {
54379
55678
  if (value && !path3 && typeof value === "object") {
54380
55679
  if (utils_default.endsWith(key, "{}")) {
54381
55680
  key = metaTokens ? key : key.slice(0, -2);
54382
- value = JSON.stringify(value);
55681
+ value = stringifyWithDepthLimit(value, 1);
54383
55682
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
54384
55683
  key = removeBrackets(key);
54385
55684
  arr.forEach(function each(el, index) {
@@ -54398,7 +55697,6 @@ function toFormData(obj, formData, options) {
54398
55697
  formData.append(renderKey(path3, key, dots), convertValue(value));
54399
55698
  return false;
54400
55699
  }
54401
- const stack = [];
54402
55700
  const exposedHelpers = Object.assign(predicates, {
54403
55701
  defaultVisitor,
54404
55702
  convertValue,
@@ -54406,14 +55704,9 @@ function toFormData(obj, formData, options) {
54406
55704
  });
54407
55705
  function build(value, path3, depth = 0) {
54408
55706
  if (utils_default.isUndefined(value)) return;
54409
- if (depth > maxDepth) {
54410
- throw new AxiosError_default(
54411
- "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
54412
- AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
54413
- );
54414
- }
55707
+ throwIfMaxDepthExceeded(depth);
54415
55708
  if (stack.indexOf(value) !== -1) {
54416
- throw Error("Circular reference detected in " + path3.join("."));
55709
+ throw new Error("Circular reference detected in " + path3.join("."));
54417
55710
  }
54418
55711
  stack.push(value);
54419
55712
  utils_default.forEach(value, function each(el, key) {
@@ -54472,11 +55765,11 @@ function buildURL(url2, params, options) {
54472
55765
  if (!params) {
54473
55766
  return url2;
54474
55767
  }
54475
- const _encode = options && options.encode || encode2;
54476
55768
  const _options = utils_default.isFunction(options) ? {
54477
55769
  serialize: options
54478
55770
  } : options;
54479
- const serializeFn = _options && _options.serialize;
55771
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
55772
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
54480
55773
  let serializedParams;
54481
55774
  if (serializeFn) {
54482
55775
  serializedParams = serializeFn(params, _options);
@@ -54563,7 +55856,9 @@ var transitional_default = {
54563
55856
  silentJSONParsing: true,
54564
55857
  forcedJSONParsing: true,
54565
55858
  clarifyTimeoutError: false,
54566
- legacyInterceptorReqResOrdering: true
55859
+ legacyInterceptorReqResOrdering: true,
55860
+ advertiseZstdAcceptEncoding: false,
55861
+ validateStatusUndefinedResolves: true
54567
55862
  };
54568
55863
 
54569
55864
  // ../../../node_modules/axios/lib/platform/node/index.js
@@ -54642,10 +55937,24 @@ function toURLEncodedForm(data, options) {
54642
55937
  }
54643
55938
 
54644
55939
  // ../../../node_modules/axios/lib/helpers/formDataToJSON.js
55940
+ var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
55941
+ function throwIfDepthExceeded(index) {
55942
+ if (index > MAX_DEPTH) {
55943
+ throw new AxiosError_default(
55944
+ "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
55945
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
55946
+ );
55947
+ }
55948
+ }
54645
55949
  function parsePropPath(name) {
54646
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match2) => {
54647
- return match2[0] === "[]" ? "" : match2[1] || match2[0];
54648
- });
55950
+ const path3 = [];
55951
+ const pattern = /\w+|\[(\w*)]/g;
55952
+ let match2;
55953
+ while ((match2 = pattern.exec(name)) !== null) {
55954
+ throwIfDepthExceeded(path3.length);
55955
+ path3.push(match2[0] === "[]" ? "" : match2[1] || match2[0]);
55956
+ }
55957
+ return path3;
54649
55958
  }
54650
55959
  function arrayToObject(arr) {
54651
55960
  const obj = {};
@@ -54661,6 +55970,7 @@ function arrayToObject(arr) {
54661
55970
  }
54662
55971
  function formDataToJSON(formData) {
54663
55972
  function buildPath(path3, value, target, index) {
55973
+ throwIfDepthExceeded(index);
54664
55974
  let name = path3[index++];
54665
55975
  if (name === "__proto__") return true;
54666
55976
  const isNumericKey = Number.isFinite(+name);
@@ -54674,7 +55984,7 @@ function formDataToJSON(formData) {
54674
55984
  }
54675
55985
  return !isNumericKey;
54676
55986
  }
54677
- if (!target[name] || !utils_default.isObject(target[name])) {
55987
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
54678
55988
  target[name] = [];
54679
55989
  }
54680
55990
  const result = buildPath(path3, value, target[name], index);
@@ -54878,9 +56188,32 @@ function combineURLs(baseURL, relativeURL) {
54878
56188
  }
54879
56189
 
54880
56190
  // ../../../node_modules/axios/lib/core/buildFullPath.js
54881
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
56191
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
56192
+ var httpProtocolControlCharacters = /[\t\n\r]/g;
56193
+ function stripLeadingC0ControlOrSpace(url2) {
56194
+ let i = 0;
56195
+ while (i < url2.length && url2.charCodeAt(i) <= 32) {
56196
+ i++;
56197
+ }
56198
+ return url2.slice(i);
56199
+ }
56200
+ function normalizeURLForProtocolCheck(url2) {
56201
+ return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
56202
+ }
56203
+ function assertValidHttpProtocolURL(url2, config) {
56204
+ if (typeof url2 === "string" && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url2))) {
56205
+ throw new AxiosError_default(
56206
+ 'Invalid URL: missing "//" after protocol',
56207
+ AxiosError_default.ERR_INVALID_URL,
56208
+ config
56209
+ );
56210
+ }
56211
+ }
56212
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
56213
+ assertValidHttpProtocolURL(requestedURL, config);
54882
56214
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
54883
56215
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
56216
+ assertValidHttpProtocolURL(baseURL, config);
54884
56217
  return combineURLs(baseURL, requestedURL);
54885
56218
  }
54886
56219
  return requestedURL;
@@ -54954,16 +56287,17 @@ function getEnv(key) {
54954
56287
  }
54955
56288
 
54956
56289
  // ../../../node_modules/axios/lib/adapters/http.js
56290
+ var import_https_proxy_agent = __toESM(require_dist(), 1);
54957
56291
  var import_http = __toESM(require("http"), 1);
54958
56292
  var import_https = __toESM(require("https"), 1);
54959
- var import_http2 = __toESM(require("http2"), 1);
54960
- var import_util2 = __toESM(require("util"), 1);
56293
+ var import_http22 = __toESM(require("http2"), 1);
56294
+ var import_util3 = __toESM(require("util"), 1);
54961
56295
  var import_path4 = require("path");
54962
56296
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
54963
56297
  var import_zlib2 = __toESM(require("zlib"), 1);
54964
56298
 
54965
56299
  // ../../../node_modules/axios/lib/env/data.js
54966
- var VERSION = "1.16.0";
56300
+ var VERSION = "1.18.0";
54967
56301
 
54968
56302
  // ../../../node_modules/axios/lib/helpers/parseProtocol.js
54969
56303
  function parseProtocol(url2) {
@@ -54972,7 +56306,7 @@ function parseProtocol(url2) {
54972
56306
  }
54973
56307
 
54974
56308
  // ../../../node_modules/axios/lib/helpers/fromDataURI.js
54975
- var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
56309
+ var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
54976
56310
  function fromDataURI(uri, asBlob, options) {
54977
56311
  const _Blob = options && options.Blob || platform_default.classes.Blob;
54978
56312
  const protocol = parseProtocol(uri);
@@ -54985,10 +56319,17 @@ function fromDataURI(uri, asBlob, options) {
54985
56319
  if (!match2) {
54986
56320
  throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
54987
56321
  }
54988
- const mime = match2[1];
54989
- const isBase64 = match2[2];
54990
- const body = match2[3];
54991
- const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
56322
+ const type = match2[1];
56323
+ const params = match2[2];
56324
+ const encoding = match2[3] ? "base64" : "utf8";
56325
+ const body = match2[4];
56326
+ let mime;
56327
+ if (type) {
56328
+ mime = params ? type + params : type;
56329
+ } else if (params) {
56330
+ mime = "text/plain" + params;
56331
+ }
56332
+ const buffer = Buffer.from(decodeURIComponent(body), encoding);
54992
56333
  if (asBlob) {
54993
56334
  if (!_Blob) {
54994
56335
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -55199,10 +56540,10 @@ var formDataToStream = (form, headersHandler, options) => {
55199
56540
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
55200
56541
  } = options || {};
55201
56542
  if (!utils_default.isFormData(form)) {
55202
- throw TypeError("FormData instance required");
56543
+ throw new TypeError("FormData instance required");
55203
56544
  }
55204
56545
  if (boundary.length < 1 || boundary.length > 70) {
55205
- throw Error("boundary must be 1-70 characters long");
56546
+ throw new Error("boundary must be 1-70 characters long");
55206
56547
  }
55207
56548
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
55208
56549
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -55255,6 +56596,87 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
55255
56596
  };
55256
56597
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
55257
56598
 
56599
+ // ../../../node_modules/axios/lib/helpers/Http2Sessions.js
56600
+ var import_http2 = __toESM(require("http2"), 1);
56601
+ var import_util2 = __toESM(require("util"), 1);
56602
+ var Http2Sessions = class {
56603
+ constructor() {
56604
+ this.sessions = /* @__PURE__ */ Object.create(null);
56605
+ }
56606
+ getSession(authority, options) {
56607
+ options = Object.assign(
56608
+ {
56609
+ sessionTimeout: 1e3
56610
+ },
56611
+ options
56612
+ );
56613
+ let authoritySessions = this.sessions[authority];
56614
+ if (authoritySessions) {
56615
+ let len = authoritySessions.length;
56616
+ for (let i = 0; i < len; i++) {
56617
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
56618
+ if (!sessionHandle.destroyed && !sessionHandle.closed && import_util2.default.isDeepStrictEqual(sessionOptions, options)) {
56619
+ return sessionHandle;
56620
+ }
56621
+ }
56622
+ }
56623
+ const session = import_http2.default.connect(authority, options);
56624
+ let removed;
56625
+ let timer;
56626
+ const removeSession = () => {
56627
+ if (removed) {
56628
+ return;
56629
+ }
56630
+ removed = true;
56631
+ if (timer) {
56632
+ clearTimeout(timer);
56633
+ timer = null;
56634
+ }
56635
+ let entries = authoritySessions, len = entries.length, i = len;
56636
+ while (i--) {
56637
+ if (entries[i][0] === session) {
56638
+ if (len === 1) {
56639
+ delete this.sessions[authority];
56640
+ } else {
56641
+ entries.splice(i, 1);
56642
+ }
56643
+ if (!session.closed) {
56644
+ session.close();
56645
+ }
56646
+ return;
56647
+ }
56648
+ }
56649
+ };
56650
+ const originalRequestFn = session.request;
56651
+ const { sessionTimeout } = options;
56652
+ if (sessionTimeout != null) {
56653
+ let streamsCount = 0;
56654
+ session.request = function() {
56655
+ const stream5 = originalRequestFn.apply(this, arguments);
56656
+ streamsCount++;
56657
+ if (timer) {
56658
+ clearTimeout(timer);
56659
+ timer = null;
56660
+ }
56661
+ stream5.once("close", () => {
56662
+ if (!--streamsCount) {
56663
+ timer = setTimeout(() => {
56664
+ timer = null;
56665
+ removeSession();
56666
+ }, sessionTimeout);
56667
+ }
56668
+ });
56669
+ return stream5;
56670
+ };
56671
+ }
56672
+ session.once("close", removeSession);
56673
+ let entry = [session, options];
56674
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
56675
+ return session;
56676
+ }
56677
+ };
56678
+ var Http2Sessions_default = Http2Sessions;
56679
+
55258
56680
  // ../../../node_modules/axios/lib/helpers/callbackify.js
55259
56681
  var callbackify = (fn2, reducer) => {
55260
56682
  return utils_default.isAsyncFn(fn2) ? function(...args) {
@@ -55271,13 +56693,29 @@ var callbackify = (fn2, reducer) => {
55271
56693
  var callbackify_default = callbackify;
55272
56694
 
55273
56695
  // ../../../node_modules/axios/lib/helpers/shouldBypassProxy.js
55274
- var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
56696
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
55275
56697
  var isIPv4Loopback = (host) => {
55276
56698
  const parts = host.split(".");
55277
56699
  if (parts.length !== 4) return false;
55278
56700
  if (parts[0] !== "127") return false;
55279
56701
  return parts.every((p2) => /^\d+$/.test(p2) && Number(p2) >= 0 && Number(p2) <= 255);
55280
56702
  };
56703
+ var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
56704
+ var isIPv6Unspecified = (host) => {
56705
+ if (host === "::") return true;
56706
+ const compressionIndex = host.indexOf("::");
56707
+ if (compressionIndex !== -1) {
56708
+ if (compressionIndex !== host.lastIndexOf("::")) return false;
56709
+ const left = host.slice(0, compressionIndex);
56710
+ const right = host.slice(compressionIndex + 2);
56711
+ const leftGroups = left ? left.split(":") : [];
56712
+ const rightGroups = right ? right.split(":") : [];
56713
+ const explicitGroups = leftGroups.length + rightGroups.length;
56714
+ return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
56715
+ }
56716
+ const groups = host.split(":");
56717
+ return groups.length === 8 && groups.every(isIPv6ZeroGroup);
56718
+ };
55281
56719
  var isIPv6Loopback = (host) => {
55282
56720
  if (host === "::1") return true;
55283
56721
  const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
@@ -55300,6 +56738,7 @@ var isLoopback = (host) => {
55300
56738
  if (!host) return false;
55301
56739
  if (LOOPBACK_HOSTNAMES.has(host)) return true;
55302
56740
  if (isIPv4Loopback(host)) return true;
56741
+ if (isIPv6Unspecified(host)) return true;
55303
56742
  return isIPv6Loopback(host);
55304
56743
  };
55305
56744
  var DEFAULT_PORTS2 = {
@@ -55468,6 +56907,9 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
55468
56907
  let bytesNotified = 0;
55469
56908
  const _speedometer = speedometer_default(50, 250);
55470
56909
  return throttle_default((e) => {
56910
+ if (!e || typeof e.loaded !== "number") {
56911
+ return;
56912
+ }
55471
56913
  const rawLoaded = e.loaded;
55472
56914
  const total = e.lengthComputable ? e.total : void 0;
55473
56915
  const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
@@ -55502,6 +56944,8 @@ var progressEventDecorator = (total, throttled) => {
55502
56944
  var asyncDecorator = (fn2) => (...args) => utils_default.asap(() => fn2(...args));
55503
56945
 
55504
56946
  // ../../../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
56947
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
56948
+ var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
55505
56949
  function estimateDataURLDecodedBytes(url2) {
55506
56950
  if (!url2 || typeof url2 !== "string") return 0;
55507
56951
  if (!url2.startsWith("data:")) return 0;
@@ -55517,7 +56961,7 @@ function estimateDataURLDecodedBytes(url2) {
55517
56961
  if (body.charCodeAt(i) === 37 && i + 2 < len) {
55518
56962
  const a = body.charCodeAt(i + 1);
55519
56963
  const b2 = body.charCodeAt(i + 2);
55520
- const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b2 >= 48 && b2 <= 57 || b2 >= 65 && b2 <= 70 || b2 >= 97 && b2 <= 102);
56964
+ const isHex = isHexDigit(a) && isHexDigit(b2);
55521
56965
  if (isHex) {
55522
56966
  effectiveLen -= 2;
55523
56967
  i += 2;
@@ -55549,13 +56993,13 @@ function estimateDataURLDecodedBytes(url2) {
55549
56993
  const bytes2 = groups * 3 - (pad || 0);
55550
56994
  return bytes2 > 0 ? bytes2 : 0;
55551
56995
  }
55552
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
55553
- return Buffer.byteLength(body, "utf8");
55554
- }
55555
56996
  let bytes = 0;
55556
56997
  for (let i = 0, len = body.length; i < len; i++) {
55557
56998
  const c = body.charCodeAt(i);
55558
- if (c < 128) {
56999
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
57000
+ bytes += 1;
57001
+ i += 2;
57002
+ } else if (c < 128) {
55559
57003
  bytes += 1;
55560
57004
  } else if (c < 2048) {
55561
57005
  bytes += 2;
@@ -55583,7 +57027,14 @@ var brotliOptions = {
55583
57027
  flush: import_zlib2.default.constants.BROTLI_OPERATION_FLUSH,
55584
57028
  finishFlush: import_zlib2.default.constants.BROTLI_OPERATION_FLUSH
55585
57029
  };
57030
+ var zstdOptions = {
57031
+ flush: import_zlib2.default.constants.ZSTD_e_flush,
57032
+ finishFlush: import_zlib2.default.constants.ZSTD_e_flush
57033
+ };
55586
57034
  var isBrotliSupported = utils_default.isFunction(import_zlib2.default.createBrotliDecompress);
57035
+ var isZstdSupported = utils_default.isFunction(import_zlib2.default.createZstdDecompress);
57036
+ var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
57037
+ var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
55587
57038
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
55588
57039
  var isHttps = /https:?/;
55589
57040
  var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
@@ -55600,6 +57051,27 @@ function setFormDataHeaders(headers, formHeaders, policy) {
55600
57051
  }
55601
57052
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
55602
57053
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
57054
+ var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
57055
+ var tunnelingAgentCache = /* @__PURE__ */ new Map();
57056
+ var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
57057
+ function getTunnelingAgent(agentOptions, userHttpsAgent) {
57058
+ const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
57059
+ const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
57060
+ let agent = cache.get(key);
57061
+ if (agent) return agent;
57062
+ const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
57063
+ agent = new import_https_proxy_agent.default(merged);
57064
+ if (userHttpsAgent && userHttpsAgent.options) {
57065
+ const originTLSOptions = { ...userHttpsAgent.options };
57066
+ const callback = agent.callback;
57067
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
57068
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
57069
+ };
57070
+ }
57071
+ agent[kAxiosInstalledTunnel] = true;
57072
+ cache.set(key, agent);
57073
+ return agent;
57074
+ }
55603
57075
  var supportedProtocols = platform_default.protocols.map((protocol) => {
55604
57076
  return protocol + ":";
55605
57077
  });
@@ -55617,88 +57089,42 @@ var flushOnFinish = (stream5, [throttled, flush]) => {
55617
57089
  stream5.on("end", flush).on("error", flush);
55618
57090
  return throttled;
55619
57091
  };
55620
- var Http2Sessions = class {
55621
- constructor() {
55622
- this.sessions = /* @__PURE__ */ Object.create(null);
55623
- }
55624
- getSession(authority, options) {
55625
- options = Object.assign(
55626
- {
55627
- sessionTimeout: 1e3
55628
- },
55629
- options
55630
- );
55631
- let authoritySessions = this.sessions[authority];
55632
- if (authoritySessions) {
55633
- let len = authoritySessions.length;
55634
- for (let i = 0; i < len; i++) {
55635
- const [sessionHandle, sessionOptions] = authoritySessions[i];
55636
- if (!sessionHandle.destroyed && !sessionHandle.closed && import_util2.default.isDeepStrictEqual(sessionOptions, options)) {
55637
- return sessionHandle;
55638
- }
55639
- }
55640
- }
55641
- const session = import_http2.default.connect(authority, options);
55642
- let removed;
55643
- const removeSession = () => {
55644
- if (removed) {
55645
- return;
55646
- }
55647
- removed = true;
55648
- let entries = authoritySessions, len = entries.length, i = len;
55649
- while (i--) {
55650
- if (entries[i][0] === session) {
55651
- if (len === 1) {
55652
- delete this.sessions[authority];
55653
- } else {
55654
- entries.splice(i, 1);
55655
- }
55656
- if (!session.closed) {
55657
- session.close();
55658
- }
55659
- return;
55660
- }
55661
- }
55662
- };
55663
- const originalRequestFn = session.request;
55664
- const { sessionTimeout } = options;
55665
- if (sessionTimeout != null) {
55666
- let timer;
55667
- let streamsCount = 0;
55668
- session.request = function() {
55669
- const stream5 = originalRequestFn.apply(this, arguments);
55670
- streamsCount++;
55671
- if (timer) {
55672
- clearTimeout(timer);
55673
- timer = null;
55674
- }
55675
- stream5.once("close", () => {
55676
- if (!--streamsCount) {
55677
- timer = setTimeout(() => {
55678
- timer = null;
55679
- removeSession();
55680
- }, sessionTimeout);
55681
- }
55682
- });
55683
- return stream5;
55684
- };
55685
- }
55686
- session.once("close", removeSession);
55687
- let entry = [session, options];
55688
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
55689
- return session;
55690
- }
55691
- };
55692
- var http2Sessions = new Http2Sessions();
57092
+ var http2Sessions = new Http2Sessions_default();
55693
57093
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
55694
57094
  if (options.beforeRedirects.proxy) {
55695
57095
  options.beforeRedirects.proxy(options);
55696
57096
  }
57097
+ if (options.beforeRedirects.auth) {
57098
+ options.beforeRedirects.auth(options);
57099
+ }
57100
+ if (options.beforeRedirects.sensitiveHeaders) {
57101
+ options.beforeRedirects.sensitiveHeaders(options, requestDetails);
57102
+ }
55697
57103
  if (options.beforeRedirects.config) {
55698
57104
  options.beforeRedirects.config(options, responseDetails, requestDetails);
55699
57105
  }
55700
57106
  }
55701
- function setProxy(options, configProxy, location, isRedirect) {
57107
+ function stripMatchingHeaders(headers, sensitiveSet) {
57108
+ if (!headers) {
57109
+ return;
57110
+ }
57111
+ Object.keys(headers).forEach((header) => {
57112
+ if (sensitiveSet.has(header.toLowerCase())) {
57113
+ delete headers[header];
57114
+ }
57115
+ });
57116
+ }
57117
+ function isSameOriginRedirect(redirectOptions, requestDetails) {
57118
+ if (!requestDetails) {
57119
+ return false;
57120
+ }
57121
+ try {
57122
+ return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
57123
+ } catch (e) {
57124
+ return false;
57125
+ }
57126
+ }
57127
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
55702
57128
  let proxy = configProxy;
55703
57129
  if (!proxy && proxy !== false) {
55704
57130
  const proxyUrl = getProxyForUrl(location);
@@ -55715,6 +57141,9 @@ function setProxy(options, configProxy, location, isRedirect) {
55715
57141
  }
55716
57142
  }
55717
57143
  }
57144
+ if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
57145
+ options.agent = void 0;
57146
+ }
55718
57147
  if (proxy) {
55719
57148
  const isProxyURL = proxy instanceof URL;
55720
57149
  const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
@@ -55734,31 +57163,61 @@ function setProxy(options, configProxy, location, isRedirect) {
55734
57163
  } else if (authIsObject) {
55735
57164
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
55736
57165
  }
55737
- const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
55738
- options.headers["Proxy-Authorization"] = "Basic " + base64;
55739
57166
  }
55740
- let hasUserHostHeader = false;
55741
- for (const name of Object.keys(options.headers)) {
55742
- if (name.toLowerCase() === "host") {
55743
- hasUserHostHeader = true;
55744
- break;
57167
+ const targetIsHttps = isHttps.test(options.protocol);
57168
+ if (targetIsHttps) {
57169
+ if (!(configHttpsAgent instanceof import_https_proxy_agent.default)) {
57170
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
57171
+ const proxyPort = readProxyField("port");
57172
+ const rawProxyProtocol = readProxyField("protocol");
57173
+ const normalizedProtocol = rawProxyProtocol ? rawProxyProtocol.includes(":") ? rawProxyProtocol : `${rawProxyProtocol}:` : "http:";
57174
+ const proxyHostForURL = proxyHost && proxyHost.includes(":") && !proxyHost.startsWith("[") ? `[${proxyHost}]` : proxyHost;
57175
+ const proxyURL = new URL(
57176
+ `${normalizedProtocol}//${proxyHostForURL}${proxyPort ? ":" + proxyPort : ""}`
57177
+ );
57178
+ const agentOptions = {
57179
+ protocol: proxyURL.protocol,
57180
+ hostname: proxyURL.hostname.replace(/^\[|\]$/g, ""),
57181
+ port: proxyURL.port,
57182
+ auth: proxyAuth && typeof proxyAuth === "string" ? proxyAuth : void 0
57183
+ };
57184
+ if (proxyURL.protocol === "https:") {
57185
+ agentOptions.ALPNProtocols = ["http/1.1"];
57186
+ }
57187
+ const tunnelingAgent = getTunnelingAgent(agentOptions, configHttpsAgent);
57188
+ options.agent = tunnelingAgent;
57189
+ if (options.agents) {
57190
+ options.agents.https = tunnelingAgent;
57191
+ }
57192
+ }
57193
+ } else {
57194
+ if (proxyAuth) {
57195
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
57196
+ options.headers["Proxy-Authorization"] = "Basic " + base64;
57197
+ }
57198
+ let hasUserHostHeader = false;
57199
+ for (const name of Object.keys(options.headers)) {
57200
+ if (name.toLowerCase() === "host") {
57201
+ hasUserHostHeader = true;
57202
+ break;
57203
+ }
57204
+ }
57205
+ if (!hasUserHostHeader) {
57206
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
57207
+ }
57208
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
57209
+ options.hostname = proxyHost;
57210
+ options.host = proxyHost;
57211
+ options.port = readProxyField("port");
57212
+ options.path = location;
57213
+ const proxyProtocol = readProxyField("protocol");
57214
+ if (proxyProtocol) {
57215
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
55745
57216
  }
55746
- }
55747
- if (!hasUserHostHeader) {
55748
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
55749
- }
55750
- const proxyHost = readProxyField("hostname") || readProxyField("host");
55751
- options.hostname = proxyHost;
55752
- options.host = proxyHost;
55753
- options.port = readProxyField("port");
55754
- options.path = location;
55755
- const proxyProtocol = readProxyField("protocol");
55756
- if (proxyProtocol) {
55757
- options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
55758
57217
  }
55759
57218
  }
55760
57219
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
55761
- setProxy(redirectOptions, configProxy, redirectOptions.href, true);
57220
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
55762
57221
  };
55763
57222
  }
55764
57223
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -55797,7 +57256,7 @@ var http2Transport = {
55797
57256
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
55798
57257
  const { http2Options, headers } = options;
55799
57258
  const session = http2Sessions.getSession(authority, http2Options);
55800
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = import_http2.default.constants;
57259
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = import_http22.default.constants;
55801
57260
  const http2Headers = {
55802
57261
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
55803
57262
  [HTTP2_HEADER_METHOD]: options.method,
@@ -55821,7 +57280,8 @@ var http2Transport = {
55821
57280
  };
55822
57281
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55823
57282
  return wrapAsync(async function dispatchHttpRequest(resolve6, reject, onDone) {
55824
- const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
57283
+ const own2 = (key) => utils_default.getSafeProp(config, key);
57284
+ const transitional2 = own2("transitional") || transitional_default;
55825
57285
  let data = own2("data");
55826
57286
  let lookup = own2("lookup");
55827
57287
  let family = own2("family");
@@ -55830,7 +57290,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55830
57290
  let http2Options = own2("http2Options");
55831
57291
  const responseType = own2("responseType");
55832
57292
  const responseEncoding = own2("responseEncoding");
55833
- const method = config.method.toUpperCase();
57293
+ const httpAgent = own2("httpAgent");
57294
+ const httpsAgent = own2("httpsAgent");
57295
+ const method = own2("method").toUpperCase();
57296
+ const maxRedirects = own2("maxRedirects");
57297
+ const maxBodyLength = own2("maxBodyLength");
57298
+ const maxContentLength = own2("maxContentLength");
57299
+ const decompress = own2("decompress");
55834
57300
  let isDone;
55835
57301
  let rejected = false;
55836
57302
  let req;
@@ -55863,7 +57329,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55863
57329
  !reason || reason.type ? new CanceledError_default(null, config, req) : reason
55864
57330
  );
55865
57331
  } catch (err) {
55866
- console.warn("emit error", err);
55867
57332
  }
55868
57333
  }
55869
57334
  function clearConnectPhaseTimer() {
@@ -55873,10 +57338,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55873
57338
  }
55874
57339
  }
55875
57340
  function createTimeoutError() {
55876
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
55877
- const transitional2 = config.transitional || transitional_default;
55878
- if (config.timeoutErrorMessage) {
55879
- timeoutErrorMessage = config.timeoutErrorMessage;
57341
+ const configTimeout = own2("timeout");
57342
+ let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
57343
+ const configTimeoutErrorMessage = own2("timeoutErrorMessage");
57344
+ if (configTimeoutErrorMessage) {
57345
+ timeoutErrorMessage = configTimeoutErrorMessage;
55880
57346
  }
55881
57347
  return new AxiosError_default(
55882
57348
  timeoutErrorMessage,
@@ -55920,17 +57386,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55920
57386
  onFinished();
55921
57387
  }
55922
57388
  });
55923
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
57389
+ const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
55924
57390
  const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
55925
57391
  const protocol = parsed.protocol || supportedProtocols[0];
55926
57392
  if (protocol === "data:") {
55927
- if (config.maxContentLength > -1) {
55928
- const dataUrl = String(config.url || fullPath || "");
57393
+ if (maxContentLength > -1) {
57394
+ const dataUrl = String(own2("url") || fullPath || "");
55929
57395
  const estimated = estimateDataURLDecodedBytes(dataUrl);
55930
- if (estimated > config.maxContentLength) {
57396
+ if (estimated > maxContentLength) {
55931
57397
  return reject(
55932
57398
  new AxiosError_default(
55933
- "maxContentLength size of " + config.maxContentLength + " exceeded",
57399
+ "maxContentLength size of " + maxContentLength + " exceeded",
55934
57400
  AxiosError_default.ERR_BAD_RESPONSE,
55935
57401
  config
55936
57402
  )
@@ -55947,7 +57413,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55947
57413
  });
55948
57414
  }
55949
57415
  try {
55950
- convertedData = fromDataURI(config.url, responseType === "blob", {
57416
+ convertedData = fromDataURI(own2("url"), responseType === "blob", {
55951
57417
  Blob: config.env && config.env.Blob
55952
57418
  });
55953
57419
  } catch (err) {
@@ -55996,7 +57462,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
55996
57462
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
55997
57463
  if (!headers.hasContentLength()) {
55998
57464
  try {
55999
- const knownLength = await import_util2.default.promisify(data.getLength).call(data);
57465
+ const knownLength = await import_util3.default.promisify(data.getLength).call(data);
56000
57466
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
56001
57467
  } catch (e) {
56002
57468
  }
@@ -56021,7 +57487,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56021
57487
  );
56022
57488
  }
56023
57489
  headers.setContentLength(data.length, false);
56024
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
57490
+ if (maxBodyLength > -1 && data.length > maxBodyLength) {
56025
57491
  return reject(
56026
57492
  new AxiosError_default(
56027
57493
  "Request body larger than maxBodyLength limit",
@@ -56065,11 +57531,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56065
57531
  let auth = void 0;
56066
57532
  const configAuth = own2("auth");
56067
57533
  if (configAuth) {
56068
- const username = configAuth.username || "";
56069
- const password = configAuth.password || "";
57534
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
57535
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
56070
57536
  auth = username + ":" + password;
56071
57537
  }
56072
- if (!auth && parsed.username) {
57538
+ if (!auth && (parsed.username || parsed.password)) {
56073
57539
  const urlUsername = decodeURIComponentSafe(parsed.username);
56074
57540
  const urlPassword = decodeURIComponentSafe(parsed.password);
56075
57541
  auth = urlUsername + ":" + urlPassword;
@@ -56079,26 +57545,26 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56079
57545
  try {
56080
57546
  path3 = buildURL(
56081
57547
  parsed.pathname + parsed.search,
56082
- config.params,
56083
- config.paramsSerializer
57548
+ own2("params"),
57549
+ own2("paramsSerializer")
56084
57550
  ).replace(/^\?/, "");
56085
57551
  } catch (err) {
56086
57552
  const customErr = new Error(err.message);
56087
57553
  customErr.config = config;
56088
- customErr.url = config.url;
57554
+ customErr.url = own2("url");
56089
57555
  customErr.exists = true;
56090
57556
  return reject(customErr);
56091
57557
  }
56092
57558
  headers.set(
56093
57559
  "Accept-Encoding",
56094
- "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
57560
+ utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
56095
57561
  false
56096
57562
  );
56097
57563
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
56098
57564
  path: path3,
56099
57565
  method,
56100
- headers: headers.toJSON(),
56101
- agents: { http: config.httpAgent, https: config.httpsAgent },
57566
+ headers: toByteStringHeaderObject(headers),
57567
+ agents: { http: httpAgent, https: httpsAgent },
56102
57568
  auth,
56103
57569
  protocol,
56104
57570
  family,
@@ -56107,64 +57573,118 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56107
57573
  http2Options
56108
57574
  });
56109
57575
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
56110
- if (config.socketPath) {
56111
- if (typeof config.socketPath !== "string") {
57576
+ const socketPath = own2("socketPath");
57577
+ if (socketPath) {
57578
+ if (typeof socketPath !== "string") {
56112
57579
  return reject(
56113
57580
  new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
56114
57581
  );
56115
57582
  }
56116
- if (config.allowedSocketPaths != null) {
56117
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
56118
- const resolvedSocket = (0, import_path4.resolve)(config.socketPath);
57583
+ const allowedSocketPaths = own2("allowedSocketPaths");
57584
+ if (allowedSocketPaths != null) {
57585
+ const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
57586
+ const resolvedSocket = (0, import_path4.resolve)(socketPath);
56119
57587
  const isAllowed = allowed.some(
56120
57588
  (entry) => typeof entry === "string" && (0, import_path4.resolve)(entry) === resolvedSocket
56121
57589
  );
56122
57590
  if (!isAllowed) {
56123
57591
  return reject(
56124
57592
  new AxiosError_default(
56125
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
57593
+ `socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
56126
57594
  AxiosError_default.ERR_BAD_OPTION_VALUE,
56127
57595
  config
56128
57596
  )
56129
57597
  );
56130
57598
  }
56131
57599
  }
56132
- options.socketPath = config.socketPath;
57600
+ options.socketPath = socketPath;
56133
57601
  } else {
56134
57602
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
56135
57603
  options.port = parsed.port;
56136
57604
  setProxy(
56137
57605
  options,
56138
- config.proxy,
56139
- protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
57606
+ own2("proxy"),
57607
+ protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
57608
+ false,
57609
+ httpsAgent
56140
57610
  );
56141
57611
  }
56142
57612
  let transport;
56143
57613
  let isNativeTransport = false;
57614
+ let transportEnforcesMaxBodyLength = false;
56144
57615
  const isHttpsRequest = isHttps.test(options.protocol);
56145
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
57616
+ if (options.agent == null) {
57617
+ options.agent = isHttpsRequest ? httpsAgent : httpAgent;
57618
+ }
56146
57619
  if (isHttp2) {
56147
57620
  transport = http2Transport;
56148
57621
  } else {
56149
57622
  const configTransport = own2("transport");
56150
57623
  if (configTransport) {
56151
57624
  transport = configTransport;
56152
- } else if (config.maxRedirects === 0) {
57625
+ } else if (maxRedirects === 0) {
56153
57626
  transport = isHttpsRequest ? import_https.default : import_http.default;
56154
57627
  isNativeTransport = true;
56155
57628
  } else {
56156
- if (config.maxRedirects) {
56157
- options.maxRedirects = config.maxRedirects;
57629
+ transportEnforcesMaxBodyLength = true;
57630
+ options.sensitiveHeaders = [];
57631
+ if (maxRedirects) {
57632
+ options.maxRedirects = maxRedirects;
56158
57633
  }
56159
57634
  const configBeforeRedirect = own2("beforeRedirect");
56160
57635
  if (configBeforeRedirect) {
56161
57636
  options.beforeRedirects.config = configBeforeRedirect;
56162
57637
  }
57638
+ if (auth) {
57639
+ const requestOrigin = parsed.origin;
57640
+ const authToRestore = auth;
57641
+ options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
57642
+ try {
57643
+ if (new URL(redirectOptions.href).origin === requestOrigin) {
57644
+ redirectOptions.auth = authToRestore;
57645
+ }
57646
+ } catch (e) {
57647
+ }
57648
+ };
57649
+ }
57650
+ const sensitiveHeaders = own2("sensitiveHeaders");
57651
+ if (sensitiveHeaders != null) {
57652
+ if (!utils_default.isArray(sensitiveHeaders)) {
57653
+ return reject(
57654
+ new AxiosError_default(
57655
+ "sensitiveHeaders must be an array of strings",
57656
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
57657
+ config
57658
+ )
57659
+ );
57660
+ }
57661
+ const sensitiveSet = /* @__PURE__ */ new Set();
57662
+ for (const header of sensitiveHeaders) {
57663
+ if (!utils_default.isString(header)) {
57664
+ return reject(
57665
+ new AxiosError_default(
57666
+ "sensitiveHeaders must be an array of strings",
57667
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
57668
+ config
57669
+ )
57670
+ );
57671
+ }
57672
+ sensitiveSet.add(header.toLowerCase());
57673
+ }
57674
+ if (sensitiveSet.size) {
57675
+ options.sensitiveHeaders = Array.from(sensitiveSet);
57676
+ options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
57677
+ if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
57678
+ stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
57679
+ }
57680
+ };
57681
+ }
57682
+ }
56163
57683
  transport = isHttpsRequest ? httpsFollow : httpFollow;
56164
57684
  }
56165
57685
  }
56166
- if (config.maxBodyLength > -1) {
56167
- options.maxBodyLength = config.maxBodyLength;
57686
+ if (maxBodyLength > -1) {
57687
+ options.maxBodyLength = maxBodyLength;
56168
57688
  } else {
56169
57689
  options.maxBodyLength = Infinity;
56170
57690
  }
@@ -56192,7 +57712,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56192
57712
  }
56193
57713
  let responseStream = res;
56194
57714
  const lastRequest = res.req || req;
56195
- if (config.decompress !== false && res.headers["content-encoding"]) {
57715
+ if (decompress !== false && res.headers["content-encoding"]) {
56196
57716
  if (method === "HEAD" || res.statusCode === 204) {
56197
57717
  delete res.headers["content-encoding"];
56198
57718
  }
@@ -56215,6 +57735,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56215
57735
  streams.push(import_zlib2.default.createBrotliDecompress(brotliOptions));
56216
57736
  delete res.headers["content-encoding"];
56217
57737
  }
57738
+ break;
57739
+ case "zstd":
57740
+ if (isZstdSupported) {
57741
+ streams.push(import_zlib2.default.createZstdDecompress(zstdOptions));
57742
+ delete res.headers["content-encoding"];
57743
+ }
57744
+ break;
56218
57745
  }
56219
57746
  }
56220
57747
  responseStream = streams.length > 1 ? import_stream4.default.pipeline(streams, utils_default.noop) : streams[0];
@@ -56226,8 +57753,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56226
57753
  request: lastRequest
56227
57754
  };
56228
57755
  if (responseType === "stream") {
56229
- if (config.maxContentLength > -1) {
56230
- const limit = config.maxContentLength;
57756
+ if (maxContentLength > -1) {
57757
+ const limit = maxContentLength;
56231
57758
  const source = responseStream;
56232
57759
  async function* enforceMaxContentLength() {
56233
57760
  let totalResponseBytes = 0;
@@ -56256,12 +57783,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56256
57783
  responseStream.on("data", function handleStreamData(chunk) {
56257
57784
  responseBuffer.push(chunk);
56258
57785
  totalResponseBytes += chunk.length;
56259
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
57786
+ if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
56260
57787
  rejected = true;
56261
57788
  responseStream.destroy();
56262
57789
  abort(
56263
57790
  new AxiosError_default(
56264
- "maxContentLength size of " + config.maxContentLength + " exceeded",
57791
+ "maxContentLength size of " + maxContentLength + " exceeded",
56265
57792
  AxiosError_default.ERR_BAD_RESPONSE,
56266
57793
  config,
56267
57794
  lastRequest
@@ -56344,8 +57871,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56344
57871
  }
56345
57872
  boundSockets.clear();
56346
57873
  });
56347
- if (config.timeout) {
56348
- const timeout2 = parseInt(config.timeout, 10);
57874
+ if (own2("timeout")) {
57875
+ const timeout2 = parseInt(own2("timeout"), 10);
56349
57876
  if (Number.isNaN(timeout2)) {
56350
57877
  abort(
56351
57878
  new AxiosError_default(
@@ -56384,8 +57911,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
56384
57911
  }
56385
57912
  });
56386
57913
  let uploadStream = data;
56387
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
56388
- const limit = config.maxBodyLength;
57914
+ if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
57915
+ const limit = maxBodyLength;
56389
57916
  let bytesSent = 0;
56390
57917
  uploadStream = import_stream4.default.pipeline(
56391
57918
  [
@@ -56526,6 +58053,23 @@ function mergeConfig(config1, config2) {
56526
58053
  return getMergedValue(void 0, a);
56527
58054
  }
56528
58055
  }
58056
+ function getMergedTransitionalOption(prop) {
58057
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
58058
+ if (!utils_default.isUndefined(transitional2)) {
58059
+ if (utils_default.isPlainObject(transitional2)) {
58060
+ if (utils_default.hasOwnProp(transitional2, prop)) {
58061
+ return transitional2[prop];
58062
+ }
58063
+ } else {
58064
+ return void 0;
58065
+ }
58066
+ }
58067
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
58068
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
58069
+ return transitional1[prop];
58070
+ }
58071
+ return void 0;
58072
+ }
56529
58073
  function mergeDirectKeys(a, b2, prop) {
56530
58074
  if (utils_default.hasOwnProp(config2, prop)) {
56531
58075
  return getMergedValue(a, b2);
@@ -56573,6 +58117,13 @@ function mergeConfig(config1, config2) {
56573
58117
  const configValue = merge2(a, b2, prop);
56574
58118
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
56575
58119
  });
58120
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
58121
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
58122
+ config.validateStatus = getMergedValue(void 0, config1.validateStatus);
58123
+ } else {
58124
+ delete config.validateStatus;
58125
+ }
58126
+ }
56576
58127
  return config;
56577
58128
  }
56578
58129
 
@@ -56593,7 +58144,7 @@ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
56593
58144
  /%([0-9A-F]{2})/gi,
56594
58145
  (_3, hex) => String.fromCharCode(parseInt(hex, 16))
56595
58146
  );
56596
- var resolveConfig_default = (config) => {
58147
+ function resolveConfig(config) {
56597
58148
  const newConfig = mergeConfig({}, config);
56598
58149
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
56599
58150
  const data = own2("data");
@@ -56607,18 +58158,20 @@ var resolveConfig_default = (config) => {
56607
58158
  const url2 = own2("url");
56608
58159
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
56609
58160
  newConfig.url = buildURL(
56610
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
56611
- config.params,
56612
- config.paramsSerializer
58161
+ buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
58162
+ own2("params"),
58163
+ own2("paramsSerializer")
56613
58164
  );
56614
58165
  if (auth) {
58166
+ const username = utils_default.getSafeProp(auth, "username") || "";
58167
+ const password = utils_default.getSafeProp(auth, "password") || "";
56615
58168
  headers.set(
56616
58169
  "Authorization",
56617
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
58170
+ "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
56618
58171
  );
56619
58172
  }
56620
58173
  if (utils_default.isFormData(data)) {
56621
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
58174
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
56622
58175
  headers.setContentType(void 0);
56623
58176
  } else if (utils_default.isFunction(data.getHeaders)) {
56624
58177
  setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
@@ -56637,7 +58190,8 @@ var resolveConfig_default = (config) => {
56637
58190
  }
56638
58191
  }
56639
58192
  return newConfig;
56640
- };
58193
+ }
58194
+ var resolveConfig_default = resolveConfig;
56641
58195
 
56642
58196
  // ../../../node_modules/axios/lib/adapters/xhr.js
56643
58197
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
@@ -56736,7 +58290,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
56736
58290
  };
56737
58291
  requestData === void 0 && requestHeaders.setContentType(null);
56738
58292
  if ("setRequestHeader" in request) {
56739
- utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
58293
+ utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
56740
58294
  request.setRequestHeader(key, val);
56741
58295
  });
56742
58296
  }
@@ -56787,39 +58341,41 @@ var xhr_default = isXHRAdapterSupported && function(config) {
56787
58341
 
56788
58342
  // ../../../node_modules/axios/lib/helpers/composeSignals.js
56789
58343
  var composeSignals = (signals3, timeout2) => {
56790
- const { length } = signals3 = signals3 ? signals3.filter(Boolean) : [];
56791
- if (timeout2 || length) {
56792
- let controller = new AbortController();
56793
- let aborted;
56794
- const onabort = function(reason) {
56795
- if (!aborted) {
56796
- aborted = true;
56797
- unsubscribe();
56798
- const err = reason instanceof Error ? reason : this.reason;
56799
- controller.abort(
56800
- err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
56801
- );
56802
- }
56803
- };
56804
- let timer = timeout2 && setTimeout(() => {
56805
- timer = null;
56806
- onabort(new AxiosError_default(`timeout of ${timeout2}ms exceeded`, AxiosError_default.ETIMEDOUT));
56807
- }, timeout2);
56808
- const unsubscribe = () => {
56809
- if (signals3) {
56810
- timer && clearTimeout(timer);
56811
- timer = null;
56812
- signals3.forEach((signal2) => {
56813
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
56814
- });
56815
- signals3 = null;
56816
- }
56817
- };
56818
- signals3.forEach((signal2) => signal2.addEventListener("abort", onabort));
56819
- const { signal } = controller;
56820
- signal.unsubscribe = () => utils_default.asap(unsubscribe);
56821
- return signal;
58344
+ signals3 = signals3 ? signals3.filter(Boolean) : [];
58345
+ if (!timeout2 && !signals3.length) {
58346
+ return;
56822
58347
  }
58348
+ const controller = new AbortController();
58349
+ let aborted = false;
58350
+ const onabort = function(reason) {
58351
+ if (!aborted) {
58352
+ aborted = true;
58353
+ unsubscribe();
58354
+ const err = reason instanceof Error ? reason : this.reason;
58355
+ controller.abort(
58356
+ err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
58357
+ );
58358
+ }
58359
+ };
58360
+ let timer = timeout2 && setTimeout(() => {
58361
+ timer = null;
58362
+ onabort(new AxiosError_default(`timeout of ${timeout2}ms exceeded`, AxiosError_default.ETIMEDOUT));
58363
+ }, timeout2);
58364
+ const unsubscribe = () => {
58365
+ if (!signals3) {
58366
+ return;
58367
+ }
58368
+ timer && clearTimeout(timer);
58369
+ timer = null;
58370
+ signals3.forEach((signal2) => {
58371
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
58372
+ });
58373
+ signals3 = null;
58374
+ };
58375
+ signals3.forEach((signal2) => signal2.addEventListener("abort", onabort));
58376
+ const { signal } = controller;
58377
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
58378
+ return signal;
56823
58379
  };
56824
58380
  var composeSignals_default = composeSignals;
56825
58381
 
@@ -56906,6 +58462,20 @@ var trackStream = (stream5, chunkSize, onProgress, onFinish) => {
56906
58462
  // ../../../node_modules/axios/lib/adapters/fetch.js
56907
58463
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
56908
58464
  var { isFunction: isFunction2 } = utils_default;
58465
+ var encodeUTF82 = (str) => encodeURIComponent(str).replace(
58466
+ /%([0-9A-F]{2})/gi,
58467
+ (_3, hex) => String.fromCharCode(parseInt(hex, 16))
58468
+ );
58469
+ var decodeURIComponentSafe2 = (value) => {
58470
+ if (!utils_default.isString(value)) {
58471
+ return value;
58472
+ }
58473
+ try {
58474
+ return decodeURIComponent(value);
58475
+ } catch (error) {
58476
+ return value;
58477
+ }
58478
+ };
56909
58479
  var test = (fn2, ...args) => {
56910
58480
  try {
56911
58481
  return !!fn2(...args);
@@ -56913,8 +58483,16 @@ var test = (fn2, ...args) => {
56913
58483
  return false;
56914
58484
  }
56915
58485
  };
58486
+ var maybeWithAuthCredentials = (url2) => {
58487
+ const protocolIndex = url2.indexOf("://");
58488
+ let urlToCheck = url2;
58489
+ if (protocolIndex !== -1) {
58490
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
58491
+ }
58492
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
58493
+ };
56916
58494
  var factory = (env4) => {
56917
- const globalObject = utils_default.global ?? globalThis;
58495
+ const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
56918
58496
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
56919
58497
  env4 = utils_default.merge.call(
56920
58498
  {
@@ -57017,6 +58595,7 @@ var factory = (env4) => {
57017
58595
  } = resolveConfig_default(config);
57018
58596
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
57019
58597
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
58598
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
57020
58599
  let _fetch = envFetch || fetch;
57021
58600
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
57022
58601
  let composedSignal = composeSignals_default(
@@ -57028,7 +58607,47 @@ var factory = (env4) => {
57028
58607
  composedSignal.unsubscribe();
57029
58608
  });
57030
58609
  let requestContentLength;
58610
+ let pendingBodyError = null;
58611
+ const maxBodyLengthError = () => new AxiosError_default(
58612
+ "Request body larger than maxBodyLength limit",
58613
+ AxiosError_default.ERR_BAD_REQUEST,
58614
+ config,
58615
+ request
58616
+ );
57031
58617
  try {
58618
+ let auth = void 0;
58619
+ const configAuth = own2("auth");
58620
+ if (configAuth) {
58621
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
58622
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
58623
+ auth = {
58624
+ username,
58625
+ password
58626
+ };
58627
+ }
58628
+ if (maybeWithAuthCredentials(url2)) {
58629
+ const parsedURL = new URL(url2, platform_default.origin);
58630
+ if (!auth && (parsedURL.username || parsedURL.password)) {
58631
+ const urlUsername = decodeURIComponentSafe2(parsedURL.username);
58632
+ const urlPassword = decodeURIComponentSafe2(parsedURL.password);
58633
+ auth = {
58634
+ username: urlUsername,
58635
+ password: urlPassword
58636
+ };
58637
+ }
58638
+ if (parsedURL.username || parsedURL.password) {
58639
+ parsedURL.username = "";
58640
+ parsedURL.password = "";
58641
+ url2 = parsedURL.href;
58642
+ }
58643
+ }
58644
+ if (auth) {
58645
+ headers.delete("authorization");
58646
+ headers.set(
58647
+ "Authorization",
58648
+ "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
58649
+ );
58650
+ }
57032
58651
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
57033
58652
  const estimated = estimateDataURLDecodedBytes(url2);
57034
58653
  if (estimated > maxContentLength) {
@@ -57041,33 +58660,55 @@ var factory = (env4) => {
57041
58660
  }
57042
58661
  }
57043
58662
  if (hasMaxBodyLength && method !== "get" && method !== "head") {
57044
- const outboundLength = await resolveBodyLength(headers, data);
57045
- if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
57046
- throw new AxiosError_default(
57047
- "Request body larger than maxBodyLength limit",
57048
- AxiosError_default.ERR_BAD_REQUEST,
57049
- config,
57050
- request
57051
- );
58663
+ const outboundLength = await getBodyLength(data);
58664
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
58665
+ requestContentLength = outboundLength;
58666
+ if (outboundLength > maxBodyLength) {
58667
+ throw maxBodyLengthError();
58668
+ }
57052
58669
  }
57053
58670
  }
57054
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
57055
- let _request = new Request(url2, {
57056
- method: "POST",
57057
- body: data,
57058
- duplex: "half"
57059
- });
57060
- let contentTypeHeader;
57061
- if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
57062
- headers.setContentType(contentTypeHeader);
57063
- }
57064
- if (_request.body) {
57065
- const [onProgress, flush] = progressEventDecorator(
57066
- requestContentLength,
57067
- progressEventReducer(asyncDecorator(onUploadProgress))
57068
- );
57069
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
58671
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
58672
+ const trackRequestStream = (stream5, onProgress, flush) => trackStream(
58673
+ stream5,
58674
+ DEFAULT_CHUNK_SIZE,
58675
+ (loadedBytes) => {
58676
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
58677
+ throw pendingBodyError = maxBodyLengthError();
58678
+ }
58679
+ onProgress && onProgress(loadedBytes);
58680
+ },
58681
+ flush
58682
+ );
58683
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
58684
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
58685
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
58686
+ let _request = new Request(url2, {
58687
+ method: "POST",
58688
+ body: data,
58689
+ duplex: "half"
58690
+ });
58691
+ let contentTypeHeader;
58692
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
58693
+ headers.setContentType(contentTypeHeader);
58694
+ }
58695
+ if (_request.body) {
58696
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(
58697
+ requestContentLength,
58698
+ progressEventReducer(asyncDecorator(onUploadProgress))
58699
+ ) || [];
58700
+ data = trackRequestStream(_request.body, onProgress, flush);
58701
+ }
57070
58702
  }
58703
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
58704
+ data = trackRequestStream(data);
58705
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
58706
+ throw new AxiosError_default(
58707
+ "Stream request bodies are not supported by the current fetch implementation",
58708
+ AxiosError_default.ERR_NOT_SUPPORT,
58709
+ config,
58710
+ request
58711
+ );
57071
58712
  }
57072
58713
  if (!utils_default.isString(withCredentials)) {
57073
58714
  withCredentials = withCredentials ? "include" : "omit";
@@ -57084,15 +58725,16 @@ var factory = (env4) => {
57084
58725
  ...fetchOptions,
57085
58726
  signal: composedSignal,
57086
58727
  method: method.toUpperCase(),
57087
- headers: headers.normalize().toJSON(),
58728
+ headers: toByteStringHeaderObject(headers.normalize()),
57088
58729
  body: data,
57089
58730
  duplex: "half",
57090
58731
  credentials: isCredentialsSupported ? withCredentials : void 0
57091
58732
  };
57092
58733
  request = isRequestSupported && new Request(url2, resolvedOptions);
57093
58734
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
58735
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
57094
58736
  if (hasMaxContentLength) {
57095
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
58737
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
57096
58738
  if (declaredLength != null && declaredLength > maxContentLength) {
57097
58739
  throw new AxiosError_default(
57098
58740
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -57108,7 +58750,7 @@ var factory = (env4) => {
57108
58750
  ["status", "statusText", "headers"].forEach((prop) => {
57109
58751
  options[prop] = response[prop];
57110
58752
  });
57111
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
58753
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
57112
58754
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
57113
58755
  responseContentLength,
57114
58756
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
@@ -57181,6 +58823,14 @@ var factory = (env4) => {
57181
58823
  err !== canceledError && (canceledError.cause = err);
57182
58824
  throw canceledError;
57183
58825
  }
58826
+ if (pendingBodyError) {
58827
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
58828
+ throw pendingBodyError;
58829
+ }
58830
+ if (err instanceof AxiosError_default) {
58831
+ request && !err.request && (err.request = request);
58832
+ throw err;
58833
+ }
57184
58834
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
57185
58835
  throw Object.assign(
57186
58836
  new AxiosError_default(
@@ -57463,7 +59113,9 @@ var Axios = class {
57463
59113
  silentJSONParsing: validators2.transitional(validators2.boolean),
57464
59114
  forcedJSONParsing: validators2.transitional(validators2.boolean),
57465
59115
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
57466
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
59116
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
59117
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
59118
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
57467
59119
  },
57468
59120
  false
57469
59121
  );
@@ -57563,7 +59215,7 @@ var Axios = class {
57563
59215
  }
57564
59216
  getUri(config) {
57565
59217
  config = mergeConfig(this.defaults, config);
57566
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
59218
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
57567
59219
  return buildURL(fullPath, config.params, config.paramsSerializer);
57568
59220
  }
57569
59221
  };
@@ -57573,7 +59225,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
57573
59225
  mergeConfig(config || {}, {
57574
59226
  method,
57575
59227
  url: url2,
57576
- data: (config || {}).data
59228
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
57577
59229
  })
57578
59230
  );
57579
59231
  };
@@ -69622,12 +71274,12 @@ var optArgSync = (opt = {}) => optArgT(opt);
69622
71274
 
69623
71275
  // ../../../node_modules/rimraf/dist/esm/path-arg.js
69624
71276
  var import_path5 = require("path");
69625
- var import_util3 = require("util");
71277
+ var import_util4 = require("util");
69626
71278
  var pathArg = (path3, opt = {}) => {
69627
71279
  const type = typeof path3;
69628
71280
  if (type !== "string") {
69629
71281
  const ctor = path3 && type === "object" && path3.constructor;
69630
- const received = ctor && ctor.name ? `an instance of ${ctor.name}` : type === "object" ? (0, import_util3.inspect)(path3) : `type ${type} ${path3}`;
71282
+ const received = ctor && ctor.name ? `an instance of ${ctor.name}` : type === "object" ? (0, import_util4.inspect)(path3) : `type ${type} ${path3}`;
69631
71283
  const msg = `The "path" argument must be of type string. Received ${received}`;
69632
71284
  throw Object.assign(new TypeError(msg), {
69633
71285
  path: path3,