l-min-components 1.8.475 → 1.8.476

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.
@@ -1,1801 +0,0 @@
1
- if (typeof te > "u")
2
- var te = window;
3
- var Qn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof te < "u" ? te : typeof self < "u" ? self : {};
4
- function Zn(e) {
5
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
- }
7
- function Yn(e) {
8
- if (e.__esModule)
9
- return e;
10
- var t = e.default;
11
- if (typeof t == "function") {
12
- var n = function r() {
13
- return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
14
- };
15
- n.prototype = t.prototype;
16
- } else
17
- n = {};
18
- return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
19
- var s = Object.getOwnPropertyDescriptor(e, r);
20
- Object.defineProperty(n, r, s.get ? s : {
21
- enumerable: !0,
22
- get: function() {
23
- return e[r];
24
- }
25
- });
26
- }), n;
27
- }
28
- function Ke(e, t) {
29
- return function() {
30
- return e.apply(t, arguments);
31
- };
32
- }
33
- const { toString: wt } = Object.prototype, { getPrototypeOf: Ee } = Object, { iterator: se, toStringTag: Xe } = Symbol, oe = ((e) => (t) => {
34
- const n = wt.call(t);
35
- return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
36
- })(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => oe(t) === e), ie = (e) => (t) => typeof t === e, { isArray: I } = Array, H = ie("undefined");
37
- function J(e) {
38
- return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
39
- }
40
- const Ge = N("ArrayBuffer");
41
- function Et(e) {
42
- let t;
43
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ge(e.buffer), t;
44
- }
45
- const gt = ie("string"), T = ie("function"), Qe = ie("number"), V = (e) => e !== null && typeof e == "object", St = (e) => e === !0 || e === !1, Q = (e) => {
46
- if (oe(e) !== "object")
47
- return !1;
48
- const t = Ee(e);
49
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Xe in e) && !(se in e);
50
- }, Rt = (e) => {
51
- if (!V(e) || J(e))
52
- return !1;
53
- try {
54
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
55
- } catch {
56
- return !1;
57
- }
58
- }, Ot = N("Date"), Tt = N("File"), At = N("Blob"), xt = N("FileList"), Ct = (e) => V(e) && T(e.pipe), Pt = (e) => {
59
- let t;
60
- return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = oe(e)) === "formdata" || // detect form-data instance
61
- t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
62
- }, Nt = N("URLSearchParams"), [Ft, _t, Ut, Lt] = ["ReadableStream", "Request", "Response", "Headers"].map(N), Bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
63
- function W(e, t, { allOwnKeys: n = !1 } = {}) {
64
- if (e === null || typeof e > "u")
65
- return;
66
- let r, s;
67
- if (typeof e != "object" && (e = [e]), I(e))
68
- for (r = 0, s = e.length; r < s; r++)
69
- t.call(null, e[r], r, e);
70
- else {
71
- if (J(e))
72
- return;
73
- const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
74
- let c;
75
- for (r = 0; r < o; r++)
76
- c = i[r], t.call(null, e[c], c, e);
77
- }
78
- }
79
- function Ze(e, t) {
80
- if (J(e))
81
- return null;
82
- t = t.toLowerCase();
83
- const n = Object.keys(e);
84
- let r = n.length, s;
85
- for (; r-- > 0; )
86
- if (s = n[r], t === s.toLowerCase())
87
- return s;
88
- return null;
89
- }
90
- const k = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : te)(), Ye = (e) => !H(e) && e !== k;
91
- function me() {
92
- const { caseless: e, skipUndefined: t } = Ye(this) && this || {}, n = {}, r = (s, i) => {
93
- const o = e && Ze(n, i) || i;
94
- Q(n[o]) && Q(s) ? n[o] = me(n[o], s) : Q(s) ? n[o] = me({}, s) : I(s) ? n[o] = s.slice() : (!t || !H(s)) && (n[o] = s);
95
- };
96
- for (let s = 0, i = arguments.length; s < i; s++)
97
- arguments[s] && W(arguments[s], r);
98
- return n;
99
- }
100
- const Dt = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (s, i) => {
101
- n && T(s) ? e[i] = Ke(s, n) : e[i] = s;
102
- }, { allOwnKeys: r }), e), kt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), jt = (e, t, n, r) => {
103
- e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
104
- value: t.prototype
105
- }), n && Object.assign(e.prototype, n);
106
- }, qt = (e, t, n, r) => {
107
- let s, i, o;
108
- const c = {};
109
- if (t = t || {}, e == null)
110
- return t;
111
- do {
112
- for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
113
- o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
114
- e = n !== !1 && Ee(e);
115
- } while (e && (!n || n(e, t)) && e !== Object.prototype);
116
- return t;
117
- }, Ht = (e, t, n) => {
118
- e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
119
- const r = e.indexOf(t, n);
120
- return r !== -1 && r === n;
121
- }, It = (e) => {
122
- if (!e)
123
- return null;
124
- if (I(e))
125
- return e;
126
- let t = e.length;
127
- if (!Qe(t))
128
- return null;
129
- const n = new Array(t);
130
- for (; t-- > 0; )
131
- n[t] = e[t];
132
- return n;
133
- }, Mt = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ee(Uint8Array)), $t = (e, t) => {
134
- const r = (e && e[se]).call(e);
135
- let s;
136
- for (; (s = r.next()) && !s.done; ) {
137
- const i = s.value;
138
- t.call(e, i[0], i[1]);
139
- }
140
- }, zt = (e, t) => {
141
- let n;
142
- const r = [];
143
- for (; (n = e.exec(t)) !== null; )
144
- r.push(n);
145
- return r;
146
- }, Jt = N("HTMLFormElement"), Vt = (e) => e.toLowerCase().replace(
147
- /[-_\s]([a-z\d])(\w*)/g,
148
- function(n, r, s) {
149
- return r.toUpperCase() + s;
150
- }
151
- ), Ue = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Wt = N("RegExp"), et = (e, t) => {
152
- const n = Object.getOwnPropertyDescriptors(e), r = {};
153
- W(n, (s, i) => {
154
- let o;
155
- (o = t(s, i, e)) !== !1 && (r[i] = o || s);
156
- }), Object.defineProperties(e, r);
157
- }, vt = (e) => {
158
- et(e, (t, n) => {
159
- if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
160
- return !1;
161
- const r = e[n];
162
- if (T(r)) {
163
- if (t.enumerable = !1, "writable" in t) {
164
- t.writable = !1;
165
- return;
166
- }
167
- t.set || (t.set = () => {
168
- throw Error("Can not rewrite read-only method '" + n + "'");
169
- });
170
- }
171
- });
172
- }, Kt = (e, t) => {
173
- const n = {}, r = (s) => {
174
- s.forEach((i) => {
175
- n[i] = !0;
176
- });
177
- };
178
- return I(e) ? r(e) : r(String(e).split(t)), n;
179
- }, Xt = () => {
180
- }, Gt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
181
- function Qt(e) {
182
- return !!(e && T(e.append) && e[Xe] === "FormData" && e[se]);
183
- }
184
- const Zt = (e) => {
185
- const t = new Array(10), n = (r, s) => {
186
- if (V(r)) {
187
- if (t.indexOf(r) >= 0)
188
- return;
189
- if (J(r))
190
- return r;
191
- if (!("toJSON" in r)) {
192
- t[s] = r;
193
- const i = I(r) ? [] : {};
194
- return W(r, (o, c) => {
195
- const d = n(o, s + 1);
196
- !H(d) && (i[c] = d);
197
- }), t[s] = void 0, i;
198
- }
199
- }
200
- return r;
201
- };
202
- return n(e, 0);
203
- }, Yt = N("AsyncFunction"), en = (e) => e && (V(e) || T(e)) && T(e.then) && T(e.catch), tt = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener("message", ({ source: s, data: i }) => {
204
- s === k && i === n && r.length && r.shift()();
205
- }, !1), (s) => {
206
- r.push(s), k.postMessage(n, "*");
207
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
208
- typeof setImmediate == "function",
209
- T(k.postMessage)
210
- ), tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || tt, nn = (e) => e != null && T(e[se]), a = {
211
- isArray: I,
212
- isArrayBuffer: Ge,
213
- isBuffer: J,
214
- isFormData: Pt,
215
- isArrayBufferView: Et,
216
- isString: gt,
217
- isNumber: Qe,
218
- isBoolean: St,
219
- isObject: V,
220
- isPlainObject: Q,
221
- isEmptyObject: Rt,
222
- isReadableStream: Ft,
223
- isRequest: _t,
224
- isResponse: Ut,
225
- isHeaders: Lt,
226
- isUndefined: H,
227
- isDate: Ot,
228
- isFile: Tt,
229
- isBlob: At,
230
- isRegExp: Wt,
231
- isFunction: T,
232
- isStream: Ct,
233
- isURLSearchParams: Nt,
234
- isTypedArray: Mt,
235
- isFileList: xt,
236
- forEach: W,
237
- merge: me,
238
- extend: Dt,
239
- trim: Bt,
240
- stripBOM: kt,
241
- inherits: jt,
242
- toFlatObject: qt,
243
- kindOf: oe,
244
- kindOfTest: N,
245
- endsWith: Ht,
246
- toArray: It,
247
- forEachEntry: $t,
248
- matchAll: zt,
249
- isHTMLForm: Jt,
250
- hasOwnProperty: Ue,
251
- hasOwnProp: Ue,
252
- // an alias to avoid ESLint no-prototype-builtins detection
253
- reduceDescriptors: et,
254
- freezeMethods: vt,
255
- toObjectSet: Kt,
256
- toCamelCase: Vt,
257
- noop: Xt,
258
- toFiniteNumber: Gt,
259
- findKey: Ze,
260
- global: k,
261
- isContextDefined: Ye,
262
- isSpecCompliantForm: Qt,
263
- toJSONObject: Zt,
264
- isAsyncFn: Yt,
265
- isThenable: en,
266
- setImmediate: tt,
267
- asap: tn,
268
- isIterable: nn
269
- };
270
- function y(e, t, n, r, s) {
271
- 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, this.status = s.status ? s.status : null);
272
- }
273
- a.inherits(y, Error, {
274
- toJSON: function() {
275
- return {
276
- // Standard
277
- message: this.message,
278
- name: this.name,
279
- // Microsoft
280
- description: this.description,
281
- number: this.number,
282
- // Mozilla
283
- fileName: this.fileName,
284
- lineNumber: this.lineNumber,
285
- columnNumber: this.columnNumber,
286
- stack: this.stack,
287
- // Axios
288
- config: a.toJSONObject(this.config),
289
- code: this.code,
290
- status: this.status
291
- };
292
- }
293
- });
294
- const nt = y.prototype, rt = {};
295
- [
296
- "ERR_BAD_OPTION_VALUE",
297
- "ERR_BAD_OPTION",
298
- "ECONNABORTED",
299
- "ETIMEDOUT",
300
- "ERR_NETWORK",
301
- "ERR_FR_TOO_MANY_REDIRECTS",
302
- "ERR_DEPRECATED",
303
- "ERR_BAD_RESPONSE",
304
- "ERR_BAD_REQUEST",
305
- "ERR_CANCELED",
306
- "ERR_NOT_SUPPORT",
307
- "ERR_INVALID_URL"
308
- // eslint-disable-next-line func-names
309
- ].forEach((e) => {
310
- rt[e] = { value: e };
311
- });
312
- Object.defineProperties(y, rt);
313
- Object.defineProperty(nt, "isAxiosError", { value: !0 });
314
- y.from = (e, t, n, r, s, i) => {
315
- const o = Object.create(nt);
316
- a.toFlatObject(e, o, function(u) {
317
- return u !== Error.prototype;
318
- }, (f) => f !== "isAxiosError");
319
- const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
320
- return y.call(o, c, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
321
- };
322
- const rn = null;
323
- function ye(e) {
324
- return a.isPlainObject(e) || a.isArray(e);
325
- }
326
- function st(e) {
327
- return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
328
- }
329
- function Le(e, t, n) {
330
- return e ? e.concat(t).map(function(s, i) {
331
- return s = st(s), !n && i ? "[" + s + "]" : s;
332
- }).join(n ? "." : "") : t;
333
- }
334
- function sn(e) {
335
- return a.isArray(e) && !e.some(ye);
336
- }
337
- const on = a.toFlatObject(a, {}, null, function(t) {
338
- return /^is[A-Z]/.test(t);
339
- });
340
- function ae(e, t, n) {
341
- if (!a.isObject(e))
342
- throw new TypeError("target must be an object");
343
- t = t || new FormData(), n = a.toFlatObject(n, {
344
- metaTokens: !0,
345
- dots: !1,
346
- indexes: !1
347
- }, !1, function(m, p) {
348
- return !a.isUndefined(p[m]);
349
- });
350
- const r = n.metaTokens, s = n.visitor || u, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
351
- if (!a.isFunction(s))
352
- throw new TypeError("visitor must be a function");
353
- function f(l) {
354
- if (l === null)
355
- return "";
356
- if (a.isDate(l))
357
- return l.toISOString();
358
- if (a.isBoolean(l))
359
- return l.toString();
360
- if (!d && a.isBlob(l))
361
- throw new y("Blob is not supported. Use a Buffer instead.");
362
- return a.isArrayBuffer(l) || a.isTypedArray(l) ? d && typeof Blob == "function" ? new Blob([l]) : Buffer.from(l) : l;
363
- }
364
- function u(l, m, p) {
365
- let E = l;
366
- if (l && !p && typeof l == "object") {
367
- if (a.endsWith(m, "{}"))
368
- m = r ? m : m.slice(0, -2), l = JSON.stringify(l);
369
- else if (a.isArray(l) && sn(l) || (a.isFileList(l) || a.endsWith(m, "[]")) && (E = a.toArray(l)))
370
- return m = st(m), E.forEach(function(g, O) {
371
- !(a.isUndefined(g) || g === null) && t.append(
372
- // eslint-disable-next-line no-nested-ternary
373
- o === !0 ? Le([m], O, i) : o === null ? m : m + "[]",
374
- f(g)
375
- );
376
- }), !1;
377
- }
378
- return ye(l) ? !0 : (t.append(Le(p, m, i), f(l)), !1);
379
- }
380
- const h = [], b = Object.assign(on, {
381
- defaultVisitor: u,
382
- convertValue: f,
383
- isVisitable: ye
384
- });
385
- function S(l, m) {
386
- if (!a.isUndefined(l)) {
387
- if (h.indexOf(l) !== -1)
388
- throw Error("Circular reference detected in " + m.join("."));
389
- h.push(l), a.forEach(l, function(E, A) {
390
- (!(a.isUndefined(E) || E === null) && s.call(
391
- t,
392
- E,
393
- a.isString(A) ? A.trim() : A,
394
- m,
395
- b
396
- )) === !0 && S(E, m ? m.concat(A) : [A]);
397
- }), h.pop();
398
- }
399
- }
400
- if (!a.isObject(e))
401
- throw new TypeError("data must be an object");
402
- return S(e), t;
403
- }
404
- function Be(e) {
405
- const t = {
406
- "!": "%21",
407
- "'": "%27",
408
- "(": "%28",
409
- ")": "%29",
410
- "~": "%7E",
411
- "%20": "+",
412
- "%00": "\0"
413
- };
414
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
415
- return t[r];
416
- });
417
- }
418
- function ge(e, t) {
419
- this._pairs = [], e && ae(e, this, t);
420
- }
421
- const ot = ge.prototype;
422
- ot.append = function(t, n) {
423
- this._pairs.push([t, n]);
424
- };
425
- ot.toString = function(t) {
426
- const n = t ? function(r) {
427
- return t.call(this, r, Be);
428
- } : Be;
429
- return this._pairs.map(function(s) {
430
- return n(s[0]) + "=" + n(s[1]);
431
- }, "").join("&");
432
- };
433
- function an(e) {
434
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
435
- }
436
- function it(e, t, n) {
437
- if (!t)
438
- return e;
439
- const r = n && n.encode || an;
440
- a.isFunction(n) && (n = {
441
- serialize: n
442
- });
443
- const s = n && n.serialize;
444
- let i;
445
- if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new ge(t, n).toString(r), i) {
446
- const o = e.indexOf("#");
447
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
448
- }
449
- return e;
450
- }
451
- class cn {
452
- constructor() {
453
- this.handlers = [];
454
- }
455
- /**
456
- * Add a new interceptor to the stack
457
- *
458
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
459
- * @param {Function} rejected The function to handle `reject` for a `Promise`
460
- *
461
- * @return {Number} An ID used to remove interceptor later
462
- */
463
- use(t, n, r) {
464
- return this.handlers.push({
465
- fulfilled: t,
466
- rejected: n,
467
- synchronous: r ? r.synchronous : !1,
468
- runWhen: r ? r.runWhen : null
469
- }), this.handlers.length - 1;
470
- }
471
- /**
472
- * Remove an interceptor from the stack
473
- *
474
- * @param {Number} id The ID that was returned by `use`
475
- *
476
- * @returns {void}
477
- */
478
- eject(t) {
479
- this.handlers[t] && (this.handlers[t] = null);
480
- }
481
- /**
482
- * Clear all interceptors from the stack
483
- *
484
- * @returns {void}
485
- */
486
- clear() {
487
- this.handlers && (this.handlers = []);
488
- }
489
- /**
490
- * Iterate over all the registered interceptors
491
- *
492
- * This method is particularly useful for skipping over any
493
- * interceptors that may have become `null` calling `eject`.
494
- *
495
- * @param {Function} fn The function to call for each interceptor
496
- *
497
- * @returns {void}
498
- */
499
- forEach(t) {
500
- a.forEach(this.handlers, function(r) {
501
- r !== null && t(r);
502
- });
503
- }
504
- }
505
- const De = cn, at = {
506
- silentJSONParsing: !0,
507
- forcedJSONParsing: !0,
508
- clarifyTimeoutError: !1
509
- }, un = typeof URLSearchParams < "u" ? URLSearchParams : ge, ln = typeof FormData < "u" ? FormData : null, fn = typeof Blob < "u" ? Blob : null, dn = {
510
- isBrowser: !0,
511
- classes: {
512
- URLSearchParams: un,
513
- FormData: ln,
514
- Blob: fn
515
- },
516
- protocols: ["http", "https", "file", "blob", "url", "data"]
517
- }, Se = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0, pn = Se && (!be || ["ReactNative", "NativeScript", "NS"].indexOf(be.product) < 0), hn = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
518
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), mn = Se && window.location.href || "http://localhost", yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
519
- __proto__: null,
520
- hasBrowserEnv: Se,
521
- hasStandardBrowserEnv: pn,
522
- hasStandardBrowserWebWorkerEnv: hn,
523
- navigator: be,
524
- origin: mn
525
- }, Symbol.toStringTag, { value: "Module" })), R = {
526
- ...yn,
527
- ...dn
528
- };
529
- function bn(e, t) {
530
- return ae(e, new R.classes.URLSearchParams(), {
531
- visitor: function(n, r, s, i) {
532
- return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
533
- },
534
- ...t
535
- });
536
- }
537
- function wn(e) {
538
- return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
539
- }
540
- function En(e) {
541
- const t = {}, n = Object.keys(e);
542
- let r;
543
- const s = n.length;
544
- let i;
545
- for (r = 0; r < s; r++)
546
- i = n[r], t[i] = e[i];
547
- return t;
548
- }
549
- function ct(e) {
550
- function t(n, r, s, i) {
551
- let o = n[i++];
552
- if (o === "__proto__")
553
- return !0;
554
- const c = Number.isFinite(+o), d = i >= n.length;
555
- return o = !o && a.isArray(s) ? s.length : o, d ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = En(s[o])), !c);
556
- }
557
- if (a.isFormData(e) && a.isFunction(e.entries)) {
558
- const n = {};
559
- return a.forEachEntry(e, (r, s) => {
560
- t(wn(r), s, n, 0);
561
- }), n;
562
- }
563
- return null;
564
- }
565
- function gn(e, t, n) {
566
- if (a.isString(e))
567
- try {
568
- return (t || JSON.parse)(e), a.trim(e);
569
- } catch (r) {
570
- if (r.name !== "SyntaxError")
571
- throw r;
572
- }
573
- return (n || JSON.stringify)(e);
574
- }
575
- const Re = {
576
- transitional: at,
577
- adapter: ["xhr", "http", "fetch"],
578
- transformRequest: [function(t, n) {
579
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
580
- if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
581
- return s ? JSON.stringify(ct(t)) : t;
582
- if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
583
- return t;
584
- if (a.isArrayBufferView(t))
585
- return t.buffer;
586
- if (a.isURLSearchParams(t))
587
- return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
588
- let c;
589
- if (i) {
590
- if (r.indexOf("application/x-www-form-urlencoded") > -1)
591
- return bn(t, this.formSerializer).toString();
592
- if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
593
- const d = this.env && this.env.FormData;
594
- return ae(
595
- c ? { "files[]": t } : t,
596
- d && new d(),
597
- this.formSerializer
598
- );
599
- }
600
- }
601
- return i || s ? (n.setContentType("application/json", !1), gn(t)) : t;
602
- }],
603
- transformResponse: [function(t) {
604
- const n = this.transitional || Re.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
605
- if (a.isResponse(t) || a.isReadableStream(t))
606
- return t;
607
- if (t && a.isString(t) && (r && !this.responseType || s)) {
608
- const o = !(n && n.silentJSONParsing) && s;
609
- try {
610
- return JSON.parse(t, this.parseReviver);
611
- } catch (c) {
612
- if (o)
613
- throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
614
- }
615
- }
616
- return t;
617
- }],
618
- /**
619
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
620
- * timeout is not created.
621
- */
622
- timeout: 0,
623
- xsrfCookieName: "XSRF-TOKEN",
624
- xsrfHeaderName: "X-XSRF-TOKEN",
625
- maxContentLength: -1,
626
- maxBodyLength: -1,
627
- env: {
628
- FormData: R.classes.FormData,
629
- Blob: R.classes.Blob
630
- },
631
- validateStatus: function(t) {
632
- return t >= 200 && t < 300;
633
- },
634
- headers: {
635
- common: {
636
- Accept: "application/json, text/plain, */*",
637
- "Content-Type": void 0
638
- }
639
- }
640
- };
641
- a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
642
- Re.headers[e] = {};
643
- });
644
- const Oe = Re, Sn = a.toObjectSet([
645
- "age",
646
- "authorization",
647
- "content-length",
648
- "content-type",
649
- "etag",
650
- "expires",
651
- "from",
652
- "host",
653
- "if-modified-since",
654
- "if-unmodified-since",
655
- "last-modified",
656
- "location",
657
- "max-forwards",
658
- "proxy-authorization",
659
- "referer",
660
- "retry-after",
661
- "user-agent"
662
- ]), Rn = (e) => {
663
- const t = {};
664
- let n, r, s;
665
- return e && e.split(`
666
- `).forEach(function(o) {
667
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Sn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
668
- }), t;
669
- }, ke = Symbol("internals");
670
- function z(e) {
671
- return e && String(e).trim().toLowerCase();
672
- }
673
- function Z(e) {
674
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(Z) : String(e);
675
- }
676
- function On(e) {
677
- const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
678
- let r;
679
- for (; r = n.exec(e); )
680
- t[r[1]] = r[2];
681
- return t;
682
- }
683
- const Tn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
684
- function de(e, t, n, r, s) {
685
- if (a.isFunction(r))
686
- return r.call(this, t, n);
687
- if (s && (t = n), !!a.isString(t)) {
688
- if (a.isString(r))
689
- return t.indexOf(r) !== -1;
690
- if (a.isRegExp(r))
691
- return r.test(t);
692
- }
693
- }
694
- function An(e) {
695
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
696
- }
697
- function xn(e, t) {
698
- const n = a.toCamelCase(" " + t);
699
- ["get", "set", "has"].forEach((r) => {
700
- Object.defineProperty(e, r + n, {
701
- value: function(s, i, o) {
702
- return this[r].call(this, t, s, i, o);
703
- },
704
- configurable: !0
705
- });
706
- });
707
- }
708
- class ce {
709
- constructor(t) {
710
- t && this.set(t);
711
- }
712
- set(t, n, r) {
713
- const s = this;
714
- function i(c, d, f) {
715
- const u = z(d);
716
- if (!u)
717
- throw new Error("header name must be a non-empty string");
718
- const h = a.findKey(s, u);
719
- (!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h || d] = Z(c));
720
- }
721
- const o = (c, d) => a.forEach(c, (f, u) => i(f, u, d));
722
- if (a.isPlainObject(t) || t instanceof this.constructor)
723
- o(t, n);
724
- else if (a.isString(t) && (t = t.trim()) && !Tn(t))
725
- o(Rn(t), n);
726
- else if (a.isObject(t) && a.isIterable(t)) {
727
- let c = {}, d, f;
728
- for (const u of t) {
729
- if (!a.isArray(u))
730
- throw TypeError("Object iterator must return a key-value pair");
731
- c[f = u[0]] = (d = c[f]) ? a.isArray(d) ? [...d, u[1]] : [d, u[1]] : u[1];
732
- }
733
- o(c, n);
734
- } else
735
- t != null && i(n, t, r);
736
- return this;
737
- }
738
- get(t, n) {
739
- if (t = z(t), t) {
740
- const r = a.findKey(this, t);
741
- if (r) {
742
- const s = this[r];
743
- if (!n)
744
- return s;
745
- if (n === !0)
746
- return On(s);
747
- if (a.isFunction(n))
748
- return n.call(this, s, r);
749
- if (a.isRegExp(n))
750
- return n.exec(s);
751
- throw new TypeError("parser must be boolean|regexp|function");
752
- }
753
- }
754
- }
755
- has(t, n) {
756
- if (t = z(t), t) {
757
- const r = a.findKey(this, t);
758
- return !!(r && this[r] !== void 0 && (!n || de(this, this[r], r, n)));
759
- }
760
- return !1;
761
- }
762
- delete(t, n) {
763
- const r = this;
764
- let s = !1;
765
- function i(o) {
766
- if (o = z(o), o) {
767
- const c = a.findKey(r, o);
768
- c && (!n || de(r, r[c], c, n)) && (delete r[c], s = !0);
769
- }
770
- }
771
- return a.isArray(t) ? t.forEach(i) : i(t), s;
772
- }
773
- clear(t) {
774
- const n = Object.keys(this);
775
- let r = n.length, s = !1;
776
- for (; r--; ) {
777
- const i = n[r];
778
- (!t || de(this, this[i], i, t, !0)) && (delete this[i], s = !0);
779
- }
780
- return s;
781
- }
782
- normalize(t) {
783
- const n = this, r = {};
784
- return a.forEach(this, (s, i) => {
785
- const o = a.findKey(r, i);
786
- if (o) {
787
- n[o] = Z(s), delete n[i];
788
- return;
789
- }
790
- const c = t ? An(i) : String(i).trim();
791
- c !== i && delete n[i], n[c] = Z(s), r[c] = !0;
792
- }), this;
793
- }
794
- concat(...t) {
795
- return this.constructor.concat(this, ...t);
796
- }
797
- toJSON(t) {
798
- const n = /* @__PURE__ */ Object.create(null);
799
- return a.forEach(this, (r, s) => {
800
- r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
801
- }), n;
802
- }
803
- [Symbol.iterator]() {
804
- return Object.entries(this.toJSON())[Symbol.iterator]();
805
- }
806
- toString() {
807
- return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
808
- `);
809
- }
810
- getSetCookie() {
811
- return this.get("set-cookie") || [];
812
- }
813
- get [Symbol.toStringTag]() {
814
- return "AxiosHeaders";
815
- }
816
- static from(t) {
817
- return t instanceof this ? t : new this(t);
818
- }
819
- static concat(t, ...n) {
820
- const r = new this(t);
821
- return n.forEach((s) => r.set(s)), r;
822
- }
823
- static accessor(t) {
824
- const r = (this[ke] = this[ke] = {
825
- accessors: {}
826
- }).accessors, s = this.prototype;
827
- function i(o) {
828
- const c = z(o);
829
- r[c] || (xn(s, o), r[c] = !0);
830
- }
831
- return a.isArray(t) ? t.forEach(i) : i(t), this;
832
- }
833
- }
834
- ce.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
835
- a.reduceDescriptors(ce.prototype, ({ value: e }, t) => {
836
- let n = t[0].toUpperCase() + t.slice(1);
837
- return {
838
- get: () => e,
839
- set(r) {
840
- this[n] = r;
841
- }
842
- };
843
- });
844
- a.freezeMethods(ce);
845
- const P = ce;
846
- function pe(e, t) {
847
- const n = this || Oe, r = t || n, s = P.from(r.headers);
848
- let i = r.data;
849
- return a.forEach(e, function(c) {
850
- i = c.call(n, i, s.normalize(), t ? t.status : void 0);
851
- }), s.normalize(), i;
852
- }
853
- function ut(e) {
854
- return !!(e && e.__CANCEL__);
855
- }
856
- function M(e, t, n) {
857
- y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
858
- }
859
- a.inherits(M, y, {
860
- __CANCEL__: !0
861
- });
862
- function lt(e, t, n) {
863
- const r = n.config.validateStatus;
864
- !n.status || !r || r(n.status) ? e(n) : t(new y(
865
- "Request failed with status code " + n.status,
866
- [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
867
- n.config,
868
- n.request,
869
- n
870
- ));
871
- }
872
- function Cn(e) {
873
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
874
- return t && t[1] || "";
875
- }
876
- function Pn(e, t) {
877
- e = e || 10;
878
- const n = new Array(e), r = new Array(e);
879
- let s = 0, i = 0, o;
880
- return t = t !== void 0 ? t : 1e3, function(d) {
881
- const f = Date.now(), u = r[i];
882
- o || (o = f), n[s] = d, r[s] = f;
883
- let h = i, b = 0;
884
- for (; h !== s; )
885
- b += n[h++], h = h % e;
886
- if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
887
- return;
888
- const S = u && f - u;
889
- return S ? Math.round(b * 1e3 / S) : void 0;
890
- };
891
- }
892
- function Nn(e, t) {
893
- let n = 0, r = 1e3 / t, s, i;
894
- const o = (f, u = Date.now()) => {
895
- n = u, s = null, i && (clearTimeout(i), i = null), e(...f);
896
- };
897
- return [(...f) => {
898
- const u = Date.now(), h = u - n;
899
- h >= r ? o(f, u) : (s = f, i || (i = setTimeout(() => {
900
- i = null, o(s);
901
- }, r - h)));
902
- }, () => s && o(s)];
903
- }
904
- const ne = (e, t, n = 3) => {
905
- let r = 0;
906
- const s = Pn(50, 250);
907
- return Nn((i) => {
908
- const o = i.loaded, c = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), u = o <= c;
909
- r = o;
910
- const h = {
911
- loaded: o,
912
- total: c,
913
- progress: c ? o / c : void 0,
914
- bytes: d,
915
- rate: f || void 0,
916
- estimated: f && c && u ? (c - o) / f : void 0,
917
- event: i,
918
- lengthComputable: c != null,
919
- [t ? "download" : "upload"]: !0
920
- };
921
- e(h);
922
- }, n);
923
- }, je = (e, t) => {
924
- const n = e != null;
925
- return [(r) => t[0]({
926
- lengthComputable: n,
927
- total: e,
928
- loaded: r
929
- }), t[1]];
930
- }, qe = (e) => (...t) => a.asap(() => e(...t)), Fn = R.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
931
- new URL(R.origin),
932
- R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
933
- ) : () => !0, _n = R.hasStandardBrowserEnv ? (
934
- // Standard browser envs support document.cookie
935
- {
936
- write(e, t, n, r, s, i, o) {
937
- if (typeof document > "u")
938
- return;
939
- const c = [`${e}=${encodeURIComponent(t)}`];
940
- a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), i === !0 && c.push("secure"), a.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
941
- },
942
- read(e) {
943
- if (typeof document > "u")
944
- return null;
945
- const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
946
- return t ? decodeURIComponent(t[1]) : null;
947
- },
948
- remove(e) {
949
- this.write(e, "", Date.now() - 864e5, "/");
950
- }
951
- }
952
- ) : (
953
- // Non-standard browser env (web workers, react-native) lack needed support.
954
- {
955
- write() {
956
- },
957
- read() {
958
- return null;
959
- },
960
- remove() {
961
- }
962
- }
963
- );
964
- function Un(e) {
965
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
966
- }
967
- function Ln(e, t) {
968
- return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
969
- }
970
- function ft(e, t, n) {
971
- let r = !Un(t);
972
- return e && (r || n == !1) ? Ln(e, t) : t;
973
- }
974
- const He = (e) => e instanceof P ? { ...e } : e;
975
- function j(e, t) {
976
- t = t || {};
977
- const n = {};
978
- function r(f, u, h, b) {
979
- return a.isPlainObject(f) && a.isPlainObject(u) ? a.merge.call({ caseless: b }, f, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
980
- }
981
- function s(f, u, h, b) {
982
- if (a.isUndefined(u)) {
983
- if (!a.isUndefined(f))
984
- return r(void 0, f, h, b);
985
- } else
986
- return r(f, u, h, b);
987
- }
988
- function i(f, u) {
989
- if (!a.isUndefined(u))
990
- return r(void 0, u);
991
- }
992
- function o(f, u) {
993
- if (a.isUndefined(u)) {
994
- if (!a.isUndefined(f))
995
- return r(void 0, f);
996
- } else
997
- return r(void 0, u);
998
- }
999
- function c(f, u, h) {
1000
- if (h in t)
1001
- return r(f, u);
1002
- if (h in e)
1003
- return r(void 0, f);
1004
- }
1005
- const d = {
1006
- url: i,
1007
- method: i,
1008
- data: i,
1009
- baseURL: o,
1010
- transformRequest: o,
1011
- transformResponse: o,
1012
- paramsSerializer: o,
1013
- timeout: o,
1014
- timeoutMessage: o,
1015
- withCredentials: o,
1016
- withXSRFToken: o,
1017
- adapter: o,
1018
- responseType: o,
1019
- xsrfCookieName: o,
1020
- xsrfHeaderName: o,
1021
- onUploadProgress: o,
1022
- onDownloadProgress: o,
1023
- decompress: o,
1024
- maxContentLength: o,
1025
- maxBodyLength: o,
1026
- beforeRedirect: o,
1027
- transport: o,
1028
- httpAgent: o,
1029
- httpsAgent: o,
1030
- cancelToken: o,
1031
- socketPath: o,
1032
- responseEncoding: o,
1033
- validateStatus: c,
1034
- headers: (f, u, h) => s(He(f), He(u), h, !0)
1035
- };
1036
- return a.forEach(Object.keys({ ...e, ...t }), function(u) {
1037
- const h = d[u] || s, b = h(e[u], t[u], u);
1038
- a.isUndefined(b) && h !== c || (n[u] = b);
1039
- }), n;
1040
- }
1041
- const dt = (e) => {
1042
- const t = j({}, e);
1043
- let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1044
- if (t.headers = o = P.from(o), t.url = it(ft(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1045
- "Authorization",
1046
- "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1047
- ), a.isFormData(n)) {
1048
- if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
1049
- o.setContentType(void 0);
1050
- else if (a.isFunction(n.getHeaders)) {
1051
- const d = n.getHeaders(), f = ["content-type", "content-length"];
1052
- Object.entries(d).forEach(([u, h]) => {
1053
- f.includes(u.toLowerCase()) && o.set(u, h);
1054
- });
1055
- }
1056
- }
1057
- if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Fn(t.url))) {
1058
- const d = s && i && _n.read(i);
1059
- d && o.set(s, d);
1060
- }
1061
- return t;
1062
- }, Bn = typeof XMLHttpRequest < "u", Dn = Bn && function(e) {
1063
- return new Promise(function(n, r) {
1064
- const s = dt(e);
1065
- let i = s.data;
1066
- const o = P.from(s.headers).normalize();
1067
- let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = s, u, h, b, S, l;
1068
- function m() {
1069
- S && S(), l && l(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1070
- }
1071
- let p = new XMLHttpRequest();
1072
- p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1073
- function E() {
1074
- if (!p)
1075
- return;
1076
- const g = P.from(
1077
- "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1078
- ), C = {
1079
- data: !c || c === "text" || c === "json" ? p.responseText : p.response,
1080
- status: p.status,
1081
- statusText: p.statusText,
1082
- headers: g,
1083
- config: e,
1084
- request: p
1085
- };
1086
- lt(function(x) {
1087
- n(x), m();
1088
- }, function(x) {
1089
- r(x), m();
1090
- }, C), p = null;
1091
- }
1092
- "onloadend" in p ? p.onloadend = E : p.onreadystatechange = function() {
1093
- !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(E);
1094
- }, p.onabort = function() {
1095
- p && (r(new y("Request aborted", y.ECONNABORTED, e, p)), p = null);
1096
- }, p.onerror = function(O) {
1097
- const C = O && O.message ? O.message : "Network Error", B = new y(C, y.ERR_NETWORK, e, p);
1098
- B.event = O || null, r(B), p = null;
1099
- }, p.ontimeout = function() {
1100
- let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1101
- const C = s.transitional || at;
1102
- s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(new y(
1103
- O,
1104
- C.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1105
- e,
1106
- p
1107
- )), p = null;
1108
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(O, C) {
1109
- p.setRequestHeader(C, O);
1110
- }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), f && ([b, l] = ne(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h, S] = ne(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (u = (g) => {
1111
- p && (r(!g || g.type ? new M(null, e, p) : g), p.abort(), p = null);
1112
- }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1113
- const A = Cn(s.url);
1114
- if (A && R.protocols.indexOf(A) === -1) {
1115
- r(new y("Unsupported protocol " + A + ":", y.ERR_BAD_REQUEST, e));
1116
- return;
1117
- }
1118
- p.send(i || null);
1119
- });
1120
- }, kn = (e, t) => {
1121
- const { length: n } = e = e ? e.filter(Boolean) : [];
1122
- if (t || n) {
1123
- let r = new AbortController(), s;
1124
- const i = function(f) {
1125
- if (!s) {
1126
- s = !0, c();
1127
- const u = f instanceof Error ? f : this.reason;
1128
- r.abort(u instanceof y ? u : new M(u instanceof Error ? u.message : u));
1129
- }
1130
- };
1131
- let o = t && setTimeout(() => {
1132
- o = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1133
- }, t);
1134
- const c = () => {
1135
- e && (o && clearTimeout(o), o = null, e.forEach((f) => {
1136
- f.unsubscribe ? f.unsubscribe(i) : f.removeEventListener("abort", i);
1137
- }), e = null);
1138
- };
1139
- e.forEach((f) => f.addEventListener("abort", i));
1140
- const { signal: d } = r;
1141
- return d.unsubscribe = () => a.asap(c), d;
1142
- }
1143
- }, jn = kn, qn = function* (e, t) {
1144
- let n = e.byteLength;
1145
- if (!t || n < t) {
1146
- yield e;
1147
- return;
1148
- }
1149
- let r = 0, s;
1150
- for (; r < n; )
1151
- s = r + t, yield e.slice(r, s), r = s;
1152
- }, Hn = async function* (e, t) {
1153
- for await (const n of In(e))
1154
- yield* qn(n, t);
1155
- }, In = async function* (e) {
1156
- if (e[Symbol.asyncIterator]) {
1157
- yield* e;
1158
- return;
1159
- }
1160
- const t = e.getReader();
1161
- try {
1162
- for (; ; ) {
1163
- const { done: n, value: r } = await t.read();
1164
- if (n)
1165
- break;
1166
- yield r;
1167
- }
1168
- } finally {
1169
- await t.cancel();
1170
- }
1171
- }, Ie = (e, t, n, r) => {
1172
- const s = Hn(e, t);
1173
- let i = 0, o, c = (d) => {
1174
- o || (o = !0, r && r(d));
1175
- };
1176
- return new ReadableStream({
1177
- async pull(d) {
1178
- try {
1179
- const { done: f, value: u } = await s.next();
1180
- if (f) {
1181
- c(), d.close();
1182
- return;
1183
- }
1184
- let h = u.byteLength;
1185
- if (n) {
1186
- let b = i += h;
1187
- n(b);
1188
- }
1189
- d.enqueue(new Uint8Array(u));
1190
- } catch (f) {
1191
- throw c(f), f;
1192
- }
1193
- },
1194
- cancel(d) {
1195
- return c(d), s.return();
1196
- }
1197
- }, {
1198
- highWaterMark: 2
1199
- });
1200
- }, Me = 64 * 1024, { isFunction: G } = a, Mn = (({ Request: e, Response: t }) => ({
1201
- Request: e,
1202
- Response: t
1203
- }))(a.global), {
1204
- ReadableStream: $e,
1205
- TextEncoder: ze
1206
- } = a.global, Je = (e, ...t) => {
1207
- try {
1208
- return !!e(...t);
1209
- } catch {
1210
- return !1;
1211
- }
1212
- }, $n = (e) => {
1213
- e = a.merge.call({
1214
- skipUndefined: !0
1215
- }, Mn, e);
1216
- const { fetch: t, Request: n, Response: r } = e, s = t ? G(t) : typeof fetch == "function", i = G(n), o = G(r);
1217
- if (!s)
1218
- return !1;
1219
- const c = s && G($e), d = s && (typeof ze == "function" ? ((l) => (m) => l.encode(m))(new ze()) : async (l) => new Uint8Array(await new n(l).arrayBuffer())), f = i && c && Je(() => {
1220
- let l = !1;
1221
- const m = new n(R.origin, {
1222
- body: new $e(),
1223
- method: "POST",
1224
- get duplex() {
1225
- return l = !0, "half";
1226
- }
1227
- }).headers.has("Content-Type");
1228
- return l && !m;
1229
- }), u = o && c && Je(() => a.isReadableStream(new r("").body)), h = {
1230
- stream: u && ((l) => l.body)
1231
- };
1232
- s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((l) => {
1233
- !h[l] && (h[l] = (m, p) => {
1234
- let E = m && m[l];
1235
- if (E)
1236
- return E.call(m);
1237
- throw new y(`Response type '${l}' is not supported`, y.ERR_NOT_SUPPORT, p);
1238
- });
1239
- });
1240
- const b = async (l) => {
1241
- if (l == null)
1242
- return 0;
1243
- if (a.isBlob(l))
1244
- return l.size;
1245
- if (a.isSpecCompliantForm(l))
1246
- return (await new n(R.origin, {
1247
- method: "POST",
1248
- body: l
1249
- }).arrayBuffer()).byteLength;
1250
- if (a.isArrayBufferView(l) || a.isArrayBuffer(l))
1251
- return l.byteLength;
1252
- if (a.isURLSearchParams(l) && (l = l + ""), a.isString(l))
1253
- return (await d(l)).byteLength;
1254
- }, S = async (l, m) => {
1255
- const p = a.toFiniteNumber(l.getContentLength());
1256
- return p ?? b(m);
1257
- };
1258
- return async (l) => {
1259
- let {
1260
- url: m,
1261
- method: p,
1262
- data: E,
1263
- signal: A,
1264
- cancelToken: g,
1265
- timeout: O,
1266
- onDownloadProgress: C,
1267
- onUploadProgress: B,
1268
- responseType: x,
1269
- headers: le,
1270
- withCredentials: v = "same-origin",
1271
- fetchOptions: xe
1272
- } = dt(l), Ce = t || fetch;
1273
- x = x ? (x + "").toLowerCase() : "text";
1274
- let K = jn([A, g && g.toAbortSignal()], O), $ = null;
1275
- const D = K && K.unsubscribe && (() => {
1276
- K.unsubscribe();
1277
- });
1278
- let Pe;
1279
- try {
1280
- if (B && f && p !== "get" && p !== "head" && (Pe = await S(le, E)) !== 0) {
1281
- let L = new n(m, {
1282
- method: "POST",
1283
- body: E,
1284
- duplex: "half"
1285
- }), q;
1286
- if (a.isFormData(E) && (q = L.headers.get("content-type")) && le.setContentType(q), L.body) {
1287
- const [fe, X] = je(
1288
- Pe,
1289
- ne(qe(B))
1290
- );
1291
- E = Ie(L.body, Me, fe, X);
1292
- }
1293
- }
1294
- a.isString(v) || (v = v ? "include" : "omit");
1295
- const F = i && "credentials" in n.prototype, Ne = {
1296
- ...xe,
1297
- signal: K,
1298
- method: p.toUpperCase(),
1299
- headers: le.normalize().toJSON(),
1300
- body: E,
1301
- duplex: "half",
1302
- credentials: F ? v : void 0
1303
- };
1304
- $ = i && new n(m, Ne);
1305
- let U = await (i ? Ce($, xe) : Ce(m, Ne));
1306
- const Fe = u && (x === "stream" || x === "response");
1307
- if (u && (C || Fe && D)) {
1308
- const L = {};
1309
- ["status", "statusText", "headers"].forEach((_e) => {
1310
- L[_e] = U[_e];
1311
- });
1312
- const q = a.toFiniteNumber(U.headers.get("content-length")), [fe, X] = C && je(
1313
- q,
1314
- ne(qe(C), !0)
1315
- ) || [];
1316
- U = new r(
1317
- Ie(U.body, Me, fe, () => {
1318
- X && X(), D && D();
1319
- }),
1320
- L
1321
- );
1322
- }
1323
- x = x || "text";
1324
- let bt = await h[a.findKey(h, x) || "text"](U, l);
1325
- return !Fe && D && D(), await new Promise((L, q) => {
1326
- lt(L, q, {
1327
- data: bt,
1328
- headers: P.from(U.headers),
1329
- status: U.status,
1330
- statusText: U.statusText,
1331
- config: l,
1332
- request: $
1333
- });
1334
- });
1335
- } catch (F) {
1336
- throw D && D(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
1337
- new y("Network Error", y.ERR_NETWORK, l, $),
1338
- {
1339
- cause: F.cause || F
1340
- }
1341
- ) : y.from(F, F && F.code, l, $);
1342
- }
1343
- };
1344
- }, zn = /* @__PURE__ */ new Map(), pt = (e) => {
1345
- let t = e && e.env || {};
1346
- const { fetch: n, Request: r, Response: s } = t, i = [
1347
- r,
1348
- s,
1349
- n
1350
- ];
1351
- let o = i.length, c = o, d, f, u = zn;
1352
- for (; c--; )
1353
- d = i[c], f = u.get(d), f === void 0 && u.set(d, f = c ? /* @__PURE__ */ new Map() : $n(t)), u = f;
1354
- return f;
1355
- };
1356
- pt();
1357
- const Te = {
1358
- http: rn,
1359
- xhr: Dn,
1360
- fetch: {
1361
- get: pt
1362
- }
1363
- };
1364
- a.forEach(Te, (e, t) => {
1365
- if (e) {
1366
- try {
1367
- Object.defineProperty(e, "name", { value: t });
1368
- } catch {
1369
- }
1370
- Object.defineProperty(e, "adapterName", { value: t });
1371
- }
1372
- });
1373
- const Ve = (e) => `- ${e}`, Jn = (e) => a.isFunction(e) || e === null || e === !1;
1374
- function Vn(e, t) {
1375
- e = a.isArray(e) ? e : [e];
1376
- const { length: n } = e;
1377
- let r, s;
1378
- const i = {};
1379
- for (let o = 0; o < n; o++) {
1380
- r = e[o];
1381
- let c;
1382
- if (s = r, !Jn(r) && (s = Te[(c = String(r)).toLowerCase()], s === void 0))
1383
- throw new y(`Unknown adapter '${c}'`);
1384
- if (s && (a.isFunction(s) || (s = s.get(t))))
1385
- break;
1386
- i[c || "#" + o] = s;
1387
- }
1388
- if (!s) {
1389
- const o = Object.entries(i).map(
1390
- ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1391
- );
1392
- let c = n ? o.length > 1 ? `since :
1393
- ` + o.map(Ve).join(`
1394
- `) : " " + Ve(o[0]) : "as no adapter specified";
1395
- throw new y(
1396
- "There is no suitable adapter to dispatch the request " + c,
1397
- "ERR_NOT_SUPPORT"
1398
- );
1399
- }
1400
- return s;
1401
- }
1402
- const ht = {
1403
- /**
1404
- * Resolve an adapter from a list of adapter names or functions.
1405
- * @type {Function}
1406
- */
1407
- getAdapter: Vn,
1408
- /**
1409
- * Exposes all known adapters
1410
- * @type {Object<string, Function|Object>}
1411
- */
1412
- adapters: Te
1413
- };
1414
- function he(e) {
1415
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1416
- throw new M(null, e);
1417
- }
1418
- function We(e) {
1419
- return he(e), e.headers = P.from(e.headers), e.data = pe.call(
1420
- e,
1421
- e.transformRequest
1422
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ht.getAdapter(e.adapter || Oe.adapter, e)(e).then(function(r) {
1423
- return he(e), r.data = pe.call(
1424
- e,
1425
- e.transformResponse,
1426
- r
1427
- ), r.headers = P.from(r.headers), r;
1428
- }, function(r) {
1429
- return ut(r) || (he(e), r && r.response && (r.response.data = pe.call(
1430
- e,
1431
- e.transformResponse,
1432
- r.response
1433
- ), r.response.headers = P.from(r.response.headers))), Promise.reject(r);
1434
- });
1435
- }
1436
- const mt = "1.13.2", ue = {};
1437
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1438
- ue[e] = function(r) {
1439
- return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1440
- };
1441
- });
1442
- const ve = {};
1443
- ue.transitional = function(t, n, r) {
1444
- function s(i, o) {
1445
- return "[Axios v" + mt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1446
- }
1447
- return (i, o, c) => {
1448
- if (t === !1)
1449
- throw new y(
1450
- s(o, " has been removed" + (n ? " in " + n : "")),
1451
- y.ERR_DEPRECATED
1452
- );
1453
- return n && !ve[o] && (ve[o] = !0, console.warn(
1454
- s(
1455
- o,
1456
- " has been deprecated since v" + n + " and will be removed in the near future"
1457
- )
1458
- )), t ? t(i, o, c) : !0;
1459
- };
1460
- };
1461
- ue.spelling = function(t) {
1462
- return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1463
- };
1464
- function Wn(e, t, n) {
1465
- if (typeof e != "object")
1466
- throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1467
- const r = Object.keys(e);
1468
- let s = r.length;
1469
- for (; s-- > 0; ) {
1470
- const i = r[s], o = t[i];
1471
- if (o) {
1472
- const c = e[i], d = c === void 0 || o(c, i, e);
1473
- if (d !== !0)
1474
- throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
1475
- continue;
1476
- }
1477
- if (n !== !0)
1478
- throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1479
- }
1480
- }
1481
- const Y = {
1482
- assertOptions: Wn,
1483
- validators: ue
1484
- }, _ = Y.validators;
1485
- let re = class {
1486
- constructor(t) {
1487
- this.defaults = t || {}, this.interceptors = {
1488
- request: new De(),
1489
- response: new De()
1490
- };
1491
- }
1492
- /**
1493
- * Dispatch a request
1494
- *
1495
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1496
- * @param {?Object} config
1497
- *
1498
- * @returns {Promise} The Promise to be fulfilled
1499
- */
1500
- async request(t, n) {
1501
- try {
1502
- return await this._request(t, n);
1503
- } catch (r) {
1504
- if (r instanceof Error) {
1505
- let s = {};
1506
- Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1507
- const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1508
- try {
1509
- r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1510
- ` + i) : r.stack = i;
1511
- } catch {
1512
- }
1513
- }
1514
- throw r;
1515
- }
1516
- }
1517
- _request(t, n) {
1518
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = j(this.defaults, n);
1519
- const { transitional: r, paramsSerializer: s, headers: i } = n;
1520
- r !== void 0 && Y.assertOptions(r, {
1521
- silentJSONParsing: _.transitional(_.boolean),
1522
- forcedJSONParsing: _.transitional(_.boolean),
1523
- clarifyTimeoutError: _.transitional(_.boolean)
1524
- }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1525
- serialize: s
1526
- } : Y.assertOptions(s, {
1527
- encode: _.function,
1528
- serialize: _.function
1529
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Y.assertOptions(n, {
1530
- baseUrl: _.spelling("baseURL"),
1531
- withXsrfToken: _.spelling("withXSRFToken")
1532
- }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1533
- let o = i && a.merge(
1534
- i.common,
1535
- i[n.method]
1536
- );
1537
- i && a.forEach(
1538
- ["delete", "get", "head", "post", "put", "patch", "common"],
1539
- (l) => {
1540
- delete i[l];
1541
- }
1542
- ), n.headers = P.concat(o, i);
1543
- const c = [];
1544
- let d = !0;
1545
- this.interceptors.request.forEach(function(m) {
1546
- typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, c.unshift(m.fulfilled, m.rejected));
1547
- });
1548
- const f = [];
1549
- this.interceptors.response.forEach(function(m) {
1550
- f.push(m.fulfilled, m.rejected);
1551
- });
1552
- let u, h = 0, b;
1553
- if (!d) {
1554
- const l = [We.bind(this), void 0];
1555
- for (l.unshift(...c), l.push(...f), b = l.length, u = Promise.resolve(n); h < b; )
1556
- u = u.then(l[h++], l[h++]);
1557
- return u;
1558
- }
1559
- b = c.length;
1560
- let S = n;
1561
- for (; h < b; ) {
1562
- const l = c[h++], m = c[h++];
1563
- try {
1564
- S = l(S);
1565
- } catch (p) {
1566
- m.call(this, p);
1567
- break;
1568
- }
1569
- }
1570
- try {
1571
- u = We.call(this, S);
1572
- } catch (l) {
1573
- return Promise.reject(l);
1574
- }
1575
- for (h = 0, b = f.length; h < b; )
1576
- u = u.then(f[h++], f[h++]);
1577
- return u;
1578
- }
1579
- getUri(t) {
1580
- t = j(this.defaults, t);
1581
- const n = ft(t.baseURL, t.url, t.allowAbsoluteUrls);
1582
- return it(n, t.params, t.paramsSerializer);
1583
- }
1584
- };
1585
- a.forEach(["delete", "get", "head", "options"], function(t) {
1586
- re.prototype[t] = function(n, r) {
1587
- return this.request(j(r || {}, {
1588
- method: t,
1589
- url: n,
1590
- data: (r || {}).data
1591
- }));
1592
- };
1593
- });
1594
- a.forEach(["post", "put", "patch"], function(t) {
1595
- function n(r) {
1596
- return function(i, o, c) {
1597
- return this.request(j(c || {}, {
1598
- method: t,
1599
- headers: r ? {
1600
- "Content-Type": "multipart/form-data"
1601
- } : {},
1602
- url: i,
1603
- data: o
1604
- }));
1605
- };
1606
- }
1607
- re.prototype[t] = n(), re.prototype[t + "Form"] = n(!0);
1608
- });
1609
- const ee = re;
1610
- class Ae {
1611
- constructor(t) {
1612
- if (typeof t != "function")
1613
- throw new TypeError("executor must be a function.");
1614
- let n;
1615
- this.promise = new Promise(function(i) {
1616
- n = i;
1617
- });
1618
- const r = this;
1619
- this.promise.then((s) => {
1620
- if (!r._listeners)
1621
- return;
1622
- let i = r._listeners.length;
1623
- for (; i-- > 0; )
1624
- r._listeners[i](s);
1625
- r._listeners = null;
1626
- }), this.promise.then = (s) => {
1627
- let i;
1628
- const o = new Promise((c) => {
1629
- r.subscribe(c), i = c;
1630
- }).then(s);
1631
- return o.cancel = function() {
1632
- r.unsubscribe(i);
1633
- }, o;
1634
- }, t(function(i, o, c) {
1635
- r.reason || (r.reason = new M(i, o, c), n(r.reason));
1636
- });
1637
- }
1638
- /**
1639
- * Throws a `CanceledError` if cancellation has been requested.
1640
- */
1641
- throwIfRequested() {
1642
- if (this.reason)
1643
- throw this.reason;
1644
- }
1645
- /**
1646
- * Subscribe to the cancel signal
1647
- */
1648
- subscribe(t) {
1649
- if (this.reason) {
1650
- t(this.reason);
1651
- return;
1652
- }
1653
- this._listeners ? this._listeners.push(t) : this._listeners = [t];
1654
- }
1655
- /**
1656
- * Unsubscribe from the cancel signal
1657
- */
1658
- unsubscribe(t) {
1659
- if (!this._listeners)
1660
- return;
1661
- const n = this._listeners.indexOf(t);
1662
- n !== -1 && this._listeners.splice(n, 1);
1663
- }
1664
- toAbortSignal() {
1665
- const t = new AbortController(), n = (r) => {
1666
- t.abort(r);
1667
- };
1668
- return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1669
- }
1670
- /**
1671
- * Returns an object that contains a new `CancelToken` and a function that, when called,
1672
- * cancels the `CancelToken`.
1673
- */
1674
- static source() {
1675
- let t;
1676
- return {
1677
- token: new Ae(function(s) {
1678
- t = s;
1679
- }),
1680
- cancel: t
1681
- };
1682
- }
1683
- }
1684
- const vn = Ae;
1685
- function Kn(e) {
1686
- return function(n) {
1687
- return e.apply(null, n);
1688
- };
1689
- }
1690
- function Xn(e) {
1691
- return a.isObject(e) && e.isAxiosError === !0;
1692
- }
1693
- const we = {
1694
- Continue: 100,
1695
- SwitchingProtocols: 101,
1696
- Processing: 102,
1697
- EarlyHints: 103,
1698
- Ok: 200,
1699
- Created: 201,
1700
- Accepted: 202,
1701
- NonAuthoritativeInformation: 203,
1702
- NoContent: 204,
1703
- ResetContent: 205,
1704
- PartialContent: 206,
1705
- MultiStatus: 207,
1706
- AlreadyReported: 208,
1707
- ImUsed: 226,
1708
- MultipleChoices: 300,
1709
- MovedPermanently: 301,
1710
- Found: 302,
1711
- SeeOther: 303,
1712
- NotModified: 304,
1713
- UseProxy: 305,
1714
- Unused: 306,
1715
- TemporaryRedirect: 307,
1716
- PermanentRedirect: 308,
1717
- BadRequest: 400,
1718
- Unauthorized: 401,
1719
- PaymentRequired: 402,
1720
- Forbidden: 403,
1721
- NotFound: 404,
1722
- MethodNotAllowed: 405,
1723
- NotAcceptable: 406,
1724
- ProxyAuthenticationRequired: 407,
1725
- RequestTimeout: 408,
1726
- Conflict: 409,
1727
- Gone: 410,
1728
- LengthRequired: 411,
1729
- PreconditionFailed: 412,
1730
- PayloadTooLarge: 413,
1731
- UriTooLong: 414,
1732
- UnsupportedMediaType: 415,
1733
- RangeNotSatisfiable: 416,
1734
- ExpectationFailed: 417,
1735
- ImATeapot: 418,
1736
- MisdirectedRequest: 421,
1737
- UnprocessableEntity: 422,
1738
- Locked: 423,
1739
- FailedDependency: 424,
1740
- TooEarly: 425,
1741
- UpgradeRequired: 426,
1742
- PreconditionRequired: 428,
1743
- TooManyRequests: 429,
1744
- RequestHeaderFieldsTooLarge: 431,
1745
- UnavailableForLegalReasons: 451,
1746
- InternalServerError: 500,
1747
- NotImplemented: 501,
1748
- BadGateway: 502,
1749
- ServiceUnavailable: 503,
1750
- GatewayTimeout: 504,
1751
- HttpVersionNotSupported: 505,
1752
- VariantAlsoNegotiates: 506,
1753
- InsufficientStorage: 507,
1754
- LoopDetected: 508,
1755
- NotExtended: 510,
1756
- NetworkAuthenticationRequired: 511,
1757
- WebServerIsDown: 521,
1758
- ConnectionTimedOut: 522,
1759
- OriginIsUnreachable: 523,
1760
- TimeoutOccurred: 524,
1761
- SslHandshakeFailed: 525,
1762
- InvalidSslCertificate: 526
1763
- };
1764
- Object.entries(we).forEach(([e, t]) => {
1765
- we[t] = e;
1766
- });
1767
- const Gn = we;
1768
- function yt(e) {
1769
- const t = new ee(e), n = Ke(ee.prototype.request, t);
1770
- return a.extend(n, ee.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1771
- return yt(j(e, s));
1772
- }, n;
1773
- }
1774
- const w = yt(Oe);
1775
- w.Axios = ee;
1776
- w.CanceledError = M;
1777
- w.CancelToken = vn;
1778
- w.isCancel = ut;
1779
- w.VERSION = mt;
1780
- w.toFormData = ae;
1781
- w.AxiosError = y;
1782
- w.Cancel = w.CanceledError;
1783
- w.all = function(t) {
1784
- return Promise.all(t);
1785
- };
1786
- w.spread = Kn;
1787
- w.isAxiosError = Xn;
1788
- w.mergeConfig = j;
1789
- w.AxiosHeaders = P;
1790
- w.formToJSON = (e) => ct(a.isHTMLForm(e) ? new FormData(e) : e);
1791
- w.getAdapter = ht.getAdapter;
1792
- w.HttpStatusCode = Gn;
1793
- w.default = w;
1794
- const tr = w;
1795
- export {
1796
- tr as A,
1797
- Yn as a,
1798
- Qn as c,
1799
- Zn as g
1800
- };
1801
- //# sourceMappingURL=axios-7e873420.js.map