@dstny/scp-authenticator 0.0.1 → 0.0.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.
package/dist/index.mjs CHANGED
@@ -14,6 +14,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
14
14
  var __commonJS = (cb, mod) => function __require2() {
15
15
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
16
  };
17
+ var __export = (target, all3) => {
18
+ for (var name in all3)
19
+ __defProp(target, name, { get: all3[name], enumerable: true });
20
+ };
17
21
  var __copyProps = (to, from, except, desc) => {
18
22
  if (from && typeof from === "object" || typeof from === "function") {
19
23
  for (let key of __getOwnPropNames(from))
@@ -36,7 +40,7 @@ var require_delayed_stream = __commonJS({
36
40
  "../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
37
41
  "use strict";
38
42
  var Stream = __require("stream").Stream;
39
- var util = __require("util");
43
+ var util3 = __require("util");
40
44
  module.exports = DelayedStream;
41
45
  function DelayedStream() {
42
46
  this.source = null;
@@ -47,7 +51,7 @@ var require_delayed_stream = __commonJS({
47
51
  this._released = false;
48
52
  this._bufferedEvents = [];
49
53
  }
50
- util.inherits(DelayedStream, Stream);
54
+ util3.inherits(DelayedStream, Stream);
51
55
  DelayedStream.create = function(source, options) {
52
56
  var delayedStream = new this();
53
57
  options = options || {};
@@ -127,7 +131,7 @@ var require_delayed_stream = __commonJS({
127
131
  var require_combined_stream = __commonJS({
128
132
  "../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
129
133
  "use strict";
130
- var util = __require("util");
134
+ var util3 = __require("util");
131
135
  var Stream = __require("stream").Stream;
132
136
  var DelayedStream = require_delayed_stream();
133
137
  module.exports = CombinedStream;
@@ -143,7 +147,7 @@ var require_combined_stream = __commonJS({
143
147
  this._insideLoop = false;
144
148
  this._pendingNext = false;
145
149
  }
146
- util.inherits(CombinedStream, Stream);
150
+ util3.inherits(CombinedStream, Stream);
147
151
  CombinedStream.create = function(options) {
148
152
  var combinedStream = new this();
149
153
  options = options || {};
@@ -152,26 +156,26 @@ var require_combined_stream = __commonJS({
152
156
  }
153
157
  return combinedStream;
154
158
  };
155
- CombinedStream.isStreamLike = function(stream3) {
156
- return typeof stream3 !== "function" && typeof stream3 !== "string" && typeof stream3 !== "boolean" && typeof stream3 !== "number" && !Buffer.isBuffer(stream3);
159
+ CombinedStream.isStreamLike = function(stream4) {
160
+ return typeof stream4 !== "function" && typeof stream4 !== "string" && typeof stream4 !== "boolean" && typeof stream4 !== "number" && !Buffer.isBuffer(stream4);
157
161
  };
158
- CombinedStream.prototype.append = function(stream3) {
159
- var isStreamLike = CombinedStream.isStreamLike(stream3);
162
+ CombinedStream.prototype.append = function(stream4) {
163
+ var isStreamLike = CombinedStream.isStreamLike(stream4);
160
164
  if (isStreamLike) {
161
- if (!(stream3 instanceof DelayedStream)) {
162
- var newStream = DelayedStream.create(stream3, {
165
+ if (!(stream4 instanceof DelayedStream)) {
166
+ var newStream = DelayedStream.create(stream4, {
163
167
  maxDataSize: Infinity,
164
168
  pauseStream: this.pauseStreams
165
169
  });
166
- stream3.on("data", this._checkDataSize.bind(this));
167
- stream3 = newStream;
170
+ stream4.on("data", this._checkDataSize.bind(this));
171
+ stream4 = newStream;
168
172
  }
169
- this._handleErrors(stream3);
173
+ this._handleErrors(stream4);
170
174
  if (this.pauseStreams) {
171
- stream3.pause();
175
+ stream4.pause();
172
176
  }
173
177
  }
174
- this._streams.push(stream3);
178
+ this._streams.push(stream4);
175
179
  return this;
176
180
  };
177
181
  CombinedStream.prototype.pipe = function(dest, options) {
@@ -196,40 +200,40 @@ var require_combined_stream = __commonJS({
196
200
  }
197
201
  };
198
202
  CombinedStream.prototype._realGetNext = function() {
199
- var stream3 = this._streams.shift();
200
- if (typeof stream3 == "undefined") {
203
+ var stream4 = this._streams.shift();
204
+ if (typeof stream4 == "undefined") {
201
205
  this.end();
202
206
  return;
203
207
  }
204
- if (typeof stream3 !== "function") {
205
- this._pipeNext(stream3);
208
+ if (typeof stream4 !== "function") {
209
+ this._pipeNext(stream4);
206
210
  return;
207
211
  }
208
- var getStream = stream3;
209
- getStream(function(stream4) {
210
- var isStreamLike = CombinedStream.isStreamLike(stream4);
212
+ var getStream = stream4;
213
+ getStream(function(stream5) {
214
+ var isStreamLike = CombinedStream.isStreamLike(stream5);
211
215
  if (isStreamLike) {
212
- stream4.on("data", this._checkDataSize.bind(this));
213
- this._handleErrors(stream4);
216
+ stream5.on("data", this._checkDataSize.bind(this));
217
+ this._handleErrors(stream5);
214
218
  }
215
- this._pipeNext(stream4);
219
+ this._pipeNext(stream5);
216
220
  }.bind(this));
217
221
  };
218
- CombinedStream.prototype._pipeNext = function(stream3) {
219
- this._currentStream = stream3;
220
- var isStreamLike = CombinedStream.isStreamLike(stream3);
222
+ CombinedStream.prototype._pipeNext = function(stream4) {
223
+ this._currentStream = stream4;
224
+ var isStreamLike = CombinedStream.isStreamLike(stream4);
221
225
  if (isStreamLike) {
222
- stream3.on("end", this._getNext.bind(this));
223
- stream3.pipe(this, { end: false });
226
+ stream4.on("end", this._getNext.bind(this));
227
+ stream4.pipe(this, { end: false });
224
228
  return;
225
229
  }
226
- var value = stream3;
230
+ var value = stream4;
227
231
  this.write(value);
228
232
  this._getNext();
229
233
  };
230
- CombinedStream.prototype._handleErrors = function(stream3) {
234
+ CombinedStream.prototype._handleErrors = function(stream4) {
231
235
  var self2 = this;
232
- stream3.on("error", function(err) {
236
+ stream4.on("error", function(err) {
233
237
  self2._emitError(err);
234
238
  });
235
239
  };
@@ -278,11 +282,11 @@ var require_combined_stream = __commonJS({
278
282
  CombinedStream.prototype._updateDataSize = function() {
279
283
  this.dataSize = 0;
280
284
  var self2 = this;
281
- this._streams.forEach(function(stream3) {
282
- if (!stream3.dataSize) {
285
+ this._streams.forEach(function(stream4) {
286
+ if (!stream4.dataSize) {
283
287
  return;
284
288
  }
285
- self2.dataSize += stream3.dataSize;
289
+ self2.dataSize += stream4.dataSize;
286
290
  });
287
291
  if (this._currentStream && this._currentStream.dataSize) {
288
292
  this.dataSize += this._currentStream.dataSize;
@@ -8983,9 +8987,9 @@ var require_iterate = __commonJS({
8983
8987
  var async = require_async();
8984
8988
  var abort = require_abort();
8985
8989
  module.exports = iterate;
8986
- function iterate(list, iterator2, state, callback) {
8990
+ function iterate(list, iterator3, state, callback) {
8987
8991
  var key = state["keyedList"] ? state["keyedList"][state.index] : state.index;
8988
- state.jobs[key] = runJob(iterator2, key, list[key], function(error, output) {
8992
+ state.jobs[key] = runJob(iterator3, key, list[key], function(error, output) {
8989
8993
  if (!(key in state.jobs)) {
8990
8994
  return;
8991
8995
  }
@@ -8998,12 +9002,12 @@ var require_iterate = __commonJS({
8998
9002
  callback(error, state.results);
8999
9003
  });
9000
9004
  }
9001
- function runJob(iterator2, key, item, callback) {
9005
+ function runJob(iterator3, key, item, callback) {
9002
9006
  var aborter;
9003
- if (iterator2.length == 2) {
9004
- aborter = iterator2(item, async(callback));
9007
+ if (iterator3.length == 2) {
9008
+ aborter = iterator3(item, async(callback));
9005
9009
  } else {
9006
- aborter = iterator2(item, key, async(callback));
9010
+ aborter = iterator3(item, key, async(callback));
9007
9011
  }
9008
9012
  return aborter;
9009
9013
  }
@@ -9059,10 +9063,10 @@ var require_parallel = __commonJS({
9059
9063
  var initState = require_state();
9060
9064
  var terminator = require_terminator();
9061
9065
  module.exports = parallel;
9062
- function parallel(list, iterator2, callback) {
9066
+ function parallel(list, iterator3, callback) {
9063
9067
  var state = initState(list);
9064
9068
  while (state.index < (state["keyedList"] || list).length) {
9065
- iterate(list, iterator2, state, function(error, result) {
9069
+ iterate(list, iterator3, state, function(error, result) {
9066
9070
  if (error) {
9067
9071
  callback(error, result);
9068
9072
  return;
@@ -9089,16 +9093,16 @@ var require_serialOrdered = __commonJS({
9089
9093
  module.exports = serialOrdered;
9090
9094
  module.exports.ascending = ascending;
9091
9095
  module.exports.descending = descending;
9092
- function serialOrdered(list, iterator2, sortMethod, callback) {
9096
+ function serialOrdered(list, iterator3, sortMethod, callback) {
9093
9097
  var state = initState(list, sortMethod);
9094
- iterate(list, iterator2, state, function iteratorHandler(error, result) {
9098
+ iterate(list, iterator3, state, function iteratorHandler(error, result) {
9095
9099
  if (error) {
9096
9100
  callback(error, result);
9097
9101
  return;
9098
9102
  }
9099
9103
  state.index++;
9100
9104
  if (state.index < (state["keyedList"] || list).length) {
9101
- iterate(list, iterator2, state, iteratorHandler);
9105
+ iterate(list, iterator3, state, iteratorHandler);
9102
9106
  return;
9103
9107
  }
9104
9108
  callback(null, state.results);
@@ -9120,8 +9124,8 @@ var require_serial = __commonJS({
9120
9124
  "use strict";
9121
9125
  var serialOrdered = require_serialOrdered();
9122
9126
  module.exports = serial;
9123
- function serial(list, iterator2, callback) {
9124
- return serialOrdered(list, iterator2, null, callback);
9127
+ function serial(list, iterator3, callback) {
9128
+ return serialOrdered(list, iterator3, null, callback);
9125
9129
  }
9126
9130
  }
9127
9131
  });
@@ -9156,7 +9160,7 @@ var require_form_data = __commonJS({
9156
9160
  "../../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/form_data.js"(exports, module) {
9157
9161
  "use strict";
9158
9162
  var CombinedStream = require_combined_stream();
9159
- var util = __require("util");
9163
+ var util3 = __require("util");
9160
9164
  var path = __require("path");
9161
9165
  var http2 = __require("http");
9162
9166
  var https2 = __require("https");
@@ -9166,11 +9170,11 @@ var require_form_data = __commonJS({
9166
9170
  var mime = require_mime_types();
9167
9171
  var asynckit = require_asynckit();
9168
9172
  var populate = require_populate();
9169
- module.exports = FormData4;
9170
- util.inherits(FormData4, CombinedStream);
9171
- function FormData4(options) {
9172
- if (!(this instanceof FormData4)) {
9173
- return new FormData4(options);
9173
+ module.exports = FormData3;
9174
+ util3.inherits(FormData3, CombinedStream);
9175
+ function FormData3(options) {
9176
+ if (!(this instanceof FormData3)) {
9177
+ return new FormData3(options);
9174
9178
  }
9175
9179
  this._overheadLength = 0;
9176
9180
  this._valueLength = 0;
@@ -9181,9 +9185,9 @@ var require_form_data = __commonJS({
9181
9185
  this[option] = options[option];
9182
9186
  }
9183
9187
  }
9184
- FormData4.LINE_BREAK = "\r\n";
9185
- FormData4.DEFAULT_CONTENT_TYPE = "application/octet-stream";
9186
- FormData4.prototype.append = function(field, value, options) {
9188
+ FormData3.LINE_BREAK = "\r\n";
9189
+ FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
9190
+ FormData3.prototype.append = function(field, value, options) {
9187
9191
  options = options || {};
9188
9192
  if (typeof options == "string") {
9189
9193
  options = { filename: options };
@@ -9192,7 +9196,7 @@ var require_form_data = __commonJS({
9192
9196
  if (typeof value == "number") {
9193
9197
  value = "" + value;
9194
9198
  }
9195
- if (util.isArray(value)) {
9199
+ if (util3.isArray(value)) {
9196
9200
  this._error(new Error("Arrays are not supported."));
9197
9201
  return;
9198
9202
  }
@@ -9203,7 +9207,7 @@ var require_form_data = __commonJS({
9203
9207
  append2(footer);
9204
9208
  this._trackLength(header, value, options);
9205
9209
  };
9206
- FormData4.prototype._trackLength = function(header, value, options) {
9210
+ FormData3.prototype._trackLength = function(header, value, options) {
9207
9211
  var valueLength = 0;
9208
9212
  if (options.knownLength != null) {
9209
9213
  valueLength += +options.knownLength;
@@ -9213,7 +9217,7 @@ var require_form_data = __commonJS({
9213
9217
  valueLength = Buffer.byteLength(value);
9214
9218
  }
9215
9219
  this._valueLength += valueLength;
9216
- this._overheadLength += Buffer.byteLength(header) + FormData4.LINE_BREAK.length;
9220
+ this._overheadLength += Buffer.byteLength(header) + FormData3.LINE_BREAK.length;
9217
9221
  if (!value || !value.path && !(value.readable && value.hasOwnProperty("httpVersion")) && !(value instanceof Stream)) {
9218
9222
  return;
9219
9223
  }
@@ -9221,7 +9225,7 @@ var require_form_data = __commonJS({
9221
9225
  this._valuesToMeasure.push(value);
9222
9226
  }
9223
9227
  };
9224
- FormData4.prototype._lengthRetriever = function(value, callback) {
9228
+ FormData3.prototype._lengthRetriever = function(value, callback) {
9225
9229
  if (value.hasOwnProperty("fd")) {
9226
9230
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
9227
9231
  callback(null, value.end + 1 - (value.start ? value.start : 0));
@@ -9248,7 +9252,7 @@ var require_form_data = __commonJS({
9248
9252
  callback("Unknown stream");
9249
9253
  }
9250
9254
  };
9251
- FormData4.prototype._multiPartHeader = function(field, value, options) {
9255
+ FormData3.prototype._multiPartHeader = function(field, value, options) {
9252
9256
  if (typeof options.header == "string") {
9253
9257
  return options.header;
9254
9258
  }
@@ -9276,12 +9280,12 @@ var require_form_data = __commonJS({
9276
9280
  header = [header];
9277
9281
  }
9278
9282
  if (header.length) {
9279
- contents += prop + ": " + header.join("; ") + FormData4.LINE_BREAK;
9283
+ contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
9280
9284
  }
9281
9285
  }
9282
- return "--" + this.getBoundary() + FormData4.LINE_BREAK + contents + FormData4.LINE_BREAK;
9286
+ return "--" + this.getBoundary() + FormData3.LINE_BREAK + contents + FormData3.LINE_BREAK;
9283
9287
  };
9284
- FormData4.prototype._getContentDisposition = function(value, options) {
9288
+ FormData3.prototype._getContentDisposition = function(value, options) {
9285
9289
  var filename, contentDisposition;
9286
9290
  if (typeof options.filepath === "string") {
9287
9291
  filename = path.normalize(options.filepath).replace(/\\/g, "/");
@@ -9295,7 +9299,7 @@ var require_form_data = __commonJS({
9295
9299
  }
9296
9300
  return contentDisposition;
9297
9301
  };
9298
- FormData4.prototype._getContentType = function(value, options) {
9302
+ FormData3.prototype._getContentType = function(value, options) {
9299
9303
  var contentType = options.contentType;
9300
9304
  if (!contentType && value.name) {
9301
9305
  contentType = mime.lookup(value.name);
@@ -9310,13 +9314,13 @@ var require_form_data = __commonJS({
9310
9314
  contentType = mime.lookup(options.filepath || options.filename);
9311
9315
  }
9312
9316
  if (!contentType && typeof value == "object") {
9313
- contentType = FormData4.DEFAULT_CONTENT_TYPE;
9317
+ contentType = FormData3.DEFAULT_CONTENT_TYPE;
9314
9318
  }
9315
9319
  return contentType;
9316
9320
  };
9317
- FormData4.prototype._multiPartFooter = function() {
9321
+ FormData3.prototype._multiPartFooter = function() {
9318
9322
  return function(next) {
9319
- var footer = FormData4.LINE_BREAK;
9323
+ var footer = FormData3.LINE_BREAK;
9320
9324
  var lastPart = this._streams.length === 0;
9321
9325
  if (lastPart) {
9322
9326
  footer += this._lastBoundary();
@@ -9324,10 +9328,10 @@ var require_form_data = __commonJS({
9324
9328
  next(footer);
9325
9329
  }.bind(this);
9326
9330
  };
9327
- FormData4.prototype._lastBoundary = function() {
9328
- return "--" + this.getBoundary() + "--" + FormData4.LINE_BREAK;
9331
+ FormData3.prototype._lastBoundary = function() {
9332
+ return "--" + this.getBoundary() + "--" + FormData3.LINE_BREAK;
9329
9333
  };
9330
- FormData4.prototype.getHeaders = function(userHeaders) {
9334
+ FormData3.prototype.getHeaders = function(userHeaders) {
9331
9335
  var header;
9332
9336
  var formHeaders = {
9333
9337
  "content-type": "multipart/form-data; boundary=" + this.getBoundary()
@@ -9339,16 +9343,16 @@ var require_form_data = __commonJS({
9339
9343
  }
9340
9344
  return formHeaders;
9341
9345
  };
9342
- FormData4.prototype.setBoundary = function(boundary) {
9346
+ FormData3.prototype.setBoundary = function(boundary) {
9343
9347
  this._boundary = boundary;
9344
9348
  };
9345
- FormData4.prototype.getBoundary = function() {
9349
+ FormData3.prototype.getBoundary = function() {
9346
9350
  if (!this._boundary) {
9347
9351
  this._generateBoundary();
9348
9352
  }
9349
9353
  return this._boundary;
9350
9354
  };
9351
- FormData4.prototype.getBuffer = function() {
9355
+ FormData3.prototype.getBuffer = function() {
9352
9356
  var dataBuffer = new Buffer.alloc(0);
9353
9357
  var boundary = this.getBoundary();
9354
9358
  for (var i = 0, len = this._streams.length; i < len; i++) {
@@ -9359,20 +9363,20 @@ var require_form_data = __commonJS({
9359
9363
  dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
9360
9364
  }
9361
9365
  if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
9362
- dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData4.LINE_BREAK)]);
9366
+ dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData3.LINE_BREAK)]);
9363
9367
  }
9364
9368
  }
9365
9369
  }
9366
9370
  return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
9367
9371
  };
9368
- FormData4.prototype._generateBoundary = function() {
9372
+ FormData3.prototype._generateBoundary = function() {
9369
9373
  var boundary = "--------------------------";
9370
9374
  for (var i = 0; i < 24; i++) {
9371
9375
  boundary += Math.floor(Math.random() * 10).toString(16);
9372
9376
  }
9373
9377
  this._boundary = boundary;
9374
9378
  };
9375
- FormData4.prototype.getLengthSync = function() {
9379
+ FormData3.prototype.getLengthSync = function() {
9376
9380
  var knownLength = this._overheadLength + this._valueLength;
9377
9381
  if (this._streams.length) {
9378
9382
  knownLength += this._lastBoundary().length;
@@ -9382,14 +9386,14 @@ var require_form_data = __commonJS({
9382
9386
  }
9383
9387
  return knownLength;
9384
9388
  };
9385
- FormData4.prototype.hasKnownLength = function() {
9389
+ FormData3.prototype.hasKnownLength = function() {
9386
9390
  var hasKnownLength = true;
9387
9391
  if (this._valuesToMeasure.length) {
9388
9392
  hasKnownLength = false;
9389
9393
  }
9390
9394
  return hasKnownLength;
9391
9395
  };
9392
- FormData4.prototype.getLength = function(cb) {
9396
+ FormData3.prototype.getLength = function(cb) {
9393
9397
  var knownLength = this._overheadLength + this._valueLength;
9394
9398
  if (this._streams.length) {
9395
9399
  knownLength += this._lastBoundary().length;
@@ -9409,7 +9413,7 @@ var require_form_data = __commonJS({
9409
9413
  cb(null, knownLength);
9410
9414
  });
9411
9415
  };
9412
- FormData4.prototype.submit = function(params, cb) {
9416
+ FormData3.prototype.submit = function(params, cb) {
9413
9417
  var request, options, defaults2 = { method: "post" };
9414
9418
  if (typeof params == "string") {
9415
9419
  params = parseUrl(params);
@@ -9454,14 +9458,14 @@ var require_form_data = __commonJS({
9454
9458
  }.bind(this));
9455
9459
  return request;
9456
9460
  };
9457
- FormData4.prototype._error = function(err) {
9461
+ FormData3.prototype._error = function(err) {
9458
9462
  if (!this.error) {
9459
9463
  this.error = err;
9460
9464
  this.pause();
9461
9465
  this.emit("error", err);
9462
9466
  }
9463
9467
  };
9464
- FormData4.prototype.toString = function() {
9468
+ FormData3.prototype.toString = function() {
9465
9469
  return "[object FormData]";
9466
9470
  };
9467
9471
  }
@@ -9483,7 +9487,7 @@ var require_proxy_from_env = __commonJS({
9483
9487
  var stringEndsWith = String.prototype.endsWith || function(s) {
9484
9488
  return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
9485
9489
  };
9486
- function getProxyForUrl2(url2) {
9490
+ function getProxyForUrl(url2) {
9487
9491
  var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
9488
9492
  var proto = parsedUrl.protocol;
9489
9493
  var hostname = parsedUrl.host;
@@ -9533,7 +9537,7 @@ var require_proxy_from_env = __commonJS({
9533
9537
  function getEnv(key) {
9534
9538
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
9535
9539
  }
9536
- exports.getProxyForUrl = getProxyForUrl2;
9540
+ exports.getProxyForUrl = getProxyForUrl;
9537
9541
  }
9538
9542
  });
9539
9543
 
@@ -10091,8 +10095,8 @@ var require_supports_color = __commonJS({
10091
10095
  }
10092
10096
  return min;
10093
10097
  }
10094
- function getSupportLevel(stream3) {
10095
- const level = supportsColor(stream3, stream3 && stream3.isTTY);
10098
+ function getSupportLevel(stream4) {
10099
+ const level = supportsColor(stream4, stream4 && stream4.isTTY);
10096
10100
  return translateLevel(level);
10097
10101
  }
10098
10102
  module.exports = {
@@ -10108,14 +10112,14 @@ var require_node = __commonJS({
10108
10112
  "../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js"(exports, module) {
10109
10113
  "use strict";
10110
10114
  var tty = __require("tty");
10111
- var util = __require("util");
10115
+ var util3 = __require("util");
10112
10116
  exports.init = init;
10113
10117
  exports.log = log;
10114
10118
  exports.formatArgs = formatArgs;
10115
10119
  exports.save = save;
10116
10120
  exports.load = load;
10117
10121
  exports.useColors = useColors;
10118
- exports.destroy = util.deprecate(
10122
+ exports.destroy = util3.deprecate(
10119
10123
  () => {
10120
10124
  },
10121
10125
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -10246,7 +10250,7 @@ var require_node = __commonJS({
10246
10250
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
10247
10251
  }
10248
10252
  function log(...args) {
10249
- return process.stderr.write(util.format(...args) + "\n");
10253
+ return process.stderr.write(util3.format(...args) + "\n");
10250
10254
  }
10251
10255
  function save(namespaces) {
10252
10256
  if (namespaces) {
@@ -10269,11 +10273,11 @@ var require_node = __commonJS({
10269
10273
  var { formatters } = module.exports;
10270
10274
  formatters.o = function(v) {
10271
10275
  this.inspectOpts.colors = this.useColors;
10272
- return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
10276
+ return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
10273
10277
  };
10274
10278
  formatters.O = function(v) {
10275
10279
  this.inspectOpts.colors = this.useColors;
10276
- return util.inspect(v, this.inspectOpts);
10280
+ return util3.inspect(v, this.inspectOpts);
10277
10281
  };
10278
10282
  }
10279
10283
  });
@@ -11790,16 +11794,17 @@ var Authenticator = class extends Emittery {
11790
11794
  };
11791
11795
  var Authenticator_default = Authenticator;
11792
11796
 
11793
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/bind.js
11797
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/bind.js
11794
11798
  function bind(fn, thisArg) {
11795
11799
  return function wrap() {
11796
11800
  return fn.apply(thisArg, arguments);
11797
11801
  };
11798
11802
  }
11799
11803
 
11800
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/utils.js
11804
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/utils.js
11801
11805
  var { toString } = Object.prototype;
11802
11806
  var { getPrototypeOf } = Object;
11807
+ var { iterator: iterator2, toStringTag } = Symbol;
11803
11808
  var kindOf = ((cache) => (thing) => {
11804
11809
  const str = toString.call(thing);
11805
11810
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -11834,7 +11839,7 @@ var isPlainObject = (val) => {
11834
11839
  return false;
11835
11840
  }
11836
11841
  const prototype3 = getPrototypeOf(val);
11837
- return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
11842
+ return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(toStringTag in val) && !(iterator2 in val);
11838
11843
  };
11839
11844
  var isDate = kindOfTest("Date");
11840
11845
  var isFile = kindOfTest("File");
@@ -11842,10 +11847,12 @@ var isBlob = kindOfTest("Blob");
11842
11847
  var isFileList = kindOfTest("FileList");
11843
11848
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
11844
11849
  var isFormData = (thing) => {
11845
- const pattern = "[object FormData]";
11846
- return thing && (typeof FormData === "function" && thing instanceof FormData || toString.call(thing) === pattern || isFunction(thing.toString) && thing.toString() === pattern);
11850
+ let kind;
11851
+ return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
11852
+ kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
11847
11853
  };
11848
11854
  var isURLSearchParams = kindOfTest("URLSearchParams");
11855
+ var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
11849
11856
  var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
11850
11857
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
11851
11858
  if (obj === null || typeof obj === "undefined") {
@@ -11883,7 +11890,11 @@ function findKey(obj, key) {
11883
11890
  }
11884
11891
  return null;
11885
11892
  }
11886
- var _global = typeof self === "undefined" ? typeof global === "undefined" ? void 0 : global : self;
11893
+ var _global = (() => {
11894
+ if (typeof globalThis !== "undefined")
11895
+ return globalThis;
11896
+ return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
11897
+ })();
11887
11898
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
11888
11899
  function merge() {
11889
11900
  const { caseless } = isContextDefined(this) && this || {};
@@ -11980,10 +11991,10 @@ var isTypedArray = ((TypedArray) => {
11980
11991
  };
11981
11992
  })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
11982
11993
  var forEachEntry = (obj, fn) => {
11983
- const generator = obj && obj[Symbol.iterator];
11984
- const iterator2 = generator.call(obj);
11994
+ const generator = obj && obj[iterator2];
11995
+ const _iterator = generator.call(obj);
11985
11996
  let result;
11986
- while ((result = iterator2.next()) && !result.done) {
11997
+ while ((result = _iterator.next()) && !result.done) {
11987
11998
  const pair = result.value;
11988
11999
  fn.call(obj, pair[0], pair[1]);
11989
12000
  }
@@ -11999,7 +12010,7 @@ var matchAll = (regExp, str) => {
11999
12010
  var isHTMLForm = kindOfTest("HTMLFormElement");
12000
12011
  var toCamelCase = (str) => {
12001
12012
  return str.toLowerCase().replace(
12002
- /[_-\s]([a-z\d])(\w*)/g,
12013
+ /[-_\s]([a-z\d])(\w*)/g,
12003
12014
  function replacer(m, p1, p2) {
12004
12015
  return p1.toUpperCase() + p2;
12005
12016
  }
@@ -12011,8 +12022,9 @@ var reduceDescriptors = (obj, reducer) => {
12011
12022
  const descriptors2 = Object.getOwnPropertyDescriptors(obj);
12012
12023
  const reducedDescriptors = {};
12013
12024
  forEach(descriptors2, (descriptor, name) => {
12014
- if (reducer(descriptor, name, obj) !== false) {
12015
- reducedDescriptors[name] = descriptor;
12025
+ let ret;
12026
+ if ((ret = reducer(descriptor, name, obj)) !== false) {
12027
+ reducedDescriptors[name] = ret || descriptor;
12016
12028
  }
12017
12029
  });
12018
12030
  Object.defineProperties(obj, reducedDescriptors);
@@ -12050,9 +12062,11 @@ var toObjectSet = (arrayOrString, delimiter) => {
12050
12062
  var noop = () => {
12051
12063
  };
12052
12064
  var toFiniteNumber = (value, defaultValue) => {
12053
- value = +value;
12054
- return Number.isFinite(value) ? value : defaultValue;
12065
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
12055
12066
  };
12067
+ function isSpecCompliantForm(thing) {
12068
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator2]);
12069
+ }
12056
12070
  var toJSONObject = (obj) => {
12057
12071
  const stack = new Array(10);
12058
12072
  const visit = (source, i) => {
@@ -12075,6 +12089,29 @@ var toJSONObject = (obj) => {
12075
12089
  };
12076
12090
  return visit(obj, 0);
12077
12091
  };
12092
+ var isAsyncFn = kindOfTest("AsyncFunction");
12093
+ var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
12094
+ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
12095
+ if (setImmediateSupported) {
12096
+ return setImmediate;
12097
+ }
12098
+ return postMessageSupported ? ((token, callbacks) => {
12099
+ _global.addEventListener("message", ({ source, data }) => {
12100
+ if (source === _global && data === token) {
12101
+ callbacks.length && callbacks.shift()();
12102
+ }
12103
+ }, false);
12104
+ return (cb) => {
12105
+ callbacks.push(cb);
12106
+ _global.postMessage(token, "*");
12107
+ };
12108
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
12109
+ })(
12110
+ typeof setImmediate === "function",
12111
+ isFunction(_global.postMessage)
12112
+ );
12113
+ var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
12114
+ var isIterable = (thing) => thing != null && isFunction(thing[iterator2]);
12078
12115
  var utils_default = {
12079
12116
  isArray,
12080
12117
  isArrayBuffer,
@@ -12086,6 +12123,10 @@ var utils_default = {
12086
12123
  isBoolean,
12087
12124
  isObject,
12088
12125
  isPlainObject,
12126
+ isReadableStream,
12127
+ isRequest,
12128
+ isResponse,
12129
+ isHeaders,
12089
12130
  isUndefined,
12090
12131
  isDate,
12091
12132
  isFile,
@@ -12122,10 +12163,16 @@ var utils_default = {
12122
12163
  findKey,
12123
12164
  global: _global,
12124
12165
  isContextDefined,
12125
- toJSONObject
12166
+ isSpecCompliantForm,
12167
+ toJSONObject,
12168
+ isAsyncFn,
12169
+ isThenable,
12170
+ setImmediate: _setImmediate,
12171
+ asap,
12172
+ isIterable
12126
12173
  };
12127
12174
 
12128
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/core/AxiosError.js
12175
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/AxiosError.js
12129
12176
  function AxiosError(message, code, config, request, response) {
12130
12177
  Error.call(this);
12131
12178
  if (Error.captureStackTrace) {
@@ -12138,7 +12185,10 @@ function AxiosError(message, code, config, request, response) {
12138
12185
  code && (this.code = code);
12139
12186
  config && (this.config = config);
12140
12187
  request && (this.request = request);
12141
- response && (this.response = response);
12188
+ if (response) {
12189
+ this.response = response;
12190
+ this.status = response.status ? response.status : null;
12191
+ }
12142
12192
  }
12143
12193
  utils_default.inherits(AxiosError, Error, {
12144
12194
  toJSON: function toJSON() {
@@ -12157,7 +12207,7 @@ utils_default.inherits(AxiosError, Error, {
12157
12207
  // Axios
12158
12208
  config: utils_default.toJSONObject(this.config),
12159
12209
  code: this.code,
12160
- status: this.response && this.response.status ? this.response.status : null
12210
+ status: this.status
12161
12211
  };
12162
12212
  }
12163
12213
  });
@@ -12197,11 +12247,11 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
12197
12247
  };
12198
12248
  var AxiosError_default = AxiosError;
12199
12249
 
12200
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/env/classes/FormData.js
12250
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/node/classes/FormData.js
12201
12251
  var import_form_data = __toESM(require_form_data(), 1);
12202
12252
  var FormData_default = import_form_data.default;
12203
12253
 
12204
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/toFormData.js
12254
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/toFormData.js
12205
12255
  function isVisitable(thing) {
12206
12256
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12207
12257
  }
@@ -12222,9 +12272,6 @@ function isFlatArray(arr) {
12222
12272
  var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
12223
12273
  return /^is[A-Z]/.test(prop);
12224
12274
  });
12225
- function isSpecCompliant(thing) {
12226
- return thing && utils_default.isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator];
12227
- }
12228
12275
  function toFormData(obj, formData, options) {
12229
12276
  if (!utils_default.isObject(obj)) {
12230
12277
  throw new TypeError("target must be an object");
@@ -12242,7 +12289,7 @@ function toFormData(obj, formData, options) {
12242
12289
  const dots = options.dots;
12243
12290
  const indexes = options.indexes;
12244
12291
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
12245
- const useBlob = _Blob && isSpecCompliant(formData);
12292
+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
12246
12293
  if (!utils_default.isFunction(visitor)) {
12247
12294
  throw new TypeError("visitor must be a function");
12248
12295
  }
@@ -12266,7 +12313,7 @@ function toFormData(obj, formData, options) {
12266
12313
  if (utils_default.endsWith(key, "{}")) {
12267
12314
  key = metaTokens ? key : key.slice(0, -2);
12268
12315
  value = JSON.stringify(value);
12269
- } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]") && (arr = utils_default.toArray(value)))) {
12316
+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
12270
12317
  key = removeBrackets(key);
12271
12318
  arr.forEach(function each(el, index) {
12272
12319
  !(utils_default.isUndefined(el) || el === null) && formData.append(
@@ -12319,7 +12366,7 @@ function toFormData(obj, formData, options) {
12319
12366
  }
12320
12367
  var toFormData_default = toFormData;
12321
12368
 
12322
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
12369
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
12323
12370
  function encode(str) {
12324
12371
  const charMap = {
12325
12372
  "!": "%21",
@@ -12352,7 +12399,7 @@ prototype2.toString = function toString2(encoder) {
12352
12399
  };
12353
12400
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
12354
12401
 
12355
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/buildURL.js
12402
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/buildURL.js
12356
12403
  function encode2(val) {
12357
12404
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
12358
12405
  }
@@ -12361,6 +12408,11 @@ function buildURL(url2, params, options) {
12361
12408
  return url2;
12362
12409
  }
12363
12410
  const _encode = options && options.encode || encode2;
12411
+ if (utils_default.isFunction(options)) {
12412
+ options = {
12413
+ serialize: options
12414
+ };
12415
+ }
12364
12416
  const serializeFn = options && options.serialize;
12365
12417
  let serializedParams;
12366
12418
  if (serializeFn) {
@@ -12378,7 +12430,7 @@ function buildURL(url2, params, options) {
12378
12430
  return url2;
12379
12431
  }
12380
12432
 
12381
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/core/InterceptorManager.js
12433
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/InterceptorManager.js
12382
12434
  var InterceptorManager = class {
12383
12435
  constructor() {
12384
12436
  this.handlers = [];
@@ -12442,37 +12494,79 @@ var InterceptorManager = class {
12442
12494
  };
12443
12495
  var InterceptorManager_default = InterceptorManager;
12444
12496
 
12445
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/defaults/transitional.js
12497
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/defaults/transitional.js
12446
12498
  var transitional_default = {
12447
12499
  silentJSONParsing: true,
12448
12500
  forcedJSONParsing: true,
12449
12501
  clarifyTimeoutError: false
12450
12502
  };
12451
12503
 
12452
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
12504
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/node/index.js
12505
+ import crypto from "crypto";
12506
+
12507
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
12453
12508
  import url from "url";
12454
12509
  var URLSearchParams_default = url.URLSearchParams;
12455
12510
 
12456
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/platform/node/classes/FormData.js
12457
- var import_form_data2 = __toESM(require_form_data(), 1);
12458
- var FormData_default2 = import_form_data2.default;
12459
-
12460
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/platform/node/index.js
12511
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/node/index.js
12512
+ var ALPHA = "abcdefghijklmnopqrstuvwxyz";
12513
+ var DIGIT = "0123456789";
12514
+ var ALPHABET = {
12515
+ DIGIT,
12516
+ ALPHA,
12517
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
12518
+ };
12519
+ var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
12520
+ let str = "";
12521
+ const { length } = alphabet;
12522
+ const randomValues = new Uint32Array(size);
12523
+ crypto.randomFillSync(randomValues);
12524
+ for (let i = 0; i < size; i++) {
12525
+ str += alphabet[randomValues[i] % length];
12526
+ }
12527
+ return str;
12528
+ };
12461
12529
  var node_default = {
12462
12530
  isNode: true,
12463
12531
  classes: {
12464
12532
  URLSearchParams: URLSearchParams_default,
12465
- FormData: FormData_default2,
12533
+ FormData: FormData_default,
12466
12534
  Blob: typeof Blob !== "undefined" && Blob || null
12467
12535
  },
12536
+ ALPHABET,
12537
+ generateString,
12468
12538
  protocols: ["http", "https", "file", "data"]
12469
12539
  };
12470
12540
 
12471
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
12541
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/common/utils.js
12542
+ var utils_exports = {};
12543
+ __export(utils_exports, {
12544
+ hasBrowserEnv: () => hasBrowserEnv,
12545
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
12546
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
12547
+ navigator: () => _navigator,
12548
+ origin: () => origin
12549
+ });
12550
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
12551
+ var _navigator = typeof navigator === "object" && navigator || void 0;
12552
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
12553
+ var hasStandardBrowserWebWorkerEnv = (() => {
12554
+ return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
12555
+ self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
12556
+ })();
12557
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
12558
+
12559
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/index.js
12560
+ var platform_default = {
12561
+ ...utils_exports,
12562
+ ...node_default
12563
+ };
12564
+
12565
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
12472
12566
  function toURLEncodedForm(data, options) {
12473
- return toFormData_default(data, new node_default.classes.URLSearchParams(), Object.assign({
12567
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
12474
12568
  visitor: function(value, key, path, helpers) {
12475
- if (node_default.isNode && utils_default.isBuffer(value)) {
12569
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
12476
12570
  this.append(key, value.toString("base64"));
12477
12571
  return false;
12478
12572
  }
@@ -12481,7 +12575,7 @@ function toURLEncodedForm(data, options) {
12481
12575
  }, options));
12482
12576
  }
12483
12577
 
12484
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/formDataToJSON.js
12578
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/formDataToJSON.js
12485
12579
  function parsePropPath(name) {
12486
12580
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
12487
12581
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -12502,6 +12596,8 @@ function arrayToObject(arr) {
12502
12596
  function formDataToJSON(formData) {
12503
12597
  function buildPath(path, value, target, index) {
12504
12598
  let name = path[index++];
12599
+ if (name === "__proto__")
12600
+ return true;
12505
12601
  const isNumericKey = Number.isFinite(+name);
12506
12602
  const isLast = index >= path.length;
12507
12603
  name = !name && utils_default.isArray(target) ? target.length : name;
@@ -12533,10 +12629,7 @@ function formDataToJSON(formData) {
12533
12629
  }
12534
12630
  var formDataToJSON_default = formDataToJSON;
12535
12631
 
12536
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/defaults/index.js
12537
- var DEFAULT_CONTENT_TYPE = {
12538
- "Content-Type": void 0
12539
- };
12632
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/defaults/index.js
12540
12633
  function stringifySafely(rawValue, parser, encoder) {
12541
12634
  if (utils_default.isString(rawValue)) {
12542
12635
  try {
@@ -12552,7 +12645,7 @@ function stringifySafely(rawValue, parser, encoder) {
12552
12645
  }
12553
12646
  var defaults = {
12554
12647
  transitional: transitional_default,
12555
- adapter: ["xhr", "http"],
12648
+ adapter: ["xhr", "http", "fetch"],
12556
12649
  transformRequest: [function transformRequest(data, headers) {
12557
12650
  const contentType = headers.getContentType() || "";
12558
12651
  const hasJSONContentType = contentType.indexOf("application/json") > -1;
@@ -12562,12 +12655,9 @@ var defaults = {
12562
12655
  }
12563
12656
  const isFormData2 = utils_default.isFormData(data);
12564
12657
  if (isFormData2) {
12565
- if (!hasJSONContentType) {
12566
- return data;
12567
- }
12568
12658
  return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
12569
12659
  }
12570
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
12660
+ 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)) {
12571
12661
  return data;
12572
12662
  }
12573
12663
  if (utils_default.isArrayBufferView(data)) {
@@ -12601,6 +12691,9 @@ var defaults = {
12601
12691
  const transitional2 = this.transitional || defaults.transitional;
12602
12692
  const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
12603
12693
  const JSONRequested = this.responseType === "json";
12694
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
12695
+ return data;
12696
+ }
12604
12697
  if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
12605
12698
  const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
12606
12699
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
@@ -12627,27 +12720,25 @@ var defaults = {
12627
12720
  maxContentLength: -1,
12628
12721
  maxBodyLength: -1,
12629
12722
  env: {
12630
- FormData: node_default.classes.FormData,
12631
- Blob: node_default.classes.Blob
12723
+ FormData: platform_default.classes.FormData,
12724
+ Blob: platform_default.classes.Blob
12632
12725
  },
12633
12726
  validateStatus: function validateStatus(status) {
12634
12727
  return status >= 200 && status < 300;
12635
12728
  },
12636
12729
  headers: {
12637
12730
  common: {
12638
- "Accept": "application/json, text/plain, */*"
12731
+ "Accept": "application/json, text/plain, */*",
12732
+ "Content-Type": void 0
12639
12733
  }
12640
12734
  }
12641
12735
  };
12642
- utils_default.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
12736
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
12643
12737
  defaults.headers[method] = {};
12644
12738
  });
12645
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
12646
- defaults.headers[method] = utils_default.merge(DEFAULT_CONTENT_TYPE);
12647
- });
12648
12739
  var defaults_default = defaults;
12649
12740
 
12650
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/parseHeaders.js
12741
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/parseHeaders.js
12651
12742
  var ignoreDuplicateOf = utils_default.toObjectSet([
12652
12743
  "age",
12653
12744
  "authorization",
@@ -12692,7 +12783,7 @@ var parseHeaders_default = (rawHeaders) => {
12692
12783
  return parsed;
12693
12784
  };
12694
12785
 
12695
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/core/AxiosHeaders.js
12786
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/AxiosHeaders.js
12696
12787
  var $internals = Symbol("internals");
12697
12788
  function normalizeHeader(header) {
12698
12789
  return header && String(header).trim().toLowerCase();
@@ -12712,13 +12803,14 @@ function parseTokens(str) {
12712
12803
  }
12713
12804
  return tokens;
12714
12805
  }
12715
- function isValidHeaderName(str) {
12716
- return /^[-_a-zA-Z]+$/.test(str.trim());
12717
- }
12718
- function matchHeaderValue(context, value, header, filter2) {
12806
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12807
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12719
12808
  if (utils_default.isFunction(filter2)) {
12720
12809
  return filter2.call(this, value, header);
12721
12810
  }
12811
+ if (isHeaderNameFilter) {
12812
+ value = header;
12813
+ }
12722
12814
  if (!utils_default.isString(value))
12723
12815
  return;
12724
12816
  if (utils_default.isString(filter2)) {
@@ -12765,6 +12857,15 @@ var AxiosHeaders = class {
12765
12857
  setHeaders(header, valueOrRewrite);
12766
12858
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12767
12859
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12860
+ } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12861
+ let obj = {}, dest, key;
12862
+ for (const entry of header) {
12863
+ if (!utils_default.isArray(entry)) {
12864
+ throw TypeError("Object iterator must return a key-value pair");
12865
+ }
12866
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12867
+ }
12868
+ setHeaders(obj, valueOrRewrite);
12768
12869
  } else {
12769
12870
  header != null && setHeader(valueOrRewrite, header, rewrite);
12770
12871
  }
@@ -12796,7 +12897,7 @@ var AxiosHeaders = class {
12796
12897
  header = normalizeHeader(header);
12797
12898
  if (header) {
12798
12899
  const key = utils_default.findKey(this, header);
12799
- return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
12900
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
12800
12901
  }
12801
12902
  return false;
12802
12903
  }
@@ -12820,8 +12921,18 @@ var AxiosHeaders = class {
12820
12921
  }
12821
12922
  return deleted;
12822
12923
  }
12823
- clear() {
12824
- return Object.keys(this).forEach(this.delete.bind(this));
12924
+ clear(matcher) {
12925
+ const keys = Object.keys(this);
12926
+ let i = keys.length;
12927
+ let deleted = false;
12928
+ while (i--) {
12929
+ const key = keys[i];
12930
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
12931
+ delete this[key];
12932
+ deleted = true;
12933
+ }
12934
+ }
12935
+ return deleted;
12825
12936
  }
12826
12937
  normalize(format) {
12827
12938
  const self2 = this;
@@ -12858,6 +12969,9 @@ var AxiosHeaders = class {
12858
12969
  toString() {
12859
12970
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12860
12971
  }
12972
+ getSetCookie() {
12973
+ return this.get("set-cookie") || [];
12974
+ }
12861
12975
  get [Symbol.toStringTag]() {
12862
12976
  return "AxiosHeaders";
12863
12977
  }
@@ -12886,12 +13000,20 @@ var AxiosHeaders = class {
12886
13000
  return this;
12887
13001
  }
12888
13002
  };
12889
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent"]);
12890
- utils_default.freezeMethods(AxiosHeaders.prototype);
13003
+ AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
13004
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
13005
+ let mapped = key[0].toUpperCase() + key.slice(1);
13006
+ return {
13007
+ get: () => value,
13008
+ set(headerValue) {
13009
+ this[mapped] = headerValue;
13010
+ }
13011
+ };
13012
+ });
12891
13013
  utils_default.freezeMethods(AxiosHeaders);
12892
13014
  var AxiosHeaders_default = AxiosHeaders;
12893
13015
 
12894
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/core/transformData.js
13016
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/transformData.js
12895
13017
  function transformData(fns, response) {
12896
13018
  const config = this || defaults_default;
12897
13019
  const context = response || config;
@@ -12904,12 +13026,12 @@ function transformData(fns, response) {
12904
13026
  return data;
12905
13027
  }
12906
13028
 
12907
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/cancel/isCancel.js
13029
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/cancel/isCancel.js
12908
13030
  function isCancel(value) {
12909
13031
  return !!(value && value.__CANCEL__);
12910
13032
  }
12911
13033
 
12912
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/cancel/CanceledError.js
13034
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/cancel/CanceledError.js
12913
13035
  function CanceledError(message, config, request) {
12914
13036
  AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
12915
13037
  this.name = "CanceledError";
@@ -12919,7 +13041,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
12919
13041
  });
12920
13042
  var CanceledError_default = CanceledError;
12921
13043
 
12922
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/core/settle.js
13044
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/settle.js
12923
13045
  function settle(resolve, reject, response) {
12924
13046
  const validateStatus2 = response.config.validateStatus;
12925
13047
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -12935,44 +13057,46 @@ function settle(resolve, reject, response) {
12935
13057
  }
12936
13058
  }
12937
13059
 
12938
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13060
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
12939
13061
  function isAbsoluteURL(url2) {
12940
13062
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
12941
13063
  }
12942
13064
 
12943
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/combineURLs.js
13065
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/combineURLs.js
12944
13066
  function combineURLs(baseURL, relativeURL) {
12945
- return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13067
+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
12946
13068
  }
12947
13069
 
12948
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/core/buildFullPath.js
12949
- function buildFullPath(baseURL, requestedURL) {
12950
- if (baseURL && !isAbsoluteURL(requestedURL)) {
13070
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/buildFullPath.js
13071
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
13072
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
13073
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
12951
13074
  return combineURLs(baseURL, requestedURL);
12952
13075
  }
12953
13076
  return requestedURL;
12954
13077
  }
12955
13078
 
12956
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/adapters/http.js
13079
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/http.js
12957
13080
  var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
12958
13081
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
12959
13082
  import http from "http";
12960
13083
  import https from "https";
13084
+ import util2 from "util";
12961
13085
  import zlib from "zlib";
12962
13086
 
12963
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/env/data.js
12964
- var VERSION = "1.2.1";
13087
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/env/data.js
13088
+ var VERSION = "1.9.0";
12965
13089
 
12966
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/parseProtocol.js
13090
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/parseProtocol.js
12967
13091
  function parseProtocol(url2) {
12968
13092
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
12969
13093
  return match && match[1] || "";
12970
13094
  }
12971
13095
 
12972
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/fromDataURI.js
13096
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/fromDataURI.js
12973
13097
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
12974
13098
  function fromDataURI(uri, asBlob, options) {
12975
- const _Blob = options && options.Blob || node_default.classes.Blob;
13099
+ const _Blob = options && options.Blob || platform_default.classes.Blob;
12976
13100
  const protocol = parseProtocol(uri);
12977
13101
  if (asBlob === void 0 && _Blob) {
12978
13102
  asBlob = true;
@@ -12998,75 +13122,11 @@ function fromDataURI(uri, asBlob, options) {
12998
13122
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
12999
13123
  }
13000
13124
 
13001
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/adapters/http.js
13002
- import stream2 from "stream";
13125
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/http.js
13126
+ import stream3 from "stream";
13003
13127
 
13004
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13128
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
13005
13129
  import stream from "stream";
13006
-
13007
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/throttle.js
13008
- function throttle(fn, freq) {
13009
- let timestamp = 0;
13010
- const threshold = 1e3 / freq;
13011
- let timer = null;
13012
- return function throttled(force, args) {
13013
- const now = Date.now();
13014
- if (force || now - timestamp > threshold) {
13015
- if (timer) {
13016
- clearTimeout(timer);
13017
- timer = null;
13018
- }
13019
- timestamp = now;
13020
- return fn.apply(null, args);
13021
- }
13022
- if (!timer) {
13023
- timer = setTimeout(() => {
13024
- timer = null;
13025
- timestamp = Date.now();
13026
- return fn.apply(null, args);
13027
- }, threshold - (now - timestamp));
13028
- }
13029
- };
13030
- }
13031
- var throttle_default = throttle;
13032
-
13033
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/speedometer.js
13034
- function speedometer(samplesCount, min) {
13035
- samplesCount = samplesCount || 10;
13036
- const bytes = new Array(samplesCount);
13037
- const timestamps = new Array(samplesCount);
13038
- let head = 0;
13039
- let tail = 0;
13040
- let firstSampleTS;
13041
- min = min !== void 0 ? min : 1e3;
13042
- return function push(chunkLength) {
13043
- const now = Date.now();
13044
- const startedAt = timestamps[tail];
13045
- if (!firstSampleTS) {
13046
- firstSampleTS = now;
13047
- }
13048
- bytes[head] = chunkLength;
13049
- timestamps[head] = now;
13050
- let i = tail;
13051
- let bytesCount = 0;
13052
- while (i !== head) {
13053
- bytesCount += bytes[i++];
13054
- i = i % samplesCount;
13055
- }
13056
- head = (head + 1) % samplesCount;
13057
- if (head === tail) {
13058
- tail = (tail + 1) % samplesCount;
13059
- }
13060
- if (now - firstSampleTS < min) {
13061
- return;
13062
- }
13063
- const passed = startedAt && now - startedAt;
13064
- return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
13065
- };
13066
- }
13067
- var speedometer_default = speedometer;
13068
-
13069
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13070
13130
  var kInternals = Symbol("internals");
13071
13131
  var AxiosTransformStream = class extends stream.Transform {
13072
13132
  constructor(options) {
@@ -13083,11 +13143,8 @@ var AxiosTransformStream = class extends stream.Transform {
13083
13143
  super({
13084
13144
  readableHighWaterMark: options.chunkSize
13085
13145
  });
13086
- const self2 = this;
13087
13146
  const internals = this[kInternals] = {
13088
- length: options.length,
13089
13147
  timeWindow: options.timeWindow,
13090
- ticksRate: options.ticksRate,
13091
13148
  chunkSize: options.chunkSize,
13092
13149
  maxRate: options.maxRate,
13093
13150
  minChunkSize: options.minChunkSize,
@@ -13098,7 +13155,6 @@ var AxiosTransformStream = class extends stream.Transform {
13098
13155
  bytes: 0,
13099
13156
  onReadCallback: null
13100
13157
  };
13101
- const _speedometer = speedometer_default(internals.ticksRate * options.samplesCount, internals.timeWindow);
13102
13158
  this.on("newListener", (event) => {
13103
13159
  if (event === "progress") {
13104
13160
  if (!internals.isCaptured) {
@@ -13106,31 +13162,6 @@ var AxiosTransformStream = class extends stream.Transform {
13106
13162
  }
13107
13163
  }
13108
13164
  });
13109
- let bytesNotified = 0;
13110
- internals.updateProgress = throttle_default(function throttledHandler() {
13111
- const totalBytes = internals.length;
13112
- const bytesTransferred = internals.bytesSeen;
13113
- const progressBytes = bytesTransferred - bytesNotified;
13114
- if (!progressBytes || self2.destroyed)
13115
- return;
13116
- const rate = _speedometer(progressBytes);
13117
- bytesNotified = bytesTransferred;
13118
- process.nextTick(() => {
13119
- self2.emit("progress", {
13120
- "loaded": bytesTransferred,
13121
- "total": totalBytes,
13122
- "progress": totalBytes ? bytesTransferred / totalBytes : void 0,
13123
- "bytes": progressBytes,
13124
- "rate": rate ? rate : void 0,
13125
- "estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
13126
- });
13127
- });
13128
- }, internals.ticksRate);
13129
- const onFinish = () => {
13130
- internals.updateProgress(true);
13131
- };
13132
- this.once("end", onFinish);
13133
- this.once("error", onFinish);
13134
13165
  }
13135
13166
  _read(size) {
13136
13167
  const internals = this[kInternals];
@@ -13140,7 +13171,6 @@ var AxiosTransformStream = class extends stream.Transform {
13140
13171
  return super._read(size);
13141
13172
  }
13142
13173
  _transform(chunk, encoding, callback) {
13143
- const self2 = this;
13144
13174
  const internals = this[kInternals];
13145
13175
  const maxRate = internals.maxRate;
13146
13176
  const readableHighWaterMark = this.readableHighWaterMark;
@@ -13148,14 +13178,12 @@ var AxiosTransformStream = class extends stream.Transform {
13148
13178
  const divider = 1e3 / timeWindow;
13149
13179
  const bytesThreshold = maxRate / divider;
13150
13180
  const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
13151
- function pushChunk(_chunk, _callback) {
13181
+ const pushChunk = (_chunk, _callback) => {
13152
13182
  const bytes = Buffer.byteLength(_chunk);
13153
13183
  internals.bytesSeen += bytes;
13154
13184
  internals.bytes += bytes;
13155
- if (internals.isCaptured) {
13156
- internals.updateProgress();
13157
- }
13158
- if (self2.push(_chunk)) {
13185
+ internals.isCaptured && this.emit("progress", internals.bytesSeen);
13186
+ if (this.push(_chunk)) {
13159
13187
  process.nextTick(_callback);
13160
13188
  } else {
13161
13189
  internals.onReadCallback = () => {
@@ -13163,7 +13191,7 @@ var AxiosTransformStream = class extends stream.Transform {
13163
13191
  process.nextTick(_callback);
13164
13192
  };
13165
13193
  }
13166
- }
13194
+ };
13167
13195
  const transformChunk = (_chunk, _callback) => {
13168
13196
  const chunkSize = Buffer.byteLength(_chunk);
13169
13197
  let chunkRemainder = null;
@@ -13209,37 +13237,284 @@ var AxiosTransformStream = class extends stream.Transform {
13209
13237
  }
13210
13238
  });
13211
13239
  }
13212
- setLength(length) {
13213
- this[kInternals].length = +length;
13214
- return this;
13215
- }
13216
13240
  };
13217
13241
  var AxiosTransformStream_default = AxiosTransformStream;
13218
13242
 
13219
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/adapters/http.js
13220
- import EventEmitter from "events";
13243
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/http.js
13244
+ import { EventEmitter } from "events";
13245
+
13246
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/formDataToStream.js
13247
+ import util from "util";
13248
+ import { Readable } from "stream";
13249
+
13250
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/readBlob.js
13251
+ var { asyncIterator } = Symbol;
13252
+ var readBlob = async function* (blob) {
13253
+ if (blob.stream) {
13254
+ yield* blob.stream();
13255
+ } else if (blob.arrayBuffer) {
13256
+ yield await blob.arrayBuffer();
13257
+ } else if (blob[asyncIterator]) {
13258
+ yield* blob[asyncIterator]();
13259
+ } else {
13260
+ yield blob;
13261
+ }
13262
+ };
13263
+ var readBlob_default = readBlob;
13264
+
13265
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/formDataToStream.js
13266
+ var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13267
+ var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13268
+ var CRLF = "\r\n";
13269
+ var CRLF_BYTES = textEncoder.encode(CRLF);
13270
+ var CRLF_BYTES_COUNT = 2;
13271
+ var FormDataPart = class {
13272
+ constructor(name, value) {
13273
+ const { escapeName } = this.constructor;
13274
+ const isStringValue = utils_default.isString(value);
13275
+ let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`;
13276
+ if (isStringValue) {
13277
+ value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
13278
+ } else {
13279
+ headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
13280
+ }
13281
+ this.headers = textEncoder.encode(headers + CRLF);
13282
+ this.contentLength = isStringValue ? value.byteLength : value.size;
13283
+ this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;
13284
+ this.name = name;
13285
+ this.value = value;
13286
+ }
13287
+ async *encode() {
13288
+ yield this.headers;
13289
+ const { value } = this;
13290
+ if (utils_default.isTypedArray(value)) {
13291
+ yield value;
13292
+ } else {
13293
+ yield* readBlob_default(value);
13294
+ }
13295
+ yield CRLF_BYTES;
13296
+ }
13297
+ static escapeName(name) {
13298
+ return String(name).replace(/[\r\n"]/g, (match) => ({
13299
+ "\r": "%0D",
13300
+ "\n": "%0A",
13301
+ '"': "%22"
13302
+ })[match]);
13303
+ }
13304
+ };
13305
+ var formDataToStream = (form, headersHandler, options) => {
13306
+ const {
13307
+ tag = "form-data-boundary",
13308
+ size = 25,
13309
+ boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
13310
+ } = options || {};
13311
+ if (!utils_default.isFormData(form)) {
13312
+ throw TypeError("FormData instance required");
13313
+ }
13314
+ if (boundary.length < 1 || boundary.length > 70) {
13315
+ throw Error("boundary must be 10-70 characters long");
13316
+ }
13317
+ const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13318
+ const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
13319
+ let contentLength = footerBytes.byteLength;
13320
+ const parts = Array.from(form.entries()).map(([name, value]) => {
13321
+ const part = new FormDataPart(name, value);
13322
+ contentLength += part.size;
13323
+ return part;
13324
+ });
13325
+ contentLength += boundaryBytes.byteLength * parts.length;
13326
+ contentLength = utils_default.toFiniteNumber(contentLength);
13327
+ const computedHeaders = {
13328
+ "Content-Type": `multipart/form-data; boundary=${boundary}`
13329
+ };
13330
+ if (Number.isFinite(contentLength)) {
13331
+ computedHeaders["Content-Length"] = contentLength;
13332
+ }
13333
+ headersHandler && headersHandler(computedHeaders);
13334
+ return Readable.from(async function* () {
13335
+ for (const part of parts) {
13336
+ yield boundaryBytes;
13337
+ yield* part.encode();
13338
+ }
13339
+ yield footerBytes;
13340
+ }());
13341
+ };
13342
+ var formDataToStream_default = formDataToStream;
13343
+
13344
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13345
+ import stream2 from "stream";
13346
+ var ZlibHeaderTransformStream = class extends stream2.Transform {
13347
+ __transform(chunk, encoding, callback) {
13348
+ this.push(chunk);
13349
+ callback();
13350
+ }
13351
+ _transform(chunk, encoding, callback) {
13352
+ if (chunk.length !== 0) {
13353
+ this._transform = this.__transform;
13354
+ if (chunk[0] !== 120) {
13355
+ const header = Buffer.alloc(2);
13356
+ header[0] = 120;
13357
+ header[1] = 156;
13358
+ this.push(header, encoding);
13359
+ }
13360
+ }
13361
+ this.__transform(chunk, encoding, callback);
13362
+ }
13363
+ };
13364
+ var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13365
+
13366
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/callbackify.js
13367
+ var callbackify = (fn, reducer) => {
13368
+ return utils_default.isAsyncFn(fn) ? function(...args) {
13369
+ const cb = args.pop();
13370
+ fn.apply(this, args).then((value) => {
13371
+ try {
13372
+ reducer ? cb(null, ...reducer(value)) : cb(null, value);
13373
+ } catch (err) {
13374
+ cb(err);
13375
+ }
13376
+ }, cb);
13377
+ } : fn;
13378
+ };
13379
+ var callbackify_default = callbackify;
13380
+
13381
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/speedometer.js
13382
+ function speedometer(samplesCount, min) {
13383
+ samplesCount = samplesCount || 10;
13384
+ const bytes = new Array(samplesCount);
13385
+ const timestamps = new Array(samplesCount);
13386
+ let head = 0;
13387
+ let tail = 0;
13388
+ let firstSampleTS;
13389
+ min = min !== void 0 ? min : 1e3;
13390
+ return function push(chunkLength) {
13391
+ const now = Date.now();
13392
+ const startedAt = timestamps[tail];
13393
+ if (!firstSampleTS) {
13394
+ firstSampleTS = now;
13395
+ }
13396
+ bytes[head] = chunkLength;
13397
+ timestamps[head] = now;
13398
+ let i = tail;
13399
+ let bytesCount = 0;
13400
+ while (i !== head) {
13401
+ bytesCount += bytes[i++];
13402
+ i = i % samplesCount;
13403
+ }
13404
+ head = (head + 1) % samplesCount;
13405
+ if (head === tail) {
13406
+ tail = (tail + 1) % samplesCount;
13407
+ }
13408
+ if (now - firstSampleTS < min) {
13409
+ return;
13410
+ }
13411
+ const passed = startedAt && now - startedAt;
13412
+ return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
13413
+ };
13414
+ }
13415
+ var speedometer_default = speedometer;
13416
+
13417
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/throttle.js
13418
+ function throttle(fn, freq) {
13419
+ let timestamp = 0;
13420
+ let threshold = 1e3 / freq;
13421
+ let lastArgs;
13422
+ let timer;
13423
+ const invoke = (args, now = Date.now()) => {
13424
+ timestamp = now;
13425
+ lastArgs = null;
13426
+ if (timer) {
13427
+ clearTimeout(timer);
13428
+ timer = null;
13429
+ }
13430
+ fn.apply(null, args);
13431
+ };
13432
+ const throttled = (...args) => {
13433
+ const now = Date.now();
13434
+ const passed = now - timestamp;
13435
+ if (passed >= threshold) {
13436
+ invoke(args, now);
13437
+ } else {
13438
+ lastArgs = args;
13439
+ if (!timer) {
13440
+ timer = setTimeout(() => {
13441
+ timer = null;
13442
+ invoke(lastArgs);
13443
+ }, threshold - passed);
13444
+ }
13445
+ }
13446
+ };
13447
+ const flush = () => lastArgs && invoke(lastArgs);
13448
+ return [throttled, flush];
13449
+ }
13450
+ var throttle_default = throttle;
13451
+
13452
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/progressEventReducer.js
13453
+ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13454
+ let bytesNotified = 0;
13455
+ const _speedometer = speedometer_default(50, 250);
13456
+ return throttle_default((e) => {
13457
+ const loaded = e.loaded;
13458
+ const total = e.lengthComputable ? e.total : void 0;
13459
+ const progressBytes = loaded - bytesNotified;
13460
+ const rate = _speedometer(progressBytes);
13461
+ const inRange = loaded <= total;
13462
+ bytesNotified = loaded;
13463
+ const data = {
13464
+ loaded,
13465
+ total,
13466
+ progress: total ? loaded / total : void 0,
13467
+ bytes: progressBytes,
13468
+ rate: rate ? rate : void 0,
13469
+ estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
13470
+ event: e,
13471
+ lengthComputable: total != null,
13472
+ [isDownloadStream ? "download" : "upload"]: true
13473
+ };
13474
+ listener(data);
13475
+ }, freq);
13476
+ };
13477
+ var progressEventDecorator = (total, throttled) => {
13478
+ const lengthComputable = total != null;
13479
+ return [(loaded) => throttled[0]({
13480
+ lengthComputable,
13481
+ total,
13482
+ loaded
13483
+ }), throttled[1]];
13484
+ };
13485
+ var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
13486
+
13487
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/http.js
13221
13488
  var zlibOptions = {
13222
13489
  flush: zlib.constants.Z_SYNC_FLUSH,
13223
13490
  finishFlush: zlib.constants.Z_SYNC_FLUSH
13224
13491
  };
13492
+ var brotliOptions = {
13493
+ flush: zlib.constants.BROTLI_OPERATION_FLUSH,
13494
+ finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
13495
+ };
13225
13496
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
13226
13497
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
13227
13498
  var isHttps = /https:?/;
13228
- var supportedProtocols = node_default.protocols.map((protocol) => {
13499
+ var supportedProtocols = platform_default.protocols.map((protocol) => {
13229
13500
  return protocol + ":";
13230
13501
  });
13231
- function dispatchBeforeRedirect(options) {
13502
+ var flushOnFinish = (stream4, [throttled, flush]) => {
13503
+ stream4.on("end", flush).on("error", flush);
13504
+ return throttled;
13505
+ };
13506
+ function dispatchBeforeRedirect(options, responseDetails) {
13232
13507
  if (options.beforeRedirects.proxy) {
13233
13508
  options.beforeRedirects.proxy(options);
13234
13509
  }
13235
13510
  if (options.beforeRedirects.config) {
13236
- options.beforeRedirects.config(options);
13511
+ options.beforeRedirects.config(options, responseDetails);
13237
13512
  }
13238
13513
  }
13239
13514
  function setProxy(options, configProxy, location2) {
13240
13515
  let proxy = configProxy;
13241
13516
  if (!proxy && proxy !== false) {
13242
- const proxyUrl = (0, import_proxy_from_env.getProxyForUrl)(location2);
13517
+ const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location2);
13243
13518
  if (proxyUrl) {
13244
13519
  proxy = new URL(proxyUrl);
13245
13520
  }
@@ -13270,21 +13545,59 @@ function setProxy(options, configProxy, location2) {
13270
13545
  };
13271
13546
  }
13272
13547
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
13548
+ var wrapAsync = (asyncExecutor) => {
13549
+ return new Promise((resolve, reject) => {
13550
+ let onDone;
13551
+ let isDone;
13552
+ const done = (value, isRejected) => {
13553
+ if (isDone)
13554
+ return;
13555
+ isDone = true;
13556
+ onDone && onDone(value, isRejected);
13557
+ };
13558
+ const _resolve = (value) => {
13559
+ done(value);
13560
+ resolve(value);
13561
+ };
13562
+ const _reject = (reason) => {
13563
+ done(reason, true);
13564
+ reject(reason);
13565
+ };
13566
+ asyncExecutor(_resolve, _reject, (onDoneHandler) => onDone = onDoneHandler).catch(_reject);
13567
+ });
13568
+ };
13569
+ var resolveFamily = ({ address, family }) => {
13570
+ if (!utils_default.isString(address)) {
13571
+ throw TypeError("address must be a string");
13572
+ }
13573
+ return {
13574
+ address,
13575
+ family: family || (address.indexOf(".") < 0 ? 6 : 4)
13576
+ };
13577
+ };
13578
+ var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
13273
13579
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13274
- return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {
13275
- let data = config.data;
13276
- const responseType = config.responseType;
13277
- const responseEncoding = config.responseEncoding;
13580
+ return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
13581
+ let { data, lookup, family } = config;
13582
+ const { responseType, responseEncoding } = config;
13278
13583
  const method = config.method.toUpperCase();
13279
- let isFinished;
13280
13584
  let isDone;
13281
13585
  let rejected = false;
13282
13586
  let req;
13587
+ if (lookup) {
13588
+ const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
13589
+ lookup = (hostname, opt, cb) => {
13590
+ _lookup(hostname, opt, (err, arg0, arg1) => {
13591
+ if (err) {
13592
+ return cb(err);
13593
+ }
13594
+ const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
13595
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
13596
+ });
13597
+ };
13598
+ }
13283
13599
  const emitter = new EventEmitter();
13284
- function onFinished() {
13285
- if (isFinished)
13286
- return;
13287
- isFinished = true;
13600
+ const onFinished = () => {
13288
13601
  if (config.cancelToken) {
13289
13602
  config.cancelToken.unsubscribe(abort);
13290
13603
  }
@@ -13292,23 +13605,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13292
13605
  config.signal.removeEventListener("abort", abort);
13293
13606
  }
13294
13607
  emitter.removeAllListeners();
13295
- }
13296
- function done(value, isRejected) {
13297
- if (isDone)
13298
- return;
13608
+ };
13609
+ onDone((value, isRejected) => {
13299
13610
  isDone = true;
13300
13611
  if (isRejected) {
13301
13612
  rejected = true;
13302
13613
  onFinished();
13303
13614
  }
13304
- isRejected ? rejectPromise(value) : resolvePromise(value);
13305
- }
13306
- const resolve = function resolve2(value) {
13307
- done(value);
13308
- };
13309
- const reject = function reject2(value) {
13310
- done(value, true);
13311
- };
13615
+ });
13312
13616
  function abort(reason) {
13313
13617
  emitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
13314
13618
  }
@@ -13319,8 +13623,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13319
13623
  config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
13320
13624
  }
13321
13625
  }
13322
- const fullPath = buildFullPath(config.baseURL, config.url);
13323
- const parsed = new URL(fullPath);
13626
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
13627
+ const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
13324
13628
  const protocol = parsed.protocol || supportedProtocols[0];
13325
13629
  if (protocol === "data:") {
13326
13630
  let convertedData;
@@ -13342,10 +13646,10 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13342
13646
  if (responseType === "text") {
13343
13647
  convertedData = convertedData.toString(responseEncoding);
13344
13648
  if (!responseEncoding || responseEncoding === "utf8") {
13345
- data = utils_default.stripBOM(convertedData);
13649
+ convertedData = utils_default.stripBOM(convertedData);
13346
13650
  }
13347
13651
  } else if (responseType === "stream") {
13348
- convertedData = stream2.Readable.from(convertedData);
13652
+ convertedData = stream3.Readable.from(convertedData);
13349
13653
  }
13350
13654
  return settle(resolve, reject, {
13351
13655
  data: convertedData,
@@ -13364,13 +13668,31 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13364
13668
  }
13365
13669
  const headers = AxiosHeaders_default.from(config.headers).normalize();
13366
13670
  headers.set("User-Agent", "axios/" + VERSION, false);
13367
- const onDownloadProgress = config.onDownloadProgress;
13368
- const onUploadProgress = config.onUploadProgress;
13671
+ const { onUploadProgress, onDownloadProgress } = config;
13369
13672
  const maxRate = config.maxRate;
13370
13673
  let maxUploadRate = void 0;
13371
13674
  let maxDownloadRate = void 0;
13372
- if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
13675
+ if (utils_default.isSpecCompliantForm(data)) {
13676
+ const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
13677
+ data = formDataToStream_default(data, (formHeaders) => {
13678
+ headers.set(formHeaders);
13679
+ }, {
13680
+ tag: `axios-${VERSION}-boundary`,
13681
+ boundary: userBoundary && userBoundary[1] || void 0
13682
+ });
13683
+ } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
13373
13684
  headers.set(data.getHeaders());
13685
+ if (!headers.hasContentLength()) {
13686
+ try {
13687
+ const knownLength = await util2.promisify(data.getLength).call(data);
13688
+ Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
13689
+ } catch (e) {
13690
+ }
13691
+ }
13692
+ } else if (utils_default.isBlob(data) || utils_default.isFile(data)) {
13693
+ data.size && headers.setContentType(data.type || "application/octet-stream");
13694
+ headers.setContentLength(data.size || 0);
13695
+ data = stream3.Readable.from(readBlob_default(data));
13374
13696
  } else if (data && !utils_default.isStream(data)) {
13375
13697
  if (Buffer.isBuffer(data)) {
13376
13698
  } else if (utils_default.isArrayBuffer(data)) {
@@ -13384,7 +13706,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13384
13706
  config
13385
13707
  ));
13386
13708
  }
13387
- headers.set("Content-Length", data.length, false);
13709
+ headers.setContentLength(data.length, false);
13388
13710
  if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
13389
13711
  return reject(new AxiosError_default(
13390
13712
  "Request body larger than maxBodyLength limit",
@@ -13402,17 +13724,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13402
13724
  }
13403
13725
  if (data && (onUploadProgress || maxUploadRate)) {
13404
13726
  if (!utils_default.isStream(data)) {
13405
- data = stream2.Readable.from(data, { objectMode: false });
13727
+ data = stream3.Readable.from(data, { objectMode: false });
13406
13728
  }
13407
- data = stream2.pipeline([data, new AxiosTransformStream_default({
13408
- length: contentLength,
13729
+ data = stream3.pipeline([data, new AxiosTransformStream_default({
13409
13730
  maxRate: utils_default.toFiniteNumber(maxUploadRate)
13410
13731
  })], utils_default.noop);
13411
- onUploadProgress && data.on("progress", (progress) => {
13412
- onUploadProgress(Object.assign(progress, {
13413
- upload: true
13414
- }));
13415
- });
13732
+ onUploadProgress && data.on("progress", flushOnFinish(
13733
+ data,
13734
+ progressEventDecorator(
13735
+ contentLength,
13736
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
13737
+ )
13738
+ ));
13416
13739
  }
13417
13740
  let auth = void 0;
13418
13741
  if (config.auth) {
@@ -13452,13 +13775,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13452
13775
  agents: { http: config.httpAgent, https: config.httpsAgent },
13453
13776
  auth,
13454
13777
  protocol,
13778
+ family,
13455
13779
  beforeRedirect: dispatchBeforeRedirect,
13456
13780
  beforeRedirects: {}
13457
13781
  };
13782
+ !utils_default.isUndefined(lookup) && (options.lookup = lookup);
13458
13783
  if (config.socketPath) {
13459
13784
  options.socketPath = config.socketPath;
13460
13785
  } else {
13461
- options.hostname = parsed.hostname;
13786
+ options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
13462
13787
  options.port = parsed.port;
13463
13788
  setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
13464
13789
  }
@@ -13491,16 +13816,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13491
13816
  return;
13492
13817
  const streams = [res];
13493
13818
  const responseLength = +res.headers["content-length"];
13494
- if (onDownloadProgress) {
13819
+ if (onDownloadProgress || maxDownloadRate) {
13495
13820
  const transformStream = new AxiosTransformStream_default({
13496
- length: utils_default.toFiniteNumber(responseLength),
13497
13821
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
13498
13822
  });
13499
- onDownloadProgress && transformStream.on("progress", (progress) => {
13500
- onDownloadProgress(Object.assign(progress, {
13501
- download: true
13502
- }));
13503
- });
13823
+ onDownloadProgress && transformStream.on("progress", flushOnFinish(
13824
+ transformStream,
13825
+ progressEventDecorator(
13826
+ responseLength,
13827
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
13828
+ )
13829
+ ));
13504
13830
  streams.push(transformStream);
13505
13831
  }
13506
13832
  let responseStream = res;
@@ -13509,22 +13835,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13509
13835
  if (method === "HEAD" || res.statusCode === 204) {
13510
13836
  delete res.headers["content-encoding"];
13511
13837
  }
13512
- switch (res.headers["content-encoding"]) {
13838
+ switch ((res.headers["content-encoding"] || "").toLowerCase()) {
13513
13839
  case "gzip":
13840
+ case "x-gzip":
13514
13841
  case "compress":
13842
+ case "x-compress":
13843
+ streams.push(zlib.createUnzip(zlibOptions));
13844
+ delete res.headers["content-encoding"];
13845
+ break;
13515
13846
  case "deflate":
13847
+ streams.push(new ZlibHeaderTransformStream_default());
13516
13848
  streams.push(zlib.createUnzip(zlibOptions));
13517
13849
  delete res.headers["content-encoding"];
13518
13850
  break;
13519
13851
  case "br":
13520
13852
  if (isBrotliSupported) {
13521
- streams.push(zlib.createBrotliDecompress(zlibOptions));
13853
+ streams.push(zlib.createBrotliDecompress(brotliOptions));
13522
13854
  delete res.headers["content-encoding"];
13523
13855
  }
13524
13856
  }
13525
13857
  }
13526
- responseStream = streams.length > 1 ? stream2.pipeline(streams, utils_default.noop) : streams[0];
13527
- const offListeners = stream2.finished(responseStream, () => {
13858
+ responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
13859
+ const offListeners = stream3.finished(responseStream, () => {
13528
13860
  offListeners();
13529
13861
  onFinished();
13530
13862
  });
@@ -13560,7 +13892,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13560
13892
  return;
13561
13893
  }
13562
13894
  const err = new AxiosError_default(
13563
- "maxContentLength size of " + config.maxContentLength + " exceeded",
13895
+ "stream has been aborted",
13564
13896
  AxiosError_default.ERR_BAD_RESPONSE,
13565
13897
  config,
13566
13898
  lastRequest
@@ -13584,7 +13916,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13584
13916
  }
13585
13917
  response.data = responseData;
13586
13918
  } catch (err) {
13587
- reject(AxiosError_default.from(err, null, config, response.request, response));
13919
+ return reject(AxiosError_default.from(err, null, config, response.request, response));
13588
13920
  }
13589
13921
  settle(resolve, reject, response);
13590
13922
  });
@@ -13608,7 +13940,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13608
13940
  });
13609
13941
  if (config.timeout) {
13610
13942
  const timeout = parseInt(config.timeout, 10);
13611
- if (isNaN(timeout)) {
13943
+ if (Number.isNaN(timeout)) {
13612
13944
  reject(new AxiosError_default(
13613
13945
  "error trying to parse `config.timeout` to int",
13614
13946
  AxiosError_default.ERR_BAD_OPTION_VALUE,
@@ -13656,144 +13988,181 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13656
13988
  });
13657
13989
  };
13658
13990
 
13659
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/cookies.js
13660
- var cookies_default = node_default.isStandardBrowserEnv ? (
13991
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
13992
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url2) => {
13993
+ url2 = new URL(url2, platform_default.origin);
13994
+ return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
13995
+ })(
13996
+ new URL(platform_default.origin),
13997
+ platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
13998
+ ) : () => true;
13999
+
14000
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/cookies.js
14001
+ var cookies_default = platform_default.hasStandardBrowserEnv ? (
13661
14002
  // Standard browser envs support document.cookie
13662
- function standardBrowserEnv() {
13663
- return {
13664
- write: function write(name, value, expires, path, domain, secure) {
13665
- const cookie = [];
13666
- cookie.push(name + "=" + encodeURIComponent(value));
13667
- if (utils_default.isNumber(expires)) {
13668
- cookie.push("expires=" + new Date(expires).toGMTString());
13669
- }
13670
- if (utils_default.isString(path)) {
13671
- cookie.push("path=" + path);
13672
- }
13673
- if (utils_default.isString(domain)) {
13674
- cookie.push("domain=" + domain);
13675
- }
13676
- if (secure === true) {
13677
- cookie.push("secure");
13678
- }
13679
- document.cookie = cookie.join("; ");
13680
- },
13681
- read: function read(name) {
13682
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
13683
- return match ? decodeURIComponent(match[3]) : null;
13684
- },
13685
- remove: function remove(name) {
13686
- this.write(name, "", Date.now() - 864e5);
13687
- }
13688
- };
13689
- }()
13690
- ) : (
13691
- // Non standard browser env (web workers, react-native) lack needed support.
13692
- function nonStandardBrowserEnv() {
13693
- return {
13694
- write: function write() {
13695
- },
13696
- read: function read() {
13697
- return null;
13698
- },
13699
- remove: function remove() {
13700
- }
13701
- };
13702
- }()
13703
- );
13704
-
13705
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
13706
- var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
13707
- // Standard browser envs have full support of the APIs needed to test
13708
- // whether the request URL is of the same origin as current location.
13709
- function standardBrowserEnv2() {
13710
- const msie = /(msie|trident)/i.test(navigator.userAgent);
13711
- const urlParsingNode = document.createElement("a");
13712
- let originURL;
13713
- function resolveURL(url2) {
13714
- let href = url2;
13715
- if (msie) {
13716
- urlParsingNode.setAttribute("href", href);
13717
- href = urlParsingNode.href;
13718
- }
13719
- urlParsingNode.setAttribute("href", href);
13720
- return {
13721
- href: urlParsingNode.href,
13722
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
13723
- host: urlParsingNode.host,
13724
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
13725
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
13726
- hostname: urlParsingNode.hostname,
13727
- port: urlParsingNode.port,
13728
- pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
13729
- };
14003
+ {
14004
+ write(name, value, expires, path, domain, secure) {
14005
+ const cookie = [name + "=" + encodeURIComponent(value)];
14006
+ utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
14007
+ utils_default.isString(path) && cookie.push("path=" + path);
14008
+ utils_default.isString(domain) && cookie.push("domain=" + domain);
14009
+ secure === true && cookie.push("secure");
14010
+ document.cookie = cookie.join("; ");
14011
+ },
14012
+ read(name) {
14013
+ const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
14014
+ return match ? decodeURIComponent(match[3]) : null;
14015
+ },
14016
+ remove(name) {
14017
+ this.write(name, "", Date.now() - 864e5);
13730
14018
  }
13731
- originURL = resolveURL(window.location.href);
13732
- return function isURLSameOrigin(requestURL) {
13733
- const parsed = utils_default.isString(requestURL) ? resolveURL(requestURL) : requestURL;
13734
- return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
13735
- };
13736
- }()
14019
+ }
13737
14020
  ) : (
13738
- // Non standard browser envs (web workers, react-native) lack needed support.
13739
- function nonStandardBrowserEnv2() {
13740
- return function isURLSameOrigin() {
13741
- return true;
13742
- };
13743
- }()
14021
+ // Non-standard browser env (web workers, react-native) lack needed support.
14022
+ {
14023
+ write() {
14024
+ },
14025
+ read() {
14026
+ return null;
14027
+ },
14028
+ remove() {
14029
+ }
14030
+ }
13744
14031
  );
13745
14032
 
13746
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/adapters/xhr.js
13747
- function progressEventReducer(listener, isDownloadStream) {
13748
- let bytesNotified = 0;
13749
- const _speedometer = speedometer_default(50, 250);
13750
- return (e) => {
13751
- const loaded = e.loaded;
13752
- const total = e.lengthComputable ? e.total : void 0;
13753
- const progressBytes = loaded - bytesNotified;
13754
- const rate = _speedometer(progressBytes);
13755
- const inRange = loaded <= total;
13756
- bytesNotified = loaded;
13757
- const data = {
13758
- loaded,
13759
- total,
13760
- progress: total ? loaded / total : void 0,
13761
- bytes: progressBytes,
13762
- rate: rate ? rate : void 0,
13763
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
13764
- event: e
13765
- };
13766
- data[isDownloadStream ? "download" : "upload"] = true;
13767
- listener(data);
14033
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/mergeConfig.js
14034
+ var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
14035
+ function mergeConfig(config1, config2) {
14036
+ config2 = config2 || {};
14037
+ const config = {};
14038
+ function getMergedValue(target, source, prop, caseless) {
14039
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
14040
+ return utils_default.merge.call({ caseless }, target, source);
14041
+ } else if (utils_default.isPlainObject(source)) {
14042
+ return utils_default.merge({}, source);
14043
+ } else if (utils_default.isArray(source)) {
14044
+ return source.slice();
14045
+ }
14046
+ return source;
14047
+ }
14048
+ function mergeDeepProperties(a, b, prop, caseless) {
14049
+ if (!utils_default.isUndefined(b)) {
14050
+ return getMergedValue(a, b, prop, caseless);
14051
+ } else if (!utils_default.isUndefined(a)) {
14052
+ return getMergedValue(void 0, a, prop, caseless);
14053
+ }
14054
+ }
14055
+ function valueFromConfig2(a, b) {
14056
+ if (!utils_default.isUndefined(b)) {
14057
+ return getMergedValue(void 0, b);
14058
+ }
14059
+ }
14060
+ function defaultToConfig2(a, b) {
14061
+ if (!utils_default.isUndefined(b)) {
14062
+ return getMergedValue(void 0, b);
14063
+ } else if (!utils_default.isUndefined(a)) {
14064
+ return getMergedValue(void 0, a);
14065
+ }
14066
+ }
14067
+ function mergeDirectKeys(a, b, prop) {
14068
+ if (prop in config2) {
14069
+ return getMergedValue(a, b);
14070
+ } else if (prop in config1) {
14071
+ return getMergedValue(void 0, a);
14072
+ }
14073
+ }
14074
+ const mergeMap = {
14075
+ url: valueFromConfig2,
14076
+ method: valueFromConfig2,
14077
+ data: valueFromConfig2,
14078
+ baseURL: defaultToConfig2,
14079
+ transformRequest: defaultToConfig2,
14080
+ transformResponse: defaultToConfig2,
14081
+ paramsSerializer: defaultToConfig2,
14082
+ timeout: defaultToConfig2,
14083
+ timeoutMessage: defaultToConfig2,
14084
+ withCredentials: defaultToConfig2,
14085
+ withXSRFToken: defaultToConfig2,
14086
+ adapter: defaultToConfig2,
14087
+ responseType: defaultToConfig2,
14088
+ xsrfCookieName: defaultToConfig2,
14089
+ xsrfHeaderName: defaultToConfig2,
14090
+ onUploadProgress: defaultToConfig2,
14091
+ onDownloadProgress: defaultToConfig2,
14092
+ decompress: defaultToConfig2,
14093
+ maxContentLength: defaultToConfig2,
14094
+ maxBodyLength: defaultToConfig2,
14095
+ beforeRedirect: defaultToConfig2,
14096
+ transport: defaultToConfig2,
14097
+ httpAgent: defaultToConfig2,
14098
+ httpsAgent: defaultToConfig2,
14099
+ cancelToken: defaultToConfig2,
14100
+ socketPath: defaultToConfig2,
14101
+ responseEncoding: defaultToConfig2,
14102
+ validateStatus: mergeDirectKeys,
14103
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
13768
14104
  };
14105
+ utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
14106
+ const merge2 = mergeMap[prop] || mergeDeepProperties;
14107
+ const configValue = merge2(config1[prop], config2[prop], prop);
14108
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
14109
+ });
14110
+ return config;
13769
14111
  }
14112
+
14113
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/resolveConfig.js
14114
+ var resolveConfig_default = (config) => {
14115
+ const newConfig = mergeConfig({}, config);
14116
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
14117
+ newConfig.headers = headers = AxiosHeaders_default.from(headers);
14118
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
14119
+ if (auth) {
14120
+ headers.set(
14121
+ "Authorization",
14122
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
14123
+ );
14124
+ }
14125
+ let contentType;
14126
+ if (utils_default.isFormData(data)) {
14127
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
14128
+ headers.setContentType(void 0);
14129
+ } else if ((contentType = headers.getContentType()) !== false) {
14130
+ const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
14131
+ headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
14132
+ }
14133
+ }
14134
+ if (platform_default.hasStandardBrowserEnv) {
14135
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
14136
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
14137
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
14138
+ if (xsrfValue) {
14139
+ headers.set(xsrfHeaderName, xsrfValue);
14140
+ }
14141
+ }
14142
+ }
14143
+ return newConfig;
14144
+ };
14145
+
14146
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/xhr.js
13770
14147
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
13771
14148
  var xhr_default = isXHRAdapterSupported && function(config) {
13772
14149
  return new Promise(function dispatchXhrRequest(resolve, reject) {
13773
- let requestData = config.data;
13774
- const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
13775
- const responseType = config.responseType;
14150
+ const _config = resolveConfig_default(config);
14151
+ let requestData = _config.data;
14152
+ const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
14153
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
13776
14154
  let onCanceled;
14155
+ let uploadThrottled, downloadThrottled;
14156
+ let flushUpload, flushDownload;
13777
14157
  function done() {
13778
- if (config.cancelToken) {
13779
- config.cancelToken.unsubscribe(onCanceled);
13780
- }
13781
- if (config.signal) {
13782
- config.signal.removeEventListener("abort", onCanceled);
13783
- }
13784
- }
13785
- if (utils_default.isFormData(requestData) && (node_default.isStandardBrowserEnv || node_default.isStandardBrowserWebWorkerEnv)) {
13786
- requestHeaders.setContentType(false);
14158
+ flushUpload && flushUpload();
14159
+ flushDownload && flushDownload();
14160
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
14161
+ _config.signal && _config.signal.removeEventListener("abort", onCanceled);
13787
14162
  }
13788
14163
  let request = new XMLHttpRequest();
13789
- if (config.auth) {
13790
- const username = config.auth.username || "";
13791
- const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
13792
- requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
13793
- }
13794
- const fullPath = buildFullPath(config.baseURL, config.url);
13795
- request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
13796
- request.timeout = config.timeout;
14164
+ request.open(_config.method.toUpperCase(), _config.url, true);
14165
+ request.timeout = _config.timeout;
13797
14166
  function onloadend() {
13798
14167
  if (!request) {
13799
14168
  return;
@@ -13844,10 +14213,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
13844
14213
  request = null;
13845
14214
  };
13846
14215
  request.ontimeout = function handleTimeout() {
13847
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
13848
- const transitional2 = config.transitional || transitional_default;
13849
- if (config.timeoutErrorMessage) {
13850
- timeoutErrorMessage = config.timeoutErrorMessage;
14216
+ let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
14217
+ const transitional2 = _config.transitional || transitional_default;
14218
+ if (_config.timeoutErrorMessage) {
14219
+ timeoutErrorMessage = _config.timeoutErrorMessage;
13851
14220
  }
13852
14221
  reject(new AxiosError_default(
13853
14222
  timeoutErrorMessage,
@@ -13857,31 +14226,28 @@ var xhr_default = isXHRAdapterSupported && function(config) {
13857
14226
  ));
13858
14227
  request = null;
13859
14228
  };
13860
- if (node_default.isStandardBrowserEnv) {
13861
- const xsrfValue = (config.withCredentials || isURLSameOrigin_default(fullPath)) && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
13862
- if (xsrfValue) {
13863
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
13864
- }
13865
- }
13866
14229
  requestData === void 0 && requestHeaders.setContentType(null);
13867
14230
  if ("setRequestHeader" in request) {
13868
14231
  utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
13869
14232
  request.setRequestHeader(key, val);
13870
14233
  });
13871
14234
  }
13872
- if (!utils_default.isUndefined(config.withCredentials)) {
13873
- request.withCredentials = !!config.withCredentials;
14235
+ if (!utils_default.isUndefined(_config.withCredentials)) {
14236
+ request.withCredentials = !!_config.withCredentials;
13874
14237
  }
13875
14238
  if (responseType && responseType !== "json") {
13876
- request.responseType = config.responseType;
14239
+ request.responseType = _config.responseType;
13877
14240
  }
13878
- if (typeof config.onDownloadProgress === "function") {
13879
- request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
14241
+ if (onDownloadProgress) {
14242
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
14243
+ request.addEventListener("progress", downloadThrottled);
13880
14244
  }
13881
- if (typeof config.onUploadProgress === "function" && request.upload) {
13882
- request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
14245
+ if (onUploadProgress && request.upload) {
14246
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
14247
+ request.upload.addEventListener("progress", uploadThrottled);
14248
+ request.upload.addEventListener("loadend", flushUpload);
13883
14249
  }
13884
- if (config.cancelToken || config.signal) {
14250
+ if (_config.cancelToken || _config.signal) {
13885
14251
  onCanceled = (cancel) => {
13886
14252
  if (!request) {
13887
14253
  return;
@@ -13890,13 +14256,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
13890
14256
  request.abort();
13891
14257
  request = null;
13892
14258
  };
13893
- config.cancelToken && config.cancelToken.subscribe(onCanceled);
13894
- if (config.signal) {
13895
- config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
14259
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
14260
+ if (_config.signal) {
14261
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
13896
14262
  }
13897
14263
  }
13898
- const protocol = parseProtocol(fullPath);
13899
- if (protocol && node_default.protocols.indexOf(protocol) === -1) {
14264
+ const protocol = parseProtocol(_config.url);
14265
+ if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
13900
14266
  reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
13901
14267
  return;
13902
14268
  }
@@ -13904,10 +14270,288 @@ var xhr_default = isXHRAdapterSupported && function(config) {
13904
14270
  });
13905
14271
  };
13906
14272
 
13907
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/adapters/adapters.js
14273
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/composeSignals.js
14274
+ var composeSignals = (signals, timeout) => {
14275
+ const { length } = signals = signals ? signals.filter(Boolean) : [];
14276
+ if (timeout || length) {
14277
+ let controller = new AbortController();
14278
+ let aborted;
14279
+ const onabort = function(reason) {
14280
+ if (!aborted) {
14281
+ aborted = true;
14282
+ unsubscribe();
14283
+ const err = reason instanceof Error ? reason : this.reason;
14284
+ controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
14285
+ }
14286
+ };
14287
+ let timer = timeout && setTimeout(() => {
14288
+ timer = null;
14289
+ onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
14290
+ }, timeout);
14291
+ const unsubscribe = () => {
14292
+ if (signals) {
14293
+ timer && clearTimeout(timer);
14294
+ timer = null;
14295
+ signals.forEach((signal2) => {
14296
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
14297
+ });
14298
+ signals = null;
14299
+ }
14300
+ };
14301
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
14302
+ const { signal } = controller;
14303
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
14304
+ return signal;
14305
+ }
14306
+ };
14307
+ var composeSignals_default = composeSignals;
14308
+
14309
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/trackStream.js
14310
+ var streamChunk = function* (chunk, chunkSize) {
14311
+ let len = chunk.byteLength;
14312
+ if (!chunkSize || len < chunkSize) {
14313
+ yield chunk;
14314
+ return;
14315
+ }
14316
+ let pos = 0;
14317
+ let end;
14318
+ while (pos < len) {
14319
+ end = pos + chunkSize;
14320
+ yield chunk.slice(pos, end);
14321
+ pos = end;
14322
+ }
14323
+ };
14324
+ var readBytes = async function* (iterable, chunkSize) {
14325
+ for await (const chunk of readStream(iterable)) {
14326
+ yield* streamChunk(chunk, chunkSize);
14327
+ }
14328
+ };
14329
+ var readStream = async function* (stream4) {
14330
+ if (stream4[Symbol.asyncIterator]) {
14331
+ yield* stream4;
14332
+ return;
14333
+ }
14334
+ const reader = stream4.getReader();
14335
+ try {
14336
+ for (; ; ) {
14337
+ const { done, value } = await reader.read();
14338
+ if (done) {
14339
+ break;
14340
+ }
14341
+ yield value;
14342
+ }
14343
+ } finally {
14344
+ await reader.cancel();
14345
+ }
14346
+ };
14347
+ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
14348
+ const iterator3 = readBytes(stream4, chunkSize);
14349
+ let bytes = 0;
14350
+ let done;
14351
+ let _onFinish = (e) => {
14352
+ if (!done) {
14353
+ done = true;
14354
+ onFinish && onFinish(e);
14355
+ }
14356
+ };
14357
+ return new ReadableStream({
14358
+ async pull(controller) {
14359
+ try {
14360
+ const { done: done2, value } = await iterator3.next();
14361
+ if (done2) {
14362
+ _onFinish();
14363
+ controller.close();
14364
+ return;
14365
+ }
14366
+ let len = value.byteLength;
14367
+ if (onProgress) {
14368
+ let loadedBytes = bytes += len;
14369
+ onProgress(loadedBytes);
14370
+ }
14371
+ controller.enqueue(new Uint8Array(value));
14372
+ } catch (err) {
14373
+ _onFinish(err);
14374
+ throw err;
14375
+ }
14376
+ },
14377
+ cancel(reason) {
14378
+ _onFinish(reason);
14379
+ return iterator3.return();
14380
+ }
14381
+ }, {
14382
+ highWaterMark: 2
14383
+ });
14384
+ };
14385
+
14386
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/fetch.js
14387
+ var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
14388
+ var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
14389
+ var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
14390
+ var test = (fn, ...args) => {
14391
+ try {
14392
+ return !!fn(...args);
14393
+ } catch (e) {
14394
+ return false;
14395
+ }
14396
+ };
14397
+ var supportsRequestStream = isReadableStreamSupported && test(() => {
14398
+ let duplexAccessed = false;
14399
+ const hasContentType = new Request(platform_default.origin, {
14400
+ body: new ReadableStream(),
14401
+ method: "POST",
14402
+ get duplex() {
14403
+ duplexAccessed = true;
14404
+ return "half";
14405
+ }
14406
+ }).headers.has("Content-Type");
14407
+ return duplexAccessed && !hasContentType;
14408
+ });
14409
+ var DEFAULT_CHUNK_SIZE = 64 * 1024;
14410
+ var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
14411
+ var resolvers = {
14412
+ stream: supportsResponseStream && ((res) => res.body)
14413
+ };
14414
+ isFetchSupported && ((res) => {
14415
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
14416
+ !resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
14417
+ throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
14418
+ });
14419
+ });
14420
+ })(new Response());
14421
+ var getBodyLength = async (body) => {
14422
+ if (body == null) {
14423
+ return 0;
14424
+ }
14425
+ if (utils_default.isBlob(body)) {
14426
+ return body.size;
14427
+ }
14428
+ if (utils_default.isSpecCompliantForm(body)) {
14429
+ const _request = new Request(platform_default.origin, {
14430
+ method: "POST",
14431
+ body
14432
+ });
14433
+ return (await _request.arrayBuffer()).byteLength;
14434
+ }
14435
+ if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
14436
+ return body.byteLength;
14437
+ }
14438
+ if (utils_default.isURLSearchParams(body)) {
14439
+ body = body + "";
14440
+ }
14441
+ if (utils_default.isString(body)) {
14442
+ return (await encodeText(body)).byteLength;
14443
+ }
14444
+ };
14445
+ var resolveBodyLength = async (headers, body) => {
14446
+ const length = utils_default.toFiniteNumber(headers.getContentLength());
14447
+ return length == null ? getBodyLength(body) : length;
14448
+ };
14449
+ var fetch_default = isFetchSupported && (async (config) => {
14450
+ let {
14451
+ url: url2,
14452
+ method,
14453
+ data,
14454
+ signal,
14455
+ cancelToken,
14456
+ timeout,
14457
+ onDownloadProgress,
14458
+ onUploadProgress,
14459
+ responseType,
14460
+ headers,
14461
+ withCredentials = "same-origin",
14462
+ fetchOptions
14463
+ } = resolveConfig_default(config);
14464
+ responseType = responseType ? (responseType + "").toLowerCase() : "text";
14465
+ let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
14466
+ let request;
14467
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
14468
+ composedSignal.unsubscribe();
14469
+ });
14470
+ let requestContentLength;
14471
+ try {
14472
+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
14473
+ let _request = new Request(url2, {
14474
+ method: "POST",
14475
+ body: data,
14476
+ duplex: "half"
14477
+ });
14478
+ let contentTypeHeader;
14479
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
14480
+ headers.setContentType(contentTypeHeader);
14481
+ }
14482
+ if (_request.body) {
14483
+ const [onProgress, flush] = progressEventDecorator(
14484
+ requestContentLength,
14485
+ progressEventReducer(asyncDecorator(onUploadProgress))
14486
+ );
14487
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
14488
+ }
14489
+ }
14490
+ if (!utils_default.isString(withCredentials)) {
14491
+ withCredentials = withCredentials ? "include" : "omit";
14492
+ }
14493
+ const isCredentialsSupported = "credentials" in Request.prototype;
14494
+ request = new Request(url2, {
14495
+ ...fetchOptions,
14496
+ signal: composedSignal,
14497
+ method: method.toUpperCase(),
14498
+ headers: headers.normalize().toJSON(),
14499
+ body: data,
14500
+ duplex: "half",
14501
+ credentials: isCredentialsSupported ? withCredentials : void 0
14502
+ });
14503
+ let response = await fetch(request);
14504
+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
14505
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
14506
+ const options = {};
14507
+ ["status", "statusText", "headers"].forEach((prop) => {
14508
+ options[prop] = response[prop];
14509
+ });
14510
+ const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
14511
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
14512
+ responseContentLength,
14513
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
14514
+ ) || [];
14515
+ response = new Response(
14516
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
14517
+ flush && flush();
14518
+ unsubscribe && unsubscribe();
14519
+ }),
14520
+ options
14521
+ );
14522
+ }
14523
+ responseType = responseType || "text";
14524
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
14525
+ !isStreamResponse && unsubscribe && unsubscribe();
14526
+ return await new Promise((resolve, reject) => {
14527
+ settle(resolve, reject, {
14528
+ data: responseData,
14529
+ headers: AxiosHeaders_default.from(response.headers),
14530
+ status: response.status,
14531
+ statusText: response.statusText,
14532
+ config,
14533
+ request
14534
+ });
14535
+ });
14536
+ } catch (err) {
14537
+ unsubscribe && unsubscribe();
14538
+ if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
14539
+ throw Object.assign(
14540
+ new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
14541
+ {
14542
+ cause: err.cause || err
14543
+ }
14544
+ );
14545
+ }
14546
+ throw AxiosError_default.from(err, err && err.code, config, request);
14547
+ }
14548
+ });
14549
+
14550
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/adapters.js
13908
14551
  var knownAdapters = {
13909
14552
  http: http_default,
13910
- xhr: xhr_default
14553
+ xhr: xhr_default,
14554
+ fetch: fetch_default
13911
14555
  };
13912
14556
  utils_default.forEach(knownAdapters, (fn, value) => {
13913
14557
  if (fn) {
@@ -13918,38 +14562,46 @@ utils_default.forEach(knownAdapters, (fn, value) => {
13918
14562
  Object.defineProperty(fn, "adapterName", { value });
13919
14563
  }
13920
14564
  });
14565
+ var renderReason = (reason) => `- ${reason}`;
14566
+ var isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false;
13921
14567
  var adapters_default = {
13922
14568
  getAdapter: (adapters) => {
13923
14569
  adapters = utils_default.isArray(adapters) ? adapters : [adapters];
13924
14570
  const { length } = adapters;
13925
14571
  let nameOrAdapter;
13926
14572
  let adapter;
14573
+ const rejectedReasons = {};
13927
14574
  for (let i = 0; i < length; i++) {
13928
14575
  nameOrAdapter = adapters[i];
13929
- if (adapter = utils_default.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter) {
14576
+ let id;
14577
+ adapter = nameOrAdapter;
14578
+ if (!isResolvedHandle(nameOrAdapter)) {
14579
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
14580
+ if (adapter === void 0) {
14581
+ throw new AxiosError_default(`Unknown adapter '${id}'`);
14582
+ }
14583
+ }
14584
+ if (adapter) {
13930
14585
  break;
13931
14586
  }
14587
+ rejectedReasons[id || "#" + i] = adapter;
13932
14588
  }
13933
14589
  if (!adapter) {
13934
- if (adapter === false) {
13935
- throw new AxiosError_default(
13936
- `Adapter ${nameOrAdapter} is not supported by the environment`,
13937
- "ERR_NOT_SUPPORT"
13938
- );
13939
- }
13940
- throw new Error(
13941
- utils_default.hasOwnProp(knownAdapters, nameOrAdapter) ? `Adapter '${nameOrAdapter}' is not available in the build` : `Unknown adapter '${nameOrAdapter}'`
14590
+ const reasons = Object.entries(rejectedReasons).map(
14591
+ ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
14592
+ );
14593
+ let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
14594
+ throw new AxiosError_default(
14595
+ `There is no suitable adapter to dispatch the request ` + s,
14596
+ "ERR_NOT_SUPPORT"
13942
14597
  );
13943
- }
13944
- if (!utils_default.isFunction(adapter)) {
13945
- throw new TypeError("adapter is not a function");
13946
14598
  }
13947
14599
  return adapter;
13948
14600
  },
13949
14601
  adapters: knownAdapters
13950
14602
  };
13951
14603
 
13952
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/core/dispatchRequest.js
14604
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/dispatchRequest.js
13953
14605
  function throwIfCancellationRequested(config) {
13954
14606
  if (config.cancelToken) {
13955
14607
  config.cancelToken.throwIfRequested();
@@ -13994,86 +14646,7 @@ function dispatchRequest(config) {
13994
14646
  });
13995
14647
  }
13996
14648
 
13997
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/core/mergeConfig.js
13998
- var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
13999
- function mergeConfig(config1, config2) {
14000
- config2 = config2 || {};
14001
- const config = {};
14002
- function getMergedValue(target, source, caseless) {
14003
- if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
14004
- return utils_default.merge.call({ caseless }, target, source);
14005
- } else if (utils_default.isPlainObject(source)) {
14006
- return utils_default.merge({}, source);
14007
- } else if (utils_default.isArray(source)) {
14008
- return source.slice();
14009
- }
14010
- return source;
14011
- }
14012
- function mergeDeepProperties(a, b, caseless) {
14013
- if (!utils_default.isUndefined(b)) {
14014
- return getMergedValue(a, b, caseless);
14015
- } else if (!utils_default.isUndefined(a)) {
14016
- return getMergedValue(void 0, a, caseless);
14017
- }
14018
- }
14019
- function valueFromConfig2(a, b) {
14020
- if (!utils_default.isUndefined(b)) {
14021
- return getMergedValue(void 0, b);
14022
- }
14023
- }
14024
- function defaultToConfig2(a, b) {
14025
- if (!utils_default.isUndefined(b)) {
14026
- return getMergedValue(void 0, b);
14027
- } else if (!utils_default.isUndefined(a)) {
14028
- return getMergedValue(void 0, a);
14029
- }
14030
- }
14031
- function mergeDirectKeys(a, b, prop) {
14032
- if (prop in config2) {
14033
- return getMergedValue(a, b);
14034
- } else if (prop in config1) {
14035
- return getMergedValue(void 0, a);
14036
- }
14037
- }
14038
- const mergeMap = {
14039
- url: valueFromConfig2,
14040
- method: valueFromConfig2,
14041
- data: valueFromConfig2,
14042
- baseURL: defaultToConfig2,
14043
- transformRequest: defaultToConfig2,
14044
- transformResponse: defaultToConfig2,
14045
- paramsSerializer: defaultToConfig2,
14046
- timeout: defaultToConfig2,
14047
- timeoutMessage: defaultToConfig2,
14048
- withCredentials: defaultToConfig2,
14049
- adapter: defaultToConfig2,
14050
- responseType: defaultToConfig2,
14051
- xsrfCookieName: defaultToConfig2,
14052
- xsrfHeaderName: defaultToConfig2,
14053
- onUploadProgress: defaultToConfig2,
14054
- onDownloadProgress: defaultToConfig2,
14055
- decompress: defaultToConfig2,
14056
- maxContentLength: defaultToConfig2,
14057
- maxBodyLength: defaultToConfig2,
14058
- beforeRedirect: defaultToConfig2,
14059
- transport: defaultToConfig2,
14060
- httpAgent: defaultToConfig2,
14061
- httpsAgent: defaultToConfig2,
14062
- cancelToken: defaultToConfig2,
14063
- socketPath: defaultToConfig2,
14064
- responseEncoding: defaultToConfig2,
14065
- validateStatus: mergeDirectKeys,
14066
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
14067
- };
14068
- utils_default.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
14069
- const merge2 = mergeMap[prop] || mergeDeepProperties;
14070
- const configValue = merge2(config1[prop], config2[prop], prop);
14071
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
14072
- });
14073
- return config;
14074
- }
14075
-
14076
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/validator.js
14649
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/validator.js
14077
14650
  var validators = {};
14078
14651
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
14079
14652
  validators[type] = function validator(thing) {
@@ -14104,6 +14677,12 @@ validators.transitional = function transitional(validator, version, message) {
14104
14677
  return validator ? validator(value, opt, opts) : true;
14105
14678
  };
14106
14679
  };
14680
+ validators.spelling = function spelling(correctSpelling) {
14681
+ return (value, opt) => {
14682
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
14683
+ return true;
14684
+ };
14685
+ };
14107
14686
  function assertOptions(options, schema, allowUnknown) {
14108
14687
  if (typeof options !== "object") {
14109
14688
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
@@ -14131,11 +14710,11 @@ var validator_default = {
14131
14710
  validators
14132
14711
  };
14133
14712
 
14134
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/core/Axios.js
14713
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/Axios.js
14135
14714
  var validators2 = validator_default.validators;
14136
14715
  var Axios = class {
14137
14716
  constructor(instanceConfig) {
14138
- this.defaults = instanceConfig;
14717
+ this.defaults = instanceConfig || {};
14139
14718
  this.interceptors = {
14140
14719
  request: new InterceptorManager_default(),
14141
14720
  response: new InterceptorManager_default()
@@ -14149,7 +14728,27 @@ var Axios = class {
14149
14728
  *
14150
14729
  * @returns {Promise} The Promise to be fulfilled
14151
14730
  */
14152
- request(configOrUrl, config) {
14731
+ async request(configOrUrl, config) {
14732
+ try {
14733
+ return await this._request(configOrUrl, config);
14734
+ } catch (err) {
14735
+ if (err instanceof Error) {
14736
+ let dummy = {};
14737
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
14738
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
14739
+ try {
14740
+ if (!err.stack) {
14741
+ err.stack = stack;
14742
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
14743
+ err.stack += "\n" + stack;
14744
+ }
14745
+ } catch (e) {
14746
+ }
14747
+ }
14748
+ throw err;
14749
+ }
14750
+ }
14751
+ _request(configOrUrl, config) {
14153
14752
  if (typeof configOrUrl === "string") {
14154
14753
  config = config || {};
14155
14754
  config.url = configOrUrl;
@@ -14165,19 +14764,34 @@ var Axios = class {
14165
14764
  clarifyTimeoutError: validators2.transitional(validators2.boolean)
14166
14765
  }, false);
14167
14766
  }
14168
- if (paramsSerializer !== void 0) {
14169
- validator_default.assertOptions(paramsSerializer, {
14170
- encode: validators2.function,
14171
- serialize: validators2.function
14172
- }, true);
14767
+ if (paramsSerializer != null) {
14768
+ if (utils_default.isFunction(paramsSerializer)) {
14769
+ config.paramsSerializer = {
14770
+ serialize: paramsSerializer
14771
+ };
14772
+ } else {
14773
+ validator_default.assertOptions(paramsSerializer, {
14774
+ encode: validators2.function,
14775
+ serialize: validators2.function
14776
+ }, true);
14777
+ }
14778
+ }
14779
+ if (config.allowAbsoluteUrls !== void 0) {
14780
+ } else if (this.defaults.allowAbsoluteUrls !== void 0) {
14781
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
14782
+ } else {
14783
+ config.allowAbsoluteUrls = true;
14173
14784
  }
14785
+ validator_default.assertOptions(config, {
14786
+ baseUrl: validators2.spelling("baseURL"),
14787
+ withXsrfToken: validators2.spelling("withXSRFToken")
14788
+ }, true);
14174
14789
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
14175
- let contextHeaders;
14176
- contextHeaders = headers && utils_default.merge(
14790
+ let contextHeaders = headers && utils_default.merge(
14177
14791
  headers.common,
14178
14792
  headers[config.method]
14179
14793
  );
14180
- contextHeaders && utils_default.forEach(
14794
+ headers && utils_default.forEach(
14181
14795
  ["delete", "get", "head", "post", "put", "patch", "common"],
14182
14796
  (method) => {
14183
14797
  delete headers[method];
@@ -14238,11 +14852,11 @@ var Axios = class {
14238
14852
  }
14239
14853
  getUri(config) {
14240
14854
  config = mergeConfig(this.defaults, config);
14241
- const fullPath = buildFullPath(config.baseURL, config.url);
14855
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
14242
14856
  return buildURL(fullPath, config.params, config.paramsSerializer);
14243
14857
  }
14244
14858
  };
14245
- utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
14859
+ utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
14246
14860
  Axios.prototype[method] = function(url2, config) {
14247
14861
  return this.request(mergeConfig(config || {}, {
14248
14862
  method,
@@ -14251,7 +14865,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
14251
14865
  }));
14252
14866
  };
14253
14867
  });
14254
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
14868
+ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
14255
14869
  function generateHTTPMethod(isForm) {
14256
14870
  return function httpMethod(url2, data, config) {
14257
14871
  return this.request(mergeConfig(config || {}, {
@@ -14269,7 +14883,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData2(
14269
14883
  });
14270
14884
  var Axios_default = Axios;
14271
14885
 
14272
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/cancel/CancelToken.js
14886
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/cancel/CancelToken.js
14273
14887
  var CancelToken = class _CancelToken {
14274
14888
  constructor(executor) {
14275
14889
  if (typeof executor !== "function") {
@@ -14342,6 +14956,15 @@ var CancelToken = class _CancelToken {
14342
14956
  this._listeners.splice(index, 1);
14343
14957
  }
14344
14958
  }
14959
+ toAbortSignal() {
14960
+ const controller = new AbortController();
14961
+ const abort = (err) => {
14962
+ controller.abort(err);
14963
+ };
14964
+ this.subscribe(abort);
14965
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
14966
+ return controller.signal;
14967
+ }
14345
14968
  /**
14346
14969
  * Returns an object that contains a new `CancelToken` and a function that, when called,
14347
14970
  * cancels the `CancelToken`.
@@ -14359,19 +14982,90 @@ var CancelToken = class _CancelToken {
14359
14982
  };
14360
14983
  var CancelToken_default = CancelToken;
14361
14984
 
14362
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/spread.js
14985
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/spread.js
14363
14986
  function spread(callback) {
14364
14987
  return function wrap(arr) {
14365
14988
  return callback.apply(null, arr);
14366
14989
  };
14367
14990
  }
14368
14991
 
14369
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/isAxiosError.js
14992
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/isAxiosError.js
14370
14993
  function isAxiosError(payload) {
14371
14994
  return utils_default.isObject(payload) && payload.isAxiosError === true;
14372
14995
  }
14373
14996
 
14374
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/axios.js
14997
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/HttpStatusCode.js
14998
+ var HttpStatusCode = {
14999
+ Continue: 100,
15000
+ SwitchingProtocols: 101,
15001
+ Processing: 102,
15002
+ EarlyHints: 103,
15003
+ Ok: 200,
15004
+ Created: 201,
15005
+ Accepted: 202,
15006
+ NonAuthoritativeInformation: 203,
15007
+ NoContent: 204,
15008
+ ResetContent: 205,
15009
+ PartialContent: 206,
15010
+ MultiStatus: 207,
15011
+ AlreadyReported: 208,
15012
+ ImUsed: 226,
15013
+ MultipleChoices: 300,
15014
+ MovedPermanently: 301,
15015
+ Found: 302,
15016
+ SeeOther: 303,
15017
+ NotModified: 304,
15018
+ UseProxy: 305,
15019
+ Unused: 306,
15020
+ TemporaryRedirect: 307,
15021
+ PermanentRedirect: 308,
15022
+ BadRequest: 400,
15023
+ Unauthorized: 401,
15024
+ PaymentRequired: 402,
15025
+ Forbidden: 403,
15026
+ NotFound: 404,
15027
+ MethodNotAllowed: 405,
15028
+ NotAcceptable: 406,
15029
+ ProxyAuthenticationRequired: 407,
15030
+ RequestTimeout: 408,
15031
+ Conflict: 409,
15032
+ Gone: 410,
15033
+ LengthRequired: 411,
15034
+ PreconditionFailed: 412,
15035
+ PayloadTooLarge: 413,
15036
+ UriTooLong: 414,
15037
+ UnsupportedMediaType: 415,
15038
+ RangeNotSatisfiable: 416,
15039
+ ExpectationFailed: 417,
15040
+ ImATeapot: 418,
15041
+ MisdirectedRequest: 421,
15042
+ UnprocessableEntity: 422,
15043
+ Locked: 423,
15044
+ FailedDependency: 424,
15045
+ TooEarly: 425,
15046
+ UpgradeRequired: 426,
15047
+ PreconditionRequired: 428,
15048
+ TooManyRequests: 429,
15049
+ RequestHeaderFieldsTooLarge: 431,
15050
+ UnavailableForLegalReasons: 451,
15051
+ InternalServerError: 500,
15052
+ NotImplemented: 501,
15053
+ BadGateway: 502,
15054
+ ServiceUnavailable: 503,
15055
+ GatewayTimeout: 504,
15056
+ HttpVersionNotSupported: 505,
15057
+ VariantAlsoNegotiates: 506,
15058
+ InsufficientStorage: 507,
15059
+ LoopDetected: 508,
15060
+ NotExtended: 510,
15061
+ NetworkAuthenticationRequired: 511
15062
+ };
15063
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
15064
+ HttpStatusCode[value] = key;
15065
+ });
15066
+ var HttpStatusCode_default = HttpStatusCode;
15067
+
15068
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/axios.js
14375
15069
  function createInstance(defaultConfig) {
14376
15070
  const context = new Axios_default(defaultConfig);
14377
15071
  const instance = bind(Axios_default.prototype.request, context);
@@ -14399,10 +15093,12 @@ axios.isAxiosError = isAxiosError;
14399
15093
  axios.mergeConfig = mergeConfig;
14400
15094
  axios.AxiosHeaders = AxiosHeaders_default;
14401
15095
  axios.formToJSON = (thing) => formDataToJSON_default(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
15096
+ axios.getAdapter = adapters_default.getAdapter;
15097
+ axios.HttpStatusCode = HttpStatusCode_default;
14402
15098
  axios.default = axios;
14403
15099
  var axios_default = axios;
14404
15100
 
14405
- // ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/index.js
15101
+ // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/index.js
14406
15102
  var {
14407
15103
  Axios: Axios2,
14408
15104
  AxiosError: AxiosError2,
@@ -14416,7 +15112,9 @@ var {
14416
15112
  spread: spread2,
14417
15113
  toFormData: toFormData2,
14418
15114
  AxiosHeaders: AxiosHeaders2,
15115
+ HttpStatusCode: HttpStatusCode2,
14419
15116
  formToJSON,
15117
+ getAdapter,
14420
15118
  mergeConfig: mergeConfig2
14421
15119
  } = axios_default;
14422
15120