@invoice-sdk/widget 1.105.14 → 1.105.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/qr.png +0 -0
- package/dist/{index-Ct7zzW-8.js → index-CU5sGDOB.js} +440 -440
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +98 -98
- package/dist/widget-D8z1Cn-p.js +7111 -0
- package/package.json +1 -1
- package/dist/widget-Dd70V1x0.js +0 -7110
|
@@ -2,7 +2,7 @@ var Vt = Object.defineProperty, $t = Object.defineProperties;
|
|
|
2
2
|
var _t = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var we = Object.getOwnPropertySymbols;
|
|
4
4
|
var Ai = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var eA = (e, A) => (A = Symbol[e]) ? A : Symbol.for("Symbol." + e), ti = (e) => {
|
|
6
6
|
throw TypeError(e);
|
|
7
7
|
};
|
|
8
8
|
var fe = (e, A, t) => A in e ? Vt(e, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[A] = t, l = (e, A) => {
|
|
@@ -28,37 +28,37 @@ var k = (e, A, t) => new Promise((i, n) => {
|
|
|
28
28
|
}
|
|
29
29
|
}, C = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(o, r);
|
|
30
30
|
C((t = t.apply(e, A)).next());
|
|
31
|
-
}),
|
|
31
|
+
}), X = function(e, A) {
|
|
32
32
|
this[0] = e, this[1] = A;
|
|
33
33
|
}, UA = (e, A, t) => {
|
|
34
34
|
var i = (r, C, s, a) => {
|
|
35
35
|
try {
|
|
36
|
-
var I = t[r](C), g = (C = I.value) instanceof
|
|
36
|
+
var I = t[r](C), g = (C = I.value) instanceof X, B = I.done;
|
|
37
37
|
Promise.resolve(g ? C[0] : C).then((Q) => g ? i(r === "return" ? r : "next", C[1] ? { done: Q.done, value: Q.value } : Q, s, a) : s({ value: Q, done: B })).catch((Q) => i("throw", Q, s, a));
|
|
38
38
|
} catch (Q) {
|
|
39
39
|
a(Q);
|
|
40
40
|
}
|
|
41
41
|
}, n = (r) => o[r] = (C) => new Promise((s, a) => i(r, C, s, a)), o = {};
|
|
42
|
-
return t = t.apply(e, A), o[
|
|
42
|
+
return t = t.apply(e, A), o[eA("asyncIterator")] = () => o, n("next"), n("throw"), n("return"), o;
|
|
43
43
|
}, WA = (e) => {
|
|
44
|
-
var A = e[
|
|
45
|
-
return A == null ? (A = e[
|
|
44
|
+
var A = e[eA("asyncIterator")], t = !1, i, n = {};
|
|
45
|
+
return A == null ? (A = e[eA("iterator")](), i = (o) => n[o] = (r) => A[o](r)) : (A = A.call(e), i = (o) => n[o] = (r) => {
|
|
46
46
|
if (t) {
|
|
47
47
|
if (t = !1, o === "throw") throw r;
|
|
48
48
|
return r;
|
|
49
49
|
}
|
|
50
50
|
return t = !0, {
|
|
51
51
|
done: !1,
|
|
52
|
-
value: new
|
|
52
|
+
value: new X(new Promise((C) => {
|
|
53
53
|
var s = A[o](r);
|
|
54
54
|
s instanceof Object || ti("Object expected"), C(s);
|
|
55
55
|
}), 1)
|
|
56
56
|
};
|
|
57
|
-
}), n[
|
|
57
|
+
}), n[eA("iterator")] = () => n, i("next"), "throw" in A ? i("throw") : n.throw = (o) => {
|
|
58
58
|
throw o;
|
|
59
59
|
}, "return" in A && i("return"), n;
|
|
60
|
-
}, Me = (e, A, t) => (A = e[
|
|
61
|
-
const h = (e) => typeof e == "string",
|
|
60
|
+
}, Me = (e, A, t) => (A = e[eA("asyncIterator")]) ? A.call(e) : (e = e[eA("iterator")](), A = {}, t = (i, n) => (n = e[i]) && (A[i] = (o) => new Promise((r, C, s) => (o = n.call(e, o), s = o.done, Promise.resolve(o.value).then((a) => r({ value: a, done: s }), C)))), t("next"), t("return"), A);
|
|
61
|
+
const h = (e) => typeof e == "string", gA = () => {
|
|
62
62
|
let e, A;
|
|
63
63
|
const t = new Promise((i, n) => {
|
|
64
64
|
e = i, A = n;
|
|
@@ -68,7 +68,7 @@ const h = (e) => typeof e == "string", EA = () => {
|
|
|
68
68
|
e.forEach((i) => {
|
|
69
69
|
A[i] && (t[i] = A[i]);
|
|
70
70
|
});
|
|
71
|
-
}, ni = /###/g, ye = (e) => e && e.indexOf("###") > -1 ? e.replace(ni, ".") : e, ze = (e) => !e || h(e),
|
|
71
|
+
}, ni = /###/g, ye = (e) => e && e.indexOf("###") > -1 ? e.replace(ni, ".") : e, ze = (e) => !e || h(e), QA = (e, A, t) => {
|
|
72
72
|
const i = h(A) ? A.split(".") : A;
|
|
73
73
|
let n = 0;
|
|
74
74
|
for (; n < i.length - 1; ) {
|
|
@@ -84,36 +84,36 @@ const h = (e) => typeof e == "string", EA = () => {
|
|
|
84
84
|
const {
|
|
85
85
|
obj: i,
|
|
86
86
|
k: n
|
|
87
|
-
} =
|
|
87
|
+
} = QA(e, A, Object);
|
|
88
88
|
if (i !== void 0 || A.length === 1) {
|
|
89
89
|
i[n] = t;
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
let o = A[A.length - 1], r = A.slice(0, A.length - 1), C =
|
|
92
|
+
let o = A[A.length - 1], r = A.slice(0, A.length - 1), C = QA(e, r, Object);
|
|
93
93
|
for (; C.obj === void 0 && r.length; )
|
|
94
|
-
o = `${r[r.length - 1]}.${o}`, r = r.slice(0, r.length - 1), C =
|
|
94
|
+
o = `${r[r.length - 1]}.${o}`, r = r.slice(0, r.length - 1), C = QA(e, r, Object), C != null && C.obj && typeof C.obj[`${C.k}.${o}`] != "undefined" && (C.obj = void 0);
|
|
95
95
|
C.obj[`${C.k}.${o}`] = t;
|
|
96
96
|
}, oi = (e, A, t, i) => {
|
|
97
97
|
const {
|
|
98
98
|
obj: n,
|
|
99
99
|
k: o
|
|
100
|
-
} =
|
|
100
|
+
} = QA(e, A, Object);
|
|
101
101
|
n[o] = n[o] || [], n[o].push(t);
|
|
102
|
-
},
|
|
102
|
+
}, DA = (e, A) => {
|
|
103
103
|
const {
|
|
104
104
|
obj: t,
|
|
105
105
|
k: i
|
|
106
|
-
} =
|
|
106
|
+
} = QA(e, A);
|
|
107
107
|
if (t && Object.prototype.hasOwnProperty.call(t, i))
|
|
108
108
|
return t[i];
|
|
109
109
|
}, ri = (e, A, t) => {
|
|
110
|
-
const i =
|
|
111
|
-
return i !== void 0 ? i :
|
|
110
|
+
const i = DA(e, t);
|
|
111
|
+
return i !== void 0 ? i : DA(A, t);
|
|
112
112
|
}, gt = (e, A, t) => {
|
|
113
113
|
for (const i in A)
|
|
114
114
|
i !== "__proto__" && i !== "constructor" && (i in e ? h(e[i]) || e[i] instanceof String || h(A[i]) || A[i] instanceof String ? t && (e[i] = A[i]) : gt(e[i], A[i], t) : e[i] = A[i]);
|
|
115
115
|
return e;
|
|
116
|
-
},
|
|
116
|
+
}, tA = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
117
117
|
var Ci = {
|
|
118
118
|
"&": "&",
|
|
119
119
|
"<": "<",
|
|
@@ -166,7 +166,7 @@ const Ii = [" ", ",", "?", "!", ";"], gi = new ai(20), Ei = (e, A, t) => {
|
|
|
166
166
|
n = r;
|
|
167
167
|
}
|
|
168
168
|
return n;
|
|
169
|
-
},
|
|
169
|
+
}, uA = (e) => e == null ? void 0 : e.replace("_", "-"), ci = {
|
|
170
170
|
type: "logger",
|
|
171
171
|
log(e) {
|
|
172
172
|
this.output("log", e);
|
|
@@ -182,7 +182,7 @@ const Ii = [" ", ",", "?", "!", ";"], gi = new ai(20), Ei = (e, A, t) => {
|
|
|
182
182
|
(i = (t = console == null ? void 0 : console[e]) == null ? void 0 : t.apply) == null || i.call(t, console, A);
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
class
|
|
185
|
+
class kA {
|
|
186
186
|
constructor(A, t = {}) {
|
|
187
187
|
this.init(A, t);
|
|
188
188
|
}
|
|
@@ -205,16 +205,16 @@ class RA {
|
|
|
205
205
|
return n && !this.debug ? null : (h(A[0]) && (A[0] = `${i}${this.prefix} ${A[0]}`), this.logger[t](A));
|
|
206
206
|
}
|
|
207
207
|
create(A) {
|
|
208
|
-
return new
|
|
208
|
+
return new kA(this.logger, l({
|
|
209
209
|
prefix: `${this.prefix}:${A}:`
|
|
210
210
|
}, this.options));
|
|
211
211
|
}
|
|
212
212
|
clone(A) {
|
|
213
|
-
return A = A || this.options, A.prefix = A.prefix || this.prefix, new
|
|
213
|
+
return A = A || this.options, A.prefix = A.prefix || this.prefix, new kA(this.logger, A);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
class
|
|
216
|
+
var F = new kA();
|
|
217
|
+
class HA {
|
|
218
218
|
constructor() {
|
|
219
219
|
this.observers = {};
|
|
220
220
|
}
|
|
@@ -244,7 +244,7 @@ class jA {
|
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
class Ke extends
|
|
247
|
+
class Ke extends HA {
|
|
248
248
|
constructor(A, t = {
|
|
249
249
|
ns: ["translation"],
|
|
250
250
|
defaultNS: "translation"
|
|
@@ -263,7 +263,7 @@ class Ke extends jA {
|
|
|
263
263
|
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, r = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
264
264
|
let C;
|
|
265
265
|
A.indexOf(".") > -1 ? C = A.split(".") : (C = [A, t], i && (Array.isArray(i) ? C.push(...i) : h(i) && o ? C.push(...i.split(o)) : C.push(i)));
|
|
266
|
-
const s =
|
|
266
|
+
const s = DA(this.data, C);
|
|
267
267
|
return !s && !t && !i && A.indexOf(".") > -1 && (A = C[0], t = C[1], i = C.slice(2).join(".")), s || !r || !h(i) ? s : ne((I = (a = this.data) == null ? void 0 : a[A]) == null ? void 0 : I[t], i, o);
|
|
268
268
|
}
|
|
269
269
|
addResource(A, t, i, n, o = {
|
|
@@ -288,7 +288,7 @@ class Ke extends jA {
|
|
|
288
288
|
}) {
|
|
289
289
|
let C = [A, t];
|
|
290
290
|
A.indexOf(".") > -1 && (C = A.split("."), n = i, i = t, t = C[1]), this.addNamespaces(t);
|
|
291
|
-
let s =
|
|
291
|
+
let s = DA(this.data, C) || {};
|
|
292
292
|
r.skipCopy || (i = JSON.parse(JSON.stringify(i))), n ? gt(s, i, o) : s = l(l({}, s), i), Se(this.data, C, s), r.silent || this.emit("added", A, t, i);
|
|
293
293
|
}
|
|
294
294
|
removeResourceBundle(A, t) {
|
|
@@ -324,9 +324,9 @@ var Et = {
|
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
const ve = {}, De = (e) => !h(e) && typeof e != "boolean" && typeof e != "number";
|
|
327
|
-
class
|
|
327
|
+
class RA extends HA {
|
|
328
328
|
constructor(A, t = {}) {
|
|
329
|
-
super(), ii(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], A, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger =
|
|
329
|
+
super(), ii(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], A, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = F.create("translator");
|
|
330
330
|
}
|
|
331
331
|
changeLanguage(A) {
|
|
332
332
|
A && (this.language = A);
|
|
@@ -389,68 +389,68 @@ class LA extends jA {
|
|
|
389
389
|
} : C;
|
|
390
390
|
const Q = this.resolve(A, n);
|
|
391
391
|
let c = Q == null ? void 0 : Q.res;
|
|
392
|
-
const d = (Q == null ? void 0 : Q.usedKey) || C, u = (Q == null ? void 0 : Q.exactUsedKey) || C,
|
|
392
|
+
const d = (Q == null ? void 0 : Q.usedKey) || C, u = (Q == null ? void 0 : Q.exactUsedKey) || C, q = ["[object Number]", "[object Function]", "[object RegExp]"], M = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, p = !this.i18nFormat || this.i18nFormat.handleAsObject, w = n.count !== void 0 && !h(n.count), J = RA.hasDefaultValue(n), D = w ? this.pluralResolver.getSuffix(g, n.count, n) : "", z = n.ordinal && w ? this.pluralResolver.getSuffix(g, n.count, {
|
|
393
393
|
ordinal: !1
|
|
394
|
-
}) : "",
|
|
394
|
+
}) : "", j = w && !n.ordinal && n.count === 0, K = j && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${D}`] || n[`defaultValue${z}`] || n.defaultValue;
|
|
395
395
|
let v = c;
|
|
396
|
-
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
396
|
+
p && !c && J && (v = K);
|
|
397
|
+
const ZA = De(v), W = Object.prototype.toString.apply(v);
|
|
398
|
+
if (p && v && ZA && q.indexOf(W) < 0 && !(h(M) && Array.isArray(v))) {
|
|
399
399
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
400
400
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
401
|
-
const
|
|
401
|
+
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(d, v, L(l({}, n), {
|
|
402
402
|
ns: s
|
|
403
403
|
})) : `key '${C} (${this.language})' returned an object instead of string.`;
|
|
404
|
-
return o ? (Q.res =
|
|
404
|
+
return o ? (Q.res = f, Q.usedParams = this.getUsedParamsDetails(n), Q) : f;
|
|
405
405
|
}
|
|
406
406
|
if (r) {
|
|
407
|
-
const
|
|
408
|
-
for (const
|
|
409
|
-
if (Object.prototype.hasOwnProperty.call(v,
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
defaultValue: De(K) ? K[
|
|
407
|
+
const f = Array.isArray(v), N = f ? [] : {}, he = f ? u : d;
|
|
408
|
+
for (const x in v)
|
|
409
|
+
if (Object.prototype.hasOwnProperty.call(v, x)) {
|
|
410
|
+
const Z = `${he}${r}${x}`;
|
|
411
|
+
J && !c ? N[x] = this.translate(Z, L(l({}, n), {
|
|
412
|
+
defaultValue: De(K) ? K[x] : void 0,
|
|
413
413
|
joinArrays: !1,
|
|
414
414
|
ns: s
|
|
415
|
-
})) :
|
|
415
|
+
})) : N[x] = this.translate(Z, L(l({}, n), {
|
|
416
416
|
joinArrays: !1,
|
|
417
417
|
ns: s
|
|
418
|
-
})),
|
|
418
|
+
})), N[x] === Z && (N[x] = v[x]);
|
|
419
419
|
}
|
|
420
|
-
c =
|
|
420
|
+
c = N;
|
|
421
421
|
}
|
|
422
|
-
} else if (
|
|
423
|
-
c = c.join(
|
|
422
|
+
} else if (p && h(M) && Array.isArray(c))
|
|
423
|
+
c = c.join(M), c && (c = this.extendTranslation(c, A, n, i));
|
|
424
424
|
else {
|
|
425
|
-
let
|
|
426
|
-
!this.isValidLookup(c) &&
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
if (this.logger.log(
|
|
430
|
-
const
|
|
425
|
+
let f = !1, N = !1;
|
|
426
|
+
!this.isValidLookup(c) && J && (f = !0, c = K), this.isValidLookup(c) || (N = !0, c = C);
|
|
427
|
+
const x = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : c, Z = J && K !== c && this.options.updateMissing;
|
|
428
|
+
if (N || f || Z) {
|
|
429
|
+
if (this.logger.log(Z ? "updateKey" : "missingKey", g, a, C, Z ? K : c), r) {
|
|
430
|
+
const Y = this.resolve(C, L(l({}, n), {
|
|
431
431
|
keySeparator: !1
|
|
432
432
|
}));
|
|
433
|
-
|
|
433
|
+
Y && Y.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
434
434
|
}
|
|
435
|
-
let
|
|
436
|
-
const
|
|
437
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
438
|
-
for (let
|
|
439
|
-
|
|
440
|
-
else this.options.saveMissingTo === "all" ?
|
|
441
|
-
const me = (
|
|
435
|
+
let aA = [];
|
|
436
|
+
const fA = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
437
|
+
if (this.options.saveMissingTo === "fallback" && fA && fA[0])
|
|
438
|
+
for (let Y = 0; Y < fA.length; Y++)
|
|
439
|
+
aA.push(fA[Y]);
|
|
440
|
+
else this.options.saveMissingTo === "all" ? aA = this.languageUtils.toResolveHierarchy(n.lng || this.language) : aA.push(n.lng || this.language);
|
|
441
|
+
const me = (Y, T, IA) => {
|
|
442
442
|
var qe;
|
|
443
|
-
const pe =
|
|
444
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
443
|
+
const pe = J && IA !== c ? IA : x;
|
|
444
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(Y, a, T, pe, Z, n) : (qe = this.backendConnector) != null && qe.saveMissing && this.backendConnector.saveMissing(Y, a, T, pe, Z, n), this.emit("missingKey", Y, a, T, c);
|
|
445
445
|
};
|
|
446
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
me([
|
|
446
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && w ? aA.forEach((Y) => {
|
|
447
|
+
const T = this.pluralResolver.getSuffixes(Y, n);
|
|
448
|
+
j && n[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach((IA) => {
|
|
449
|
+
me([Y], C + IA, n[`defaultValue${IA}`] || K);
|
|
450
450
|
});
|
|
451
|
-
}) : me(
|
|
451
|
+
}) : me(aA, C, K));
|
|
452
452
|
}
|
|
453
|
-
c = this.extendTranslation(c, A, n, Q, i),
|
|
453
|
+
c = this.extendTranslation(c, A, n, Q, i), N && c === C && this.options.appendNamespaceToMissingKey && (c = `${a}${I}${C}`), (N || f) && this.options.parseMissingKeyHandler && (c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${a}${I}${C}` : C, f ? c : void 0, n));
|
|
454
454
|
}
|
|
455
455
|
return o ? (Q.res = c, Q.usedParams = this.getUsedParamsDetails(n), Q) : c;
|
|
456
456
|
}
|
|
@@ -494,26 +494,26 @@ class LA extends jA {
|
|
|
494
494
|
this.options.fallbackNS && (g = g.concat(this.options.fallbackNS));
|
|
495
495
|
const B = t.count !== void 0 && !h(t.count), Q = B && !t.ordinal && t.count === 0, c = t.context !== void 0 && (h(t.context) || typeof t.context == "number") && t.context !== "", d = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
496
496
|
g.forEach((u) => {
|
|
497
|
-
var
|
|
498
|
-
this.isValidLookup(i) || (C = u, !ve[`${d[0]}-${u}`] && ((
|
|
497
|
+
var q, M;
|
|
498
|
+
this.isValidLookup(i) || (C = u, !ve[`${d[0]}-${u}`] && ((q = this.utils) != null && q.hasLoadedNamespace) && !((M = this.utils) != null && M.hasLoadedNamespace(C)) && (ve[`${d[0]}-${u}`] = !0, this.logger.warn(`key "${n}" for languages "${d.join(", ")}" won't get resolved as namespace "${C}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), d.forEach((p) => {
|
|
499
499
|
var D;
|
|
500
500
|
if (this.isValidLookup(i)) return;
|
|
501
|
-
r =
|
|
502
|
-
const
|
|
501
|
+
r = p;
|
|
502
|
+
const w = [I];
|
|
503
503
|
if ((D = this.i18nFormat) != null && D.addLookupKeys)
|
|
504
|
-
this.i18nFormat.addLookupKeys(
|
|
504
|
+
this.i18nFormat.addLookupKeys(w, I, p, u, t);
|
|
505
505
|
else {
|
|
506
506
|
let z;
|
|
507
|
-
B && (z = this.pluralResolver.getSuffix(
|
|
508
|
-
const
|
|
509
|
-
if (B && (
|
|
507
|
+
B && (z = this.pluralResolver.getSuffix(p, t.count, t));
|
|
508
|
+
const j = `${this.options.pluralSeparator}zero`, K = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
509
|
+
if (B && (w.push(I + z), t.ordinal && z.indexOf(K) === 0 && w.push(I + z.replace(K, this.options.pluralSeparator)), Q && w.push(I + j)), c) {
|
|
510
510
|
const v = `${I}${this.options.contextSeparator}${t.context}`;
|
|
511
|
-
|
|
511
|
+
w.push(v), B && (w.push(v + z), t.ordinal && z.indexOf(K) === 0 && w.push(v + z.replace(K, this.options.pluralSeparator)), Q && w.push(v + j));
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
let
|
|
515
|
-
for (;
|
|
516
|
-
this.isValidLookup(i) || (o =
|
|
514
|
+
let J;
|
|
515
|
+
for (; J = w.pop(); )
|
|
516
|
+
this.isValidLookup(i) || (o = J, i = this.getResource(p, u, J, t));
|
|
517
517
|
}));
|
|
518
518
|
});
|
|
519
519
|
}), {
|
|
@@ -551,15 +551,15 @@ class LA extends jA {
|
|
|
551
551
|
}
|
|
552
552
|
class ke {
|
|
553
553
|
constructor(A) {
|
|
554
|
-
this.options = A, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
554
|
+
this.options = A, this.supportedLngs = this.options.supportedLngs || !1, this.logger = F.create("languageUtils");
|
|
555
555
|
}
|
|
556
556
|
getScriptPartFromCode(A) {
|
|
557
|
-
if (A =
|
|
557
|
+
if (A = uA(A), !A || A.indexOf("-") < 0) return null;
|
|
558
558
|
const t = A.split("-");
|
|
559
559
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
560
560
|
}
|
|
561
561
|
getLanguagePartFromCode(A) {
|
|
562
|
-
if (A =
|
|
562
|
+
if (A = uA(A), !A || A.indexOf("-") < 0) return A;
|
|
563
563
|
const t = A.split("-");
|
|
564
564
|
return this.formatLanguageCode(t[0]);
|
|
565
565
|
}
|
|
@@ -628,7 +628,7 @@ const Re = {
|
|
|
628
628
|
};
|
|
629
629
|
class Qi {
|
|
630
630
|
constructor(A, t = {}) {
|
|
631
|
-
this.languageUtils = A, this.options = t, this.logger =
|
|
631
|
+
this.languageUtils = A, this.options = t, this.logger = F.create("pluralResolver"), this.pluralRulesCache = {};
|
|
632
632
|
}
|
|
633
633
|
addRule(A, t) {
|
|
634
634
|
this.rules[A] = t;
|
|
@@ -637,7 +637,7 @@ class Qi {
|
|
|
637
637
|
this.pluralRulesCache = {};
|
|
638
638
|
}
|
|
639
639
|
getRule(A, t = {}) {
|
|
640
|
-
const i =
|
|
640
|
+
const i = uA(A === "dev" ? "en" : A), n = t.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({
|
|
641
641
|
cleanedCode: i,
|
|
642
642
|
type: n
|
|
643
643
|
});
|
|
@@ -680,7 +680,7 @@ const Ge = (e, A, t, i = ".", n = !0) => {
|
|
|
680
680
|
class Bi {
|
|
681
681
|
constructor(A = {}) {
|
|
682
682
|
var t;
|
|
683
|
-
this.logger =
|
|
683
|
+
this.logger = F.create("interpolator"), this.options = A, this.format = ((t = A == null ? void 0 : A.interpolation) == null ? void 0 : t.format) || ((i) => i), this.init(A);
|
|
684
684
|
}
|
|
685
685
|
init(A = {}) {
|
|
686
686
|
A.interpolation || (A.interpolation = {
|
|
@@ -702,10 +702,10 @@ class Bi {
|
|
|
702
702
|
nestingSuffix: c,
|
|
703
703
|
nestingSuffixEscaped: d,
|
|
704
704
|
nestingOptionsSeparator: u,
|
|
705
|
-
maxReplaces:
|
|
706
|
-
alwaysFormat:
|
|
705
|
+
maxReplaces: q,
|
|
706
|
+
alwaysFormat: M
|
|
707
707
|
} = A.interpolation;
|
|
708
|
-
this.escape = t !== void 0 ? t : si, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ?
|
|
708
|
+
this.escape = t !== void 0 ? t : si, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? tA(o) : r || "{{", this.suffix = C ? tA(C) : s || "}}", this.formatSeparator = a || ",", this.unescapePrefix = I ? "" : g || "-", this.unescapeSuffix = this.unescapePrefix ? "" : I || "", this.nestingPrefix = B ? tA(B) : Q || tA("$t("), this.nestingSuffix = c ? tA(c) : d || tA(")"), this.nestingOptionsSeparator = u || ",", this.maxReplaces = q || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
|
709
709
|
}
|
|
710
710
|
reset() {
|
|
711
711
|
this.options && this.init(this.options);
|
|
@@ -719,13 +719,13 @@ class Bi {
|
|
|
719
719
|
let o, r, C;
|
|
720
720
|
const s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, a = (c) => {
|
|
721
721
|
if (c.indexOf(this.formatSeparator) < 0) {
|
|
722
|
-
const
|
|
723
|
-
return this.alwaysFormat ? this.format(
|
|
722
|
+
const M = Ge(t, s, c, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
723
|
+
return this.alwaysFormat ? this.format(M, void 0, i, L(l(l({}, n), t), {
|
|
724
724
|
interpolationkey: c
|
|
725
|
-
})) :
|
|
725
|
+
})) : M;
|
|
726
726
|
}
|
|
727
|
-
const d = c.split(this.formatSeparator), u = d.shift().trim(),
|
|
728
|
-
return this.format(Ge(t, s, u, this.options.keySeparator, this.options.ignoreJSONStructure),
|
|
727
|
+
const d = c.split(this.formatSeparator), u = d.shift().trim(), q = d.join(this.formatSeparator).trim();
|
|
728
|
+
return this.format(Ge(t, s, u, this.options.keySeparator, this.options.ignoreJSONStructure), q, i, L(l(l({}, n), t), {
|
|
729
729
|
interpolationkey: u
|
|
730
730
|
}));
|
|
731
731
|
};
|
|
@@ -742,8 +742,8 @@ class Bi {
|
|
|
742
742
|
const d = o[1].trim();
|
|
743
743
|
if (r = a(d), r === void 0)
|
|
744
744
|
if (typeof I == "function") {
|
|
745
|
-
const
|
|
746
|
-
r = h(
|
|
745
|
+
const q = I(A, o, n);
|
|
746
|
+
r = h(q) ? q : "";
|
|
747
747
|
} else if (n && Object.prototype.hasOwnProperty.call(n, d))
|
|
748
748
|
r = "";
|
|
749
749
|
else if (g) {
|
|
@@ -815,12 +815,12 @@ const ui = (e) => {
|
|
|
815
815
|
}));
|
|
816
816
|
const r = i + JSON.stringify(o);
|
|
817
817
|
let C = A[r];
|
|
818
|
-
return C || (C = e(
|
|
818
|
+
return C || (C = e(uA(i), n), A[r] = C), C(t);
|
|
819
819
|
};
|
|
820
|
-
}, di = (e) => (A, t, i) => e(
|
|
820
|
+
}, di = (e) => (A, t, i) => e(uA(t), i)(A);
|
|
821
821
|
class li {
|
|
822
822
|
constructor(A = {}) {
|
|
823
|
-
this.logger =
|
|
823
|
+
this.logger = F.create("formatter"), this.options = A, this.init(A);
|
|
824
824
|
}
|
|
825
825
|
init(A, t = {
|
|
826
826
|
interpolation: {}
|
|
@@ -888,10 +888,10 @@ class li {
|
|
|
888
888
|
const hi = (e, A) => {
|
|
889
889
|
e.pending[A] !== void 0 && (delete e.pending[A], e.pendingCount--);
|
|
890
890
|
};
|
|
891
|
-
class mi extends
|
|
891
|
+
class mi extends HA {
|
|
892
892
|
constructor(A, t, i, n = {}) {
|
|
893
893
|
var o, r;
|
|
894
|
-
super(), this.backend = A, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = n, this.logger =
|
|
894
|
+
super(), this.backend = A, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = n, this.logger = F.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], (r = (o = this.backend) == null ? void 0 : o.init) == null || r.call(o, i, n.backend, n);
|
|
895
895
|
}
|
|
896
896
|
queueLoad(A, t, i, n) {
|
|
897
897
|
const o = {}, r = {}, C = {}, s = {};
|
|
@@ -1079,15 +1079,15 @@ const He = () => ({
|
|
|
1079
1079
|
}), je = (e) => {
|
|
1080
1080
|
var A, t;
|
|
1081
1081
|
return h(e.ns) && (e.ns = [e.ns]), h(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), h(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), ((t = (A = e.supportedLngs) == null ? void 0 : A.indexOf) == null ? void 0 : t.call(A, "cimode")) < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e;
|
|
1082
|
-
},
|
|
1082
|
+
}, MA = () => {
|
|
1083
1083
|
}, pi = (e) => {
|
|
1084
1084
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
|
|
1085
1085
|
typeof e[t] == "function" && (e[t] = e[t].bind(e));
|
|
1086
1086
|
});
|
|
1087
1087
|
};
|
|
1088
|
-
class
|
|
1088
|
+
class dA extends HA {
|
|
1089
1089
|
constructor(A = {}, t) {
|
|
1090
|
-
if (super(), this.options = je(A), this.services = {}, this.logger =
|
|
1090
|
+
if (super(), this.options = je(A), this.services = {}, this.logger = F, this.modules = {
|
|
1091
1091
|
external: []
|
|
1092
1092
|
}, pi(this), t && !this.isInitialized && !A.isClone) {
|
|
1093
1093
|
if (!this.options.initAsync)
|
|
@@ -1103,26 +1103,26 @@ class lA extends jA {
|
|
|
1103
1103
|
this.options = l(l(l({}, i), this.options), je(A)), this.options.interpolation = l(l({}, i.interpolation), this.options.interpolation), A.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = A.keySeparator), A.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = A.nsSeparator);
|
|
1104
1104
|
const n = (a) => a ? typeof a == "function" ? new a() : a : null;
|
|
1105
1105
|
if (!this.options.isClone) {
|
|
1106
|
-
this.modules.logger ?
|
|
1106
|
+
this.modules.logger ? F.init(n(this.modules.logger), this.options) : F.init(null, this.options);
|
|
1107
1107
|
let a;
|
|
1108
1108
|
this.modules.formatter ? a = this.modules.formatter : a = li;
|
|
1109
1109
|
const I = new ke(this.options);
|
|
1110
1110
|
this.store = new Ke(this.options.resources, this.options);
|
|
1111
1111
|
const g = this.services;
|
|
1112
|
-
g.logger =
|
|
1112
|
+
g.logger = F, g.resourceStore = this.store, g.languageUtils = I, g.pluralResolver = new Qi(I, {
|
|
1113
1113
|
prepend: this.options.pluralSeparator,
|
|
1114
1114
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1115
1115
|
}), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), a && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (g.formatter = n(a), g.formatter.init && g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new Bi(this.options), g.utils = {
|
|
1116
1116
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1117
1117
|
}, g.backendConnector = new mi(n(this.modules.backend), g.resourceStore, g, this.options), g.backendConnector.on("*", (Q, ...c) => {
|
|
1118
1118
|
this.emit(Q, ...c);
|
|
1119
|
-
}), this.modules.languageDetector && (g.languageDetector = n(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = n(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new
|
|
1119
|
+
}), this.modules.languageDetector && (g.languageDetector = n(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = n(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new RA(this.services, this.options), this.translator.on("*", (Q, ...c) => {
|
|
1120
1120
|
this.emit(Q, ...c);
|
|
1121
1121
|
}), this.modules.external.forEach((Q) => {
|
|
1122
1122
|
Q.init && Q.init(this);
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
if (this.format = this.options.interpolation.format, t || (t =
|
|
1125
|
+
if (this.format = this.options.interpolation.format, t || (t = MA), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
1126
1126
|
const a = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
1127
1127
|
a.length > 0 && a[0] !== "dev" && (this.options.lng = a[0]);
|
|
1128
1128
|
}
|
|
@@ -1131,7 +1131,7 @@ class lA extends jA {
|
|
|
1131
1131
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((a) => {
|
|
1132
1132
|
this[a] = (...I) => (this.store[a](...I), this);
|
|
1133
1133
|
});
|
|
1134
|
-
const C =
|
|
1134
|
+
const C = gA(), s = () => {
|
|
1135
1135
|
const a = (I, g) => {
|
|
1136
1136
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), C.resolve(g), t(I, g);
|
|
1137
1137
|
};
|
|
@@ -1140,7 +1140,7 @@ class lA extends jA {
|
|
|
1140
1140
|
};
|
|
1141
1141
|
return this.options.resources || !this.options.initAsync ? s() : setTimeout(s, 0), C;
|
|
1142
1142
|
}
|
|
1143
|
-
loadResources(A, t =
|
|
1143
|
+
loadResources(A, t = MA) {
|
|
1144
1144
|
var o, r;
|
|
1145
1145
|
let i = t;
|
|
1146
1146
|
const n = h(A) ? A : this.language;
|
|
@@ -1159,8 +1159,8 @@ class lA extends jA {
|
|
|
1159
1159
|
i(null);
|
|
1160
1160
|
}
|
|
1161
1161
|
reloadResources(A, t, i) {
|
|
1162
|
-
const n =
|
|
1163
|
-
return typeof A == "function" && (i = A, A = void 0), typeof t == "function" && (i = t, t = void 0), A || (A = this.languages), t || (t = this.options.ns), i || (i =
|
|
1162
|
+
const n = gA();
|
|
1163
|
+
return typeof A == "function" && (i = A, A = void 0), typeof t == "function" && (i = t, t = void 0), A || (A = this.languages), t || (t = this.options.ns), i || (i = MA), this.services.backendConnector.reload(A, t, (o) => {
|
|
1164
1164
|
n.resolve(), i(o);
|
|
1165
1165
|
}), n;
|
|
1166
1166
|
}
|
|
@@ -1183,7 +1183,7 @@ class lA extends jA {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
changeLanguage(A, t) {
|
|
1185
1185
|
this.isLanguageChangingTo = A;
|
|
1186
|
-
const i =
|
|
1186
|
+
const i = gA();
|
|
1187
1187
|
this.emit("languageChanging", A);
|
|
1188
1188
|
const n = (C) => {
|
|
1189
1189
|
this.language = C, this.languages = this.services.languageUtils.toResolveHierarchy(C), this.resolvedLanguage = void 0, this.setResolvedLanguage(C);
|
|
@@ -1238,7 +1238,7 @@ class lA extends jA {
|
|
|
1238
1238
|
return !!(this.hasResourceBundle(i, A) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, A) && (!n || r(o, A)));
|
|
1239
1239
|
}
|
|
1240
1240
|
loadNamespaces(A, t) {
|
|
1241
|
-
const i =
|
|
1241
|
+
const i = gA();
|
|
1242
1242
|
return this.options.ns ? (h(A) && (A = [A]), A.forEach((n) => {
|
|
1243
1243
|
this.options.ns.indexOf(n) < 0 && this.options.ns.push(n);
|
|
1244
1244
|
}), this.loadResources((n) => {
|
|
@@ -1246,7 +1246,7 @@ class lA extends jA {
|
|
|
1246
1246
|
}), i) : (t && t(), Promise.resolve());
|
|
1247
1247
|
}
|
|
1248
1248
|
loadLanguages(A, t) {
|
|
1249
|
-
const i =
|
|
1249
|
+
const i = gA();
|
|
1250
1250
|
h(A) && (A = [A]);
|
|
1251
1251
|
const n = this.options.preload || [], o = A.filter((r) => n.indexOf(r) < 0 && this.services.languageUtils.isSupportedCode(r));
|
|
1252
1252
|
return o.length ? (this.options.preload = n.concat(o), this.loadResources((r) => {
|
|
@@ -1268,14 +1268,14 @@ class lA extends jA {
|
|
|
1268
1268
|
return A.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(A)) > -1 || A.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1269
1269
|
}
|
|
1270
1270
|
static createInstance(A = {}, t) {
|
|
1271
|
-
return new
|
|
1271
|
+
return new dA(A, t);
|
|
1272
1272
|
}
|
|
1273
|
-
cloneInstance(A = {}, t =
|
|
1273
|
+
cloneInstance(A = {}, t = MA) {
|
|
1274
1274
|
const i = A.forkResourceStore;
|
|
1275
1275
|
i && delete A.forkResourceStore;
|
|
1276
1276
|
const n = L(l(l({}, this.options), A), {
|
|
1277
1277
|
isClone: !0
|
|
1278
|
-
}), o = new
|
|
1278
|
+
}), o = new dA(n);
|
|
1279
1279
|
if ((A.debug !== void 0 || A.prefix !== void 0) && (o.logger = o.logger.clone(A)), ["store", "services", "language"].forEach((C) => {
|
|
1280
1280
|
o[C] = this[C];
|
|
1281
1281
|
}), o.services = l({}, this.services), o.services.utils = {
|
|
@@ -1284,7 +1284,7 @@ class lA extends jA {
|
|
|
1284
1284
|
const C = Object.keys(this.store.data).reduce((s, a) => (s[a] = l({}, this.store.data[a]), s[a] = Object.keys(s[a]).reduce((I, g) => (I[g] = l({}, s[a][g]), I), s[a]), s), {});
|
|
1285
1285
|
o.store = new Ke(C, n), o.services.resourceStore = o.store;
|
|
1286
1286
|
}
|
|
1287
|
-
return o.translator = new
|
|
1287
|
+
return o.translator = new RA(o.services, n), o.translator.on("*", (C, ...s) => {
|
|
1288
1288
|
o.emit(C, ...s);
|
|
1289
1289
|
}), o.init(n, t), o.translator.options = n, o.translator.backendConnector.services.utils = {
|
|
1290
1290
|
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
@@ -1300,8 +1300,8 @@ class lA extends jA {
|
|
|
1300
1300
|
};
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
const S =
|
|
1304
|
-
S.createInstance =
|
|
1303
|
+
const S = dA.createInstance();
|
|
1304
|
+
S.createInstance = dA.createInstance;
|
|
1305
1305
|
S.createInstance;
|
|
1306
1306
|
S.dir;
|
|
1307
1307
|
S.init;
|
|
@@ -1947,18 +1947,18 @@ var BE = {
|
|
|
1947
1947
|
return i;
|
|
1948
1948
|
}
|
|
1949
1949
|
};
|
|
1950
|
-
let
|
|
1950
|
+
let iA = null;
|
|
1951
1951
|
const be = () => {
|
|
1952
|
-
if (
|
|
1952
|
+
if (iA !== null) return iA;
|
|
1953
1953
|
try {
|
|
1954
|
-
if (
|
|
1954
|
+
if (iA = typeof window != "undefined" && window.localStorage !== null, !iA)
|
|
1955
1955
|
return !1;
|
|
1956
1956
|
const e = "i18next.translate.boo";
|
|
1957
1957
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
1958
1958
|
} catch (e) {
|
|
1959
|
-
|
|
1959
|
+
iA = !1;
|
|
1960
1960
|
}
|
|
1961
|
-
return
|
|
1961
|
+
return iA;
|
|
1962
1962
|
};
|
|
1963
1963
|
var lE = {
|
|
1964
1964
|
name: "localStorage",
|
|
@@ -1978,18 +1978,18 @@ var lE = {
|
|
|
1978
1978
|
t && be() && window.localStorage.setItem(t, e);
|
|
1979
1979
|
}
|
|
1980
1980
|
};
|
|
1981
|
-
let
|
|
1981
|
+
let nA = null;
|
|
1982
1982
|
const xe = () => {
|
|
1983
|
-
if (
|
|
1983
|
+
if (nA !== null) return nA;
|
|
1984
1984
|
try {
|
|
1985
|
-
if (
|
|
1985
|
+
if (nA = typeof window != "undefined" && window.sessionStorage !== null, !nA)
|
|
1986
1986
|
return !1;
|
|
1987
1987
|
const e = "i18next.translate.boo";
|
|
1988
1988
|
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
1989
1989
|
} catch (e) {
|
|
1990
|
-
|
|
1990
|
+
nA = !1;
|
|
1991
1991
|
}
|
|
1992
|
-
return
|
|
1992
|
+
return nA;
|
|
1993
1993
|
};
|
|
1994
1994
|
var hE = {
|
|
1995
1995
|
name: "sessionStorage",
|
|
@@ -2151,43 +2151,43 @@ function yE(e, A, t) {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
function zE(e) {
|
|
2153
2153
|
var A = SE(e, "string");
|
|
2154
|
-
return
|
|
2154
|
+
return _(A) == "symbol" ? A : A + "";
|
|
2155
2155
|
}
|
|
2156
2156
|
function SE(e, A) {
|
|
2157
|
-
if (
|
|
2157
|
+
if (_(e) != "object" || !e) return e;
|
|
2158
2158
|
var t = e[Symbol.toPrimitive];
|
|
2159
2159
|
if (t !== void 0) {
|
|
2160
2160
|
var i = t.call(e, A);
|
|
2161
|
-
if (
|
|
2161
|
+
if (_(i) != "object") return i;
|
|
2162
2162
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2163
2163
|
}
|
|
2164
2164
|
return (A === "string" ? String : Number)(e);
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function _(e) {
|
|
2167
2167
|
"@babel/helpers - typeof";
|
|
2168
|
-
return
|
|
2168
|
+
return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
|
|
2169
2169
|
return typeof A;
|
|
2170
2170
|
} : function(A) {
|
|
2171
2171
|
return A && typeof Symbol == "function" && A.constructor === Symbol && A !== Symbol.prototype ? "symbol" : typeof A;
|
|
2172
|
-
},
|
|
2172
|
+
}, _(e);
|
|
2173
2173
|
}
|
|
2174
|
-
var
|
|
2175
|
-
typeof global != "undefined" && global.fetch ?
|
|
2176
|
-
var
|
|
2177
|
-
ut() && (typeof global != "undefined" && global.XMLHttpRequest ?
|
|
2178
|
-
var
|
|
2179
|
-
typeof ActiveXObject == "function" && (typeof global != "undefined" && global.ActiveXObject ?
|
|
2180
|
-
typeof
|
|
2181
|
-
if (!
|
|
2174
|
+
var U = typeof fetch == "function" ? fetch : void 0;
|
|
2175
|
+
typeof global != "undefined" && global.fetch ? U = global.fetch : typeof window != "undefined" && window.fetch && (U = window.fetch);
|
|
2176
|
+
var lA;
|
|
2177
|
+
ut() && (typeof global != "undefined" && global.XMLHttpRequest ? lA = global.XMLHttpRequest : typeof window != "undefined" && window.XMLHttpRequest && (lA = window.XMLHttpRequest));
|
|
2178
|
+
var LA;
|
|
2179
|
+
typeof ActiveXObject == "function" && (typeof global != "undefined" && global.ActiveXObject ? LA = global.ActiveXObject : typeof window != "undefined" && window.ActiveXObject && (LA = window.ActiveXObject));
|
|
2180
|
+
typeof U != "function" && (U = void 0);
|
|
2181
|
+
if (!U && !lA && !LA)
|
|
2182
2182
|
try {
|
|
2183
2183
|
import("./browser-ponyfill-BxQPfTD2.js").then((e) => e.b).then(function(e) {
|
|
2184
|
-
|
|
2184
|
+
U = e.default;
|
|
2185
2185
|
}).catch(function() {
|
|
2186
2186
|
});
|
|
2187
2187
|
} catch (e) {
|
|
2188
2188
|
}
|
|
2189
2189
|
var re = function(A, t) {
|
|
2190
|
-
if (t &&
|
|
2190
|
+
if (t && _(t) === "object") {
|
|
2191
2191
|
var i = "";
|
|
2192
2192
|
for (var n in t)
|
|
2193
2193
|
i += "&" + encodeURIComponent(n) + "=" + encodeURIComponent(t[n]);
|
|
@@ -2214,7 +2214,7 @@ var re = function(A, t) {
|
|
|
2214
2214
|
return;
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
|
-
typeof fetch == "function" ? fetch(A, t).then(o).catch(i) :
|
|
2217
|
+
typeof fetch == "function" ? fetch(A, t).then(o).catch(i) : U(A, t).then(o).catch(i);
|
|
2218
2218
|
}, Ue = !1, KE = function(A, t, i, n) {
|
|
2219
2219
|
A.queryStringParams && (t = re(t, A.queryStringParams));
|
|
2220
2220
|
var o = Fe({}, typeof A.customHeaders == "function" ? A.customHeaders() : A.customHeaders);
|
|
@@ -2238,9 +2238,9 @@ var re = function(A, t) {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
2240
2240
|
}, vE = function(A, t, i, n) {
|
|
2241
|
-
i &&
|
|
2241
|
+
i && _(i) === "object" && (i = re("", i).slice(1)), A.queryStringParams && (t = re(t, A.queryStringParams));
|
|
2242
2242
|
try {
|
|
2243
|
-
var o =
|
|
2243
|
+
var o = lA ? new lA() : new LA("MSXML2.XMLHTTP.3.0");
|
|
2244
2244
|
o.open(i ? "POST" : "GET", t, 1), A.crossDomain || o.setRequestHeader("X-Requested-With", "XMLHttpRequest"), o.withCredentials = !!A.withCredentials, i && o.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), o.overrideMimeType && o.overrideMimeType("application/json");
|
|
2245
2245
|
var r = A.customHeaders;
|
|
2246
2246
|
if (r = typeof r == "function" ? r() : r, r)
|
|
@@ -2257,19 +2257,19 @@ var re = function(A, t) {
|
|
|
2257
2257
|
}
|
|
2258
2258
|
}, DE = function(A, t, i, n) {
|
|
2259
2259
|
if (typeof i == "function" && (n = i, i = void 0), n = n || function() {
|
|
2260
|
-
},
|
|
2260
|
+
}, U && t.indexOf("file:") !== 0)
|
|
2261
2261
|
return KE(A, t, i, n);
|
|
2262
2262
|
if (ut() || typeof ActiveXObject == "function")
|
|
2263
2263
|
return vE(A, t, i, n);
|
|
2264
2264
|
n(new Error("No fetch and no xhr implementation found!"));
|
|
2265
2265
|
};
|
|
2266
|
-
function
|
|
2266
|
+
function oA(e) {
|
|
2267
2267
|
"@babel/helpers - typeof";
|
|
2268
|
-
return
|
|
2268
|
+
return oA = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
|
|
2269
2269
|
return typeof A;
|
|
2270
2270
|
} : function(A) {
|
|
2271
2271
|
return A && typeof Symbol == "function" && A.constructor === Symbol && A !== Symbol.prototype ? "symbol" : typeof A;
|
|
2272
|
-
},
|
|
2272
|
+
}, oA(e);
|
|
2273
2273
|
}
|
|
2274
2274
|
function We(e, A) {
|
|
2275
2275
|
var t = Object.keys(e);
|
|
@@ -2309,14 +2309,14 @@ function dt(e, A, t) {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
function lt(e) {
|
|
2311
2311
|
var A = GE(e, "string");
|
|
2312
|
-
return
|
|
2312
|
+
return oA(A) == "symbol" ? A : A + "";
|
|
2313
2313
|
}
|
|
2314
2314
|
function GE(e, A) {
|
|
2315
|
-
if (
|
|
2315
|
+
if (oA(e) != "object" || !e) return e;
|
|
2316
2316
|
var t = e[Symbol.toPrimitive];
|
|
2317
2317
|
if (t !== void 0) {
|
|
2318
2318
|
var i = t.call(e, A);
|
|
2319
|
-
if (
|
|
2319
|
+
if (oA(i) != "object") return i;
|
|
2320
2320
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2321
2321
|
}
|
|
2322
2322
|
return String(e);
|
|
@@ -2360,7 +2360,7 @@ var OE = function() {
|
|
|
2360
2360
|
var r = setInterval(function() {
|
|
2361
2361
|
return i.reload();
|
|
2362
2362
|
}, this.options.reloadInterval);
|
|
2363
|
-
|
|
2363
|
+
oA(r) === "object" && typeof r.unref == "function" && r.unref();
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
2366
|
}, {
|
|
@@ -2511,13 +2511,13 @@ function mt(e, A) {
|
|
|
2511
2511
|
function jE(e = "dev") {
|
|
2512
2512
|
return Ce[e] || Ce.dev;
|
|
2513
2513
|
}
|
|
2514
|
-
let
|
|
2514
|
+
let JA = null, se = !1;
|
|
2515
2515
|
function pt(e) {
|
|
2516
2516
|
if (!["dev", "uat", "prod", "stag", "pilot"].includes(e))
|
|
2517
2517
|
throw new Error(
|
|
2518
2518
|
`Invalid mode: ${e}. Valid modes are 'dev', 'uat', 'prod', 'stag', 'pilot'.`
|
|
2519
2519
|
);
|
|
2520
|
-
|
|
2520
|
+
JA = e, se = !0;
|
|
2521
2521
|
try {
|
|
2522
2522
|
localStorage.setItem("currentMode", e);
|
|
2523
2523
|
} catch (A) {
|
|
@@ -2525,12 +2525,12 @@ function pt(e) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
2527
|
function NE() {
|
|
2528
|
-
if (se &&
|
|
2529
|
-
return
|
|
2528
|
+
if (se && JA)
|
|
2529
|
+
return JA;
|
|
2530
2530
|
try {
|
|
2531
2531
|
const e = localStorage.getItem("currentMode");
|
|
2532
2532
|
if (e)
|
|
2533
|
-
return
|
|
2533
|
+
return JA = e, se = !0, e;
|
|
2534
2534
|
} catch (e) {
|
|
2535
2535
|
console.warn("Could not read from localStorage:", e);
|
|
2536
2536
|
}
|
|
@@ -2771,10 +2771,10 @@ const bE = "data:image/svg+xml,%3csvg%20width='79'%20height='32'%20viewBox='0%20
|
|
|
2771
2771
|
}
|
|
2772
2772
|
}
|
|
2773
2773
|
}, VA = /* @__PURE__ */ new Map();
|
|
2774
|
-
function
|
|
2774
|
+
function cA(e, A) {
|
|
2775
2775
|
const t = l({}, e);
|
|
2776
2776
|
for (const i in A)
|
|
2777
|
-
A[i] && typeof A[i] == "object" && !Array.isArray(A[i]) ? t[i] =
|
|
2777
|
+
A[i] && typeof A[i] == "object" && !Array.isArray(A[i]) ? t[i] = cA(t[i] || {}, A[i]) : t[i] = A[i];
|
|
2778
2778
|
return t;
|
|
2779
2779
|
}
|
|
2780
2780
|
function ZE(e, A) {
|
|
@@ -2802,8 +2802,8 @@ function wt(e, A, t) {
|
|
|
2802
2802
|
if (VA.has(i))
|
|
2803
2803
|
return VA.get(i);
|
|
2804
2804
|
try {
|
|
2805
|
-
let s =
|
|
2806
|
-
return (n = Te[e]) != null && n[t] && (s =
|
|
2805
|
+
let s = cA({}, qt[t]);
|
|
2806
|
+
return (n = Te[e]) != null && n[t] && (s = cA(s, Te[e][t])), (o = Xe[A]) != null && o[t] && (s = cA(s, Xe[A][t])), (C = (r = Ve[e]) == null ? void 0 : r[A]) != null && C[t] && (s = cA(
|
|
2807
2807
|
s,
|
|
2808
2808
|
Ve[e][A][t]
|
|
2809
2809
|
)), ZE(s, t) ? (VA.set(i, s), s) : (console.error(
|
|
@@ -2852,45 +2852,45 @@ function ft(e, A) {
|
|
|
2852
2852
|
return e.apply(A, arguments);
|
|
2853
2853
|
};
|
|
2854
2854
|
}
|
|
2855
|
-
const { toString: Ac } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator:
|
|
2855
|
+
const { toString: Ac } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: jA, toStringTag: Mt } = Symbol, NA = /* @__PURE__ */ ((e) => (A) => {
|
|
2856
2856
|
const t = Ac.call(A);
|
|
2857
2857
|
return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
|
|
2858
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
2859
|
-
function
|
|
2860
|
-
return e !== null && !
|
|
2858
|
+
})(/* @__PURE__ */ Object.create(null)), b = (e) => (e = e.toLowerCase(), (A) => NA(A) === e), YA = (e) => (A) => typeof A === e, { isArray: CA } = Array, hA = YA("undefined");
|
|
2859
|
+
function mA(e) {
|
|
2860
|
+
return e !== null && !hA(e) && e.constructor !== null && !hA(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2861
2861
|
}
|
|
2862
|
-
const Jt =
|
|
2862
|
+
const Jt = b("ArrayBuffer");
|
|
2863
2863
|
function ec(e) {
|
|
2864
2864
|
let A;
|
|
2865
2865
|
return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? A = ArrayBuffer.isView(e) : A = e && e.buffer && Jt(e.buffer), A;
|
|
2866
2866
|
}
|
|
2867
|
-
const tc =
|
|
2868
|
-
if (
|
|
2867
|
+
const tc = YA("string"), O = YA("function"), yt = YA("number"), pA = (e) => e !== null && typeof e == "object", ic = (e) => e === !0 || e === !1, yA = (e) => {
|
|
2868
|
+
if (NA(e) !== "object")
|
|
2869
2869
|
return !1;
|
|
2870
2870
|
const A = Be(e);
|
|
2871
|
-
return (A === null || A === Object.prototype || Object.getPrototypeOf(A) === null) && !(Mt in e) && !(
|
|
2871
|
+
return (A === null || A === Object.prototype || Object.getPrototypeOf(A) === null) && !(Mt in e) && !(jA in e);
|
|
2872
2872
|
}, nc = (e) => {
|
|
2873
|
-
if (!
|
|
2873
|
+
if (!pA(e) || mA(e))
|
|
2874
2874
|
return !1;
|
|
2875
2875
|
try {
|
|
2876
2876
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
2877
2877
|
} catch (A) {
|
|
2878
2878
|
return !1;
|
|
2879
2879
|
}
|
|
2880
|
-
}, oc =
|
|
2880
|
+
}, oc = b("Date"), rc = b("File"), Cc = b("Blob"), sc = b("FileList"), ac = (e) => pA(e) && O(e.pipe), Ic = (e) => {
|
|
2881
2881
|
let A;
|
|
2882
|
-
return e && (typeof FormData == "function" && e instanceof FormData || O(e.append) && ((A =
|
|
2882
|
+
return e && (typeof FormData == "function" && e instanceof FormData || O(e.append) && ((A = NA(e)) === "formdata" || // detect form-data instance
|
|
2883
2883
|
A === "object" && O(e.toString) && e.toString() === "[object FormData]"));
|
|
2884
|
-
}, gc =
|
|
2885
|
-
function
|
|
2884
|
+
}, gc = b("URLSearchParams"), [Ec, cc, Qc, Bc] = ["ReadableStream", "Request", "Response", "Headers"].map(b), uc = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2885
|
+
function qA(e, A, { allOwnKeys: t = !1 } = {}) {
|
|
2886
2886
|
if (e === null || typeof e == "undefined")
|
|
2887
2887
|
return;
|
|
2888
2888
|
let i, n;
|
|
2889
|
-
if (typeof e != "object" && (e = [e]),
|
|
2889
|
+
if (typeof e != "object" && (e = [e]), CA(e))
|
|
2890
2890
|
for (i = 0, n = e.length; i < n; i++)
|
|
2891
2891
|
A.call(null, e[i], i, e);
|
|
2892
2892
|
else {
|
|
2893
|
-
if (
|
|
2893
|
+
if (mA(e))
|
|
2894
2894
|
return;
|
|
2895
2895
|
const o = t ? Object.getOwnPropertyNames(e) : Object.keys(e), r = o.length;
|
|
2896
2896
|
let C;
|
|
@@ -2899,7 +2899,7 @@ function wA(e, A, { allOwnKeys: t = !1 } = {}) {
|
|
|
2899
2899
|
}
|
|
2900
2900
|
}
|
|
2901
2901
|
function zt(e, A) {
|
|
2902
|
-
if (
|
|
2902
|
+
if (mA(e))
|
|
2903
2903
|
return null;
|
|
2904
2904
|
A = A.toLowerCase();
|
|
2905
2905
|
const t = Object.keys(e);
|
|
@@ -2909,17 +2909,17 @@ function zt(e, A) {
|
|
|
2909
2909
|
return n;
|
|
2910
2910
|
return null;
|
|
2911
2911
|
}
|
|
2912
|
-
const
|
|
2912
|
+
const V = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : global, St = (e) => !hA(e) && e !== V;
|
|
2913
2913
|
function ae() {
|
|
2914
2914
|
const { caseless: e } = St(this) && this || {}, A = {}, t = (i, n) => {
|
|
2915
2915
|
const o = e && zt(A, n) || n;
|
|
2916
|
-
|
|
2916
|
+
yA(A[o]) && yA(i) ? A[o] = ae(A[o], i) : yA(i) ? A[o] = ae({}, i) : CA(i) ? A[o] = i.slice() : A[o] = i;
|
|
2917
2917
|
};
|
|
2918
2918
|
for (let i = 0, n = arguments.length; i < n; i++)
|
|
2919
|
-
arguments[i] &&
|
|
2919
|
+
arguments[i] && qA(arguments[i], t);
|
|
2920
2920
|
return A;
|
|
2921
2921
|
}
|
|
2922
|
-
const dc = (e, A, t, { allOwnKeys: i } = {}) => (
|
|
2922
|
+
const dc = (e, A, t, { allOwnKeys: i } = {}) => (qA(A, (n, o) => {
|
|
2923
2923
|
t && O(n) ? e[o] = ft(n, t) : e[o] = n;
|
|
2924
2924
|
}, { allOwnKeys: i }), e), lc = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), hc = (e, A, t, i) => {
|
|
2925
2925
|
e.prototype = Object.create(A.prototype, i), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -2941,7 +2941,7 @@ const dc = (e, A, t, { allOwnKeys: i } = {}) => (wA(A, (n, o) => {
|
|
|
2941
2941
|
return i !== -1 && i === t;
|
|
2942
2942
|
}, qc = (e) => {
|
|
2943
2943
|
if (!e) return null;
|
|
2944
|
-
if (
|
|
2944
|
+
if (CA(e)) return e;
|
|
2945
2945
|
let A = e.length;
|
|
2946
2946
|
if (!yt(A)) return null;
|
|
2947
2947
|
const t = new Array(A);
|
|
@@ -2949,7 +2949,7 @@ const dc = (e, A, t, { allOwnKeys: i } = {}) => (wA(A, (n, o) => {
|
|
|
2949
2949
|
t[A] = e[A];
|
|
2950
2950
|
return t;
|
|
2951
2951
|
}, wc = /* @__PURE__ */ ((e) => (A) => e && A instanceof e)(typeof Uint8Array != "undefined" && Be(Uint8Array)), fc = (e, A) => {
|
|
2952
|
-
const i = (e && e[
|
|
2952
|
+
const i = (e && e[jA]).call(e);
|
|
2953
2953
|
let n;
|
|
2954
2954
|
for (; (n = i.next()) && !n.done; ) {
|
|
2955
2955
|
const o = n.value;
|
|
@@ -2961,14 +2961,14 @@ const dc = (e, A, t, { allOwnKeys: i } = {}) => (wA(A, (n, o) => {
|
|
|
2961
2961
|
for (; (t = e.exec(A)) !== null; )
|
|
2962
2962
|
i.push(t);
|
|
2963
2963
|
return i;
|
|
2964
|
-
}, Jc =
|
|
2964
|
+
}, Jc = b("HTMLFormElement"), yc = (e) => e.toLowerCase().replace(
|
|
2965
2965
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
2966
2966
|
function(t, i, n) {
|
|
2967
2967
|
return i.toUpperCase() + n;
|
|
2968
2968
|
}
|
|
2969
|
-
), $e = (({ hasOwnProperty: e }) => (A, t) => e.call(A, t))(Object.prototype), zc =
|
|
2969
|
+
), $e = (({ hasOwnProperty: e }) => (A, t) => e.call(A, t))(Object.prototype), zc = b("RegExp"), Kt = (e, A) => {
|
|
2970
2970
|
const t = Object.getOwnPropertyDescriptors(e), i = {};
|
|
2971
|
-
|
|
2971
|
+
qA(t, (n, o) => {
|
|
2972
2972
|
let r;
|
|
2973
2973
|
(r = A(n, o, e)) !== !1 && (i[o] = r || n);
|
|
2974
2974
|
}), Object.defineProperties(e, i);
|
|
@@ -2993,55 +2993,55 @@ const dc = (e, A, t, { allOwnKeys: i } = {}) => (wA(A, (n, o) => {
|
|
|
2993
2993
|
t[o] = !0;
|
|
2994
2994
|
});
|
|
2995
2995
|
};
|
|
2996
|
-
return
|
|
2996
|
+
return CA(e) ? i(e) : i(String(e).split(A)), t;
|
|
2997
2997
|
}, vc = () => {
|
|
2998
2998
|
}, Dc = (e, A) => e != null && Number.isFinite(e = +e) ? e : A;
|
|
2999
2999
|
function kc(e) {
|
|
3000
|
-
return !!(e && O(e.append) && e[Mt] === "FormData" && e[
|
|
3000
|
+
return !!(e && O(e.append) && e[Mt] === "FormData" && e[jA]);
|
|
3001
3001
|
}
|
|
3002
3002
|
const Rc = (e) => {
|
|
3003
3003
|
const A = new Array(10), t = (i, n) => {
|
|
3004
|
-
if (
|
|
3004
|
+
if (pA(i)) {
|
|
3005
3005
|
if (A.indexOf(i) >= 0)
|
|
3006
3006
|
return;
|
|
3007
|
-
if (
|
|
3007
|
+
if (mA(i))
|
|
3008
3008
|
return i;
|
|
3009
3009
|
if (!("toJSON" in i)) {
|
|
3010
3010
|
A[n] = i;
|
|
3011
|
-
const o =
|
|
3012
|
-
return
|
|
3011
|
+
const o = CA(i) ? [] : {};
|
|
3012
|
+
return qA(i, (r, C) => {
|
|
3013
3013
|
const s = t(r, n + 1);
|
|
3014
|
-
!
|
|
3014
|
+
!hA(s) && (o[C] = s);
|
|
3015
3015
|
}), A[n] = void 0, o;
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
3018
|
return i;
|
|
3019
3019
|
};
|
|
3020
3020
|
return t(e, 0);
|
|
3021
|
-
}, Lc =
|
|
3022
|
-
n ===
|
|
3021
|
+
}, Lc = b("AsyncFunction"), Gc = (e) => e && (pA(e) || O(e)) && O(e.then) && O(e.catch), vt = ((e, A) => e ? setImmediate : A ? ((t, i) => (V.addEventListener("message", ({ source: n, data: o }) => {
|
|
3022
|
+
n === V && o === t && i.length && i.shift()();
|
|
3023
3023
|
}, !1), (n) => {
|
|
3024
|
-
i.push(n),
|
|
3024
|
+
i.push(n), V.postMessage(t, "*");
|
|
3025
3025
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
3026
3026
|
typeof setImmediate == "function",
|
|
3027
|
-
O(
|
|
3028
|
-
), Oc = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(
|
|
3029
|
-
isArray:
|
|
3027
|
+
O(V.postMessage)
|
|
3028
|
+
), Oc = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(V) : typeof process != "undefined" && process.nextTick || vt, Hc = (e) => e != null && O(e[jA]), E = {
|
|
3029
|
+
isArray: CA,
|
|
3030
3030
|
isArrayBuffer: Jt,
|
|
3031
|
-
isBuffer:
|
|
3031
|
+
isBuffer: mA,
|
|
3032
3032
|
isFormData: Ic,
|
|
3033
3033
|
isArrayBufferView: ec,
|
|
3034
3034
|
isString: tc,
|
|
3035
3035
|
isNumber: yt,
|
|
3036
3036
|
isBoolean: ic,
|
|
3037
|
-
isObject:
|
|
3038
|
-
isPlainObject:
|
|
3037
|
+
isObject: pA,
|
|
3038
|
+
isPlainObject: yA,
|
|
3039
3039
|
isEmptyObject: nc,
|
|
3040
3040
|
isReadableStream: Ec,
|
|
3041
3041
|
isRequest: cc,
|
|
3042
3042
|
isResponse: Qc,
|
|
3043
3043
|
isHeaders: Bc,
|
|
3044
|
-
isUndefined:
|
|
3044
|
+
isUndefined: hA,
|
|
3045
3045
|
isDate: oc,
|
|
3046
3046
|
isFile: rc,
|
|
3047
3047
|
isBlob: Cc,
|
|
@@ -3051,15 +3051,15 @@ const Rc = (e) => {
|
|
|
3051
3051
|
isURLSearchParams: gc,
|
|
3052
3052
|
isTypedArray: wc,
|
|
3053
3053
|
isFileList: sc,
|
|
3054
|
-
forEach:
|
|
3054
|
+
forEach: qA,
|
|
3055
3055
|
merge: ae,
|
|
3056
3056
|
extend: dc,
|
|
3057
3057
|
trim: uc,
|
|
3058
3058
|
stripBOM: lc,
|
|
3059
3059
|
inherits: hc,
|
|
3060
3060
|
toFlatObject: mc,
|
|
3061
|
-
kindOf:
|
|
3062
|
-
kindOfTest:
|
|
3061
|
+
kindOf: NA,
|
|
3062
|
+
kindOfTest: b,
|
|
3063
3063
|
endsWith: pc,
|
|
3064
3064
|
toArray: qc,
|
|
3065
3065
|
forEachEntry: fc,
|
|
@@ -3075,7 +3075,7 @@ const Rc = (e) => {
|
|
|
3075
3075
|
noop: vc,
|
|
3076
3076
|
toFiniteNumber: Dc,
|
|
3077
3077
|
findKey: zt,
|
|
3078
|
-
global:
|
|
3078
|
+
global: V,
|
|
3079
3079
|
isContextDefined: St,
|
|
3080
3080
|
isSpecCompliantForm: kc,
|
|
3081
3081
|
toJSONObject: Rc,
|
|
@@ -3085,10 +3085,10 @@ const Rc = (e) => {
|
|
|
3085
3085
|
asap: Oc,
|
|
3086
3086
|
isIterable: Hc
|
|
3087
3087
|
};
|
|
3088
|
-
function
|
|
3088
|
+
function m(e, A, t, i, n) {
|
|
3089
3089
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", A && (this.code = A), t && (this.config = t), i && (this.request = i), n && (this.response = n, this.status = n.status ? n.status : null);
|
|
3090
3090
|
}
|
|
3091
|
-
E.inherits(
|
|
3091
|
+
E.inherits(m, Error, {
|
|
3092
3092
|
toJSON: function() {
|
|
3093
3093
|
return {
|
|
3094
3094
|
// Standard
|
|
@@ -3109,7 +3109,7 @@ E.inherits(p, Error, {
|
|
|
3109
3109
|
};
|
|
3110
3110
|
}
|
|
3111
3111
|
});
|
|
3112
|
-
const Dt =
|
|
3112
|
+
const Dt = m.prototype, kt = {};
|
|
3113
3113
|
[
|
|
3114
3114
|
"ERR_BAD_OPTION_VALUE",
|
|
3115
3115
|
"ERR_BAD_OPTION",
|
|
@@ -3127,13 +3127,13 @@ const Dt = p.prototype, kt = {};
|
|
|
3127
3127
|
].forEach((e) => {
|
|
3128
3128
|
kt[e] = { value: e };
|
|
3129
3129
|
});
|
|
3130
|
-
Object.defineProperties(
|
|
3130
|
+
Object.defineProperties(m, kt);
|
|
3131
3131
|
Object.defineProperty(Dt, "isAxiosError", { value: !0 });
|
|
3132
|
-
|
|
3132
|
+
m.from = (e, A, t, i, n, o) => {
|
|
3133
3133
|
const r = Object.create(Dt);
|
|
3134
3134
|
return E.toFlatObject(e, r, function(s) {
|
|
3135
3135
|
return s !== Error.prototype;
|
|
3136
|
-
}, (C) => C !== "isAxiosError"),
|
|
3136
|
+
}, (C) => C !== "isAxiosError"), m.call(r, e.message, A, t, i, n), r.cause = e, r.name = e.name, o && Object.assign(r, o), r;
|
|
3137
3137
|
};
|
|
3138
3138
|
const jc = null;
|
|
3139
3139
|
function Ie(e) {
|
|
@@ -3153,7 +3153,7 @@ function Nc(e) {
|
|
|
3153
3153
|
const Yc = E.toFlatObject(E, {}, null, function(A) {
|
|
3154
3154
|
return /^is[A-Z]/.test(A);
|
|
3155
3155
|
});
|
|
3156
|
-
function
|
|
3156
|
+
function bA(e, A, t) {
|
|
3157
3157
|
if (!E.isObject(e))
|
|
3158
3158
|
throw new TypeError("target must be an object");
|
|
3159
3159
|
A = A || new FormData(), t = E.toFlatObject(t, {
|
|
@@ -3173,20 +3173,20 @@ function xA(e, A, t) {
|
|
|
3173
3173
|
if (E.isBoolean(c))
|
|
3174
3174
|
return c.toString();
|
|
3175
3175
|
if (!s && E.isBlob(c))
|
|
3176
|
-
throw new
|
|
3176
|
+
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
3177
3177
|
return E.isArrayBuffer(c) || E.isTypedArray(c) ? s && typeof Blob == "function" ? new Blob([c]) : Buffer.from(c) : c;
|
|
3178
3178
|
}
|
|
3179
3179
|
function I(c, d, u) {
|
|
3180
|
-
let
|
|
3180
|
+
let q = c;
|
|
3181
3181
|
if (c && !u && typeof c == "object") {
|
|
3182
3182
|
if (E.endsWith(d, "{}"))
|
|
3183
3183
|
d = i ? d : d.slice(0, -2), c = JSON.stringify(c);
|
|
3184
|
-
else if (E.isArray(c) && Nc(c) || (E.isFileList(c) || E.endsWith(d, "[]")) && (
|
|
3185
|
-
return d = Rt(d),
|
|
3186
|
-
!(E.isUndefined(
|
|
3184
|
+
else if (E.isArray(c) && Nc(c) || (E.isFileList(c) || E.endsWith(d, "[]")) && (q = E.toArray(c)))
|
|
3185
|
+
return d = Rt(d), q.forEach(function(p, w) {
|
|
3186
|
+
!(E.isUndefined(p) || p === null) && A.append(
|
|
3187
3187
|
// eslint-disable-next-line no-nested-ternary
|
|
3188
|
-
r === !0 ? _e([d],
|
|
3189
|
-
a(
|
|
3188
|
+
r === !0 ? _e([d], w, o) : r === null ? d : d + "[]",
|
|
3189
|
+
a(p)
|
|
3190
3190
|
);
|
|
3191
3191
|
}), !1;
|
|
3192
3192
|
}
|
|
@@ -3201,14 +3201,14 @@ function xA(e, A, t) {
|
|
|
3201
3201
|
if (!E.isUndefined(c)) {
|
|
3202
3202
|
if (g.indexOf(c) !== -1)
|
|
3203
3203
|
throw Error("Circular reference detected in " + d.join("."));
|
|
3204
|
-
g.push(c), E.forEach(c, function(
|
|
3205
|
-
(!(E.isUndefined(
|
|
3204
|
+
g.push(c), E.forEach(c, function(q, M) {
|
|
3205
|
+
(!(E.isUndefined(q) || q === null) && n.call(
|
|
3206
3206
|
A,
|
|
3207
|
-
|
|
3208
|
-
E.isString(
|
|
3207
|
+
q,
|
|
3208
|
+
E.isString(M) ? M.trim() : M,
|
|
3209
3209
|
d,
|
|
3210
3210
|
B
|
|
3211
|
-
)) === !0 && Q(
|
|
3211
|
+
)) === !0 && Q(q, d ? d.concat(M) : [M]);
|
|
3212
3212
|
}), g.pop();
|
|
3213
3213
|
}
|
|
3214
3214
|
}
|
|
@@ -3231,7 +3231,7 @@ function At(e) {
|
|
|
3231
3231
|
});
|
|
3232
3232
|
}
|
|
3233
3233
|
function ue(e, A) {
|
|
3234
|
-
this._pairs = [], e &&
|
|
3234
|
+
this._pairs = [], e && bA(e, this, A);
|
|
3235
3235
|
}
|
|
3236
3236
|
const Lt = ue.prototype;
|
|
3237
3237
|
Lt.append = function(A, t) {
|
|
@@ -3339,7 +3339,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Tc
|
|
|
3339
3339
|
origin: Tc
|
|
3340
3340
|
}, Symbol.toStringTag, { value: "Module" })), R = l(l({}, Xc), Zc);
|
|
3341
3341
|
function Vc(e, A) {
|
|
3342
|
-
return
|
|
3342
|
+
return bA(e, new R.classes.URLSearchParams(), l({
|
|
3343
3343
|
visitor: function(t, i, n, o) {
|
|
3344
3344
|
return R.isNode && E.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
3345
3345
|
}
|
|
@@ -3382,7 +3382,7 @@ function AQ(e, A, t) {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
return (t || JSON.stringify)(e);
|
|
3384
3384
|
}
|
|
3385
|
-
const
|
|
3385
|
+
const wA = {
|
|
3386
3386
|
transitional: Ot,
|
|
3387
3387
|
adapter: ["xhr", "http", "fetch"],
|
|
3388
3388
|
transformRequest: [function(A, t) {
|
|
@@ -3401,7 +3401,7 @@ const fA = {
|
|
|
3401
3401
|
return Vc(A, this.formSerializer).toString();
|
|
3402
3402
|
if ((C = E.isFileList(A)) || i.indexOf("multipart/form-data") > -1) {
|
|
3403
3403
|
const s = this.env && this.env.FormData;
|
|
3404
|
-
return
|
|
3404
|
+
return bA(
|
|
3405
3405
|
C ? { "files[]": A } : A,
|
|
3406
3406
|
s && new s(),
|
|
3407
3407
|
this.formSerializer
|
|
@@ -3411,7 +3411,7 @@ const fA = {
|
|
|
3411
3411
|
return o || n ? (t.setContentType("application/json", !1), AQ(A)) : A;
|
|
3412
3412
|
}],
|
|
3413
3413
|
transformResponse: [function(A) {
|
|
3414
|
-
const t = this.transitional ||
|
|
3414
|
+
const t = this.transitional || wA.transitional, i = t && t.forcedJSONParsing, n = this.responseType === "json";
|
|
3415
3415
|
if (E.isResponse(A) || E.isReadableStream(A))
|
|
3416
3416
|
return A;
|
|
3417
3417
|
if (A && E.isString(A) && (i && !this.responseType || n)) {
|
|
@@ -3420,7 +3420,7 @@ const fA = {
|
|
|
3420
3420
|
return JSON.parse(A);
|
|
3421
3421
|
} catch (C) {
|
|
3422
3422
|
if (r)
|
|
3423
|
-
throw C.name === "SyntaxError" ?
|
|
3423
|
+
throw C.name === "SyntaxError" ? m.from(C, m.ERR_BAD_RESPONSE, this, null, this.response) : C;
|
|
3424
3424
|
}
|
|
3425
3425
|
}
|
|
3426
3426
|
return A;
|
|
@@ -3449,7 +3449,7 @@ const fA = {
|
|
|
3449
3449
|
}
|
|
3450
3450
|
};
|
|
3451
3451
|
E.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
3452
|
-
|
|
3452
|
+
wA.headers[e] = {};
|
|
3453
3453
|
});
|
|
3454
3454
|
const eQ = E.toObjectSet([
|
|
3455
3455
|
"age",
|
|
@@ -3477,11 +3477,11 @@ const eQ = E.toObjectSet([
|
|
|
3477
3477
|
n = r.indexOf(":"), t = r.substring(0, n).trim().toLowerCase(), i = r.substring(n + 1).trim(), !(!t || A[t] && eQ[t]) && (t === "set-cookie" ? A[t] ? A[t].push(i) : A[t] = [i] : A[t] = A[t] ? A[t] + ", " + i : i);
|
|
3478
3478
|
}), A;
|
|
3479
3479
|
}, tt = Symbol("internals");
|
|
3480
|
-
function
|
|
3480
|
+
function EA(e) {
|
|
3481
3481
|
return e && String(e).trim().toLowerCase();
|
|
3482
3482
|
}
|
|
3483
|
-
function
|
|
3484
|
-
return e === !1 || e == null ? e : E.isArray(e) ? e.map(
|
|
3483
|
+
function zA(e) {
|
|
3484
|
+
return e === !1 || e == null ? e : E.isArray(e) ? e.map(zA) : String(e);
|
|
3485
3485
|
}
|
|
3486
3486
|
function iQ(e) {
|
|
3487
3487
|
const A = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -3522,11 +3522,11 @@ let H = class {
|
|
|
3522
3522
|
set(A, t, i) {
|
|
3523
3523
|
const n = this;
|
|
3524
3524
|
function o(C, s, a) {
|
|
3525
|
-
const I =
|
|
3525
|
+
const I = EA(s);
|
|
3526
3526
|
if (!I)
|
|
3527
3527
|
throw new Error("header name must be a non-empty string");
|
|
3528
3528
|
const g = E.findKey(n, I);
|
|
3529
|
-
(!g || n[g] === void 0 || a === !0 || a === void 0 && n[g] !== !1) && (n[g || s] =
|
|
3529
|
+
(!g || n[g] === void 0 || a === !0 || a === void 0 && n[g] !== !1) && (n[g || s] = zA(C));
|
|
3530
3530
|
}
|
|
3531
3531
|
const r = (C, s) => E.forEach(C, (a, I) => o(a, I, s));
|
|
3532
3532
|
if (E.isPlainObject(A) || A instanceof this.constructor)
|
|
@@ -3546,7 +3546,7 @@ let H = class {
|
|
|
3546
3546
|
return this;
|
|
3547
3547
|
}
|
|
3548
3548
|
get(A, t) {
|
|
3549
|
-
if (A =
|
|
3549
|
+
if (A = EA(A), A) {
|
|
3550
3550
|
const i = E.findKey(this, A);
|
|
3551
3551
|
if (i) {
|
|
3552
3552
|
const n = this[i];
|
|
@@ -3563,7 +3563,7 @@ let H = class {
|
|
|
3563
3563
|
}
|
|
3564
3564
|
}
|
|
3565
3565
|
has(A, t) {
|
|
3566
|
-
if (A =
|
|
3566
|
+
if (A = EA(A), A) {
|
|
3567
3567
|
const i = E.findKey(this, A);
|
|
3568
3568
|
return !!(i && this[i] !== void 0 && (!t || _A(this, this[i], i, t)));
|
|
3569
3569
|
}
|
|
@@ -3573,7 +3573,7 @@ let H = class {
|
|
|
3573
3573
|
const i = this;
|
|
3574
3574
|
let n = !1;
|
|
3575
3575
|
function o(r) {
|
|
3576
|
-
if (r =
|
|
3576
|
+
if (r = EA(r), r) {
|
|
3577
3577
|
const C = E.findKey(i, r);
|
|
3578
3578
|
C && (!t || _A(i, i[C], C, t)) && (delete i[C], n = !0);
|
|
3579
3579
|
}
|
|
@@ -3594,11 +3594,11 @@ let H = class {
|
|
|
3594
3594
|
return E.forEach(this, (n, o) => {
|
|
3595
3595
|
const r = E.findKey(i, o);
|
|
3596
3596
|
if (r) {
|
|
3597
|
-
t[r] =
|
|
3597
|
+
t[r] = zA(n), delete t[o];
|
|
3598
3598
|
return;
|
|
3599
3599
|
}
|
|
3600
3600
|
const C = A ? oQ(o) : String(o).trim();
|
|
3601
|
-
C !== o && delete t[o], t[C] =
|
|
3601
|
+
C !== o && delete t[o], t[C] = zA(n), i[C] = !0;
|
|
3602
3602
|
}), this;
|
|
3603
3603
|
}
|
|
3604
3604
|
concat(...A) {
|
|
@@ -3635,7 +3635,7 @@ let H = class {
|
|
|
3635
3635
|
accessors: {}
|
|
3636
3636
|
}).accessors, n = this.prototype;
|
|
3637
3637
|
function o(r) {
|
|
3638
|
-
const C =
|
|
3638
|
+
const C = EA(r);
|
|
3639
3639
|
i[C] || (rQ(n, r), i[C] = !0);
|
|
3640
3640
|
}
|
|
3641
3641
|
return E.isArray(A) ? A.forEach(o) : o(A), this;
|
|
@@ -3653,7 +3653,7 @@ E.reduceDescriptors(H.prototype, ({ value: e }, A) => {
|
|
|
3653
3653
|
});
|
|
3654
3654
|
E.freezeMethods(H);
|
|
3655
3655
|
function Ae(e, A) {
|
|
3656
|
-
const t = this ||
|
|
3656
|
+
const t = this || wA, i = A || t, n = H.from(i.headers);
|
|
3657
3657
|
let o = i.data;
|
|
3658
3658
|
return E.forEach(e, function(C) {
|
|
3659
3659
|
o = C.call(t, o, n.normalize(), A ? A.status : void 0);
|
|
@@ -3662,17 +3662,17 @@ function Ae(e, A) {
|
|
|
3662
3662
|
function jt(e) {
|
|
3663
3663
|
return !!(e && e.__CANCEL__);
|
|
3664
3664
|
}
|
|
3665
|
-
function
|
|
3666
|
-
|
|
3665
|
+
function sA(e, A, t) {
|
|
3666
|
+
m.call(this, e == null ? "canceled" : e, m.ERR_CANCELED, A, t), this.name = "CanceledError";
|
|
3667
3667
|
}
|
|
3668
|
-
E.inherits(
|
|
3668
|
+
E.inherits(sA, m, {
|
|
3669
3669
|
__CANCEL__: !0
|
|
3670
3670
|
});
|
|
3671
3671
|
function Nt(e, A, t) {
|
|
3672
3672
|
const i = t.config.validateStatus;
|
|
3673
|
-
!t.status || !i || i(t.status) ? e(t) : A(new
|
|
3673
|
+
!t.status || !i || i(t.status) ? e(t) : A(new m(
|
|
3674
3674
|
"Request failed with status code " + t.status,
|
|
3675
|
-
[
|
|
3675
|
+
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
|
|
3676
3676
|
t.config,
|
|
3677
3677
|
t.request,
|
|
3678
3678
|
t
|
|
@@ -3710,7 +3710,7 @@ function aQ(e, A) {
|
|
|
3710
3710
|
}, i - g)));
|
|
3711
3711
|
}, () => n && r(n)];
|
|
3712
3712
|
}
|
|
3713
|
-
const
|
|
3713
|
+
const GA = (e, A, t = 3) => {
|
|
3714
3714
|
let i = 0;
|
|
3715
3715
|
const n = sQ(50, 250);
|
|
3716
3716
|
return aQ((o) => {
|
|
@@ -3777,7 +3777,7 @@ function Yt(e, A, t) {
|
|
|
3777
3777
|
return e && (i || t == !1) ? cQ(e, A) : A;
|
|
3778
3778
|
}
|
|
3779
3779
|
const ot = (e) => e instanceof H ? l({}, e) : e;
|
|
3780
|
-
function
|
|
3780
|
+
function AA(e, A) {
|
|
3781
3781
|
A = A || {};
|
|
3782
3782
|
const t = {};
|
|
3783
3783
|
function i(a, I, g, B) {
|
|
@@ -3842,7 +3842,7 @@ function eA(e, A) {
|
|
|
3842
3842
|
}), t;
|
|
3843
3843
|
}
|
|
3844
3844
|
const bt = (e) => {
|
|
3845
|
-
const A =
|
|
3845
|
+
const A = AA({}, e);
|
|
3846
3846
|
let { data: t, withXSRFToken: i, xsrfHeaderName: n, xsrfCookieName: o, headers: r, auth: C } = A;
|
|
3847
3847
|
A.headers = r = H.from(r), A.url = Gt(Yt(A.baseURL, A.url, A.allowAbsoluteUrls), e.params, e.paramsSerializer), C && r.set(
|
|
3848
3848
|
"Authorization",
|
|
@@ -3873,16 +3873,16 @@ const bt = (e) => {
|
|
|
3873
3873
|
}
|
|
3874
3874
|
let u = new XMLHttpRequest();
|
|
3875
3875
|
u.open(n.method.toUpperCase(), n.url, !0), u.timeout = n.timeout;
|
|
3876
|
-
function
|
|
3876
|
+
function q() {
|
|
3877
3877
|
if (!u)
|
|
3878
3878
|
return;
|
|
3879
|
-
const
|
|
3879
|
+
const p = H.from(
|
|
3880
3880
|
"getAllResponseHeaders" in u && u.getAllResponseHeaders()
|
|
3881
|
-
),
|
|
3881
|
+
), J = {
|
|
3882
3882
|
data: !C || C === "text" || C === "json" ? u.responseText : u.response,
|
|
3883
3883
|
status: u.status,
|
|
3884
3884
|
statusText: u.statusText,
|
|
3885
|
-
headers:
|
|
3885
|
+
headers: p,
|
|
3886
3886
|
config: e,
|
|
3887
3887
|
request: u
|
|
3888
3888
|
};
|
|
@@ -3890,31 +3890,31 @@ const bt = (e) => {
|
|
|
3890
3890
|
t(z), d();
|
|
3891
3891
|
}, function(z) {
|
|
3892
3892
|
i(z), d();
|
|
3893
|
-
},
|
|
3893
|
+
}, J), u = null;
|
|
3894
3894
|
}
|
|
3895
|
-
"onloadend" in u ? u.onloadend =
|
|
3896
|
-
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
3895
|
+
"onloadend" in u ? u.onloadend = q : u.onreadystatechange = function() {
|
|
3896
|
+
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(q);
|
|
3897
3897
|
}, u.onabort = function() {
|
|
3898
|
-
u && (i(new
|
|
3898
|
+
u && (i(new m("Request aborted", m.ECONNABORTED, e, u)), u = null);
|
|
3899
3899
|
}, u.onerror = function() {
|
|
3900
|
-
i(new
|
|
3900
|
+
i(new m("Network Error", m.ERR_NETWORK, e, u)), u = null;
|
|
3901
3901
|
}, u.ontimeout = function() {
|
|
3902
|
-
let
|
|
3903
|
-
const
|
|
3904
|
-
n.timeoutErrorMessage && (
|
|
3905
|
-
|
|
3906
|
-
|
|
3902
|
+
let w = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
3903
|
+
const J = n.transitional || Ot;
|
|
3904
|
+
n.timeoutErrorMessage && (w = n.timeoutErrorMessage), i(new m(
|
|
3905
|
+
w,
|
|
3906
|
+
J.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
3907
3907
|
e,
|
|
3908
3908
|
u
|
|
3909
3909
|
)), u = null;
|
|
3910
|
-
}, o === void 0 && r.setContentType(null), "setRequestHeader" in u && E.forEach(r.toJSON(), function(
|
|
3911
|
-
u.setRequestHeader(
|
|
3912
|
-
}), E.isUndefined(n.withCredentials) || (u.withCredentials = !!n.withCredentials), C && C !== "json" && (u.responseType = n.responseType), a && ([B, c] =
|
|
3913
|
-
u && (i(!
|
|
3910
|
+
}, o === void 0 && r.setContentType(null), "setRequestHeader" in u && E.forEach(r.toJSON(), function(w, J) {
|
|
3911
|
+
u.setRequestHeader(J, w);
|
|
3912
|
+
}), E.isUndefined(n.withCredentials) || (u.withCredentials = !!n.withCredentials), C && C !== "json" && (u.responseType = n.responseType), a && ([B, c] = GA(a, !0), u.addEventListener("progress", B)), s && u.upload && ([g, Q] = GA(s), u.upload.addEventListener("progress", g), u.upload.addEventListener("loadend", Q)), (n.cancelToken || n.signal) && (I = (p) => {
|
|
3913
|
+
u && (i(!p || p.type ? new sA(null, e, u) : p), u.abort(), u = null);
|
|
3914
3914
|
}, n.cancelToken && n.cancelToken.subscribe(I), n.signal && (n.signal.aborted ? I() : n.signal.addEventListener("abort", I)));
|
|
3915
|
-
const
|
|
3916
|
-
if (
|
|
3917
|
-
i(new
|
|
3915
|
+
const M = CQ(n.url);
|
|
3916
|
+
if (M && R.protocols.indexOf(M) === -1) {
|
|
3917
|
+
i(new m("Unsupported protocol " + M + ":", m.ERR_BAD_REQUEST, e));
|
|
3918
3918
|
return;
|
|
3919
3919
|
}
|
|
3920
3920
|
u.send(o || null);
|
|
@@ -3927,11 +3927,11 @@ const bt = (e) => {
|
|
|
3927
3927
|
if (!n) {
|
|
3928
3928
|
n = !0, C();
|
|
3929
3929
|
const I = a instanceof Error ? a : this.reason;
|
|
3930
|
-
i.abort(I instanceof
|
|
3930
|
+
i.abort(I instanceof m ? I : new sA(I instanceof Error ? I.message : I));
|
|
3931
3931
|
}
|
|
3932
3932
|
};
|
|
3933
3933
|
let r = A && setTimeout(() => {
|
|
3934
|
-
r = null, o(new
|
|
3934
|
+
r = null, o(new m(`timeout ${A} of ms exceeded`, m.ETIMEDOUT));
|
|
3935
3935
|
}, A);
|
|
3936
3936
|
const C = () => {
|
|
3937
3937
|
e && (r && clearTimeout(r), r = null, e.forEach((a) => {
|
|
@@ -3954,7 +3954,7 @@ const bt = (e) => {
|
|
|
3954
3954
|
}, lQ = function(e, A) {
|
|
3955
3955
|
return UA(this, null, function* () {
|
|
3956
3956
|
try {
|
|
3957
|
-
for (var t = Me(hQ(e)), i, n, o; i = !(n = yield new
|
|
3957
|
+
for (var t = Me(hQ(e)), i, n, o; i = !(n = yield new X(t.next())).done; i = !1) {
|
|
3958
3958
|
const r = n.value;
|
|
3959
3959
|
yield* WA(dQ(r, A));
|
|
3960
3960
|
}
|
|
@@ -3962,7 +3962,7 @@ const bt = (e) => {
|
|
|
3962
3962
|
o = [n];
|
|
3963
3963
|
} finally {
|
|
3964
3964
|
try {
|
|
3965
|
-
i && (n = t.return) && (yield new
|
|
3965
|
+
i && (n = t.return) && (yield new X(n.call(t)));
|
|
3966
3966
|
} finally {
|
|
3967
3967
|
if (o)
|
|
3968
3968
|
throw o[0];
|
|
@@ -3978,13 +3978,13 @@ const bt = (e) => {
|
|
|
3978
3978
|
const A = e.getReader();
|
|
3979
3979
|
try {
|
|
3980
3980
|
for (; ; ) {
|
|
3981
|
-
const { done: t, value: i } = yield new
|
|
3981
|
+
const { done: t, value: i } = yield new X(A.read());
|
|
3982
3982
|
if (t)
|
|
3983
3983
|
break;
|
|
3984
3984
|
yield i;
|
|
3985
3985
|
}
|
|
3986
3986
|
} finally {
|
|
3987
|
-
yield new
|
|
3987
|
+
yield new X(A.cancel());
|
|
3988
3988
|
}
|
|
3989
3989
|
});
|
|
3990
3990
|
}, rt = (e, A, t, i) => {
|
|
@@ -4018,7 +4018,7 @@ const bt = (e) => {
|
|
|
4018
4018
|
}, {
|
|
4019
4019
|
highWaterMark: 2
|
|
4020
4020
|
});
|
|
4021
|
-
},
|
|
4021
|
+
}, xA = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", xt = xA && typeof ReadableStream == "function", mQ = xA && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (A) => e.encode(A))(new TextEncoder()) : (e) => k(null, null, function* () {
|
|
4022
4022
|
return new Uint8Array(yield new Response(e).arrayBuffer());
|
|
4023
4023
|
})), Pt = (e, ...A) => {
|
|
4024
4024
|
try {
|
|
@@ -4036,13 +4036,13 @@ const bt = (e) => {
|
|
|
4036
4036
|
}
|
|
4037
4037
|
}).headers.has("Content-Type");
|
|
4038
4038
|
return e && !A;
|
|
4039
|
-
}), Ct = 64 * 1024, Ee = xt && Pt(() => E.isReadableStream(new Response("").body)),
|
|
4039
|
+
}), Ct = 64 * 1024, Ee = xt && Pt(() => E.isReadableStream(new Response("").body)), OA = {
|
|
4040
4040
|
stream: Ee && ((e) => e.body)
|
|
4041
4041
|
};
|
|
4042
|
-
|
|
4042
|
+
xA && ((e) => {
|
|
4043
4043
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((A) => {
|
|
4044
|
-
!
|
|
4045
|
-
throw new
|
|
4044
|
+
!OA[A] && (OA[A] = E.isFunction(e[A]) ? (t) => t[A]() : (t, i) => {
|
|
4045
|
+
throw new m(`Response type '${A}' is not supported`, m.ERR_NOT_SUPPORT, i);
|
|
4046
4046
|
});
|
|
4047
4047
|
});
|
|
4048
4048
|
})(new Response());
|
|
@@ -4063,7 +4063,7 @@ const qQ = (e) => k(null, null, function* () {
|
|
|
4063
4063
|
}), wQ = (e, A) => k(null, null, function* () {
|
|
4064
4064
|
const t = E.toFiniteNumber(e.getContentLength());
|
|
4065
4065
|
return t == null ? qQ(A) : t;
|
|
4066
|
-
}), fQ =
|
|
4066
|
+
}), fQ = xA && ((e) => k(null, null, function* () {
|
|
4067
4067
|
let {
|
|
4068
4068
|
url: A,
|
|
4069
4069
|
method: t,
|
|
@@ -4086,66 +4086,66 @@ const qQ = (e) => k(null, null, function* () {
|
|
|
4086
4086
|
let u;
|
|
4087
4087
|
try {
|
|
4088
4088
|
if (s && pQ && t !== "get" && t !== "head" && (u = yield wQ(I, i)) !== 0) {
|
|
4089
|
-
let
|
|
4089
|
+
let J = new Request(A, {
|
|
4090
4090
|
method: "POST",
|
|
4091
4091
|
body: i,
|
|
4092
4092
|
duplex: "half"
|
|
4093
4093
|
}), D;
|
|
4094
|
-
if (E.isFormData(i) && (D =
|
|
4095
|
-
const [z,
|
|
4094
|
+
if (E.isFormData(i) && (D = J.headers.get("content-type")) && I.setContentType(D), J.body) {
|
|
4095
|
+
const [z, j] = it(
|
|
4096
4096
|
u,
|
|
4097
|
-
|
|
4097
|
+
GA(nt(s))
|
|
4098
4098
|
);
|
|
4099
|
-
i = rt(
|
|
4099
|
+
i = rt(J.body, Ct, z, j);
|
|
4100
4100
|
}
|
|
4101
4101
|
}
|
|
4102
4102
|
E.isString(g) || (g = g ? "include" : "omit");
|
|
4103
|
-
const
|
|
4103
|
+
const q = "credentials" in Request.prototype;
|
|
4104
4104
|
c = new Request(A, L(l({}, B), {
|
|
4105
4105
|
signal: Q,
|
|
4106
4106
|
method: t.toUpperCase(),
|
|
4107
4107
|
headers: I.normalize().toJSON(),
|
|
4108
4108
|
body: i,
|
|
4109
4109
|
duplex: "half",
|
|
4110
|
-
credentials:
|
|
4110
|
+
credentials: q ? g : void 0
|
|
4111
4111
|
}));
|
|
4112
|
-
let
|
|
4113
|
-
const
|
|
4114
|
-
if (Ee && (C ||
|
|
4115
|
-
const
|
|
4112
|
+
let M = yield fetch(c, B);
|
|
4113
|
+
const p = Ee && (a === "stream" || a === "response");
|
|
4114
|
+
if (Ee && (C || p && d)) {
|
|
4115
|
+
const J = {};
|
|
4116
4116
|
["status", "statusText", "headers"].forEach((K) => {
|
|
4117
|
-
|
|
4117
|
+
J[K] = M[K];
|
|
4118
4118
|
});
|
|
4119
|
-
const D = E.toFiniteNumber(
|
|
4119
|
+
const D = E.toFiniteNumber(M.headers.get("content-length")), [z, j] = C && it(
|
|
4120
4120
|
D,
|
|
4121
|
-
|
|
4121
|
+
GA(nt(C), !0)
|
|
4122
4122
|
) || [];
|
|
4123
|
-
|
|
4124
|
-
rt(
|
|
4125
|
-
|
|
4123
|
+
M = new Response(
|
|
4124
|
+
rt(M.body, Ct, z, () => {
|
|
4125
|
+
j && j(), d && d();
|
|
4126
4126
|
}),
|
|
4127
|
-
|
|
4127
|
+
J
|
|
4128
4128
|
);
|
|
4129
4129
|
}
|
|
4130
4130
|
a = a || "text";
|
|
4131
|
-
let
|
|
4132
|
-
return !
|
|
4133
|
-
Nt(
|
|
4134
|
-
data:
|
|
4135
|
-
headers: H.from(
|
|
4136
|
-
status:
|
|
4137
|
-
statusText:
|
|
4131
|
+
let w = yield OA[E.findKey(OA, a) || "text"](M, e);
|
|
4132
|
+
return !p && d && d(), yield new Promise((J, D) => {
|
|
4133
|
+
Nt(J, D, {
|
|
4134
|
+
data: w,
|
|
4135
|
+
headers: H.from(M.headers),
|
|
4136
|
+
status: M.status,
|
|
4137
|
+
statusText: M.statusText,
|
|
4138
4138
|
config: e,
|
|
4139
4139
|
request: c
|
|
4140
4140
|
});
|
|
4141
4141
|
});
|
|
4142
|
-
} catch (
|
|
4143
|
-
throw d && d(),
|
|
4144
|
-
new
|
|
4142
|
+
} catch (q) {
|
|
4143
|
+
throw d && d(), q && q.name === "TypeError" && /Load failed|fetch/i.test(q.message) ? Object.assign(
|
|
4144
|
+
new m("Network Error", m.ERR_NETWORK, e, c),
|
|
4145
4145
|
{
|
|
4146
|
-
cause:
|
|
4146
|
+
cause: q.cause || q
|
|
4147
4147
|
}
|
|
4148
|
-
) :
|
|
4148
|
+
) : m.from(q, q && q.code, e, c);
|
|
4149
4149
|
}
|
|
4150
4150
|
})), ce = {
|
|
4151
4151
|
http: jc,
|
|
@@ -4171,7 +4171,7 @@ const st = (e) => `- ${e}`, MQ = (e) => E.isFunction(e) || e === null || e === !
|
|
|
4171
4171
|
t = e[o];
|
|
4172
4172
|
let r;
|
|
4173
4173
|
if (i = t, !MQ(t) && (i = ce[(r = String(t)).toLowerCase()], i === void 0))
|
|
4174
|
-
throw new
|
|
4174
|
+
throw new m(`Unknown adapter '${r}'`);
|
|
4175
4175
|
if (i)
|
|
4176
4176
|
break;
|
|
4177
4177
|
n[r || "#" + o] = i;
|
|
@@ -4183,7 +4183,7 @@ const st = (e) => `- ${e}`, MQ = (e) => E.isFunction(e) || e === null || e === !
|
|
|
4183
4183
|
let r = A ? o.length > 1 ? `since :
|
|
4184
4184
|
` + o.map(st).join(`
|
|
4185
4185
|
`) : " " + st(o[0]) : "as no adapter specified";
|
|
4186
|
-
throw new
|
|
4186
|
+
throw new m(
|
|
4187
4187
|
"There is no suitable adapter to dispatch the request " + r,
|
|
4188
4188
|
"ERR_NOT_SUPPORT"
|
|
4189
4189
|
);
|
|
@@ -4194,13 +4194,13 @@ const st = (e) => `- ${e}`, MQ = (e) => E.isFunction(e) || e === null || e === !
|
|
|
4194
4194
|
};
|
|
4195
4195
|
function ee(e) {
|
|
4196
4196
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
4197
|
-
throw new
|
|
4197
|
+
throw new sA(null, e);
|
|
4198
4198
|
}
|
|
4199
4199
|
function at(e) {
|
|
4200
4200
|
return ee(e), e.headers = H.from(e.headers), e.data = Ae.call(
|
|
4201
4201
|
e,
|
|
4202
4202
|
e.transformRequest
|
|
4203
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ft.getAdapter(e.adapter ||
|
|
4203
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ft.getAdapter(e.adapter || wA.adapter)(e).then(function(i) {
|
|
4204
4204
|
return ee(e), i.data = Ae.call(
|
|
4205
4205
|
e,
|
|
4206
4206
|
e.transformResponse,
|
|
@@ -4214,22 +4214,22 @@ function at(e) {
|
|
|
4214
4214
|
), i.response.headers = H.from(i.response.headers))), Promise.reject(i);
|
|
4215
4215
|
});
|
|
4216
4216
|
}
|
|
4217
|
-
const Zt = "1.11.0",
|
|
4217
|
+
const Zt = "1.11.0", PA = {};
|
|
4218
4218
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, A) => {
|
|
4219
|
-
|
|
4219
|
+
PA[e] = function(i) {
|
|
4220
4220
|
return typeof i === e || "a" + (A < 1 ? "n " : " ") + e;
|
|
4221
4221
|
};
|
|
4222
4222
|
});
|
|
4223
4223
|
const It = {};
|
|
4224
|
-
|
|
4224
|
+
PA.transitional = function(A, t, i) {
|
|
4225
4225
|
function n(o, r) {
|
|
4226
4226
|
return "[Axios v" + Zt + "] Transitional option '" + o + "'" + r + (i ? ". " + i : "");
|
|
4227
4227
|
}
|
|
4228
4228
|
return (o, r, C) => {
|
|
4229
4229
|
if (A === !1)
|
|
4230
|
-
throw new
|
|
4230
|
+
throw new m(
|
|
4231
4231
|
n(r, " has been removed" + (t ? " in " + t : "")),
|
|
4232
|
-
|
|
4232
|
+
m.ERR_DEPRECATED
|
|
4233
4233
|
);
|
|
4234
4234
|
return t && !It[r] && (It[r] = !0, console.warn(
|
|
4235
4235
|
n(
|
|
@@ -4239,12 +4239,12 @@ FA.transitional = function(A, t, i) {
|
|
|
4239
4239
|
)), A ? A(o, r, C) : !0;
|
|
4240
4240
|
};
|
|
4241
4241
|
};
|
|
4242
|
-
|
|
4242
|
+
PA.spelling = function(A) {
|
|
4243
4243
|
return (t, i) => (console.warn(`${i} is likely a misspelling of ${A}`), !0);
|
|
4244
4244
|
};
|
|
4245
4245
|
function JQ(e, A, t) {
|
|
4246
4246
|
if (typeof e != "object")
|
|
4247
|
-
throw new
|
|
4247
|
+
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
4248
4248
|
const i = Object.keys(e);
|
|
4249
4249
|
let n = i.length;
|
|
4250
4250
|
for (; n-- > 0; ) {
|
|
@@ -4252,18 +4252,18 @@ function JQ(e, A, t) {
|
|
|
4252
4252
|
if (r) {
|
|
4253
4253
|
const C = e[o], s = C === void 0 || r(C, o, e);
|
|
4254
4254
|
if (s !== !0)
|
|
4255
|
-
throw new
|
|
4255
|
+
throw new m("option " + o + " must be " + s, m.ERR_BAD_OPTION_VALUE);
|
|
4256
4256
|
continue;
|
|
4257
4257
|
}
|
|
4258
4258
|
if (t !== !0)
|
|
4259
|
-
throw new
|
|
4259
|
+
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
4260
4260
|
}
|
|
4261
4261
|
}
|
|
4262
|
-
const
|
|
4262
|
+
const SA = {
|
|
4263
4263
|
assertOptions: JQ,
|
|
4264
|
-
validators:
|
|
4265
|
-
},
|
|
4266
|
-
let
|
|
4264
|
+
validators: PA
|
|
4265
|
+
}, P = SA.validators;
|
|
4266
|
+
let $ = class {
|
|
4267
4267
|
constructor(A) {
|
|
4268
4268
|
this.defaults = A || {}, this.interceptors = {
|
|
4269
4269
|
request: new et(),
|
|
@@ -4298,20 +4298,20 @@ let _ = class {
|
|
|
4298
4298
|
});
|
|
4299
4299
|
}
|
|
4300
4300
|
_request(A, t) {
|
|
4301
|
-
typeof A == "string" ? (t = t || {}, t.url = A) : t = A || {}, t =
|
|
4301
|
+
typeof A == "string" ? (t = t || {}, t.url = A) : t = A || {}, t = AA(this.defaults, t);
|
|
4302
4302
|
const { transitional: i, paramsSerializer: n, headers: o } = t;
|
|
4303
|
-
i !== void 0 &&
|
|
4304
|
-
silentJSONParsing:
|
|
4305
|
-
forcedJSONParsing:
|
|
4306
|
-
clarifyTimeoutError:
|
|
4303
|
+
i !== void 0 && SA.assertOptions(i, {
|
|
4304
|
+
silentJSONParsing: P.transitional(P.boolean),
|
|
4305
|
+
forcedJSONParsing: P.transitional(P.boolean),
|
|
4306
|
+
clarifyTimeoutError: P.transitional(P.boolean)
|
|
4307
4307
|
}, !1), n != null && (E.isFunction(n) ? t.paramsSerializer = {
|
|
4308
4308
|
serialize: n
|
|
4309
|
-
} :
|
|
4310
|
-
encode:
|
|
4311
|
-
serialize:
|
|
4312
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0),
|
|
4313
|
-
baseUrl:
|
|
4314
|
-
withXsrfToken:
|
|
4309
|
+
} : SA.assertOptions(n, {
|
|
4310
|
+
encode: P.function,
|
|
4311
|
+
serialize: P.function
|
|
4312
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), SA.assertOptions(t, {
|
|
4313
|
+
baseUrl: P.spelling("baseURL"),
|
|
4314
|
+
withXsrfToken: P.spelling("withXSRFToken")
|
|
4315
4315
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
4316
4316
|
let r = o && E.merge(
|
|
4317
4317
|
o.common,
|
|
@@ -4360,14 +4360,14 @@ let _ = class {
|
|
|
4360
4360
|
return I;
|
|
4361
4361
|
}
|
|
4362
4362
|
getUri(A) {
|
|
4363
|
-
A =
|
|
4363
|
+
A = AA(this.defaults, A);
|
|
4364
4364
|
const t = Yt(A.baseURL, A.url, A.allowAbsoluteUrls);
|
|
4365
4365
|
return Gt(t, A.params, A.paramsSerializer);
|
|
4366
4366
|
}
|
|
4367
4367
|
};
|
|
4368
4368
|
E.forEach(["delete", "get", "head", "options"], function(A) {
|
|
4369
|
-
|
|
4370
|
-
return this.request(
|
|
4369
|
+
$.prototype[A] = function(t, i) {
|
|
4370
|
+
return this.request(AA(i || {}, {
|
|
4371
4371
|
method: A,
|
|
4372
4372
|
url: t,
|
|
4373
4373
|
data: (i || {}).data
|
|
@@ -4377,7 +4377,7 @@ E.forEach(["delete", "get", "head", "options"], function(A) {
|
|
|
4377
4377
|
E.forEach(["post", "put", "patch"], function(A) {
|
|
4378
4378
|
function t(i) {
|
|
4379
4379
|
return function(o, r, C) {
|
|
4380
|
-
return this.request(
|
|
4380
|
+
return this.request(AA(C || {}, {
|
|
4381
4381
|
method: A,
|
|
4382
4382
|
headers: i ? {
|
|
4383
4383
|
"Content-Type": "multipart/form-data"
|
|
@@ -4387,7 +4387,7 @@ E.forEach(["post", "put", "patch"], function(A) {
|
|
|
4387
4387
|
}));
|
|
4388
4388
|
};
|
|
4389
4389
|
}
|
|
4390
|
-
|
|
4390
|
+
$.prototype[A] = t(), $.prototype[A + "Form"] = t(!0);
|
|
4391
4391
|
});
|
|
4392
4392
|
let yQ = class Ut {
|
|
4393
4393
|
constructor(A) {
|
|
@@ -4413,7 +4413,7 @@ let yQ = class Ut {
|
|
|
4413
4413
|
i.unsubscribe(o);
|
|
4414
4414
|
}, r;
|
|
4415
4415
|
}, A(function(o, r, C) {
|
|
4416
|
-
i.reason || (i.reason = new
|
|
4416
|
+
i.reason || (i.reason = new sA(o, r, C), t(i.reason));
|
|
4417
4417
|
});
|
|
4418
4418
|
}
|
|
4419
4419
|
/**
|
|
@@ -4539,26 +4539,26 @@ Object.entries(Qe).forEach(([e, A]) => {
|
|
|
4539
4539
|
Qe[A] = e;
|
|
4540
4540
|
});
|
|
4541
4541
|
function Wt(e) {
|
|
4542
|
-
const A = new
|
|
4543
|
-
return E.extend(t,
|
|
4544
|
-
return Wt(
|
|
4542
|
+
const A = new $(e), t = ft($.prototype.request, A);
|
|
4543
|
+
return E.extend(t, $.prototype, A, { allOwnKeys: !0 }), E.extend(t, A, null, { allOwnKeys: !0 }), t.create = function(n) {
|
|
4544
|
+
return Wt(AA(e, n));
|
|
4545
4545
|
}, t;
|
|
4546
4546
|
}
|
|
4547
|
-
const y = Wt(
|
|
4548
|
-
y.Axios =
|
|
4549
|
-
y.CanceledError =
|
|
4547
|
+
const y = Wt(wA);
|
|
4548
|
+
y.Axios = $;
|
|
4549
|
+
y.CanceledError = sA;
|
|
4550
4550
|
y.CancelToken = yQ;
|
|
4551
4551
|
y.isCancel = jt;
|
|
4552
4552
|
y.VERSION = Zt;
|
|
4553
|
-
y.toFormData =
|
|
4554
|
-
y.AxiosError =
|
|
4553
|
+
y.toFormData = bA;
|
|
4554
|
+
y.AxiosError = m;
|
|
4555
4555
|
y.Cancel = y.CanceledError;
|
|
4556
4556
|
y.all = function(A) {
|
|
4557
4557
|
return Promise.all(A);
|
|
4558
4558
|
};
|
|
4559
4559
|
y.spread = zQ;
|
|
4560
4560
|
y.isAxiosError = SQ;
|
|
4561
|
-
y.mergeConfig =
|
|
4561
|
+
y.mergeConfig = AA;
|
|
4562
4562
|
y.AxiosHeaders = H;
|
|
4563
4563
|
y.formToJSON = (e) => Ht(E.isHTMLForm(e) ? new FormData(e) : e);
|
|
4564
4564
|
y.getAdapter = Ft.getAdapter;
|
|
@@ -4603,16 +4603,16 @@ function RQ({
|
|
|
4603
4603
|
preventClose: s = !1,
|
|
4604
4604
|
theme: a = null
|
|
4605
4605
|
} = {}) {
|
|
4606
|
-
document.querySelectorAll('[data-wgt-popup="true"]').forEach((
|
|
4606
|
+
document.querySelectorAll('[data-wgt-popup="true"]').forEach((f) => {
|
|
4607
4607
|
try {
|
|
4608
|
-
|
|
4609
|
-
} catch (
|
|
4608
|
+
f.remove();
|
|
4609
|
+
} catch (N) {
|
|
4610
4610
|
}
|
|
4611
4611
|
});
|
|
4612
4612
|
let g = a;
|
|
4613
4613
|
if (!g) {
|
|
4614
|
-
const
|
|
4615
|
-
|
|
4614
|
+
const f = document.body.className;
|
|
4615
|
+
f.includes("bvb") ? g = "bvb" : f.includes("shb") ? g = "shb" : f.includes("agr") ? g = "agr" : f.includes("nama") ? g = "nama" : g = "ocb";
|
|
4616
4616
|
}
|
|
4617
4617
|
const B = kQ(g), Q = document.createElement("div");
|
|
4618
4618
|
Q.style.cssText = `
|
|
@@ -4639,8 +4639,8 @@ function RQ({
|
|
|
4639
4639
|
`, Q.appendChild(c);
|
|
4640
4640
|
const d = document.createElement("div");
|
|
4641
4641
|
if (d.style.cssText = "display: flex; justify-content: center;", r) {
|
|
4642
|
-
const
|
|
4643
|
-
|
|
4642
|
+
const f = document.createElement("div");
|
|
4643
|
+
f.style.cssText = `
|
|
4644
4644
|
width: 120px;
|
|
4645
4645
|
height: 120px;
|
|
4646
4646
|
display: flex;
|
|
@@ -4648,10 +4648,10 @@ function RQ({
|
|
|
4648
4648
|
justify-content: center;
|
|
4649
4649
|
background-color: #f3f4f6;
|
|
4650
4650
|
border-radius: 0.5rem;
|
|
4651
|
-
`,
|
|
4651
|
+
`, f.innerHTML = '<div class="wgt:text-center"><div class="wgt:text-4xl wgt:mb-2">Failed</div></div>', d.appendChild(f);
|
|
4652
4652
|
} else {
|
|
4653
|
-
const
|
|
4654
|
-
|
|
4653
|
+
const f = document.createElement("img");
|
|
4654
|
+
f.src = C ? DQ : o ? KQ : vQ, f.alt = "status", f.style.cssText = o ? "width: 120px; height: 120px;" : "width: 40px; height: 40px;", d.appendChild(f);
|
|
4655
4655
|
}
|
|
4656
4656
|
c.appendChild(d);
|
|
4657
4657
|
const u = document.createElement("h2");
|
|
@@ -4662,23 +4662,23 @@ function RQ({
|
|
|
4662
4662
|
color: #1f2937;
|
|
4663
4663
|
line-height: 1.4;
|
|
4664
4664
|
`, u.innerText = e, c.appendChild(u), A) {
|
|
4665
|
-
const
|
|
4666
|
-
|
|
4665
|
+
const f = document.createElement("p");
|
|
4666
|
+
f.style.cssText = `
|
|
4667
4667
|
margin: 0 0 1.5rem;
|
|
4668
4668
|
font-size: 0.875rem;
|
|
4669
4669
|
color: #0E121B;
|
|
4670
4670
|
line-height: 1.5;
|
|
4671
|
-
`,
|
|
4671
|
+
`, f.innerText = A, c.appendChild(f);
|
|
4672
4672
|
}
|
|
4673
|
-
const
|
|
4674
|
-
|
|
4673
|
+
const q = document.createElement("div");
|
|
4674
|
+
q.style.cssText = `
|
|
4675
4675
|
display: flex;
|
|
4676
4676
|
justify-content: center;
|
|
4677
4677
|
gap: 1rem;
|
|
4678
4678
|
margin-top: ${A ? "0" : "1.5rem"};
|
|
4679
|
-
`, c.appendChild(
|
|
4680
|
-
const
|
|
4681
|
-
|
|
4679
|
+
`, c.appendChild(q);
|
|
4680
|
+
const M = !C && !o, p = document.createElement("button");
|
|
4681
|
+
p.type = "button", p.innerText = t, p.style.cssText = `
|
|
4682
4682
|
width: 100%;
|
|
4683
4683
|
border-radius: 0.25rem;
|
|
4684
4684
|
padding: 0.75rem 1rem;
|
|
@@ -4687,11 +4687,11 @@ function RQ({
|
|
|
4687
4687
|
border: none;
|
|
4688
4688
|
font-size: 1rem;
|
|
4689
4689
|
font-weight: 500;
|
|
4690
|
-
background-color: ${
|
|
4690
|
+
background-color: ${M ? "#ef4444" : B};
|
|
4691
4691
|
transition: opacity 0.2s ease;
|
|
4692
|
-
`,
|
|
4693
|
-
let
|
|
4694
|
-
i && (
|
|
4692
|
+
`, p.addEventListener("mouseenter", () => p.style.opacity = "0.9"), p.addEventListener("mouseleave", () => p.style.opacity = "1"), p.addEventListener("focus", () => p.style.outline = "none"), q.appendChild(p);
|
|
4693
|
+
let w = null;
|
|
4694
|
+
i && (w = document.createElement("button"), w.type = "button", w.innerText = i, w.style.cssText = `
|
|
4695
4695
|
width: 100%;
|
|
4696
4696
|
border-radius: 0.25rem;
|
|
4697
4697
|
padding: 0.75rem 1rem;
|
|
@@ -4702,42 +4702,42 @@ function RQ({
|
|
|
4702
4702
|
font-weight: 500;
|
|
4703
4703
|
background-color: #d1d5db;
|
|
4704
4704
|
transition: opacity 0.2s ease;
|
|
4705
|
-
`,
|
|
4705
|
+
`, w.addEventListener(
|
|
4706
4706
|
"mouseenter",
|
|
4707
|
-
() =>
|
|
4708
|
-
),
|
|
4707
|
+
() => w.style.opacity = "0.9"
|
|
4708
|
+
), w.addEventListener(
|
|
4709
4709
|
"mouseleave",
|
|
4710
|
-
() =>
|
|
4711
|
-
),
|
|
4710
|
+
() => w.style.opacity = "1"
|
|
4711
|
+
), w.addEventListener(
|
|
4712
4712
|
"focus",
|
|
4713
|
-
() =>
|
|
4714
|
-
),
|
|
4715
|
-
let
|
|
4716
|
-
const
|
|
4717
|
-
|
|
4718
|
-
},
|
|
4719
|
-
|
|
4713
|
+
() => w.style.outline = "none"
|
|
4714
|
+
), q.appendChild(w));
|
|
4715
|
+
let J = !1, D = !1;
|
|
4716
|
+
const z = (f) => {
|
|
4717
|
+
f.target === Q && !s && W();
|
|
4718
|
+
}, j = (f) => {
|
|
4719
|
+
f.key === "Escape" && !s && W();
|
|
4720
4720
|
};
|
|
4721
|
-
function N() {
|
|
4722
|
-
Q.addEventListener("click", D), window.addEventListener("keydown", z), m.addEventListener("click", () => T(!0)), q && q.addEventListener("click", () => T(!1));
|
|
4723
|
-
}
|
|
4724
4721
|
function K() {
|
|
4725
|
-
Q.
|
|
4722
|
+
Q.addEventListener("click", z), window.addEventListener("keydown", j), p.addEventListener("click", () => W(!0)), w && w.addEventListener("click", () => W(!1));
|
|
4726
4723
|
}
|
|
4727
4724
|
function v() {
|
|
4728
|
-
|
|
4725
|
+
Q.removeEventListener("click", z), window.removeEventListener("keydown", j);
|
|
4726
|
+
}
|
|
4727
|
+
function ZA() {
|
|
4728
|
+
J || (J = !0, document.body.appendChild(Q), Q.style.display = "flex", setTimeout(() => p.focus(), 0), K());
|
|
4729
4729
|
}
|
|
4730
|
-
function
|
|
4731
|
-
if (!(!
|
|
4732
|
-
|
|
4730
|
+
function W(f = !0) {
|
|
4731
|
+
if (!(!J || D)) {
|
|
4732
|
+
D = !0, J = !1, v();
|
|
4733
4733
|
try {
|
|
4734
4734
|
Q.remove();
|
|
4735
|
-
} catch (
|
|
4735
|
+
} catch (N) {
|
|
4736
4736
|
}
|
|
4737
|
-
|
|
4737
|
+
f && typeof n == "function" && n();
|
|
4738
4738
|
}
|
|
4739
4739
|
}
|
|
4740
|
-
return { container: Q, open:
|
|
4740
|
+
return { container: Q, open: ZA, close: W };
|
|
4741
4741
|
}
|
|
4742
4742
|
function LQ(e, A = {}) {
|
|
4743
4743
|
const {
|
|
@@ -4823,13 +4823,13 @@ function BB(e, A = {}) {
|
|
|
4823
4823
|
});
|
|
4824
4824
|
return document.body.appendChild(C.container), C.open(), C;
|
|
4825
4825
|
}
|
|
4826
|
-
const
|
|
4826
|
+
const FA = y.create({
|
|
4827
4827
|
headers: {
|
|
4828
4828
|
Accept: "application/json"
|
|
4829
4829
|
},
|
|
4830
4830
|
withCredentials: !1
|
|
4831
4831
|
});
|
|
4832
|
-
|
|
4832
|
+
FA.interceptors.request.use(
|
|
4833
4833
|
function(e) {
|
|
4834
4834
|
return e.baseURL = YE().invoiceHubBaseUrl, e;
|
|
4835
4835
|
},
|
|
@@ -4837,10 +4837,10 @@ ZA.interceptors.request.use(
|
|
|
4837
4837
|
return Promise.reject(e);
|
|
4838
4838
|
}
|
|
4839
4839
|
);
|
|
4840
|
-
Tt(
|
|
4840
|
+
Tt(FA, {});
|
|
4841
4841
|
function uB(A) {
|
|
4842
4842
|
return k(this, arguments, function* ({ orderId: e }) {
|
|
4843
|
-
return yield
|
|
4843
|
+
return yield FA.get(`${VE}/${e}`, {
|
|
4844
4844
|
headers: {
|
|
4845
4845
|
"Content-Type": "application/json"
|
|
4846
4846
|
}
|
|
@@ -4849,7 +4849,7 @@ function uB(A) {
|
|
|
4849
4849
|
}
|
|
4850
4850
|
function GQ(A) {
|
|
4851
4851
|
return k(this, arguments, function* ({ orderId: e }) {
|
|
4852
|
-
return yield
|
|
4852
|
+
return yield FA.get(
|
|
4853
4853
|
`${$E}/${e}`,
|
|
4854
4854
|
{
|
|
4855
4855
|
headers: {
|
|
@@ -4863,17 +4863,17 @@ let le = "accessToken";
|
|
|
4863
4863
|
function OQ(e) {
|
|
4864
4864
|
le = e;
|
|
4865
4865
|
}
|
|
4866
|
-
let
|
|
4866
|
+
let KA = null;
|
|
4867
4867
|
function HQ(e) {
|
|
4868
|
-
|
|
4868
|
+
KA = e;
|
|
4869
4869
|
}
|
|
4870
|
-
let
|
|
4871
|
-
const
|
|
4870
|
+
let BA = [], vA = !1;
|
|
4871
|
+
const rA = y.create({
|
|
4872
4872
|
headers: {
|
|
4873
4873
|
Accept: "application/json"
|
|
4874
4874
|
}
|
|
4875
4875
|
});
|
|
4876
|
-
|
|
4876
|
+
rA.interceptors.request.use(
|
|
4877
4877
|
function(e) {
|
|
4878
4878
|
return e.headers.Authorization = `Bearer ${localStorage.getItem(
|
|
4879
4879
|
le
|
|
@@ -4887,24 +4887,24 @@ function jQ(e, A) {
|
|
|
4887
4887
|
return k(this, null, function* () {
|
|
4888
4888
|
var i, n;
|
|
4889
4889
|
const t = A != null ? A : localStorage.getItem(le);
|
|
4890
|
-
for (;
|
|
4891
|
-
const o =
|
|
4890
|
+
for (; BA.length; ) {
|
|
4891
|
+
const o = BA.shift();
|
|
4892
4892
|
if (o)
|
|
4893
4893
|
try {
|
|
4894
|
-
o.request.headers = (i = o.request.headers) != null ? i : {}, t && (o.request.headers.Authorization = `Bearer ${t}`), o.resolve(
|
|
4894
|
+
o.request.headers = (i = o.request.headers) != null ? i : {}, t && (o.request.headers.Authorization = `Bearer ${t}`), o.resolve(rA(o.request));
|
|
4895
4895
|
} catch (r) {
|
|
4896
4896
|
o.reject(r);
|
|
4897
4897
|
}
|
|
4898
4898
|
}
|
|
4899
4899
|
e.headers = (n = e.headers) != null ? n : {}, A && (e.headers.Authorization = `Bearer ${A}`);
|
|
4900
4900
|
try {
|
|
4901
|
-
return yield
|
|
4901
|
+
return yield rA(e);
|
|
4902
4902
|
} finally {
|
|
4903
|
-
|
|
4903
|
+
vA = !1;
|
|
4904
4904
|
}
|
|
4905
4905
|
});
|
|
4906
4906
|
}
|
|
4907
|
-
|
|
4907
|
+
rA.interceptors.response.use(
|
|
4908
4908
|
(e) => e,
|
|
4909
4909
|
(e) => k(null, null, function* () {
|
|
4910
4910
|
const A = e == null ? void 0 : e.config;
|
|
@@ -4912,27 +4912,27 @@ CA.interceptors.response.use(
|
|
|
4912
4912
|
return Promise.reject(e);
|
|
4913
4913
|
if (e.response.status === 401 || e.response.status === 403)
|
|
4914
4914
|
try {
|
|
4915
|
-
if (
|
|
4915
|
+
if (vA)
|
|
4916
4916
|
return new Promise((i, n) => {
|
|
4917
|
-
|
|
4917
|
+
BA.push({ resolve: i, reject: n, request: A });
|
|
4918
4918
|
});
|
|
4919
|
-
|
|
4920
|
-
const t = yield
|
|
4919
|
+
vA = !0;
|
|
4920
|
+
const t = yield KA == null ? void 0 : KA();
|
|
4921
4921
|
return jQ(A, t == null ? void 0 : t.accessToken);
|
|
4922
4922
|
} catch (t) {
|
|
4923
|
-
for (;
|
|
4924
|
-
const i =
|
|
4923
|
+
for (; BA.length; ) {
|
|
4924
|
+
const i = BA.shift();
|
|
4925
4925
|
i && i.reject(t);
|
|
4926
4926
|
}
|
|
4927
|
-
return
|
|
4927
|
+
return vA = !1, Promise.reject(t);
|
|
4928
4928
|
}
|
|
4929
4929
|
return Promise.reject(e);
|
|
4930
4930
|
})
|
|
4931
4931
|
);
|
|
4932
|
-
Tt(
|
|
4932
|
+
Tt(rA, {});
|
|
4933
4933
|
function dB(e) {
|
|
4934
4934
|
return k(this, null, function* () {
|
|
4935
|
-
const A = yield
|
|
4935
|
+
const A = yield rA.post(
|
|
4936
4936
|
_E,
|
|
4937
4937
|
{
|
|
4938
4938
|
bill_number: e.orderId,
|
|
@@ -4953,7 +4953,7 @@ let te = null, ie = null;
|
|
|
4953
4953
|
function lB(e) {
|
|
4954
4954
|
return k(this, null, function* () {
|
|
4955
4955
|
if (e.mode && pt(e.mode), e.baseUrl && mt(e.mode, e.baseUrl), e.language && Xt(e.language), e.onRefreshToken && HQ(e.onRefreshToken), e.accessTokenKey && OQ(e.accessTokenKey), e.refreshTokenKey && (e.refreshTokenKey, void 0), !ie) {
|
|
4956
|
-
const { InvoiceRegisterWidget: i } = yield import("./widget-
|
|
4956
|
+
const { InvoiceRegisterWidget: i } = yield import("./widget-D8z1Cn-p.js");
|
|
4957
4957
|
ie = i;
|
|
4958
4958
|
}
|
|
4959
4959
|
const A = typeof e.selector == "string" ? document.querySelector(e.selector) : e.selector;
|
|
@@ -4979,7 +4979,7 @@ function lB(e) {
|
|
|
4979
4979
|
function hB(e) {
|
|
4980
4980
|
return k(this, null, function* () {
|
|
4981
4981
|
if (e.mode && pt(e.mode), e.baseUrl && mt(e.mode, e.baseUrl), e.language && Xt(e.language), !te) {
|
|
4982
|
-
const { EContractWidget: t } = yield import("./widget-
|
|
4982
|
+
const { EContractWidget: t } = yield import("./widget-D8z1Cn-p.js");
|
|
4983
4983
|
te = t;
|
|
4984
4984
|
}
|
|
4985
4985
|
const A = typeof e.selector == "string" ? document.querySelector(e.selector) : e.selector;
|