@modern-js/upgrade 2.71.0 → 2.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1866 -702
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -7220,7 +7220,7 @@ var require_lodash = __commonJS({
7220
7220
  copyObject(source, keys(source), object, customizer);
7221
7221
  });
7222
7222
  var at2 = flatRest(baseAt);
7223
- function create(prototype2, properties) {
7223
+ function create2(prototype2, properties) {
7224
7224
  var result2 = baseCreate(prototype2);
7225
7225
  return properties == null ? result2 : baseAssign(result2, properties);
7226
7226
  }
@@ -7737,7 +7737,7 @@ var require_lodash = __commonJS({
7737
7737
  }
7738
7738
  return result2 + omission;
7739
7739
  }
7740
- function unescape2(string) {
7740
+ function unescape(string) {
7741
7741
  string = toString3(string);
7742
7742
  return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
7743
7743
  }
@@ -7972,7 +7972,7 @@ var require_lodash = __commonJS({
7972
7972
  lodash.conforms = conforms;
7973
7973
  lodash.constant = constant;
7974
7974
  lodash.countBy = countBy;
7975
- lodash.create = create;
7975
+ lodash.create = create2;
7976
7976
  lodash.curry = curry;
7977
7977
  lodash.curryRight = curryRight;
7978
7978
  lodash.debounce = debounce;
@@ -8251,7 +8251,7 @@ var require_lodash = __commonJS({
8251
8251
  lodash.trimEnd = trimEnd;
8252
8252
  lodash.trimStart = trimStart;
8253
8253
  lodash.truncate = truncate;
8254
- lodash.unescape = unescape2;
8254
+ lodash.unescape = unescape;
8255
8255
  lodash.uniqueId = uniqueId;
8256
8256
  lodash.upperCase = upperCase;
8257
8257
  lodash.upperFirst = upperFirst;
@@ -9746,7 +9746,7 @@ var require_templates = __commonJS({
9746
9746
  ["e", "\x1B"],
9747
9747
  ["a", "\x07"]
9748
9748
  ]);
9749
- function unescape2(c) {
9749
+ function unescape(c) {
9750
9750
  const u2 = c[0] === "u";
9751
9751
  const bracket = c[1] === "{";
9752
9752
  if (u2 && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
@@ -9766,7 +9766,7 @@ var require_templates = __commonJS({
9766
9766
  if (!Number.isNaN(number)) {
9767
9767
  results.push(number);
9768
9768
  } else if (matches = chunk.match(STRING_REGEX)) {
9769
- results.push(matches[2].replace(ESCAPE_REGEX, (m2, escape, character) => escape ? unescape2(escape) : character));
9769
+ results.push(matches[2].replace(ESCAPE_REGEX, (m2, escape, character) => escape ? unescape(escape) : character));
9770
9770
  } else {
9771
9771
  throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
9772
9772
  }
@@ -9813,7 +9813,7 @@ var require_templates = __commonJS({
9813
9813
  let chunk = [];
9814
9814
  temporary.replace(TEMPLATE_REGEX, (m2, escapeCharacter, inverse, style, close, character) => {
9815
9815
  if (escapeCharacter) {
9816
- chunk.push(unescape2(escapeCharacter));
9816
+ chunk.push(unescape(escapeCharacter));
9817
9817
  } else if (style) {
9818
9818
  const string = chunk.join("");
9819
9819
  chunk = [];
@@ -10143,9 +10143,9 @@ var require_ms = __commonJS({
10143
10143
  }
10144
10144
  });
10145
10145
 
10146
- // ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js
10146
+ // ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js
10147
10147
  var require_common = __commonJS({
10148
- "../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
10148
+ "../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
10149
10149
  "use strict";
10150
10150
  function setup(env) {
10151
10151
  createDebug.debug = createDebug;
@@ -10307,9 +10307,9 @@ var require_common = __commonJS({
10307
10307
  }
10308
10308
  });
10309
10309
 
10310
- // ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js
10310
+ // ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js
10311
10311
  var require_browser = __commonJS({
10312
- "../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
10312
+ "../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
10313
10313
  "use strict";
10314
10314
  exports.formatArgs = formatArgs;
10315
10315
  exports.save = save;
@@ -10478,9 +10478,118 @@ var require_browser = __commonJS({
10478
10478
  }
10479
10479
  });
10480
10480
 
10481
- // ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js
10481
+ // ../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
10482
+ var require_has_flag2 = __commonJS({
10483
+ "../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
10484
+ "use strict";
10485
+ module2.exports = (flag, argv) => {
10486
+ argv = argv || process.argv;
10487
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
10488
+ const pos = argv.indexOf(prefix + flag);
10489
+ const terminatorPos = argv.indexOf("--");
10490
+ return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
10491
+ };
10492
+ }
10493
+ });
10494
+
10495
+ // ../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
10496
+ var require_supports_color2 = __commonJS({
10497
+ "../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
10498
+ "use strict";
10499
+ var os3 = require("os");
10500
+ var hasFlag = require_has_flag2();
10501
+ var env = process.env;
10502
+ var forceColor;
10503
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
10504
+ forceColor = false;
10505
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
10506
+ forceColor = true;
10507
+ }
10508
+ if ("FORCE_COLOR" in env) {
10509
+ forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
10510
+ }
10511
+ function translateLevel(level) {
10512
+ if (level === 0) {
10513
+ return false;
10514
+ }
10515
+ return {
10516
+ level,
10517
+ hasBasic: true,
10518
+ has256: level >= 2,
10519
+ has16m: level >= 3
10520
+ };
10521
+ }
10522
+ function supportsColor(stream4) {
10523
+ if (forceColor === false) {
10524
+ return 0;
10525
+ }
10526
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
10527
+ return 3;
10528
+ }
10529
+ if (hasFlag("color=256")) {
10530
+ return 2;
10531
+ }
10532
+ if (stream4 && !stream4.isTTY && forceColor !== true) {
10533
+ return 0;
10534
+ }
10535
+ const min = forceColor ? 1 : 0;
10536
+ if (process.platform === "win32") {
10537
+ const osRelease = os3.release().split(".");
10538
+ if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
10539
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
10540
+ }
10541
+ return 1;
10542
+ }
10543
+ if ("CI" in env) {
10544
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
10545
+ return 1;
10546
+ }
10547
+ return min;
10548
+ }
10549
+ if ("TEAMCITY_VERSION" in env) {
10550
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
10551
+ }
10552
+ if (env.COLORTERM === "truecolor") {
10553
+ return 3;
10554
+ }
10555
+ if ("TERM_PROGRAM" in env) {
10556
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
10557
+ switch (env.TERM_PROGRAM) {
10558
+ case "iTerm.app":
10559
+ return version >= 3 ? 3 : 2;
10560
+ case "Apple_Terminal":
10561
+ return 2;
10562
+ }
10563
+ }
10564
+ if (/-256(color)?$/i.test(env.TERM)) {
10565
+ return 2;
10566
+ }
10567
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
10568
+ return 1;
10569
+ }
10570
+ if ("COLORTERM" in env) {
10571
+ return 1;
10572
+ }
10573
+ if (env.TERM === "dumb") {
10574
+ return min;
10575
+ }
10576
+ return min;
10577
+ }
10578
+ function getSupportLevel(stream4) {
10579
+ const level = supportsColor(stream4);
10580
+ return translateLevel(level);
10581
+ }
10582
+ module2.exports = {
10583
+ supportsColor: getSupportLevel,
10584
+ stdout: getSupportLevel(process.stdout),
10585
+ stderr: getSupportLevel(process.stderr)
10586
+ };
10587
+ }
10588
+ });
10589
+
10590
+ // ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js
10482
10591
  var require_node = __commonJS({
10483
- "../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
10592
+ "../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
10484
10593
  "use strict";
10485
10594
  var tty = require("tty");
10486
10595
  var util3 = require("util");
@@ -10497,7 +10606,7 @@ var require_node = __commonJS({
10497
10606
  );
10498
10607
  exports.colors = [6, 2, 3, 4, 5, 1];
10499
10608
  try {
10500
- const supportsColor = require_supports_color();
10609
+ const supportsColor = require_supports_color2();
10501
10610
  if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
10502
10611
  exports.colors = [
10503
10612
  20,
@@ -10653,9 +10762,9 @@ var require_node = __commonJS({
10653
10762
  }
10654
10763
  });
10655
10764
 
10656
- // ../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js
10765
+ // ../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js
10657
10766
  var require_src = __commonJS({
10658
- "../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
10767
+ "../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
10659
10768
  "use strict";
10660
10769
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
10661
10770
  module2.exports = require_browser();
@@ -20001,19 +20110,19 @@ var init_semver = __esm({
20001
20110
  }
20002
20111
  });
20003
20112
 
20004
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/bind.js
20113
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/bind.js
20005
20114
  function bind(fn2, thisArg) {
20006
20115
  return function wrap() {
20007
20116
  return fn2.apply(thisArg, arguments);
20008
20117
  };
20009
20118
  }
20010
20119
  var init_bind = __esm({
20011
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/bind.js"() {
20120
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/bind.js"() {
20012
20121
  "use strict";
20013
20122
  }
20014
20123
  });
20015
20124
 
20016
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/utils.js
20125
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/utils.js
20017
20126
  function isBuffer(val) {
20018
20127
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
20019
20128
  }
@@ -20079,7 +20188,7 @@ function findKey(obj, key) {
20079
20188
  }
20080
20189
  return null;
20081
20190
  }
20082
- function merge() {
20191
+ function merge(...objs) {
20083
20192
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
20084
20193
  const result = {};
20085
20194
  const assignValue = (val, key) => {
@@ -20087,8 +20196,9 @@ function merge() {
20087
20196
  return;
20088
20197
  }
20089
20198
  const targetKey = caseless && findKey(result, key) || key;
20090
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
20091
- result[targetKey] = merge(result[targetKey], val);
20199
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
20200
+ if (isPlainObject(existing) && isPlainObject(val)) {
20201
+ result[targetKey] = merge(existing, val);
20092
20202
  } else if (isPlainObject(val)) {
20093
20203
  result[targetKey] = merge({}, val);
20094
20204
  } else if (isArray(val)) {
@@ -20097,8 +20207,8 @@ function merge() {
20097
20207
  result[targetKey] = val;
20098
20208
  }
20099
20209
  };
20100
- for (let i = 0, l = arguments.length; i < l; i++) {
20101
- arguments[i] && forEach(arguments[i], assignValue);
20210
+ for (let i = 0, l = objs.length; i < l; i++) {
20211
+ objs[i] && forEach(objs[i], assignValue);
20102
20212
  }
20103
20213
  return result;
20104
20214
  }
@@ -20107,7 +20217,7 @@ function isSpecCompliantForm(thing) {
20107
20217
  }
20108
20218
  var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest, typeOfTest, isArray, isUndefined, isArrayBuffer, isString2, isFunction, isNumber, isObject2, isBoolean, isPlainObject, isEmptyObject, isDate, isFile, isReactNativeBlob, isReactNative, isBlob, isFileList, isStream, G, FormDataCtor, isFormData, isURLSearchParams, isReadableStream, isRequest, isResponse, isHeaders, trim, _global, isContextDefined, extend, stripBOM, inherits, toFlatObject, endsWith, toArray, isTypedArray, forEachEntry, matchAll, isHTMLForm, toCamelCase, hasOwnProperty, isRegExp, reduceDescriptors, freezeMethods, toObjectSet, noop, toFiniteNumber, toJSONObject, isAsyncFn, isThenable, _setImmediate, asap, isIterable, utils_default;
20109
20219
  var init_utils = __esm({
20110
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/utils.js"() {
20220
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/utils.js"() {
20111
20221
  "use strict";
20112
20222
  init_bind();
20113
20223
  ({ toString } = Object.prototype);
@@ -20159,9 +20269,18 @@ var init_utils = __esm({
20159
20269
  G = getGlobal();
20160
20270
  FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
20161
20271
  isFormData = (thing) => {
20162
- let kind;
20163
- return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
20164
- kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
20272
+ if (!thing)
20273
+ return false;
20274
+ if (FormDataCtor && thing instanceof FormDataCtor)
20275
+ return true;
20276
+ const proto = getPrototypeOf(thing);
20277
+ if (!proto || proto === Object.prototype)
20278
+ return false;
20279
+ if (!isFunction(thing.append))
20280
+ return false;
20281
+ const kind = kindOf(thing);
20282
+ return kind === "formdata" || // detect form-data instance
20283
+ kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
20165
20284
  };
20166
20285
  isURLSearchParams = kindOfTest("URLSearchParams");
20167
20286
  [isReadableStream, isRequest, isResponse, isHeaders] = [
@@ -20185,6 +20304,9 @@ var init_utils = __esm({
20185
20304
  (val, key) => {
20186
20305
  if (thisArg && isFunction(val)) {
20187
20306
  Object.defineProperty(a, key, {
20307
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
20308
+ // hijack defineProperty's accessor-vs-data resolution.
20309
+ __proto__: null,
20188
20310
  value: bind(val, thisArg),
20189
20311
  writable: true,
20190
20312
  enumerable: true,
@@ -20192,6 +20314,7 @@ var init_utils = __esm({
20192
20314
  });
20193
20315
  } else {
20194
20316
  Object.defineProperty(a, key, {
20317
+ __proto__: null,
20195
20318
  value: val,
20196
20319
  writable: true,
20197
20320
  enumerable: true,
@@ -20212,12 +20335,14 @@ var init_utils = __esm({
20212
20335
  inherits = (constructor, superConstructor, props, descriptors) => {
20213
20336
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
20214
20337
  Object.defineProperty(constructor.prototype, "constructor", {
20338
+ __proto__: null,
20215
20339
  value: constructor,
20216
20340
  writable: true,
20217
20341
  enumerable: false,
20218
20342
  configurable: true
20219
20343
  });
20220
20344
  Object.defineProperty(constructor, "super", {
20345
+ __proto__: null,
20221
20346
  value: superConstructor.prototype
20222
20347
  });
20223
20348
  props && Object.assign(constructor.prototype, props);
@@ -20310,7 +20435,7 @@ var init_utils = __esm({
20310
20435
  };
20311
20436
  freezeMethods = (obj) => {
20312
20437
  reduceDescriptors(obj, (descriptor, name) => {
20313
- if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
20438
+ if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
20314
20439
  return false;
20315
20440
  }
20316
20441
  const value = obj[name];
@@ -20344,29 +20469,29 @@ var init_utils = __esm({
20344
20469
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
20345
20470
  };
20346
20471
  toJSONObject = (obj) => {
20347
- const stack = new Array(10);
20348
- const visit = (source, i) => {
20472
+ const visited = /* @__PURE__ */ new WeakSet();
20473
+ const visit = (source) => {
20349
20474
  if (isObject2(source)) {
20350
- if (stack.indexOf(source) >= 0) {
20475
+ if (visited.has(source)) {
20351
20476
  return;
20352
20477
  }
20353
20478
  if (isBuffer(source)) {
20354
20479
  return source;
20355
20480
  }
20356
20481
  if (!("toJSON" in source)) {
20357
- stack[i] = source;
20482
+ visited.add(source);
20358
20483
  const target = isArray(source) ? [] : {};
20359
20484
  forEach(source, (value, key) => {
20360
- const reducedValue = visit(value, i + 1);
20485
+ const reducedValue = visit(value);
20361
20486
  !isUndefined(reducedValue) && (target[key] = reducedValue);
20362
20487
  });
20363
- stack[i] = void 0;
20488
+ visited.delete(source);
20364
20489
  return target;
20365
20490
  }
20366
20491
  }
20367
20492
  return source;
20368
20493
  };
20369
- return visit(obj, 0);
20494
+ return visit(obj);
20370
20495
  };
20371
20496
  isAsyncFn = kindOfTest("AsyncFunction");
20372
20497
  isThenable = (thing) => thing && (isObject2(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
@@ -20457,12 +20582,414 @@ var init_utils = __esm({
20457
20582
  }
20458
20583
  });
20459
20584
 
20460
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/AxiosError.js
20461
- var AxiosError, AxiosError_default;
20585
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/parseHeaders.js
20586
+ var ignoreDuplicateOf, parseHeaders_default;
20587
+ var init_parseHeaders = __esm({
20588
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/parseHeaders.js"() {
20589
+ "use strict";
20590
+ init_utils();
20591
+ ignoreDuplicateOf = utils_default.toObjectSet([
20592
+ "age",
20593
+ "authorization",
20594
+ "content-length",
20595
+ "content-type",
20596
+ "etag",
20597
+ "expires",
20598
+ "from",
20599
+ "host",
20600
+ "if-modified-since",
20601
+ "if-unmodified-since",
20602
+ "last-modified",
20603
+ "location",
20604
+ "max-forwards",
20605
+ "proxy-authorization",
20606
+ "referer",
20607
+ "retry-after",
20608
+ "user-agent"
20609
+ ]);
20610
+ parseHeaders_default = (rawHeaders) => {
20611
+ const parsed = {};
20612
+ let key;
20613
+ let val;
20614
+ let i;
20615
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
20616
+ i = line.indexOf(":");
20617
+ key = line.substring(0, i).trim().toLowerCase();
20618
+ val = line.substring(i + 1).trim();
20619
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
20620
+ return;
20621
+ }
20622
+ if (key === "set-cookie") {
20623
+ if (parsed[key]) {
20624
+ parsed[key].push(val);
20625
+ } else {
20626
+ parsed[key] = [val];
20627
+ }
20628
+ } else {
20629
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
20630
+ }
20631
+ });
20632
+ return parsed;
20633
+ };
20634
+ }
20635
+ });
20636
+
20637
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
20638
+ function trimSPorHTAB(str) {
20639
+ let start = 0;
20640
+ let end = str.length;
20641
+ while (start < end) {
20642
+ const code = str.charCodeAt(start);
20643
+ if (code !== 9 && code !== 32) {
20644
+ break;
20645
+ }
20646
+ start += 1;
20647
+ }
20648
+ while (end > start) {
20649
+ const code = str.charCodeAt(end - 1);
20650
+ if (code !== 9 && code !== 32) {
20651
+ break;
20652
+ }
20653
+ end -= 1;
20654
+ }
20655
+ return start === 0 && end === str.length ? str : str.slice(start, end);
20656
+ }
20657
+ function sanitizeValue(value, invalidChars) {
20658
+ if (utils_default.isArray(value)) {
20659
+ return value.map((item) => sanitizeValue(item, invalidChars));
20660
+ }
20661
+ return trimSPorHTAB(String(value).replace(invalidChars, ""));
20662
+ }
20663
+ function toByteStringHeaderObject(headers) {
20664
+ const byteStringHeaders = /* @__PURE__ */ Object.create(null);
20665
+ utils_default.forEach(headers.toJSON(), (value, header) => {
20666
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
20667
+ });
20668
+ return byteStringHeaders;
20669
+ }
20670
+ var INVALID_UNICODE_HEADER_VALUE_CHARS, INVALID_BYTE_STRING_HEADER_VALUE_CHARS, sanitizeHeaderValue, sanitizeByteStringHeaderValue;
20671
+ var init_sanitizeHeaderValue = __esm({
20672
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/sanitizeHeaderValue.js"() {
20673
+ "use strict";
20674
+ init_utils();
20675
+ INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
20676
+ INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
20677
+ sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
20678
+ sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
20679
+ }
20680
+ });
20681
+
20682
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/AxiosHeaders.js
20683
+ function normalizeHeader(header) {
20684
+ return header && String(header).trim().toLowerCase();
20685
+ }
20686
+ function normalizeValue(value) {
20687
+ if (value === false || value == null) {
20688
+ return value;
20689
+ }
20690
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
20691
+ }
20692
+ function parseTokens(str) {
20693
+ const tokens = /* @__PURE__ */ Object.create(null);
20694
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
20695
+ let match;
20696
+ while (match = tokensRE.exec(str)) {
20697
+ tokens[match[1]] = match[2];
20698
+ }
20699
+ return tokens;
20700
+ }
20701
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
20702
+ if (utils_default.isFunction(filter2)) {
20703
+ return filter2.call(this, value, header);
20704
+ }
20705
+ if (isHeaderNameFilter) {
20706
+ value = header;
20707
+ }
20708
+ if (!utils_default.isString(value))
20709
+ return;
20710
+ if (utils_default.isString(filter2)) {
20711
+ return value.indexOf(filter2) !== -1;
20712
+ }
20713
+ if (utils_default.isRegExp(filter2)) {
20714
+ return filter2.test(value);
20715
+ }
20716
+ }
20717
+ function formatHeader(header) {
20718
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
20719
+ return char.toUpperCase() + str;
20720
+ });
20721
+ }
20722
+ function buildAccessors(obj, header) {
20723
+ const accessorName = utils_default.toCamelCase(" " + header);
20724
+ ["get", "set", "has"].forEach((methodName) => {
20725
+ Object.defineProperty(obj, methodName + accessorName, {
20726
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
20727
+ // this data descriptor into an accessor descriptor on the way in.
20728
+ __proto__: null,
20729
+ value: function(arg1, arg2, arg3) {
20730
+ return this[methodName].call(this, header, arg1, arg2, arg3);
20731
+ },
20732
+ configurable: true
20733
+ });
20734
+ });
20735
+ }
20736
+ var $internals, isValidHeaderName, AxiosHeaders, AxiosHeaders_default;
20737
+ var init_AxiosHeaders = __esm({
20738
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/AxiosHeaders.js"() {
20739
+ "use strict";
20740
+ init_utils();
20741
+ init_parseHeaders();
20742
+ init_sanitizeHeaderValue();
20743
+ $internals = Symbol("internals");
20744
+ isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
20745
+ AxiosHeaders = class {
20746
+ constructor(headers) {
20747
+ headers && this.set(headers);
20748
+ }
20749
+ set(header, valueOrRewrite, rewrite) {
20750
+ const self2 = this;
20751
+ function setHeader(_value, _header, _rewrite) {
20752
+ const lHeader = normalizeHeader(_header);
20753
+ if (!lHeader) {
20754
+ throw new Error("header name must be a non-empty string");
20755
+ }
20756
+ const key = utils_default.findKey(self2, lHeader);
20757
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
20758
+ self2[key || _header] = normalizeValue(_value);
20759
+ }
20760
+ }
20761
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
20762
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
20763
+ setHeaders(header, valueOrRewrite);
20764
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
20765
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
20766
+ } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
20767
+ let obj = {}, dest, key;
20768
+ for (const entry of header) {
20769
+ if (!utils_default.isArray(entry)) {
20770
+ throw TypeError("Object iterator must return a key-value pair");
20771
+ }
20772
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
20773
+ }
20774
+ setHeaders(obj, valueOrRewrite);
20775
+ } else {
20776
+ header != null && setHeader(valueOrRewrite, header, rewrite);
20777
+ }
20778
+ return this;
20779
+ }
20780
+ get(header, parser) {
20781
+ header = normalizeHeader(header);
20782
+ if (header) {
20783
+ const key = utils_default.findKey(this, header);
20784
+ if (key) {
20785
+ const value = this[key];
20786
+ if (!parser) {
20787
+ return value;
20788
+ }
20789
+ if (parser === true) {
20790
+ return parseTokens(value);
20791
+ }
20792
+ if (utils_default.isFunction(parser)) {
20793
+ return parser.call(this, value, key);
20794
+ }
20795
+ if (utils_default.isRegExp(parser)) {
20796
+ return parser.exec(value);
20797
+ }
20798
+ throw new TypeError("parser must be boolean|regexp|function");
20799
+ }
20800
+ }
20801
+ }
20802
+ has(header, matcher) {
20803
+ header = normalizeHeader(header);
20804
+ if (header) {
20805
+ const key = utils_default.findKey(this, header);
20806
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
20807
+ }
20808
+ return false;
20809
+ }
20810
+ delete(header, matcher) {
20811
+ const self2 = this;
20812
+ let deleted = false;
20813
+ function deleteHeader(_header) {
20814
+ _header = normalizeHeader(_header);
20815
+ if (_header) {
20816
+ const key = utils_default.findKey(self2, _header);
20817
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
20818
+ delete self2[key];
20819
+ deleted = true;
20820
+ }
20821
+ }
20822
+ }
20823
+ if (utils_default.isArray(header)) {
20824
+ header.forEach(deleteHeader);
20825
+ } else {
20826
+ deleteHeader(header);
20827
+ }
20828
+ return deleted;
20829
+ }
20830
+ clear(matcher) {
20831
+ const keys = Object.keys(this);
20832
+ let i = keys.length;
20833
+ let deleted = false;
20834
+ while (i--) {
20835
+ const key = keys[i];
20836
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
20837
+ delete this[key];
20838
+ deleted = true;
20839
+ }
20840
+ }
20841
+ return deleted;
20842
+ }
20843
+ normalize(format) {
20844
+ const self2 = this;
20845
+ const headers = {};
20846
+ utils_default.forEach(this, (value, header) => {
20847
+ const key = utils_default.findKey(headers, header);
20848
+ if (key) {
20849
+ self2[key] = normalizeValue(value);
20850
+ delete self2[header];
20851
+ return;
20852
+ }
20853
+ const normalized = format ? formatHeader(header) : String(header).trim();
20854
+ if (normalized !== header) {
20855
+ delete self2[header];
20856
+ }
20857
+ self2[normalized] = normalizeValue(value);
20858
+ headers[normalized] = true;
20859
+ });
20860
+ return this;
20861
+ }
20862
+ concat(...targets) {
20863
+ return this.constructor.concat(this, ...targets);
20864
+ }
20865
+ toJSON(asStrings) {
20866
+ const obj = /* @__PURE__ */ Object.create(null);
20867
+ utils_default.forEach(this, (value, header) => {
20868
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
20869
+ });
20870
+ return obj;
20871
+ }
20872
+ [Symbol.iterator]() {
20873
+ return Object.entries(this.toJSON())[Symbol.iterator]();
20874
+ }
20875
+ toString() {
20876
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
20877
+ }
20878
+ getSetCookie() {
20879
+ return this.get("set-cookie") || [];
20880
+ }
20881
+ get [Symbol.toStringTag]() {
20882
+ return "AxiosHeaders";
20883
+ }
20884
+ static from(thing) {
20885
+ return thing instanceof this ? thing : new this(thing);
20886
+ }
20887
+ static concat(first, ...targets) {
20888
+ const computed = new this(first);
20889
+ targets.forEach((target) => computed.set(target));
20890
+ return computed;
20891
+ }
20892
+ static accessor(header) {
20893
+ const internals = this[$internals] = this[$internals] = {
20894
+ accessors: {}
20895
+ };
20896
+ const accessors = internals.accessors;
20897
+ const prototype2 = this.prototype;
20898
+ function defineAccessor(_header) {
20899
+ const lHeader = normalizeHeader(_header);
20900
+ if (!accessors[lHeader]) {
20901
+ buildAccessors(prototype2, _header);
20902
+ accessors[lHeader] = true;
20903
+ }
20904
+ }
20905
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
20906
+ return this;
20907
+ }
20908
+ };
20909
+ AxiosHeaders.accessor([
20910
+ "Content-Type",
20911
+ "Content-Length",
20912
+ "Accept",
20913
+ "Accept-Encoding",
20914
+ "User-Agent",
20915
+ "Authorization"
20916
+ ]);
20917
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
20918
+ let mapped = key[0].toUpperCase() + key.slice(1);
20919
+ return {
20920
+ get: () => value,
20921
+ set(headerValue) {
20922
+ this[mapped] = headerValue;
20923
+ }
20924
+ };
20925
+ });
20926
+ utils_default.freezeMethods(AxiosHeaders);
20927
+ AxiosHeaders_default = AxiosHeaders;
20928
+ }
20929
+ });
20930
+
20931
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/AxiosError.js
20932
+ function hasOwnOrPrototypeToJSON(source) {
20933
+ if (utils_default.hasOwnProp(source, "toJSON")) {
20934
+ return true;
20935
+ }
20936
+ let prototype2 = Object.getPrototypeOf(source);
20937
+ while (prototype2 && prototype2 !== Object.prototype) {
20938
+ if (utils_default.hasOwnProp(prototype2, "toJSON")) {
20939
+ return true;
20940
+ }
20941
+ prototype2 = Object.getPrototypeOf(prototype2);
20942
+ }
20943
+ return false;
20944
+ }
20945
+ function redactConfig(config, redactKeys) {
20946
+ const lowerKeys = new Set(redactKeys.map((k2) => String(k2).toLowerCase()));
20947
+ const seen = [];
20948
+ const visit = (source) => {
20949
+ if (source === null || typeof source !== "object")
20950
+ return source;
20951
+ if (utils_default.isBuffer(source))
20952
+ return source;
20953
+ if (seen.indexOf(source) !== -1)
20954
+ return void 0;
20955
+ if (source instanceof AxiosHeaders_default) {
20956
+ source = source.toJSON();
20957
+ }
20958
+ seen.push(source);
20959
+ let result;
20960
+ if (utils_default.isArray(source)) {
20961
+ result = [];
20962
+ source.forEach((v2, i) => {
20963
+ const reducedValue = visit(v2);
20964
+ if (!utils_default.isUndefined(reducedValue)) {
20965
+ result[i] = reducedValue;
20966
+ }
20967
+ });
20968
+ } else {
20969
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
20970
+ seen.pop();
20971
+ return source;
20972
+ }
20973
+ result = /* @__PURE__ */ Object.create(null);
20974
+ for (const [key, value] of Object.entries(source)) {
20975
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
20976
+ if (!utils_default.isUndefined(reducedValue)) {
20977
+ result[key] = reducedValue;
20978
+ }
20979
+ }
20980
+ }
20981
+ seen.pop();
20982
+ return result;
20983
+ };
20984
+ return visit(config);
20985
+ }
20986
+ var REDACTED, AxiosError, AxiosError_default;
20462
20987
  var init_AxiosError = __esm({
20463
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/AxiosError.js"() {
20988
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/AxiosError.js"() {
20464
20989
  "use strict";
20465
20990
  init_utils();
20991
+ init_AxiosHeaders();
20992
+ REDACTED = "[REDACTED ****]";
20466
20993
  AxiosError = class _AxiosError extends Error {
20467
20994
  static from(error, code, config, request, response, customProps) {
20468
20995
  const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
@@ -20488,6 +21015,9 @@ var init_AxiosError = __esm({
20488
21015
  constructor(message, code, config, request, response) {
20489
21016
  super(message);
20490
21017
  Object.defineProperty(this, "message", {
21018
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
21019
+ // this data descriptor into an accessor descriptor on the way in.
21020
+ __proto__: null,
20491
21021
  value: message,
20492
21022
  enumerable: true,
20493
21023
  writable: true,
@@ -20504,6 +21034,9 @@ var init_AxiosError = __esm({
20504
21034
  }
20505
21035
  }
20506
21036
  toJSON() {
21037
+ const config = this.config;
21038
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
21039
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
20507
21040
  return {
20508
21041
  // Standard
20509
21042
  message: this.message,
@@ -20517,7 +21050,7 @@ var init_AxiosError = __esm({
20517
21050
  columnNumber: this.columnNumber,
20518
21051
  stack: this.stack,
20519
21052
  // Axios
20520
- config: utils_default.toJSONObject(this.config),
21053
+ config: serializedConfig,
20521
21054
  code: this.code,
20522
21055
  status: this.status
20523
21056
  };
@@ -20527,6 +21060,7 @@ var init_AxiosError = __esm({
20527
21060
  AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
20528
21061
  AxiosError.ECONNABORTED = "ECONNABORTED";
20529
21062
  AxiosError.ETIMEDOUT = "ETIMEDOUT";
21063
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
20530
21064
  AxiosError.ERR_NETWORK = "ERR_NETWORK";
20531
21065
  AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
20532
21066
  AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
@@ -20535,6 +21069,7 @@ var init_AxiosError = __esm({
20535
21069
  AxiosError.ERR_CANCELED = "ERR_CANCELED";
20536
21070
  AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
20537
21071
  AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
21072
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
20538
21073
  AxiosError_default = AxiosError;
20539
21074
  }
20540
21075
  });
@@ -30107,9 +30642,9 @@ var require_get_proto = __commonJS({
30107
30642
  }
30108
30643
  });
30109
30644
 
30110
- // ../../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
30645
+ // ../../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
30111
30646
  var require_hasown = __commonJS({
30112
- "../../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
30647
+ "../../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module2) {
30113
30648
  "use strict";
30114
30649
  var call = Function.prototype.call;
30115
30650
  var $hasOwn = Object.prototype.hasOwnProperty;
@@ -30824,17 +31359,17 @@ var require_form_data = __commonJS({
30824
31359
  }
30825
31360
  });
30826
31361
 
30827
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/node/classes/FormData.js
31362
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/classes/FormData.js
30828
31363
  var import_form_data, FormData_default;
30829
31364
  var init_FormData = __esm({
30830
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/node/classes/FormData.js"() {
31365
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/classes/FormData.js"() {
30831
31366
  "use strict";
30832
31367
  import_form_data = __toESM(require_form_data());
30833
31368
  FormData_default = import_form_data.default;
30834
31369
  }
30835
31370
  });
30836
31371
 
30837
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/toFormData.js
31372
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/toFormData.js
30838
31373
  function isVisitable(thing) {
30839
31374
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
30840
31375
  }
@@ -30874,6 +31409,7 @@ function toFormData(obj, formData, options) {
30874
31409
  const dots = options.dots;
30875
31410
  const indexes = options.indexes;
30876
31411
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
31412
+ const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
30877
31413
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
30878
31414
  if (!utils_default.isFunction(visitor)) {
30879
31415
  throw new TypeError("visitor must be a function");
@@ -30929,9 +31465,15 @@ function toFormData(obj, formData, options) {
30929
31465
  convertValue,
30930
31466
  isVisitable
30931
31467
  });
30932
- function build(value, path9) {
31468
+ function build(value, path9, depth = 0) {
30933
31469
  if (utils_default.isUndefined(value))
30934
31470
  return;
31471
+ if (depth > maxDepth) {
31472
+ throw new AxiosError_default(
31473
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
31474
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
31475
+ );
31476
+ }
30935
31477
  if (stack.indexOf(value) !== -1) {
30936
31478
  throw Error("Circular reference detected in " + path9.join("."));
30937
31479
  }
@@ -30939,7 +31481,7 @@ function toFormData(obj, formData, options) {
30939
31481
  utils_default.forEach(value, function each(el, key) {
30940
31482
  const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path9, exposedHelpers);
30941
31483
  if (result === true) {
30942
- build(el, path9 ? path9.concat(key) : [key]);
31484
+ build(el, path9 ? path9.concat(key) : [key], depth + 1);
30943
31485
  }
30944
31486
  });
30945
31487
  stack.pop();
@@ -30952,7 +31494,7 @@ function toFormData(obj, formData, options) {
30952
31494
  }
30953
31495
  var predicates, toFormData_default;
30954
31496
  var init_toFormData = __esm({
30955
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/toFormData.js"() {
31497
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/toFormData.js"() {
30956
31498
  "use strict";
30957
31499
  init_utils();
30958
31500
  init_AxiosError();
@@ -30964,7 +31506,7 @@ var init_toFormData = __esm({
30964
31506
  }
30965
31507
  });
30966
31508
 
30967
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
31509
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
30968
31510
  function encode(str) {
30969
31511
  const charMap = {
30970
31512
  "!": "%21",
@@ -30972,10 +31514,9 @@ function encode(str) {
30972
31514
  "(": "%28",
30973
31515
  ")": "%29",
30974
31516
  "~": "%7E",
30975
- "%20": "+",
30976
- "%00": "\0"
31517
+ "%20": "+"
30977
31518
  };
30978
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
31519
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
30979
31520
  return charMap[match];
30980
31521
  });
30981
31522
  }
@@ -30985,7 +31526,7 @@ function AxiosURLSearchParams(params, options) {
30985
31526
  }
30986
31527
  var prototype, AxiosURLSearchParams_default;
30987
31528
  var init_AxiosURLSearchParams = __esm({
30988
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js"() {
31529
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js"() {
30989
31530
  "use strict";
30990
31531
  init_toFormData();
30991
31532
  prototype = AxiosURLSearchParams.prototype;
@@ -31004,7 +31545,7 @@ var init_AxiosURLSearchParams = __esm({
31004
31545
  }
31005
31546
  });
31006
31547
 
31007
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/buildURL.js
31548
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/buildURL.js
31008
31549
  function encode2(val) {
31009
31550
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
31010
31551
  }
@@ -31033,17 +31574,17 @@ function buildURL(url2, params, options) {
31033
31574
  return url2;
31034
31575
  }
31035
31576
  var init_buildURL = __esm({
31036
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/buildURL.js"() {
31577
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/buildURL.js"() {
31037
31578
  "use strict";
31038
31579
  init_utils();
31039
31580
  init_AxiosURLSearchParams();
31040
31581
  }
31041
31582
  });
31042
31583
 
31043
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/InterceptorManager.js
31584
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/InterceptorManager.js
31044
31585
  var InterceptorManager, InterceptorManager_default;
31045
31586
  var init_InterceptorManager = __esm({
31046
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/InterceptorManager.js"() {
31587
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/InterceptorManager.js"() {
31047
31588
  "use strict";
31048
31589
  init_utils();
31049
31590
  InterceptorManager = class {
@@ -31112,10 +31653,10 @@ var init_InterceptorManager = __esm({
31112
31653
  }
31113
31654
  });
31114
31655
 
31115
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/defaults/transitional.js
31656
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/defaults/transitional.js
31116
31657
  var transitional_default;
31117
31658
  var init_transitional = __esm({
31118
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/defaults/transitional.js"() {
31659
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/defaults/transitional.js"() {
31119
31660
  "use strict";
31120
31661
  transitional_default = {
31121
31662
  silentJSONParsing: true,
@@ -31126,20 +31667,20 @@ var init_transitional = __esm({
31126
31667
  }
31127
31668
  });
31128
31669
 
31129
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
31670
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
31130
31671
  var import_url, URLSearchParams_default;
31131
31672
  var init_URLSearchParams = __esm({
31132
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js"() {
31673
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js"() {
31133
31674
  "use strict";
31134
31675
  import_url = __toESM(require("url"));
31135
31676
  URLSearchParams_default = import_url.default.URLSearchParams;
31136
31677
  }
31137
31678
  });
31138
31679
 
31139
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/node/index.js
31680
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/index.js
31140
31681
  var import_crypto, ALPHA, DIGIT, ALPHABET, generateString, node_default;
31141
31682
  var init_node = __esm({
31142
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/node/index.js"() {
31683
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/index.js"() {
31143
31684
  "use strict";
31144
31685
  import_crypto = __toESM(require("crypto"));
31145
31686
  init_URLSearchParams();
@@ -31175,7 +31716,7 @@ var init_node = __esm({
31175
31716
  }
31176
31717
  });
31177
31718
 
31178
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/common/utils.js
31719
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/common/utils.js
31179
31720
  var utils_exports = {};
31180
31721
  __export(utils_exports, {
31181
31722
  hasBrowserEnv: () => hasBrowserEnv,
@@ -31186,7 +31727,7 @@ __export(utils_exports, {
31186
31727
  });
31187
31728
  var hasBrowserEnv, _navigator, hasStandardBrowserEnv, hasStandardBrowserWebWorkerEnv, origin;
31188
31729
  var init_utils2 = __esm({
31189
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/common/utils.js"() {
31730
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/common/utils.js"() {
31190
31731
  "use strict";
31191
31732
  hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
31192
31733
  _navigator = typeof navigator === "object" && navigator || void 0;
@@ -31199,10 +31740,10 @@ var init_utils2 = __esm({
31199
31740
  }
31200
31741
  });
31201
31742
 
31202
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/index.js
31743
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/index.js
31203
31744
  var platform_default;
31204
31745
  var init_platform = __esm({
31205
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/platform/index.js"() {
31746
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/index.js"() {
31206
31747
  "use strict";
31207
31748
  init_node();
31208
31749
  init_utils2();
@@ -31210,7 +31751,7 @@ var init_platform = __esm({
31210
31751
  }
31211
31752
  });
31212
31753
 
31213
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
31754
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
31214
31755
  function toURLEncodedForm(data, options) {
31215
31756
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), __spreadValues({
31216
31757
  visitor: function(value, key, path9, helpers) {
@@ -31223,7 +31764,7 @@ function toURLEncodedForm(data, options) {
31223
31764
  }, options));
31224
31765
  }
31225
31766
  var init_toURLEncodedForm = __esm({
31226
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/toURLEncodedForm.js"() {
31767
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/toURLEncodedForm.js"() {
31227
31768
  "use strict";
31228
31769
  init_utils();
31229
31770
  init_toFormData();
@@ -31231,7 +31772,7 @@ var init_toURLEncodedForm = __esm({
31231
31772
  }
31232
31773
  });
31233
31774
 
31234
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/formDataToJSON.js
31775
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToJSON.js
31235
31776
  function parsePropPath(name) {
31236
31777
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
31237
31778
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -31259,13 +31800,13 @@ function formDataToJSON(formData) {
31259
31800
  name = !name && utils_default.isArray(target) ? target.length : name;
31260
31801
  if (isLast) {
31261
31802
  if (utils_default.hasOwnProp(target, name)) {
31262
- target[name] = [target[name], value];
31803
+ target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
31263
31804
  } else {
31264
31805
  target[name] = value;
31265
31806
  }
31266
31807
  return !isNumericKey;
31267
31808
  }
31268
- if (!target[name] || !utils_default.isObject(target[name])) {
31809
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
31269
31810
  target[name] = [];
31270
31811
  }
31271
31812
  const result = buildPath(path9, value, target[name], index);
@@ -31285,14 +31826,14 @@ function formDataToJSON(formData) {
31285
31826
  }
31286
31827
  var formDataToJSON_default;
31287
31828
  var init_formDataToJSON = __esm({
31288
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/formDataToJSON.js"() {
31829
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToJSON.js"() {
31289
31830
  "use strict";
31290
31831
  init_utils();
31291
31832
  formDataToJSON_default = formDataToJSON;
31292
31833
  }
31293
31834
  });
31294
31835
 
31295
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/defaults/index.js
31836
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/defaults/index.js
31296
31837
  function stringifySafely(rawValue, parser, encoder) {
31297
31838
  if (utils_default.isString(rawValue)) {
31298
31839
  try {
@@ -31306,9 +31847,9 @@ function stringifySafely(rawValue, parser, encoder) {
31306
31847
  }
31307
31848
  return (encoder || JSON.stringify)(rawValue);
31308
31849
  }
31309
- var defaults, defaults_default;
31850
+ var own, defaults, defaults_default;
31310
31851
  var init_defaults = __esm({
31311
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/defaults/index.js"() {
31852
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/defaults/index.js"() {
31312
31853
  "use strict";
31313
31854
  init_utils();
31314
31855
  init_AxiosError();
@@ -31317,6 +31858,7 @@ var init_defaults = __esm({
31317
31858
  init_toURLEncodedForm();
31318
31859
  init_platform();
31319
31860
  init_formDataToJSON();
31861
+ own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
31320
31862
  defaults = {
31321
31863
  transitional: transitional_default,
31322
31864
  adapter: ["xhr", "http", "fetch"],
@@ -31344,15 +31886,17 @@ var init_defaults = __esm({
31344
31886
  }
31345
31887
  let isFileList2;
31346
31888
  if (isObjectPayload) {
31889
+ const formSerializer = own(this, "formSerializer");
31347
31890
  if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
31348
- return toURLEncodedForm(data, this.formSerializer).toString();
31891
+ return toURLEncodedForm(data, formSerializer).toString();
31349
31892
  }
31350
31893
  if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
31351
- const _FormData = this.env && this.env.FormData;
31894
+ const env = own(this, "env");
31895
+ const _FormData = env && env.FormData;
31352
31896
  return toFormData_default(
31353
31897
  isFileList2 ? { "files[]": data } : data,
31354
31898
  _FormData && new _FormData(),
31355
- this.formSerializer
31899
+ formSerializer
31356
31900
  );
31357
31901
  }
31358
31902
  }
@@ -31365,21 +31909,22 @@ var init_defaults = __esm({
31365
31909
  ],
31366
31910
  transformResponse: [
31367
31911
  function transformResponse(data) {
31368
- const transitional2 = this.transitional || defaults.transitional;
31912
+ const transitional2 = own(this, "transitional") || defaults.transitional;
31369
31913
  const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
31370
- const JSONRequested = this.responseType === "json";
31914
+ const responseType = own(this, "responseType");
31915
+ const JSONRequested = responseType === "json";
31371
31916
  if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
31372
31917
  return data;
31373
31918
  }
31374
- if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
31919
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
31375
31920
  const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
31376
31921
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
31377
31922
  try {
31378
- return JSON.parse(data, this.parseReviver);
31923
+ return JSON.parse(data, own(this, "parseReviver"));
31379
31924
  } catch (e) {
31380
31925
  if (strictJSONParsing) {
31381
31926
  if (e.name === "SyntaxError") {
31382
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
31927
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
31383
31928
  }
31384
31929
  throw e;
31385
31930
  }
@@ -31411,336 +31956,14 @@ var init_defaults = __esm({
31411
31956
  }
31412
31957
  }
31413
31958
  };
31414
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
31959
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
31415
31960
  defaults.headers[method] = {};
31416
31961
  });
31417
31962
  defaults_default = defaults;
31418
31963
  }
31419
31964
  });
31420
31965
 
31421
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/parseHeaders.js
31422
- var ignoreDuplicateOf, parseHeaders_default;
31423
- var init_parseHeaders = __esm({
31424
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/parseHeaders.js"() {
31425
- "use strict";
31426
- init_utils();
31427
- ignoreDuplicateOf = utils_default.toObjectSet([
31428
- "age",
31429
- "authorization",
31430
- "content-length",
31431
- "content-type",
31432
- "etag",
31433
- "expires",
31434
- "from",
31435
- "host",
31436
- "if-modified-since",
31437
- "if-unmodified-since",
31438
- "last-modified",
31439
- "location",
31440
- "max-forwards",
31441
- "proxy-authorization",
31442
- "referer",
31443
- "retry-after",
31444
- "user-agent"
31445
- ]);
31446
- parseHeaders_default = (rawHeaders) => {
31447
- const parsed = {};
31448
- let key;
31449
- let val;
31450
- let i;
31451
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
31452
- i = line.indexOf(":");
31453
- key = line.substring(0, i).trim().toLowerCase();
31454
- val = line.substring(i + 1).trim();
31455
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
31456
- return;
31457
- }
31458
- if (key === "set-cookie") {
31459
- if (parsed[key]) {
31460
- parsed[key].push(val);
31461
- } else {
31462
- parsed[key] = [val];
31463
- }
31464
- } else {
31465
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
31466
- }
31467
- });
31468
- return parsed;
31469
- };
31470
- }
31471
- });
31472
-
31473
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/AxiosHeaders.js
31474
- function assertValidHeaderValue(value, header) {
31475
- if (value === false || value == null) {
31476
- return;
31477
- }
31478
- if (utils_default.isArray(value)) {
31479
- value.forEach((v2) => assertValidHeaderValue(v2, header));
31480
- return;
31481
- }
31482
- if (!isValidHeaderValue(String(value))) {
31483
- throw new Error(`Invalid character in header content ["${header}"]`);
31484
- }
31485
- }
31486
- function normalizeHeader(header) {
31487
- return header && String(header).trim().toLowerCase();
31488
- }
31489
- function stripTrailingCRLF(str) {
31490
- let end = str.length;
31491
- while (end > 0) {
31492
- const charCode = str.charCodeAt(end - 1);
31493
- if (charCode !== 10 && charCode !== 13) {
31494
- break;
31495
- }
31496
- end -= 1;
31497
- }
31498
- return end === str.length ? str : str.slice(0, end);
31499
- }
31500
- function normalizeValue(value) {
31501
- if (value === false || value == null) {
31502
- return value;
31503
- }
31504
- return utils_default.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
31505
- }
31506
- function parseTokens(str) {
31507
- const tokens = /* @__PURE__ */ Object.create(null);
31508
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
31509
- let match;
31510
- while (match = tokensRE.exec(str)) {
31511
- tokens[match[1]] = match[2];
31512
- }
31513
- return tokens;
31514
- }
31515
- function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
31516
- if (utils_default.isFunction(filter2)) {
31517
- return filter2.call(this, value, header);
31518
- }
31519
- if (isHeaderNameFilter) {
31520
- value = header;
31521
- }
31522
- if (!utils_default.isString(value))
31523
- return;
31524
- if (utils_default.isString(filter2)) {
31525
- return value.indexOf(filter2) !== -1;
31526
- }
31527
- if (utils_default.isRegExp(filter2)) {
31528
- return filter2.test(value);
31529
- }
31530
- }
31531
- function formatHeader(header) {
31532
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
31533
- return char.toUpperCase() + str;
31534
- });
31535
- }
31536
- function buildAccessors(obj, header) {
31537
- const accessorName = utils_default.toCamelCase(" " + header);
31538
- ["get", "set", "has"].forEach((methodName) => {
31539
- Object.defineProperty(obj, methodName + accessorName, {
31540
- value: function(arg1, arg2, arg3) {
31541
- return this[methodName].call(this, header, arg1, arg2, arg3);
31542
- },
31543
- configurable: true
31544
- });
31545
- });
31546
- }
31547
- var $internals, isValidHeaderValue, isValidHeaderName, AxiosHeaders, AxiosHeaders_default;
31548
- var init_AxiosHeaders = __esm({
31549
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/AxiosHeaders.js"() {
31550
- "use strict";
31551
- init_utils();
31552
- init_parseHeaders();
31553
- $internals = Symbol("internals");
31554
- isValidHeaderValue = (value) => !/[\r\n]/.test(value);
31555
- isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
31556
- AxiosHeaders = class {
31557
- constructor(headers) {
31558
- headers && this.set(headers);
31559
- }
31560
- set(header, valueOrRewrite, rewrite) {
31561
- const self2 = this;
31562
- function setHeader(_value, _header, _rewrite) {
31563
- const lHeader = normalizeHeader(_header);
31564
- if (!lHeader) {
31565
- throw new Error("header name must be a non-empty string");
31566
- }
31567
- const key = utils_default.findKey(self2, lHeader);
31568
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
31569
- assertValidHeaderValue(_value, _header);
31570
- self2[key || _header] = normalizeValue(_value);
31571
- }
31572
- }
31573
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
31574
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
31575
- setHeaders(header, valueOrRewrite);
31576
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
31577
- setHeaders(parseHeaders_default(header), valueOrRewrite);
31578
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
31579
- let obj = {}, dest, key;
31580
- for (const entry of header) {
31581
- if (!utils_default.isArray(entry)) {
31582
- throw TypeError("Object iterator must return a key-value pair");
31583
- }
31584
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
31585
- }
31586
- setHeaders(obj, valueOrRewrite);
31587
- } else {
31588
- header != null && setHeader(valueOrRewrite, header, rewrite);
31589
- }
31590
- return this;
31591
- }
31592
- get(header, parser) {
31593
- header = normalizeHeader(header);
31594
- if (header) {
31595
- const key = utils_default.findKey(this, header);
31596
- if (key) {
31597
- const value = this[key];
31598
- if (!parser) {
31599
- return value;
31600
- }
31601
- if (parser === true) {
31602
- return parseTokens(value);
31603
- }
31604
- if (utils_default.isFunction(parser)) {
31605
- return parser.call(this, value, key);
31606
- }
31607
- if (utils_default.isRegExp(parser)) {
31608
- return parser.exec(value);
31609
- }
31610
- throw new TypeError("parser must be boolean|regexp|function");
31611
- }
31612
- }
31613
- }
31614
- has(header, matcher) {
31615
- header = normalizeHeader(header);
31616
- if (header) {
31617
- const key = utils_default.findKey(this, header);
31618
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
31619
- }
31620
- return false;
31621
- }
31622
- delete(header, matcher) {
31623
- const self2 = this;
31624
- let deleted = false;
31625
- function deleteHeader(_header) {
31626
- _header = normalizeHeader(_header);
31627
- if (_header) {
31628
- const key = utils_default.findKey(self2, _header);
31629
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
31630
- delete self2[key];
31631
- deleted = true;
31632
- }
31633
- }
31634
- }
31635
- if (utils_default.isArray(header)) {
31636
- header.forEach(deleteHeader);
31637
- } else {
31638
- deleteHeader(header);
31639
- }
31640
- return deleted;
31641
- }
31642
- clear(matcher) {
31643
- const keys = Object.keys(this);
31644
- let i = keys.length;
31645
- let deleted = false;
31646
- while (i--) {
31647
- const key = keys[i];
31648
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
31649
- delete this[key];
31650
- deleted = true;
31651
- }
31652
- }
31653
- return deleted;
31654
- }
31655
- normalize(format) {
31656
- const self2 = this;
31657
- const headers = {};
31658
- utils_default.forEach(this, (value, header) => {
31659
- const key = utils_default.findKey(headers, header);
31660
- if (key) {
31661
- self2[key] = normalizeValue(value);
31662
- delete self2[header];
31663
- return;
31664
- }
31665
- const normalized = format ? formatHeader(header) : String(header).trim();
31666
- if (normalized !== header) {
31667
- delete self2[header];
31668
- }
31669
- self2[normalized] = normalizeValue(value);
31670
- headers[normalized] = true;
31671
- });
31672
- return this;
31673
- }
31674
- concat(...targets) {
31675
- return this.constructor.concat(this, ...targets);
31676
- }
31677
- toJSON(asStrings) {
31678
- const obj = /* @__PURE__ */ Object.create(null);
31679
- utils_default.forEach(this, (value, header) => {
31680
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
31681
- });
31682
- return obj;
31683
- }
31684
- [Symbol.iterator]() {
31685
- return Object.entries(this.toJSON())[Symbol.iterator]();
31686
- }
31687
- toString() {
31688
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
31689
- }
31690
- getSetCookie() {
31691
- return this.get("set-cookie") || [];
31692
- }
31693
- get [Symbol.toStringTag]() {
31694
- return "AxiosHeaders";
31695
- }
31696
- static from(thing) {
31697
- return thing instanceof this ? thing : new this(thing);
31698
- }
31699
- static concat(first, ...targets) {
31700
- const computed = new this(first);
31701
- targets.forEach((target) => computed.set(target));
31702
- return computed;
31703
- }
31704
- static accessor(header) {
31705
- const internals = this[$internals] = this[$internals] = {
31706
- accessors: {}
31707
- };
31708
- const accessors = internals.accessors;
31709
- const prototype2 = this.prototype;
31710
- function defineAccessor(_header) {
31711
- const lHeader = normalizeHeader(_header);
31712
- if (!accessors[lHeader]) {
31713
- buildAccessors(prototype2, _header);
31714
- accessors[lHeader] = true;
31715
- }
31716
- }
31717
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
31718
- return this;
31719
- }
31720
- };
31721
- AxiosHeaders.accessor([
31722
- "Content-Type",
31723
- "Content-Length",
31724
- "Accept",
31725
- "Accept-Encoding",
31726
- "User-Agent",
31727
- "Authorization"
31728
- ]);
31729
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
31730
- let mapped = key[0].toUpperCase() + key.slice(1);
31731
- return {
31732
- get: () => value,
31733
- set(headerValue) {
31734
- this[mapped] = headerValue;
31735
- }
31736
- };
31737
- });
31738
- utils_default.freezeMethods(AxiosHeaders);
31739
- AxiosHeaders_default = AxiosHeaders;
31740
- }
31741
- });
31742
-
31743
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/transformData.js
31966
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/transformData.js
31744
31967
  function transformData(fns, response) {
31745
31968
  const config = this || defaults_default;
31746
31969
  const context = response || config;
@@ -31753,7 +31976,7 @@ function transformData(fns, response) {
31753
31976
  return data;
31754
31977
  }
31755
31978
  var init_transformData = __esm({
31756
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/transformData.js"() {
31979
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/transformData.js"() {
31757
31980
  "use strict";
31758
31981
  init_utils();
31759
31982
  init_defaults();
@@ -31761,20 +31984,20 @@ var init_transformData = __esm({
31761
31984
  }
31762
31985
  });
31763
31986
 
31764
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/cancel/isCancel.js
31987
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/isCancel.js
31765
31988
  function isCancel(value) {
31766
31989
  return !!(value && value.__CANCEL__);
31767
31990
  }
31768
31991
  var init_isCancel = __esm({
31769
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/cancel/isCancel.js"() {
31992
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/isCancel.js"() {
31770
31993
  "use strict";
31771
31994
  }
31772
31995
  });
31773
31996
 
31774
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/cancel/CanceledError.js
31997
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/CanceledError.js
31775
31998
  var CanceledError, CanceledError_default;
31776
31999
  var init_CanceledError = __esm({
31777
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/cancel/CanceledError.js"() {
32000
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/CanceledError.js"() {
31778
32001
  "use strict";
31779
32002
  init_AxiosError();
31780
32003
  CanceledError = class extends AxiosError_default {
@@ -31797,31 +32020,29 @@ var init_CanceledError = __esm({
31797
32020
  }
31798
32021
  });
31799
32022
 
31800
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/settle.js
32023
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/settle.js
31801
32024
  function settle(resolve, reject, response) {
31802
32025
  const validateStatus2 = response.config.validateStatus;
31803
32026
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
31804
32027
  resolve(response);
31805
32028
  } else {
31806
- reject(
31807
- new AxiosError_default(
31808
- "Request failed with status code " + response.status,
31809
- [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
31810
- response.config,
31811
- response.request,
31812
- response
31813
- )
31814
- );
32029
+ reject(new AxiosError_default(
32030
+ "Request failed with status code " + response.status,
32031
+ response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
32032
+ response.config,
32033
+ response.request,
32034
+ response
32035
+ ));
31815
32036
  }
31816
32037
  }
31817
32038
  var init_settle = __esm({
31818
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/settle.js"() {
32039
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/settle.js"() {
31819
32040
  "use strict";
31820
32041
  init_AxiosError();
31821
32042
  }
31822
32043
  });
31823
32044
 
31824
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
32045
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
31825
32046
  function isAbsoluteURL(url2) {
31826
32047
  if (typeof url2 !== "string") {
31827
32048
  return false;
@@ -31829,31 +32050,31 @@ function isAbsoluteURL(url2) {
31829
32050
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
31830
32051
  }
31831
32052
  var init_isAbsoluteURL = __esm({
31832
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/isAbsoluteURL.js"() {
32053
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isAbsoluteURL.js"() {
31833
32054
  "use strict";
31834
32055
  }
31835
32056
  });
31836
32057
 
31837
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/combineURLs.js
32058
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/combineURLs.js
31838
32059
  function combineURLs(baseURL, relativeURL) {
31839
32060
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
31840
32061
  }
31841
32062
  var init_combineURLs = __esm({
31842
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/combineURLs.js"() {
32063
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/combineURLs.js"() {
31843
32064
  "use strict";
31844
32065
  }
31845
32066
  });
31846
32067
 
31847
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/buildFullPath.js
32068
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/buildFullPath.js
31848
32069
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
31849
32070
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
31850
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
32071
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
31851
32072
  return combineURLs(baseURL, requestedURL);
31852
32073
  }
31853
32074
  return requestedURL;
31854
32075
  }
31855
32076
  var init_buildFullPath = __esm({
31856
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/buildFullPath.js"() {
32077
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/buildFullPath.js"() {
31857
32078
  "use strict";
31858
32079
  init_isAbsoluteURL();
31859
32080
  init_combineURLs();
@@ -31933,9 +32154,459 @@ var init_proxy_from_env = __esm({
31933
32154
  }
31934
32155
  });
31935
32156
 
31936
- // ../../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.3.7/node_modules/follow-redirects/debug.js
32157
+ // ../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js
32158
+ var require_promisify = __commonJS({
32159
+ "../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js"(exports) {
32160
+ "use strict";
32161
+ Object.defineProperty(exports, "__esModule", { value: true });
32162
+ function promisify(fn2) {
32163
+ return function(req, opts) {
32164
+ return new Promise((resolve, reject) => {
32165
+ fn2.call(this, req, opts, (err, rtn) => {
32166
+ if (err) {
32167
+ reject(err);
32168
+ } else {
32169
+ resolve(rtn);
32170
+ }
32171
+ });
32172
+ });
32173
+ };
32174
+ }
32175
+ exports.default = promisify;
32176
+ }
32177
+ });
32178
+
32179
+ // ../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js
32180
+ var require_src2 = __commonJS({
32181
+ "../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module2) {
32182
+ "use strict";
32183
+ var __importDefault = exports && exports.__importDefault || function(mod) {
32184
+ return mod && mod.__esModule ? mod : { "default": mod };
32185
+ };
32186
+ var events_1 = require("events");
32187
+ var debug_1 = __importDefault(require_src());
32188
+ var promisify_1 = __importDefault(require_promisify());
32189
+ var debug2 = debug_1.default("agent-base");
32190
+ function isAgent(v2) {
32191
+ return Boolean(v2) && typeof v2.addRequest === "function";
32192
+ }
32193
+ function isSecureEndpoint() {
32194
+ const { stack } = new Error();
32195
+ if (typeof stack !== "string")
32196
+ return false;
32197
+ return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
32198
+ }
32199
+ function createAgent(callback, opts) {
32200
+ return new createAgent.Agent(callback, opts);
32201
+ }
32202
+ (function(createAgent2) {
32203
+ class Agent extends events_1.EventEmitter {
32204
+ constructor(callback, _opts) {
32205
+ super();
32206
+ let opts = _opts;
32207
+ if (typeof callback === "function") {
32208
+ this.callback = callback;
32209
+ } else if (callback) {
32210
+ opts = callback;
32211
+ }
32212
+ this.timeout = null;
32213
+ if (opts && typeof opts.timeout === "number") {
32214
+ this.timeout = opts.timeout;
32215
+ }
32216
+ this.maxFreeSockets = 1;
32217
+ this.maxSockets = 1;
32218
+ this.maxTotalSockets = Infinity;
32219
+ this.sockets = {};
32220
+ this.freeSockets = {};
32221
+ this.requests = {};
32222
+ this.options = {};
32223
+ }
32224
+ get defaultPort() {
32225
+ if (typeof this.explicitDefaultPort === "number") {
32226
+ return this.explicitDefaultPort;
32227
+ }
32228
+ return isSecureEndpoint() ? 443 : 80;
32229
+ }
32230
+ set defaultPort(v2) {
32231
+ this.explicitDefaultPort = v2;
32232
+ }
32233
+ get protocol() {
32234
+ if (typeof this.explicitProtocol === "string") {
32235
+ return this.explicitProtocol;
32236
+ }
32237
+ return isSecureEndpoint() ? "https:" : "http:";
32238
+ }
32239
+ set protocol(v2) {
32240
+ this.explicitProtocol = v2;
32241
+ }
32242
+ callback(req, opts, fn2) {
32243
+ throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
32244
+ }
32245
+ /**
32246
+ * Called by node-core's "_http_client.js" module when creating
32247
+ * a new HTTP request with this Agent instance.
32248
+ *
32249
+ * @api public
32250
+ */
32251
+ addRequest(req, _opts) {
32252
+ const opts = Object.assign({}, _opts);
32253
+ if (typeof opts.secureEndpoint !== "boolean") {
32254
+ opts.secureEndpoint = isSecureEndpoint();
32255
+ }
32256
+ if (opts.host == null) {
32257
+ opts.host = "localhost";
32258
+ }
32259
+ if (opts.port == null) {
32260
+ opts.port = opts.secureEndpoint ? 443 : 80;
32261
+ }
32262
+ if (opts.protocol == null) {
32263
+ opts.protocol = opts.secureEndpoint ? "https:" : "http:";
32264
+ }
32265
+ if (opts.host && opts.path) {
32266
+ delete opts.path;
32267
+ }
32268
+ delete opts.agent;
32269
+ delete opts.hostname;
32270
+ delete opts._defaultAgent;
32271
+ delete opts.defaultPort;
32272
+ delete opts.createConnection;
32273
+ req._last = true;
32274
+ req.shouldKeepAlive = false;
32275
+ let timedOut = false;
32276
+ let timeoutId = null;
32277
+ const timeoutMs = opts.timeout || this.timeout;
32278
+ const onerror = (err) => {
32279
+ if (req._hadError)
32280
+ return;
32281
+ req.emit("error", err);
32282
+ req._hadError = true;
32283
+ };
32284
+ const ontimeout = () => {
32285
+ timeoutId = null;
32286
+ timedOut = true;
32287
+ const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
32288
+ err.code = "ETIMEOUT";
32289
+ onerror(err);
32290
+ };
32291
+ const callbackError = (err) => {
32292
+ if (timedOut)
32293
+ return;
32294
+ if (timeoutId !== null) {
32295
+ clearTimeout(timeoutId);
32296
+ timeoutId = null;
32297
+ }
32298
+ onerror(err);
32299
+ };
32300
+ const onsocket = (socket) => {
32301
+ if (timedOut)
32302
+ return;
32303
+ if (timeoutId != null) {
32304
+ clearTimeout(timeoutId);
32305
+ timeoutId = null;
32306
+ }
32307
+ if (isAgent(socket)) {
32308
+ debug2("Callback returned another Agent instance %o", socket.constructor.name);
32309
+ socket.addRequest(req, opts);
32310
+ return;
32311
+ }
32312
+ if (socket) {
32313
+ socket.once("free", () => {
32314
+ this.freeSocket(socket, opts);
32315
+ });
32316
+ req.onSocket(socket);
32317
+ return;
32318
+ }
32319
+ const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
32320
+ onerror(err);
32321
+ };
32322
+ if (typeof this.callback !== "function") {
32323
+ onerror(new Error("`callback` is not defined"));
32324
+ return;
32325
+ }
32326
+ if (!this.promisifiedCallback) {
32327
+ if (this.callback.length >= 3) {
32328
+ debug2("Converting legacy callback function to promise");
32329
+ this.promisifiedCallback = promisify_1.default(this.callback);
32330
+ } else {
32331
+ this.promisifiedCallback = this.callback;
32332
+ }
32333
+ }
32334
+ if (typeof timeoutMs === "number" && timeoutMs > 0) {
32335
+ timeoutId = setTimeout(ontimeout, timeoutMs);
32336
+ }
32337
+ if ("port" in opts && typeof opts.port !== "number") {
32338
+ opts.port = Number(opts.port);
32339
+ }
32340
+ try {
32341
+ debug2("Resolving socket for %o request: %o", opts.protocol, `${req.method} ${req.path}`);
32342
+ Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
32343
+ } catch (err) {
32344
+ Promise.reject(err).catch(callbackError);
32345
+ }
32346
+ }
32347
+ freeSocket(socket, opts) {
32348
+ debug2("Freeing socket %o %o", socket.constructor.name, opts);
32349
+ socket.destroy();
32350
+ }
32351
+ destroy() {
32352
+ debug2("Destroying agent %o", this.constructor.name);
32353
+ }
32354
+ }
32355
+ createAgent2.Agent = Agent;
32356
+ createAgent2.prototype = createAgent2.Agent.prototype;
32357
+ })(createAgent || (createAgent = {}));
32358
+ module2.exports = createAgent;
32359
+ }
32360
+ });
32361
+
32362
+ // ../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
32363
+ var require_parse_proxy_response = __commonJS({
32364
+ "../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
32365
+ "use strict";
32366
+ var __importDefault = exports && exports.__importDefault || function(mod) {
32367
+ return mod && mod.__esModule ? mod : { "default": mod };
32368
+ };
32369
+ Object.defineProperty(exports, "__esModule", { value: true });
32370
+ var debug_1 = __importDefault(require_src());
32371
+ var debug2 = debug_1.default("https-proxy-agent:parse-proxy-response");
32372
+ function parseProxyResponse(socket) {
32373
+ return new Promise((resolve, reject) => {
32374
+ let buffersLength = 0;
32375
+ const buffers = [];
32376
+ function read() {
32377
+ const b2 = socket.read();
32378
+ if (b2)
32379
+ ondata(b2);
32380
+ else
32381
+ socket.once("readable", read);
32382
+ }
32383
+ function cleanup() {
32384
+ socket.removeListener("end", onend);
32385
+ socket.removeListener("error", onerror);
32386
+ socket.removeListener("close", onclose);
32387
+ socket.removeListener("readable", read);
32388
+ }
32389
+ function onclose(err) {
32390
+ debug2("onclose had error %o", err);
32391
+ }
32392
+ function onend() {
32393
+ debug2("onend");
32394
+ }
32395
+ function onerror(err) {
32396
+ cleanup();
32397
+ debug2("onerror %o", err);
32398
+ reject(err);
32399
+ }
32400
+ function ondata(b2) {
32401
+ buffers.push(b2);
32402
+ buffersLength += b2.length;
32403
+ const buffered = Buffer.concat(buffers, buffersLength);
32404
+ const endOfHeaders = buffered.indexOf("\r\n\r\n");
32405
+ if (endOfHeaders === -1) {
32406
+ debug2("have not received end of HTTP headers yet...");
32407
+ read();
32408
+ return;
32409
+ }
32410
+ const firstLine = buffered.toString("ascii", 0, buffered.indexOf("\r\n"));
32411
+ const statusCode = +firstLine.split(" ")[1];
32412
+ debug2("got proxy server response: %o", firstLine);
32413
+ resolve({
32414
+ statusCode,
32415
+ buffered
32416
+ });
32417
+ }
32418
+ socket.on("error", onerror);
32419
+ socket.on("close", onclose);
32420
+ socket.on("end", onend);
32421
+ read();
32422
+ });
32423
+ }
32424
+ exports.default = parseProxyResponse;
32425
+ }
32426
+ });
32427
+
32428
+ // ../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
32429
+ var require_agent = __commonJS({
32430
+ "../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
32431
+ "use strict";
32432
+ var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
32433
+ function adopt(value) {
32434
+ return value instanceof P2 ? value : new P2(function(resolve) {
32435
+ resolve(value);
32436
+ });
32437
+ }
32438
+ return new (P2 || (P2 = Promise))(function(resolve, reject) {
32439
+ function fulfilled(value) {
32440
+ try {
32441
+ step(generator.next(value));
32442
+ } catch (e) {
32443
+ reject(e);
32444
+ }
32445
+ }
32446
+ function rejected(value) {
32447
+ try {
32448
+ step(generator["throw"](value));
32449
+ } catch (e) {
32450
+ reject(e);
32451
+ }
32452
+ }
32453
+ function step(result) {
32454
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
32455
+ }
32456
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32457
+ });
32458
+ };
32459
+ var __importDefault = exports && exports.__importDefault || function(mod) {
32460
+ return mod && mod.__esModule ? mod : { "default": mod };
32461
+ };
32462
+ Object.defineProperty(exports, "__esModule", { value: true });
32463
+ var net_1 = __importDefault(require("net"));
32464
+ var tls_1 = __importDefault(require("tls"));
32465
+ var url_1 = __importDefault(require("url"));
32466
+ var assert_1 = __importDefault(require("assert"));
32467
+ var debug_1 = __importDefault(require_src());
32468
+ var agent_base_1 = require_src2();
32469
+ var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
32470
+ var debug2 = debug_1.default("https-proxy-agent:agent");
32471
+ var HttpsProxyAgent2 = class extends agent_base_1.Agent {
32472
+ constructor(_opts) {
32473
+ let opts;
32474
+ if (typeof _opts === "string") {
32475
+ opts = url_1.default.parse(_opts);
32476
+ } else {
32477
+ opts = _opts;
32478
+ }
32479
+ if (!opts) {
32480
+ throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");
32481
+ }
32482
+ debug2("creating new HttpsProxyAgent instance: %o", opts);
32483
+ super(opts);
32484
+ const proxy = Object.assign({}, opts);
32485
+ this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
32486
+ proxy.host = proxy.hostname || proxy.host;
32487
+ if (typeof proxy.port === "string") {
32488
+ proxy.port = parseInt(proxy.port, 10);
32489
+ }
32490
+ if (!proxy.port && proxy.host) {
32491
+ proxy.port = this.secureProxy ? 443 : 80;
32492
+ }
32493
+ if (this.secureProxy && !("ALPNProtocols" in proxy)) {
32494
+ proxy.ALPNProtocols = ["http 1.1"];
32495
+ }
32496
+ if (proxy.host && proxy.path) {
32497
+ delete proxy.path;
32498
+ delete proxy.pathname;
32499
+ }
32500
+ this.proxy = proxy;
32501
+ }
32502
+ /**
32503
+ * Called when the node-core HTTP client library is creating a
32504
+ * new HTTP request.
32505
+ *
32506
+ * @api protected
32507
+ */
32508
+ callback(req, opts) {
32509
+ return __awaiter(this, void 0, void 0, function* () {
32510
+ const { proxy, secureProxy } = this;
32511
+ let socket;
32512
+ if (secureProxy) {
32513
+ debug2("Creating `tls.Socket`: %o", proxy);
32514
+ socket = tls_1.default.connect(proxy);
32515
+ } else {
32516
+ debug2("Creating `net.Socket`: %o", proxy);
32517
+ socket = net_1.default.connect(proxy);
32518
+ }
32519
+ const headers = Object.assign({}, proxy.headers);
32520
+ const hostname = `${opts.host}:${opts.port}`;
32521
+ let payload = `CONNECT ${hostname} HTTP/1.1\r
32522
+ `;
32523
+ if (proxy.auth) {
32524
+ headers["Proxy-Authorization"] = `Basic ${Buffer.from(proxy.auth).toString("base64")}`;
32525
+ }
32526
+ let { host, port, secureEndpoint } = opts;
32527
+ if (!isDefaultPort(port, secureEndpoint)) {
32528
+ host += `:${port}`;
32529
+ }
32530
+ headers.Host = host;
32531
+ headers.Connection = "close";
32532
+ for (const name of Object.keys(headers)) {
32533
+ payload += `${name}: ${headers[name]}\r
32534
+ `;
32535
+ }
32536
+ const proxyResponsePromise = parse_proxy_response_1.default(socket);
32537
+ socket.write(`${payload}\r
32538
+ `);
32539
+ const { statusCode, buffered } = yield proxyResponsePromise;
32540
+ if (statusCode === 200) {
32541
+ req.once("socket", resume);
32542
+ if (opts.secureEndpoint) {
32543
+ debug2("Upgrading socket connection to TLS");
32544
+ const servername = opts.servername || opts.host;
32545
+ return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, "host", "hostname", "path", "port")), {
32546
+ socket,
32547
+ servername
32548
+ }));
32549
+ }
32550
+ return socket;
32551
+ }
32552
+ socket.destroy();
32553
+ const fakeSocket = new net_1.default.Socket({ writable: false });
32554
+ fakeSocket.readable = true;
32555
+ req.once("socket", (s3) => {
32556
+ debug2("replaying proxy buffer for failed request");
32557
+ assert_1.default(s3.listenerCount("data") > 0);
32558
+ s3.push(buffered);
32559
+ s3.push(null);
32560
+ });
32561
+ return fakeSocket;
32562
+ });
32563
+ }
32564
+ };
32565
+ exports.default = HttpsProxyAgent2;
32566
+ function resume(socket) {
32567
+ socket.resume();
32568
+ }
32569
+ function isDefaultPort(port, secure) {
32570
+ return Boolean(!secure && port === 80 || secure && port === 443);
32571
+ }
32572
+ function isHTTPS(protocol) {
32573
+ return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
32574
+ }
32575
+ function omit(obj, ...keys) {
32576
+ const ret = {};
32577
+ let key;
32578
+ for (key in obj) {
32579
+ if (!keys.includes(key)) {
32580
+ ret[key] = obj[key];
32581
+ }
32582
+ }
32583
+ return ret;
32584
+ }
32585
+ }
32586
+ });
32587
+
32588
+ // ../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
32589
+ var require_dist = __commonJS({
32590
+ "../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module2) {
32591
+ "use strict";
32592
+ var __importDefault = exports && exports.__importDefault || function(mod) {
32593
+ return mod && mod.__esModule ? mod : { "default": mod };
32594
+ };
32595
+ var agent_1 = __importDefault(require_agent());
32596
+ function createHttpsProxyAgent(opts) {
32597
+ return new agent_1.default(opts);
32598
+ }
32599
+ (function(createHttpsProxyAgent2) {
32600
+ createHttpsProxyAgent2.HttpsProxyAgent = agent_1.default;
32601
+ createHttpsProxyAgent2.prototype = agent_1.default.prototype;
32602
+ })(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
32603
+ module2.exports = createHttpsProxyAgent;
32604
+ }
32605
+ });
32606
+
32607
+ // ../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/debug.js
31937
32608
  var require_debug2 = __commonJS({
31938
- "../../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.3.7/node_modules/follow-redirects/debug.js"(exports, module2) {
32609
+ "../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/debug.js"(exports, module2) {
31939
32610
  "use strict";
31940
32611
  var debug2;
31941
32612
  module2.exports = function() {
@@ -31954,9 +32625,9 @@ var require_debug2 = __commonJS({
31954
32625
  }
31955
32626
  });
31956
32627
 
31957
- // ../../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.3.7/node_modules/follow-redirects/index.js
32628
+ // ../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/index.js
31958
32629
  var require_follow_redirects = __commonJS({
31959
- "../../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.3.7/node_modules/follow-redirects/index.js"(exports, module2) {
32630
+ "../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/index.js"(exports, module2) {
31960
32631
  "use strict";
31961
32632
  var url2 = require("url");
31962
32633
  var URL2 = url2.URL;
@@ -31979,6 +32650,11 @@ var require_follow_redirects = __commonJS({
31979
32650
  } catch (error) {
31980
32651
  useNativeURL = error.code === "ERR_INVALID_URL";
31981
32652
  }
32653
+ var sensitiveHeaders = [
32654
+ "Authorization",
32655
+ "Proxy-Authorization",
32656
+ "Cookie"
32657
+ ];
31982
32658
  var preservedUrlFields = [
31983
32659
  "auth",
31984
32660
  "host",
@@ -32043,6 +32719,7 @@ var require_follow_redirects = __commonJS({
32043
32719
  self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
32044
32720
  }
32045
32721
  };
32722
+ this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
32046
32723
  this._performRequest();
32047
32724
  }
32048
32725
  RedirectableRequest.prototype = Object.create(Writable.prototype);
@@ -32180,6 +32857,9 @@ var require_follow_redirects = __commonJS({
32180
32857
  if (!options.headers) {
32181
32858
  options.headers = {};
32182
32859
  }
32860
+ if (!isArray2(options.sensitiveHeaders)) {
32861
+ options.sensitiveHeaders = [];
32862
+ }
32183
32863
  if (options.host) {
32184
32864
  if (!options.hostname) {
32185
32865
  options.hostname = options.host;
@@ -32285,7 +32965,7 @@ var require_follow_redirects = __commonJS({
32285
32965
  this._isRedirect = true;
32286
32966
  spreadUrlObject(redirectUrl, this._options);
32287
32967
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
32288
- removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
32968
+ removeMatchingHeaders(this._headerFilter, this._options.headers);
32289
32969
  }
32290
32970
  if (isFunction3(beforeRedirect)) {
32291
32971
  var responseDetails = {
@@ -32434,6 +33114,9 @@ var require_follow_redirects = __commonJS({
32434
33114
  var dot = subdomain.length - domain.length - 1;
32435
33115
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
32436
33116
  }
33117
+ function isArray2(value) {
33118
+ return value instanceof Array;
33119
+ }
32437
33120
  function isString3(value) {
32438
33121
  return typeof value === "string" || value instanceof String;
32439
33122
  }
@@ -32446,32 +33129,35 @@ var require_follow_redirects = __commonJS({
32446
33129
  function isURL(value) {
32447
33130
  return URL2 && value instanceof URL2;
32448
33131
  }
33132
+ function escapeRegex(regex) {
33133
+ return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
33134
+ }
32449
33135
  module2.exports = wrap({ http: http3, https: https2 });
32450
33136
  module2.exports.wrap = wrap;
32451
33137
  }
32452
33138
  });
32453
33139
 
32454
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/env/data.js
33140
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/env/data.js
32455
33141
  var VERSION;
32456
33142
  var init_data = __esm({
32457
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/env/data.js"() {
33143
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/env/data.js"() {
32458
33144
  "use strict";
32459
- VERSION = "1.15.0";
33145
+ VERSION = "1.16.1";
32460
33146
  }
32461
33147
  });
32462
33148
 
32463
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/parseProtocol.js
33149
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/parseProtocol.js
32464
33150
  function parseProtocol(url2) {
32465
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
33151
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
32466
33152
  return match && match[1] || "";
32467
33153
  }
32468
33154
  var init_parseProtocol = __esm({
32469
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/parseProtocol.js"() {
33155
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/parseProtocol.js"() {
32470
33156
  "use strict";
32471
33157
  }
32472
33158
  });
32473
33159
 
32474
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/fromDataURI.js
33160
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/fromDataURI.js
32475
33161
  function fromDataURI(uri, asBlob, options) {
32476
33162
  const _Blob = options && options.Blob || platform_default.classes.Blob;
32477
33163
  const protocol = parseProtocol(uri);
@@ -32484,10 +33170,17 @@ function fromDataURI(uri, asBlob, options) {
32484
33170
  if (!match) {
32485
33171
  throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
32486
33172
  }
32487
- const mime = match[1];
32488
- const isBase64 = match[2];
32489
- const body = match[3];
32490
- const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
33173
+ const type = match[1];
33174
+ const params = match[2];
33175
+ const encoding = match[3] ? "base64" : "utf8";
33176
+ const body = match[4];
33177
+ let mime;
33178
+ if (type) {
33179
+ mime = params ? type + params : type;
33180
+ } else if (params) {
33181
+ mime = "text/plain" + params;
33182
+ }
33183
+ const buffer = Buffer.from(decodeURIComponent(body), encoding);
32491
33184
  if (asBlob) {
32492
33185
  if (!_Blob) {
32493
33186
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -32500,19 +33193,19 @@ function fromDataURI(uri, asBlob, options) {
32500
33193
  }
32501
33194
  var DATA_URL_PATTERN;
32502
33195
  var init_fromDataURI = __esm({
32503
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/fromDataURI.js"() {
33196
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/fromDataURI.js"() {
32504
33197
  "use strict";
32505
33198
  init_AxiosError();
32506
33199
  init_parseProtocol();
32507
33200
  init_platform();
32508
- DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
33201
+ DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
32509
33202
  }
32510
33203
  });
32511
33204
 
32512
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
33205
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
32513
33206
  var import_stream, kInternals, AxiosTransformStream, AxiosTransformStream_default;
32514
33207
  var init_AxiosTransformStream = __esm({
32515
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/AxiosTransformStream.js"() {
33208
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/AxiosTransformStream.js"() {
32516
33209
  "use strict";
32517
33210
  import_stream = __toESM(require("stream"));
32518
33211
  init_utils();
@@ -32639,10 +33332,10 @@ var init_AxiosTransformStream = __esm({
32639
33332
  }
32640
33333
  });
32641
33334
 
32642
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/readBlob.js
33335
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/readBlob.js
32643
33336
  var asyncIterator, readBlob, readBlob_default;
32644
33337
  var init_readBlob = __esm({
32645
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/readBlob.js"() {
33338
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/readBlob.js"() {
32646
33339
  "use strict";
32647
33340
  ({ asyncIterator } = Symbol);
32648
33341
  readBlob = function(blob) {
@@ -32662,10 +33355,10 @@ var init_readBlob = __esm({
32662
33355
  }
32663
33356
  });
32664
33357
 
32665
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js
33358
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js
32666
33359
  var import_util, import_stream2, BOUNDARY_ALPHABET, textEncoder, CRLF, CRLF_BYTES, CRLF_BYTES_COUNT, FormDataPart, formDataToStream, formDataToStream_default;
32667
33360
  var init_formDataToStream = __esm({
32668
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js"() {
33361
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js"() {
32669
33362
  "use strict";
32670
33363
  import_util = __toESM(require("util"));
32671
33364
  import_stream2 = require("stream");
@@ -32685,7 +33378,8 @@ var init_formDataToStream = __esm({
32685
33378
  if (isStringValue) {
32686
33379
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
32687
33380
  } else {
32688
- headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
33381
+ const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
33382
+ headers += `Content-Type: ${safeType}${CRLF}`;
32689
33383
  }
32690
33384
  this.headers = textEncoder.encode(headers + CRLF);
32691
33385
  this.contentLength = isStringValue ? value.byteLength : value.size;
@@ -32726,7 +33420,7 @@ var init_formDataToStream = __esm({
32726
33420
  throw TypeError("FormData instance required");
32727
33421
  }
32728
33422
  if (boundary.length < 1 || boundary.length > 70) {
32729
- throw Error("boundary must be 10-70 characters long");
33423
+ throw Error("boundary must be 1-70 characters long");
32730
33424
  }
32731
33425
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
32732
33426
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -32761,10 +33455,10 @@ var init_formDataToStream = __esm({
32761
33455
  }
32762
33456
  });
32763
33457
 
32764
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
33458
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
32765
33459
  var import_stream3, ZlibHeaderTransformStream, ZlibHeaderTransformStream_default;
32766
33460
  var init_ZlibHeaderTransformStream = __esm({
32767
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js"() {
33461
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js"() {
32768
33462
  "use strict";
32769
33463
  import_stream3 = __toESM(require("stream"));
32770
33464
  ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
@@ -32789,10 +33483,10 @@ var init_ZlibHeaderTransformStream = __esm({
32789
33483
  }
32790
33484
  });
32791
33485
 
32792
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/callbackify.js
33486
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/callbackify.js
32793
33487
  var callbackify, callbackify_default;
32794
33488
  var init_callbackify = __esm({
32795
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/callbackify.js"() {
33489
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/callbackify.js"() {
32796
33490
  "use strict";
32797
33491
  init_utils();
32798
33492
  callbackify = (fn2, reducer) => {
@@ -32811,7 +33505,7 @@ var init_callbackify = __esm({
32811
33505
  }
32812
33506
  });
32813
33507
 
32814
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/shouldBypassProxy.js
33508
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/shouldBypassProxy.js
32815
33509
  function shouldBypassProxy(location) {
32816
33510
  let parsed;
32817
33511
  try {
@@ -32846,13 +33540,52 @@ function shouldBypassProxy(location) {
32846
33540
  if (entryHost.charAt(0) === ".") {
32847
33541
  return hostname.endsWith(entryHost);
32848
33542
  }
32849
- return hostname === entryHost;
33543
+ return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
32850
33544
  });
32851
33545
  }
32852
- var DEFAULT_PORTS2, parseNoProxyEntry, normalizeNoProxyHost;
33546
+ var LOOPBACK_HOSTNAMES, isIPv4Loopback, isIPv6Loopback, isLoopback, DEFAULT_PORTS2, parseNoProxyEntry, IPV4_MAPPED_DOTTED_RE, IPV4_MAPPED_HEX_RE, unmapIPv4MappedIPv6, normalizeNoProxyHost;
32853
33547
  var init_shouldBypassProxy = __esm({
32854
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/shouldBypassProxy.js"() {
33548
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/shouldBypassProxy.js"() {
32855
33549
  "use strict";
33550
+ LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
33551
+ isIPv4Loopback = (host) => {
33552
+ const parts = host.split(".");
33553
+ if (parts.length !== 4)
33554
+ return false;
33555
+ if (parts[0] !== "127")
33556
+ return false;
33557
+ return parts.every((p2) => /^\d+$/.test(p2) && Number(p2) >= 0 && Number(p2) <= 255);
33558
+ };
33559
+ isIPv6Loopback = (host) => {
33560
+ if (host === "::1")
33561
+ return true;
33562
+ const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
33563
+ if (v4MappedDotted)
33564
+ return isIPv4Loopback(v4MappedDotted[1]);
33565
+ const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
33566
+ if (v4MappedHex) {
33567
+ const high = parseInt(v4MappedHex[1], 16);
33568
+ return high >= 32512 && high <= 32767;
33569
+ }
33570
+ const groups = host.split(":");
33571
+ if (groups.length === 8) {
33572
+ for (let i = 0; i < 7; i++) {
33573
+ if (!/^0+$/.test(groups[i]))
33574
+ return false;
33575
+ }
33576
+ return /^0*1$/.test(groups[7]);
33577
+ }
33578
+ return false;
33579
+ };
33580
+ isLoopback = (host) => {
33581
+ if (!host)
33582
+ return false;
33583
+ if (LOOPBACK_HOSTNAMES.has(host))
33584
+ return true;
33585
+ if (isIPv4Loopback(host))
33586
+ return true;
33587
+ return isIPv6Loopback(host);
33588
+ };
32856
33589
  DEFAULT_PORTS2 = {
32857
33590
  http: 80,
32858
33591
  https: 443,
@@ -32882,6 +33615,22 @@ var init_shouldBypassProxy = __esm({
32882
33615
  }
32883
33616
  return [entryHost, entryPort];
32884
33617
  };
33618
+ IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
33619
+ IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
33620
+ unmapIPv4MappedIPv6 = (host) => {
33621
+ if (typeof host !== "string" || host.indexOf(":") === -1)
33622
+ return host;
33623
+ const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
33624
+ if (dotted)
33625
+ return dotted[1];
33626
+ const hex = host.match(IPV4_MAPPED_HEX_RE);
33627
+ if (hex) {
33628
+ const high = parseInt(hex[1], 16);
33629
+ const low = parseInt(hex[2], 16);
33630
+ return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
33631
+ }
33632
+ return host;
33633
+ };
32885
33634
  normalizeNoProxyHost = (hostname) => {
32886
33635
  if (!hostname) {
32887
33636
  return hostname;
@@ -32889,12 +33638,12 @@ var init_shouldBypassProxy = __esm({
32889
33638
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
32890
33639
  hostname = hostname.slice(1, -1);
32891
33640
  }
32892
- return hostname.replace(/\.+$/, "");
33641
+ return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
32893
33642
  };
32894
33643
  }
32895
33644
  });
32896
33645
 
32897
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/speedometer.js
33646
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/speedometer.js
32898
33647
  function speedometer(samplesCount, min) {
32899
33648
  samplesCount = samplesCount || 10;
32900
33649
  const bytes = new Array(samplesCount);
@@ -32930,13 +33679,13 @@ function speedometer(samplesCount, min) {
32930
33679
  }
32931
33680
  var speedometer_default;
32932
33681
  var init_speedometer = __esm({
32933
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/speedometer.js"() {
33682
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/speedometer.js"() {
32934
33683
  "use strict";
32935
33684
  speedometer_default = speedometer;
32936
33685
  }
32937
33686
  });
32938
33687
 
32939
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/throttle.js
33688
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/throttle.js
32940
33689
  function throttle(fn2, freq) {
32941
33690
  let timestamp = 0;
32942
33691
  let threshold = 1e3 / freq;
@@ -32971,16 +33720,16 @@ function throttle(fn2, freq) {
32971
33720
  }
32972
33721
  var throttle_default;
32973
33722
  var init_throttle = __esm({
32974
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/throttle.js"() {
33723
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/throttle.js"() {
32975
33724
  "use strict";
32976
33725
  throttle_default = throttle;
32977
33726
  }
32978
33727
  });
32979
33728
 
32980
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/progressEventReducer.js
33729
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/progressEventReducer.js
32981
33730
  var progressEventReducer, progressEventDecorator, asyncDecorator;
32982
33731
  var init_progressEventReducer = __esm({
32983
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/progressEventReducer.js"() {
33732
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/progressEventReducer.js"() {
32984
33733
  "use strict";
32985
33734
  init_speedometer();
32986
33735
  init_throttle();
@@ -32989,19 +33738,22 @@ var init_progressEventReducer = __esm({
32989
33738
  let bytesNotified = 0;
32990
33739
  const _speedometer = speedometer_default(50, 250);
32991
33740
  return throttle_default((e) => {
32992
- const loaded = e.loaded;
33741
+ if (!e || typeof e.loaded !== "number") {
33742
+ return;
33743
+ }
33744
+ const rawLoaded = e.loaded;
32993
33745
  const total = e.lengthComputable ? e.total : void 0;
32994
- const progressBytes = loaded - bytesNotified;
33746
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
33747
+ const progressBytes = Math.max(0, loaded - bytesNotified);
32995
33748
  const rate = _speedometer(progressBytes);
32996
- const inRange = loaded <= total;
32997
- bytesNotified = loaded;
33749
+ bytesNotified = Math.max(bytesNotified, loaded);
32998
33750
  const data = {
32999
33751
  loaded,
33000
33752
  total,
33001
33753
  progress: total ? loaded / total : void 0,
33002
33754
  bytes: progressBytes,
33003
33755
  rate: rate ? rate : void 0,
33004
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
33756
+ estimated: rate && total ? (total - loaded) / rate : void 0,
33005
33757
  event: e,
33006
33758
  lengthComputable: total != null,
33007
33759
  [isDownloadStream ? "download" : "upload"]: true
@@ -33024,7 +33776,7 @@ var init_progressEventReducer = __esm({
33024
33776
  }
33025
33777
  });
33026
33778
 
33027
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
33779
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
33028
33780
  function estimateDataURLDecodedBytes(url2) {
33029
33781
  if (!url2 || typeof url2 !== "string")
33030
33782
  return 0;
@@ -33072,27 +33824,72 @@ function estimateDataURLDecodedBytes(url2) {
33072
33824
  }
33073
33825
  }
33074
33826
  const groups = Math.floor(effectiveLen / 4);
33075
- const bytes = groups * 3 - (pad || 0);
33076
- return bytes > 0 ? bytes : 0;
33827
+ const bytes2 = groups * 3 - (pad || 0);
33828
+ return bytes2 > 0 ? bytes2 : 0;
33829
+ }
33830
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
33831
+ return Buffer.byteLength(body, "utf8");
33832
+ }
33833
+ let bytes = 0;
33834
+ for (let i = 0, len = body.length; i < len; i++) {
33835
+ const c = body.charCodeAt(i);
33836
+ if (c < 128) {
33837
+ bytes += 1;
33838
+ } else if (c < 2048) {
33839
+ bytes += 2;
33840
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
33841
+ const next = body.charCodeAt(i + 1);
33842
+ if (next >= 56320 && next <= 57343) {
33843
+ bytes += 4;
33844
+ i++;
33845
+ } else {
33846
+ bytes += 3;
33847
+ }
33848
+ } else {
33849
+ bytes += 3;
33850
+ }
33077
33851
  }
33078
- return Buffer.byteLength(body, "utf8");
33852
+ return bytes;
33079
33853
  }
33080
33854
  var init_estimateDataURLDecodedBytes = __esm({
33081
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js"() {
33855
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js"() {
33082
33856
  "use strict";
33083
33857
  }
33084
33858
  });
33085
33859
 
33086
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/adapters/http.js
33087
- function dispatchBeforeRedirect(options, responseDetails) {
33860
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js
33861
+ function setFormDataHeaders(headers, formHeaders, policy) {
33862
+ if (policy !== "content-only") {
33863
+ headers.set(formHeaders);
33864
+ return;
33865
+ }
33866
+ Object.entries(formHeaders).forEach(([key, val]) => {
33867
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
33868
+ headers.set(key, val);
33869
+ }
33870
+ });
33871
+ }
33872
+ function getTunnelingAgent(agentOptions, userHttpsAgent) {
33873
+ const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
33874
+ const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
33875
+ let agent = cache.get(key);
33876
+ if (agent)
33877
+ return agent;
33878
+ const merged = userHttpsAgent && userHttpsAgent.options ? __spreadValues(__spreadValues({}, userHttpsAgent.options), agentOptions) : agentOptions;
33879
+ agent = new import_https_proxy_agent.default(merged);
33880
+ agent[kAxiosInstalledTunnel] = true;
33881
+ cache.set(key, agent);
33882
+ return agent;
33883
+ }
33884
+ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
33088
33885
  if (options.beforeRedirects.proxy) {
33089
33886
  options.beforeRedirects.proxy(options);
33090
33887
  }
33091
33888
  if (options.beforeRedirects.config) {
33092
- options.beforeRedirects.config(options, responseDetails);
33889
+ options.beforeRedirects.config(options, responseDetails, requestDetails);
33093
33890
  }
33094
33891
  }
33095
- function setProxy(options, configProxy, location) {
33892
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
33096
33893
  let proxy = configProxy;
33097
33894
  if (!proxy && proxy !== false) {
33098
33895
  const proxyUrl = getProxyForUrl(location);
@@ -33102,47 +33899,107 @@ function setProxy(options, configProxy, location) {
33102
33899
  }
33103
33900
  }
33104
33901
  }
33105
- if (proxy) {
33106
- if (proxy.username) {
33107
- proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
33902
+ if (isRedirect && options.headers) {
33903
+ for (const name of Object.keys(options.headers)) {
33904
+ if (name.toLowerCase() === "proxy-authorization") {
33905
+ delete options.headers[name];
33906
+ }
33108
33907
  }
33109
- if (proxy.auth) {
33110
- const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
33908
+ }
33909
+ if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
33910
+ options.agent = void 0;
33911
+ }
33912
+ if (proxy) {
33913
+ const isProxyURL = proxy instanceof URL;
33914
+ const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
33915
+ const proxyUsername = readProxyField("username");
33916
+ const proxyPassword = readProxyField("password");
33917
+ let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
33918
+ if (proxyUsername) {
33919
+ proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
33920
+ }
33921
+ if (proxyAuth) {
33922
+ const authIsObject = typeof proxyAuth === "object";
33923
+ const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
33924
+ const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
33925
+ const validProxyAuth = Boolean(authUsername || authPassword);
33111
33926
  if (validProxyAuth) {
33112
- proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
33113
- } else if (typeof proxy.auth === "object") {
33927
+ proxyAuth = (authUsername || "") + ":" + (authPassword || "");
33928
+ } else if (authIsObject) {
33114
33929
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
33115
33930
  }
33116
- const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
33117
- options.headers["Proxy-Authorization"] = "Basic " + base64;
33118
33931
  }
33119
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
33120
- const proxyHost = proxy.hostname || proxy.host;
33121
- options.hostname = proxyHost;
33122
- options.host = proxyHost;
33123
- options.port = proxy.port;
33124
- options.path = location;
33125
- if (proxy.protocol) {
33126
- options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
33932
+ const targetIsHttps = isHttps.test(options.protocol);
33933
+ if (targetIsHttps) {
33934
+ if (!(configHttpsAgent instanceof import_https_proxy_agent.default)) {
33935
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
33936
+ const proxyPort = readProxyField("port");
33937
+ const rawProxyProtocol = readProxyField("protocol");
33938
+ const normalizedProtocol = rawProxyProtocol ? rawProxyProtocol.includes(":") ? rawProxyProtocol : `${rawProxyProtocol}:` : "http:";
33939
+ const proxyHostForURL = proxyHost && proxyHost.includes(":") && !proxyHost.startsWith("[") ? `[${proxyHost}]` : proxyHost;
33940
+ const proxyURL = new URL(
33941
+ `${normalizedProtocol}//${proxyHostForURL}${proxyPort ? ":" + proxyPort : ""}`
33942
+ );
33943
+ const agentOptions = {
33944
+ protocol: proxyURL.protocol,
33945
+ hostname: proxyURL.hostname.replace(/^\[|\]$/g, ""),
33946
+ port: proxyURL.port,
33947
+ auth: proxyAuth && typeof proxyAuth === "string" ? proxyAuth : void 0
33948
+ };
33949
+ if (proxyURL.protocol === "https:") {
33950
+ agentOptions.ALPNProtocols = ["http/1.1"];
33951
+ }
33952
+ const tunnelingAgent = getTunnelingAgent(agentOptions, configHttpsAgent);
33953
+ options.agent = tunnelingAgent;
33954
+ if (options.agents) {
33955
+ options.agents.https = tunnelingAgent;
33956
+ }
33957
+ }
33958
+ } else {
33959
+ if (proxyAuth) {
33960
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
33961
+ options.headers["Proxy-Authorization"] = "Basic " + base64;
33962
+ }
33963
+ let hasUserHostHeader = false;
33964
+ for (const name of Object.keys(options.headers)) {
33965
+ if (name.toLowerCase() === "host") {
33966
+ hasUserHostHeader = true;
33967
+ break;
33968
+ }
33969
+ }
33970
+ if (!hasUserHostHeader) {
33971
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
33972
+ }
33973
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
33974
+ options.hostname = proxyHost;
33975
+ options.host = proxyHost;
33976
+ options.port = readProxyField("port");
33977
+ options.path = location;
33978
+ const proxyProtocol = readProxyField("protocol");
33979
+ if (proxyProtocol) {
33980
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
33981
+ }
33127
33982
  }
33128
33983
  }
33129
33984
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
33130
- setProxy(redirectOptions, configProxy, redirectOptions.href);
33985
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
33131
33986
  };
33132
33987
  }
33133
- var import_http, import_https, import_http2, import_util2, import_follow_redirects, import_zlib, import_stream4, import_events, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, supportedProtocols, flushOnFinish, Http2Sessions, http2Sessions, isHttpAdapterSupported, wrapAsync, resolveFamily, buildAddressEntry, http2Transport, http_default;
33988
+ var import_https_proxy_agent, import_http, import_https, import_http2, import_util2, import_path4, import_follow_redirects, import_zlib, import_stream4, import_events, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, FORM_DATA_CONTENT_HEADERS, kAxiosSocketListener, kAxiosCurrentReq, kAxiosInstalledTunnel, tunnelingAgentCache, tunnelingAgentCacheUser, supportedProtocols, decodeURIComponentSafe, flushOnFinish, Http2Sessions, http2Sessions, isHttpAdapterSupported, wrapAsync, resolveFamily, buildAddressEntry, http2Transport, http_default;
33134
33989
  var init_http = __esm({
33135
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/adapters/http.js"() {
33990
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js"() {
33136
33991
  "use strict";
33137
33992
  init_utils();
33138
33993
  init_settle();
33139
33994
  init_buildFullPath();
33140
33995
  init_buildURL();
33141
33996
  init_proxy_from_env();
33997
+ import_https_proxy_agent = __toESM(require_dist());
33142
33998
  import_http = __toESM(require("http"));
33143
33999
  import_https = __toESM(require("https"));
33144
34000
  import_http2 = __toESM(require("http2"));
33145
34001
  import_util2 = __toESM(require("util"));
34002
+ import_path4 = require("path");
33146
34003
  import_follow_redirects = __toESM(require_follow_redirects());
33147
34004
  import_zlib = __toESM(require("zlib"));
33148
34005
  init_data();
@@ -33160,6 +34017,7 @@ var init_http = __esm({
33160
34017
  init_ZlibHeaderTransformStream();
33161
34018
  init_callbackify();
33162
34019
  init_shouldBypassProxy();
34020
+ init_sanitizeHeaderValue();
33163
34021
  init_progressEventReducer();
33164
34022
  init_estimateDataURLDecodedBytes();
33165
34023
  zlibOptions = {
@@ -33173,9 +34031,25 @@ var init_http = __esm({
33173
34031
  isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
33174
34032
  ({ http: httpFollow, https: httpsFollow } = import_follow_redirects.default);
33175
34033
  isHttps = /https:?/;
34034
+ FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
34035
+ kAxiosSocketListener = Symbol("axios.http.socketListener");
34036
+ kAxiosCurrentReq = Symbol("axios.http.currentReq");
34037
+ kAxiosInstalledTunnel = Symbol("axios.http.installedTunnel");
34038
+ tunnelingAgentCache = /* @__PURE__ */ new Map();
34039
+ tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
33176
34040
  supportedProtocols = platform_default.protocols.map((protocol) => {
33177
34041
  return protocol + ":";
33178
34042
  });
34043
+ decodeURIComponentSafe = (value) => {
34044
+ if (!utils_default.isString(value)) {
34045
+ return value;
34046
+ }
34047
+ try {
34048
+ return decodeURIComponent(value);
34049
+ } catch (error) {
34050
+ return value;
34051
+ }
34052
+ };
33179
34053
  flushOnFinish = (stream4, [throttled, flush]) => {
33180
34054
  stream4.on("end", flush).on("error", flush);
33181
34055
  return throttled;
@@ -33315,12 +34189,21 @@ var init_http = __esm({
33315
34189
  http_default = isHttpAdapterSupported && function httpAdapter(config) {
33316
34190
  return wrapAsync(function dispatchHttpRequest(resolve, reject, onDone) {
33317
34191
  return __async(this, null, function* () {
33318
- let { data, lookup, family, httpVersion = 1, http2Options } = config;
33319
- const { responseType, responseEncoding } = config;
34192
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
34193
+ let data = own2("data");
34194
+ let lookup = own2("lookup");
34195
+ let family = own2("family");
34196
+ let httpVersion = own2("httpVersion");
34197
+ if (httpVersion === void 0)
34198
+ httpVersion = 1;
34199
+ let http2Options = own2("http2Options");
34200
+ const responseType = own2("responseType");
34201
+ const responseEncoding = own2("responseEncoding");
33320
34202
  const method = config.method.toUpperCase();
33321
34203
  let isDone;
33322
34204
  let rejected = false;
33323
34205
  let req;
34206
+ let connectPhaseTimer;
33324
34207
  httpVersion = +httpVersion;
33325
34208
  if (Number.isNaN(httpVersion)) {
33326
34209
  throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
@@ -33352,8 +34235,28 @@ var init_http = __esm({
33352
34235
  console.warn("emit error", err);
33353
34236
  }
33354
34237
  }
34238
+ function clearConnectPhaseTimer() {
34239
+ if (connectPhaseTimer) {
34240
+ clearTimeout(connectPhaseTimer);
34241
+ connectPhaseTimer = null;
34242
+ }
34243
+ }
34244
+ function createTimeoutError() {
34245
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
34246
+ const transitional2 = config.transitional || transitional_default;
34247
+ if (config.timeoutErrorMessage) {
34248
+ timeoutErrorMessage = config.timeoutErrorMessage;
34249
+ }
34250
+ return new AxiosError_default(
34251
+ timeoutErrorMessage,
34252
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
34253
+ config,
34254
+ req
34255
+ );
34256
+ }
33355
34257
  abortEmitter.once("abort", reject);
33356
34258
  const onFinished = () => {
34259
+ clearConnectPhaseTimer();
33357
34260
  if (config.cancelToken) {
33358
34261
  config.cancelToken.unsubscribe(abort);
33359
34262
  }
@@ -33370,6 +34273,7 @@ var init_http = __esm({
33370
34273
  }
33371
34274
  onDone((response, isRejected) => {
33372
34275
  isDone = true;
34276
+ clearConnectPhaseTimer();
33373
34277
  if (isRejected) {
33374
34278
  rejected = true;
33375
34279
  onFinished();
@@ -33457,8 +34361,8 @@ var init_http = __esm({
33457
34361
  boundary: userBoundary && userBoundary[1] || void 0
33458
34362
  }
33459
34363
  );
33460
- } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
33461
- headers.set(data.getHeaders());
34364
+ } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
34365
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
33462
34366
  if (!headers.hasContentLength()) {
33463
34367
  try {
33464
34368
  const knownLength = yield import_util2.default.promisify(data.getLength).call(data);
@@ -33528,14 +34432,15 @@ var init_http = __esm({
33528
34432
  );
33529
34433
  }
33530
34434
  let auth = void 0;
33531
- if (config.auth) {
33532
- const username = config.auth.username || "";
33533
- const password = config.auth.password || "";
34435
+ const configAuth = own2("auth");
34436
+ if (configAuth) {
34437
+ const username = configAuth.username || "";
34438
+ const password = configAuth.password || "";
33534
34439
  auth = username + ":" + password;
33535
34440
  }
33536
34441
  if (!auth && parsed.username) {
33537
- const urlUsername = parsed.username;
33538
- const urlPassword = parsed.password;
34442
+ const urlUsername = decodeURIComponentSafe(parsed.username);
34443
+ const urlPassword = decodeURIComponentSafe(parsed.password);
33539
34444
  auth = urlUsername + ":" + urlPassword;
33540
34445
  }
33541
34446
  auth && headers.delete("authorization");
@@ -33558,20 +34463,41 @@ var init_http = __esm({
33558
34463
  "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
33559
34464
  false
33560
34465
  );
33561
- const options = {
34466
+ const options = Object.assign(/* @__PURE__ */ Object.create(null), {
33562
34467
  path: path9,
33563
34468
  method,
33564
- headers: headers.toJSON(),
34469
+ headers: toByteStringHeaderObject(headers),
33565
34470
  agents: { http: config.httpAgent, https: config.httpsAgent },
33566
34471
  auth,
33567
34472
  protocol,
33568
34473
  family,
33569
34474
  beforeRedirect: dispatchBeforeRedirect,
33570
- beforeRedirects: {},
34475
+ beforeRedirects: /* @__PURE__ */ Object.create(null),
33571
34476
  http2Options
33572
- };
34477
+ });
33573
34478
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
33574
34479
  if (config.socketPath) {
34480
+ if (typeof config.socketPath !== "string") {
34481
+ return reject(
34482
+ new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
34483
+ );
34484
+ }
34485
+ if (config.allowedSocketPaths != null) {
34486
+ const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
34487
+ const resolvedSocket = (0, import_path4.resolve)(config.socketPath);
34488
+ const isAllowed = allowed.some(
34489
+ (entry) => typeof entry === "string" && (0, import_path4.resolve)(entry) === resolvedSocket
34490
+ );
34491
+ if (!isAllowed) {
34492
+ return reject(
34493
+ new AxiosError_default(
34494
+ `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
34495
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
34496
+ config
34497
+ )
34498
+ );
34499
+ }
34500
+ }
33575
34501
  options.socketPath = config.socketPath;
33576
34502
  } else {
33577
34503
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
@@ -33579,25 +34505,33 @@ var init_http = __esm({
33579
34505
  setProxy(
33580
34506
  options,
33581
34507
  config.proxy,
33582
- protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
34508
+ protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
34509
+ false,
34510
+ config.httpsAgent
33583
34511
  );
33584
34512
  }
33585
34513
  let transport;
34514
+ let isNativeTransport = false;
33586
34515
  const isHttpsRequest = isHttps.test(options.protocol);
33587
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
34516
+ if (options.agent == null) {
34517
+ options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
34518
+ }
33588
34519
  if (isHttp2) {
33589
34520
  transport = http2Transport;
33590
34521
  } else {
33591
- if (config.transport) {
33592
- transport = config.transport;
34522
+ const configTransport = own2("transport");
34523
+ if (configTransport) {
34524
+ transport = configTransport;
33593
34525
  } else if (config.maxRedirects === 0) {
33594
34526
  transport = isHttpsRequest ? import_https.default : import_http.default;
34527
+ isNativeTransport = true;
33595
34528
  } else {
33596
34529
  if (config.maxRedirects) {
33597
34530
  options.maxRedirects = config.maxRedirects;
33598
34531
  }
33599
- if (config.beforeRedirect) {
33600
- options.beforeRedirects.config = config.beforeRedirect;
34532
+ const configBeforeRedirect = own2("beforeRedirect");
34533
+ if (configBeforeRedirect) {
34534
+ options.beforeRedirects.config = configBeforeRedirect;
33601
34535
  }
33602
34536
  transport = isHttpsRequest ? httpsFollow : httpFollow;
33603
34537
  }
@@ -33607,10 +34541,9 @@ var init_http = __esm({
33607
34541
  } else {
33608
34542
  options.maxBodyLength = Infinity;
33609
34543
  }
33610
- if (config.insecureHTTPParser) {
33611
- options.insecureHTTPParser = config.insecureHTTPParser;
33612
- }
34544
+ options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
33613
34545
  req = transport.request(options, function handleResponse(res) {
34546
+ clearConnectPhaseTimer();
33614
34547
  if (req.destroyed)
33615
34548
  return;
33616
34549
  const streams = [res];
@@ -33666,6 +34599,42 @@ var init_http = __esm({
33666
34599
  request: lastRequest
33667
34600
  };
33668
34601
  if (responseType === "stream") {
34602
+ if (config.maxContentLength > -1) {
34603
+ const limit = config.maxContentLength;
34604
+ const source = responseStream;
34605
+ function enforceMaxContentLength() {
34606
+ return __asyncGenerator(this, null, function* () {
34607
+ let totalResponseBytes = 0;
34608
+ try {
34609
+ for (var iter = __forAwait(source), more, temp, error; more = !(temp = yield new __await(iter.next())).done; more = false) {
34610
+ const chunk = temp.value;
34611
+ totalResponseBytes += chunk.length;
34612
+ if (totalResponseBytes > limit) {
34613
+ throw new AxiosError_default(
34614
+ "maxContentLength size of " + limit + " exceeded",
34615
+ AxiosError_default.ERR_BAD_RESPONSE,
34616
+ config,
34617
+ lastRequest
34618
+ );
34619
+ }
34620
+ yield chunk;
34621
+ }
34622
+ } catch (temp) {
34623
+ error = [temp];
34624
+ } finally {
34625
+ try {
34626
+ more && (temp = iter.return) && (yield new __await(temp.call(iter)));
34627
+ } finally {
34628
+ if (error)
34629
+ throw error[0];
34630
+ }
34631
+ }
34632
+ });
34633
+ }
34634
+ responseStream = import_stream4.default.Readable.from(enforceMaxContentLength(), {
34635
+ objectMode: false
34636
+ });
34637
+ }
33669
34638
  response.data = responseStream;
33670
34639
  settle(resolve, reject, response);
33671
34640
  } else {
@@ -33695,15 +34664,16 @@ var init_http = __esm({
33695
34664
  "stream has been aborted",
33696
34665
  AxiosError_default.ERR_BAD_RESPONSE,
33697
34666
  config,
33698
- lastRequest
34667
+ lastRequest,
34668
+ response
33699
34669
  );
33700
34670
  responseStream.destroy(err);
33701
34671
  reject(err);
33702
34672
  });
33703
34673
  responseStream.on("error", function handleStreamError(err) {
33704
- if (req.destroyed)
34674
+ if (rejected)
33705
34675
  return;
33706
- reject(AxiosError_default.from(err, null, config, lastRequest));
34676
+ reject(AxiosError_default.from(err, null, config, lastRequest, response));
33707
34677
  });
33708
34678
  responseStream.on("end", function handleStreamEnd() {
33709
34679
  try {
@@ -33738,8 +34708,29 @@ var init_http = __esm({
33738
34708
  req.on("error", function handleRequestError(err) {
33739
34709
  reject(AxiosError_default.from(err, null, config, req));
33740
34710
  });
34711
+ const boundSockets = /* @__PURE__ */ new Set();
33741
34712
  req.on("socket", function handleRequestSocket(socket) {
33742
34713
  socket.setKeepAlive(true, 1e3 * 60);
34714
+ if (!socket[kAxiosSocketListener]) {
34715
+ socket.on("error", function handleSocketError(err) {
34716
+ const current = socket[kAxiosCurrentReq];
34717
+ if (current && !current.destroyed) {
34718
+ current.destroy(err);
34719
+ }
34720
+ });
34721
+ socket[kAxiosSocketListener] = true;
34722
+ }
34723
+ socket[kAxiosCurrentReq] = req;
34724
+ boundSockets.add(socket);
34725
+ });
34726
+ req.once("close", function clearCurrentReq() {
34727
+ clearConnectPhaseTimer();
34728
+ for (const socket of boundSockets) {
34729
+ if (socket[kAxiosCurrentReq] === req) {
34730
+ socket[kAxiosCurrentReq] = null;
34731
+ }
34732
+ }
34733
+ boundSockets.clear();
33743
34734
  });
33744
34735
  if (config.timeout) {
33745
34736
  const timeout = parseInt(config.timeout, 10);
@@ -33754,23 +34745,15 @@ var init_http = __esm({
33754
34745
  );
33755
34746
  return;
33756
34747
  }
33757
- req.setTimeout(timeout, function handleRequestTimeout() {
34748
+ const handleTimeout = function handleTimeout2() {
33758
34749
  if (isDone)
33759
34750
  return;
33760
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
33761
- const transitional2 = config.transitional || transitional_default;
33762
- if (config.timeoutErrorMessage) {
33763
- timeoutErrorMessage = config.timeoutErrorMessage;
33764
- }
33765
- abort(
33766
- new AxiosError_default(
33767
- timeoutErrorMessage,
33768
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
33769
- config,
33770
- req
33771
- )
33772
- );
33773
- });
34751
+ abort(createTimeoutError());
34752
+ };
34753
+ if (isNativeTransport && timeout > 0) {
34754
+ connectPhaseTimer = setTimeout(handleTimeout, timeout);
34755
+ }
34756
+ req.setTimeout(timeout, handleTimeout);
33774
34757
  } else {
33775
34758
  req.setTimeout(0);
33776
34759
  }
@@ -33789,7 +34772,38 @@ var init_http = __esm({
33789
34772
  abort(new CanceledError_default("Request stream has been aborted", config, req));
33790
34773
  }
33791
34774
  });
33792
- data.pipe(req);
34775
+ let uploadStream = data;
34776
+ if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
34777
+ const limit = config.maxBodyLength;
34778
+ let bytesSent = 0;
34779
+ uploadStream = import_stream4.default.pipeline(
34780
+ [
34781
+ data,
34782
+ new import_stream4.default.Transform({
34783
+ transform(chunk, _enc, cb) {
34784
+ bytesSent += chunk.length;
34785
+ if (bytesSent > limit) {
34786
+ return cb(
34787
+ new AxiosError_default(
34788
+ "Request body larger than maxBodyLength limit",
34789
+ AxiosError_default.ERR_BAD_REQUEST,
34790
+ config,
34791
+ req
34792
+ )
34793
+ );
34794
+ }
34795
+ cb(null, chunk);
34796
+ }
34797
+ })
34798
+ ],
34799
+ utils_default.noop
34800
+ );
34801
+ uploadStream.on("error", (err) => {
34802
+ if (!req.destroyed)
34803
+ req.destroy(err);
34804
+ });
34805
+ }
34806
+ uploadStream.pipe(req);
33793
34807
  } else {
33794
34808
  data && req.write(data);
33795
34809
  req.end();
@@ -33800,10 +34814,10 @@ var init_http = __esm({
33800
34814
  }
33801
34815
  });
33802
34816
 
33803
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
34817
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
33804
34818
  var isURLSameOrigin_default;
33805
34819
  var init_isURLSameOrigin = __esm({
33806
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/isURLSameOrigin.js"() {
34820
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isURLSameOrigin.js"() {
33807
34821
  "use strict";
33808
34822
  init_platform();
33809
34823
  isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url2) => {
@@ -33816,10 +34830,10 @@ var init_isURLSameOrigin = __esm({
33816
34830
  }
33817
34831
  });
33818
34832
 
33819
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/cookies.js
34833
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/cookies.js
33820
34834
  var cookies_default;
33821
34835
  var init_cookies = __esm({
33822
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/cookies.js"() {
34836
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/cookies.js"() {
33823
34837
  "use strict";
33824
34838
  init_utils();
33825
34839
  init_platform();
@@ -33850,8 +34864,15 @@ var init_cookies = __esm({
33850
34864
  read(name) {
33851
34865
  if (typeof document === "undefined")
33852
34866
  return null;
33853
- const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
33854
- return match ? decodeURIComponent(match[1]) : null;
34867
+ const cookies = document.cookie.split(";");
34868
+ for (let i = 0; i < cookies.length; i++) {
34869
+ const cookie = cookies[i].replace(/^\s+/, "");
34870
+ const eq = cookie.indexOf("=");
34871
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
34872
+ return decodeURIComponent(cookie.slice(eq + 1));
34873
+ }
34874
+ }
34875
+ return null;
33855
34876
  },
33856
34877
  remove(name) {
33857
34878
  this.write(name, "", Date.now() - 864e5, "/");
@@ -33872,10 +34893,19 @@ var init_cookies = __esm({
33872
34893
  }
33873
34894
  });
33874
34895
 
33875
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/mergeConfig.js
34896
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/mergeConfig.js
33876
34897
  function mergeConfig(config1, config2) {
33877
34898
  config2 = config2 || {};
33878
- const config = {};
34899
+ const config = /* @__PURE__ */ Object.create(null);
34900
+ Object.defineProperty(config, "hasOwnProperty", {
34901
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
34902
+ // this data descriptor into an accessor descriptor on the way in.
34903
+ __proto__: null,
34904
+ value: Object.prototype.hasOwnProperty,
34905
+ enumerable: false,
34906
+ writable: true,
34907
+ configurable: true
34908
+ });
33879
34909
  function getMergedValue(target, source, prop, caseless) {
33880
34910
  if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
33881
34911
  return utils_default.merge.call({ caseless }, target, source);
@@ -33906,9 +34936,9 @@ function mergeConfig(config1, config2) {
33906
34936
  }
33907
34937
  }
33908
34938
  function mergeDirectKeys(a, b2, prop) {
33909
- if (prop in config2) {
34939
+ if (utils_default.hasOwnProp(config2, prop)) {
33910
34940
  return getMergedValue(a, b2);
33911
- } else if (prop in config1) {
34941
+ } else if (utils_default.hasOwnProp(config1, prop)) {
33912
34942
  return getMergedValue(void 0, a);
33913
34943
  }
33914
34944
  }
@@ -33939,6 +34969,7 @@ function mergeConfig(config1, config2) {
33939
34969
  httpsAgent: defaultToConfig2,
33940
34970
  cancelToken: defaultToConfig2,
33941
34971
  socketPath: defaultToConfig2,
34972
+ allowedSocketPaths: defaultToConfig2,
33942
34973
  responseEncoding: defaultToConfig2,
33943
34974
  validateStatus: mergeDirectKeys,
33944
34975
  headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true)
@@ -33947,14 +34978,16 @@ function mergeConfig(config1, config2) {
33947
34978
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
33948
34979
  return;
33949
34980
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
33950
- const configValue = merge2(config1[prop], config2[prop], prop);
34981
+ const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
34982
+ const b2 = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
34983
+ const configValue = merge2(a, b2, prop);
33951
34984
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
33952
34985
  });
33953
34986
  return config;
33954
34987
  }
33955
34988
  var headersToObject;
33956
34989
  var init_mergeConfig = __esm({
33957
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/mergeConfig.js"() {
34990
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/mergeConfig.js"() {
33958
34991
  "use strict";
33959
34992
  init_utils();
33960
34993
  init_AxiosHeaders();
@@ -33962,10 +34995,21 @@ var init_mergeConfig = __esm({
33962
34995
  }
33963
34996
  });
33964
34997
 
33965
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/resolveConfig.js
33966
- var resolveConfig_default;
34998
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/resolveConfig.js
34999
+ function setFormDataHeaders2(headers, formHeaders, policy) {
35000
+ if (policy !== "content-only") {
35001
+ headers.set(formHeaders);
35002
+ return;
35003
+ }
35004
+ Object.entries(formHeaders).forEach(([key, val]) => {
35005
+ if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
35006
+ headers.set(key, val);
35007
+ }
35008
+ });
35009
+ }
35010
+ var FORM_DATA_CONTENT_HEADERS2, encodeUTF8, resolveConfig_default;
33967
35011
  var init_resolveConfig = __esm({
33968
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/resolveConfig.js"() {
35012
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/resolveConfig.js"() {
33969
35013
  "use strict";
33970
35014
  init_platform();
33971
35015
  init_utils();
@@ -33975,39 +35019,48 @@ var init_resolveConfig = __esm({
33975
35019
  init_mergeConfig();
33976
35020
  init_AxiosHeaders();
33977
35021
  init_buildURL();
35022
+ FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
35023
+ encodeUTF8 = (str) => encodeURIComponent(str).replace(
35024
+ /%([0-9A-F]{2})/gi,
35025
+ (_2, hex) => String.fromCharCode(parseInt(hex, 16))
35026
+ );
33978
35027
  resolveConfig_default = (config) => {
33979
35028
  const newConfig = mergeConfig({}, config);
33980
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
35029
+ const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
35030
+ const data = own2("data");
35031
+ let withXSRFToken = own2("withXSRFToken");
35032
+ const xsrfHeaderName = own2("xsrfHeaderName");
35033
+ const xsrfCookieName = own2("xsrfCookieName");
35034
+ let headers = own2("headers");
35035
+ const auth = own2("auth");
35036
+ const baseURL = own2("baseURL");
35037
+ const allowAbsoluteUrls = own2("allowAbsoluteUrls");
35038
+ const url2 = own2("url");
33981
35039
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
33982
35040
  newConfig.url = buildURL(
33983
- buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
35041
+ buildFullPath(baseURL, url2, allowAbsoluteUrls),
33984
35042
  config.params,
33985
35043
  config.paramsSerializer
33986
35044
  );
33987
35045
  if (auth) {
33988
35046
  headers.set(
33989
35047
  "Authorization",
33990
- "Basic " + btoa(
33991
- (auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
33992
- )
35048
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
33993
35049
  );
33994
35050
  }
33995
35051
  if (utils_default.isFormData(data)) {
33996
35052
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
33997
35053
  headers.setContentType(void 0);
33998
35054
  } else if (utils_default.isFunction(data.getHeaders)) {
33999
- const formHeaders = data.getHeaders();
34000
- const allowedHeaders = ["content-type", "content-length"];
34001
- Object.entries(formHeaders).forEach(([key, val]) => {
34002
- if (allowedHeaders.includes(key.toLowerCase())) {
34003
- headers.set(key, val);
34004
- }
34005
- });
35055
+ setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
34006
35056
  }
34007
35057
  }
34008
35058
  if (platform_default.hasStandardBrowserEnv) {
34009
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
34010
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
35059
+ if (utils_default.isFunction(withXSRFToken)) {
35060
+ withXSRFToken = withXSRFToken(newConfig);
35061
+ }
35062
+ const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
35063
+ if (shouldSendXSRF) {
34011
35064
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
34012
35065
  if (xsrfValue) {
34013
35066
  headers.set(xsrfHeaderName, xsrfValue);
@@ -34019,10 +35072,10 @@ var init_resolveConfig = __esm({
34019
35072
  }
34020
35073
  });
34021
35074
 
34022
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/adapters/xhr.js
35075
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/xhr.js
34023
35076
  var isXHRAdapterSupported, xhr_default;
34024
35077
  var init_xhr = __esm({
34025
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/adapters/xhr.js"() {
35078
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/xhr.js"() {
34026
35079
  "use strict";
34027
35080
  init_utils();
34028
35081
  init_settle();
@@ -34034,6 +35087,7 @@ var init_xhr = __esm({
34034
35087
  init_AxiosHeaders();
34035
35088
  init_progressEventReducer();
34036
35089
  init_resolveConfig();
35090
+ init_sanitizeHeaderValue();
34037
35091
  isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
34038
35092
  xhr_default = isXHRAdapterSupported && function(config) {
34039
35093
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -34089,7 +35143,7 @@ var init_xhr = __esm({
34089
35143
  if (!request || request.readyState !== 4) {
34090
35144
  return;
34091
35145
  }
34092
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
35146
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
34093
35147
  return;
34094
35148
  }
34095
35149
  setTimeout(onloadend);
@@ -34100,6 +35154,7 @@ var init_xhr = __esm({
34100
35154
  return;
34101
35155
  }
34102
35156
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
35157
+ done();
34103
35158
  request = null;
34104
35159
  };
34105
35160
  request.onerror = function handleError(event) {
@@ -34107,6 +35162,7 @@ var init_xhr = __esm({
34107
35162
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
34108
35163
  err.event = event || null;
34109
35164
  reject(err);
35165
+ done();
34110
35166
  request = null;
34111
35167
  };
34112
35168
  request.ontimeout = function handleTimeout() {
@@ -34123,11 +35179,12 @@ var init_xhr = __esm({
34123
35179
  request
34124
35180
  )
34125
35181
  );
35182
+ done();
34126
35183
  request = null;
34127
35184
  };
34128
35185
  requestData === void 0 && requestHeaders.setContentType(null);
34129
35186
  if ("setRequestHeader" in request) {
34130
- utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
35187
+ utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
34131
35188
  request.setRequestHeader(key, val);
34132
35189
  });
34133
35190
  }
@@ -34153,6 +35210,7 @@ var init_xhr = __esm({
34153
35210
  }
34154
35211
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
34155
35212
  request.abort();
35213
+ done();
34156
35214
  request = null;
34157
35215
  };
34158
35216
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -34161,7 +35219,7 @@ var init_xhr = __esm({
34161
35219
  }
34162
35220
  }
34163
35221
  const protocol = parseProtocol(_config.url);
34164
- if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
35222
+ if (protocol && !platform_default.protocols.includes(protocol)) {
34165
35223
  reject(
34166
35224
  new AxiosError_default(
34167
35225
  "Unsupported protocol " + protocol + ":",
@@ -34177,57 +35235,59 @@ var init_xhr = __esm({
34177
35235
  }
34178
35236
  });
34179
35237
 
34180
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/composeSignals.js
35238
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/composeSignals.js
34181
35239
  var composeSignals, composeSignals_default;
34182
35240
  var init_composeSignals = __esm({
34183
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/composeSignals.js"() {
35241
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/composeSignals.js"() {
34184
35242
  "use strict";
34185
35243
  init_CanceledError();
34186
35244
  init_AxiosError();
34187
35245
  init_utils();
34188
35246
  composeSignals = (signals, timeout) => {
34189
- const { length } = signals = signals ? signals.filter(Boolean) : [];
34190
- if (timeout || length) {
34191
- let controller = new AbortController();
34192
- let aborted;
34193
- const onabort = function(reason) {
34194
- if (!aborted) {
34195
- aborted = true;
34196
- unsubscribe();
34197
- const err = reason instanceof Error ? reason : this.reason;
34198
- controller.abort(
34199
- err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
34200
- );
34201
- }
34202
- };
34203
- let timer = timeout && setTimeout(() => {
34204
- timer = null;
34205
- onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
34206
- }, timeout);
34207
- const unsubscribe = () => {
34208
- if (signals) {
34209
- timer && clearTimeout(timer);
34210
- timer = null;
34211
- signals.forEach((signal2) => {
34212
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
34213
- });
34214
- signals = null;
34215
- }
34216
- };
34217
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
34218
- const { signal } = controller;
34219
- signal.unsubscribe = () => utils_default.asap(unsubscribe);
34220
- return signal;
35247
+ signals = signals ? signals.filter(Boolean) : [];
35248
+ if (!timeout && !signals.length) {
35249
+ return;
34221
35250
  }
35251
+ const controller = new AbortController();
35252
+ let aborted = false;
35253
+ const onabort = function(reason) {
35254
+ if (!aborted) {
35255
+ aborted = true;
35256
+ unsubscribe();
35257
+ const err = reason instanceof Error ? reason : this.reason;
35258
+ controller.abort(
35259
+ err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
35260
+ );
35261
+ }
35262
+ };
35263
+ let timer = timeout && setTimeout(() => {
35264
+ timer = null;
35265
+ onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
35266
+ }, timeout);
35267
+ const unsubscribe = () => {
35268
+ if (!signals) {
35269
+ return;
35270
+ }
35271
+ timer && clearTimeout(timer);
35272
+ timer = null;
35273
+ signals.forEach((signal2) => {
35274
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
35275
+ });
35276
+ signals = null;
35277
+ };
35278
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
35279
+ const { signal } = controller;
35280
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
35281
+ return signal;
34222
35282
  };
34223
35283
  composeSignals_default = composeSignals;
34224
35284
  }
34225
35285
  });
34226
35286
 
34227
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/trackStream.js
35287
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/trackStream.js
34228
35288
  var streamChunk, readBytes, readStream, trackStream;
34229
35289
  var init_trackStream = __esm({
34230
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/trackStream.js"() {
35290
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/trackStream.js"() {
34231
35291
  "use strict";
34232
35292
  streamChunk = function* (chunk, chunkSize) {
34233
35293
  let len = chunk.byteLength;
@@ -34328,10 +35388,10 @@ var init_trackStream = __esm({
34328
35388
  }
34329
35389
  });
34330
35390
 
34331
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/adapters/fetch.js
34332
- var DEFAULT_CHUNK_SIZE, isFunction2, globalFetchAPI, ReadableStream2, TextEncoder2, test, factory, seedCache, getFetch, adapter;
35391
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/fetch.js
35392
+ var DEFAULT_CHUNK_SIZE, isFunction2, test, factory, seedCache, getFetch, adapter;
34333
35393
  var init_fetch = __esm({
34334
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/adapters/fetch.js"() {
35394
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/fetch.js"() {
34335
35395
  "use strict";
34336
35396
  init_platform();
34337
35397
  init_utils();
@@ -34342,13 +35402,11 @@ var init_fetch = __esm({
34342
35402
  init_progressEventReducer();
34343
35403
  init_resolveConfig();
34344
35404
  init_settle();
35405
+ init_estimateDataURLDecodedBytes();
35406
+ init_data();
35407
+ init_sanitizeHeaderValue();
34345
35408
  DEFAULT_CHUNK_SIZE = 64 * 1024;
34346
35409
  ({ isFunction: isFunction2 } = utils_default);
34347
- globalFetchAPI = (({ Request, Response }) => ({
34348
- Request,
34349
- Response
34350
- }))(utils_default.global);
34351
- ({ ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global);
34352
35410
  test = (fn2, ...args) => {
34353
35411
  try {
34354
35412
  return !!fn2(...args);
@@ -34357,11 +35415,16 @@ var init_fetch = __esm({
34357
35415
  }
34358
35416
  };
34359
35417
  factory = (env) => {
35418
+ const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
35419
+ const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
34360
35420
  env = utils_default.merge.call(
34361
35421
  {
34362
35422
  skipUndefined: true
34363
35423
  },
34364
- globalFetchAPI,
35424
+ {
35425
+ Request: globalObject.Request,
35426
+ Response: globalObject.Response
35427
+ },
34365
35428
  env
34366
35429
  );
34367
35430
  const { fetch: envFetch, Request, Response } = env;
@@ -34377,16 +35440,18 @@ var init_fetch = __esm({
34377
35440
  }));
34378
35441
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
34379
35442
  let duplexAccessed = false;
34380
- const body = new ReadableStream2();
34381
- const hasContentType = new Request(platform_default.origin, {
34382
- body,
35443
+ const request = new Request(platform_default.origin, {
35444
+ body: new ReadableStream2(),
34383
35445
  method: "POST",
34384
35446
  get duplex() {
34385
35447
  duplexAccessed = true;
34386
35448
  return "half";
34387
35449
  }
34388
- }).headers.has("Content-Type");
34389
- body.cancel();
35450
+ });
35451
+ const hasContentType = request.headers.has("Content-Type");
35452
+ if (request.body != null) {
35453
+ request.body.cancel();
35454
+ }
34390
35455
  return duplexAccessed && !hasContentType;
34391
35456
  });
34392
35457
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
@@ -34449,8 +35514,12 @@ var init_fetch = __esm({
34449
35514
  responseType,
34450
35515
  headers,
34451
35516
  withCredentials = "same-origin",
34452
- fetchOptions
35517
+ fetchOptions,
35518
+ maxContentLength,
35519
+ maxBodyLength
34453
35520
  } = resolveConfig_default(config);
35521
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
35522
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
34454
35523
  let _fetch = envFetch || fetch;
34455
35524
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
34456
35525
  let composedSignal = composeSignals_default(
@@ -34463,6 +35532,28 @@ var init_fetch = __esm({
34463
35532
  });
34464
35533
  let requestContentLength;
34465
35534
  try {
35535
+ if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
35536
+ const estimated = estimateDataURLDecodedBytes(url2);
35537
+ if (estimated > maxContentLength) {
35538
+ throw new AxiosError_default(
35539
+ "maxContentLength size of " + maxContentLength + " exceeded",
35540
+ AxiosError_default.ERR_BAD_RESPONSE,
35541
+ config,
35542
+ request
35543
+ );
35544
+ }
35545
+ }
35546
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
35547
+ const outboundLength = yield resolveBodyLength(headers, data);
35548
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
35549
+ throw new AxiosError_default(
35550
+ "Request body larger than maxBodyLength limit",
35551
+ AxiosError_default.ERR_BAD_REQUEST,
35552
+ config,
35553
+ request
35554
+ );
35555
+ }
35556
+ }
34466
35557
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = yield resolveBodyLength(headers, data)) !== 0) {
34467
35558
  let _request = new Request(url2, {
34468
35559
  method: "POST",
@@ -34485,18 +35576,36 @@ var init_fetch = __esm({
34485
35576
  withCredentials = withCredentials ? "include" : "omit";
34486
35577
  }
34487
35578
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
35579
+ if (utils_default.isFormData(data)) {
35580
+ const contentType = headers.getContentType();
35581
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
35582
+ headers.delete("content-type");
35583
+ }
35584
+ }
35585
+ headers.set("User-Agent", "axios/" + VERSION, false);
34488
35586
  const resolvedOptions = __spreadProps(__spreadValues({}, fetchOptions), {
34489
35587
  signal: composedSignal,
34490
35588
  method: method.toUpperCase(),
34491
- headers: headers.normalize().toJSON(),
35589
+ headers: toByteStringHeaderObject(headers.normalize()),
34492
35590
  body: data,
34493
35591
  duplex: "half",
34494
35592
  credentials: isCredentialsSupported ? withCredentials : void 0
34495
35593
  });
34496
35594
  request = isRequestSupported && new Request(url2, resolvedOptions);
34497
35595
  let response = yield isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions);
35596
+ if (hasMaxContentLength) {
35597
+ const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
35598
+ if (declaredLength != null && declaredLength > maxContentLength) {
35599
+ throw new AxiosError_default(
35600
+ "maxContentLength size of " + maxContentLength + " exceeded",
35601
+ AxiosError_default.ERR_BAD_RESPONSE,
35602
+ config,
35603
+ request
35604
+ );
35605
+ }
35606
+ }
34498
35607
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
34499
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
35608
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
34500
35609
  const options = {};
34501
35610
  ["status", "statusText", "headers"].forEach((prop) => {
34502
35611
  options[prop] = response[prop];
@@ -34506,8 +35615,23 @@ var init_fetch = __esm({
34506
35615
  responseContentLength,
34507
35616
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
34508
35617
  ) || [];
35618
+ let bytesRead = 0;
35619
+ const onChunkProgress = (loadedBytes) => {
35620
+ if (hasMaxContentLength) {
35621
+ bytesRead = loadedBytes;
35622
+ if (bytesRead > maxContentLength) {
35623
+ throw new AxiosError_default(
35624
+ "maxContentLength size of " + maxContentLength + " exceeded",
35625
+ AxiosError_default.ERR_BAD_RESPONSE,
35626
+ config,
35627
+ request
35628
+ );
35629
+ }
35630
+ }
35631
+ onProgress && onProgress(loadedBytes);
35632
+ };
34509
35633
  response = new Response(
34510
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
35634
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
34511
35635
  flush && flush();
34512
35636
  unsubscribe && unsubscribe();
34513
35637
  }),
@@ -34519,6 +35643,26 @@ var init_fetch = __esm({
34519
35643
  response,
34520
35644
  config
34521
35645
  );
35646
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
35647
+ let materializedSize;
35648
+ if (responseData != null) {
35649
+ if (typeof responseData.byteLength === "number") {
35650
+ materializedSize = responseData.byteLength;
35651
+ } else if (typeof responseData.size === "number") {
35652
+ materializedSize = responseData.size;
35653
+ } else if (typeof responseData === "string") {
35654
+ materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
35655
+ }
35656
+ }
35657
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
35658
+ throw new AxiosError_default(
35659
+ "maxContentLength size of " + maxContentLength + " exceeded",
35660
+ AxiosError_default.ERR_BAD_RESPONSE,
35661
+ config,
35662
+ request
35663
+ );
35664
+ }
35665
+ }
34522
35666
  !isStreamResponse && unsubscribe && unsubscribe();
34523
35667
  return yield new Promise((resolve, reject) => {
34524
35668
  settle(resolve, reject, {
@@ -34532,6 +35676,13 @@ var init_fetch = __esm({
34532
35676
  });
34533
35677
  } catch (err) {
34534
35678
  unsubscribe && unsubscribe();
35679
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
35680
+ const canceledError = composedSignal.reason;
35681
+ canceledError.config = config;
35682
+ request && (canceledError.request = request);
35683
+ err !== canceledError && (canceledError.cause = err);
35684
+ throw canceledError;
35685
+ }
34535
35686
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
34536
35687
  throw Object.assign(
34537
35688
  new AxiosError_default(
@@ -34568,7 +35719,7 @@ var init_fetch = __esm({
34568
35719
  }
34569
35720
  });
34570
35721
 
34571
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/adapters/adapters.js
35722
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/adapters.js
34572
35723
  function getAdapter(adapters, config) {
34573
35724
  adapters = utils_default.isArray(adapters) ? adapters : [adapters];
34574
35725
  const { length } = adapters;
@@ -34604,7 +35755,7 @@ function getAdapter(adapters, config) {
34604
35755
  }
34605
35756
  var knownAdapters, renderReason, isResolvedHandle, adapters_default;
34606
35757
  var init_adapters = __esm({
34607
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/adapters/adapters.js"() {
35758
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/adapters.js"() {
34608
35759
  "use strict";
34609
35760
  init_utils();
34610
35761
  init_http();
@@ -34621,10 +35772,10 @@ var init_adapters = __esm({
34621
35772
  utils_default.forEach(knownAdapters, (fn2, value) => {
34622
35773
  if (fn2) {
34623
35774
  try {
34624
- Object.defineProperty(fn2, "name", { value });
35775
+ Object.defineProperty(fn2, "name", { __proto__: null, value });
34625
35776
  } catch (e) {
34626
35777
  }
34627
- Object.defineProperty(fn2, "adapterName", { value });
35778
+ Object.defineProperty(fn2, "adapterName", { __proto__: null, value });
34628
35779
  }
34629
35780
  });
34630
35781
  renderReason = (reason) => `- ${reason}`;
@@ -34644,7 +35795,7 @@ var init_adapters = __esm({
34644
35795
  }
34645
35796
  });
34646
35797
 
34647
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/dispatchRequest.js
35798
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/dispatchRequest.js
34648
35799
  function throwIfCancellationRequested(config) {
34649
35800
  if (config.cancelToken) {
34650
35801
  config.cancelToken.throwIfRequested();
@@ -34664,7 +35815,12 @@ function dispatchRequest(config) {
34664
35815
  return adapter2(config).then(
34665
35816
  function onAdapterResolution(response) {
34666
35817
  throwIfCancellationRequested(config);
34667
- response.data = transformData.call(config, config.transformResponse, response);
35818
+ config.response = response;
35819
+ try {
35820
+ response.data = transformData.call(config, config.transformResponse, response);
35821
+ } finally {
35822
+ delete config.response;
35823
+ }
34668
35824
  response.headers = AxiosHeaders_default.from(response.headers);
34669
35825
  return response;
34670
35826
  },
@@ -34672,11 +35828,16 @@ function dispatchRequest(config) {
34672
35828
  if (!isCancel(reason)) {
34673
35829
  throwIfCancellationRequested(config);
34674
35830
  if (reason && reason.response) {
34675
- reason.response.data = transformData.call(
34676
- config,
34677
- config.transformResponse,
34678
- reason.response
34679
- );
35831
+ config.response = reason.response;
35832
+ try {
35833
+ reason.response.data = transformData.call(
35834
+ config,
35835
+ config.transformResponse,
35836
+ reason.response
35837
+ );
35838
+ } finally {
35839
+ delete config.response;
35840
+ }
34680
35841
  reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
34681
35842
  }
34682
35843
  }
@@ -34685,7 +35846,7 @@ function dispatchRequest(config) {
34685
35846
  );
34686
35847
  }
34687
35848
  var init_dispatchRequest = __esm({
34688
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/dispatchRequest.js"() {
35849
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/dispatchRequest.js"() {
34689
35850
  "use strict";
34690
35851
  init_transformData();
34691
35852
  init_isCancel();
@@ -34696,7 +35857,7 @@ var init_dispatchRequest = __esm({
34696
35857
  }
34697
35858
  });
34698
35859
 
34699
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/validator.js
35860
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/validator.js
34700
35861
  function assertOptions(options, schema, allowUnknown) {
34701
35862
  if (typeof options !== "object") {
34702
35863
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
@@ -34705,7 +35866,7 @@ function assertOptions(options, schema, allowUnknown) {
34705
35866
  let i = keys.length;
34706
35867
  while (i-- > 0) {
34707
35868
  const opt = keys[i];
34708
- const validator = schema[opt];
35869
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
34709
35870
  if (validator) {
34710
35871
  const value = options[opt];
34711
35872
  const result = value === void 0 || validator(value, opt, options);
@@ -34724,7 +35885,7 @@ function assertOptions(options, schema, allowUnknown) {
34724
35885
  }
34725
35886
  var validators, deprecatedWarnings, validator_default;
34726
35887
  var init_validator = __esm({
34727
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/validator.js"() {
35888
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/validator.js"() {
34728
35889
  "use strict";
34729
35890
  init_data();
34730
35891
  init_AxiosError();
@@ -34771,10 +35932,10 @@ var init_validator = __esm({
34771
35932
  }
34772
35933
  });
34773
35934
 
34774
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/Axios.js
35935
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/Axios.js
34775
35936
  var validators2, Axios, Axios_default;
34776
35937
  var init_Axios = __esm({
34777
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/Axios.js"() {
35938
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/Axios.js"() {
34778
35939
  "use strict";
34779
35940
  init_utils();
34780
35941
  init_buildURL();
@@ -34888,7 +36049,7 @@ var init_Axios = __esm({
34888
36049
  );
34889
36050
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
34890
36051
  let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
34891
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
36052
+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
34892
36053
  delete headers[method];
34893
36054
  });
34894
36055
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
@@ -34966,7 +36127,7 @@ var init_Axios = __esm({
34966
36127
  );
34967
36128
  };
34968
36129
  });
34969
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
36130
+ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
34970
36131
  function generateHTTPMethod(isForm) {
34971
36132
  return function httpMethod(url2, data, config) {
34972
36133
  return this.request(
@@ -34982,16 +36143,18 @@ var init_Axios = __esm({
34982
36143
  };
34983
36144
  }
34984
36145
  Axios.prototype[method] = generateHTTPMethod();
34985
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
36146
+ if (method !== "query") {
36147
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
36148
+ }
34986
36149
  });
34987
36150
  Axios_default = Axios;
34988
36151
  }
34989
36152
  });
34990
36153
 
34991
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/cancel/CancelToken.js
36154
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/CancelToken.js
34992
36155
  var CancelToken, CancelToken_default;
34993
36156
  var init_CancelToken = __esm({
34994
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/cancel/CancelToken.js"() {
36157
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/CancelToken.js"() {
34995
36158
  "use strict";
34996
36159
  init_CanceledError();
34997
36160
  CancelToken = class _CancelToken {
@@ -35094,33 +36257,33 @@ var init_CancelToken = __esm({
35094
36257
  }
35095
36258
  });
35096
36259
 
35097
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/spread.js
36260
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/spread.js
35098
36261
  function spread(callback) {
35099
36262
  return function wrap(arr) {
35100
36263
  return callback.apply(null, arr);
35101
36264
  };
35102
36265
  }
35103
36266
  var init_spread = __esm({
35104
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/spread.js"() {
36267
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/spread.js"() {
35105
36268
  "use strict";
35106
36269
  }
35107
36270
  });
35108
36271
 
35109
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/isAxiosError.js
36272
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isAxiosError.js
35110
36273
  function isAxiosError(payload) {
35111
36274
  return utils_default.isObject(payload) && payload.isAxiosError === true;
35112
36275
  }
35113
36276
  var init_isAxiosError = __esm({
35114
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/isAxiosError.js"() {
36277
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isAxiosError.js"() {
35115
36278
  "use strict";
35116
36279
  init_utils();
35117
36280
  }
35118
36281
  });
35119
36282
 
35120
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/HttpStatusCode.js
36283
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/HttpStatusCode.js
35121
36284
  var HttpStatusCode, HttpStatusCode_default;
35122
36285
  var init_HttpStatusCode = __esm({
35123
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/helpers/HttpStatusCode.js"() {
36286
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/HttpStatusCode.js"() {
35124
36287
  "use strict";
35125
36288
  HttpStatusCode = {
35126
36289
  Continue: 100,
@@ -35200,20 +36363,20 @@ var init_HttpStatusCode = __esm({
35200
36363
  }
35201
36364
  });
35202
36365
 
35203
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/axios.js
36366
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/axios.js
35204
36367
  function createInstance(defaultConfig) {
35205
36368
  const context = new Axios_default(defaultConfig);
35206
36369
  const instance = bind(Axios_default.prototype.request, context);
35207
36370
  utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
35208
36371
  utils_default.extend(instance, context, null, { allOwnKeys: true });
35209
- instance.create = function create(instanceConfig) {
36372
+ instance.create = function create2(instanceConfig) {
35210
36373
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
35211
36374
  };
35212
36375
  return instance;
35213
36376
  }
35214
36377
  var axios, axios_default;
35215
36378
  var init_axios = __esm({
35216
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/axios.js"() {
36379
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/axios.js"() {
35217
36380
  "use strict";
35218
36381
  init_utils();
35219
36382
  init_bind();
@@ -35256,10 +36419,10 @@ var init_axios = __esm({
35256
36419
  }
35257
36420
  });
35258
36421
 
35259
- // ../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/index.js
35260
- var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION2, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON, getAdapter2, mergeConfig2;
36422
+ // ../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/index.js
36423
+ var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION2, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON, getAdapter2, mergeConfig2, create;
35261
36424
  var init_axios2 = __esm({
35262
- "../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/index.js"() {
36425
+ "../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/index.js"() {
35263
36426
  "use strict";
35264
36427
  init_axios();
35265
36428
  ({
@@ -35278,7 +36441,8 @@ var init_axios2 = __esm({
35278
36441
  HttpStatusCode: HttpStatusCode2,
35279
36442
  formToJSON,
35280
36443
  getAdapter: getAdapter2,
35281
- mergeConfig: mergeConfig2
36444
+ mergeConfig: mergeConfig2,
36445
+ create
35282
36446
  } = axios_default);
35283
36447
  }
35284
36448
  });
@@ -35294,7 +36458,7 @@ function Fn(s3, t) {
35294
36458
  function kn(s3, t) {
35295
36459
  s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
35296
36460
  }
35297
- var import_events2, import_fs, import_node_events, import_node_stream, import_node_string_decoder, import_node_path, import_node_fs, import_path4, import_events3, import_assert, import_buffer, vs, import_zlib2, import_node_path2, import_node_path3, import_fs2, import_fs3, import_path5, import_node_path4, import_path6, import_node_fs2, import_node_assert, import_node_crypto, import_node_fs3, import_node_path5, import_fs4, import_node_fs4, import_node_path6, import_node_fs5, import_promises, import_node_path7, import_node_path8, import_node_fs6, import_node_path9, Dr, Ar, Ts, Cr, Fr, kr, q, j, rt, xe, jt, Le, xs, Ne, Ls, z, Mt, b, Qt, Bt, g, D, _, Si, De, L, w, yi, Ri, Ns, bi, Z, gi, Ae, Jt, yt, C, te, vr, Mr, Br, Pr, Ie, _i, zr, Ur, _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, A, Wr, ot, H, ee, m, Ti, J, xi, Ai, Ii, se, Ce, Ut, Ht, Li, Pt, ht, U, nt, Y, zt, Ni, Q, ie, Di, Fe, Rt, ke, bt, _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, gt, ve, _a3, _b3, _c3, _d3, _e3, _f3, _g3, _h3, _i3, _j2, _k2, _l2, _m2, tt, Wt, Gr, As, Is, Cs, Fs, ks, Zr, re, K, Kr, M, Vr, Ms, $r, Fi, Ot, Gt, ki, _t2, _i4, _s2, _n2, _r2, _e4, _o2, _a4, ne, _t3, _i5, _a5, Me, _t4, _a6, Be, Pe, ze, Ue, He, We, Ge, Ze, Bs, qr, jr, Ps, Qr, Jr, zs, Us, Mi, oe, en, he, Ye, _t5, _i6, i_fn, _a7, F, sn, Tt, Bi, rn, at, nn, on, hn, lt, an, ln, cn, Pi, fn, xt, ct, un, mn, pn, En, f, _t6, t_fn, _a8, Yt, Lt, Sn, Gi, Zi, yn, B, Nt, et, zi, Hs, V, ae, ft, Ws, p, it, dt, Ui, Dt, y, Ke, Ve, Hi, Gs, Zs, le, Wi, $e, Kt, ut, Xe, At, qe, je, Ys, Rn, _a9, _b4, _c4, _d4, _e5, _f4, _g4, _h4, _i7, _j3, _k3, _l3, _m3, _n3, _o3, _p2, _q2, st, mt, _n4, Yi, On, Tn, It, Ki, Ln, Ks, ce, Qe, Vi, Nn, Dn, $i, Vs, tr, An, qs, js, Qs, qi, Js, fe, Je, ji, ti, Qi, Ji, ts, es, pt, ei, is, Xi, X, _t7, _a10, de, ii, si, In, ri, ue, fi, er, ni, me, W, Ct, Ft, pe, ss, G2, rs, oi, ir, hs, as, hi, ai, sr, ns, li, nr, os, _a11, _b5, _c5, _d5, _e6, Et, kt, vn, Mn, hr, ar, Bn, Pn, zn, Un, Hn, Wn, Gn, Zn, cr, Yn, Kn, Vn, ls, cs, di, $n, fs2, Xn, ds, we, wt, jn, fr, us, dr, Qn, ur, ms, mr, $t, pr, Jn, to, eo, _t8, _i8, _s3, _n5, n_fn, _r3, r_fn, _e7, e_fn, _a12, pi, wr, Sr, Ss, yr, ys, P, Rs, bs, wi, Rr, br, ye, gr, _r4, ps, St, O, Ei, Or, Xt, Es, ws, gs, Re, be, ge, _e8, so, Oe, ro, no, oo, Tr, _a13, _b6, _c6, qt, Se, Te, ho, ao, lo, co, fo, uo, mo, po, vt, Eo, wo;
36461
+ var import_events2, import_fs, import_node_events, import_node_stream, import_node_string_decoder, import_node_path, import_node_fs, import_path5, import_events3, import_assert, import_buffer, vs, import_zlib2, import_node_path2, import_node_path3, import_fs2, import_fs3, import_path6, import_node_path4, import_path7, import_node_fs2, import_node_assert, import_node_crypto, import_node_fs3, import_node_path5, import_fs4, import_node_fs4, import_node_path6, import_node_fs5, import_promises, import_node_path7, import_node_path8, import_node_fs6, import_node_path9, Dr, Ar, Ts, Cr, Fr, kr, q, j, rt, xe, jt, Le, xs, Ne, Ls, z, Mt, b, Qt, Bt, g, D, _, Si, De, L, w, yi, Ri, Ns, bi, Z, gi, Ae, Jt, yt, C, te, vr, Mr, Br, Pr, Ie, _i, zr, Ur, _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, A, Wr, ot, H, ee, m, Ti, J, xi, Ai, Ii, se, Ce, Ut, Ht, Li, Pt, ht, U, nt, Y, zt, Ni, Q, ie, Di, Fe, Rt, ke, bt, _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, gt, ve, _a3, _b3, _c3, _d3, _e3, _f3, _g3, _h3, _i3, _j2, _k2, _l2, _m2, tt, Wt, Gr, As, Is, Cs, Fs, ks, Zr, re, K, Kr, M, Vr, Ms, $r, Fi, Ot, Gt, ki, _t2, _i4, _s2, _n2, _r2, _e4, _o2, _a4, ne, _t3, _i5, _a5, Me, _t4, _a6, Be, Pe, ze, Ue, He, We, Ge, Ze, Bs, qr, jr, Ps, Qr, Jr, zs, Us, Mi, oe, en, he, Ye, _t5, _i6, i_fn, _a7, F, sn, Tt, Bi, rn, at, nn, on, hn, lt, an, ln, cn, Pi, fn, xt, ct, un, mn, pn, En, f, _t6, t_fn, _a8, Yt, Lt, Sn, Gi, Zi, yn, B, Nt, et, zi, Hs, V, ae, ft, Ws, p, it, dt, Ui, Dt, y, Ke, Ve, Hi, Gs, Zs, le, Wi, $e, Kt, ut, Xe, At, qe, je, Ys, Rn, _a9, _b4, _c4, _d4, _e5, _f4, _g4, _h4, _i7, _j3, _k3, _l3, _m3, _n3, _o3, _p2, _q2, st, mt, _n4, Yi, On, Tn, It, Ki, Ln, Ks, ce, Qe, Vi, Nn, Dn, $i, Vs, tr, An, qs, js, Qs, qi, Js, fe, Je, ji, ti, Qi, Ji, ts, es, pt, ei, is, Xi, X, _t7, _a10, de, ii, si, In, ri, ue, fi, er, ni, me, W, Ct, Ft, pe, ss, G2, rs, oi, ir, hs, as, hi, ai, sr, ns, li, nr, os, _a11, _b5, _c5, _d5, _e6, Et, kt, vn, Mn, hr, ar, Bn, Pn, zn, Un, Hn, Wn, Gn, Zn, cr, Yn, Kn, Vn, ls, cs, di, $n, fs2, Xn, ds, we, wt, jn, fr, us, dr, Qn, ur, ms, mr, $t, pr, Jn, to, eo, _t8, _i8, _s3, _n5, n_fn, _r3, r_fn, _e7, e_fn, _a12, pi, wr, Sr, Ss, yr, ys, P, Rs, bs, wi, Rr, br, ye, gr, _r4, ps, St, O, Ei, Or, Xt, Es, ws, gs, Re, be, ge, _e8, so, Oe, ro, no, oo, Tr, _a13, _b6, _c6, qt, Se, Te, ho, ao, lo, co, fo, uo, mo, po, vt, Eo, wo;
35298
36462
  var init_index_min = __esm({
35299
36463
  "../../../node_modules/.pnpm/tar@7.5.10/node_modules/tar/dist/esm/index.min.js"() {
35300
36464
  "use strict";
@@ -35305,7 +36469,7 @@ var init_index_min = __esm({
35305
36469
  import_node_string_decoder = require("string_decoder");
35306
36470
  import_node_path = __toESM(require("path"));
35307
36471
  import_node_fs = __toESM(require("fs"));
35308
- import_path4 = require("path");
36472
+ import_path5 = require("path");
35309
36473
  import_events3 = require("events");
35310
36474
  import_assert = __toESM(require("assert"));
35311
36475
  import_buffer = require("buffer");
@@ -35315,9 +36479,9 @@ var init_index_min = __esm({
35315
36479
  import_node_path3 = require("path");
35316
36480
  import_fs2 = __toESM(require("fs"));
35317
36481
  import_fs3 = __toESM(require("fs"));
35318
- import_path5 = __toESM(require("path"));
35319
- import_node_path4 = require("path");
35320
36482
  import_path6 = __toESM(require("path"));
36483
+ import_node_path4 = require("path");
36484
+ import_path7 = __toESM(require("path"));
35321
36485
  import_node_fs2 = __toESM(require("fs"));
35322
36486
  import_node_assert = __toESM(require("assert"));
35323
36487
  import_node_crypto = require("crypto");
@@ -36767,12 +37931,12 @@ var init_index_min = __esm({
36767
37931
  };
36768
37932
  Yi = (s3, t) => {
36769
37933
  let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
36770
- let h = o || (0, import_path4.parse)(n).root || ".", a;
37934
+ let h = o || (0, import_path5.parse)(n).root || ".", a;
36771
37935
  if (n === h)
36772
37936
  a = false;
36773
37937
  else {
36774
37938
  let l = e.get(n);
36775
- l !== void 0 ? a = l : a = r((0, import_path4.dirname)(n), h);
37939
+ l !== void 0 ? a = l : a = r((0, import_path5.dirname)(n), h);
36776
37940
  }
36777
37941
  return e.set(n, a), a;
36778
37942
  };
@@ -36896,7 +38060,7 @@ var init_index_min = __esm({
36896
38060
  let [o, h] = ce(this.path);
36897
38061
  o && typeof h == "string" && (this.path = h, r = o);
36898
38062
  }
36899
- this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = Vs(this.path.replace(/\\/g, "/")), t = t.replace(/\\/g, "/")), this.absolute = f(i.absolute || import_path5.default.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
38063
+ this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = Vs(this.path.replace(/\\/g, "/")), t = t.replace(/\\/g, "/")), this.absolute = f(i.absolute || import_path6.default.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
36900
38064
  let n = this.statCache.get(this.absolute);
36901
38065
  n ? this[ti](n) : this[ji]();
36902
38066
  }
@@ -36962,7 +38126,7 @@ var init_index_min = __esm({
36962
38126
  [Js](t) {
36963
38127
  if (!this.stat)
36964
38128
  throw new Error("cannot create link entry without stat");
36965
- this.type = "Link", this.linkpath = f(import_path5.default.relative(this.cwd, t)), this.stat.size = 0, this[fe](), this.end();
38129
+ this.type = "Link", this.linkpath = f(import_path6.default.relative(this.cwd, t)), this.stat.size = 0, this[fe](), this.end();
36966
38130
  }
36967
38131
  [js]() {
36968
38132
  if (!this.stat)
@@ -37427,7 +38591,7 @@ var init_index_min = __esm({
37427
38591
  return t instanceof Yt ? this[ir](t) : this[oi](t), this.flowing;
37428
38592
  }
37429
38593
  [ir](t) {
37430
- let e = f(import_path6.default.resolve(this.cwd, t.path));
38594
+ let e = f(import_path7.default.resolve(this.cwd, t.path));
37431
38595
  if (!this.filter(t.path, t))
37432
38596
  t.resume();
37433
38597
  else {
@@ -37437,7 +38601,7 @@ var init_index_min = __esm({
37437
38601
  this[Ft]();
37438
38602
  }
37439
38603
  [oi](t) {
37440
- let e = f(import_path6.default.resolve(this.cwd, t));
38604
+ let e = f(import_path7.default.resolve(this.cwd, t));
37441
38605
  this[W].push(new fi(t, e)), this[Ft]();
37442
38606
  }
37443
38607
  [hs](t) {
@@ -38761,7 +39925,7 @@ function downloadWithNpmPack(pkgName, pkgVersion, targetDir, options) {
38761
39925
  })
38762
39926
  });
38763
39927
  const tarballFileName = stdout.trim();
38764
- const tarballPath = import_path7.default.join(tempDir, tarballFileName);
39928
+ const tarballPath = import_path8.default.join(tempDir, tarballFileName);
38765
39929
  if (!(yield fsExists(tarballPath))) {
38766
39930
  throw new Error(`npm pack failed: tarball file ${tarballPath} not found`);
38767
39931
  }
@@ -38833,12 +39997,12 @@ function downloadPackage(_0) {
38833
39997
  return targetDir;
38834
39998
  });
38835
39999
  }
38836
- var import_os, import_path7, GeneratorVersionMap;
40000
+ var import_os, import_path8, GeneratorVersionMap;
38837
40001
  var init_downloadPackage = __esm({
38838
40002
  "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js"() {
38839
40003
  "use strict";
38840
40004
  import_os = __toESM(require("os"));
38841
- import_path7 = __toESM(require("path"));
40005
+ import_path8 = __toESM(require("path"));
38842
40006
  init_constants3();
38843
40007
  init_execa();
38844
40008
  init_fs_extra();
@@ -38899,11 +40063,11 @@ function getGeneratorDir(generator) {
38899
40063
  let result = generator;
38900
40064
  const isDirectory = (yield import_fs_extra.default.stat(generator)).isDirectory();
38901
40065
  if (!isDirectory) {
38902
- result = import_path8.default.dirname(generator);
40066
+ result = import_path9.default.dirname(generator);
38903
40067
  }
38904
40068
  let times = 0;
38905
- while (times < MaxTimes && !(yield fsExists(import_path8.default.join(result, "package.json")))) {
38906
- result = import_path8.default.join(result, "../");
40069
+ while (times < MaxTimes && !(yield fsExists(import_path9.default.join(result, "package.json")))) {
40070
+ result = import_path9.default.join(result, "../");
38907
40071
  times++;
38908
40072
  }
38909
40073
  if (times >= MaxTimes) {
@@ -38912,11 +40076,11 @@ function getGeneratorDir(generator) {
38912
40076
  return result;
38913
40077
  });
38914
40078
  }
38915
- var import_path8, MaxTimes;
40079
+ var import_path9, MaxTimes;
38916
40080
  var init_getGeneratorDir = __esm({
38917
40081
  "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js"() {
38918
40082
  "use strict";
38919
- import_path8 = __toESM(require("path"));
40083
+ import_path9 = __toESM(require("path"));
38920
40084
  init_fs_extra();
38921
40085
  init_fsExists();
38922
40086
  MaxTimes = 5;
@@ -44420,12 +45584,12 @@ var init_ora = __esm({
44420
45584
  });
44421
45585
 
44422
45586
  // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
44423
- var import_events4, import_path9, GeneratorCore;
45587
+ var import_events4, import_path10, GeneratorCore;
44424
45588
  var init_generator = __esm({
44425
45589
  "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js"() {
44426
45590
  "use strict";
44427
45591
  import_events4 = require("events");
44428
- import_path9 = __toESM(require("path"));
45592
+ import_path10 = __toESM(require("path"));
44429
45593
  init_FsMaterial();
44430
45594
  init_utils3();
44431
45595
  init_getGeneratorDir();
@@ -44532,9 +45696,9 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
44532
45696
  (_this_logger = this.logger) === null || _this_logger === void 0 ? void 0 : (_this_logger_timing = _this_logger.timing) === null || _this_logger_timing === void 0 ? void 0 : _this_logger_timing.call(_this_logger, `🕒 LoadGenerator ${generator}`);
44533
45697
  let generatorPath = generator;
44534
45698
  if (generator.startsWith("file:")) {
44535
- generatorPath = import_path9.default.join(this.basePath, generator.slice(5));
45699
+ generatorPath = import_path10.default.join(this.basePath, generator.slice(5));
44536
45700
  }
44537
- const loadGeneratorPromise = import_path9.default.isAbsolute(generatorPath) ? this.loadLocalGenerator(generatorPath) : this.loadRemoteGenerator(generator);
45701
+ const loadGeneratorPromise = import_path10.default.isAbsolute(generatorPath) ? this.loadLocalGenerator(generatorPath) : this.loadRemoteGenerator(generator);
44538
45702
  const { generatorPkg, pkgJson, materialKey } = yield loadGeneratorPromise;
44539
45703
  if (!generatorPkg || !pkgJson || !materialKey) {
44540
45704
  return {};
@@ -44593,7 +45757,7 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
44593
45757
  const subContext = __spreadProps(__spreadValues({}, this._context), {
44594
45758
  config: __spreadValues(__spreadValues({}, this._context.config), config),
44595
45759
  materials: __spreadProps(__spreadValues({}, this._context.materials), {
44596
- default: new FsMaterial(import_path9.default.resolve(this.outputPath, relativePwdPath))
45760
+ default: new FsMaterial(import_path10.default.resolve(this.outputPath, relativePwdPath))
44597
45761
  }),
44598
45762
  current: {
44599
45763
  material: generatorPkg
@@ -44601,7 +45765,7 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
44601
45765
  });
44602
45766
  const preOutputPath = this.outputPath;
44603
45767
  const preBasePath = this.basePath;
44604
- this.setOutputPath(import_path9.default.resolve(this.outputPath, relativePwdPath || ""));
45768
+ this.setOutputPath(import_path10.default.resolve(this.outputPath, relativePwdPath || ""));
44605
45769
  this.setbasePath(subContext.current.material.basePath);
44606
45770
  spinner.stop();
44607
45771
  yield generatorScript(subContext, this);
@@ -44627,8 +45791,8 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
44627
45791
  constructor({ logger, materialsManager, outputPath }) {
44628
45792
  this.output = {
44629
45793
  fs: (file, content, options) => __async(this, null, function* () {
44630
- const filePath = import_path9.default.resolve(this.outputPath, file.toString());
44631
- yield import_fs_extra.default.mkdirp(import_path9.default.dirname(filePath));
45794
+ const filePath = import_path10.default.resolve(this.outputPath, file.toString());
45795
+ yield import_fs_extra.default.mkdirp(import_path10.default.dirname(filePath));
44632
45796
  yield import_fs_extra.default.writeFile(filePath, content, options);
44633
45797
  })
44634
45798
  };
@@ -44650,16 +45814,16 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
44650
45814
  });
44651
45815
 
44652
45816
  // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
44653
- var import_path10, MaterialsManager;
45817
+ var import_path11, MaterialsManager;
44654
45818
  var init_materials = __esm({
44655
45819
  "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js"() {
44656
45820
  "use strict";
44657
- import_path10 = __toESM(require("path"));
45821
+ import_path11 = __toESM(require("path"));
44658
45822
  init_utils3();
44659
45823
  init_FsMaterial();
44660
45824
  MaterialsManager = class {
44661
45825
  loadLocalGenerator(generator) {
44662
- if (!import_path10.default.isAbsolute(generator)) {
45826
+ if (!import_path11.default.isAbsolute(generator)) {
44663
45827
  return Promise.reject(new Error("only support absolute local path"));
44664
45828
  }
44665
45829
  const fsMaterial = new FsMaterial(generator);
@@ -44724,11 +45888,11 @@ var init_materials = __esm({
44724
45888
  });
44725
45889
 
44726
45890
  // ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
44727
- var import_path11, CodeSmith;
45891
+ var import_path12, CodeSmith;
44728
45892
  var init_codesmith = __esm({
44729
45893
  "../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js"() {
44730
45894
  "use strict";
44731
- import_path11 = __toESM(require("path"));
45895
+ import_path12 = __toESM(require("path"));
44732
45896
  init_generator();
44733
45897
  init_logger();
44734
45898
  init_constants();
@@ -44744,7 +45908,7 @@ var init_codesmith = __esm({
44744
45908
  materialsManager: this.materialsManager,
44745
45909
  outputPath: pwd || process.cwd()
44746
45910
  });
44747
- this.core.addMaterial("default", new FsMaterial(import_path11.default.resolve(pwd || process.cwd())));
45911
+ this.core.addMaterial("default", new FsMaterial(import_path12.default.resolve(pwd || process.cwd())));
44748
45912
  try {
44749
45913
  for (const task of tasks) {
44750
45914
  yield this.runTask(task);