@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.js +1297 -603
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1300 -602
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var require_delayed_stream = __commonJS({
|
|
|
35
35
|
"../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
var Stream = require("stream").Stream;
|
|
38
|
-
var
|
|
38
|
+
var util3 = require("util");
|
|
39
39
|
module2.exports = DelayedStream;
|
|
40
40
|
function DelayedStream() {
|
|
41
41
|
this.source = null;
|
|
@@ -46,7 +46,7 @@ var require_delayed_stream = __commonJS({
|
|
|
46
46
|
this._released = false;
|
|
47
47
|
this._bufferedEvents = [];
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
util3.inherits(DelayedStream, Stream);
|
|
50
50
|
DelayedStream.create = function(source, options) {
|
|
51
51
|
var delayedStream = new this();
|
|
52
52
|
options = options || {};
|
|
@@ -126,7 +126,7 @@ var require_delayed_stream = __commonJS({
|
|
|
126
126
|
var require_combined_stream = __commonJS({
|
|
127
127
|
"../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module2) {
|
|
128
128
|
"use strict";
|
|
129
|
-
var
|
|
129
|
+
var util3 = require("util");
|
|
130
130
|
var Stream = require("stream").Stream;
|
|
131
131
|
var DelayedStream = require_delayed_stream();
|
|
132
132
|
module2.exports = CombinedStream;
|
|
@@ -142,7 +142,7 @@ var require_combined_stream = __commonJS({
|
|
|
142
142
|
this._insideLoop = false;
|
|
143
143
|
this._pendingNext = false;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
util3.inherits(CombinedStream, Stream);
|
|
146
146
|
CombinedStream.create = function(options) {
|
|
147
147
|
var combinedStream = new this();
|
|
148
148
|
options = options || {};
|
|
@@ -151,26 +151,26 @@ var require_combined_stream = __commonJS({
|
|
|
151
151
|
}
|
|
152
152
|
return combinedStream;
|
|
153
153
|
};
|
|
154
|
-
CombinedStream.isStreamLike = function(
|
|
155
|
-
return typeof
|
|
154
|
+
CombinedStream.isStreamLike = function(stream4) {
|
|
155
|
+
return typeof stream4 !== "function" && typeof stream4 !== "string" && typeof stream4 !== "boolean" && typeof stream4 !== "number" && !Buffer.isBuffer(stream4);
|
|
156
156
|
};
|
|
157
|
-
CombinedStream.prototype.append = function(
|
|
158
|
-
var isStreamLike = CombinedStream.isStreamLike(
|
|
157
|
+
CombinedStream.prototype.append = function(stream4) {
|
|
158
|
+
var isStreamLike = CombinedStream.isStreamLike(stream4);
|
|
159
159
|
if (isStreamLike) {
|
|
160
|
-
if (!(
|
|
161
|
-
var newStream = DelayedStream.create(
|
|
160
|
+
if (!(stream4 instanceof DelayedStream)) {
|
|
161
|
+
var newStream = DelayedStream.create(stream4, {
|
|
162
162
|
maxDataSize: Infinity,
|
|
163
163
|
pauseStream: this.pauseStreams
|
|
164
164
|
});
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
stream4.on("data", this._checkDataSize.bind(this));
|
|
166
|
+
stream4 = newStream;
|
|
167
167
|
}
|
|
168
|
-
this._handleErrors(
|
|
168
|
+
this._handleErrors(stream4);
|
|
169
169
|
if (this.pauseStreams) {
|
|
170
|
-
|
|
170
|
+
stream4.pause();
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
this._streams.push(
|
|
173
|
+
this._streams.push(stream4);
|
|
174
174
|
return this;
|
|
175
175
|
};
|
|
176
176
|
CombinedStream.prototype.pipe = function(dest, options) {
|
|
@@ -195,40 +195,40 @@ var require_combined_stream = __commonJS({
|
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
CombinedStream.prototype._realGetNext = function() {
|
|
198
|
-
var
|
|
199
|
-
if (typeof
|
|
198
|
+
var stream4 = this._streams.shift();
|
|
199
|
+
if (typeof stream4 == "undefined") {
|
|
200
200
|
this.end();
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
if (typeof
|
|
204
|
-
this._pipeNext(
|
|
203
|
+
if (typeof stream4 !== "function") {
|
|
204
|
+
this._pipeNext(stream4);
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
|
-
var getStream =
|
|
208
|
-
getStream(function(
|
|
209
|
-
var isStreamLike = CombinedStream.isStreamLike(
|
|
207
|
+
var getStream = stream4;
|
|
208
|
+
getStream(function(stream5) {
|
|
209
|
+
var isStreamLike = CombinedStream.isStreamLike(stream5);
|
|
210
210
|
if (isStreamLike) {
|
|
211
|
-
|
|
212
|
-
this._handleErrors(
|
|
211
|
+
stream5.on("data", this._checkDataSize.bind(this));
|
|
212
|
+
this._handleErrors(stream5);
|
|
213
213
|
}
|
|
214
|
-
this._pipeNext(
|
|
214
|
+
this._pipeNext(stream5);
|
|
215
215
|
}.bind(this));
|
|
216
216
|
};
|
|
217
|
-
CombinedStream.prototype._pipeNext = function(
|
|
218
|
-
this._currentStream =
|
|
219
|
-
var isStreamLike = CombinedStream.isStreamLike(
|
|
217
|
+
CombinedStream.prototype._pipeNext = function(stream4) {
|
|
218
|
+
this._currentStream = stream4;
|
|
219
|
+
var isStreamLike = CombinedStream.isStreamLike(stream4);
|
|
220
220
|
if (isStreamLike) {
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
stream4.on("end", this._getNext.bind(this));
|
|
222
|
+
stream4.pipe(this, { end: false });
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
|
-
var value =
|
|
225
|
+
var value = stream4;
|
|
226
226
|
this.write(value);
|
|
227
227
|
this._getNext();
|
|
228
228
|
};
|
|
229
|
-
CombinedStream.prototype._handleErrors = function(
|
|
229
|
+
CombinedStream.prototype._handleErrors = function(stream4) {
|
|
230
230
|
var self2 = this;
|
|
231
|
-
|
|
231
|
+
stream4.on("error", function(err) {
|
|
232
232
|
self2._emitError(err);
|
|
233
233
|
});
|
|
234
234
|
};
|
|
@@ -277,11 +277,11 @@ var require_combined_stream = __commonJS({
|
|
|
277
277
|
CombinedStream.prototype._updateDataSize = function() {
|
|
278
278
|
this.dataSize = 0;
|
|
279
279
|
var self2 = this;
|
|
280
|
-
this._streams.forEach(function(
|
|
281
|
-
if (!
|
|
280
|
+
this._streams.forEach(function(stream4) {
|
|
281
|
+
if (!stream4.dataSize) {
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
|
-
self2.dataSize +=
|
|
284
|
+
self2.dataSize += stream4.dataSize;
|
|
285
285
|
});
|
|
286
286
|
if (this._currentStream && this._currentStream.dataSize) {
|
|
287
287
|
this.dataSize += this._currentStream.dataSize;
|
|
@@ -8982,9 +8982,9 @@ var require_iterate = __commonJS({
|
|
|
8982
8982
|
var async = require_async();
|
|
8983
8983
|
var abort = require_abort();
|
|
8984
8984
|
module2.exports = iterate;
|
|
8985
|
-
function iterate(list,
|
|
8985
|
+
function iterate(list, iterator3, state, callback) {
|
|
8986
8986
|
var key = state["keyedList"] ? state["keyedList"][state.index] : state.index;
|
|
8987
|
-
state.jobs[key] = runJob(
|
|
8987
|
+
state.jobs[key] = runJob(iterator3, key, list[key], function(error, output) {
|
|
8988
8988
|
if (!(key in state.jobs)) {
|
|
8989
8989
|
return;
|
|
8990
8990
|
}
|
|
@@ -8997,12 +8997,12 @@ var require_iterate = __commonJS({
|
|
|
8997
8997
|
callback(error, state.results);
|
|
8998
8998
|
});
|
|
8999
8999
|
}
|
|
9000
|
-
function runJob(
|
|
9000
|
+
function runJob(iterator3, key, item, callback) {
|
|
9001
9001
|
var aborter;
|
|
9002
|
-
if (
|
|
9003
|
-
aborter =
|
|
9002
|
+
if (iterator3.length == 2) {
|
|
9003
|
+
aborter = iterator3(item, async(callback));
|
|
9004
9004
|
} else {
|
|
9005
|
-
aborter =
|
|
9005
|
+
aborter = iterator3(item, key, async(callback));
|
|
9006
9006
|
}
|
|
9007
9007
|
return aborter;
|
|
9008
9008
|
}
|
|
@@ -9058,10 +9058,10 @@ var require_parallel = __commonJS({
|
|
|
9058
9058
|
var initState = require_state();
|
|
9059
9059
|
var terminator = require_terminator();
|
|
9060
9060
|
module2.exports = parallel;
|
|
9061
|
-
function parallel(list,
|
|
9061
|
+
function parallel(list, iterator3, callback) {
|
|
9062
9062
|
var state = initState(list);
|
|
9063
9063
|
while (state.index < (state["keyedList"] || list).length) {
|
|
9064
|
-
iterate(list,
|
|
9064
|
+
iterate(list, iterator3, state, function(error, result) {
|
|
9065
9065
|
if (error) {
|
|
9066
9066
|
callback(error, result);
|
|
9067
9067
|
return;
|
|
@@ -9088,16 +9088,16 @@ var require_serialOrdered = __commonJS({
|
|
|
9088
9088
|
module2.exports = serialOrdered;
|
|
9089
9089
|
module2.exports.ascending = ascending;
|
|
9090
9090
|
module2.exports.descending = descending;
|
|
9091
|
-
function serialOrdered(list,
|
|
9091
|
+
function serialOrdered(list, iterator3, sortMethod, callback) {
|
|
9092
9092
|
var state = initState(list, sortMethod);
|
|
9093
|
-
iterate(list,
|
|
9093
|
+
iterate(list, iterator3, state, function iteratorHandler(error, result) {
|
|
9094
9094
|
if (error) {
|
|
9095
9095
|
callback(error, result);
|
|
9096
9096
|
return;
|
|
9097
9097
|
}
|
|
9098
9098
|
state.index++;
|
|
9099
9099
|
if (state.index < (state["keyedList"] || list).length) {
|
|
9100
|
-
iterate(list,
|
|
9100
|
+
iterate(list, iterator3, state, iteratorHandler);
|
|
9101
9101
|
return;
|
|
9102
9102
|
}
|
|
9103
9103
|
callback(null, state.results);
|
|
@@ -9119,8 +9119,8 @@ var require_serial = __commonJS({
|
|
|
9119
9119
|
"use strict";
|
|
9120
9120
|
var serialOrdered = require_serialOrdered();
|
|
9121
9121
|
module2.exports = serial;
|
|
9122
|
-
function serial(list,
|
|
9123
|
-
return serialOrdered(list,
|
|
9122
|
+
function serial(list, iterator3, callback) {
|
|
9123
|
+
return serialOrdered(list, iterator3, null, callback);
|
|
9124
9124
|
}
|
|
9125
9125
|
}
|
|
9126
9126
|
});
|
|
@@ -9155,7 +9155,7 @@ var require_form_data = __commonJS({
|
|
|
9155
9155
|
"../../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/form_data.js"(exports, module2) {
|
|
9156
9156
|
"use strict";
|
|
9157
9157
|
var CombinedStream = require_combined_stream();
|
|
9158
|
-
var
|
|
9158
|
+
var util3 = require("util");
|
|
9159
9159
|
var path = require("path");
|
|
9160
9160
|
var http2 = require("http");
|
|
9161
9161
|
var https2 = require("https");
|
|
@@ -9165,11 +9165,11 @@ var require_form_data = __commonJS({
|
|
|
9165
9165
|
var mime = require_mime_types();
|
|
9166
9166
|
var asynckit = require_asynckit();
|
|
9167
9167
|
var populate = require_populate();
|
|
9168
|
-
module2.exports =
|
|
9169
|
-
|
|
9170
|
-
function
|
|
9171
|
-
if (!(this instanceof
|
|
9172
|
-
return new
|
|
9168
|
+
module2.exports = FormData3;
|
|
9169
|
+
util3.inherits(FormData3, CombinedStream);
|
|
9170
|
+
function FormData3(options) {
|
|
9171
|
+
if (!(this instanceof FormData3)) {
|
|
9172
|
+
return new FormData3(options);
|
|
9173
9173
|
}
|
|
9174
9174
|
this._overheadLength = 0;
|
|
9175
9175
|
this._valueLength = 0;
|
|
@@ -9180,9 +9180,9 @@ var require_form_data = __commonJS({
|
|
|
9180
9180
|
this[option] = options[option];
|
|
9181
9181
|
}
|
|
9182
9182
|
}
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9183
|
+
FormData3.LINE_BREAK = "\r\n";
|
|
9184
|
+
FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
9185
|
+
FormData3.prototype.append = function(field, value, options) {
|
|
9186
9186
|
options = options || {};
|
|
9187
9187
|
if (typeof options == "string") {
|
|
9188
9188
|
options = { filename: options };
|
|
@@ -9191,7 +9191,7 @@ var require_form_data = __commonJS({
|
|
|
9191
9191
|
if (typeof value == "number") {
|
|
9192
9192
|
value = "" + value;
|
|
9193
9193
|
}
|
|
9194
|
-
if (
|
|
9194
|
+
if (util3.isArray(value)) {
|
|
9195
9195
|
this._error(new Error("Arrays are not supported."));
|
|
9196
9196
|
return;
|
|
9197
9197
|
}
|
|
@@ -9202,7 +9202,7 @@ var require_form_data = __commonJS({
|
|
|
9202
9202
|
append2(footer);
|
|
9203
9203
|
this._trackLength(header, value, options);
|
|
9204
9204
|
};
|
|
9205
|
-
|
|
9205
|
+
FormData3.prototype._trackLength = function(header, value, options) {
|
|
9206
9206
|
var valueLength = 0;
|
|
9207
9207
|
if (options.knownLength != null) {
|
|
9208
9208
|
valueLength += +options.knownLength;
|
|
@@ -9212,7 +9212,7 @@ var require_form_data = __commonJS({
|
|
|
9212
9212
|
valueLength = Buffer.byteLength(value);
|
|
9213
9213
|
}
|
|
9214
9214
|
this._valueLength += valueLength;
|
|
9215
|
-
this._overheadLength += Buffer.byteLength(header) +
|
|
9215
|
+
this._overheadLength += Buffer.byteLength(header) + FormData3.LINE_BREAK.length;
|
|
9216
9216
|
if (!value || !value.path && !(value.readable && value.hasOwnProperty("httpVersion")) && !(value instanceof Stream)) {
|
|
9217
9217
|
return;
|
|
9218
9218
|
}
|
|
@@ -9220,7 +9220,7 @@ var require_form_data = __commonJS({
|
|
|
9220
9220
|
this._valuesToMeasure.push(value);
|
|
9221
9221
|
}
|
|
9222
9222
|
};
|
|
9223
|
-
|
|
9223
|
+
FormData3.prototype._lengthRetriever = function(value, callback) {
|
|
9224
9224
|
if (value.hasOwnProperty("fd")) {
|
|
9225
9225
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
9226
9226
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
@@ -9247,7 +9247,7 @@ var require_form_data = __commonJS({
|
|
|
9247
9247
|
callback("Unknown stream");
|
|
9248
9248
|
}
|
|
9249
9249
|
};
|
|
9250
|
-
|
|
9250
|
+
FormData3.prototype._multiPartHeader = function(field, value, options) {
|
|
9251
9251
|
if (typeof options.header == "string") {
|
|
9252
9252
|
return options.header;
|
|
9253
9253
|
}
|
|
@@ -9275,12 +9275,12 @@ var require_form_data = __commonJS({
|
|
|
9275
9275
|
header = [header];
|
|
9276
9276
|
}
|
|
9277
9277
|
if (header.length) {
|
|
9278
|
-
contents += prop + ": " + header.join("; ") +
|
|
9278
|
+
contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
|
|
9279
9279
|
}
|
|
9280
9280
|
}
|
|
9281
|
-
return "--" + this.getBoundary() +
|
|
9281
|
+
return "--" + this.getBoundary() + FormData3.LINE_BREAK + contents + FormData3.LINE_BREAK;
|
|
9282
9282
|
};
|
|
9283
|
-
|
|
9283
|
+
FormData3.prototype._getContentDisposition = function(value, options) {
|
|
9284
9284
|
var filename, contentDisposition;
|
|
9285
9285
|
if (typeof options.filepath === "string") {
|
|
9286
9286
|
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
@@ -9294,7 +9294,7 @@ var require_form_data = __commonJS({
|
|
|
9294
9294
|
}
|
|
9295
9295
|
return contentDisposition;
|
|
9296
9296
|
};
|
|
9297
|
-
|
|
9297
|
+
FormData3.prototype._getContentType = function(value, options) {
|
|
9298
9298
|
var contentType = options.contentType;
|
|
9299
9299
|
if (!contentType && value.name) {
|
|
9300
9300
|
contentType = mime.lookup(value.name);
|
|
@@ -9309,13 +9309,13 @@ var require_form_data = __commonJS({
|
|
|
9309
9309
|
contentType = mime.lookup(options.filepath || options.filename);
|
|
9310
9310
|
}
|
|
9311
9311
|
if (!contentType && typeof value == "object") {
|
|
9312
|
-
contentType =
|
|
9312
|
+
contentType = FormData3.DEFAULT_CONTENT_TYPE;
|
|
9313
9313
|
}
|
|
9314
9314
|
return contentType;
|
|
9315
9315
|
};
|
|
9316
|
-
|
|
9316
|
+
FormData3.prototype._multiPartFooter = function() {
|
|
9317
9317
|
return function(next) {
|
|
9318
|
-
var footer =
|
|
9318
|
+
var footer = FormData3.LINE_BREAK;
|
|
9319
9319
|
var lastPart = this._streams.length === 0;
|
|
9320
9320
|
if (lastPart) {
|
|
9321
9321
|
footer += this._lastBoundary();
|
|
@@ -9323,10 +9323,10 @@ var require_form_data = __commonJS({
|
|
|
9323
9323
|
next(footer);
|
|
9324
9324
|
}.bind(this);
|
|
9325
9325
|
};
|
|
9326
|
-
|
|
9327
|
-
return "--" + this.getBoundary() + "--" +
|
|
9326
|
+
FormData3.prototype._lastBoundary = function() {
|
|
9327
|
+
return "--" + this.getBoundary() + "--" + FormData3.LINE_BREAK;
|
|
9328
9328
|
};
|
|
9329
|
-
|
|
9329
|
+
FormData3.prototype.getHeaders = function(userHeaders) {
|
|
9330
9330
|
var header;
|
|
9331
9331
|
var formHeaders = {
|
|
9332
9332
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
@@ -9338,16 +9338,16 @@ var require_form_data = __commonJS({
|
|
|
9338
9338
|
}
|
|
9339
9339
|
return formHeaders;
|
|
9340
9340
|
};
|
|
9341
|
-
|
|
9341
|
+
FormData3.prototype.setBoundary = function(boundary) {
|
|
9342
9342
|
this._boundary = boundary;
|
|
9343
9343
|
};
|
|
9344
|
-
|
|
9344
|
+
FormData3.prototype.getBoundary = function() {
|
|
9345
9345
|
if (!this._boundary) {
|
|
9346
9346
|
this._generateBoundary();
|
|
9347
9347
|
}
|
|
9348
9348
|
return this._boundary;
|
|
9349
9349
|
};
|
|
9350
|
-
|
|
9350
|
+
FormData3.prototype.getBuffer = function() {
|
|
9351
9351
|
var dataBuffer = new Buffer.alloc(0);
|
|
9352
9352
|
var boundary = this.getBoundary();
|
|
9353
9353
|
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
@@ -9358,20 +9358,20 @@ var require_form_data = __commonJS({
|
|
|
9358
9358
|
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
|
9359
9359
|
}
|
|
9360
9360
|
if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
|
9361
|
-
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(
|
|
9361
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData3.LINE_BREAK)]);
|
|
9362
9362
|
}
|
|
9363
9363
|
}
|
|
9364
9364
|
}
|
|
9365
9365
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
9366
9366
|
};
|
|
9367
|
-
|
|
9367
|
+
FormData3.prototype._generateBoundary = function() {
|
|
9368
9368
|
var boundary = "--------------------------";
|
|
9369
9369
|
for (var i = 0; i < 24; i++) {
|
|
9370
9370
|
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
9371
9371
|
}
|
|
9372
9372
|
this._boundary = boundary;
|
|
9373
9373
|
};
|
|
9374
|
-
|
|
9374
|
+
FormData3.prototype.getLengthSync = function() {
|
|
9375
9375
|
var knownLength = this._overheadLength + this._valueLength;
|
|
9376
9376
|
if (this._streams.length) {
|
|
9377
9377
|
knownLength += this._lastBoundary().length;
|
|
@@ -9381,14 +9381,14 @@ var require_form_data = __commonJS({
|
|
|
9381
9381
|
}
|
|
9382
9382
|
return knownLength;
|
|
9383
9383
|
};
|
|
9384
|
-
|
|
9384
|
+
FormData3.prototype.hasKnownLength = function() {
|
|
9385
9385
|
var hasKnownLength = true;
|
|
9386
9386
|
if (this._valuesToMeasure.length) {
|
|
9387
9387
|
hasKnownLength = false;
|
|
9388
9388
|
}
|
|
9389
9389
|
return hasKnownLength;
|
|
9390
9390
|
};
|
|
9391
|
-
|
|
9391
|
+
FormData3.prototype.getLength = function(cb) {
|
|
9392
9392
|
var knownLength = this._overheadLength + this._valueLength;
|
|
9393
9393
|
if (this._streams.length) {
|
|
9394
9394
|
knownLength += this._lastBoundary().length;
|
|
@@ -9408,7 +9408,7 @@ var require_form_data = __commonJS({
|
|
|
9408
9408
|
cb(null, knownLength);
|
|
9409
9409
|
});
|
|
9410
9410
|
};
|
|
9411
|
-
|
|
9411
|
+
FormData3.prototype.submit = function(params, cb) {
|
|
9412
9412
|
var request, options, defaults2 = { method: "post" };
|
|
9413
9413
|
if (typeof params == "string") {
|
|
9414
9414
|
params = parseUrl(params);
|
|
@@ -9453,14 +9453,14 @@ var require_form_data = __commonJS({
|
|
|
9453
9453
|
}.bind(this));
|
|
9454
9454
|
return request;
|
|
9455
9455
|
};
|
|
9456
|
-
|
|
9456
|
+
FormData3.prototype._error = function(err) {
|
|
9457
9457
|
if (!this.error) {
|
|
9458
9458
|
this.error = err;
|
|
9459
9459
|
this.pause();
|
|
9460
9460
|
this.emit("error", err);
|
|
9461
9461
|
}
|
|
9462
9462
|
};
|
|
9463
|
-
|
|
9463
|
+
FormData3.prototype.toString = function() {
|
|
9464
9464
|
return "[object FormData]";
|
|
9465
9465
|
};
|
|
9466
9466
|
}
|
|
@@ -9482,7 +9482,7 @@ var require_proxy_from_env = __commonJS({
|
|
|
9482
9482
|
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
9483
9483
|
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
9484
9484
|
};
|
|
9485
|
-
function
|
|
9485
|
+
function getProxyForUrl(url2) {
|
|
9486
9486
|
var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
|
|
9487
9487
|
var proto = parsedUrl.protocol;
|
|
9488
9488
|
var hostname = parsedUrl.host;
|
|
@@ -9532,7 +9532,7 @@ var require_proxy_from_env = __commonJS({
|
|
|
9532
9532
|
function getEnv(key) {
|
|
9533
9533
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
9534
9534
|
}
|
|
9535
|
-
exports.getProxyForUrl =
|
|
9535
|
+
exports.getProxyForUrl = getProxyForUrl;
|
|
9536
9536
|
}
|
|
9537
9537
|
});
|
|
9538
9538
|
|
|
@@ -10090,8 +10090,8 @@ var require_supports_color = __commonJS({
|
|
|
10090
10090
|
}
|
|
10091
10091
|
return min;
|
|
10092
10092
|
}
|
|
10093
|
-
function getSupportLevel(
|
|
10094
|
-
const level = supportsColor(
|
|
10093
|
+
function getSupportLevel(stream4) {
|
|
10094
|
+
const level = supportsColor(stream4, stream4 && stream4.isTTY);
|
|
10095
10095
|
return translateLevel(level);
|
|
10096
10096
|
}
|
|
10097
10097
|
module2.exports = {
|
|
@@ -10107,14 +10107,14 @@ var require_node = __commonJS({
|
|
|
10107
10107
|
"../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js"(exports, module2) {
|
|
10108
10108
|
"use strict";
|
|
10109
10109
|
var tty = require("tty");
|
|
10110
|
-
var
|
|
10110
|
+
var util3 = require("util");
|
|
10111
10111
|
exports.init = init;
|
|
10112
10112
|
exports.log = log;
|
|
10113
10113
|
exports.formatArgs = formatArgs;
|
|
10114
10114
|
exports.save = save;
|
|
10115
10115
|
exports.load = load;
|
|
10116
10116
|
exports.useColors = useColors;
|
|
10117
|
-
exports.destroy =
|
|
10117
|
+
exports.destroy = util3.deprecate(
|
|
10118
10118
|
() => {
|
|
10119
10119
|
},
|
|
10120
10120
|
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
@@ -10245,7 +10245,7 @@ var require_node = __commonJS({
|
|
|
10245
10245
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
10246
10246
|
}
|
|
10247
10247
|
function log(...args) {
|
|
10248
|
-
return process.stderr.write(
|
|
10248
|
+
return process.stderr.write(util3.format(...args) + "\n");
|
|
10249
10249
|
}
|
|
10250
10250
|
function save(namespaces) {
|
|
10251
10251
|
if (namespaces) {
|
|
@@ -10268,11 +10268,11 @@ var require_node = __commonJS({
|
|
|
10268
10268
|
var { formatters } = module2.exports;
|
|
10269
10269
|
formatters.o = function(v) {
|
|
10270
10270
|
this.inspectOpts.colors = this.useColors;
|
|
10271
|
-
return
|
|
10271
|
+
return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
10272
10272
|
};
|
|
10273
10273
|
formatters.O = function(v) {
|
|
10274
10274
|
this.inspectOpts.colors = this.useColors;
|
|
10275
|
-
return
|
|
10275
|
+
return util3.inspect(v, this.inspectOpts);
|
|
10276
10276
|
};
|
|
10277
10277
|
}
|
|
10278
10278
|
});
|
|
@@ -11802,16 +11802,17 @@ var Authenticator = class extends Emittery {
|
|
|
11802
11802
|
};
|
|
11803
11803
|
var Authenticator_default = Authenticator;
|
|
11804
11804
|
|
|
11805
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11805
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/bind.js
|
|
11806
11806
|
function bind(fn, thisArg) {
|
|
11807
11807
|
return function wrap() {
|
|
11808
11808
|
return fn.apply(thisArg, arguments);
|
|
11809
11809
|
};
|
|
11810
11810
|
}
|
|
11811
11811
|
|
|
11812
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11812
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/utils.js
|
|
11813
11813
|
var { toString } = Object.prototype;
|
|
11814
11814
|
var { getPrototypeOf } = Object;
|
|
11815
|
+
var { iterator: iterator2, toStringTag } = Symbol;
|
|
11815
11816
|
var kindOf = ((cache) => (thing) => {
|
|
11816
11817
|
const str = toString.call(thing);
|
|
11817
11818
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -11846,7 +11847,7 @@ var isPlainObject = (val) => {
|
|
|
11846
11847
|
return false;
|
|
11847
11848
|
}
|
|
11848
11849
|
const prototype3 = getPrototypeOf(val);
|
|
11849
|
-
return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(
|
|
11850
|
+
return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(toStringTag in val) && !(iterator2 in val);
|
|
11850
11851
|
};
|
|
11851
11852
|
var isDate = kindOfTest("Date");
|
|
11852
11853
|
var isFile = kindOfTest("File");
|
|
@@ -11854,10 +11855,12 @@ var isBlob = kindOfTest("Blob");
|
|
|
11854
11855
|
var isFileList = kindOfTest("FileList");
|
|
11855
11856
|
var isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
11856
11857
|
var isFormData = (thing) => {
|
|
11857
|
-
|
|
11858
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData ||
|
|
11858
|
+
let kind;
|
|
11859
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
11860
|
+
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
11859
11861
|
};
|
|
11860
11862
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
11863
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
11861
11864
|
var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
11862
11865
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
11863
11866
|
if (obj === null || typeof obj === "undefined") {
|
|
@@ -11895,7 +11898,11 @@ function findKey(obj, key) {
|
|
|
11895
11898
|
}
|
|
11896
11899
|
return null;
|
|
11897
11900
|
}
|
|
11898
|
-
var _global =
|
|
11901
|
+
var _global = (() => {
|
|
11902
|
+
if (typeof globalThis !== "undefined")
|
|
11903
|
+
return globalThis;
|
|
11904
|
+
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
11905
|
+
})();
|
|
11899
11906
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
11900
11907
|
function merge() {
|
|
11901
11908
|
const { caseless } = isContextDefined(this) && this || {};
|
|
@@ -11992,10 +11999,10 @@ var isTypedArray = ((TypedArray) => {
|
|
|
11992
11999
|
};
|
|
11993
12000
|
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
11994
12001
|
var forEachEntry = (obj, fn) => {
|
|
11995
|
-
const generator = obj && obj[
|
|
11996
|
-
const
|
|
12002
|
+
const generator = obj && obj[iterator2];
|
|
12003
|
+
const _iterator = generator.call(obj);
|
|
11997
12004
|
let result;
|
|
11998
|
-
while ((result =
|
|
12005
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
11999
12006
|
const pair = result.value;
|
|
12000
12007
|
fn.call(obj, pair[0], pair[1]);
|
|
12001
12008
|
}
|
|
@@ -12011,7 +12018,7 @@ var matchAll = (regExp, str) => {
|
|
|
12011
12018
|
var isHTMLForm = kindOfTest("HTMLFormElement");
|
|
12012
12019
|
var toCamelCase = (str) => {
|
|
12013
12020
|
return str.toLowerCase().replace(
|
|
12014
|
-
/[_
|
|
12021
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
12015
12022
|
function replacer(m, p1, p2) {
|
|
12016
12023
|
return p1.toUpperCase() + p2;
|
|
12017
12024
|
}
|
|
@@ -12023,8 +12030,9 @@ var reduceDescriptors = (obj, reducer) => {
|
|
|
12023
12030
|
const descriptors2 = Object.getOwnPropertyDescriptors(obj);
|
|
12024
12031
|
const reducedDescriptors = {};
|
|
12025
12032
|
forEach(descriptors2, (descriptor, name) => {
|
|
12026
|
-
|
|
12027
|
-
|
|
12033
|
+
let ret;
|
|
12034
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
12035
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
12028
12036
|
}
|
|
12029
12037
|
});
|
|
12030
12038
|
Object.defineProperties(obj, reducedDescriptors);
|
|
@@ -12062,9 +12070,11 @@ var toObjectSet = (arrayOrString, delimiter) => {
|
|
|
12062
12070
|
var noop = () => {
|
|
12063
12071
|
};
|
|
12064
12072
|
var toFiniteNumber = (value, defaultValue) => {
|
|
12065
|
-
value = +value;
|
|
12066
|
-
return Number.isFinite(value) ? value : defaultValue;
|
|
12073
|
+
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
12067
12074
|
};
|
|
12075
|
+
function isSpecCompliantForm(thing) {
|
|
12076
|
+
return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator2]);
|
|
12077
|
+
}
|
|
12068
12078
|
var toJSONObject = (obj) => {
|
|
12069
12079
|
const stack = new Array(10);
|
|
12070
12080
|
const visit = (source, i) => {
|
|
@@ -12087,6 +12097,29 @@ var toJSONObject = (obj) => {
|
|
|
12087
12097
|
};
|
|
12088
12098
|
return visit(obj, 0);
|
|
12089
12099
|
};
|
|
12100
|
+
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
12101
|
+
var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
12102
|
+
var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
12103
|
+
if (setImmediateSupported) {
|
|
12104
|
+
return setImmediate;
|
|
12105
|
+
}
|
|
12106
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
12107
|
+
_global.addEventListener("message", ({ source, data }) => {
|
|
12108
|
+
if (source === _global && data === token) {
|
|
12109
|
+
callbacks.length && callbacks.shift()();
|
|
12110
|
+
}
|
|
12111
|
+
}, false);
|
|
12112
|
+
return (cb) => {
|
|
12113
|
+
callbacks.push(cb);
|
|
12114
|
+
_global.postMessage(token, "*");
|
|
12115
|
+
};
|
|
12116
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
12117
|
+
})(
|
|
12118
|
+
typeof setImmediate === "function",
|
|
12119
|
+
isFunction(_global.postMessage)
|
|
12120
|
+
);
|
|
12121
|
+
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
12122
|
+
var isIterable = (thing) => thing != null && isFunction(thing[iterator2]);
|
|
12090
12123
|
var utils_default = {
|
|
12091
12124
|
isArray,
|
|
12092
12125
|
isArrayBuffer,
|
|
@@ -12098,6 +12131,10 @@ var utils_default = {
|
|
|
12098
12131
|
isBoolean,
|
|
12099
12132
|
isObject,
|
|
12100
12133
|
isPlainObject,
|
|
12134
|
+
isReadableStream,
|
|
12135
|
+
isRequest,
|
|
12136
|
+
isResponse,
|
|
12137
|
+
isHeaders,
|
|
12101
12138
|
isUndefined,
|
|
12102
12139
|
isDate,
|
|
12103
12140
|
isFile,
|
|
@@ -12134,10 +12171,16 @@ var utils_default = {
|
|
|
12134
12171
|
findKey,
|
|
12135
12172
|
global: _global,
|
|
12136
12173
|
isContextDefined,
|
|
12137
|
-
|
|
12174
|
+
isSpecCompliantForm,
|
|
12175
|
+
toJSONObject,
|
|
12176
|
+
isAsyncFn,
|
|
12177
|
+
isThenable,
|
|
12178
|
+
setImmediate: _setImmediate,
|
|
12179
|
+
asap,
|
|
12180
|
+
isIterable
|
|
12138
12181
|
};
|
|
12139
12182
|
|
|
12140
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12183
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/AxiosError.js
|
|
12141
12184
|
function AxiosError(message, code, config, request, response) {
|
|
12142
12185
|
Error.call(this);
|
|
12143
12186
|
if (Error.captureStackTrace) {
|
|
@@ -12150,7 +12193,10 @@ function AxiosError(message, code, config, request, response) {
|
|
|
12150
12193
|
code && (this.code = code);
|
|
12151
12194
|
config && (this.config = config);
|
|
12152
12195
|
request && (this.request = request);
|
|
12153
|
-
|
|
12196
|
+
if (response) {
|
|
12197
|
+
this.response = response;
|
|
12198
|
+
this.status = response.status ? response.status : null;
|
|
12199
|
+
}
|
|
12154
12200
|
}
|
|
12155
12201
|
utils_default.inherits(AxiosError, Error, {
|
|
12156
12202
|
toJSON: function toJSON() {
|
|
@@ -12169,7 +12215,7 @@ utils_default.inherits(AxiosError, Error, {
|
|
|
12169
12215
|
// Axios
|
|
12170
12216
|
config: utils_default.toJSONObject(this.config),
|
|
12171
12217
|
code: this.code,
|
|
12172
|
-
status: this.
|
|
12218
|
+
status: this.status
|
|
12173
12219
|
};
|
|
12174
12220
|
}
|
|
12175
12221
|
});
|
|
@@ -12209,11 +12255,11 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
12209
12255
|
};
|
|
12210
12256
|
var AxiosError_default = AxiosError;
|
|
12211
12257
|
|
|
12212
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12258
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
12213
12259
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
12214
12260
|
var FormData_default = import_form_data.default;
|
|
12215
12261
|
|
|
12216
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12262
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/toFormData.js
|
|
12217
12263
|
function isVisitable(thing) {
|
|
12218
12264
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
12219
12265
|
}
|
|
@@ -12234,9 +12280,6 @@ function isFlatArray(arr) {
|
|
|
12234
12280
|
var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
|
|
12235
12281
|
return /^is[A-Z]/.test(prop);
|
|
12236
12282
|
});
|
|
12237
|
-
function isSpecCompliant(thing) {
|
|
12238
|
-
return thing && utils_default.isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator];
|
|
12239
|
-
}
|
|
12240
12283
|
function toFormData(obj, formData, options) {
|
|
12241
12284
|
if (!utils_default.isObject(obj)) {
|
|
12242
12285
|
throw new TypeError("target must be an object");
|
|
@@ -12254,7 +12297,7 @@ function toFormData(obj, formData, options) {
|
|
|
12254
12297
|
const dots = options.dots;
|
|
12255
12298
|
const indexes = options.indexes;
|
|
12256
12299
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
12257
|
-
const useBlob = _Blob &&
|
|
12300
|
+
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
12258
12301
|
if (!utils_default.isFunction(visitor)) {
|
|
12259
12302
|
throw new TypeError("visitor must be a function");
|
|
12260
12303
|
}
|
|
@@ -12278,7 +12321,7 @@ function toFormData(obj, formData, options) {
|
|
|
12278
12321
|
if (utils_default.endsWith(key, "{}")) {
|
|
12279
12322
|
key = metaTokens ? key : key.slice(0, -2);
|
|
12280
12323
|
value = JSON.stringify(value);
|
|
12281
|
-
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]") && (arr = utils_default.toArray(value)))
|
|
12324
|
+
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
12282
12325
|
key = removeBrackets(key);
|
|
12283
12326
|
arr.forEach(function each(el, index) {
|
|
12284
12327
|
!(utils_default.isUndefined(el) || el === null) && formData.append(
|
|
@@ -12331,7 +12374,7 @@ function toFormData(obj, formData, options) {
|
|
|
12331
12374
|
}
|
|
12332
12375
|
var toFormData_default = toFormData;
|
|
12333
12376
|
|
|
12334
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12377
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
12335
12378
|
function encode(str) {
|
|
12336
12379
|
const charMap = {
|
|
12337
12380
|
"!": "%21",
|
|
@@ -12364,7 +12407,7 @@ prototype2.toString = function toString2(encoder) {
|
|
|
12364
12407
|
};
|
|
12365
12408
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
12366
12409
|
|
|
12367
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12410
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/buildURL.js
|
|
12368
12411
|
function encode2(val) {
|
|
12369
12412
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
12370
12413
|
}
|
|
@@ -12373,6 +12416,11 @@ function buildURL(url2, params, options) {
|
|
|
12373
12416
|
return url2;
|
|
12374
12417
|
}
|
|
12375
12418
|
const _encode = options && options.encode || encode2;
|
|
12419
|
+
if (utils_default.isFunction(options)) {
|
|
12420
|
+
options = {
|
|
12421
|
+
serialize: options
|
|
12422
|
+
};
|
|
12423
|
+
}
|
|
12376
12424
|
const serializeFn = options && options.serialize;
|
|
12377
12425
|
let serializedParams;
|
|
12378
12426
|
if (serializeFn) {
|
|
@@ -12390,7 +12438,7 @@ function buildURL(url2, params, options) {
|
|
|
12390
12438
|
return url2;
|
|
12391
12439
|
}
|
|
12392
12440
|
|
|
12393
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12441
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/InterceptorManager.js
|
|
12394
12442
|
var InterceptorManager = class {
|
|
12395
12443
|
constructor() {
|
|
12396
12444
|
this.handlers = [];
|
|
@@ -12454,37 +12502,79 @@ var InterceptorManager = class {
|
|
|
12454
12502
|
};
|
|
12455
12503
|
var InterceptorManager_default = InterceptorManager;
|
|
12456
12504
|
|
|
12457
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12505
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/defaults/transitional.js
|
|
12458
12506
|
var transitional_default = {
|
|
12459
12507
|
silentJSONParsing: true,
|
|
12460
12508
|
forcedJSONParsing: true,
|
|
12461
12509
|
clarifyTimeoutError: false
|
|
12462
12510
|
};
|
|
12463
12511
|
|
|
12464
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12512
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/node/index.js
|
|
12513
|
+
var import_crypto = __toESM(require("crypto"), 1);
|
|
12514
|
+
|
|
12515
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
12465
12516
|
var import_url = __toESM(require("url"), 1);
|
|
12466
12517
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
12467
12518
|
|
|
12468
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12469
|
-
var
|
|
12470
|
-
var
|
|
12471
|
-
|
|
12472
|
-
|
|
12519
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/node/index.js
|
|
12520
|
+
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
12521
|
+
var DIGIT = "0123456789";
|
|
12522
|
+
var ALPHABET = {
|
|
12523
|
+
DIGIT,
|
|
12524
|
+
ALPHA,
|
|
12525
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
12526
|
+
};
|
|
12527
|
+
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
12528
|
+
let str = "";
|
|
12529
|
+
const { length } = alphabet;
|
|
12530
|
+
const randomValues = new Uint32Array(size);
|
|
12531
|
+
import_crypto.default.randomFillSync(randomValues);
|
|
12532
|
+
for (let i = 0; i < size; i++) {
|
|
12533
|
+
str += alphabet[randomValues[i] % length];
|
|
12534
|
+
}
|
|
12535
|
+
return str;
|
|
12536
|
+
};
|
|
12473
12537
|
var node_default = {
|
|
12474
12538
|
isNode: true,
|
|
12475
12539
|
classes: {
|
|
12476
12540
|
URLSearchParams: URLSearchParams_default,
|
|
12477
|
-
FormData:
|
|
12541
|
+
FormData: FormData_default,
|
|
12478
12542
|
Blob: typeof Blob !== "undefined" && Blob || null
|
|
12479
12543
|
},
|
|
12544
|
+
ALPHABET,
|
|
12545
|
+
generateString,
|
|
12480
12546
|
protocols: ["http", "https", "file", "data"]
|
|
12481
12547
|
};
|
|
12482
12548
|
|
|
12483
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12549
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/common/utils.js
|
|
12550
|
+
var utils_exports = {};
|
|
12551
|
+
__export(utils_exports, {
|
|
12552
|
+
hasBrowserEnv: () => hasBrowserEnv,
|
|
12553
|
+
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
12554
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
12555
|
+
navigator: () => _navigator,
|
|
12556
|
+
origin: () => origin
|
|
12557
|
+
});
|
|
12558
|
+
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
12559
|
+
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
12560
|
+
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
12561
|
+
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
12562
|
+
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
12563
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
12564
|
+
})();
|
|
12565
|
+
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
12566
|
+
|
|
12567
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/platform/index.js
|
|
12568
|
+
var platform_default = {
|
|
12569
|
+
...utils_exports,
|
|
12570
|
+
...node_default
|
|
12571
|
+
};
|
|
12572
|
+
|
|
12573
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
12484
12574
|
function toURLEncodedForm(data, options) {
|
|
12485
|
-
return toFormData_default(data, new
|
|
12575
|
+
return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
|
|
12486
12576
|
visitor: function(value, key, path, helpers) {
|
|
12487
|
-
if (
|
|
12577
|
+
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
12488
12578
|
this.append(key, value.toString("base64"));
|
|
12489
12579
|
return false;
|
|
12490
12580
|
}
|
|
@@ -12493,7 +12583,7 @@ function toURLEncodedForm(data, options) {
|
|
|
12493
12583
|
}, options));
|
|
12494
12584
|
}
|
|
12495
12585
|
|
|
12496
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12586
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
12497
12587
|
function parsePropPath(name) {
|
|
12498
12588
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
12499
12589
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -12514,6 +12604,8 @@ function arrayToObject(arr) {
|
|
|
12514
12604
|
function formDataToJSON(formData) {
|
|
12515
12605
|
function buildPath(path, value, target, index) {
|
|
12516
12606
|
let name = path[index++];
|
|
12607
|
+
if (name === "__proto__")
|
|
12608
|
+
return true;
|
|
12517
12609
|
const isNumericKey = Number.isFinite(+name);
|
|
12518
12610
|
const isLast = index >= path.length;
|
|
12519
12611
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
@@ -12545,10 +12637,7 @@ function formDataToJSON(formData) {
|
|
|
12545
12637
|
}
|
|
12546
12638
|
var formDataToJSON_default = formDataToJSON;
|
|
12547
12639
|
|
|
12548
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12549
|
-
var DEFAULT_CONTENT_TYPE = {
|
|
12550
|
-
"Content-Type": void 0
|
|
12551
|
-
};
|
|
12640
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/defaults/index.js
|
|
12552
12641
|
function stringifySafely(rawValue, parser, encoder) {
|
|
12553
12642
|
if (utils_default.isString(rawValue)) {
|
|
12554
12643
|
try {
|
|
@@ -12564,7 +12653,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
12564
12653
|
}
|
|
12565
12654
|
var defaults = {
|
|
12566
12655
|
transitional: transitional_default,
|
|
12567
|
-
adapter: ["xhr", "http"],
|
|
12656
|
+
adapter: ["xhr", "http", "fetch"],
|
|
12568
12657
|
transformRequest: [function transformRequest(data, headers) {
|
|
12569
12658
|
const contentType = headers.getContentType() || "";
|
|
12570
12659
|
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
@@ -12574,12 +12663,9 @@ var defaults = {
|
|
|
12574
12663
|
}
|
|
12575
12664
|
const isFormData2 = utils_default.isFormData(data);
|
|
12576
12665
|
if (isFormData2) {
|
|
12577
|
-
if (!hasJSONContentType) {
|
|
12578
|
-
return data;
|
|
12579
|
-
}
|
|
12580
12666
|
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
12581
12667
|
}
|
|
12582
|
-
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
|
|
12668
|
+
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)) {
|
|
12583
12669
|
return data;
|
|
12584
12670
|
}
|
|
12585
12671
|
if (utils_default.isArrayBufferView(data)) {
|
|
@@ -12613,6 +12699,9 @@ var defaults = {
|
|
|
12613
12699
|
const transitional2 = this.transitional || defaults.transitional;
|
|
12614
12700
|
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
12615
12701
|
const JSONRequested = this.responseType === "json";
|
|
12702
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
12703
|
+
return data;
|
|
12704
|
+
}
|
|
12616
12705
|
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
12617
12706
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
12618
12707
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
@@ -12639,27 +12728,25 @@ var defaults = {
|
|
|
12639
12728
|
maxContentLength: -1,
|
|
12640
12729
|
maxBodyLength: -1,
|
|
12641
12730
|
env: {
|
|
12642
|
-
FormData:
|
|
12643
|
-
Blob:
|
|
12731
|
+
FormData: platform_default.classes.FormData,
|
|
12732
|
+
Blob: platform_default.classes.Blob
|
|
12644
12733
|
},
|
|
12645
12734
|
validateStatus: function validateStatus(status) {
|
|
12646
12735
|
return status >= 200 && status < 300;
|
|
12647
12736
|
},
|
|
12648
12737
|
headers: {
|
|
12649
12738
|
common: {
|
|
12650
|
-
"Accept": "application/json, text/plain, */*"
|
|
12739
|
+
"Accept": "application/json, text/plain, */*",
|
|
12740
|
+
"Content-Type": void 0
|
|
12651
12741
|
}
|
|
12652
12742
|
}
|
|
12653
12743
|
};
|
|
12654
|
-
utils_default.forEach(["delete", "get", "head"],
|
|
12744
|
+
utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
12655
12745
|
defaults.headers[method] = {};
|
|
12656
12746
|
});
|
|
12657
|
-
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
12658
|
-
defaults.headers[method] = utils_default.merge(DEFAULT_CONTENT_TYPE);
|
|
12659
|
-
});
|
|
12660
12747
|
var defaults_default = defaults;
|
|
12661
12748
|
|
|
12662
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12749
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/parseHeaders.js
|
|
12663
12750
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
12664
12751
|
"age",
|
|
12665
12752
|
"authorization",
|
|
@@ -12704,7 +12791,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
12704
12791
|
return parsed;
|
|
12705
12792
|
};
|
|
12706
12793
|
|
|
12707
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12794
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/AxiosHeaders.js
|
|
12708
12795
|
var $internals = Symbol("internals");
|
|
12709
12796
|
function normalizeHeader(header) {
|
|
12710
12797
|
return header && String(header).trim().toLowerCase();
|
|
@@ -12724,13 +12811,14 @@ function parseTokens(str) {
|
|
|
12724
12811
|
}
|
|
12725
12812
|
return tokens;
|
|
12726
12813
|
}
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
}
|
|
12730
|
-
function matchHeaderValue(context, value, header, filter2) {
|
|
12814
|
+
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
12815
|
+
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
12731
12816
|
if (utils_default.isFunction(filter2)) {
|
|
12732
12817
|
return filter2.call(this, value, header);
|
|
12733
12818
|
}
|
|
12819
|
+
if (isHeaderNameFilter) {
|
|
12820
|
+
value = header;
|
|
12821
|
+
}
|
|
12734
12822
|
if (!utils_default.isString(value))
|
|
12735
12823
|
return;
|
|
12736
12824
|
if (utils_default.isString(filter2)) {
|
|
@@ -12777,6 +12865,15 @@ var AxiosHeaders = class {
|
|
|
12777
12865
|
setHeaders(header, valueOrRewrite);
|
|
12778
12866
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
12779
12867
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
12868
|
+
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
12869
|
+
let obj = {}, dest, key;
|
|
12870
|
+
for (const entry of header) {
|
|
12871
|
+
if (!utils_default.isArray(entry)) {
|
|
12872
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
12873
|
+
}
|
|
12874
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
12875
|
+
}
|
|
12876
|
+
setHeaders(obj, valueOrRewrite);
|
|
12780
12877
|
} else {
|
|
12781
12878
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
12782
12879
|
}
|
|
@@ -12808,7 +12905,7 @@ var AxiosHeaders = class {
|
|
|
12808
12905
|
header = normalizeHeader(header);
|
|
12809
12906
|
if (header) {
|
|
12810
12907
|
const key = utils_default.findKey(this, header);
|
|
12811
|
-
return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
12908
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
12812
12909
|
}
|
|
12813
12910
|
return false;
|
|
12814
12911
|
}
|
|
@@ -12832,8 +12929,18 @@ var AxiosHeaders = class {
|
|
|
12832
12929
|
}
|
|
12833
12930
|
return deleted;
|
|
12834
12931
|
}
|
|
12835
|
-
clear() {
|
|
12836
|
-
|
|
12932
|
+
clear(matcher) {
|
|
12933
|
+
const keys = Object.keys(this);
|
|
12934
|
+
let i = keys.length;
|
|
12935
|
+
let deleted = false;
|
|
12936
|
+
while (i--) {
|
|
12937
|
+
const key = keys[i];
|
|
12938
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
12939
|
+
delete this[key];
|
|
12940
|
+
deleted = true;
|
|
12941
|
+
}
|
|
12942
|
+
}
|
|
12943
|
+
return deleted;
|
|
12837
12944
|
}
|
|
12838
12945
|
normalize(format) {
|
|
12839
12946
|
const self2 = this;
|
|
@@ -12870,6 +12977,9 @@ var AxiosHeaders = class {
|
|
|
12870
12977
|
toString() {
|
|
12871
12978
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
12872
12979
|
}
|
|
12980
|
+
getSetCookie() {
|
|
12981
|
+
return this.get("set-cookie") || [];
|
|
12982
|
+
}
|
|
12873
12983
|
get [Symbol.toStringTag]() {
|
|
12874
12984
|
return "AxiosHeaders";
|
|
12875
12985
|
}
|
|
@@ -12898,12 +13008,20 @@ var AxiosHeaders = class {
|
|
|
12898
13008
|
return this;
|
|
12899
13009
|
}
|
|
12900
13010
|
};
|
|
12901
|
-
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent"]);
|
|
12902
|
-
utils_default.
|
|
13011
|
+
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
13012
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
13013
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
13014
|
+
return {
|
|
13015
|
+
get: () => value,
|
|
13016
|
+
set(headerValue) {
|
|
13017
|
+
this[mapped] = headerValue;
|
|
13018
|
+
}
|
|
13019
|
+
};
|
|
13020
|
+
});
|
|
12903
13021
|
utils_default.freezeMethods(AxiosHeaders);
|
|
12904
13022
|
var AxiosHeaders_default = AxiosHeaders;
|
|
12905
13023
|
|
|
12906
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13024
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/transformData.js
|
|
12907
13025
|
function transformData(fns, response) {
|
|
12908
13026
|
const config = this || defaults_default;
|
|
12909
13027
|
const context = response || config;
|
|
@@ -12916,12 +13034,12 @@ function transformData(fns, response) {
|
|
|
12916
13034
|
return data;
|
|
12917
13035
|
}
|
|
12918
13036
|
|
|
12919
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13037
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/cancel/isCancel.js
|
|
12920
13038
|
function isCancel(value) {
|
|
12921
13039
|
return !!(value && value.__CANCEL__);
|
|
12922
13040
|
}
|
|
12923
13041
|
|
|
12924
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13042
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/cancel/CanceledError.js
|
|
12925
13043
|
function CanceledError(message, config, request) {
|
|
12926
13044
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
12927
13045
|
this.name = "CanceledError";
|
|
@@ -12931,7 +13049,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
|
|
|
12931
13049
|
});
|
|
12932
13050
|
var CanceledError_default = CanceledError;
|
|
12933
13051
|
|
|
12934
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13052
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/settle.js
|
|
12935
13053
|
function settle(resolve, reject, response) {
|
|
12936
13054
|
const validateStatus2 = response.config.validateStatus;
|
|
12937
13055
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -12947,44 +13065,46 @@ function settle(resolve, reject, response) {
|
|
|
12947
13065
|
}
|
|
12948
13066
|
}
|
|
12949
13067
|
|
|
12950
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13068
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
12951
13069
|
function isAbsoluteURL(url2) {
|
|
12952
13070
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
12953
13071
|
}
|
|
12954
13072
|
|
|
12955
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13073
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/combineURLs.js
|
|
12956
13074
|
function combineURLs(baseURL, relativeURL) {
|
|
12957
|
-
return relativeURL ? baseURL.replace(
|
|
13075
|
+
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
12958
13076
|
}
|
|
12959
13077
|
|
|
12960
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12961
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
12962
|
-
|
|
13078
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/buildFullPath.js
|
|
13079
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
13080
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
13081
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
12963
13082
|
return combineURLs(baseURL, requestedURL);
|
|
12964
13083
|
}
|
|
12965
13084
|
return requestedURL;
|
|
12966
13085
|
}
|
|
12967
13086
|
|
|
12968
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13087
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/http.js
|
|
12969
13088
|
var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
12970
13089
|
var import_http = __toESM(require("http"), 1);
|
|
12971
13090
|
var import_https = __toESM(require("https"), 1);
|
|
13091
|
+
var import_util2 = __toESM(require("util"), 1);
|
|
12972
13092
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
12973
13093
|
var import_zlib = __toESM(require("zlib"), 1);
|
|
12974
13094
|
|
|
12975
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12976
|
-
var VERSION = "1.
|
|
13095
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/env/data.js
|
|
13096
|
+
var VERSION = "1.9.0";
|
|
12977
13097
|
|
|
12978
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13098
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/parseProtocol.js
|
|
12979
13099
|
function parseProtocol(url2) {
|
|
12980
13100
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
12981
13101
|
return match && match[1] || "";
|
|
12982
13102
|
}
|
|
12983
13103
|
|
|
12984
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13104
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/fromDataURI.js
|
|
12985
13105
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
12986
13106
|
function fromDataURI(uri, asBlob, options) {
|
|
12987
|
-
const _Blob = options && options.Blob ||
|
|
13107
|
+
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
12988
13108
|
const protocol = parseProtocol(uri);
|
|
12989
13109
|
if (asBlob === void 0 && _Blob) {
|
|
12990
13110
|
asBlob = true;
|
|
@@ -13010,75 +13130,11 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
13010
13130
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
13011
13131
|
}
|
|
13012
13132
|
|
|
13013
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13014
|
-
var
|
|
13133
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/http.js
|
|
13134
|
+
var import_stream4 = __toESM(require("stream"), 1);
|
|
13015
13135
|
|
|
13016
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13136
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
13017
13137
|
var import_stream = __toESM(require("stream"), 1);
|
|
13018
|
-
|
|
13019
|
-
// ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/throttle.js
|
|
13020
|
-
function throttle(fn, freq) {
|
|
13021
|
-
let timestamp = 0;
|
|
13022
|
-
const threshold = 1e3 / freq;
|
|
13023
|
-
let timer = null;
|
|
13024
|
-
return function throttled(force, args) {
|
|
13025
|
-
const now = Date.now();
|
|
13026
|
-
if (force || now - timestamp > threshold) {
|
|
13027
|
-
if (timer) {
|
|
13028
|
-
clearTimeout(timer);
|
|
13029
|
-
timer = null;
|
|
13030
|
-
}
|
|
13031
|
-
timestamp = now;
|
|
13032
|
-
return fn.apply(null, args);
|
|
13033
|
-
}
|
|
13034
|
-
if (!timer) {
|
|
13035
|
-
timer = setTimeout(() => {
|
|
13036
|
-
timer = null;
|
|
13037
|
-
timestamp = Date.now();
|
|
13038
|
-
return fn.apply(null, args);
|
|
13039
|
-
}, threshold - (now - timestamp));
|
|
13040
|
-
}
|
|
13041
|
-
};
|
|
13042
|
-
}
|
|
13043
|
-
var throttle_default = throttle;
|
|
13044
|
-
|
|
13045
|
-
// ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/speedometer.js
|
|
13046
|
-
function speedometer(samplesCount, min) {
|
|
13047
|
-
samplesCount = samplesCount || 10;
|
|
13048
|
-
const bytes = new Array(samplesCount);
|
|
13049
|
-
const timestamps = new Array(samplesCount);
|
|
13050
|
-
let head = 0;
|
|
13051
|
-
let tail = 0;
|
|
13052
|
-
let firstSampleTS;
|
|
13053
|
-
min = min !== void 0 ? min : 1e3;
|
|
13054
|
-
return function push(chunkLength) {
|
|
13055
|
-
const now = Date.now();
|
|
13056
|
-
const startedAt = timestamps[tail];
|
|
13057
|
-
if (!firstSampleTS) {
|
|
13058
|
-
firstSampleTS = now;
|
|
13059
|
-
}
|
|
13060
|
-
bytes[head] = chunkLength;
|
|
13061
|
-
timestamps[head] = now;
|
|
13062
|
-
let i = tail;
|
|
13063
|
-
let bytesCount = 0;
|
|
13064
|
-
while (i !== head) {
|
|
13065
|
-
bytesCount += bytes[i++];
|
|
13066
|
-
i = i % samplesCount;
|
|
13067
|
-
}
|
|
13068
|
-
head = (head + 1) % samplesCount;
|
|
13069
|
-
if (head === tail) {
|
|
13070
|
-
tail = (tail + 1) % samplesCount;
|
|
13071
|
-
}
|
|
13072
|
-
if (now - firstSampleTS < min) {
|
|
13073
|
-
return;
|
|
13074
|
-
}
|
|
13075
|
-
const passed = startedAt && now - startedAt;
|
|
13076
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
13077
|
-
};
|
|
13078
|
-
}
|
|
13079
|
-
var speedometer_default = speedometer;
|
|
13080
|
-
|
|
13081
|
-
// ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
13082
13138
|
var kInternals = Symbol("internals");
|
|
13083
13139
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
13084
13140
|
constructor(options) {
|
|
@@ -13095,11 +13151,8 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13095
13151
|
super({
|
|
13096
13152
|
readableHighWaterMark: options.chunkSize
|
|
13097
13153
|
});
|
|
13098
|
-
const self2 = this;
|
|
13099
13154
|
const internals = this[kInternals] = {
|
|
13100
|
-
length: options.length,
|
|
13101
13155
|
timeWindow: options.timeWindow,
|
|
13102
|
-
ticksRate: options.ticksRate,
|
|
13103
13156
|
chunkSize: options.chunkSize,
|
|
13104
13157
|
maxRate: options.maxRate,
|
|
13105
13158
|
minChunkSize: options.minChunkSize,
|
|
@@ -13110,7 +13163,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13110
13163
|
bytes: 0,
|
|
13111
13164
|
onReadCallback: null
|
|
13112
13165
|
};
|
|
13113
|
-
const _speedometer = speedometer_default(internals.ticksRate * options.samplesCount, internals.timeWindow);
|
|
13114
13166
|
this.on("newListener", (event) => {
|
|
13115
13167
|
if (event === "progress") {
|
|
13116
13168
|
if (!internals.isCaptured) {
|
|
@@ -13118,31 +13170,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13118
13170
|
}
|
|
13119
13171
|
}
|
|
13120
13172
|
});
|
|
13121
|
-
let bytesNotified = 0;
|
|
13122
|
-
internals.updateProgress = throttle_default(function throttledHandler() {
|
|
13123
|
-
const totalBytes = internals.length;
|
|
13124
|
-
const bytesTransferred = internals.bytesSeen;
|
|
13125
|
-
const progressBytes = bytesTransferred - bytesNotified;
|
|
13126
|
-
if (!progressBytes || self2.destroyed)
|
|
13127
|
-
return;
|
|
13128
|
-
const rate = _speedometer(progressBytes);
|
|
13129
|
-
bytesNotified = bytesTransferred;
|
|
13130
|
-
process.nextTick(() => {
|
|
13131
|
-
self2.emit("progress", {
|
|
13132
|
-
"loaded": bytesTransferred,
|
|
13133
|
-
"total": totalBytes,
|
|
13134
|
-
"progress": totalBytes ? bytesTransferred / totalBytes : void 0,
|
|
13135
|
-
"bytes": progressBytes,
|
|
13136
|
-
"rate": rate ? rate : void 0,
|
|
13137
|
-
"estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
|
|
13138
|
-
});
|
|
13139
|
-
});
|
|
13140
|
-
}, internals.ticksRate);
|
|
13141
|
-
const onFinish = () => {
|
|
13142
|
-
internals.updateProgress(true);
|
|
13143
|
-
};
|
|
13144
|
-
this.once("end", onFinish);
|
|
13145
|
-
this.once("error", onFinish);
|
|
13146
13173
|
}
|
|
13147
13174
|
_read(size) {
|
|
13148
13175
|
const internals = this[kInternals];
|
|
@@ -13152,7 +13179,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13152
13179
|
return super._read(size);
|
|
13153
13180
|
}
|
|
13154
13181
|
_transform(chunk, encoding, callback) {
|
|
13155
|
-
const self2 = this;
|
|
13156
13182
|
const internals = this[kInternals];
|
|
13157
13183
|
const maxRate = internals.maxRate;
|
|
13158
13184
|
const readableHighWaterMark = this.readableHighWaterMark;
|
|
@@ -13160,14 +13186,12 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13160
13186
|
const divider = 1e3 / timeWindow;
|
|
13161
13187
|
const bytesThreshold = maxRate / divider;
|
|
13162
13188
|
const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
13163
|
-
|
|
13189
|
+
const pushChunk = (_chunk, _callback) => {
|
|
13164
13190
|
const bytes = Buffer.byteLength(_chunk);
|
|
13165
13191
|
internals.bytesSeen += bytes;
|
|
13166
13192
|
internals.bytes += bytes;
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
}
|
|
13170
|
-
if (self2.push(_chunk)) {
|
|
13193
|
+
internals.isCaptured && this.emit("progress", internals.bytesSeen);
|
|
13194
|
+
if (this.push(_chunk)) {
|
|
13171
13195
|
process.nextTick(_callback);
|
|
13172
13196
|
} else {
|
|
13173
13197
|
internals.onReadCallback = () => {
|
|
@@ -13175,7 +13199,7 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13175
13199
|
process.nextTick(_callback);
|
|
13176
13200
|
};
|
|
13177
13201
|
}
|
|
13178
|
-
}
|
|
13202
|
+
};
|
|
13179
13203
|
const transformChunk = (_chunk, _callback) => {
|
|
13180
13204
|
const chunkSize = Buffer.byteLength(_chunk);
|
|
13181
13205
|
let chunkRemainder = null;
|
|
@@ -13221,37 +13245,284 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13221
13245
|
}
|
|
13222
13246
|
});
|
|
13223
13247
|
}
|
|
13224
|
-
setLength(length) {
|
|
13225
|
-
this[kInternals].length = +length;
|
|
13226
|
-
return this;
|
|
13227
|
-
}
|
|
13228
13248
|
};
|
|
13229
13249
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
13230
13250
|
|
|
13231
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13232
|
-
var import_events2 =
|
|
13251
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/http.js
|
|
13252
|
+
var import_events2 = require("events");
|
|
13253
|
+
|
|
13254
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/formDataToStream.js
|
|
13255
|
+
var import_util = __toESM(require("util"), 1);
|
|
13256
|
+
var import_stream2 = require("stream");
|
|
13257
|
+
|
|
13258
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/readBlob.js
|
|
13259
|
+
var { asyncIterator } = Symbol;
|
|
13260
|
+
var readBlob = async function* (blob) {
|
|
13261
|
+
if (blob.stream) {
|
|
13262
|
+
yield* blob.stream();
|
|
13263
|
+
} else if (blob.arrayBuffer) {
|
|
13264
|
+
yield await blob.arrayBuffer();
|
|
13265
|
+
} else if (blob[asyncIterator]) {
|
|
13266
|
+
yield* blob[asyncIterator]();
|
|
13267
|
+
} else {
|
|
13268
|
+
yield blob;
|
|
13269
|
+
}
|
|
13270
|
+
};
|
|
13271
|
+
var readBlob_default = readBlob;
|
|
13272
|
+
|
|
13273
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/formDataToStream.js
|
|
13274
|
+
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
13275
|
+
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new import_util.default.TextEncoder();
|
|
13276
|
+
var CRLF = "\r\n";
|
|
13277
|
+
var CRLF_BYTES = textEncoder.encode(CRLF);
|
|
13278
|
+
var CRLF_BYTES_COUNT = 2;
|
|
13279
|
+
var FormDataPart = class {
|
|
13280
|
+
constructor(name, value) {
|
|
13281
|
+
const { escapeName } = this.constructor;
|
|
13282
|
+
const isStringValue = utils_default.isString(value);
|
|
13283
|
+
let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`;
|
|
13284
|
+
if (isStringValue) {
|
|
13285
|
+
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
13286
|
+
} else {
|
|
13287
|
+
headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
|
|
13288
|
+
}
|
|
13289
|
+
this.headers = textEncoder.encode(headers + CRLF);
|
|
13290
|
+
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
13291
|
+
this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;
|
|
13292
|
+
this.name = name;
|
|
13293
|
+
this.value = value;
|
|
13294
|
+
}
|
|
13295
|
+
async *encode() {
|
|
13296
|
+
yield this.headers;
|
|
13297
|
+
const { value } = this;
|
|
13298
|
+
if (utils_default.isTypedArray(value)) {
|
|
13299
|
+
yield value;
|
|
13300
|
+
} else {
|
|
13301
|
+
yield* readBlob_default(value);
|
|
13302
|
+
}
|
|
13303
|
+
yield CRLF_BYTES;
|
|
13304
|
+
}
|
|
13305
|
+
static escapeName(name) {
|
|
13306
|
+
return String(name).replace(/[\r\n"]/g, (match) => ({
|
|
13307
|
+
"\r": "%0D",
|
|
13308
|
+
"\n": "%0A",
|
|
13309
|
+
'"': "%22"
|
|
13310
|
+
})[match]);
|
|
13311
|
+
}
|
|
13312
|
+
};
|
|
13313
|
+
var formDataToStream = (form, headersHandler, options) => {
|
|
13314
|
+
const {
|
|
13315
|
+
tag = "form-data-boundary",
|
|
13316
|
+
size = 25,
|
|
13317
|
+
boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
|
|
13318
|
+
} = options || {};
|
|
13319
|
+
if (!utils_default.isFormData(form)) {
|
|
13320
|
+
throw TypeError("FormData instance required");
|
|
13321
|
+
}
|
|
13322
|
+
if (boundary.length < 1 || boundary.length > 70) {
|
|
13323
|
+
throw Error("boundary must be 10-70 characters long");
|
|
13324
|
+
}
|
|
13325
|
+
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
13326
|
+
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
13327
|
+
let contentLength = footerBytes.byteLength;
|
|
13328
|
+
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
13329
|
+
const part = new FormDataPart(name, value);
|
|
13330
|
+
contentLength += part.size;
|
|
13331
|
+
return part;
|
|
13332
|
+
});
|
|
13333
|
+
contentLength += boundaryBytes.byteLength * parts.length;
|
|
13334
|
+
contentLength = utils_default.toFiniteNumber(contentLength);
|
|
13335
|
+
const computedHeaders = {
|
|
13336
|
+
"Content-Type": `multipart/form-data; boundary=${boundary}`
|
|
13337
|
+
};
|
|
13338
|
+
if (Number.isFinite(contentLength)) {
|
|
13339
|
+
computedHeaders["Content-Length"] = contentLength;
|
|
13340
|
+
}
|
|
13341
|
+
headersHandler && headersHandler(computedHeaders);
|
|
13342
|
+
return import_stream2.Readable.from(async function* () {
|
|
13343
|
+
for (const part of parts) {
|
|
13344
|
+
yield boundaryBytes;
|
|
13345
|
+
yield* part.encode();
|
|
13346
|
+
}
|
|
13347
|
+
yield footerBytes;
|
|
13348
|
+
}());
|
|
13349
|
+
};
|
|
13350
|
+
var formDataToStream_default = formDataToStream;
|
|
13351
|
+
|
|
13352
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
13353
|
+
var import_stream3 = __toESM(require("stream"), 1);
|
|
13354
|
+
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
13355
|
+
__transform(chunk, encoding, callback) {
|
|
13356
|
+
this.push(chunk);
|
|
13357
|
+
callback();
|
|
13358
|
+
}
|
|
13359
|
+
_transform(chunk, encoding, callback) {
|
|
13360
|
+
if (chunk.length !== 0) {
|
|
13361
|
+
this._transform = this.__transform;
|
|
13362
|
+
if (chunk[0] !== 120) {
|
|
13363
|
+
const header = Buffer.alloc(2);
|
|
13364
|
+
header[0] = 120;
|
|
13365
|
+
header[1] = 156;
|
|
13366
|
+
this.push(header, encoding);
|
|
13367
|
+
}
|
|
13368
|
+
}
|
|
13369
|
+
this.__transform(chunk, encoding, callback);
|
|
13370
|
+
}
|
|
13371
|
+
};
|
|
13372
|
+
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
13373
|
+
|
|
13374
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/callbackify.js
|
|
13375
|
+
var callbackify = (fn, reducer) => {
|
|
13376
|
+
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
13377
|
+
const cb = args.pop();
|
|
13378
|
+
fn.apply(this, args).then((value) => {
|
|
13379
|
+
try {
|
|
13380
|
+
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
|
13381
|
+
} catch (err) {
|
|
13382
|
+
cb(err);
|
|
13383
|
+
}
|
|
13384
|
+
}, cb);
|
|
13385
|
+
} : fn;
|
|
13386
|
+
};
|
|
13387
|
+
var callbackify_default = callbackify;
|
|
13388
|
+
|
|
13389
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/speedometer.js
|
|
13390
|
+
function speedometer(samplesCount, min) {
|
|
13391
|
+
samplesCount = samplesCount || 10;
|
|
13392
|
+
const bytes = new Array(samplesCount);
|
|
13393
|
+
const timestamps = new Array(samplesCount);
|
|
13394
|
+
let head = 0;
|
|
13395
|
+
let tail = 0;
|
|
13396
|
+
let firstSampleTS;
|
|
13397
|
+
min = min !== void 0 ? min : 1e3;
|
|
13398
|
+
return function push(chunkLength) {
|
|
13399
|
+
const now = Date.now();
|
|
13400
|
+
const startedAt = timestamps[tail];
|
|
13401
|
+
if (!firstSampleTS) {
|
|
13402
|
+
firstSampleTS = now;
|
|
13403
|
+
}
|
|
13404
|
+
bytes[head] = chunkLength;
|
|
13405
|
+
timestamps[head] = now;
|
|
13406
|
+
let i = tail;
|
|
13407
|
+
let bytesCount = 0;
|
|
13408
|
+
while (i !== head) {
|
|
13409
|
+
bytesCount += bytes[i++];
|
|
13410
|
+
i = i % samplesCount;
|
|
13411
|
+
}
|
|
13412
|
+
head = (head + 1) % samplesCount;
|
|
13413
|
+
if (head === tail) {
|
|
13414
|
+
tail = (tail + 1) % samplesCount;
|
|
13415
|
+
}
|
|
13416
|
+
if (now - firstSampleTS < min) {
|
|
13417
|
+
return;
|
|
13418
|
+
}
|
|
13419
|
+
const passed = startedAt && now - startedAt;
|
|
13420
|
+
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
13421
|
+
};
|
|
13422
|
+
}
|
|
13423
|
+
var speedometer_default = speedometer;
|
|
13424
|
+
|
|
13425
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/throttle.js
|
|
13426
|
+
function throttle(fn, freq) {
|
|
13427
|
+
let timestamp = 0;
|
|
13428
|
+
let threshold = 1e3 / freq;
|
|
13429
|
+
let lastArgs;
|
|
13430
|
+
let timer;
|
|
13431
|
+
const invoke = (args, now = Date.now()) => {
|
|
13432
|
+
timestamp = now;
|
|
13433
|
+
lastArgs = null;
|
|
13434
|
+
if (timer) {
|
|
13435
|
+
clearTimeout(timer);
|
|
13436
|
+
timer = null;
|
|
13437
|
+
}
|
|
13438
|
+
fn.apply(null, args);
|
|
13439
|
+
};
|
|
13440
|
+
const throttled = (...args) => {
|
|
13441
|
+
const now = Date.now();
|
|
13442
|
+
const passed = now - timestamp;
|
|
13443
|
+
if (passed >= threshold) {
|
|
13444
|
+
invoke(args, now);
|
|
13445
|
+
} else {
|
|
13446
|
+
lastArgs = args;
|
|
13447
|
+
if (!timer) {
|
|
13448
|
+
timer = setTimeout(() => {
|
|
13449
|
+
timer = null;
|
|
13450
|
+
invoke(lastArgs);
|
|
13451
|
+
}, threshold - passed);
|
|
13452
|
+
}
|
|
13453
|
+
}
|
|
13454
|
+
};
|
|
13455
|
+
const flush = () => lastArgs && invoke(lastArgs);
|
|
13456
|
+
return [throttled, flush];
|
|
13457
|
+
}
|
|
13458
|
+
var throttle_default = throttle;
|
|
13459
|
+
|
|
13460
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
13461
|
+
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
13462
|
+
let bytesNotified = 0;
|
|
13463
|
+
const _speedometer = speedometer_default(50, 250);
|
|
13464
|
+
return throttle_default((e) => {
|
|
13465
|
+
const loaded = e.loaded;
|
|
13466
|
+
const total = e.lengthComputable ? e.total : void 0;
|
|
13467
|
+
const progressBytes = loaded - bytesNotified;
|
|
13468
|
+
const rate = _speedometer(progressBytes);
|
|
13469
|
+
const inRange = loaded <= total;
|
|
13470
|
+
bytesNotified = loaded;
|
|
13471
|
+
const data = {
|
|
13472
|
+
loaded,
|
|
13473
|
+
total,
|
|
13474
|
+
progress: total ? loaded / total : void 0,
|
|
13475
|
+
bytes: progressBytes,
|
|
13476
|
+
rate: rate ? rate : void 0,
|
|
13477
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
13478
|
+
event: e,
|
|
13479
|
+
lengthComputable: total != null,
|
|
13480
|
+
[isDownloadStream ? "download" : "upload"]: true
|
|
13481
|
+
};
|
|
13482
|
+
listener(data);
|
|
13483
|
+
}, freq);
|
|
13484
|
+
};
|
|
13485
|
+
var progressEventDecorator = (total, throttled) => {
|
|
13486
|
+
const lengthComputable = total != null;
|
|
13487
|
+
return [(loaded) => throttled[0]({
|
|
13488
|
+
lengthComputable,
|
|
13489
|
+
total,
|
|
13490
|
+
loaded
|
|
13491
|
+
}), throttled[1]];
|
|
13492
|
+
};
|
|
13493
|
+
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
13494
|
+
|
|
13495
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/http.js
|
|
13233
13496
|
var zlibOptions = {
|
|
13234
13497
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
13235
13498
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
13236
13499
|
};
|
|
13500
|
+
var brotliOptions = {
|
|
13501
|
+
flush: import_zlib.default.constants.BROTLI_OPERATION_FLUSH,
|
|
13502
|
+
finishFlush: import_zlib.default.constants.BROTLI_OPERATION_FLUSH
|
|
13503
|
+
};
|
|
13237
13504
|
var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
|
|
13238
13505
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
13239
13506
|
var isHttps = /https:?/;
|
|
13240
|
-
var supportedProtocols =
|
|
13507
|
+
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
13241
13508
|
return protocol + ":";
|
|
13242
13509
|
});
|
|
13243
|
-
|
|
13510
|
+
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
13511
|
+
stream4.on("end", flush).on("error", flush);
|
|
13512
|
+
return throttled;
|
|
13513
|
+
};
|
|
13514
|
+
function dispatchBeforeRedirect(options, responseDetails) {
|
|
13244
13515
|
if (options.beforeRedirects.proxy) {
|
|
13245
13516
|
options.beforeRedirects.proxy(options);
|
|
13246
13517
|
}
|
|
13247
13518
|
if (options.beforeRedirects.config) {
|
|
13248
|
-
options.beforeRedirects.config(options);
|
|
13519
|
+
options.beforeRedirects.config(options, responseDetails);
|
|
13249
13520
|
}
|
|
13250
13521
|
}
|
|
13251
13522
|
function setProxy(options, configProxy, location2) {
|
|
13252
13523
|
let proxy = configProxy;
|
|
13253
13524
|
if (!proxy && proxy !== false) {
|
|
13254
|
-
const proxyUrl =
|
|
13525
|
+
const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location2);
|
|
13255
13526
|
if (proxyUrl) {
|
|
13256
13527
|
proxy = new URL(proxyUrl);
|
|
13257
13528
|
}
|
|
@@ -13282,21 +13553,59 @@ function setProxy(options, configProxy, location2) {
|
|
|
13282
13553
|
};
|
|
13283
13554
|
}
|
|
13284
13555
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
13556
|
+
var wrapAsync = (asyncExecutor) => {
|
|
13557
|
+
return new Promise((resolve, reject) => {
|
|
13558
|
+
let onDone;
|
|
13559
|
+
let isDone;
|
|
13560
|
+
const done = (value, isRejected) => {
|
|
13561
|
+
if (isDone)
|
|
13562
|
+
return;
|
|
13563
|
+
isDone = true;
|
|
13564
|
+
onDone && onDone(value, isRejected);
|
|
13565
|
+
};
|
|
13566
|
+
const _resolve = (value) => {
|
|
13567
|
+
done(value);
|
|
13568
|
+
resolve(value);
|
|
13569
|
+
};
|
|
13570
|
+
const _reject = (reason) => {
|
|
13571
|
+
done(reason, true);
|
|
13572
|
+
reject(reason);
|
|
13573
|
+
};
|
|
13574
|
+
asyncExecutor(_resolve, _reject, (onDoneHandler) => onDone = onDoneHandler).catch(_reject);
|
|
13575
|
+
});
|
|
13576
|
+
};
|
|
13577
|
+
var resolveFamily = ({ address, family }) => {
|
|
13578
|
+
if (!utils_default.isString(address)) {
|
|
13579
|
+
throw TypeError("address must be a string");
|
|
13580
|
+
}
|
|
13581
|
+
return {
|
|
13582
|
+
address,
|
|
13583
|
+
family: family || (address.indexOf(".") < 0 ? 6 : 4)
|
|
13584
|
+
};
|
|
13585
|
+
};
|
|
13586
|
+
var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
|
|
13285
13587
|
var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
13286
|
-
return
|
|
13287
|
-
let data = config
|
|
13288
|
-
const responseType = config
|
|
13289
|
-
const responseEncoding = config.responseEncoding;
|
|
13588
|
+
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
13589
|
+
let { data, lookup, family } = config;
|
|
13590
|
+
const { responseType, responseEncoding } = config;
|
|
13290
13591
|
const method = config.method.toUpperCase();
|
|
13291
|
-
let isFinished;
|
|
13292
13592
|
let isDone;
|
|
13293
13593
|
let rejected = false;
|
|
13294
13594
|
let req;
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13595
|
+
if (lookup) {
|
|
13596
|
+
const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
13597
|
+
lookup = (hostname, opt, cb) => {
|
|
13598
|
+
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
13599
|
+
if (err) {
|
|
13600
|
+
return cb(err);
|
|
13601
|
+
}
|
|
13602
|
+
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
13603
|
+
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
13604
|
+
});
|
|
13605
|
+
};
|
|
13606
|
+
}
|
|
13607
|
+
const emitter = new import_events2.EventEmitter();
|
|
13608
|
+
const onFinished = () => {
|
|
13300
13609
|
if (config.cancelToken) {
|
|
13301
13610
|
config.cancelToken.unsubscribe(abort);
|
|
13302
13611
|
}
|
|
@@ -13304,23 +13613,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13304
13613
|
config.signal.removeEventListener("abort", abort);
|
|
13305
13614
|
}
|
|
13306
13615
|
emitter.removeAllListeners();
|
|
13307
|
-
}
|
|
13308
|
-
|
|
13309
|
-
if (isDone)
|
|
13310
|
-
return;
|
|
13616
|
+
};
|
|
13617
|
+
onDone((value, isRejected) => {
|
|
13311
13618
|
isDone = true;
|
|
13312
13619
|
if (isRejected) {
|
|
13313
13620
|
rejected = true;
|
|
13314
13621
|
onFinished();
|
|
13315
13622
|
}
|
|
13316
|
-
|
|
13317
|
-
}
|
|
13318
|
-
const resolve = function resolve2(value) {
|
|
13319
|
-
done(value);
|
|
13320
|
-
};
|
|
13321
|
-
const reject = function reject2(value) {
|
|
13322
|
-
done(value, true);
|
|
13323
|
-
};
|
|
13623
|
+
});
|
|
13324
13624
|
function abort(reason) {
|
|
13325
13625
|
emitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
|
|
13326
13626
|
}
|
|
@@ -13331,8 +13631,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13331
13631
|
config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
|
|
13332
13632
|
}
|
|
13333
13633
|
}
|
|
13334
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
13335
|
-
const parsed = new URL(fullPath);
|
|
13634
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
13635
|
+
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
|
|
13336
13636
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
13337
13637
|
if (protocol === "data:") {
|
|
13338
13638
|
let convertedData;
|
|
@@ -13354,10 +13654,10 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13354
13654
|
if (responseType === "text") {
|
|
13355
13655
|
convertedData = convertedData.toString(responseEncoding);
|
|
13356
13656
|
if (!responseEncoding || responseEncoding === "utf8") {
|
|
13357
|
-
|
|
13657
|
+
convertedData = utils_default.stripBOM(convertedData);
|
|
13358
13658
|
}
|
|
13359
13659
|
} else if (responseType === "stream") {
|
|
13360
|
-
convertedData =
|
|
13660
|
+
convertedData = import_stream4.default.Readable.from(convertedData);
|
|
13361
13661
|
}
|
|
13362
13662
|
return settle(resolve, reject, {
|
|
13363
13663
|
data: convertedData,
|
|
@@ -13376,13 +13676,31 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13376
13676
|
}
|
|
13377
13677
|
const headers = AxiosHeaders_default.from(config.headers).normalize();
|
|
13378
13678
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
13379
|
-
const onDownloadProgress = config
|
|
13380
|
-
const onUploadProgress = config.onUploadProgress;
|
|
13679
|
+
const { onUploadProgress, onDownloadProgress } = config;
|
|
13381
13680
|
const maxRate = config.maxRate;
|
|
13382
13681
|
let maxUploadRate = void 0;
|
|
13383
13682
|
let maxDownloadRate = void 0;
|
|
13384
|
-
if (utils_default.
|
|
13683
|
+
if (utils_default.isSpecCompliantForm(data)) {
|
|
13684
|
+
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
13685
|
+
data = formDataToStream_default(data, (formHeaders) => {
|
|
13686
|
+
headers.set(formHeaders);
|
|
13687
|
+
}, {
|
|
13688
|
+
tag: `axios-${VERSION}-boundary`,
|
|
13689
|
+
boundary: userBoundary && userBoundary[1] || void 0
|
|
13690
|
+
});
|
|
13691
|
+
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
|
|
13385
13692
|
headers.set(data.getHeaders());
|
|
13693
|
+
if (!headers.hasContentLength()) {
|
|
13694
|
+
try {
|
|
13695
|
+
const knownLength = await import_util2.default.promisify(data.getLength).call(data);
|
|
13696
|
+
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
|
|
13697
|
+
} catch (e) {
|
|
13698
|
+
}
|
|
13699
|
+
}
|
|
13700
|
+
} else if (utils_default.isBlob(data) || utils_default.isFile(data)) {
|
|
13701
|
+
data.size && headers.setContentType(data.type || "application/octet-stream");
|
|
13702
|
+
headers.setContentLength(data.size || 0);
|
|
13703
|
+
data = import_stream4.default.Readable.from(readBlob_default(data));
|
|
13386
13704
|
} else if (data && !utils_default.isStream(data)) {
|
|
13387
13705
|
if (Buffer.isBuffer(data)) {
|
|
13388
13706
|
} else if (utils_default.isArrayBuffer(data)) {
|
|
@@ -13396,7 +13714,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13396
13714
|
config
|
|
13397
13715
|
));
|
|
13398
13716
|
}
|
|
13399
|
-
headers.
|
|
13717
|
+
headers.setContentLength(data.length, false);
|
|
13400
13718
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
13401
13719
|
return reject(new AxiosError_default(
|
|
13402
13720
|
"Request body larger than maxBodyLength limit",
|
|
@@ -13414,17 +13732,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13414
13732
|
}
|
|
13415
13733
|
if (data && (onUploadProgress || maxUploadRate)) {
|
|
13416
13734
|
if (!utils_default.isStream(data)) {
|
|
13417
|
-
data =
|
|
13735
|
+
data = import_stream4.default.Readable.from(data, { objectMode: false });
|
|
13418
13736
|
}
|
|
13419
|
-
data =
|
|
13420
|
-
length: contentLength,
|
|
13737
|
+
data = import_stream4.default.pipeline([data, new AxiosTransformStream_default({
|
|
13421
13738
|
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
13422
13739
|
})], utils_default.noop);
|
|
13423
|
-
onUploadProgress && data.on("progress", (
|
|
13424
|
-
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13740
|
+
onUploadProgress && data.on("progress", flushOnFinish(
|
|
13741
|
+
data,
|
|
13742
|
+
progressEventDecorator(
|
|
13743
|
+
contentLength,
|
|
13744
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
13745
|
+
)
|
|
13746
|
+
));
|
|
13428
13747
|
}
|
|
13429
13748
|
let auth = void 0;
|
|
13430
13749
|
if (config.auth) {
|
|
@@ -13464,13 +13783,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13464
13783
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
13465
13784
|
auth,
|
|
13466
13785
|
protocol,
|
|
13786
|
+
family,
|
|
13467
13787
|
beforeRedirect: dispatchBeforeRedirect,
|
|
13468
13788
|
beforeRedirects: {}
|
|
13469
13789
|
};
|
|
13790
|
+
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
13470
13791
|
if (config.socketPath) {
|
|
13471
13792
|
options.socketPath = config.socketPath;
|
|
13472
13793
|
} else {
|
|
13473
|
-
options.hostname = parsed.hostname;
|
|
13794
|
+
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
13474
13795
|
options.port = parsed.port;
|
|
13475
13796
|
setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
|
|
13476
13797
|
}
|
|
@@ -13503,16 +13824,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13503
13824
|
return;
|
|
13504
13825
|
const streams = [res];
|
|
13505
13826
|
const responseLength = +res.headers["content-length"];
|
|
13506
|
-
if (onDownloadProgress) {
|
|
13827
|
+
if (onDownloadProgress || maxDownloadRate) {
|
|
13507
13828
|
const transformStream = new AxiosTransformStream_default({
|
|
13508
|
-
length: utils_default.toFiniteNumber(responseLength),
|
|
13509
13829
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
13510
13830
|
});
|
|
13511
|
-
onDownloadProgress && transformStream.on("progress", (
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13831
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(
|
|
13832
|
+
transformStream,
|
|
13833
|
+
progressEventDecorator(
|
|
13834
|
+
responseLength,
|
|
13835
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
13836
|
+
)
|
|
13837
|
+
));
|
|
13516
13838
|
streams.push(transformStream);
|
|
13517
13839
|
}
|
|
13518
13840
|
let responseStream = res;
|
|
@@ -13521,22 +13843,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13521
13843
|
if (method === "HEAD" || res.statusCode === 204) {
|
|
13522
13844
|
delete res.headers["content-encoding"];
|
|
13523
13845
|
}
|
|
13524
|
-
switch (res.headers["content-encoding"]) {
|
|
13846
|
+
switch ((res.headers["content-encoding"] || "").toLowerCase()) {
|
|
13525
13847
|
case "gzip":
|
|
13848
|
+
case "x-gzip":
|
|
13526
13849
|
case "compress":
|
|
13850
|
+
case "x-compress":
|
|
13851
|
+
streams.push(import_zlib.default.createUnzip(zlibOptions));
|
|
13852
|
+
delete res.headers["content-encoding"];
|
|
13853
|
+
break;
|
|
13527
13854
|
case "deflate":
|
|
13855
|
+
streams.push(new ZlibHeaderTransformStream_default());
|
|
13528
13856
|
streams.push(import_zlib.default.createUnzip(zlibOptions));
|
|
13529
13857
|
delete res.headers["content-encoding"];
|
|
13530
13858
|
break;
|
|
13531
13859
|
case "br":
|
|
13532
13860
|
if (isBrotliSupported) {
|
|
13533
|
-
streams.push(import_zlib.default.createBrotliDecompress(
|
|
13861
|
+
streams.push(import_zlib.default.createBrotliDecompress(brotliOptions));
|
|
13534
13862
|
delete res.headers["content-encoding"];
|
|
13535
13863
|
}
|
|
13536
13864
|
}
|
|
13537
13865
|
}
|
|
13538
|
-
responseStream = streams.length > 1 ?
|
|
13539
|
-
const offListeners =
|
|
13866
|
+
responseStream = streams.length > 1 ? import_stream4.default.pipeline(streams, utils_default.noop) : streams[0];
|
|
13867
|
+
const offListeners = import_stream4.default.finished(responseStream, () => {
|
|
13540
13868
|
offListeners();
|
|
13541
13869
|
onFinished();
|
|
13542
13870
|
});
|
|
@@ -13572,7 +13900,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13572
13900
|
return;
|
|
13573
13901
|
}
|
|
13574
13902
|
const err = new AxiosError_default(
|
|
13575
|
-
"
|
|
13903
|
+
"stream has been aborted",
|
|
13576
13904
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
13577
13905
|
config,
|
|
13578
13906
|
lastRequest
|
|
@@ -13596,7 +13924,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13596
13924
|
}
|
|
13597
13925
|
response.data = responseData;
|
|
13598
13926
|
} catch (err) {
|
|
13599
|
-
reject(AxiosError_default.from(err, null, config, response.request, response));
|
|
13927
|
+
return reject(AxiosError_default.from(err, null, config, response.request, response));
|
|
13600
13928
|
}
|
|
13601
13929
|
settle(resolve, reject, response);
|
|
13602
13930
|
});
|
|
@@ -13620,7 +13948,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13620
13948
|
});
|
|
13621
13949
|
if (config.timeout) {
|
|
13622
13950
|
const timeout = parseInt(config.timeout, 10);
|
|
13623
|
-
if (isNaN(timeout)) {
|
|
13951
|
+
if (Number.isNaN(timeout)) {
|
|
13624
13952
|
reject(new AxiosError_default(
|
|
13625
13953
|
"error trying to parse `config.timeout` to int",
|
|
13626
13954
|
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
@@ -13668,144 +13996,181 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13668
13996
|
});
|
|
13669
13997
|
};
|
|
13670
13998
|
|
|
13671
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13672
|
-
var
|
|
13999
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
14000
|
+
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url2) => {
|
|
14001
|
+
url2 = new URL(url2, platform_default.origin);
|
|
14002
|
+
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
14003
|
+
})(
|
|
14004
|
+
new URL(platform_default.origin),
|
|
14005
|
+
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
14006
|
+
) : () => true;
|
|
14007
|
+
|
|
14008
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/cookies.js
|
|
14009
|
+
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
13673
14010
|
// Standard browser envs support document.cookie
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
|
|
13689
|
-
|
|
13690
|
-
|
|
13691
|
-
document.cookie = cookie.join("; ");
|
|
13692
|
-
},
|
|
13693
|
-
read: function read(name) {
|
|
13694
|
-
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
13695
|
-
return match ? decodeURIComponent(match[3]) : null;
|
|
13696
|
-
},
|
|
13697
|
-
remove: function remove(name) {
|
|
13698
|
-
this.write(name, "", Date.now() - 864e5);
|
|
13699
|
-
}
|
|
13700
|
-
};
|
|
13701
|
-
}()
|
|
14011
|
+
{
|
|
14012
|
+
write(name, value, expires, path, domain, secure) {
|
|
14013
|
+
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
14014
|
+
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
14015
|
+
utils_default.isString(path) && cookie.push("path=" + path);
|
|
14016
|
+
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
|
14017
|
+
secure === true && cookie.push("secure");
|
|
14018
|
+
document.cookie = cookie.join("; ");
|
|
14019
|
+
},
|
|
14020
|
+
read(name) {
|
|
14021
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
14022
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
14023
|
+
},
|
|
14024
|
+
remove(name) {
|
|
14025
|
+
this.write(name, "", Date.now() - 864e5);
|
|
14026
|
+
}
|
|
14027
|
+
}
|
|
13702
14028
|
) : (
|
|
13703
|
-
// Non
|
|
13704
|
-
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
remove: function remove() {
|
|
13712
|
-
}
|
|
13713
|
-
};
|
|
13714
|
-
}()
|
|
13715
|
-
);
|
|
13716
|
-
|
|
13717
|
-
// ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
13718
|
-
var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
|
|
13719
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
13720
|
-
// whether the request URL is of the same origin as current location.
|
|
13721
|
-
function standardBrowserEnv2() {
|
|
13722
|
-
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
13723
|
-
const urlParsingNode = document.createElement("a");
|
|
13724
|
-
let originURL;
|
|
13725
|
-
function resolveURL(url2) {
|
|
13726
|
-
let href = url2;
|
|
13727
|
-
if (msie) {
|
|
13728
|
-
urlParsingNode.setAttribute("href", href);
|
|
13729
|
-
href = urlParsingNode.href;
|
|
13730
|
-
}
|
|
13731
|
-
urlParsingNode.setAttribute("href", href);
|
|
13732
|
-
return {
|
|
13733
|
-
href: urlParsingNode.href,
|
|
13734
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
13735
|
-
host: urlParsingNode.host,
|
|
13736
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
13737
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
13738
|
-
hostname: urlParsingNode.hostname,
|
|
13739
|
-
port: urlParsingNode.port,
|
|
13740
|
-
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
13741
|
-
};
|
|
14029
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
14030
|
+
{
|
|
14031
|
+
write() {
|
|
14032
|
+
},
|
|
14033
|
+
read() {
|
|
14034
|
+
return null;
|
|
14035
|
+
},
|
|
14036
|
+
remove() {
|
|
13742
14037
|
}
|
|
13743
|
-
|
|
13744
|
-
return function isURLSameOrigin(requestURL) {
|
|
13745
|
-
const parsed = utils_default.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
13746
|
-
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
13747
|
-
};
|
|
13748
|
-
}()
|
|
13749
|
-
) : (
|
|
13750
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
13751
|
-
function nonStandardBrowserEnv2() {
|
|
13752
|
-
return function isURLSameOrigin() {
|
|
13753
|
-
return true;
|
|
13754
|
-
};
|
|
13755
|
-
}()
|
|
14038
|
+
}
|
|
13756
14039
|
);
|
|
13757
14040
|
|
|
13758
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13759
|
-
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
|
|
13763
|
-
|
|
13764
|
-
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
|
|
14041
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/mergeConfig.js
|
|
14042
|
+
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
14043
|
+
function mergeConfig(config1, config2) {
|
|
14044
|
+
config2 = config2 || {};
|
|
14045
|
+
const config = {};
|
|
14046
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
14047
|
+
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
14048
|
+
return utils_default.merge.call({ caseless }, target, source);
|
|
14049
|
+
} else if (utils_default.isPlainObject(source)) {
|
|
14050
|
+
return utils_default.merge({}, source);
|
|
14051
|
+
} else if (utils_default.isArray(source)) {
|
|
14052
|
+
return source.slice();
|
|
14053
|
+
}
|
|
14054
|
+
return source;
|
|
14055
|
+
}
|
|
14056
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
14057
|
+
if (!utils_default.isUndefined(b)) {
|
|
14058
|
+
return getMergedValue(a, b, prop, caseless);
|
|
14059
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
14060
|
+
return getMergedValue(void 0, a, prop, caseless);
|
|
14061
|
+
}
|
|
14062
|
+
}
|
|
14063
|
+
function valueFromConfig2(a, b) {
|
|
14064
|
+
if (!utils_default.isUndefined(b)) {
|
|
14065
|
+
return getMergedValue(void 0, b);
|
|
14066
|
+
}
|
|
14067
|
+
}
|
|
14068
|
+
function defaultToConfig2(a, b) {
|
|
14069
|
+
if (!utils_default.isUndefined(b)) {
|
|
14070
|
+
return getMergedValue(void 0, b);
|
|
14071
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
14072
|
+
return getMergedValue(void 0, a);
|
|
14073
|
+
}
|
|
14074
|
+
}
|
|
14075
|
+
function mergeDirectKeys(a, b, prop) {
|
|
14076
|
+
if (prop in config2) {
|
|
14077
|
+
return getMergedValue(a, b);
|
|
14078
|
+
} else if (prop in config1) {
|
|
14079
|
+
return getMergedValue(void 0, a);
|
|
14080
|
+
}
|
|
14081
|
+
}
|
|
14082
|
+
const mergeMap = {
|
|
14083
|
+
url: valueFromConfig2,
|
|
14084
|
+
method: valueFromConfig2,
|
|
14085
|
+
data: valueFromConfig2,
|
|
14086
|
+
baseURL: defaultToConfig2,
|
|
14087
|
+
transformRequest: defaultToConfig2,
|
|
14088
|
+
transformResponse: defaultToConfig2,
|
|
14089
|
+
paramsSerializer: defaultToConfig2,
|
|
14090
|
+
timeout: defaultToConfig2,
|
|
14091
|
+
timeoutMessage: defaultToConfig2,
|
|
14092
|
+
withCredentials: defaultToConfig2,
|
|
14093
|
+
withXSRFToken: defaultToConfig2,
|
|
14094
|
+
adapter: defaultToConfig2,
|
|
14095
|
+
responseType: defaultToConfig2,
|
|
14096
|
+
xsrfCookieName: defaultToConfig2,
|
|
14097
|
+
xsrfHeaderName: defaultToConfig2,
|
|
14098
|
+
onUploadProgress: defaultToConfig2,
|
|
14099
|
+
onDownloadProgress: defaultToConfig2,
|
|
14100
|
+
decompress: defaultToConfig2,
|
|
14101
|
+
maxContentLength: defaultToConfig2,
|
|
14102
|
+
maxBodyLength: defaultToConfig2,
|
|
14103
|
+
beforeRedirect: defaultToConfig2,
|
|
14104
|
+
transport: defaultToConfig2,
|
|
14105
|
+
httpAgent: defaultToConfig2,
|
|
14106
|
+
httpsAgent: defaultToConfig2,
|
|
14107
|
+
cancelToken: defaultToConfig2,
|
|
14108
|
+
socketPath: defaultToConfig2,
|
|
14109
|
+
responseEncoding: defaultToConfig2,
|
|
14110
|
+
validateStatus: mergeDirectKeys,
|
|
14111
|
+
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
13780
14112
|
};
|
|
14113
|
+
utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
14114
|
+
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
14115
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
14116
|
+
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
14117
|
+
});
|
|
14118
|
+
return config;
|
|
13781
14119
|
}
|
|
14120
|
+
|
|
14121
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/resolveConfig.js
|
|
14122
|
+
var resolveConfig_default = (config) => {
|
|
14123
|
+
const newConfig = mergeConfig({}, config);
|
|
14124
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
14125
|
+
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
14126
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
14127
|
+
if (auth) {
|
|
14128
|
+
headers.set(
|
|
14129
|
+
"Authorization",
|
|
14130
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
14131
|
+
);
|
|
14132
|
+
}
|
|
14133
|
+
let contentType;
|
|
14134
|
+
if (utils_default.isFormData(data)) {
|
|
14135
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
14136
|
+
headers.setContentType(void 0);
|
|
14137
|
+
} else if ((contentType = headers.getContentType()) !== false) {
|
|
14138
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
14139
|
+
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
14140
|
+
}
|
|
14141
|
+
}
|
|
14142
|
+
if (platform_default.hasStandardBrowserEnv) {
|
|
14143
|
+
withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
14144
|
+
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
|
|
14145
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
14146
|
+
if (xsrfValue) {
|
|
14147
|
+
headers.set(xsrfHeaderName, xsrfValue);
|
|
14148
|
+
}
|
|
14149
|
+
}
|
|
14150
|
+
}
|
|
14151
|
+
return newConfig;
|
|
14152
|
+
};
|
|
14153
|
+
|
|
14154
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/xhr.js
|
|
13782
14155
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
13783
14156
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
13784
14157
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
const
|
|
14158
|
+
const _config = resolveConfig_default(config);
|
|
14159
|
+
let requestData = _config.data;
|
|
14160
|
+
const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
|
|
14161
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
13788
14162
|
let onCanceled;
|
|
14163
|
+
let uploadThrottled, downloadThrottled;
|
|
14164
|
+
let flushUpload, flushDownload;
|
|
13789
14165
|
function done() {
|
|
13790
|
-
|
|
13791
|
-
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
config.signal.removeEventListener("abort", onCanceled);
|
|
13795
|
-
}
|
|
13796
|
-
}
|
|
13797
|
-
if (utils_default.isFormData(requestData) && (node_default.isStandardBrowserEnv || node_default.isStandardBrowserWebWorkerEnv)) {
|
|
13798
|
-
requestHeaders.setContentType(false);
|
|
14166
|
+
flushUpload && flushUpload();
|
|
14167
|
+
flushDownload && flushDownload();
|
|
14168
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
14169
|
+
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
13799
14170
|
}
|
|
13800
14171
|
let request = new XMLHttpRequest();
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
|
|
13804
|
-
requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
|
|
13805
|
-
}
|
|
13806
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
13807
|
-
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
13808
|
-
request.timeout = config.timeout;
|
|
14172
|
+
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
14173
|
+
request.timeout = _config.timeout;
|
|
13809
14174
|
function onloadend() {
|
|
13810
14175
|
if (!request) {
|
|
13811
14176
|
return;
|
|
@@ -13856,10 +14221,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
13856
14221
|
request = null;
|
|
13857
14222
|
};
|
|
13858
14223
|
request.ontimeout = function handleTimeout() {
|
|
13859
|
-
let timeoutErrorMessage =
|
|
13860
|
-
const transitional2 =
|
|
13861
|
-
if (
|
|
13862
|
-
timeoutErrorMessage =
|
|
14224
|
+
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
14225
|
+
const transitional2 = _config.transitional || transitional_default;
|
|
14226
|
+
if (_config.timeoutErrorMessage) {
|
|
14227
|
+
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
13863
14228
|
}
|
|
13864
14229
|
reject(new AxiosError_default(
|
|
13865
14230
|
timeoutErrorMessage,
|
|
@@ -13869,31 +14234,28 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
13869
14234
|
));
|
|
13870
14235
|
request = null;
|
|
13871
14236
|
};
|
|
13872
|
-
if (node_default.isStandardBrowserEnv) {
|
|
13873
|
-
const xsrfValue = (config.withCredentials || isURLSameOrigin_default(fullPath)) && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
|
|
13874
|
-
if (xsrfValue) {
|
|
13875
|
-
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
13876
|
-
}
|
|
13877
|
-
}
|
|
13878
14237
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
13879
14238
|
if ("setRequestHeader" in request) {
|
|
13880
14239
|
utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
13881
14240
|
request.setRequestHeader(key, val);
|
|
13882
14241
|
});
|
|
13883
14242
|
}
|
|
13884
|
-
if (!utils_default.isUndefined(
|
|
13885
|
-
request.withCredentials = !!
|
|
14243
|
+
if (!utils_default.isUndefined(_config.withCredentials)) {
|
|
14244
|
+
request.withCredentials = !!_config.withCredentials;
|
|
13886
14245
|
}
|
|
13887
14246
|
if (responseType && responseType !== "json") {
|
|
13888
|
-
request.responseType =
|
|
14247
|
+
request.responseType = _config.responseType;
|
|
13889
14248
|
}
|
|
13890
|
-
if (
|
|
13891
|
-
|
|
14249
|
+
if (onDownloadProgress) {
|
|
14250
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
14251
|
+
request.addEventListener("progress", downloadThrottled);
|
|
13892
14252
|
}
|
|
13893
|
-
if (
|
|
13894
|
-
|
|
14253
|
+
if (onUploadProgress && request.upload) {
|
|
14254
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
14255
|
+
request.upload.addEventListener("progress", uploadThrottled);
|
|
14256
|
+
request.upload.addEventListener("loadend", flushUpload);
|
|
13895
14257
|
}
|
|
13896
|
-
if (
|
|
14258
|
+
if (_config.cancelToken || _config.signal) {
|
|
13897
14259
|
onCanceled = (cancel) => {
|
|
13898
14260
|
if (!request) {
|
|
13899
14261
|
return;
|
|
@@ -13902,13 +14264,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
13902
14264
|
request.abort();
|
|
13903
14265
|
request = null;
|
|
13904
14266
|
};
|
|
13905
|
-
|
|
13906
|
-
if (
|
|
13907
|
-
|
|
14267
|
+
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
14268
|
+
if (_config.signal) {
|
|
14269
|
+
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
13908
14270
|
}
|
|
13909
14271
|
}
|
|
13910
|
-
const protocol = parseProtocol(
|
|
13911
|
-
if (protocol &&
|
|
14272
|
+
const protocol = parseProtocol(_config.url);
|
|
14273
|
+
if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
|
|
13912
14274
|
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
13913
14275
|
return;
|
|
13914
14276
|
}
|
|
@@ -13916,10 +14278,288 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
13916
14278
|
});
|
|
13917
14279
|
};
|
|
13918
14280
|
|
|
13919
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14281
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/composeSignals.js
|
|
14282
|
+
var composeSignals = (signals, timeout) => {
|
|
14283
|
+
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
14284
|
+
if (timeout || length) {
|
|
14285
|
+
let controller = new AbortController();
|
|
14286
|
+
let aborted;
|
|
14287
|
+
const onabort = function(reason) {
|
|
14288
|
+
if (!aborted) {
|
|
14289
|
+
aborted = true;
|
|
14290
|
+
unsubscribe();
|
|
14291
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
14292
|
+
controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
|
|
14293
|
+
}
|
|
14294
|
+
};
|
|
14295
|
+
let timer = timeout && setTimeout(() => {
|
|
14296
|
+
timer = null;
|
|
14297
|
+
onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
14298
|
+
}, timeout);
|
|
14299
|
+
const unsubscribe = () => {
|
|
14300
|
+
if (signals) {
|
|
14301
|
+
timer && clearTimeout(timer);
|
|
14302
|
+
timer = null;
|
|
14303
|
+
signals.forEach((signal2) => {
|
|
14304
|
+
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
14305
|
+
});
|
|
14306
|
+
signals = null;
|
|
14307
|
+
}
|
|
14308
|
+
};
|
|
14309
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
14310
|
+
const { signal } = controller;
|
|
14311
|
+
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
14312
|
+
return signal;
|
|
14313
|
+
}
|
|
14314
|
+
};
|
|
14315
|
+
var composeSignals_default = composeSignals;
|
|
14316
|
+
|
|
14317
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/trackStream.js
|
|
14318
|
+
var streamChunk = function* (chunk, chunkSize) {
|
|
14319
|
+
let len = chunk.byteLength;
|
|
14320
|
+
if (!chunkSize || len < chunkSize) {
|
|
14321
|
+
yield chunk;
|
|
14322
|
+
return;
|
|
14323
|
+
}
|
|
14324
|
+
let pos = 0;
|
|
14325
|
+
let end;
|
|
14326
|
+
while (pos < len) {
|
|
14327
|
+
end = pos + chunkSize;
|
|
14328
|
+
yield chunk.slice(pos, end);
|
|
14329
|
+
pos = end;
|
|
14330
|
+
}
|
|
14331
|
+
};
|
|
14332
|
+
var readBytes = async function* (iterable, chunkSize) {
|
|
14333
|
+
for await (const chunk of readStream(iterable)) {
|
|
14334
|
+
yield* streamChunk(chunk, chunkSize);
|
|
14335
|
+
}
|
|
14336
|
+
};
|
|
14337
|
+
var readStream = async function* (stream4) {
|
|
14338
|
+
if (stream4[Symbol.asyncIterator]) {
|
|
14339
|
+
yield* stream4;
|
|
14340
|
+
return;
|
|
14341
|
+
}
|
|
14342
|
+
const reader = stream4.getReader();
|
|
14343
|
+
try {
|
|
14344
|
+
for (; ; ) {
|
|
14345
|
+
const { done, value } = await reader.read();
|
|
14346
|
+
if (done) {
|
|
14347
|
+
break;
|
|
14348
|
+
}
|
|
14349
|
+
yield value;
|
|
14350
|
+
}
|
|
14351
|
+
} finally {
|
|
14352
|
+
await reader.cancel();
|
|
14353
|
+
}
|
|
14354
|
+
};
|
|
14355
|
+
var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
14356
|
+
const iterator3 = readBytes(stream4, chunkSize);
|
|
14357
|
+
let bytes = 0;
|
|
14358
|
+
let done;
|
|
14359
|
+
let _onFinish = (e) => {
|
|
14360
|
+
if (!done) {
|
|
14361
|
+
done = true;
|
|
14362
|
+
onFinish && onFinish(e);
|
|
14363
|
+
}
|
|
14364
|
+
};
|
|
14365
|
+
return new ReadableStream({
|
|
14366
|
+
async pull(controller) {
|
|
14367
|
+
try {
|
|
14368
|
+
const { done: done2, value } = await iterator3.next();
|
|
14369
|
+
if (done2) {
|
|
14370
|
+
_onFinish();
|
|
14371
|
+
controller.close();
|
|
14372
|
+
return;
|
|
14373
|
+
}
|
|
14374
|
+
let len = value.byteLength;
|
|
14375
|
+
if (onProgress) {
|
|
14376
|
+
let loadedBytes = bytes += len;
|
|
14377
|
+
onProgress(loadedBytes);
|
|
14378
|
+
}
|
|
14379
|
+
controller.enqueue(new Uint8Array(value));
|
|
14380
|
+
} catch (err) {
|
|
14381
|
+
_onFinish(err);
|
|
14382
|
+
throw err;
|
|
14383
|
+
}
|
|
14384
|
+
},
|
|
14385
|
+
cancel(reason) {
|
|
14386
|
+
_onFinish(reason);
|
|
14387
|
+
return iterator3.return();
|
|
14388
|
+
}
|
|
14389
|
+
}, {
|
|
14390
|
+
highWaterMark: 2
|
|
14391
|
+
});
|
|
14392
|
+
};
|
|
14393
|
+
|
|
14394
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/fetch.js
|
|
14395
|
+
var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
14396
|
+
var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
14397
|
+
var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
14398
|
+
var test = (fn, ...args) => {
|
|
14399
|
+
try {
|
|
14400
|
+
return !!fn(...args);
|
|
14401
|
+
} catch (e) {
|
|
14402
|
+
return false;
|
|
14403
|
+
}
|
|
14404
|
+
};
|
|
14405
|
+
var supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
14406
|
+
let duplexAccessed = false;
|
|
14407
|
+
const hasContentType = new Request(platform_default.origin, {
|
|
14408
|
+
body: new ReadableStream(),
|
|
14409
|
+
method: "POST",
|
|
14410
|
+
get duplex() {
|
|
14411
|
+
duplexAccessed = true;
|
|
14412
|
+
return "half";
|
|
14413
|
+
}
|
|
14414
|
+
}).headers.has("Content-Type");
|
|
14415
|
+
return duplexAccessed && !hasContentType;
|
|
14416
|
+
});
|
|
14417
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
14418
|
+
var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
14419
|
+
var resolvers = {
|
|
14420
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
14421
|
+
};
|
|
14422
|
+
isFetchSupported && ((res) => {
|
|
14423
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
14424
|
+
!resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
14425
|
+
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
|
|
14426
|
+
});
|
|
14427
|
+
});
|
|
14428
|
+
})(new Response());
|
|
14429
|
+
var getBodyLength = async (body) => {
|
|
14430
|
+
if (body == null) {
|
|
14431
|
+
return 0;
|
|
14432
|
+
}
|
|
14433
|
+
if (utils_default.isBlob(body)) {
|
|
14434
|
+
return body.size;
|
|
14435
|
+
}
|
|
14436
|
+
if (utils_default.isSpecCompliantForm(body)) {
|
|
14437
|
+
const _request = new Request(platform_default.origin, {
|
|
14438
|
+
method: "POST",
|
|
14439
|
+
body
|
|
14440
|
+
});
|
|
14441
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
14442
|
+
}
|
|
14443
|
+
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
14444
|
+
return body.byteLength;
|
|
14445
|
+
}
|
|
14446
|
+
if (utils_default.isURLSearchParams(body)) {
|
|
14447
|
+
body = body + "";
|
|
14448
|
+
}
|
|
14449
|
+
if (utils_default.isString(body)) {
|
|
14450
|
+
return (await encodeText(body)).byteLength;
|
|
14451
|
+
}
|
|
14452
|
+
};
|
|
14453
|
+
var resolveBodyLength = async (headers, body) => {
|
|
14454
|
+
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
14455
|
+
return length == null ? getBodyLength(body) : length;
|
|
14456
|
+
};
|
|
14457
|
+
var fetch_default = isFetchSupported && (async (config) => {
|
|
14458
|
+
let {
|
|
14459
|
+
url: url2,
|
|
14460
|
+
method,
|
|
14461
|
+
data,
|
|
14462
|
+
signal,
|
|
14463
|
+
cancelToken,
|
|
14464
|
+
timeout,
|
|
14465
|
+
onDownloadProgress,
|
|
14466
|
+
onUploadProgress,
|
|
14467
|
+
responseType,
|
|
14468
|
+
headers,
|
|
14469
|
+
withCredentials = "same-origin",
|
|
14470
|
+
fetchOptions
|
|
14471
|
+
} = resolveConfig_default(config);
|
|
14472
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
14473
|
+
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
14474
|
+
let request;
|
|
14475
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
14476
|
+
composedSignal.unsubscribe();
|
|
14477
|
+
});
|
|
14478
|
+
let requestContentLength;
|
|
14479
|
+
try {
|
|
14480
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
14481
|
+
let _request = new Request(url2, {
|
|
14482
|
+
method: "POST",
|
|
14483
|
+
body: data,
|
|
14484
|
+
duplex: "half"
|
|
14485
|
+
});
|
|
14486
|
+
let contentTypeHeader;
|
|
14487
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
14488
|
+
headers.setContentType(contentTypeHeader);
|
|
14489
|
+
}
|
|
14490
|
+
if (_request.body) {
|
|
14491
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
14492
|
+
requestContentLength,
|
|
14493
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
14494
|
+
);
|
|
14495
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
14496
|
+
}
|
|
14497
|
+
}
|
|
14498
|
+
if (!utils_default.isString(withCredentials)) {
|
|
14499
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
14500
|
+
}
|
|
14501
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
14502
|
+
request = new Request(url2, {
|
|
14503
|
+
...fetchOptions,
|
|
14504
|
+
signal: composedSignal,
|
|
14505
|
+
method: method.toUpperCase(),
|
|
14506
|
+
headers: headers.normalize().toJSON(),
|
|
14507
|
+
body: data,
|
|
14508
|
+
duplex: "half",
|
|
14509
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
14510
|
+
});
|
|
14511
|
+
let response = await fetch(request);
|
|
14512
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
14513
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
14514
|
+
const options = {};
|
|
14515
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
14516
|
+
options[prop] = response[prop];
|
|
14517
|
+
});
|
|
14518
|
+
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
14519
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
14520
|
+
responseContentLength,
|
|
14521
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
14522
|
+
) || [];
|
|
14523
|
+
response = new Response(
|
|
14524
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
14525
|
+
flush && flush();
|
|
14526
|
+
unsubscribe && unsubscribe();
|
|
14527
|
+
}),
|
|
14528
|
+
options
|
|
14529
|
+
);
|
|
14530
|
+
}
|
|
14531
|
+
responseType = responseType || "text";
|
|
14532
|
+
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
|
|
14533
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
14534
|
+
return await new Promise((resolve, reject) => {
|
|
14535
|
+
settle(resolve, reject, {
|
|
14536
|
+
data: responseData,
|
|
14537
|
+
headers: AxiosHeaders_default.from(response.headers),
|
|
14538
|
+
status: response.status,
|
|
14539
|
+
statusText: response.statusText,
|
|
14540
|
+
config,
|
|
14541
|
+
request
|
|
14542
|
+
});
|
|
14543
|
+
});
|
|
14544
|
+
} catch (err) {
|
|
14545
|
+
unsubscribe && unsubscribe();
|
|
14546
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
14547
|
+
throw Object.assign(
|
|
14548
|
+
new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
|
|
14549
|
+
{
|
|
14550
|
+
cause: err.cause || err
|
|
14551
|
+
}
|
|
14552
|
+
);
|
|
14553
|
+
}
|
|
14554
|
+
throw AxiosError_default.from(err, err && err.code, config, request);
|
|
14555
|
+
}
|
|
14556
|
+
});
|
|
14557
|
+
|
|
14558
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/adapters/adapters.js
|
|
13920
14559
|
var knownAdapters = {
|
|
13921
14560
|
http: http_default,
|
|
13922
|
-
xhr: xhr_default
|
|
14561
|
+
xhr: xhr_default,
|
|
14562
|
+
fetch: fetch_default
|
|
13923
14563
|
};
|
|
13924
14564
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
13925
14565
|
if (fn) {
|
|
@@ -13930,38 +14570,46 @@ utils_default.forEach(knownAdapters, (fn, value) => {
|
|
|
13930
14570
|
Object.defineProperty(fn, "adapterName", { value });
|
|
13931
14571
|
}
|
|
13932
14572
|
});
|
|
14573
|
+
var renderReason = (reason) => `- ${reason}`;
|
|
14574
|
+
var isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false;
|
|
13933
14575
|
var adapters_default = {
|
|
13934
14576
|
getAdapter: (adapters) => {
|
|
13935
14577
|
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
13936
14578
|
const { length } = adapters;
|
|
13937
14579
|
let nameOrAdapter;
|
|
13938
14580
|
let adapter;
|
|
14581
|
+
const rejectedReasons = {};
|
|
13939
14582
|
for (let i = 0; i < length; i++) {
|
|
13940
14583
|
nameOrAdapter = adapters[i];
|
|
13941
|
-
|
|
14584
|
+
let id;
|
|
14585
|
+
adapter = nameOrAdapter;
|
|
14586
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
14587
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
14588
|
+
if (adapter === void 0) {
|
|
14589
|
+
throw new AxiosError_default(`Unknown adapter '${id}'`);
|
|
14590
|
+
}
|
|
14591
|
+
}
|
|
14592
|
+
if (adapter) {
|
|
13942
14593
|
break;
|
|
13943
14594
|
}
|
|
14595
|
+
rejectedReasons[id || "#" + i] = adapter;
|
|
13944
14596
|
}
|
|
13945
14597
|
if (!adapter) {
|
|
13946
|
-
|
|
13947
|
-
|
|
13948
|
-
|
|
13949
|
-
|
|
13950
|
-
|
|
13951
|
-
|
|
13952
|
-
|
|
13953
|
-
utils_default.hasOwnProp(knownAdapters, nameOrAdapter) ? `Adapter '${nameOrAdapter}' is not available in the build` : `Unknown adapter '${nameOrAdapter}'`
|
|
14598
|
+
const reasons = Object.entries(rejectedReasons).map(
|
|
14599
|
+
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
14600
|
+
);
|
|
14601
|
+
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
14602
|
+
throw new AxiosError_default(
|
|
14603
|
+
`There is no suitable adapter to dispatch the request ` + s,
|
|
14604
|
+
"ERR_NOT_SUPPORT"
|
|
13954
14605
|
);
|
|
13955
|
-
}
|
|
13956
|
-
if (!utils_default.isFunction(adapter)) {
|
|
13957
|
-
throw new TypeError("adapter is not a function");
|
|
13958
14606
|
}
|
|
13959
14607
|
return adapter;
|
|
13960
14608
|
},
|
|
13961
14609
|
adapters: knownAdapters
|
|
13962
14610
|
};
|
|
13963
14611
|
|
|
13964
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14612
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/dispatchRequest.js
|
|
13965
14613
|
function throwIfCancellationRequested(config) {
|
|
13966
14614
|
if (config.cancelToken) {
|
|
13967
14615
|
config.cancelToken.throwIfRequested();
|
|
@@ -14006,86 +14654,7 @@ function dispatchRequest(config) {
|
|
|
14006
14654
|
});
|
|
14007
14655
|
}
|
|
14008
14656
|
|
|
14009
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14010
|
-
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
|
|
14011
|
-
function mergeConfig(config1, config2) {
|
|
14012
|
-
config2 = config2 || {};
|
|
14013
|
-
const config = {};
|
|
14014
|
-
function getMergedValue(target, source, caseless) {
|
|
14015
|
-
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
14016
|
-
return utils_default.merge.call({ caseless }, target, source);
|
|
14017
|
-
} else if (utils_default.isPlainObject(source)) {
|
|
14018
|
-
return utils_default.merge({}, source);
|
|
14019
|
-
} else if (utils_default.isArray(source)) {
|
|
14020
|
-
return source.slice();
|
|
14021
|
-
}
|
|
14022
|
-
return source;
|
|
14023
|
-
}
|
|
14024
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
14025
|
-
if (!utils_default.isUndefined(b)) {
|
|
14026
|
-
return getMergedValue(a, b, caseless);
|
|
14027
|
-
} else if (!utils_default.isUndefined(a)) {
|
|
14028
|
-
return getMergedValue(void 0, a, caseless);
|
|
14029
|
-
}
|
|
14030
|
-
}
|
|
14031
|
-
function valueFromConfig2(a, b) {
|
|
14032
|
-
if (!utils_default.isUndefined(b)) {
|
|
14033
|
-
return getMergedValue(void 0, b);
|
|
14034
|
-
}
|
|
14035
|
-
}
|
|
14036
|
-
function defaultToConfig2(a, b) {
|
|
14037
|
-
if (!utils_default.isUndefined(b)) {
|
|
14038
|
-
return getMergedValue(void 0, b);
|
|
14039
|
-
} else if (!utils_default.isUndefined(a)) {
|
|
14040
|
-
return getMergedValue(void 0, a);
|
|
14041
|
-
}
|
|
14042
|
-
}
|
|
14043
|
-
function mergeDirectKeys(a, b, prop) {
|
|
14044
|
-
if (prop in config2) {
|
|
14045
|
-
return getMergedValue(a, b);
|
|
14046
|
-
} else if (prop in config1) {
|
|
14047
|
-
return getMergedValue(void 0, a);
|
|
14048
|
-
}
|
|
14049
|
-
}
|
|
14050
|
-
const mergeMap = {
|
|
14051
|
-
url: valueFromConfig2,
|
|
14052
|
-
method: valueFromConfig2,
|
|
14053
|
-
data: valueFromConfig2,
|
|
14054
|
-
baseURL: defaultToConfig2,
|
|
14055
|
-
transformRequest: defaultToConfig2,
|
|
14056
|
-
transformResponse: defaultToConfig2,
|
|
14057
|
-
paramsSerializer: defaultToConfig2,
|
|
14058
|
-
timeout: defaultToConfig2,
|
|
14059
|
-
timeoutMessage: defaultToConfig2,
|
|
14060
|
-
withCredentials: defaultToConfig2,
|
|
14061
|
-
adapter: defaultToConfig2,
|
|
14062
|
-
responseType: defaultToConfig2,
|
|
14063
|
-
xsrfCookieName: defaultToConfig2,
|
|
14064
|
-
xsrfHeaderName: defaultToConfig2,
|
|
14065
|
-
onUploadProgress: defaultToConfig2,
|
|
14066
|
-
onDownloadProgress: defaultToConfig2,
|
|
14067
|
-
decompress: defaultToConfig2,
|
|
14068
|
-
maxContentLength: defaultToConfig2,
|
|
14069
|
-
maxBodyLength: defaultToConfig2,
|
|
14070
|
-
beforeRedirect: defaultToConfig2,
|
|
14071
|
-
transport: defaultToConfig2,
|
|
14072
|
-
httpAgent: defaultToConfig2,
|
|
14073
|
-
httpsAgent: defaultToConfig2,
|
|
14074
|
-
cancelToken: defaultToConfig2,
|
|
14075
|
-
socketPath: defaultToConfig2,
|
|
14076
|
-
responseEncoding: defaultToConfig2,
|
|
14077
|
-
validateStatus: mergeDirectKeys,
|
|
14078
|
-
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
14079
|
-
};
|
|
14080
|
-
utils_default.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
14081
|
-
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
14082
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
14083
|
-
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
14084
|
-
});
|
|
14085
|
-
return config;
|
|
14086
|
-
}
|
|
14087
|
-
|
|
14088
|
-
// ../../node_modules/.pnpm/axios@1.2.1/node_modules/axios/lib/helpers/validator.js
|
|
14657
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/validator.js
|
|
14089
14658
|
var validators = {};
|
|
14090
14659
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
14091
14660
|
validators[type] = function validator(thing) {
|
|
@@ -14116,6 +14685,12 @@ validators.transitional = function transitional(validator, version, message) {
|
|
|
14116
14685
|
return validator ? validator(value, opt, opts) : true;
|
|
14117
14686
|
};
|
|
14118
14687
|
};
|
|
14688
|
+
validators.spelling = function spelling(correctSpelling) {
|
|
14689
|
+
return (value, opt) => {
|
|
14690
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
14691
|
+
return true;
|
|
14692
|
+
};
|
|
14693
|
+
};
|
|
14119
14694
|
function assertOptions(options, schema, allowUnknown) {
|
|
14120
14695
|
if (typeof options !== "object") {
|
|
14121
14696
|
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
@@ -14143,11 +14718,11 @@ var validator_default = {
|
|
|
14143
14718
|
validators
|
|
14144
14719
|
};
|
|
14145
14720
|
|
|
14146
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14721
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/core/Axios.js
|
|
14147
14722
|
var validators2 = validator_default.validators;
|
|
14148
14723
|
var Axios = class {
|
|
14149
14724
|
constructor(instanceConfig) {
|
|
14150
|
-
this.defaults = instanceConfig;
|
|
14725
|
+
this.defaults = instanceConfig || {};
|
|
14151
14726
|
this.interceptors = {
|
|
14152
14727
|
request: new InterceptorManager_default(),
|
|
14153
14728
|
response: new InterceptorManager_default()
|
|
@@ -14161,7 +14736,27 @@ var Axios = class {
|
|
|
14161
14736
|
*
|
|
14162
14737
|
* @returns {Promise} The Promise to be fulfilled
|
|
14163
14738
|
*/
|
|
14164
|
-
request(configOrUrl, config) {
|
|
14739
|
+
async request(configOrUrl, config) {
|
|
14740
|
+
try {
|
|
14741
|
+
return await this._request(configOrUrl, config);
|
|
14742
|
+
} catch (err) {
|
|
14743
|
+
if (err instanceof Error) {
|
|
14744
|
+
let dummy = {};
|
|
14745
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
14746
|
+
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
14747
|
+
try {
|
|
14748
|
+
if (!err.stack) {
|
|
14749
|
+
err.stack = stack;
|
|
14750
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
14751
|
+
err.stack += "\n" + stack;
|
|
14752
|
+
}
|
|
14753
|
+
} catch (e) {
|
|
14754
|
+
}
|
|
14755
|
+
}
|
|
14756
|
+
throw err;
|
|
14757
|
+
}
|
|
14758
|
+
}
|
|
14759
|
+
_request(configOrUrl, config) {
|
|
14165
14760
|
if (typeof configOrUrl === "string") {
|
|
14166
14761
|
config = config || {};
|
|
14167
14762
|
config.url = configOrUrl;
|
|
@@ -14177,19 +14772,34 @@ var Axios = class {
|
|
|
14177
14772
|
clarifyTimeoutError: validators2.transitional(validators2.boolean)
|
|
14178
14773
|
}, false);
|
|
14179
14774
|
}
|
|
14180
|
-
if (paramsSerializer
|
|
14181
|
-
|
|
14182
|
-
|
|
14183
|
-
|
|
14184
|
-
|
|
14775
|
+
if (paramsSerializer != null) {
|
|
14776
|
+
if (utils_default.isFunction(paramsSerializer)) {
|
|
14777
|
+
config.paramsSerializer = {
|
|
14778
|
+
serialize: paramsSerializer
|
|
14779
|
+
};
|
|
14780
|
+
} else {
|
|
14781
|
+
validator_default.assertOptions(paramsSerializer, {
|
|
14782
|
+
encode: validators2.function,
|
|
14783
|
+
serialize: validators2.function
|
|
14784
|
+
}, true);
|
|
14785
|
+
}
|
|
14786
|
+
}
|
|
14787
|
+
if (config.allowAbsoluteUrls !== void 0) {
|
|
14788
|
+
} else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
14789
|
+
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
14790
|
+
} else {
|
|
14791
|
+
config.allowAbsoluteUrls = true;
|
|
14185
14792
|
}
|
|
14793
|
+
validator_default.assertOptions(config, {
|
|
14794
|
+
baseUrl: validators2.spelling("baseURL"),
|
|
14795
|
+
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
14796
|
+
}, true);
|
|
14186
14797
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
14187
|
-
let contextHeaders
|
|
14188
|
-
contextHeaders = headers && utils_default.merge(
|
|
14798
|
+
let contextHeaders = headers && utils_default.merge(
|
|
14189
14799
|
headers.common,
|
|
14190
14800
|
headers[config.method]
|
|
14191
14801
|
);
|
|
14192
|
-
|
|
14802
|
+
headers && utils_default.forEach(
|
|
14193
14803
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
14194
14804
|
(method) => {
|
|
14195
14805
|
delete headers[method];
|
|
@@ -14250,11 +14860,11 @@ var Axios = class {
|
|
|
14250
14860
|
}
|
|
14251
14861
|
getUri(config) {
|
|
14252
14862
|
config = mergeConfig(this.defaults, config);
|
|
14253
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
14863
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
14254
14864
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
14255
14865
|
}
|
|
14256
14866
|
};
|
|
14257
|
-
utils_default.forEach(["delete", "get", "head", "options"], function
|
|
14867
|
+
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
14258
14868
|
Axios.prototype[method] = function(url2, config) {
|
|
14259
14869
|
return this.request(mergeConfig(config || {}, {
|
|
14260
14870
|
method,
|
|
@@ -14263,7 +14873,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
|
|
|
14263
14873
|
}));
|
|
14264
14874
|
};
|
|
14265
14875
|
});
|
|
14266
|
-
utils_default.forEach(["post", "put", "patch"], function
|
|
14876
|
+
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
14267
14877
|
function generateHTTPMethod(isForm) {
|
|
14268
14878
|
return function httpMethod(url2, data, config) {
|
|
14269
14879
|
return this.request(mergeConfig(config || {}, {
|
|
@@ -14281,7 +14891,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData2(
|
|
|
14281
14891
|
});
|
|
14282
14892
|
var Axios_default = Axios;
|
|
14283
14893
|
|
|
14284
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14894
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/cancel/CancelToken.js
|
|
14285
14895
|
var CancelToken = class _CancelToken {
|
|
14286
14896
|
constructor(executor) {
|
|
14287
14897
|
if (typeof executor !== "function") {
|
|
@@ -14354,6 +14964,15 @@ var CancelToken = class _CancelToken {
|
|
|
14354
14964
|
this._listeners.splice(index, 1);
|
|
14355
14965
|
}
|
|
14356
14966
|
}
|
|
14967
|
+
toAbortSignal() {
|
|
14968
|
+
const controller = new AbortController();
|
|
14969
|
+
const abort = (err) => {
|
|
14970
|
+
controller.abort(err);
|
|
14971
|
+
};
|
|
14972
|
+
this.subscribe(abort);
|
|
14973
|
+
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
14974
|
+
return controller.signal;
|
|
14975
|
+
}
|
|
14357
14976
|
/**
|
|
14358
14977
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
14359
14978
|
* cancels the `CancelToken`.
|
|
@@ -14371,19 +14990,90 @@ var CancelToken = class _CancelToken {
|
|
|
14371
14990
|
};
|
|
14372
14991
|
var CancelToken_default = CancelToken;
|
|
14373
14992
|
|
|
14374
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14993
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/spread.js
|
|
14375
14994
|
function spread(callback) {
|
|
14376
14995
|
return function wrap(arr) {
|
|
14377
14996
|
return callback.apply(null, arr);
|
|
14378
14997
|
};
|
|
14379
14998
|
}
|
|
14380
14999
|
|
|
14381
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15000
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/isAxiosError.js
|
|
14382
15001
|
function isAxiosError(payload) {
|
|
14383
15002
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
14384
15003
|
}
|
|
14385
15004
|
|
|
14386
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15005
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
15006
|
+
var HttpStatusCode = {
|
|
15007
|
+
Continue: 100,
|
|
15008
|
+
SwitchingProtocols: 101,
|
|
15009
|
+
Processing: 102,
|
|
15010
|
+
EarlyHints: 103,
|
|
15011
|
+
Ok: 200,
|
|
15012
|
+
Created: 201,
|
|
15013
|
+
Accepted: 202,
|
|
15014
|
+
NonAuthoritativeInformation: 203,
|
|
15015
|
+
NoContent: 204,
|
|
15016
|
+
ResetContent: 205,
|
|
15017
|
+
PartialContent: 206,
|
|
15018
|
+
MultiStatus: 207,
|
|
15019
|
+
AlreadyReported: 208,
|
|
15020
|
+
ImUsed: 226,
|
|
15021
|
+
MultipleChoices: 300,
|
|
15022
|
+
MovedPermanently: 301,
|
|
15023
|
+
Found: 302,
|
|
15024
|
+
SeeOther: 303,
|
|
15025
|
+
NotModified: 304,
|
|
15026
|
+
UseProxy: 305,
|
|
15027
|
+
Unused: 306,
|
|
15028
|
+
TemporaryRedirect: 307,
|
|
15029
|
+
PermanentRedirect: 308,
|
|
15030
|
+
BadRequest: 400,
|
|
15031
|
+
Unauthorized: 401,
|
|
15032
|
+
PaymentRequired: 402,
|
|
15033
|
+
Forbidden: 403,
|
|
15034
|
+
NotFound: 404,
|
|
15035
|
+
MethodNotAllowed: 405,
|
|
15036
|
+
NotAcceptable: 406,
|
|
15037
|
+
ProxyAuthenticationRequired: 407,
|
|
15038
|
+
RequestTimeout: 408,
|
|
15039
|
+
Conflict: 409,
|
|
15040
|
+
Gone: 410,
|
|
15041
|
+
LengthRequired: 411,
|
|
15042
|
+
PreconditionFailed: 412,
|
|
15043
|
+
PayloadTooLarge: 413,
|
|
15044
|
+
UriTooLong: 414,
|
|
15045
|
+
UnsupportedMediaType: 415,
|
|
15046
|
+
RangeNotSatisfiable: 416,
|
|
15047
|
+
ExpectationFailed: 417,
|
|
15048
|
+
ImATeapot: 418,
|
|
15049
|
+
MisdirectedRequest: 421,
|
|
15050
|
+
UnprocessableEntity: 422,
|
|
15051
|
+
Locked: 423,
|
|
15052
|
+
FailedDependency: 424,
|
|
15053
|
+
TooEarly: 425,
|
|
15054
|
+
UpgradeRequired: 426,
|
|
15055
|
+
PreconditionRequired: 428,
|
|
15056
|
+
TooManyRequests: 429,
|
|
15057
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
15058
|
+
UnavailableForLegalReasons: 451,
|
|
15059
|
+
InternalServerError: 500,
|
|
15060
|
+
NotImplemented: 501,
|
|
15061
|
+
BadGateway: 502,
|
|
15062
|
+
ServiceUnavailable: 503,
|
|
15063
|
+
GatewayTimeout: 504,
|
|
15064
|
+
HttpVersionNotSupported: 505,
|
|
15065
|
+
VariantAlsoNegotiates: 506,
|
|
15066
|
+
InsufficientStorage: 507,
|
|
15067
|
+
LoopDetected: 508,
|
|
15068
|
+
NotExtended: 510,
|
|
15069
|
+
NetworkAuthenticationRequired: 511
|
|
15070
|
+
};
|
|
15071
|
+
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
15072
|
+
HttpStatusCode[value] = key;
|
|
15073
|
+
});
|
|
15074
|
+
var HttpStatusCode_default = HttpStatusCode;
|
|
15075
|
+
|
|
15076
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/axios.js
|
|
14387
15077
|
function createInstance(defaultConfig) {
|
|
14388
15078
|
const context = new Axios_default(defaultConfig);
|
|
14389
15079
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -14411,10 +15101,12 @@ axios.isAxiosError = isAxiosError;
|
|
|
14411
15101
|
axios.mergeConfig = mergeConfig;
|
|
14412
15102
|
axios.AxiosHeaders = AxiosHeaders_default;
|
|
14413
15103
|
axios.formToJSON = (thing) => formDataToJSON_default(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
15104
|
+
axios.getAdapter = adapters_default.getAdapter;
|
|
15105
|
+
axios.HttpStatusCode = HttpStatusCode_default;
|
|
14414
15106
|
axios.default = axios;
|
|
14415
15107
|
var axios_default = axios;
|
|
14416
15108
|
|
|
14417
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15109
|
+
// ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/index.js
|
|
14418
15110
|
var {
|
|
14419
15111
|
Axios: Axios2,
|
|
14420
15112
|
AxiosError: AxiosError2,
|
|
@@ -14428,7 +15120,9 @@ var {
|
|
|
14428
15120
|
spread: spread2,
|
|
14429
15121
|
toFormData: toFormData2,
|
|
14430
15122
|
AxiosHeaders: AxiosHeaders2,
|
|
15123
|
+
HttpStatusCode: HttpStatusCode2,
|
|
14431
15124
|
formToJSON,
|
|
15125
|
+
getAdapter,
|
|
14432
15126
|
mergeConfig: mergeConfig2
|
|
14433
15127
|
} = axios_default;
|
|
14434
15128
|
|