@incodetech/web 2.0.0-alpha.5 → 2.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/base.css +230 -0
  2. package/dist/email/email.es.js +3 -3
  3. package/dist/flow/flow.es.js +555 -7
  4. package/dist/flow/styles.css +419 -189
  5. package/dist/{incodeModule-DFQUQvfY.js → incodeModule-BuCBWati.js} +47 -46
  6. package/dist/index.es.js +4 -99
  7. package/dist/{title-ng7q7YDh.js → instance-B-q0ZREN.js} +194 -215
  8. package/dist/{otpInput-BUrV4IAF.js → otpInput-cq1THeRd.js} +1 -1
  9. package/dist/phone/phone.es.js +3 -4
  10. package/dist/{button-DeMZ_34N.js → preact-custom-element.esm-BGQkPkOv.js} +145 -166
  11. package/dist/selfie/selfie.es.js +63 -63
  12. package/dist/selfie/styles.css +267 -787
  13. package/dist/setup-wNL83jmW.js +20 -0
  14. package/dist/title-XSxhaBDx.js +25 -0
  15. package/dist/types/email/email.d.ts +1 -1
  16. package/dist/types/email/styles.d.ts +1 -0
  17. package/dist/types/email.d.ts +1 -1
  18. package/dist/types/flow/flow.d.ts +1 -1
  19. package/dist/types/flow/styles.d.ts +1 -0
  20. package/dist/types/flow.d.ts +2 -2
  21. package/dist/types/index.d.ts +4 -99
  22. package/dist/types/phone/phone.d.ts +1 -1
  23. package/dist/types/phone/styles.d.ts +1 -0
  24. package/dist/types/phone.d.ts +1 -1
  25. package/dist/types/selfie/selfie.d.ts +1 -1
  26. package/dist/types/selfie/styles.d.ts +1 -0
  27. package/dist/types/selfie.d.ts +1 -1
  28. package/dist/types/styles.d.ts +1 -0
  29. package/dist/uiConfig-CQ1W9cUD.js +23 -0
  30. package/package.json +6 -5
  31. package/dist/button.css +0 -335
  32. package/dist/flow-ZK6OBsa3.js +0 -568
  33. package/dist/incodeModule.css +0 -119
  34. package/dist/otpInput.css +0 -167
  35. package/dist/successIcon.css +0 -4
  36. package/dist/title.css +0 -38
@@ -1,62 +1,60 @@
1
- import { d as he, y as Ye } from "./vendor-preact-CK0WeTOR.js";
2
- import { u as Ze } from "./button-DeMZ_34N.js";
3
1
  const g = (s) => typeof s == "string", q = () => {
4
2
  let s, e;
5
3
  const t = new Promise((n, i) => {
6
4
  s = n, e = i;
7
5
  });
8
6
  return t.resolve = s, t.reject = e, t;
9
- }, pe = (s) => s == null ? "" : "" + s, et = (s, e, t) => {
7
+ }, he = (s) => s == null ? "" : "" + s, Ge = (s, e, t) => {
10
8
  s.forEach((n) => {
11
9
  e[n] && (t[n] = e[n]);
12
10
  });
13
- }, tt = /###/g, ge = (s) => s && s.indexOf("###") > -1 ? s.replace(tt, ".") : s, me = (s) => !s || g(s), z = (s, e, t) => {
11
+ }, Ye = /###/g, pe = (s) => s && s.indexOf("###") > -1 ? s.replace(Ye, ".") : s, ge = (s) => !s || g(s), _ = (s, e, t) => {
14
12
  const n = g(e) ? e.split(".") : e;
15
13
  let i = 0;
16
14
  for (; i < n.length - 1; ) {
17
- if (me(s)) return {};
18
- const r = ge(n[i]);
15
+ if (ge(s)) return {};
16
+ const r = pe(n[i]);
19
17
  !s[r] && t && (s[r] = new t()), Object.prototype.hasOwnProperty.call(s, r) ? s = s[r] : s = {}, ++i;
20
18
  }
21
- return me(s) ? {} : {
19
+ return ge(s) ? {} : {
22
20
  obj: s,
23
- k: ge(n[i])
21
+ k: pe(n[i])
24
22
  };
25
- }, ye = (s, e, t) => {
23
+ }, me = (s, e, t) => {
26
24
  const {
27
25
  obj: n,
28
26
  k: i
29
- } = z(s, e, Object);
27
+ } = _(s, e, Object);
30
28
  if (n !== void 0 || e.length === 1) {
31
29
  n[i] = t;
32
30
  return;
33
31
  }
34
- let r = e[e.length - 1], o = e.slice(0, e.length - 1), a = z(s, o, Object);
32
+ let r = e[e.length - 1], o = e.slice(0, e.length - 1), a = _(s, o, Object);
35
33
  for (; a.obj === void 0 && o.length; )
36
- r = `${o[o.length - 1]}.${r}`, o = o.slice(0, o.length - 1), a = z(s, o, Object), a?.obj && typeof a.obj[`${a.k}.${r}`] < "u" && (a.obj = void 0);
34
+ r = `${o[o.length - 1]}.${r}`, o = o.slice(0, o.length - 1), a = _(s, o, Object), a?.obj && typeof a.obj[`${a.k}.${r}`] < "u" && (a.obj = void 0);
37
35
  a.obj[`${a.k}.${r}`] = t;
38
- }, nt = (s, e, t, n) => {
36
+ }, Ze = (s, e, t, n) => {
39
37
  const {
40
38
  obj: i,
41
39
  k: r
42
- } = z(s, e, Object);
40
+ } = _(s, e, Object);
43
41
  i[r] = i[r] || [], i[r].push(t);
44
42
  }, G = (s, e) => {
45
43
  const {
46
44
  obj: t,
47
45
  k: n
48
- } = z(s, e);
46
+ } = _(s, e);
49
47
  if (t && Object.prototype.hasOwnProperty.call(t, n))
50
48
  return t[n];
51
- }, it = (s, e, t) => {
49
+ }, et = (s, e, t) => {
52
50
  const n = G(s, t);
53
51
  return n !== void 0 ? n : G(e, t);
54
- }, He = (s, e, t) => {
52
+ }, Ae = (s, e, t) => {
55
53
  for (const n in e)
56
- n !== "__proto__" && n !== "constructor" && (n in s ? g(s[n]) || s[n] instanceof String || g(e[n]) || e[n] instanceof String ? t && (s[n] = e[n]) : He(s[n], e[n], t) : s[n] = e[n]);
54
+ n !== "__proto__" && n !== "constructor" && (n in s ? g(s[n]) || s[n] instanceof String || g(e[n]) || e[n] instanceof String ? t && (s[n] = e[n]) : Ae(s[n], e[n], t) : s[n] = e[n]);
57
55
  return s;
58
56
  }, A = (s) => s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
59
- var st = {
57
+ var tt = {
60
58
  "&": "&amp;",
61
59
  "<": "&lt;",
62
60
  ">": "&gt;",
@@ -64,8 +62,8 @@ var st = {
64
62
  "'": "&#39;",
65
63
  "/": "&#x2F;"
66
64
  };
67
- const rt = (s) => g(s) ? s.replace(/[&<>"'\/]/g, (e) => st[e]) : s;
68
- class ot {
65
+ const nt = (s) => g(s) ? s.replace(/[&<>"'\/]/g, (e) => tt[e]) : s;
66
+ class it {
69
67
  constructor(e) {
70
68
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
71
69
  }
@@ -77,11 +75,11 @@ class ot {
77
75
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
78
76
  }
79
77
  }
80
- const at = [" ", ",", "?", "!", ";"], lt = new ot(20), ut = (s, e, t) => {
78
+ const st = [" ", ",", "?", "!", ";"], rt = new it(20), ot = (s, e, t) => {
81
79
  e = e || "", t = t || "";
82
- const n = at.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
80
+ const n = st.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
83
81
  if (n.length === 0) return !0;
84
- const i = lt.getRegExp(`(${n.map((o) => o === "?" ? "\\?" : o).join("|")})`);
82
+ const i = rt.getRegExp(`(${n.map((o) => o === "?" ? "\\?" : o).join("|")})`);
85
83
  let r = !i.test(s);
86
84
  if (!r) {
87
85
  const o = s.indexOf(t);
@@ -108,7 +106,7 @@ const at = [" ", ",", "?", "!", ";"], lt = new ot(20), ut = (s, e, t) => {
108
106
  i = o;
109
107
  }
110
108
  return i;
111
- }, B = (s) => s?.replace("_", "-"), ft = {
109
+ }, B = (s) => s?.replace("_", "-"), at = {
112
110
  type: "logger",
113
111
  log(s) {
114
112
  this.output("log", s);
@@ -128,7 +126,7 @@ class Y {
128
126
  this.init(e, t);
129
127
  }
130
128
  init(e, t = {}) {
131
- this.prefix = t.prefix || "i18next:", this.logger = e || ft, this.options = t, this.debug = t.debug;
129
+ this.prefix = t.prefix || "i18next:", this.logger = e || at, this.options = t, this.debug = t.debug;
132
130
  }
133
131
  log(...e) {
134
132
  return this.forward(e, "log", "", !0);
@@ -186,7 +184,7 @@ class te {
186
184
  });
187
185
  }
188
186
  }
189
- class xe extends te {
187
+ class ye extends te {
190
188
  constructor(e, t = {
191
189
  ns: ["translation"],
192
190
  defaultNS: "translation"
@@ -212,7 +210,7 @@ class xe extends te {
212
210
  }) {
213
211
  const o = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
214
212
  let a = [e, t];
215
- n && (a = a.concat(o ? n.split(o) : n)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), ye(this.data, a, i), r.silent || this.emit("added", e, t, n, i);
213
+ n && (a = a.concat(o ? n.split(o) : n)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), me(this.data, a, i), r.silent || this.emit("added", e, t, n, i);
216
214
  }
217
215
  addResources(e, t, n, i = {
218
216
  silent: !1
@@ -230,10 +228,10 @@ class xe extends te {
230
228
  let a = [e, t];
231
229
  e.indexOf(".") > -1 && (a = e.split("."), i = n, n = t, t = a[1]), this.addNamespaces(t);
232
230
  let l = G(this.data, a) || {};
233
- o.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? He(l, n, r) : l = {
231
+ o.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? Ae(l, n, r) : l = {
234
232
  ...l,
235
233
  ...n
236
- }, ye(this.data, a, l), o.silent || this.emit("added", e, t, n);
234
+ }, me(this.data, a, l), o.silent || this.emit("added", e, t, n);
237
235
  }
238
236
  removeResourceBundle(e, t) {
239
237
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -255,7 +253,7 @@ class xe extends te {
255
253
  return this.data;
256
254
  }
257
255
  }
258
- var Ke = {
256
+ var He = {
259
257
  processors: {},
260
258
  addPostProcessor(s) {
261
259
  this.processors[s.name] = s;
@@ -266,22 +264,22 @@ var Ke = {
266
264
  }), e;
267
265
  }
268
266
  };
269
- const Ue = Symbol("i18next/PATH_KEY");
270
- function ct() {
267
+ const Ke = Symbol("i18next/PATH_KEY");
268
+ function lt() {
271
269
  const s = [], e = /* @__PURE__ */ Object.create(null);
272
270
  let t;
273
- return e.get = (n, i) => (t?.revoke?.(), i === Ue ? s : (s.push(i), t = Proxy.revocable(n, e), t.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
271
+ return e.get = (n, i) => (t?.revoke?.(), i === Ke ? s : (s.push(i), t = Proxy.revocable(n, e), t.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
274
272
  }
275
273
  function oe(s, e) {
276
274
  const {
277
- [Ue]: t
278
- } = s(ct());
275
+ [Ke]: t
276
+ } = s(lt());
279
277
  return t.join(e?.keySeparator ?? ".");
280
278
  }
281
- const be = {}, ne = (s) => !g(s) && typeof s != "boolean" && typeof s != "number";
279
+ const xe = {}, ne = (s) => !g(s) && typeof s != "boolean" && typeof s != "number";
282
280
  class Z extends te {
283
281
  constructor(e, t = {}) {
284
- super(), et(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = C.create("translator");
282
+ super(), Ge(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = C.create("translator");
285
283
  }
286
284
  changeLanguage(e) {
287
285
  e && (this.language = e);
@@ -303,7 +301,7 @@ class Z extends te {
303
301
  n === void 0 && (n = ":");
304
302
  const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
305
303
  let r = t.ns || this.options.defaultNS || [];
306
- const o = n && e.indexOf(n) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ut(e, n, i);
304
+ const o = n && e.indexOf(n) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ot(e, n, i);
307
305
  if (o && !a) {
308
306
  const l = e.match(this.interpolator.nestingRegexp);
309
307
  if (l && l.length > 0)
@@ -360,8 +358,8 @@ class Z extends te {
360
358
  }) : "", ue = v && !i.ordinal && i.count === 0, $ = ue && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${I}`] || i[`defaultValue${D}`] || i.defaultValue;
361
359
  let L = h;
362
360
  N && !h && j && (L = $);
363
- const Qe = ne(L), Ge = Object.prototype.toString.apply(L);
364
- if (N && L && Qe && w.indexOf(Ge) < 0 && !(g(x) && Array.isArray(L))) {
361
+ const We = ne(L), Qe = Object.prototype.toString.apply(L);
362
+ if (N && L && We && w.indexOf(Qe) < 0 && !(g(x) && Array.isArray(L))) {
365
363
  if (!i.returnObjects && !this.options.returnObjects) {
366
364
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
367
365
  const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, L, {
@@ -456,7 +454,7 @@ class Z extends te {
456
454
  !n.lng && i && i.res && (n.lng = this.language || i.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...f) => r?.[0] === f[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : this.translate(...f, t), n)), n.interpolation && this.interpolator.reset();
457
455
  }
458
456
  const o = n.postProcess || this.options.postProcess, a = g(o) ? [o] : o;
459
- return e != null && a?.length && n.applyPostProcessor !== !1 && (e = Ke.handle(a, e, t, this.options && this.options.postProcessPassResolved ? {
457
+ return e != null && a?.length && n.applyPostProcessor !== !1 && (e = He.handle(a, e, t, this.options && this.options.postProcessPassResolved ? {
460
458
  i18nResolved: {
461
459
  ...i,
462
460
  usedParams: this.getUsedParamsDetails(n)
@@ -474,7 +472,7 @@ class Z extends te {
474
472
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
475
473
  const p = t.count !== void 0 && !g(t.count), d = p && !t.ordinal && t.count === 0, h = t.context !== void 0 && (g(t.context) || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
476
474
  f.forEach((y) => {
477
- this.isValidLookup(n) || (a = y, !be[`${m[0]}-${y}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(a) && (be[`${m[0]}-${y}`] = !0, this.logger.warn(`key "${i}" for languages "${m.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!!!")), m.forEach((w) => {
475
+ this.isValidLookup(n) || (a = y, !xe[`${m[0]}-${y}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(a) && (xe[`${m[0]}-${y}`] = !0, this.logger.warn(`key "${i}" for languages "${m.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!!!")), m.forEach((w) => {
478
476
  if (this.isValidLookup(n)) return;
479
477
  o = w;
480
478
  const x = [c];
@@ -531,7 +529,7 @@ class Z extends te {
531
529
  return !1;
532
530
  }
533
531
  }
534
- class Se {
532
+ class be {
535
533
  constructor(e) {
536
534
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = C.create("languageUtils");
537
535
  }
@@ -595,20 +593,20 @@ class Se {
595
593
  }), i;
596
594
  }
597
595
  }
598
- const ve = {
596
+ const Se = {
599
597
  zero: 0,
600
598
  one: 1,
601
599
  two: 2,
602
600
  few: 3,
603
601
  many: 4,
604
602
  other: 5
605
- }, we = {
603
+ }, ve = {
606
604
  select: (s) => s === 1 ? "one" : "other",
607
605
  resolvedOptions: () => ({
608
606
  pluralCategories: ["one", "other"]
609
607
  })
610
608
  };
611
- class dt {
609
+ class ut {
612
610
  constructor(e, t = {}) {
613
611
  this.languageUtils = e, this.options = t, this.logger = C.create("pluralResolver"), this.pluralRulesCache = {};
614
612
  }
@@ -632,8 +630,8 @@ class dt {
632
630
  });
633
631
  } catch {
634
632
  if (!Intl)
635
- return this.logger.error("No Intl support, please use an Intl polyfill!"), we;
636
- if (!e.match(/-|_/)) return we;
633
+ return this.logger.error("No Intl support, please use an Intl polyfill!"), ve;
634
+ if (!e.match(/-|_/)) return ve;
637
635
  const l = this.languageUtils.getLanguagePartFromCode(e);
638
636
  o = this.getRule(l, t);
639
637
  }
@@ -648,18 +646,18 @@ class dt {
648
646
  }
649
647
  getSuffixes(e, t = {}) {
650
648
  let n = this.getRule(e, t);
651
- return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((i, r) => ve[i] - ve[r]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
649
+ return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((i, r) => Se[i] - Se[r]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
652
650
  }
653
651
  getSuffix(e, t, n = {}) {
654
652
  const i = this.getRule(e, n);
655
653
  return i ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${i.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
656
654
  }
657
655
  }
658
- const Oe = (s, e, t, n = ".", i = !0) => {
659
- let r = it(s, e, t);
656
+ const we = (s, e, t, n = ".", i = !0) => {
657
+ let r = et(s, e, t);
660
658
  return !r && i && g(t) && (r = re(s, t, n), r === void 0 && (r = re(e, t, n))), r;
661
659
  }, ie = (s) => s.replace(/\$/g, "$$$$");
662
- class Le {
660
+ class Oe {
663
661
  constructor(e = {}) {
664
662
  this.logger = C.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((t) => t), this.init(e);
665
663
  }
@@ -686,7 +684,7 @@ class Le {
686
684
  maxReplaces: w,
687
685
  alwaysFormat: x
688
686
  } = e.interpolation;
689
- this.escape = t !== void 0 ? t : rt, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? A(r) : o || "{{", this.suffix = a ? A(a) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = c ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = p ? A(p) : d || A("$t("), this.nestingSuffix = h ? A(h) : m || A(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = x !== void 0 ? x : !1, this.resetRegExp();
687
+ this.escape = t !== void 0 ? t : nt, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? A(r) : o || "{{", this.suffix = a ? A(a) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = c ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = p ? A(p) : d || A("$t("), this.nestingSuffix = h ? A(h) : m || A(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = x !== void 0 ? x : !1, this.resetRegExp();
690
688
  }
691
689
  reset() {
692
690
  this.options && this.init(this.options);
@@ -699,7 +697,7 @@ class Le {
699
697
  let r, o, a;
700
698
  const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, u = (d) => {
701
699
  if (d.indexOf(this.formatSeparator) < 0) {
702
- const w = Oe(t, l, d, this.options.keySeparator, this.options.ignoreJSONStructure);
700
+ const w = we(t, l, d, this.options.keySeparator, this.options.ignoreJSONStructure);
703
701
  return this.alwaysFormat ? this.format(w, void 0, n, {
704
702
  ...i,
705
703
  ...t,
@@ -707,7 +705,7 @@ class Le {
707
705
  }) : w;
708
706
  }
709
707
  const h = d.split(this.formatSeparator), m = h.shift().trim(), y = h.join(this.formatSeparator).trim();
710
- return this.format(Oe(t, l, m, this.options.keySeparator, this.options.ignoreJSONStructure), y, n, {
708
+ return this.format(we(t, l, m, this.options.keySeparator, this.options.ignoreJSONStructure), y, n, {
711
709
  ...i,
712
710
  ...t,
713
711
  interpolationkey: m
@@ -735,7 +733,7 @@ class Le {
735
733
  continue;
736
734
  } else
737
735
  this.logger.warn(`missed to pass in variable ${h} for interpolating ${e}`), o = "";
738
- else !g(o) && !this.useRawValueToEscape && (o = pe(o));
736
+ else !g(o) && !this.useRawValueToEscape && (o = he(o));
739
737
  const m = d.safeValue(o);
740
738
  if (e = e.replace(r[0], m), f ? (d.regex.lastIndex += o.length, d.regex.lastIndex -= r[0].length) : d.regex.lastIndex = 0, a++, a >= this.maxReplaces)
741
739
  break;
@@ -769,7 +767,7 @@ class Le {
769
767
  }, o = o.replace && !g(o.replace) ? o.replace : o, o.applyPostProcessor = !1, delete o.defaultValue;
770
768
  const u = /{.*}/.test(i[1]) ? i[1].lastIndexOf("}") + 1 : i[1].indexOf(this.formatSeparator);
771
769
  if (u !== -1 && (l = i[1].slice(u).split(this.formatSeparator).map((c) => c.trim()).filter(Boolean), i[1] = i[1].slice(0, u)), r = t(a.call(this, i[1].trim(), o), o), r && i[0] === e && !g(r)) return r;
772
- g(r) || (r = pe(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), r = ""), l.length && (r = l.reduce((c, f) => this.format(c, f, n.lng, {
770
+ g(r) || (r = he(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), r = ""), l.length && (r = l.reduce((c, f) => this.format(c, f, n.lng, {
773
771
  ...n,
774
772
  interpolationkey: i[1].trim()
775
773
  }), r.trim())), e = e.replace(i[0], r), this.regexp.lastIndex = 0;
@@ -777,7 +775,7 @@ class Le {
777
775
  return e;
778
776
  }
779
777
  }
780
- const ht = (s) => {
778
+ const ft = (s) => {
781
779
  let e = s.toLowerCase().trim();
782
780
  const t = {};
783
781
  if (s.indexOf("(") > -1) {
@@ -795,7 +793,7 @@ const ht = (s) => {
795
793
  formatName: e,
796
794
  formatOptions: t
797
795
  };
798
- }, Pe = (s) => {
796
+ }, Le = (s) => {
799
797
  const e = {};
800
798
  return (t, n, i) => {
801
799
  let r = i;
@@ -807,8 +805,8 @@ const ht = (s) => {
807
805
  let a = e[o];
808
806
  return a || (a = s(B(n), i), e[o] = a), a(t);
809
807
  };
810
- }, pt = (s) => (e, t, n) => s(B(t), n)(e);
811
- class gt {
808
+ }, ct = (s) => (e, t, n) => s(B(t), n)(e);
809
+ class dt {
812
810
  constructor(e = {}) {
813
811
  this.logger = C.create("formatter"), this.options = e, this.init(e);
814
812
  }
@@ -816,7 +814,7 @@ class gt {
816
814
  interpolation: {}
817
815
  }) {
818
816
  this.formatSeparator = t.interpolation.formatSeparator || ",";
819
- const n = t.cacheInBuiltFormats ? Pe : pt;
817
+ const n = t.cacheInBuiltFormats ? Le : ct;
820
818
  this.formats = {
821
819
  number: n((i, r) => {
822
820
  const o = new Intl.NumberFormat(i, {
@@ -855,7 +853,7 @@ class gt {
855
853
  this.formats[e.toLowerCase().trim()] = t;
856
854
  }
857
855
  addCached(e, t) {
858
- this.formats[e.toLowerCase().trim()] = Pe(t);
856
+ this.formats[e.toLowerCase().trim()] = Le(t);
859
857
  }
860
858
  format(e, t, n, i = {}) {
861
859
  const r = t.split(this.formatSeparator);
@@ -867,7 +865,7 @@ class gt {
867
865
  const {
868
866
  formatName: u,
869
867
  formatOptions: c
870
- } = ht(l);
868
+ } = ft(l);
871
869
  if (this.formats[u]) {
872
870
  let f = a;
873
871
  try {
@@ -887,10 +885,10 @@ class gt {
887
885
  }, e);
888
886
  }
889
887
  }
890
- const mt = (s, e) => {
888
+ const ht = (s, e) => {
891
889
  s.pending[e] !== void 0 && (delete s.pending[e], s.pendingCount--);
892
890
  };
893
- class yt extends te {
891
+ class pt extends te {
894
892
  constructor(e, t, n, i = {}) {
895
893
  super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = i, this.logger = C.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, i.backend, i);
896
894
  }
@@ -922,7 +920,7 @@ class yt extends te {
922
920
  }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
923
921
  const a = {};
924
922
  this.queue.forEach((l) => {
925
- nt(l.loaded, [r], o), mt(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
923
+ Ze(l.loaded, [r], o), ht(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
926
924
  a[u] || (a[u] = {});
927
925
  const c = l.loaded[u];
928
926
  c.length && c.forEach((f) => {
@@ -1020,7 +1018,7 @@ class yt extends te {
1020
1018
  }
1021
1019
  }
1022
1020
  }
1023
- const ke = () => ({
1021
+ const Pe = () => ({
1024
1022
  debug: !1,
1025
1023
  initAsync: !0,
1026
1024
  ns: ["translation"],
@@ -1077,17 +1075,17 @@ const ke = () => ({
1077
1075
  skipOnVariables: !0
1078
1076
  },
1079
1077
  cacheInBuiltFormats: !0
1080
- }), Ce = (s) => (g(s.ns) && (s.ns = [s.ns]), g(s.fallbackLng) && (s.fallbackLng = [s.fallbackLng]), g(s.fallbackNS) && (s.fallbackNS = [s.fallbackNS]), s.supportedLngs?.indexOf?.("cimode") < 0 && (s.supportedLngs = s.supportedLngs.concat(["cimode"])), typeof s.initImmediate == "boolean" && (s.initAsync = s.initImmediate), s), W = () => {
1081
- }, xt = (s) => {
1078
+ }), ke = (s) => (g(s.ns) && (s.ns = [s.ns]), g(s.fallbackLng) && (s.fallbackLng = [s.fallbackLng]), g(s.fallbackNS) && (s.fallbackNS = [s.fallbackNS]), s.supportedLngs?.indexOf?.("cimode") < 0 && (s.supportedLngs = s.supportedLngs.concat(["cimode"])), typeof s.initImmediate == "boolean" && (s.initAsync = s.initImmediate), s), W = () => {
1079
+ }, gt = (s) => {
1082
1080
  Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach((t) => {
1083
1081
  typeof s[t] == "function" && (s[t] = s[t].bind(s));
1084
1082
  });
1085
1083
  };
1086
- class _ extends te {
1084
+ class z extends te {
1087
1085
  constructor(e = {}, t) {
1088
- if (super(), this.options = Ce(e), this.services = {}, this.logger = C, this.modules = {
1086
+ if (super(), this.options = ke(e), this.services = {}, this.logger = C, this.modules = {
1089
1087
  external: []
1090
- }, xt(this), t && !this.isInitialized && !e.isClone) {
1088
+ }, gt(this), t && !this.isInitialized && !e.isClone) {
1091
1089
  if (!this.options.initAsync)
1092
1090
  return this.init(e, t), this;
1093
1091
  setTimeout(() => {
@@ -1097,11 +1095,11 @@ class _ extends te {
1097
1095
  }
1098
1096
  init(e = {}, t) {
1099
1097
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (g(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1100
- const n = ke();
1098
+ const n = Pe();
1101
1099
  this.options = {
1102
1100
  ...n,
1103
1101
  ...this.options,
1104
- ...Ce(e)
1102
+ ...ke(e)
1105
1103
  }, this.options.interpolation = {
1106
1104
  ...n.interpolation,
1107
1105
  ...this.options.interpolation
@@ -1110,16 +1108,16 @@ class _ extends te {
1110
1108
  if (!this.options.isClone) {
1111
1109
  this.modules.logger ? C.init(i(this.modules.logger), this.options) : C.init(null, this.options);
1112
1110
  let u;
1113
- this.modules.formatter ? u = this.modules.formatter : u = gt;
1114
- const c = new Se(this.options);
1115
- this.store = new xe(this.options.resources, this.options);
1111
+ this.modules.formatter ? u = this.modules.formatter : u = dt;
1112
+ const c = new be(this.options);
1113
+ this.store = new ye(this.options.resources, this.options);
1116
1114
  const f = this.services;
1117
- f.logger = C, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new dt(c, {
1115
+ f.logger = C, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new ut(c, {
1118
1116
  prepend: this.options.pluralSeparator,
1119
1117
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1120
- }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), u && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = i(u), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Le(this.options), f.utils = {
1118
+ }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), u && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = i(u), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Oe(this.options), f.utils = {
1121
1119
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1122
- }, f.backendConnector = new yt(i(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...h) => {
1120
+ }, f.backendConnector = new pt(i(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...h) => {
1123
1121
  this.emit(d, ...h);
1124
1122
  }), this.modules.languageDetector && (f.languageDetector = i(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = i(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Z(this.services, this.options), this.translator.on("*", (d, ...h) => {
1125
1123
  this.emit(d, ...h);
@@ -1171,7 +1169,7 @@ class _ extends te {
1171
1169
  use(e) {
1172
1170
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1173
1171
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1174
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ke.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1172
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && He.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1175
1173
  }
1176
1174
  setResolvedLanguage(e) {
1177
1175
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -1272,12 +1270,12 @@ class _ extends te {
1272
1270
  }
1273
1271
  } catch {
1274
1272
  }
1275
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = this.services?.languageUtils || new Se(ke());
1273
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = this.services?.languageUtils || new be(Pe());
1276
1274
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1277
1275
  }
1278
1276
  static createInstance(e = {}, t) {
1279
- const n = new _(e, t);
1280
- return n.createInstance = _.createInstance, n;
1277
+ const n = new z(e, t);
1278
+ return n.createInstance = z.createInstance, n;
1281
1279
  }
1282
1280
  cloneInstance(e = {}, t = W) {
1283
1281
  const n = e.forkResourceStore;
@@ -1286,7 +1284,7 @@ class _ extends te {
1286
1284
  ...this.options,
1287
1285
  ...e,
1288
1286
  isClone: !0
1289
- }, r = new _(i);
1287
+ }, r = new z(i);
1290
1288
  if ((e.debug !== void 0 || e.prefix !== void 0) && (r.logger = r.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
1291
1289
  r[a] = this[a];
1292
1290
  }), r.services = {
@@ -1299,9 +1297,9 @@ class _ extends te {
1299
1297
  }, l[u] = Object.keys(l[u]).reduce((c, f) => (c[f] = {
1300
1298
  ...l[u][f]
1301
1299
  }, c), l[u]), l), {});
1302
- r.store = new xe(a, i), r.services.resourceStore = r.store;
1300
+ r.store = new ye(a, i), r.services.resourceStore = r.store;
1303
1301
  }
1304
- return e.interpolation && (r.services.interpolator = new Le(i)), r.translator = new Z(r.services, i), r.translator.on("*", (a, ...l) => {
1302
+ return e.interpolation && (r.services.interpolator = new Oe(i)), r.translator = new Z(r.services, i), r.translator.on("*", (a, ...l) => {
1305
1303
  r.emit(a, ...l);
1306
1304
  }), r.init(i, t), r.translator.options = i, r.translator.backendConnector.services.utils = {
1307
1305
  hasLoadedNamespace: r.hasLoadedNamespace.bind(r)
@@ -1317,7 +1315,7 @@ class _ extends te {
1317
1315
  };
1318
1316
  }
1319
1317
  }
1320
- const b = _.createInstance();
1318
+ const b = z.createInstance();
1321
1319
  b.createInstance;
1322
1320
  b.dir;
1323
1321
  b.init;
@@ -1333,20 +1331,20 @@ b.hasLoadedNamespace;
1333
1331
  b.loadNamespaces;
1334
1332
  b.loadLanguages;
1335
1333
  const {
1336
- slice: bt,
1337
- forEach: St
1334
+ slice: mt,
1335
+ forEach: yt
1338
1336
  } = [];
1339
- function vt(s) {
1340
- return St.call(bt.call(arguments, 1), (e) => {
1337
+ function xt(s) {
1338
+ return yt.call(mt.call(arguments, 1), (e) => {
1341
1339
  if (e)
1342
1340
  for (const t in e)
1343
1341
  s[t] === void 0 && (s[t] = e[t]);
1344
1342
  }), s;
1345
1343
  }
1346
- function wt(s) {
1344
+ function bt(s) {
1347
1345
  return typeof s != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((t) => t.test(s));
1348
1346
  }
1349
- const Re = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ot = function(s, e) {
1347
+ const Ce = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, St = function(s, e) {
1350
1348
  const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
1351
1349
  path: "/"
1352
1350
  }, i = encodeURIComponent(e);
@@ -1357,12 +1355,12 @@ const Re = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ot = function(s, e) {
1357
1355
  r += `; Max-Age=${Math.floor(o)}`;
1358
1356
  }
1359
1357
  if (n.domain) {
1360
- if (!Re.test(n.domain))
1358
+ if (!Ce.test(n.domain))
1361
1359
  throw new TypeError("option domain is invalid");
1362
1360
  r += `; Domain=${n.domain}`;
1363
1361
  }
1364
1362
  if (n.path) {
1365
- if (!Re.test(n.path))
1363
+ if (!Ce.test(n.path))
1366
1364
  throw new TypeError("option path is invalid");
1367
1365
  r += `; Path=${n.path}`;
1368
1366
  }
@@ -1389,13 +1387,13 @@ const Re = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ot = function(s, e) {
1389
1387
  throw new TypeError("option sameSite is invalid");
1390
1388
  }
1391
1389
  return n.partitioned && (r += "; Partitioned"), r;
1392
- }, je = {
1390
+ }, Re = {
1393
1391
  create(s, e, t, n) {
1394
1392
  let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
1395
1393
  path: "/",
1396
1394
  sameSite: "strict"
1397
1395
  };
1398
- t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), n && (i.domain = n), document.cookie = Ot(s, e, i);
1396
+ t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), n && (i.domain = n), document.cookie = St(s, e, i);
1399
1397
  },
1400
1398
  read(s) {
1401
1399
  const e = `${s}=`, t = document.cookie.split(";");
@@ -1410,7 +1408,7 @@ const Re = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ot = function(s, e) {
1410
1408
  this.create(s, "", -1, e);
1411
1409
  }
1412
1410
  };
1413
- var Lt = {
1411
+ var vt = {
1414
1412
  name: "cookie",
1415
1413
  // Deconstruct the options object and extract the lookupCookie property
1416
1414
  lookup(s) {
@@ -1418,7 +1416,7 @@ var Lt = {
1418
1416
  lookupCookie: e
1419
1417
  } = s;
1420
1418
  if (e && typeof document < "u")
1421
- return je.read(e) || void 0;
1419
+ return Re.read(e) || void 0;
1422
1420
  },
1423
1421
  // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
1424
1422
  cacheUserLanguage(s, e) {
@@ -1428,9 +1426,9 @@ var Lt = {
1428
1426
  cookieDomain: i,
1429
1427
  cookieOptions: r
1430
1428
  } = e;
1431
- t && typeof document < "u" && je.create(t, s, n, i, r);
1429
+ t && typeof document < "u" && Re.create(t, s, n, i, r);
1432
1430
  }
1433
- }, Pt = {
1431
+ }, wt = {
1434
1432
  name: "querystring",
1435
1433
  // Deconstruct the options object and extract the lookupQuerystring property
1436
1434
  lookup(s) {
@@ -1450,7 +1448,7 @@ var Lt = {
1450
1448
  }
1451
1449
  return t;
1452
1450
  }
1453
- }, kt = {
1451
+ }, Ot = {
1454
1452
  name: "hash",
1455
1453
  // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
1456
1454
  lookup(s) {
@@ -1482,7 +1480,7 @@ var Lt = {
1482
1480
  }
1483
1481
  };
1484
1482
  let H = null;
1485
- const $e = () => {
1483
+ const je = () => {
1486
1484
  if (H !== null) return H;
1487
1485
  try {
1488
1486
  if (H = typeof window < "u" && window.localStorage !== null, !H)
@@ -1494,14 +1492,14 @@ const $e = () => {
1494
1492
  }
1495
1493
  return H;
1496
1494
  };
1497
- var Ct = {
1495
+ var Lt = {
1498
1496
  name: "localStorage",
1499
1497
  // Deconstruct the options object and extract the lookupLocalStorage property
1500
1498
  lookup(s) {
1501
1499
  let {
1502
1500
  lookupLocalStorage: e
1503
1501
  } = s;
1504
- if (e && $e())
1502
+ if (e && je())
1505
1503
  return window.localStorage.getItem(e) || void 0;
1506
1504
  },
1507
1505
  // Deconstruct the options object and extract the lookupLocalStorage property
@@ -1509,11 +1507,11 @@ var Ct = {
1509
1507
  let {
1510
1508
  lookupLocalStorage: t
1511
1509
  } = e;
1512
- t && $e() && window.localStorage.setItem(t, s);
1510
+ t && je() && window.localStorage.setItem(t, s);
1513
1511
  }
1514
1512
  };
1515
1513
  let K = null;
1516
- const Ee = () => {
1514
+ const $e = () => {
1517
1515
  if (K !== null) return K;
1518
1516
  try {
1519
1517
  if (K = typeof window < "u" && window.sessionStorage !== null, !K)
@@ -1525,22 +1523,22 @@ const Ee = () => {
1525
1523
  }
1526
1524
  return K;
1527
1525
  };
1528
- var Rt = {
1526
+ var Pt = {
1529
1527
  name: "sessionStorage",
1530
1528
  lookup(s) {
1531
1529
  let {
1532
1530
  lookupSessionStorage: e
1533
1531
  } = s;
1534
- if (e && Ee())
1532
+ if (e && $e())
1535
1533
  return window.sessionStorage.getItem(e) || void 0;
1536
1534
  },
1537
1535
  cacheUserLanguage(s, e) {
1538
1536
  let {
1539
1537
  lookupSessionStorage: t
1540
1538
  } = e;
1541
- t && Ee() && window.sessionStorage.setItem(t, s);
1539
+ t && $e() && window.sessionStorage.setItem(t, s);
1542
1540
  }
1543
- }, jt = {
1541
+ }, kt = {
1544
1542
  name: "navigator",
1545
1543
  lookup(s) {
1546
1544
  const e = [];
@@ -1557,7 +1555,7 @@ var Rt = {
1557
1555
  }
1558
1556
  return e.length > 0 ? e : void 0;
1559
1557
  }
1560
- }, $t = {
1558
+ }, Ct = {
1561
1559
  name: "htmlTag",
1562
1560
  // Deconstruct the options object and extract the htmlTag property
1563
1561
  lookup(s) {
@@ -1567,7 +1565,7 @@ var Rt = {
1567
1565
  const n = e || (typeof document < "u" ? document.documentElement : null);
1568
1566
  return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
1569
1567
  }
1570
- }, Et = {
1568
+ }, Rt = {
1571
1569
  name: "path",
1572
1570
  // Deconstruct the options object and extract the lookupFromPathIndex property
1573
1571
  lookup(s) {
@@ -1578,7 +1576,7 @@ var Rt = {
1578
1576
  const t = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
1579
1577
  return Array.isArray(t) ? t[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
1580
1578
  }
1581
- }, Nt = {
1579
+ }, jt = {
1582
1580
  name: "subdomain",
1583
1581
  lookup(s) {
1584
1582
  let {
@@ -1589,15 +1587,15 @@ var Rt = {
1589
1587
  return n[t];
1590
1588
  }
1591
1589
  };
1592
- let Me = !1;
1590
+ let Ue = !1;
1593
1591
  try {
1594
- document.cookie, Me = !0;
1592
+ document.cookie, Ue = !0;
1595
1593
  } catch {
1596
1594
  }
1597
- const Ve = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
1598
- Me || Ve.splice(1, 1);
1599
- const Ft = () => ({
1600
- order: Ve,
1595
+ const Me = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
1596
+ Ue || Me.splice(1, 1);
1597
+ const $t = () => ({
1598
+ order: Me,
1601
1599
  lookupQuerystring: "lng",
1602
1600
  lookupCookie: "i18next",
1603
1601
  lookupLocalStorage: "i18nextLng",
@@ -1609,7 +1607,7 @@ const Ft = () => ({
1609
1607
  // cookieDomain: 'myDomain'
1610
1608
  convertDetectedLanguage: (s) => s
1611
1609
  });
1612
- class qe {
1610
+ class Ve {
1613
1611
  constructor(e) {
1614
1612
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1615
1613
  this.type = "languageDetector", this.detectors = {}, this.init(e, t);
@@ -1618,7 +1616,7 @@ class qe {
1618
1616
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
1619
1617
  languageUtils: {}
1620
1618
  }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1621
- this.services = e, this.options = vt(t, this.options || {}, Ft()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Lt), this.addDetector(Pt), this.addDetector(Ct), this.addDetector(Rt), this.addDetector(jt), this.addDetector($t), this.addDetector(Et), this.addDetector(Nt), this.addDetector(kt);
1619
+ this.services = e, this.options = xt(t, this.options || {}, $t()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(vt), this.addDetector(wt), this.addDetector(Lt), this.addDetector(Pt), this.addDetector(kt), this.addDetector(Ct), this.addDetector(Rt), this.addDetector(jt), this.addDetector(Ot);
1622
1620
  }
1623
1621
  addDetector(e) {
1624
1622
  return this.detectors[e.name] = e, this;
@@ -1630,7 +1628,7 @@ class qe {
1630
1628
  let i = this.detectors[n].lookup(this.options);
1631
1629
  i && typeof i == "string" && (i = [i]), i && (t = t.concat(i));
1632
1630
  }
1633
- }), t = t.filter((n) => n != null && !wt(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
1631
+ }), t = t.filter((n) => n != null && !bt(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
1634
1632
  }
1635
1633
  cacheUserLanguage(e) {
1636
1634
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -1639,7 +1637,7 @@ class qe {
1639
1637
  }));
1640
1638
  }
1641
1639
  }
1642
- qe.type = "languageDetector";
1640
+ Ve.type = "languageDetector";
1643
1641
  function ae(s) {
1644
1642
  "@babel/helpers - typeof";
1645
1643
  return ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -1648,16 +1646,16 @@ function ae(s) {
1648
1646
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1649
1647
  }, ae(s);
1650
1648
  }
1651
- function ze() {
1649
+ function qe() {
1652
1650
  return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : ae(XMLHttpRequest)) === "object";
1653
1651
  }
1654
- function Tt(s) {
1652
+ function Et(s) {
1655
1653
  return !!s && typeof s.then == "function";
1656
1654
  }
1657
- function It(s) {
1658
- return Tt(s) ? s : Promise.resolve(s);
1655
+ function Nt(s) {
1656
+ return Et(s) ? s : Promise.resolve(s);
1659
1657
  }
1660
- function Ne(s, e) {
1658
+ function Ee(s, e) {
1661
1659
  var t = Object.keys(s);
1662
1660
  if (Object.getOwnPropertySymbols) {
1663
1661
  var n = Object.getOwnPropertySymbols(s);
@@ -1667,25 +1665,25 @@ function Ne(s, e) {
1667
1665
  }
1668
1666
  return t;
1669
1667
  }
1670
- function Fe(s) {
1668
+ function Ne(s) {
1671
1669
  for (var e = 1; e < arguments.length; e++) {
1672
1670
  var t = arguments[e] != null ? arguments[e] : {};
1673
- e % 2 ? Ne(Object(t), !0).forEach(function(n) {
1674
- Dt(s, n, t[n]);
1675
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) : Ne(Object(t)).forEach(function(n) {
1671
+ e % 2 ? Ee(Object(t), !0).forEach(function(n) {
1672
+ Ft(s, n, t[n]);
1673
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) : Ee(Object(t)).forEach(function(n) {
1676
1674
  Object.defineProperty(s, n, Object.getOwnPropertyDescriptor(t, n));
1677
1675
  });
1678
1676
  }
1679
1677
  return s;
1680
1678
  }
1681
- function Dt(s, e, t) {
1682
- return (e = At(e)) in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
1679
+ function Ft(s, e, t) {
1680
+ return (e = Tt(e)) in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
1683
1681
  }
1684
- function At(s) {
1685
- var e = Ht(s, "string");
1682
+ function Tt(s) {
1683
+ var e = It(s, "string");
1686
1684
  return T(e) == "symbol" ? e : e + "";
1687
1685
  }
1688
- function Ht(s, e) {
1686
+ function It(s, e) {
1689
1687
  if (T(s) != "object" || !s) return s;
1690
1688
  var t = s[Symbol.toPrimitive];
1691
1689
  if (t !== void 0) {
@@ -1706,7 +1704,7 @@ function T(s) {
1706
1704
  var E = typeof fetch == "function" ? fetch : void 0;
1707
1705
  typeof global < "u" && global.fetch ? E = global.fetch : typeof window < "u" && window.fetch && (E = window.fetch);
1708
1706
  var X;
1709
- ze() && (typeof global < "u" && global.XMLHttpRequest ? X = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (X = window.XMLHttpRequest));
1707
+ qe() && (typeof global < "u" && global.XMLHttpRequest ? X = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (X = window.XMLHttpRequest));
1710
1708
  var ee;
1711
1709
  typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? ee = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (ee = window.ActiveXObject));
1712
1710
  typeof E != "function" && (E = void 0);
@@ -1727,7 +1725,7 @@ var le = function(e, t) {
1727
1725
  e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
1728
1726
  }
1729
1727
  return e;
1730
- }, Te = function(e, t, n, i) {
1728
+ }, Fe = function(e, t, n, i) {
1731
1729
  var r = function(l) {
1732
1730
  if (!l.ok) return n(l.statusText || "Error", {
1733
1731
  status: l.status
@@ -1747,29 +1745,29 @@ var le = function(e, t) {
1747
1745
  }
1748
1746
  }
1749
1747
  typeof fetch == "function" ? fetch(e, t).then(r).catch(n) : E(e, t).then(r).catch(n);
1750
- }, Ie = !1, Kt = function(e, t, n, i) {
1748
+ }, Te = !1, Dt = function(e, t, n, i) {
1751
1749
  e.queryStringParams && (t = le(t, e.queryStringParams));
1752
- var r = Fe({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
1750
+ var r = Ne({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
1753
1751
  typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (r["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (r["Content-Type"] = "application/json");
1754
- var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, a = Fe({
1752
+ var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, a = Ne({
1755
1753
  method: n ? "POST" : "GET",
1756
1754
  body: n ? e.stringify(n) : void 0,
1757
1755
  headers: r
1758
- }, Ie ? {} : o), l = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
1756
+ }, Te ? {} : o), l = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
1759
1757
  try {
1760
- Te(t, a, i, l);
1758
+ Fe(t, a, i, l);
1761
1759
  } catch (u) {
1762
1760
  if (!o || Object.keys(o).length === 0 || !u.message || u.message.indexOf("not implemented") < 0)
1763
1761
  return i(u);
1764
1762
  try {
1765
1763
  Object.keys(o).forEach(function(c) {
1766
1764
  delete a[c];
1767
- }), Te(t, a, i, l), Ie = !0;
1765
+ }), Fe(t, a, i, l), Te = !0;
1768
1766
  } catch (c) {
1769
1767
  i(c);
1770
1768
  }
1771
1769
  }
1772
- }, Ut = function(e, t, n, i) {
1770
+ }, At = function(e, t, n, i) {
1773
1771
  n && T(n) === "object" && (n = le("", n).slice(1)), e.queryStringParams && (t = le(t, e.queryStringParams));
1774
1772
  try {
1775
1773
  var r = X ? new X() : new ee("MSXML2.XMLHTTP.3.0");
@@ -1787,12 +1785,12 @@ var le = function(e, t) {
1787
1785
  } catch (l) {
1788
1786
  console && console.log(l);
1789
1787
  }
1790
- }, Mt = function(e, t, n, i) {
1788
+ }, Ht = function(e, t, n, i) {
1791
1789
  if (typeof n == "function" && (i = n, n = void 0), i = i || function() {
1792
1790
  }, E && t.indexOf("file:") !== 0)
1793
- return Kt(e, t, n, i);
1794
- if (ze() || typeof ActiveXObject == "function")
1795
- return Ut(e, t, n, i);
1791
+ return Dt(e, t, n, i);
1792
+ if (qe() || typeof ActiveXObject == "function")
1793
+ return At(e, t, n, i);
1796
1794
  i(new Error("No fetch and no xhr implementation found!"));
1797
1795
  };
1798
1796
  function U(s) {
@@ -1803,7 +1801,7 @@ function U(s) {
1803
1801
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1804
1802
  }, U(s);
1805
1803
  }
1806
- function De(s, e) {
1804
+ function Ie(s, e) {
1807
1805
  var t = Object.keys(s);
1808
1806
  if (Object.getOwnPropertySymbols) {
1809
1807
  var n = Object.getOwnPropertySymbols(s);
@@ -1816,34 +1814,34 @@ function De(s, e) {
1816
1814
  function se(s) {
1817
1815
  for (var e = 1; e < arguments.length; e++) {
1818
1816
  var t = arguments[e] != null ? arguments[e] : {};
1819
- e % 2 ? De(Object(t), !0).forEach(function(n) {
1817
+ e % 2 ? Ie(Object(t), !0).forEach(function(n) {
1820
1818
  _e(s, n, t[n]);
1821
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) : De(Object(t)).forEach(function(n) {
1819
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) : Ie(Object(t)).forEach(function(n) {
1822
1820
  Object.defineProperty(s, n, Object.getOwnPropertyDescriptor(t, n));
1823
1821
  });
1824
1822
  }
1825
1823
  return s;
1826
1824
  }
1827
- function Vt(s, e) {
1825
+ function Kt(s, e) {
1828
1826
  if (!(s instanceof e)) throw new TypeError("Cannot call a class as a function");
1829
1827
  }
1830
- function qt(s, e) {
1828
+ function Ut(s, e) {
1831
1829
  for (var t = 0; t < e.length; t++) {
1832
1830
  var n = e[t];
1833
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(s, Be(n.key), n);
1831
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(s, ze(n.key), n);
1834
1832
  }
1835
1833
  }
1836
- function zt(s, e, t) {
1837
- return e && qt(s.prototype, e), Object.defineProperty(s, "prototype", { writable: !1 }), s;
1834
+ function Mt(s, e, t) {
1835
+ return e && Ut(s.prototype, e), Object.defineProperty(s, "prototype", { writable: !1 }), s;
1838
1836
  }
1839
1837
  function _e(s, e, t) {
1840
- return (e = Be(e)) in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
1838
+ return (e = ze(e)) in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
1841
1839
  }
1842
- function Be(s) {
1843
- var e = _t(s, "string");
1840
+ function ze(s) {
1841
+ var e = Vt(s, "string");
1844
1842
  return U(e) == "symbol" ? e : e + "";
1845
1843
  }
1846
- function _t(s, e) {
1844
+ function Vt(s, e) {
1847
1845
  if (U(s) != "object" || !s) return s;
1848
1846
  var t = s[Symbol.toPrimitive];
1849
1847
  if (t !== void 0) {
@@ -1853,7 +1851,7 @@ function _t(s, e) {
1853
1851
  }
1854
1852
  return String(s);
1855
1853
  }
1856
- var Bt = function() {
1854
+ var qt = function() {
1857
1855
  return {
1858
1856
  loadPath: "/locales/{{lng}}/{{ns}}.json",
1859
1857
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -1866,7 +1864,7 @@ var Bt = function() {
1866
1864
  },
1867
1865
  parseLoadPayload: function(t, n) {
1868
1866
  },
1869
- request: Mt,
1867
+ request: Ht,
1870
1868
  reloadInterval: typeof window < "u" ? !1 : 3600 * 1e3,
1871
1869
  customHeaders: {},
1872
1870
  queryStringParams: {},
@@ -1879,16 +1877,16 @@ var Bt = function() {
1879
1877
  cache: "default"
1880
1878
  }
1881
1879
  };
1882
- }, Xe = (function() {
1880
+ }, Be = (function() {
1883
1881
  function s(e) {
1884
1882
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1885
- Vt(this, s), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
1883
+ Kt(this, s), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
1886
1884
  }
1887
- return zt(s, [{
1885
+ return Mt(s, [{
1888
1886
  key: "init",
1889
1887
  value: function(t) {
1890
1888
  var n = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1891
- if (this.services = t, this.options = se(se(se({}, Bt()), this.options || {}), i), this.allOptions = r, this.services && this.options.reloadInterval) {
1889
+ if (this.services = t, this.options = se(se(se({}, qt()), this.options || {}), i), this.allOptions = r, this.services && this.options.reloadInterval) {
1892
1890
  var o = setInterval(function() {
1893
1891
  return n.reload();
1894
1892
  }, this.options.reloadInterval);
@@ -1909,7 +1907,7 @@ var Bt = function() {
1909
1907
  key: "_readAny",
1910
1908
  value: function(t, n, i, r, o) {
1911
1909
  var a = this, l = this.options.loadPath;
1912
- typeof this.options.loadPath == "function" && (l = this.options.loadPath(t, i)), l = It(l), l.then(function(u) {
1910
+ typeof this.options.loadPath == "function" && (l = this.options.loadPath(t, i)), l = Nt(l), l.then(function(u) {
1913
1911
  if (!u) return o(null, {});
1914
1912
  var c = a.services.interpolator.interpolate(u, {
1915
1913
  lng: t.join("+"),
@@ -1987,8 +1985,8 @@ var Bt = function() {
1987
1985
  }
1988
1986
  }]);
1989
1987
  })();
1990
- Xe.type = "backend";
1991
- const Je = [
1988
+ Be.type = "backend";
1989
+ const Xe = [
1992
1990
  "en",
1993
1991
  "en-DG",
1994
1992
  "es",
@@ -2072,33 +2070,33 @@ const Je = [
2072
2070
  "ur",
2073
2071
  "uz",
2074
2072
  "hr"
2075
- ], Xt = (s) => {
2073
+ ], _t = (s) => {
2076
2074
  const e = s.replace(/([A-Z])/g, " $1");
2077
2075
  return e.charAt(0).toUpperCase() + e.slice(1);
2078
- }, Jt = (s) => {
2076
+ }, zt = (s) => {
2079
2077
  const e = s.split("."), t = e[e.length - 1];
2080
- return Xt(t || "missing key");
2081
- }, We = new qe();
2082
- We.addDetector({
2078
+ return _t(t || "missing key");
2079
+ }, Je = new Ve();
2080
+ Je.addDetector({
2083
2081
  name: "navigatorOnlyLanguage",
2084
2082
  lookup() {
2085
2083
  if (typeof navigator > "u")
2086
2084
  return "en";
2087
2085
  const s = navigator.language;
2088
- return Je.includes(s) ? s : s.split("-")[0];
2086
+ return Xe.includes(s) ? s : s.split("-")[0];
2089
2087
  }
2090
2088
  });
2091
- const Wt = "https://api.i18nexus.com/project_resources/translations/{{lng}}/{{ns}}.json?api_key=cg41dUINoxdp8BaHDQLJhA";
2092
- function Ae(s, e) {
2089
+ const Bt = "https://api.i18nexus.com/project_resources/translations/{{lng}}/{{ns}}.json?api_key=cg41dUINoxdp8BaHDQLJhA";
2090
+ function De(s, e) {
2093
2091
  for (const [t, n] of Object.entries(e))
2094
2092
  n && s.addResourceBundle(t, "default", n, !0, !0);
2095
2093
  }
2096
- function Qt(s = {}) {
2094
+ function Xt(s = {}) {
2097
2095
  const { lang: e, translations: t } = s, n = b.createInstance();
2098
- return n.use(Xe).use(We).init({
2096
+ return n.use(Be).use(Je).init({
2099
2097
  lng: e,
2100
2098
  fallbackLng: "en",
2101
- supportedLngs: Je,
2099
+ supportedLngs: Xe,
2102
2100
  ns: ["default"],
2103
2101
  defaultNS: "default",
2104
2102
  partialBundledLanguages: !0,
@@ -2107,7 +2105,7 @@ function Qt(s = {}) {
2107
2105
  escapeValue: !1
2108
2106
  },
2109
2107
  backend: {
2110
- loadPath: Wt
2108
+ loadPath: Bt
2111
2109
  },
2112
2110
  detection: {
2113
2111
  order: [
@@ -2123,39 +2121,20 @@ function Qt(s = {}) {
2123
2121
  lookupQuerystring: "lang"
2124
2122
  },
2125
2123
  initImmediate: !1,
2126
- parseMissingKeyHandler: Jt
2127
- }), t && (Ae(n, t), n.on("loaded", () => {
2128
- Ae(n, t);
2124
+ parseMissingKeyHandler: zt
2125
+ }), t && (De(n, t), n.on("loaded", () => {
2126
+ De(n, t);
2129
2127
  })), n;
2130
2128
  }
2131
2129
  let Q = null;
2132
- function en(s) {
2130
+ function Jt(s) {
2133
2131
  Q = s;
2134
2132
  }
2135
- function Gt() {
2136
- return Q || (Q = Qt()), Q;
2137
- }
2138
- function tn() {
2139
- const s = Gt(), [, e] = he(0), [t, n] = he(s.isInitialized);
2140
- return Ye(() => {
2141
- const i = () => {
2142
- e((o) => o + 1);
2143
- }, r = () => {
2144
- n(!0), e((o) => o + 1);
2145
- };
2146
- return s.on("languageChanged", i), s.on("initialized", r), s.on("loaded", i), () => {
2147
- s.off("languageChanged", i), s.off("initialized", r), s.off("loaded", i);
2148
- };
2149
- }, [s]), {
2150
- t: s.t.bind(s),
2151
- ready: t,
2152
- i18n: s
2153
- };
2133
+ function Wt() {
2134
+ return Q || (Q = Xt()), Q;
2154
2135
  }
2155
- const nn = ({ children: s, className: e }) => /* @__PURE__ */ Ze("h2", { class: `IncodeTitle ${e ?? ""}`, children: s });
2156
2136
  export {
2157
- nn as T,
2158
- Qt as c,
2159
- en as s,
2160
- tn as u
2137
+ Xt as c,
2138
+ Wt as g,
2139
+ Jt as s
2161
2140
  };