@snmt-react-ui/country-select 1.3.2 → 1.4.0
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/CountrySelect.d.ts +1 -0
- package/dist/country-select.js +368 -367
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
@@ -351,8 +351,8 @@ function Ht(e, t, n) {
|
|
351
351
|
metaTokens: !0,
|
352
352
|
dots: !1,
|
353
353
|
indexes: !1
|
354
|
-
}, !1, function(p,
|
355
|
-
return !C.isUndefined(
|
354
|
+
}, !1, function(p, g) {
|
355
|
+
return !C.isUndefined(g[p]);
|
356
356
|
});
|
357
357
|
const r = n.metaTokens, o = n.visitor || c, i = n.dots, s = n.indexes, a = (n.Blob || typeof Blob < "u" && Blob) && C.isSpecCompliantForm(t);
|
358
358
|
if (!C.isFunction(o))
|
@@ -365,45 +365,45 @@ function Ht(e, t, n) {
|
|
365
365
|
throw new A("Blob is not supported. Use a Buffer instead.");
|
366
366
|
return C.isArrayBuffer(p) || C.isTypedArray(p) ? a && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
367
367
|
}
|
368
|
-
function c(p,
|
369
|
-
let
|
368
|
+
function c(p, g, f) {
|
369
|
+
let R = p;
|
370
370
|
if (p && !f && typeof p == "object") {
|
371
|
-
if (C.endsWith(
|
372
|
-
|
373
|
-
else if (C.isArray(p) && F1(p) || (C.isFileList(p) || C.endsWith(
|
374
|
-
return
|
375
|
-
!(C.isUndefined(
|
371
|
+
if (C.endsWith(g, "{}"))
|
372
|
+
g = r ? g : g.slice(0, -2), p = JSON.stringify(p);
|
373
|
+
else if (C.isArray(p) && F1(p) || (C.isFileList(p) || C.endsWith(g, "[]")) && (R = C.toArray(p)))
|
374
|
+
return g = Qo(g), R.forEach(function(v, L) {
|
375
|
+
!(C.isUndefined(v) || v === null) && t.append(
|
376
376
|
// eslint-disable-next-line no-nested-ternary
|
377
|
-
s === !0 ? Nr([
|
378
|
-
d(
|
377
|
+
s === !0 ? Nr([g], L, i) : s === null ? g : g + "[]",
|
378
|
+
d(v)
|
379
379
|
);
|
380
380
|
}), !1;
|
381
381
|
}
|
382
|
-
return En(p) ? !0 : (t.append(Nr(f,
|
382
|
+
return En(p) ? !0 : (t.append(Nr(f, g, i), d(p)), !1);
|
383
383
|
}
|
384
384
|
const l = [], u = Object.assign(H1, {
|
385
385
|
defaultVisitor: c,
|
386
386
|
convertValue: d,
|
387
387
|
isVisitable: En
|
388
388
|
});
|
389
|
-
function
|
389
|
+
function m(p, g) {
|
390
390
|
if (!C.isUndefined(p)) {
|
391
391
|
if (l.indexOf(p) !== -1)
|
392
|
-
throw Error("Circular reference detected in " +
|
393
|
-
l.push(p), C.forEach(p, function(f,
|
392
|
+
throw Error("Circular reference detected in " + g.join("."));
|
393
|
+
l.push(p), C.forEach(p, function(f, R) {
|
394
394
|
(!(C.isUndefined(f) || f === null) && o.call(
|
395
395
|
t,
|
396
396
|
f,
|
397
|
-
C.isString(
|
398
|
-
|
397
|
+
C.isString(R) ? R.trim() : R,
|
398
|
+
g,
|
399
399
|
u
|
400
|
-
)) === !0 &&
|
400
|
+
)) === !0 && m(f, g ? g.concat(R) : [R]);
|
401
401
|
}), l.pop();
|
402
402
|
}
|
403
403
|
}
|
404
404
|
if (!C.isObject(e))
|
405
405
|
throw new TypeError("data must be an object");
|
406
|
-
return
|
406
|
+
return m(e), t;
|
407
407
|
}
|
408
408
|
function Er(e) {
|
409
409
|
const t = {
|
@@ -874,8 +874,8 @@ function aa(e, t) {
|
|
874
874
|
u += n[l++], l = l % e;
|
875
875
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
876
876
|
return;
|
877
|
-
const
|
878
|
-
return
|
877
|
+
const m = c && d - c;
|
878
|
+
return m ? Math.round(u * 1e3 / m) : void 0;
|
879
879
|
};
|
880
880
|
}
|
881
881
|
function la(e, t) {
|
@@ -1074,13 +1074,13 @@ const ai = (e) => {
|
|
1074
1074
|
const r = ai(e);
|
1075
1075
|
let o = r.data;
|
1076
1076
|
const i = Z.from(r.headers).normalize();
|
1077
|
-
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u,
|
1078
|
-
function
|
1079
|
-
|
1077
|
+
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u, m, p;
|
1078
|
+
function g() {
|
1079
|
+
m && m(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
|
1080
1080
|
}
|
1081
1081
|
let f = new XMLHttpRequest();
|
1082
1082
|
f.open(r.method.toUpperCase(), r.url, !0), f.timeout = r.timeout;
|
1083
|
-
function
|
1083
|
+
function R() {
|
1084
1084
|
if (!f)
|
1085
1085
|
return;
|
1086
1086
|
const L = Z.from(
|
@@ -1094,13 +1094,13 @@ const ai = (e) => {
|
|
1094
1094
|
request: f
|
1095
1095
|
};
|
1096
1096
|
ii(function(N) {
|
1097
|
-
t(N),
|
1097
|
+
t(N), g();
|
1098
1098
|
}, function(N) {
|
1099
|
-
n(N),
|
1099
|
+
n(N), g();
|
1100
1100
|
}, x), f = null;
|
1101
1101
|
}
|
1102
|
-
"onloadend" in f ? f.onloadend =
|
1103
|
-
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(
|
1102
|
+
"onloadend" in f ? f.onloadend = R : f.onreadystatechange = function() {
|
1103
|
+
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(R);
|
1104
1104
|
}, f.onabort = function() {
|
1105
1105
|
f && (n(new A("Request aborted", A.ECONNABORTED, e, f)), f = null);
|
1106
1106
|
}, f.onerror = function() {
|
@@ -1116,12 +1116,12 @@ const ai = (e) => {
|
|
1116
1116
|
)), f = null;
|
1117
1117
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in f && C.forEach(i.toJSON(), function(L, x) {
|
1118
1118
|
f.setRequestHeader(x, L);
|
1119
|
-
}), C.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = Rt(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l,
|
1119
|
+
}), C.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = Rt(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l, m] = Rt(a), f.upload.addEventListener("progress", l), f.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (c = (L) => {
|
1120
1120
|
f && (n(!L || L.type ? new Ie(null, e, f) : L), f.abort(), f = null);
|
1121
1121
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
1122
|
-
const
|
1123
|
-
if (
|
1124
|
-
n(new A("Unsupported protocol " +
|
1122
|
+
const v = sa(r.url);
|
1123
|
+
if (v && G.protocols.indexOf(v) === -1) {
|
1124
|
+
n(new A("Unsupported protocol " + v + ":", A.ERR_BAD_REQUEST, e));
|
1125
1125
|
return;
|
1126
1126
|
}
|
1127
1127
|
f.send(o || null);
|
@@ -1192,8 +1192,8 @@ const ai = (e) => {
|
|
1192
1192
|
}
|
1193
1193
|
let u = l.byteLength;
|
1194
1194
|
if (n) {
|
1195
|
-
let
|
1196
|
-
n(
|
1195
|
+
let m = i += u;
|
1196
|
+
n(m);
|
1197
1197
|
}
|
1198
1198
|
d.enqueue(new Uint8Array(l));
|
1199
1199
|
} catch (c) {
|
@@ -1259,16 +1259,16 @@ const ba = async (e) => {
|
|
1259
1259
|
responseType: c,
|
1260
1260
|
headers: l,
|
1261
1261
|
withCredentials: u = "same-origin",
|
1262
|
-
fetchOptions:
|
1262
|
+
fetchOptions: m
|
1263
1263
|
} = ai(e);
|
1264
1264
|
c = c ? (c + "").toLowerCase() : "text";
|
1265
|
-
let p = ga([o, i && i.toAbortSignal()], s),
|
1265
|
+
let p = ga([o, i && i.toAbortSignal()], s), g;
|
1266
1266
|
const f = p && p.unsubscribe && (() => {
|
1267
1267
|
p.unsubscribe();
|
1268
1268
|
});
|
1269
|
-
let
|
1269
|
+
let R;
|
1270
1270
|
try {
|
1271
|
-
if (d && ya && n !== "get" && n !== "head" && (
|
1271
|
+
if (d && ya && n !== "get" && n !== "head" && (R = await La(l, r)) !== 0) {
|
1272
1272
|
let E = new Request(t, {
|
1273
1273
|
method: "POST",
|
1274
1274
|
body: r,
|
@@ -1276,24 +1276,24 @@ const ba = async (e) => {
|
|
1276
1276
|
}), O;
|
1277
1277
|
if (C.isFormData(r) && (O = E.headers.get("content-type")) && l.setContentType(O), E.body) {
|
1278
1278
|
const [S, D] = Sr(
|
1279
|
-
|
1279
|
+
R,
|
1280
1280
|
Rt(Ar(d))
|
1281
1281
|
);
|
1282
1282
|
r = _r(E.body, Mr, S, D);
|
1283
1283
|
}
|
1284
1284
|
}
|
1285
1285
|
C.isString(u) || (u = u ? "include" : "omit");
|
1286
|
-
const
|
1287
|
-
|
1288
|
-
...
|
1286
|
+
const v = "credentials" in Request.prototype;
|
1287
|
+
g = new Request(t, {
|
1288
|
+
...m,
|
1289
1289
|
signal: p,
|
1290
1290
|
method: n.toUpperCase(),
|
1291
1291
|
headers: l.normalize().toJSON(),
|
1292
1292
|
body: r,
|
1293
1293
|
duplex: "half",
|
1294
|
-
credentials:
|
1294
|
+
credentials: v ? u : void 0
|
1295
1295
|
});
|
1296
|
-
let L = await fetch(
|
1296
|
+
let L = await fetch(g);
|
1297
1297
|
const x = On && (c === "stream" || c === "response");
|
1298
1298
|
if (On && (a || x && f)) {
|
1299
1299
|
const E = {};
|
@@ -1320,16 +1320,16 @@ const ba = async (e) => {
|
|
1320
1320
|
status: L.status,
|
1321
1321
|
statusText: L.statusText,
|
1322
1322
|
config: e,
|
1323
|
-
request:
|
1323
|
+
request: g
|
1324
1324
|
});
|
1325
1325
|
});
|
1326
|
-
} catch (
|
1327
|
-
throw f && f(),
|
1328
|
-
new A("Network Error", A.ERR_NETWORK, e,
|
1326
|
+
} catch (v) {
|
1327
|
+
throw f && f(), v && v.name === "TypeError" && /fetch/i.test(v.message) ? Object.assign(
|
1328
|
+
new A("Network Error", A.ERR_NETWORK, e, g),
|
1329
1329
|
{
|
1330
|
-
cause:
|
1330
|
+
cause: v.cause || v
|
1331
1331
|
}
|
1332
|
-
) : A.from(
|
1332
|
+
) : A.from(v, v && v.code, e, g);
|
1333
1333
|
}
|
1334
1334
|
}), Sn = {
|
1335
1335
|
http: I1,
|
@@ -1516,18 +1516,18 @@ let Re = class {
|
|
1516
1516
|
return c;
|
1517
1517
|
}
|
1518
1518
|
u = s.length;
|
1519
|
-
let
|
1519
|
+
let m = t;
|
1520
1520
|
for (l = 0; l < u; ) {
|
1521
|
-
const p = s[l++],
|
1521
|
+
const p = s[l++], g = s[l++];
|
1522
1522
|
try {
|
1523
|
-
|
1523
|
+
m = p(m);
|
1524
1524
|
} catch (f) {
|
1525
|
-
|
1525
|
+
g.call(this, f);
|
1526
1526
|
break;
|
1527
1527
|
}
|
1528
1528
|
}
|
1529
1529
|
try {
|
1530
|
-
c = Br.call(this,
|
1530
|
+
c = Br.call(this, m);
|
1531
1531
|
} catch (p) {
|
1532
1532
|
return Promise.reject(p);
|
1533
1533
|
}
|
@@ -2081,8 +2081,8 @@ function Gt(e, t, n) {
|
|
2081
2081
|
metaTokens: !0,
|
2082
2082
|
dots: !1,
|
2083
2083
|
indexes: !1
|
2084
|
-
}, !1, function(p,
|
2085
|
-
return !k.isUndefined(
|
2084
|
+
}, !1, function(p, g) {
|
2085
|
+
return !k.isUndefined(g[p]);
|
2086
2086
|
});
|
2087
2087
|
const r = n.metaTokens, o = n.visitor || c, i = n.dots, s = n.indexes, a = (n.Blob || typeof Blob < "u" && Blob) && k.isSpecCompliantForm(t);
|
2088
2088
|
if (!k.isFunction(o))
|
@@ -2095,45 +2095,45 @@ function Gt(e, t, n) {
|
|
2095
2095
|
throw new T("Blob is not supported. Use a Buffer instead.");
|
2096
2096
|
return k.isArrayBuffer(p) || k.isTypedArray(p) ? a && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
2097
2097
|
}
|
2098
|
-
function c(p,
|
2099
|
-
let
|
2098
|
+
function c(p, g, f) {
|
2099
|
+
let R = p;
|
2100
2100
|
if (p && !f && typeof p == "object") {
|
2101
|
-
if (k.endsWith(
|
2102
|
-
|
2103
|
-
else if (k.isArray(p) && ml(p) || (k.isFileList(p) || k.endsWith(
|
2104
|
-
return
|
2105
|
-
!(k.isUndefined(
|
2101
|
+
if (k.endsWith(g, "{}"))
|
2102
|
+
g = r ? g : g.slice(0, -2), p = JSON.stringify(p);
|
2103
|
+
else if (k.isArray(p) && ml(p) || (k.isFileList(p) || k.endsWith(g, "[]")) && (R = k.toArray(p)))
|
2104
|
+
return g = Ni(g), R.forEach(function(v, L) {
|
2105
|
+
!(k.isUndefined(v) || v === null) && t.append(
|
2106
2106
|
// eslint-disable-next-line no-nested-ternary
|
2107
|
-
s === !0 ? Fr([
|
2108
|
-
d(
|
2107
|
+
s === !0 ? Fr([g], L, i) : s === null ? g : g + "[]",
|
2108
|
+
d(v)
|
2109
2109
|
);
|
2110
2110
|
}), !1;
|
2111
2111
|
}
|
2112
|
-
return Mn(p) ? !0 : (t.append(Fr(f,
|
2112
|
+
return Mn(p) ? !0 : (t.append(Fr(f, g, i), d(p)), !1);
|
2113
2113
|
}
|
2114
2114
|
const l = [], u = Object.assign(wl, {
|
2115
2115
|
defaultVisitor: c,
|
2116
2116
|
convertValue: d,
|
2117
2117
|
isVisitable: Mn
|
2118
2118
|
});
|
2119
|
-
function
|
2119
|
+
function m(p, g) {
|
2120
2120
|
if (!k.isUndefined(p)) {
|
2121
2121
|
if (l.indexOf(p) !== -1)
|
2122
|
-
throw Error("Circular reference detected in " +
|
2123
|
-
l.push(p), k.forEach(p, function(f,
|
2122
|
+
throw Error("Circular reference detected in " + g.join("."));
|
2123
|
+
l.push(p), k.forEach(p, function(f, R) {
|
2124
2124
|
(!(k.isUndefined(f) || f === null) && o.call(
|
2125
2125
|
t,
|
2126
2126
|
f,
|
2127
|
-
k.isString(
|
2128
|
-
|
2127
|
+
k.isString(R) ? R.trim() : R,
|
2128
|
+
g,
|
2129
2129
|
u
|
2130
|
-
)) === !0 &&
|
2130
|
+
)) === !0 && m(f, g ? g.concat(R) : [R]);
|
2131
2131
|
}), l.pop();
|
2132
2132
|
}
|
2133
2133
|
}
|
2134
2134
|
if (!k.isObject(e))
|
2135
2135
|
throw new TypeError("data must be an object");
|
2136
|
-
return
|
2136
|
+
return m(e), t;
|
2137
2137
|
}
|
2138
2138
|
function Hr(e) {
|
2139
2139
|
const t = {
|
@@ -2604,8 +2604,8 @@ function Il(e, t) {
|
|
2604
2604
|
u += n[l++], l = l % e;
|
2605
2605
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
2606
2606
|
return;
|
2607
|
-
const
|
2608
|
-
return
|
2607
|
+
const m = c && d - c;
|
2608
|
+
return m ? Math.round(u * 1e3 / m) : void 0;
|
2609
2609
|
};
|
2610
2610
|
}
|
2611
2611
|
function Fl(e, t) {
|
@@ -2804,13 +2804,13 @@ const Mi = (e) => {
|
|
2804
2804
|
const r = Mi(e);
|
2805
2805
|
let o = r.data;
|
2806
2806
|
const i = $.from(r.headers).normalize();
|
2807
|
-
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u,
|
2808
|
-
function
|
2809
|
-
|
2807
|
+
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u, m, p;
|
2808
|
+
function g() {
|
2809
|
+
m && m(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
|
2810
2810
|
}
|
2811
2811
|
let f = new XMLHttpRequest();
|
2812
2812
|
f.open(r.method.toUpperCase(), r.url, !0), f.timeout = r.timeout;
|
2813
|
-
function
|
2813
|
+
function R() {
|
2814
2814
|
if (!f)
|
2815
2815
|
return;
|
2816
2816
|
const L = $.from(
|
@@ -2824,13 +2824,13 @@ const Mi = (e) => {
|
|
2824
2824
|
request: f
|
2825
2825
|
};
|
2826
2826
|
Ti(function(N) {
|
2827
|
-
t(N),
|
2827
|
+
t(N), g();
|
2828
2828
|
}, function(N) {
|
2829
|
-
n(N),
|
2829
|
+
n(N), g();
|
2830
2830
|
}, x), f = null;
|
2831
2831
|
}
|
2832
|
-
"onloadend" in f ? f.onloadend =
|
2833
|
-
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(
|
2832
|
+
"onloadend" in f ? f.onloadend = R : f.onreadystatechange = function() {
|
2833
|
+
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(R);
|
2834
2834
|
}, f.onabort = function() {
|
2835
2835
|
f && (n(new T("Request aborted", T.ECONNABORTED, e, f)), f = null);
|
2836
2836
|
}, f.onerror = function() {
|
@@ -2846,12 +2846,12 @@ const Mi = (e) => {
|
|
2846
2846
|
)), f = null;
|
2847
2847
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in f && k.forEach(i.toJSON(), function(L, x) {
|
2848
2848
|
f.setRequestHeader(x, L);
|
2849
|
-
}), k.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = Et(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l,
|
2849
|
+
}), k.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = Et(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l, m] = Et(a), f.upload.addEventListener("progress", l), f.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (c = (L) => {
|
2850
2850
|
f && (n(!L || L.type ? new He(null, e, f) : L), f.abort(), f = null);
|
2851
2851
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
2852
|
-
const
|
2853
|
-
if (
|
2854
|
-
n(new T("Unsupported protocol " +
|
2852
|
+
const v = Dl(r.url);
|
2853
|
+
if (v && q.protocols.indexOf(v) === -1) {
|
2854
|
+
n(new T("Unsupported protocol " + v + ":", T.ERR_BAD_REQUEST, e));
|
2855
2855
|
return;
|
2856
2856
|
}
|
2857
2857
|
f.send(o || null);
|
@@ -2922,8 +2922,8 @@ const Mi = (e) => {
|
|
2922
2922
|
}
|
2923
2923
|
let u = l.byteLength;
|
2924
2924
|
if (n) {
|
2925
|
-
let
|
2926
|
-
n(
|
2925
|
+
let m = i += u;
|
2926
|
+
n(m);
|
2927
2927
|
}
|
2928
2928
|
d.enqueue(new Uint8Array(l));
|
2929
2929
|
} catch (c) {
|
@@ -2989,16 +2989,16 @@ const Xl = async (e) => {
|
|
2989
2989
|
responseType: c,
|
2990
2990
|
headers: l,
|
2991
2991
|
withCredentials: u = "same-origin",
|
2992
|
-
fetchOptions:
|
2992
|
+
fetchOptions: m
|
2993
2993
|
} = Mi(e);
|
2994
2994
|
c = c ? (c + "").toLowerCase() : "text";
|
2995
|
-
let p = Zl([o, i && i.toAbortSignal()], s),
|
2995
|
+
let p = Zl([o, i && i.toAbortSignal()], s), g;
|
2996
2996
|
const f = p && p.unsubscribe && (() => {
|
2997
2997
|
p.unsubscribe();
|
2998
2998
|
});
|
2999
|
-
let
|
2999
|
+
let R;
|
3000
3000
|
try {
|
3001
|
-
if (d && Jl && n !== "get" && n !== "head" && (
|
3001
|
+
if (d && Jl && n !== "get" && n !== "head" && (R = await Ql(l, r)) !== 0) {
|
3002
3002
|
let E = new Request(t, {
|
3003
3003
|
method: "POST",
|
3004
3004
|
body: r,
|
@@ -3006,24 +3006,24 @@ const Xl = async (e) => {
|
|
3006
3006
|
}), O;
|
3007
3007
|
if (k.isFormData(r) && (O = E.headers.get("content-type")) && l.setContentType(O), E.body) {
|
3008
3008
|
const [S, D] = Wr(
|
3009
|
-
|
3009
|
+
R,
|
3010
3010
|
Et(Kr(d))
|
3011
3011
|
);
|
3012
3012
|
r = Zr(E.body, qr, S, D);
|
3013
3013
|
}
|
3014
3014
|
}
|
3015
3015
|
k.isString(u) || (u = u ? "include" : "omit");
|
3016
|
-
const
|
3017
|
-
|
3018
|
-
...
|
3016
|
+
const v = "credentials" in Request.prototype;
|
3017
|
+
g = new Request(t, {
|
3018
|
+
...m,
|
3019
3019
|
signal: p,
|
3020
3020
|
method: n.toUpperCase(),
|
3021
3021
|
headers: l.normalize().toJSON(),
|
3022
3022
|
body: r,
|
3023
3023
|
duplex: "half",
|
3024
|
-
credentials:
|
3024
|
+
credentials: v ? u : void 0
|
3025
3025
|
});
|
3026
|
-
let L = await fetch(
|
3026
|
+
let L = await fetch(g);
|
3027
3027
|
const x = Bn && (c === "stream" || c === "response");
|
3028
3028
|
if (Bn && (a || x && f)) {
|
3029
3029
|
const E = {};
|
@@ -3050,16 +3050,16 @@ const Xl = async (e) => {
|
|
3050
3050
|
status: L.status,
|
3051
3051
|
statusText: L.statusText,
|
3052
3052
|
config: e,
|
3053
|
-
request:
|
3053
|
+
request: g
|
3054
3054
|
});
|
3055
3055
|
});
|
3056
|
-
} catch (
|
3057
|
-
throw f && f(),
|
3058
|
-
new T("Network Error", T.ERR_NETWORK, e,
|
3056
|
+
} catch (v) {
|
3057
|
+
throw f && f(), v && v.name === "TypeError" && /fetch/i.test(v.message) ? Object.assign(
|
3058
|
+
new T("Network Error", T.ERR_NETWORK, e, g),
|
3059
3059
|
{
|
3060
|
-
cause:
|
3060
|
+
cause: v.cause || v
|
3061
3061
|
}
|
3062
|
-
) : T.from(
|
3062
|
+
) : T.from(v, v && v.code, e, g);
|
3063
3063
|
}
|
3064
3064
|
}), Pn = {
|
3065
3065
|
http: gl,
|
@@ -3246,18 +3246,18 @@ let Ne = class {
|
|
3246
3246
|
return c;
|
3247
3247
|
}
|
3248
3248
|
u = s.length;
|
3249
|
-
let
|
3249
|
+
let m = t;
|
3250
3250
|
for (l = 0; l < u; ) {
|
3251
|
-
const p = s[l++],
|
3251
|
+
const p = s[l++], g = s[l++];
|
3252
3252
|
try {
|
3253
|
-
|
3253
|
+
m = p(m);
|
3254
3254
|
} catch (f) {
|
3255
|
-
|
3255
|
+
g.call(this, f);
|
3256
3256
|
break;
|
3257
3257
|
}
|
3258
3258
|
}
|
3259
3259
|
try {
|
3260
|
-
c = zr.call(this,
|
3260
|
+
c = zr.call(this, m);
|
3261
3261
|
} catch (p) {
|
3262
3262
|
return Promise.reject(p);
|
3263
3263
|
}
|
@@ -6974,8 +6974,8 @@ function Yt(e, t, n) {
|
|
6974
6974
|
metaTokens: !0,
|
6975
6975
|
dots: !1,
|
6976
6976
|
indexes: !1
|
6977
|
-
}, !1, function(p,
|
6978
|
-
return !y.isUndefined(
|
6977
|
+
}, !1, function(p, g) {
|
6978
|
+
return !y.isUndefined(g[p]);
|
6979
6979
|
});
|
6980
6980
|
const r = n.metaTokens, o = n.visitor || c, i = n.dots, s = n.indexes, a = (n.Blob || typeof Blob < "u" && Blob) && y.isSpecCompliantForm(t);
|
6981
6981
|
if (!y.isFunction(o))
|
@@ -6988,45 +6988,45 @@ function Yt(e, t, n) {
|
|
6988
6988
|
throw new _("Blob is not supported. Use a Buffer instead.");
|
6989
6989
|
return y.isArrayBuffer(p) || y.isTypedArray(p) ? a && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
6990
6990
|
}
|
6991
|
-
function c(p,
|
6992
|
-
let
|
6991
|
+
function c(p, g, f) {
|
6992
|
+
let R = p;
|
6993
6993
|
if (p && !f && typeof p == "object") {
|
6994
|
-
if (y.endsWith(
|
6995
|
-
|
6996
|
-
else if (y.isArray(p) && L0(p) || (y.isFileList(p) || y.endsWith(
|
6997
|
-
return
|
6998
|
-
!(y.isUndefined(
|
6994
|
+
if (y.endsWith(g, "{}"))
|
6995
|
+
g = r ? g : g.slice(0, -2), p = JSON.stringify(p);
|
6996
|
+
else if (y.isArray(p) && L0(p) || (y.isFileList(p) || y.endsWith(g, "[]")) && (R = y.toArray(p)))
|
6997
|
+
return g = Ji(g), R.forEach(function(v, L) {
|
6998
|
+
!(y.isUndefined(v) || v === null) && t.append(
|
6999
6999
|
// eslint-disable-next-line no-nested-ternary
|
7000
|
-
s === !0 ? Qr([
|
7001
|
-
d(
|
7000
|
+
s === !0 ? Qr([g], L, i) : s === null ? g : g + "[]",
|
7001
|
+
d(v)
|
7002
7002
|
);
|
7003
7003
|
}), !1;
|
7004
7004
|
}
|
7005
|
-
return Hn(p) ? !0 : (t.append(Qr(f,
|
7005
|
+
return Hn(p) ? !0 : (t.append(Qr(f, g, i), d(p)), !1);
|
7006
7006
|
}
|
7007
7007
|
const l = [], u = Object.assign(v0, {
|
7008
7008
|
defaultVisitor: c,
|
7009
7009
|
convertValue: d,
|
7010
7010
|
isVisitable: Hn
|
7011
7011
|
});
|
7012
|
-
function
|
7012
|
+
function m(p, g) {
|
7013
7013
|
if (!y.isUndefined(p)) {
|
7014
7014
|
if (l.indexOf(p) !== -1)
|
7015
|
-
throw Error("Circular reference detected in " +
|
7016
|
-
l.push(p), y.forEach(p, function(f,
|
7015
|
+
throw Error("Circular reference detected in " + g.join("."));
|
7016
|
+
l.push(p), y.forEach(p, function(f, R) {
|
7017
7017
|
(!(y.isUndefined(f) || f === null) && o.call(
|
7018
7018
|
t,
|
7019
7019
|
f,
|
7020
|
-
y.isString(
|
7021
|
-
|
7020
|
+
y.isString(R) ? R.trim() : R,
|
7021
|
+
g,
|
7022
7022
|
u
|
7023
|
-
)) === !0 &&
|
7023
|
+
)) === !0 && m(f, g ? g.concat(R) : [R]);
|
7024
7024
|
}), l.pop();
|
7025
7025
|
}
|
7026
7026
|
}
|
7027
7027
|
if (!y.isObject(e))
|
7028
7028
|
throw new TypeError("data must be an object");
|
7029
|
-
return
|
7029
|
+
return m(e), t;
|
7030
7030
|
}
|
7031
7031
|
function eo(e) {
|
7032
7032
|
const t = {
|
@@ -7497,8 +7497,8 @@ function K0(e, t) {
|
|
7497
7497
|
u += n[l++], l = l % e;
|
7498
7498
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
7499
7499
|
return;
|
7500
|
-
const
|
7501
|
-
return
|
7500
|
+
const m = c && d - c;
|
7501
|
+
return m ? Math.round(u * 1e3 / m) : void 0;
|
7502
7502
|
};
|
7503
7503
|
}
|
7504
7504
|
function G0(e, t) {
|
@@ -7697,13 +7697,13 @@ const is = (e) => {
|
|
7697
7697
|
const r = is(e);
|
7698
7698
|
let o = r.data;
|
7699
7699
|
const i = Y.from(r.headers).normalize();
|
7700
|
-
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u,
|
7701
|
-
function
|
7702
|
-
|
7700
|
+
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u, m, p;
|
7701
|
+
function g() {
|
7702
|
+
m && m(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
|
7703
7703
|
}
|
7704
7704
|
let f = new XMLHttpRequest();
|
7705
7705
|
f.open(r.method.toUpperCase(), r.url, !0), f.timeout = r.timeout;
|
7706
|
-
function
|
7706
|
+
function R() {
|
7707
7707
|
if (!f)
|
7708
7708
|
return;
|
7709
7709
|
const L = Y.from(
|
@@ -7717,13 +7717,13 @@ const is = (e) => {
|
|
7717
7717
|
request: f
|
7718
7718
|
};
|
7719
7719
|
rs(function(N) {
|
7720
|
-
t(N),
|
7720
|
+
t(N), g();
|
7721
7721
|
}, function(N) {
|
7722
|
-
n(N),
|
7722
|
+
n(N), g();
|
7723
7723
|
}, x), f = null;
|
7724
7724
|
}
|
7725
|
-
"onloadend" in f ? f.onloadend =
|
7726
|
-
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(
|
7725
|
+
"onloadend" in f ? f.onloadend = R : f.onreadystatechange = function() {
|
7726
|
+
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(R);
|
7727
7727
|
}, f.onabort = function() {
|
7728
7728
|
f && (n(new _("Request aborted", _.ECONNABORTED, e, f)), f = null);
|
7729
7729
|
}, f.onerror = function() {
|
@@ -7739,12 +7739,12 @@ const is = (e) => {
|
|
7739
7739
|
)), f = null;
|
7740
7740
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in f && y.forEach(i.toJSON(), function(L, x) {
|
7741
7741
|
f.setRequestHeader(x, L);
|
7742
|
-
}), y.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = Ot(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l,
|
7742
|
+
}), y.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = Ot(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l, m] = Ot(a), f.upload.addEventListener("progress", l), f.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (c = (L) => {
|
7743
7743
|
f && (n(!L || L.type ? new Ve(null, e, f) : L), f.abort(), f = null);
|
7744
7744
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
7745
|
-
const
|
7746
|
-
if (
|
7747
|
-
n(new _("Unsupported protocol " +
|
7745
|
+
const v = W0(r.url);
|
7746
|
+
if (v && z.protocols.indexOf(v) === -1) {
|
7747
|
+
n(new _("Unsupported protocol " + v + ":", _.ERR_BAD_REQUEST, e));
|
7748
7748
|
return;
|
7749
7749
|
}
|
7750
7750
|
f.send(o || null);
|
@@ -7815,8 +7815,8 @@ const is = (e) => {
|
|
7815
7815
|
}
|
7816
7816
|
let u = l.byteLength;
|
7817
7817
|
if (n) {
|
7818
|
-
let
|
7819
|
-
n(
|
7818
|
+
let m = i += u;
|
7819
|
+
n(m);
|
7820
7820
|
}
|
7821
7821
|
d.enqueue(new Uint8Array(l));
|
7822
7822
|
} catch (c) {
|
@@ -7882,16 +7882,16 @@ const o5 = async (e) => {
|
|
7882
7882
|
responseType: c,
|
7883
7883
|
headers: l,
|
7884
7884
|
withCredentials: u = "same-origin",
|
7885
|
-
fetchOptions:
|
7885
|
+
fetchOptions: m
|
7886
7886
|
} = is(e);
|
7887
7887
|
c = c ? (c + "").toLowerCase() : "text";
|
7888
|
-
let p = X0([o, i && i.toAbortSignal()], s),
|
7888
|
+
let p = X0([o, i && i.toAbortSignal()], s), g;
|
7889
7889
|
const f = p && p.unsubscribe && (() => {
|
7890
7890
|
p.unsubscribe();
|
7891
7891
|
});
|
7892
|
-
let
|
7892
|
+
let R;
|
7893
7893
|
try {
|
7894
|
-
if (d && r5 && n !== "get" && n !== "head" && (
|
7894
|
+
if (d && r5 && n !== "get" && n !== "head" && (R = await i5(l, r)) !== 0) {
|
7895
7895
|
let E = new Request(t, {
|
7896
7896
|
method: "POST",
|
7897
7897
|
body: r,
|
@@ -7899,24 +7899,24 @@ const o5 = async (e) => {
|
|
7899
7899
|
}), O;
|
7900
7900
|
if (y.isFormData(r) && (O = E.headers.get("content-type")) && l.setContentType(O), E.body) {
|
7901
7901
|
const [S, D] = ro(
|
7902
|
-
|
7902
|
+
R,
|
7903
7903
|
Ot(oo(d))
|
7904
7904
|
);
|
7905
7905
|
r = so(E.body, ao, S, D);
|
7906
7906
|
}
|
7907
7907
|
}
|
7908
7908
|
y.isString(u) || (u = u ? "include" : "omit");
|
7909
|
-
const
|
7910
|
-
|
7911
|
-
...
|
7909
|
+
const v = "credentials" in Request.prototype;
|
7910
|
+
g = new Request(t, {
|
7911
|
+
...m,
|
7912
7912
|
signal: p,
|
7913
7913
|
method: n.toUpperCase(),
|
7914
7914
|
headers: l.normalize().toJSON(),
|
7915
7915
|
body: r,
|
7916
7916
|
duplex: "half",
|
7917
|
-
credentials:
|
7917
|
+
credentials: v ? u : void 0
|
7918
7918
|
});
|
7919
|
-
let L = await fetch(
|
7919
|
+
let L = await fetch(g);
|
7920
7920
|
const x = Vn && (c === "stream" || c === "response");
|
7921
7921
|
if (Vn && (a || x && f)) {
|
7922
7922
|
const E = {};
|
@@ -7943,16 +7943,16 @@ const o5 = async (e) => {
|
|
7943
7943
|
status: L.status,
|
7944
7944
|
statusText: L.statusText,
|
7945
7945
|
config: e,
|
7946
|
-
request:
|
7946
|
+
request: g
|
7947
7947
|
});
|
7948
7948
|
});
|
7949
|
-
} catch (
|
7950
|
-
throw f && f(),
|
7951
|
-
new _("Network Error", _.ERR_NETWORK, e,
|
7949
|
+
} catch (v) {
|
7950
|
+
throw f && f(), v && v.name === "TypeError" && /fetch/i.test(v.message) ? Object.assign(
|
7951
|
+
new _("Network Error", _.ERR_NETWORK, e, g),
|
7952
7952
|
{
|
7953
|
-
cause:
|
7953
|
+
cause: v.cause || v
|
7954
7954
|
}
|
7955
|
-
) : _.from(
|
7955
|
+
) : _.from(v, v && v.code, e, g);
|
7956
7956
|
}
|
7957
7957
|
}), Wn = {
|
7958
7958
|
http: b0,
|
@@ -8118,43 +8118,43 @@ class Ee {
|
|
8118
8118
|
);
|
8119
8119
|
i && y.forEach(
|
8120
8120
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
8121
|
-
(
|
8122
|
-
delete i[
|
8121
|
+
(g) => {
|
8122
|
+
delete i[g];
|
8123
8123
|
}
|
8124
8124
|
), n.headers = Y.concat(s, i);
|
8125
8125
|
const a = [];
|
8126
8126
|
let d = !0;
|
8127
|
-
this.interceptors.request.forEach(function(
|
8128
|
-
typeof
|
8127
|
+
this.interceptors.request.forEach(function(g) {
|
8128
|
+
typeof g.runWhen == "function" && g.runWhen(n) === !1 || (d = d && g.synchronous, a.unshift(g.fulfilled, g.rejected));
|
8129
8129
|
});
|
8130
8130
|
const c = [];
|
8131
|
-
this.interceptors.response.forEach(function(
|
8132
|
-
c.push(
|
8131
|
+
this.interceptors.response.forEach(function(g) {
|
8132
|
+
c.push(g.fulfilled, g.rejected);
|
8133
8133
|
});
|
8134
|
-
let l, u = 0,
|
8134
|
+
let l, u = 0, m;
|
8135
8135
|
if (!d) {
|
8136
|
-
const
|
8137
|
-
for (
|
8138
|
-
l = l.then(
|
8136
|
+
const g = [co.bind(this), void 0];
|
8137
|
+
for (g.unshift.apply(g, a), g.push.apply(g, c), m = g.length, l = Promise.resolve(n); u < m; )
|
8138
|
+
l = l.then(g[u++], g[u++]);
|
8139
8139
|
return l;
|
8140
8140
|
}
|
8141
|
-
|
8141
|
+
m = a.length;
|
8142
8142
|
let p = n;
|
8143
|
-
for (u = 0; u <
|
8144
|
-
const
|
8143
|
+
for (u = 0; u < m; ) {
|
8144
|
+
const g = a[u++], f = a[u++];
|
8145
8145
|
try {
|
8146
|
-
p =
|
8147
|
-
} catch (
|
8148
|
-
f.call(this,
|
8146
|
+
p = g(p);
|
8147
|
+
} catch (R) {
|
8148
|
+
f.call(this, R);
|
8149
8149
|
break;
|
8150
8150
|
}
|
8151
8151
|
}
|
8152
8152
|
try {
|
8153
8153
|
l = co.call(this, p);
|
8154
|
-
} catch (
|
8155
|
-
return Promise.reject(
|
8154
|
+
} catch (g) {
|
8155
|
+
return Promise.reject(g);
|
8156
8156
|
}
|
8157
|
-
for (u = 0,
|
8157
|
+
for (u = 0, m = c.length; u < m; )
|
8158
8158
|
l = l.then(c[u++], c[u++]);
|
8159
8159
|
return l;
|
8160
8160
|
}
|
@@ -11829,8 +11829,8 @@ function tn(e, t, n) {
|
|
11829
11829
|
metaTokens: !0,
|
11830
11830
|
dots: !1,
|
11831
11831
|
indexes: !1
|
11832
|
-
}, !1, function(p,
|
11833
|
-
return !b.isUndefined(
|
11832
|
+
}, !1, function(p, g) {
|
11833
|
+
return !b.isUndefined(g[p]);
|
11834
11834
|
});
|
11835
11835
|
const r = n.metaTokens, o = n.visitor || c, i = n.dots, s = n.indexes, a = (n.Blob || typeof Blob < "u" && Blob) && b.isSpecCompliantForm(t);
|
11836
11836
|
if (!b.isFunction(o))
|
@@ -11843,45 +11843,45 @@ function tn(e, t, n) {
|
|
11843
11843
|
throw new M("Blob is not supported. Use a Buffer instead.");
|
11844
11844
|
return b.isArrayBuffer(p) || b.isTypedArray(p) ? a && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
11845
11845
|
}
|
11846
|
-
function c(p,
|
11847
|
-
let
|
11846
|
+
function c(p, g, f) {
|
11847
|
+
let R = p;
|
11848
11848
|
if (p && !f && typeof p == "object") {
|
11849
|
-
if (b.endsWith(
|
11850
|
-
|
11851
|
-
else if (b.isArray(p) && Rh(p) || (b.isFileList(p) || b.endsWith(
|
11852
|
-
return
|
11853
|
-
!(b.isUndefined(
|
11849
|
+
if (b.endsWith(g, "{}"))
|
11850
|
+
g = r ? g : g.slice(0, -2), p = JSON.stringify(p);
|
11851
|
+
else if (b.isArray(p) && Rh(p) || (b.isFileList(p) || b.endsWith(g, "[]")) && (R = b.toArray(p)))
|
11852
|
+
return g = vs(g), R.forEach(function(v, L) {
|
11853
|
+
!(b.isUndefined(v) || v === null) && t.append(
|
11854
11854
|
// eslint-disable-next-line no-nested-ternary
|
11855
|
-
s === !0 ? po([
|
11856
|
-
d(
|
11855
|
+
s === !0 ? po([g], L, i) : s === null ? g : g + "[]",
|
11856
|
+
d(v)
|
11857
11857
|
);
|
11858
11858
|
}), !1;
|
11859
11859
|
}
|
11860
|
-
return qn(p) ? !0 : (t.append(po(f,
|
11860
|
+
return qn(p) ? !0 : (t.append(po(f, g, i), d(p)), !1);
|
11861
11861
|
}
|
11862
11862
|
const l = [], u = Object.assign(Nh, {
|
11863
11863
|
defaultVisitor: c,
|
11864
11864
|
convertValue: d,
|
11865
11865
|
isVisitable: qn
|
11866
11866
|
});
|
11867
|
-
function
|
11867
|
+
function m(p, g) {
|
11868
11868
|
if (!b.isUndefined(p)) {
|
11869
11869
|
if (l.indexOf(p) !== -1)
|
11870
|
-
throw Error("Circular reference detected in " +
|
11871
|
-
l.push(p), b.forEach(p, function(f,
|
11870
|
+
throw Error("Circular reference detected in " + g.join("."));
|
11871
|
+
l.push(p), b.forEach(p, function(f, R) {
|
11872
11872
|
(!(b.isUndefined(f) || f === null) && o.call(
|
11873
11873
|
t,
|
11874
11874
|
f,
|
11875
|
-
b.isString(
|
11876
|
-
|
11875
|
+
b.isString(R) ? R.trim() : R,
|
11876
|
+
g,
|
11877
11877
|
u
|
11878
|
-
)) === !0 &&
|
11878
|
+
)) === !0 && m(f, g ? g.concat(R) : [R]);
|
11879
11879
|
}), l.pop();
|
11880
11880
|
}
|
11881
11881
|
}
|
11882
11882
|
if (!b.isObject(e))
|
11883
11883
|
throw new TypeError("data must be an object");
|
11884
|
-
return
|
11884
|
+
return m(e), t;
|
11885
11885
|
}
|
11886
11886
|
function go(e) {
|
11887
11887
|
const t = {
|
@@ -12352,8 +12352,8 @@ function Zh(e, t) {
|
|
12352
12352
|
u += n[l++], l = l % e;
|
12353
12353
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
12354
12354
|
return;
|
12355
|
-
const
|
12356
|
-
return
|
12355
|
+
const m = c && d - c;
|
12356
|
+
return m ? Math.round(u * 1e3 / m) : void 0;
|
12357
12357
|
};
|
12358
12358
|
}
|
12359
12359
|
function qh(e, t) {
|
@@ -12552,13 +12552,13 @@ const Ts = (e) => {
|
|
12552
12552
|
const r = Ts(e);
|
12553
12553
|
let o = r.data;
|
12554
12554
|
const i = X.from(r.headers).normalize();
|
12555
|
-
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u,
|
12556
|
-
function
|
12557
|
-
|
12555
|
+
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u, m, p;
|
12556
|
+
function g() {
|
12557
|
+
m && m(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
|
12558
12558
|
}
|
12559
12559
|
let f = new XMLHttpRequest();
|
12560
12560
|
f.open(r.method.toUpperCase(), r.url, !0), f.timeout = r.timeout;
|
12561
|
-
function
|
12561
|
+
function R() {
|
12562
12562
|
if (!f)
|
12563
12563
|
return;
|
12564
12564
|
const L = X.from(
|
@@ -12572,13 +12572,13 @@ const Ts = (e) => {
|
|
12572
12572
|
request: f
|
12573
12573
|
};
|
12574
12574
|
Ss(function(N) {
|
12575
|
-
t(N),
|
12575
|
+
t(N), g();
|
12576
12576
|
}, function(N) {
|
12577
|
-
n(N),
|
12577
|
+
n(N), g();
|
12578
12578
|
}, x), f = null;
|
12579
12579
|
}
|
12580
|
-
"onloadend" in f ? f.onloadend =
|
12581
|
-
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(
|
12580
|
+
"onloadend" in f ? f.onloadend = R : f.onreadystatechange = function() {
|
12581
|
+
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(R);
|
12582
12582
|
}, f.onabort = function() {
|
12583
12583
|
f && (n(new M("Request aborted", M.ECONNABORTED, e, f)), f = null);
|
12584
12584
|
}, f.onerror = function() {
|
@@ -12594,12 +12594,12 @@ const Ts = (e) => {
|
|
12594
12594
|
)), f = null;
|
12595
12595
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in f && b.forEach(i.toJSON(), function(L, x) {
|
12596
12596
|
f.setRequestHeader(x, L);
|
12597
|
-
}), b.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = At(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l,
|
12597
|
+
}), b.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = At(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l, m] = At(a), f.upload.addEventListener("progress", l), f.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (c = (L) => {
|
12598
12598
|
f && (n(!L || L.type ? new Ke(null, e, f) : L), f.abort(), f = null);
|
12599
12599
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
12600
|
-
const
|
12601
|
-
if (
|
12602
|
-
n(new M("Unsupported protocol " +
|
12600
|
+
const v = Gh(r.url);
|
12601
|
+
if (v && J.protocols.indexOf(v) === -1) {
|
12602
|
+
n(new M("Unsupported protocol " + v + ":", M.ERR_BAD_REQUEST, e));
|
12603
12603
|
return;
|
12604
12604
|
}
|
12605
12605
|
f.send(o || null);
|
@@ -12670,8 +12670,8 @@ const Ts = (e) => {
|
|
12670
12670
|
}
|
12671
12671
|
let u = l.byteLength;
|
12672
12672
|
if (n) {
|
12673
|
-
let
|
12674
|
-
n(
|
12673
|
+
let m = i += u;
|
12674
|
+
n(m);
|
12675
12675
|
}
|
12676
12676
|
d.enqueue(new Uint8Array(l));
|
12677
12677
|
} catch (c) {
|
@@ -12737,16 +12737,16 @@ const su = async (e) => {
|
|
12737
12737
|
responseType: c,
|
12738
12738
|
headers: l,
|
12739
12739
|
withCredentials: u = "same-origin",
|
12740
|
-
fetchOptions:
|
12740
|
+
fetchOptions: m
|
12741
12741
|
} = Ts(e);
|
12742
12742
|
c = c ? (c + "").toLowerCase() : "text";
|
12743
|
-
let p = eu([o, i && i.toAbortSignal()], s),
|
12743
|
+
let p = eu([o, i && i.toAbortSignal()], s), g;
|
12744
12744
|
const f = p && p.unsubscribe && (() => {
|
12745
12745
|
p.unsubscribe();
|
12746
12746
|
});
|
12747
|
-
let
|
12747
|
+
let R;
|
12748
12748
|
try {
|
12749
|
-
if (d && iu && n !== "get" && n !== "head" && (
|
12749
|
+
if (d && iu && n !== "get" && n !== "head" && (R = await au(l, r)) !== 0) {
|
12750
12750
|
let E = new Request(t, {
|
12751
12751
|
method: "POST",
|
12752
12752
|
body: r,
|
@@ -12754,24 +12754,24 @@ const su = async (e) => {
|
|
12754
12754
|
}), O;
|
12755
12755
|
if (b.isFormData(r) && (O = E.headers.get("content-type")) && l.setContentType(O), E.body) {
|
12756
12756
|
const [S, D] = Co(
|
12757
|
-
|
12757
|
+
R,
|
12758
12758
|
At(ko(d))
|
12759
12759
|
);
|
12760
12760
|
r = bo(E.body, Lo, S, D);
|
12761
12761
|
}
|
12762
12762
|
}
|
12763
12763
|
b.isString(u) || (u = u ? "include" : "omit");
|
12764
|
-
const
|
12765
|
-
|
12766
|
-
...
|
12764
|
+
const v = "credentials" in Request.prototype;
|
12765
|
+
g = new Request(t, {
|
12766
|
+
...m,
|
12767
12767
|
signal: p,
|
12768
12768
|
method: n.toUpperCase(),
|
12769
12769
|
headers: l.normalize().toJSON(),
|
12770
12770
|
body: r,
|
12771
12771
|
duplex: "half",
|
12772
|
-
credentials:
|
12772
|
+
credentials: v ? u : void 0
|
12773
12773
|
});
|
12774
|
-
let L = await fetch(
|
12774
|
+
let L = await fetch(g);
|
12775
12775
|
const x = zn && (c === "stream" || c === "response");
|
12776
12776
|
if (zn && (a || x && f)) {
|
12777
12777
|
const E = {};
|
@@ -12798,16 +12798,16 @@ const su = async (e) => {
|
|
12798
12798
|
status: L.status,
|
12799
12799
|
statusText: L.statusText,
|
12800
12800
|
config: e,
|
12801
|
-
request:
|
12801
|
+
request: g
|
12802
12802
|
});
|
12803
12803
|
});
|
12804
|
-
} catch (
|
12805
|
-
throw f && f(),
|
12806
|
-
new M("Network Error", M.ERR_NETWORK, e,
|
12804
|
+
} catch (v) {
|
12805
|
+
throw f && f(), v && v.name === "TypeError" && /fetch/i.test(v.message) ? Object.assign(
|
12806
|
+
new M("Network Error", M.ERR_NETWORK, e, g),
|
12807
12807
|
{
|
12808
|
-
cause:
|
12808
|
+
cause: v.cause || v
|
12809
12809
|
}
|
12810
|
-
) : M.from(
|
12810
|
+
) : M.from(v, v && v.code, e, g);
|
12811
12811
|
}
|
12812
12812
|
}), Yn = {
|
12813
12813
|
http: vh,
|
@@ -12973,43 +12973,43 @@ class xe {
|
|
12973
12973
|
);
|
12974
12974
|
i && b.forEach(
|
12975
12975
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
12976
|
-
(
|
12977
|
-
delete i[
|
12976
|
+
(g) => {
|
12977
|
+
delete i[g];
|
12978
12978
|
}
|
12979
12979
|
), n.headers = X.concat(s, i);
|
12980
12980
|
const a = [];
|
12981
12981
|
let d = !0;
|
12982
|
-
this.interceptors.request.forEach(function(
|
12983
|
-
typeof
|
12982
|
+
this.interceptors.request.forEach(function(g) {
|
12983
|
+
typeof g.runWhen == "function" && g.runWhen(n) === !1 || (d = d && g.synchronous, a.unshift(g.fulfilled, g.rejected));
|
12984
12984
|
});
|
12985
12985
|
const c = [];
|
12986
|
-
this.interceptors.response.forEach(function(
|
12987
|
-
c.push(
|
12986
|
+
this.interceptors.response.forEach(function(g) {
|
12987
|
+
c.push(g.fulfilled, g.rejected);
|
12988
12988
|
});
|
12989
|
-
let l, u = 0,
|
12989
|
+
let l, u = 0, m;
|
12990
12990
|
if (!d) {
|
12991
|
-
const
|
12992
|
-
for (
|
12993
|
-
l = l.then(
|
12991
|
+
const g = [Ro.bind(this), void 0];
|
12992
|
+
for (g.unshift.apply(g, a), g.push.apply(g, c), m = g.length, l = Promise.resolve(n); u < m; )
|
12993
|
+
l = l.then(g[u++], g[u++]);
|
12994
12994
|
return l;
|
12995
12995
|
}
|
12996
|
-
|
12996
|
+
m = a.length;
|
12997
12997
|
let p = n;
|
12998
|
-
for (u = 0; u <
|
12999
|
-
const
|
12998
|
+
for (u = 0; u < m; ) {
|
12999
|
+
const g = a[u++], f = a[u++];
|
13000
13000
|
try {
|
13001
|
-
p =
|
13002
|
-
} catch (
|
13003
|
-
f.call(this,
|
13001
|
+
p = g(p);
|
13002
|
+
} catch (R) {
|
13003
|
+
f.call(this, R);
|
13004
13004
|
break;
|
13005
13005
|
}
|
13006
13006
|
}
|
13007
13007
|
try {
|
13008
13008
|
l = Ro.call(this, p);
|
13009
|
-
} catch (
|
13010
|
-
return Promise.reject(
|
13009
|
+
} catch (g) {
|
13010
|
+
return Promise.reject(g);
|
13011
13011
|
}
|
13012
|
-
for (u = 0,
|
13012
|
+
for (u = 0, m = c.length; u < m; )
|
13013
13013
|
l = l.then(c[u++], c[u++]);
|
13014
13014
|
return l;
|
13015
13015
|
}
|
@@ -13345,20 +13345,20 @@ const Ds = ({ children: e, width: t, size: n = "small", onClose: r }) => {
|
|
13345
13345
|
onPopupScroll: c,
|
13346
13346
|
onSearchChange: l,
|
13347
13347
|
id: u
|
13348
|
-
},
|
13349
|
-
const [p,
|
13348
|
+
}, m) => {
|
13349
|
+
const [p, g] = ee(!1), [f, R] = ee(!1), [v, L] = ee(!0), [x, N] = ee(e), E = nr(null);
|
13350
13350
|
ie(() => {
|
13351
13351
|
N(e);
|
13352
13352
|
}, [e]);
|
13353
13353
|
const O = (P) => {
|
13354
|
-
|
13354
|
+
g(P);
|
13355
13355
|
}, S = (P, K) => {
|
13356
13356
|
var ue;
|
13357
13357
|
return !!((ue = K == null ? void 0 : K.label) != null && ue.toString().toLowerCase().includes(P.toLowerCase()));
|
13358
13358
|
}, D = () => {
|
13359
|
-
|
13359
|
+
R(!0);
|
13360
13360
|
}, W = () => {
|
13361
|
-
|
13361
|
+
R(!1);
|
13362
13362
|
}, me = (P) => {
|
13363
13363
|
if (N(P), r) {
|
13364
13364
|
const ue = P;
|
@@ -13378,7 +13378,7 @@ const Ds = ({ children: e, width: t, size: n = "small", onClose: r }) => {
|
|
13378
13378
|
me(K), N(K);
|
13379
13379
|
}, sn = (P) => (x == null ? void 0 : x.indexOf(P)) === 0 ? (
|
13380
13380
|
// if the search input is empty then display the placeholder, else do not display it
|
13381
|
-
/* @__PURE__ */ h("span", { className: "custom-placeholder", children:
|
13381
|
+
/* @__PURE__ */ h("span", { className: "custom-placeholder", children: v ? n : "" })
|
13382
13382
|
) : /* @__PURE__ */ h(Pe, {}), Ce = (P) => {
|
13383
13383
|
P.preventDefault(), P.stopPropagation();
|
13384
13384
|
};
|
@@ -13394,7 +13394,7 @@ const Ds = ({ children: e, width: t, size: n = "small", onClose: r }) => {
|
|
13394
13394
|
{
|
13395
13395
|
className: "snmt-select-blank",
|
13396
13396
|
id: u,
|
13397
|
-
ref:
|
13397
|
+
ref: m,
|
13398
13398
|
showSearch: !!o,
|
13399
13399
|
filterOption: o && S,
|
13400
13400
|
onDropdownVisibleChange: O,
|
@@ -13435,7 +13435,7 @@ const Ds = ({ children: e, width: t, size: n = "small", onClose: r }) => {
|
|
13435
13435
|
name: "selectArrowIcon",
|
13436
13436
|
color: a ? Be.GREY_DARK_1 : Be.GREY_DARK_5,
|
13437
13437
|
className: p ? "select-arrow-rotated" : "select-arrow",
|
13438
|
-
onClick: () =>
|
13438
|
+
onClick: () => g(!p)
|
13439
13439
|
}
|
13440
13440
|
)
|
13441
13441
|
] }) }),
|
@@ -13834,41 +13834,41 @@ class Bt extends rn {
|
|
13834
13834
|
} : s;
|
13835
13835
|
}
|
13836
13836
|
const u = this.resolve(t, n);
|
13837
|
-
let
|
13838
|
-
const p = u && u.usedKey || s,
|
13839
|
-
if (L &&
|
13837
|
+
let m = u && u.res;
|
13838
|
+
const p = u && u.usedKey || s, g = u && u.exactUsedKey || s, f = Object.prototype.toString.apply(m), R = ["[object Number]", "[object Function]", "[object RegExp]"], v = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, L = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
13839
|
+
if (L && m && (typeof m != "string" && typeof m != "boolean" && typeof m != "number") && R.indexOf(f) < 0 && !(typeof v == "string" && Array.isArray(m))) {
|
13840
13840
|
if (!n.returnObjects && !this.options.returnObjects) {
|
13841
13841
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
13842
|
-
const N = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p,
|
13842
|
+
const N = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, m, {
|
13843
13843
|
...n,
|
13844
13844
|
ns: a
|
13845
13845
|
}) : `key '${s} (${this.language})' returned an object instead of string.`;
|
13846
13846
|
return o ? (u.res = N, u.usedParams = this.getUsedParamsDetails(n), u) : N;
|
13847
13847
|
}
|
13848
13848
|
if (i) {
|
13849
|
-
const N = Array.isArray(
|
13850
|
-
for (const S in
|
13851
|
-
if (Object.prototype.hasOwnProperty.call(
|
13849
|
+
const N = Array.isArray(m), E = N ? [] : {}, O = N ? g : p;
|
13850
|
+
for (const S in m)
|
13851
|
+
if (Object.prototype.hasOwnProperty.call(m, S)) {
|
13852
13852
|
const D = `${O}${i}${S}`;
|
13853
13853
|
E[S] = this.translate(D, {
|
13854
13854
|
...n,
|
13855
13855
|
joinArrays: !1,
|
13856
13856
|
ns: a
|
13857
|
-
}), E[S] === D && (E[S] =
|
13857
|
+
}), E[S] === D && (E[S] = m[S]);
|
13858
13858
|
}
|
13859
|
-
|
13859
|
+
m = E;
|
13860
13860
|
}
|
13861
|
-
} else if (L && typeof
|
13862
|
-
|
13861
|
+
} else if (L && typeof v == "string" && Array.isArray(m))
|
13862
|
+
m = m.join(v), m && (m = this.extendTranslation(m, t, n, r));
|
13863
13863
|
else {
|
13864
13864
|
let N = !1, E = !1;
|
13865
13865
|
const O = n.count !== void 0 && typeof n.count != "string", S = Bt.hasDefaultValue(n), D = O ? this.pluralResolver.getSuffix(c, n.count, n) : "", W = n.ordinal && O ? this.pluralResolver.getSuffix(c, n.count, {
|
13866
13866
|
ordinal: !1
|
13867
13867
|
}) : "", me = O && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), we = me && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${D}`] || n[`defaultValue${W}`] || n.defaultValue;
|
13868
|
-
!this.isValidLookup(
|
13869
|
-
const sn = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 :
|
13868
|
+
!this.isValidLookup(m) && S && (N = !0, m = we), this.isValidLookup(m) || (E = !0, m = s);
|
13869
|
+
const sn = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : m, Ce = S && we !== m && this.options.updateMissing;
|
13870
13870
|
if (E || N || Ce) {
|
13871
|
-
if (this.logger.log(Ce ? "updateKey" : "missingKey", c, d, s, Ce ? we :
|
13871
|
+
if (this.logger.log(Ce ? "updateKey" : "missingKey", c, d, s, Ce ? we : m), i) {
|
13872
13872
|
const Q = this.resolve(s, {
|
13873
13873
|
...n,
|
13874
13874
|
keySeparator: !1
|
@@ -13882,8 +13882,8 @@ class Bt extends rn {
|
|
13882
13882
|
P.push(K[Q]);
|
13883
13883
|
else this.options.saveMissingTo === "all" ? P = this.languageUtils.toResolveHierarchy(n.lng || this.language) : P.push(n.lng || this.language);
|
13884
13884
|
const ue = (Q, ke, Ge) => {
|
13885
|
-
const br = S && Ge !==
|
13886
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(Q, d, ke, br, Ce, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(Q, d, ke, br, Ce, n), this.emit("missingKey", Q, d, ke,
|
13885
|
+
const br = S && Ge !== m ? Ge : sn;
|
13886
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(Q, d, ke, br, Ce, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(Q, d, ke, br, Ce, n), this.emit("missingKey", Q, d, ke, m);
|
13887
13887
|
};
|
13888
13888
|
this.options.saveMissing && (this.options.saveMissingPlurals && O ? P.forEach((Q) => {
|
13889
13889
|
const ke = this.pluralResolver.getSuffixes(Q, n);
|
@@ -13892,9 +13892,9 @@ class Bt extends rn {
|
|
13892
13892
|
});
|
13893
13893
|
}) : ue(P, s, we));
|
13894
13894
|
}
|
13895
|
-
|
13895
|
+
m = this.extendTranslation(m, t, n, u, r), E && m === s && this.options.appendNamespaceToMissingKey && (m = `${d}:${s}`), (E || N) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${s}` : s, N ? m : void 0) : m = this.options.parseMissingKeyHandler(m));
|
13896
13896
|
}
|
13897
|
-
return o ? (u.res =
|
13897
|
+
return o ? (u.res = m, u.usedParams = this.getUsedParamsDetails(n), u) : m;
|
13898
13898
|
}
|
13899
13899
|
extendTranslation(t, n, r, o, i) {
|
13900
13900
|
var s = this;
|
@@ -13916,20 +13916,20 @@ class Bt extends rn {
|
|
13916
13916
|
const c = typeof t == "string" && (r && r.interpolation && r.interpolation.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
13917
13917
|
let l;
|
13918
13918
|
if (c) {
|
13919
|
-
const
|
13920
|
-
l =
|
13919
|
+
const m = t.match(this.interpolator.nestingRegexp);
|
13920
|
+
l = m && m.length;
|
13921
13921
|
}
|
13922
13922
|
let u = r.replace && typeof r.replace != "string" ? r.replace : r;
|
13923
13923
|
if (this.options.interpolation.defaultVariables && (u = {
|
13924
13924
|
...this.options.interpolation.defaultVariables,
|
13925
13925
|
...u
|
13926
13926
|
}), t = this.interpolator.interpolate(t, u, r.lng || this.language || o.usedLng, r), c) {
|
13927
|
-
const
|
13927
|
+
const m = t.match(this.interpolator.nestingRegexp), p = m && m.length;
|
13928
13928
|
l < p && (r.nest = !1);
|
13929
13929
|
}
|
13930
13930
|
!r.lng && this.options.compatibilityAPI !== "v1" && o && o.res && (r.lng = this.language || o.usedLng), r.nest !== !1 && (t = this.interpolator.nest(t, function() {
|
13931
|
-
for (var
|
13932
|
-
p[
|
13931
|
+
for (var m = arguments.length, p = new Array(m), g = 0; g < m; g++)
|
13932
|
+
p[g] = arguments[g];
|
13933
13933
|
return i && i[0] === p[0] && !r.context ? (s.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`), null) : s.translate(...p, n);
|
13934
13934
|
}, r)), r.interpolation && this.interpolator.reset();
|
13935
13935
|
}
|
@@ -13950,26 +13950,26 @@ class Bt extends rn {
|
|
13950
13950
|
o = l;
|
13951
13951
|
let u = c.namespaces;
|
13952
13952
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
13953
|
-
const
|
13954
|
-
u.forEach((
|
13955
|
-
this.isValidLookup(r) || (a =
|
13953
|
+
const m = n.count !== void 0 && typeof n.count != "string", p = m && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), g = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "", f = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
13954
|
+
u.forEach((R) => {
|
13955
|
+
this.isValidLookup(r) || (a = R, !To[`${f[0]}-${R}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (To[`${f[0]}-${R}`] = !0, this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" 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!!!")), f.forEach((v) => {
|
13956
13956
|
if (this.isValidLookup(r)) return;
|
13957
|
-
s =
|
13957
|
+
s = v;
|
13958
13958
|
const L = [l];
|
13959
13959
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
13960
|
-
this.i18nFormat.addLookupKeys(L, l,
|
13960
|
+
this.i18nFormat.addLookupKeys(L, l, v, R, n);
|
13961
13961
|
else {
|
13962
13962
|
let N;
|
13963
|
-
|
13963
|
+
m && (N = this.pluralResolver.getSuffix(v, n.count, n));
|
13964
13964
|
const E = `${this.options.pluralSeparator}zero`, O = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
13965
|
-
if (
|
13965
|
+
if (m && (L.push(l + N), n.ordinal && N.indexOf(O) === 0 && L.push(l + N.replace(O, this.options.pluralSeparator)), p && L.push(l + E)), g) {
|
13966
13966
|
const S = `${l}${this.options.contextSeparator}${n.context}`;
|
13967
|
-
L.push(S),
|
13967
|
+
L.push(S), m && (L.push(S + N), n.ordinal && N.indexOf(O) === 0 && L.push(S + N.replace(O, this.options.pluralSeparator)), p && L.push(S + E));
|
13968
13968
|
}
|
13969
13969
|
}
|
13970
13970
|
let x;
|
13971
13971
|
for (; x = L.pop(); )
|
13972
|
-
this.isValidLookup(r) || (i = x, r = this.getResource(
|
13972
|
+
this.isValidLookup(r) || (i = x, r = this.getResource(v, R, x, n));
|
13973
13973
|
}));
|
13974
13974
|
});
|
13975
13975
|
}), {
|
@@ -14290,15 +14290,15 @@ class Du {
|
|
14290
14290
|
formatSeparator: c,
|
14291
14291
|
unescapeSuffix: l,
|
14292
14292
|
unescapePrefix: u,
|
14293
|
-
nestingPrefix:
|
14293
|
+
nestingPrefix: m,
|
14294
14294
|
nestingPrefixEscaped: p,
|
14295
|
-
nestingSuffix:
|
14295
|
+
nestingSuffix: g,
|
14296
14296
|
nestingSuffixEscaped: f,
|
14297
|
-
nestingOptionsSeparator:
|
14298
|
-
maxReplaces:
|
14297
|
+
nestingOptionsSeparator: R,
|
14298
|
+
maxReplaces: v,
|
14299
14299
|
alwaysFormat: L
|
14300
14300
|
} = t.interpolation;
|
14301
|
-
this.escape = n !== void 0 ? n : Eu, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = i ? Me(i) : s || "{{", this.suffix = a ? Me(a) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix =
|
14301
|
+
this.escape = n !== void 0 ? n : Eu, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = i ? Me(i) : s || "{{", this.suffix = a ? Me(a) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = m ? Me(m) : p || Me("$t("), this.nestingSuffix = g ? Me(g) : f || Me(")"), this.nestingOptionsSeparator = R || ",", this.maxReplaces = v || 1e3, this.alwaysFormat = L !== void 0 ? L : !1, this.resetRegExp();
|
14302
14302
|
}
|
14303
14303
|
reset() {
|
14304
14304
|
this.options && this.init(this.options);
|
@@ -14311,15 +14311,15 @@ class Du {
|
|
14311
14311
|
let i, s, a;
|
14312
14312
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (p) => {
|
14313
14313
|
if (p.indexOf(this.formatSeparator) < 0) {
|
14314
|
-
const
|
14315
|
-
return this.alwaysFormat ? this.format(
|
14314
|
+
const v = jo(n, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
14315
|
+
return this.alwaysFormat ? this.format(v, void 0, r, {
|
14316
14316
|
...o,
|
14317
14317
|
...n,
|
14318
14318
|
interpolationkey: p
|
14319
|
-
}) :
|
14319
|
+
}) : v;
|
14320
14320
|
}
|
14321
|
-
const
|
14322
|
-
return this.format(jo(n, d, f, this.options.keySeparator, this.options.ignoreJSONStructure),
|
14321
|
+
const g = p.split(this.formatSeparator), f = g.shift().trim(), R = g.join(this.formatSeparator).trim();
|
14322
|
+
return this.format(jo(n, d, f, this.options.keySeparator, this.options.ignoreJSONStructure), R, r, {
|
14323
14323
|
...o,
|
14324
14324
|
...n,
|
14325
14325
|
interpolationkey: f
|
@@ -14335,18 +14335,18 @@ class Du {
|
|
14335
14335
|
safeValue: (p) => this.escapeValue ? Rn(this.escape(p)) : Rn(p)
|
14336
14336
|
}].forEach((p) => {
|
14337
14337
|
for (a = 0; i = p.regex.exec(t); ) {
|
14338
|
-
const
|
14339
|
-
if (s = c(
|
14338
|
+
const g = i[1].trim();
|
14339
|
+
if (s = c(g), s === void 0)
|
14340
14340
|
if (typeof l == "function") {
|
14341
|
-
const
|
14342
|
-
s = typeof
|
14343
|
-
} else if (o && Object.prototype.hasOwnProperty.call(o,
|
14341
|
+
const R = l(t, i, o);
|
14342
|
+
s = typeof R == "string" ? R : "";
|
14343
|
+
} else if (o && Object.prototype.hasOwnProperty.call(o, g))
|
14344
14344
|
s = "";
|
14345
14345
|
else if (u) {
|
14346
14346
|
s = i[0];
|
14347
14347
|
continue;
|
14348
14348
|
} else
|
14349
|
-
this.logger.warn(`missed to pass in variable ${
|
14349
|
+
this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`), s = "";
|
14350
14350
|
else typeof s != "string" && !this.useRawValueToEscape && (s = Eo(s));
|
14351
14351
|
const f = p.safeValue(s);
|
14352
14352
|
if (t = t.replace(i[0], f), u ? (p.regex.lastIndex += s.length, p.regex.lastIndex -= i[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
@@ -14360,17 +14360,17 @@ class Du {
|
|
14360
14360
|
const l = this.nestingOptionsSeparator;
|
14361
14361
|
if (d.indexOf(l) < 0) return d;
|
14362
14362
|
const u = d.split(new RegExp(`${l}[ ]*{`));
|
14363
|
-
let
|
14364
|
-
d = u[0],
|
14365
|
-
const p =
|
14366
|
-
(p && p.length % 2 === 0 && !
|
14363
|
+
let m = `{${u[1]}`;
|
14364
|
+
d = u[0], m = this.interpolate(m, s);
|
14365
|
+
const p = m.match(/'/g), g = m.match(/"/g);
|
14366
|
+
(p && p.length % 2 === 0 && !g || g.length % 2 !== 0) && (m = m.replace(/'/g, '"'));
|
14367
14367
|
try {
|
14368
|
-
s = JSON.parse(
|
14368
|
+
s = JSON.parse(m), c && (s = {
|
14369
14369
|
...c,
|
14370
14370
|
...s
|
14371
14371
|
});
|
14372
14372
|
} catch (f) {
|
14373
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, f), `${d}${l}${
|
14373
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, f), `${d}${l}${m}`;
|
14374
14374
|
}
|
14375
14375
|
return s.defaultValue && s.defaultValue.indexOf(this.prefix) > -1 && delete s.defaultValue, d;
|
14376
14376
|
};
|
@@ -14488,14 +14488,14 @@ class Fu {
|
|
14488
14488
|
if (this.formats[c]) {
|
14489
14489
|
let u = a;
|
14490
14490
|
try {
|
14491
|
-
const
|
14491
|
+
const m = o && o.formatParams && o.formatParams[o.interpolationkey] || {}, p = m.locale || m.lng || o.locale || o.lng || r;
|
14492
14492
|
u = this.formats[c](a, p, {
|
14493
14493
|
...l,
|
14494
14494
|
...o,
|
14495
|
-
...
|
14495
|
+
...m
|
14496
14496
|
});
|
14497
|
-
} catch (
|
14498
|
-
this.logger.warn(
|
14497
|
+
} catch (m) {
|
14498
|
+
this.logger.warn(m);
|
14499
14499
|
}
|
14500
14500
|
return u;
|
14501
14501
|
} else
|
@@ -14517,8 +14517,8 @@ class Uu extends rn {
|
|
14517
14517
|
return t.forEach((c) => {
|
14518
14518
|
let l = !0;
|
14519
14519
|
n.forEach((u) => {
|
14520
|
-
const
|
14521
|
-
!r.reload && this.store.hasResourceBundle(c, u) ? this.state[
|
14520
|
+
const m = `${c}|${u}`;
|
14521
|
+
!r.reload && this.store.hasResourceBundle(c, u) ? this.state[m] = 2 : this.state[m] < 0 || (this.state[m] === 1 ? s[m] === void 0 && (s[m] = !0) : (this.state[m] = 1, l = !1, s[m] === void 0 && (s[m] = !0), i[m] === void 0 && (i[m] = !0), d[u] === void 0 && (d[u] = !0)));
|
14522
14522
|
}), l || (a[c] = !0);
|
14523
14523
|
}), (Object.keys(i).length || Object.keys(s).length) && this.queue.push({
|
14524
14524
|
pending: s,
|
@@ -14737,20 +14737,20 @@ class nt extends rn {
|
|
14737
14737
|
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = Fu);
|
14738
14738
|
const u = new _o(this.options);
|
14739
14739
|
this.store = new Ao(this.options.resources, this.options);
|
14740
|
-
const
|
14741
|
-
|
14740
|
+
const m = this.services;
|
14741
|
+
m.logger = he, m.resourceStore = this.store, m.languageUtils = u, m.pluralResolver = new Pu(u, {
|
14742
14742
|
prepend: this.options.pluralSeparator,
|
14743
14743
|
compatibilityJSON: this.options.compatibilityJSON,
|
14744
14744
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
14745
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === o.interpolation.format) && (
|
14745
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === o.interpolation.format) && (m.formatter = i(l), m.formatter.init(m, this.options), this.options.interpolation.format = m.formatter.format.bind(m.formatter)), m.interpolator = new Du(this.options), m.utils = {
|
14746
14746
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
14747
|
-
},
|
14748
|
-
for (var
|
14749
|
-
f[
|
14747
|
+
}, m.backendConnector = new Uu(i(this.modules.backend), m.resourceStore, m, this.options), m.backendConnector.on("*", function(p) {
|
14748
|
+
for (var g = arguments.length, f = new Array(g > 1 ? g - 1 : 0), R = 1; R < g; R++)
|
14749
|
+
f[R - 1] = arguments[R];
|
14750
14750
|
t.emit(p, ...f);
|
14751
|
-
}), this.modules.languageDetector && (
|
14752
|
-
for (var
|
14753
|
-
f[
|
14751
|
+
}), this.modules.languageDetector && (m.languageDetector = i(this.modules.languageDetector), m.languageDetector.init && m.languageDetector.init(m, this.options.detection, this.options)), this.modules.i18nFormat && (m.i18nFormat = i(this.modules.i18nFormat), m.i18nFormat.init && m.i18nFormat.init(this)), this.translator = new Bt(this.services, this.options), this.translator.on("*", function(p) {
|
14752
|
+
for (var g = arguments.length, f = new Array(g > 1 ? g - 1 : 0), R = 1; R < g; R++)
|
14753
|
+
f[R - 1] = arguments[R];
|
14754
14754
|
t.emit(p, ...f);
|
14755
14755
|
}), this.modules.external.forEach((p) => {
|
14756
14756
|
p.init && p.init(this);
|
@@ -14770,8 +14770,8 @@ class nt extends rn {
|
|
14770
14770
|
};
|
14771
14771
|
});
|
14772
14772
|
const d = Ye(), c = () => {
|
14773
|
-
const l = (u,
|
14774
|
-
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), d.resolve(
|
14773
|
+
const l = (u, m) => {
|
14774
|
+
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), d.resolve(m), r(u, m);
|
14775
14775
|
};
|
14776
14776
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
|
14777
14777
|
this.changeLanguage(this.options.lng, l);
|
@@ -14851,9 +14851,9 @@ class nt extends rn {
|
|
14851
14851
|
...a
|
14852
14852
|
};
|
14853
14853
|
d.lng = d.lng || i.lng, d.lngs = d.lngs || i.lngs, d.ns = d.ns || i.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || r || i.keyPrefix);
|
14854
|
-
const
|
14854
|
+
const m = o.options.keySeparator || ".";
|
14855
14855
|
let p;
|
14856
|
-
return d.keyPrefix && Array.isArray(s) ? p = s.map((
|
14856
|
+
return d.keyPrefix && Array.isArray(s) ? p = s.map((g) => `${d.keyPrefix}${m}${g}`) : p = d.keyPrefix ? `${d.keyPrefix}${m}${s}` : s, o.t(p, d);
|
14857
14857
|
};
|
14858
14858
|
return typeof t == "string" ? i.lng = t : i.lngs = t, i.ns = n, i.keyPrefix = r, i;
|
14859
14859
|
}
|
@@ -15093,10 +15093,10 @@ const o6 = (e, t) => {
|
|
15093
15093
|
} = s;
|
15094
15094
|
let c = e;
|
15095
15095
|
c = Oe(c) ? [c] : c || ["translation"], i.reportNamespaces.addUsedNamespaces && i.reportNamespaces.addUsedNamespaces(c);
|
15096
|
-
const l = (i.isInitialized || i.initializedStoreOnce) && c.every((N) => Gu(N, i, s)), u = i6(i, t.lng || null, s.nsMode === "fallback" ? c : c[0], d),
|
15097
|
-
let
|
15098
|
-
t.lng && (
|
15099
|
-
const
|
15096
|
+
const l = (i.isInitialized || i.initializedStoreOnce) && c.every((N) => Gu(N, i, s)), u = i6(i, t.lng || null, s.nsMode === "fallback" ? c : c[0], d), m = () => u, p = () => Ws(i, t.lng || null, s.nsMode === "fallback" ? c : c[0], d), [g, f] = ee(m);
|
15097
|
+
let R = c.join();
|
15098
|
+
t.lng && (R = `${t.lng}${R}`);
|
15099
|
+
const v = o6(R), L = nr(!0);
|
15100
15100
|
ie(() => {
|
15101
15101
|
const {
|
15102
15102
|
bindI18n: N,
|
@@ -15106,18 +15106,18 @@ const o6 = (e, t) => {
|
|
15106
15106
|
L.current && f(p);
|
15107
15107
|
}) : Io(i, c, () => {
|
15108
15108
|
L.current && f(p);
|
15109
|
-
})), l &&
|
15109
|
+
})), l && v && v !== R && L.current && f(p);
|
15110
15110
|
const O = () => {
|
15111
15111
|
L.current && f(p);
|
15112
15112
|
};
|
15113
15113
|
return N && i && i.on(N, O), E && i && i.store.on(E, O), () => {
|
15114
15114
|
L.current = !1, N && i && N.split(" ").forEach((S) => i.off(S, O)), E && i && E.split(" ").forEach((S) => i.store.off(S, O));
|
15115
15115
|
};
|
15116
|
-
}, [i,
|
15117
|
-
L.current && l && f(
|
15116
|
+
}, [i, R]), ie(() => {
|
15117
|
+
L.current && l && f(m);
|
15118
15118
|
}, [i, d, l]);
|
15119
|
-
const x = [
|
15120
|
-
if (x.t =
|
15119
|
+
const x = [g, i, l];
|
15120
|
+
if (x.t = g, x.i18n = i, x.ready = l, l || !l && !a) return x;
|
15121
15121
|
throw new Promise((N) => {
|
15122
15122
|
t.lng ? Fo(i, t.lng, c, () => N()) : Io(i, c, () => N());
|
15123
15123
|
});
|
@@ -15139,38 +15139,38 @@ V.use(t6).init({
|
|
15139
15139
|
}
|
15140
15140
|
});
|
15141
15141
|
const w6 = Pt(
|
15142
|
-
({ width: e, selectedCity: t, setSelectedCity: n, onChange: r, value: o, id: i },
|
15143
|
-
const [
|
15142
|
+
({ width: e, selectedCity: t, setSelectedCity: n, onChange: r, value: o, id: i, disabled: s }, a) => {
|
15143
|
+
const [d, c] = ee([]), [l, u] = ee([]), { locale: m, axios: p } = ot(Zs), { t: g } = s6("common", { lng: m }), f = Vo(async () => {
|
15144
15144
|
try {
|
15145
|
-
const v = await (
|
15146
|
-
|
15145
|
+
const v = await (p == null ? void 0 : p.post("/countries/search"));
|
15146
|
+
u(v == null ? void 0 : v.data.data);
|
15147
15147
|
} catch {
|
15148
|
-
|
15148
|
+
c([]);
|
15149
15149
|
}
|
15150
|
-
}, [
|
15150
|
+
}, [p]);
|
15151
15151
|
ie(() => {
|
15152
|
-
|
15152
|
+
f();
|
15153
15153
|
}, []), ie(() => {
|
15154
15154
|
if (t) {
|
15155
|
-
const v = t.split("-")[1],
|
15156
|
-
(
|
15155
|
+
const v = t.split("-")[1], L = l.filter(
|
15156
|
+
(x) => x.name.includes(v)
|
15157
15157
|
);
|
15158
|
-
if (
|
15159
|
-
const
|
15160
|
-
label:
|
15161
|
-
value:
|
15158
|
+
if (L.length) {
|
15159
|
+
const x = L.map((N) => ({
|
15160
|
+
label: N.name,
|
15161
|
+
value: N.name
|
15162
15162
|
}));
|
15163
|
-
r(
|
15163
|
+
r(x[0].value);
|
15164
15164
|
}
|
15165
15165
|
}
|
15166
|
-
}, [t,
|
15167
|
-
const v =
|
15168
|
-
label:
|
15169
|
-
value:
|
15166
|
+
}, [t, l, r]), ie(() => {
|
15167
|
+
const v = l.map((L) => ({
|
15168
|
+
label: L.name,
|
15169
|
+
value: L.name
|
15170
15170
|
}));
|
15171
|
-
|
15172
|
-
}, [
|
15173
|
-
const
|
15171
|
+
c(v);
|
15172
|
+
}, [l]);
|
15173
|
+
const R = (v) => {
|
15174
15174
|
v === "None" ? (r(""), n && n("")) : (r(v), n && n(""));
|
15175
15175
|
};
|
15176
15176
|
return /* @__PURE__ */ h("div", { className: "snmt-country-select", children: /* @__PURE__ */ h(
|
@@ -15178,11 +15178,12 @@ const w6 = Pt(
|
|
15178
15178
|
{
|
15179
15179
|
id: i,
|
15180
15180
|
width: e,
|
15181
|
-
placeholder:
|
15181
|
+
placeholder: g("placeholder"),
|
15182
15182
|
value: o,
|
15183
|
-
ref:
|
15184
|
-
onChange:
|
15185
|
-
options: [{ label: "None", value: "None" }, ...
|
15183
|
+
ref: a,
|
15184
|
+
onChange: R,
|
15185
|
+
options: [{ label: "None", value: "None" }, ...d],
|
15186
|
+
disabled: s
|
15186
15187
|
}
|
15187
15188
|
) });
|
15188
15189
|
}
|