@mx-space/api-client 1.13.1 → 1.13.2

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.
@@ -9,8 +9,7 @@
9
9
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
10
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
11
  }) : x)(function(x) {
12
- if (typeof require !== "undefined")
13
- return require.apply(this, arguments);
12
+ if (typeof require !== "undefined") return require.apply(this, arguments);
14
13
  throw Error('Dynamic require of "' + x + '" is not supported');
15
14
  });
16
15
  var __commonJS = (cb, mod) => function __require2() {
@@ -246,8 +245,7 @@
246
245
  if (!this.pauseStreams) {
247
246
  return;
248
247
  }
249
- if (this.pauseStreams && this._currentStream && typeof this._currentStream.pause == "function")
250
- this._currentStream.pause();
248
+ if (this.pauseStreams && this._currentStream && typeof this._currentStream.pause == "function") this._currentStream.pause();
251
249
  this.emit("pause");
252
250
  };
253
251
  CombinedStream.prototype.resume = function() {
@@ -256,8 +254,7 @@
256
254
  this.writable = true;
257
255
  this._getNext();
258
256
  }
259
- if (this.pauseStreams && this._currentStream && typeof this._currentStream.resume == "function")
260
- this._currentStream.resume();
257
+ if (this.pauseStreams && this._currentStream && typeof this._currentStream.resume == "function") this._currentStream.resume();
261
258
  this.emit("resume");
262
259
  };
263
260
  CombinedStream.prototype.end = function() {
@@ -8874,8 +8871,7 @@
8874
8871
  }
8875
8872
  if (mime.indexOf("charset") === -1) {
8876
8873
  var charset2 = exports.charset(mime);
8877
- if (charset2)
8878
- mime += "; charset=" + charset2.toLowerCase();
8874
+ if (charset2) mime += "; charset=" + charset2.toLowerCase();
8879
8875
  }
8880
8876
  return mime;
8881
8877
  }
@@ -9272,8 +9268,7 @@
9272
9268
  }
9273
9269
  var header;
9274
9270
  for (var prop in headers) {
9275
- if (!headers.hasOwnProperty(prop))
9276
- continue;
9271
+ if (!headers.hasOwnProperty(prop)) continue;
9277
9272
  header = headers[prop];
9278
9273
  if (header == null) {
9279
9274
  continue;
@@ -9660,9 +9655,9 @@
9660
9655
  }
9661
9656
  });
9662
9657
 
9663
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js
9658
+ // ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js
9664
9659
  var require_common = __commonJS({
9665
- "../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js"(exports, module) {
9660
+ "../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js"(exports, module) {
9666
9661
  "use strict";
9667
9662
  function setup(env) {
9668
9663
  createDebug.debug = createDebug;
@@ -9824,9 +9819,9 @@
9824
9819
  }
9825
9820
  });
9826
9821
 
9827
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js
9822
+ // ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js
9828
9823
  var require_browser = __commonJS({
9829
- "../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js"(exports, module) {
9824
+ "../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js"(exports, module) {
9830
9825
  "use strict";
9831
9826
  exports.formatArgs = formatArgs;
9832
9827
  exports.save = save;
@@ -10109,9 +10104,9 @@
10109
10104
  }
10110
10105
  });
10111
10106
 
10112
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js
10107
+ // ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js
10113
10108
  var require_node = __commonJS({
10114
- "../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js"(exports, module) {
10109
+ "../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js"(exports, module) {
10115
10110
  "use strict";
10116
10111
  var tty = __require("tty");
10117
10112
  var util2 = __require("util");
@@ -10252,7 +10247,7 @@
10252
10247
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
10253
10248
  }
10254
10249
  function log(...args) {
10255
- return process.stderr.write(util2.format(...args) + "\n");
10250
+ return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
10256
10251
  }
10257
10252
  function save(namespaces) {
10258
10253
  if (namespaces) {
@@ -10284,9 +10279,9 @@
10284
10279
  }
10285
10280
  });
10286
10281
 
10287
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js
10282
+ // ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/index.js
10288
10283
  var require_src = __commonJS({
10289
- "../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js"(exports, module) {
10284
+ "../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/index.js"(exports, module) {
10290
10285
  "use strict";
10291
10286
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
10292
10287
  module.exports = require_browser();
@@ -10296,9 +10291,9 @@
10296
10291
  }
10297
10292
  });
10298
10293
 
10299
- // ../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.4/node_modules/follow-redirects/debug.js
10294
+ // ../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.5/node_modules/follow-redirects/debug.js
10300
10295
  var require_debug = __commonJS({
10301
- "../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.4/node_modules/follow-redirects/debug.js"(exports, module) {
10296
+ "../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.5/node_modules/follow-redirects/debug.js"(exports, module) {
10302
10297
  "use strict";
10303
10298
  var debug;
10304
10299
  module.exports = function() {
@@ -10317,9 +10312,9 @@
10317
10312
  }
10318
10313
  });
10319
10314
 
10320
- // ../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.4/node_modules/follow-redirects/index.js
10315
+ // ../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.5/node_modules/follow-redirects/index.js
10321
10316
  var require_follow_redirects = __commonJS({
10322
- "../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.4/node_modules/follow-redirects/index.js"(exports, module) {
10317
+ "../../node_modules/.pnpm/follow-redirects@1.15.6_debug@4.3.5/node_modules/follow-redirects/index.js"(exports, module) {
10323
10318
  "use strict";
10324
10319
  var url2 = __require("url");
10325
10320
  var URL2 = url2.URL;
@@ -10804,14 +10799,14 @@
10804
10799
  }
10805
10800
  });
10806
10801
 
10807
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/bind.js
10802
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/bind.js
10808
10803
  function bind(fn, thisArg) {
10809
10804
  return function wrap() {
10810
10805
  return fn.apply(thisArg, arguments);
10811
10806
  };
10812
10807
  }
10813
10808
 
10814
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/utils.js
10809
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/utils.js
10815
10810
  var { toString } = Object.prototype;
10816
10811
  var { getPrototypeOf } = Object;
10817
10812
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
@@ -10861,6 +10856,7 @@
10861
10856
  kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
10862
10857
  };
10863
10858
  var isURLSearchParams = kindOfTest("URLSearchParams");
10859
+ var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
10864
10860
  var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
10865
10861
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
10866
10862
  if (obj === null || typeof obj === "undefined") {
@@ -10899,8 +10895,7 @@
10899
10895
  return null;
10900
10896
  }
10901
10897
  var _global = (() => {
10902
- if (typeof globalThis !== "undefined")
10903
- return globalThis;
10898
+ if (typeof globalThis !== "undefined") return globalThis;
10904
10899
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
10905
10900
  })();
10906
10901
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
@@ -10954,8 +10949,7 @@
10954
10949
  let prop;
10955
10950
  const merged = {};
10956
10951
  destObj = destObj || {};
10957
- if (sourceObj == null)
10958
- return destObj;
10952
+ if (sourceObj == null) return destObj;
10959
10953
  do {
10960
10954
  props = Object.getOwnPropertyNames(sourceObj);
10961
10955
  i = props.length;
@@ -10980,13 +10974,10 @@
10980
10974
  return lastIndex !== -1 && lastIndex === position;
10981
10975
  };
10982
10976
  var toArray = (thing) => {
10983
- if (!thing)
10984
- return null;
10985
- if (isArray(thing))
10986
- return thing;
10977
+ if (!thing) return null;
10978
+ if (isArray(thing)) return thing;
10987
10979
  let i = thing.length;
10988
- if (!isNumber(i))
10989
- return null;
10980
+ if (!isNumber(i)) return null;
10990
10981
  const arr = new Array(i);
10991
10982
  while (i-- > 0) {
10992
10983
  arr[i] = thing[i];
@@ -11043,8 +11034,7 @@
11043
11034
  return false;
11044
11035
  }
11045
11036
  const value = obj[name];
11046
- if (!isFunction(value))
11047
- return;
11037
+ if (!isFunction(value)) return;
11048
11038
  descriptor.enumerable = false;
11049
11039
  if ("writable" in descriptor) {
11050
11040
  descriptor.writable = false;
@@ -11070,8 +11060,7 @@
11070
11060
  var noop = () => {
11071
11061
  };
11072
11062
  var toFiniteNumber = (value, defaultValue) => {
11073
- value = +value;
11074
- return Number.isFinite(value) ? value : defaultValue;
11063
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
11075
11064
  };
11076
11065
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
11077
11066
  var DIGIT = "0123456789";
@@ -11115,6 +11104,26 @@
11115
11104
  };
11116
11105
  var isAsyncFn = kindOfTest("AsyncFunction");
11117
11106
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
11107
+ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
11108
+ if (setImmediateSupported) {
11109
+ return setImmediate;
11110
+ }
11111
+ return postMessageSupported ? ((token, callbacks) => {
11112
+ _global.addEventListener("message", ({ source, data }) => {
11113
+ if (source === _global && data === token) {
11114
+ callbacks.length && callbacks.shift()();
11115
+ }
11116
+ }, false);
11117
+ return (cb) => {
11118
+ callbacks.push(cb);
11119
+ _global.postMessage(token, "*");
11120
+ };
11121
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
11122
+ })(
11123
+ typeof setImmediate === "function",
11124
+ isFunction(_global.postMessage)
11125
+ );
11126
+ var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
11118
11127
  var utils_default = {
11119
11128
  isArray,
11120
11129
  isArrayBuffer,
@@ -11126,6 +11135,10 @@
11126
11135
  isBoolean,
11127
11136
  isObject,
11128
11137
  isPlainObject,
11138
+ isReadableStream,
11139
+ isRequest,
11140
+ isResponse,
11141
+ isHeaders,
11129
11142
  isUndefined,
11130
11143
  isDate,
11131
11144
  isFile,
@@ -11167,10 +11180,12 @@
11167
11180
  isSpecCompliantForm,
11168
11181
  toJSONObject,
11169
11182
  isAsyncFn,
11170
- isThenable
11183
+ isThenable,
11184
+ setImmediate: _setImmediate,
11185
+ asap
11171
11186
  };
11172
11187
 
11173
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/AxiosError.js
11188
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/AxiosError.js
11174
11189
  function AxiosError(message, code, config, request, response) {
11175
11190
  Error.call(this);
11176
11191
  if (Error.captureStackTrace) {
@@ -11242,11 +11257,11 @@
11242
11257
  };
11243
11258
  var AxiosError_default = AxiosError;
11244
11259
 
11245
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/node/classes/FormData.js
11260
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/node/classes/FormData.js
11246
11261
  var import_form_data = __toESM(require_form_data(), 1);
11247
11262
  var FormData_default = import_form_data.default;
11248
11263
 
11249
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/toFormData.js
11264
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/toFormData.js
11250
11265
  function isVisitable(thing) {
11251
11266
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
11252
11267
  }
@@ -11254,8 +11269,7 @@
11254
11269
  return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
11255
11270
  }
11256
11271
  function renderKey(path, key, dots) {
11257
- if (!path)
11258
- return key;
11272
+ if (!path) return key;
11259
11273
  return path.concat(key).map(function each(token, i) {
11260
11274
  token = removeBrackets(token);
11261
11275
  return !dots && i ? "[" + token + "]" : token;
@@ -11289,8 +11303,7 @@
11289
11303
  throw new TypeError("visitor must be a function");
11290
11304
  }
11291
11305
  function convertValue(value) {
11292
- if (value === null)
11293
- return "";
11306
+ if (value === null) return "";
11294
11307
  if (utils_default.isDate(value)) {
11295
11308
  return value.toISOString();
11296
11309
  }
@@ -11333,8 +11346,7 @@
11333
11346
  isVisitable
11334
11347
  });
11335
11348
  function build(value, path) {
11336
- if (utils_default.isUndefined(value))
11337
- return;
11349
+ if (utils_default.isUndefined(value)) return;
11338
11350
  if (stack.indexOf(value) !== -1) {
11339
11351
  throw Error("Circular reference detected in " + path.join("."));
11340
11352
  }
@@ -11361,7 +11373,7 @@
11361
11373
  }
11362
11374
  var toFormData_default = toFormData;
11363
11375
 
11364
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
11376
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
11365
11377
  function encode(str) {
11366
11378
  const charMap = {
11367
11379
  "!": "%21",
@@ -11394,7 +11406,7 @@
11394
11406
  };
11395
11407
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
11396
11408
 
11397
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/buildURL.js
11409
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/buildURL.js
11398
11410
  function encode2(val) {
11399
11411
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
11400
11412
  }
@@ -11420,7 +11432,7 @@
11420
11432
  return url2;
11421
11433
  }
11422
11434
 
11423
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/InterceptorManager.js
11435
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/InterceptorManager.js
11424
11436
  var InterceptorManager = class {
11425
11437
  constructor() {
11426
11438
  this.handlers = [];
@@ -11484,18 +11496,18 @@
11484
11496
  };
11485
11497
  var InterceptorManager_default = InterceptorManager;
11486
11498
 
11487
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/defaults/transitional.js
11499
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/defaults/transitional.js
11488
11500
  var transitional_default = {
11489
11501
  silentJSONParsing: true,
11490
11502
  forcedJSONParsing: true,
11491
11503
  clarifyTimeoutError: false
11492
11504
  };
11493
11505
 
11494
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
11506
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
11495
11507
  var import_url = __toESM(__require("url"), 1);
11496
11508
  var URLSearchParams_default = import_url.default.URLSearchParams;
11497
11509
 
11498
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/node/index.js
11510
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/node/index.js
11499
11511
  var node_default = {
11500
11512
  isNode: true,
11501
11513
  classes: {
@@ -11506,12 +11518,13 @@
11506
11518
  protocols: ["http", "https", "file", "data"]
11507
11519
  };
11508
11520
 
11509
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/common/utils.js
11521
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/common/utils.js
11510
11522
  var utils_exports = {};
11511
11523
  __export(utils_exports, {
11512
11524
  hasBrowserEnv: () => hasBrowserEnv,
11513
11525
  hasStandardBrowserEnv: () => hasStandardBrowserEnv,
11514
- hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
11526
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
11527
+ origin: () => origin
11515
11528
  });
11516
11529
  var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
11517
11530
  var hasStandardBrowserEnv = ((product) => {
@@ -11521,14 +11534,15 @@
11521
11534
  return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
11522
11535
  self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
11523
11536
  })();
11537
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
11524
11538
 
11525
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/index.js
11539
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/index.js
11526
11540
  var platform_default = {
11527
11541
  ...utils_exports,
11528
11542
  ...node_default
11529
11543
  };
11530
11544
 
11531
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/toURLEncodedForm.js
11545
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/toURLEncodedForm.js
11532
11546
  function toURLEncodedForm(data, options) {
11533
11547
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
11534
11548
  visitor: function(value, key, path, helpers) {
@@ -11541,7 +11555,7 @@
11541
11555
  }, options));
11542
11556
  }
11543
11557
 
11544
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/formDataToJSON.js
11558
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/formDataToJSON.js
11545
11559
  function parsePropPath(name) {
11546
11560
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
11547
11561
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -11562,8 +11576,7 @@
11562
11576
  function formDataToJSON(formData) {
11563
11577
  function buildPath(path, value, target, index) {
11564
11578
  let name = path[index++];
11565
- if (name === "__proto__")
11566
- return true;
11579
+ if (name === "__proto__") return true;
11567
11580
  const isNumericKey = Number.isFinite(+name);
11568
11581
  const isLast = index >= path.length;
11569
11582
  name = !name && utils_default.isArray(target) ? target.length : name;
@@ -11595,7 +11608,7 @@
11595
11608
  }
11596
11609
  var formDataToJSON_default = formDataToJSON;
11597
11610
 
11598
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/defaults/index.js
11611
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/defaults/index.js
11599
11612
  function stringifySafely(rawValue, parser, encoder) {
11600
11613
  if (utils_default.isString(rawValue)) {
11601
11614
  try {
@@ -11611,7 +11624,7 @@
11611
11624
  }
11612
11625
  var defaults = {
11613
11626
  transitional: transitional_default,
11614
- adapter: ["xhr", "http"],
11627
+ adapter: ["xhr", "http", "fetch"],
11615
11628
  transformRequest: [function transformRequest(data, headers) {
11616
11629
  const contentType = headers.getContentType() || "";
11617
11630
  const hasJSONContentType = contentType.indexOf("application/json") > -1;
@@ -11623,7 +11636,7 @@
11623
11636
  if (isFormData2) {
11624
11637
  return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
11625
11638
  }
11626
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
11639
+ 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)) {
11627
11640
  return data;
11628
11641
  }
11629
11642
  if (utils_default.isArrayBufferView(data)) {
@@ -11657,6 +11670,9 @@
11657
11670
  const transitional2 = this.transitional || defaults.transitional;
11658
11671
  const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
11659
11672
  const JSONRequested = this.responseType === "json";
11673
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
11674
+ return data;
11675
+ }
11660
11676
  if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
11661
11677
  const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
11662
11678
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
@@ -11701,7 +11717,7 @@
11701
11717
  });
11702
11718
  var defaults_default = defaults;
11703
11719
 
11704
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/parseHeaders.js
11720
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/parseHeaders.js
11705
11721
  var ignoreDuplicateOf = utils_default.toObjectSet([
11706
11722
  "age",
11707
11723
  "authorization",
@@ -11746,7 +11762,7 @@
11746
11762
  return parsed;
11747
11763
  };
11748
11764
 
11749
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/AxiosHeaders.js
11765
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/AxiosHeaders.js
11750
11766
  var $internals = Symbol("internals");
11751
11767
  function normalizeHeader(header) {
11752
11768
  return header && String(header).trim().toLowerCase();
@@ -11774,8 +11790,7 @@
11774
11790
  if (isHeaderNameFilter) {
11775
11791
  value = header;
11776
11792
  }
11777
- if (!utils_default.isString(value))
11778
- return;
11793
+ if (!utils_default.isString(value)) return;
11779
11794
  if (utils_default.isString(filter2)) {
11780
11795
  return value.indexOf(filter2) !== -1;
11781
11796
  }
@@ -11820,6 +11835,10 @@
11820
11835
  setHeaders(header, valueOrRewrite);
11821
11836
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
11822
11837
  setHeaders(parseHeaders_default(header), valueOrRewrite);
11838
+ } else if (utils_default.isHeaders(header)) {
11839
+ for (const [key, value] of header.entries()) {
11840
+ setHeader(value, key, rewrite);
11841
+ }
11823
11842
  } else {
11824
11843
  header != null && setHeader(valueOrRewrite, header, rewrite);
11825
11844
  }
@@ -11964,7 +11983,7 @@
11964
11983
  utils_default.freezeMethods(AxiosHeaders);
11965
11984
  var AxiosHeaders_default = AxiosHeaders;
11966
11985
 
11967
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/transformData.js
11986
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/transformData.js
11968
11987
  function transformData(fns, response) {
11969
11988
  const config = this || defaults_default;
11970
11989
  const context = response || config;
@@ -11977,12 +11996,12 @@
11977
11996
  return data;
11978
11997
  }
11979
11998
 
11980
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/cancel/isCancel.js
11999
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/cancel/isCancel.js
11981
12000
  function isCancel(value) {
11982
12001
  return !!(value && value.__CANCEL__);
11983
12002
  }
11984
12003
 
11985
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/cancel/CanceledError.js
12004
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/cancel/CanceledError.js
11986
12005
  function CanceledError(message, config, request) {
11987
12006
  AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
11988
12007
  this.name = "CanceledError";
@@ -11992,7 +12011,7 @@
11992
12011
  });
11993
12012
  var CanceledError_default = CanceledError;
11994
12013
 
11995
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/settle.js
12014
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/settle.js
11996
12015
  function settle(resolve, reject, response) {
11997
12016
  const validateStatus2 = response.config.validateStatus;
11998
12017
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -12008,17 +12027,17 @@
12008
12027
  }
12009
12028
  }
12010
12029
 
12011
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/isAbsoluteURL.js
12030
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/isAbsoluteURL.js
12012
12031
  function isAbsoluteURL(url2) {
12013
12032
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
12014
12033
  }
12015
12034
 
12016
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/combineURLs.js
12035
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/combineURLs.js
12017
12036
  function combineURLs(baseURL, relativeURL) {
12018
12037
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
12019
12038
  }
12020
12039
 
12021
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/buildFullPath.js
12040
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/buildFullPath.js
12022
12041
  function buildFullPath(baseURL, requestedURL) {
12023
12042
  if (baseURL && !isAbsoluteURL(requestedURL)) {
12024
12043
  return combineURLs(baseURL, requestedURL);
@@ -12026,7 +12045,7 @@
12026
12045
  return requestedURL;
12027
12046
  }
12028
12047
 
12029
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/http.js
12048
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/http.js
12030
12049
  var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
12031
12050
  var import_http = __toESM(__require("http"), 1);
12032
12051
  var import_https = __toESM(__require("https"), 1);
@@ -12034,16 +12053,16 @@
12034
12053
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
12035
12054
  var import_zlib = __toESM(__require("zlib"), 1);
12036
12055
 
12037
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/env/data.js
12038
- var VERSION = "1.6.8";
12056
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/env/data.js
12057
+ var VERSION = "1.7.4";
12039
12058
 
12040
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/parseProtocol.js
12059
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/parseProtocol.js
12041
12060
  function parseProtocol(url2) {
12042
12061
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
12043
12062
  return match && match[1] || "";
12044
12063
  }
12045
12064
 
12046
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/fromDataURI.js
12065
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/fromDataURI.js
12047
12066
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
12048
12067
  function fromDataURI(uri, asBlob, options) {
12049
12068
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -12072,75 +12091,11 @@
12072
12091
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
12073
12092
  }
12074
12093
 
12075
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/http.js
12094
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/http.js
12076
12095
  var import_stream4 = __toESM(__require("stream"), 1);
12077
12096
 
12078
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/AxiosTransformStream.js
12097
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/AxiosTransformStream.js
12079
12098
  var import_stream = __toESM(__require("stream"), 1);
12080
-
12081
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/throttle.js
12082
- function throttle(fn, freq) {
12083
- let timestamp = 0;
12084
- const threshold = 1e3 / freq;
12085
- let timer = null;
12086
- return function throttled(force, args) {
12087
- const now = Date.now();
12088
- if (force || now - timestamp > threshold) {
12089
- if (timer) {
12090
- clearTimeout(timer);
12091
- timer = null;
12092
- }
12093
- timestamp = now;
12094
- return fn.apply(null, args);
12095
- }
12096
- if (!timer) {
12097
- timer = setTimeout(() => {
12098
- timer = null;
12099
- timestamp = Date.now();
12100
- return fn.apply(null, args);
12101
- }, threshold - (now - timestamp));
12102
- }
12103
- };
12104
- }
12105
- var throttle_default = throttle;
12106
-
12107
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/speedometer.js
12108
- function speedometer(samplesCount, min) {
12109
- samplesCount = samplesCount || 10;
12110
- const bytes = new Array(samplesCount);
12111
- const timestamps = new Array(samplesCount);
12112
- let head = 0;
12113
- let tail = 0;
12114
- let firstSampleTS;
12115
- min = min !== void 0 ? min : 1e3;
12116
- return function push(chunkLength) {
12117
- const now = Date.now();
12118
- const startedAt = timestamps[tail];
12119
- if (!firstSampleTS) {
12120
- firstSampleTS = now;
12121
- }
12122
- bytes[head] = chunkLength;
12123
- timestamps[head] = now;
12124
- let i = tail;
12125
- let bytesCount = 0;
12126
- while (i !== head) {
12127
- bytesCount += bytes[i++];
12128
- i = i % samplesCount;
12129
- }
12130
- head = (head + 1) % samplesCount;
12131
- if (head === tail) {
12132
- tail = (tail + 1) % samplesCount;
12133
- }
12134
- if (now - firstSampleTS < min) {
12135
- return;
12136
- }
12137
- const passed = startedAt && now - startedAt;
12138
- return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
12139
- };
12140
- }
12141
- var speedometer_default = speedometer;
12142
-
12143
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/AxiosTransformStream.js
12144
12099
  var kInternals = Symbol("internals");
12145
12100
  var AxiosTransformStream = class extends import_stream.default.Transform {
12146
12101
  constructor(options) {
@@ -12157,11 +12112,8 @@
12157
12112
  super({
12158
12113
  readableHighWaterMark: options.chunkSize
12159
12114
  });
12160
- const self2 = this;
12161
12115
  const internals = this[kInternals] = {
12162
- length: options.length,
12163
12116
  timeWindow: options.timeWindow,
12164
- ticksRate: options.ticksRate,
12165
12117
  chunkSize: options.chunkSize,
12166
12118
  maxRate: options.maxRate,
12167
12119
  minChunkSize: options.minChunkSize,
@@ -12172,7 +12124,6 @@
12172
12124
  bytes: 0,
12173
12125
  onReadCallback: null
12174
12126
  };
12175
- const _speedometer = speedometer_default(internals.ticksRate * options.samplesCount, internals.timeWindow);
12176
12127
  this.on("newListener", (event) => {
12177
12128
  if (event === "progress") {
12178
12129
  if (!internals.isCaptured) {
@@ -12180,31 +12131,6 @@
12180
12131
  }
12181
12132
  }
12182
12133
  });
12183
- let bytesNotified = 0;
12184
- internals.updateProgress = throttle_default(function throttledHandler() {
12185
- const totalBytes = internals.length;
12186
- const bytesTransferred = internals.bytesSeen;
12187
- const progressBytes = bytesTransferred - bytesNotified;
12188
- if (!progressBytes || self2.destroyed)
12189
- return;
12190
- const rate = _speedometer(progressBytes);
12191
- bytesNotified = bytesTransferred;
12192
- process.nextTick(() => {
12193
- self2.emit("progress", {
12194
- "loaded": bytesTransferred,
12195
- "total": totalBytes,
12196
- "progress": totalBytes ? bytesTransferred / totalBytes : void 0,
12197
- "bytes": progressBytes,
12198
- "rate": rate ? rate : void 0,
12199
- "estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
12200
- });
12201
- });
12202
- }, internals.ticksRate);
12203
- const onFinish = () => {
12204
- internals.updateProgress(true);
12205
- };
12206
- this.once("end", onFinish);
12207
- this.once("error", onFinish);
12208
12134
  }
12209
12135
  _read(size) {
12210
12136
  const internals = this[kInternals];
@@ -12214,7 +12140,6 @@
12214
12140
  return super._read(size);
12215
12141
  }
12216
12142
  _transform(chunk, encoding, callback) {
12217
- const self2 = this;
12218
12143
  const internals = this[kInternals];
12219
12144
  const maxRate = internals.maxRate;
12220
12145
  const readableHighWaterMark = this.readableHighWaterMark;
@@ -12222,14 +12147,12 @@
12222
12147
  const divider = 1e3 / timeWindow;
12223
12148
  const bytesThreshold = maxRate / divider;
12224
12149
  const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
12225
- function pushChunk(_chunk, _callback) {
12150
+ const pushChunk = (_chunk, _callback) => {
12226
12151
  const bytes = Buffer.byteLength(_chunk);
12227
12152
  internals.bytesSeen += bytes;
12228
12153
  internals.bytes += bytes;
12229
- if (internals.isCaptured) {
12230
- internals.updateProgress();
12231
- }
12232
- if (self2.push(_chunk)) {
12154
+ internals.isCaptured && this.emit("progress", internals.bytesSeen);
12155
+ if (this.push(_chunk)) {
12233
12156
  process.nextTick(_callback);
12234
12157
  } else {
12235
12158
  internals.onReadCallback = () => {
@@ -12237,7 +12160,7 @@
12237
12160
  process.nextTick(_callback);
12238
12161
  };
12239
12162
  }
12240
- }
12163
+ };
12241
12164
  const transformChunk = (_chunk, _callback) => {
12242
12165
  const chunkSize = Buffer.byteLength(_chunk);
12243
12166
  let chunkRemainder = null;
@@ -12283,21 +12206,17 @@
12283
12206
  }
12284
12207
  });
12285
12208
  }
12286
- setLength(length) {
12287
- this[kInternals].length = +length;
12288
- return this;
12289
- }
12290
12209
  };
12291
12210
  var AxiosTransformStream_default = AxiosTransformStream;
12292
12211
 
12293
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/http.js
12212
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/http.js
12294
12213
  var import_events = __require("events");
12295
12214
 
12296
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/formDataToStream.js
12215
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/formDataToStream.js
12297
12216
  var import_util = __require("util");
12298
12217
  var import_stream2 = __require("stream");
12299
12218
 
12300
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/readBlob.js
12219
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/readBlob.js
12301
12220
  var { asyncIterator } = Symbol;
12302
12221
  var readBlob = async function* (blob) {
12303
12222
  if (blob.stream) {
@@ -12312,7 +12231,7 @@
12312
12231
  };
12313
12232
  var readBlob_default = readBlob;
12314
12233
 
12315
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/formDataToStream.js
12234
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/formDataToStream.js
12316
12235
  var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
12317
12236
  var textEncoder = new import_util.TextEncoder();
12318
12237
  var CRLF = "\r\n";
@@ -12391,7 +12310,7 @@
12391
12310
  };
12392
12311
  var formDataToStream_default = formDataToStream;
12393
12312
 
12394
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
12313
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
12395
12314
  var import_stream3 = __toESM(__require("stream"), 1);
12396
12315
  var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
12397
12316
  __transform(chunk, encoding, callback) {
@@ -12413,7 +12332,7 @@
12413
12332
  };
12414
12333
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
12415
12334
 
12416
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/callbackify.js
12335
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/callbackify.js
12417
12336
  var callbackify = (fn, reducer) => {
12418
12337
  return utils_default.isAsyncFn(fn) ? function(...args) {
12419
12338
  const cb = args.pop();
@@ -12428,7 +12347,113 @@
12428
12347
  };
12429
12348
  var callbackify_default = callbackify;
12430
12349
 
12431
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/http.js
12350
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/speedometer.js
12351
+ function speedometer(samplesCount, min) {
12352
+ samplesCount = samplesCount || 10;
12353
+ const bytes = new Array(samplesCount);
12354
+ const timestamps = new Array(samplesCount);
12355
+ let head = 0;
12356
+ let tail = 0;
12357
+ let firstSampleTS;
12358
+ min = min !== void 0 ? min : 1e3;
12359
+ return function push(chunkLength) {
12360
+ const now = Date.now();
12361
+ const startedAt = timestamps[tail];
12362
+ if (!firstSampleTS) {
12363
+ firstSampleTS = now;
12364
+ }
12365
+ bytes[head] = chunkLength;
12366
+ timestamps[head] = now;
12367
+ let i = tail;
12368
+ let bytesCount = 0;
12369
+ while (i !== head) {
12370
+ bytesCount += bytes[i++];
12371
+ i = i % samplesCount;
12372
+ }
12373
+ head = (head + 1) % samplesCount;
12374
+ if (head === tail) {
12375
+ tail = (tail + 1) % samplesCount;
12376
+ }
12377
+ if (now - firstSampleTS < min) {
12378
+ return;
12379
+ }
12380
+ const passed = startedAt && now - startedAt;
12381
+ return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
12382
+ };
12383
+ }
12384
+ var speedometer_default = speedometer;
12385
+
12386
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/throttle.js
12387
+ function throttle(fn, freq) {
12388
+ let timestamp = 0;
12389
+ let threshold = 1e3 / freq;
12390
+ let lastArgs;
12391
+ let timer;
12392
+ const invoke = (args, now = Date.now()) => {
12393
+ timestamp = now;
12394
+ lastArgs = null;
12395
+ if (timer) {
12396
+ clearTimeout(timer);
12397
+ timer = null;
12398
+ }
12399
+ fn.apply(null, args);
12400
+ };
12401
+ const throttled = (...args) => {
12402
+ const now = Date.now();
12403
+ const passed = now - timestamp;
12404
+ if (passed >= threshold) {
12405
+ invoke(args, now);
12406
+ } else {
12407
+ lastArgs = args;
12408
+ if (!timer) {
12409
+ timer = setTimeout(() => {
12410
+ timer = null;
12411
+ invoke(lastArgs);
12412
+ }, threshold - passed);
12413
+ }
12414
+ }
12415
+ };
12416
+ const flush = () => lastArgs && invoke(lastArgs);
12417
+ return [throttled, flush];
12418
+ }
12419
+ var throttle_default = throttle;
12420
+
12421
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/progressEventReducer.js
12422
+ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
12423
+ let bytesNotified = 0;
12424
+ const _speedometer = speedometer_default(50, 250);
12425
+ return throttle_default((e) => {
12426
+ const loaded = e.loaded;
12427
+ const total = e.lengthComputable ? e.total : void 0;
12428
+ const progressBytes = loaded - bytesNotified;
12429
+ const rate = _speedometer(progressBytes);
12430
+ const inRange = loaded <= total;
12431
+ bytesNotified = loaded;
12432
+ const data = {
12433
+ loaded,
12434
+ total,
12435
+ progress: total ? loaded / total : void 0,
12436
+ bytes: progressBytes,
12437
+ rate: rate ? rate : void 0,
12438
+ estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
12439
+ event: e,
12440
+ lengthComputable: total != null,
12441
+ [isDownloadStream ? "download" : "upload"]: true
12442
+ };
12443
+ listener(data);
12444
+ }, freq);
12445
+ };
12446
+ var progressEventDecorator = (total, throttled) => {
12447
+ const lengthComputable = total != null;
12448
+ return [(loaded) => throttled[0]({
12449
+ lengthComputable,
12450
+ total,
12451
+ loaded
12452
+ }), throttled[1]];
12453
+ };
12454
+ var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
12455
+
12456
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/http.js
12432
12457
  var zlibOptions = {
12433
12458
  flush: import_zlib.default.constants.Z_SYNC_FLUSH,
12434
12459
  finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
@@ -12443,6 +12468,10 @@
12443
12468
  var supportedProtocols = platform_default.protocols.map((protocol) => {
12444
12469
  return protocol + ":";
12445
12470
  });
12471
+ var flushOnFinish = (stream4, [throttled, flush]) => {
12472
+ stream4.on("end", flush).on("error", flush);
12473
+ return throttled;
12474
+ };
12446
12475
  function dispatchBeforeRedirect(options, responseDetails) {
12447
12476
  if (options.beforeRedirects.proxy) {
12448
12477
  options.beforeRedirects.proxy(options);
@@ -12490,8 +12519,7 @@
12490
12519
  let onDone;
12491
12520
  let isDone;
12492
12521
  const done = (value, isRejected) => {
12493
- if (isDone)
12494
- return;
12522
+ if (isDone) return;
12495
12523
  isDone = true;
12496
12524
  onDone && onDone(value, isRejected);
12497
12525
  };
@@ -12564,7 +12592,7 @@
12564
12592
  }
12565
12593
  }
12566
12594
  const fullPath = buildFullPath(config.baseURL, config.url);
12567
- const parsed = new URL(fullPath, "http://localhost");
12595
+ const parsed = new URL(fullPath, utils_default.hasBrowserEnv ? platform_default.origin : void 0);
12568
12596
  const protocol = parsed.protocol || supportedProtocols[0];
12569
12597
  if (protocol === "data:") {
12570
12598
  let convertedData;
@@ -12608,8 +12636,7 @@
12608
12636
  }
12609
12637
  const headers = AxiosHeaders_default.from(config.headers).normalize();
12610
12638
  headers.set("User-Agent", "axios/" + VERSION, false);
12611
- const onDownloadProgress = config.onDownloadProgress;
12612
- const onUploadProgress = config.onUploadProgress;
12639
+ const { onUploadProgress, onDownloadProgress } = config;
12613
12640
  const maxRate = config.maxRate;
12614
12641
  let maxUploadRate = void 0;
12615
12642
  let maxDownloadRate = void 0;
@@ -12668,14 +12695,15 @@
12668
12695
  data = import_stream4.default.Readable.from(data, { objectMode: false });
12669
12696
  }
12670
12697
  data = import_stream4.default.pipeline([data, new AxiosTransformStream_default({
12671
- length: contentLength,
12672
12698
  maxRate: utils_default.toFiniteNumber(maxUploadRate)
12673
12699
  })], utils_default.noop);
12674
- onUploadProgress && data.on("progress", (progress) => {
12675
- onUploadProgress(Object.assign(progress, {
12676
- upload: true
12677
- }));
12678
- });
12700
+ onUploadProgress && data.on("progress", flushOnFinish(
12701
+ data,
12702
+ progressEventDecorator(
12703
+ contentLength,
12704
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
12705
+ )
12706
+ ));
12679
12707
  }
12680
12708
  let auth = void 0;
12681
12709
  if (config.auth) {
@@ -12752,20 +12780,20 @@
12752
12780
  options.insecureHTTPParser = config.insecureHTTPParser;
12753
12781
  }
12754
12782
  req = transport.request(options, function handleResponse(res) {
12755
- if (req.destroyed)
12756
- return;
12783
+ if (req.destroyed) return;
12757
12784
  const streams = [res];
12758
12785
  const responseLength = +res.headers["content-length"];
12759
- if (onDownloadProgress) {
12786
+ if (onDownloadProgress || maxDownloadRate) {
12760
12787
  const transformStream = new AxiosTransformStream_default({
12761
- length: utils_default.toFiniteNumber(responseLength),
12762
12788
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
12763
12789
  });
12764
- onDownloadProgress && transformStream.on("progress", (progress) => {
12765
- onDownloadProgress(Object.assign(progress, {
12766
- download: true
12767
- }));
12768
- });
12790
+ onDownloadProgress && transformStream.on("progress", flushOnFinish(
12791
+ transformStream,
12792
+ progressEventDecorator(
12793
+ responseLength,
12794
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
12795
+ )
12796
+ ));
12769
12797
  streams.push(transformStream);
12770
12798
  }
12771
12799
  let responseStream = res;
@@ -12840,8 +12868,7 @@
12840
12868
  reject(err);
12841
12869
  });
12842
12870
  responseStream.on("error", function handleStreamError(err) {
12843
- if (req.destroyed)
12844
- return;
12871
+ if (req.destroyed) return;
12845
12872
  reject(AxiosError_default.from(err, null, config, lastRequest));
12846
12873
  });
12847
12874
  responseStream.on("end", function handleStreamEnd() {
@@ -12889,8 +12916,7 @@
12889
12916
  return;
12890
12917
  }
12891
12918
  req.setTimeout(timeout, function handleRequestTimeout() {
12892
- if (isDone)
12893
- return;
12919
+ if (isDone) return;
12894
12920
  let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
12895
12921
  const transitional2 = config.transitional || transitional_default;
12896
12922
  if (config.timeoutErrorMessage) {
@@ -12927,40 +12953,7 @@
12927
12953
  });
12928
12954
  };
12929
12955
 
12930
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/cookies.js
12931
- var cookies_default = platform_default.hasStandardBrowserEnv ? (
12932
- // Standard browser envs support document.cookie
12933
- {
12934
- write(name, value, expires, path, domain, secure) {
12935
- const cookie = [name + "=" + encodeURIComponent(value)];
12936
- utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
12937
- utils_default.isString(path) && cookie.push("path=" + path);
12938
- utils_default.isString(domain) && cookie.push("domain=" + domain);
12939
- secure === true && cookie.push("secure");
12940
- document.cookie = cookie.join("; ");
12941
- },
12942
- read(name) {
12943
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
12944
- return match ? decodeURIComponent(match[3]) : null;
12945
- },
12946
- remove(name) {
12947
- this.write(name, "", Date.now() - 864e5);
12948
- }
12949
- }
12950
- ) : (
12951
- // Non-standard browser env (web workers, react-native) lack needed support.
12952
- {
12953
- write() {
12954
- },
12955
- read() {
12956
- return null;
12957
- },
12958
- remove() {
12959
- }
12960
- }
12961
- );
12962
-
12963
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/isURLSameOrigin.js
12956
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/isURLSameOrigin.js
12964
12957
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
12965
12958
  // Standard browser envs have full support of the APIs needed to test
12966
12959
  // whether the request URL is of the same origin as current location.
@@ -13001,63 +12994,172 @@
13001
12994
  }()
13002
12995
  );
13003
12996
 
13004
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/xhr.js
13005
- function progressEventReducer(listener, isDownloadStream) {
13006
- let bytesNotified = 0;
13007
- const _speedometer = speedometer_default(50, 250);
13008
- return (e) => {
13009
- const loaded = e.loaded;
13010
- const total = e.lengthComputable ? e.total : void 0;
13011
- const progressBytes = loaded - bytesNotified;
13012
- const rate = _speedometer(progressBytes);
13013
- const inRange = loaded <= total;
13014
- bytesNotified = loaded;
13015
- const data = {
13016
- loaded,
13017
- total,
13018
- progress: total ? loaded / total : void 0,
13019
- bytes: progressBytes,
13020
- rate: rate ? rate : void 0,
13021
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
13022
- event: e
13023
- };
13024
- data[isDownloadStream ? "download" : "upload"] = true;
13025
- listener(data);
12997
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/cookies.js
12998
+ var cookies_default = platform_default.hasStandardBrowserEnv ? (
12999
+ // Standard browser envs support document.cookie
13000
+ {
13001
+ write(name, value, expires, path, domain, secure) {
13002
+ const cookie = [name + "=" + encodeURIComponent(value)];
13003
+ utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
13004
+ utils_default.isString(path) && cookie.push("path=" + path);
13005
+ utils_default.isString(domain) && cookie.push("domain=" + domain);
13006
+ secure === true && cookie.push("secure");
13007
+ document.cookie = cookie.join("; ");
13008
+ },
13009
+ read(name) {
13010
+ const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
13011
+ return match ? decodeURIComponent(match[3]) : null;
13012
+ },
13013
+ remove(name) {
13014
+ this.write(name, "", Date.now() - 864e5);
13015
+ }
13016
+ }
13017
+ ) : (
13018
+ // Non-standard browser env (web workers, react-native) lack needed support.
13019
+ {
13020
+ write() {
13021
+ },
13022
+ read() {
13023
+ return null;
13024
+ },
13025
+ remove() {
13026
+ }
13027
+ }
13028
+ );
13029
+
13030
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/mergeConfig.js
13031
+ var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
13032
+ function mergeConfig(config1, config2) {
13033
+ config2 = config2 || {};
13034
+ const config = {};
13035
+ function getMergedValue(target, source, caseless) {
13036
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
13037
+ return utils_default.merge.call({ caseless }, target, source);
13038
+ } else if (utils_default.isPlainObject(source)) {
13039
+ return utils_default.merge({}, source);
13040
+ } else if (utils_default.isArray(source)) {
13041
+ return source.slice();
13042
+ }
13043
+ return source;
13044
+ }
13045
+ function mergeDeepProperties(a, b, caseless) {
13046
+ if (!utils_default.isUndefined(b)) {
13047
+ return getMergedValue(a, b, caseless);
13048
+ } else if (!utils_default.isUndefined(a)) {
13049
+ return getMergedValue(void 0, a, caseless);
13050
+ }
13051
+ }
13052
+ function valueFromConfig2(a, b) {
13053
+ if (!utils_default.isUndefined(b)) {
13054
+ return getMergedValue(void 0, b);
13055
+ }
13056
+ }
13057
+ function defaultToConfig2(a, b) {
13058
+ if (!utils_default.isUndefined(b)) {
13059
+ return getMergedValue(void 0, b);
13060
+ } else if (!utils_default.isUndefined(a)) {
13061
+ return getMergedValue(void 0, a);
13062
+ }
13063
+ }
13064
+ function mergeDirectKeys(a, b, prop) {
13065
+ if (prop in config2) {
13066
+ return getMergedValue(a, b);
13067
+ } else if (prop in config1) {
13068
+ return getMergedValue(void 0, a);
13069
+ }
13070
+ }
13071
+ const mergeMap = {
13072
+ url: valueFromConfig2,
13073
+ method: valueFromConfig2,
13074
+ data: valueFromConfig2,
13075
+ baseURL: defaultToConfig2,
13076
+ transformRequest: defaultToConfig2,
13077
+ transformResponse: defaultToConfig2,
13078
+ paramsSerializer: defaultToConfig2,
13079
+ timeout: defaultToConfig2,
13080
+ timeoutMessage: defaultToConfig2,
13081
+ withCredentials: defaultToConfig2,
13082
+ withXSRFToken: defaultToConfig2,
13083
+ adapter: defaultToConfig2,
13084
+ responseType: defaultToConfig2,
13085
+ xsrfCookieName: defaultToConfig2,
13086
+ xsrfHeaderName: defaultToConfig2,
13087
+ onUploadProgress: defaultToConfig2,
13088
+ onDownloadProgress: defaultToConfig2,
13089
+ decompress: defaultToConfig2,
13090
+ maxContentLength: defaultToConfig2,
13091
+ maxBodyLength: defaultToConfig2,
13092
+ beforeRedirect: defaultToConfig2,
13093
+ transport: defaultToConfig2,
13094
+ httpAgent: defaultToConfig2,
13095
+ httpsAgent: defaultToConfig2,
13096
+ cancelToken: defaultToConfig2,
13097
+ socketPath: defaultToConfig2,
13098
+ responseEncoding: defaultToConfig2,
13099
+ validateStatus: mergeDirectKeys,
13100
+ headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
13026
13101
  };
13102
+ utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
13103
+ const merge2 = mergeMap[prop] || mergeDeepProperties;
13104
+ const configValue = merge2(config1[prop], config2[prop], prop);
13105
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
13106
+ });
13107
+ return config;
13027
13108
  }
13109
+
13110
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/resolveConfig.js
13111
+ var resolveConfig_default = (config) => {
13112
+ const newConfig = mergeConfig({}, config);
13113
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
13114
+ newConfig.headers = headers = AxiosHeaders_default.from(headers);
13115
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
13116
+ if (auth) {
13117
+ headers.set(
13118
+ "Authorization",
13119
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
13120
+ );
13121
+ }
13122
+ let contentType;
13123
+ if (utils_default.isFormData(data)) {
13124
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
13125
+ headers.setContentType(void 0);
13126
+ } else if ((contentType = headers.getContentType()) !== false) {
13127
+ const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
13128
+ headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
13129
+ }
13130
+ }
13131
+ if (platform_default.hasStandardBrowserEnv) {
13132
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
13133
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
13134
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
13135
+ if (xsrfValue) {
13136
+ headers.set(xsrfHeaderName, xsrfValue);
13137
+ }
13138
+ }
13139
+ }
13140
+ return newConfig;
13141
+ };
13142
+
13143
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/xhr.js
13028
13144
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
13029
13145
  var xhr_default = isXHRAdapterSupported && function(config) {
13030
13146
  return new Promise(function dispatchXhrRequest(resolve, reject) {
13031
- let requestData = config.data;
13032
- const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
13033
- let { responseType, withXSRFToken } = config;
13147
+ const _config = resolveConfig_default(config);
13148
+ let requestData = _config.data;
13149
+ const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
13150
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
13034
13151
  let onCanceled;
13152
+ let uploadThrottled, downloadThrottled;
13153
+ let flushUpload, flushDownload;
13035
13154
  function done() {
13036
- if (config.cancelToken) {
13037
- config.cancelToken.unsubscribe(onCanceled);
13038
- }
13039
- if (config.signal) {
13040
- config.signal.removeEventListener("abort", onCanceled);
13041
- }
13042
- }
13043
- let contentType;
13044
- if (utils_default.isFormData(requestData)) {
13045
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
13046
- requestHeaders.setContentType(false);
13047
- } else if ((contentType = requestHeaders.getContentType()) !== false) {
13048
- const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
13049
- requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
13050
- }
13155
+ flushUpload && flushUpload();
13156
+ flushDownload && flushDownload();
13157
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
13158
+ _config.signal && _config.signal.removeEventListener("abort", onCanceled);
13051
13159
  }
13052
13160
  let request = new XMLHttpRequest();
13053
- if (config.auth) {
13054
- const username = config.auth.username || "";
13055
- const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
13056
- requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
13057
- }
13058
- const fullPath = buildFullPath(config.baseURL, config.url);
13059
- request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
13060
- request.timeout = config.timeout;
13161
+ request.open(_config.method.toUpperCase(), _config.url, true);
13162
+ request.timeout = _config.timeout;
13061
13163
  function onloadend() {
13062
13164
  if (!request) {
13063
13165
  return;
@@ -13108,10 +13210,10 @@
13108
13210
  request = null;
13109
13211
  };
13110
13212
  request.ontimeout = function handleTimeout() {
13111
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
13112
- const transitional2 = config.transitional || transitional_default;
13113
- if (config.timeoutErrorMessage) {
13114
- timeoutErrorMessage = config.timeoutErrorMessage;
13213
+ let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
13214
+ const transitional2 = _config.transitional || transitional_default;
13215
+ if (_config.timeoutErrorMessage) {
13216
+ timeoutErrorMessage = _config.timeoutErrorMessage;
13115
13217
  }
13116
13218
  reject(new AxiosError_default(
13117
13219
  timeoutErrorMessage,
@@ -13121,34 +13223,28 @@
13121
13223
  ));
13122
13224
  request = null;
13123
13225
  };
13124
- if (platform_default.hasStandardBrowserEnv) {
13125
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
13126
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
13127
- const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
13128
- if (xsrfValue) {
13129
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
13130
- }
13131
- }
13132
- }
13133
13226
  requestData === void 0 && requestHeaders.setContentType(null);
13134
13227
  if ("setRequestHeader" in request) {
13135
13228
  utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
13136
13229
  request.setRequestHeader(key, val);
13137
13230
  });
13138
13231
  }
13139
- if (!utils_default.isUndefined(config.withCredentials)) {
13140
- request.withCredentials = !!config.withCredentials;
13232
+ if (!utils_default.isUndefined(_config.withCredentials)) {
13233
+ request.withCredentials = !!_config.withCredentials;
13141
13234
  }
13142
13235
  if (responseType && responseType !== "json") {
13143
- request.responseType = config.responseType;
13236
+ request.responseType = _config.responseType;
13144
13237
  }
13145
- if (typeof config.onDownloadProgress === "function") {
13146
- request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
13238
+ if (onDownloadProgress) {
13239
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
13240
+ request.addEventListener("progress", downloadThrottled);
13147
13241
  }
13148
- if (typeof config.onUploadProgress === "function" && request.upload) {
13149
- request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
13242
+ if (onUploadProgress && request.upload) {
13243
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
13244
+ request.upload.addEventListener("progress", uploadThrottled);
13245
+ request.upload.addEventListener("loadend", flushUpload);
13150
13246
  }
13151
- if (config.cancelToken || config.signal) {
13247
+ if (_config.cancelToken || _config.signal) {
13152
13248
  onCanceled = (cancel) => {
13153
13249
  if (!request) {
13154
13250
  return;
@@ -13157,12 +13253,12 @@
13157
13253
  request.abort();
13158
13254
  request = null;
13159
13255
  };
13160
- config.cancelToken && config.cancelToken.subscribe(onCanceled);
13161
- if (config.signal) {
13162
- config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
13256
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
13257
+ if (_config.signal) {
13258
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
13163
13259
  }
13164
13260
  }
13165
- const protocol = parseProtocol(fullPath);
13261
+ const protocol = parseProtocol(_config.url);
13166
13262
  if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
13167
13263
  reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
13168
13264
  return;
@@ -13171,10 +13267,268 @@
13171
13267
  });
13172
13268
  };
13173
13269
 
13174
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/adapters.js
13270
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/composeSignals.js
13271
+ var composeSignals = (signals, timeout) => {
13272
+ let controller = new AbortController();
13273
+ let aborted;
13274
+ const onabort = function(cancel) {
13275
+ if (!aborted) {
13276
+ aborted = true;
13277
+ unsubscribe();
13278
+ const err = cancel instanceof Error ? cancel : this.reason;
13279
+ controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
13280
+ }
13281
+ };
13282
+ let timer = timeout && setTimeout(() => {
13283
+ onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
13284
+ }, timeout);
13285
+ const unsubscribe = () => {
13286
+ if (signals) {
13287
+ timer && clearTimeout(timer);
13288
+ timer = null;
13289
+ signals.forEach((signal2) => {
13290
+ signal2 && (signal2.removeEventListener ? signal2.removeEventListener("abort", onabort) : signal2.unsubscribe(onabort));
13291
+ });
13292
+ signals = null;
13293
+ }
13294
+ };
13295
+ signals.forEach((signal2) => signal2 && signal2.addEventListener && signal2.addEventListener("abort", onabort));
13296
+ const { signal } = controller;
13297
+ signal.unsubscribe = unsubscribe;
13298
+ return [signal, () => {
13299
+ timer && clearTimeout(timer);
13300
+ timer = null;
13301
+ }];
13302
+ };
13303
+ var composeSignals_default = composeSignals;
13304
+
13305
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/trackStream.js
13306
+ var streamChunk = function* (chunk, chunkSize) {
13307
+ let len = chunk.byteLength;
13308
+ if (!chunkSize || len < chunkSize) {
13309
+ yield chunk;
13310
+ return;
13311
+ }
13312
+ let pos = 0;
13313
+ let end;
13314
+ while (pos < len) {
13315
+ end = pos + chunkSize;
13316
+ yield chunk.slice(pos, end);
13317
+ pos = end;
13318
+ }
13319
+ };
13320
+ var readBytes = async function* (iterable, chunkSize, encode3) {
13321
+ for await (const chunk of iterable) {
13322
+ yield* streamChunk(ArrayBuffer.isView(chunk) ? chunk : await encode3(String(chunk)), chunkSize);
13323
+ }
13324
+ };
13325
+ var trackStream = (stream4, chunkSize, onProgress, onFinish, encode3) => {
13326
+ const iterator = readBytes(stream4, chunkSize, encode3);
13327
+ let bytes = 0;
13328
+ let done;
13329
+ let _onFinish = (e) => {
13330
+ if (!done) {
13331
+ done = true;
13332
+ onFinish && onFinish(e);
13333
+ }
13334
+ };
13335
+ return new ReadableStream({
13336
+ async pull(controller) {
13337
+ try {
13338
+ const { done: done2, value } = await iterator.next();
13339
+ if (done2) {
13340
+ _onFinish();
13341
+ controller.close();
13342
+ return;
13343
+ }
13344
+ let len = value.byteLength;
13345
+ if (onProgress) {
13346
+ let loadedBytes = bytes += len;
13347
+ onProgress(loadedBytes);
13348
+ }
13349
+ controller.enqueue(new Uint8Array(value));
13350
+ } catch (err) {
13351
+ _onFinish(err);
13352
+ throw err;
13353
+ }
13354
+ },
13355
+ cancel(reason) {
13356
+ _onFinish(reason);
13357
+ return iterator.return();
13358
+ }
13359
+ }, {
13360
+ highWaterMark: 2
13361
+ });
13362
+ };
13363
+
13364
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/fetch.js
13365
+ var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
13366
+ var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
13367
+ var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
13368
+ var test = (fn, ...args) => {
13369
+ try {
13370
+ return !!fn(...args);
13371
+ } catch (e) {
13372
+ return false;
13373
+ }
13374
+ };
13375
+ var supportsRequestStream = isReadableStreamSupported && test(() => {
13376
+ let duplexAccessed = false;
13377
+ const hasContentType = new Request(platform_default.origin, {
13378
+ body: new ReadableStream(),
13379
+ method: "POST",
13380
+ get duplex() {
13381
+ duplexAccessed = true;
13382
+ return "half";
13383
+ }
13384
+ }).headers.has("Content-Type");
13385
+ return duplexAccessed && !hasContentType;
13386
+ });
13387
+ var DEFAULT_CHUNK_SIZE = 64 * 1024;
13388
+ var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
13389
+ var resolvers = {
13390
+ stream: supportsResponseStream && ((res) => res.body)
13391
+ };
13392
+ isFetchSupported && ((res) => {
13393
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
13394
+ !resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
13395
+ throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
13396
+ });
13397
+ });
13398
+ })(new Response());
13399
+ var getBodyLength = async (body) => {
13400
+ if (body == null) {
13401
+ return 0;
13402
+ }
13403
+ if (utils_default.isBlob(body)) {
13404
+ return body.size;
13405
+ }
13406
+ if (utils_default.isSpecCompliantForm(body)) {
13407
+ return (await new Request(body).arrayBuffer()).byteLength;
13408
+ }
13409
+ if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
13410
+ return body.byteLength;
13411
+ }
13412
+ if (utils_default.isURLSearchParams(body)) {
13413
+ body = body + "";
13414
+ }
13415
+ if (utils_default.isString(body)) {
13416
+ return (await encodeText(body)).byteLength;
13417
+ }
13418
+ };
13419
+ var resolveBodyLength = async (headers, body) => {
13420
+ const length = utils_default.toFiniteNumber(headers.getContentLength());
13421
+ return length == null ? getBodyLength(body) : length;
13422
+ };
13423
+ var fetch_default = isFetchSupported && (async (config) => {
13424
+ let {
13425
+ url: url2,
13426
+ method,
13427
+ data,
13428
+ signal,
13429
+ cancelToken,
13430
+ timeout,
13431
+ onDownloadProgress,
13432
+ onUploadProgress,
13433
+ responseType,
13434
+ headers,
13435
+ withCredentials = "same-origin",
13436
+ fetchOptions
13437
+ } = resolveConfig_default(config);
13438
+ responseType = responseType ? (responseType + "").toLowerCase() : "text";
13439
+ let [composedSignal, stopTimeout] = signal || cancelToken || timeout ? composeSignals_default([signal, cancelToken], timeout) : [];
13440
+ let finished, request;
13441
+ const onFinish = () => {
13442
+ !finished && setTimeout(() => {
13443
+ composedSignal && composedSignal.unsubscribe();
13444
+ });
13445
+ finished = true;
13446
+ };
13447
+ let requestContentLength;
13448
+ try {
13449
+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
13450
+ let _request = new Request(url2, {
13451
+ method: "POST",
13452
+ body: data,
13453
+ duplex: "half"
13454
+ });
13455
+ let contentTypeHeader;
13456
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
13457
+ headers.setContentType(contentTypeHeader);
13458
+ }
13459
+ if (_request.body) {
13460
+ const [onProgress, flush] = progressEventDecorator(
13461
+ requestContentLength,
13462
+ progressEventReducer(asyncDecorator(onUploadProgress))
13463
+ );
13464
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
13465
+ }
13466
+ }
13467
+ if (!utils_default.isString(withCredentials)) {
13468
+ withCredentials = withCredentials ? "include" : "omit";
13469
+ }
13470
+ request = new Request(url2, {
13471
+ ...fetchOptions,
13472
+ signal: composedSignal,
13473
+ method: method.toUpperCase(),
13474
+ headers: headers.normalize().toJSON(),
13475
+ body: data,
13476
+ duplex: "half",
13477
+ credentials: withCredentials
13478
+ });
13479
+ let response = await fetch(request);
13480
+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
13481
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {
13482
+ const options = {};
13483
+ ["status", "statusText", "headers"].forEach((prop) => {
13484
+ options[prop] = response[prop];
13485
+ });
13486
+ const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
13487
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
13488
+ responseContentLength,
13489
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
13490
+ ) || [];
13491
+ response = new Response(
13492
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
13493
+ flush && flush();
13494
+ isStreamResponse && onFinish();
13495
+ }, encodeText),
13496
+ options
13497
+ );
13498
+ }
13499
+ responseType = responseType || "text";
13500
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
13501
+ !isStreamResponse && onFinish();
13502
+ stopTimeout && stopTimeout();
13503
+ return await new Promise((resolve, reject) => {
13504
+ settle(resolve, reject, {
13505
+ data: responseData,
13506
+ headers: AxiosHeaders_default.from(response.headers),
13507
+ status: response.status,
13508
+ statusText: response.statusText,
13509
+ config,
13510
+ request
13511
+ });
13512
+ });
13513
+ } catch (err) {
13514
+ onFinish();
13515
+ if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
13516
+ throw Object.assign(
13517
+ new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
13518
+ {
13519
+ cause: err.cause || err
13520
+ }
13521
+ );
13522
+ }
13523
+ throw AxiosError_default.from(err, err && err.code, config, request);
13524
+ }
13525
+ });
13526
+
13527
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/adapters.js
13175
13528
  var knownAdapters = {
13176
13529
  http: http_default,
13177
- xhr: xhr_default
13530
+ xhr: xhr_default,
13531
+ fetch: fetch_default
13178
13532
  };
13179
13533
  utils_default.forEach(knownAdapters, (fn, value) => {
13180
13534
  if (fn) {
@@ -13224,7 +13578,7 @@
13224
13578
  adapters: knownAdapters
13225
13579
  };
13226
13580
 
13227
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/dispatchRequest.js
13581
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/dispatchRequest.js
13228
13582
  function throwIfCancellationRequested(config) {
13229
13583
  if (config.cancelToken) {
13230
13584
  config.cancelToken.throwIfRequested();
@@ -13269,87 +13623,7 @@
13269
13623
  });
13270
13624
  }
13271
13625
 
13272
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/mergeConfig.js
13273
- var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
13274
- function mergeConfig(config1, config2) {
13275
- config2 = config2 || {};
13276
- const config = {};
13277
- function getMergedValue(target, source, caseless) {
13278
- if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
13279
- return utils_default.merge.call({ caseless }, target, source);
13280
- } else if (utils_default.isPlainObject(source)) {
13281
- return utils_default.merge({}, source);
13282
- } else if (utils_default.isArray(source)) {
13283
- return source.slice();
13284
- }
13285
- return source;
13286
- }
13287
- function mergeDeepProperties(a, b, caseless) {
13288
- if (!utils_default.isUndefined(b)) {
13289
- return getMergedValue(a, b, caseless);
13290
- } else if (!utils_default.isUndefined(a)) {
13291
- return getMergedValue(void 0, a, caseless);
13292
- }
13293
- }
13294
- function valueFromConfig2(a, b) {
13295
- if (!utils_default.isUndefined(b)) {
13296
- return getMergedValue(void 0, b);
13297
- }
13298
- }
13299
- function defaultToConfig2(a, b) {
13300
- if (!utils_default.isUndefined(b)) {
13301
- return getMergedValue(void 0, b);
13302
- } else if (!utils_default.isUndefined(a)) {
13303
- return getMergedValue(void 0, a);
13304
- }
13305
- }
13306
- function mergeDirectKeys(a, b, prop) {
13307
- if (prop in config2) {
13308
- return getMergedValue(a, b);
13309
- } else if (prop in config1) {
13310
- return getMergedValue(void 0, a);
13311
- }
13312
- }
13313
- const mergeMap = {
13314
- url: valueFromConfig2,
13315
- method: valueFromConfig2,
13316
- data: valueFromConfig2,
13317
- baseURL: defaultToConfig2,
13318
- transformRequest: defaultToConfig2,
13319
- transformResponse: defaultToConfig2,
13320
- paramsSerializer: defaultToConfig2,
13321
- timeout: defaultToConfig2,
13322
- timeoutMessage: defaultToConfig2,
13323
- withCredentials: defaultToConfig2,
13324
- withXSRFToken: defaultToConfig2,
13325
- adapter: defaultToConfig2,
13326
- responseType: defaultToConfig2,
13327
- xsrfCookieName: defaultToConfig2,
13328
- xsrfHeaderName: defaultToConfig2,
13329
- onUploadProgress: defaultToConfig2,
13330
- onDownloadProgress: defaultToConfig2,
13331
- decompress: defaultToConfig2,
13332
- maxContentLength: defaultToConfig2,
13333
- maxBodyLength: defaultToConfig2,
13334
- beforeRedirect: defaultToConfig2,
13335
- transport: defaultToConfig2,
13336
- httpAgent: defaultToConfig2,
13337
- httpsAgent: defaultToConfig2,
13338
- cancelToken: defaultToConfig2,
13339
- socketPath: defaultToConfig2,
13340
- responseEncoding: defaultToConfig2,
13341
- validateStatus: mergeDirectKeys,
13342
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
13343
- };
13344
- utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
13345
- const merge2 = mergeMap[prop] || mergeDeepProperties;
13346
- const configValue = merge2(config1[prop], config2[prop], prop);
13347
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
13348
- });
13349
- return config;
13350
- }
13351
-
13352
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/validator.js
13626
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/validator.js
13353
13627
  var validators = {};
13354
13628
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
13355
13629
  validators[type] = function validator(thing) {
@@ -13407,7 +13681,7 @@
13407
13681
  validators
13408
13682
  };
13409
13683
 
13410
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/Axios.js
13684
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/Axios.js
13411
13685
  var validators2 = validator_default.validators;
13412
13686
  var Axios = class {
13413
13687
  constructor(instanceConfig) {
@@ -13433,10 +13707,13 @@
13433
13707
  let dummy;
13434
13708
  Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
13435
13709
  const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
13436
- if (!err.stack) {
13437
- err.stack = stack;
13438
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
13439
- err.stack += "\n" + stack;
13710
+ try {
13711
+ if (!err.stack) {
13712
+ err.stack = stack;
13713
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
13714
+ err.stack += "\n" + stack;
13715
+ }
13716
+ } catch (e) {
13440
13717
  }
13441
13718
  }
13442
13719
  throw err;
@@ -13567,7 +13844,7 @@
13567
13844
  });
13568
13845
  var Axios_default = Axios;
13569
13846
 
13570
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/cancel/CancelToken.js
13847
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/cancel/CancelToken.js
13571
13848
  var CancelToken = class _CancelToken {
13572
13849
  constructor(executor) {
13573
13850
  if (typeof executor !== "function") {
@@ -13579,8 +13856,7 @@
13579
13856
  });
13580
13857
  const token = this;
13581
13858
  this.promise.then((cancel) => {
13582
- if (!token._listeners)
13583
- return;
13859
+ if (!token._listeners) return;
13584
13860
  let i = token._listeners.length;
13585
13861
  while (i-- > 0) {
13586
13862
  token._listeners[i](cancel);
@@ -13657,19 +13933,19 @@
13657
13933
  };
13658
13934
  var CancelToken_default = CancelToken;
13659
13935
 
13660
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/spread.js
13936
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/spread.js
13661
13937
  function spread(callback) {
13662
13938
  return function wrap(arr) {
13663
13939
  return callback.apply(null, arr);
13664
13940
  };
13665
13941
  }
13666
13942
 
13667
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/isAxiosError.js
13943
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/isAxiosError.js
13668
13944
  function isAxiosError(payload) {
13669
13945
  return utils_default.isObject(payload) && payload.isAxiosError === true;
13670
13946
  }
13671
13947
 
13672
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/HttpStatusCode.js
13948
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/HttpStatusCode.js
13673
13949
  var HttpStatusCode = {
13674
13950
  Continue: 100,
13675
13951
  SwitchingProtocols: 101,
@@ -13740,7 +14016,7 @@
13740
14016
  });
13741
14017
  var HttpStatusCode_default = HttpStatusCode;
13742
14018
 
13743
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/axios.js
14019
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/axios.js
13744
14020
  function createInstance(defaultConfig) {
13745
14021
  const context = new Axios_default(defaultConfig);
13746
14022
  const instance = bind(Axios_default.prototype.request, context);
@@ -13773,7 +14049,7 @@
13773
14049
  axios.default = axios;
13774
14050
  var axios_default = axios;
13775
14051
 
13776
- // ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/index.js
14052
+ // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/index.js
13777
14053
  var {
13778
14054
  Axios: Axios2,
13779
14055
  AxiosError: AxiosError2,