@alpic-ai/sdk 0.0.0-dev.g35e4c7c → 0.0.0-dev.g3607bbd

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.
@@ -12069,14 +12069,14 @@ var require_follow_redirects = __commonJS({
12069
12069
  }
12070
12070
  });
12071
12071
 
12072
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
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
12073
12073
  function bind(fn, thisArg) {
12074
12074
  return function wrap() {
12075
12075
  return fn.apply(thisArg, arguments);
12076
12076
  };
12077
12077
  }
12078
12078
 
12079
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
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
12080
12080
  var { toString } = Object.prototype;
12081
12081
  var { getPrototypeOf } = Object;
12082
12082
  var { iterator, toStringTag } = Symbol;
@@ -12154,6 +12154,7 @@ var isReactNativeBlob = (value) => {
12154
12154
  var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
12155
12155
  var isBlob = kindOfTest("Blob");
12156
12156
  var isFileList = kindOfTest("FileList");
12157
+ var isSet = kindOfTest("Set");
12157
12158
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
12158
12159
  function getGlobal() {
12159
12160
  if (typeof globalThis !== "undefined") return globalThis;
@@ -12449,11 +12450,20 @@ var toJSONObject = (obj) => {
12449
12450
  }
12450
12451
  if (!("toJSON" in source)) {
12451
12452
  visited.add(source);
12452
- const target = isArray(source) ? [] : {};
12453
- forEach(source, (value, key) => {
12454
- const reducedValue = visit(value);
12455
- !isUndefined(reducedValue) && (target[key] = reducedValue);
12456
- });
12453
+ let target;
12454
+ if (isSet(source)) {
12455
+ target = [];
12456
+ for (const value of source) {
12457
+ const reducedValue = visit(value);
12458
+ !isUndefined(reducedValue) && target.push(reducedValue);
12459
+ }
12460
+ } else {
12461
+ target = isArray(source) ? [] : {};
12462
+ forEach(source, (value, key) => {
12463
+ const reducedValue = visit(value);
12464
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
12465
+ });
12466
+ }
12457
12467
  visited.delete(source);
12458
12468
  return target;
12459
12469
  }
@@ -12553,7 +12563,7 @@ var utils_default = {
12553
12563
  isSafeIterable
12554
12564
  };
12555
12565
 
12556
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
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
12557
12567
  var ignoreDuplicateOf = utils_default.toObjectSet([
12558
12568
  "age",
12559
12569
  "authorization",
@@ -12582,23 +12592,24 @@ var parseHeaders_default = (rawHeaders) => {
12582
12592
  i = line.indexOf(":");
12583
12593
  key = line.substring(0, i).trim().toLowerCase();
12584
12594
  val = line.substring(i + 1).trim();
12585
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12595
+ const hasKey = utils_default.hasOwnProp(parsed, key);
12596
+ if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
12586
12597
  return;
12587
12598
  }
12588
12599
  if (key === "set-cookie") {
12589
- if (parsed[key]) {
12600
+ if (hasKey) {
12590
12601
  parsed[key].push(val);
12591
12602
  } else {
12592
12603
  parsed[key] = [val];
12593
12604
  }
12594
12605
  } else {
12595
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12606
+ parsed[key] = hasKey ? parsed[key] + ", " + val : val;
12596
12607
  }
12597
12608
  });
12598
12609
  return parsed;
12599
12610
  };
12600
12611
 
12601
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
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
12602
12613
  function trimSPorHTAB(str) {
12603
12614
  let start = 0;
12604
12615
  let end = str.length;
@@ -12636,7 +12647,7 @@ function toByteStringHeaderObject(headers) {
12636
12647
  return byteStringHeaders;
12637
12648
  }
12638
12649
 
12639
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
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
12640
12651
  var $internals = /* @__PURE__ */ Symbol("internals");
12641
12652
  function normalizeHeader(header) {
12642
12653
  return header && String(header).trim().toLowerCase();
@@ -12656,6 +12667,90 @@ function parseTokens(str) {
12656
12667
  }
12657
12668
  return tokens;
12658
12669
  }
12670
+ var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
12671
+ function trimOWS(value) {
12672
+ let start = 0;
12673
+ let end = value.length;
12674
+ while (start < end) {
12675
+ const code = value.charCodeAt(start);
12676
+ if (code !== 9 && code !== 32) {
12677
+ break;
12678
+ }
12679
+ start += 1;
12680
+ }
12681
+ while (end > start) {
12682
+ const code = value.charCodeAt(end - 1);
12683
+ if (code !== 9 && code !== 32) {
12684
+ break;
12685
+ }
12686
+ end -= 1;
12687
+ }
12688
+ return start === 0 && end === value.length ? value : value.slice(start, end);
12689
+ }
12690
+ function decodeQuotedString(value) {
12691
+ const last = value.length - 1;
12692
+ if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
12693
+ return value;
12694
+ }
12695
+ let decoded = "";
12696
+ for (let i = 1; i < last; i++) {
12697
+ const code = value.charCodeAt(i);
12698
+ if (code === 34) {
12699
+ return value;
12700
+ }
12701
+ if (code === 92) {
12702
+ i += 1;
12703
+ if (i >= last) {
12704
+ return value;
12705
+ }
12706
+ }
12707
+ decoded += value[i];
12708
+ }
12709
+ return decoded;
12710
+ }
12711
+ function parseParameters(value) {
12712
+ const parameters = /* @__PURE__ */ Object.create(null);
12713
+ const str = String(value);
12714
+ let start = 0;
12715
+ let quoted = false;
12716
+ let escaped = false;
12717
+ function parseParameter(end) {
12718
+ const part = trimOWS(str.slice(start, end));
12719
+ const equals = part.indexOf("=");
12720
+ if (equals < 1) {
12721
+ return;
12722
+ }
12723
+ const name = trimOWS(part.slice(0, equals));
12724
+ if (!parameterNameRE.test(name)) {
12725
+ return;
12726
+ }
12727
+ const normalizedName = name.toLowerCase();
12728
+ if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
12729
+ return;
12730
+ }
12731
+ const parameterValue = trimOWS(part.slice(equals + 1));
12732
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
12733
+ }
12734
+ for (let i = 0; i < str.length; i++) {
12735
+ const code = str.charCodeAt(i);
12736
+ if (quoted) {
12737
+ if (escaped) {
12738
+ escaped = false;
12739
+ } else if (code === 92) {
12740
+ escaped = true;
12741
+ } else if (code === 34) {
12742
+ quoted = false;
12743
+ }
12744
+ } else if (code === 34) {
12745
+ quoted = true;
12746
+ } else if (code === 44 || code === 59) {
12747
+ parseParameter(i);
12748
+ start = i + 1;
12749
+ }
12750
+ }
12751
+ parseParameter(str.length);
12752
+ return parameters;
12753
+ }
12659
12754
  var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12660
12755
  function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12661
12756
  if (utils_default.isFunction(filter2)) {
@@ -12831,7 +12926,8 @@ var AxiosHeaders = class {
12831
12926
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12832
12927
  }
12833
12928
  getSetCookie() {
12834
- return this.get("set-cookie") || [];
12929
+ const value = this.get("set-cookie");
12930
+ return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
12835
12931
  }
12836
12932
  get [Symbol.toStringTag]() {
12837
12933
  return "AxiosHeaders";
@@ -12839,6 +12935,9 @@ var AxiosHeaders = class {
12839
12935
  static from(thing) {
12840
12936
  return thing instanceof this ? thing : new this(thing);
12841
12937
  }
12938
+ static parseParameters(value) {
12939
+ return parseParameters(value);
12940
+ }
12842
12941
  static concat(first, ...targets) {
12843
12942
  const computed = new this(first);
12844
12943
  targets.forEach((target) => computed.set(target));
@@ -12881,7 +12980,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12881
12980
  utils_default.freezeMethods(AxiosHeaders);
12882
12981
  var AxiosHeaders_default = AxiosHeaders;
12883
12982
 
12884
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
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
12885
12984
  var REDACTED = "[REDACTED ****]";
12886
12985
  function hasOwnOrPrototypeToJSON(source) {
12887
12986
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -12934,9 +13033,30 @@ function redactConfig(config, redactKeys) {
12934
13033
  };
12935
13034
  return visit(config);
12936
13035
  }
13036
+ function stringifySafely(value) {
13037
+ try {
13038
+ return String(value);
13039
+ } catch (err) {
13040
+ return "";
13041
+ }
13042
+ }
13043
+ function aggregateErrorMessage(error) {
13044
+ const message = error.errors.map((entry) => {
13045
+ try {
13046
+ return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
13047
+ } catch (err) {
13048
+ return "";
13049
+ }
13050
+ }).filter(Boolean).join("; ");
13051
+ return message || error.name || "AggregateError";
13052
+ }
12937
13053
  var AxiosError = class _AxiosError extends Error {
12938
13054
  static from(error, code, config, request, response, customProps) {
12939
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
13055
+ let message = error.message;
13056
+ if (!message && utils_default.isArray(error.errors) && error.errors.length) {
13057
+ message = aggregateErrorMessage(error);
13058
+ }
13059
+ const axiosError = new _AxiosError(message, code || error.code, config, request, response);
12940
13060
  Object.defineProperty(axiosError, "cause", {
12941
13061
  __proto__: null,
12942
13062
  value: error,
@@ -13022,11 +13142,21 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
13022
13142
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
13023
13143
  var AxiosError_default = AxiosError;
13024
13144
 
13025
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
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
13026
13146
  var import_form_data = __toESM(require_form_data(), 1);
13027
13147
  var FormData_default = import_form_data.default;
13028
13148
 
13029
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
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
13150
+ var Buffer_default = {
13151
+ isBufferAvailable() {
13152
+ return typeof Buffer !== "undefined";
13153
+ },
13154
+ from(value) {
13155
+ return Buffer.from(value);
13156
+ }
13157
+ };
13158
+
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
13030
13160
  var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
13031
13161
  function isVisitable(thing) {
13032
13162
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
@@ -13090,8 +13220,8 @@ function toFormData(obj, formData, options) {
13090
13220
  if (useBlob && typeof _Blob === "function") {
13091
13221
  return new _Blob([value]);
13092
13222
  }
13093
- if (typeof Buffer !== "undefined") {
13094
- return Buffer.from(value);
13223
+ if (Buffer_default && Buffer_default.isBufferAvailable()) {
13224
+ return Buffer_default.from(value);
13095
13225
  }
13096
13226
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
13097
13227
  }
@@ -13178,7 +13308,7 @@ function toFormData(obj, formData, options) {
13178
13308
  }
13179
13309
  var toFormData_default = toFormData;
13180
13310
 
13181
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
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
13182
13312
  function encode(str) {
13183
13313
  const charMap = {
13184
13314
  "!": "%21",
@@ -13208,7 +13338,7 @@ prototype.toString = function toString2(encoder) {
13208
13338
  };
13209
13339
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13210
13340
 
13211
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
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
13212
13342
  function encode2(val) {
13213
13343
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13214
13344
  }
@@ -13238,7 +13368,7 @@ function buildURL(url2, params, options) {
13238
13368
  return url2;
13239
13369
  }
13240
13370
 
13241
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
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
13242
13372
  var InterceptorManager = class {
13243
13373
  constructor() {
13244
13374
  this.handlers = [];
@@ -13303,7 +13433,7 @@ var InterceptorManager = class {
13303
13433
  };
13304
13434
  var InterceptorManager_default = InterceptorManager;
13305
13435
 
13306
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
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
13307
13437
  var transitional_default = {
13308
13438
  silentJSONParsing: true,
13309
13439
  forcedJSONParsing: true,
@@ -13313,14 +13443,14 @@ var transitional_default = {
13313
13443
  validateStatusUndefinedResolves: true
13314
13444
  };
13315
13445
 
13316
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
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
13317
13447
  import crypto from "crypto";
13318
13448
 
13319
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
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
13320
13450
  import url from "url";
13321
13451
  var URLSearchParams_default = url.URLSearchParams;
13322
13452
 
13323
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
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
13324
13454
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13325
13455
  var DIGIT = "0123456789";
13326
13456
  var ALPHABET = {
@@ -13350,7 +13480,7 @@ var node_default = {
13350
13480
  protocols: ["http", "https", "file", "data"]
13351
13481
  };
13352
13482
 
13353
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
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
13354
13484
  var utils_exports = {};
13355
13485
  __export(utils_exports, {
13356
13486
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13368,13 +13498,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13368
13498
  })();
13369
13499
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13370
13500
 
13371
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
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
13372
13502
  var platform_default = {
13373
13503
  ...utils_exports,
13374
13504
  ...node_default
13375
13505
  };
13376
13506
 
13377
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
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
13378
13508
  function toURLEncodedForm(data, options) {
13379
13509
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13380
13510
  visitor: function(value, key, path, helpers) {
@@ -13388,7 +13518,7 @@ function toURLEncodedForm(data, options) {
13388
13518
  });
13389
13519
  }
13390
13520
 
13391
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
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
13392
13522
  var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13393
13523
  function throwIfDepthExceeded(index) {
13394
13524
  if (index > MAX_DEPTH) {
@@ -13400,7 +13530,7 @@ function throwIfDepthExceeded(index) {
13400
13530
  }
13401
13531
  function parsePropPath(name) {
13402
13532
  const path = [];
13403
- const pattern = /\w+|\[(\w*)]/g;
13533
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
13404
13534
  let match;
13405
13535
  while ((match = pattern.exec(name)) !== null) {
13406
13536
  throwIfDepthExceeded(path.length);
@@ -13456,9 +13586,9 @@ function formDataToJSON(formData) {
13456
13586
  }
13457
13587
  var formDataToJSON_default = formDataToJSON;
13458
13588
 
13459
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
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
13460
13590
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13461
- function stringifySafely(rawValue, parser, encoder) {
13591
+ function stringifySafely2(rawValue, parser, encoder) {
13462
13592
  if (utils_default.isString(rawValue)) {
13463
13593
  try {
13464
13594
  (parser || JSON.parse)(rawValue);
@@ -13514,7 +13644,7 @@ var defaults = {
13514
13644
  }
13515
13645
  if (isObjectPayload || hasJSONContentType) {
13516
13646
  headers.setContentType("application/json", false);
13517
- return stringifySafely(data);
13647
+ return stringifySafely2(data);
13518
13648
  }
13519
13649
  return data;
13520
13650
  }
@@ -13573,7 +13703,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"]
13573
13703
  });
13574
13704
  var defaults_default = defaults;
13575
13705
 
13576
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
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
13577
13707
  function transformData(fns, response) {
13578
13708
  const config = this || defaults_default;
13579
13709
  const context = response || config;
@@ -13586,12 +13716,12 @@ function transformData(fns, response) {
13586
13716
  return data;
13587
13717
  }
13588
13718
 
13589
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
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
13590
13720
  function isCancel(value) {
13591
13721
  return !!(value && value.__CANCEL__);
13592
13722
  }
13593
13723
 
13594
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
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
13595
13725
  var CanceledError = class extends AxiosError_default {
13596
13726
  /**
13597
13727
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13610,7 +13740,7 @@ var CanceledError = class extends AxiosError_default {
13610
13740
  };
13611
13741
  var CanceledError_default = CanceledError;
13612
13742
 
13613
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
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
13614
13744
  function settle(resolve, reject, response) {
13615
13745
  const validateStatus2 = response.config.validateStatus;
13616
13746
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13626,7 +13756,7 @@ function settle(resolve, reject, response) {
13626
13756
  }
13627
13757
  }
13628
13758
 
13629
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
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
13630
13760
  function isAbsoluteURL(url2) {
13631
13761
  if (typeof url2 !== "string") {
13632
13762
  return false;
@@ -13634,12 +13764,19 @@ function isAbsoluteURL(url2) {
13634
13764
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13635
13765
  }
13636
13766
 
13637
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
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
13638
13768
  function combineURLs(baseURL, relativeURL) {
13639
- return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13769
+ if (!relativeURL) {
13770
+ return baseURL;
13771
+ }
13772
+ let end = baseURL.length;
13773
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
13774
+ end--;
13775
+ }
13776
+ return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
13640
13777
  }
13641
13778
 
13642
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
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
13643
13780
  var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13644
13781
  var httpProtocolControlCharacters = /[\t\n\r]/g;
13645
13782
  function stripLeadingC0ControlOrSpace(url2) {
@@ -13652,13 +13789,37 @@ function stripLeadingC0ControlOrSpace(url2) {
13652
13789
  function normalizeURLForProtocolCheck(url2) {
13653
13790
  return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
13654
13791
  }
13792
+ function redactFragment(fragment) {
13793
+ if (!fragment) {
13794
+ return fragment;
13795
+ }
13796
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
13797
+ return `${separator}${parameterName}${REDACTED}`;
13798
+ });
13799
+ }
13800
+ function redactSensitiveURLParts(url2) {
13801
+ const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
13802
+ const fragmentIndex = redactedURL.indexOf("#");
13803
+ const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
13804
+ const redactedURLWithoutFragment = urlWithoutFragment.replace(
13805
+ /([?&][^=&#]*=)[^&#]*/g,
13806
+ `$1${REDACTED}`
13807
+ );
13808
+ if (fragmentIndex === -1) {
13809
+ return redactedURLWithoutFragment;
13810
+ }
13811
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
13812
+ }
13655
13813
  function assertValidHttpProtocolURL(url2, config) {
13656
- if (typeof url2 === "string" && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url2))) {
13657
- throw new AxiosError_default(
13658
- 'Invalid URL: missing "//" after protocol',
13659
- AxiosError_default.ERR_INVALID_URL,
13660
- config
13661
- );
13814
+ if (typeof url2 === "string") {
13815
+ const normalizedURL = normalizeURLForProtocolCheck(url2);
13816
+ if (malformedHttpProtocol.test(normalizedURL)) {
13817
+ throw new AxiosError_default(
13818
+ `Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
13819
+ AxiosError_default.ERR_INVALID_URL,
13820
+ config
13821
+ );
13822
+ }
13662
13823
  }
13663
13824
  }
13664
13825
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
@@ -13738,7 +13899,7 @@ function getEnv(key) {
13738
13899
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13739
13900
  }
13740
13901
 
13741
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
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
13742
13903
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13743
13904
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13744
13905
  import http from "http";
@@ -13748,16 +13909,16 @@ import util3 from "util";
13748
13909
  import { resolve as resolvePath } from "path";
13749
13910
  import zlib from "zlib";
13750
13911
 
13751
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
13752
- var VERSION = "1.18.1";
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";
13753
13914
 
13754
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
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
13755
13916
  function parseProtocol(url2) {
13756
13917
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13757
13918
  return match && match[1] || "";
13758
13919
  }
13759
13920
 
13760
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
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
13761
13922
  var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13762
13923
  function fromDataURI(uri, asBlob, options) {
13763
13924
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -13793,10 +13954,24 @@ function fromDataURI(uri, asBlob, options) {
13793
13954
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13794
13955
  }
13795
13956
 
13796
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
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
13797
13958
  import stream3 from "stream";
13798
13959
 
13799
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
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
13961
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
13962
+ function setFormDataHeaders(headers, formHeaders, policy) {
13963
+ if (policy !== "content-only") {
13964
+ headers.set(formHeaders);
13965
+ return;
13966
+ }
13967
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
13968
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
13969
+ headers.set(key, val);
13970
+ }
13971
+ });
13972
+ }
13973
+
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
13800
13975
  import stream from "stream";
13801
13976
  var kInternals = /* @__PURE__ */ Symbol("internals");
13802
13977
  var AxiosTransformStream = class extends stream.Transform {
@@ -13919,14 +14094,14 @@ var AxiosTransformStream = class extends stream.Transform {
13919
14094
  };
13920
14095
  var AxiosTransformStream_default = AxiosTransformStream;
13921
14096
 
13922
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
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
13923
14098
  import { EventEmitter } from "events";
13924
14099
 
13925
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
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
13926
14101
  import util from "util";
13927
14102
  import { Readable } from "stream";
13928
14103
 
13929
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
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
13930
14105
  var { asyncIterator } = Symbol;
13931
14106
  var readBlob = async function* (blob) {
13932
14107
  if (blob.stream) {
@@ -13941,7 +14116,7 @@ var readBlob = async function* (blob) {
13941
14116
  };
13942
14117
  var readBlob_default = readBlob;
13943
14118
 
13944
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
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
13945
14120
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13946
14121
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13947
14122
  var CRLF = "\r\n";
@@ -14026,7 +14201,7 @@ var formDataToStream = (form, headersHandler, options) => {
14026
14201
  };
14027
14202
  var formDataToStream_default = formDataToStream;
14028
14203
 
14029
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
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
14030
14205
  import stream2 from "stream";
14031
14206
  var ZlibHeaderTransformStream = class extends stream2.Transform {
14032
14207
  __transform(chunk, encoding, callback) {
@@ -14048,7 +14223,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
14048
14223
  };
14049
14224
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
14050
14225
 
14051
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
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
14052
14227
  import http2 from "http2";
14053
14228
  import util2 from "util";
14054
14229
  var Http2Sessions = class {
@@ -14129,7 +14304,7 @@ var Http2Sessions = class {
14129
14304
  };
14130
14305
  var Http2Sessions_default = Http2Sessions;
14131
14306
 
14132
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
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
14133
14308
  var callbackify = (fn, reducer) => {
14134
14309
  return utils_default.isAsyncFn(fn) ? function(...args) {
14135
14310
  const cb = args.pop();
@@ -14144,7 +14319,7 @@ var callbackify = (fn, reducer) => {
14144
14319
  };
14145
14320
  var callbackify_default = callbackify;
14146
14321
 
14147
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
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
14148
14323
  var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
14149
14324
  var isIPv4Loopback = (host) => {
14150
14325
  const parts = host.split(".");
@@ -14152,6 +14327,60 @@ var isIPv4Loopback = (host) => {
14152
14327
  if (parts[0] !== "127") return false;
14153
14328
  return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
14154
14329
  };
14330
+ var parseIPv4Octet = (text) => {
14331
+ if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
14332
+ const n = parseInt(text.slice(2), 16);
14333
+ return Number.isFinite(n) ? n : null;
14334
+ }
14335
+ if (text.length > 1 && /^0[0-7]+$/.test(text)) {
14336
+ const n = parseInt(text, 8);
14337
+ return Number.isFinite(n) ? n : null;
14338
+ }
14339
+ if (text.length > 1 && /^0[0-9]+$/.test(text)) {
14340
+ return null;
14341
+ }
14342
+ if (/^[0-9]+$/.test(text)) {
14343
+ const n = parseInt(text, 10);
14344
+ return Number.isFinite(n) ? n : null;
14345
+ }
14346
+ return null;
14347
+ };
14348
+ var normalizeIPAddress = (host) => {
14349
+ if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
14350
+ return host;
14351
+ }
14352
+ let h = host;
14353
+ if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
14354
+ h = h.slice(1, -1);
14355
+ }
14356
+ h = h.replace(/\.+$/, "");
14357
+ if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
14358
+ const parts = h.split(".");
14359
+ if (parts.some((p) => p === "")) return host;
14360
+ if (parts.length === 4) {
14361
+ const octets = parts.map(parseIPv4Octet);
14362
+ if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
14363
+ return octets.join(".");
14364
+ }
14365
+ if (parts.length > 4) {
14366
+ return host;
14367
+ }
14368
+ if (parts.length === 1) return host;
14369
+ const literalOctets = parts.slice(0, -1);
14370
+ const tail = parts[parts.length - 1];
14371
+ const tailSlots = 4 - literalOctets.length;
14372
+ const tailValue = parseIPv4Octet(tail);
14373
+ if (tailValue === null) return host;
14374
+ const maxTail = (1 << 8 * tailSlots) - 1;
14375
+ if (tailValue < 0 || tailValue > maxTail) return host;
14376
+ const tailOctets = new Array(tailSlots).fill(0);
14377
+ for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
14378
+ tailOctets[i] = v & 255;
14379
+ }
14380
+ const literal = literalOctets.map(parseIPv4Octet);
14381
+ if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
14382
+ return [...literal, ...tailOctets].join(".");
14383
+ };
14155
14384
  var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
14156
14385
  var isIPv6Unspecified = (host) => {
14157
14386
  if (host === "::") return true;
@@ -14243,7 +14472,12 @@ var normalizeNoProxyHost = (hostname) => {
14243
14472
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14244
14473
  hostname = hostname.slice(1, -1);
14245
14474
  }
14246
- return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
14475
+ const trimmed = hostname.replace(/\.+$/, "");
14476
+ const ipv4 = normalizeIPAddress(trimmed);
14477
+ if (ipv4 !== trimmed) {
14478
+ return ipv4;
14479
+ }
14480
+ return unmapIPv4MappedIPv6(trimmed);
14247
14481
  };
14248
14482
  function shouldBypassProxy(location) {
14249
14483
  let parsed;
@@ -14265,6 +14499,9 @@ function shouldBypassProxy(location) {
14265
14499
  if (!entry) {
14266
14500
  return false;
14267
14501
  }
14502
+ if (entry === "*") {
14503
+ return true;
14504
+ }
14268
14505
  let [entryHost, entryPort] = parseNoProxyEntry(entry);
14269
14506
  entryHost = normalizeNoProxyHost(entryHost);
14270
14507
  if (!entryHost) {
@@ -14283,7 +14520,7 @@ function shouldBypassProxy(location) {
14283
14520
  });
14284
14521
  }
14285
14522
 
14286
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
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
14287
14524
  function speedometer(samplesCount, min) {
14288
14525
  samplesCount = samplesCount || 10;
14289
14526
  const bytes = new Array(samplesCount);
@@ -14319,7 +14556,7 @@ function speedometer(samplesCount, min) {
14319
14556
  }
14320
14557
  var speedometer_default = speedometer;
14321
14558
 
14322
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
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
14323
14560
  function throttle(fn, freq) {
14324
14561
  let timestamp = 0;
14325
14562
  let threshold = 1e3 / freq;
@@ -14354,7 +14591,7 @@ function throttle(fn, freq) {
14354
14591
  }
14355
14592
  var throttle_default = throttle;
14356
14593
 
14357
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
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
14358
14595
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14359
14596
  let bytesNotified = 0;
14360
14597
  const _speedometer = speedometer_default(50, 250);
@@ -14364,7 +14601,7 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14364
14601
  }
14365
14602
  const rawLoaded = e.loaded;
14366
14603
  const total = e.lengthComputable ? e.total : void 0;
14367
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
14604
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
14368
14605
  const progressBytes = Math.max(0, loaded - bytesNotified);
14369
14606
  const rate = _speedometer(progressBytes);
14370
14607
  bytesNotified = Math.max(bytesNotified, loaded);
@@ -14393,12 +14630,66 @@ var progressEventDecorator = (total, throttled) => {
14393
14630
  throttled[1]
14394
14631
  ];
14395
14632
  };
14396
- var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
14633
+ var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
14397
14634
 
14398
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
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
14399
14636
  var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14400
14637
  var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14401
- function estimateDataURLDecodedBytes(url2) {
14638
+ var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
14639
+ var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
14640
+ charCode >= 97 && charCode <= 122 || // a-z
14641
+ charCode >= 48 && charCode <= 57 || // 0-9
14642
+ charCode === 43 || // +
14643
+ charCode === 47 || // /
14644
+ charCode === 45 || // - (base64url)
14645
+ charCode === 95;
14646
+ var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
14647
+ var base64Bytes = (significant) => {
14648
+ const groups = Math.floor(significant / 4);
14649
+ const remainder = significant % 4;
14650
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
14651
+ };
14652
+ var estimateBase64BufferAllocation = (body) => {
14653
+ const len = body.length;
14654
+ let padding = 0;
14655
+ if (len > 0 && body.charCodeAt(len - 1) === 61) {
14656
+ padding++;
14657
+ if (len > 1 && body.charCodeAt(len - 2) === 61) {
14658
+ padding++;
14659
+ }
14660
+ }
14661
+ return Math.floor((len - padding) * 3 / 4);
14662
+ };
14663
+ var estimatePercentDecodedBase64Bytes = (body) => {
14664
+ const len = body.length;
14665
+ let significant = 0;
14666
+ let padding = 0;
14667
+ let invalid = false;
14668
+ for (let i = 0; i < len; i++) {
14669
+ let code = body.charCodeAt(i);
14670
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
14671
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
14672
+ i += 2;
14673
+ }
14674
+ if (isBase64Whitespace(code)) {
14675
+ continue;
14676
+ }
14677
+ if (code === 61) {
14678
+ padding++;
14679
+ continue;
14680
+ }
14681
+ if (!isBase64Char(code) || padding > 0) {
14682
+ invalid = true;
14683
+ continue;
14684
+ }
14685
+ significant++;
14686
+ }
14687
+ if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
14688
+ return estimateBase64BufferAllocation(body);
14689
+ }
14690
+ return base64Bytes(significant);
14691
+ };
14692
+ var estimateDataURLBytes = (url2, estimateBase64) => {
14402
14693
  if (!url2 || typeof url2 !== "string") return 0;
14403
14694
  if (!url2.startsWith("data:")) return 0;
14404
14695
  const comma = url2.indexOf(",");
@@ -14407,43 +14698,7 @@ function estimateDataURLDecodedBytes(url2) {
14407
14698
  const body = url2.slice(comma + 1);
14408
14699
  const isBase64 = /;base64/i.test(meta);
14409
14700
  if (isBase64) {
14410
- let effectiveLen = body.length;
14411
- const len = body.length;
14412
- for (let i = 0; i < len; i++) {
14413
- if (body.charCodeAt(i) === 37 && i + 2 < len) {
14414
- const a = body.charCodeAt(i + 1);
14415
- const b = body.charCodeAt(i + 2);
14416
- const isHex = isHexDigit(a) && isHexDigit(b);
14417
- if (isHex) {
14418
- effectiveLen -= 2;
14419
- i += 2;
14420
- }
14421
- }
14422
- }
14423
- let pad = 0;
14424
- let idx = len - 1;
14425
- const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
14426
- body.charCodeAt(j - 1) === 51 && // '3'
14427
- (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
14428
- if (idx >= 0) {
14429
- if (body.charCodeAt(idx) === 61) {
14430
- pad++;
14431
- idx--;
14432
- } else if (tailIsPct3D(idx)) {
14433
- pad++;
14434
- idx -= 3;
14435
- }
14436
- }
14437
- if (pad === 1 && idx >= 0) {
14438
- if (body.charCodeAt(idx) === 61) {
14439
- pad++;
14440
- } else if (tailIsPct3D(idx)) {
14441
- pad++;
14442
- }
14443
- }
14444
- const groups = Math.floor(effectiveLen / 4);
14445
- const bytes2 = groups * 3 - (pad || 0);
14446
- return bytes2 > 0 ? bytes2 : 0;
14701
+ return estimateBase64(body);
14447
14702
  }
14448
14703
  let bytes = 0;
14449
14704
  for (let i = 0, len = body.length; i < len; i++) {
@@ -14468,9 +14723,19 @@ function estimateDataURLDecodedBytes(url2) {
14468
14723
  }
14469
14724
  }
14470
14725
  return bytes;
14726
+ };
14727
+ function estimateDataURLDecodedBytes(url2) {
14728
+ const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
14729
+ return estimateDataURLBytes(
14730
+ fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
14731
+ estimatePercentDecodedBase64Bytes
14732
+ );
14733
+ }
14734
+ function estimateDataURLBufferAllocation(url2) {
14735
+ return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
14471
14736
  }
14472
14737
 
14473
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
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
14474
14739
  var zlibOptions = {
14475
14740
  flush: zlib.constants.Z_SYNC_FLUSH,
14476
14741
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14487,20 +14752,9 @@ var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
14487
14752
  var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
14488
14753
  var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
14489
14754
  var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
14755
+ var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils_default.asap;
14490
14756
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14491
14757
  var isHttps = /https:?/;
14492
- var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14493
- function setFormDataHeaders(headers, formHeaders, policy) {
14494
- if (policy !== "content-only") {
14495
- headers.set(formHeaders);
14496
- return;
14497
- }
14498
- Object.entries(formHeaders).forEach(([key, val]) => {
14499
- if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14500
- headers.set(key, val);
14501
- }
14502
- });
14503
- }
14504
14758
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14505
14759
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
14506
14760
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
@@ -14884,7 +15138,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14884
15138
  if (protocol === "data:") {
14885
15139
  if (maxContentLength > -1) {
14886
15140
  const dataUrl = String(own2("url") || fullPath || "");
14887
- const estimated = estimateDataURLDecodedBytes(dataUrl);
15141
+ const estimated = estimateDataURLBufferAllocation(dataUrl);
14888
15142
  if (estimated > maxContentLength) {
14889
15143
  return reject(
14890
15144
  new AxiosError_default(
@@ -15015,7 +15269,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15015
15269
  data,
15016
15270
  progressEventDecorator(
15017
15271
  contentLength,
15018
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
15272
+ progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
15019
15273
  )
15020
15274
  )
15021
15275
  );
@@ -15197,7 +15451,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15197
15451
  transformStream,
15198
15452
  progressEventDecorator(
15199
15453
  responseLength,
15200
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
15454
+ progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3)
15201
15455
  )
15202
15456
  )
15203
15457
  );
@@ -15443,7 +15697,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15443
15697
  });
15444
15698
  };
15445
15699
 
15446
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
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
15447
15701
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15448
15702
  url2 = new URL(url2, platform_default.origin);
15449
15703
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -15452,7 +15706,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
15452
15706
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15453
15707
  ) : () => true;
15454
15708
 
15455
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
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
15456
15710
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15457
15711
  // Standard browser envs support document.cookie
15458
15712
  {
@@ -15509,8 +15763,18 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15509
15763
  }
15510
15764
  );
15511
15765
 
15512
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
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
15513
15767
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
15768
+ var ownEnumerableKeys = (thing) => {
15769
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
15770
+ return Object.keys(thing).concat(
15771
+ Object.getOwnPropertySymbols(thing).filter(
15772
+ (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
15773
+ )
15774
+ );
15775
+ }
15776
+ return Object.keys(thing);
15777
+ };
15514
15778
  function mergeConfig(config1, config2) {
15515
15779
  config1 = config1 || {};
15516
15780
  config2 = config2 || {};
@@ -15609,7 +15873,7 @@ function mergeConfig(config1, config2) {
15609
15873
  validateStatus: mergeDirectKeys,
15610
15874
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
15611
15875
  };
15612
- utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15876
+ utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15613
15877
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
15614
15878
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15615
15879
  const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
@@ -15627,19 +15891,7 @@ function mergeConfig(config1, config2) {
15627
15891
  return config;
15628
15892
  }
15629
15893
 
15630
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15631
- var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
15632
- function setFormDataHeaders2(headers, formHeaders, policy) {
15633
- if (policy !== "content-only") {
15634
- headers.set(formHeaders);
15635
- return;
15636
- }
15637
- Object.entries(formHeaders || {}).forEach(([key, val]) => {
15638
- if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
15639
- headers.set(key, val);
15640
- }
15641
- });
15642
- }
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
15643
15895
  var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15644
15896
  /%([0-9A-F]{2})/gi,
15645
15897
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
@@ -15678,7 +15930,7 @@ function resolveConfig(config) {
15678
15930
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15679
15931
  headers.setContentType(void 0);
15680
15932
  } else if (utils_default.isFunction(data.getHeaders)) {
15681
- setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
15933
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
15682
15934
  }
15683
15935
  }
15684
15936
  if (platform_default.hasStandardBrowserEnv) {
@@ -15697,7 +15949,7 @@ function resolveConfig(config) {
15697
15949
  }
15698
15950
  var resolveConfig_default = resolveConfig;
15699
15951
 
15700
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
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
15701
15953
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15702
15954
  var xhr_default = isXHRAdapterSupported && function(config) {
15703
15955
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15844,7 +16096,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15844
16096
  });
15845
16097
  };
15846
16098
 
15847
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
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
15848
16100
  var composeSignals = (signals, timeout) => {
15849
16101
  signals = signals ? signals.filter(Boolean) : [];
15850
16102
  if (!timeout && !signals.length) {
@@ -15877,14 +16129,23 @@ var composeSignals = (signals, timeout) => {
15877
16129
  });
15878
16130
  signals = null;
15879
16131
  };
15880
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort, { once: true }));
16132
+ signals.forEach((signal2) => {
16133
+ if (aborted) {
16134
+ return;
16135
+ }
16136
+ if (signal2.aborted) {
16137
+ onabort.call(signal2);
16138
+ return;
16139
+ }
16140
+ signal2.addEventListener("abort", onabort, { once: true });
16141
+ });
15881
16142
  const { signal } = controller;
15882
16143
  signal.unsubscribe = () => utils_default.asap(unsubscribe);
15883
16144
  return signal;
15884
16145
  };
15885
16146
  var composeSignals_default = composeSignals;
15886
16147
 
15887
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
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
15888
16149
  var streamChunk = function* (chunk, chunkSize) {
15889
16150
  let len = chunk.byteLength;
15890
16151
  if (!chunkSize || len < chunkSize) {
@@ -15964,7 +16225,7 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15964
16225
  );
15965
16226
  };
15966
16227
 
15967
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
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
15968
16229
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
15969
16230
  var { isFunction: isFunction2 } = utils_default;
15970
16231
  var encodeUTF82 = (str) => encodeURIComponent(str).replace(
@@ -16381,7 +16642,7 @@ var getFetch = (config) => {
16381
16642
  };
16382
16643
  var adapter = getFetch();
16383
16644
 
16384
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
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
16385
16646
  var knownAdapters = {
16386
16647
  http: http_default,
16387
16648
  xhr: xhr_default,
@@ -16446,7 +16707,7 @@ var adapters_default = {
16446
16707
  adapters: knownAdapters
16447
16708
  };
16448
16709
 
16449
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
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
16450
16711
  function throwIfCancellationRequested(config) {
16451
16712
  if (config.cancelToken) {
16452
16713
  config.cancelToken.throwIfRequested();
@@ -16497,7 +16758,7 @@ function dispatchRequest(config) {
16497
16758
  );
16498
16759
  }
16499
16760
 
16500
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
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
16501
16762
  var validators = {};
16502
16763
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16503
16764
  validators[type] = function validator(thing) {
@@ -16564,7 +16825,7 @@ var validator_default = {
16564
16825
  validators
16565
16826
  };
16566
16827
 
16567
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
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
16568
16829
  var validators2 = validator_default.validators;
16569
16830
  var Axios = class {
16570
16831
  constructor(instanceConfig) {
@@ -16711,16 +16972,31 @@ var Axios = class {
16711
16972
  const onFulfilled = requestInterceptorChain[i++];
16712
16973
  const onRejected = requestInterceptorChain[i++];
16713
16974
  try {
16714
- newConfig = onFulfilled(newConfig);
16975
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
16715
16976
  } catch (error) {
16716
- onRejected.call(this, error);
16977
+ if (!onRejected) {
16978
+ promise = Promise.reject(error);
16979
+ break;
16980
+ }
16981
+ try {
16982
+ const rejectedResult = onRejected.call(this, error);
16983
+ if (utils_default.isThenable(rejectedResult)) {
16984
+ promise = Promise.resolve(rejectedResult).then(
16985
+ () => dispatchRequest.call(this, newConfig)
16986
+ );
16987
+ }
16988
+ } catch (rejectedError) {
16989
+ promise = Promise.reject(rejectedError);
16990
+ }
16717
16991
  break;
16718
16992
  }
16719
16993
  }
16720
- try {
16721
- promise = dispatchRequest.call(this, newConfig);
16722
- } catch (error) {
16723
- return Promise.reject(error);
16994
+ if (!promise) {
16995
+ try {
16996
+ promise = dispatchRequest.call(this, newConfig);
16997
+ } catch (error) {
16998
+ promise = Promise.reject(error);
16999
+ }
16724
17000
  }
16725
17001
  i = 0;
16726
17002
  len = responseInterceptorChain.length;
@@ -16768,7 +17044,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
16768
17044
  });
16769
17045
  var Axios_default = Axios;
16770
17046
 
16771
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
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
16772
17048
  var CancelToken = class _CancelToken {
16773
17049
  constructor(executor) {
16774
17050
  if (typeof executor !== "function") {
@@ -16866,19 +17142,19 @@ var CancelToken = class _CancelToken {
16866
17142
  };
16867
17143
  var CancelToken_default = CancelToken;
16868
17144
 
16869
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
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
16870
17146
  function spread(callback) {
16871
17147
  return function wrap(arr) {
16872
17148
  return callback.apply(null, arr);
16873
17149
  };
16874
17150
  }
16875
17151
 
16876
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
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
16877
17153
  function isAxiosError(payload) {
16878
17154
  return utils_default.isObject(payload) && payload.isAxiosError === true;
16879
17155
  }
16880
17156
 
16881
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
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
16882
17158
  var HttpStatusCode = {
16883
17159
  Continue: 100,
16884
17160
  SwitchingProtocols: 101,
@@ -16943,6 +17219,7 @@ var HttpStatusCode = {
16943
17219
  LoopDetected: 508,
16944
17220
  NotExtended: 510,
16945
17221
  NetworkAuthenticationRequired: 511,
17222
+ WebServerReturnsAnUnknownError: 520,
16946
17223
  WebServerIsDown: 521,
16947
17224
  ConnectionTimedOut: 522,
16948
17225
  OriginIsUnreachable: 523,
@@ -16955,7 +17232,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
16955
17232
  });
16956
17233
  var HttpStatusCode_default = HttpStatusCode;
16957
17234
 
16958
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
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
16959
17236
  function createInstance(defaultConfig) {
16960
17237
  const context = new Axios_default(defaultConfig);
16961
17238
  const instance = bind(Axios_default.prototype.request, context);
@@ -16988,7 +17265,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16988
17265
  axios.default = axios;
16989
17266
  var axios_default = axios;
16990
17267
 
16991
- // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
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
16992
17269
  var {
16993
17270
  Axios: Axios2,
16994
17271
  AxiosError: AxiosError2,