alpic 1.131.1 → 1.133.0

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.
@@ -9996,7 +9996,7 @@ var require_form_data = __commonJS({
9996
9996
  var path = __require("path");
9997
9997
  var http3 = __require("http");
9998
9998
  var https2 = __require("https");
9999
- var parseUrl = __require("url").parse;
9999
+ var parseUrl2 = __require("url").parse;
10000
10000
  var fs2 = __require("fs");
10001
10001
  var Stream = __require("stream").Stream;
10002
10002
  var crypto2 = __require("crypto");
@@ -10249,7 +10249,7 @@ var require_form_data = __commonJS({
10249
10249
  var options;
10250
10250
  var defaults2 = { method: "post" };
10251
10251
  if (typeof params === "string") {
10252
- params = parseUrl(params);
10252
+ params = parseUrl2(params);
10253
10253
  options = populate({
10254
10254
  port: params.port,
10255
10255
  path: params.pathname,
@@ -10306,76 +10306,6 @@ var require_form_data = __commonJS({
10306
10306
  }
10307
10307
  });
10308
10308
 
10309
- // ../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js
10310
- var require_proxy_from_env = __commonJS({
10311
- "../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"(exports) {
10312
- "use strict";
10313
- var parseUrl = __require("url").parse;
10314
- var DEFAULT_PORTS = {
10315
- ftp: 21,
10316
- gopher: 70,
10317
- http: 80,
10318
- https: 443,
10319
- ws: 80,
10320
- wss: 443
10321
- };
10322
- var stringEndsWith = String.prototype.endsWith || function(s) {
10323
- return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
10324
- };
10325
- function getProxyForUrl(url2) {
10326
- var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
10327
- var proto = parsedUrl.protocol;
10328
- var hostname = parsedUrl.host;
10329
- var port = parsedUrl.port;
10330
- if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
10331
- return "";
10332
- }
10333
- proto = proto.split(":", 1)[0];
10334
- hostname = hostname.replace(/:\d*$/, "");
10335
- port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
10336
- if (!shouldProxy(hostname, port)) {
10337
- return "";
10338
- }
10339
- var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
10340
- if (proxy && proxy.indexOf("://") === -1) {
10341
- proxy = proto + "://" + proxy;
10342
- }
10343
- return proxy;
10344
- }
10345
- function shouldProxy(hostname, port) {
10346
- var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
10347
- if (!NO_PROXY) {
10348
- return true;
10349
- }
10350
- if (NO_PROXY === "*") {
10351
- return false;
10352
- }
10353
- return NO_PROXY.split(/[,\s]/).every(function(proxy) {
10354
- if (!proxy) {
10355
- return true;
10356
- }
10357
- var parsedProxy = proxy.match(/^(.+):(\d+)$/);
10358
- var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
10359
- var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
10360
- if (parsedProxyPort && parsedProxyPort !== port) {
10361
- return true;
10362
- }
10363
- if (!/^[.*]/.test(parsedProxyHostname)) {
10364
- return hostname !== parsedProxyHostname;
10365
- }
10366
- if (parsedProxyHostname.charAt(0) === "*") {
10367
- parsedProxyHostname = parsedProxyHostname.slice(1);
10368
- }
10369
- return !stringEndsWith.call(hostname, parsedProxyHostname);
10370
- });
10371
- }
10372
- function getEnv(key) {
10373
- return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
10374
- }
10375
- exports.getProxyForUrl = getProxyForUrl;
10376
- }
10377
- });
10378
-
10379
10309
  // ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
10380
10310
  var require_ms = __commonJS({
10381
10311
  "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
@@ -11151,9 +11081,9 @@ var require_src = __commonJS({
11151
11081
  }
11152
11082
  });
11153
11083
 
11154
- // ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/debug.js
11084
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js
11155
11085
  var require_debug = __commonJS({
11156
- "../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
11086
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
11157
11087
  var debug3;
11158
11088
  module.exports = function() {
11159
11089
  if (!debug3) {
@@ -11171,9 +11101,9 @@ var require_debug = __commonJS({
11171
11101
  }
11172
11102
  });
11173
11103
 
11174
- // ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/index.js
11104
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js
11175
11105
  var require_follow_redirects = __commonJS({
11176
- "../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/index.js"(exports, module) {
11106
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js"(exports, module) {
11177
11107
  var url2 = __require("url");
11178
11108
  var URL2 = url2.URL;
11179
11109
  var http3 = __require("http");
@@ -11195,6 +11125,11 @@ var require_follow_redirects = __commonJS({
11195
11125
  } catch (error) {
11196
11126
  useNativeURL = error.code === "ERR_INVALID_URL";
11197
11127
  }
11128
+ var sensitiveHeaders = [
11129
+ "Authorization",
11130
+ "Proxy-Authorization",
11131
+ "Cookie"
11132
+ ];
11198
11133
  var preservedUrlFields = [
11199
11134
  "auth",
11200
11135
  "host",
@@ -11259,6 +11194,7 @@ var require_follow_redirects = __commonJS({
11259
11194
  self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
11260
11195
  }
11261
11196
  };
11197
+ this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
11262
11198
  this._performRequest();
11263
11199
  }
11264
11200
  RedirectableRequest.prototype = Object.create(Writable.prototype);
@@ -11396,6 +11332,9 @@ var require_follow_redirects = __commonJS({
11396
11332
  if (!options.headers) {
11397
11333
  options.headers = {};
11398
11334
  }
11335
+ if (!isArray2(options.sensitiveHeaders)) {
11336
+ options.sensitiveHeaders = [];
11337
+ }
11399
11338
  if (options.host) {
11400
11339
  if (!options.hostname) {
11401
11340
  options.hostname = options.host;
@@ -11493,7 +11432,7 @@ var require_follow_redirects = __commonJS({
11493
11432
  removeMatchingHeaders(/^content-/i, this._options.headers);
11494
11433
  }
11495
11434
  var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
11496
- var currentUrlParts = parseUrl(this._currentUrl);
11435
+ var currentUrlParts = parseUrl2(this._currentUrl);
11497
11436
  var currentHost = currentHostHeader || currentUrlParts.host;
11498
11437
  var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
11499
11438
  var redirectUrl = resolveUrl(location, currentUrl);
@@ -11501,7 +11440,7 @@ var require_follow_redirects = __commonJS({
11501
11440
  this._isRedirect = true;
11502
11441
  spreadUrlObject(redirectUrl, this._options);
11503
11442
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
11504
- removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
11443
+ removeMatchingHeaders(this._headerFilter, this._options.headers);
11505
11444
  }
11506
11445
  if (isFunction3(beforeRedirect)) {
11507
11446
  var responseDetails = {
@@ -11532,7 +11471,7 @@ var require_follow_redirects = __commonJS({
11532
11471
  if (isURL(input)) {
11533
11472
  input = spreadUrlObject(input);
11534
11473
  } else if (isString2(input)) {
11535
- input = spreadUrlObject(parseUrl(input));
11474
+ input = spreadUrlObject(parseUrl2(input));
11536
11475
  } else {
11537
11476
  callback = options;
11538
11477
  options = validateUrl(input);
@@ -11568,7 +11507,7 @@ var require_follow_redirects = __commonJS({
11568
11507
  }
11569
11508
  function noop2() {
11570
11509
  }
11571
- function parseUrl(input) {
11510
+ function parseUrl2(input) {
11572
11511
  var parsed;
11573
11512
  if (useNativeURL) {
11574
11513
  parsed = new URL2(input);
@@ -11581,7 +11520,7 @@ var require_follow_redirects = __commonJS({
11581
11520
  return parsed;
11582
11521
  }
11583
11522
  function resolveUrl(relative, base) {
11584
- return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative));
11523
+ return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
11585
11524
  }
11586
11525
  function validateUrl(input) {
11587
11526
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -11650,6 +11589,9 @@ var require_follow_redirects = __commonJS({
11650
11589
  var dot = subdomain.length - domain.length - 1;
11651
11590
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
11652
11591
  }
11592
+ function isArray2(value) {
11593
+ return value instanceof Array;
11594
+ }
11653
11595
  function isString2(value) {
11654
11596
  return typeof value === "string" || value instanceof String;
11655
11597
  }
@@ -11662,19 +11604,22 @@ var require_follow_redirects = __commonJS({
11662
11604
  function isURL(value) {
11663
11605
  return URL2 && value instanceof URL2;
11664
11606
  }
11607
+ function escapeRegex(regex) {
11608
+ return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
11609
+ }
11665
11610
  module.exports = wrap({ http: http3, https: https2 });
11666
11611
  module.exports.wrap = wrap;
11667
11612
  }
11668
11613
  });
11669
11614
 
11670
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
11615
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
11671
11616
  function bind(fn, thisArg) {
11672
11617
  return function wrap() {
11673
11618
  return fn.apply(thisArg, arguments);
11674
11619
  };
11675
11620
  }
11676
11621
 
11677
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/utils.js
11622
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/utils.js
11678
11623
  var { toString } = Object.prototype;
11679
11624
  var { getPrototypeOf } = Object;
11680
11625
  var { iterator, toStringTag } = Symbol;
@@ -11726,13 +11671,31 @@ var isEmptyObject = (val) => {
11726
11671
  };
11727
11672
  var isDate = kindOfTest("Date");
11728
11673
  var isFile = kindOfTest("File");
11674
+ var isReactNativeBlob = (value) => {
11675
+ return !!(value && typeof value.uri !== "undefined");
11676
+ };
11677
+ var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
11729
11678
  var isBlob = kindOfTest("Blob");
11730
11679
  var isFileList = kindOfTest("FileList");
11731
11680
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
11681
+ function getGlobal() {
11682
+ if (typeof globalThis !== "undefined") return globalThis;
11683
+ if (typeof self !== "undefined") return self;
11684
+ if (typeof window !== "undefined") return window;
11685
+ if (typeof global !== "undefined") return global;
11686
+ return {};
11687
+ }
11688
+ var G = getGlobal();
11689
+ var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
11732
11690
  var isFormData = (thing) => {
11733
- let kind;
11734
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
11735
- kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
11691
+ if (!thing) return false;
11692
+ if (FormDataCtor && thing instanceof FormDataCtor) return true;
11693
+ const proto = getPrototypeOf(thing);
11694
+ if (!proto || proto === Object.prototype) return false;
11695
+ if (!isFunction(thing.append)) return false;
11696
+ const kind = kindOf(thing);
11697
+ return kind === "formdata" || // detect form-data instance
11698
+ kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
11736
11699
  };
11737
11700
  var isURLSearchParams = kindOfTest("URLSearchParams");
11738
11701
  var [isReadableStream, isRequest, isResponse, isHeaders] = [
@@ -11741,7 +11704,9 @@ var [isReadableStream, isRequest, isResponse, isHeaders] = [
11741
11704
  "Response",
11742
11705
  "Headers"
11743
11706
  ].map(kindOfTest);
11744
- var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
11707
+ var trim = (str) => {
11708
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
11709
+ };
11745
11710
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
11746
11711
  if (obj === null || typeof obj === "undefined") {
11747
11712
  return;
@@ -11789,7 +11754,7 @@ var _global = (() => {
11789
11754
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
11790
11755
  })();
11791
11756
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
11792
- function merge() {
11757
+ function merge(...objs) {
11793
11758
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
11794
11759
  const result = {};
11795
11760
  const assignValue = (val, key) => {
@@ -11797,8 +11762,9 @@ function merge() {
11797
11762
  return;
11798
11763
  }
11799
11764
  const targetKey = caseless && findKey(result, key) || key;
11800
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
11801
- result[targetKey] = merge(result[targetKey], val);
11765
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
11766
+ if (isPlainObject(existing) && isPlainObject(val)) {
11767
+ result[targetKey] = merge(existing, val);
11802
11768
  } else if (isPlainObject(val)) {
11803
11769
  result[targetKey] = merge({}, val);
11804
11770
  } else if (isArray(val)) {
@@ -11807,8 +11773,8 @@ function merge() {
11807
11773
  result[targetKey] = val;
11808
11774
  }
11809
11775
  };
11810
- for (let i = 0, l = arguments.length; i < l; i++) {
11811
- arguments[i] && forEach(arguments[i], assignValue);
11776
+ for (let i = 0, l = objs.length; i < l; i++) {
11777
+ objs[i] && forEach(objs[i], assignValue);
11812
11778
  }
11813
11779
  return result;
11814
11780
  }
@@ -11818,6 +11784,9 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
11818
11784
  (val, key) => {
11819
11785
  if (thisArg && isFunction(val)) {
11820
11786
  Object.defineProperty(a, key, {
11787
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
11788
+ // hijack defineProperty's accessor-vs-data resolution.
11789
+ __proto__: null,
11821
11790
  value: bind(val, thisArg),
11822
11791
  writable: true,
11823
11792
  enumerable: true,
@@ -11825,6 +11794,7 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
11825
11794
  });
11826
11795
  } else {
11827
11796
  Object.defineProperty(a, key, {
11797
+ __proto__: null,
11828
11798
  value: val,
11829
11799
  writable: true,
11830
11800
  enumerable: true,
@@ -11843,17 +11813,16 @@ var stripBOM = (content) => {
11843
11813
  return content;
11844
11814
  };
11845
11815
  var inherits = (constructor, superConstructor, props, descriptors) => {
11846
- constructor.prototype = Object.create(
11847
- superConstructor.prototype,
11848
- descriptors
11849
- );
11816
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
11850
11817
  Object.defineProperty(constructor.prototype, "constructor", {
11818
+ __proto__: null,
11851
11819
  value: constructor,
11852
11820
  writable: true,
11853
11821
  enumerable: false,
11854
11822
  configurable: true
11855
11823
  });
11856
11824
  Object.defineProperty(constructor, "super", {
11825
+ __proto__: null,
11857
11826
  value: superConstructor.prototype
11858
11827
  });
11859
11828
  props && Object.assign(constructor.prototype, props);
@@ -11942,7 +11911,7 @@ var reduceDescriptors = (obj, reducer) => {
11942
11911
  };
11943
11912
  var freezeMethods = (obj) => {
11944
11913
  reduceDescriptors(obj, (descriptor, name) => {
11945
- if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
11914
+ if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
11946
11915
  return false;
11947
11916
  }
11948
11917
  const value = obj[name];
@@ -12045,6 +12014,8 @@ var utils_default = {
12045
12014
  isUndefined,
12046
12015
  isDate,
12047
12016
  isFile,
12017
+ isReactNativeBlob,
12018
+ isReactNative,
12048
12019
  isBlob,
12049
12020
  isRegExp,
12050
12021
  isFunction,
@@ -12087,838 +12058,957 @@ var utils_default = {
12087
12058
  isIterable
12088
12059
  };
12089
12060
 
12090
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12091
- var AxiosError = class _AxiosError extends Error {
12092
- static from(error, code, config, request, response, customProps) {
12093
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12094
- axiosError.cause = error;
12095
- axiosError.name = error.name;
12096
- customProps && Object.assign(axiosError, customProps);
12097
- return axiosError;
12098
- }
12099
- /**
12100
- * Create an Error with the specified message, config, error code, request and response.
12101
- *
12102
- * @param {string} message The error message.
12103
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
12104
- * @param {Object} [config] The config.
12105
- * @param {Object} [request] The request.
12106
- * @param {Object} [response] The response.
12107
- *
12108
- * @returns {Error} The created error.
12109
- */
12110
- constructor(message, code, config, request, response) {
12111
- super(message);
12112
- this.name = "AxiosError";
12113
- this.isAxiosError = true;
12114
- code && (this.code = code);
12115
- config && (this.config = config);
12116
- request && (this.request = request);
12117
- if (response) {
12118
- this.response = response;
12119
- this.status = response.status;
12061
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12062
+ var ignoreDuplicateOf = utils_default.toObjectSet([
12063
+ "age",
12064
+ "authorization",
12065
+ "content-length",
12066
+ "content-type",
12067
+ "etag",
12068
+ "expires",
12069
+ "from",
12070
+ "host",
12071
+ "if-modified-since",
12072
+ "if-unmodified-since",
12073
+ "last-modified",
12074
+ "location",
12075
+ "max-forwards",
12076
+ "proxy-authorization",
12077
+ "referer",
12078
+ "retry-after",
12079
+ "user-agent"
12080
+ ]);
12081
+ var parseHeaders_default = (rawHeaders) => {
12082
+ const parsed = {};
12083
+ let key;
12084
+ let val;
12085
+ let i;
12086
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
12087
+ i = line.indexOf(":");
12088
+ key = line.substring(0, i).trim().toLowerCase();
12089
+ val = line.substring(i + 1).trim();
12090
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12091
+ return;
12120
12092
  }
12121
- }
12122
- toJSON() {
12123
- return {
12124
- // Standard
12125
- message: this.message,
12126
- name: this.name,
12127
- // Microsoft
12128
- description: this.description,
12129
- number: this.number,
12130
- // Mozilla
12131
- fileName: this.fileName,
12132
- lineNumber: this.lineNumber,
12133
- columnNumber: this.columnNumber,
12134
- stack: this.stack,
12135
- // Axios
12136
- config: utils_default.toJSONObject(this.config),
12137
- code: this.code,
12138
- status: this.status
12139
- };
12140
- }
12093
+ if (key === "set-cookie") {
12094
+ if (parsed[key]) {
12095
+ parsed[key].push(val);
12096
+ } else {
12097
+ parsed[key] = [val];
12098
+ }
12099
+ } else {
12100
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12101
+ }
12102
+ });
12103
+ return parsed;
12141
12104
  };
12142
- AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
12143
- AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
12144
- AxiosError.ECONNABORTED = "ECONNABORTED";
12145
- AxiosError.ETIMEDOUT = "ETIMEDOUT";
12146
- AxiosError.ERR_NETWORK = "ERR_NETWORK";
12147
- AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
12148
- AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
12149
- AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
12150
- AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
12151
- AxiosError.ERR_CANCELED = "ERR_CANCELED";
12152
- AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
12153
- AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12154
- var AxiosError_default = AxiosError;
12155
-
12156
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
12157
- var import_form_data = __toESM(require_form_data(), 1);
12158
- var FormData_default = import_form_data.default;
12159
12105
 
12160
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
12161
- function isVisitable(thing) {
12162
- return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12163
- }
12164
- function removeBrackets(key) {
12165
- return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
12106
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12107
+ var $internals = /* @__PURE__ */ Symbol("internals");
12108
+ var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
12109
+ function trimSPorHTAB(str) {
12110
+ let start = 0;
12111
+ let end = str.length;
12112
+ while (start < end) {
12113
+ const code = str.charCodeAt(start);
12114
+ if (code !== 9 && code !== 32) {
12115
+ break;
12116
+ }
12117
+ start += 1;
12118
+ }
12119
+ while (end > start) {
12120
+ const code = str.charCodeAt(end - 1);
12121
+ if (code !== 9 && code !== 32) {
12122
+ break;
12123
+ }
12124
+ end -= 1;
12125
+ }
12126
+ return start === 0 && end === str.length ? str : str.slice(start, end);
12166
12127
  }
12167
- function renderKey(path, key, dots) {
12168
- if (!path) return key;
12169
- return path.concat(key).map(function each(token, i) {
12170
- token = removeBrackets(token);
12171
- return !dots && i ? "[" + token + "]" : token;
12172
- }).join(dots ? "." : "");
12128
+ function normalizeHeader(header) {
12129
+ return header && String(header).trim().toLowerCase();
12173
12130
  }
12174
- function isFlatArray(arr) {
12175
- return utils_default.isArray(arr) && !arr.some(isVisitable);
12131
+ function sanitizeHeaderValue(str) {
12132
+ return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
12176
12133
  }
12177
- var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
12178
- return /^is[A-Z]/.test(prop);
12179
- });
12180
- function toFormData(obj, formData, options) {
12181
- if (!utils_default.isObject(obj)) {
12182
- throw new TypeError("target must be an object");
12134
+ function normalizeValue(value) {
12135
+ if (value === false || value == null) {
12136
+ return value;
12183
12137
  }
12184
- formData = formData || new (FormData_default || FormData)();
12185
- options = utils_default.toFlatObject(options, {
12186
- metaTokens: true,
12187
- dots: false,
12188
- indexes: false
12189
- }, false, function defined(option, source) {
12190
- return !utils_default.isUndefined(source[option]);
12191
- });
12192
- const metaTokens = options.metaTokens;
12193
- const visitor = options.visitor || defaultVisitor;
12194
- const dots = options.dots;
12195
- const indexes = options.indexes;
12196
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
12197
- const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
12198
- if (!utils_default.isFunction(visitor)) {
12199
- throw new TypeError("visitor must be a function");
12138
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
12139
+ }
12140
+ function parseTokens(str) {
12141
+ const tokens = /* @__PURE__ */ Object.create(null);
12142
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
12143
+ let match;
12144
+ while (match = tokensRE.exec(str)) {
12145
+ tokens[match[1]] = match[2];
12200
12146
  }
12201
- function convertValue(value) {
12202
- if (value === null) return "";
12203
- if (utils_default.isDate(value)) {
12204
- return value.toISOString();
12205
- }
12206
- if (utils_default.isBoolean(value)) {
12207
- return value.toString();
12208
- }
12209
- if (!useBlob && utils_default.isBlob(value)) {
12210
- throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
12211
- }
12212
- if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
12213
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
12214
- }
12215
- return value;
12147
+ return tokens;
12148
+ }
12149
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12150
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12151
+ if (utils_default.isFunction(filter2)) {
12152
+ return filter2.call(this, value, header);
12216
12153
  }
12217
- function defaultVisitor(value, key, path) {
12218
- let arr = value;
12219
- if (value && !path && typeof value === "object") {
12220
- if (utils_default.endsWith(key, "{}")) {
12221
- key = metaTokens ? key : key.slice(0, -2);
12222
- value = JSON.stringify(value);
12223
- } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
12224
- key = removeBrackets(key);
12225
- arr.forEach(function each(el, index) {
12226
- !(utils_default.isUndefined(el) || el === null) && formData.append(
12227
- // eslint-disable-next-line no-nested-ternary
12228
- indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
12229
- convertValue(el)
12230
- );
12231
- });
12232
- return false;
12233
- }
12234
- }
12235
- if (isVisitable(value)) {
12236
- return true;
12237
- }
12238
- formData.append(renderKey(path, key, dots), convertValue(value));
12239
- return false;
12154
+ if (isHeaderNameFilter) {
12155
+ value = header;
12240
12156
  }
12241
- const stack = [];
12242
- const exposedHelpers = Object.assign(predicates, {
12243
- defaultVisitor,
12244
- convertValue,
12245
- isVisitable
12246
- });
12247
- function build(value, path) {
12248
- if (utils_default.isUndefined(value)) return;
12249
- if (stack.indexOf(value) !== -1) {
12250
- throw Error("Circular reference detected in " + path.join("."));
12251
- }
12252
- stack.push(value);
12253
- utils_default.forEach(value, function each(el, key) {
12254
- const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
12255
- formData,
12256
- el,
12257
- utils_default.isString(key) ? key.trim() : key,
12258
- path,
12259
- exposedHelpers
12260
- );
12261
- if (result === true) {
12262
- build(el, path ? path.concat(key) : [key]);
12263
- }
12264
- });
12265
- stack.pop();
12157
+ if (!utils_default.isString(value)) return;
12158
+ if (utils_default.isString(filter2)) {
12159
+ return value.indexOf(filter2) !== -1;
12266
12160
  }
12267
- if (!utils_default.isObject(obj)) {
12268
- throw new TypeError("data must be an object");
12161
+ if (utils_default.isRegExp(filter2)) {
12162
+ return filter2.test(value);
12269
12163
  }
12270
- build(obj);
12271
- return formData;
12272
12164
  }
12273
- var toFormData_default = toFormData;
12274
-
12275
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
12276
- function encode(str) {
12277
- const charMap = {
12278
- "!": "%21",
12279
- "'": "%27",
12280
- "(": "%28",
12281
- ")": "%29",
12282
- "~": "%7E",
12283
- "%20": "+",
12284
- "%00": "\0"
12285
- };
12286
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
12287
- return charMap[match];
12165
+ function formatHeader(header) {
12166
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
12167
+ return char.toUpperCase() + str;
12288
12168
  });
12289
12169
  }
12290
- function AxiosURLSearchParams(params, options) {
12291
- this._pairs = [];
12292
- params && toFormData_default(params, this, options);
12293
- }
12294
- var prototype = AxiosURLSearchParams.prototype;
12295
- prototype.append = function append(name, value) {
12296
- this._pairs.push([name, value]);
12297
- };
12298
- prototype.toString = function toString2(encoder) {
12299
- const _encode = encoder ? function(value) {
12300
- return encoder.call(this, value, encode);
12301
- } : encode;
12302
- return this._pairs.map(function each(pair) {
12303
- return _encode(pair[0]) + "=" + _encode(pair[1]);
12304
- }, "").join("&");
12305
- };
12306
- var AxiosURLSearchParams_default = AxiosURLSearchParams;
12307
-
12308
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
12309
- function encode2(val) {
12310
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
12170
+ function buildAccessors(obj, header) {
12171
+ const accessorName = utils_default.toCamelCase(" " + header);
12172
+ ["get", "set", "has"].forEach((methodName) => {
12173
+ Object.defineProperty(obj, methodName + accessorName, {
12174
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
12175
+ // this data descriptor into an accessor descriptor on the way in.
12176
+ __proto__: null,
12177
+ value: function(arg1, arg2, arg3) {
12178
+ return this[methodName].call(this, header, arg1, arg2, arg3);
12179
+ },
12180
+ configurable: true
12181
+ });
12182
+ });
12311
12183
  }
12312
- function buildURL(url2, params, options) {
12313
- if (!params) {
12314
- return url2;
12315
- }
12316
- const _encode = options && options.encode || encode2;
12317
- const _options = utils_default.isFunction(options) ? {
12318
- serialize: options
12319
- } : options;
12320
- const serializeFn = _options && _options.serialize;
12321
- let serializedParams;
12322
- if (serializeFn) {
12323
- serializedParams = serializeFn(params, _options);
12324
- } else {
12325
- serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
12184
+ var AxiosHeaders = class {
12185
+ constructor(headers) {
12186
+ headers && this.set(headers);
12326
12187
  }
12327
- if (serializedParams) {
12328
- const hashmarkIndex = url2.indexOf("#");
12329
- if (hashmarkIndex !== -1) {
12330
- url2 = url2.slice(0, hashmarkIndex);
12188
+ set(header, valueOrRewrite, rewrite) {
12189
+ const self2 = this;
12190
+ function setHeader(_value, _header, _rewrite) {
12191
+ const lHeader = normalizeHeader(_header);
12192
+ if (!lHeader) {
12193
+ throw new Error("header name must be a non-empty string");
12194
+ }
12195
+ const key = utils_default.findKey(self2, lHeader);
12196
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
12197
+ self2[key || _header] = normalizeValue(_value);
12198
+ }
12331
12199
  }
12332
- url2 += (url2.indexOf("?") === -1 ? "?" : "&") + serializedParams;
12200
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
12201
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
12202
+ setHeaders(header, valueOrRewrite);
12203
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12204
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
12205
+ } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12206
+ let obj = {}, dest, key;
12207
+ for (const entry of header) {
12208
+ if (!utils_default.isArray(entry)) {
12209
+ throw TypeError("Object iterator must return a key-value pair");
12210
+ }
12211
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12212
+ }
12213
+ setHeaders(obj, valueOrRewrite);
12214
+ } else {
12215
+ header != null && setHeader(valueOrRewrite, header, rewrite);
12216
+ }
12217
+ return this;
12333
12218
  }
12334
- return url2;
12335
- }
12336
-
12337
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
12338
- var InterceptorManager = class {
12339
- constructor() {
12340
- this.handlers = [];
12219
+ get(header, parser) {
12220
+ header = normalizeHeader(header);
12221
+ if (header) {
12222
+ const key = utils_default.findKey(this, header);
12223
+ if (key) {
12224
+ const value = this[key];
12225
+ if (!parser) {
12226
+ return value;
12227
+ }
12228
+ if (parser === true) {
12229
+ return parseTokens(value);
12230
+ }
12231
+ if (utils_default.isFunction(parser)) {
12232
+ return parser.call(this, value, key);
12233
+ }
12234
+ if (utils_default.isRegExp(parser)) {
12235
+ return parser.exec(value);
12236
+ }
12237
+ throw new TypeError("parser must be boolean|regexp|function");
12238
+ }
12239
+ }
12341
12240
  }
12342
- /**
12343
- * Add a new interceptor to the stack
12344
- *
12345
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
12346
- * @param {Function} rejected The function to handle `reject` for a `Promise`
12347
- * @param {Object} options The options for the interceptor, synchronous and runWhen
12348
- *
12349
- * @return {Number} An ID used to remove interceptor later
12350
- */
12351
- use(fulfilled, rejected, options) {
12352
- this.handlers.push({
12353
- fulfilled,
12354
- rejected,
12355
- synchronous: options ? options.synchronous : false,
12356
- runWhen: options ? options.runWhen : null
12357
- });
12358
- return this.handlers.length - 1;
12241
+ has(header, matcher) {
12242
+ header = normalizeHeader(header);
12243
+ if (header) {
12244
+ const key = utils_default.findKey(this, header);
12245
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
12246
+ }
12247
+ return false;
12359
12248
  }
12360
- /**
12361
- * Remove an interceptor from the stack
12362
- *
12363
- * @param {Number} id The ID that was returned by `use`
12364
- *
12365
- * @returns {void}
12366
- */
12367
- eject(id) {
12368
- if (this.handlers[id]) {
12369
- this.handlers[id] = null;
12249
+ delete(header, matcher) {
12250
+ const self2 = this;
12251
+ let deleted = false;
12252
+ function deleteHeader(_header) {
12253
+ _header = normalizeHeader(_header);
12254
+ if (_header) {
12255
+ const key = utils_default.findKey(self2, _header);
12256
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
12257
+ delete self2[key];
12258
+ deleted = true;
12259
+ }
12260
+ }
12261
+ }
12262
+ if (utils_default.isArray(header)) {
12263
+ header.forEach(deleteHeader);
12264
+ } else {
12265
+ deleteHeader(header);
12370
12266
  }
12267
+ return deleted;
12371
12268
  }
12372
- /**
12373
- * Clear all interceptors from the stack
12374
- *
12375
- * @returns {void}
12376
- */
12377
- clear() {
12378
- if (this.handlers) {
12379
- this.handlers = [];
12269
+ clear(matcher) {
12270
+ const keys = Object.keys(this);
12271
+ let i = keys.length;
12272
+ let deleted = false;
12273
+ while (i--) {
12274
+ const key = keys[i];
12275
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
12276
+ delete this[key];
12277
+ deleted = true;
12278
+ }
12380
12279
  }
12280
+ return deleted;
12381
12281
  }
12382
- /**
12383
- * Iterate over all the registered interceptors
12384
- *
12385
- * This method is particularly useful for skipping over any
12386
- * interceptors that may have become `null` calling `eject`.
12387
- *
12388
- * @param {Function} fn The function to call for each interceptor
12389
- *
12390
- * @returns {void}
12391
- */
12392
- forEach(fn) {
12393
- utils_default.forEach(this.handlers, function forEachHandler(h) {
12394
- if (h !== null) {
12395
- fn(h);
12282
+ normalize(format) {
12283
+ const self2 = this;
12284
+ const headers = {};
12285
+ utils_default.forEach(this, (value, header) => {
12286
+ const key = utils_default.findKey(headers, header);
12287
+ if (key) {
12288
+ self2[key] = normalizeValue(value);
12289
+ delete self2[header];
12290
+ return;
12291
+ }
12292
+ const normalized = format ? formatHeader(header) : String(header).trim();
12293
+ if (normalized !== header) {
12294
+ delete self2[header];
12396
12295
  }
12296
+ self2[normalized] = normalizeValue(value);
12297
+ headers[normalized] = true;
12397
12298
  });
12299
+ return this;
12398
12300
  }
12399
- };
12400
- var InterceptorManager_default = InterceptorManager;
12401
-
12402
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
12403
- var transitional_default = {
12404
- silentJSONParsing: true,
12405
- forcedJSONParsing: true,
12406
- clarifyTimeoutError: false,
12407
- legacyInterceptorReqResOrdering: true
12408
- };
12409
-
12410
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12411
- import crypto from "crypto";
12412
-
12413
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
12414
- import url from "url";
12415
- var URLSearchParams_default = url.URLSearchParams;
12416
-
12417
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12418
- var ALPHA = "abcdefghijklmnopqrstuvwxyz";
12419
- var DIGIT = "0123456789";
12420
- var ALPHABET = {
12421
- DIGIT,
12422
- ALPHA,
12423
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
12424
- };
12425
- var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
12426
- let str = "";
12427
- const { length } = alphabet;
12428
- const randomValues = new Uint32Array(size);
12429
- crypto.randomFillSync(randomValues);
12430
- for (let i = 0; i < size; i++) {
12431
- str += alphabet[randomValues[i] % length];
12432
- }
12433
- return str;
12434
- };
12435
- var node_default = {
12436
- isNode: true,
12437
- classes: {
12438
- URLSearchParams: URLSearchParams_default,
12439
- FormData: FormData_default,
12440
- Blob: typeof Blob !== "undefined" && Blob || null
12441
- },
12442
- ALPHABET,
12443
- generateString,
12444
- protocols: ["http", "https", "file", "data"]
12445
- };
12446
-
12447
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
12448
- var utils_exports = {};
12449
- __export(utils_exports, {
12450
- hasBrowserEnv: () => hasBrowserEnv,
12451
- hasStandardBrowserEnv: () => hasStandardBrowserEnv,
12452
- hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
12453
- navigator: () => _navigator,
12454
- origin: () => origin
12455
- });
12456
- var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
12457
- var _navigator = typeof navigator === "object" && navigator || void 0;
12458
- var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
12459
- var hasStandardBrowserWebWorkerEnv = (() => {
12460
- return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
12461
- self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
12462
- })();
12463
- var origin = hasBrowserEnv && window.location.href || "http://localhost";
12464
-
12465
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/index.js
12466
- var platform_default = {
12467
- ...utils_exports,
12468
- ...node_default
12469
- };
12470
-
12471
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
12472
- function toURLEncodedForm(data, options) {
12473
- return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
12474
- visitor: function(value, key, path, helpers) {
12475
- if (platform_default.isNode && utils_default.isBuffer(value)) {
12476
- this.append(key, value.toString("base64"));
12477
- return false;
12478
- }
12479
- return helpers.defaultVisitor.apply(this, arguments);
12480
- },
12481
- ...options
12482
- });
12483
- }
12484
-
12485
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
12486
- function parsePropPath(name) {
12487
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
12488
- return match[0] === "[]" ? "" : match[1] || match[0];
12489
- });
12490
- }
12491
- function arrayToObject(arr) {
12492
- const obj = {};
12493
- const keys = Object.keys(arr);
12494
- let i;
12495
- const len = keys.length;
12496
- let key;
12497
- for (i = 0; i < len; i++) {
12498
- key = keys[i];
12499
- obj[key] = arr[key];
12500
- }
12501
- return obj;
12502
- }
12503
- function formDataToJSON(formData) {
12504
- function buildPath(path, value, target, index) {
12505
- let name = path[index++];
12506
- if (name === "__proto__") return true;
12507
- const isNumericKey = Number.isFinite(+name);
12508
- const isLast = index >= path.length;
12509
- name = !name && utils_default.isArray(target) ? target.length : name;
12510
- if (isLast) {
12511
- if (utils_default.hasOwnProp(target, name)) {
12512
- target[name] = [target[name], value];
12513
- } else {
12514
- target[name] = value;
12515
- }
12516
- return !isNumericKey;
12517
- }
12518
- if (!target[name] || !utils_default.isObject(target[name])) {
12519
- target[name] = [];
12520
- }
12521
- const result = buildPath(path, value, target[name], index);
12522
- if (result && utils_default.isArray(target[name])) {
12523
- target[name] = arrayToObject(target[name]);
12524
- }
12525
- return !isNumericKey;
12301
+ concat(...targets) {
12302
+ return this.constructor.concat(this, ...targets);
12526
12303
  }
12527
- if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
12528
- const obj = {};
12529
- utils_default.forEachEntry(formData, (name, value) => {
12530
- buildPath(parsePropPath(name), value, obj, 0);
12304
+ toJSON(asStrings) {
12305
+ const obj = /* @__PURE__ */ Object.create(null);
12306
+ utils_default.forEach(this, (value, header) => {
12307
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
12531
12308
  });
12532
12309
  return obj;
12533
12310
  }
12534
- return null;
12535
- }
12536
- var formDataToJSON_default = formDataToJSON;
12537
-
12538
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/defaults/index.js
12539
- function stringifySafely(rawValue, parser, encoder) {
12540
- if (utils_default.isString(rawValue)) {
12541
- try {
12542
- (parser || JSON.parse)(rawValue);
12543
- return utils_default.trim(rawValue);
12544
- } catch (e) {
12545
- if (e.name !== "SyntaxError") {
12546
- throw e;
12311
+ [Symbol.iterator]() {
12312
+ return Object.entries(this.toJSON())[Symbol.iterator]();
12313
+ }
12314
+ toString() {
12315
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12316
+ }
12317
+ getSetCookie() {
12318
+ return this.get("set-cookie") || [];
12319
+ }
12320
+ get [Symbol.toStringTag]() {
12321
+ return "AxiosHeaders";
12322
+ }
12323
+ static from(thing) {
12324
+ return thing instanceof this ? thing : new this(thing);
12325
+ }
12326
+ static concat(first, ...targets) {
12327
+ const computed = new this(first);
12328
+ targets.forEach((target) => computed.set(target));
12329
+ return computed;
12330
+ }
12331
+ static accessor(header) {
12332
+ const internals = this[$internals] = this[$internals] = {
12333
+ accessors: {}
12334
+ };
12335
+ const accessors = internals.accessors;
12336
+ const prototype2 = this.prototype;
12337
+ function defineAccessor(_header) {
12338
+ const lHeader = normalizeHeader(_header);
12339
+ if (!accessors[lHeader]) {
12340
+ buildAccessors(prototype2, _header);
12341
+ accessors[lHeader] = true;
12547
12342
  }
12548
12343
  }
12344
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
12345
+ return this;
12549
12346
  }
12550
- return (encoder || JSON.stringify)(rawValue);
12551
- }
12552
- var defaults = {
12553
- transitional: transitional_default,
12554
- adapter: ["xhr", "http", "fetch"],
12555
- transformRequest: [function transformRequest(data, headers) {
12556
- const contentType = headers.getContentType() || "";
12557
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
12558
- const isObjectPayload = utils_default.isObject(data);
12559
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
12560
- data = new FormData(data);
12561
- }
12562
- const isFormData2 = utils_default.isFormData(data);
12563
- if (isFormData2) {
12564
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
12565
- }
12566
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
12567
- return data;
12568
- }
12569
- if (utils_default.isArrayBufferView(data)) {
12570
- return data.buffer;
12347
+ };
12348
+ AxiosHeaders.accessor([
12349
+ "Content-Type",
12350
+ "Content-Length",
12351
+ "Accept",
12352
+ "Accept-Encoding",
12353
+ "User-Agent",
12354
+ "Authorization"
12355
+ ]);
12356
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12357
+ let mapped = key[0].toUpperCase() + key.slice(1);
12358
+ return {
12359
+ get: () => value,
12360
+ set(headerValue) {
12361
+ this[mapped] = headerValue;
12571
12362
  }
12572
- if (utils_default.isURLSearchParams(data)) {
12573
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
12574
- return data.toString();
12363
+ };
12364
+ });
12365
+ utils_default.freezeMethods(AxiosHeaders);
12366
+ var AxiosHeaders_default = AxiosHeaders;
12367
+
12368
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12369
+ var REDACTED = "[REDACTED ****]";
12370
+ function hasOwnOrPrototypeToJSON(source) {
12371
+ if (utils_default.hasOwnProp(source, "toJSON")) {
12372
+ return true;
12373
+ }
12374
+ let prototype2 = Object.getPrototypeOf(source);
12375
+ while (prototype2 && prototype2 !== Object.prototype) {
12376
+ if (utils_default.hasOwnProp(prototype2, "toJSON")) {
12377
+ return true;
12575
12378
  }
12576
- let isFileList2;
12577
- if (isObjectPayload) {
12578
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
12579
- return toURLEncodedForm(data, this.formSerializer).toString();
12580
- }
12581
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
12582
- const _FormData = this.env && this.env.FormData;
12583
- return toFormData_default(
12584
- isFileList2 ? { "files[]": data } : data,
12585
- _FormData && new _FormData(),
12586
- this.formSerializer
12587
- );
12379
+ prototype2 = Object.getPrototypeOf(prototype2);
12380
+ }
12381
+ return false;
12382
+ }
12383
+ function redactConfig(config, redactKeys) {
12384
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
12385
+ const seen = [];
12386
+ const visit = (source) => {
12387
+ if (source === null || typeof source !== "object") return source;
12388
+ if (utils_default.isBuffer(source)) return source;
12389
+ if (seen.indexOf(source) !== -1) return void 0;
12390
+ if (source instanceof AxiosHeaders_default) {
12391
+ source = source.toJSON();
12392
+ }
12393
+ seen.push(source);
12394
+ let result;
12395
+ if (utils_default.isArray(source)) {
12396
+ result = [];
12397
+ source.forEach((v, i) => {
12398
+ const reducedValue = visit(v);
12399
+ if (!utils_default.isUndefined(reducedValue)) {
12400
+ result[i] = reducedValue;
12401
+ }
12402
+ });
12403
+ } else {
12404
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
12405
+ seen.pop();
12406
+ return source;
12588
12407
  }
12589
- }
12590
- if (isObjectPayload || hasJSONContentType) {
12591
- headers.setContentType("application/json", false);
12592
- return stringifySafely(data);
12593
- }
12594
- return data;
12595
- }],
12596
- transformResponse: [function transformResponse(data) {
12597
- const transitional2 = this.transitional || defaults.transitional;
12598
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
12599
- const JSONRequested = this.responseType === "json";
12600
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
12601
- return data;
12602
- }
12603
- if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
12604
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
12605
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
12606
- try {
12607
- return JSON.parse(data, this.parseReviver);
12608
- } catch (e) {
12609
- if (strictJSONParsing) {
12610
- if (e.name === "SyntaxError") {
12611
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
12612
- }
12613
- throw e;
12408
+ result = /* @__PURE__ */ Object.create(null);
12409
+ for (const [key, value] of Object.entries(source)) {
12410
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
12411
+ if (!utils_default.isUndefined(reducedValue)) {
12412
+ result[key] = reducedValue;
12614
12413
  }
12615
12414
  }
12616
12415
  }
12617
- return data;
12618
- }],
12416
+ seen.pop();
12417
+ return result;
12418
+ };
12419
+ return visit(config);
12420
+ }
12421
+ var AxiosError = class _AxiosError extends Error {
12422
+ static from(error, code, config, request, response, customProps) {
12423
+ const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12424
+ axiosError.cause = error;
12425
+ axiosError.name = error.name;
12426
+ if (error.status != null && axiosError.status == null) {
12427
+ axiosError.status = error.status;
12428
+ }
12429
+ customProps && Object.assign(axiosError, customProps);
12430
+ return axiosError;
12431
+ }
12619
12432
  /**
12620
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
12621
- * timeout is not created.
12433
+ * Create an Error with the specified message, config, error code, request and response.
12434
+ *
12435
+ * @param {string} message The error message.
12436
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
12437
+ * @param {Object} [config] The config.
12438
+ * @param {Object} [request] The request.
12439
+ * @param {Object} [response] The response.
12440
+ *
12441
+ * @returns {Error} The created error.
12622
12442
  */
12623
- timeout: 0,
12624
- xsrfCookieName: "XSRF-TOKEN",
12625
- xsrfHeaderName: "X-XSRF-TOKEN",
12626
- maxContentLength: -1,
12627
- maxBodyLength: -1,
12628
- env: {
12629
- FormData: platform_default.classes.FormData,
12630
- Blob: platform_default.classes.Blob
12631
- },
12632
- validateStatus: function validateStatus(status) {
12633
- return status >= 200 && status < 300;
12634
- },
12635
- headers: {
12636
- common: {
12637
- "Accept": "application/json, text/plain, */*",
12638
- "Content-Type": void 0
12443
+ constructor(message, code, config, request, response) {
12444
+ super(message);
12445
+ Object.defineProperty(this, "message", {
12446
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
12447
+ // this data descriptor into an accessor descriptor on the way in.
12448
+ __proto__: null,
12449
+ value: message,
12450
+ enumerable: true,
12451
+ writable: true,
12452
+ configurable: true
12453
+ });
12454
+ this.name = "AxiosError";
12455
+ this.isAxiosError = true;
12456
+ code && (this.code = code);
12457
+ config && (this.config = config);
12458
+ request && (this.request = request);
12459
+ if (response) {
12460
+ this.response = response;
12461
+ this.status = response.status;
12639
12462
  }
12640
12463
  }
12464
+ toJSON() {
12465
+ const config = this.config;
12466
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
12467
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
12468
+ return {
12469
+ // Standard
12470
+ message: this.message,
12471
+ name: this.name,
12472
+ // Microsoft
12473
+ description: this.description,
12474
+ number: this.number,
12475
+ // Mozilla
12476
+ fileName: this.fileName,
12477
+ lineNumber: this.lineNumber,
12478
+ columnNumber: this.columnNumber,
12479
+ stack: this.stack,
12480
+ // Axios
12481
+ config: serializedConfig,
12482
+ code: this.code,
12483
+ status: this.status
12484
+ };
12485
+ }
12641
12486
  };
12642
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
12643
- defaults.headers[method] = {};
12644
- });
12645
- var defaults_default = defaults;
12646
-
12647
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12648
- var ignoreDuplicateOf = utils_default.toObjectSet([
12649
- "age",
12650
- "authorization",
12651
- "content-length",
12652
- "content-type",
12653
- "etag",
12654
- "expires",
12655
- "from",
12656
- "host",
12657
- "if-modified-since",
12658
- "if-unmodified-since",
12659
- "last-modified",
12660
- "location",
12661
- "max-forwards",
12662
- "proxy-authorization",
12663
- "referer",
12664
- "retry-after",
12665
- "user-agent"
12666
- ]);
12667
- var parseHeaders_default = (rawHeaders) => {
12668
- const parsed = {};
12669
- let key;
12670
- let val;
12671
- let i;
12672
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
12673
- i = line.indexOf(":");
12674
- key = line.substring(0, i).trim().toLowerCase();
12675
- val = line.substring(i + 1).trim();
12676
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12677
- return;
12487
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
12488
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
12489
+ AxiosError.ECONNABORTED = "ECONNABORTED";
12490
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
12491
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
12492
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
12493
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
12494
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
12495
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
12496
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
12497
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
12498
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
12499
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12500
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12501
+ var AxiosError_default = AxiosError;
12502
+
12503
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
12504
+ var import_form_data = __toESM(require_form_data(), 1);
12505
+ var FormData_default = import_form_data.default;
12506
+
12507
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
12508
+ function isVisitable(thing) {
12509
+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12510
+ }
12511
+ function removeBrackets(key) {
12512
+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
12513
+ }
12514
+ function renderKey(path, key, dots) {
12515
+ if (!path) return key;
12516
+ return path.concat(key).map(function each(token, i) {
12517
+ token = removeBrackets(token);
12518
+ return !dots && i ? "[" + token + "]" : token;
12519
+ }).join(dots ? "." : "");
12520
+ }
12521
+ function isFlatArray(arr) {
12522
+ return utils_default.isArray(arr) && !arr.some(isVisitable);
12523
+ }
12524
+ var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
12525
+ return /^is[A-Z]/.test(prop);
12526
+ });
12527
+ function toFormData(obj, formData, options) {
12528
+ if (!utils_default.isObject(obj)) {
12529
+ throw new TypeError("target must be an object");
12530
+ }
12531
+ formData = formData || new (FormData_default || FormData)();
12532
+ options = utils_default.toFlatObject(
12533
+ options,
12534
+ {
12535
+ metaTokens: true,
12536
+ dots: false,
12537
+ indexes: false
12538
+ },
12539
+ false,
12540
+ function defined(option, source) {
12541
+ return !utils_default.isUndefined(source[option]);
12678
12542
  }
12679
- if (key === "set-cookie") {
12680
- if (parsed[key]) {
12681
- parsed[key].push(val);
12682
- } else {
12683
- parsed[key] = [val];
12543
+ );
12544
+ const metaTokens = options.metaTokens;
12545
+ const visitor = options.visitor || defaultVisitor;
12546
+ const dots = options.dots;
12547
+ const indexes = options.indexes;
12548
+ const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
12549
+ const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
12550
+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
12551
+ if (!utils_default.isFunction(visitor)) {
12552
+ throw new TypeError("visitor must be a function");
12553
+ }
12554
+ function convertValue(value) {
12555
+ if (value === null) return "";
12556
+ if (utils_default.isDate(value)) {
12557
+ return value.toISOString();
12558
+ }
12559
+ if (utils_default.isBoolean(value)) {
12560
+ return value.toString();
12561
+ }
12562
+ if (!useBlob && utils_default.isBlob(value)) {
12563
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
12564
+ }
12565
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
12566
+ return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
12567
+ }
12568
+ return value;
12569
+ }
12570
+ function defaultVisitor(value, key, path) {
12571
+ let arr = value;
12572
+ if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
12573
+ formData.append(renderKey(path, key, dots), convertValue(value));
12574
+ return false;
12575
+ }
12576
+ if (value && !path && typeof value === "object") {
12577
+ if (utils_default.endsWith(key, "{}")) {
12578
+ key = metaTokens ? key : key.slice(0, -2);
12579
+ value = JSON.stringify(value);
12580
+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
12581
+ key = removeBrackets(key);
12582
+ arr.forEach(function each(el, index) {
12583
+ !(utils_default.isUndefined(el) || el === null) && formData.append(
12584
+ // eslint-disable-next-line no-nested-ternary
12585
+ indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
12586
+ convertValue(el)
12587
+ );
12588
+ });
12589
+ return false;
12684
12590
  }
12685
- } else {
12686
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12687
12591
  }
12592
+ if (isVisitable(value)) {
12593
+ return true;
12594
+ }
12595
+ formData.append(renderKey(path, key, dots), convertValue(value));
12596
+ return false;
12597
+ }
12598
+ const stack = [];
12599
+ const exposedHelpers = Object.assign(predicates, {
12600
+ defaultVisitor,
12601
+ convertValue,
12602
+ isVisitable
12688
12603
  });
12689
- return parsed;
12690
- };
12604
+ function build(value, path, depth = 0) {
12605
+ if (utils_default.isUndefined(value)) return;
12606
+ if (depth > maxDepth) {
12607
+ throw new AxiosError_default(
12608
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
12609
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
12610
+ );
12611
+ }
12612
+ if (stack.indexOf(value) !== -1) {
12613
+ throw Error("Circular reference detected in " + path.join("."));
12614
+ }
12615
+ stack.push(value);
12616
+ utils_default.forEach(value, function each(el, key) {
12617
+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
12618
+ if (result === true) {
12619
+ build(el, path ? path.concat(key) : [key], depth + 1);
12620
+ }
12621
+ });
12622
+ stack.pop();
12623
+ }
12624
+ if (!utils_default.isObject(obj)) {
12625
+ throw new TypeError("data must be an object");
12626
+ }
12627
+ build(obj);
12628
+ return formData;
12629
+ }
12630
+ var toFormData_default = toFormData;
12691
12631
 
12692
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12693
- var $internals = /* @__PURE__ */ Symbol("internals");
12694
- function normalizeHeader(header) {
12695
- return header && String(header).trim().toLowerCase();
12632
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
12633
+ function encode(str) {
12634
+ const charMap = {
12635
+ "!": "%21",
12636
+ "'": "%27",
12637
+ "(": "%28",
12638
+ ")": "%29",
12639
+ "~": "%7E",
12640
+ "%20": "+"
12641
+ };
12642
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
12643
+ return charMap[match];
12644
+ });
12696
12645
  }
12697
- function normalizeValue(value) {
12698
- if (value === false || value == null) {
12699
- return value;
12700
- }
12701
- return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
12646
+ function AxiosURLSearchParams(params, options) {
12647
+ this._pairs = [];
12648
+ params && toFormData_default(params, this, options);
12702
12649
  }
12703
- function parseTokens(str) {
12704
- const tokens = /* @__PURE__ */ Object.create(null);
12705
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
12706
- let match;
12707
- while (match = tokensRE.exec(str)) {
12708
- tokens[match[1]] = match[2];
12709
- }
12710
- return tokens;
12650
+ var prototype = AxiosURLSearchParams.prototype;
12651
+ prototype.append = function append(name, value) {
12652
+ this._pairs.push([name, value]);
12653
+ };
12654
+ prototype.toString = function toString2(encoder) {
12655
+ const _encode = encoder ? function(value) {
12656
+ return encoder.call(this, value, encode);
12657
+ } : encode;
12658
+ return this._pairs.map(function each(pair) {
12659
+ return _encode(pair[0]) + "=" + _encode(pair[1]);
12660
+ }, "").join("&");
12661
+ };
12662
+ var AxiosURLSearchParams_default = AxiosURLSearchParams;
12663
+
12664
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
12665
+ function encode2(val) {
12666
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
12711
12667
  }
12712
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12713
- function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12714
- if (utils_default.isFunction(filter2)) {
12715
- return filter2.call(this, value, header);
12716
- }
12717
- if (isHeaderNameFilter) {
12718
- value = header;
12668
+ function buildURL(url2, params, options) {
12669
+ if (!params) {
12670
+ return url2;
12719
12671
  }
12720
- if (!utils_default.isString(value)) return;
12721
- if (utils_default.isString(filter2)) {
12722
- return value.indexOf(filter2) !== -1;
12672
+ const _encode = options && options.encode || encode2;
12673
+ const _options = utils_default.isFunction(options) ? {
12674
+ serialize: options
12675
+ } : options;
12676
+ const serializeFn = _options && _options.serialize;
12677
+ let serializedParams;
12678
+ if (serializeFn) {
12679
+ serializedParams = serializeFn(params, _options);
12680
+ } else {
12681
+ serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
12723
12682
  }
12724
- if (utils_default.isRegExp(filter2)) {
12725
- return filter2.test(value);
12683
+ if (serializedParams) {
12684
+ const hashmarkIndex = url2.indexOf("#");
12685
+ if (hashmarkIndex !== -1) {
12686
+ url2 = url2.slice(0, hashmarkIndex);
12687
+ }
12688
+ url2 += (url2.indexOf("?") === -1 ? "?" : "&") + serializedParams;
12726
12689
  }
12690
+ return url2;
12727
12691
  }
12728
- function formatHeader(header) {
12729
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
12730
- return char.toUpperCase() + str;
12731
- });
12732
- }
12733
- function buildAccessors(obj, header) {
12734
- const accessorName = utils_default.toCamelCase(" " + header);
12735
- ["get", "set", "has"].forEach((methodName) => {
12736
- Object.defineProperty(obj, methodName + accessorName, {
12737
- value: function(arg1, arg2, arg3) {
12738
- return this[methodName].call(this, header, arg1, arg2, arg3);
12739
- },
12740
- configurable: true
12692
+
12693
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
12694
+ var InterceptorManager = class {
12695
+ constructor() {
12696
+ this.handlers = [];
12697
+ }
12698
+ /**
12699
+ * Add a new interceptor to the stack
12700
+ *
12701
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
12702
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
12703
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
12704
+ *
12705
+ * @return {Number} An ID used to remove interceptor later
12706
+ */
12707
+ use(fulfilled, rejected, options) {
12708
+ this.handlers.push({
12709
+ fulfilled,
12710
+ rejected,
12711
+ synchronous: options ? options.synchronous : false,
12712
+ runWhen: options ? options.runWhen : null
12741
12713
  });
12742
- });
12743
- }
12744
- var AxiosHeaders = class {
12745
- constructor(headers) {
12746
- headers && this.set(headers);
12714
+ return this.handlers.length - 1;
12747
12715
  }
12748
- set(header, valueOrRewrite, rewrite) {
12749
- const self2 = this;
12750
- function setHeader(_value, _header, _rewrite) {
12751
- const lHeader = normalizeHeader(_header);
12752
- if (!lHeader) {
12753
- throw new Error("header name must be a non-empty string");
12754
- }
12755
- const key = utils_default.findKey(self2, lHeader);
12756
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
12757
- self2[key || _header] = normalizeValue(_value);
12758
- }
12716
+ /**
12717
+ * Remove an interceptor from the stack
12718
+ *
12719
+ * @param {Number} id The ID that was returned by `use`
12720
+ *
12721
+ * @returns {void}
12722
+ */
12723
+ eject(id) {
12724
+ if (this.handlers[id]) {
12725
+ this.handlers[id] = null;
12759
12726
  }
12760
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
12761
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
12762
- setHeaders(header, valueOrRewrite);
12763
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12764
- setHeaders(parseHeaders_default(header), valueOrRewrite);
12765
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12766
- let obj = {}, dest, key;
12767
- for (const entry of header) {
12768
- if (!utils_default.isArray(entry)) {
12769
- throw TypeError("Object iterator must return a key-value pair");
12770
- }
12771
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12772
- }
12773
- setHeaders(obj, valueOrRewrite);
12774
- } else {
12775
- header != null && setHeader(valueOrRewrite, header, rewrite);
12727
+ }
12728
+ /**
12729
+ * Clear all interceptors from the stack
12730
+ *
12731
+ * @returns {void}
12732
+ */
12733
+ clear() {
12734
+ if (this.handlers) {
12735
+ this.handlers = [];
12776
12736
  }
12777
- return this;
12778
12737
  }
12779
- get(header, parser) {
12780
- header = normalizeHeader(header);
12781
- if (header) {
12782
- const key = utils_default.findKey(this, header);
12783
- if (key) {
12784
- const value = this[key];
12785
- if (!parser) {
12786
- return value;
12787
- }
12788
- if (parser === true) {
12789
- return parseTokens(value);
12790
- }
12791
- if (utils_default.isFunction(parser)) {
12792
- return parser.call(this, value, key);
12793
- }
12794
- if (utils_default.isRegExp(parser)) {
12795
- return parser.exec(value);
12796
- }
12797
- throw new TypeError("parser must be boolean|regexp|function");
12738
+ /**
12739
+ * Iterate over all the registered interceptors
12740
+ *
12741
+ * This method is particularly useful for skipping over any
12742
+ * interceptors that may have become `null` calling `eject`.
12743
+ *
12744
+ * @param {Function} fn The function to call for each interceptor
12745
+ *
12746
+ * @returns {void}
12747
+ */
12748
+ forEach(fn) {
12749
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
12750
+ if (h !== null) {
12751
+ fn(h);
12752
+ }
12753
+ });
12754
+ }
12755
+ };
12756
+ var InterceptorManager_default = InterceptorManager;
12757
+
12758
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
12759
+ var transitional_default = {
12760
+ silentJSONParsing: true,
12761
+ forcedJSONParsing: true,
12762
+ clarifyTimeoutError: false,
12763
+ legacyInterceptorReqResOrdering: true
12764
+ };
12765
+
12766
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12767
+ import crypto from "crypto";
12768
+
12769
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
12770
+ import url from "url";
12771
+ var URLSearchParams_default = url.URLSearchParams;
12772
+
12773
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12774
+ var ALPHA = "abcdefghijklmnopqrstuvwxyz";
12775
+ var DIGIT = "0123456789";
12776
+ var ALPHABET = {
12777
+ DIGIT,
12778
+ ALPHA,
12779
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
12780
+ };
12781
+ var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
12782
+ let str = "";
12783
+ const { length } = alphabet;
12784
+ const randomValues = new Uint32Array(size);
12785
+ crypto.randomFillSync(randomValues);
12786
+ for (let i = 0; i < size; i++) {
12787
+ str += alphabet[randomValues[i] % length];
12788
+ }
12789
+ return str;
12790
+ };
12791
+ var node_default = {
12792
+ isNode: true,
12793
+ classes: {
12794
+ URLSearchParams: URLSearchParams_default,
12795
+ FormData: FormData_default,
12796
+ Blob: typeof Blob !== "undefined" && Blob || null
12797
+ },
12798
+ ALPHABET,
12799
+ generateString,
12800
+ protocols: ["http", "https", "file", "data"]
12801
+ };
12802
+
12803
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
12804
+ var utils_exports = {};
12805
+ __export(utils_exports, {
12806
+ hasBrowserEnv: () => hasBrowserEnv,
12807
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
12808
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
12809
+ navigator: () => _navigator,
12810
+ origin: () => origin
12811
+ });
12812
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
12813
+ var _navigator = typeof navigator === "object" && navigator || void 0;
12814
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
12815
+ var hasStandardBrowserWebWorkerEnv = (() => {
12816
+ return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
12817
+ self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
12818
+ })();
12819
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
12820
+
12821
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/index.js
12822
+ var platform_default = {
12823
+ ...utils_exports,
12824
+ ...node_default
12825
+ };
12826
+
12827
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
12828
+ function toURLEncodedForm(data, options) {
12829
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
12830
+ visitor: function(value, key, path, helpers) {
12831
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
12832
+ this.append(key, value.toString("base64"));
12833
+ return false;
12798
12834
  }
12799
- }
12800
- }
12801
- has(header, matcher) {
12802
- header = normalizeHeader(header);
12803
- if (header) {
12804
- const key = utils_default.findKey(this, header);
12805
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
12806
- }
12807
- return false;
12835
+ return helpers.defaultVisitor.apply(this, arguments);
12836
+ },
12837
+ ...options
12838
+ });
12839
+ }
12840
+
12841
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
12842
+ function parsePropPath(name) {
12843
+ return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
12844
+ return match[0] === "[]" ? "" : match[1] || match[0];
12845
+ });
12846
+ }
12847
+ function arrayToObject(arr) {
12848
+ const obj = {};
12849
+ const keys = Object.keys(arr);
12850
+ let i;
12851
+ const len = keys.length;
12852
+ let key;
12853
+ for (i = 0; i < len; i++) {
12854
+ key = keys[i];
12855
+ obj[key] = arr[key];
12808
12856
  }
12809
- delete(header, matcher) {
12810
- const self2 = this;
12811
- let deleted = false;
12812
- function deleteHeader(_header) {
12813
- _header = normalizeHeader(_header);
12814
- if (_header) {
12815
- const key = utils_default.findKey(self2, _header);
12816
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
12817
- delete self2[key];
12818
- deleted = true;
12819
- }
12857
+ return obj;
12858
+ }
12859
+ function formDataToJSON(formData) {
12860
+ function buildPath(path, value, target, index) {
12861
+ let name = path[index++];
12862
+ if (name === "__proto__") return true;
12863
+ const isNumericKey = Number.isFinite(+name);
12864
+ const isLast = index >= path.length;
12865
+ name = !name && utils_default.isArray(target) ? target.length : name;
12866
+ if (isLast) {
12867
+ if (utils_default.hasOwnProp(target, name)) {
12868
+ target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
12869
+ } else {
12870
+ target[name] = value;
12820
12871
  }
12872
+ return !isNumericKey;
12821
12873
  }
12822
- if (utils_default.isArray(header)) {
12823
- header.forEach(deleteHeader);
12824
- } else {
12825
- deleteHeader(header);
12874
+ if (!target[name] || !utils_default.isObject(target[name])) {
12875
+ target[name] = [];
12826
12876
  }
12827
- return deleted;
12828
- }
12829
- clear(matcher) {
12830
- const keys = Object.keys(this);
12831
- let i = keys.length;
12832
- let deleted = false;
12833
- while (i--) {
12834
- const key = keys[i];
12835
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
12836
- delete this[key];
12837
- deleted = true;
12838
- }
12877
+ const result = buildPath(path, value, target[name], index);
12878
+ if (result && utils_default.isArray(target[name])) {
12879
+ target[name] = arrayToObject(target[name]);
12839
12880
  }
12840
- return deleted;
12841
- }
12842
- normalize(format) {
12843
- const self2 = this;
12844
- const headers = {};
12845
- utils_default.forEach(this, (value, header) => {
12846
- const key = utils_default.findKey(headers, header);
12847
- if (key) {
12848
- self2[key] = normalizeValue(value);
12849
- delete self2[header];
12850
- return;
12851
- }
12852
- const normalized = format ? formatHeader(header) : String(header).trim();
12853
- if (normalized !== header) {
12854
- delete self2[header];
12855
- }
12856
- self2[normalized] = normalizeValue(value);
12857
- headers[normalized] = true;
12858
- });
12859
- return this;
12860
- }
12861
- concat(...targets) {
12862
- return this.constructor.concat(this, ...targets);
12881
+ return !isNumericKey;
12863
12882
  }
12864
- toJSON(asStrings) {
12865
- const obj = /* @__PURE__ */ Object.create(null);
12866
- utils_default.forEach(this, (value, header) => {
12867
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
12883
+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
12884
+ const obj = {};
12885
+ utils_default.forEachEntry(formData, (name, value) => {
12886
+ buildPath(parsePropPath(name), value, obj, 0);
12868
12887
  });
12869
12888
  return obj;
12870
12889
  }
12871
- [Symbol.iterator]() {
12872
- return Object.entries(this.toJSON())[Symbol.iterator]();
12873
- }
12874
- toString() {
12875
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12876
- }
12877
- getSetCookie() {
12878
- return this.get("set-cookie") || [];
12879
- }
12880
- get [Symbol.toStringTag]() {
12881
- return "AxiosHeaders";
12882
- }
12883
- static from(thing) {
12884
- return thing instanceof this ? thing : new this(thing);
12885
- }
12886
- static concat(first, ...targets) {
12887
- const computed = new this(first);
12888
- targets.forEach((target) => computed.set(target));
12889
- return computed;
12890
+ return null;
12891
+ }
12892
+ var formDataToJSON_default = formDataToJSON;
12893
+
12894
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/defaults/index.js
12895
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
12896
+ function stringifySafely(rawValue, parser, encoder) {
12897
+ if (utils_default.isString(rawValue)) {
12898
+ try {
12899
+ (parser || JSON.parse)(rawValue);
12900
+ return utils_default.trim(rawValue);
12901
+ } catch (e) {
12902
+ if (e.name !== "SyntaxError") {
12903
+ throw e;
12904
+ }
12905
+ }
12890
12906
  }
12891
- static accessor(header) {
12892
- const internals = this[$internals] = this[$internals] = {
12893
- accessors: {}
12894
- };
12895
- const accessors = internals.accessors;
12896
- const prototype2 = this.prototype;
12897
- function defineAccessor(_header) {
12898
- const lHeader = normalizeHeader(_header);
12899
- if (!accessors[lHeader]) {
12900
- buildAccessors(prototype2, _header);
12901
- accessors[lHeader] = true;
12907
+ return (encoder || JSON.stringify)(rawValue);
12908
+ }
12909
+ var defaults = {
12910
+ transitional: transitional_default,
12911
+ adapter: ["xhr", "http", "fetch"],
12912
+ transformRequest: [
12913
+ function transformRequest(data, headers) {
12914
+ const contentType = headers.getContentType() || "";
12915
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
12916
+ const isObjectPayload = utils_default.isObject(data);
12917
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
12918
+ data = new FormData(data);
12919
+ }
12920
+ const isFormData2 = utils_default.isFormData(data);
12921
+ if (isFormData2) {
12922
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
12923
+ }
12924
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
12925
+ return data;
12926
+ }
12927
+ if (utils_default.isArrayBufferView(data)) {
12928
+ return data.buffer;
12929
+ }
12930
+ if (utils_default.isURLSearchParams(data)) {
12931
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
12932
+ return data.toString();
12933
+ }
12934
+ let isFileList2;
12935
+ if (isObjectPayload) {
12936
+ const formSerializer = own(this, "formSerializer");
12937
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
12938
+ return toURLEncodedForm(data, formSerializer).toString();
12939
+ }
12940
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
12941
+ const env = own(this, "env");
12942
+ const _FormData = env && env.FormData;
12943
+ return toFormData_default(
12944
+ isFileList2 ? { "files[]": data } : data,
12945
+ _FormData && new _FormData(),
12946
+ formSerializer
12947
+ );
12948
+ }
12949
+ }
12950
+ if (isObjectPayload || hasJSONContentType) {
12951
+ headers.setContentType("application/json", false);
12952
+ return stringifySafely(data);
12902
12953
  }
12954
+ return data;
12955
+ }
12956
+ ],
12957
+ transformResponse: [
12958
+ function transformResponse(data) {
12959
+ const transitional2 = own(this, "transitional") || defaults.transitional;
12960
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
12961
+ const responseType = own(this, "responseType");
12962
+ const JSONRequested = responseType === "json";
12963
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
12964
+ return data;
12965
+ }
12966
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
12967
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
12968
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
12969
+ try {
12970
+ return JSON.parse(data, own(this, "parseReviver"));
12971
+ } catch (e) {
12972
+ if (strictJSONParsing) {
12973
+ if (e.name === "SyntaxError") {
12974
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
12975
+ }
12976
+ throw e;
12977
+ }
12978
+ }
12979
+ }
12980
+ return data;
12981
+ }
12982
+ ],
12983
+ /**
12984
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
12985
+ * timeout is not created.
12986
+ */
12987
+ timeout: 0,
12988
+ xsrfCookieName: "XSRF-TOKEN",
12989
+ xsrfHeaderName: "X-XSRF-TOKEN",
12990
+ maxContentLength: -1,
12991
+ maxBodyLength: -1,
12992
+ env: {
12993
+ FormData: platform_default.classes.FormData,
12994
+ Blob: platform_default.classes.Blob
12995
+ },
12996
+ validateStatus: function validateStatus(status) {
12997
+ return status >= 200 && status < 300;
12998
+ },
12999
+ headers: {
13000
+ common: {
13001
+ Accept: "application/json, text/plain, */*",
13002
+ "Content-Type": void 0
12903
13003
  }
12904
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
12905
- return this;
12906
13004
  }
12907
13005
  };
12908
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
12909
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12910
- let mapped = key[0].toUpperCase() + key.slice(1);
12911
- return {
12912
- get: () => value,
12913
- set(headerValue) {
12914
- this[mapped] = headerValue;
12915
- }
12916
- };
13006
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13007
+ defaults.headers[method] = {};
12917
13008
  });
12918
- utils_default.freezeMethods(AxiosHeaders);
12919
- var AxiosHeaders_default = AxiosHeaders;
13009
+ var defaults_default = defaults;
12920
13010
 
12921
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13011
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/transformData.js
12922
13012
  function transformData(fns, response) {
12923
13013
  const config = this || defaults_default;
12924
13014
  const context = response || config;
@@ -12931,12 +13021,12 @@ function transformData(fns, response) {
12931
13021
  return data;
12932
13022
  }
12933
13023
 
12934
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13024
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
12935
13025
  function isCancel(value) {
12936
13026
  return !!(value && value.__CANCEL__);
12937
13027
  }
12938
13028
 
12939
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13029
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
12940
13030
  var CanceledError = class extends AxiosError_default {
12941
13031
  /**
12942
13032
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -12955,7 +13045,7 @@ var CanceledError = class extends AxiosError_default {
12955
13045
  };
12956
13046
  var CanceledError_default = CanceledError;
12957
13047
 
12958
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/settle.js
13048
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/settle.js
12959
13049
  function settle(resolve, reject, response) {
12960
13050
  const validateStatus2 = response.config.validateStatus;
12961
13051
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -12963,7 +13053,7 @@ function settle(resolve, reject, response) {
12963
13053
  } else {
12964
13054
  reject(new AxiosError_default(
12965
13055
  "Request failed with status code " + response.status,
12966
- [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
13056
+ response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
12967
13057
  response.config,
12968
13058
  response.request,
12969
13059
  response
@@ -12971,7 +13061,7 @@ function settle(resolve, reject, response) {
12971
13061
  }
12972
13062
  }
12973
13063
 
12974
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13064
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
12975
13065
  function isAbsoluteURL(url2) {
12976
13066
  if (typeof url2 !== "string") {
12977
13067
  return false;
@@ -12979,39 +13069,106 @@ function isAbsoluteURL(url2) {
12979
13069
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
12980
13070
  }
12981
13071
 
12982
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13072
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
12983
13073
  function combineURLs(baseURL, relativeURL) {
12984
13074
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
12985
13075
  }
12986
13076
 
12987
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13077
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
12988
13078
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
12989
13079
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
12990
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
13080
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
12991
13081
  return combineURLs(baseURL, requestedURL);
12992
13082
  }
12993
13083
  return requestedURL;
12994
13084
  }
12995
13085
 
12996
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
12997
- var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
13086
+ // ../../node_modules/.pnpm/proxy-from-env@2.1.0/node_modules/proxy-from-env/index.js
13087
+ var DEFAULT_PORTS = {
13088
+ ftp: 21,
13089
+ gopher: 70,
13090
+ http: 80,
13091
+ https: 443,
13092
+ ws: 80,
13093
+ wss: 443
13094
+ };
13095
+ function parseUrl(urlString) {
13096
+ try {
13097
+ return new URL(urlString);
13098
+ } catch {
13099
+ return null;
13100
+ }
13101
+ }
13102
+ function getProxyForUrl(url2) {
13103
+ var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
13104
+ var proto = parsedUrl.protocol;
13105
+ var hostname = parsedUrl.host;
13106
+ var port = parsedUrl.port;
13107
+ if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
13108
+ return "";
13109
+ }
13110
+ proto = proto.split(":", 1)[0];
13111
+ hostname = hostname.replace(/:\d*$/, "");
13112
+ port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
13113
+ if (!shouldProxy(hostname, port)) {
13114
+ return "";
13115
+ }
13116
+ var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
13117
+ if (proxy && proxy.indexOf("://") === -1) {
13118
+ proxy = proto + "://" + proxy;
13119
+ }
13120
+ return proxy;
13121
+ }
13122
+ function shouldProxy(hostname, port) {
13123
+ var NO_PROXY = getEnv("no_proxy").toLowerCase();
13124
+ if (!NO_PROXY) {
13125
+ return true;
13126
+ }
13127
+ if (NO_PROXY === "*") {
13128
+ return false;
13129
+ }
13130
+ return NO_PROXY.split(/[,\s]/).every(function(proxy) {
13131
+ if (!proxy) {
13132
+ return true;
13133
+ }
13134
+ var parsedProxy = proxy.match(/^(.+):(\d+)$/);
13135
+ var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
13136
+ var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
13137
+ if (parsedProxyPort && parsedProxyPort !== port) {
13138
+ return true;
13139
+ }
13140
+ if (!/^[.*]/.test(parsedProxyHostname)) {
13141
+ return hostname !== parsedProxyHostname;
13142
+ }
13143
+ if (parsedProxyHostname.charAt(0) === "*") {
13144
+ parsedProxyHostname = parsedProxyHostname.slice(1);
13145
+ }
13146
+ return !hostname.endsWith(parsedProxyHostname);
13147
+ });
13148
+ }
13149
+ function getEnv(key) {
13150
+ return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13151
+ }
13152
+
13153
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
12998
13154
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
12999
13155
  import http from "http";
13000
13156
  import https from "https";
13001
13157
  import http2 from "http2";
13002
13158
  import util2 from "util";
13159
+ import { resolve as resolvePath } from "path";
13003
13160
  import zlib from "zlib";
13004
13161
 
13005
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/env/data.js
13006
- var VERSION = "1.13.5";
13162
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/env/data.js
13163
+ var VERSION = "1.16.0";
13007
13164
 
13008
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13165
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13009
13166
  function parseProtocol(url2) {
13010
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
13167
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13011
13168
  return match && match[1] || "";
13012
13169
  }
13013
13170
 
13014
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13171
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13015
13172
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
13016
13173
  function fromDataURI(uri, asBlob, options) {
13017
13174
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -13040,24 +13197,29 @@ function fromDataURI(uri, asBlob, options) {
13040
13197
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13041
13198
  }
13042
13199
 
13043
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13200
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13044
13201
  import stream3 from "stream";
13045
13202
 
13046
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13203
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13047
13204
  import stream from "stream";
13048
13205
  var kInternals = /* @__PURE__ */ Symbol("internals");
13049
13206
  var AxiosTransformStream = class extends stream.Transform {
13050
13207
  constructor(options) {
13051
- options = utils_default.toFlatObject(options, {
13052
- maxRate: 0,
13053
- chunkSize: 64 * 1024,
13054
- minChunkSize: 100,
13055
- timeWindow: 500,
13056
- ticksRate: 2,
13057
- samplesCount: 15
13058
- }, null, (prop, source) => {
13059
- return !utils_default.isUndefined(source[prop]);
13060
- });
13208
+ options = utils_default.toFlatObject(
13209
+ options,
13210
+ {
13211
+ maxRate: 0,
13212
+ chunkSize: 64 * 1024,
13213
+ minChunkSize: 100,
13214
+ timeWindow: 500,
13215
+ ticksRate: 2,
13216
+ samplesCount: 15
13217
+ },
13218
+ null,
13219
+ (prop, source) => {
13220
+ return !utils_default.isUndefined(source[prop]);
13221
+ }
13222
+ );
13061
13223
  super({
13062
13224
  readableHighWaterMark: options.chunkSize
13063
13225
  });
@@ -13140,9 +13302,12 @@ var AxiosTransformStream = class extends stream.Transform {
13140
13302
  chunkRemainder = _chunk.subarray(maxChunkSize);
13141
13303
  _chunk = _chunk.subarray(0, maxChunkSize);
13142
13304
  }
13143
- pushChunk(_chunk, chunkRemainder ? () => {
13144
- process.nextTick(_callback, null, chunkRemainder);
13145
- } : _callback);
13305
+ pushChunk(
13306
+ _chunk,
13307
+ chunkRemainder ? () => {
13308
+ process.nextTick(_callback, null, chunkRemainder);
13309
+ } : _callback
13310
+ );
13146
13311
  };
13147
13312
  transformChunk(chunk, function transformNextChunk(err, _chunk) {
13148
13313
  if (err) {
@@ -13158,14 +13323,14 @@ var AxiosTransformStream = class extends stream.Transform {
13158
13323
  };
13159
13324
  var AxiosTransformStream_default = AxiosTransformStream;
13160
13325
 
13161
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13326
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13162
13327
  import { EventEmitter } from "events";
13163
13328
 
13164
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13329
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13165
13330
  import util from "util";
13166
13331
  import { Readable } from "stream";
13167
13332
 
13168
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
13333
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
13169
13334
  var { asyncIterator } = Symbol;
13170
13335
  var readBlob = async function* (blob) {
13171
13336
  if (blob.stream) {
@@ -13180,7 +13345,7 @@ var readBlob = async function* (blob) {
13180
13345
  };
13181
13346
  var readBlob_default = readBlob;
13182
13347
 
13183
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13348
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13184
13349
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13185
13350
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13186
13351
  var CRLF = "\r\n";
@@ -13194,7 +13359,8 @@ var FormDataPart = class {
13194
13359
  if (isStringValue) {
13195
13360
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
13196
13361
  } else {
13197
- headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
13362
+ const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
13363
+ headers += `Content-Type: ${safeType}${CRLF}`;
13198
13364
  }
13199
13365
  this.headers = textEncoder.encode(headers + CRLF);
13200
13366
  this.contentLength = isStringValue ? value.byteLength : value.size;
@@ -13213,11 +13379,14 @@ var FormDataPart = class {
13213
13379
  yield CRLF_BYTES;
13214
13380
  }
13215
13381
  static escapeName(name) {
13216
- return String(name).replace(/[\r\n"]/g, (match) => ({
13217
- "\r": "%0D",
13218
- "\n": "%0A",
13219
- '"': "%22"
13220
- })[match]);
13382
+ return String(name).replace(
13383
+ /[\r\n"]/g,
13384
+ (match) => ({
13385
+ "\r": "%0D",
13386
+ "\n": "%0A",
13387
+ '"': "%22"
13388
+ })[match]
13389
+ );
13221
13390
  }
13222
13391
  };
13223
13392
  var formDataToStream = (form, headersHandler, options) => {
@@ -13230,7 +13399,7 @@ var formDataToStream = (form, headersHandler, options) => {
13230
13399
  throw TypeError("FormData instance required");
13231
13400
  }
13232
13401
  if (boundary.length < 1 || boundary.length > 70) {
13233
- throw Error("boundary must be 10-70 characters long");
13402
+ throw Error("boundary must be 1-70 characters long");
13234
13403
  }
13235
13404
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13236
13405
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13249,17 +13418,19 @@ var formDataToStream = (form, headersHandler, options) => {
13249
13418
  computedHeaders["Content-Length"] = contentLength;
13250
13419
  }
13251
13420
  headersHandler && headersHandler(computedHeaders);
13252
- return Readable.from((async function* () {
13253
- for (const part of parts) {
13254
- yield boundaryBytes;
13255
- yield* part.encode();
13256
- }
13257
- yield footerBytes;
13258
- })());
13421
+ return Readable.from(
13422
+ (async function* () {
13423
+ for (const part of parts) {
13424
+ yield boundaryBytes;
13425
+ yield* part.encode();
13426
+ }
13427
+ yield footerBytes;
13428
+ })()
13429
+ );
13259
13430
  };
13260
13431
  var formDataToStream_default = formDataToStream;
13261
13432
 
13262
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13433
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13263
13434
  import stream2 from "stream";
13264
13435
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13265
13436
  __transform(chunk, encoding, callback) {
@@ -13281,7 +13452,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13281
13452
  };
13282
13453
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13283
13454
 
13284
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13455
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13285
13456
  var callbackify = (fn, reducer) => {
13286
13457
  return utils_default.isAsyncFn(fn) ? function(...args) {
13287
13458
  const cb = args.pop();
@@ -13296,7 +13467,129 @@ var callbackify = (fn, reducer) => {
13296
13467
  };
13297
13468
  var callbackify_default = callbackify;
13298
13469
 
13299
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
13470
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13471
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
13472
+ var isIPv4Loopback = (host) => {
13473
+ const parts = host.split(".");
13474
+ if (parts.length !== 4) return false;
13475
+ if (parts[0] !== "127") return false;
13476
+ return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13477
+ };
13478
+ var isIPv6Loopback = (host) => {
13479
+ if (host === "::1") return true;
13480
+ const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
13481
+ if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
13482
+ const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
13483
+ if (v4MappedHex) {
13484
+ const high = parseInt(v4MappedHex[1], 16);
13485
+ return high >= 32512 && high <= 32767;
13486
+ }
13487
+ const groups = host.split(":");
13488
+ if (groups.length === 8) {
13489
+ for (let i = 0; i < 7; i++) {
13490
+ if (!/^0+$/.test(groups[i])) return false;
13491
+ }
13492
+ return /^0*1$/.test(groups[7]);
13493
+ }
13494
+ return false;
13495
+ };
13496
+ var isLoopback = (host) => {
13497
+ if (!host) return false;
13498
+ if (LOOPBACK_HOSTNAMES.has(host)) return true;
13499
+ if (isIPv4Loopback(host)) return true;
13500
+ return isIPv6Loopback(host);
13501
+ };
13502
+ var DEFAULT_PORTS2 = {
13503
+ http: 80,
13504
+ https: 443,
13505
+ ws: 80,
13506
+ wss: 443,
13507
+ ftp: 21
13508
+ };
13509
+ var parseNoProxyEntry = (entry) => {
13510
+ let entryHost = entry;
13511
+ let entryPort = 0;
13512
+ if (entryHost.charAt(0) === "[") {
13513
+ const bracketIndex = entryHost.indexOf("]");
13514
+ if (bracketIndex !== -1) {
13515
+ const host = entryHost.slice(1, bracketIndex);
13516
+ const rest = entryHost.slice(bracketIndex + 1);
13517
+ if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
13518
+ entryPort = Number.parseInt(rest.slice(1), 10);
13519
+ }
13520
+ return [host, entryPort];
13521
+ }
13522
+ }
13523
+ const firstColon = entryHost.indexOf(":");
13524
+ const lastColon = entryHost.lastIndexOf(":");
13525
+ if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
13526
+ entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
13527
+ entryHost = entryHost.slice(0, lastColon);
13528
+ }
13529
+ return [entryHost, entryPort];
13530
+ };
13531
+ var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
13532
+ var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
13533
+ var unmapIPv4MappedIPv6 = (host) => {
13534
+ if (typeof host !== "string" || host.indexOf(":") === -1) return host;
13535
+ const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
13536
+ if (dotted) return dotted[1];
13537
+ const hex = host.match(IPV4_MAPPED_HEX_RE);
13538
+ if (hex) {
13539
+ const high = parseInt(hex[1], 16);
13540
+ const low = parseInt(hex[2], 16);
13541
+ return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
13542
+ }
13543
+ return host;
13544
+ };
13545
+ var normalizeNoProxyHost = (hostname) => {
13546
+ if (!hostname) {
13547
+ return hostname;
13548
+ }
13549
+ if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
13550
+ hostname = hostname.slice(1, -1);
13551
+ }
13552
+ return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
13553
+ };
13554
+ function shouldBypassProxy(location) {
13555
+ let parsed;
13556
+ try {
13557
+ parsed = new URL(location);
13558
+ } catch (_err) {
13559
+ return false;
13560
+ }
13561
+ const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
13562
+ if (!noProxy) {
13563
+ return false;
13564
+ }
13565
+ if (noProxy === "*") {
13566
+ return true;
13567
+ }
13568
+ const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
13569
+ const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
13570
+ return noProxy.split(/[\s,]+/).some((entry) => {
13571
+ if (!entry) {
13572
+ return false;
13573
+ }
13574
+ let [entryHost, entryPort] = parseNoProxyEntry(entry);
13575
+ entryHost = normalizeNoProxyHost(entryHost);
13576
+ if (!entryHost) {
13577
+ return false;
13578
+ }
13579
+ if (entryPort && entryPort !== port) {
13580
+ return false;
13581
+ }
13582
+ if (entryHost.charAt(0) === "*") {
13583
+ entryHost = entryHost.slice(1);
13584
+ }
13585
+ if (entryHost.charAt(0) === ".") {
13586
+ return hostname.endsWith(entryHost);
13587
+ }
13588
+ return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
13589
+ });
13590
+ }
13591
+
13592
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
13300
13593
  function speedometer(samplesCount, min) {
13301
13594
  samplesCount = samplesCount || 10;
13302
13595
  const bytes = new Array(samplesCount);
@@ -13332,7 +13625,7 @@ function speedometer(samplesCount, min) {
13332
13625
  }
13333
13626
  var speedometer_default = speedometer;
13334
13627
 
13335
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
13628
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
13336
13629
  function throttle(fn, freq) {
13337
13630
  let timestamp = 0;
13338
13631
  let threshold = 1e3 / freq;
@@ -13367,24 +13660,24 @@ function throttle(fn, freq) {
13367
13660
  }
13368
13661
  var throttle_default = throttle;
13369
13662
 
13370
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
13663
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
13371
13664
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13372
13665
  let bytesNotified = 0;
13373
13666
  const _speedometer = speedometer_default(50, 250);
13374
13667
  return throttle_default((e) => {
13375
- const loaded = e.loaded;
13668
+ const rawLoaded = e.loaded;
13376
13669
  const total = e.lengthComputable ? e.total : void 0;
13377
- const progressBytes = loaded - bytesNotified;
13670
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
13671
+ const progressBytes = Math.max(0, loaded - bytesNotified);
13378
13672
  const rate = _speedometer(progressBytes);
13379
- const inRange = loaded <= total;
13380
- bytesNotified = loaded;
13673
+ bytesNotified = Math.max(bytesNotified, loaded);
13381
13674
  const data = {
13382
13675
  loaded,
13383
13676
  total,
13384
13677
  progress: total ? loaded / total : void 0,
13385
13678
  bytes: progressBytes,
13386
13679
  rate: rate ? rate : void 0,
13387
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
13680
+ estimated: rate && total ? (total - loaded) / rate : void 0,
13388
13681
  event: e,
13389
13682
  lengthComputable: total != null,
13390
13683
  [isDownloadStream ? "download" : "upload"]: true
@@ -13394,15 +13687,18 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13394
13687
  };
13395
13688
  var progressEventDecorator = (total, throttled) => {
13396
13689
  const lengthComputable = total != null;
13397
- return [(loaded) => throttled[0]({
13398
- lengthComputable,
13399
- total,
13400
- loaded
13401
- }), throttled[1]];
13690
+ return [
13691
+ (loaded) => throttled[0]({
13692
+ lengthComputable,
13693
+ total,
13694
+ loaded
13695
+ }),
13696
+ throttled[1]
13697
+ ];
13402
13698
  };
13403
13699
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
13404
13700
 
13405
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
13701
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
13406
13702
  function estimateDataURLDecodedBytes(url2) {
13407
13703
  if (!url2 || typeof url2 !== "string") return 0;
13408
13704
  if (!url2.startsWith("data:")) return 0;
@@ -13447,13 +13743,35 @@ function estimateDataURLDecodedBytes(url2) {
13447
13743
  }
13448
13744
  }
13449
13745
  const groups = Math.floor(effectiveLen / 4);
13450
- const bytes = groups * 3 - (pad || 0);
13451
- return bytes > 0 ? bytes : 0;
13746
+ const bytes2 = groups * 3 - (pad || 0);
13747
+ return bytes2 > 0 ? bytes2 : 0;
13748
+ }
13749
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
13750
+ return Buffer.byteLength(body, "utf8");
13751
+ }
13752
+ let bytes = 0;
13753
+ for (let i = 0, len = body.length; i < len; i++) {
13754
+ const c = body.charCodeAt(i);
13755
+ if (c < 128) {
13756
+ bytes += 1;
13757
+ } else if (c < 2048) {
13758
+ bytes += 2;
13759
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
13760
+ const next = body.charCodeAt(i + 1);
13761
+ if (next >= 56320 && next <= 57343) {
13762
+ bytes += 4;
13763
+ i++;
13764
+ } else {
13765
+ bytes += 3;
13766
+ }
13767
+ } else {
13768
+ bytes += 3;
13769
+ }
13452
13770
  }
13453
- return Buffer.byteLength(body, "utf8");
13771
+ return bytes;
13454
13772
  }
13455
13773
 
13456
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13774
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13457
13775
  var zlibOptions = {
13458
13776
  flush: zlib.constants.Z_SYNC_FLUSH,
13459
13777
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -13465,9 +13783,33 @@ var brotliOptions = {
13465
13783
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
13466
13784
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
13467
13785
  var isHttps = /https:?/;
13786
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
13787
+ function setFormDataHeaders(headers, formHeaders, policy) {
13788
+ if (policy !== "content-only") {
13789
+ headers.set(formHeaders);
13790
+ return;
13791
+ }
13792
+ Object.entries(formHeaders).forEach(([key, val]) => {
13793
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
13794
+ headers.set(key, val);
13795
+ }
13796
+ });
13797
+ }
13798
+ var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
13799
+ var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
13468
13800
  var supportedProtocols = platform_default.protocols.map((protocol) => {
13469
13801
  return protocol + ":";
13470
13802
  });
13803
+ var decodeURIComponentSafe = (value) => {
13804
+ if (!utils_default.isString(value)) {
13805
+ return value;
13806
+ }
13807
+ try {
13808
+ return decodeURIComponent(value);
13809
+ } catch (error) {
13810
+ return value;
13811
+ }
13812
+ };
13471
13813
  var flushOnFinish = (stream4, [throttled, flush]) => {
13472
13814
  stream4.on("end", flush).on("error", flush);
13473
13815
  return throttled;
@@ -13477,9 +13819,12 @@ var Http2Sessions = class {
13477
13819
  this.sessions = /* @__PURE__ */ Object.create(null);
13478
13820
  }
13479
13821
  getSession(authority, options) {
13480
- options = Object.assign({
13481
- sessionTimeout: 1e3
13482
- }, options);
13822
+ options = Object.assign(
13823
+ {
13824
+ sessionTimeout: 1e3
13825
+ },
13826
+ options
13827
+ );
13483
13828
  let authoritySessions = this.sessions[authority];
13484
13829
  if (authoritySessions) {
13485
13830
  let len = authoritySessions.length;
@@ -13505,6 +13850,9 @@ var Http2Sessions = class {
13505
13850
  } else {
13506
13851
  entries.splice(i, 1);
13507
13852
  }
13853
+ if (!session.closed) {
13854
+ session.close();
13855
+ }
13508
13856
  return;
13509
13857
  }
13510
13858
  }
@@ -13533,57 +13881,81 @@ var Http2Sessions = class {
13533
13881
  };
13534
13882
  }
13535
13883
  session.once("close", removeSession);
13536
- let entry = [
13537
- session,
13538
- options
13539
- ];
13884
+ let entry = [session, options];
13540
13885
  authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
13541
13886
  return session;
13542
13887
  }
13543
13888
  };
13544
13889
  var http2Sessions = new Http2Sessions();
13545
- function dispatchBeforeRedirect(options, responseDetails) {
13890
+ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
13546
13891
  if (options.beforeRedirects.proxy) {
13547
13892
  options.beforeRedirects.proxy(options);
13548
13893
  }
13549
13894
  if (options.beforeRedirects.config) {
13550
- options.beforeRedirects.config(options, responseDetails);
13895
+ options.beforeRedirects.config(options, responseDetails, requestDetails);
13551
13896
  }
13552
13897
  }
13553
- function setProxy(options, configProxy, location) {
13898
+ function setProxy(options, configProxy, location, isRedirect) {
13554
13899
  let proxy = configProxy;
13555
13900
  if (!proxy && proxy !== false) {
13556
- const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
13901
+ const proxyUrl = getProxyForUrl(location);
13557
13902
  if (proxyUrl) {
13558
- proxy = new URL(proxyUrl);
13903
+ if (!shouldBypassProxy(location)) {
13904
+ proxy = new URL(proxyUrl);
13905
+ }
13559
13906
  }
13560
13907
  }
13561
- if (proxy) {
13562
- if (proxy.username) {
13563
- proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
13908
+ if (isRedirect && options.headers) {
13909
+ for (const name of Object.keys(options.headers)) {
13910
+ if (name.toLowerCase() === "proxy-authorization") {
13911
+ delete options.headers[name];
13912
+ }
13564
13913
  }
13565
- if (proxy.auth) {
13566
- const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
13914
+ }
13915
+ if (proxy) {
13916
+ const isProxyURL = proxy instanceof URL;
13917
+ const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
13918
+ const proxyUsername = readProxyField("username");
13919
+ const proxyPassword = readProxyField("password");
13920
+ let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
13921
+ if (proxyUsername) {
13922
+ proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
13923
+ }
13924
+ if (proxyAuth) {
13925
+ const authIsObject = typeof proxyAuth === "object";
13926
+ const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
13927
+ const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
13928
+ const validProxyAuth = Boolean(authUsername || authPassword);
13567
13929
  if (validProxyAuth) {
13568
- proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
13569
- } else if (typeof proxy.auth === "object") {
13930
+ proxyAuth = (authUsername || "") + ":" + (authPassword || "");
13931
+ } else if (authIsObject) {
13570
13932
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
13571
13933
  }
13572
- const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
13934
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
13573
13935
  options.headers["Proxy-Authorization"] = "Basic " + base64;
13574
13936
  }
13575
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
13576
- const proxyHost = proxy.hostname || proxy.host;
13937
+ let hasUserHostHeader = false;
13938
+ for (const name of Object.keys(options.headers)) {
13939
+ if (name.toLowerCase() === "host") {
13940
+ hasUserHostHeader = true;
13941
+ break;
13942
+ }
13943
+ }
13944
+ if (!hasUserHostHeader) {
13945
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
13946
+ }
13947
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
13577
13948
  options.hostname = proxyHost;
13578
13949
  options.host = proxyHost;
13579
- options.port = proxy.port;
13950
+ options.port = readProxyField("port");
13580
13951
  options.path = location;
13581
- if (proxy.protocol) {
13582
- options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
13952
+ const proxyProtocol = readProxyField("protocol");
13953
+ if (proxyProtocol) {
13954
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
13583
13955
  }
13584
13956
  }
13585
13957
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
13586
- setProxy(redirectOptions, configProxy, redirectOptions.href);
13958
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true);
13587
13959
  };
13588
13960
  }
13589
13961
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -13622,12 +13994,7 @@ var http2Transport = {
13622
13994
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
13623
13995
  const { http2Options, headers } = options;
13624
13996
  const session = http2Sessions.getSession(authority, http2Options);
13625
- const {
13626
- HTTP2_HEADER_SCHEME,
13627
- HTTP2_HEADER_METHOD,
13628
- HTTP2_HEADER_PATH,
13629
- HTTP2_HEADER_STATUS
13630
- } = http2.constants;
13997
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
13631
13998
  const http2Headers = {
13632
13999
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
13633
14000
  [HTTP2_HEADER_METHOD]: options.method,
@@ -13651,12 +14018,20 @@ var http2Transport = {
13651
14018
  };
13652
14019
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13653
14020
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
13654
- let { data, lookup, family, httpVersion = 1, http2Options } = config;
13655
- const { responseType, responseEncoding } = config;
14021
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
14022
+ let data = own2("data");
14023
+ let lookup = own2("lookup");
14024
+ let family = own2("family");
14025
+ let httpVersion = own2("httpVersion");
14026
+ if (httpVersion === void 0) httpVersion = 1;
14027
+ let http2Options = own2("http2Options");
14028
+ const responseType = own2("responseType");
14029
+ const responseEncoding = own2("responseEncoding");
13656
14030
  const method = config.method.toUpperCase();
13657
14031
  let isDone;
13658
14032
  let rejected = false;
13659
14033
  let req;
14034
+ let connectPhaseTimer;
13660
14035
  httpVersion = +httpVersion;
13661
14036
  if (Number.isNaN(httpVersion)) {
13662
14037
  throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
@@ -13680,13 +14055,36 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13680
14055
  const abortEmitter = new EventEmitter();
13681
14056
  function abort(reason) {
13682
14057
  try {
13683
- abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
14058
+ abortEmitter.emit(
14059
+ "abort",
14060
+ !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14061
+ );
13684
14062
  } catch (err) {
13685
14063
  console.warn("emit error", err);
13686
14064
  }
13687
14065
  }
14066
+ function clearConnectPhaseTimer() {
14067
+ if (connectPhaseTimer) {
14068
+ clearTimeout(connectPhaseTimer);
14069
+ connectPhaseTimer = null;
14070
+ }
14071
+ }
14072
+ function createTimeoutError() {
14073
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14074
+ const transitional2 = config.transitional || transitional_default;
14075
+ if (config.timeoutErrorMessage) {
14076
+ timeoutErrorMessage = config.timeoutErrorMessage;
14077
+ }
14078
+ return new AxiosError_default(
14079
+ timeoutErrorMessage,
14080
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14081
+ config,
14082
+ req
14083
+ );
14084
+ }
13688
14085
  abortEmitter.once("abort", reject);
13689
14086
  const onFinished = () => {
14087
+ clearConnectPhaseTimer();
13690
14088
  if (config.cancelToken) {
13691
14089
  config.cancelToken.unsubscribe(abort);
13692
14090
  }
@@ -13703,6 +14101,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13703
14101
  }
13704
14102
  onDone((response, isRejected) => {
13705
14103
  isDone = true;
14104
+ clearConnectPhaseTimer();
13706
14105
  if (isRejected) {
13707
14106
  rejected = true;
13708
14107
  onFinished();
@@ -13726,11 +14125,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13726
14125
  const dataUrl = String(config.url || fullPath || "");
13727
14126
  const estimated = estimateDataURLDecodedBytes(dataUrl);
13728
14127
  if (estimated > config.maxContentLength) {
13729
- return reject(new AxiosError_default(
13730
- "maxContentLength size of " + config.maxContentLength + " exceeded",
13731
- AxiosError_default.ERR_BAD_RESPONSE,
13732
- config
13733
- ));
14128
+ return reject(
14129
+ new AxiosError_default(
14130
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
14131
+ AxiosError_default.ERR_BAD_RESPONSE,
14132
+ config
14133
+ )
14134
+ );
13734
14135
  }
13735
14136
  }
13736
14137
  let convertedData;
@@ -13766,11 +14167,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13766
14167
  });
13767
14168
  }
13768
14169
  if (supportedProtocols.indexOf(protocol) === -1) {
13769
- return reject(new AxiosError_default(
13770
- "Unsupported protocol " + protocol,
13771
- AxiosError_default.ERR_BAD_REQUEST,
13772
- config
13773
- ));
14170
+ return reject(
14171
+ new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
14172
+ );
13774
14173
  }
13775
14174
  const headers = AxiosHeaders_default.from(config.headers).normalize();
13776
14175
  headers.set("User-Agent", "axios/" + VERSION, false);
@@ -13780,14 +14179,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13780
14179
  let maxDownloadRate = void 0;
13781
14180
  if (utils_default.isSpecCompliantForm(data)) {
13782
14181
  const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
13783
- data = formDataToStream_default(data, (formHeaders) => {
13784
- headers.set(formHeaders);
13785
- }, {
13786
- tag: `axios-${VERSION}-boundary`,
13787
- boundary: userBoundary && userBoundary[1] || void 0
13788
- });
13789
- } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
13790
- headers.set(data.getHeaders());
14182
+ data = formDataToStream_default(
14183
+ data,
14184
+ (formHeaders) => {
14185
+ headers.set(formHeaders);
14186
+ },
14187
+ {
14188
+ tag: `axios-${VERSION}-boundary`,
14189
+ boundary: userBoundary && userBoundary[1] || void 0
14190
+ }
14191
+ );
14192
+ } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
14193
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
13791
14194
  if (!headers.hasContentLength()) {
13792
14195
  try {
13793
14196
  const knownLength = await util2.promisify(data.getLength).call(data);
@@ -13806,19 +14209,23 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13806
14209
  } else if (utils_default.isString(data)) {
13807
14210
  data = Buffer.from(data, "utf-8");
13808
14211
  } else {
13809
- return reject(new AxiosError_default(
13810
- "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
13811
- AxiosError_default.ERR_BAD_REQUEST,
13812
- config
13813
- ));
14212
+ return reject(
14213
+ new AxiosError_default(
14214
+ "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
14215
+ AxiosError_default.ERR_BAD_REQUEST,
14216
+ config
14217
+ )
14218
+ );
13814
14219
  }
13815
14220
  headers.setContentLength(data.length, false);
13816
14221
  if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
13817
- return reject(new AxiosError_default(
13818
- "Request body larger than maxBodyLength limit",
13819
- AxiosError_default.ERR_BAD_REQUEST,
13820
- config
13821
- ));
14222
+ return reject(
14223
+ new AxiosError_default(
14224
+ "Request body larger than maxBodyLength limit",
14225
+ AxiosError_default.ERR_BAD_REQUEST,
14226
+ config
14227
+ )
14228
+ );
13822
14229
  }
13823
14230
  }
13824
14231
  const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
@@ -13832,26 +14239,36 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13832
14239
  if (!utils_default.isStream(data)) {
13833
14240
  data = stream3.Readable.from(data, { objectMode: false });
13834
14241
  }
13835
- data = stream3.pipeline([data, new AxiosTransformStream_default({
13836
- maxRate: utils_default.toFiniteNumber(maxUploadRate)
13837
- })], utils_default.noop);
13838
- onUploadProgress && data.on("progress", flushOnFinish(
13839
- data,
13840
- progressEventDecorator(
13841
- contentLength,
13842
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
14242
+ data = stream3.pipeline(
14243
+ [
14244
+ data,
14245
+ new AxiosTransformStream_default({
14246
+ maxRate: utils_default.toFiniteNumber(maxUploadRate)
14247
+ })
14248
+ ],
14249
+ utils_default.noop
14250
+ );
14251
+ onUploadProgress && data.on(
14252
+ "progress",
14253
+ flushOnFinish(
14254
+ data,
14255
+ progressEventDecorator(
14256
+ contentLength,
14257
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
14258
+ )
13843
14259
  )
13844
- ));
14260
+ );
13845
14261
  }
13846
14262
  let auth = void 0;
13847
- if (config.auth) {
13848
- const username = config.auth.username || "";
13849
- const password = config.auth.password || "";
14263
+ const configAuth = own2("auth");
14264
+ if (configAuth) {
14265
+ const username = configAuth.username || "";
14266
+ const password = configAuth.password || "";
13850
14267
  auth = username + ":" + password;
13851
14268
  }
13852
14269
  if (!auth && parsed.username) {
13853
- const urlUsername = parsed.username;
13854
- const urlPassword = parsed.password;
14270
+ const urlUsername = decodeURIComponentSafe(parsed.username);
14271
+ const urlPassword = decodeURIComponentSafe(parsed.password);
13855
14272
  auth = urlUsername + ":" + urlPassword;
13856
14273
  }
13857
14274
  auth && headers.delete("authorization");
@@ -13874,7 +14291,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13874
14291
  "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
13875
14292
  false
13876
14293
  );
13877
- const options = {
14294
+ const options = Object.assign(/* @__PURE__ */ Object.create(null), {
13878
14295
  path,
13879
14296
  method,
13880
14297
  headers: headers.toJSON(),
@@ -13883,33 +14300,62 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13883
14300
  protocol,
13884
14301
  family,
13885
14302
  beforeRedirect: dispatchBeforeRedirect,
13886
- beforeRedirects: {},
14303
+ beforeRedirects: /* @__PURE__ */ Object.create(null),
13887
14304
  http2Options
13888
- };
14305
+ });
13889
14306
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
13890
14307
  if (config.socketPath) {
14308
+ if (typeof config.socketPath !== "string") {
14309
+ return reject(
14310
+ new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14311
+ );
14312
+ }
14313
+ if (config.allowedSocketPaths != null) {
14314
+ const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14315
+ const resolvedSocket = resolvePath(config.socketPath);
14316
+ const isAllowed = allowed.some(
14317
+ (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14318
+ );
14319
+ if (!isAllowed) {
14320
+ return reject(
14321
+ new AxiosError_default(
14322
+ `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
14323
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
14324
+ config
14325
+ )
14326
+ );
14327
+ }
14328
+ }
13891
14329
  options.socketPath = config.socketPath;
13892
14330
  } else {
13893
14331
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
13894
14332
  options.port = parsed.port;
13895
- setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
14333
+ setProxy(
14334
+ options,
14335
+ config.proxy,
14336
+ protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
14337
+ );
13896
14338
  }
13897
14339
  let transport;
14340
+ let isNativeTransport = false;
13898
14341
  const isHttpsRequest = isHttps.test(options.protocol);
13899
14342
  options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
13900
14343
  if (isHttp2) {
13901
14344
  transport = http2Transport;
13902
14345
  } else {
13903
- if (config.transport) {
13904
- transport = config.transport;
14346
+ const configTransport = own2("transport");
14347
+ if (configTransport) {
14348
+ transport = configTransport;
13905
14349
  } else if (config.maxRedirects === 0) {
13906
14350
  transport = isHttpsRequest ? https : http;
14351
+ isNativeTransport = true;
13907
14352
  } else {
13908
14353
  if (config.maxRedirects) {
13909
14354
  options.maxRedirects = config.maxRedirects;
13910
14355
  }
13911
- if (config.beforeRedirect) {
13912
- options.beforeRedirects.config = config.beforeRedirect;
14356
+ const configBeforeRedirect = own2("beforeRedirect");
14357
+ if (configBeforeRedirect) {
14358
+ options.beforeRedirects.config = configBeforeRedirect;
13913
14359
  }
13914
14360
  transport = isHttpsRequest ? httpsFollow : httpFollow;
13915
14361
  }
@@ -13919,10 +14365,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13919
14365
  } else {
13920
14366
  options.maxBodyLength = Infinity;
13921
14367
  }
13922
- if (config.insecureHTTPParser) {
13923
- options.insecureHTTPParser = config.insecureHTTPParser;
13924
- }
14368
+ options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
13925
14369
  req = transport.request(options, function handleResponse(res) {
14370
+ clearConnectPhaseTimer();
13926
14371
  if (req.destroyed) return;
13927
14372
  const streams = [res];
13928
14373
  const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
@@ -13930,13 +14375,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13930
14375
  const transformStream = new AxiosTransformStream_default({
13931
14376
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
13932
14377
  });
13933
- onDownloadProgress && transformStream.on("progress", flushOnFinish(
13934
- transformStream,
13935
- progressEventDecorator(
13936
- responseLength,
13937
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
14378
+ onDownloadProgress && transformStream.on(
14379
+ "progress",
14380
+ flushOnFinish(
14381
+ transformStream,
14382
+ progressEventDecorator(
14383
+ responseLength,
14384
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
14385
+ )
13938
14386
  )
13939
- ));
14387
+ );
13940
14388
  streams.push(transformStream);
13941
14389
  }
13942
14390
  let responseStream = res;
@@ -13975,6 +14423,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13975
14423
  request: lastRequest
13976
14424
  };
13977
14425
  if (responseType === "stream") {
14426
+ if (config.maxContentLength > -1) {
14427
+ const limit = config.maxContentLength;
14428
+ const source = responseStream;
14429
+ async function* enforceMaxContentLength() {
14430
+ let totalResponseBytes = 0;
14431
+ for await (const chunk of source) {
14432
+ totalResponseBytes += chunk.length;
14433
+ if (totalResponseBytes > limit) {
14434
+ throw new AxiosError_default(
14435
+ "maxContentLength size of " + limit + " exceeded",
14436
+ AxiosError_default.ERR_BAD_RESPONSE,
14437
+ config,
14438
+ lastRequest
14439
+ );
14440
+ }
14441
+ yield chunk;
14442
+ }
14443
+ }
14444
+ responseStream = stream3.Readable.from(enforceMaxContentLength(), {
14445
+ objectMode: false
14446
+ });
14447
+ }
13978
14448
  response.data = responseStream;
13979
14449
  settle(resolve, reject, response);
13980
14450
  } else {
@@ -13986,12 +14456,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13986
14456
  if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
13987
14457
  rejected = true;
13988
14458
  responseStream.destroy();
13989
- abort(new AxiosError_default(
13990
- "maxContentLength size of " + config.maxContentLength + " exceeded",
13991
- AxiosError_default.ERR_BAD_RESPONSE,
13992
- config,
13993
- lastRequest
13994
- ));
14459
+ abort(
14460
+ new AxiosError_default(
14461
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
14462
+ AxiosError_default.ERR_BAD_RESPONSE,
14463
+ config,
14464
+ lastRequest
14465
+ )
14466
+ );
13995
14467
  }
13996
14468
  });
13997
14469
  responseStream.on("aborted", function handlerStreamAborted() {
@@ -14002,14 +14474,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14002
14474
  "stream has been aborted",
14003
14475
  AxiosError_default.ERR_BAD_RESPONSE,
14004
14476
  config,
14005
- lastRequest
14477
+ lastRequest,
14478
+ response
14006
14479
  );
14007
14480
  responseStream.destroy(err);
14008
14481
  reject(err);
14009
14482
  });
14010
14483
  responseStream.on("error", function handleStreamError(err) {
14011
- if (req.destroyed) return;
14012
- reject(AxiosError_default.from(err, null, config, lastRequest));
14484
+ if (rejected) return;
14485
+ reject(AxiosError_default.from(err, null, config, lastRequest, response));
14013
14486
  });
14014
14487
  responseStream.on("end", function handleStreamEnd() {
14015
14488
  try {
@@ -14044,34 +14517,51 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14044
14517
  req.on("error", function handleRequestError(err) {
14045
14518
  reject(AxiosError_default.from(err, null, config, req));
14046
14519
  });
14520
+ const boundSockets = /* @__PURE__ */ new Set();
14047
14521
  req.on("socket", function handleRequestSocket(socket) {
14048
14522
  socket.setKeepAlive(true, 1e3 * 60);
14523
+ if (!socket[kAxiosSocketListener]) {
14524
+ socket.on("error", function handleSocketError(err) {
14525
+ const current = socket[kAxiosCurrentReq];
14526
+ if (current && !current.destroyed) {
14527
+ current.destroy(err);
14528
+ }
14529
+ });
14530
+ socket[kAxiosSocketListener] = true;
14531
+ }
14532
+ socket[kAxiosCurrentReq] = req;
14533
+ boundSockets.add(socket);
14534
+ });
14535
+ req.once("close", function clearCurrentReq() {
14536
+ clearConnectPhaseTimer();
14537
+ for (const socket of boundSockets) {
14538
+ if (socket[kAxiosCurrentReq] === req) {
14539
+ socket[kAxiosCurrentReq] = null;
14540
+ }
14541
+ }
14542
+ boundSockets.clear();
14049
14543
  });
14050
14544
  if (config.timeout) {
14051
14545
  const timeout = parseInt(config.timeout, 10);
14052
14546
  if (Number.isNaN(timeout)) {
14053
- abort(new AxiosError_default(
14054
- "error trying to parse `config.timeout` to int",
14055
- AxiosError_default.ERR_BAD_OPTION_VALUE,
14056
- config,
14057
- req
14058
- ));
14547
+ abort(
14548
+ new AxiosError_default(
14549
+ "error trying to parse `config.timeout` to int",
14550
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
14551
+ config,
14552
+ req
14553
+ )
14554
+ );
14059
14555
  return;
14060
14556
  }
14061
- req.setTimeout(timeout, function handleRequestTimeout() {
14557
+ const handleTimeout = function handleTimeout2() {
14062
14558
  if (isDone) return;
14063
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14064
- const transitional2 = config.transitional || transitional_default;
14065
- if (config.timeoutErrorMessage) {
14066
- timeoutErrorMessage = config.timeoutErrorMessage;
14067
- }
14068
- abort(new AxiosError_default(
14069
- timeoutErrorMessage,
14070
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14071
- config,
14072
- req
14073
- ));
14074
- });
14559
+ abort(createTimeoutError());
14560
+ };
14561
+ if (isNativeTransport && timeout > 0) {
14562
+ connectPhaseTimer = setTimeout(handleTimeout, timeout);
14563
+ }
14564
+ req.setTimeout(timeout, handleTimeout);
14075
14565
  } else {
14076
14566
  req.setTimeout(0);
14077
14567
  }
@@ -14090,7 +14580,37 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14090
14580
  abort(new CanceledError_default("Request stream has been aborted", config, req));
14091
14581
  }
14092
14582
  });
14093
- data.pipe(req);
14583
+ let uploadStream = data;
14584
+ if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
14585
+ const limit = config.maxBodyLength;
14586
+ let bytesSent = 0;
14587
+ uploadStream = stream3.pipeline(
14588
+ [
14589
+ data,
14590
+ new stream3.Transform({
14591
+ transform(chunk, _enc, cb) {
14592
+ bytesSent += chunk.length;
14593
+ if (bytesSent > limit) {
14594
+ return cb(
14595
+ new AxiosError_default(
14596
+ "Request body larger than maxBodyLength limit",
14597
+ AxiosError_default.ERR_BAD_REQUEST,
14598
+ config,
14599
+ req
14600
+ )
14601
+ );
14602
+ }
14603
+ cb(null, chunk);
14604
+ }
14605
+ })
14606
+ ],
14607
+ utils_default.noop
14608
+ );
14609
+ uploadStream.on("error", (err) => {
14610
+ if (!req.destroyed) req.destroy(err);
14611
+ });
14612
+ }
14613
+ uploadStream.pipe(req);
14094
14614
  } else {
14095
14615
  data && req.write(data);
14096
14616
  req.end();
@@ -14098,7 +14618,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14098
14618
  });
14099
14619
  };
14100
14620
 
14101
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
14621
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
14102
14622
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
14103
14623
  url2 = new URL(url2, platform_default.origin);
14104
14624
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -14107,7 +14627,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
14107
14627
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
14108
14628
  ) : () => true;
14109
14629
 
14110
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
14630
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
14111
14631
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
14112
14632
  // Standard browser envs support document.cookie
14113
14633
  {
@@ -14133,8 +14653,15 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
14133
14653
  },
14134
14654
  read(name) {
14135
14655
  if (typeof document === "undefined") return null;
14136
- const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
14137
- return match ? decodeURIComponent(match[1]) : null;
14656
+ const cookies = document.cookie.split(";");
14657
+ for (let i = 0; i < cookies.length; i++) {
14658
+ const cookie = cookies[i].replace(/^\s+/, "");
14659
+ const eq = cookie.indexOf("=");
14660
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
14661
+ return decodeURIComponent(cookie.slice(eq + 1));
14662
+ }
14663
+ }
14664
+ return null;
14138
14665
  },
14139
14666
  remove(name) {
14140
14667
  this.write(name, "", Date.now() - 864e5, "/");
@@ -14153,11 +14680,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
14153
14680
  }
14154
14681
  );
14155
14682
 
14156
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
14683
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
14157
14684
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
14158
14685
  function mergeConfig(config1, config2) {
14159
14686
  config2 = config2 || {};
14160
- const config = {};
14687
+ const config = /* @__PURE__ */ Object.create(null);
14688
+ Object.defineProperty(config, "hasOwnProperty", {
14689
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
14690
+ // this data descriptor into an accessor descriptor on the way in.
14691
+ __proto__: null,
14692
+ value: Object.prototype.hasOwnProperty,
14693
+ enumerable: false,
14694
+ writable: true,
14695
+ configurable: true
14696
+ });
14161
14697
  function getMergedValue(target, source, prop, caseless) {
14162
14698
  if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
14163
14699
  return utils_default.merge.call({ caseless }, target, source);
@@ -14188,9 +14724,9 @@ function mergeConfig(config1, config2) {
14188
14724
  }
14189
14725
  }
14190
14726
  function mergeDirectKeys(a, b, prop) {
14191
- if (prop in config2) {
14727
+ if (utils_default.hasOwnProp(config2, prop)) {
14192
14728
  return getMergedValue(a, b);
14193
- } else if (prop in config1) {
14729
+ } else if (utils_default.hasOwnProp(config1, prop)) {
14194
14730
  return getMergedValue(void 0, a);
14195
14731
  }
14196
14732
  }
@@ -14221,51 +14757,76 @@ function mergeConfig(config1, config2) {
14221
14757
  httpsAgent: defaultToConfig2,
14222
14758
  cancelToken: defaultToConfig2,
14223
14759
  socketPath: defaultToConfig2,
14760
+ allowedSocketPaths: defaultToConfig2,
14224
14761
  responseEncoding: defaultToConfig2,
14225
14762
  validateStatus: mergeDirectKeys,
14226
14763
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
14227
14764
  };
14228
- utils_default.forEach(
14229
- Object.keys({ ...config1, ...config2 }),
14230
- function computeConfigValue(prop) {
14231
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
14232
- return;
14233
- const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
14234
- const configValue = merge2(config1[prop], config2[prop], prop);
14235
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
14236
- }
14237
- );
14765
+ utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
14766
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
14767
+ const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
14768
+ const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
14769
+ const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
14770
+ const configValue = merge2(a, b, prop);
14771
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
14772
+ });
14238
14773
  return config;
14239
14774
  }
14240
14775
 
14241
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
14776
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
14777
+ var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
14778
+ function setFormDataHeaders2(headers, formHeaders, policy) {
14779
+ if (policy !== "content-only") {
14780
+ headers.set(formHeaders);
14781
+ return;
14782
+ }
14783
+ Object.entries(formHeaders).forEach(([key, val]) => {
14784
+ if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
14785
+ headers.set(key, val);
14786
+ }
14787
+ });
14788
+ }
14789
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
14790
+ /%([0-9A-F]{2})/gi,
14791
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
14792
+ );
14242
14793
  var resolveConfig_default = (config) => {
14243
14794
  const newConfig = mergeConfig({}, config);
14244
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
14795
+ const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
14796
+ const data = own2("data");
14797
+ let withXSRFToken = own2("withXSRFToken");
14798
+ const xsrfHeaderName = own2("xsrfHeaderName");
14799
+ const xsrfCookieName = own2("xsrfCookieName");
14800
+ let headers = own2("headers");
14801
+ const auth = own2("auth");
14802
+ const baseURL = own2("baseURL");
14803
+ const allowAbsoluteUrls = own2("allowAbsoluteUrls");
14804
+ const url2 = own2("url");
14245
14805
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
14246
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
14806
+ newConfig.url = buildURL(
14807
+ buildFullPath(baseURL, url2, allowAbsoluteUrls),
14808
+ config.params,
14809
+ config.paramsSerializer
14810
+ );
14247
14811
  if (auth) {
14248
14812
  headers.set(
14249
14813
  "Authorization",
14250
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
14814
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
14251
14815
  );
14252
14816
  }
14253
14817
  if (utils_default.isFormData(data)) {
14254
14818
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
14255
14819
  headers.setContentType(void 0);
14256
14820
  } else if (utils_default.isFunction(data.getHeaders)) {
14257
- const formHeaders = data.getHeaders();
14258
- const allowedHeaders = ["content-type", "content-length"];
14259
- Object.entries(formHeaders).forEach(([key, val]) => {
14260
- if (allowedHeaders.includes(key.toLowerCase())) {
14261
- headers.set(key, val);
14262
- }
14263
- });
14821
+ setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14264
14822
  }
14265
14823
  }
14266
14824
  if (platform_default.hasStandardBrowserEnv) {
14267
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
14268
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
14825
+ if (utils_default.isFunction(withXSRFToken)) {
14826
+ withXSRFToken = withXSRFToken(newConfig);
14827
+ }
14828
+ const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
14829
+ if (shouldSendXSRF) {
14269
14830
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
14270
14831
  if (xsrfValue) {
14271
14832
  headers.set(xsrfHeaderName, xsrfValue);
@@ -14275,7 +14836,7 @@ var resolveConfig_default = (config) => {
14275
14836
  return newConfig;
14276
14837
  };
14277
14838
 
14278
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
14839
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
14279
14840
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
14280
14841
  var xhr_default = isXHRAdapterSupported && function(config) {
14281
14842
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -14311,13 +14872,17 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14311
14872
  config,
14312
14873
  request
14313
14874
  };
14314
- settle(function _resolve(value) {
14315
- resolve(value);
14316
- done();
14317
- }, function _reject(err) {
14318
- reject(err);
14319
- done();
14320
- }, response);
14875
+ settle(
14876
+ function _resolve(value) {
14877
+ resolve(value);
14878
+ done();
14879
+ },
14880
+ function _reject(err) {
14881
+ reject(err);
14882
+ done();
14883
+ },
14884
+ response
14885
+ );
14321
14886
  request = null;
14322
14887
  }
14323
14888
  if ("onloadend" in request) {
@@ -14327,7 +14892,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14327
14892
  if (!request || request.readyState !== 4) {
14328
14893
  return;
14329
14894
  }
14330
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
14895
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
14331
14896
  return;
14332
14897
  }
14333
14898
  setTimeout(onloadend);
@@ -14338,6 +14903,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14338
14903
  return;
14339
14904
  }
14340
14905
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
14906
+ done();
14341
14907
  request = null;
14342
14908
  };
14343
14909
  request.onerror = function handleError(event) {
@@ -14345,6 +14911,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14345
14911
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
14346
14912
  err.event = event || null;
14347
14913
  reject(err);
14914
+ done();
14348
14915
  request = null;
14349
14916
  };
14350
14917
  request.ontimeout = function handleTimeout() {
@@ -14353,12 +14920,15 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14353
14920
  if (_config.timeoutErrorMessage) {
14354
14921
  timeoutErrorMessage = _config.timeoutErrorMessage;
14355
14922
  }
14356
- reject(new AxiosError_default(
14357
- timeoutErrorMessage,
14358
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14359
- config,
14360
- request
14361
- ));
14923
+ reject(
14924
+ new AxiosError_default(
14925
+ timeoutErrorMessage,
14926
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14927
+ config,
14928
+ request
14929
+ )
14930
+ );
14931
+ done();
14362
14932
  request = null;
14363
14933
  };
14364
14934
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -14389,6 +14959,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14389
14959
  }
14390
14960
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
14391
14961
  request.abort();
14962
+ done();
14392
14963
  request = null;
14393
14964
  };
14394
14965
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -14397,15 +14968,21 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14397
14968
  }
14398
14969
  }
14399
14970
  const protocol = parseProtocol(_config.url);
14400
- if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
14401
- reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
14971
+ if (protocol && !platform_default.protocols.includes(protocol)) {
14972
+ reject(
14973
+ new AxiosError_default(
14974
+ "Unsupported protocol " + protocol + ":",
14975
+ AxiosError_default.ERR_BAD_REQUEST,
14976
+ config
14977
+ )
14978
+ );
14402
14979
  return;
14403
14980
  }
14404
14981
  request.send(requestData || null);
14405
14982
  });
14406
14983
  };
14407
14984
 
14408
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
14985
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
14409
14986
  var composeSignals = (signals, timeout) => {
14410
14987
  const { length } = signals = signals ? signals.filter(Boolean) : [];
14411
14988
  if (timeout || length) {
@@ -14416,7 +14993,9 @@ var composeSignals = (signals, timeout) => {
14416
14993
  aborted = true;
14417
14994
  unsubscribe();
14418
14995
  const err = reason instanceof Error ? reason : this.reason;
14419
- controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
14996
+ controller.abort(
14997
+ err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
14998
+ );
14420
14999
  }
14421
15000
  };
14422
15001
  let timer = timeout && setTimeout(() => {
@@ -14441,7 +15020,7 @@ var composeSignals = (signals, timeout) => {
14441
15020
  };
14442
15021
  var composeSignals_default = composeSignals;
14443
15022
 
14444
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
15023
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
14445
15024
  var streamChunk = function* (chunk, chunkSize) {
14446
15025
  let len = chunk.byteLength;
14447
15026
  if (!chunkSize || len < chunkSize) {
@@ -14489,46 +15068,41 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
14489
15068
  onFinish && onFinish(e);
14490
15069
  }
14491
15070
  };
14492
- return new ReadableStream({
14493
- async pull(controller) {
14494
- try {
14495
- const { done: done2, value } = await iterator2.next();
14496
- if (done2) {
14497
- _onFinish();
14498
- controller.close();
14499
- return;
14500
- }
14501
- let len = value.byteLength;
14502
- if (onProgress) {
14503
- let loadedBytes = bytes += len;
14504
- onProgress(loadedBytes);
15071
+ return new ReadableStream(
15072
+ {
15073
+ async pull(controller) {
15074
+ try {
15075
+ const { done: done2, value } = await iterator2.next();
15076
+ if (done2) {
15077
+ _onFinish();
15078
+ controller.close();
15079
+ return;
15080
+ }
15081
+ let len = value.byteLength;
15082
+ if (onProgress) {
15083
+ let loadedBytes = bytes += len;
15084
+ onProgress(loadedBytes);
15085
+ }
15086
+ controller.enqueue(new Uint8Array(value));
15087
+ } catch (err) {
15088
+ _onFinish(err);
15089
+ throw err;
14505
15090
  }
14506
- controller.enqueue(new Uint8Array(value));
14507
- } catch (err) {
14508
- _onFinish(err);
14509
- throw err;
15091
+ },
15092
+ cancel(reason) {
15093
+ _onFinish(reason);
15094
+ return iterator2.return();
14510
15095
  }
14511
15096
  },
14512
- cancel(reason) {
14513
- _onFinish(reason);
14514
- return iterator2.return();
15097
+ {
15098
+ highWaterMark: 2
14515
15099
  }
14516
- }, {
14517
- highWaterMark: 2
14518
- });
15100
+ );
14519
15101
  };
14520
15102
 
14521
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
15103
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
14522
15104
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
14523
15105
  var { isFunction: isFunction2 } = utils_default;
14524
- var globalFetchAPI = (({ Request, Response }) => ({
14525
- Request,
14526
- Response
14527
- }))(utils_default.global);
14528
- var {
14529
- ReadableStream: ReadableStream2,
14530
- TextEncoder: TextEncoder2
14531
- } = utils_default.global;
14532
15106
  var test = (fn, ...args) => {
14533
15107
  try {
14534
15108
  return !!fn(...args);
@@ -14537,9 +15111,18 @@ var test = (fn, ...args) => {
14537
15111
  }
14538
15112
  };
14539
15113
  var factory = (env) => {
14540
- env = utils_default.merge.call({
14541
- skipUndefined: true
14542
- }, globalFetchAPI, env);
15114
+ const globalObject = utils_default.global ?? globalThis;
15115
+ const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
15116
+ env = utils_default.merge.call(
15117
+ {
15118
+ skipUndefined: true
15119
+ },
15120
+ {
15121
+ Request: globalObject.Request,
15122
+ Response: globalObject.Response
15123
+ },
15124
+ env
15125
+ );
14543
15126
  const { fetch: envFetch, Request, Response } = env;
14544
15127
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
14545
15128
  const isRequestSupported = isFunction2(Request);
@@ -14551,14 +15134,18 @@ var factory = (env) => {
14551
15134
  const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
14552
15135
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
14553
15136
  let duplexAccessed = false;
14554
- const hasContentType = new Request(platform_default.origin, {
15137
+ const request = new Request(platform_default.origin, {
14555
15138
  body: new ReadableStream2(),
14556
15139
  method: "POST",
14557
15140
  get duplex() {
14558
15141
  duplexAccessed = true;
14559
15142
  return "half";
14560
15143
  }
14561
- }).headers.has("Content-Type");
15144
+ });
15145
+ const hasContentType = request.headers.has("Content-Type");
15146
+ if (request.body != null) {
15147
+ request.body.cancel();
15148
+ }
14562
15149
  return duplexAccessed && !hasContentType;
14563
15150
  });
14564
15151
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
@@ -14572,7 +15159,11 @@ var factory = (env) => {
14572
15159
  if (method) {
14573
15160
  return method.call(res);
14574
15161
  }
14575
- throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
15162
+ throw new AxiosError_default(
15163
+ `Response type '${type}' is not supported`,
15164
+ AxiosError_default.ERR_NOT_SUPPORT,
15165
+ config
15166
+ );
14576
15167
  });
14577
15168
  });
14578
15169
  })();
@@ -14617,17 +15208,46 @@ var factory = (env) => {
14617
15208
  responseType,
14618
15209
  headers,
14619
15210
  withCredentials = "same-origin",
14620
- fetchOptions
15211
+ fetchOptions,
15212
+ maxContentLength,
15213
+ maxBodyLength
14621
15214
  } = resolveConfig_default(config);
15215
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15216
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
14622
15217
  let _fetch = envFetch || fetch;
14623
15218
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
14624
- let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
15219
+ let composedSignal = composeSignals_default(
15220
+ [signal, cancelToken && cancelToken.toAbortSignal()],
15221
+ timeout
15222
+ );
14625
15223
  let request = null;
14626
15224
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
14627
15225
  composedSignal.unsubscribe();
14628
15226
  });
14629
15227
  let requestContentLength;
14630
15228
  try {
15229
+ if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15230
+ const estimated = estimateDataURLDecodedBytes(url2);
15231
+ if (estimated > maxContentLength) {
15232
+ throw new AxiosError_default(
15233
+ "maxContentLength size of " + maxContentLength + " exceeded",
15234
+ AxiosError_default.ERR_BAD_RESPONSE,
15235
+ config,
15236
+ request
15237
+ );
15238
+ }
15239
+ }
15240
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
15241
+ const outboundLength = await resolveBodyLength(headers, data);
15242
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
15243
+ throw new AxiosError_default(
15244
+ "Request body larger than maxBodyLength limit",
15245
+ AxiosError_default.ERR_BAD_REQUEST,
15246
+ config,
15247
+ request
15248
+ );
15249
+ }
15250
+ }
14631
15251
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
14632
15252
  let _request = new Request(url2, {
14633
15253
  method: "POST",
@@ -14650,6 +15270,13 @@ var factory = (env) => {
14650
15270
  withCredentials = withCredentials ? "include" : "omit";
14651
15271
  }
14652
15272
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
15273
+ if (utils_default.isFormData(data)) {
15274
+ const contentType = headers.getContentType();
15275
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
15276
+ headers.delete("content-type");
15277
+ }
15278
+ }
15279
+ headers.set("User-Agent", "axios/" + VERSION, false);
14653
15280
  const resolvedOptions = {
14654
15281
  ...fetchOptions,
14655
15282
  signal: composedSignal,
@@ -14661,8 +15288,19 @@ var factory = (env) => {
14661
15288
  };
14662
15289
  request = isRequestSupported && new Request(url2, resolvedOptions);
14663
15290
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
15291
+ if (hasMaxContentLength) {
15292
+ const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
15293
+ if (declaredLength != null && declaredLength > maxContentLength) {
15294
+ throw new AxiosError_default(
15295
+ "maxContentLength size of " + maxContentLength + " exceeded",
15296
+ AxiosError_default.ERR_BAD_RESPONSE,
15297
+ config,
15298
+ request
15299
+ );
15300
+ }
15301
+ }
14664
15302
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
14665
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
15303
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
14666
15304
  const options = {};
14667
15305
  ["status", "statusText", "headers"].forEach((prop) => {
14668
15306
  options[prop] = response[prop];
@@ -14672,8 +15310,23 @@ var factory = (env) => {
14672
15310
  responseContentLength,
14673
15311
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
14674
15312
  ) || [];
15313
+ let bytesRead = 0;
15314
+ const onChunkProgress = (loadedBytes) => {
15315
+ if (hasMaxContentLength) {
15316
+ bytesRead = loadedBytes;
15317
+ if (bytesRead > maxContentLength) {
15318
+ throw new AxiosError_default(
15319
+ "maxContentLength size of " + maxContentLength + " exceeded",
15320
+ AxiosError_default.ERR_BAD_RESPONSE,
15321
+ config,
15322
+ request
15323
+ );
15324
+ }
15325
+ }
15326
+ onProgress && onProgress(loadedBytes);
15327
+ };
14675
15328
  response = new Response(
14676
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
15329
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
14677
15330
  flush && flush();
14678
15331
  unsubscribe && unsubscribe();
14679
15332
  }),
@@ -14681,7 +15334,30 @@ var factory = (env) => {
14681
15334
  );
14682
15335
  }
14683
15336
  responseType = responseType || "text";
14684
- let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
15337
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
15338
+ response,
15339
+ config
15340
+ );
15341
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
15342
+ let materializedSize;
15343
+ if (responseData != null) {
15344
+ if (typeof responseData.byteLength === "number") {
15345
+ materializedSize = responseData.byteLength;
15346
+ } else if (typeof responseData.size === "number") {
15347
+ materializedSize = responseData.size;
15348
+ } else if (typeof responseData === "string") {
15349
+ materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
15350
+ }
15351
+ }
15352
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
15353
+ throw new AxiosError_default(
15354
+ "maxContentLength size of " + maxContentLength + " exceeded",
15355
+ AxiosError_default.ERR_BAD_RESPONSE,
15356
+ config,
15357
+ request
15358
+ );
15359
+ }
15360
+ }
14685
15361
  !isStreamResponse && unsubscribe && unsubscribe();
14686
15362
  return await new Promise((resolve, reject) => {
14687
15363
  settle(resolve, reject, {
@@ -14695,9 +15371,22 @@ var factory = (env) => {
14695
15371
  });
14696
15372
  } catch (err) {
14697
15373
  unsubscribe && unsubscribe();
15374
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
15375
+ const canceledError = composedSignal.reason;
15376
+ canceledError.config = config;
15377
+ request && (canceledError.request = request);
15378
+ err !== canceledError && (canceledError.cause = err);
15379
+ throw canceledError;
15380
+ }
14698
15381
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
14699
15382
  throw Object.assign(
14700
- new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response),
15383
+ new AxiosError_default(
15384
+ "Network Error",
15385
+ AxiosError_default.ERR_NETWORK,
15386
+ config,
15387
+ request,
15388
+ err && err.response
15389
+ ),
14701
15390
  {
14702
15391
  cause: err.cause || err
14703
15392
  }
@@ -14711,11 +15400,7 @@ var seedCache = /* @__PURE__ */ new Map();
14711
15400
  var getFetch = (config) => {
14712
15401
  let env = config && config.env || {};
14713
15402
  const { fetch: fetch2, Request, Response } = env;
14714
- const seeds = [
14715
- Request,
14716
- Response,
14717
- fetch2
14718
- ];
15403
+ const seeds = [Request, Response, fetch2];
14719
15404
  let len = seeds.length, i = len, seed, target, map = seedCache;
14720
15405
  while (i--) {
14721
15406
  seed = seeds[i];
@@ -14727,7 +15412,7 @@ var getFetch = (config) => {
14727
15412
  };
14728
15413
  var adapter = getFetch();
14729
15414
 
14730
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
15415
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
14731
15416
  var knownAdapters = {
14732
15417
  http: http_default,
14733
15418
  xhr: xhr_default,
@@ -14738,10 +15423,10 @@ var knownAdapters = {
14738
15423
  utils_default.forEach(knownAdapters, (fn, value) => {
14739
15424
  if (fn) {
14740
15425
  try {
14741
- Object.defineProperty(fn, "name", { value });
15426
+ Object.defineProperty(fn, "name", { __proto__: null, value });
14742
15427
  } catch (e) {
14743
15428
  }
14744
- Object.defineProperty(fn, "adapterName", { value });
15429
+ Object.defineProperty(fn, "adapterName", { __proto__: null, value });
14745
15430
  }
14746
15431
  });
14747
15432
  var renderReason = (reason) => `- ${reason}`;
@@ -14792,7 +15477,7 @@ var adapters_default = {
14792
15477
  adapters: knownAdapters
14793
15478
  };
14794
15479
 
14795
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
15480
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
14796
15481
  function throwIfCancellationRequested(config) {
14797
15482
  if (config.cancelToken) {
14798
15483
  config.cancelToken.throwIfRequested();
@@ -14804,40 +15489,46 @@ function throwIfCancellationRequested(config) {
14804
15489
  function dispatchRequest(config) {
14805
15490
  throwIfCancellationRequested(config);
14806
15491
  config.headers = AxiosHeaders_default.from(config.headers);
14807
- config.data = transformData.call(
14808
- config,
14809
- config.transformRequest
14810
- );
15492
+ config.data = transformData.call(config, config.transformRequest);
14811
15493
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
14812
15494
  config.headers.setContentType("application/x-www-form-urlencoded", false);
14813
15495
  }
14814
15496
  const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
14815
- return adapter2(config).then(function onAdapterResolution(response) {
14816
- throwIfCancellationRequested(config);
14817
- response.data = transformData.call(
14818
- config,
14819
- config.transformResponse,
14820
- response
14821
- );
14822
- response.headers = AxiosHeaders_default.from(response.headers);
14823
- return response;
14824
- }, function onAdapterRejection(reason) {
14825
- if (!isCancel(reason)) {
15497
+ return adapter2(config).then(
15498
+ function onAdapterResolution(response) {
14826
15499
  throwIfCancellationRequested(config);
14827
- if (reason && reason.response) {
14828
- reason.response.data = transformData.call(
14829
- config,
14830
- config.transformResponse,
14831
- reason.response
14832
- );
14833
- reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
15500
+ config.response = response;
15501
+ try {
15502
+ response.data = transformData.call(config, config.transformResponse, response);
15503
+ } finally {
15504
+ delete config.response;
15505
+ }
15506
+ response.headers = AxiosHeaders_default.from(response.headers);
15507
+ return response;
15508
+ },
15509
+ function onAdapterRejection(reason) {
15510
+ if (!isCancel(reason)) {
15511
+ throwIfCancellationRequested(config);
15512
+ if (reason && reason.response) {
15513
+ config.response = reason.response;
15514
+ try {
15515
+ reason.response.data = transformData.call(
15516
+ config,
15517
+ config.transformResponse,
15518
+ reason.response
15519
+ );
15520
+ } finally {
15521
+ delete config.response;
15522
+ }
15523
+ reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
15524
+ }
14834
15525
  }
15526
+ return Promise.reject(reason);
14835
15527
  }
14836
- return Promise.reject(reason);
14837
- });
15528
+ );
14838
15529
  }
14839
15530
 
14840
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
15531
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
14841
15532
  var validators = {};
14842
15533
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
14843
15534
  validators[type] = function validator(thing) {
@@ -14882,12 +15573,15 @@ function assertOptions(options, schema, allowUnknown) {
14882
15573
  let i = keys.length;
14883
15574
  while (i-- > 0) {
14884
15575
  const opt = keys[i];
14885
- const validator = schema[opt];
15576
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
14886
15577
  if (validator) {
14887
15578
  const value = options[opt];
14888
15579
  const result = value === void 0 || validator(value, opt, options);
14889
15580
  if (result !== true) {
14890
- throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);
15581
+ throw new AxiosError_default(
15582
+ "option " + opt + " must be " + result,
15583
+ AxiosError_default.ERR_BAD_OPTION_VALUE
15584
+ );
14891
15585
  }
14892
15586
  continue;
14893
15587
  }
@@ -14901,7 +15595,7 @@ var validator_default = {
14901
15595
  validators
14902
15596
  };
14903
15597
 
14904
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/Axios.js
15598
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/Axios.js
14905
15599
  var validators2 = validator_default.validators;
14906
15600
  var Axios = class {
14907
15601
  constructor(instanceConfig) {
@@ -14926,12 +15620,23 @@ var Axios = class {
14926
15620
  if (err instanceof Error) {
14927
15621
  let dummy = {};
14928
15622
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
14929
- const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
15623
+ const stack = (() => {
15624
+ if (!dummy.stack) {
15625
+ return "";
15626
+ }
15627
+ const firstNewlineIndex = dummy.stack.indexOf("\n");
15628
+ return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
15629
+ })();
14930
15630
  try {
14931
15631
  if (!err.stack) {
14932
15632
  err.stack = stack;
14933
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
14934
- err.stack += "\n" + stack;
15633
+ } else if (stack) {
15634
+ const firstNewlineIndex = stack.indexOf("\n");
15635
+ const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
15636
+ const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
15637
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
15638
+ err.stack += "\n" + stack;
15639
+ }
14935
15640
  }
14936
15641
  } catch (e) {
14937
15642
  }
@@ -14949,12 +15654,16 @@ var Axios = class {
14949
15654
  config = mergeConfig(this.defaults, config);
14950
15655
  const { transitional: transitional2, paramsSerializer, headers } = config;
14951
15656
  if (transitional2 !== void 0) {
14952
- validator_default.assertOptions(transitional2, {
14953
- silentJSONParsing: validators2.transitional(validators2.boolean),
14954
- forcedJSONParsing: validators2.transitional(validators2.boolean),
14955
- clarifyTimeoutError: validators2.transitional(validators2.boolean),
14956
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
14957
- }, false);
15657
+ validator_default.assertOptions(
15658
+ transitional2,
15659
+ {
15660
+ silentJSONParsing: validators2.transitional(validators2.boolean),
15661
+ forcedJSONParsing: validators2.transitional(validators2.boolean),
15662
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
15663
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
15664
+ },
15665
+ false
15666
+ );
14958
15667
  }
14959
15668
  if (paramsSerializer != null) {
14960
15669
  if (utils_default.isFunction(paramsSerializer)) {
@@ -14962,10 +15671,14 @@ var Axios = class {
14962
15671
  serialize: paramsSerializer
14963
15672
  };
14964
15673
  } else {
14965
- validator_default.assertOptions(paramsSerializer, {
14966
- encode: validators2.function,
14967
- serialize: validators2.function
14968
- }, true);
15674
+ validator_default.assertOptions(
15675
+ paramsSerializer,
15676
+ {
15677
+ encode: validators2.function,
15678
+ serialize: validators2.function
15679
+ },
15680
+ true
15681
+ );
14969
15682
  }
14970
15683
  }
14971
15684
  if (config.allowAbsoluteUrls !== void 0) {
@@ -14974,21 +15687,19 @@ var Axios = class {
14974
15687
  } else {
14975
15688
  config.allowAbsoluteUrls = true;
14976
15689
  }
14977
- validator_default.assertOptions(config, {
14978
- baseUrl: validators2.spelling("baseURL"),
14979
- withXsrfToken: validators2.spelling("withXSRFToken")
14980
- }, true);
14981
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
14982
- let contextHeaders = headers && utils_default.merge(
14983
- headers.common,
14984
- headers[config.method]
14985
- );
14986
- headers && utils_default.forEach(
14987
- ["delete", "get", "head", "post", "put", "patch", "common"],
14988
- (method) => {
14989
- delete headers[method];
14990
- }
15690
+ validator_default.assertOptions(
15691
+ config,
15692
+ {
15693
+ baseUrl: validators2.spelling("baseURL"),
15694
+ withXsrfToken: validators2.spelling("withXSRFToken")
15695
+ },
15696
+ true
14991
15697
  );
15698
+ config.method = (config.method || this.defaults.method || "get").toLowerCase();
15699
+ let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
15700
+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
15701
+ delete headers[method];
15702
+ });
14992
15703
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
14993
15704
  const requestInterceptorChain = [];
14994
15705
  let synchronousRequestInterceptors = true;
@@ -15055,32 +15766,38 @@ var Axios = class {
15055
15766
  };
15056
15767
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
15057
15768
  Axios.prototype[method] = function(url2, config) {
15058
- return this.request(mergeConfig(config || {}, {
15059
- method,
15060
- url: url2,
15061
- data: (config || {}).data
15062
- }));
15769
+ return this.request(
15770
+ mergeConfig(config || {}, {
15771
+ method,
15772
+ url: url2,
15773
+ data: (config || {}).data
15774
+ })
15775
+ );
15063
15776
  };
15064
15777
  });
15065
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
15778
+ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
15066
15779
  function generateHTTPMethod(isForm) {
15067
15780
  return function httpMethod(url2, data, config) {
15068
- return this.request(mergeConfig(config || {}, {
15069
- method,
15070
- headers: isForm ? {
15071
- "Content-Type": "multipart/form-data"
15072
- } : {},
15073
- url: url2,
15074
- data
15075
- }));
15781
+ return this.request(
15782
+ mergeConfig(config || {}, {
15783
+ method,
15784
+ headers: isForm ? {
15785
+ "Content-Type": "multipart/form-data"
15786
+ } : {},
15787
+ url: url2,
15788
+ data
15789
+ })
15790
+ );
15076
15791
  };
15077
15792
  }
15078
15793
  Axios.prototype[method] = generateHTTPMethod();
15079
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
15794
+ if (method !== "query") {
15795
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
15796
+ }
15080
15797
  });
15081
15798
  var Axios_default = Axios;
15082
15799
 
15083
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
15800
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
15084
15801
  var CancelToken = class _CancelToken {
15085
15802
  constructor(executor) {
15086
15803
  if (typeof executor !== "function") {
@@ -15178,19 +15895,19 @@ var CancelToken = class _CancelToken {
15178
15895
  };
15179
15896
  var CancelToken_default = CancelToken;
15180
15897
 
15181
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
15898
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
15182
15899
  function spread(callback) {
15183
15900
  return function wrap(arr) {
15184
15901
  return callback.apply(null, arr);
15185
15902
  };
15186
15903
  }
15187
15904
 
15188
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
15905
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
15189
15906
  function isAxiosError(payload) {
15190
15907
  return utils_default.isObject(payload) && payload.isAxiosError === true;
15191
15908
  }
15192
15909
 
15193
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
15910
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
15194
15911
  var HttpStatusCode = {
15195
15912
  Continue: 100,
15196
15913
  SwitchingProtocols: 101,
@@ -15267,13 +15984,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
15267
15984
  });
15268
15985
  var HttpStatusCode_default = HttpStatusCode;
15269
15986
 
15270
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/axios.js
15987
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/axios.js
15271
15988
  function createInstance(defaultConfig) {
15272
15989
  const context = new Axios_default(defaultConfig);
15273
15990
  const instance = bind(Axios_default.prototype.request, context);
15274
15991
  utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
15275
15992
  utils_default.extend(instance, context, null, { allOwnKeys: true });
15276
- instance.create = function create(instanceConfig) {
15993
+ instance.create = function create2(instanceConfig) {
15277
15994
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
15278
15995
  };
15279
15996
  return instance;
@@ -15300,7 +16017,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
15300
16017
  axios.default = axios;
15301
16018
  var axios_default = axios;
15302
16019
 
15303
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/index.js
16020
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/index.js
15304
16021
  var {
15305
16022
  Axios: Axios2,
15306
16023
  AxiosError: AxiosError2,
@@ -15317,7 +16034,8 @@ var {
15317
16034
  HttpStatusCode: HttpStatusCode2,
15318
16035
  formToJSON,
15319
16036
  getAdapter: getAdapter2,
15320
- mergeConfig: mergeConfig2
16037
+ mergeConfig: mergeConfig2,
16038
+ create
15321
16039
  } = axios_default;
15322
16040
 
15323
16041
  // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=283f0d16759aba9c68cd55bb0821c977833a401969b0ecf9492a6618e019f6c1/node_modules/pipenet/dist/Tunnel.js