tevrocsdk 0.1.4 → 0.1.6

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/tevroc-sdk.umd.js CHANGED
@@ -3,9 +3,9 @@ var Tevroc = (() => {
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
6
+ var __export = (target, all3) => {
7
+ for (var name in all3)
8
+ __defProp(target, name, { get: all3[name], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
11
  if (from && typeof from === "object" || typeof from === "function") {
@@ -24,6 +24,3322 @@ var Tevroc = (() => {
24
24
  TevrocError: () => TevrocError,
25
25
  createClient: () => createClient
26
26
  });
27
+
28
+ // node_modules/axios/lib/helpers/bind.js
29
+ function bind(fn, thisArg) {
30
+ return function wrap() {
31
+ return fn.apply(thisArg, arguments);
32
+ };
33
+ }
34
+
35
+ // node_modules/axios/lib/utils.js
36
+ var { toString } = Object.prototype;
37
+ var { getPrototypeOf } = Object;
38
+ var { iterator, toStringTag } = Symbol;
39
+ var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
40
+ var hasOwnInPrototypeChain = (thing, prop) => {
41
+ let obj = thing;
42
+ const seen = [];
43
+ while (obj != null && obj !== Object.prototype) {
44
+ if (seen.indexOf(obj) !== -1) {
45
+ return false;
46
+ }
47
+ seen.push(obj);
48
+ if (hasOwnProperty(obj, prop)) {
49
+ return true;
50
+ }
51
+ obj = getPrototypeOf(obj);
52
+ }
53
+ return false;
54
+ };
55
+ var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
56
+ var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
57
+ const str = toString.call(thing);
58
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
59
+ })(/* @__PURE__ */ Object.create(null));
60
+ var kindOfTest = (type) => {
61
+ type = type.toLowerCase();
62
+ return (thing) => kindOf(thing) === type;
63
+ };
64
+ var typeOfTest = (type) => (thing) => typeof thing === type;
65
+ var { isArray } = Array;
66
+ var isUndefined = typeOfTest("undefined");
67
+ function isBuffer(val) {
68
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
69
+ }
70
+ var isArrayBuffer = kindOfTest("ArrayBuffer");
71
+ function isArrayBufferView(val) {
72
+ let result;
73
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
74
+ result = ArrayBuffer.isView(val);
75
+ } else {
76
+ result = val && val.buffer && isArrayBuffer(val.buffer);
77
+ }
78
+ return result;
79
+ }
80
+ var isString = typeOfTest("string");
81
+ var isFunction = typeOfTest("function");
82
+ var isNumber = typeOfTest("number");
83
+ var isObject = (thing) => thing !== null && typeof thing === "object";
84
+ var isBoolean = (thing) => thing === true || thing === false;
85
+ var isPlainObject = (val) => {
86
+ if (!isObject(val)) {
87
+ return false;
88
+ }
89
+ const prototype2 = getPrototypeOf(val);
90
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
91
+ // Symbol.iterator as evidence the value is a tagged/iterable type rather
92
+ // than a plain object, while ignoring keys injected onto Object.prototype.
93
+ !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
94
+ };
95
+ var isEmptyObject = (val) => {
96
+ if (!isObject(val) || isBuffer(val)) {
97
+ return false;
98
+ }
99
+ try {
100
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
101
+ } catch (e) {
102
+ return false;
103
+ }
104
+ };
105
+ var isDate = kindOfTest("Date");
106
+ var isFile = kindOfTest("File");
107
+ var isReactNativeBlob = (value) => {
108
+ return !!(value && typeof value.uri !== "undefined");
109
+ };
110
+ var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
111
+ var isBlob = kindOfTest("Blob");
112
+ var isFileList = kindOfTest("FileList");
113
+ var isStream = (val) => isObject(val) && isFunction(val.pipe);
114
+ function getGlobal() {
115
+ if (typeof globalThis !== "undefined") return globalThis;
116
+ if (typeof self !== "undefined") return self;
117
+ if (typeof window !== "undefined") return window;
118
+ if (typeof global !== "undefined") return global;
119
+ return {};
120
+ }
121
+ var G = getGlobal();
122
+ var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
123
+ var isFormData = (thing) => {
124
+ if (!thing) return false;
125
+ if (FormDataCtor && thing instanceof FormDataCtor) return true;
126
+ const proto = getPrototypeOf(thing);
127
+ if (!proto || proto === Object.prototype) return false;
128
+ if (!isFunction(thing.append)) return false;
129
+ const kind = kindOf(thing);
130
+ return kind === "formdata" || // detect form-data instance
131
+ kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
132
+ };
133
+ var isURLSearchParams = kindOfTest("URLSearchParams");
134
+ var [isReadableStream, isRequest, isResponse, isHeaders] = [
135
+ "ReadableStream",
136
+ "Request",
137
+ "Response",
138
+ "Headers"
139
+ ].map(kindOfTest);
140
+ var trim = (str) => {
141
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
142
+ };
143
+ function forEach(obj, fn, { allOwnKeys = false } = {}) {
144
+ if (obj === null || typeof obj === "undefined") {
145
+ return;
146
+ }
147
+ let i;
148
+ let l;
149
+ if (typeof obj !== "object") {
150
+ obj = [obj];
151
+ }
152
+ if (isArray(obj)) {
153
+ for (i = 0, l = obj.length; i < l; i++) {
154
+ fn.call(null, obj[i], i, obj);
155
+ }
156
+ } else {
157
+ if (isBuffer(obj)) {
158
+ return;
159
+ }
160
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
161
+ const len = keys.length;
162
+ let key;
163
+ for (i = 0; i < len; i++) {
164
+ key = keys[i];
165
+ fn.call(null, obj[key], key, obj);
166
+ }
167
+ }
168
+ }
169
+ function findKey(obj, key) {
170
+ if (isBuffer(obj)) {
171
+ return null;
172
+ }
173
+ key = key.toLowerCase();
174
+ const keys = Object.keys(obj);
175
+ let i = keys.length;
176
+ let _key;
177
+ while (i-- > 0) {
178
+ _key = keys[i];
179
+ if (key === _key.toLowerCase()) {
180
+ return _key;
181
+ }
182
+ }
183
+ return null;
184
+ }
185
+ var _global = (() => {
186
+ if (typeof globalThis !== "undefined") return globalThis;
187
+ return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
188
+ })();
189
+ var isContextDefined = (context) => !isUndefined(context) && context !== _global;
190
+ function merge(...objs) {
191
+ const { caseless, skipUndefined } = isContextDefined(this) && this || {};
192
+ const result = {};
193
+ const assignValue = (val, key) => {
194
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
195
+ return;
196
+ }
197
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
198
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
199
+ if (isPlainObject(existing) && isPlainObject(val)) {
200
+ result[targetKey] = merge(existing, val);
201
+ } else if (isPlainObject(val)) {
202
+ result[targetKey] = merge({}, val);
203
+ } else if (isArray(val)) {
204
+ result[targetKey] = val.slice();
205
+ } else if (!skipUndefined || !isUndefined(val)) {
206
+ result[targetKey] = val;
207
+ }
208
+ };
209
+ for (let i = 0, l = objs.length; i < l; i++) {
210
+ const source = objs[i];
211
+ if (!source || isBuffer(source)) {
212
+ continue;
213
+ }
214
+ forEach(source, assignValue);
215
+ if (typeof source !== "object" || isArray(source)) {
216
+ continue;
217
+ }
218
+ const symbols = Object.getOwnPropertySymbols(source);
219
+ for (let j = 0; j < symbols.length; j++) {
220
+ const symbol = symbols[j];
221
+ if (propertyIsEnumerable.call(source, symbol)) {
222
+ assignValue(source[symbol], symbol);
223
+ }
224
+ }
225
+ }
226
+ return result;
227
+ }
228
+ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
229
+ forEach(
230
+ b,
231
+ (val, key) => {
232
+ if (thisArg && isFunction(val)) {
233
+ Object.defineProperty(a, key, {
234
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
235
+ // hijack defineProperty's accessor-vs-data resolution.
236
+ __proto__: null,
237
+ value: bind(val, thisArg),
238
+ writable: true,
239
+ enumerable: true,
240
+ configurable: true
241
+ });
242
+ } else {
243
+ Object.defineProperty(a, key, {
244
+ __proto__: null,
245
+ value: val,
246
+ writable: true,
247
+ enumerable: true,
248
+ configurable: true
249
+ });
250
+ }
251
+ },
252
+ { allOwnKeys }
253
+ );
254
+ return a;
255
+ };
256
+ var stripBOM = (content) => {
257
+ if (content.charCodeAt(0) === 65279) {
258
+ content = content.slice(1);
259
+ }
260
+ return content;
261
+ };
262
+ var inherits = (constructor, superConstructor, props, descriptors) => {
263
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
264
+ Object.defineProperty(constructor.prototype, "constructor", {
265
+ __proto__: null,
266
+ value: constructor,
267
+ writable: true,
268
+ enumerable: false,
269
+ configurable: true
270
+ });
271
+ Object.defineProperty(constructor, "super", {
272
+ __proto__: null,
273
+ value: superConstructor.prototype
274
+ });
275
+ props && Object.assign(constructor.prototype, props);
276
+ };
277
+ var toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
278
+ let props;
279
+ let i;
280
+ let prop;
281
+ const merged = {};
282
+ destObj = destObj || {};
283
+ if (sourceObj == null) return destObj;
284
+ do {
285
+ props = Object.getOwnPropertyNames(sourceObj);
286
+ i = props.length;
287
+ while (i-- > 0) {
288
+ prop = props[i];
289
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
290
+ destObj[prop] = sourceObj[prop];
291
+ merged[prop] = true;
292
+ }
293
+ }
294
+ sourceObj = filter2 !== false && getPrototypeOf(sourceObj);
295
+ } while (sourceObj && (!filter2 || filter2(sourceObj, destObj)) && sourceObj !== Object.prototype);
296
+ return destObj;
297
+ };
298
+ var endsWith = (str, searchString, position) => {
299
+ str = String(str);
300
+ if (position === void 0 || position > str.length) {
301
+ position = str.length;
302
+ }
303
+ position -= searchString.length;
304
+ const lastIndex = str.indexOf(searchString, position);
305
+ return lastIndex !== -1 && lastIndex === position;
306
+ };
307
+ var toArray = (thing) => {
308
+ if (!thing) return null;
309
+ if (isArray(thing)) return thing;
310
+ let i = thing.length;
311
+ if (!isNumber(i)) return null;
312
+ const arr = new Array(i);
313
+ while (i-- > 0) {
314
+ arr[i] = thing[i];
315
+ }
316
+ return arr;
317
+ };
318
+ var isTypedArray = /* @__PURE__ */ ((TypedArray) => {
319
+ return (thing) => {
320
+ return TypedArray && thing instanceof TypedArray;
321
+ };
322
+ })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
323
+ var forEachEntry = (obj, fn) => {
324
+ const generator = obj && obj[iterator];
325
+ const _iterator = generator.call(obj);
326
+ let result;
327
+ while ((result = _iterator.next()) && !result.done) {
328
+ const pair = result.value;
329
+ fn.call(obj, pair[0], pair[1]);
330
+ }
331
+ };
332
+ var matchAll = (regExp, str) => {
333
+ let matches;
334
+ const arr = [];
335
+ while ((matches = regExp.exec(str)) !== null) {
336
+ arr.push(matches);
337
+ }
338
+ return arr;
339
+ };
340
+ var isHTMLForm = kindOfTest("HTMLFormElement");
341
+ var toCamelCase = (str) => {
342
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
343
+ return p1.toUpperCase() + p2;
344
+ });
345
+ };
346
+ var { propertyIsEnumerable } = Object.prototype;
347
+ var isRegExp = kindOfTest("RegExp");
348
+ var reduceDescriptors = (obj, reducer) => {
349
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
350
+ const reducedDescriptors = {};
351
+ forEach(descriptors, (descriptor, name) => {
352
+ let ret;
353
+ if ((ret = reducer(descriptor, name, obj)) !== false) {
354
+ reducedDescriptors[name] = ret || descriptor;
355
+ }
356
+ });
357
+ Object.defineProperties(obj, reducedDescriptors);
358
+ };
359
+ var freezeMethods = (obj) => {
360
+ reduceDescriptors(obj, (descriptor, name) => {
361
+ if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
362
+ return false;
363
+ }
364
+ const value = obj[name];
365
+ if (!isFunction(value)) return;
366
+ descriptor.enumerable = false;
367
+ if ("writable" in descriptor) {
368
+ descriptor.writable = false;
369
+ return;
370
+ }
371
+ if (!descriptor.set) {
372
+ descriptor.set = () => {
373
+ throw Error("Can not rewrite read-only method '" + name + "'");
374
+ };
375
+ }
376
+ });
377
+ };
378
+ var toObjectSet = (arrayOrString, delimiter) => {
379
+ const obj = {};
380
+ const define = (arr) => {
381
+ arr.forEach((value) => {
382
+ obj[value] = true;
383
+ });
384
+ };
385
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
386
+ return obj;
387
+ };
388
+ var noop = () => {
389
+ };
390
+ var toFiniteNumber = (value, defaultValue) => {
391
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
392
+ };
393
+ function isSpecCompliantForm(thing) {
394
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
395
+ }
396
+ var toJSONObject = (obj) => {
397
+ const visited = /* @__PURE__ */ new WeakSet();
398
+ const visit = (source) => {
399
+ if (isObject(source)) {
400
+ if (visited.has(source)) {
401
+ return;
402
+ }
403
+ if (isBuffer(source)) {
404
+ return source;
405
+ }
406
+ if (!("toJSON" in source)) {
407
+ visited.add(source);
408
+ const target = isArray(source) ? [] : {};
409
+ forEach(source, (value, key) => {
410
+ const reducedValue = visit(value);
411
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
412
+ });
413
+ visited.delete(source);
414
+ return target;
415
+ }
416
+ }
417
+ return source;
418
+ };
419
+ return visit(obj);
420
+ };
421
+ var isAsyncFn = kindOfTest("AsyncFunction");
422
+ var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
423
+ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
424
+ if (setImmediateSupported) {
425
+ return setImmediate;
426
+ }
427
+ return postMessageSupported ? ((token, callbacks) => {
428
+ _global.addEventListener(
429
+ "message",
430
+ ({ source, data }) => {
431
+ if (source === _global && data === token) {
432
+ callbacks.length && callbacks.shift()();
433
+ }
434
+ },
435
+ false
436
+ );
437
+ return (cb) => {
438
+ callbacks.push(cb);
439
+ _global.postMessage(token, "*");
440
+ };
441
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
442
+ })(typeof setImmediate === "function", isFunction(_global.postMessage));
443
+ var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
444
+ var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
445
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
446
+ var utils_default = {
447
+ isArray,
448
+ isArrayBuffer,
449
+ isBuffer,
450
+ isFormData,
451
+ isArrayBufferView,
452
+ isString,
453
+ isNumber,
454
+ isBoolean,
455
+ isObject,
456
+ isPlainObject,
457
+ isEmptyObject,
458
+ isReadableStream,
459
+ isRequest,
460
+ isResponse,
461
+ isHeaders,
462
+ isUndefined,
463
+ isDate,
464
+ isFile,
465
+ isReactNativeBlob,
466
+ isReactNative,
467
+ isBlob,
468
+ isRegExp,
469
+ isFunction,
470
+ isStream,
471
+ isURLSearchParams,
472
+ isTypedArray,
473
+ isFileList,
474
+ forEach,
475
+ merge,
476
+ extend,
477
+ trim,
478
+ stripBOM,
479
+ inherits,
480
+ toFlatObject,
481
+ kindOf,
482
+ kindOfTest,
483
+ endsWith,
484
+ toArray,
485
+ forEachEntry,
486
+ matchAll,
487
+ isHTMLForm,
488
+ hasOwnProperty,
489
+ hasOwnProp: hasOwnProperty,
490
+ // an alias to avoid ESLint no-prototype-builtins detection
491
+ hasOwnInPrototypeChain,
492
+ getSafeProp,
493
+ reduceDescriptors,
494
+ freezeMethods,
495
+ toObjectSet,
496
+ toCamelCase,
497
+ noop,
498
+ toFiniteNumber,
499
+ findKey,
500
+ global: _global,
501
+ isContextDefined,
502
+ isSpecCompliantForm,
503
+ toJSONObject,
504
+ isAsyncFn,
505
+ isThenable,
506
+ setImmediate: _setImmediate,
507
+ asap,
508
+ isIterable,
509
+ isSafeIterable
510
+ };
511
+
512
+ // node_modules/axios/lib/helpers/parseHeaders.js
513
+ var ignoreDuplicateOf = utils_default.toObjectSet([
514
+ "age",
515
+ "authorization",
516
+ "content-length",
517
+ "content-type",
518
+ "etag",
519
+ "expires",
520
+ "from",
521
+ "host",
522
+ "if-modified-since",
523
+ "if-unmodified-since",
524
+ "last-modified",
525
+ "location",
526
+ "max-forwards",
527
+ "proxy-authorization",
528
+ "referer",
529
+ "retry-after",
530
+ "user-agent"
531
+ ]);
532
+ var parseHeaders_default = (rawHeaders) => {
533
+ const parsed = {};
534
+ let key;
535
+ let val;
536
+ let i;
537
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
538
+ i = line.indexOf(":");
539
+ key = line.substring(0, i).trim().toLowerCase();
540
+ val = line.substring(i + 1).trim();
541
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
542
+ return;
543
+ }
544
+ if (key === "set-cookie") {
545
+ if (parsed[key]) {
546
+ parsed[key].push(val);
547
+ } else {
548
+ parsed[key] = [val];
549
+ }
550
+ } else {
551
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
552
+ }
553
+ });
554
+ return parsed;
555
+ };
556
+
557
+ // node_modules/axios/lib/helpers/sanitizeHeaderValue.js
558
+ function trimSPorHTAB(str) {
559
+ let start = 0;
560
+ let end = str.length;
561
+ while (start < end) {
562
+ const code = str.charCodeAt(start);
563
+ if (code !== 9 && code !== 32) {
564
+ break;
565
+ }
566
+ start += 1;
567
+ }
568
+ while (end > start) {
569
+ const code = str.charCodeAt(end - 1);
570
+ if (code !== 9 && code !== 32) {
571
+ break;
572
+ }
573
+ end -= 1;
574
+ }
575
+ return start === 0 && end === str.length ? str : str.slice(start, end);
576
+ }
577
+ var INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
578
+ var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
579
+ function sanitizeValue(value, invalidChars) {
580
+ if (utils_default.isArray(value)) {
581
+ return value.map((item) => sanitizeValue(item, invalidChars));
582
+ }
583
+ return trimSPorHTAB(String(value).replace(invalidChars, ""));
584
+ }
585
+ var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
586
+ var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
587
+ function toByteStringHeaderObject(headers) {
588
+ const byteStringHeaders = /* @__PURE__ */ Object.create(null);
589
+ utils_default.forEach(headers.toJSON(), (value, header) => {
590
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
591
+ });
592
+ return byteStringHeaders;
593
+ }
594
+
595
+ // node_modules/axios/lib/core/AxiosHeaders.js
596
+ var $internals = /* @__PURE__ */ Symbol("internals");
597
+ function normalizeHeader(header) {
598
+ return header && String(header).trim().toLowerCase();
599
+ }
600
+ function normalizeValue(value) {
601
+ if (value === false || value == null) {
602
+ return value;
603
+ }
604
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
605
+ }
606
+ function parseTokens(str) {
607
+ const tokens = /* @__PURE__ */ Object.create(null);
608
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
609
+ let match;
610
+ while (match = tokensRE.exec(str)) {
611
+ tokens[match[1]] = match[2];
612
+ }
613
+ return tokens;
614
+ }
615
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
616
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
617
+ if (utils_default.isFunction(filter2)) {
618
+ return filter2.call(this, value, header);
619
+ }
620
+ if (isHeaderNameFilter) {
621
+ value = header;
622
+ }
623
+ if (!utils_default.isString(value)) return;
624
+ if (utils_default.isString(filter2)) {
625
+ return value.indexOf(filter2) !== -1;
626
+ }
627
+ if (utils_default.isRegExp(filter2)) {
628
+ return filter2.test(value);
629
+ }
630
+ }
631
+ function formatHeader(header) {
632
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
633
+ return char.toUpperCase() + str;
634
+ });
635
+ }
636
+ function buildAccessors(obj, header) {
637
+ const accessorName = utils_default.toCamelCase(" " + header);
638
+ ["get", "set", "has"].forEach((methodName) => {
639
+ Object.defineProperty(obj, methodName + accessorName, {
640
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
641
+ // this data descriptor into an accessor descriptor on the way in.
642
+ __proto__: null,
643
+ value: function(arg1, arg2, arg3) {
644
+ return this[methodName].call(this, header, arg1, arg2, arg3);
645
+ },
646
+ configurable: true
647
+ });
648
+ });
649
+ }
650
+ var AxiosHeaders = class {
651
+ constructor(headers) {
652
+ headers && this.set(headers);
653
+ }
654
+ set(header, valueOrRewrite, rewrite) {
655
+ const self2 = this;
656
+ function setHeader(_value, _header, _rewrite) {
657
+ const lHeader = normalizeHeader(_header);
658
+ if (!lHeader) {
659
+ return;
660
+ }
661
+ const key = utils_default.findKey(self2, lHeader);
662
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
663
+ self2[key || _header] = normalizeValue(_value);
664
+ }
665
+ }
666
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
667
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
668
+ setHeaders(header, valueOrRewrite);
669
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
670
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
671
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
672
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
673
+ for (const entry of header) {
674
+ if (!utils_default.isArray(entry)) {
675
+ throw new TypeError("Object iterator must return a key-value pair");
676
+ }
677
+ key = entry[0];
678
+ if (utils_default.hasOwnProp(obj, key)) {
679
+ dest = obj[key];
680
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
681
+ } else {
682
+ obj[key] = entry[1];
683
+ }
684
+ }
685
+ setHeaders(obj, valueOrRewrite);
686
+ } else {
687
+ header != null && setHeader(valueOrRewrite, header, rewrite);
688
+ }
689
+ return this;
690
+ }
691
+ get(header, parser) {
692
+ header = normalizeHeader(header);
693
+ if (header) {
694
+ const key = utils_default.findKey(this, header);
695
+ if (key) {
696
+ const value = this[key];
697
+ if (!parser) {
698
+ return value;
699
+ }
700
+ if (parser === true) {
701
+ return parseTokens(value);
702
+ }
703
+ if (utils_default.isFunction(parser)) {
704
+ return parser.call(this, value, key);
705
+ }
706
+ if (utils_default.isRegExp(parser)) {
707
+ return parser.exec(value);
708
+ }
709
+ throw new TypeError("parser must be boolean|regexp|function");
710
+ }
711
+ }
712
+ }
713
+ has(header, matcher) {
714
+ header = normalizeHeader(header);
715
+ if (header) {
716
+ const key = utils_default.findKey(this, header);
717
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
718
+ }
719
+ return false;
720
+ }
721
+ delete(header, matcher) {
722
+ const self2 = this;
723
+ let deleted = false;
724
+ function deleteHeader(_header) {
725
+ _header = normalizeHeader(_header);
726
+ if (_header) {
727
+ const key = utils_default.findKey(self2, _header);
728
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
729
+ delete self2[key];
730
+ deleted = true;
731
+ }
732
+ }
733
+ }
734
+ if (utils_default.isArray(header)) {
735
+ header.forEach(deleteHeader);
736
+ } else {
737
+ deleteHeader(header);
738
+ }
739
+ return deleted;
740
+ }
741
+ clear(matcher) {
742
+ const keys = Object.keys(this);
743
+ let i = keys.length;
744
+ let deleted = false;
745
+ while (i--) {
746
+ const key = keys[i];
747
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
748
+ delete this[key];
749
+ deleted = true;
750
+ }
751
+ }
752
+ return deleted;
753
+ }
754
+ normalize(format) {
755
+ const self2 = this;
756
+ const headers = {};
757
+ utils_default.forEach(this, (value, header) => {
758
+ const key = utils_default.findKey(headers, header);
759
+ if (key) {
760
+ self2[key] = normalizeValue(value);
761
+ delete self2[header];
762
+ return;
763
+ }
764
+ const normalized = format ? formatHeader(header) : String(header).trim();
765
+ if (normalized !== header) {
766
+ delete self2[header];
767
+ }
768
+ self2[normalized] = normalizeValue(value);
769
+ headers[normalized] = true;
770
+ });
771
+ return this;
772
+ }
773
+ concat(...targets) {
774
+ return this.constructor.concat(this, ...targets);
775
+ }
776
+ toJSON(asStrings) {
777
+ const obj = /* @__PURE__ */ Object.create(null);
778
+ utils_default.forEach(this, (value, header) => {
779
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
780
+ });
781
+ return obj;
782
+ }
783
+ [Symbol.iterator]() {
784
+ return Object.entries(this.toJSON())[Symbol.iterator]();
785
+ }
786
+ toString() {
787
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
788
+ }
789
+ getSetCookie() {
790
+ return this.get("set-cookie") || [];
791
+ }
792
+ get [Symbol.toStringTag]() {
793
+ return "AxiosHeaders";
794
+ }
795
+ static from(thing) {
796
+ return thing instanceof this ? thing : new this(thing);
797
+ }
798
+ static concat(first, ...targets) {
799
+ const computed = new this(first);
800
+ targets.forEach((target) => computed.set(target));
801
+ return computed;
802
+ }
803
+ static accessor(header) {
804
+ const internals = this[$internals] = this[$internals] = {
805
+ accessors: {}
806
+ };
807
+ const accessors = internals.accessors;
808
+ const prototype2 = this.prototype;
809
+ function defineAccessor(_header) {
810
+ const lHeader = normalizeHeader(_header);
811
+ if (!accessors[lHeader]) {
812
+ buildAccessors(prototype2, _header);
813
+ accessors[lHeader] = true;
814
+ }
815
+ }
816
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
817
+ return this;
818
+ }
819
+ };
820
+ AxiosHeaders.accessor([
821
+ "Content-Type",
822
+ "Content-Length",
823
+ "Accept",
824
+ "Accept-Encoding",
825
+ "User-Agent",
826
+ "Authorization"
827
+ ]);
828
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
829
+ let mapped = key[0].toUpperCase() + key.slice(1);
830
+ return {
831
+ get: () => value,
832
+ set(headerValue) {
833
+ this[mapped] = headerValue;
834
+ }
835
+ };
836
+ });
837
+ utils_default.freezeMethods(AxiosHeaders);
838
+ var AxiosHeaders_default = AxiosHeaders;
839
+
840
+ // node_modules/axios/lib/core/AxiosError.js
841
+ var REDACTED = "[REDACTED ****]";
842
+ function hasOwnOrPrototypeToJSON(source) {
843
+ if (utils_default.hasOwnProp(source, "toJSON")) {
844
+ return true;
845
+ }
846
+ let prototype2 = Object.getPrototypeOf(source);
847
+ while (prototype2 && prototype2 !== Object.prototype) {
848
+ if (utils_default.hasOwnProp(prototype2, "toJSON")) {
849
+ return true;
850
+ }
851
+ prototype2 = Object.getPrototypeOf(prototype2);
852
+ }
853
+ return false;
854
+ }
855
+ function redactConfig(config, redactKeys) {
856
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
857
+ const seen = [];
858
+ const visit = (source) => {
859
+ if (source === null || typeof source !== "object") return source;
860
+ if (utils_default.isBuffer(source)) return source;
861
+ if (seen.indexOf(source) !== -1) return void 0;
862
+ if (source instanceof AxiosHeaders_default) {
863
+ source = source.toJSON();
864
+ }
865
+ seen.push(source);
866
+ let result;
867
+ if (utils_default.isArray(source)) {
868
+ result = [];
869
+ source.forEach((v, i) => {
870
+ const reducedValue = visit(v);
871
+ if (!utils_default.isUndefined(reducedValue)) {
872
+ result[i] = reducedValue;
873
+ }
874
+ });
875
+ } else {
876
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
877
+ seen.pop();
878
+ return source;
879
+ }
880
+ result = /* @__PURE__ */ Object.create(null);
881
+ for (const [key, value] of Object.entries(source)) {
882
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
883
+ if (!utils_default.isUndefined(reducedValue)) {
884
+ result[key] = reducedValue;
885
+ }
886
+ }
887
+ }
888
+ seen.pop();
889
+ return result;
890
+ };
891
+ return visit(config);
892
+ }
893
+ var AxiosError = class _AxiosError extends Error {
894
+ static from(error, code, config, request, response, customProps) {
895
+ const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
896
+ axiosError.cause = error;
897
+ axiosError.name = error.name;
898
+ if (error.status != null && axiosError.status == null) {
899
+ axiosError.status = error.status;
900
+ }
901
+ customProps && Object.assign(axiosError, customProps);
902
+ return axiosError;
903
+ }
904
+ /**
905
+ * Create an Error with the specified message, config, error code, request and response.
906
+ *
907
+ * @param {string} message The error message.
908
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
909
+ * @param {Object} [config] The config.
910
+ * @param {Object} [request] The request.
911
+ * @param {Object} [response] The response.
912
+ *
913
+ * @returns {Error} The created error.
914
+ */
915
+ constructor(message, code, config, request, response) {
916
+ super(message);
917
+ Object.defineProperty(this, "message", {
918
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
919
+ // this data descriptor into an accessor descriptor on the way in.
920
+ __proto__: null,
921
+ value: message,
922
+ enumerable: true,
923
+ writable: true,
924
+ configurable: true
925
+ });
926
+ this.name = "AxiosError";
927
+ this.isAxiosError = true;
928
+ code && (this.code = code);
929
+ config && (this.config = config);
930
+ request && (this.request = request);
931
+ if (response) {
932
+ this.response = response;
933
+ this.status = response.status;
934
+ }
935
+ }
936
+ toJSON() {
937
+ const config = this.config;
938
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
939
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
940
+ return {
941
+ // Standard
942
+ message: this.message,
943
+ name: this.name,
944
+ // Microsoft
945
+ description: this.description,
946
+ number: this.number,
947
+ // Mozilla
948
+ fileName: this.fileName,
949
+ lineNumber: this.lineNumber,
950
+ columnNumber: this.columnNumber,
951
+ stack: this.stack,
952
+ // Axios
953
+ config: serializedConfig,
954
+ code: this.code,
955
+ status: this.status
956
+ };
957
+ }
958
+ };
959
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
960
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
961
+ AxiosError.ECONNABORTED = "ECONNABORTED";
962
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
963
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
964
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
965
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
966
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
967
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
968
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
969
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
970
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
971
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
972
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
973
+ var AxiosError_default = AxiosError;
974
+
975
+ // node_modules/axios/lib/helpers/null.js
976
+ var null_default = null;
977
+
978
+ // node_modules/axios/lib/helpers/toFormData.js
979
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
980
+ function isVisitable(thing) {
981
+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
982
+ }
983
+ function removeBrackets(key) {
984
+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
985
+ }
986
+ function renderKey(path, key, dots) {
987
+ if (!path) return key;
988
+ return path.concat(key).map(function each(token, i) {
989
+ token = removeBrackets(token);
990
+ return !dots && i ? "[" + token + "]" : token;
991
+ }).join(dots ? "." : "");
992
+ }
993
+ function isFlatArray(arr) {
994
+ return utils_default.isArray(arr) && !arr.some(isVisitable);
995
+ }
996
+ var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
997
+ return /^is[A-Z]/.test(prop);
998
+ });
999
+ function toFormData(obj, formData, options) {
1000
+ if (!utils_default.isObject(obj)) {
1001
+ throw new TypeError("target must be an object");
1002
+ }
1003
+ formData = formData || new (null_default || FormData)();
1004
+ options = utils_default.toFlatObject(
1005
+ options,
1006
+ {
1007
+ metaTokens: true,
1008
+ dots: false,
1009
+ indexes: false
1010
+ },
1011
+ false,
1012
+ function defined(option, source) {
1013
+ return !utils_default.isUndefined(source[option]);
1014
+ }
1015
+ );
1016
+ const metaTokens = options.metaTokens;
1017
+ const visitor = options.visitor || defaultVisitor;
1018
+ const dots = options.dots;
1019
+ const indexes = options.indexes;
1020
+ const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
1021
+ const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
1022
+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
1023
+ const stack = [];
1024
+ if (!utils_default.isFunction(visitor)) {
1025
+ throw new TypeError("visitor must be a function");
1026
+ }
1027
+ function convertValue(value) {
1028
+ if (value === null) return "";
1029
+ if (utils_default.isDate(value)) {
1030
+ return value.toISOString();
1031
+ }
1032
+ if (utils_default.isBoolean(value)) {
1033
+ return value.toString();
1034
+ }
1035
+ if (!useBlob && utils_default.isBlob(value)) {
1036
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
1037
+ }
1038
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
1039
+ return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
1040
+ }
1041
+ return value;
1042
+ }
1043
+ function throwIfMaxDepthExceeded(depth) {
1044
+ if (depth > maxDepth) {
1045
+ throw new AxiosError_default(
1046
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
1047
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
1048
+ );
1049
+ }
1050
+ }
1051
+ function stringifyWithDepthLimit(value, depth) {
1052
+ if (maxDepth === Infinity) {
1053
+ return JSON.stringify(value);
1054
+ }
1055
+ const ancestors = [];
1056
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
1057
+ if (!utils_default.isObject(currentValue)) {
1058
+ return currentValue;
1059
+ }
1060
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
1061
+ ancestors.pop();
1062
+ }
1063
+ ancestors.push(currentValue);
1064
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
1065
+ return currentValue;
1066
+ });
1067
+ }
1068
+ function defaultVisitor(value, key, path) {
1069
+ let arr = value;
1070
+ if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
1071
+ formData.append(renderKey(path, key, dots), convertValue(value));
1072
+ return false;
1073
+ }
1074
+ if (value && !path && typeof value === "object") {
1075
+ if (utils_default.endsWith(key, "{}")) {
1076
+ key = metaTokens ? key : key.slice(0, -2);
1077
+ value = stringifyWithDepthLimit(value, 1);
1078
+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
1079
+ key = removeBrackets(key);
1080
+ arr.forEach(function each(el, index) {
1081
+ !(utils_default.isUndefined(el) || el === null) && formData.append(
1082
+ // eslint-disable-next-line no-nested-ternary
1083
+ indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
1084
+ convertValue(el)
1085
+ );
1086
+ });
1087
+ return false;
1088
+ }
1089
+ }
1090
+ if (isVisitable(value)) {
1091
+ return true;
1092
+ }
1093
+ formData.append(renderKey(path, key, dots), convertValue(value));
1094
+ return false;
1095
+ }
1096
+ const exposedHelpers = Object.assign(predicates, {
1097
+ defaultVisitor,
1098
+ convertValue,
1099
+ isVisitable
1100
+ });
1101
+ function build(value, path, depth = 0) {
1102
+ if (utils_default.isUndefined(value)) return;
1103
+ throwIfMaxDepthExceeded(depth);
1104
+ if (stack.indexOf(value) !== -1) {
1105
+ throw new Error("Circular reference detected in " + path.join("."));
1106
+ }
1107
+ stack.push(value);
1108
+ utils_default.forEach(value, function each(el, key) {
1109
+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
1110
+ if (result === true) {
1111
+ build(el, path ? path.concat(key) : [key], depth + 1);
1112
+ }
1113
+ });
1114
+ stack.pop();
1115
+ }
1116
+ if (!utils_default.isObject(obj)) {
1117
+ throw new TypeError("data must be an object");
1118
+ }
1119
+ build(obj);
1120
+ return formData;
1121
+ }
1122
+ var toFormData_default = toFormData;
1123
+
1124
+ // node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1125
+ function encode(str) {
1126
+ const charMap = {
1127
+ "!": "%21",
1128
+ "'": "%27",
1129
+ "(": "%28",
1130
+ ")": "%29",
1131
+ "~": "%7E",
1132
+ "%20": "+"
1133
+ };
1134
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
1135
+ return charMap[match];
1136
+ });
1137
+ }
1138
+ function AxiosURLSearchParams(params, options) {
1139
+ this._pairs = [];
1140
+ params && toFormData_default(params, this, options);
1141
+ }
1142
+ var prototype = AxiosURLSearchParams.prototype;
1143
+ prototype.append = function append(name, value) {
1144
+ this._pairs.push([name, value]);
1145
+ };
1146
+ prototype.toString = function toString2(encoder) {
1147
+ const _encode = encoder ? function(value) {
1148
+ return encoder.call(this, value, encode);
1149
+ } : encode;
1150
+ return this._pairs.map(function each(pair) {
1151
+ return _encode(pair[0]) + "=" + _encode(pair[1]);
1152
+ }, "").join("&");
1153
+ };
1154
+ var AxiosURLSearchParams_default = AxiosURLSearchParams;
1155
+
1156
+ // node_modules/axios/lib/helpers/buildURL.js
1157
+ function encode2(val) {
1158
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
1159
+ }
1160
+ function buildURL(url, params, options) {
1161
+ if (!params) {
1162
+ return url;
1163
+ }
1164
+ const _options = utils_default.isFunction(options) ? {
1165
+ serialize: options
1166
+ } : options;
1167
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
1168
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
1169
+ let serializedParams;
1170
+ if (serializeFn) {
1171
+ serializedParams = serializeFn(params, _options);
1172
+ } else {
1173
+ serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
1174
+ }
1175
+ if (serializedParams) {
1176
+ const hashmarkIndex = url.indexOf("#");
1177
+ if (hashmarkIndex !== -1) {
1178
+ url = url.slice(0, hashmarkIndex);
1179
+ }
1180
+ url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
1181
+ }
1182
+ return url;
1183
+ }
1184
+
1185
+ // node_modules/axios/lib/core/InterceptorManager.js
1186
+ var InterceptorManager = class {
1187
+ constructor() {
1188
+ this.handlers = [];
1189
+ }
1190
+ /**
1191
+ * Add a new interceptor to the stack
1192
+ *
1193
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1194
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1195
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
1196
+ *
1197
+ * @return {Number} An ID used to remove interceptor later
1198
+ */
1199
+ use(fulfilled, rejected, options) {
1200
+ this.handlers.push({
1201
+ fulfilled,
1202
+ rejected,
1203
+ synchronous: options ? options.synchronous : false,
1204
+ runWhen: options ? options.runWhen : null
1205
+ });
1206
+ return this.handlers.length - 1;
1207
+ }
1208
+ /**
1209
+ * Remove an interceptor from the stack
1210
+ *
1211
+ * @param {Number} id The ID that was returned by `use`
1212
+ *
1213
+ * @returns {void}
1214
+ */
1215
+ eject(id) {
1216
+ if (this.handlers[id]) {
1217
+ this.handlers[id] = null;
1218
+ }
1219
+ }
1220
+ /**
1221
+ * Clear all interceptors from the stack
1222
+ *
1223
+ * @returns {void}
1224
+ */
1225
+ clear() {
1226
+ if (this.handlers) {
1227
+ this.handlers = [];
1228
+ }
1229
+ }
1230
+ /**
1231
+ * Iterate over all the registered interceptors
1232
+ *
1233
+ * This method is particularly useful for skipping over any
1234
+ * interceptors that may have become `null` calling `eject`.
1235
+ *
1236
+ * @param {Function} fn The function to call for each interceptor
1237
+ *
1238
+ * @returns {void}
1239
+ */
1240
+ forEach(fn) {
1241
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
1242
+ if (h !== null) {
1243
+ fn(h);
1244
+ }
1245
+ });
1246
+ }
1247
+ };
1248
+ var InterceptorManager_default = InterceptorManager;
1249
+
1250
+ // node_modules/axios/lib/defaults/transitional.js
1251
+ var transitional_default = {
1252
+ silentJSONParsing: true,
1253
+ forcedJSONParsing: true,
1254
+ clarifyTimeoutError: false,
1255
+ legacyInterceptorReqResOrdering: true,
1256
+ advertiseZstdAcceptEncoding: false,
1257
+ validateStatusUndefinedResolves: true
1258
+ };
1259
+
1260
+ // node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
1261
+ var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams_default;
1262
+
1263
+ // node_modules/axios/lib/platform/browser/classes/FormData.js
1264
+ var FormData_default = typeof FormData !== "undefined" ? FormData : null;
1265
+
1266
+ // node_modules/axios/lib/platform/browser/classes/Blob.js
1267
+ var Blob_default = typeof Blob !== "undefined" ? Blob : null;
1268
+
1269
+ // node_modules/axios/lib/platform/browser/index.js
1270
+ var browser_default = {
1271
+ isBrowser: true,
1272
+ classes: {
1273
+ URLSearchParams: URLSearchParams_default,
1274
+ FormData: FormData_default,
1275
+ Blob: Blob_default
1276
+ },
1277
+ protocols: ["http", "https", "file", "blob", "url", "data"]
1278
+ };
1279
+
1280
+ // node_modules/axios/lib/platform/common/utils.js
1281
+ var utils_exports = {};
1282
+ __export(utils_exports, {
1283
+ hasBrowserEnv: () => hasBrowserEnv,
1284
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
1285
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
1286
+ navigator: () => _navigator,
1287
+ origin: () => origin
1288
+ });
1289
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
1290
+ var _navigator = typeof navigator === "object" && navigator || void 0;
1291
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
1292
+ var hasStandardBrowserWebWorkerEnv = (() => {
1293
+ return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
1294
+ self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
1295
+ })();
1296
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
1297
+
1298
+ // node_modules/axios/lib/platform/index.js
1299
+ var platform_default = {
1300
+ ...utils_exports,
1301
+ ...browser_default
1302
+ };
1303
+
1304
+ // node_modules/axios/lib/helpers/toURLEncodedForm.js
1305
+ function toURLEncodedForm(data, options) {
1306
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
1307
+ visitor: function(value, key, path, helpers) {
1308
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
1309
+ this.append(key, value.toString("base64"));
1310
+ return false;
1311
+ }
1312
+ return helpers.defaultVisitor.apply(this, arguments);
1313
+ },
1314
+ ...options
1315
+ });
1316
+ }
1317
+
1318
+ // node_modules/axios/lib/helpers/formDataToJSON.js
1319
+ var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
1320
+ function throwIfDepthExceeded(index) {
1321
+ if (index > MAX_DEPTH) {
1322
+ throw new AxiosError_default(
1323
+ "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
1324
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
1325
+ );
1326
+ }
1327
+ }
1328
+ function parsePropPath(name) {
1329
+ const path = [];
1330
+ const pattern = /\w+|\[(\w*)]/g;
1331
+ let match;
1332
+ while ((match = pattern.exec(name)) !== null) {
1333
+ throwIfDepthExceeded(path.length);
1334
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
1335
+ }
1336
+ return path;
1337
+ }
1338
+ function arrayToObject(arr) {
1339
+ const obj = {};
1340
+ const keys = Object.keys(arr);
1341
+ let i;
1342
+ const len = keys.length;
1343
+ let key;
1344
+ for (i = 0; i < len; i++) {
1345
+ key = keys[i];
1346
+ obj[key] = arr[key];
1347
+ }
1348
+ return obj;
1349
+ }
1350
+ function formDataToJSON(formData) {
1351
+ function buildPath(path, value, target, index) {
1352
+ throwIfDepthExceeded(index);
1353
+ let name = path[index++];
1354
+ if (name === "__proto__") return true;
1355
+ const isNumericKey = Number.isFinite(+name);
1356
+ const isLast = index >= path.length;
1357
+ name = !name && utils_default.isArray(target) ? target.length : name;
1358
+ if (isLast) {
1359
+ if (utils_default.hasOwnProp(target, name)) {
1360
+ target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
1361
+ } else {
1362
+ target[name] = value;
1363
+ }
1364
+ return !isNumericKey;
1365
+ }
1366
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
1367
+ target[name] = [];
1368
+ }
1369
+ const result = buildPath(path, value, target[name], index);
1370
+ if (result && utils_default.isArray(target[name])) {
1371
+ target[name] = arrayToObject(target[name]);
1372
+ }
1373
+ return !isNumericKey;
1374
+ }
1375
+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
1376
+ const obj = {};
1377
+ utils_default.forEachEntry(formData, (name, value) => {
1378
+ buildPath(parsePropPath(name), value, obj, 0);
1379
+ });
1380
+ return obj;
1381
+ }
1382
+ return null;
1383
+ }
1384
+ var formDataToJSON_default = formDataToJSON;
1385
+
1386
+ // node_modules/axios/lib/defaults/index.js
1387
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
1388
+ function stringifySafely(rawValue, parser, encoder) {
1389
+ if (utils_default.isString(rawValue)) {
1390
+ try {
1391
+ (parser || JSON.parse)(rawValue);
1392
+ return utils_default.trim(rawValue);
1393
+ } catch (e) {
1394
+ if (e.name !== "SyntaxError") {
1395
+ throw e;
1396
+ }
1397
+ }
1398
+ }
1399
+ return (encoder || JSON.stringify)(rawValue);
1400
+ }
1401
+ var defaults = {
1402
+ transitional: transitional_default,
1403
+ adapter: ["xhr", "http", "fetch"],
1404
+ transformRequest: [
1405
+ function transformRequest(data, headers) {
1406
+ const contentType = headers.getContentType() || "";
1407
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
1408
+ const isObjectPayload = utils_default.isObject(data);
1409
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
1410
+ data = new FormData(data);
1411
+ }
1412
+ const isFormData2 = utils_default.isFormData(data);
1413
+ if (isFormData2) {
1414
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
1415
+ }
1416
+ 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)) {
1417
+ return data;
1418
+ }
1419
+ if (utils_default.isArrayBufferView(data)) {
1420
+ return data.buffer;
1421
+ }
1422
+ if (utils_default.isURLSearchParams(data)) {
1423
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
1424
+ return data.toString();
1425
+ }
1426
+ let isFileList2;
1427
+ if (isObjectPayload) {
1428
+ const formSerializer = own(this, "formSerializer");
1429
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
1430
+ return toURLEncodedForm(data, formSerializer).toString();
1431
+ }
1432
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
1433
+ const env = own(this, "env");
1434
+ const _FormData = env && env.FormData;
1435
+ return toFormData_default(
1436
+ isFileList2 ? { "files[]": data } : data,
1437
+ _FormData && new _FormData(),
1438
+ formSerializer
1439
+ );
1440
+ }
1441
+ }
1442
+ if (isObjectPayload || hasJSONContentType) {
1443
+ headers.setContentType("application/json", false);
1444
+ return stringifySafely(data);
1445
+ }
1446
+ return data;
1447
+ }
1448
+ ],
1449
+ transformResponse: [
1450
+ function transformResponse(data) {
1451
+ const transitional2 = own(this, "transitional") || defaults.transitional;
1452
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
1453
+ const responseType = own(this, "responseType");
1454
+ const JSONRequested = responseType === "json";
1455
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
1456
+ return data;
1457
+ }
1458
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
1459
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
1460
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
1461
+ try {
1462
+ return JSON.parse(data, own(this, "parseReviver"));
1463
+ } catch (e) {
1464
+ if (strictJSONParsing) {
1465
+ if (e.name === "SyntaxError") {
1466
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
1467
+ }
1468
+ throw e;
1469
+ }
1470
+ }
1471
+ }
1472
+ return data;
1473
+ }
1474
+ ],
1475
+ /**
1476
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1477
+ * timeout is not created.
1478
+ */
1479
+ timeout: 0,
1480
+ xsrfCookieName: "XSRF-TOKEN",
1481
+ xsrfHeaderName: "X-XSRF-TOKEN",
1482
+ maxContentLength: -1,
1483
+ maxBodyLength: -1,
1484
+ env: {
1485
+ FormData: platform_default.classes.FormData,
1486
+ Blob: platform_default.classes.Blob
1487
+ },
1488
+ validateStatus: function validateStatus(status) {
1489
+ return status >= 200 && status < 300;
1490
+ },
1491
+ headers: {
1492
+ common: {
1493
+ Accept: "application/json, text/plain, */*",
1494
+ "Content-Type": void 0
1495
+ }
1496
+ }
1497
+ };
1498
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
1499
+ defaults.headers[method] = {};
1500
+ });
1501
+ var defaults_default = defaults;
1502
+
1503
+ // node_modules/axios/lib/core/transformData.js
1504
+ function transformData(fns, response) {
1505
+ const config = this || defaults_default;
1506
+ const context = response || config;
1507
+ const headers = AxiosHeaders_default.from(context.headers);
1508
+ let data = context.data;
1509
+ utils_default.forEach(fns, function transform(fn) {
1510
+ data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
1511
+ });
1512
+ headers.normalize();
1513
+ return data;
1514
+ }
1515
+
1516
+ // node_modules/axios/lib/cancel/isCancel.js
1517
+ function isCancel(value) {
1518
+ return !!(value && value.__CANCEL__);
1519
+ }
1520
+
1521
+ // node_modules/axios/lib/cancel/CanceledError.js
1522
+ var CanceledError = class extends AxiosError_default {
1523
+ /**
1524
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
1525
+ *
1526
+ * @param {string=} message The message.
1527
+ * @param {Object=} config The config.
1528
+ * @param {Object=} request The request.
1529
+ *
1530
+ * @returns {CanceledError} The created error.
1531
+ */
1532
+ constructor(message, config, request) {
1533
+ super(message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
1534
+ this.name = "CanceledError";
1535
+ this.__CANCEL__ = true;
1536
+ }
1537
+ };
1538
+ var CanceledError_default = CanceledError;
1539
+
1540
+ // node_modules/axios/lib/core/settle.js
1541
+ function settle(resolve, reject, response) {
1542
+ const validateStatus2 = response.config.validateStatus;
1543
+ if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
1544
+ resolve(response);
1545
+ } else {
1546
+ reject(new AxiosError_default(
1547
+ "Request failed with status code " + response.status,
1548
+ response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
1549
+ response.config,
1550
+ response.request,
1551
+ response
1552
+ ));
1553
+ }
1554
+ }
1555
+
1556
+ // node_modules/axios/lib/helpers/parseProtocol.js
1557
+ function parseProtocol(url) {
1558
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
1559
+ return match && match[1] || "";
1560
+ }
1561
+
1562
+ // node_modules/axios/lib/helpers/speedometer.js
1563
+ function speedometer(samplesCount, min) {
1564
+ samplesCount = samplesCount || 10;
1565
+ const bytes = new Array(samplesCount);
1566
+ const timestamps = new Array(samplesCount);
1567
+ let head = 0;
1568
+ let tail = 0;
1569
+ let firstSampleTS;
1570
+ min = min !== void 0 ? min : 1e3;
1571
+ return function push(chunkLength) {
1572
+ const now = Date.now();
1573
+ const startedAt = timestamps[tail];
1574
+ if (!firstSampleTS) {
1575
+ firstSampleTS = now;
1576
+ }
1577
+ bytes[head] = chunkLength;
1578
+ timestamps[head] = now;
1579
+ let i = tail;
1580
+ let bytesCount = 0;
1581
+ while (i !== head) {
1582
+ bytesCount += bytes[i++];
1583
+ i = i % samplesCount;
1584
+ }
1585
+ head = (head + 1) % samplesCount;
1586
+ if (head === tail) {
1587
+ tail = (tail + 1) % samplesCount;
1588
+ }
1589
+ if (now - firstSampleTS < min) {
1590
+ return;
1591
+ }
1592
+ const passed = startedAt && now - startedAt;
1593
+ return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
1594
+ };
1595
+ }
1596
+ var speedometer_default = speedometer;
1597
+
1598
+ // node_modules/axios/lib/helpers/throttle.js
1599
+ function throttle(fn, freq) {
1600
+ let timestamp = 0;
1601
+ let threshold = 1e3 / freq;
1602
+ let lastArgs;
1603
+ let timer;
1604
+ const invoke = (args, now = Date.now()) => {
1605
+ timestamp = now;
1606
+ lastArgs = null;
1607
+ if (timer) {
1608
+ clearTimeout(timer);
1609
+ timer = null;
1610
+ }
1611
+ fn(...args);
1612
+ };
1613
+ const throttled = (...args) => {
1614
+ const now = Date.now();
1615
+ const passed = now - timestamp;
1616
+ if (passed >= threshold) {
1617
+ invoke(args, now);
1618
+ } else {
1619
+ lastArgs = args;
1620
+ if (!timer) {
1621
+ timer = setTimeout(() => {
1622
+ timer = null;
1623
+ invoke(lastArgs);
1624
+ }, threshold - passed);
1625
+ }
1626
+ }
1627
+ };
1628
+ const flush = () => lastArgs && invoke(lastArgs);
1629
+ return [throttled, flush];
1630
+ }
1631
+ var throttle_default = throttle;
1632
+
1633
+ // node_modules/axios/lib/helpers/progressEventReducer.js
1634
+ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
1635
+ let bytesNotified = 0;
1636
+ const _speedometer = speedometer_default(50, 250);
1637
+ return throttle_default((e) => {
1638
+ if (!e || typeof e.loaded !== "number") {
1639
+ return;
1640
+ }
1641
+ const rawLoaded = e.loaded;
1642
+ const total = e.lengthComputable ? e.total : void 0;
1643
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
1644
+ const progressBytes = Math.max(0, loaded - bytesNotified);
1645
+ const rate = _speedometer(progressBytes);
1646
+ bytesNotified = Math.max(bytesNotified, loaded);
1647
+ const data = {
1648
+ loaded,
1649
+ total,
1650
+ progress: total ? loaded / total : void 0,
1651
+ bytes: progressBytes,
1652
+ rate: rate ? rate : void 0,
1653
+ estimated: rate && total ? (total - loaded) / rate : void 0,
1654
+ event: e,
1655
+ lengthComputable: total != null,
1656
+ [isDownloadStream ? "download" : "upload"]: true
1657
+ };
1658
+ listener(data);
1659
+ }, freq);
1660
+ };
1661
+ var progressEventDecorator = (total, throttled) => {
1662
+ const lengthComputable = total != null;
1663
+ return [
1664
+ (loaded) => throttled[0]({
1665
+ lengthComputable,
1666
+ total,
1667
+ loaded
1668
+ }),
1669
+ throttled[1]
1670
+ ];
1671
+ };
1672
+ var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
1673
+
1674
+ // node_modules/axios/lib/helpers/isURLSameOrigin.js
1675
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
1676
+ url = new URL(url, platform_default.origin);
1677
+ return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
1678
+ })(
1679
+ new URL(platform_default.origin),
1680
+ platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
1681
+ ) : () => true;
1682
+
1683
+ // node_modules/axios/lib/helpers/cookies.js
1684
+ var cookies_default = platform_default.hasStandardBrowserEnv ? (
1685
+ // Standard browser envs support document.cookie
1686
+ {
1687
+ write(name, value, expires, path, domain, secure, sameSite) {
1688
+ if (typeof document === "undefined") return;
1689
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
1690
+ if (utils_default.isNumber(expires)) {
1691
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
1692
+ }
1693
+ if (utils_default.isString(path)) {
1694
+ cookie.push(`path=${path}`);
1695
+ }
1696
+ if (utils_default.isString(domain)) {
1697
+ cookie.push(`domain=${domain}`);
1698
+ }
1699
+ if (secure === true) {
1700
+ cookie.push("secure");
1701
+ }
1702
+ if (utils_default.isString(sameSite)) {
1703
+ cookie.push(`SameSite=${sameSite}`);
1704
+ }
1705
+ document.cookie = cookie.join("; ");
1706
+ },
1707
+ read(name) {
1708
+ if (typeof document === "undefined") return null;
1709
+ const cookies = document.cookie.split(";");
1710
+ for (let i = 0; i < cookies.length; i++) {
1711
+ const cookie = cookies[i].replace(/^\s+/, "");
1712
+ const eq = cookie.indexOf("=");
1713
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
1714
+ return decodeURIComponent(cookie.slice(eq + 1));
1715
+ }
1716
+ }
1717
+ return null;
1718
+ },
1719
+ remove(name) {
1720
+ this.write(name, "", Date.now() - 864e5, "/");
1721
+ }
1722
+ }
1723
+ ) : (
1724
+ // Non-standard browser env (web workers, react-native) lack needed support.
1725
+ {
1726
+ write() {
1727
+ },
1728
+ read() {
1729
+ return null;
1730
+ },
1731
+ remove() {
1732
+ }
1733
+ }
1734
+ );
1735
+
1736
+ // node_modules/axios/lib/helpers/isAbsoluteURL.js
1737
+ function isAbsoluteURL(url) {
1738
+ if (typeof url !== "string") {
1739
+ return false;
1740
+ }
1741
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
1742
+ }
1743
+
1744
+ // node_modules/axios/lib/helpers/combineURLs.js
1745
+ function combineURLs(baseURL, relativeURL) {
1746
+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
1747
+ }
1748
+
1749
+ // node_modules/axios/lib/core/buildFullPath.js
1750
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
1751
+ var httpProtocolControlCharacters = /[\t\n\r]/g;
1752
+ function stripLeadingC0ControlOrSpace(url) {
1753
+ let i = 0;
1754
+ while (i < url.length && url.charCodeAt(i) <= 32) {
1755
+ i++;
1756
+ }
1757
+ return url.slice(i);
1758
+ }
1759
+ function normalizeURLForProtocolCheck(url) {
1760
+ return stripLeadingC0ControlOrSpace(url).replace(httpProtocolControlCharacters, "");
1761
+ }
1762
+ function assertValidHttpProtocolURL(url, config) {
1763
+ if (typeof url === "string" && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url))) {
1764
+ throw new AxiosError_default(
1765
+ 'Invalid URL: missing "//" after protocol',
1766
+ AxiosError_default.ERR_INVALID_URL,
1767
+ config
1768
+ );
1769
+ }
1770
+ }
1771
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
1772
+ assertValidHttpProtocolURL(requestedURL, config);
1773
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
1774
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
1775
+ assertValidHttpProtocolURL(baseURL, config);
1776
+ return combineURLs(baseURL, requestedURL);
1777
+ }
1778
+ return requestedURL;
1779
+ }
1780
+
1781
+ // node_modules/axios/lib/core/mergeConfig.js
1782
+ var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
1783
+ function mergeConfig(config1, config2) {
1784
+ config2 = config2 || {};
1785
+ const config = /* @__PURE__ */ Object.create(null);
1786
+ Object.defineProperty(config, "hasOwnProperty", {
1787
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
1788
+ // this data descriptor into an accessor descriptor on the way in.
1789
+ __proto__: null,
1790
+ value: Object.prototype.hasOwnProperty,
1791
+ enumerable: false,
1792
+ writable: true,
1793
+ configurable: true
1794
+ });
1795
+ function getMergedValue(target, source, prop, caseless) {
1796
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
1797
+ return utils_default.merge.call({ caseless }, target, source);
1798
+ } else if (utils_default.isPlainObject(source)) {
1799
+ return utils_default.merge({}, source);
1800
+ } else if (utils_default.isArray(source)) {
1801
+ return source.slice();
1802
+ }
1803
+ return source;
1804
+ }
1805
+ function mergeDeepProperties(a, b, prop, caseless) {
1806
+ if (!utils_default.isUndefined(b)) {
1807
+ return getMergedValue(a, b, prop, caseless);
1808
+ } else if (!utils_default.isUndefined(a)) {
1809
+ return getMergedValue(void 0, a, prop, caseless);
1810
+ }
1811
+ }
1812
+ function valueFromConfig2(a, b) {
1813
+ if (!utils_default.isUndefined(b)) {
1814
+ return getMergedValue(void 0, b);
1815
+ }
1816
+ }
1817
+ function defaultToConfig2(a, b) {
1818
+ if (!utils_default.isUndefined(b)) {
1819
+ return getMergedValue(void 0, b);
1820
+ } else if (!utils_default.isUndefined(a)) {
1821
+ return getMergedValue(void 0, a);
1822
+ }
1823
+ }
1824
+ function getMergedTransitionalOption(prop) {
1825
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
1826
+ if (!utils_default.isUndefined(transitional2)) {
1827
+ if (utils_default.isPlainObject(transitional2)) {
1828
+ if (utils_default.hasOwnProp(transitional2, prop)) {
1829
+ return transitional2[prop];
1830
+ }
1831
+ } else {
1832
+ return void 0;
1833
+ }
1834
+ }
1835
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
1836
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
1837
+ return transitional1[prop];
1838
+ }
1839
+ return void 0;
1840
+ }
1841
+ function mergeDirectKeys(a, b, prop) {
1842
+ if (utils_default.hasOwnProp(config2, prop)) {
1843
+ return getMergedValue(a, b);
1844
+ } else if (utils_default.hasOwnProp(config1, prop)) {
1845
+ return getMergedValue(void 0, a);
1846
+ }
1847
+ }
1848
+ const mergeMap = {
1849
+ url: valueFromConfig2,
1850
+ method: valueFromConfig2,
1851
+ data: valueFromConfig2,
1852
+ baseURL: defaultToConfig2,
1853
+ transformRequest: defaultToConfig2,
1854
+ transformResponse: defaultToConfig2,
1855
+ paramsSerializer: defaultToConfig2,
1856
+ timeout: defaultToConfig2,
1857
+ timeoutMessage: defaultToConfig2,
1858
+ withCredentials: defaultToConfig2,
1859
+ withXSRFToken: defaultToConfig2,
1860
+ adapter: defaultToConfig2,
1861
+ responseType: defaultToConfig2,
1862
+ xsrfCookieName: defaultToConfig2,
1863
+ xsrfHeaderName: defaultToConfig2,
1864
+ onUploadProgress: defaultToConfig2,
1865
+ onDownloadProgress: defaultToConfig2,
1866
+ decompress: defaultToConfig2,
1867
+ maxContentLength: defaultToConfig2,
1868
+ maxBodyLength: defaultToConfig2,
1869
+ beforeRedirect: defaultToConfig2,
1870
+ transport: defaultToConfig2,
1871
+ httpAgent: defaultToConfig2,
1872
+ httpsAgent: defaultToConfig2,
1873
+ cancelToken: defaultToConfig2,
1874
+ socketPath: defaultToConfig2,
1875
+ allowedSocketPaths: defaultToConfig2,
1876
+ responseEncoding: defaultToConfig2,
1877
+ validateStatus: mergeDirectKeys,
1878
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
1879
+ };
1880
+ utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
1881
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
1882
+ const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
1883
+ const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
1884
+ const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
1885
+ const configValue = merge2(a, b, prop);
1886
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
1887
+ });
1888
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
1889
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
1890
+ config.validateStatus = getMergedValue(void 0, config1.validateStatus);
1891
+ } else {
1892
+ delete config.validateStatus;
1893
+ }
1894
+ }
1895
+ return config;
1896
+ }
1897
+
1898
+ // node_modules/axios/lib/helpers/resolveConfig.js
1899
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
1900
+ function setFormDataHeaders(headers, formHeaders, policy) {
1901
+ if (policy !== "content-only") {
1902
+ headers.set(formHeaders);
1903
+ return;
1904
+ }
1905
+ Object.entries(formHeaders).forEach(([key, val]) => {
1906
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
1907
+ headers.set(key, val);
1908
+ }
1909
+ });
1910
+ }
1911
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
1912
+ /%([0-9A-F]{2})/gi,
1913
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
1914
+ );
1915
+ function resolveConfig(config) {
1916
+ const newConfig = mergeConfig({}, config);
1917
+ const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
1918
+ const data = own2("data");
1919
+ let withXSRFToken = own2("withXSRFToken");
1920
+ const xsrfHeaderName = own2("xsrfHeaderName");
1921
+ const xsrfCookieName = own2("xsrfCookieName");
1922
+ let headers = own2("headers");
1923
+ const auth = own2("auth");
1924
+ const baseURL = own2("baseURL");
1925
+ const allowAbsoluteUrls = own2("allowAbsoluteUrls");
1926
+ const url = own2("url");
1927
+ newConfig.headers = headers = AxiosHeaders_default.from(headers);
1928
+ newConfig.url = buildURL(
1929
+ buildFullPath(baseURL, url, allowAbsoluteUrls, newConfig),
1930
+ own2("params"),
1931
+ own2("paramsSerializer")
1932
+ );
1933
+ if (auth) {
1934
+ const username = utils_default.getSafeProp(auth, "username") || "";
1935
+ const password = utils_default.getSafeProp(auth, "password") || "";
1936
+ headers.set(
1937
+ "Authorization",
1938
+ "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
1939
+ );
1940
+ }
1941
+ if (utils_default.isFormData(data)) {
1942
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
1943
+ headers.setContentType(void 0);
1944
+ } else if (utils_default.isFunction(data.getHeaders)) {
1945
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
1946
+ }
1947
+ }
1948
+ if (platform_default.hasStandardBrowserEnv) {
1949
+ if (utils_default.isFunction(withXSRFToken)) {
1950
+ withXSRFToken = withXSRFToken(newConfig);
1951
+ }
1952
+ const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
1953
+ if (shouldSendXSRF) {
1954
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
1955
+ if (xsrfValue) {
1956
+ headers.set(xsrfHeaderName, xsrfValue);
1957
+ }
1958
+ }
1959
+ }
1960
+ return newConfig;
1961
+ }
1962
+ var resolveConfig_default = resolveConfig;
1963
+
1964
+ // node_modules/axios/lib/adapters/xhr.js
1965
+ var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
1966
+ var xhr_default = isXHRAdapterSupported && function(config) {
1967
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
1968
+ const _config = resolveConfig_default(config);
1969
+ let requestData = _config.data;
1970
+ const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
1971
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
1972
+ let onCanceled;
1973
+ let uploadThrottled, downloadThrottled;
1974
+ let flushUpload, flushDownload;
1975
+ function done() {
1976
+ flushUpload && flushUpload();
1977
+ flushDownload && flushDownload();
1978
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
1979
+ _config.signal && _config.signal.removeEventListener("abort", onCanceled);
1980
+ }
1981
+ let request = new XMLHttpRequest();
1982
+ request.open(_config.method.toUpperCase(), _config.url, true);
1983
+ request.timeout = _config.timeout;
1984
+ function onloadend() {
1985
+ if (!request) {
1986
+ return;
1987
+ }
1988
+ const responseHeaders = AxiosHeaders_default.from(
1989
+ "getAllResponseHeaders" in request && request.getAllResponseHeaders()
1990
+ );
1991
+ const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
1992
+ const response = {
1993
+ data: responseData,
1994
+ status: request.status,
1995
+ statusText: request.statusText,
1996
+ headers: responseHeaders,
1997
+ config,
1998
+ request
1999
+ };
2000
+ settle(
2001
+ function _resolve(value) {
2002
+ resolve(value);
2003
+ done();
2004
+ },
2005
+ function _reject(err) {
2006
+ reject(err);
2007
+ done();
2008
+ },
2009
+ response
2010
+ );
2011
+ request = null;
2012
+ }
2013
+ if ("onloadend" in request) {
2014
+ request.onloadend = onloadend;
2015
+ } else {
2016
+ request.onreadystatechange = function handleLoad() {
2017
+ if (!request || request.readyState !== 4) {
2018
+ return;
2019
+ }
2020
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
2021
+ return;
2022
+ }
2023
+ setTimeout(onloadend);
2024
+ };
2025
+ }
2026
+ request.onabort = function handleAbort() {
2027
+ if (!request) {
2028
+ return;
2029
+ }
2030
+ reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
2031
+ done();
2032
+ request = null;
2033
+ };
2034
+ request.onerror = function handleError(event) {
2035
+ const msg = event && event.message ? event.message : "Network Error";
2036
+ const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
2037
+ err.event = event || null;
2038
+ reject(err);
2039
+ done();
2040
+ request = null;
2041
+ };
2042
+ request.ontimeout = function handleTimeout() {
2043
+ let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
2044
+ const transitional2 = _config.transitional || transitional_default;
2045
+ if (_config.timeoutErrorMessage) {
2046
+ timeoutErrorMessage = _config.timeoutErrorMessage;
2047
+ }
2048
+ reject(
2049
+ new AxiosError_default(
2050
+ timeoutErrorMessage,
2051
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
2052
+ config,
2053
+ request
2054
+ )
2055
+ );
2056
+ done();
2057
+ request = null;
2058
+ };
2059
+ requestData === void 0 && requestHeaders.setContentType(null);
2060
+ if ("setRequestHeader" in request) {
2061
+ utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
2062
+ request.setRequestHeader(key, val);
2063
+ });
2064
+ }
2065
+ if (!utils_default.isUndefined(_config.withCredentials)) {
2066
+ request.withCredentials = !!_config.withCredentials;
2067
+ }
2068
+ if (responseType && responseType !== "json") {
2069
+ request.responseType = _config.responseType;
2070
+ }
2071
+ if (onDownloadProgress) {
2072
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
2073
+ request.addEventListener("progress", downloadThrottled);
2074
+ }
2075
+ if (onUploadProgress && request.upload) {
2076
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
2077
+ request.upload.addEventListener("progress", uploadThrottled);
2078
+ request.upload.addEventListener("loadend", flushUpload);
2079
+ }
2080
+ if (_config.cancelToken || _config.signal) {
2081
+ onCanceled = (cancel) => {
2082
+ if (!request) {
2083
+ return;
2084
+ }
2085
+ reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
2086
+ request.abort();
2087
+ done();
2088
+ request = null;
2089
+ };
2090
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
2091
+ if (_config.signal) {
2092
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
2093
+ }
2094
+ }
2095
+ const protocol = parseProtocol(_config.url);
2096
+ if (protocol && !platform_default.protocols.includes(protocol)) {
2097
+ reject(
2098
+ new AxiosError_default(
2099
+ "Unsupported protocol " + protocol + ":",
2100
+ AxiosError_default.ERR_BAD_REQUEST,
2101
+ config
2102
+ )
2103
+ );
2104
+ return;
2105
+ }
2106
+ request.send(requestData || null);
2107
+ });
2108
+ };
2109
+
2110
+ // node_modules/axios/lib/helpers/composeSignals.js
2111
+ var composeSignals = (signals, timeout) => {
2112
+ signals = signals ? signals.filter(Boolean) : [];
2113
+ if (!timeout && !signals.length) {
2114
+ return;
2115
+ }
2116
+ const controller = new AbortController();
2117
+ let aborted = false;
2118
+ const onabort = function(reason) {
2119
+ if (!aborted) {
2120
+ aborted = true;
2121
+ unsubscribe();
2122
+ const err = reason instanceof Error ? reason : this.reason;
2123
+ controller.abort(
2124
+ err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
2125
+ );
2126
+ }
2127
+ };
2128
+ let timer = timeout && setTimeout(() => {
2129
+ timer = null;
2130
+ onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
2131
+ }, timeout);
2132
+ const unsubscribe = () => {
2133
+ if (!signals) {
2134
+ return;
2135
+ }
2136
+ timer && clearTimeout(timer);
2137
+ timer = null;
2138
+ signals.forEach((signal2) => {
2139
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
2140
+ });
2141
+ signals = null;
2142
+ };
2143
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
2144
+ const { signal } = controller;
2145
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
2146
+ return signal;
2147
+ };
2148
+ var composeSignals_default = composeSignals;
2149
+
2150
+ // node_modules/axios/lib/helpers/trackStream.js
2151
+ var streamChunk = function* (chunk, chunkSize) {
2152
+ let len = chunk.byteLength;
2153
+ if (!chunkSize || len < chunkSize) {
2154
+ yield chunk;
2155
+ return;
2156
+ }
2157
+ let pos = 0;
2158
+ let end;
2159
+ while (pos < len) {
2160
+ end = pos + chunkSize;
2161
+ yield chunk.slice(pos, end);
2162
+ pos = end;
2163
+ }
2164
+ };
2165
+ var readBytes = async function* (iterable, chunkSize) {
2166
+ for await (const chunk of readStream(iterable)) {
2167
+ yield* streamChunk(chunk, chunkSize);
2168
+ }
2169
+ };
2170
+ var readStream = async function* (stream) {
2171
+ if (stream[Symbol.asyncIterator]) {
2172
+ yield* stream;
2173
+ return;
2174
+ }
2175
+ const reader = stream.getReader();
2176
+ try {
2177
+ for (; ; ) {
2178
+ const { done, value } = await reader.read();
2179
+ if (done) {
2180
+ break;
2181
+ }
2182
+ yield value;
2183
+ }
2184
+ } finally {
2185
+ await reader.cancel();
2186
+ }
2187
+ };
2188
+ var trackStream = (stream, chunkSize, onProgress, onFinish) => {
2189
+ const iterator2 = readBytes(stream, chunkSize);
2190
+ let bytes = 0;
2191
+ let done;
2192
+ let _onFinish = (e) => {
2193
+ if (!done) {
2194
+ done = true;
2195
+ onFinish && onFinish(e);
2196
+ }
2197
+ };
2198
+ return new ReadableStream(
2199
+ {
2200
+ async pull(controller) {
2201
+ try {
2202
+ const { done: done2, value } = await iterator2.next();
2203
+ if (done2) {
2204
+ _onFinish();
2205
+ controller.close();
2206
+ return;
2207
+ }
2208
+ let len = value.byteLength;
2209
+ if (onProgress) {
2210
+ let loadedBytes = bytes += len;
2211
+ onProgress(loadedBytes);
2212
+ }
2213
+ controller.enqueue(new Uint8Array(value));
2214
+ } catch (err) {
2215
+ _onFinish(err);
2216
+ throw err;
2217
+ }
2218
+ },
2219
+ cancel(reason) {
2220
+ _onFinish(reason);
2221
+ return iterator2.return();
2222
+ }
2223
+ },
2224
+ {
2225
+ highWaterMark: 2
2226
+ }
2227
+ );
2228
+ };
2229
+
2230
+ // node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
2231
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
2232
+ var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
2233
+ function estimateDataURLDecodedBytes(url) {
2234
+ if (!url || typeof url !== "string") return 0;
2235
+ if (!url.startsWith("data:")) return 0;
2236
+ const comma = url.indexOf(",");
2237
+ if (comma < 0) return 0;
2238
+ const meta = url.slice(5, comma);
2239
+ const body = url.slice(comma + 1);
2240
+ const isBase64 = /;base64/i.test(meta);
2241
+ if (isBase64) {
2242
+ let effectiveLen = body.length;
2243
+ const len = body.length;
2244
+ for (let i = 0; i < len; i++) {
2245
+ if (body.charCodeAt(i) === 37 && i + 2 < len) {
2246
+ const a = body.charCodeAt(i + 1);
2247
+ const b = body.charCodeAt(i + 2);
2248
+ const isHex = isHexDigit(a) && isHexDigit(b);
2249
+ if (isHex) {
2250
+ effectiveLen -= 2;
2251
+ i += 2;
2252
+ }
2253
+ }
2254
+ }
2255
+ let pad = 0;
2256
+ let idx = len - 1;
2257
+ const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
2258
+ body.charCodeAt(j - 1) === 51 && // '3'
2259
+ (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
2260
+ if (idx >= 0) {
2261
+ if (body.charCodeAt(idx) === 61) {
2262
+ pad++;
2263
+ idx--;
2264
+ } else if (tailIsPct3D(idx)) {
2265
+ pad++;
2266
+ idx -= 3;
2267
+ }
2268
+ }
2269
+ if (pad === 1 && idx >= 0) {
2270
+ if (body.charCodeAt(idx) === 61) {
2271
+ pad++;
2272
+ } else if (tailIsPct3D(idx)) {
2273
+ pad++;
2274
+ }
2275
+ }
2276
+ const groups = Math.floor(effectiveLen / 4);
2277
+ const bytes2 = groups * 3 - (pad || 0);
2278
+ return bytes2 > 0 ? bytes2 : 0;
2279
+ }
2280
+ let bytes = 0;
2281
+ for (let i = 0, len = body.length; i < len; i++) {
2282
+ const c = body.charCodeAt(i);
2283
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
2284
+ bytes += 1;
2285
+ i += 2;
2286
+ } else if (c < 128) {
2287
+ bytes += 1;
2288
+ } else if (c < 2048) {
2289
+ bytes += 2;
2290
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
2291
+ const next = body.charCodeAt(i + 1);
2292
+ if (next >= 56320 && next <= 57343) {
2293
+ bytes += 4;
2294
+ i++;
2295
+ } else {
2296
+ bytes += 3;
2297
+ }
2298
+ } else {
2299
+ bytes += 3;
2300
+ }
2301
+ }
2302
+ return bytes;
2303
+ }
2304
+
2305
+ // node_modules/axios/lib/env/data.js
2306
+ var VERSION = "1.18.0";
2307
+
2308
+ // node_modules/axios/lib/adapters/fetch.js
2309
+ var DEFAULT_CHUNK_SIZE = 64 * 1024;
2310
+ var { isFunction: isFunction2 } = utils_default;
2311
+ var encodeUTF82 = (str) => encodeURIComponent(str).replace(
2312
+ /%([0-9A-F]{2})/gi,
2313
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
2314
+ );
2315
+ var decodeURIComponentSafe = (value) => {
2316
+ if (!utils_default.isString(value)) {
2317
+ return value;
2318
+ }
2319
+ try {
2320
+ return decodeURIComponent(value);
2321
+ } catch (error) {
2322
+ return value;
2323
+ }
2324
+ };
2325
+ var test = (fn, ...args) => {
2326
+ try {
2327
+ return !!fn(...args);
2328
+ } catch (e) {
2329
+ return false;
2330
+ }
2331
+ };
2332
+ var maybeWithAuthCredentials = (url) => {
2333
+ const protocolIndex = url.indexOf("://");
2334
+ let urlToCheck = url;
2335
+ if (protocolIndex !== -1) {
2336
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
2337
+ }
2338
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
2339
+ };
2340
+ var factory = (env) => {
2341
+ const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
2342
+ const { ReadableStream: ReadableStream2, TextEncoder } = globalObject;
2343
+ env = utils_default.merge.call(
2344
+ {
2345
+ skipUndefined: true
2346
+ },
2347
+ {
2348
+ Request: globalObject.Request,
2349
+ Response: globalObject.Response
2350
+ },
2351
+ env
2352
+ );
2353
+ const { fetch: envFetch, Request, Response } = env;
2354
+ const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
2355
+ const isRequestSupported = isFunction2(Request);
2356
+ const isResponseSupported = isFunction2(Response);
2357
+ if (!isFetchSupported) {
2358
+ return false;
2359
+ }
2360
+ const isReadableStreamSupported = isFetchSupported && isFunction2(ReadableStream2);
2361
+ const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
2362
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
2363
+ let duplexAccessed = false;
2364
+ const request = new Request(platform_default.origin, {
2365
+ body: new ReadableStream2(),
2366
+ method: "POST",
2367
+ get duplex() {
2368
+ duplexAccessed = true;
2369
+ return "half";
2370
+ }
2371
+ });
2372
+ const hasContentType = request.headers.has("Content-Type");
2373
+ if (request.body != null) {
2374
+ request.body.cancel();
2375
+ }
2376
+ return duplexAccessed && !hasContentType;
2377
+ });
2378
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
2379
+ const resolvers = {
2380
+ stream: supportsResponseStream && ((res) => res.body)
2381
+ };
2382
+ isFetchSupported && (() => {
2383
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
2384
+ !resolvers[type] && (resolvers[type] = (res, config) => {
2385
+ let method = res && res[type];
2386
+ if (method) {
2387
+ return method.call(res);
2388
+ }
2389
+ throw new AxiosError_default(
2390
+ `Response type '${type}' is not supported`,
2391
+ AxiosError_default.ERR_NOT_SUPPORT,
2392
+ config
2393
+ );
2394
+ });
2395
+ });
2396
+ })();
2397
+ const getBodyLength = async (body) => {
2398
+ if (body == null) {
2399
+ return 0;
2400
+ }
2401
+ if (utils_default.isBlob(body)) {
2402
+ return body.size;
2403
+ }
2404
+ if (utils_default.isSpecCompliantForm(body)) {
2405
+ const _request = new Request(platform_default.origin, {
2406
+ method: "POST",
2407
+ body
2408
+ });
2409
+ return (await _request.arrayBuffer()).byteLength;
2410
+ }
2411
+ if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
2412
+ return body.byteLength;
2413
+ }
2414
+ if (utils_default.isURLSearchParams(body)) {
2415
+ body = body + "";
2416
+ }
2417
+ if (utils_default.isString(body)) {
2418
+ return (await encodeText(body)).byteLength;
2419
+ }
2420
+ };
2421
+ const resolveBodyLength = async (headers, body) => {
2422
+ const length = utils_default.toFiniteNumber(headers.getContentLength());
2423
+ return length == null ? getBodyLength(body) : length;
2424
+ };
2425
+ return async (config) => {
2426
+ let {
2427
+ url,
2428
+ method,
2429
+ data,
2430
+ signal,
2431
+ cancelToken,
2432
+ timeout,
2433
+ onDownloadProgress,
2434
+ onUploadProgress,
2435
+ responseType,
2436
+ headers,
2437
+ withCredentials = "same-origin",
2438
+ fetchOptions,
2439
+ maxContentLength,
2440
+ maxBodyLength
2441
+ } = resolveConfig_default(config);
2442
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
2443
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
2444
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
2445
+ let _fetch = envFetch || fetch;
2446
+ responseType = responseType ? (responseType + "").toLowerCase() : "text";
2447
+ let composedSignal = composeSignals_default(
2448
+ [signal, cancelToken && cancelToken.toAbortSignal()],
2449
+ timeout
2450
+ );
2451
+ let request = null;
2452
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
2453
+ composedSignal.unsubscribe();
2454
+ });
2455
+ let requestContentLength;
2456
+ let pendingBodyError = null;
2457
+ const maxBodyLengthError = () => new AxiosError_default(
2458
+ "Request body larger than maxBodyLength limit",
2459
+ AxiosError_default.ERR_BAD_REQUEST,
2460
+ config,
2461
+ request
2462
+ );
2463
+ try {
2464
+ let auth = void 0;
2465
+ const configAuth = own2("auth");
2466
+ if (configAuth) {
2467
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
2468
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
2469
+ auth = {
2470
+ username,
2471
+ password
2472
+ };
2473
+ }
2474
+ if (maybeWithAuthCredentials(url)) {
2475
+ const parsedURL = new URL(url, platform_default.origin);
2476
+ if (!auth && (parsedURL.username || parsedURL.password)) {
2477
+ const urlUsername = decodeURIComponentSafe(parsedURL.username);
2478
+ const urlPassword = decodeURIComponentSafe(parsedURL.password);
2479
+ auth = {
2480
+ username: urlUsername,
2481
+ password: urlPassword
2482
+ };
2483
+ }
2484
+ if (parsedURL.username || parsedURL.password) {
2485
+ parsedURL.username = "";
2486
+ parsedURL.password = "";
2487
+ url = parsedURL.href;
2488
+ }
2489
+ }
2490
+ if (auth) {
2491
+ headers.delete("authorization");
2492
+ headers.set(
2493
+ "Authorization",
2494
+ "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
2495
+ );
2496
+ }
2497
+ if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
2498
+ const estimated = estimateDataURLDecodedBytes(url);
2499
+ if (estimated > maxContentLength) {
2500
+ throw new AxiosError_default(
2501
+ "maxContentLength size of " + maxContentLength + " exceeded",
2502
+ AxiosError_default.ERR_BAD_RESPONSE,
2503
+ config,
2504
+ request
2505
+ );
2506
+ }
2507
+ }
2508
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
2509
+ const outboundLength = await getBodyLength(data);
2510
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
2511
+ requestContentLength = outboundLength;
2512
+ if (outboundLength > maxBodyLength) {
2513
+ throw maxBodyLengthError();
2514
+ }
2515
+ }
2516
+ }
2517
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
2518
+ const trackRequestStream = (stream, onProgress, flush) => trackStream(
2519
+ stream,
2520
+ DEFAULT_CHUNK_SIZE,
2521
+ (loadedBytes) => {
2522
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
2523
+ throw pendingBodyError = maxBodyLengthError();
2524
+ }
2525
+ onProgress && onProgress(loadedBytes);
2526
+ },
2527
+ flush
2528
+ );
2529
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
2530
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
2531
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
2532
+ let _request = new Request(url, {
2533
+ method: "POST",
2534
+ body: data,
2535
+ duplex: "half"
2536
+ });
2537
+ let contentTypeHeader;
2538
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
2539
+ headers.setContentType(contentTypeHeader);
2540
+ }
2541
+ if (_request.body) {
2542
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(
2543
+ requestContentLength,
2544
+ progressEventReducer(asyncDecorator(onUploadProgress))
2545
+ ) || [];
2546
+ data = trackRequestStream(_request.body, onProgress, flush);
2547
+ }
2548
+ }
2549
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
2550
+ data = trackRequestStream(data);
2551
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
2552
+ throw new AxiosError_default(
2553
+ "Stream request bodies are not supported by the current fetch implementation",
2554
+ AxiosError_default.ERR_NOT_SUPPORT,
2555
+ config,
2556
+ request
2557
+ );
2558
+ }
2559
+ if (!utils_default.isString(withCredentials)) {
2560
+ withCredentials = withCredentials ? "include" : "omit";
2561
+ }
2562
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
2563
+ if (utils_default.isFormData(data)) {
2564
+ const contentType = headers.getContentType();
2565
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
2566
+ headers.delete("content-type");
2567
+ }
2568
+ }
2569
+ headers.set("User-Agent", "axios/" + VERSION, false);
2570
+ const resolvedOptions = {
2571
+ ...fetchOptions,
2572
+ signal: composedSignal,
2573
+ method: method.toUpperCase(),
2574
+ headers: toByteStringHeaderObject(headers.normalize()),
2575
+ body: data,
2576
+ duplex: "half",
2577
+ credentials: isCredentialsSupported ? withCredentials : void 0
2578
+ };
2579
+ request = isRequestSupported && new Request(url, resolvedOptions);
2580
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
2581
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
2582
+ if (hasMaxContentLength) {
2583
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
2584
+ if (declaredLength != null && declaredLength > maxContentLength) {
2585
+ throw new AxiosError_default(
2586
+ "maxContentLength size of " + maxContentLength + " exceeded",
2587
+ AxiosError_default.ERR_BAD_RESPONSE,
2588
+ config,
2589
+ request
2590
+ );
2591
+ }
2592
+ }
2593
+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
2594
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
2595
+ const options = {};
2596
+ ["status", "statusText", "headers"].forEach((prop) => {
2597
+ options[prop] = response[prop];
2598
+ });
2599
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
2600
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
2601
+ responseContentLength,
2602
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
2603
+ ) || [];
2604
+ let bytesRead = 0;
2605
+ const onChunkProgress = (loadedBytes) => {
2606
+ if (hasMaxContentLength) {
2607
+ bytesRead = loadedBytes;
2608
+ if (bytesRead > maxContentLength) {
2609
+ throw new AxiosError_default(
2610
+ "maxContentLength size of " + maxContentLength + " exceeded",
2611
+ AxiosError_default.ERR_BAD_RESPONSE,
2612
+ config,
2613
+ request
2614
+ );
2615
+ }
2616
+ }
2617
+ onProgress && onProgress(loadedBytes);
2618
+ };
2619
+ response = new Response(
2620
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
2621
+ flush && flush();
2622
+ unsubscribe && unsubscribe();
2623
+ }),
2624
+ options
2625
+ );
2626
+ }
2627
+ responseType = responseType || "text";
2628
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
2629
+ response,
2630
+ config
2631
+ );
2632
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
2633
+ let materializedSize;
2634
+ if (responseData != null) {
2635
+ if (typeof responseData.byteLength === "number") {
2636
+ materializedSize = responseData.byteLength;
2637
+ } else if (typeof responseData.size === "number") {
2638
+ materializedSize = responseData.size;
2639
+ } else if (typeof responseData === "string") {
2640
+ materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
2641
+ }
2642
+ }
2643
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
2644
+ throw new AxiosError_default(
2645
+ "maxContentLength size of " + maxContentLength + " exceeded",
2646
+ AxiosError_default.ERR_BAD_RESPONSE,
2647
+ config,
2648
+ request
2649
+ );
2650
+ }
2651
+ }
2652
+ !isStreamResponse && unsubscribe && unsubscribe();
2653
+ return await new Promise((resolve, reject) => {
2654
+ settle(resolve, reject, {
2655
+ data: responseData,
2656
+ headers: AxiosHeaders_default.from(response.headers),
2657
+ status: response.status,
2658
+ statusText: response.statusText,
2659
+ config,
2660
+ request
2661
+ });
2662
+ });
2663
+ } catch (err) {
2664
+ unsubscribe && unsubscribe();
2665
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
2666
+ const canceledError = composedSignal.reason;
2667
+ canceledError.config = config;
2668
+ request && (canceledError.request = request);
2669
+ err !== canceledError && (canceledError.cause = err);
2670
+ throw canceledError;
2671
+ }
2672
+ if (pendingBodyError) {
2673
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
2674
+ throw pendingBodyError;
2675
+ }
2676
+ if (err instanceof AxiosError_default) {
2677
+ request && !err.request && (err.request = request);
2678
+ throw err;
2679
+ }
2680
+ if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
2681
+ throw Object.assign(
2682
+ new AxiosError_default(
2683
+ "Network Error",
2684
+ AxiosError_default.ERR_NETWORK,
2685
+ config,
2686
+ request,
2687
+ err && err.response
2688
+ ),
2689
+ {
2690
+ cause: err.cause || err
2691
+ }
2692
+ );
2693
+ }
2694
+ throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
2695
+ }
2696
+ };
2697
+ };
2698
+ var seedCache = /* @__PURE__ */ new Map();
2699
+ var getFetch = (config) => {
2700
+ let env = config && config.env || {};
2701
+ const { fetch: fetch2, Request, Response } = env;
2702
+ const seeds = [Request, Response, fetch2];
2703
+ let len = seeds.length, i = len, seed, target, map = seedCache;
2704
+ while (i--) {
2705
+ seed = seeds[i];
2706
+ target = map.get(seed);
2707
+ target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
2708
+ map = target;
2709
+ }
2710
+ return target;
2711
+ };
2712
+ var adapter = getFetch();
2713
+
2714
+ // node_modules/axios/lib/adapters/adapters.js
2715
+ var knownAdapters = {
2716
+ http: null_default,
2717
+ xhr: xhr_default,
2718
+ fetch: {
2719
+ get: getFetch
2720
+ }
2721
+ };
2722
+ utils_default.forEach(knownAdapters, (fn, value) => {
2723
+ if (fn) {
2724
+ try {
2725
+ Object.defineProperty(fn, "name", { __proto__: null, value });
2726
+ } catch (e) {
2727
+ }
2728
+ Object.defineProperty(fn, "adapterName", { __proto__: null, value });
2729
+ }
2730
+ });
2731
+ var renderReason = (reason) => `- ${reason}`;
2732
+ var isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false;
2733
+ function getAdapter(adapters, config) {
2734
+ adapters = utils_default.isArray(adapters) ? adapters : [adapters];
2735
+ const { length } = adapters;
2736
+ let nameOrAdapter;
2737
+ let adapter2;
2738
+ const rejectedReasons = {};
2739
+ for (let i = 0; i < length; i++) {
2740
+ nameOrAdapter = adapters[i];
2741
+ let id;
2742
+ adapter2 = nameOrAdapter;
2743
+ if (!isResolvedHandle(nameOrAdapter)) {
2744
+ adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
2745
+ if (adapter2 === void 0) {
2746
+ throw new AxiosError_default(`Unknown adapter '${id}'`);
2747
+ }
2748
+ }
2749
+ if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
2750
+ break;
2751
+ }
2752
+ rejectedReasons[id || "#" + i] = adapter2;
2753
+ }
2754
+ if (!adapter2) {
2755
+ const reasons = Object.entries(rejectedReasons).map(
2756
+ ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
2757
+ );
2758
+ let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
2759
+ throw new AxiosError_default(
2760
+ `There is no suitable adapter to dispatch the request ` + s,
2761
+ "ERR_NOT_SUPPORT"
2762
+ );
2763
+ }
2764
+ return adapter2;
2765
+ }
2766
+ var adapters_default = {
2767
+ /**
2768
+ * Resolve an adapter from a list of adapter names or functions.
2769
+ * @type {Function}
2770
+ */
2771
+ getAdapter,
2772
+ /**
2773
+ * Exposes all known adapters
2774
+ * @type {Object<string, Function|Object>}
2775
+ */
2776
+ adapters: knownAdapters
2777
+ };
2778
+
2779
+ // node_modules/axios/lib/core/dispatchRequest.js
2780
+ function throwIfCancellationRequested(config) {
2781
+ if (config.cancelToken) {
2782
+ config.cancelToken.throwIfRequested();
2783
+ }
2784
+ if (config.signal && config.signal.aborted) {
2785
+ throw new CanceledError_default(null, config);
2786
+ }
2787
+ }
2788
+ function dispatchRequest(config) {
2789
+ throwIfCancellationRequested(config);
2790
+ config.headers = AxiosHeaders_default.from(config.headers);
2791
+ config.data = transformData.call(config, config.transformRequest);
2792
+ if (["post", "put", "patch"].indexOf(config.method) !== -1) {
2793
+ config.headers.setContentType("application/x-www-form-urlencoded", false);
2794
+ }
2795
+ const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
2796
+ return adapter2(config).then(
2797
+ function onAdapterResolution(response) {
2798
+ throwIfCancellationRequested(config);
2799
+ config.response = response;
2800
+ try {
2801
+ response.data = transformData.call(config, config.transformResponse, response);
2802
+ } finally {
2803
+ delete config.response;
2804
+ }
2805
+ response.headers = AxiosHeaders_default.from(response.headers);
2806
+ return response;
2807
+ },
2808
+ function onAdapterRejection(reason) {
2809
+ if (!isCancel(reason)) {
2810
+ throwIfCancellationRequested(config);
2811
+ if (reason && reason.response) {
2812
+ config.response = reason.response;
2813
+ try {
2814
+ reason.response.data = transformData.call(
2815
+ config,
2816
+ config.transformResponse,
2817
+ reason.response
2818
+ );
2819
+ } finally {
2820
+ delete config.response;
2821
+ }
2822
+ reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
2823
+ }
2824
+ }
2825
+ return Promise.reject(reason);
2826
+ }
2827
+ );
2828
+ }
2829
+
2830
+ // node_modules/axios/lib/helpers/validator.js
2831
+ var validators = {};
2832
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
2833
+ validators[type] = function validator(thing) {
2834
+ return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
2835
+ };
2836
+ });
2837
+ var deprecatedWarnings = {};
2838
+ validators.transitional = function transitional(validator, version, message) {
2839
+ function formatMessage(opt, desc) {
2840
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
2841
+ }
2842
+ return (value, opt, opts) => {
2843
+ if (validator === false) {
2844
+ throw new AxiosError_default(
2845
+ formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
2846
+ AxiosError_default.ERR_DEPRECATED
2847
+ );
2848
+ }
2849
+ if (version && !deprecatedWarnings[opt]) {
2850
+ deprecatedWarnings[opt] = true;
2851
+ console.warn(
2852
+ formatMessage(
2853
+ opt,
2854
+ " has been deprecated since v" + version + " and will be removed in the near future"
2855
+ )
2856
+ );
2857
+ }
2858
+ return validator ? validator(value, opt, opts) : true;
2859
+ };
2860
+ };
2861
+ validators.spelling = function spelling(correctSpelling) {
2862
+ return (value, opt) => {
2863
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
2864
+ return true;
2865
+ };
2866
+ };
2867
+ function assertOptions(options, schema, allowUnknown) {
2868
+ if (typeof options !== "object") {
2869
+ throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
2870
+ }
2871
+ const keys = Object.keys(options);
2872
+ let i = keys.length;
2873
+ while (i-- > 0) {
2874
+ const opt = keys[i];
2875
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
2876
+ if (validator) {
2877
+ const value = options[opt];
2878
+ const result = value === void 0 || validator(value, opt, options);
2879
+ if (result !== true) {
2880
+ throw new AxiosError_default(
2881
+ "option " + opt + " must be " + result,
2882
+ AxiosError_default.ERR_BAD_OPTION_VALUE
2883
+ );
2884
+ }
2885
+ continue;
2886
+ }
2887
+ if (allowUnknown !== true) {
2888
+ throw new AxiosError_default("Unknown option " + opt, AxiosError_default.ERR_BAD_OPTION);
2889
+ }
2890
+ }
2891
+ }
2892
+ var validator_default = {
2893
+ assertOptions,
2894
+ validators
2895
+ };
2896
+
2897
+ // node_modules/axios/lib/core/Axios.js
2898
+ var validators2 = validator_default.validators;
2899
+ var Axios = class {
2900
+ constructor(instanceConfig) {
2901
+ this.defaults = instanceConfig || {};
2902
+ this.interceptors = {
2903
+ request: new InterceptorManager_default(),
2904
+ response: new InterceptorManager_default()
2905
+ };
2906
+ }
2907
+ /**
2908
+ * Dispatch a request
2909
+ *
2910
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2911
+ * @param {?Object} config
2912
+ *
2913
+ * @returns {Promise} The Promise to be fulfilled
2914
+ */
2915
+ async request(configOrUrl, config) {
2916
+ try {
2917
+ return await this._request(configOrUrl, config);
2918
+ } catch (err) {
2919
+ if (err instanceof Error) {
2920
+ let dummy = {};
2921
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
2922
+ const stack = (() => {
2923
+ if (!dummy.stack) {
2924
+ return "";
2925
+ }
2926
+ const firstNewlineIndex = dummy.stack.indexOf("\n");
2927
+ return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
2928
+ })();
2929
+ try {
2930
+ if (!err.stack) {
2931
+ err.stack = stack;
2932
+ } else if (stack) {
2933
+ const firstNewlineIndex = stack.indexOf("\n");
2934
+ const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
2935
+ const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
2936
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
2937
+ err.stack += "\n" + stack;
2938
+ }
2939
+ }
2940
+ } catch (e) {
2941
+ }
2942
+ }
2943
+ throw err;
2944
+ }
2945
+ }
2946
+ _request(configOrUrl, config) {
2947
+ if (typeof configOrUrl === "string") {
2948
+ config = config || {};
2949
+ config.url = configOrUrl;
2950
+ } else {
2951
+ config = configOrUrl || {};
2952
+ }
2953
+ config = mergeConfig(this.defaults, config);
2954
+ const { transitional: transitional2, paramsSerializer, headers } = config;
2955
+ if (transitional2 !== void 0) {
2956
+ validator_default.assertOptions(
2957
+ transitional2,
2958
+ {
2959
+ silentJSONParsing: validators2.transitional(validators2.boolean),
2960
+ forcedJSONParsing: validators2.transitional(validators2.boolean),
2961
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
2962
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
2963
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
2964
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
2965
+ },
2966
+ false
2967
+ );
2968
+ }
2969
+ if (paramsSerializer != null) {
2970
+ if (utils_default.isFunction(paramsSerializer)) {
2971
+ config.paramsSerializer = {
2972
+ serialize: paramsSerializer
2973
+ };
2974
+ } else {
2975
+ validator_default.assertOptions(
2976
+ paramsSerializer,
2977
+ {
2978
+ encode: validators2.function,
2979
+ serialize: validators2.function
2980
+ },
2981
+ true
2982
+ );
2983
+ }
2984
+ }
2985
+ if (config.allowAbsoluteUrls !== void 0) {
2986
+ } else if (this.defaults.allowAbsoluteUrls !== void 0) {
2987
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
2988
+ } else {
2989
+ config.allowAbsoluteUrls = true;
2990
+ }
2991
+ validator_default.assertOptions(
2992
+ config,
2993
+ {
2994
+ baseUrl: validators2.spelling("baseURL"),
2995
+ withXsrfToken: validators2.spelling("withXSRFToken")
2996
+ },
2997
+ true
2998
+ );
2999
+ config.method = (config.method || this.defaults.method || "get").toLowerCase();
3000
+ let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
3001
+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
3002
+ delete headers[method];
3003
+ });
3004
+ config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
3005
+ const requestInterceptorChain = [];
3006
+ let synchronousRequestInterceptors = true;
3007
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
3008
+ if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
3009
+ return;
3010
+ }
3011
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
3012
+ const transitional3 = config.transitional || transitional_default;
3013
+ const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
3014
+ if (legacyInterceptorReqResOrdering) {
3015
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
3016
+ } else {
3017
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3018
+ }
3019
+ });
3020
+ const responseInterceptorChain = [];
3021
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
3022
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3023
+ });
3024
+ let promise;
3025
+ let i = 0;
3026
+ let len;
3027
+ if (!synchronousRequestInterceptors) {
3028
+ const chain = [dispatchRequest.bind(this), void 0];
3029
+ chain.unshift(...requestInterceptorChain);
3030
+ chain.push(...responseInterceptorChain);
3031
+ len = chain.length;
3032
+ promise = Promise.resolve(config);
3033
+ while (i < len) {
3034
+ promise = promise.then(chain[i++], chain[i++]);
3035
+ }
3036
+ return promise;
3037
+ }
3038
+ len = requestInterceptorChain.length;
3039
+ let newConfig = config;
3040
+ while (i < len) {
3041
+ const onFulfilled = requestInterceptorChain[i++];
3042
+ const onRejected = requestInterceptorChain[i++];
3043
+ try {
3044
+ newConfig = onFulfilled(newConfig);
3045
+ } catch (error) {
3046
+ onRejected.call(this, error);
3047
+ break;
3048
+ }
3049
+ }
3050
+ try {
3051
+ promise = dispatchRequest.call(this, newConfig);
3052
+ } catch (error) {
3053
+ return Promise.reject(error);
3054
+ }
3055
+ i = 0;
3056
+ len = responseInterceptorChain.length;
3057
+ while (i < len) {
3058
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
3059
+ }
3060
+ return promise;
3061
+ }
3062
+ getUri(config) {
3063
+ config = mergeConfig(this.defaults, config);
3064
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
3065
+ return buildURL(fullPath, config.params, config.paramsSerializer);
3066
+ }
3067
+ };
3068
+ utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
3069
+ Axios.prototype[method] = function(url, config) {
3070
+ return this.request(
3071
+ mergeConfig(config || {}, {
3072
+ method,
3073
+ url,
3074
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
3075
+ })
3076
+ );
3077
+ };
3078
+ });
3079
+ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
3080
+ function generateHTTPMethod(isForm) {
3081
+ return function httpMethod(url, data, config) {
3082
+ return this.request(
3083
+ mergeConfig(config || {}, {
3084
+ method,
3085
+ headers: isForm ? {
3086
+ "Content-Type": "multipart/form-data"
3087
+ } : {},
3088
+ url,
3089
+ data
3090
+ })
3091
+ );
3092
+ };
3093
+ }
3094
+ Axios.prototype[method] = generateHTTPMethod();
3095
+ if (method !== "query") {
3096
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
3097
+ }
3098
+ });
3099
+ var Axios_default = Axios;
3100
+
3101
+ // node_modules/axios/lib/cancel/CancelToken.js
3102
+ var CancelToken = class _CancelToken {
3103
+ constructor(executor) {
3104
+ if (typeof executor !== "function") {
3105
+ throw new TypeError("executor must be a function.");
3106
+ }
3107
+ let resolvePromise;
3108
+ this.promise = new Promise(function promiseExecutor(resolve) {
3109
+ resolvePromise = resolve;
3110
+ });
3111
+ const token = this;
3112
+ this.promise.then((cancel) => {
3113
+ if (!token._listeners) return;
3114
+ let i = token._listeners.length;
3115
+ while (i-- > 0) {
3116
+ token._listeners[i](cancel);
3117
+ }
3118
+ token._listeners = null;
3119
+ });
3120
+ this.promise.then = (onfulfilled) => {
3121
+ let _resolve;
3122
+ const promise = new Promise((resolve) => {
3123
+ token.subscribe(resolve);
3124
+ _resolve = resolve;
3125
+ }).then(onfulfilled);
3126
+ promise.cancel = function reject() {
3127
+ token.unsubscribe(_resolve);
3128
+ };
3129
+ return promise;
3130
+ };
3131
+ executor(function cancel(message, config, request) {
3132
+ if (token.reason) {
3133
+ return;
3134
+ }
3135
+ token.reason = new CanceledError_default(message, config, request);
3136
+ resolvePromise(token.reason);
3137
+ });
3138
+ }
3139
+ /**
3140
+ * Throws a `CanceledError` if cancellation has been requested.
3141
+ */
3142
+ throwIfRequested() {
3143
+ if (this.reason) {
3144
+ throw this.reason;
3145
+ }
3146
+ }
3147
+ /**
3148
+ * Subscribe to the cancel signal
3149
+ */
3150
+ subscribe(listener) {
3151
+ if (this.reason) {
3152
+ listener(this.reason);
3153
+ return;
3154
+ }
3155
+ if (this._listeners) {
3156
+ this._listeners.push(listener);
3157
+ } else {
3158
+ this._listeners = [listener];
3159
+ }
3160
+ }
3161
+ /**
3162
+ * Unsubscribe from the cancel signal
3163
+ */
3164
+ unsubscribe(listener) {
3165
+ if (!this._listeners) {
3166
+ return;
3167
+ }
3168
+ const index = this._listeners.indexOf(listener);
3169
+ if (index !== -1) {
3170
+ this._listeners.splice(index, 1);
3171
+ }
3172
+ }
3173
+ toAbortSignal() {
3174
+ const controller = new AbortController();
3175
+ const abort = (err) => {
3176
+ controller.abort(err);
3177
+ };
3178
+ this.subscribe(abort);
3179
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
3180
+ return controller.signal;
3181
+ }
3182
+ /**
3183
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3184
+ * cancels the `CancelToken`.
3185
+ */
3186
+ static source() {
3187
+ let cancel;
3188
+ const token = new _CancelToken(function executor(c) {
3189
+ cancel = c;
3190
+ });
3191
+ return {
3192
+ token,
3193
+ cancel
3194
+ };
3195
+ }
3196
+ };
3197
+ var CancelToken_default = CancelToken;
3198
+
3199
+ // node_modules/axios/lib/helpers/spread.js
3200
+ function spread(callback) {
3201
+ return function wrap(arr) {
3202
+ return callback.apply(null, arr);
3203
+ };
3204
+ }
3205
+
3206
+ // node_modules/axios/lib/helpers/isAxiosError.js
3207
+ function isAxiosError(payload) {
3208
+ return utils_default.isObject(payload) && payload.isAxiosError === true;
3209
+ }
3210
+
3211
+ // node_modules/axios/lib/helpers/HttpStatusCode.js
3212
+ var HttpStatusCode = {
3213
+ Continue: 100,
3214
+ SwitchingProtocols: 101,
3215
+ Processing: 102,
3216
+ EarlyHints: 103,
3217
+ Ok: 200,
3218
+ Created: 201,
3219
+ Accepted: 202,
3220
+ NonAuthoritativeInformation: 203,
3221
+ NoContent: 204,
3222
+ ResetContent: 205,
3223
+ PartialContent: 206,
3224
+ MultiStatus: 207,
3225
+ AlreadyReported: 208,
3226
+ ImUsed: 226,
3227
+ MultipleChoices: 300,
3228
+ MovedPermanently: 301,
3229
+ Found: 302,
3230
+ SeeOther: 303,
3231
+ NotModified: 304,
3232
+ UseProxy: 305,
3233
+ Unused: 306,
3234
+ TemporaryRedirect: 307,
3235
+ PermanentRedirect: 308,
3236
+ BadRequest: 400,
3237
+ Unauthorized: 401,
3238
+ PaymentRequired: 402,
3239
+ Forbidden: 403,
3240
+ NotFound: 404,
3241
+ MethodNotAllowed: 405,
3242
+ NotAcceptable: 406,
3243
+ ProxyAuthenticationRequired: 407,
3244
+ RequestTimeout: 408,
3245
+ Conflict: 409,
3246
+ Gone: 410,
3247
+ LengthRequired: 411,
3248
+ PreconditionFailed: 412,
3249
+ PayloadTooLarge: 413,
3250
+ UriTooLong: 414,
3251
+ UnsupportedMediaType: 415,
3252
+ RangeNotSatisfiable: 416,
3253
+ ExpectationFailed: 417,
3254
+ ImATeapot: 418,
3255
+ MisdirectedRequest: 421,
3256
+ UnprocessableEntity: 422,
3257
+ Locked: 423,
3258
+ FailedDependency: 424,
3259
+ TooEarly: 425,
3260
+ UpgradeRequired: 426,
3261
+ PreconditionRequired: 428,
3262
+ TooManyRequests: 429,
3263
+ RequestHeaderFieldsTooLarge: 431,
3264
+ UnavailableForLegalReasons: 451,
3265
+ InternalServerError: 500,
3266
+ NotImplemented: 501,
3267
+ BadGateway: 502,
3268
+ ServiceUnavailable: 503,
3269
+ GatewayTimeout: 504,
3270
+ HttpVersionNotSupported: 505,
3271
+ VariantAlsoNegotiates: 506,
3272
+ InsufficientStorage: 507,
3273
+ LoopDetected: 508,
3274
+ NotExtended: 510,
3275
+ NetworkAuthenticationRequired: 511,
3276
+ WebServerIsDown: 521,
3277
+ ConnectionTimedOut: 522,
3278
+ OriginIsUnreachable: 523,
3279
+ TimeoutOccurred: 524,
3280
+ SslHandshakeFailed: 525,
3281
+ InvalidSslCertificate: 526
3282
+ };
3283
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
3284
+ HttpStatusCode[value] = key;
3285
+ });
3286
+ var HttpStatusCode_default = HttpStatusCode;
3287
+
3288
+ // node_modules/axios/lib/axios.js
3289
+ function createInstance(defaultConfig) {
3290
+ const context = new Axios_default(defaultConfig);
3291
+ const instance = bind(Axios_default.prototype.request, context);
3292
+ utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
3293
+ utils_default.extend(instance, context, null, { allOwnKeys: true });
3294
+ instance.create = function create2(instanceConfig) {
3295
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
3296
+ };
3297
+ return instance;
3298
+ }
3299
+ var axios = createInstance(defaults_default);
3300
+ axios.Axios = Axios_default;
3301
+ axios.CanceledError = CanceledError_default;
3302
+ axios.CancelToken = CancelToken_default;
3303
+ axios.isCancel = isCancel;
3304
+ axios.VERSION = VERSION;
3305
+ axios.toFormData = toFormData_default;
3306
+ axios.AxiosError = AxiosError_default;
3307
+ axios.Cancel = axios.CanceledError;
3308
+ axios.all = function all(promises) {
3309
+ return Promise.all(promises);
3310
+ };
3311
+ axios.spread = spread;
3312
+ axios.isAxiosError = isAxiosError;
3313
+ axios.mergeConfig = mergeConfig;
3314
+ axios.AxiosHeaders = AxiosHeaders_default;
3315
+ axios.formToJSON = (thing) => formDataToJSON_default(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
3316
+ axios.getAdapter = adapters_default.getAdapter;
3317
+ axios.HttpStatusCode = HttpStatusCode_default;
3318
+ axios.default = axios;
3319
+ var axios_default = axios;
3320
+
3321
+ // node_modules/axios/index.js
3322
+ var {
3323
+ Axios: Axios2,
3324
+ AxiosError: AxiosError2,
3325
+ CanceledError: CanceledError2,
3326
+ isCancel: isCancel2,
3327
+ CancelToken: CancelToken2,
3328
+ VERSION: VERSION2,
3329
+ all: all2,
3330
+ Cancel,
3331
+ isAxiosError: isAxiosError2,
3332
+ spread: spread2,
3333
+ toFormData: toFormData2,
3334
+ AxiosHeaders: AxiosHeaders2,
3335
+ HttpStatusCode: HttpStatusCode2,
3336
+ formToJSON,
3337
+ getAdapter: getAdapter2,
3338
+ mergeConfig: mergeConfig2,
3339
+ create
3340
+ } = axios_default;
3341
+
3342
+ // src/index.js
27
3343
  var DEFAULT_TIMEOUT_MS = 3e4;
28
3344
  var TevrocError = class extends Error {
29
3345
  constructor(message, options = {}) {
@@ -43,11 +3359,10 @@ var Tevroc = (() => {
43
3359
  const baseUrl = options.baseUrl ?? options.url;
44
3360
  if (!baseUrl) throw new TypeError("createClient requires a baseUrl");
45
3361
  this.baseUrl = normalizeBaseUrl(baseUrl);
46
- this.fetch = options.fetch ?? globalThis.fetch;
47
- if (typeof this.fetch !== "function") throw new TypeError("No fetch implementation available");
48
3362
  this.timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
49
3363
  this.defaultHeaders = normalizeHeaders(options.headers);
50
3364
  this.token = options.token ?? null;
3365
+ this.http = options.axios ?? axios_default;
51
3366
  this.auth = createAuthApi(this);
52
3367
  this.entities = createEntityRegistry(this);
53
3368
  this.functions = createFunctionRegistry(this);
@@ -69,36 +3384,35 @@ var Tevroc = (() => {
69
3384
  }
70
3385
  async request(path, options = {}) {
71
3386
  const method = (options.method ?? "GET").toUpperCase();
72
- const headers = new Headers(this.defaultHeaders);
3387
+ const headers = { ...this.defaultHeaders };
73
3388
  const query = options.query ? toSearchParams(options.query) : "";
74
3389
  const url = `${this.baseUrl}${path.startsWith("/") ? path : `/${path}`}${query}`;
75
- const controller = new AbortController();
76
- const timeout = setTimeout(() => controller.abort(), options.timeoutMs ?? this.timeoutMs);
77
- if (this.token && options.auth !== false) headers.set("authorization", `Bearer ${this.token}`);
3390
+ if (this.token && options.auth !== false) headers.authorization = `Bearer ${this.token}`;
78
3391
  let body = options.body;
79
3392
  if (body !== void 0 && body !== null && isJsonBody(body)) {
80
- headers.set("content-type", "application/json");
3393
+ headers["content-type"] = "application/json";
81
3394
  body = JSON.stringify(body);
82
3395
  }
83
3396
  if (options.headers) {
84
3397
  for (const [key, value] of Object.entries(options.headers)) {
85
- if (value !== void 0 && value !== null) headers.set(key, String(value));
3398
+ if (value !== void 0 && value !== null) headers[key.toLowerCase()] = String(value);
86
3399
  }
87
3400
  }
88
3401
  try {
89
- const response = await this.fetch(url, {
3402
+ const response = await this.http.request({
3403
+ url,
90
3404
  method,
91
3405
  headers,
92
- body,
93
- signal: options.signal ?? controller.signal
3406
+ data: body,
3407
+ signal: options.signal,
3408
+ timeout: options.timeoutMs ?? this.timeoutMs,
3409
+ validateStatus: () => true
94
3410
  });
95
3411
  return await parseResponse(response, options.parseAs);
96
3412
  } catch (error) {
97
- if (error?.name === "AbortError") throw new TevrocError("Request timed out", { code: "timeout" });
3413
+ if (error?.code === "ECONNABORTED" || error?.code === "ERR_CANCELED") throw new TevrocError("Request timed out", { code: "timeout" });
98
3414
  if (error instanceof TevrocError) throw error;
99
3415
  throw new TevrocError(error?.message ?? "Network request failed", { code: "network_error", details: error });
100
- } finally {
101
- clearTimeout(timeout);
102
3416
  }
103
3417
  }
104
3418
  };
@@ -114,6 +3428,11 @@ var Tevroc = (() => {
114
3428
  if (result.token) client.setToken(result.token);
115
3429
  return result;
116
3430
  },
3431
+ async loginWithGoogle(input) {
3432
+ const result = await client.request("/auth/google", { method: "POST", body: input, auth: false });
3433
+ if (result.token) client.setToken(result.token);
3434
+ return result;
3435
+ },
117
3436
  async logout() {
118
3437
  const result = await client.request("/auth/logout", { method: "POST" });
119
3438
  client.clearToken();
@@ -270,12 +3589,12 @@ var Tevroc = (() => {
270
3589
  }
271
3590
  async function parseResponse(response, parseAs) {
272
3591
  if (parseAs === "response") return response;
273
- const contentType = response.headers.get("content-type") ?? "";
3592
+ const contentType = getHeader(response.headers, "content-type");
274
3593
  const isJson = contentType.includes("application/json");
275
- const data = isJson ? await response.json() : await response.text();
276
- if (!response.ok) {
3594
+ const data = response.data;
3595
+ if (response.status < 200 || response.status >= 300) {
277
3596
  const error = isJson && data?.error ? data.error : {};
278
- throw new TevrocError(error.message ?? response.statusText, {
3597
+ throw new TevrocError(error.message ?? response.statusText ?? "Request failed", {
279
3598
  status: response.status,
280
3599
  code: error.code ?? "api_error",
281
3600
  details: error.details ?? data,
@@ -284,6 +3603,12 @@ var Tevroc = (() => {
284
3603
  }
285
3604
  return data;
286
3605
  }
3606
+ function getHeader(headers, name) {
3607
+ if (!headers) return "";
3608
+ if (typeof headers.get === "function") return headers.get(name) ?? "";
3609
+ const value = headers[name] ?? headers[name.toLowerCase()];
3610
+ return Array.isArray(value) ? value.join(", ") : String(value ?? "");
3611
+ }
287
3612
  function toSearchParams(query) {
288
3613
  const params = new URLSearchParams();
289
3614
  for (const [key, value2] of Object.entries(query)) {
@@ -301,13 +3626,14 @@ var Tevroc = (() => {
301
3626
  return String(url).replace(/\/+$/, "");
302
3627
  }
303
3628
  function normalizeHeaders(headers = {}) {
304
- return Object.fromEntries(new Headers(headers).entries());
3629
+ if (typeof headers.entries === "function") return Object.fromEntries(Array.from(headers.entries(), ([key, value]) => [key.toLowerCase(), value]));
3630
+ return Object.fromEntries(Object.entries(headers).map(([key, value]) => [key.toLowerCase(), String(value)]));
305
3631
  }
306
3632
  function isJsonBody(body) {
307
- const isArrayBuffer = typeof ArrayBuffer !== "undefined" && body instanceof ArrayBuffer;
308
- const isBlob = typeof Blob !== "undefined" && body instanceof Blob;
309
- const isFormData = typeof FormData !== "undefined" && body instanceof FormData;
310
- return typeof body === "object" && !isArrayBuffer && !isBlob && !isFormData;
3633
+ const isArrayBuffer2 = typeof ArrayBuffer !== "undefined" && body instanceof ArrayBuffer;
3634
+ const isBlob2 = typeof Blob !== "undefined" && body instanceof Blob;
3635
+ const isFormData2 = typeof FormData !== "undefined" && body instanceof FormData;
3636
+ return typeof body === "object" && !isArrayBuffer2 && !isBlob2 && !isFormData2;
311
3637
  }
312
3638
  return __toCommonJS(index_exports);
313
3639
  })();