@ancon/wildcat-utils 1.24.2 → 1.25.1

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.
@@ -0,0 +1,1334 @@
1
+ function he(e, t) {
2
+ return function() {
3
+ return e.apply(t, arguments);
4
+ };
5
+ }
6
+ const { toString: Le } = Object.prototype, { getPrototypeOf: Z } = Object, I = ((e) => (t) => {
7
+ const n = Le.call(t);
8
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
9
+ })(/* @__PURE__ */ Object.create(null)), O = (e) => (e = e.toLowerCase(), (t) => I(t) === e), M = (e) => (t) => typeof t === e, { isArray: P } = Array, F = M("undefined");
10
+ function Ue(e) {
11
+ return e !== null && !F(e) && e.constructor !== null && !F(e.constructor) && b(e.constructor.isBuffer) && e.constructor.isBuffer(e);
12
+ }
13
+ const me = O("ArrayBuffer");
14
+ function je(e) {
15
+ let t;
16
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && me(e.buffer), t;
17
+ }
18
+ const ke = M("string"), b = M("function"), ye = M("number"), q = (e) => e !== null && typeof e == "object", He = (e) => e === !0 || e === !1, L = (e) => {
19
+ if (I(e) !== "object")
20
+ return !1;
21
+ const t = Z(e);
22
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
23
+ }, Ie = O("Date"), Me = O("File"), qe = O("Blob"), ze = O("FileList"), Je = (e) => q(e) && b(e.pipe), $e = (e) => {
24
+ let t;
25
+ return e && (typeof FormData == "function" && e instanceof FormData || b(e.append) && ((t = I(e)) === "formdata" || t === "object" && b(e.toString) && e.toString() === "[object FormData]"));
26
+ }, Ve = O("URLSearchParams"), We = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
27
+ function B(e, t, { allOwnKeys: n = !1 } = {}) {
28
+ if (e === null || typeof e > "u")
29
+ return;
30
+ let r, s;
31
+ if (typeof e != "object" && (e = [e]), P(e))
32
+ for (r = 0, s = e.length; r < s; r++)
33
+ t.call(null, e[r], r, e);
34
+ else {
35
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
36
+ let u;
37
+ for (r = 0; r < i; r++)
38
+ u = o[r], t.call(null, e[u], u, e);
39
+ }
40
+ }
41
+ function Ee(e, t) {
42
+ t = t.toLowerCase();
43
+ const n = Object.keys(e);
44
+ let r = n.length, s;
45
+ for (; r-- > 0; )
46
+ if (s = n[r], t === s.toLowerCase())
47
+ return s;
48
+ return null;
49
+ }
50
+ const we = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), be = (e) => !F(e) && e !== we;
51
+ function X() {
52
+ const { caseless: e } = be(this) && this || {}, t = {}, n = (r, s) => {
53
+ const o = e && Ee(t, s) || s;
54
+ L(t[o]) && L(r) ? t[o] = X(t[o], r) : L(r) ? t[o] = X({}, r) : P(r) ? t[o] = r.slice() : t[o] = r;
55
+ };
56
+ for (let r = 0, s = arguments.length; r < s; r++)
57
+ arguments[r] && B(arguments[r], n);
58
+ return t;
59
+ }
60
+ const Ke = (e, t, n, { allOwnKeys: r } = {}) => (B(t, (s, o) => {
61
+ n && b(s) ? e[o] = he(s, n) : e[o] = s;
62
+ }, { allOwnKeys: r }), e), Ge = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Xe = (e, t, n, r) => {
63
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
64
+ value: t.prototype
65
+ }), n && Object.assign(e.prototype, n);
66
+ }, ve = (e, t, n, r) => {
67
+ let s, o, i;
68
+ const u = {};
69
+ if (t = t || {}, e == null)
70
+ return t;
71
+ do {
72
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
73
+ i = s[o], (!r || r(i, e, t)) && !u[i] && (t[i] = e[i], u[i] = !0);
74
+ e = n !== !1 && Z(e);
75
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
76
+ return t;
77
+ }, Qe = (e, t, n) => {
78
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
79
+ const r = e.indexOf(t, n);
80
+ return r !== -1 && r === n;
81
+ }, Ye = (e) => {
82
+ if (!e)
83
+ return null;
84
+ if (P(e))
85
+ return e;
86
+ let t = e.length;
87
+ if (!ye(t))
88
+ return null;
89
+ const n = new Array(t);
90
+ for (; t-- > 0; )
91
+ n[t] = e[t];
92
+ return n;
93
+ }, Ze = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Z(Uint8Array)), et = (e, t) => {
94
+ const r = (e && e[Symbol.iterator]).call(e);
95
+ let s;
96
+ for (; (s = r.next()) && !s.done; ) {
97
+ const o = s.value;
98
+ t.call(e, o[0], o[1]);
99
+ }
100
+ }, tt = (e, t) => {
101
+ let n;
102
+ const r = [];
103
+ for (; (n = e.exec(t)) !== null; )
104
+ r.push(n);
105
+ return r;
106
+ }, nt = O("HTMLFormElement"), rt = (e) => e.toLowerCase().replace(
107
+ /[-_\s]([a-z\d])(\w*)/g,
108
+ function(n, r, s) {
109
+ return r.toUpperCase() + s;
110
+ }
111
+ ), se = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), st = O("RegExp"), Se = (e, t) => {
112
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
113
+ B(n, (s, o) => {
114
+ t(s, o, e) !== !1 && (r[o] = s);
115
+ }), Object.defineProperties(e, r);
116
+ }, ot = (e) => {
117
+ Se(e, (t, n) => {
118
+ if (b(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
119
+ return !1;
120
+ const r = e[n];
121
+ if (b(r)) {
122
+ if (t.enumerable = !1, "writable" in t) {
123
+ t.writable = !1;
124
+ return;
125
+ }
126
+ t.set || (t.set = () => {
127
+ throw Error("Can not rewrite read-only method '" + n + "'");
128
+ });
129
+ }
130
+ });
131
+ }, it = (e, t) => {
132
+ const n = {}, r = (s) => {
133
+ s.forEach((o) => {
134
+ n[o] = !0;
135
+ });
136
+ };
137
+ return P(e) ? r(e) : r(String(e).split(t)), n;
138
+ }, at = () => {
139
+ }, ct = (e, t) => (e = +e, Number.isFinite(e) ? e : t), V = "abcdefghijklmnopqrstuvwxyz", oe = "0123456789", Re = {
140
+ DIGIT: oe,
141
+ ALPHA: V,
142
+ ALPHA_DIGIT: V + V.toUpperCase() + oe
143
+ }, ut = (e = 16, t = Re.ALPHA_DIGIT) => {
144
+ let n = "";
145
+ const { length: r } = t;
146
+ for (; e--; )
147
+ n += t[Math.random() * r | 0];
148
+ return n;
149
+ };
150
+ function lt(e) {
151
+ return !!(e && b(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
152
+ }
153
+ const ft = (e) => {
154
+ const t = new Array(10), n = (r, s) => {
155
+ if (q(r)) {
156
+ if (t.indexOf(r) >= 0)
157
+ return;
158
+ if (!("toJSON" in r)) {
159
+ t[s] = r;
160
+ const o = P(r) ? [] : {};
161
+ return B(r, (i, u) => {
162
+ const d = n(i, s + 1);
163
+ !F(d) && (o[u] = d);
164
+ }), t[s] = void 0, o;
165
+ }
166
+ }
167
+ return r;
168
+ };
169
+ return n(e, 0);
170
+ }, dt = O("AsyncFunction"), pt = (e) => e && (q(e) || b(e)) && b(e.then) && b(e.catch), a = {
171
+ isArray: P,
172
+ isArrayBuffer: me,
173
+ isBuffer: Ue,
174
+ isFormData: $e,
175
+ isArrayBufferView: je,
176
+ isString: ke,
177
+ isNumber: ye,
178
+ isBoolean: He,
179
+ isObject: q,
180
+ isPlainObject: L,
181
+ isUndefined: F,
182
+ isDate: Ie,
183
+ isFile: Me,
184
+ isBlob: qe,
185
+ isRegExp: st,
186
+ isFunction: b,
187
+ isStream: Je,
188
+ isURLSearchParams: Ve,
189
+ isTypedArray: Ze,
190
+ isFileList: ze,
191
+ forEach: B,
192
+ merge: X,
193
+ extend: Ke,
194
+ trim: We,
195
+ stripBOM: Ge,
196
+ inherits: Xe,
197
+ toFlatObject: ve,
198
+ kindOf: I,
199
+ kindOfTest: O,
200
+ endsWith: Qe,
201
+ toArray: Ye,
202
+ forEachEntry: et,
203
+ matchAll: tt,
204
+ isHTMLForm: nt,
205
+ hasOwnProperty: se,
206
+ hasOwnProp: se,
207
+ reduceDescriptors: Se,
208
+ freezeMethods: ot,
209
+ toObjectSet: it,
210
+ toCamelCase: rt,
211
+ noop: at,
212
+ toFiniteNumber: ct,
213
+ findKey: Ee,
214
+ global: we,
215
+ isContextDefined: be,
216
+ ALPHABET: Re,
217
+ generateString: ut,
218
+ isSpecCompliantForm: lt,
219
+ toJSONObject: ft,
220
+ isAsyncFn: dt,
221
+ isThenable: pt
222
+ };
223
+ function m(e, t, n, r, s) {
224
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
225
+ }
226
+ a.inherits(m, Error, {
227
+ toJSON: function() {
228
+ return {
229
+ message: this.message,
230
+ name: this.name,
231
+ description: this.description,
232
+ number: this.number,
233
+ fileName: this.fileName,
234
+ lineNumber: this.lineNumber,
235
+ columnNumber: this.columnNumber,
236
+ stack: this.stack,
237
+ config: a.toJSONObject(this.config),
238
+ code: this.code,
239
+ status: this.response && this.response.status ? this.response.status : null
240
+ };
241
+ }
242
+ });
243
+ const Oe = m.prototype, Ae = {};
244
+ [
245
+ "ERR_BAD_OPTION_VALUE",
246
+ "ERR_BAD_OPTION",
247
+ "ECONNABORTED",
248
+ "ETIMEDOUT",
249
+ "ERR_NETWORK",
250
+ "ERR_FR_TOO_MANY_REDIRECTS",
251
+ "ERR_DEPRECATED",
252
+ "ERR_BAD_RESPONSE",
253
+ "ERR_BAD_REQUEST",
254
+ "ERR_CANCELED",
255
+ "ERR_NOT_SUPPORT",
256
+ "ERR_INVALID_URL"
257
+ ].forEach((e) => {
258
+ Ae[e] = { value: e };
259
+ });
260
+ Object.defineProperties(m, Ae);
261
+ Object.defineProperty(Oe, "isAxiosError", { value: !0 });
262
+ m.from = (e, t, n, r, s, o) => {
263
+ const i = Object.create(Oe);
264
+ return a.toFlatObject(e, i, function(d) {
265
+ return d !== Error.prototype;
266
+ }, (u) => u !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
267
+ };
268
+ const ht = null;
269
+ function v(e) {
270
+ return a.isPlainObject(e) || a.isArray(e);
271
+ }
272
+ function Te(e) {
273
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
274
+ }
275
+ function ie(e, t, n) {
276
+ return e ? e.concat(t).map(function(s, o) {
277
+ return s = Te(s), !n && o ? "[" + s + "]" : s;
278
+ }).join(n ? "." : "") : t;
279
+ }
280
+ function mt(e) {
281
+ return a.isArray(e) && !e.some(v);
282
+ }
283
+ const yt = a.toFlatObject(a, {}, null, function(t) {
284
+ return /^is[A-Z]/.test(t);
285
+ });
286
+ function z(e, t, n) {
287
+ if (!a.isObject(e))
288
+ throw new TypeError("target must be an object");
289
+ t = t || new FormData(), n = a.toFlatObject(n, {
290
+ metaTokens: !0,
291
+ dots: !1,
292
+ indexes: !1
293
+ }, !1, function(h, A) {
294
+ return !a.isUndefined(A[h]);
295
+ });
296
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
297
+ if (!a.isFunction(s))
298
+ throw new TypeError("visitor must be a function");
299
+ function c(f) {
300
+ if (f === null)
301
+ return "";
302
+ if (a.isDate(f))
303
+ return f.toISOString();
304
+ if (!d && a.isBlob(f))
305
+ throw new m("Blob is not supported. Use a Buffer instead.");
306
+ return a.isArrayBuffer(f) || a.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
307
+ }
308
+ function l(f, h, A) {
309
+ let S = f;
310
+ if (f && !A && typeof f == "object") {
311
+ if (a.endsWith(h, "{}"))
312
+ h = r ? h : h.slice(0, -2), f = JSON.stringify(f);
313
+ else if (a.isArray(f) && mt(f) || (a.isFileList(f) || a.endsWith(h, "[]")) && (S = a.toArray(f)))
314
+ return h = Te(h), S.forEach(function(_, _e) {
315
+ !(a.isUndefined(_) || _ === null) && t.append(
316
+ i === !0 ? ie([h], _e, o) : i === null ? h : h + "[]",
317
+ c(_)
318
+ );
319
+ }), !1;
320
+ }
321
+ return v(f) ? !0 : (t.append(ie(A, h, o), c(f)), !1);
322
+ }
323
+ const p = [], w = Object.assign(yt, {
324
+ defaultVisitor: l,
325
+ convertValue: c,
326
+ isVisitable: v
327
+ });
328
+ function y(f, h) {
329
+ if (!a.isUndefined(f)) {
330
+ if (p.indexOf(f) !== -1)
331
+ throw Error("Circular reference detected in " + h.join("."));
332
+ p.push(f), a.forEach(f, function(S, x) {
333
+ (!(a.isUndefined(S) || S === null) && s.call(
334
+ t,
335
+ S,
336
+ a.isString(x) ? x.trim() : x,
337
+ h,
338
+ w
339
+ )) === !0 && y(S, h ? h.concat(x) : [x]);
340
+ }), p.pop();
341
+ }
342
+ }
343
+ if (!a.isObject(e))
344
+ throw new TypeError("data must be an object");
345
+ return y(e), t;
346
+ }
347
+ function ae(e) {
348
+ const t = {
349
+ "!": "%21",
350
+ "'": "%27",
351
+ "(": "%28",
352
+ ")": "%29",
353
+ "~": "%7E",
354
+ "%20": "+",
355
+ "%00": "\0"
356
+ };
357
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
358
+ return t[r];
359
+ });
360
+ }
361
+ function ee(e, t) {
362
+ this._pairs = [], e && z(e, this, t);
363
+ }
364
+ const Ne = ee.prototype;
365
+ Ne.append = function(t, n) {
366
+ this._pairs.push([t, n]);
367
+ };
368
+ Ne.toString = function(t) {
369
+ const n = t ? function(r) {
370
+ return t.call(this, r, ae);
371
+ } : ae;
372
+ return this._pairs.map(function(s) {
373
+ return n(s[0]) + "=" + n(s[1]);
374
+ }, "").join("&");
375
+ };
376
+ function Et(e) {
377
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
378
+ }
379
+ function xe(e, t, n) {
380
+ if (!t)
381
+ return e;
382
+ const r = n && n.encode || Et, s = n && n.serialize;
383
+ let o;
384
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ee(t, n).toString(r), o) {
385
+ const i = e.indexOf("#");
386
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
387
+ }
388
+ return e;
389
+ }
390
+ class wt {
391
+ constructor() {
392
+ this.handlers = [];
393
+ }
394
+ use(t, n, r) {
395
+ return this.handlers.push({
396
+ fulfilled: t,
397
+ rejected: n,
398
+ synchronous: r ? r.synchronous : !1,
399
+ runWhen: r ? r.runWhen : null
400
+ }), this.handlers.length - 1;
401
+ }
402
+ eject(t) {
403
+ this.handlers[t] && (this.handlers[t] = null);
404
+ }
405
+ clear() {
406
+ this.handlers && (this.handlers = []);
407
+ }
408
+ forEach(t) {
409
+ a.forEach(this.handlers, function(r) {
410
+ r !== null && t(r);
411
+ });
412
+ }
413
+ }
414
+ const ce = wt, ge = {
415
+ silentJSONParsing: !0,
416
+ forcedJSONParsing: !0,
417
+ clarifyTimeoutError: !1
418
+ }, bt = typeof URLSearchParams < "u" ? URLSearchParams : ee, St = typeof FormData < "u" ? FormData : null, Rt = typeof Blob < "u" ? Blob : null, Ot = (() => {
419
+ let e;
420
+ return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
421
+ })(), At = (() => typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), R = {
422
+ isBrowser: !0,
423
+ classes: {
424
+ URLSearchParams: bt,
425
+ FormData: St,
426
+ Blob: Rt
427
+ },
428
+ isStandardBrowserEnv: Ot,
429
+ isStandardBrowserWebWorkerEnv: At,
430
+ protocols: ["http", "https", "file", "blob", "url", "data"]
431
+ };
432
+ function Tt(e, t) {
433
+ return z(e, new R.classes.URLSearchParams(), Object.assign({
434
+ visitor: function(n, r, s, o) {
435
+ return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
436
+ }
437
+ }, t));
438
+ }
439
+ function Nt(e) {
440
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
441
+ }
442
+ function xt(e) {
443
+ const t = {}, n = Object.keys(e);
444
+ let r;
445
+ const s = n.length;
446
+ let o;
447
+ for (r = 0; r < s; r++)
448
+ o = n[r], t[o] = e[o];
449
+ return t;
450
+ }
451
+ function Pe(e) {
452
+ function t(n, r, s, o) {
453
+ let i = n[o++];
454
+ const u = Number.isFinite(+i), d = o >= n.length;
455
+ return i = !i && a.isArray(s) ? s.length : i, d ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !u) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = xt(s[i])), !u);
456
+ }
457
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
458
+ const n = {};
459
+ return a.forEachEntry(e, (r, s) => {
460
+ t(Nt(r), s, n, 0);
461
+ }), n;
462
+ }
463
+ return null;
464
+ }
465
+ const gt = {
466
+ "Content-Type": void 0
467
+ };
468
+ function Pt(e, t, n) {
469
+ if (a.isString(e))
470
+ try {
471
+ return (t || JSON.parse)(e), a.trim(e);
472
+ } catch (r) {
473
+ if (r.name !== "SyntaxError")
474
+ throw r;
475
+ }
476
+ return (n || JSON.stringify)(e);
477
+ }
478
+ const J = {
479
+ transitional: ge,
480
+ adapter: ["xhr", "http"],
481
+ transformRequest: [function(t, n) {
482
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
483
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
484
+ return s && s ? JSON.stringify(Pe(t)) : t;
485
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
486
+ return t;
487
+ if (a.isArrayBufferView(t))
488
+ return t.buffer;
489
+ if (a.isURLSearchParams(t))
490
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
491
+ let u;
492
+ if (o) {
493
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
494
+ return Tt(t, this.formSerializer).toString();
495
+ if ((u = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
496
+ const d = this.env && this.env.FormData;
497
+ return z(
498
+ u ? { "files[]": t } : t,
499
+ d && new d(),
500
+ this.formSerializer
501
+ );
502
+ }
503
+ }
504
+ return o || s ? (n.setContentType("application/json", !1), Pt(t)) : t;
505
+ }],
506
+ transformResponse: [function(t) {
507
+ const n = this.transitional || J.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
508
+ if (t && a.isString(t) && (r && !this.responseType || s)) {
509
+ const i = !(n && n.silentJSONParsing) && s;
510
+ try {
511
+ return JSON.parse(t);
512
+ } catch (u) {
513
+ if (i)
514
+ throw u.name === "SyntaxError" ? m.from(u, m.ERR_BAD_RESPONSE, this, null, this.response) : u;
515
+ }
516
+ }
517
+ return t;
518
+ }],
519
+ timeout: 0,
520
+ xsrfCookieName: "XSRF-TOKEN",
521
+ xsrfHeaderName: "X-XSRF-TOKEN",
522
+ maxContentLength: -1,
523
+ maxBodyLength: -1,
524
+ env: {
525
+ FormData: R.classes.FormData,
526
+ Blob: R.classes.Blob
527
+ },
528
+ validateStatus: function(t) {
529
+ return t >= 200 && t < 300;
530
+ },
531
+ headers: {
532
+ common: {
533
+ Accept: "application/json, text/plain, */*"
534
+ }
535
+ }
536
+ };
537
+ a.forEach(["delete", "get", "head"], function(t) {
538
+ J.headers[t] = {};
539
+ });
540
+ a.forEach(["post", "put", "patch"], function(t) {
541
+ J.headers[t] = a.merge(gt);
542
+ });
543
+ const te = J, Ct = a.toObjectSet([
544
+ "age",
545
+ "authorization",
546
+ "content-length",
547
+ "content-type",
548
+ "etag",
549
+ "expires",
550
+ "from",
551
+ "host",
552
+ "if-modified-since",
553
+ "if-unmodified-since",
554
+ "last-modified",
555
+ "location",
556
+ "max-forwards",
557
+ "proxy-authorization",
558
+ "referer",
559
+ "retry-after",
560
+ "user-agent"
561
+ ]), Ft = (e) => {
562
+ const t = {};
563
+ let n, r, s;
564
+ return e && e.split(`
565
+ `).forEach(function(i) {
566
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Ct[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
567
+ }), t;
568
+ }, ue = Symbol("internals");
569
+ function C(e) {
570
+ return e && String(e).trim().toLowerCase();
571
+ }
572
+ function U(e) {
573
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(U) : String(e);
574
+ }
575
+ function Bt(e) {
576
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
577
+ let r;
578
+ for (; r = n.exec(e); )
579
+ t[r[1]] = r[2];
580
+ return t;
581
+ }
582
+ const Dt = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
583
+ function W(e, t, n, r, s) {
584
+ if (a.isFunction(r))
585
+ return r.call(this, t, n);
586
+ if (s && (t = n), !!a.isString(t)) {
587
+ if (a.isString(r))
588
+ return t.indexOf(r) !== -1;
589
+ if (a.isRegExp(r))
590
+ return r.test(t);
591
+ }
592
+ }
593
+ function _t(e) {
594
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
595
+ }
596
+ function Lt(e, t) {
597
+ const n = a.toCamelCase(" " + t);
598
+ ["get", "set", "has"].forEach((r) => {
599
+ Object.defineProperty(e, r + n, {
600
+ value: function(s, o, i) {
601
+ return this[r].call(this, t, s, o, i);
602
+ },
603
+ configurable: !0
604
+ });
605
+ });
606
+ }
607
+ class $ {
608
+ constructor(t) {
609
+ t && this.set(t);
610
+ }
611
+ set(t, n, r) {
612
+ const s = this;
613
+ function o(u, d, c) {
614
+ const l = C(d);
615
+ if (!l)
616
+ throw new Error("header name must be a non-empty string");
617
+ const p = a.findKey(s, l);
618
+ (!p || s[p] === void 0 || c === !0 || c === void 0 && s[p] !== !1) && (s[p || d] = U(u));
619
+ }
620
+ const i = (u, d) => a.forEach(u, (c, l) => o(c, l, d));
621
+ return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !Dt(t) ? i(Ft(t), n) : t != null && o(n, t, r), this;
622
+ }
623
+ get(t, n) {
624
+ if (t = C(t), t) {
625
+ const r = a.findKey(this, t);
626
+ if (r) {
627
+ const s = this[r];
628
+ if (!n)
629
+ return s;
630
+ if (n === !0)
631
+ return Bt(s);
632
+ if (a.isFunction(n))
633
+ return n.call(this, s, r);
634
+ if (a.isRegExp(n))
635
+ return n.exec(s);
636
+ throw new TypeError("parser must be boolean|regexp|function");
637
+ }
638
+ }
639
+ }
640
+ has(t, n) {
641
+ if (t = C(t), t) {
642
+ const r = a.findKey(this, t);
643
+ return !!(r && this[r] !== void 0 && (!n || W(this, this[r], r, n)));
644
+ }
645
+ return !1;
646
+ }
647
+ delete(t, n) {
648
+ const r = this;
649
+ let s = !1;
650
+ function o(i) {
651
+ if (i = C(i), i) {
652
+ const u = a.findKey(r, i);
653
+ u && (!n || W(r, r[u], u, n)) && (delete r[u], s = !0);
654
+ }
655
+ }
656
+ return a.isArray(t) ? t.forEach(o) : o(t), s;
657
+ }
658
+ clear(t) {
659
+ const n = Object.keys(this);
660
+ let r = n.length, s = !1;
661
+ for (; r--; ) {
662
+ const o = n[r];
663
+ (!t || W(this, this[o], o, t, !0)) && (delete this[o], s = !0);
664
+ }
665
+ return s;
666
+ }
667
+ normalize(t) {
668
+ const n = this, r = {};
669
+ return a.forEach(this, (s, o) => {
670
+ const i = a.findKey(r, o);
671
+ if (i) {
672
+ n[i] = U(s), delete n[o];
673
+ return;
674
+ }
675
+ const u = t ? _t(o) : String(o).trim();
676
+ u !== o && delete n[o], n[u] = U(s), r[u] = !0;
677
+ }), this;
678
+ }
679
+ concat(...t) {
680
+ return this.constructor.concat(this, ...t);
681
+ }
682
+ toJSON(t) {
683
+ const n = /* @__PURE__ */ Object.create(null);
684
+ return a.forEach(this, (r, s) => {
685
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
686
+ }), n;
687
+ }
688
+ [Symbol.iterator]() {
689
+ return Object.entries(this.toJSON())[Symbol.iterator]();
690
+ }
691
+ toString() {
692
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
693
+ `);
694
+ }
695
+ get [Symbol.toStringTag]() {
696
+ return "AxiosHeaders";
697
+ }
698
+ static from(t) {
699
+ return t instanceof this ? t : new this(t);
700
+ }
701
+ static concat(t, ...n) {
702
+ const r = new this(t);
703
+ return n.forEach((s) => r.set(s)), r;
704
+ }
705
+ static accessor(t) {
706
+ const r = (this[ue] = this[ue] = {
707
+ accessors: {}
708
+ }).accessors, s = this.prototype;
709
+ function o(i) {
710
+ const u = C(i);
711
+ r[u] || (Lt(s, i), r[u] = !0);
712
+ }
713
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
714
+ }
715
+ }
716
+ $.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
717
+ a.freezeMethods($.prototype);
718
+ a.freezeMethods($);
719
+ const T = $;
720
+ function K(e, t) {
721
+ const n = this || te, r = t || n, s = T.from(r.headers);
722
+ let o = r.data;
723
+ return a.forEach(e, function(u) {
724
+ o = u.call(n, o, s.normalize(), t ? t.status : void 0);
725
+ }), s.normalize(), o;
726
+ }
727
+ function Ce(e) {
728
+ return !!(e && e.__CANCEL__);
729
+ }
730
+ function D(e, t, n) {
731
+ m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
732
+ }
733
+ a.inherits(D, m, {
734
+ __CANCEL__: !0
735
+ });
736
+ function Ut(e, t, n) {
737
+ const r = n.config.validateStatus;
738
+ !n.status || !r || r(n.status) ? e(n) : t(new m(
739
+ "Request failed with status code " + n.status,
740
+ [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
741
+ n.config,
742
+ n.request,
743
+ n
744
+ ));
745
+ }
746
+ const jt = R.isStandardBrowserEnv ? function() {
747
+ return {
748
+ write: function(n, r, s, o, i, u) {
749
+ const d = [];
750
+ d.push(n + "=" + encodeURIComponent(r)), a.isNumber(s) && d.push("expires=" + new Date(s).toGMTString()), a.isString(o) && d.push("path=" + o), a.isString(i) && d.push("domain=" + i), u === !0 && d.push("secure"), document.cookie = d.join("; ");
751
+ },
752
+ read: function(n) {
753
+ const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
754
+ return r ? decodeURIComponent(r[3]) : null;
755
+ },
756
+ remove: function(n) {
757
+ this.write(n, "", Date.now() - 864e5);
758
+ }
759
+ };
760
+ }() : function() {
761
+ return {
762
+ write: function() {
763
+ },
764
+ read: function() {
765
+ return null;
766
+ },
767
+ remove: function() {
768
+ }
769
+ };
770
+ }();
771
+ function kt(e) {
772
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
773
+ }
774
+ function Ht(e, t) {
775
+ return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
776
+ }
777
+ function Fe(e, t) {
778
+ return e && !kt(t) ? Ht(e, t) : t;
779
+ }
780
+ const It = R.isStandardBrowserEnv ? function() {
781
+ const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
782
+ let r;
783
+ function s(o) {
784
+ let i = o;
785
+ return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
786
+ href: n.href,
787
+ protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
788
+ host: n.host,
789
+ search: n.search ? n.search.replace(/^\?/, "") : "",
790
+ hash: n.hash ? n.hash.replace(/^#/, "") : "",
791
+ hostname: n.hostname,
792
+ port: n.port,
793
+ pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
794
+ };
795
+ }
796
+ return r = s(window.location.href), function(i) {
797
+ const u = a.isString(i) ? s(i) : i;
798
+ return u.protocol === r.protocol && u.host === r.host;
799
+ };
800
+ }() : function() {
801
+ return function() {
802
+ return !0;
803
+ };
804
+ }();
805
+ function Mt(e) {
806
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
807
+ return t && t[1] || "";
808
+ }
809
+ function qt(e, t) {
810
+ e = e || 10;
811
+ const n = new Array(e), r = new Array(e);
812
+ let s = 0, o = 0, i;
813
+ return t = t !== void 0 ? t : 1e3, function(d) {
814
+ const c = Date.now(), l = r[o];
815
+ i || (i = c), n[s] = d, r[s] = c;
816
+ let p = o, w = 0;
817
+ for (; p !== s; )
818
+ w += n[p++], p = p % e;
819
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), c - i < t)
820
+ return;
821
+ const y = l && c - l;
822
+ return y ? Math.round(w * 1e3 / y) : void 0;
823
+ };
824
+ }
825
+ function le(e, t) {
826
+ let n = 0;
827
+ const r = qt(50, 250);
828
+ return (s) => {
829
+ const o = s.loaded, i = s.lengthComputable ? s.total : void 0, u = o - n, d = r(u), c = o <= i;
830
+ n = o;
831
+ const l = {
832
+ loaded: o,
833
+ total: i,
834
+ progress: i ? o / i : void 0,
835
+ bytes: u,
836
+ rate: d || void 0,
837
+ estimated: d && i && c ? (i - o) / d : void 0,
838
+ event: s
839
+ };
840
+ l[t ? "download" : "upload"] = !0, e(l);
841
+ };
842
+ }
843
+ const zt = typeof XMLHttpRequest < "u", Jt = zt && function(e) {
844
+ return new Promise(function(n, r) {
845
+ let s = e.data;
846
+ const o = T.from(e.headers).normalize(), i = e.responseType;
847
+ let u;
848
+ function d() {
849
+ e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener("abort", u);
850
+ }
851
+ a.isFormData(s) && (R.isStandardBrowserEnv || R.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1));
852
+ let c = new XMLHttpRequest();
853
+ if (e.auth) {
854
+ const y = e.auth.username || "", f = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
855
+ o.set("Authorization", "Basic " + btoa(y + ":" + f));
856
+ }
857
+ const l = Fe(e.baseURL, e.url);
858
+ c.open(e.method.toUpperCase(), xe(l, e.params, e.paramsSerializer), !0), c.timeout = e.timeout;
859
+ function p() {
860
+ if (!c)
861
+ return;
862
+ const y = T.from(
863
+ "getAllResponseHeaders" in c && c.getAllResponseHeaders()
864
+ ), h = {
865
+ data: !i || i === "text" || i === "json" ? c.responseText : c.response,
866
+ status: c.status,
867
+ statusText: c.statusText,
868
+ headers: y,
869
+ config: e,
870
+ request: c
871
+ };
872
+ Ut(function(S) {
873
+ n(S), d();
874
+ }, function(S) {
875
+ r(S), d();
876
+ }, h), c = null;
877
+ }
878
+ if ("onloadend" in c ? c.onloadend = p : c.onreadystatechange = function() {
879
+ !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(p);
880
+ }, c.onabort = function() {
881
+ c && (r(new m("Request aborted", m.ECONNABORTED, e, c)), c = null);
882
+ }, c.onerror = function() {
883
+ r(new m("Network Error", m.ERR_NETWORK, e, c)), c = null;
884
+ }, c.ontimeout = function() {
885
+ let f = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
886
+ const h = e.transitional || ge;
887
+ e.timeoutErrorMessage && (f = e.timeoutErrorMessage), r(new m(
888
+ f,
889
+ h.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
890
+ e,
891
+ c
892
+ )), c = null;
893
+ }, R.isStandardBrowserEnv) {
894
+ const y = (e.withCredentials || It(l)) && e.xsrfCookieName && jt.read(e.xsrfCookieName);
895
+ y && o.set(e.xsrfHeaderName, y);
896
+ }
897
+ s === void 0 && o.setContentType(null), "setRequestHeader" in c && a.forEach(o.toJSON(), function(f, h) {
898
+ c.setRequestHeader(h, f);
899
+ }), a.isUndefined(e.withCredentials) || (c.withCredentials = !!e.withCredentials), i && i !== "json" && (c.responseType = e.responseType), typeof e.onDownloadProgress == "function" && c.addEventListener("progress", le(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", le(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (y) => {
900
+ c && (r(!y || y.type ? new D(null, e, c) : y), c.abort(), c = null);
901
+ }, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
902
+ const w = Mt(l);
903
+ if (w && R.protocols.indexOf(w) === -1) {
904
+ r(new m("Unsupported protocol " + w + ":", m.ERR_BAD_REQUEST, e));
905
+ return;
906
+ }
907
+ c.send(s || null);
908
+ });
909
+ }, j = {
910
+ http: ht,
911
+ xhr: Jt
912
+ };
913
+ a.forEach(j, (e, t) => {
914
+ if (e) {
915
+ try {
916
+ Object.defineProperty(e, "name", { value: t });
917
+ } catch {
918
+ }
919
+ Object.defineProperty(e, "adapterName", { value: t });
920
+ }
921
+ });
922
+ const $t = {
923
+ getAdapter: (e) => {
924
+ e = a.isArray(e) ? e : [e];
925
+ const { length: t } = e;
926
+ let n, r;
927
+ for (let s = 0; s < t && (n = e[s], !(r = a.isString(n) ? j[n.toLowerCase()] : n)); s++)
928
+ ;
929
+ if (!r)
930
+ throw r === !1 ? new m(
931
+ `Adapter ${n} is not supported by the environment`,
932
+ "ERR_NOT_SUPPORT"
933
+ ) : new Error(
934
+ a.hasOwnProp(j, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
935
+ );
936
+ if (!a.isFunction(r))
937
+ throw new TypeError("adapter is not a function");
938
+ return r;
939
+ },
940
+ adapters: j
941
+ };
942
+ function G(e) {
943
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
944
+ throw new D(null, e);
945
+ }
946
+ function fe(e) {
947
+ return G(e), e.headers = T.from(e.headers), e.data = K.call(
948
+ e,
949
+ e.transformRequest
950
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), $t.getAdapter(e.adapter || te.adapter)(e).then(function(r) {
951
+ return G(e), r.data = K.call(
952
+ e,
953
+ e.transformResponse,
954
+ r
955
+ ), r.headers = T.from(r.headers), r;
956
+ }, function(r) {
957
+ return Ce(r) || (G(e), r && r.response && (r.response.data = K.call(
958
+ e,
959
+ e.transformResponse,
960
+ r.response
961
+ ), r.response.headers = T.from(r.response.headers))), Promise.reject(r);
962
+ });
963
+ }
964
+ const de = (e) => e instanceof T ? e.toJSON() : e;
965
+ function g(e, t) {
966
+ t = t || {};
967
+ const n = {};
968
+ function r(c, l, p) {
969
+ return a.isPlainObject(c) && a.isPlainObject(l) ? a.merge.call({ caseless: p }, c, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
970
+ }
971
+ function s(c, l, p) {
972
+ if (a.isUndefined(l)) {
973
+ if (!a.isUndefined(c))
974
+ return r(void 0, c, p);
975
+ } else
976
+ return r(c, l, p);
977
+ }
978
+ function o(c, l) {
979
+ if (!a.isUndefined(l))
980
+ return r(void 0, l);
981
+ }
982
+ function i(c, l) {
983
+ if (a.isUndefined(l)) {
984
+ if (!a.isUndefined(c))
985
+ return r(void 0, c);
986
+ } else
987
+ return r(void 0, l);
988
+ }
989
+ function u(c, l, p) {
990
+ if (p in t)
991
+ return r(c, l);
992
+ if (p in e)
993
+ return r(void 0, c);
994
+ }
995
+ const d = {
996
+ url: o,
997
+ method: o,
998
+ data: o,
999
+ baseURL: i,
1000
+ transformRequest: i,
1001
+ transformResponse: i,
1002
+ paramsSerializer: i,
1003
+ timeout: i,
1004
+ timeoutMessage: i,
1005
+ withCredentials: i,
1006
+ adapter: i,
1007
+ responseType: i,
1008
+ xsrfCookieName: i,
1009
+ xsrfHeaderName: i,
1010
+ onUploadProgress: i,
1011
+ onDownloadProgress: i,
1012
+ decompress: i,
1013
+ maxContentLength: i,
1014
+ maxBodyLength: i,
1015
+ beforeRedirect: i,
1016
+ transport: i,
1017
+ httpAgent: i,
1018
+ httpsAgent: i,
1019
+ cancelToken: i,
1020
+ socketPath: i,
1021
+ responseEncoding: i,
1022
+ validateStatus: u,
1023
+ headers: (c, l) => s(de(c), de(l), !0)
1024
+ };
1025
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
1026
+ const p = d[l] || s, w = p(e[l], t[l], l);
1027
+ a.isUndefined(w) && p !== u || (n[l] = w);
1028
+ }), n;
1029
+ }
1030
+ const Be = "1.4.0", ne = {};
1031
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1032
+ ne[e] = function(r) {
1033
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1034
+ };
1035
+ });
1036
+ const pe = {};
1037
+ ne.transitional = function(t, n, r) {
1038
+ function s(o, i) {
1039
+ return "[Axios v" + Be + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1040
+ }
1041
+ return (o, i, u) => {
1042
+ if (t === !1)
1043
+ throw new m(
1044
+ s(i, " has been removed" + (n ? " in " + n : "")),
1045
+ m.ERR_DEPRECATED
1046
+ );
1047
+ return n && !pe[i] && (pe[i] = !0, console.warn(
1048
+ s(
1049
+ i,
1050
+ " has been deprecated since v" + n + " and will be removed in the near future"
1051
+ )
1052
+ )), t ? t(o, i, u) : !0;
1053
+ };
1054
+ };
1055
+ function Vt(e, t, n) {
1056
+ if (typeof e != "object")
1057
+ throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1058
+ const r = Object.keys(e);
1059
+ let s = r.length;
1060
+ for (; s-- > 0; ) {
1061
+ const o = r[s], i = t[o];
1062
+ if (i) {
1063
+ const u = e[o], d = u === void 0 || i(u, o, e);
1064
+ if (d !== !0)
1065
+ throw new m("option " + o + " must be " + d, m.ERR_BAD_OPTION_VALUE);
1066
+ continue;
1067
+ }
1068
+ if (n !== !0)
1069
+ throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1070
+ }
1071
+ }
1072
+ const Q = {
1073
+ assertOptions: Vt,
1074
+ validators: ne
1075
+ }, N = Q.validators;
1076
+ class H {
1077
+ constructor(t) {
1078
+ this.defaults = t, this.interceptors = {
1079
+ request: new ce(),
1080
+ response: new ce()
1081
+ };
1082
+ }
1083
+ request(t, n) {
1084
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = g(this.defaults, n);
1085
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1086
+ r !== void 0 && Q.assertOptions(r, {
1087
+ silentJSONParsing: N.transitional(N.boolean),
1088
+ forcedJSONParsing: N.transitional(N.boolean),
1089
+ clarifyTimeoutError: N.transitional(N.boolean)
1090
+ }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1091
+ serialize: s
1092
+ } : Q.assertOptions(s, {
1093
+ encode: N.function,
1094
+ serialize: N.function
1095
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1096
+ let i;
1097
+ i = o && a.merge(
1098
+ o.common,
1099
+ o[n.method]
1100
+ ), i && a.forEach(
1101
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1102
+ (f) => {
1103
+ delete o[f];
1104
+ }
1105
+ ), n.headers = T.concat(i, o);
1106
+ const u = [];
1107
+ let d = !0;
1108
+ this.interceptors.request.forEach(function(h) {
1109
+ typeof h.runWhen == "function" && h.runWhen(n) === !1 || (d = d && h.synchronous, u.unshift(h.fulfilled, h.rejected));
1110
+ });
1111
+ const c = [];
1112
+ this.interceptors.response.forEach(function(h) {
1113
+ c.push(h.fulfilled, h.rejected);
1114
+ });
1115
+ let l, p = 0, w;
1116
+ if (!d) {
1117
+ const f = [fe.bind(this), void 0];
1118
+ for (f.unshift.apply(f, u), f.push.apply(f, c), w = f.length, l = Promise.resolve(n); p < w; )
1119
+ l = l.then(f[p++], f[p++]);
1120
+ return l;
1121
+ }
1122
+ w = u.length;
1123
+ let y = n;
1124
+ for (p = 0; p < w; ) {
1125
+ const f = u[p++], h = u[p++];
1126
+ try {
1127
+ y = f(y);
1128
+ } catch (A) {
1129
+ h.call(this, A);
1130
+ break;
1131
+ }
1132
+ }
1133
+ try {
1134
+ l = fe.call(this, y);
1135
+ } catch (f) {
1136
+ return Promise.reject(f);
1137
+ }
1138
+ for (p = 0, w = c.length; p < w; )
1139
+ l = l.then(c[p++], c[p++]);
1140
+ return l;
1141
+ }
1142
+ getUri(t) {
1143
+ t = g(this.defaults, t);
1144
+ const n = Fe(t.baseURL, t.url);
1145
+ return xe(n, t.params, t.paramsSerializer);
1146
+ }
1147
+ }
1148
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1149
+ H.prototype[t] = function(n, r) {
1150
+ return this.request(g(r || {}, {
1151
+ method: t,
1152
+ url: n,
1153
+ data: (r || {}).data
1154
+ }));
1155
+ };
1156
+ });
1157
+ a.forEach(["post", "put", "patch"], function(t) {
1158
+ function n(r) {
1159
+ return function(o, i, u) {
1160
+ return this.request(g(u || {}, {
1161
+ method: t,
1162
+ headers: r ? {
1163
+ "Content-Type": "multipart/form-data"
1164
+ } : {},
1165
+ url: o,
1166
+ data: i
1167
+ }));
1168
+ };
1169
+ }
1170
+ H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
1171
+ });
1172
+ const k = H;
1173
+ class re {
1174
+ constructor(t) {
1175
+ if (typeof t != "function")
1176
+ throw new TypeError("executor must be a function.");
1177
+ let n;
1178
+ this.promise = new Promise(function(o) {
1179
+ n = o;
1180
+ });
1181
+ const r = this;
1182
+ this.promise.then((s) => {
1183
+ if (!r._listeners)
1184
+ return;
1185
+ let o = r._listeners.length;
1186
+ for (; o-- > 0; )
1187
+ r._listeners[o](s);
1188
+ r._listeners = null;
1189
+ }), this.promise.then = (s) => {
1190
+ let o;
1191
+ const i = new Promise((u) => {
1192
+ r.subscribe(u), o = u;
1193
+ }).then(s);
1194
+ return i.cancel = function() {
1195
+ r.unsubscribe(o);
1196
+ }, i;
1197
+ }, t(function(o, i, u) {
1198
+ r.reason || (r.reason = new D(o, i, u), n(r.reason));
1199
+ });
1200
+ }
1201
+ throwIfRequested() {
1202
+ if (this.reason)
1203
+ throw this.reason;
1204
+ }
1205
+ subscribe(t) {
1206
+ if (this.reason) {
1207
+ t(this.reason);
1208
+ return;
1209
+ }
1210
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1211
+ }
1212
+ unsubscribe(t) {
1213
+ if (!this._listeners)
1214
+ return;
1215
+ const n = this._listeners.indexOf(t);
1216
+ n !== -1 && this._listeners.splice(n, 1);
1217
+ }
1218
+ static source() {
1219
+ let t;
1220
+ return {
1221
+ token: new re(function(s) {
1222
+ t = s;
1223
+ }),
1224
+ cancel: t
1225
+ };
1226
+ }
1227
+ }
1228
+ const Wt = re;
1229
+ function Kt(e) {
1230
+ return function(n) {
1231
+ return e.apply(null, n);
1232
+ };
1233
+ }
1234
+ function Gt(e) {
1235
+ return a.isObject(e) && e.isAxiosError === !0;
1236
+ }
1237
+ const Y = {
1238
+ Continue: 100,
1239
+ SwitchingProtocols: 101,
1240
+ Processing: 102,
1241
+ EarlyHints: 103,
1242
+ Ok: 200,
1243
+ Created: 201,
1244
+ Accepted: 202,
1245
+ NonAuthoritativeInformation: 203,
1246
+ NoContent: 204,
1247
+ ResetContent: 205,
1248
+ PartialContent: 206,
1249
+ MultiStatus: 207,
1250
+ AlreadyReported: 208,
1251
+ ImUsed: 226,
1252
+ MultipleChoices: 300,
1253
+ MovedPermanently: 301,
1254
+ Found: 302,
1255
+ SeeOther: 303,
1256
+ NotModified: 304,
1257
+ UseProxy: 305,
1258
+ Unused: 306,
1259
+ TemporaryRedirect: 307,
1260
+ PermanentRedirect: 308,
1261
+ BadRequest: 400,
1262
+ Unauthorized: 401,
1263
+ PaymentRequired: 402,
1264
+ Forbidden: 403,
1265
+ NotFound: 404,
1266
+ MethodNotAllowed: 405,
1267
+ NotAcceptable: 406,
1268
+ ProxyAuthenticationRequired: 407,
1269
+ RequestTimeout: 408,
1270
+ Conflict: 409,
1271
+ Gone: 410,
1272
+ LengthRequired: 411,
1273
+ PreconditionFailed: 412,
1274
+ PayloadTooLarge: 413,
1275
+ UriTooLong: 414,
1276
+ UnsupportedMediaType: 415,
1277
+ RangeNotSatisfiable: 416,
1278
+ ExpectationFailed: 417,
1279
+ ImATeapot: 418,
1280
+ MisdirectedRequest: 421,
1281
+ UnprocessableEntity: 422,
1282
+ Locked: 423,
1283
+ FailedDependency: 424,
1284
+ TooEarly: 425,
1285
+ UpgradeRequired: 426,
1286
+ PreconditionRequired: 428,
1287
+ TooManyRequests: 429,
1288
+ RequestHeaderFieldsTooLarge: 431,
1289
+ UnavailableForLegalReasons: 451,
1290
+ InternalServerError: 500,
1291
+ NotImplemented: 501,
1292
+ BadGateway: 502,
1293
+ ServiceUnavailable: 503,
1294
+ GatewayTimeout: 504,
1295
+ HttpVersionNotSupported: 505,
1296
+ VariantAlsoNegotiates: 506,
1297
+ InsufficientStorage: 507,
1298
+ LoopDetected: 508,
1299
+ NotExtended: 510,
1300
+ NetworkAuthenticationRequired: 511
1301
+ };
1302
+ Object.entries(Y).forEach(([e, t]) => {
1303
+ Y[t] = e;
1304
+ });
1305
+ const Xt = Y;
1306
+ function De(e) {
1307
+ const t = new k(e), n = he(k.prototype.request, t);
1308
+ return a.extend(n, k.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1309
+ return De(g(e, s));
1310
+ }, n;
1311
+ }
1312
+ const E = De(te);
1313
+ E.Axios = k;
1314
+ E.CanceledError = D;
1315
+ E.CancelToken = Wt;
1316
+ E.isCancel = Ce;
1317
+ E.VERSION = Be;
1318
+ E.toFormData = z;
1319
+ E.AxiosError = m;
1320
+ E.Cancel = E.CanceledError;
1321
+ E.all = function(t) {
1322
+ return Promise.all(t);
1323
+ };
1324
+ E.spread = Kt;
1325
+ E.isAxiosError = Gt;
1326
+ E.mergeConfig = g;
1327
+ E.AxiosHeaders = T;
1328
+ E.formToJSON = (e) => Pe(a.isHTMLForm(e) ? new FormData(e) : e);
1329
+ E.HttpStatusCode = Xt;
1330
+ E.default = E;
1331
+ const vt = E;
1332
+ export {
1333
+ vt as a
1334
+ };