@alpic-ai/sdk 0.0.0-dev.gf3a6f50 → 0.0.0-dev.gf3ec10e

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.
@@ -9132,9 +9132,9 @@ var require_asynckit = __commonJS({
9132
9132
  }
9133
9133
  });
9134
9134
 
9135
- // ../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
9135
+ // ../../node_modules/.pnpm/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js
9136
9136
  var require_es_object_atoms = __commonJS({
9137
- "../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
9137
+ "../../node_modules/.pnpm/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js"(exports, module) {
9138
9138
  "use strict";
9139
9139
  module.exports = Object;
9140
9140
  }
@@ -11538,9 +11538,9 @@ var require_dist = __commonJS({
11538
11538
  }
11539
11539
  });
11540
11540
 
11541
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
11541
+ // ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
11542
11542
  var require_debug = __commonJS({
11543
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
11543
+ "../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
11544
11544
  var debug3;
11545
11545
  module.exports = function() {
11546
11546
  if (!debug3) {
@@ -11558,9 +11558,9 @@ var require_debug = __commonJS({
11558
11558
  }
11559
11559
  });
11560
11560
 
11561
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
11561
+ // ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
11562
11562
  var require_follow_redirects = __commonJS({
11563
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
11563
+ "../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
11564
11564
  var url2 = __require("url");
11565
11565
  var URL2 = url2.URL;
11566
11566
  var http3 = __require("http");
@@ -11788,8 +11788,14 @@ var require_follow_redirects = __commonJS({
11788
11788
  RedirectableRequest.prototype._sanitizeOptions = function(options) {
11789
11789
  if (!options.headers) {
11790
11790
  options.headers = {};
11791
+ } else if (Array.isArray(options.headers)) {
11792
+ var headerList = options.headers;
11793
+ options.headers = {};
11794
+ for (var i = 0; i < headerList.length; i += 2) {
11795
+ options.headers[headerList[i]] = headerList[i + 1];
11796
+ }
11791
11797
  }
11792
- if (!isArray2(options.sensitiveHeaders)) {
11798
+ if (!Array.isArray(options.sensitiveHeaders)) {
11793
11799
  options.sensitiveHeaders = [];
11794
11800
  }
11795
11801
  if (options.host) {
@@ -12046,9 +12052,6 @@ var require_follow_redirects = __commonJS({
12046
12052
  var dot = subdomain.length - domain.length - 1;
12047
12053
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
12048
12054
  }
12049
- function isArray2(value) {
12050
- return value instanceof Array;
12051
- }
12052
12055
  function isString2(value) {
12053
12056
  return typeof value === "string" || value instanceof String;
12054
12057
  }
@@ -12062,41 +12065,101 @@ var require_follow_redirects = __commonJS({
12062
12065
  return URL2 && value instanceof URL2;
12063
12066
  }
12064
12067
  function escapeRegex(regex) {
12065
- return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
12068
+ return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
12066
12069
  }
12067
12070
  module.exports = wrap({ http: http3, https: https2 });
12068
12071
  module.exports.wrap = wrap;
12069
12072
  }
12070
12073
  });
12071
12074
 
12072
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12075
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12073
12076
  function bind(fn, thisArg) {
12074
12077
  return function wrap() {
12075
12078
  return fn.apply(thisArg, arguments);
12076
12079
  };
12077
12080
  }
12078
12081
 
12079
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12082
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12080
12083
  var { toString } = Object.prototype;
12081
12084
  var { getPrototypeOf } = Object;
12082
12085
  var { iterator, toStringTag } = Symbol;
12083
12086
  var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12087
+ var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
12088
+ var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
12089
+ var isSafeAndFullyMutable = (obj) => {
12090
+ if (!Object.isExtensible(obj)) {
12091
+ return false;
12092
+ }
12093
+ const props = Object.getOwnPropertyNames(obj);
12094
+ if (Object.getOwnPropertySymbols) {
12095
+ props.push(...Object.getOwnPropertySymbols(obj));
12096
+ }
12097
+ return props.every((prop) => {
12098
+ if (isUnsafeObjectKey(prop)) {
12099
+ return false;
12100
+ }
12101
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
12102
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
12103
+ });
12104
+ };
12084
12105
  var hasOwnInPrototypeChain = (thing, prop) => {
12085
12106
  let obj = thing;
12086
12107
  const seen = [];
12087
- while (obj != null && obj !== Object.prototype) {
12108
+ while (obj != null) {
12088
12109
  if (seen.indexOf(obj) !== -1) {
12089
12110
  return false;
12090
12111
  }
12091
12112
  seen.push(obj);
12113
+ const prototype2 = getPrototypeOf(obj);
12114
+ if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
12115
+ return false;
12116
+ }
12092
12117
  if (hasOwnProperty(obj, prop)) {
12093
12118
  return true;
12094
12119
  }
12095
- obj = getPrototypeOf(obj);
12120
+ obj = prototype2;
12096
12121
  }
12097
12122
  return false;
12098
12123
  };
12099
12124
  var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
12125
+ var toSafeFlatObject = (thing) => {
12126
+ if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
12127
+ return thing;
12128
+ }
12129
+ const sourcePrototype = getPrototypeOf(thing);
12130
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
12131
+ return thing;
12132
+ }
12133
+ const result = /* @__PURE__ */ Object.create(null);
12134
+ const merged = /* @__PURE__ */ Object.create(null);
12135
+ const seen = [];
12136
+ let current = thing;
12137
+ while (current != null) {
12138
+ if (seen.indexOf(current) !== -1) {
12139
+ break;
12140
+ }
12141
+ seen.push(current);
12142
+ const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
12143
+ if (isPrototypeBoundary(current, prototype2, current === thing)) {
12144
+ break;
12145
+ }
12146
+ const props = Object.getOwnPropertyNames(current);
12147
+ if (Object.getOwnPropertySymbols) {
12148
+ props.push(...Object.getOwnPropertySymbols(current));
12149
+ }
12150
+ for (const prop of props) {
12151
+ if (isUnsafeObjectKey(prop)) {
12152
+ continue;
12153
+ }
12154
+ if (!hasOwnProperty(merged, prop)) {
12155
+ result[prop] = thing[prop];
12156
+ merged[prop] = true;
12157
+ }
12158
+ }
12159
+ current = prototype2;
12160
+ }
12161
+ return result;
12162
+ };
12100
12163
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
12101
12164
  const str = toString.call(thing);
12102
12165
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -12131,10 +12194,16 @@ var isPlainObject = (val) => {
12131
12194
  return false;
12132
12195
  }
12133
12196
  const prototype2 = getPrototypeOf(val);
12134
- return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
12135
- // Symbol.iterator as evidence the value is a tagged/iterable type rather
12136
- // than a plain object, while ignoring keys injected onto Object.prototype.
12137
- !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
12197
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat own Symbol.toStringTag or Symbol.iterator members as evidence the
12198
+ // value is tagged/iterable, ignoring members reachable only through shared
12199
+ // or terminal prototype boundaries. This is exactly what
12200
+ // hasOwnInPrototypeChain(val, prop) computes here: every prototype admitted
12201
+ // above (null, Object.prototype, or a terminal null-prototype template) is
12202
+ // a boundary, so the walk never inspects anything but `val`'s own members,
12203
+ // and stops before even those when `val` is itself the boundary
12204
+ // Object.prototype. Checking that inline avoids allocating the walker's
12205
+ // `seen` list twice per call on the mergeConfig / merge hot path.
12206
+ (isPrototypeBoundary(val, prototype2, true) || !hasOwnProperty(val, toStringTag) && !hasOwnProperty(val, iterator));
12138
12207
  };
12139
12208
  var isEmptyObject = (val) => {
12140
12209
  if (!isObject(val) || isBuffer(val)) {
@@ -12235,11 +12304,21 @@ var isContextDefined = (context) => !isUndefined(context) && context !== _global
12235
12304
  function merge(...objs) {
12236
12305
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
12237
12306
  const result = {};
12307
+ const lowerCaseKeys = caseless ? /* @__PURE__ */ Object.create(null) : null;
12238
12308
  const assignValue = (val, key) => {
12239
12309
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
12240
12310
  return;
12241
12311
  }
12242
- const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
12312
+ let targetKey = key;
12313
+ if (lowerCaseKeys && typeof key === "string") {
12314
+ const lowerKey = key.toLowerCase();
12315
+ const knownKey = lowerCaseKeys[lowerKey];
12316
+ if (knownKey !== void 0 && hasOwnProperty(result, knownKey)) {
12317
+ targetKey = knownKey;
12318
+ } else {
12319
+ lowerCaseKeys[lowerKey] = key;
12320
+ }
12321
+ }
12243
12322
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12244
12323
  if (isPlainObject(existing) && isPlainObject(val)) {
12245
12324
  result[targetKey] = merge(existing, val);
@@ -12257,7 +12336,7 @@ function merge(...objs) {
12257
12336
  continue;
12258
12337
  }
12259
12338
  forEach(source, assignValue);
12260
- if (typeof source !== "object" || isArray(source)) {
12339
+ if (typeof source !== "object" || isArray(source) || !Object.getOwnPropertySymbols) {
12261
12340
  continue;
12262
12341
  }
12263
12342
  const symbols = Object.getOwnPropertySymbols(source);
@@ -12353,7 +12432,24 @@ var toArray = (thing) => {
12353
12432
  if (!thing) return null;
12354
12433
  if (isArray(thing)) return thing;
12355
12434
  let i = thing.length;
12356
- if (!isNumber(i)) return null;
12435
+ if (!Number.isSafeInteger(i) || i < 0 || i > 4294967295) return null;
12436
+ const indexes = /* @__PURE__ */ new Set();
12437
+ const seen = /* @__PURE__ */ new Set();
12438
+ let source = thing;
12439
+ while (source != null && indexes.size < i) {
12440
+ if (seen.has(source)) return null;
12441
+ seen.add(source);
12442
+ const prototype2 = getPrototypeOf(source);
12443
+ if (isPrototypeBoundary(source, prototype2, source === thing)) break;
12444
+ Object.getOwnPropertyNames(source).forEach((key) => {
12445
+ const index = +key;
12446
+ if (Number.isInteger(index) && index >= 0 && index < i && String(index) === key && hasOwnProperty(source, key)) {
12447
+ indexes.add(index);
12448
+ }
12449
+ });
12450
+ source = prototype2;
12451
+ }
12452
+ if (indexes.size !== i) return null;
12357
12453
  const arr = new Array(i);
12358
12454
  while (i-- > 0) {
12359
12455
  arr[i] = thing[i];
@@ -12544,6 +12640,7 @@ var utils_default = {
12544
12640
  // an alias to avoid ESLint no-prototype-builtins detection
12545
12641
  hasOwnInPrototypeChain,
12546
12642
  getSafeProp,
12643
+ toSafeFlatObject,
12547
12644
  reduceDescriptors,
12548
12645
  freezeMethods,
12549
12646
  toObjectSet,
@@ -12563,7 +12660,7 @@ var utils_default = {
12563
12660
  isSafeIterable
12564
12661
  };
12565
12662
 
12566
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12663
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12567
12664
  var ignoreDuplicateOf = utils_default.toObjectSet([
12568
12665
  "age",
12569
12666
  "authorization",
@@ -12584,7 +12681,7 @@ var ignoreDuplicateOf = utils_default.toObjectSet([
12584
12681
  "user-agent"
12585
12682
  ]);
12586
12683
  var parseHeaders_default = (rawHeaders) => {
12587
- const parsed = {};
12684
+ const parsed = /* @__PURE__ */ Object.create(null);
12588
12685
  let key;
12589
12686
  let val;
12590
12687
  let i;
@@ -12609,7 +12706,7 @@ var parseHeaders_default = (rawHeaders) => {
12609
12706
  return parsed;
12610
12707
  };
12611
12708
 
12612
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12709
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12613
12710
  function trimSPorHTAB(str) {
12614
12711
  let start = 0;
12615
12712
  let end = str.length;
@@ -12647,7 +12744,7 @@ function toByteStringHeaderObject(headers) {
12647
12744
  return byteStringHeaders;
12648
12745
  }
12649
12746
 
12650
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12747
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12651
12748
  var $internals = /* @__PURE__ */ Symbol("internals");
12652
12749
  function normalizeHeader(header) {
12653
12750
  return header && String(header).trim().toLowerCase();
@@ -12752,9 +12849,11 @@ function parseParameters(value) {
12752
12849
  return parameters;
12753
12850
  }
12754
12851
  var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12852
+ var PROTO_HEADER_SLOT = "__Proto__";
12853
+ var headerSlot = (name) => name === "__proto__" ? PROTO_HEADER_SLOT : name;
12755
12854
  function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12756
12855
  if (utils_default.isFunction(filter2)) {
12757
- return filter2.call(this, value, header);
12856
+ return filter2.call(context, value, header);
12758
12857
  }
12759
12858
  if (isHeaderNameFilter) {
12760
12859
  value = header;
@@ -12799,7 +12898,7 @@ var AxiosHeaders = class {
12799
12898
  }
12800
12899
  const key = utils_default.findKey(self2, lHeader);
12801
12900
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
12802
- self2[key || _header] = normalizeValue(_value);
12901
+ self2[headerSlot(key || _header)] = normalizeValue(_value);
12803
12902
  }
12804
12903
  }
12805
12904
  const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
@@ -12892,7 +12991,7 @@ var AxiosHeaders = class {
12892
12991
  }
12893
12992
  normalize(format) {
12894
12993
  const self2 = this;
12895
- const headers = {};
12994
+ const headers = /* @__PURE__ */ Object.create(null);
12896
12995
  utils_default.forEach(this, (value, header) => {
12897
12996
  const key = utils_default.findKey(headers, header);
12898
12997
  if (key) {
@@ -12900,7 +12999,7 @@ var AxiosHeaders = class {
12900
12999
  delete self2[header];
12901
13000
  return;
12902
13001
  }
12903
- const normalized = format ? formatHeader(header) : String(header).trim();
13002
+ const normalized = headerSlot(format ? formatHeader(header) : String(header).trim());
12904
13003
  if (normalized !== header) {
12905
13004
  delete self2[header];
12906
13005
  }
@@ -12980,7 +13079,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12980
13079
  utils_default.freezeMethods(AxiosHeaders);
12981
13080
  var AxiosHeaders_default = AxiosHeaders;
12982
13081
 
12983
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
13082
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
12984
13083
  var REDACTED = "[REDACTED ****]";
12985
13084
  function hasOwnOrPrototypeToJSON(source) {
12986
13085
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -13050,6 +13149,28 @@ function aggregateErrorMessage(error) {
13050
13149
  }).filter(Boolean).join("; ");
13051
13150
  return message || error.name || "AggregateError";
13052
13151
  }
13152
+ var CAUSED_BY_SEPARATOR = "\nCaused by: ";
13153
+ var $causeStack = /* @__PURE__ */ Symbol("causeStack");
13154
+ function getCauseStackIndex(error, stack) {
13155
+ const causeStack = utils_default.hasOwnProp(error, $causeStack) && error[$causeStack];
13156
+ return causeStack && stack.endsWith(causeStack) ? stack.length - causeStack.length : -1;
13157
+ }
13158
+ function appendCauseStack(target, source) {
13159
+ try {
13160
+ const sourceStack = source && source.stack;
13161
+ if (typeof sourceStack !== "string" || !sourceStack) {
13162
+ return;
13163
+ }
13164
+ const targetStack = target.stack;
13165
+ if (typeof targetStack !== "string" || !targetStack) {
13166
+ return;
13167
+ }
13168
+ const causeStack = CAUSED_BY_SEPARATOR + sourceStack;
13169
+ target.stack = targetStack + causeStack;
13170
+ Object.defineProperty(target, $causeStack, { __proto__: null, value: causeStack });
13171
+ } catch (e) {
13172
+ }
13173
+ }
13053
13174
  var AxiosError = class _AxiosError extends Error {
13054
13175
  static from(error, code, config, request, response, customProps) {
13055
13176
  let message = error.message;
@@ -13065,6 +13186,7 @@ var AxiosError = class _AxiosError extends Error {
13065
13186
  configurable: true
13066
13187
  });
13067
13188
  axiosError.name = error.name;
13189
+ appendCauseStack(axiosError, error);
13068
13190
  if (error.status != null && axiosError.status == null) {
13069
13191
  axiosError.status = error.status;
13070
13192
  }
@@ -13142,11 +13264,11 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
13142
13264
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
13143
13265
  var AxiosError_default = AxiosError;
13144
13266
 
13145
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
13267
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
13146
13268
  var import_form_data = __toESM(require_form_data(), 1);
13147
13269
  var FormData_default = import_form_data.default;
13148
13270
 
13149
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13271
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13150
13272
  var Buffer_default = {
13151
13273
  isBufferAvailable() {
13152
13274
  return typeof Buffer !== "undefined";
@@ -13156,7 +13278,7 @@ var Buffer_default = {
13156
13278
  }
13157
13279
  };
13158
13280
 
13159
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13281
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13160
13282
  var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
13161
13283
  function isVisitable(thing) {
13162
13284
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
@@ -13182,24 +13304,16 @@ function toFormData(obj, formData, options) {
13182
13304
  throw new TypeError("target must be an object");
13183
13305
  }
13184
13306
  formData = formData || new (FormData_default || FormData)();
13185
- options = utils_default.toFlatObject(
13186
- options,
13187
- {
13188
- metaTokens: true,
13189
- dots: false,
13190
- indexes: false
13191
- },
13192
- false,
13193
- function defined(option, source) {
13194
- return !utils_default.isUndefined(source[option]);
13195
- }
13196
- );
13197
- const metaTokens = options.metaTokens;
13198
- const visitor = options.visitor || defaultVisitor;
13199
- const dots = options.dots;
13200
- const indexes = options.indexes;
13201
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13202
- const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
13307
+ const option = (name, fallback) => {
13308
+ const value = utils_default.getSafeProp(options, name);
13309
+ return utils_default.isUndefined(value) ? fallback : value;
13310
+ };
13311
+ const metaTokens = option("metaTokens", true);
13312
+ const visitor = option("visitor") || defaultVisitor;
13313
+ const dots = option("dots", false);
13314
+ const indexes = option("indexes", false);
13315
+ const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
13316
+ const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
13203
13317
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
13204
13318
  const stack = [];
13205
13319
  if (!utils_default.isFunction(visitor)) {
@@ -13223,7 +13337,10 @@ function toFormData(obj, formData, options) {
13223
13337
  if (Buffer_default && Buffer_default.isBufferAvailable()) {
13224
13338
  return Buffer_default.from(value);
13225
13339
  }
13226
- throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
13340
+ throw new AxiosError_default(
13341
+ "Blob is not supported. Use a Buffer instead.",
13342
+ AxiosError_default.ERR_NOT_SUPPORT
13343
+ );
13227
13344
  }
13228
13345
  return value;
13229
13346
  }
@@ -13308,7 +13425,7 @@ function toFormData(obj, formData, options) {
13308
13425
  }
13309
13426
  var toFormData_default = toFormData;
13310
13427
 
13311
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13428
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13312
13429
  function encode(str) {
13313
13430
  const charMap = {
13314
13431
  "!": "%21",
@@ -13338,7 +13455,7 @@ prototype.toString = function toString2(encoder) {
13338
13455
  };
13339
13456
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13340
13457
 
13341
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13458
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13342
13459
  function encode2(val) {
13343
13460
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13344
13461
  }
@@ -13368,10 +13485,54 @@ function buildURL(url2, params, options) {
13368
13485
  return url2;
13369
13486
  }
13370
13487
 
13371
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13488
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13489
+ var $internals2 = /* @__PURE__ */ Symbol("internals");
13490
+ function countHandlers(handlers) {
13491
+ return handlers ? handlers.length : 0;
13492
+ }
13493
+ function trimHandlers(handlers) {
13494
+ if (!handlers) {
13495
+ return;
13496
+ }
13497
+ while (handlers.length && handlers[handlers.length - 1] === null) {
13498
+ handlers.pop();
13499
+ }
13500
+ }
13501
+ function normalizeHandlerId(id) {
13502
+ if (typeof id === "string" && id !== "" && String(Number(id)) === id) {
13503
+ return Number(id);
13504
+ }
13505
+ return id;
13506
+ }
13507
+ function syncHandlerEntries(manager, internals) {
13508
+ const handlers = manager.handlers;
13509
+ const length = countHandlers(handlers);
13510
+ if (handlers !== internals.handlersRef) {
13511
+ internals.handlersRef = handlers;
13512
+ internals.handlerEntries.clear();
13513
+ } else if (length !== internals.handlersLength) {
13514
+ if (!length) {
13515
+ internals.handlerEntries.clear();
13516
+ } else {
13517
+ internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
13518
+ if (handlers[entry.index] !== entry.handler) {
13519
+ internals.handlerEntries.delete(id);
13520
+ }
13521
+ });
13522
+ }
13523
+ }
13524
+ internals.handlersLength = length;
13525
+ }
13372
13526
  var InterceptorManager = class {
13373
13527
  constructor() {
13374
13528
  this.handlers = [];
13529
+ this[$internals2] = {
13530
+ handlersRef: this.handlers,
13531
+ handlersLength: this.handlers.length,
13532
+ handlerEntries: /* @__PURE__ */ new Map(),
13533
+ iterationDepth: 0,
13534
+ nextId: 0
13535
+ };
13375
13536
  }
13376
13537
  /**
13377
13538
  * Add a new interceptor to the stack
@@ -13383,13 +13544,25 @@ var InterceptorManager = class {
13383
13544
  * @return {Number} An ID used to remove interceptor later
13384
13545
  */
13385
13546
  use(fulfilled, rejected, options) {
13386
- this.handlers.push({
13547
+ const handler = {
13387
13548
  fulfilled,
13388
13549
  rejected,
13389
13550
  synchronous: options ? options.synchronous : false,
13390
13551
  runWhen: options ? options.runWhen : null
13552
+ };
13553
+ const internals = this[$internals2];
13554
+ if (this.handlers == null) {
13555
+ this.handlers = [];
13556
+ }
13557
+ syncHandlerEntries(this, internals);
13558
+ const id = internals.nextId++;
13559
+ this.handlers.push(handler);
13560
+ internals.handlerEntries.set(id, {
13561
+ handler,
13562
+ index: this.handlers.length - 1
13391
13563
  });
13392
- return this.handlers.length - 1;
13564
+ internals.handlersLength = this.handlers.length;
13565
+ return id;
13393
13566
  }
13394
13567
  /**
13395
13568
  * Remove an interceptor from the stack
@@ -13399,8 +13572,20 @@ var InterceptorManager = class {
13399
13572
  * @returns {void}
13400
13573
  */
13401
13574
  eject(id) {
13402
- if (this.handlers[id]) {
13403
- this.handlers[id] = null;
13575
+ const internals = this[$internals2];
13576
+ syncHandlerEntries(this, internals);
13577
+ const handlerId = normalizeHandlerId(id);
13578
+ const entry = internals.handlerEntries.get(handlerId);
13579
+ if (entry) {
13580
+ internals.handlerEntries.delete(handlerId);
13581
+ if (this.handlers[entry.index] !== entry.handler) {
13582
+ return;
13583
+ }
13584
+ this.handlers[entry.index] = null;
13585
+ if (!internals.iterationDepth) {
13586
+ trimHandlers(this.handlers);
13587
+ internals.handlersLength = this.handlers.length;
13588
+ }
13404
13589
  }
13405
13590
  }
13406
13591
  /**
@@ -13411,6 +13596,7 @@ var InterceptorManager = class {
13411
13596
  clear() {
13412
13597
  if (this.handlers) {
13413
13598
  this.handlers = [];
13599
+ syncHandlerEntries(this, this[$internals2]);
13414
13600
  }
13415
13601
  }
13416
13602
  /**
@@ -13424,33 +13610,45 @@ var InterceptorManager = class {
13424
13610
  * @returns {void}
13425
13611
  */
13426
13612
  forEach(fn) {
13427
- utils_default.forEach(this.handlers, function forEachHandler(h) {
13428
- if (h !== null) {
13429
- fn(h);
13613
+ const internals = this[$internals2];
13614
+ syncHandlerEntries(this, internals);
13615
+ internals.iterationDepth++;
13616
+ try {
13617
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
13618
+ if (h !== null) {
13619
+ fn(h);
13620
+ }
13621
+ });
13622
+ } finally {
13623
+ if (!--internals.iterationDepth) {
13624
+ syncHandlerEntries(this, internals);
13625
+ trimHandlers(this.handlers);
13626
+ internals.handlersLength = countHandlers(this.handlers);
13430
13627
  }
13431
- });
13628
+ }
13432
13629
  }
13433
13630
  };
13434
13631
  var InterceptorManager_default = InterceptorManager;
13435
13632
 
13436
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13633
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13437
13634
  var transitional_default = {
13438
13635
  silentJSONParsing: true,
13439
13636
  forcedJSONParsing: true,
13440
13637
  clarifyTimeoutError: false,
13441
13638
  legacyInterceptorReqResOrdering: true,
13442
13639
  advertiseZstdAcceptEncoding: false,
13443
- validateStatusUndefinedResolves: true
13640
+ validateStatusUndefinedResolves: true,
13641
+ encodeBasicAuthUsername: false
13444
13642
  };
13445
13643
 
13446
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13644
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13447
13645
  import crypto from "crypto";
13448
13646
 
13449
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13647
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13450
13648
  import url from "url";
13451
13649
  var URLSearchParams_default = url.URLSearchParams;
13452
13650
 
13453
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13651
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13454
13652
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13455
13653
  var DIGIT = "0123456789";
13456
13654
  var ALPHABET = {
@@ -13480,7 +13678,7 @@ var node_default = {
13480
13678
  protocols: ["http", "https", "file", "data"]
13481
13679
  };
13482
13680
 
13483
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13681
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13484
13682
  var utils_exports = {};
13485
13683
  __export(utils_exports, {
13486
13684
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13498,13 +13696,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13498
13696
  })();
13499
13697
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13500
13698
 
13501
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13699
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13502
13700
  var platform_default = {
13503
13701
  ...utils_exports,
13504
13702
  ...node_default
13505
13703
  };
13506
13704
 
13507
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13705
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13508
13706
  function toURLEncodedForm(data, options) {
13509
13707
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13510
13708
  visitor: function(value, key, path, helpers) {
@@ -13518,7 +13716,7 @@ function toURLEncodedForm(data, options) {
13518
13716
  });
13519
13717
  }
13520
13718
 
13521
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13719
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13522
13720
  var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13523
13721
  function throwIfDepthExceeded(index) {
13524
13722
  if (index > MAX_DEPTH) {
@@ -13550,6 +13748,24 @@ function arrayToObject(arr) {
13550
13748
  }
13551
13749
  return obj;
13552
13750
  }
13751
+ function normalizeArray(value) {
13752
+ if (!utils_default.isArray(value)) return value;
13753
+ const keys = Object.keys(value);
13754
+ return keys.length !== value.length || keys.some((key, index) => key !== String(index)) ? arrayToObject(value) : value;
13755
+ }
13756
+ function normalizeArrays(obj) {
13757
+ const pending = [obj];
13758
+ while (pending.length) {
13759
+ const target = pending.pop();
13760
+ Object.keys(target).forEach((key) => {
13761
+ const value = target[key] = normalizeArray(target[key]);
13762
+ if (utils_default.isArray(value) || utils_default.isPlainObject(value)) {
13763
+ pending.push(value);
13764
+ }
13765
+ });
13766
+ }
13767
+ return obj;
13768
+ }
13553
13769
  function formDataToJSON(formData) {
13554
13770
  function buildPath(path, value, target, index) {
13555
13771
  throwIfDepthExceeded(index);
@@ -13560,6 +13776,7 @@ function formDataToJSON(formData) {
13560
13776
  name = !name && utils_default.isArray(target) ? target.length : name;
13561
13777
  if (isLast) {
13562
13778
  if (utils_default.hasOwnProp(target, name)) {
13779
+ target[name] = normalizeArray(target[name]);
13563
13780
  target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
13564
13781
  } else {
13565
13782
  target[name] = value;
@@ -13580,13 +13797,29 @@ function formDataToJSON(formData) {
13580
13797
  utils_default.forEachEntry(formData, (name, value) => {
13581
13798
  buildPath(parsePropPath(name), value, obj, 0);
13582
13799
  });
13583
- return obj;
13800
+ return normalizeArrays(obj);
13584
13801
  }
13585
13802
  return null;
13586
13803
  }
13587
13804
  var formDataToJSON_default = formDataToJSON;
13588
13805
 
13589
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13806
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
13807
+ var methodList = Object.freeze([
13808
+ "get",
13809
+ "delete",
13810
+ "head",
13811
+ "options",
13812
+ "post",
13813
+ "put",
13814
+ "patch",
13815
+ "purge",
13816
+ "link",
13817
+ "unlink",
13818
+ "query"
13819
+ ]);
13820
+ var methodList_default = methodList;
13821
+
13822
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13590
13823
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13591
13824
  function stringifySafely2(rawValue, parser, encoder) {
13592
13825
  if (utils_default.isString(rawValue)) {
@@ -13698,12 +13931,12 @@ var defaults = {
13698
13931
  }
13699
13932
  }
13700
13933
  };
13701
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13934
+ utils_default.forEach(methodList_default, (method) => {
13702
13935
  defaults.headers[method] = {};
13703
13936
  });
13704
13937
  var defaults_default = defaults;
13705
13938
 
13706
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13939
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13707
13940
  function transformData(fns, response) {
13708
13941
  const config = this || defaults_default;
13709
13942
  const context = response || config;
@@ -13716,12 +13949,12 @@ function transformData(fns, response) {
13716
13949
  return data;
13717
13950
  }
13718
13951
 
13719
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13952
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13720
13953
  function isCancel(value) {
13721
13954
  return !!(value && value.__CANCEL__);
13722
13955
  }
13723
13956
 
13724
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13957
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13725
13958
  var CanceledError = class extends AxiosError_default {
13726
13959
  /**
13727
13960
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13740,7 +13973,7 @@ var CanceledError = class extends AxiosError_default {
13740
13973
  };
13741
13974
  var CanceledError_default = CanceledError;
13742
13975
 
13743
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13976
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13744
13977
  function settle(resolve, reject, response) {
13745
13978
  const validateStatus2 = response.config.validateStatus;
13746
13979
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13756,7 +13989,7 @@ function settle(resolve, reject, response) {
13756
13989
  }
13757
13990
  }
13758
13991
 
13759
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13992
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13760
13993
  function isAbsoluteURL(url2) {
13761
13994
  if (typeof url2 !== "string") {
13762
13995
  return false;
@@ -13764,7 +13997,7 @@ function isAbsoluteURL(url2) {
13764
13997
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13765
13998
  }
13766
13999
 
13767
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
14000
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13768
14001
  function combineURLs(baseURL, relativeURL) {
13769
14002
  if (!relativeURL) {
13770
14003
  return baseURL;
@@ -13776,19 +14009,21 @@ function combineURLs(baseURL, relativeURL) {
13776
14009
  return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
13777
14010
  }
13778
14011
 
13779
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13780
- var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13781
- var httpProtocolControlCharacters = /[\t\n\r]/g;
13782
- function stripLeadingC0ControlOrSpace(url2) {
13783
- let i = 0;
13784
- while (i < url2.length && url2.charCodeAt(i) <= 32) {
13785
- i++;
13786
- }
13787
- return url2.slice(i);
13788
- }
14012
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
14013
+ var urlParserControlCharacters = /[\t\n\r]/g;
13789
14014
  function normalizeURLForProtocolCheck(url2) {
13790
- return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
14015
+ if (typeof url2 !== "string") {
14016
+ return url2;
14017
+ }
14018
+ let start = 0;
14019
+ while (start < url2.length && url2.charCodeAt(start) <= 32) {
14020
+ start++;
14021
+ }
14022
+ return url2.slice(start).replace(urlParserControlCharacters, "");
13791
14023
  }
14024
+
14025
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
14026
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13792
14027
  function redactFragment(fragment) {
13793
14028
  if (!fragment) {
13794
14029
  return fragment;
@@ -13899,7 +14134,7 @@ function getEnv(key) {
13899
14134
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13900
14135
  }
13901
14136
 
13902
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14137
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13903
14138
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13904
14139
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13905
14140
  import http from "http";
@@ -13909,17 +14144,17 @@ import util3 from "util";
13909
14144
  import { resolve as resolvePath } from "path";
13910
14145
  import zlib from "zlib";
13911
14146
 
13912
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
13913
- var VERSION = "1.19.0";
14147
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
14148
+ var VERSION = "1.21.0";
13914
14149
 
13915
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
14150
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
13916
14151
  function parseProtocol(url2) {
13917
14152
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13918
- return match && match[1] || "";
14153
+ return match && match[1].toLowerCase() || "";
13919
14154
  }
13920
14155
 
13921
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
13922
- var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
14156
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
14157
+ var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/i;
13923
14158
  function fromDataURI(uri, asBlob, options) {
13924
14159
  const _Blob = options && options.Blob || platform_default.classes.Blob;
13925
14160
  const protocol = parseProtocol(uri);
@@ -13942,7 +14177,10 @@ function fromDataURI(uri, asBlob, options) {
13942
14177
  } else if (params) {
13943
14178
  mime = "text/plain" + params;
13944
14179
  }
13945
- const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
14180
+ const buffer = encoding === "base64" ? Buffer.from(
14181
+ body.replace(/%([\da-f]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))),
14182
+ "base64"
14183
+ ) : Buffer.from(decodeURIComponent(body), encoding);
13946
14184
  if (asBlob) {
13947
14185
  if (!_Blob) {
13948
14186
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13954,10 +14192,10 @@ function fromDataURI(uri, asBlob, options) {
13954
14192
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13955
14193
  }
13956
14194
 
13957
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14195
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13958
14196
  import stream3 from "stream";
13959
14197
 
13960
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
14198
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
13961
14199
  var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
13962
14200
  function setFormDataHeaders(headers, formHeaders, policy) {
13963
14201
  if (policy !== "content-only") {
@@ -13971,7 +14209,7 @@ function setFormDataHeaders(headers, formHeaders, policy) {
13971
14209
  });
13972
14210
  }
13973
14211
 
13974
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
14212
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13975
14213
  import stream from "stream";
13976
14214
  var kInternals = /* @__PURE__ */ Symbol("internals");
13977
14215
  var AxiosTransformStream = class extends stream.Transform {
@@ -14028,7 +14266,10 @@ var AxiosTransformStream = class extends stream.Transform {
14028
14266
  const timeWindow = internals.timeWindow;
14029
14267
  const divider = 1e3 / timeWindow;
14030
14268
  const bytesThreshold = maxRate / divider;
14031
- const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
14269
+ let minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
14270
+ if (maxRate) {
14271
+ minChunkSize = Math.min(bytesThreshold, minChunkSize);
14272
+ }
14032
14273
  const pushChunk = (_chunk, _callback) => {
14033
14274
  const bytes = Buffer.byteLength(_chunk);
14034
14275
  internals.bytesSeen += bytes;
@@ -14044,6 +14285,9 @@ var AxiosTransformStream = class extends stream.Transform {
14044
14285
  }
14045
14286
  };
14046
14287
  const transformChunk = (_chunk, _callback) => {
14288
+ if (this.destroyed) {
14289
+ return _callback();
14290
+ }
14047
14291
  const chunkSize = Buffer.byteLength(_chunk);
14048
14292
  let chunkRemainder = null;
14049
14293
  let maxChunkSize = readableHighWaterMark;
@@ -14066,7 +14310,7 @@ var AxiosTransformStream = class extends stream.Transform {
14066
14310
  }, timeWindow - passed);
14067
14311
  }
14068
14312
  if (bytesLeft < maxChunkSize) {
14069
- maxChunkSize = bytesLeft;
14313
+ maxChunkSize = Math.max(1, Math.floor(bytesLeft));
14070
14314
  }
14071
14315
  }
14072
14316
  if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {
@@ -14094,14 +14338,14 @@ var AxiosTransformStream = class extends stream.Transform {
14094
14338
  };
14095
14339
  var AxiosTransformStream_default = AxiosTransformStream;
14096
14340
 
14097
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14341
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14098
14342
  import { EventEmitter } from "events";
14099
14343
 
14100
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14344
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14101
14345
  import util from "util";
14102
14346
  import { Readable } from "stream";
14103
14347
 
14104
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
14348
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
14105
14349
  var { asyncIterator } = Symbol;
14106
14350
  var readBlob = async function* (blob) {
14107
14351
  if (blob.stream) {
@@ -14116,7 +14360,7 @@ var readBlob = async function* (blob) {
14116
14360
  };
14117
14361
  var readBlob_default = readBlob;
14118
14362
 
14119
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14363
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14120
14364
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
14121
14365
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
14122
14366
  var CRLF = "\r\n";
@@ -14124,9 +14368,9 @@ var CRLF_BYTES = textEncoder.encode(CRLF);
14124
14368
  var CRLF_BYTES_COUNT = 2;
14125
14369
  var FormDataPart = class {
14126
14370
  constructor(name, value) {
14127
- const { escapeName } = this.constructor;
14371
+ const { escapeName: escapeName2 } = this.constructor;
14128
14372
  const isStringValue = utils_default.isString(value);
14129
- let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`;
14373
+ let headers = `Content-Disposition: form-data; name="${escapeName2(name)}"${!isStringValue && value.name ? `; filename="${escapeName2(value.name)}"` : ""}${CRLF}`;
14130
14374
  if (isStringValue) {
14131
14375
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
14132
14376
  } else {
@@ -14201,7 +14445,7 @@ var formDataToStream = (form, headersHandler, options) => {
14201
14445
  };
14202
14446
  var formDataToStream_default = formDataToStream;
14203
14447
 
14204
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14448
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14205
14449
  import stream2 from "stream";
14206
14450
  var ZlibHeaderTransformStream = class extends stream2.Transform {
14207
14451
  __transform(chunk, encoding, callback) {
@@ -14223,7 +14467,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
14223
14467
  };
14224
14468
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
14225
14469
 
14226
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14470
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14227
14471
  import http2 from "http2";
14228
14472
  import util2 from "util";
14229
14473
  var Http2Sessions = class {
@@ -14232,6 +14476,7 @@ var Http2Sessions = class {
14232
14476
  }
14233
14477
  getSession(authority, options) {
14234
14478
  options = Object.assign(
14479
+ /* @__PURE__ */ Object.create(null),
14235
14480
  {
14236
14481
  sessionTimeout: 1e3
14237
14482
  },
@@ -14286,7 +14531,7 @@ var Http2Sessions = class {
14286
14531
  timer = null;
14287
14532
  }
14288
14533
  stream4.once("close", () => {
14289
- if (!--streamsCount) {
14534
+ if (!--streamsCount && !removed) {
14290
14535
  timer = setTimeout(() => {
14291
14536
  timer = null;
14292
14537
  removeSession();
@@ -14297,6 +14542,8 @@ var Http2Sessions = class {
14297
14542
  };
14298
14543
  }
14299
14544
  session.once("close", removeSession);
14545
+ session.once("error", removeSession);
14546
+ session.once("goaway", removeSession);
14300
14547
  let entry = [session, options];
14301
14548
  authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14302
14549
  return session;
@@ -14304,7 +14551,7 @@ var Http2Sessions = class {
14304
14551
  };
14305
14552
  var Http2Sessions_default = Http2Sessions;
14306
14553
 
14307
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
14554
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
14308
14555
  var callbackify = (fn, reducer) => {
14309
14556
  return utils_default.isAsyncFn(fn) ? function(...args) {
14310
14557
  const cb = args.pop();
@@ -14319,8 +14566,16 @@ var callbackify = (fn, reducer) => {
14319
14566
  };
14320
14567
  var callbackify_default = callbackify;
14321
14568
 
14322
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14569
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14570
+ import { domainToASCII } from "url";
14323
14571
  var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
14572
+ var trimTrailingDots = (value) => {
14573
+ let end = value.length;
14574
+ while (end && value.charCodeAt(end - 1) === 46) {
14575
+ end--;
14576
+ }
14577
+ return end === value.length ? value : value.slice(0, end);
14578
+ };
14324
14579
  var isIPv4Loopback = (host) => {
14325
14580
  const parts = host.split(".");
14326
14581
  if (parts.length !== 4) return false;
@@ -14353,7 +14608,7 @@ var normalizeIPAddress = (host) => {
14353
14608
  if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
14354
14609
  h = h.slice(1, -1);
14355
14610
  }
14356
- h = h.replace(/\.+$/, "");
14611
+ h = trimTrailingDots(h);
14357
14612
  if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
14358
14613
  const parts = h.split(".");
14359
14614
  if (parts.some((p) => p === "")) return host;
@@ -14465,6 +14720,40 @@ var unmapIPv4MappedIPv6 = (host) => {
14465
14720
  }
14466
14721
  return host;
14467
14722
  };
14723
+ var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
14724
+ var ipv4ToBytes = (host) => {
14725
+ const parts = host.split(".");
14726
+ return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
14727
+ };
14728
+ var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
14729
+ var ipv6ToBytes = (host) => {
14730
+ const halves = host.split("::");
14731
+ if (halves.length > 2) {
14732
+ return null;
14733
+ }
14734
+ const groups = halves[0] ? halves[0].split(":") : [];
14735
+ if (halves.length === 2) {
14736
+ const rear = halves[1] ? halves[1].split(":") : [];
14737
+ const missing = 8 - groups.length - rear.length;
14738
+ if (missing < 1) {
14739
+ return null;
14740
+ }
14741
+ groups.push(...new Array(missing).fill("0"), ...rear);
14742
+ }
14743
+ if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
14744
+ return null;
14745
+ }
14746
+ return groups.flatMap((group) => {
14747
+ const value = Number.parseInt(group, 16);
14748
+ return [value >> 8 & 255, value & 255];
14749
+ });
14750
+ };
14751
+ var ipToBytes = (host) => {
14752
+ if (typeof host !== "string" || !host) {
14753
+ return null;
14754
+ }
14755
+ return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
14756
+ };
14468
14757
  var normalizeNoProxyHost = (hostname) => {
14469
14758
  if (!hostname) {
14470
14759
  return hostname;
@@ -14472,13 +14761,103 @@ var normalizeNoProxyHost = (hostname) => {
14472
14761
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14473
14762
  hostname = hostname.slice(1, -1);
14474
14763
  }
14475
- const trimmed = hostname.replace(/\.+$/, "");
14764
+ let trimmed = trimTrailingDots(hostname);
14765
+ if (trimmed.indexOf(":") !== -1) {
14766
+ try {
14767
+ trimmed = new URL("http://[" + trimmed + "]/").hostname.slice(1, -1);
14768
+ } catch (_err) {
14769
+ return trimmed;
14770
+ }
14771
+ } else if (/[\u0080-\uffff]/.test(trimmed)) {
14772
+ const prefix = /^[*.]+/.exec(trimmed);
14773
+ const start = prefix ? prefix[0] : "";
14774
+ const ascii = domainToASCII(trimmed.slice(start.length));
14775
+ if (!ascii) return "";
14776
+ trimmed = start + trimTrailingDots(ascii);
14777
+ }
14476
14778
  const ipv4 = normalizeIPAddress(trimmed);
14477
14779
  if (ipv4 !== trimmed) {
14478
14780
  return ipv4;
14479
14781
  }
14480
14782
  return unmapIPv4MappedIPv6(trimmed);
14481
14783
  };
14784
+ var normalizeCidrBase = (input) => {
14785
+ let base = input;
14786
+ const startsBracket = base.charAt(0) === "[";
14787
+ const endsBracket = base.charAt(base.length - 1) === "]";
14788
+ const hasBracket = base.includes("[") || base.includes("]");
14789
+ if (startsBracket || endsBracket) {
14790
+ if (!startsBracket || !endsBracket) {
14791
+ return null;
14792
+ }
14793
+ base = base.slice(1, -1);
14794
+ if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
14795
+ return null;
14796
+ }
14797
+ } else if (hasBracket) {
14798
+ return null;
14799
+ }
14800
+ if (!base || base.charAt(base.length - 1) === ".") {
14801
+ return null;
14802
+ }
14803
+ const wasIPv6 = base.indexOf(":") !== -1;
14804
+ if (wasIPv6) {
14805
+ try {
14806
+ base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
14807
+ } catch (_err) {
14808
+ return null;
14809
+ }
14810
+ } else {
14811
+ base = normalizeIPAddress(base);
14812
+ if (!ipv4ToBytes(base)) {
14813
+ return null;
14814
+ }
14815
+ }
14816
+ return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
14817
+ };
14818
+ var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
14819
+ var parseCidrEntry = (entry) => {
14820
+ if (entry.indexOf("/") === -1) {
14821
+ return void 0;
14822
+ }
14823
+ const match = CIDR_ENTRY_RE.exec(entry);
14824
+ if (!match) {
14825
+ return null;
14826
+ }
14827
+ let prefix = Number(match[2]);
14828
+ const parsedBase = normalizeCidrBase(match[1]);
14829
+ if (!parsedBase) {
14830
+ return null;
14831
+ }
14832
+ const { normalized, wasIPv6 } = parsedBase;
14833
+ if (wasIPv6 && normalized.indexOf(":") === -1) {
14834
+ if (prefix < 96) {
14835
+ return null;
14836
+ }
14837
+ prefix -= 96;
14838
+ }
14839
+ const bytes = ipToBytes(normalized);
14840
+ if (!bytes || prefix > bytes.length * 8) {
14841
+ return null;
14842
+ }
14843
+ return { bytes, prefix };
14844
+ };
14845
+ var isInSubnet = (addressBytes, networkBytes, prefix) => {
14846
+ const fullBytes = prefix >> 3;
14847
+ for (let i = 0; i < fullBytes; i++) {
14848
+ if (addressBytes[i] !== networkBytes[i]) {
14849
+ return false;
14850
+ }
14851
+ }
14852
+ const remainingBits = prefix & 7;
14853
+ if (remainingBits) {
14854
+ const mask = 255 << 8 - remainingBits & 255;
14855
+ if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
14856
+ return false;
14857
+ }
14858
+ }
14859
+ return true;
14860
+ };
14482
14861
  function shouldBypassProxy(location) {
14483
14862
  let parsed;
14484
14863
  try {
@@ -14495,6 +14874,7 @@ function shouldBypassProxy(location) {
14495
14874
  }
14496
14875
  const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
14497
14876
  const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
14877
+ const hostnameBytes = ipToBytes(hostname);
14498
14878
  return noProxy.split(/[\s,]+/).some((entry) => {
14499
14879
  if (!entry) {
14500
14880
  return false;
@@ -14502,6 +14882,10 @@ function shouldBypassProxy(location) {
14502
14882
  if (entry === "*") {
14503
14883
  return true;
14504
14884
  }
14885
+ const cidr = parseCidrEntry(entry);
14886
+ if (cidr !== void 0) {
14887
+ return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
14888
+ }
14505
14889
  let [entryHost, entryPort] = parseNoProxyEntry(entry);
14506
14890
  entryHost = normalizeNoProxyHost(entryHost);
14507
14891
  if (!entryHost) {
@@ -14520,7 +14904,7 @@ function shouldBypassProxy(location) {
14520
14904
  });
14521
14905
  }
14522
14906
 
14523
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14907
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14524
14908
  function speedometer(samplesCount, min) {
14525
14909
  samplesCount = samplesCount || 10;
14526
14910
  const bytes = new Array(samplesCount);
@@ -14556,7 +14940,7 @@ function speedometer(samplesCount, min) {
14556
14940
  }
14557
14941
  var speedometer_default = speedometer;
14558
14942
 
14559
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14943
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14560
14944
  function throttle(fn, freq) {
14561
14945
  let timestamp = 0;
14562
14946
  let threshold = 1e3 / freq;
@@ -14587,16 +14971,17 @@ function throttle(fn, freq) {
14587
14971
  }
14588
14972
  };
14589
14973
  const flush = () => lastArgs && invoke(lastArgs);
14590
- return [throttled, flush];
14974
+ const flushWith = (...args) => invoke(args);
14975
+ return [throttled, flush, flushWith];
14591
14976
  }
14592
14977
  var throttle_default = throttle;
14593
14978
 
14594
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14979
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14595
14980
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14596
14981
  let bytesNotified = 0;
14597
14982
  const _speedometer = speedometer_default(50, 250);
14598
14983
  return throttle_default((e) => {
14599
- if (!e || typeof e.loaded !== "number") {
14984
+ if (!e || !utils_default.isNumber(e.loaded)) {
14600
14985
  return;
14601
14986
  }
14602
14987
  const rawLoaded = e.loaded;
@@ -14632,7 +15017,7 @@ var progressEventDecorator = (total, throttled) => {
14632
15017
  };
14633
15018
  var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
14634
15019
 
14635
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
15020
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14636
15021
  var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14637
15022
  var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14638
15023
  var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
@@ -14660,6 +15045,26 @@ var estimateBase64BufferAllocation = (body) => {
14660
15045
  }
14661
15046
  return Math.floor((len - padding) * 3 / 4);
14662
15047
  };
15048
+ var estimatePercentDecodedBase64BufferAllocation = (body) => {
15049
+ if (body.indexOf("%") === -1) {
15050
+ return estimateBase64BufferAllocation(body);
15051
+ }
15052
+ let length = 0;
15053
+ let previous = 0;
15054
+ let last = 0;
15055
+ for (let i = 0, len = body.length; i < len; i++) {
15056
+ let code = body.charCodeAt(i);
15057
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
15058
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
15059
+ i += 2;
15060
+ }
15061
+ length++;
15062
+ previous = last;
15063
+ last = code;
15064
+ }
15065
+ const padding = last === 61 ? previous === 61 ? 2 : 1 : 0;
15066
+ return Math.floor((length - padding) * 3 / 4);
15067
+ };
14663
15068
  var estimatePercentDecodedBase64Bytes = (body) => {
14664
15069
  const len = body.length;
14665
15070
  let significant = 0;
@@ -14689,14 +15094,14 @@ var estimatePercentDecodedBase64Bytes = (body) => {
14689
15094
  }
14690
15095
  return base64Bytes(significant);
14691
15096
  };
14692
- var estimateDataURLBytes = (url2, estimateBase64) => {
15097
+ var estimateDataURLBytes = (url2, estimateBase64, base64Pattern) => {
14693
15098
  if (!url2 || typeof url2 !== "string") return 0;
14694
- if (!url2.startsWith("data:")) return 0;
15099
+ if (!/^data:/i.test(url2)) return 0;
14695
15100
  const comma = url2.indexOf(",");
14696
15101
  if (comma < 0) return 0;
14697
15102
  const meta = url2.slice(5, comma);
14698
15103
  const body = url2.slice(comma + 1);
14699
- const isBase64 = /;base64/i.test(meta);
15104
+ const isBase64 = base64Pattern.test(meta);
14700
15105
  if (isBase64) {
14701
15106
  return estimateBase64(body);
14702
15107
  }
@@ -14728,14 +15133,15 @@ function estimateDataURLDecodedBytes(url2) {
14728
15133
  const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
14729
15134
  return estimateDataURLBytes(
14730
15135
  fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
14731
- estimatePercentDecodedBase64Bytes
15136
+ estimatePercentDecodedBase64Bytes,
15137
+ /; *base64[\t\n\f\r ]*$/i
14732
15138
  );
14733
15139
  }
14734
15140
  function estimateDataURLBufferAllocation(url2) {
14735
- return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
15141
+ return estimateDataURLBytes(url2, estimatePercentDecodedBase64BufferAllocation, /;base64$/i);
14736
15142
  }
14737
15143
 
14738
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
15144
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14739
15145
  var zlibOptions = {
14740
15146
  flush: zlib.constants.Z_SYNC_FLUSH,
14741
15147
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14757,9 +15163,27 @@ var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14757
15163
  var isHttps = /https:?/;
14758
15164
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14759
15165
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
15166
+ function handleSocketError(err) {
15167
+ const current = this[kAxiosCurrentReq];
15168
+ if (current && !current.destroyed) {
15169
+ current.destroy(err);
15170
+ }
15171
+ }
14760
15172
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14761
15173
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
14762
15174
  var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
15175
+ var directAgents = /* @__PURE__ */ new WeakMap();
15176
+ var directAgentHooks = ["createConnection", "getName"];
15177
+ var nativeAgentPoolHooks = [
15178
+ "addRequest",
15179
+ "createSocket",
15180
+ "removeSocket",
15181
+ "keepSocketAlive",
15182
+ "reuseSocket",
15183
+ "_getSession",
15184
+ "_cacheSession",
15185
+ "_evictSession"
15186
+ ];
14763
15187
  var NODE_NATIVE_ENV_PROXY_SUPPORT = {
14764
15188
  22: 21,
14765
15189
  24: 5
@@ -14789,6 +15213,49 @@ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.
14789
15213
  function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
14790
15214
  return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
14791
15215
  }
15216
+ function getDirectAgent(configuredAgent, transport) {
15217
+ if (!process.allowedNodeEnvironmentFlags || !process.allowedNodeEnvironmentFlags.has("--use-env-proxy")) {
15218
+ return configuredAgent;
15219
+ }
15220
+ const agent = configuredAgent || transport.globalAgent;
15221
+ const options = agent && agent.options;
15222
+ if (!(agent instanceof transport.Agent) || agent.protocol !== transport.globalAgent.protocol || !options || !utils_default.hasOwnProp(options, "proxyEnv") || typeof options.proxyEnv !== "object" || options.proxyEnv === null) {
15223
+ return configuredAgent;
15224
+ }
15225
+ for (const hook of nativeAgentPoolHooks) {
15226
+ if (utils_default.isFunction(transport.Agent.prototype[hook]) && agent[hook] !== transport.Agent.prototype[hook]) {
15227
+ throw new AxiosError_default(
15228
+ "proxy: false cannot adapt an agent overriding " + hook + "; use an agent constructed without proxyEnv",
15229
+ AxiosError_default.ERR_BAD_OPTION_VALUE
15230
+ );
15231
+ }
15232
+ }
15233
+ let direct = directAgents.get(agent);
15234
+ if (!direct) {
15235
+ direct = new transport.Agent({ ...options, proxyEnv: void 0 });
15236
+ const destroy = agent.destroy;
15237
+ agent.destroy = function destroyWithDirectAgent() {
15238
+ try {
15239
+ return destroy.apply(this, arguments);
15240
+ } finally {
15241
+ direct.destroy();
15242
+ }
15243
+ };
15244
+ directAgents.set(agent, direct);
15245
+ }
15246
+ for (const hook of directAgentHooks) {
15247
+ direct[hook] = agent[hook] === transport.Agent.prototype[hook] ? transport.Agent.prototype[hook] : bind(agent[hook], agent);
15248
+ }
15249
+ return direct;
15250
+ }
15251
+ function setDirectAgent(options, configHttpAgent, configHttpsAgent) {
15252
+ const secure = isHttps.test(options.protocol);
15253
+ const agent = getDirectAgent(secure ? configHttpsAgent : configHttpAgent, secure ? https : http);
15254
+ options.agent = agent;
15255
+ if (options.agents) {
15256
+ options.agents[secure ? "https" : "http"] = agent;
15257
+ }
15258
+ }
14792
15259
  function getTunnelingAgent(agentOptions, userHttpsAgent) {
14793
15260
  const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14794
15261
  const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
@@ -14796,13 +15263,12 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
14796
15263
  if (agent) return agent;
14797
15264
  const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14798
15265
  agent = new import_https_proxy_agent.default(merged);
14799
- if (userHttpsAgent && userHttpsAgent.options) {
14800
- const originTLSOptions = { ...userHttpsAgent.options };
14801
- const callback = agent.callback;
14802
- agent.callback = function axiosTunnelingAgentCallback(req, opts) {
14803
- return callback.call(this, req, { ...originTLSOptions, ...opts });
14804
- };
14805
- }
15266
+ const callback = agent.callback;
15267
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
15268
+ const originTLSAgent = userHttpsAgent || https.globalAgent;
15269
+ const originTLSOptions = originTLSAgent && originTLSAgent.options;
15270
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
15271
+ };
14806
15272
  agent[kAxiosInstalledTunnel] = true;
14807
15273
  cache.set(key, agent);
14808
15274
  return agent;
@@ -14826,6 +15292,10 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
14826
15292
  };
14827
15293
  var http2Sessions = new Http2Sessions_default();
14828
15294
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
15295
+ if (!isSameOriginRedirect(options, requestDetails)) {
15296
+ stripMatchingHeaders(options.headers, /* @__PURE__ */ new Set(["authorization", "cookie"]));
15297
+ delete options.auth;
15298
+ }
14829
15299
  if (options.beforeRedirects.proxy) {
14830
15300
  options.beforeRedirects.proxy(options);
14831
15301
  }
@@ -14835,6 +15305,9 @@ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
14835
15305
  if (options.beforeRedirects.sensitiveHeaders) {
14836
15306
  options.beforeRedirects.sensitiveHeaders(options, requestDetails);
14837
15307
  }
15308
+ if (options.beforeRedirects.direct) {
15309
+ options.beforeRedirects.direct(options);
15310
+ }
14838
15311
  if (options.beforeRedirects.config) {
14839
15312
  options.beforeRedirects.config(options, responseDetails, requestDetails);
14840
15313
  }
@@ -14859,10 +15332,10 @@ function isSameOriginRedirect(redirectOptions, requestDetails) {
14859
15332
  return false;
14860
15333
  }
14861
15334
  }
14862
- function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
15335
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
14863
15336
  let proxy = configProxy;
14864
15337
  const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
14865
- if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
15338
+ if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
14866
15339
  const proxyUrl = getProxyForUrl(location);
14867
15340
  if (proxyUrl) {
14868
15341
  if (!shouldBypassProxy(location)) {
@@ -14880,6 +15353,9 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent,
14880
15353
  if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
14881
15354
  options.agent = void 0;
14882
15355
  }
15356
+ if (isRedirect && options.agents && options.agents.https && options.agents.https[kAxiosInstalledTunnel]) {
15357
+ options.agents.https = configHttpsAgent;
15358
+ }
14883
15359
  if (proxy) {
14884
15360
  const isProxyURL = proxy instanceof URL;
14885
15361
  const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
@@ -14959,9 +15435,13 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent,
14959
15435
  redirectOptions.href,
14960
15436
  true,
14961
15437
  configHttpsAgent,
14962
- configHttpAgent
15438
+ configHttpAgent,
15439
+ allowEnvProxy
14963
15440
  );
14964
15441
  };
15442
+ return Boolean(
15443
+ proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent)
15444
+ );
14965
15445
  }
14966
15446
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
14967
15447
  var wrapAsync = (asyncExecutor) => {
@@ -14986,7 +15466,7 @@ var wrapAsync = (asyncExecutor) => {
14986
15466
  };
14987
15467
  var resolveFamily = ({ address, family }) => {
14988
15468
  if (!utils_default.isString(address)) {
14989
- throw TypeError("address must be a string");
15469
+ throw new AxiosError_default("address must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE);
14990
15470
  }
14991
15471
  return {
14992
15472
  address,
@@ -14994,6 +15474,30 @@ var resolveFamily = ({ address, family }) => {
14994
15474
  };
14995
15475
  };
14996
15476
  var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
15477
+ var normalizedLookupCache = /* @__PURE__ */ new WeakMap();
15478
+ var normalizeLookup = (lookup) => {
15479
+ let normalized = normalizedLookupCache.get(lookup);
15480
+ if (normalized) {
15481
+ return normalized;
15482
+ }
15483
+ const callbackLookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
15484
+ normalized = (hostname, opt, cb) => {
15485
+ callbackLookup(hostname, opt, (err, arg0, arg1) => {
15486
+ if (err) {
15487
+ return cb(err);
15488
+ }
15489
+ let addresses;
15490
+ try {
15491
+ addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
15492
+ } catch (error) {
15493
+ return cb(error);
15494
+ }
15495
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
15496
+ });
15497
+ };
15498
+ normalizedLookupCache.set(lookup, normalized);
15499
+ return normalized;
15500
+ };
14997
15501
  var http2Transport = {
14998
15502
  request(options, cb) {
14999
15503
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
@@ -15030,10 +15534,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15030
15534
  let family = own2("family");
15031
15535
  let httpVersion = own2("httpVersion");
15032
15536
  if (httpVersion === void 0) httpVersion = 1;
15537
+ const rawHttpVersion = httpVersion;
15033
15538
  let http2Options = own2("http2Options");
15539
+ const configProxy = own2("proxy");
15034
15540
  const httpAgent = own2("httpAgent");
15035
15541
  const httpsAgent = own2("httpsAgent");
15036
- const configProxy = own2("proxy");
15037
15542
  const responseType = own2("responseType");
15038
15543
  const responseEncoding = own2("responseEncoding");
15039
15544
  const socketPath = own2("socketPath");
@@ -15046,25 +15551,32 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15046
15551
  let rejected = false;
15047
15552
  let req;
15048
15553
  let connectPhaseTimer;
15049
- httpVersion = +httpVersion;
15554
+ try {
15555
+ httpVersion = +httpVersion;
15556
+ } catch (err) {
15557
+ throw new AxiosError_default(
15558
+ "Invalid protocol version: value is not a number",
15559
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15560
+ config
15561
+ );
15562
+ }
15050
15563
  if (Number.isNaN(httpVersion)) {
15051
- throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
15564
+ throw new AxiosError_default(
15565
+ `Invalid protocol version: '${rawHttpVersion}' is not a number`,
15566
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15567
+ config
15568
+ );
15052
15569
  }
15053
15570
  if (httpVersion !== 1 && httpVersion !== 2) {
15054
- throw TypeError(`Unsupported protocol version '${httpVersion}'`);
15571
+ throw new AxiosError_default(
15572
+ `Unsupported protocol version '${httpVersion}'`,
15573
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15574
+ config
15575
+ );
15055
15576
  }
15056
15577
  const isHttp2 = httpVersion === 2;
15057
15578
  if (lookup) {
15058
- const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
15059
- lookup = (hostname, opt, cb) => {
15060
- _lookup(hostname, opt, (err, arg0, arg1) => {
15061
- if (err) {
15062
- return cb(err);
15063
- }
15064
- const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
15065
- opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
15066
- });
15067
- };
15579
+ lookup = normalizeLookup(lookup);
15068
15580
  }
15069
15581
  const abortEmitter = new EventEmitter();
15070
15582
  function abort(reason) {
@@ -15165,6 +15677,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15165
15677
  } catch (err) {
15166
15678
  throw AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config);
15167
15679
  }
15680
+ if (maxContentLength > -1 && (responseType === "blob" ? convertedData.size : convertedData.length) > maxContentLength) {
15681
+ return reject(
15682
+ new AxiosError_default(
15683
+ "maxContentLength size of " + maxContentLength + " exceeded",
15684
+ AxiosError_default.ERR_BAD_RESPONSE,
15685
+ config
15686
+ )
15687
+ );
15688
+ }
15168
15689
  if (responseType === "text") {
15169
15690
  convertedData = convertedData.toString(responseEncoding);
15170
15691
  if (!responseEncoding || responseEncoding === "utf8") {
@@ -15307,6 +15828,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15307
15828
  utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
15308
15829
  false
15309
15830
  );
15831
+ if (isHttp2 && lookup) {
15832
+ http2Options = Object.assign(/* @__PURE__ */ Object.create(null), http2Options, { lookup });
15833
+ }
15310
15834
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
15311
15835
  path,
15312
15836
  method,
@@ -15317,9 +15841,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15317
15841
  family,
15318
15842
  beforeRedirect: dispatchBeforeRedirect,
15319
15843
  beforeRedirects: /* @__PURE__ */ Object.create(null),
15320
- http2Options
15844
+ http2Options,
15845
+ createConnection: void 0
15321
15846
  });
15322
15847
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
15848
+ let proxyApplied = false;
15323
15849
  if (socketPath) {
15324
15850
  if (typeof socketPath !== "string") {
15325
15851
  return reject(
@@ -15347,23 +15873,40 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15347
15873
  } else {
15348
15874
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
15349
15875
  options.port = parsed.port;
15350
- setProxy(
15876
+ proxyApplied = setProxy(
15351
15877
  options,
15352
15878
  configProxy,
15353
15879
  protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
15354
15880
  false,
15355
15881
  httpsAgent,
15356
- httpAgent
15882
+ httpAgent,
15883
+ // The HTTP/2 transport connects independently of HTTP/1 agents, so it
15884
+ // cannot apply either axios-resolved or agent-local environment proxies.
15885
+ // Explicit proxy config is still processed and rejected below.
15886
+ !isHttp2
15357
15887
  );
15358
15888
  }
15359
15889
  let transport;
15360
15890
  let isNativeTransport = false;
15361
- let transportEnforcesMaxBodyLength = false;
15362
15891
  const isHttpsRequest = isHttps.test(options.protocol);
15363
- if (options.agent == null) {
15892
+ if (!isHttp2 && configProxy === false) {
15893
+ setDirectAgent(options, httpAgent, httpsAgent);
15894
+ options.beforeRedirects.direct = (redirectOptions) => {
15895
+ setDirectAgent(redirectOptions, httpAgent, httpsAgent);
15896
+ };
15897
+ } else if (options.agent == null) {
15364
15898
  options.agent = isHttpsRequest ? httpsAgent : httpAgent;
15365
15899
  }
15366
15900
  if (isHttp2) {
15901
+ if (proxyApplied) {
15902
+ return reject(
15903
+ new AxiosError_default(
15904
+ "HTTP/2 requests with a proxy are not supported",
15905
+ AxiosError_default.ERR_NOT_SUPPORT,
15906
+ config
15907
+ )
15908
+ );
15909
+ }
15367
15910
  transport = http2Transport;
15368
15911
  } else {
15369
15912
  const configTransport = own2("transport");
@@ -15373,7 +15916,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15373
15916
  transport = isHttpsRequest ? https : http;
15374
15917
  isNativeTransport = true;
15375
15918
  } else {
15376
- transportEnforcesMaxBodyLength = true;
15377
15919
  options.sensitiveHeaders = [];
15378
15920
  if (maxRedirects) {
15379
15921
  options.maxRedirects = maxRedirects;
@@ -15451,7 +15993,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15451
15993
  transformStream,
15452
15994
  progressEventDecorator(
15453
15995
  responseLength,
15454
- progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3)
15996
+ progressEventReducer(
15997
+ asyncDecorator(onDownloadProgress, scheduleProgress),
15998
+ true,
15999
+ 3
16000
+ )
15455
16001
  )
15456
16002
  )
15457
16003
  );
@@ -15600,12 +16146,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15600
16146
  socket.setKeepAlive(true, 1e3 * 60);
15601
16147
  }
15602
16148
  if (!socket[kAxiosSocketListener]) {
15603
- socket.on("error", function handleSocketError(err) {
15604
- const current = socket[kAxiosCurrentReq];
15605
- if (current && !current.destroyed) {
15606
- current.destroy(err);
15607
- }
15608
- });
16149
+ socket.on("error", handleSocketError);
15609
16150
  socket[kAxiosSocketListener] = true;
15610
16151
  }
15611
16152
  socket[kAxiosCurrentReq] = req;
@@ -15660,7 +16201,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15660
16201
  }
15661
16202
  });
15662
16203
  let uploadStream = data;
15663
- if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
16204
+ if (maxBodyLength > -1) {
15664
16205
  const limit = maxBodyLength;
15665
16206
  let bytesSent = 0;
15666
16207
  uploadStream = stream3.pipeline(
@@ -15697,16 +16238,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15697
16238
  });
15698
16239
  };
15699
16240
 
15700
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
15701
- var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15702
- url2 = new URL(url2, platform_default.origin);
15703
- return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
15704
- })(
15705
- new URL(platform_default.origin),
15706
- platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15707
- ) : () => true;
15708
-
15709
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
16241
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
16242
+ var decodeCookieValue = (value) => {
16243
+ try {
16244
+ return decodeURIComponent(value);
16245
+ } catch (e) {
16246
+ return value;
16247
+ }
16248
+ };
15710
16249
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15711
16250
  // Standard browser envs support document.cookie
15712
16251
  {
@@ -15732,20 +16271,29 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15732
16271
  },
15733
16272
  read(name) {
15734
16273
  if (typeof document === "undefined") return null;
15735
- const cookies = document.cookie.split(";");
16274
+ const cookieString = document.cookie;
16275
+ if (!cookieString) return null;
16276
+ const cookies = cookieString.split(";");
15736
16277
  for (let i = 0; i < cookies.length; i++) {
15737
16278
  const cookie = cookies[i].replace(/^\s+/, "");
15738
16279
  const eq = cookie.indexOf("=");
15739
16280
  if (eq !== -1 && cookie.slice(0, eq) === name) {
15740
- try {
15741
- return decodeURIComponent(cookie.slice(eq + 1));
15742
- } catch (e) {
15743
- return cookie.slice(eq + 1);
15744
- }
16281
+ return decodeCookieValue(cookie.slice(eq + 1));
15745
16282
  }
15746
16283
  }
15747
16284
  return null;
15748
16285
  },
16286
+ async readAsync(name) {
16287
+ try {
16288
+ const store = typeof window !== "undefined" && window.cookieStore;
16289
+ if (store && utils_default.isFunction(store.get)) {
16290
+ const cookie = await store.get(name);
16291
+ return cookie ? decodeCookieValue(cookie.value) : null;
16292
+ }
16293
+ } catch (e) {
16294
+ }
16295
+ return this.read(name);
16296
+ },
15749
16297
  remove(name) {
15750
16298
  this.write(name, "", Date.now() - 864e5, "/");
15751
16299
  }
@@ -15758,130 +16306,224 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15758
16306
  read() {
15759
16307
  return null;
15760
16308
  },
16309
+ async readAsync() {
16310
+ return null;
16311
+ },
15761
16312
  remove() {
15762
16313
  }
15763
16314
  }
15764
16315
  );
15765
16316
 
15766
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
16317
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
16318
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2) => (url2) => {
16319
+ url2 = new URL(url2, document.baseURI || platform_default.origin);
16320
+ return origin2.protocol === url2.protocol && origin2.host === url2.host && origin2.port === url2.port;
16321
+ })(new URL(platform_default.origin)) : () => true;
16322
+
16323
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/assertParamsAcyclic.js
16324
+ function assertParamsAcyclic(params) {
16325
+ const pending = [{ value: params }];
16326
+ const active = /* @__PURE__ */ new WeakSet();
16327
+ const visited = /* @__PURE__ */ new WeakSet();
16328
+ while (pending.length) {
16329
+ const { value, done } = pending.pop();
16330
+ if (!utils_default.isPlainObject(value) && !utils_default.isArray(value)) continue;
16331
+ if (done) {
16332
+ active.delete(value);
16333
+ continue;
16334
+ }
16335
+ if (active.has(value)) {
16336
+ throw new AxiosError_default(
16337
+ "Circular reference detected in params",
16338
+ AxiosError_default.ERR_BAD_OPTION_VALUE
16339
+ );
16340
+ }
16341
+ if (visited.has(value)) continue;
16342
+ visited.add(value);
16343
+ active.add(value);
16344
+ pending.push({ value, done: true });
16345
+ const keys = Object.keys(value);
16346
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
16347
+ Object.getOwnPropertySymbols(value).forEach((key) => {
16348
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
16349
+ if (descriptor && descriptor.enumerable) keys.push(key);
16350
+ });
16351
+ }
16352
+ keys.forEach((key) => {
16353
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
16354
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
16355
+ if (descriptor && utils_default.hasOwnProp(descriptor, "value")) {
16356
+ pending.push({ value: descriptor.value });
16357
+ }
16358
+ } else {
16359
+ pending.push({ value: value[key] });
16360
+ }
16361
+ });
16362
+ }
16363
+ }
16364
+
16365
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
15767
16366
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
15768
16367
  var ownEnumerableKeys = (thing) => {
15769
16368
  if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
15770
16369
  return Object.keys(thing).concat(
15771
- Object.getOwnPropertySymbols(thing).filter(
15772
- (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
15773
- )
16370
+ Object.getOwnPropertySymbols(thing).filter((symbol) => {
16371
+ const descriptor = Object.getOwnPropertyDescriptor(thing, symbol);
16372
+ return descriptor && descriptor.enumerable;
16373
+ })
15774
16374
  );
15775
16375
  }
15776
16376
  return Object.keys(thing);
15777
16377
  };
15778
- function mergeConfig(config1, config2) {
15779
- config1 = config1 || {};
15780
- config2 = config2 || {};
15781
- const config = /* @__PURE__ */ Object.create(null);
15782
- Object.defineProperty(config, "hasOwnProperty", {
15783
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
15784
- // this data descriptor into an accessor descriptor on the way in.
15785
- __proto__: null,
15786
- value: Object.prototype.hasOwnProperty,
15787
- enumerable: false,
15788
- writable: true,
15789
- configurable: true
15790
- });
15791
- function getMergedValue(target, source, prop, caseless) {
15792
- if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
15793
- return utils_default.merge.call({ caseless }, target, source);
15794
- } else if (utils_default.isPlainObject(source)) {
15795
- return utils_default.merge({}, source);
15796
- } else if (utils_default.isArray(source)) {
15797
- return source.slice();
15798
- }
15799
- return source;
16378
+ function mergeParams(a, b) {
16379
+ const pending = [];
16380
+ const copies = /* @__PURE__ */ new WeakMap();
16381
+ const empty = {};
16382
+ function copy(target, source) {
16383
+ if (!utils_default.isPlainObject(source)) {
16384
+ return utils_default.isArray(source) ? source.slice() : source;
16385
+ }
16386
+ const base = utils_default.isPlainObject(target) ? target : empty;
16387
+ let bases = copies.get(source);
16388
+ if (!bases) {
16389
+ bases = /* @__PURE__ */ new WeakMap();
16390
+ copies.set(source, bases);
16391
+ }
16392
+ if (bases.has(base)) return bases.get(base);
16393
+ const result2 = {};
16394
+ bases.set(base, result2);
16395
+ pending.push({ base, source, result: result2 });
16396
+ return result2;
16397
+ }
16398
+ const result = utils_default.isUndefined(b) ? copy(void 0, a) : copy(a, b);
16399
+ while (pending.length) {
16400
+ const { base, source, result: target } = pending.pop();
16401
+ const baseKeys = new Set(ownEnumerableKeys(base));
16402
+ const sourceKeys = new Set(ownEnumerableKeys(source));
16403
+ const keys = /* @__PURE__ */ new Set([...baseKeys, ...sourceKeys]);
16404
+ keys.forEach((key) => {
16405
+ if (key === "__proto__" || key === "constructor" || key === "prototype") return;
16406
+ const hasSource = sourceKeys.has(key);
16407
+ const value = hasSource ? source[key] : void 0;
16408
+ const previous = (!hasSource || utils_default.isPlainObject(value)) && baseKeys.has(key) ? base[key] : void 0;
16409
+ target[key] = hasSource ? copy(previous, value) : copy(void 0, previous);
16410
+ });
15800
16411
  }
15801
- function mergeDeepProperties(a, b, prop, caseless) {
15802
- if (!utils_default.isUndefined(b)) {
15803
- return getMergedValue(a, b, prop, caseless);
15804
- } else if (!utils_default.isUndefined(a)) {
15805
- return getMergedValue(void 0, a, prop, caseless);
15806
- }
16412
+ assertParamsAcyclic(result);
16413
+ return result;
16414
+ }
16415
+ function getMergedValue(target, source, prop, caseless) {
16416
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
16417
+ return utils_default.merge.call({ caseless }, target, source);
16418
+ } else if (utils_default.isPlainObject(source)) {
16419
+ return utils_default.merge({}, source);
16420
+ } else if (utils_default.isArray(source)) {
16421
+ return source.slice();
16422
+ }
16423
+ return source;
16424
+ }
16425
+ function mergeDeepProperties(a, b, prop, caseless) {
16426
+ if (!utils_default.isUndefined(b)) {
16427
+ return getMergedValue(a, b, prop, caseless);
16428
+ } else if (!utils_default.isUndefined(a)) {
16429
+ return getMergedValue(void 0, a, prop, caseless);
15807
16430
  }
15808
- function valueFromConfig2(a, b) {
15809
- if (!utils_default.isUndefined(b)) {
15810
- return getMergedValue(void 0, b);
15811
- }
16431
+ }
16432
+ function valueFromConfig2(a, b) {
16433
+ if (!utils_default.isUndefined(b)) {
16434
+ return getMergedValue(void 0, b);
15812
16435
  }
15813
- function defaultToConfig2(a, b) {
15814
- if (!utils_default.isUndefined(b)) {
15815
- return getMergedValue(void 0, b);
15816
- } else if (!utils_default.isUndefined(a)) {
15817
- return getMergedValue(void 0, a);
15818
- }
16436
+ }
16437
+ function defaultToConfig2(a, b) {
16438
+ if (!utils_default.isUndefined(b)) {
16439
+ return getMergedValue(void 0, b);
16440
+ } else if (!utils_default.isUndefined(a)) {
16441
+ return getMergedValue(void 0, a);
15819
16442
  }
15820
- function getMergedTransitionalOption(prop) {
15821
- const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
15822
- if (!utils_default.isUndefined(transitional2)) {
15823
- if (utils_default.isPlainObject(transitional2)) {
15824
- if (utils_default.hasOwnProp(transitional2, prop)) {
15825
- return transitional2[prop];
15826
- }
15827
- } else {
15828
- return void 0;
16443
+ }
16444
+ function getMergedTransitionalOption(config1, config2, prop) {
16445
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
16446
+ if (!utils_default.isUndefined(transitional2)) {
16447
+ if (utils_default.isPlainObject(transitional2)) {
16448
+ if (utils_default.hasOwnProp(transitional2, prop)) {
16449
+ return transitional2[prop];
15829
16450
  }
16451
+ } else {
16452
+ return void 0;
15830
16453
  }
15831
- const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
15832
- if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
15833
- return transitional1[prop];
15834
- }
15835
- return void 0;
15836
16454
  }
15837
- function mergeDirectKeys(a, b, prop) {
15838
- if (utils_default.hasOwnProp(config2, prop)) {
15839
- return getMergedValue(a, b);
15840
- } else if (utils_default.hasOwnProp(config1, prop)) {
15841
- return getMergedValue(void 0, a);
15842
- }
15843
- }
15844
- const mergeMap = {
15845
- url: valueFromConfig2,
15846
- method: valueFromConfig2,
15847
- data: valueFromConfig2,
15848
- baseURL: defaultToConfig2,
15849
- transformRequest: defaultToConfig2,
15850
- transformResponse: defaultToConfig2,
15851
- paramsSerializer: defaultToConfig2,
15852
- timeout: defaultToConfig2,
15853
- timeoutMessage: defaultToConfig2,
15854
- withCredentials: defaultToConfig2,
15855
- withXSRFToken: defaultToConfig2,
15856
- adapter: defaultToConfig2,
15857
- responseType: defaultToConfig2,
15858
- xsrfCookieName: defaultToConfig2,
15859
- xsrfHeaderName: defaultToConfig2,
15860
- onUploadProgress: defaultToConfig2,
15861
- onDownloadProgress: defaultToConfig2,
15862
- decompress: defaultToConfig2,
15863
- maxContentLength: defaultToConfig2,
15864
- maxBodyLength: defaultToConfig2,
15865
- beforeRedirect: defaultToConfig2,
15866
- transport: defaultToConfig2,
15867
- httpAgent: defaultToConfig2,
15868
- httpsAgent: defaultToConfig2,
15869
- cancelToken: defaultToConfig2,
15870
- socketPath: defaultToConfig2,
15871
- allowedSocketPaths: defaultToConfig2,
15872
- responseEncoding: defaultToConfig2,
15873
- validateStatus: mergeDirectKeys,
15874
- headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
15875
- };
15876
- utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15877
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
16455
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
16456
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
16457
+ return transitional1[prop];
16458
+ }
16459
+ return void 0;
16460
+ }
16461
+ function mergeDirectKeys(a, b, prop, config1, config2) {
16462
+ if (utils_default.hasOwnProp(config2, prop)) {
16463
+ return getMergedValue(a, b);
16464
+ } else if (utils_default.hasOwnProp(config1, prop)) {
16465
+ return getMergedValue(void 0, a);
16466
+ }
16467
+ }
16468
+ function mergeHeaders(a, b, prop) {
16469
+ return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
16470
+ }
16471
+ var hasOwnPropertyDescriptor = Object.freeze({
16472
+ __proto__: null,
16473
+ value: Object.prototype.hasOwnProperty,
16474
+ enumerable: false,
16475
+ writable: true,
16476
+ configurable: true
16477
+ });
16478
+ var mergeMap = {
16479
+ url: valueFromConfig2,
16480
+ method: valueFromConfig2,
16481
+ data: valueFromConfig2,
16482
+ baseURL: defaultToConfig2,
16483
+ transformRequest: defaultToConfig2,
16484
+ transformResponse: defaultToConfig2,
16485
+ params: mergeParams,
16486
+ paramsSerializer: defaultToConfig2,
16487
+ timeout: defaultToConfig2,
16488
+ timeoutErrorMessage: defaultToConfig2,
16489
+ withCredentials: defaultToConfig2,
16490
+ withXSRFToken: defaultToConfig2,
16491
+ adapter: defaultToConfig2,
16492
+ responseType: defaultToConfig2,
16493
+ xsrfCookieName: defaultToConfig2,
16494
+ xsrfHeaderName: defaultToConfig2,
16495
+ onUploadProgress: defaultToConfig2,
16496
+ onDownloadProgress: defaultToConfig2,
16497
+ decompress: defaultToConfig2,
16498
+ maxContentLength: defaultToConfig2,
16499
+ maxBodyLength: defaultToConfig2,
16500
+ beforeRedirect: defaultToConfig2,
16501
+ transport: defaultToConfig2,
16502
+ httpAgent: defaultToConfig2,
16503
+ httpsAgent: defaultToConfig2,
16504
+ cancelToken: defaultToConfig2,
16505
+ socketPath: defaultToConfig2,
16506
+ allowedSocketPaths: defaultToConfig2,
16507
+ responseEncoding: defaultToConfig2,
16508
+ validateStatus: mergeDirectKeys,
16509
+ headers: mergeHeaders
16510
+ };
16511
+ function mergeConfig(config1, config2) {
16512
+ config1 = config1 || {};
16513
+ config2 = config2 || {};
16514
+ const config = /* @__PURE__ */ Object.create(null);
16515
+ Object.defineProperty(config, "hasOwnProperty", hasOwnPropertyDescriptor);
16516
+ const keys = ownEnumerableKeys({ ...config1, ...config2 });
16517
+ for (let i = 0, len = keys.length; i < len; i++) {
16518
+ const prop = keys[i];
16519
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype") continue;
15878
16520
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15879
16521
  const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
15880
16522
  const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
15881
- const configValue = merge2(a, b, prop);
16523
+ const configValue = merge2 === mergeDirectKeys ? merge2(a, b, prop, config1, config2) : merge2(a, b, prop);
15882
16524
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15883
- });
15884
- if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
16525
+ }
16526
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption(config1, config2, "validateStatusUndefinedResolves") === false) {
15885
16527
  if (utils_default.hasOwnProp(config1, "validateStatus")) {
15886
16528
  config.validateStatus = getMergedValue(void 0, config1.validateStatus);
15887
16529
  } else {
@@ -15891,12 +16533,13 @@ function mergeConfig(config1, config2) {
15891
16533
  return config;
15892
16534
  }
15893
16535
 
15894
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
16536
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15895
16537
  var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15896
16538
  /%([0-9A-F]{2})/gi,
15897
16539
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
15898
16540
  );
15899
- function resolveConfig(config) {
16541
+ var readCookie = (name) => cookies_default.read(name);
16542
+ function resolveConfig(config, readXsrfCookie = readCookie) {
15900
16543
  const newConfig = mergeConfig({}, config);
15901
16544
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15902
16545
  const data = own2("data");
@@ -15917,20 +16560,26 @@ function resolveConfig(config) {
15917
16560
  if (auth) {
15918
16561
  const username = utils_default.getSafeProp(auth, "username") || "";
15919
16562
  const password = utils_default.getSafeProp(auth, "password") || "";
16563
+ const transitional2 = own2("transitional");
16564
+ const encodeUsername = transitional2 && utils_default.hasOwnProp(transitional2, "encodeBasicAuthUsername") && transitional2.encodeBasicAuthUsername === true;
15920
16565
  try {
15921
16566
  headers.set(
15922
16567
  "Authorization",
15923
- "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
16568
+ // Preserve legacy username bytes unless the caller opts in to UTF-8.
16569
+ "Basic " + btoa(
16570
+ (encodeUsername ? encodeUTF8(username) : username) + ":" + (password ? encodeUTF8(password) : "")
16571
+ )
15924
16572
  );
15925
16573
  } catch (e) {
15926
16574
  throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
15927
16575
  }
15928
16576
  }
15929
16577
  if (utils_default.isFormData(data)) {
16578
+ const getHeaders = utils_default.getSafeProp(data, "getHeaders");
15930
16579
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15931
16580
  headers.setContentType(void 0);
15932
- } else if (utils_default.isFunction(data.getHeaders)) {
15933
- setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
16581
+ } else if (utils_default.isFunction(getHeaders)) {
16582
+ setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
15934
16583
  }
15935
16584
  }
15936
16585
  if (platform_default.hasStandardBrowserEnv) {
@@ -15939,7 +16588,7 @@ function resolveConfig(config) {
15939
16588
  }
15940
16589
  const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
15941
16590
  if (shouldSendXSRF) {
15942
- const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
16591
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && readXsrfCookie(xsrfCookieName);
15943
16592
  if (xsrfValue) {
15944
16593
  headers.set(xsrfHeaderName, xsrfValue);
15945
16594
  }
@@ -15949,27 +16598,81 @@ function resolveConfig(config) {
15949
16598
  }
15950
16599
  var resolveConfig_default = resolveConfig;
15951
16600
 
15952
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
16601
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
15953
16602
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15954
16603
  var xhr_default = isXHRAdapterSupported && function(config) {
15955
16604
  return new Promise(function dispatchXhrRequest(resolve, reject) {
15956
- const _config = resolveConfig_default(config);
16605
+ let useAsyncXsrf;
16606
+ try {
16607
+ const store = platform_default.hasStandardBrowserEnv && typeof window !== "undefined" && window.cookieStore;
16608
+ useAsyncXsrf = store && utils_default.isFunction(store.get);
16609
+ } catch (e) {
16610
+ }
16611
+ let xsrfCookieName;
16612
+ const _config = resolveConfig_default(
16613
+ config,
16614
+ useAsyncXsrf ? (name) => {
16615
+ xsrfCookieName = name;
16616
+ return null;
16617
+ } : void 0
16618
+ );
15957
16619
  let requestData = _config.data;
15958
16620
  const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
15959
16621
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
15960
16622
  let onCanceled;
16623
+ let timeoutId;
15961
16624
  let uploadThrottled, downloadThrottled;
15962
- let flushUpload, flushDownload;
16625
+ let flushUpload, flushDownload, flushDownloadWithEvent;
15963
16626
  function done() {
15964
- flushUpload && flushUpload();
15965
- flushDownload && flushDownload();
16627
+ clearTimeout(timeoutId);
16628
+ try {
16629
+ flushUpload && flushUpload();
16630
+ } catch (err) {
16631
+ setTimeout(() => {
16632
+ throw err;
16633
+ });
16634
+ }
16635
+ try {
16636
+ flushDownload && flushDownload();
16637
+ } catch (err) {
16638
+ setTimeout(() => {
16639
+ throw err;
16640
+ });
16641
+ }
16642
+ if (request) {
16643
+ downloadThrottled && request.removeEventListener("progress", downloadThrottled);
16644
+ if (request.upload) {
16645
+ uploadThrottled && request.upload.removeEventListener("progress", uploadThrottled);
16646
+ flushUpload && request.upload.removeEventListener("loadend", flushUpload);
16647
+ }
16648
+ }
15966
16649
  _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
15967
16650
  _config.signal && _config.signal.removeEventListener("abort", onCanceled);
15968
16651
  }
15969
16652
  let request = new XMLHttpRequest();
15970
16653
  request.open(_config.method.toUpperCase(), _config.url, true);
15971
16654
  request.timeout = _config.timeout;
15972
- function onloadend() {
16655
+ function onloadend(event) {
16656
+ if (!request) {
16657
+ return;
16658
+ }
16659
+ if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
16660
+ reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
16661
+ done();
16662
+ request = null;
16663
+ return;
16664
+ }
16665
+ try {
16666
+ if (event) {
16667
+ flushDownloadWithEvent && flushDownloadWithEvent(event);
16668
+ } else {
16669
+ flushDownload && flushDownload();
16670
+ }
16671
+ } catch (err) {
16672
+ setTimeout(() => {
16673
+ throw err;
16674
+ });
16675
+ }
15973
16676
  if (!request) {
15974
16677
  return;
15975
16678
  }
@@ -16028,6 +16731,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16028
16731
  request = null;
16029
16732
  };
16030
16733
  request.ontimeout = function handleTimeout() {
16734
+ if (!request) return;
16031
16735
  let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
16032
16736
  const transitional2 = _config.transitional || transitional_default;
16033
16737
  if (_config.timeoutErrorMessage) {
@@ -16045,11 +16749,6 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16045
16749
  request = null;
16046
16750
  };
16047
16751
  requestData === void 0 && requestHeaders.setContentType(null);
16048
- if ("setRequestHeader" in request) {
16049
- utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
16050
- request.setRequestHeader(key, val);
16051
- });
16052
- }
16053
16752
  if (!utils_default.isUndefined(_config.withCredentials)) {
16054
16753
  request.withCredentials = !!_config.withCredentials;
16055
16754
  }
@@ -16057,7 +16756,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16057
16756
  request.responseType = _config.responseType;
16058
16757
  }
16059
16758
  if (onDownloadProgress) {
16060
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
16759
+ [downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
16760
+ onDownloadProgress,
16761
+ true
16762
+ );
16061
16763
  request.addEventListener("progress", downloadThrottled);
16062
16764
  }
16063
16765
  if (onUploadProgress && request.upload) {
@@ -16071,15 +16773,18 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16071
16773
  return;
16072
16774
  }
16073
16775
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
16074
- request.abort();
16776
+ const xhr = request;
16075
16777
  done();
16076
16778
  request = null;
16779
+ xhr.abort();
16077
16780
  };
16078
16781
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
16782
+ if (!request) return;
16079
16783
  if (_config.signal) {
16080
16784
  _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
16081
16785
  }
16082
16786
  }
16787
+ if (!request) return;
16083
16788
  const protocol = parseProtocol(_config.url);
16084
16789
  if (protocol && !platform_default.protocols.includes(protocol)) {
16085
16790
  reject(
@@ -16092,11 +16797,62 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16092
16797
  done();
16093
16798
  return;
16094
16799
  }
16095
- request.send(requestData || null);
16800
+ const sendRequest = () => {
16801
+ if (!request) return;
16802
+ if ("setRequestHeader" in request) {
16803
+ utils_default.forEach(
16804
+ toByteStringHeaderObject(requestHeaders),
16805
+ function setRequestHeader(val, key) {
16806
+ request.setRequestHeader(key, val);
16807
+ }
16808
+ );
16809
+ }
16810
+ request.send(requestData || null);
16811
+ };
16812
+ if (xsrfCookieName) {
16813
+ const now = typeof performance !== "undefined" && utils_default.isFunction(performance.now) ? () => performance.now() : Date.now;
16814
+ const deadline = request.timeout > 0 ? now() + Number(request.timeout) : void 0;
16815
+ const abortOnTimeout = () => {
16816
+ if (!request) return;
16817
+ const xhr = request;
16818
+ xhr.ontimeout();
16819
+ xhr.abort();
16820
+ };
16821
+ if (deadline !== void 0) {
16822
+ const scheduleTimeout = () => {
16823
+ const remaining = deadline - now();
16824
+ if (remaining > 0) {
16825
+ timeoutId = setTimeout(scheduleTimeout, Math.min(remaining, 2147483647));
16826
+ } else {
16827
+ abortOnTimeout();
16828
+ }
16829
+ };
16830
+ scheduleTimeout();
16831
+ }
16832
+ cookies_default.readAsync(xsrfCookieName).then((value) => {
16833
+ if (!request) return;
16834
+ if (deadline !== void 0 && now() >= deadline) {
16835
+ abortOnTimeout();
16836
+ return;
16837
+ }
16838
+ if (value) {
16839
+ const headerName = utils_default.hasOwnProp(_config, "xsrfHeaderName") && _config.xsrfHeaderName;
16840
+ requestHeaders.set(headerName, value);
16841
+ }
16842
+ sendRequest();
16843
+ }).catch((error) => {
16844
+ if (!request) return;
16845
+ reject(AxiosError_default.from(error, null, config, request));
16846
+ done();
16847
+ request = null;
16848
+ });
16849
+ } else {
16850
+ sendRequest();
16851
+ }
16096
16852
  });
16097
16853
  };
16098
16854
 
16099
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
16855
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
16100
16856
  var composeSignals = (signals, timeout) => {
16101
16857
  signals = signals ? signals.filter(Boolean) : [];
16102
16858
  if (!timeout && !signals.length) {
@@ -16125,7 +16881,8 @@ var composeSignals = (signals, timeout) => {
16125
16881
  timer && clearTimeout(timer);
16126
16882
  timer = null;
16127
16883
  signals.forEach((signal2) => {
16128
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
16884
+ const unsubscribeSignal = utils_default.getSafeProp(signal2, "unsubscribe");
16885
+ utils_default.isFunction(unsubscribeSignal) ? unsubscribeSignal.call(signal2, onabort) : signal2.removeEventListener("abort", onabort);
16129
16886
  });
16130
16887
  signals = null;
16131
16888
  };
@@ -16145,7 +16902,7 @@ var composeSignals = (signals, timeout) => {
16145
16902
  };
16146
16903
  var composeSignals_default = composeSignals;
16147
16904
 
16148
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
16905
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
16149
16906
  var streamChunk = function* (chunk, chunkSize) {
16150
16907
  let len = chunk.byteLength;
16151
16908
  if (!chunkSize || len < chunkSize) {
@@ -16225,8 +16982,123 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
16225
16982
  );
16226
16983
  };
16227
16984
 
16228
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
16985
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToBlob.js
16986
+ var CRLF2 = "\r\n";
16987
+ var normalizeLines = (value) => String(value).replace(/\r\n|\r|\n/g, CRLF2);
16988
+ var escapeName = (value) => String(value).replace(
16989
+ /[\r\n"]/g,
16990
+ (char) => char === "\r" ? "%0D" : char === "\n" ? "%0A" : "%22"
16991
+ );
16992
+ var stringBytes = (value, normalize) => {
16993
+ let length = 0;
16994
+ for (let i = 0; i < value.length; i++) {
16995
+ const code = value.charCodeAt(i);
16996
+ if (normalize && (code === 13 || code === 10)) {
16997
+ if (code === 13 && value.charCodeAt(i + 1) === 10) i++;
16998
+ length += 2;
16999
+ } else if (code < 128) {
17000
+ length++;
17001
+ } else if (code < 2048) {
17002
+ length += 2;
17003
+ } else if (code >= 55296 && code <= 56319 && value.charCodeAt(i + 1) >= 56320 && value.charCodeAt(i + 1) <= 57343) {
17004
+ length += 4;
17005
+ i++;
17006
+ } else {
17007
+ length += 3;
17008
+ }
17009
+ }
17010
+ return length;
17011
+ };
17012
+ var FormDataError = class extends TypeError {
17013
+ constructor(message, reason) {
17014
+ super(message);
17015
+ this.name = "FormDataError";
17016
+ this.reason = reason;
17017
+ }
17018
+ };
17019
+ function formDataToBlob(form, Blob2, limit, limitError, boundary) {
17020
+ if (!utils_default.isFunction(Blob2)) {
17021
+ throw new FormDataError("Blob is not supported", "blob");
17022
+ }
17023
+ if (!utils_default.isString(boundary) || !/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(boundary) || / $/.test(boundary)) {
17024
+ throw new FormDataError("Invalid multipart boundary", "boundary");
17025
+ }
17026
+ const footer = "--" + boundary + "--" + CRLF2;
17027
+ let length = footer.length;
17028
+ const parts = [];
17029
+ const checkLength = (extra) => {
17030
+ if (length + extra > limit) throw limitError();
17031
+ };
17032
+ checkLength(0);
17033
+ for (const [name, value] of form) {
17034
+ const isString2 = utils_default.isString(value);
17035
+ const valueLength = isString2 ? stringBytes(value, true) : value.size;
17036
+ if (!Number.isFinite(valueLength) || valueLength < 0) {
17037
+ throw new FormDataError("Unsupported FormData part size", "part");
17038
+ }
17039
+ checkLength(
17040
+ valueLength + stringBytes(name, true) + (!isString2 && value.name ? stringBytes(value.name, false) : 0) + (!isString2 && value.type ? stringBytes(value.type, false) : 0)
17041
+ );
17042
+ let header = "--" + boundary + CRLF2 + 'Content-Disposition: form-data; name="' + escapeName(normalizeLines(name)) + '"';
17043
+ if (!isString2) {
17044
+ header += '; filename="' + escapeName(utils_default.isString(value.name) ? value.name : "blob") + '"' + CRLF2 + "Content-Type: " + String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
17045
+ }
17046
+ header += CRLF2 + CRLF2;
17047
+ const partLength = stringBytes(header, false) + valueLength + CRLF2.length;
17048
+ checkLength(partLength);
17049
+ length += partLength;
17050
+ parts.push({ header, value, isString: isString2 });
17051
+ }
17052
+ const blobParts = [];
17053
+ for (const part of parts) {
17054
+ blobParts.push(part.header, part.isString ? normalizeLines(part.value) : part.value, CRLF2);
17055
+ }
17056
+ blobParts.push(footer);
17057
+ return new Blob2(blobParts, { type: "multipart/form-data; boundary=" + boundary });
17058
+ }
17059
+
17060
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/createMultipartBody.js
17061
+ function createMultipartBody(form, Blob2, limit, limitError, boundary) {
17062
+ if (!utils_default.isFunction(Blob2)) {
17063
+ throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
17064
+ }
17065
+ if (boundary === void 0) {
17066
+ if (utils_default.isFunction(platform_default.generateString)) {
17067
+ boundary = "axios-" + platform_default.generateString(36, "0123456789abcdef");
17068
+ } else {
17069
+ const crypto2 = utils_default.global.crypto;
17070
+ if (!crypto2 || !utils_default.isFunction(crypto2.getRandomValues)) {
17071
+ throw new AxiosError_default("Random byte generation is not supported", AxiosError_default.ERR_NOT_SUPPORT);
17072
+ }
17073
+ const random = new Uint8Array(18);
17074
+ crypto2.getRandomValues(random);
17075
+ boundary = "axios-" + Array.from(random, (value) => ("0" + value.toString(16)).slice(-2)).join("");
17076
+ }
17077
+ }
17078
+ try {
17079
+ return formDataToBlob(form, Blob2, limit, limitError, boundary);
17080
+ } catch (error) {
17081
+ if (error instanceof FormDataError) {
17082
+ const code = error.reason === "boundary" ? AxiosError_default.ERR_BAD_OPTION_VALUE : AxiosError_default.ERR_BAD_REQUEST;
17083
+ throw new AxiosError_default(error.message, code);
17084
+ }
17085
+ throw error;
17086
+ }
17087
+ }
17088
+
17089
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
16229
17090
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
17091
+ var DEFAULT_REQUEST_OPTIONS = {
17092
+ cache: "default",
17093
+ redirect: "follow",
17094
+ referrer: "about:client",
17095
+ referrerPolicy: "",
17096
+ mode: "cors",
17097
+ integrity: "",
17098
+ keepalive: false,
17099
+ priority: "auto",
17100
+ window: null
17101
+ };
16230
17102
  var { isFunction: isFunction2 } = utils_default;
16231
17103
  var encodeUTF82 = (str) => encodeURIComponent(str).replace(
16232
17104
  /%([0-9A-F]{2})/gi,
@@ -16266,11 +17138,13 @@ var factory = (env) => {
16266
17138
  },
16267
17139
  {
16268
17140
  Request: globalObject.Request,
16269
- Response: globalObject.Response
17141
+ Response: globalObject.Response,
17142
+ Blob: globalObject.Blob
16270
17143
  },
16271
17144
  env
16272
17145
  );
16273
- const { fetch: envFetch, Request, Response } = env;
17146
+ const envFetch = utils_default.hasOwnProp(env, "fetch") ? env.fetch : void 0;
17147
+ const { Request, Response, Blob: Blob2 } = env;
16274
17148
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
16275
17149
  const isRequestSupported = isFunction2(Request);
16276
17150
  const isResponseSupported = isFunction2(Response);
@@ -16296,6 +17170,13 @@ var factory = (env) => {
16296
17170
  return duplexAccessed && !hasContentType;
16297
17171
  });
16298
17172
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
17173
+ const requestDefaults = Object.assign(/* @__PURE__ */ Object.create(null), DEFAULT_REQUEST_OPTIONS);
17174
+ if (isRequestSupported && !test(() => new Request(platform_default.origin, requestDefaults))) {
17175
+ delete requestDefaults.cache;
17176
+ if (!test(() => new Request(platform_default.origin, requestDefaults))) {
17177
+ requestDefaults.cache = DEFAULT_REQUEST_OPTIONS.cache;
17178
+ }
17179
+ }
16299
17180
  const resolvers = {
16300
17181
  stream: supportsResponseStream && ((res) => res.body)
16301
17182
  };
@@ -16321,13 +17202,6 @@ var factory = (env) => {
16321
17202
  if (utils_default.isBlob(body)) {
16322
17203
  return body.size;
16323
17204
  }
16324
- if (utils_default.isSpecCompliantForm(body)) {
16325
- const _request = new Request(platform_default.origin, {
16326
- method: "POST",
16327
- body
16328
- });
16329
- return (await _request.arrayBuffer()).byteLength;
16330
- }
16331
17205
  if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
16332
17206
  return body.byteLength;
16333
17207
  }
@@ -16357,7 +17231,8 @@ var factory = (env) => {
16357
17231
  withCredentials = "same-origin",
16358
17232
  fetchOptions,
16359
17233
  maxContentLength,
16360
- maxBodyLength
17234
+ maxBodyLength,
17235
+ maxRedirects
16361
17236
  } = resolveConfig_default(config);
16362
17237
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
16363
17238
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
@@ -16374,6 +17249,7 @@ var factory = (env) => {
16374
17249
  });
16375
17250
  let requestContentLength;
16376
17251
  let pendingBodyError = null;
17252
+ let pendingResponseError = null;
16377
17253
  const maxBodyLengthError = () => new AxiosError_default(
16378
17254
  "Request body larger than maxBodyLength limit",
16379
17255
  AxiosError_default.ERR_BAD_REQUEST,
@@ -16391,8 +17267,9 @@ var factory = (env) => {
16391
17267
  password
16392
17268
  };
16393
17269
  }
17270
+ let parsedURL;
16394
17271
  if (maybeWithAuthCredentials(url2)) {
16395
- const parsedURL = new URL(url2, platform_default.origin);
17272
+ parsedURL = new URL(url2, platform_default.origin);
16396
17273
  if (!auth && (parsedURL.username || parsedURL.password)) {
16397
17274
  const urlUsername = decodeURIComponentSafe2(parsedURL.username);
16398
17275
  const urlPassword = decodeURIComponentSafe2(parsedURL.password);
@@ -16414,8 +17291,8 @@ var factory = (env) => {
16414
17291
  "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
16415
17292
  );
16416
17293
  }
16417
- if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
16418
- const estimated = estimateDataURLDecodedBytes(url2);
17294
+ if (hasMaxContentLength && parsedURL && parsedURL.protocol === "data:") {
17295
+ const estimated = estimateDataURLDecodedBytes(parsedURL.href);
16419
17296
  if (estimated > maxContentLength) {
16420
17297
  throw new AxiosError_default(
16421
17298
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -16425,6 +17302,23 @@ var factory = (env) => {
16425
17302
  );
16426
17303
  }
16427
17304
  }
17305
+ const formContentType = utils_default.isSpecCompliantForm(data) && AxiosHeaders_default.from(own2("headers")).getContentType();
17306
+ let formBoundary;
17307
+ if (utils_default.isString(formContentType) && /^multipart\/form-data(?:\s*;|$)/i.test(formContentType.trim())) {
17308
+ const parameters = AxiosHeaders_default.parseParameters(formContentType);
17309
+ if (utils_default.hasOwnProp(parameters, "boundary")) formBoundary = parameters.boundary;
17310
+ }
17311
+ if (utils_default.isSpecCompliantForm(data) && method !== "get" && method !== "head" && (hasMaxBodyLength || onUploadProgress && supportsRequestStream || formBoundary !== void 0)) {
17312
+ data = createMultipartBody(
17313
+ data,
17314
+ Blob2,
17315
+ hasMaxBodyLength ? maxBodyLength : Infinity,
17316
+ maxBodyLengthError,
17317
+ formBoundary
17318
+ );
17319
+ headers.setContentType(formBoundary === void 0 ? data.type : formContentType);
17320
+ requestContentLength = data.size;
17321
+ }
16428
17322
  if (hasMaxBodyLength && method !== "get" && method !== "head") {
16429
17323
  const outboundLength = await getBodyLength(data);
16430
17324
  if (typeof outboundLength === "number" && isFinite(outboundLength)) {
@@ -16487,17 +17381,44 @@ var factory = (env) => {
16487
17381
  }
16488
17382
  }
16489
17383
  headers.set("User-Agent", "axios/" + VERSION, false);
16490
- const resolvedOptions = {
16491
- ...fetchOptions,
17384
+ const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
17385
+ if (safeFetchOptions) {
17386
+ delete safeFetchOptions.body;
17387
+ delete safeFetchOptions.headers;
17388
+ delete safeFetchOptions.method;
17389
+ delete safeFetchOptions.signal;
17390
+ delete safeFetchOptions.duplex;
17391
+ delete safeFetchOptions.credentials;
17392
+ }
17393
+ const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
16492
17394
  signal: composedSignal,
16493
17395
  method: method.toUpperCase(),
16494
17396
  headers: toByteStringHeaderObject(headers.normalize()),
16495
17397
  body: data,
16496
17398
  duplex: "half",
16497
17399
  credentials: isCredentialsSupported ? withCredentials : void 0
16498
- };
17400
+ });
17401
+ if (isRequestSupported) {
17402
+ utils_default.forEach(requestDefaults, (value, key) => {
17403
+ if (resolvedOptions[key] === void 0) {
17404
+ resolvedOptions[key] = value;
17405
+ }
17406
+ });
17407
+ if (resolvedOptions.signal === void 0) {
17408
+ resolvedOptions.signal = null;
17409
+ }
17410
+ if (resolvedOptions.body === void 0) {
17411
+ resolvedOptions.body = null;
17412
+ }
17413
+ }
17414
+ if (maxRedirects === 0) {
17415
+ resolvedOptions.redirect = "manual";
17416
+ if (safeFetchOptions) {
17417
+ safeFetchOptions.redirect = "manual";
17418
+ }
17419
+ }
16499
17420
  request = isRequestSupported && new Request(url2, resolvedOptions);
16500
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
17421
+ let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url2, resolvedOptions));
16501
17422
  const responseHeaders = AxiosHeaders_default.from(response.headers);
16502
17423
  if (hasMaxContentLength) {
16503
17424
  const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
@@ -16526,7 +17447,7 @@ var factory = (env) => {
16526
17447
  if (hasMaxContentLength) {
16527
17448
  bytesRead = loadedBytes;
16528
17449
  if (bytesRead > maxContentLength) {
16529
- throw new AxiosError_default(
17450
+ throw pendingResponseError = new AxiosError_default(
16530
17451
  "maxContentLength size of " + maxContentLength + " exceeded",
16531
17452
  AxiosError_default.ERR_BAD_RESPONSE,
16532
17453
  config,
@@ -16601,6 +17522,9 @@ var factory = (env) => {
16601
17522
  request && !pendingBodyError.request && (pendingBodyError.request = request);
16602
17523
  throw pendingBodyError;
16603
17524
  }
17525
+ if (pendingResponseError) {
17526
+ throw pendingResponseError;
17527
+ }
16604
17528
  if (err instanceof AxiosError_default) {
16605
17529
  request && !err.request && (err.request = request);
16606
17530
  throw err;
@@ -16628,9 +17552,15 @@ var factory = (env) => {
16628
17552
  };
16629
17553
  var seedCache = /* @__PURE__ */ new Map();
16630
17554
  var getFetch = (config) => {
16631
- let env = config && config.env || {};
16632
- const { fetch: fetch2, Request, Response } = env;
16633
- const seeds = [Request, Response, fetch2];
17555
+ const env = /* @__PURE__ */ Object.create(null);
17556
+ const configuredEnv = config && utils_default.hasOwnProp(config, "env") && config.env;
17557
+ ["fetch", "Request", "Response", "Blob"].forEach((key) => {
17558
+ if (configuredEnv && utils_default.hasOwnProp(configuredEnv, key)) {
17559
+ env[key] = configuredEnv[key];
17560
+ }
17561
+ });
17562
+ const { fetch: fetch2, Request, Response, Blob: Blob2 } = env;
17563
+ const seeds = [Request, Response, fetch2, Blob2];
16634
17564
  let len = seeds.length, i = len, seed, target, map = seedCache;
16635
17565
  while (i--) {
16636
17566
  seed = seeds[i];
@@ -16642,7 +17572,7 @@ var getFetch = (config) => {
16642
17572
  };
16643
17573
  var adapter = getFetch();
16644
17574
 
16645
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
17575
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
16646
17576
  var knownAdapters = {
16647
17577
  http: http_default,
16648
17578
  xhr: xhr_default,
@@ -16707,7 +17637,7 @@ var adapters_default = {
16707
17637
  adapters: knownAdapters
16708
17638
  };
16709
17639
 
16710
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
17640
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
16711
17641
  function throwIfCancellationRequested(config) {
16712
17642
  if (config.cancelToken) {
16713
17643
  config.cancelToken.throwIfRequested();
@@ -16716,17 +17646,23 @@ function throwIfCancellationRequested(config) {
16716
17646
  throw new CanceledError_default(null, config);
16717
17647
  }
16718
17648
  }
16719
- function dispatchRequest(config) {
17649
+ function elapsedSince(start) {
17650
+ return Math.max(0, Date.now() - start);
17651
+ }
17652
+ function dispatchRequest(_config) {
17653
+ const config = utils_default.toSafeFlatObject(_config);
16720
17654
  throwIfCancellationRequested(config);
16721
- config.headers = AxiosHeaders_default.from(config.headers);
17655
+ config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
16722
17656
  config.data = transformData.call(config, config.transformRequest);
16723
17657
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
16724
17658
  config.headers.setContentType("application/x-www-form-urlencoded", false);
16725
17659
  }
16726
17660
  const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
17661
+ const start = Date.now();
16727
17662
  return adapter2(config).then(
16728
17663
  function onAdapterResolution(response) {
16729
17664
  throwIfCancellationRequested(config);
17665
+ response.duration = elapsedSince(start);
16730
17666
  config.response = response;
16731
17667
  try {
16732
17668
  response.data = transformData.call(config, config.transformResponse, response);
@@ -16740,6 +17676,7 @@ function dispatchRequest(config) {
16740
17676
  if (!isCancel(reason)) {
16741
17677
  throwIfCancellationRequested(config);
16742
17678
  if (reason && reason.response) {
17679
+ reason.response.duration = elapsedSince(start);
16743
17680
  config.response = reason.response;
16744
17681
  try {
16745
17682
  reason.response.data = transformData.call(
@@ -16758,7 +17695,7 @@ function dispatchRequest(config) {
16758
17695
  );
16759
17696
  }
16760
17697
 
16761
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
17698
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
16762
17699
  var validators = {};
16763
17700
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16764
17701
  validators[type] = function validator(thing) {
@@ -16825,8 +17762,29 @@ var validator_default = {
16825
17762
  validators
16826
17763
  };
16827
17764
 
16828
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
17765
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
16829
17766
  var validators2 = validator_default.validators;
17767
+ var isHeadersBucket = (value) => {
17768
+ if (value == null || utils_default.isPlainObject(value) || value instanceof AxiosHeaders_default) {
17769
+ return true;
17770
+ }
17771
+ try {
17772
+ return utils_default.isObject(value) && utils_default.getSafeProp(value, Symbol.toStringTag) === "AxiosHeaders" && [
17773
+ "toJSON",
17774
+ "set",
17775
+ "get",
17776
+ "has",
17777
+ "delete",
17778
+ "clear",
17779
+ "normalize",
17780
+ "concat",
17781
+ "toString",
17782
+ Symbol.iterator
17783
+ ].every((method) => utils_default.isFunction(utils_default.getSafeProp(value, method)));
17784
+ } catch (e) {
17785
+ return false;
17786
+ }
17787
+ };
16830
17788
  var Axios = class {
16831
17789
  constructor(instanceConfig) {
16832
17790
  this.defaults = instanceConfig || {};
@@ -16848,24 +17806,27 @@ var Axios = class {
16848
17806
  return await this._request(configOrUrl, config);
16849
17807
  } catch (err) {
16850
17808
  if (err instanceof Error) {
16851
- let dummy = {};
16852
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
16853
- const stack = (() => {
16854
- if (!dummy.stack) {
16855
- return "";
16856
- }
16857
- const firstNewlineIndex = dummy.stack.indexOf("\n");
16858
- return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
16859
- })();
16860
17809
  try {
17810
+ let dummy = {};
17811
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
17812
+ const dummyStack = dummy.stack;
17813
+ let stack = "";
17814
+ if (typeof dummyStack === "string") {
17815
+ const firstNewlineIndex = dummyStack.indexOf("\n");
17816
+ stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
17817
+ }
16861
17818
  if (!err.stack) {
16862
17819
  err.stack = stack;
16863
17820
  } else if (stack) {
16864
17821
  const firstNewlineIndex = stack.indexOf("\n");
16865
17822
  const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
16866
- const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
16867
- if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
16868
- err.stack += "\n" + stack;
17823
+ const duplicateCheckSuffix = secondNewlineIndex === -1 ? stack : stack.slice(secondNewlineIndex + 1);
17824
+ const currentStack = String(err.stack);
17825
+ const causeIndex = getCauseStackIndex(err, currentStack);
17826
+ const stackHead = causeIndex === -1 ? currentStack : currentStack.slice(0, causeIndex);
17827
+ const causeSection = causeIndex === -1 ? "" : currentStack.slice(causeIndex);
17828
+ if (!stackHead.endsWith(duplicateCheckSuffix)) {
17829
+ err.stack = stackHead + "\n" + stack + causeSection;
16869
17830
  }
16870
17831
  }
16871
17832
  } catch (e) {
@@ -16892,7 +17853,8 @@ var Axios = class {
16892
17853
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
16893
17854
  legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
16894
17855
  advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
16895
- validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
17856
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean),
17857
+ encodeBasicAuthUsername: validators2.transitional(validators2.boolean)
16896
17858
  },
16897
17859
  false
16898
17860
  );
@@ -16914,7 +17876,7 @@ var Axios = class {
16914
17876
  }
16915
17877
  }
16916
17878
  if (config.allowAbsoluteUrls !== void 0) {
16917
- } else if (this.defaults.allowAbsoluteUrls !== void 0) {
17879
+ } else if (utils_default.hasOwnProp(this.defaults, "allowAbsoluteUrls") && this.defaults.allowAbsoluteUrls !== void 0) {
16918
17880
  config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
16919
17881
  } else {
16920
17882
  config.allowAbsoluteUrls = true;
@@ -16927,10 +17889,17 @@ var Axios = class {
16927
17889
  },
16928
17890
  true
16929
17891
  );
16930
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
16931
- let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
16932
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
16933
- delete headers[method];
17892
+ config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
17893
+ const commonHeaders = utils_default.getSafeProp(headers, "common");
17894
+ const methodHeaders = utils_default.getSafeProp(headers, config.method);
17895
+ const contextHeaders = headers && utils_default.merge(
17896
+ isHeadersBucket(commonHeaders) ? commonHeaders : void 0,
17897
+ isHeadersBucket(methodHeaders) ? methodHeaders : void 0
17898
+ );
17899
+ headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
17900
+ if (isHeadersBucket(utils_default.getSafeProp(headers, method))) {
17901
+ delete headers[method];
17902
+ }
16934
17903
  });
16935
17904
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
16936
17905
  const requestInterceptorChain = [];
@@ -17012,7 +17981,7 @@ var Axios = class {
17012
17981
  }
17013
17982
  };
17014
17983
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
17015
- Axios.prototype[method] = function(url2, config) {
17984
+ Axios.prototype[method] = async function(url2, config) {
17016
17985
  return this.request(
17017
17986
  mergeConfig(config || {}, {
17018
17987
  method,
@@ -17024,7 +17993,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
17024
17993
  });
17025
17994
  utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
17026
17995
  function generateHTTPMethod(isForm) {
17027
- return function httpMethod(url2, data, config) {
17996
+ return async function httpMethod(url2, data, config) {
17028
17997
  return this.request(
17029
17998
  mergeConfig(config || {}, {
17030
17999
  method,
@@ -17044,7 +18013,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
17044
18013
  });
17045
18014
  var Axios_default = Axios;
17046
18015
 
17047
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
18016
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
17048
18017
  var CancelToken = class _CancelToken {
17049
18018
  constructor(executor) {
17050
18019
  if (typeof executor !== "function") {
@@ -17142,19 +18111,19 @@ var CancelToken = class _CancelToken {
17142
18111
  };
17143
18112
  var CancelToken_default = CancelToken;
17144
18113
 
17145
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
18114
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
17146
18115
  function spread(callback) {
17147
18116
  return function wrap(arr) {
17148
18117
  return callback.apply(null, arr);
17149
18118
  };
17150
18119
  }
17151
18120
 
17152
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
18121
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
17153
18122
  function isAxiosError(payload) {
17154
18123
  return utils_default.isObject(payload) && payload.isAxiosError === true;
17155
18124
  }
17156
18125
 
17157
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
18126
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
17158
18127
  var HttpStatusCode = {
17159
18128
  Continue: 100,
17160
18129
  SwitchingProtocols: 101,
@@ -17192,14 +18161,22 @@ var HttpStatusCode = {
17192
18161
  Gone: 410,
17193
18162
  LengthRequired: 411,
17194
18163
  PreconditionFailed: 412,
18164
+ /**
18165
+ * @deprecated Use `ContentTooLarge` instead.
18166
+ */
17195
18167
  PayloadTooLarge: 413,
18168
+ ContentTooLarge: 413,
17196
18169
  UriTooLong: 414,
17197
18170
  UnsupportedMediaType: 415,
17198
18171
  RangeNotSatisfiable: 416,
17199
18172
  ExpectationFailed: 417,
17200
18173
  ImATeapot: 418,
17201
18174
  MisdirectedRequest: 421,
18175
+ /**
18176
+ * @deprecated Use `UnprocessableContent` instead.
18177
+ */
17202
18178
  UnprocessableEntity: 422,
18179
+ UnprocessableContent: 422,
17203
18180
  Locked: 423,
17204
18181
  FailedDependency: 424,
17205
18182
  TooEarly: 425,
@@ -17228,11 +18205,13 @@ var HttpStatusCode = {
17228
18205
  InvalidSslCertificate: 526
17229
18206
  };
17230
18207
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
17231
- HttpStatusCode[value] = key;
18208
+ if (HttpStatusCode[value] === void 0) {
18209
+ HttpStatusCode[value] = key;
18210
+ }
17232
18211
  });
17233
18212
  var HttpStatusCode_default = HttpStatusCode;
17234
18213
 
17235
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
18214
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
17236
18215
  function createInstance(defaultConfig) {
17237
18216
  const context = new Axios_default(defaultConfig);
17238
18217
  const instance = bind(Axios_default.prototype.request, context);
@@ -17265,7 +18244,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
17265
18244
  axios.default = axios;
17266
18245
  var axios_default = axios;
17267
18246
 
17268
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
18247
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
17269
18248
  var {
17270
18249
  Axios: Axios2,
17271
18250
  AxiosError: AxiosError2,
@@ -17286,18 +18265,18 @@ var {
17286
18265
  create
17287
18266
  } = axios_default;
17288
18267
 
17289
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
18268
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
17290
18269
  var import_debug2 = __toESM(require_src(), 1);
17291
18270
  import { EventEmitter as EventEmitter3 } from "events";
17292
18271
 
17293
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
18272
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
17294
18273
  var import_debug = __toESM(require_src(), 1);
17295
18274
  import { EventEmitter as EventEmitter2 } from "events";
17296
18275
  import fs from "fs";
17297
18276
  import net from "net";
17298
18277
  import tls from "tls";
17299
18278
 
17300
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
18279
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
17301
18280
  import { Transform } from "stream";
17302
18281
  var HeaderHostTransformer = class extends Transform {
17303
18282
  host;
@@ -17315,7 +18294,7 @@ var HeaderHostTransformer = class extends Transform {
17315
18294
  }
17316
18295
  };
17317
18296
 
17318
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
18297
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
17319
18298
  var log = (0, import_debug.default)("pipenet:client");
17320
18299
  var TunnelCluster = class extends EventEmitter2 {
17321
18300
  opts;
@@ -17415,7 +18394,7 @@ var TunnelCluster = class extends EventEmitter2 {
17415
18394
  }
17416
18395
  };
17417
18396
 
17418
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
18397
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
17419
18398
  var log2 = (0, import_debug2.default)("pipenet:client");
17420
18399
  var Tunnel = class extends EventEmitter3 {
17421
18400
  cachedUrl;
@@ -17563,7 +18542,7 @@ var Tunnel = class extends EventEmitter3 {
17563
18542
  }
17564
18543
  };
17565
18544
 
17566
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
18545
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
17567
18546
  function pipenet(arg1, arg2, arg3) {
17568
18547
  const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
17569
18548
  const callback = typeof arg1 === "object" ? arg2 : arg3;