@spscommerce/i18n 8.32.2 → 8.33.3

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/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createContext as xt, useContext as at, createElement as ie, isValidElement as ue, cloneElement as ne, useState as kt, useRef as ke, useEffect as Pe } from "react";
2
- function Pt(a, t) {
1
+ import { createContext as Lt, useContext as st, createElement as oe, isValidElement as ue, cloneElement as re, useState as Et, useRef as Le, useEffect as Ee } from "react";
2
+ function jt(a, t) {
3
3
  for (var n = 0; n < t.length; n++) {
4
4
  const e = t[n];
5
5
  if (typeof e != "string" && !Array.isArray(e)) {
@@ -23,7 +23,7 @@ function I(a) {
23
23
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
24
24
  }, I(a);
25
25
  }
26
- function Lt(a, t) {
26
+ function Rt(a, t) {
27
27
  if (I(a) != "object" || !a) return a;
28
28
  var n = a[Symbol.toPrimitive];
29
29
  if (n !== void 0) {
@@ -33,12 +33,12 @@ function Lt(a, t) {
33
33
  }
34
34
  return String(a);
35
35
  }
36
- function it(a) {
37
- var t = Lt(a, "string");
36
+ function ut(a) {
37
+ var t = Rt(a, "string");
38
38
  return I(t) == "symbol" ? t : t + "";
39
39
  }
40
40
  function ge(a, t, n) {
41
- return (t = it(t)) in a ? Object.defineProperty(a, t, {
41
+ return (t = ut(t)) in a ? Object.defineProperty(a, t, {
42
42
  value: n,
43
43
  enumerable: !0,
44
44
  configurable: !0,
@@ -59,14 +59,14 @@ function D(a) {
59
59
  function H(a, t) {
60
60
  if (!(a instanceof t)) throw new TypeError("Cannot call a class as a function");
61
61
  }
62
- function De(a, t) {
62
+ function Ie(a, t) {
63
63
  for (var n = 0; n < t.length; n++) {
64
64
  var e = t[n];
65
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(a, it(e.key), e);
65
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(a, ut(e.key), e);
66
66
  }
67
67
  }
68
68
  function M(a, t, n) {
69
- return t && De(a.prototype, t), n && De(a, n), Object.defineProperty(a, "prototype", {
69
+ return t && Ie(a.prototype, t), n && Ie(a, n), Object.defineProperty(a, "prototype", {
70
70
  writable: !1
71
71
  }), a;
72
72
  }
@@ -74,20 +74,20 @@ function W(a) {
74
74
  if (a === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
75
75
  return a;
76
76
  }
77
- function ee(a, t) {
77
+ function te(a, t) {
78
78
  if (t && (I(t) == "object" || typeof t == "function")) return t;
79
79
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
80
80
  return W(a);
81
81
  }
82
- function G(a) {
83
- return G = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
82
+ function Q(a) {
83
+ return Q = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
84
84
  return t.__proto__ || Object.getPrototypeOf(t);
85
- }, G(a);
85
+ }, Q(a);
86
86
  }
87
- function Le(a, t) {
88
- return Le = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, e) {
87
+ function je(a, t) {
88
+ return je = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, e) {
89
89
  return n.__proto__ = e, n;
90
- }, Le(a, t);
90
+ }, je(a, t);
91
91
  }
92
92
  function ve(a, t) {
93
93
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
@@ -99,9 +99,9 @@ function ve(a, t) {
99
99
  }
100
100
  }), Object.defineProperty(a, "prototype", {
101
101
  writable: !1
102
- }), t && Le(a, t);
102
+ }), t && je(a, t);
103
103
  }
104
- var Et = {
104
+ var Ct = {
105
105
  type: "logger",
106
106
  log: function(t) {
107
107
  this.output("log", t);
@@ -115,7 +115,7 @@ var Et = {
115
115
  output: function(t, n) {
116
116
  console && console[t] && console[t].apply(console, n);
117
117
  }
118
- }, jt = function() {
118
+ }, Nt = function() {
119
119
  function a(t) {
120
120
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
121
121
  H(this, a), this.init(t, n);
@@ -124,7 +124,7 @@ var Et = {
124
124
  key: "init",
125
125
  value: function(n) {
126
126
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
127
- this.prefix = e.prefix || "i18next:", this.logger = n || Et, this.options = e, this.debug = e.debug;
127
+ this.prefix = e.prefix || "i18next:", this.logger = n || Ct, this.options = e, this.debug = e.debug;
128
128
  }
129
129
  }, {
130
130
  key: "setDebug",
@@ -172,7 +172,7 @@ var Et = {
172
172
  }, this.options));
173
173
  }
174
174
  }]), a;
175
- }(), V = new jt(), z = function() {
175
+ }(), V = new Nt(), z = function() {
176
176
  function a() {
177
177
  H(this, a), this.observers = {};
178
178
  }
@@ -223,15 +223,15 @@ function Y() {
223
223
  });
224
224
  return n.resolve = a, n.reject = t, n;
225
225
  }
226
- function Ie(a) {
226
+ function _e(a) {
227
227
  return a == null ? "" : "" + a;
228
228
  }
229
- function Rt(a, t, n) {
229
+ function At(a, t, n) {
230
230
  a.forEach(function(e) {
231
231
  t[e] && (n[e] = t[e]);
232
232
  });
233
233
  }
234
- function Ae(a, t, n) {
234
+ function Te(a, t, n) {
235
235
  function e(s) {
236
236
  return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
237
237
  }
@@ -248,32 +248,32 @@ function Ae(a, t, n) {
248
248
  k: e(i.shift())
249
249
  };
250
250
  }
251
- function _e(a, t, n) {
252
- var e = Ae(a, t, Object), r = e.obj, i = e.k;
251
+ function Ue(a, t, n) {
252
+ var e = Te(a, t, Object), r = e.obj, i = e.k;
253
253
  r[i] = n;
254
254
  }
255
- function Ct(a, t, n, e) {
256
- var r = Ae(a, t, Object), i = r.obj, o = r.k;
255
+ function Tt(a, t, n, e) {
256
+ var r = Te(a, t, Object), i = r.obj, o = r.k;
257
257
  i[o] = i[o] || [], i[o].push(n);
258
258
  }
259
259
  function fe(a, t) {
260
- var n = Ae(a, t), e = n.obj, r = n.k;
260
+ var n = Te(a, t), e = n.obj, r = n.k;
261
261
  if (e)
262
262
  return e[r];
263
263
  }
264
- function Ue(a, t, n) {
264
+ function Be(a, t, n) {
265
265
  var e = fe(a, n);
266
266
  return e !== void 0 ? e : fe(t, n);
267
267
  }
268
- function ot(a, t, n) {
268
+ function ft(a, t, n) {
269
269
  for (var e in t)
270
- e !== "__proto__" && e !== "constructor" && (e in a ? typeof a[e] == "string" || a[e] instanceof String || typeof t[e] == "string" || t[e] instanceof String ? n && (a[e] = t[e]) : ot(a[e], t[e], n) : a[e] = t[e]);
270
+ e !== "__proto__" && e !== "constructor" && (e in a ? typeof a[e] == "string" || a[e] instanceof String || typeof t[e] == "string" || t[e] instanceof String ? n && (a[e] = t[e]) : ft(a[e], t[e], n) : a[e] = t[e]);
271
271
  return a;
272
272
  }
273
- function Q(a) {
273
+ function G(a) {
274
274
  return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
275
275
  }
276
- var Nt = {
276
+ var Ft = {
277
277
  "&": "&amp;",
278
278
  "<": "&lt;",
279
279
  ">": "&gt;",
@@ -281,19 +281,19 @@ var Nt = {
281
281
  "'": "&#39;",
282
282
  "/": "&#x2F;"
283
283
  };
284
- function At(a) {
284
+ function Dt(a) {
285
285
  return typeof a == "string" ? a.replace(/[&<>"'\/]/g, function(t) {
286
- return Nt[t];
286
+ return Ft[t];
287
287
  }) : a;
288
288
  }
289
- var me = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, Tt = function(a) {
289
+ var me = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, It = function(a) {
290
290
  ve(t, a);
291
291
  function t(n) {
292
292
  var e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
293
293
  ns: ["translation"],
294
294
  defaultNS: "translation"
295
295
  };
296
- return H(this, t), e = ee(this, G(t).call(this)), me && z.call(W(e)), e.data = n || {}, e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e;
296
+ return H(this, t), e = te(this, Q(t).call(this)), me && z.call(W(e)), e.data = n || {}, e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e;
297
297
  }
298
298
  return M(t, [{
299
299
  key: "addNamespaces",
@@ -320,7 +320,7 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
320
320
  }, u = this.options.keySeparator;
321
321
  u === void 0 && (u = ".");
322
322
  var f = [e, r];
323
- i && (f = f.concat(u ? i.split(u) : i)), e.indexOf(".") > -1 && (f = e.split("."), o = r, r = f[1]), this.addNamespaces(r), _e(this.data, f, o), s.silent || this.emit("added", e, r, i, o);
323
+ i && (f = f.concat(u ? i.split(u) : i)), e.indexOf(".") > -1 && (f = e.split("."), o = r, r = f[1]), this.addNamespaces(r), Ue(this.data, f, o), s.silent || this.emit("added", e, r, i, o);
324
324
  }
325
325
  }, {
326
326
  key: "addResources",
@@ -342,7 +342,7 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
342
342
  }, f = [e, r];
343
343
  e.indexOf(".") > -1 && (f = e.split("."), o = i, i = r, r = f[1]), this.addNamespaces(r);
344
344
  var c = fe(this.data, f) || {};
345
- o ? ot(c, i, s) : c = D({}, c, i), _e(this.data, f, c), u.silent || this.emit("added", e, r, i);
345
+ o ? ft(c, i, s) : c = D({}, c, i), Ue(this.data, f, c), u.silent || this.emit("added", e, r, i);
346
346
  }
347
347
  }, {
348
348
  key: "removeResourceBundle",
@@ -370,7 +370,7 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
370
370
  return this.data;
371
371
  }
372
372
  }]), t;
373
- }(z), st = {
373
+ }(z), lt = {
374
374
  processors: {},
375
375
  addPostProcessor: function(t) {
376
376
  this.processors[t.name] = t;
@@ -381,11 +381,11 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
381
381
  o.processors[s] && (n = o.processors[s].process(n, e, r, i));
382
382
  }), n;
383
383
  }
384
- }, Be = {}, He = function(a) {
384
+ }, He = {}, Me = function(a) {
385
385
  ve(t, a);
386
386
  function t(n) {
387
387
  var e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
388
- return H(this, t), e = ee(this, G(t).call(this)), me && z.call(W(e)), Rt(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, W(e)), e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e.logger = V.create("translator"), e;
388
+ return H(this, t), e = te(this, Q(t).call(this)), me && z.call(W(e)), At(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, W(e)), e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e.logger = V.create("translator"), e;
389
389
  }
390
390
  return M(t, [{
391
391
  key: "changeLanguage",
@@ -435,12 +435,12 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
435
435
  }
436
436
  return f;
437
437
  }
438
- var y = this.resolve(e, r), g = y && y.res, b = y && y.usedKey || f, S = y && y.exactUsedKey || f, O = Object.prototype.toString.apply(g), A = ["[object Number]", "[object Function]", "[object RegExp]"], k = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, j = typeof g != "string" && typeof g != "boolean" && typeof g != "number";
439
- if (w && g && j && A.indexOf(O) < 0 && !(typeof k == "string" && O === "[object Array]")) {
438
+ var y = this.resolve(e, r), g = y && y.res, b = y && y.usedKey || f, S = y && y.exactUsedKey || f, x = Object.prototype.toString.apply(g), A = ["[object Number]", "[object Function]", "[object RegExp]"], k = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, j = typeof g != "string" && typeof g != "boolean" && typeof g != "number";
439
+ if (w && g && j && A.indexOf(x) < 0 && !(typeof k == "string" && x === "[object Array]")) {
440
440
  if (!r.returnObjects && !this.options.returnObjects)
441
441
  return this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, g, r) : "key '".concat(f, " (").concat(this.language, ")' returned an object instead of string.");
442
442
  if (s) {
443
- var R = O === "[object Array]", C = R ? [] : {}, L = R ? S : b;
443
+ var R = x === "[object Array]", C = R ? [] : {}, L = R ? S : b;
444
444
  for (var E in g)
445
445
  if (Object.prototype.hasOwnProperty.call(g, E)) {
446
446
  var K = "".concat(L).concat(s).concat(E);
@@ -451,12 +451,12 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
451
451
  }
452
452
  g = C;
453
453
  }
454
- } else if (w && typeof k == "string" && O === "[object Array]")
454
+ } else if (w && typeof k == "string" && x === "[object Array]")
455
455
  g = g.join(k), g && (g = this.extendTranslation(g, e, r, i));
456
456
  else {
457
- var U = !1, l = !1, h = r.count !== void 0 && typeof r.count != "string", x = t.hasDefaultValue(r), T = h ? this.pluralResolver.getSuffix(v, r.count) : "", N = r["defaultValue".concat(T)] || r.defaultValue;
458
- !this.isValidLookup(g) && x && (U = !0, g = N), this.isValidLookup(g) || (l = !0, g = f);
459
- var P = x && N !== g && this.options.updateMissing;
457
+ var U = !1, l = !1, h = r.count !== void 0 && typeof r.count != "string", O = t.hasDefaultValue(r), T = h ? this.pluralResolver.getSuffix(v, r.count) : "", N = r["defaultValue".concat(T)] || r.defaultValue;
458
+ !this.isValidLookup(g) && O && (U = !0, g = N), this.isValidLookup(g) || (l = !0, g = f);
459
+ var P = O && N !== g && this.options.updateMissing;
460
460
  if (l || U || P) {
461
461
  if (this.logger.log(P ? "updateKey" : "missingKey", v, p, f, P ? N : g), s) {
462
462
  var q = this.resolve(f, D({}, r, {
@@ -469,14 +469,14 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
469
469
  for (var X = 0; X < B.length; X++)
470
470
  _.push(B[X]);
471
471
  else this.options.saveMissingTo === "all" ? _ = this.languageUtils.toResolveHierarchy(r.lng || this.language) : _.push(r.lng || this.language);
472
- var Te = function(J, be, Fe) {
473
- o.options.missingKeyHandler ? o.options.missingKeyHandler(J, p, be, P ? Fe : g, P, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(J, p, be, P ? Fe : g, P, r), o.emit("missingKey", J, p, be, g);
472
+ var Fe = function(J, be, De) {
473
+ o.options.missingKeyHandler ? o.options.missingKeyHandler(J, p, be, P ? De : g, P, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(J, p, be, P ? De : g, P, r), o.emit("missingKey", J, p, be, g);
474
474
  };
475
475
  this.options.saveMissing && (this.options.saveMissingPlurals && h ? _.forEach(function(ye) {
476
476
  o.pluralResolver.getSuffixes(ye).forEach(function(J) {
477
- Te([ye], f + J, r["defaultValue".concat(J)] || N);
477
+ Fe([ye], f + J, r["defaultValue".concat(J)] || N);
478
478
  });
479
- }) : Te(_, f, N));
479
+ }) : Fe(_, f, N));
480
480
  }
481
481
  g = this.extendTranslation(g, e, r, y, i), l && g === f && this.options.appendNamespaceToMissingKey && (g = "".concat(p, ":").concat(f)), l && this.options.parseMissingKeyHandler && (g = this.options.parseMissingKeyHandler(g));
482
482
  }
@@ -505,13 +505,13 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
505
505
  c < d && (i.nest = !1);
506
506
  }
507
507
  i.nest !== !1 && (e = this.interpolator.nest(e, function() {
508
- for (var b = arguments.length, S = new Array(b), O = 0; O < b; O++)
509
- S[O] = arguments[O];
508
+ for (var b = arguments.length, S = new Array(b), x = 0; x < b; x++)
509
+ S[x] = arguments[x];
510
510
  return s && s[0] === S[0] && !i.context ? (u.logger.warn("It seems you are nesting recursively key: ".concat(S[0], " in key: ").concat(r[0])), null) : u.translate.apply(u, S.concat([r]));
511
511
  }, i)), i.interpolation && this.interpolator.reset();
512
512
  }
513
513
  var y = i.postProcess || this.options.postProcess, g = typeof y == "string" ? [y] : y;
514
- return e != null && g && g.length && i.applyPostProcessor !== !1 && (e = st.handle(g, e, r, this.options && this.options.postProcessPassResolved ? D({
514
+ return e != null && g && g.length && i.applyPostProcessor !== !1 && (e = lt.handle(g, e, r, this.options && this.options.postProcessPassResolved ? D({
515
515
  i18nResolved: o
516
516
  }, i) : i, this)), e;
517
517
  }
@@ -527,18 +527,18 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
527
527
  r.options.fallbackNS && (d = d.concat(r.options.fallbackNS));
528
528
  var y = i.count !== void 0 && typeof i.count != "string", g = i.context !== void 0 && typeof i.context == "string" && i.context !== "", b = i.lngs ? i.lngs : r.languageUtils.toResolveHierarchy(i.lng || r.language, i.fallbackLng);
529
529
  d.forEach(function(S) {
530
- r.isValidLookup(o) || (c = S, !Be["".concat(b[0], "-").concat(S)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(c) && (Be["".concat(b[0], "-").concat(S)] = !0, r.logger.warn('key "'.concat(s, '" for languages "').concat(b.join(", "), `" won't get resolved as namespace "`).concat(c, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach(function(O) {
530
+ r.isValidLookup(o) || (c = S, !He["".concat(b[0], "-").concat(S)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(c) && (He["".concat(b[0], "-").concat(S)] = !0, r.logger.warn('key "'.concat(s, '" for languages "').concat(b.join(", "), `" won't get resolved as namespace "`).concat(c, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach(function(x) {
531
531
  if (!r.isValidLookup(o)) {
532
- f = O;
532
+ f = x;
533
533
  var A = m, k = [A];
534
534
  if (r.i18nFormat && r.i18nFormat.addLookupKeys)
535
- r.i18nFormat.addLookupKeys(k, m, O, S, i);
535
+ r.i18nFormat.addLookupKeys(k, m, x, S, i);
536
536
  else {
537
537
  var w;
538
- y && (w = r.pluralResolver.getSuffix(O, i.count)), y && g && k.push(A + w), g && k.push(A += "".concat(r.options.contextSeparator).concat(i.context)), y && k.push(A += w);
538
+ y && (w = r.pluralResolver.getSuffix(x, i.count)), y && g && k.push(A + w), g && k.push(A += "".concat(r.options.contextSeparator).concat(i.context)), y && k.push(A += w);
539
539
  }
540
540
  for (var j; j = k.pop(); )
541
- r.isValidLookup(o) || (u = j, o = r.getResource(O, S, j, i));
541
+ r.isValidLookup(o) || (u = j, o = r.getResource(x, S, j, i));
542
542
  }
543
543
  }));
544
544
  });
@@ -576,7 +576,7 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
576
576
  function we(a) {
577
577
  return a.charAt(0).toUpperCase() + a.slice(1);
578
578
  }
579
- var Ft = function() {
579
+ var _t = function() {
580
580
  function a(t) {
581
581
  H(this, a), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = V.create("languageUtils");
582
582
  }
@@ -656,7 +656,7 @@ var Ft = function() {
656
656
  }), o;
657
657
  }
658
658
  }]), a;
659
- }(), Dt = [{
659
+ }(), Ut = [{
660
660
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
661
661
  nr: [1, 2],
662
662
  fc: 1
@@ -748,7 +748,7 @@ var Ft = function() {
748
748
  lngs: ["he", "iw"],
749
749
  nr: [1, 2, 20, 21],
750
750
  fc: 22
751
- }], It = {
751
+ }], Bt = {
752
752
  1: function(t) {
753
753
  return +(t > 1);
754
754
  },
@@ -816,21 +816,21 @@ var Ft = function() {
816
816
  return t == 1 ? 0 : t == 2 ? 1 : (t < 0 || t > 10) && t % 10 == 0 ? 2 : 3;
817
817
  }
818
818
  };
819
- function _t() {
819
+ function Ht() {
820
820
  var a = {};
821
- return Dt.forEach(function(t) {
821
+ return Ut.forEach(function(t) {
822
822
  t.lngs.forEach(function(n) {
823
823
  a[n] = {
824
824
  numbers: t.nr,
825
- plurals: It[t.fc]
825
+ plurals: Bt[t.fc]
826
826
  };
827
827
  });
828
828
  }), a;
829
829
  }
830
- var Ut = function() {
830
+ var Mt = function() {
831
831
  function a(t) {
832
832
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
833
- H(this, a), this.languageUtils = t, this.options = n, this.logger = V.create("pluralResolver"), this.rules = _t();
833
+ H(this, a), this.languageUtils = t, this.options = n, this.logger = V.create("pluralResolver"), this.rules = Ht();
834
834
  }
835
835
  return M(a, [{
836
836
  key: "addRule",
@@ -878,7 +878,7 @@ var Ut = function() {
878
878
  return this.logger.warn("no plural rule found for: ".concat(n)), "";
879
879
  }
880
880
  }]), a;
881
- }(), Bt = function() {
881
+ }(), qt = function() {
882
882
  function a() {
883
883
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
884
884
  H(this, a), this.logger = V.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(n) {
@@ -893,7 +893,7 @@ var Ut = function() {
893
893
  escapeValue: !0
894
894
  });
895
895
  var e = n.interpolation;
896
- this.escape = e.escape !== void 0 ? e.escape : At, this.escapeValue = e.escapeValue !== void 0 ? e.escapeValue : !0, this.useRawValueToEscape = e.useRawValueToEscape !== void 0 ? e.useRawValueToEscape : !1, this.prefix = e.prefix ? Q(e.prefix) : e.prefixEscaped || "{{", this.suffix = e.suffix ? Q(e.suffix) : e.suffixEscaped || "}}", this.formatSeparator = e.formatSeparator ? e.formatSeparator : e.formatSeparator || ",", this.unescapePrefix = e.unescapeSuffix ? "" : e.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : e.unescapeSuffix || "", this.nestingPrefix = e.nestingPrefix ? Q(e.nestingPrefix) : e.nestingPrefixEscaped || Q("$t("), this.nestingSuffix = e.nestingSuffix ? Q(e.nestingSuffix) : e.nestingSuffixEscaped || Q(")"), this.nestingOptionsSeparator = e.nestingOptionsSeparator ? e.nestingOptionsSeparator : e.nestingOptionsSeparator || ",", this.maxReplaces = e.maxReplaces ? e.maxReplaces : 1e3, this.alwaysFormat = e.alwaysFormat !== void 0 ? e.alwaysFormat : !1, this.resetRegExp();
896
+ this.escape = e.escape !== void 0 ? e.escape : Dt, this.escapeValue = e.escapeValue !== void 0 ? e.escapeValue : !0, this.useRawValueToEscape = e.useRawValueToEscape !== void 0 ? e.useRawValueToEscape : !1, this.prefix = e.prefix ? G(e.prefix) : e.prefixEscaped || "{{", this.suffix = e.suffix ? G(e.suffix) : e.suffixEscaped || "}}", this.formatSeparator = e.formatSeparator ? e.formatSeparator : e.formatSeparator || ",", this.unescapePrefix = e.unescapeSuffix ? "" : e.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : e.unescapeSuffix || "", this.nestingPrefix = e.nestingPrefix ? G(e.nestingPrefix) : e.nestingPrefixEscaped || G("$t("), this.nestingSuffix = e.nestingSuffix ? G(e.nestingSuffix) : e.nestingSuffixEscaped || G(")"), this.nestingOptionsSeparator = e.nestingOptionsSeparator ? e.nestingOptionsSeparator : e.nestingOptionsSeparator || ",", this.maxReplaces = e.maxReplaces ? e.maxReplaces : 1e3, this.alwaysFormat = e.alwaysFormat !== void 0 ? e.alwaysFormat : !1, this.resetRegExp();
897
897
  }
898
898
  }, {
899
899
  key: "reset",
@@ -919,11 +919,11 @@ var Ut = function() {
919
919
  }
920
920
  var v = function(b) {
921
921
  if (b.indexOf(o.formatSeparator) < 0) {
922
- var S = Ue(e, c, b);
922
+ var S = Be(e, c, b);
923
923
  return o.alwaysFormat ? o.format(S, void 0, r) : S;
924
924
  }
925
- var O = b.split(o.formatSeparator), A = O.shift().trim(), k = O.join(o.formatSeparator).trim();
926
- return o.format(Ue(e, c, A), k, r, i);
925
+ var x = b.split(o.formatSeparator), A = x.shift().trim(), k = x.join(o.formatSeparator).trim();
926
+ return o.format(Be(e, c, A), k, r, i);
927
927
  };
928
928
  this.resetRegExp();
929
929
  var m = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, d = i && i.interpolation && i.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, y = [{
@@ -948,7 +948,7 @@ var Ut = function() {
948
948
  continue;
949
949
  } else
950
950
  o.logger.warn("missed to pass in variable ".concat(s[1], " for interpolating ").concat(n)), u = "";
951
- else typeof u != "string" && !o.useRawValueToEscape && (u = Ie(u));
951
+ else typeof u != "string" && !o.useRawValueToEscape && (u = _e(u));
952
952
  if (n = n.replace(s[0], g.safeValue(u)), g.regex.lastIndex = 0, f++, f >= o.maxReplaces)
953
953
  break;
954
954
  }
@@ -980,7 +980,7 @@ var Ut = function() {
980
980
  o[1] = v.shift(), c = v, p = !0;
981
981
  }
982
982
  if (s = e(f.call(this, o[1].trim(), u), u), s && o[0] === n && typeof s != "string") return s;
983
- typeof s != "string" && (s = Ie(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(n)), s = ""), p && (s = c.reduce(function(m, d) {
983
+ typeof s != "string" && (s = _e(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(n)), s = ""), p && (s = c.reduce(function(m, d) {
984
984
  return r.format(m, d, i.lng, i);
985
985
  }, s.trim())), n = n.replace(o[0], s), this.regexp.lastIndex = 0;
986
986
  }
@@ -988,15 +988,15 @@ var Ut = function() {
988
988
  }
989
989
  }]), a;
990
990
  }();
991
- function Ht(a, t) {
991
+ function Vt(a, t) {
992
992
  for (var n = a.indexOf(t); n !== -1; )
993
993
  a.splice(n, 1), n = a.indexOf(t);
994
994
  }
995
- var Mt = function(a) {
995
+ var $t = function(a) {
996
996
  ve(t, a);
997
997
  function t(n, e, r) {
998
998
  var i, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
999
- return H(this, t), i = ee(this, G(t).call(this)), me && z.call(W(i)), i.backend = n, i.store = e, i.services = r, i.languageUtils = r.languageUtils, i.options = o, i.logger = V.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, o.backend, o), i;
999
+ return H(this, t), i = te(this, Q(t).call(this)), me && z.call(W(i)), i.backend = n, i.store = e, i.services = r, i.languageUtils = r.languageUtils, i.options = o, i.logger = V.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, o.backend, o), i;
1000
1000
  }
1001
1001
  return M(t, [{
1002
1002
  key: "queueLoad",
@@ -1027,7 +1027,7 @@ var Mt = function(a) {
1027
1027
  r && this.emit("failedLoading", s, u, r), i && this.store.addResourceBundle(s, u, i), this.state[e] = r ? -1 : 2;
1028
1028
  var f = {};
1029
1029
  this.queue.forEach(function(c) {
1030
- Ct(c.loaded, [s], u), Ht(c.pending, e), r && c.errors.push(r), c.pending.length === 0 && !c.done && (Object.keys(c.loaded).forEach(function(p) {
1030
+ Tt(c.loaded, [s], u), Vt(c.pending, e), r && c.errors.push(r), c.pending.length === 0 && !c.done && (Object.keys(c.loaded).forEach(function(p) {
1031
1031
  f[p] || (f[p] = []), c.loaded[p].length && c.loaded[p].forEach(function(v) {
1032
1032
  f[p].indexOf(v) < 0 && f[p].push(v);
1033
1033
  });
@@ -1098,7 +1098,7 @@ var Mt = function(a) {
1098
1098
  }
1099
1099
  }]), t;
1100
1100
  }(z);
1101
- function qt() {
1101
+ function Kt() {
1102
1102
  return {
1103
1103
  debug: !1,
1104
1104
  initImmediate: !0,
@@ -1161,20 +1161,20 @@ function qt() {
1161
1161
  }
1162
1162
  };
1163
1163
  }
1164
- function Me(a) {
1164
+ function qe(a) {
1165
1165
  return typeof a.ns == "string" && (a.ns = [a.ns]), typeof a.fallbackLng == "string" && (a.fallbackLng = [a.fallbackLng]), typeof a.fallbackNS == "string" && (a.fallbackNS = [a.fallbackNS]), a.whitelist && (a.whitelist && a.whitelist.indexOf("cimode") < 0 && (a.whitelist = a.whitelist.concat(["cimode"])), a.supportedLngs = a.whitelist), a.nonExplicitWhitelist && (a.nonExplicitSupportedLngs = a.nonExplicitWhitelist), a.supportedLngs && a.supportedLngs.indexOf("cimode") < 0 && (a.supportedLngs = a.supportedLngs.concat(["cimode"])), a;
1166
1166
  }
1167
- function re() {
1167
+ function ae() {
1168
1168
  }
1169
- var Vt = function(a) {
1169
+ var zt = function(a) {
1170
1170
  ve(t, a);
1171
1171
  function t() {
1172
1172
  var n, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
1173
- if (H(this, t), n = ee(this, G(t).call(this)), me && z.call(W(n)), n.options = Me(e), n.services = {}, n.logger = V, n.modules = {
1173
+ if (H(this, t), n = te(this, Q(t).call(this)), me && z.call(W(n)), n.options = qe(e), n.services = {}, n.logger = V, n.modules = {
1174
1174
  external: []
1175
1175
  }, r && !n.isInitialized && !e.isClone) {
1176
1176
  if (!n.options.initImmediate)
1177
- return n.init(e, r), ee(n, W(n));
1177
+ return n.init(e, r), te(n, W(n));
1178
1178
  setTimeout(function() {
1179
1179
  n.init(e, r);
1180
1180
  }, 0);
@@ -1185,26 +1185,26 @@ var Vt = function(a) {
1185
1185
  key: "init",
1186
1186
  value: function() {
1187
1187
  var e = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
1188
- typeof r == "function" && (i = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = D({}, qt(), this.options, Me(r)), this.format = this.options.interpolation.format, i || (i = re);
1188
+ typeof r == "function" && (i = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = D({}, Kt(), this.options, qe(r)), this.format = this.options.interpolation.format, i || (i = ae);
1189
1189
  function o(d) {
1190
1190
  return d ? typeof d == "function" ? new d() : d : null;
1191
1191
  }
1192
1192
  if (!this.options.isClone) {
1193
1193
  this.modules.logger ? V.init(o(this.modules.logger), this.options) : V.init(null, this.options);
1194
- var s = new Ft(this.options);
1195
- this.store = new Tt(this.options.resources, this.options);
1194
+ var s = new _t(this.options);
1195
+ this.store = new It(this.options.resources, this.options);
1196
1196
  var u = this.services;
1197
- u.logger = V, u.resourceStore = this.store, u.languageUtils = s, u.pluralResolver = new Ut(s, {
1197
+ u.logger = V, u.resourceStore = this.store, u.languageUtils = s, u.pluralResolver = new Mt(s, {
1198
1198
  prepend: this.options.pluralSeparator,
1199
1199
  compatibilityJSON: this.options.compatibilityJSON,
1200
1200
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1201
- }), u.interpolator = new Bt(this.options), u.utils = {
1201
+ }), u.interpolator = new qt(this.options), u.utils = {
1202
1202
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1203
- }, u.backendConnector = new Mt(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(d) {
1203
+ }, u.backendConnector = new $t(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(d) {
1204
1204
  for (var y = arguments.length, g = new Array(y > 1 ? y - 1 : 0), b = 1; b < y; b++)
1205
1205
  g[b - 1] = arguments[b];
1206
1206
  e.emit.apply(e, [d].concat(g));
1207
- }), this.modules.languageDetector && (u.languageDetector = o(this.modules.languageDetector), u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = o(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new He(this.services, this.options), this.translator.on("*", function(d) {
1207
+ }), this.modules.languageDetector && (u.languageDetector = o(this.modules.languageDetector), u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = o(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new Me(this.services, this.options), this.translator.on("*", function(d) {
1208
1208
  for (var y = arguments.length, g = new Array(y > 1 ? y - 1 : 0), b = 1; b < y; b++)
1209
1209
  g[b - 1] = arguments[b];
1210
1210
  e.emit.apply(e, [d].concat(g));
@@ -1243,7 +1243,7 @@ var Vt = function(a) {
1243
1243
  }, {
1244
1244
  key: "loadResources",
1245
1245
  value: function(e) {
1246
- var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : re, o = i, s = typeof e == "string" ? e : this.language;
1246
+ var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae, o = i, s = typeof e == "string" ? e : this.language;
1247
1247
  if (typeof e == "function" && (o = e), !this.options.resources || this.options.partialBundledLanguages) {
1248
1248
  if (s && s.toLowerCase() === "cimode") return o();
1249
1249
  var u = [], f = function(v) {
@@ -1272,7 +1272,7 @@ var Vt = function(a) {
1272
1272
  key: "reloadResources",
1273
1273
  value: function(e, r, i) {
1274
1274
  var o = Y();
1275
- return e || (e = this.languages), r || (r = this.options.ns), i || (i = re), this.services.backendConnector.reload(e, r, function(s) {
1275
+ return e || (e = this.languages), r || (r = this.options.ns), i || (i = ae), this.services.backendConnector.reload(e, r, function(s) {
1276
1276
  o.resolve(), i(s);
1277
1277
  }), o;
1278
1278
  }
@@ -1281,7 +1281,7 @@ var Vt = function(a) {
1281
1281
  value: function(e) {
1282
1282
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1283
1283
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1284
- 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" && st.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
1284
+ 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" && lt.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
1285
1285
  }
1286
1286
  }, {
1287
1287
  key: "changeLanguage",
@@ -1394,14 +1394,14 @@ var Vt = function(a) {
1394
1394
  }, {
1395
1395
  key: "cloneInstance",
1396
1396
  value: function() {
1397
- var e = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : re, o = D({}, this.options, r, {
1397
+ var e = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae, o = D({}, this.options, r, {
1398
1398
  isClone: !0
1399
1399
  }), s = new t(o), u = ["store", "services", "language"];
1400
1400
  return u.forEach(function(f) {
1401
1401
  s[f] = e[f];
1402
1402
  }), s.services = D({}, this.services), s.services.utils = {
1403
1403
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
1404
- }, s.translator = new He(s.services, s.options), s.translator.on("*", function(f) {
1404
+ }, s.translator = new Me(s.services, s.options), s.translator.on("*", function(f) {
1405
1405
  for (var c = arguments.length, p = new Array(c > 1 ? c - 1 : 0), v = 1; v < c; v++)
1406
1406
  p[v - 1] = arguments[v];
1407
1407
  s.emit.apply(s, [f].concat(p));
@@ -1410,8 +1410,8 @@ var Vt = function(a) {
1410
1410
  }, s;
1411
1411
  }
1412
1412
  }]), t;
1413
- }(z), $t = new Vt();
1414
- function Kt(a, t) {
1413
+ }(z), Wt = new zt();
1414
+ function Xt(a, t) {
1415
1415
  if (a == null) return {};
1416
1416
  var n = {};
1417
1417
  for (var e in a) if ({}.hasOwnProperty.call(a, e)) {
@@ -1420,51 +1420,55 @@ function Kt(a, t) {
1420
1420
  }
1421
1421
  return n;
1422
1422
  }
1423
- function ut(a, t) {
1423
+ function ct(a, t) {
1424
1424
  if (a == null) return {};
1425
- var n, e, r = Kt(a, t);
1425
+ var n, e, r = Xt(a, t);
1426
1426
  if (Object.getOwnPropertySymbols) {
1427
1427
  var i = Object.getOwnPropertySymbols(a);
1428
1428
  for (e = 0; e < i.length; e++) n = i[e], t.includes(n) || {}.propertyIsEnumerable.call(a, n) && (r[n] = a[n]);
1429
1429
  }
1430
1430
  return r;
1431
1431
  }
1432
- var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1433
- function ft(a) {
1432
+ var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1433
+ function pt(a) {
1434
1434
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
1435
1435
  }
1436
- var zt = {
1437
- area: !0,
1438
- base: !0,
1439
- br: !0,
1440
- col: !0,
1441
- embed: !0,
1442
- hr: !0,
1443
- img: !0,
1444
- input: !0,
1445
- link: !0,
1446
- meta: !0,
1447
- param: !0,
1448
- source: !0,
1449
- track: !0,
1450
- wbr: !0
1451
- };
1452
- const Wt = /* @__PURE__ */ ft(zt);
1453
- var Xt = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
1454
- function qe(a) {
1436
+ var xe, Ve;
1437
+ function Jt() {
1438
+ return Ve || (Ve = 1, xe = {
1439
+ area: !0,
1440
+ base: !0,
1441
+ br: !0,
1442
+ col: !0,
1443
+ embed: !0,
1444
+ hr: !0,
1445
+ img: !0,
1446
+ input: !0,
1447
+ link: !0,
1448
+ meta: !0,
1449
+ param: !0,
1450
+ source: !0,
1451
+ track: !0,
1452
+ wbr: !0
1453
+ }), xe;
1454
+ }
1455
+ var Gt = Jt();
1456
+ const Qt = /* @__PURE__ */ pt(Gt);
1457
+ var Yt = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
1458
+ function $e(a) {
1455
1459
  var t = { type: "tag", name: "", voidElement: !1, attrs: {}, children: [] }, n = a.match(/<\/?([^\s]+?)[/\s>]/);
1456
- if (n && (t.name = n[1], (Wt[n[1]] || a.charAt(a.length - 2) === "/") && (t.voidElement = !0), t.name.startsWith("!--"))) {
1460
+ if (n && (t.name = n[1], (Qt[n[1]] || a.charAt(a.length - 2) === "/") && (t.voidElement = !0), t.name.startsWith("!--"))) {
1457
1461
  var e = a.indexOf("-->");
1458
1462
  return { type: "comment", comment: e !== -1 ? a.slice(4, e) : "" };
1459
1463
  }
1460
- for (var r = new RegExp(Xt), i = null; (i = r.exec(a)) !== null; ) if (i[0].trim()) if (i[1]) {
1464
+ for (var r = new RegExp(Yt), i = null; (i = r.exec(a)) !== null; ) if (i[0].trim()) if (i[1]) {
1461
1465
  var o = i[1].trim(), s = [o, ""];
1462
1466
  o.indexOf("=") > -1 && (s = o.split("=")), t.attrs[s[0]] = s[1], r.lastIndex--;
1463
1467
  } else i[2] && (t.attrs[i[2]] = i[3].trim().substring(1, i[3].length - 1));
1464
1468
  return t;
1465
1469
  }
1466
- var Jt = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, Qt = /^\s*$/, Gt = /* @__PURE__ */ Object.create(null);
1467
- function lt(a, t) {
1470
+ var Zt = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, en = /^\s*$/, tn = /* @__PURE__ */ Object.create(null);
1471
+ function dt(a, t) {
1468
1472
  switch (t.type) {
1469
1473
  case "text":
1470
1474
  return a + t.content;
@@ -1473,39 +1477,39 @@ function lt(a, t) {
1473
1477
  var e = [];
1474
1478
  for (var r in n) e.push(r + '="' + n[r] + '"');
1475
1479
  return e.length ? " " + e.join(" ") : "";
1476
- }(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? a : a + t.children.reduce(lt, "") + "</" + t.name + ">";
1480
+ }(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? a : a + t.children.reduce(dt, "") + "</" + t.name + ">";
1477
1481
  case "comment":
1478
1482
  return a + "<!--" + t.comment + "-->";
1479
1483
  }
1480
1484
  }
1481
- var Yt = { parse: function(a, t) {
1482
- t || (t = {}), t.components || (t.components = Gt);
1485
+ var nn = { parse: function(a, t) {
1486
+ t || (t = {}), t.components || (t.components = tn);
1483
1487
  var n, e = [], r = [], i = -1, o = !1;
1484
1488
  if (a.indexOf("<") !== 0) {
1485
1489
  var s = a.indexOf("<");
1486
1490
  e.push({ type: "text", content: s === -1 ? a : a.substring(0, s) });
1487
1491
  }
1488
- return a.replace(Jt, function(u, f) {
1492
+ return a.replace(Zt, function(u, f) {
1489
1493
  if (o) {
1490
1494
  if (u !== "</" + n.name + ">") return;
1491
1495
  o = !1;
1492
1496
  }
1493
1497
  var c, p = u.charAt(1) !== "/", v = u.startsWith("<!--"), m = f + u.length, d = a.charAt(m);
1494
1498
  if (v) {
1495
- var y = qe(u);
1499
+ var y = $e(u);
1496
1500
  return i < 0 ? (e.push(y), e) : ((c = r[i]).children.push(y), e);
1497
1501
  }
1498
- if (p && (i++, (n = qe(u)).type === "tag" && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !d || d === "<" || n.children.push({ type: "text", content: a.slice(m, a.indexOf("<", m)) }), i === 0 && e.push(n), (c = r[i - 1]) && c.children.push(n), r[i] = n), (!p || n.voidElement) && (i > -1 && (n.voidElement || n.name === u.slice(2, -1)) && (i--, n = i === -1 ? e : r[i]), !o && d !== "<" && d)) {
1502
+ if (p && (i++, (n = $e(u)).type === "tag" && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !d || d === "<" || n.children.push({ type: "text", content: a.slice(m, a.indexOf("<", m)) }), i === 0 && e.push(n), (c = r[i - 1]) && c.children.push(n), r[i] = n), (!p || n.voidElement) && (i > -1 && (n.voidElement || n.name === u.slice(2, -1)) && (i--, n = i === -1 ? e : r[i]), !o && d !== "<" && d)) {
1499
1503
  c = i === -1 ? e : r[i].children;
1500
1504
  var g = a.indexOf("<", m), b = a.slice(m, g === -1 ? void 0 : g);
1501
- Qt.test(b) && (b = " "), (g > -1 && i + c.length >= 0 || b !== " ") && c.push({ type: "text", content: b });
1505
+ en.test(b) && (b = " "), (g > -1 && i + c.length >= 0 || b !== " ") && c.push({ type: "text", content: b });
1502
1506
  }
1503
1507
  }), e;
1504
1508
  }, stringify: function(a) {
1505
1509
  return a.reduce(function(t, n) {
1506
- return t + lt("", n);
1510
+ return t + dt("", n);
1507
1511
  }, "");
1508
- } }, Zt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, en = {
1512
+ } }, rn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, an = {
1509
1513
  "&amp;": "&",
1510
1514
  "&#38;": "&",
1511
1515
  "&lt;": "<",
@@ -1526,12 +1530,12 @@ var Yt = { parse: function(a, t) {
1526
1530
  "&#8230;": "…",
1527
1531
  "&#x2F;": "/",
1528
1532
  "&#47;": "/"
1529
- }, tn = function(t) {
1530
- return en[t];
1531
- }, nn = function(t) {
1532
- return t.replace(Zt, tn);
1533
+ }, on = function(t) {
1534
+ return an[t];
1535
+ }, sn = function(t) {
1536
+ return t.replace(rn, on);
1533
1537
  };
1534
- function Ve(a, t) {
1538
+ function Ke(a, t) {
1535
1539
  var n = Object.keys(a);
1536
1540
  if (Object.getOwnPropertySymbols) {
1537
1541
  var e = Object.getOwnPropertySymbols(a);
@@ -1541,18 +1545,18 @@ function Ve(a, t) {
1541
1545
  }
1542
1546
  return n;
1543
1547
  }
1544
- function $e(a) {
1548
+ function ze(a) {
1545
1549
  for (var t = 1; t < arguments.length; t++) {
1546
1550
  var n = arguments[t] != null ? arguments[t] : {};
1547
- t % 2 ? Ve(Object(n), !0).forEach(function(e) {
1551
+ t % 2 ? Ke(Object(n), !0).forEach(function(e) {
1548
1552
  ge(a, e, n[e]);
1549
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(e) {
1553
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : Ke(Object(n)).forEach(function(e) {
1550
1554
  Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
1551
1555
  });
1552
1556
  }
1553
1557
  return a;
1554
1558
  }
1555
- var Ee = {
1559
+ var Re = {
1556
1560
  bindI18n: "languageChanged",
1557
1561
  bindI18nStore: "",
1558
1562
  transEmptyNodeValue: "",
@@ -1560,16 +1564,16 @@ var Ee = {
1560
1564
  transWrapTextNodes: "",
1561
1565
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
1562
1566
  useSuspense: !0,
1563
- unescape: nn
1564
- }, ct, pt = xt();
1565
- function rn() {
1567
+ unescape: sn
1568
+ }, ht, gt = Lt();
1569
+ function un() {
1566
1570
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1567
- Ee = $e($e({}, Ee), a);
1571
+ Re = ze(ze({}, Re), a);
1568
1572
  }
1569
- function dt() {
1570
- return Ee;
1573
+ function vt() {
1574
+ return Re;
1571
1575
  }
1572
- var an = function() {
1576
+ var fn = function() {
1573
1577
  function a() {
1574
1578
  H(this, a), this.usedNamespaces = {};
1575
1579
  }
@@ -1588,16 +1592,16 @@ var an = function() {
1588
1592
  }
1589
1593
  }]), a;
1590
1594
  }();
1591
- function on(a) {
1592
- ct = a;
1595
+ function ln(a) {
1596
+ ht = a;
1593
1597
  }
1594
- function ht() {
1595
- return ct;
1598
+ function mt() {
1599
+ return ht;
1596
1600
  }
1597
- var sn = {
1601
+ var cn = {
1598
1602
  type: "3rdParty",
1599
1603
  init: function(t) {
1600
- rn(t.options.react), on(t);
1604
+ un(t.options.react), ln(t);
1601
1605
  }
1602
1606
  };
1603
1607
  function se() {
@@ -1607,13 +1611,13 @@ function se() {
1607
1611
  typeof n[0] == "string" && (n[0] = "react-i18next:: ".concat(n[0])), (a = console).warn.apply(a, n);
1608
1612
  }
1609
1613
  }
1610
- var Ke = {};
1614
+ var We = {};
1611
1615
  function le() {
1612
1616
  for (var a = arguments.length, t = new Array(a), n = 0; n < a; n++)
1613
1617
  t[n] = arguments[n];
1614
- typeof t[0] == "string" && Ke[t[0]] || (typeof t[0] == "string" && (Ke[t[0]] = /* @__PURE__ */ new Date()), se.apply(void 0, t));
1618
+ typeof t[0] == "string" && We[t[0]] || (typeof t[0] == "string" && (We[t[0]] = /* @__PURE__ */ new Date()), se.apply(void 0, t));
1615
1619
  }
1616
- function ze(a, t, n) {
1620
+ function Xe(a, t, n) {
1617
1621
  a.loadNamespaces(t, function() {
1618
1622
  if (a.isInitialized)
1619
1623
  n();
@@ -1627,7 +1631,7 @@ function ze(a, t, n) {
1627
1631
  }
1628
1632
  });
1629
1633
  }
1630
- function un(a, t) {
1634
+ function pn(a, t) {
1631
1635
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, e = t.languages[0], r = t.options ? t.options.fallbackLng : !1, i = t.languages[t.languages.length - 1];
1632
1636
  if (e.toLowerCase() === "cimode") return !0;
1633
1637
  var o = function(u, f) {
@@ -1636,7 +1640,7 @@ function un(a, t) {
1636
1640
  };
1637
1641
  return n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !o(t.isLanguageChangingTo, a) ? !1 : !!(t.hasResourceBundle(e, a) || !t.services.backendConnector.backend || t.options.resources && !t.options.partialBundledLanguages || o(e, a) && (!r || o(i, a)));
1638
1642
  }
1639
- function fn(a, t) {
1643
+ function dn(a, t) {
1640
1644
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1641
1645
  if (!t.languages || !t.languages.length)
1642
1646
  return le("i18n.languages were undefined or empty", t.languages), !0;
@@ -1645,10 +1649,10 @@ function fn(a, t) {
1645
1649
  precheck: function(i, o) {
1646
1650
  if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && i.services.backendConnector.backend && i.isLanguageChangingTo && !o(i.isLanguageChangingTo, a)) return !1;
1647
1651
  }
1648
- }) : un(a, t, n);
1652
+ }) : pn(a, t, n);
1649
1653
  }
1650
- var ln = ["format"], cn = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
1651
- function We(a, t) {
1654
+ var hn = ["format"], gn = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
1655
+ function Je(a, t) {
1652
1656
  var n = Object.keys(a);
1653
1657
  if (Object.getOwnPropertySymbols) {
1654
1658
  var e = Object.getOwnPropertySymbols(a);
@@ -1661,23 +1665,23 @@ function We(a, t) {
1661
1665
  function F(a) {
1662
1666
  for (var t = 1; t < arguments.length; t++) {
1663
1667
  var n = arguments[t] != null ? arguments[t] : {};
1664
- t % 2 ? We(Object(n), !0).forEach(function(e) {
1668
+ t % 2 ? Je(Object(n), !0).forEach(function(e) {
1665
1669
  ge(a, e, n[e]);
1666
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : We(Object(n)).forEach(function(e) {
1670
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : Je(Object(n)).forEach(function(e) {
1667
1671
  Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
1668
1672
  });
1669
1673
  }
1670
1674
  return a;
1671
1675
  }
1672
- function Se(a, t) {
1676
+ function Oe(a, t) {
1673
1677
  if (!a) return !1;
1674
1678
  var n = a.props ? a.props.children : a.children;
1675
1679
  return t ? n.length > 0 : !!n;
1676
1680
  }
1677
- function Oe(a) {
1681
+ function ke(a) {
1678
1682
  return a ? a.props ? a.props.children : a.children : [];
1679
1683
  }
1680
- function pn(a) {
1684
+ function vn(a) {
1681
1685
  return Object.prototype.toString.call(a) !== "[object Array]" ? !1 : a.every(function(t) {
1682
1686
  return ue(t);
1683
1687
  });
@@ -1685,11 +1689,11 @@ function pn(a) {
1685
1689
  function Z(a) {
1686
1690
  return Array.isArray(a) ? a : [a];
1687
1691
  }
1688
- function dn(a, t) {
1692
+ function mn(a, t) {
1689
1693
  var n = F({}, t);
1690
1694
  return n.props = Object.assign(a.props, t.props), n;
1691
1695
  }
1692
- function gt(a, t) {
1696
+ function yt(a, t) {
1693
1697
  if (!a) return "";
1694
1698
  var n = "", e = Z(a), r = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
1695
1699
  return e.forEach(function(i, o) {
@@ -1706,13 +1710,13 @@ function gt(a, t) {
1706
1710
  else if (u && s === 1 && typeof f == "string")
1707
1711
  n += "<".concat(i.type, ">").concat(f, "</").concat(i.type, ">");
1708
1712
  else {
1709
- var c = gt(f, t);
1713
+ var c = yt(f, t);
1710
1714
  n += "<".concat(o, ">").concat(c, "</").concat(o, ">");
1711
1715
  }
1712
1716
  } else if (i === null)
1713
1717
  se("Trans: the passed in value is invalid - seems you passed in a null child.");
1714
1718
  else if (I(i) === "object") {
1715
- var p = i.format, v = ut(i, ln), m = Object.keys(v);
1719
+ var p = i.format, v = ct(i, hn), m = Object.keys(v);
1716
1720
  if (m.length === 1) {
1717
1721
  var d = p ? "".concat(m[0], ", ").concat(p) : m[0];
1718
1722
  n += "{{".concat(d, "}}");
@@ -1722,7 +1726,7 @@ function gt(a, t) {
1722
1726
  se("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", i);
1723
1727
  }), n;
1724
1728
  }
1725
- function hn(a, t, n, e, r, i) {
1729
+ function yn(a, t, n, e, r, i) {
1726
1730
  if (t === "") return [];
1727
1731
  var o = e.transKeepBasicHtmlNodesFor || [], s = t && new RegExp(o.join("|")).test(t);
1728
1732
  if (!a && !s) return [t];
@@ -1730,39 +1734,39 @@ function hn(a, t, n, e, r, i) {
1730
1734
  function f(g) {
1731
1735
  var b = Z(g);
1732
1736
  b.forEach(function(S) {
1733
- typeof S != "string" && (Se(S) ? f(Oe(S)) : I(S) === "object" && !ue(S) && Object.assign(u, S));
1737
+ typeof S != "string" && (Oe(S) ? f(ke(S)) : I(S) === "object" && !ue(S) && Object.assign(u, S));
1734
1738
  });
1735
1739
  }
1736
1740
  f(a);
1737
- var c = Yt.parse("<0>".concat(t, "</0>")), p = F(F({}, u), r);
1741
+ var c = nn.parse("<0>".concat(t, "</0>")), p = F(F({}, u), r);
1738
1742
  function v(g, b, S) {
1739
- var O = Oe(g), A = d(O, b.children, S);
1740
- return pn(O) && A.length === 0 ? O : A;
1743
+ var x = ke(g), A = d(x, b.children, S);
1744
+ return vn(x) && A.length === 0 ? x : A;
1741
1745
  }
1742
- function m(g, b, S, O, A) {
1743
- g.dummy && (g.children = b), S.push(ne(g, F(F({}, g.props), {}, {
1744
- key: O
1746
+ function m(g, b, S, x, A) {
1747
+ g.dummy && (g.children = b), S.push(re(g, F(F({}, g.props), {}, {
1748
+ key: x
1745
1749
  }), A ? void 0 : b));
1746
1750
  }
1747
1751
  function d(g, b, S) {
1748
- var O = Z(g), A = Z(b);
1752
+ var x = Z(g), A = Z(b);
1749
1753
  return A.reduce(function(k, w, j) {
1750
1754
  var R = w.children && w.children[0] && w.children[0].content && n.services.interpolator.interpolate(w.children[0].content, p, n.language);
1751
1755
  if (w.type === "tag") {
1752
- var C = O[parseInt(w.name, 10)];
1756
+ var C = x[parseInt(w.name, 10)];
1753
1757
  !C && S.length === 1 && S[0][w.name] && (C = S[0][w.name]), C || (C = {});
1754
- var L = Object.keys(w.attrs).length !== 0 ? dn({
1758
+ var L = Object.keys(w.attrs).length !== 0 ? mn({
1755
1759
  props: w.attrs
1756
- }, C) : C, E = ue(L), K = E && Se(w, !0) && !w.voidElement, U = s && I(L) === "object" && L.dummy && !E, l = I(a) === "object" && a !== null && Object.hasOwnProperty.call(a, w.name);
1760
+ }, C) : C, E = ue(L), K = E && Oe(w, !0) && !w.voidElement, U = s && I(L) === "object" && L.dummy && !E, l = I(a) === "object" && a !== null && Object.hasOwnProperty.call(a, w.name);
1757
1761
  if (typeof L == "string") {
1758
1762
  var h = n.services.interpolator.interpolate(L, p, n.language);
1759
1763
  k.push(h);
1760
- } else if (Se(L) || K) {
1761
- var x = v(L, w, S);
1762
- m(L, x, k, j);
1764
+ } else if (Oe(L) || K) {
1765
+ var O = v(L, w, S);
1766
+ m(L, O, k, j);
1763
1767
  } else if (U) {
1764
- var T = d(O, w.children, S);
1765
- k.push(ne(L, F(F({}, L.props), {}, {
1768
+ var T = d(x, w.children, S);
1769
+ k.push(re(L, F(F({}, L.props), {}, {
1766
1770
  key: j
1767
1771
  }), T));
1768
1772
  } else if (Number.isNaN(parseFloat(w.name)))
@@ -1771,32 +1775,32 @@ function hn(a, t, n, e, r, i) {
1771
1775
  m(L, N, k, j, w.voidElement);
1772
1776
  } else if (e.transSupportBasicHtmlNodes && o.indexOf(w.name) > -1)
1773
1777
  if (w.voidElement)
1774
- k.push(ie(w.name, {
1778
+ k.push(oe(w.name, {
1775
1779
  key: "".concat(w.name, "-").concat(j)
1776
1780
  }));
1777
1781
  else {
1778
- var P = d(O, w.children, S);
1779
- k.push(ie(w.name, {
1782
+ var P = d(x, w.children, S);
1783
+ k.push(oe(w.name, {
1780
1784
  key: "".concat(w.name, "-").concat(j)
1781
1785
  }, P));
1782
1786
  }
1783
1787
  else if (w.voidElement)
1784
1788
  k.push("<".concat(w.name, " />"));
1785
1789
  else {
1786
- var q = d(O, w.children, S);
1790
+ var q = d(x, w.children, S);
1787
1791
  k.push("<".concat(w.name, ">").concat(q, "</").concat(w.name, ">"));
1788
1792
  }
1789
1793
  else if (I(L) === "object" && !E) {
1790
1794
  var _ = w.children[0] ? R : null;
1791
1795
  _ && k.push(_);
1792
- } else w.children.length === 1 && R ? k.push(ne(L, F(F({}, L.props), {}, {
1796
+ } else w.children.length === 1 && R ? k.push(re(L, F(F({}, L.props), {}, {
1793
1797
  key: j
1794
- }), R)) : k.push(ne(L, F(F({}, L.props), {}, {
1798
+ }), R)) : k.push(re(L, F(F({}, L.props), {}, {
1795
1799
  key: j
1796
1800
  })));
1797
1801
  } else if (w.type === "text") {
1798
1802
  var B = e.transWrapTextNodes, X = i ? e.unescape(n.services.interpolator.interpolate(w.content, p, n.language)) : n.services.interpolator.interpolate(w.content, p, n.language);
1799
- B ? k.push(ie(B, {
1803
+ B ? k.push(oe(B, {
1800
1804
  key: "".concat(w.name, "-").concat(j)
1801
1805
  }, X)) : k.push(X);
1802
1806
  }
@@ -1807,19 +1811,19 @@ function hn(a, t, n, e, r, i) {
1807
1811
  dummy: !0,
1808
1812
  children: a || []
1809
1813
  }], c, Z(a || []));
1810
- return Oe(y[0]);
1814
+ return ke(y[0]);
1811
1815
  }
1812
- function gn(a) {
1813
- var t = a.children, n = a.count, e = a.parent, r = a.i18nKey, i = a.context, o = a.tOptions, s = o === void 0 ? {} : o, u = a.values, f = a.defaults, c = a.components, p = a.ns, v = a.i18n, m = a.t, d = a.shouldUnescape, y = ut(a, cn), g = at(pt) || {}, b = g.i18n, S = g.defaultNS, O = v || b || ht();
1814
- if (!O)
1816
+ function bn(a) {
1817
+ var t = a.children, n = a.count, e = a.parent, r = a.i18nKey, i = a.context, o = a.tOptions, s = o === void 0 ? {} : o, u = a.values, f = a.defaults, c = a.components, p = a.ns, v = a.i18n, m = a.t, d = a.shouldUnescape, y = ct(a, gn), g = st(gt) || {}, b = g.i18n, S = g.defaultNS, x = v || b || mt();
1818
+ if (!x)
1815
1819
  return le("You will need to pass in an i18next instance by using i18nextReactModule"), t;
1816
- var A = m || O.t.bind(O) || function(h) {
1820
+ var A = m || x.t.bind(x) || function(h) {
1817
1821
  return h;
1818
1822
  };
1819
1823
  i && (s.context = i);
1820
- var k = F(F({}, dt()), O.options && O.options.react), w = p || A.ns || S || O.options && O.options.defaultNS;
1824
+ var k = F(F({}, vt()), x.options && x.options.react), w = p || A.ns || S || x.options && x.options.defaultNS;
1821
1825
  w = typeof w == "string" ? [w] : w || ["translation"];
1822
- var j = f || gt(t, k) || k.transEmptyNodeValue || r, R = k.hashTransKey, C = r || (R ? R(j) : j), L = u ? s.interpolation : {
1826
+ var j = f || yt(t, k) || k.transEmptyNodeValue || r, R = k.hashTransKey, C = r || (R ? R(j) : j), L = u ? s.interpolation : {
1823
1827
  interpolation: F(F({}, s.interpolation), {}, {
1824
1828
  prefix: "#$?",
1825
1829
  suffix: "?$#"
@@ -1829,13 +1833,13 @@ function gn(a) {
1829
1833
  }, u), L), {}, {
1830
1834
  defaultValue: j,
1831
1835
  ns: w
1832
- }), K = C ? A(C, E) : j, U = hn(c || t, K, O, k, E, d), l = e !== void 0 ? e : k.defaultTransParent;
1833
- return l ? ie(l, y, U) : U;
1836
+ }), K = C ? A(C, E) : j, U = yn(c || t, K, x, k, E, d), l = e !== void 0 ? e : k.defaultTransParent;
1837
+ return l ? oe(l, y, U) : U;
1834
1838
  }
1835
- function vn(a) {
1839
+ function wn(a) {
1836
1840
  if (Array.isArray(a)) return a;
1837
1841
  }
1838
- function mn(a, t) {
1842
+ function Sn(a, t) {
1839
1843
  var n = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1840
1844
  if (n != null) {
1841
1845
  var e, r, i, o, s = [], u = !0, f = !1;
@@ -1853,26 +1857,26 @@ function mn(a, t) {
1853
1857
  return s;
1854
1858
  }
1855
1859
  }
1856
- function Xe(a, t) {
1860
+ function Ge(a, t) {
1857
1861
  (t == null || t > a.length) && (t = a.length);
1858
1862
  for (var n = 0, e = Array(t); n < t; n++) e[n] = a[n];
1859
1863
  return e;
1860
1864
  }
1861
- function yn(a, t) {
1865
+ function xn(a, t) {
1862
1866
  if (a) {
1863
- if (typeof a == "string") return Xe(a, t);
1867
+ if (typeof a == "string") return Ge(a, t);
1864
1868
  var n = {}.toString.call(a).slice(8, -1);
1865
- return n === "Object" && a.constructor && (n = a.constructor.name), n === "Map" || n === "Set" ? Array.from(a) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Xe(a, t) : void 0;
1869
+ return n === "Object" && a.constructor && (n = a.constructor.name), n === "Map" || n === "Set" ? Array.from(a) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ge(a, t) : void 0;
1866
1870
  }
1867
1871
  }
1868
- function bn() {
1872
+ function On() {
1869
1873
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1870
1874
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1871
1875
  }
1872
- function wn(a, t) {
1873
- return vn(a) || mn(a, t) || yn(a, t) || bn();
1876
+ function kn(a, t) {
1877
+ return wn(a) || Sn(a, t) || xn(a, t) || On();
1874
1878
  }
1875
- function Je(a, t) {
1879
+ function Qe(a, t) {
1876
1880
  var n = Object.keys(a);
1877
1881
  if (Object.getOwnPropertySymbols) {
1878
1882
  var e = Object.getOwnPropertySymbols(a);
@@ -1882,26 +1886,26 @@ function Je(a, t) {
1882
1886
  }
1883
1887
  return n;
1884
1888
  }
1885
- function xe(a) {
1889
+ function Pe(a) {
1886
1890
  for (var t = 1; t < arguments.length; t++) {
1887
1891
  var n = arguments[t] != null ? arguments[t] : {};
1888
- t % 2 ? Je(Object(n), !0).forEach(function(e) {
1892
+ t % 2 ? Qe(Object(n), !0).forEach(function(e) {
1889
1893
  ge(a, e, n[e]);
1890
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : Je(Object(n)).forEach(function(e) {
1894
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : Qe(Object(n)).forEach(function(e) {
1891
1895
  Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
1892
1896
  });
1893
1897
  }
1894
1898
  return a;
1895
1899
  }
1896
- var Sn = function(t, n) {
1897
- var e = ke();
1898
- return Pe(function() {
1900
+ var Pn = function(t, n) {
1901
+ var e = Le();
1902
+ return Ee(function() {
1899
1903
  e.current = t;
1900
1904
  }, [t, n]), e.current;
1901
1905
  };
1902
- function On(a) {
1903
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.i18n, e = at(pt) || {}, r = e.i18n, i = e.defaultNS, o = n || r || ht();
1904
- if (o && !o.reportNamespaces && (o.reportNamespaces = new an()), !o) {
1906
+ function Ln(a) {
1907
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.i18n, e = st(gt) || {}, r = e.i18n, i = e.defaultNS, o = n || r || mt();
1908
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new fn()), !o) {
1905
1909
  le("You will need to pass in an i18next instance by using initReactI18next");
1906
1910
  var s = function(C) {
1907
1911
  return Array.isArray(C) ? C[C.length - 1] : C;
@@ -1909,20 +1913,20 @@ function On(a) {
1909
1913
  return u.t = s, u.i18n = {}, u.ready = !1, u;
1910
1914
  }
1911
1915
  o.options.react && o.options.react.wait !== void 0 && le("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
1912
- var f = xe(xe(xe({}, dt()), o.options.react), t), c = f.useSuspense, p = f.keyPrefix, v = a || i || o.options && o.options.defaultNS;
1916
+ var f = Pe(Pe(Pe({}, vt()), o.options.react), t), c = f.useSuspense, p = f.keyPrefix, v = a || i || o.options && o.options.defaultNS;
1913
1917
  v = typeof v == "string" ? [v] : v || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(v);
1914
1918
  var m = (o.isInitialized || o.initializedStoreOnce) && v.every(function(R) {
1915
- return fn(R, o, f);
1919
+ return dn(R, o, f);
1916
1920
  });
1917
1921
  function d() {
1918
1922
  return o.getFixedT(null, f.nsMode === "fallback" ? v : v[0], p);
1919
1923
  }
1920
- var y = kt(d), g = wn(y, 2), b = g[0], S = g[1], O = v.join(), A = Sn(O), k = ke(!0);
1921
- Pe(function() {
1924
+ var y = Et(d), g = kn(y, 2), b = g[0], S = g[1], x = v.join(), A = Pn(x), k = Le(!0);
1925
+ Ee(function() {
1922
1926
  var R = f.bindI18n, C = f.bindI18nStore;
1923
- k.current = !0, !m && !c && ze(o, v, function() {
1927
+ k.current = !0, !m && !c && Xe(o, v, function() {
1924
1928
  k.current && S(d);
1925
- }), m && A && A !== O && k.current && S(d);
1929
+ }), m && A && A !== x && k.current && S(d);
1926
1930
  function L() {
1927
1931
  k.current && S(d);
1928
1932
  }
@@ -1933,51 +1937,51 @@ function On(a) {
1933
1937
  return o.store.off(E, L);
1934
1938
  });
1935
1939
  };
1936
- }, [o, O]);
1937
- var w = ke(!0);
1938
- Pe(function() {
1940
+ }, [o, x]);
1941
+ var w = Le(!0);
1942
+ Ee(function() {
1939
1943
  k.current && !w.current && S(d), w.current = !1;
1940
1944
  }, [o, p]);
1941
1945
  var j = [b, o, m];
1942
1946
  if (j.t = b, j.i18n = o, j.ready = m, m || !m && !c) return j;
1943
1947
  throw new Promise(function(R) {
1944
- ze(o, v, function() {
1948
+ Xe(o, v, function() {
1945
1949
  R();
1946
1950
  });
1947
1951
  });
1948
1952
  }
1949
- function je(a) {
1953
+ function Ce(a) {
1950
1954
  "@babel/helpers - typeof";
1951
- return je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1955
+ return Ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1952
1956
  return typeof t;
1953
1957
  } : function(t) {
1954
1958
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1955
- }, je(a);
1959
+ }, Ce(a);
1956
1960
  }
1957
- var vt = [], xn = vt.forEach, kn = vt.slice;
1958
- function Re(a) {
1959
- return xn.call(kn.call(arguments, 1), function(t) {
1961
+ var bt = [], En = bt.forEach, jn = bt.slice;
1962
+ function Ne(a) {
1963
+ return En.call(jn.call(arguments, 1), function(t) {
1960
1964
  if (t)
1961
1965
  for (var n in t)
1962
1966
  a[n] === void 0 && (a[n] = t[n]);
1963
1967
  }), a;
1964
1968
  }
1965
- function mt() {
1966
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : je(XMLHttpRequest)) === "object";
1969
+ function wt() {
1970
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Ce(XMLHttpRequest)) === "object";
1967
1971
  }
1968
- function Pn(a) {
1972
+ function Rn(a) {
1969
1973
  return !!a && typeof a.then == "function";
1970
1974
  }
1971
- function Ln(a) {
1972
- return Pn(a) ? a : Promise.resolve(a);
1975
+ function Cn(a) {
1976
+ return Rn(a) ? a : Promise.resolve(a);
1973
1977
  }
1974
- function En(a) {
1978
+ function Nn(a) {
1975
1979
  throw new Error('Could not dynamically require "' + a + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1976
1980
  }
1977
- var Ce = { exports: {} }, ae = { exports: {} }, Qe;
1978
- function jn() {
1979
- return Qe || (Qe = 1, function(a, t) {
1980
- var n = typeof self < "u" ? self : oe, e = function() {
1981
+ var ie = { exports: {} }, ee = { exports: {} }, An = ee.exports, Ye;
1982
+ function Tn() {
1983
+ return Ye || (Ye = 1, function(a, t) {
1984
+ var n = typeof self < "u" ? self : An, e = function() {
1981
1985
  function i() {
1982
1986
  this.fetch = !1, this.DOMException = n.DOMException;
1983
1987
  }
@@ -2026,8 +2030,8 @@ function jn() {
2026
2030
  function m(l) {
2027
2031
  var h = {
2028
2032
  next: function() {
2029
- var x = l.shift();
2030
- return { done: x === void 0, value: x };
2033
+ var O = l.shift();
2034
+ return { done: O === void 0, value: O };
2031
2035
  }
2032
2036
  };
2033
2037
  return s.iterable && (h[Symbol.iterator] = function() {
@@ -2035,8 +2039,8 @@ function jn() {
2035
2039
  }), h;
2036
2040
  }
2037
2041
  function d(l) {
2038
- this.map = {}, l instanceof d ? l.forEach(function(h, x) {
2039
- this.append(x, h);
2042
+ this.map = {}, l instanceof d ? l.forEach(function(h, O) {
2043
+ this.append(O, h);
2040
2044
  }, this) : Array.isArray(l) ? l.forEach(function(h) {
2041
2045
  this.append(h[0], h[1]);
2042
2046
  }, this) : l && Object.getOwnPropertyNames(l).forEach(function(h) {
@@ -2045,8 +2049,8 @@ function jn() {
2045
2049
  }
2046
2050
  d.prototype.append = function(l, h) {
2047
2051
  l = p(l), h = v(h);
2048
- var x = this.map[l];
2049
- this.map[l] = x ? x + ", " + h : h;
2052
+ var O = this.map[l];
2053
+ this.map[l] = O ? O + ", " + h : h;
2050
2054
  }, d.prototype.delete = function(l) {
2051
2055
  delete this.map[p(l)];
2052
2056
  }, d.prototype.get = function(l) {
@@ -2056,12 +2060,12 @@ function jn() {
2056
2060
  }, d.prototype.set = function(l, h) {
2057
2061
  this.map[p(l)] = v(h);
2058
2062
  }, d.prototype.forEach = function(l, h) {
2059
- for (var x in this.map)
2060
- this.map.hasOwnProperty(x) && l.call(h, this.map[x], x, this);
2063
+ for (var O in this.map)
2064
+ this.map.hasOwnProperty(O) && l.call(h, this.map[O], O, this);
2061
2065
  }, d.prototype.keys = function() {
2062
2066
  var l = [];
2063
- return this.forEach(function(h, x) {
2064
- l.push(x);
2067
+ return this.forEach(function(h, O) {
2068
+ l.push(O);
2065
2069
  }), m(l);
2066
2070
  }, d.prototype.values = function() {
2067
2071
  var l = [];
@@ -2070,8 +2074,8 @@ function jn() {
2070
2074
  }), m(l);
2071
2075
  }, d.prototype.entries = function() {
2072
2076
  var l = [];
2073
- return this.forEach(function(h, x) {
2074
- l.push([x, h]);
2077
+ return this.forEach(function(h, O) {
2078
+ l.push([O, h]);
2075
2079
  }), m(l);
2076
2080
  }, s.iterable && (d.prototype[Symbol.iterator] = d.prototype.entries);
2077
2081
  function y(l) {
@@ -2080,26 +2084,26 @@ function jn() {
2080
2084
  l.bodyUsed = !0;
2081
2085
  }
2082
2086
  function g(l) {
2083
- return new Promise(function(h, x) {
2087
+ return new Promise(function(h, O) {
2084
2088
  l.onload = function() {
2085
2089
  h(l.result);
2086
2090
  }, l.onerror = function() {
2087
- x(l.error);
2091
+ O(l.error);
2088
2092
  };
2089
2093
  });
2090
2094
  }
2091
2095
  function b(l) {
2092
- var h = new FileReader(), x = g(h);
2093
- return h.readAsArrayBuffer(l), x;
2096
+ var h = new FileReader(), O = g(h);
2097
+ return h.readAsArrayBuffer(l), O;
2094
2098
  }
2095
2099
  function S(l) {
2096
- var h = new FileReader(), x = g(h);
2097
- return h.readAsText(l), x;
2100
+ var h = new FileReader(), O = g(h);
2101
+ return h.readAsText(l), O;
2098
2102
  }
2099
- function O(l) {
2100
- for (var h = new Uint8Array(l), x = new Array(h.length), T = 0; T < h.length; T++)
2101
- x[T] = String.fromCharCode(h[T]);
2102
- return x.join("");
2103
+ function x(l) {
2104
+ for (var h = new Uint8Array(l), O = new Array(h.length), T = 0; T < h.length; T++)
2105
+ O[T] = String.fromCharCode(h[T]);
2106
+ return O.join("");
2103
2107
  }
2104
2108
  function A(l) {
2105
2109
  if (l.slice)
@@ -2130,7 +2134,7 @@ function jn() {
2130
2134
  if (this._bodyBlob)
2131
2135
  return S(this._bodyBlob);
2132
2136
  if (this._bodyArrayBuffer)
2133
- return Promise.resolve(O(this._bodyArrayBuffer));
2137
+ return Promise.resolve(x(this._bodyArrayBuffer));
2134
2138
  if (this._bodyFormData)
2135
2139
  throw new Error("could not read FormData body as text");
2136
2140
  return Promise.resolve(this._bodyText);
@@ -2147,32 +2151,32 @@ function jn() {
2147
2151
  }
2148
2152
  function R(l, h) {
2149
2153
  h = h || {};
2150
- var x = h.body;
2154
+ var O = h.body;
2151
2155
  if (l instanceof R) {
2152
2156
  if (l.bodyUsed)
2153
2157
  throw new TypeError("Already read");
2154
- this.url = l.url, this.credentials = l.credentials, h.headers || (this.headers = new d(l.headers)), this.method = l.method, this.mode = l.mode, this.signal = l.signal, !x && l._bodyInit != null && (x = l._bodyInit, l.bodyUsed = !0);
2158
+ this.url = l.url, this.credentials = l.credentials, h.headers || (this.headers = new d(l.headers)), this.method = l.method, this.mode = l.mode, this.signal = l.signal, !O && l._bodyInit != null && (O = l._bodyInit, l.bodyUsed = !0);
2155
2159
  } else
2156
2160
  this.url = String(l);
2157
- if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new d(h.headers)), this.method = j(h.method || this.method || "GET"), this.mode = h.mode || this.mode || null, this.signal = h.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && x)
2161
+ if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new d(h.headers)), this.method = j(h.method || this.method || "GET"), this.mode = h.mode || this.mode || null, this.signal = h.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && O)
2158
2162
  throw new TypeError("Body not allowed for GET or HEAD requests");
2159
- this._initBody(x);
2163
+ this._initBody(O);
2160
2164
  }
2161
2165
  R.prototype.clone = function() {
2162
2166
  return new R(this, { body: this._bodyInit });
2163
2167
  };
2164
2168
  function C(l) {
2165
2169
  var h = new FormData();
2166
- return l.trim().split("&").forEach(function(x) {
2167
- if (x) {
2168
- var T = x.split("="), N = T.shift().replace(/\+/g, " "), P = T.join("=").replace(/\+/g, " ");
2170
+ return l.trim().split("&").forEach(function(O) {
2171
+ if (O) {
2172
+ var T = O.split("="), N = T.shift().replace(/\+/g, " "), P = T.join("=").replace(/\+/g, " ");
2169
2173
  h.append(decodeURIComponent(N), decodeURIComponent(P));
2170
2174
  }
2171
2175
  }), h;
2172
2176
  }
2173
2177
  function L(l) {
2174
- var h = new d(), x = l.replace(/\r?\n[\t ]+/g, " ");
2175
- return x.split(/\r?\n/).forEach(function(T) {
2178
+ var h = new d(), O = l.replace(/\r?\n[\t ]+/g, " ");
2179
+ return O.split(/\r?\n/).forEach(function(T) {
2176
2180
  var N = T.split(":"), P = N.shift().trim();
2177
2181
  if (P) {
2178
2182
  var q = N.join(":").trim();
@@ -2204,14 +2208,14 @@ function jn() {
2204
2208
  try {
2205
2209
  new o.DOMException();
2206
2210
  } catch {
2207
- o.DOMException = function(h, x) {
2208
- this.message = h, this.name = x;
2211
+ o.DOMException = function(h, O) {
2212
+ this.message = h, this.name = O;
2209
2213
  var T = Error(h);
2210
2214
  this.stack = T.stack;
2211
2215
  }, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
2212
2216
  }
2213
2217
  function U(l, h) {
2214
- return new Promise(function(x, T) {
2218
+ return new Promise(function(O, T) {
2215
2219
  var N = new R(l, h);
2216
2220
  if (N.signal && N.signal.aborted)
2217
2221
  return T(new o.DOMException("Aborted", "AbortError"));
@@ -2227,7 +2231,7 @@ function jn() {
2227
2231
  };
2228
2232
  _.url = "responseURL" in P ? P.responseURL : _.headers.get("X-Request-URL");
2229
2233
  var B = "response" in P ? P.response : P.responseText;
2230
- x(new E(B, _));
2234
+ O(new E(B, _));
2231
2235
  }, P.onerror = function() {
2232
2236
  T(new TypeError("Network request failed"));
2233
2237
  }, P.ontimeout = function() {
@@ -2246,20 +2250,23 @@ function jn() {
2246
2250
  })(e), e.fetch.ponyfill = !0, delete e.fetch.polyfill;
2247
2251
  var r = e;
2248
2252
  t = r.fetch, t.default = r.fetch, t.fetch = r.fetch, t.Headers = r.Headers, t.Request = r.Request, t.Response = r.Response, a.exports = t;
2249
- }(ae, ae.exports)), ae.exports;
2253
+ }(ee, ee.exports)), ee.exports;
2250
2254
  }
2251
- (function(a, t) {
2252
- var n;
2253
- if (typeof fetch == "function" && (typeof oe < "u" && oe.fetch ? n = oe.fetch : typeof window < "u" && window.fetch ? n = window.fetch : n = fetch), typeof En < "u" && (typeof window > "u" || typeof window.document > "u")) {
2254
- var e = n || jn();
2255
- e.default && (e = e.default), t.default = e, a.exports = t.default;
2256
- }
2257
- })(Ce, Ce.exports);
2258
- var yt = Ce.exports;
2259
- const bt = /* @__PURE__ */ ft(yt), Ge = /* @__PURE__ */ Pt({
2255
+ var Ze;
2256
+ function Fn() {
2257
+ return Ze || (Ze = 1, function(a, t) {
2258
+ var n;
2259
+ if (typeof fetch == "function" && (typeof Se < "u" && Se.fetch ? n = Se.fetch : typeof window < "u" && window.fetch ? n = window.fetch : n = fetch), typeof Nn < "u" && (typeof window > "u" || typeof window.document > "u")) {
2260
+ var e = n || Tn();
2261
+ e.default && (e = e.default), t.default = e, a.exports = t.default;
2262
+ }
2263
+ }(ie, ie.exports)), ie.exports;
2264
+ }
2265
+ var St = Fn();
2266
+ const xt = /* @__PURE__ */ pt(St), et = /* @__PURE__ */ jt({
2260
2267
  __proto__: null,
2261
- default: bt
2262
- }, [yt]);
2268
+ default: xt
2269
+ }, [St]);
2263
2270
  function ce(a) {
2264
2271
  "@babel/helpers - typeof";
2265
2272
  return ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -2270,13 +2277,13 @@ function ce(a) {
2270
2277
  }
2271
2278
  var $;
2272
2279
  typeof fetch == "function" && (typeof global < "u" && global.fetch ? $ = global.fetch : typeof window < "u" && window.fetch ? $ = window.fetch : $ = fetch);
2273
- var te;
2274
- mt() && (typeof global < "u" && global.XMLHttpRequest ? te = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (te = window.XMLHttpRequest));
2280
+ var ne;
2281
+ wt() && (typeof global < "u" && global.XMLHttpRequest ? ne = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (ne = window.XMLHttpRequest));
2275
2282
  var pe;
2276
2283
  typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? pe = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (pe = window.ActiveXObject));
2277
- !$ && Ge && !te && !pe && ($ = bt || Ge);
2284
+ !$ && et && !ne && !pe && ($ = xt || et);
2278
2285
  typeof $ != "function" && ($ = void 0);
2279
- var Ne = function(t, n) {
2286
+ var Ae = function(t, n) {
2280
2287
  if (n && ce(n) === "object") {
2281
2288
  var e = "";
2282
2289
  for (var r in n)
@@ -2285,7 +2292,7 @@ var Ne = function(t, n) {
2285
2292
  t = t + (t.indexOf("?") !== -1 ? "&" : "?") + e.slice(1);
2286
2293
  }
2287
2294
  return t;
2288
- }, Ye = function(t, n, e) {
2295
+ }, tt = function(t, n, e) {
2289
2296
  $(t, n).then(function(r) {
2290
2297
  if (!r.ok) return e(r.statusText || "Error", {
2291
2298
  status: r.status
@@ -2297,33 +2304,33 @@ var Ne = function(t, n) {
2297
2304
  });
2298
2305
  }).catch(e);
2299
2306
  }).catch(e);
2300
- }, Ze = !1, Rn = function(t, n, e, r) {
2301
- t.queryStringParams && (n = Ne(n, t.queryStringParams));
2302
- var i = Re({}, typeof t.customHeaders == "function" ? t.customHeaders() : t.customHeaders);
2307
+ }, nt = !1, Dn = function(t, n, e, r) {
2308
+ t.queryStringParams && (n = Ae(n, t.queryStringParams));
2309
+ var i = Ne({}, typeof t.customHeaders == "function" ? t.customHeaders() : t.customHeaders);
2303
2310
  e && (i["Content-Type"] = "application/json");
2304
- var o = typeof t.requestOptions == "function" ? t.requestOptions(e) : t.requestOptions, s = Re({
2311
+ var o = typeof t.requestOptions == "function" ? t.requestOptions(e) : t.requestOptions, s = Ne({
2305
2312
  method: e ? "POST" : "GET",
2306
2313
  body: e ? t.stringify(e) : void 0,
2307
2314
  headers: i
2308
- }, Ze ? {} : o);
2315
+ }, nt ? {} : o);
2309
2316
  try {
2310
- Ye(n, s, r);
2317
+ tt(n, s, r);
2311
2318
  } catch (u) {
2312
2319
  if (!o || Object.keys(o).length === 0 || !u.message || u.message.indexOf("not implemented") < 0)
2313
2320
  return r(u);
2314
2321
  try {
2315
2322
  Object.keys(o).forEach(function(f) {
2316
2323
  delete s[f];
2317
- }), Ye(n, s, r), Ze = !0;
2324
+ }), tt(n, s, r), nt = !0;
2318
2325
  } catch (f) {
2319
2326
  r(f);
2320
2327
  }
2321
2328
  }
2322
- }, Cn = function(t, n, e, r) {
2323
- e && ce(e) === "object" && (e = Ne("", e).slice(1)), t.queryStringParams && (n = Ne(n, t.queryStringParams));
2329
+ }, In = function(t, n, e, r) {
2330
+ e && ce(e) === "object" && (e = Ae("", e).slice(1)), t.queryStringParams && (n = Ae(n, t.queryStringParams));
2324
2331
  try {
2325
2332
  var i;
2326
- te ? i = new te() : i = new pe("MSXML2.XMLHTTP.3.0"), i.open(e ? "POST" : "GET", n, 1), t.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!t.withCredentials, e && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
2333
+ ne ? i = new ne() : i = new pe("MSXML2.XMLHTTP.3.0"), i.open(e ? "POST" : "GET", n, 1), t.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!t.withCredentials, e && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
2327
2334
  var o = t.customHeaders;
2328
2335
  if (o = typeof o == "function" ? o() : o, o)
2329
2336
  for (var s in o)
@@ -2337,31 +2344,31 @@ var Ne = function(t, n) {
2337
2344
  } catch (u) {
2338
2345
  console && console.log(u);
2339
2346
  }
2340
- }, Nn = function(t, n, e, r) {
2347
+ }, _n = function(t, n, e, r) {
2341
2348
  if (typeof e == "function" && (r = e, e = void 0), r = r || function() {
2342
2349
  }, $)
2343
- return Rn(t, n, e, r);
2344
- if (mt() || typeof ActiveXObject == "function")
2345
- return Cn(t, n, e, r);
2350
+ return Dn(t, n, e, r);
2351
+ if (wt() || typeof ActiveXObject == "function")
2352
+ return In(t, n, e, r);
2346
2353
  r(new Error("No fetch and no xhr implementation found!"));
2347
2354
  };
2348
- function An(a, t) {
2355
+ function Un(a, t) {
2349
2356
  if (!(a instanceof t))
2350
2357
  throw new TypeError("Cannot call a class as a function");
2351
2358
  }
2352
- function Tn(a, t) {
2359
+ function Bn(a, t) {
2353
2360
  for (var n = 0; n < t.length; n++) {
2354
2361
  var e = t[n];
2355
2362
  e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(a, e.key, e);
2356
2363
  }
2357
2364
  }
2358
- function Fn(a, t, n) {
2359
- return t && Tn(a.prototype, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
2365
+ function Hn(a, t, n) {
2366
+ return t && Bn(a.prototype, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
2360
2367
  }
2361
- function Dn(a, t, n) {
2368
+ function Mn(a, t, n) {
2362
2369
  return t in a ? Object.defineProperty(a, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : a[t] = n, a;
2363
2370
  }
2364
- var In = function() {
2371
+ var qn = function() {
2365
2372
  return {
2366
2373
  loadPath: "/locales/{{lng}}/{{ns}}.json",
2367
2374
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -2371,9 +2378,9 @@ var In = function() {
2371
2378
  },
2372
2379
  stringify: JSON.stringify,
2373
2380
  parsePayload: function(n, e, r) {
2374
- return Dn({}, e, r || "");
2381
+ return Mn({}, e, r || "");
2375
2382
  },
2376
- request: Nn,
2383
+ request: _n,
2377
2384
  reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
2378
2385
  customHeaders: {},
2379
2386
  queryStringParams: {},
@@ -2386,16 +2393,16 @@ var In = function() {
2386
2393
  cache: "default"
2387
2394
  }
2388
2395
  };
2389
- }, wt = function() {
2396
+ }, Ot = function() {
2390
2397
  function a(t) {
2391
2398
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2392
- An(this, a), this.services = t, this.options = n, this.allOptions = e, this.type = "backend", this.init(t, n, e);
2399
+ Un(this, a), this.services = t, this.options = n, this.allOptions = e, this.type = "backend", this.init(t, n, e);
2393
2400
  }
2394
- return Fn(a, [{
2401
+ return Hn(a, [{
2395
2402
  key: "init",
2396
2403
  value: function(n) {
2397
2404
  var e = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2398
- this.services = n, this.options = Re(r, this.options || {}, In()), this.allOptions = i, this.services && this.options.reloadInterval && setInterval(function() {
2405
+ this.services = n, this.options = Ne(r, this.options || {}, qn()), this.allOptions = i, this.services && this.options.reloadInterval && setInterval(function() {
2399
2406
  return e.reload();
2400
2407
  }, this.options.reloadInterval);
2401
2408
  }
@@ -2413,7 +2420,7 @@ var In = function() {
2413
2420
  key: "_readAny",
2414
2421
  value: function(n, e, r, i, o) {
2415
2422
  var s = this, u = this.options.loadPath;
2416
- typeof this.options.loadPath == "function" && (u = this.options.loadPath(n, r)), u = Ln(u), u.then(function(f) {
2423
+ typeof this.options.loadPath == "function" && (u = this.options.loadPath(n, r)), u = Cn(u), u.then(function(f) {
2417
2424
  if (!f) return o(null, {});
2418
2425
  var c = s.services.interpolator.interpolate(f, {
2419
2426
  lng: n.join("+"),
@@ -2485,16 +2492,16 @@ var In = function() {
2485
2492
  }
2486
2493
  }]), a;
2487
2494
  }();
2488
- wt.type = "backend";
2489
- var St = [], _n = St.forEach, Un = St.slice;
2490
- function Bn(a) {
2491
- return _n.call(Un.call(arguments, 1), function(t) {
2495
+ Ot.type = "backend";
2496
+ var kt = [], Vn = kt.forEach, $n = kt.slice;
2497
+ function Kn(a) {
2498
+ return Vn.call($n.call(arguments, 1), function(t) {
2492
2499
  if (t)
2493
2500
  for (var n in t)
2494
2501
  a[n] === void 0 && (a[n] = t[n]);
2495
2502
  }), a;
2496
2503
  }
2497
- var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, n, e) {
2504
+ var rt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, zn = function(t, n, e) {
2498
2505
  var r = e || {};
2499
2506
  r.path = r.path || "/";
2500
2507
  var i = encodeURIComponent(n), o = t + "=" + i;
@@ -2504,12 +2511,12 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, n, e) {
2504
2511
  o += "; Max-Age=" + Math.floor(s);
2505
2512
  }
2506
2513
  if (r.domain) {
2507
- if (!et.test(r.domain))
2514
+ if (!rt.test(r.domain))
2508
2515
  throw new TypeError("option domain is invalid");
2509
2516
  o += "; Domain=" + r.domain;
2510
2517
  }
2511
2518
  if (r.path) {
2512
- if (!et.test(r.path))
2519
+ if (!rt.test(r.path))
2513
2520
  throw new TypeError("option path is invalid");
2514
2521
  o += "; Path=" + r.path;
2515
2522
  }
@@ -2538,13 +2545,13 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, n, e) {
2538
2545
  }
2539
2546
  }
2540
2547
  return o;
2541
- }, tt = {
2548
+ }, at = {
2542
2549
  create: function(t, n, e, r) {
2543
2550
  var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2544
2551
  path: "/",
2545
2552
  sameSite: "strict"
2546
2553
  };
2547
- e && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + e * 60 * 1e3)), r && (i.domain = r), document.cookie = Hn(t, encodeURIComponent(n), i);
2554
+ e && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + e * 60 * 1e3)), r && (i.domain = r), document.cookie = zn(t, encodeURIComponent(n), i);
2548
2555
  },
2549
2556
  read: function(t) {
2550
2557
  for (var n = t + "=", e = document.cookie.split(";"), r = 0; r < e.length; r++) {
@@ -2557,20 +2564,20 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, n, e) {
2557
2564
  remove: function(t) {
2558
2565
  this.create(t, "", -1);
2559
2566
  }
2560
- }, Mn = {
2567
+ }, Wn = {
2561
2568
  name: "cookie",
2562
2569
  lookup: function(t) {
2563
2570
  var n;
2564
2571
  if (t.lookupCookie && typeof document < "u") {
2565
- var e = tt.read(t.lookupCookie);
2572
+ var e = at.read(t.lookupCookie);
2566
2573
  e && (n = e);
2567
2574
  }
2568
2575
  return n;
2569
2576
  },
2570
2577
  cacheUserLanguage: function(t, n) {
2571
- n.lookupCookie && typeof document < "u" && tt.create(n.lookupCookie, t, n.cookieMinutes, n.cookieDomain, n.cookieOptions);
2578
+ n.lookupCookie && typeof document < "u" && at.create(n.lookupCookie, t, n.cookieMinutes, n.cookieDomain, n.cookieOptions);
2572
2579
  }
2573
- }, qn = {
2580
+ }, Xn = {
2574
2581
  name: "querystring",
2575
2582
  lookup: function(t) {
2576
2583
  var n;
@@ -2587,12 +2594,12 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, n, e) {
2587
2594
  }, de;
2588
2595
  try {
2589
2596
  de = window !== "undefined" && window.localStorage !== null;
2590
- var nt = "i18next.translate.boo";
2591
- window.localStorage.setItem(nt, "foo"), window.localStorage.removeItem(nt);
2597
+ var it = "i18next.translate.boo";
2598
+ window.localStorage.setItem(it, "foo"), window.localStorage.removeItem(it);
2592
2599
  } catch {
2593
2600
  de = !1;
2594
2601
  }
2595
- var Vn = {
2602
+ var Jn = {
2596
2603
  name: "localStorage",
2597
2604
  lookup: function(t) {
2598
2605
  var n;
@@ -2608,12 +2615,12 @@ var Vn = {
2608
2615
  }, he;
2609
2616
  try {
2610
2617
  he = window !== "undefined" && window.sessionStorage !== null;
2611
- var rt = "i18next.translate.boo";
2612
- window.sessionStorage.setItem(rt, "foo"), window.sessionStorage.removeItem(rt);
2618
+ var ot = "i18next.translate.boo";
2619
+ window.sessionStorage.setItem(ot, "foo"), window.sessionStorage.removeItem(ot);
2613
2620
  } catch {
2614
2621
  he = !1;
2615
2622
  }
2616
- var $n = {
2623
+ var Gn = {
2617
2624
  name: "sessionStorage",
2618
2625
  lookup: function(t) {
2619
2626
  var n;
@@ -2626,7 +2633,7 @@ var $n = {
2626
2633
  cacheUserLanguage: function(t, n) {
2627
2634
  n.lookupsessionStorage && he && window.sessionStorage.setItem(n.lookupsessionStorage, t);
2628
2635
  }
2629
- }, Kn = {
2636
+ }, Qn = {
2630
2637
  name: "navigator",
2631
2638
  lookup: function(t) {
2632
2639
  var n = [];
@@ -2638,13 +2645,13 @@ var $n = {
2638
2645
  }
2639
2646
  return n.length > 0 ? n : void 0;
2640
2647
  }
2641
- }, zn = {
2648
+ }, Yn = {
2642
2649
  name: "htmlTag",
2643
2650
  lookup: function(t) {
2644
2651
  var n, e = t.htmlTag || (typeof document < "u" ? document.documentElement : null);
2645
2652
  return e && typeof e.getAttribute == "function" && (n = e.getAttribute("lang")), n;
2646
2653
  }
2647
- }, Wn = {
2654
+ }, Zn = {
2648
2655
  name: "path",
2649
2656
  lookup: function(t) {
2650
2657
  var n;
@@ -2660,7 +2667,7 @@ var $n = {
2660
2667
  }
2661
2668
  return n;
2662
2669
  }
2663
- }, Xn = {
2670
+ }, er = {
2664
2671
  name: "subdomain",
2665
2672
  lookup: function(t) {
2666
2673
  var n;
@@ -2671,7 +2678,7 @@ var $n = {
2671
2678
  return n;
2672
2679
  }
2673
2680
  };
2674
- function Jn() {
2681
+ function tr() {
2675
2682
  return {
2676
2683
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2677
2684
  lookupQuerystring: "lng",
@@ -2684,7 +2691,7 @@ function Jn() {
2684
2691
  //cookieDomain: 'myDomain'
2685
2692
  };
2686
2693
  }
2687
- var Ot = /* @__PURE__ */ function() {
2694
+ var Pt = /* @__PURE__ */ function() {
2688
2695
  function a(t) {
2689
2696
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2690
2697
  H(this, a), this.type = "languageDetector", this.detectors = {}, this.init(t, n);
@@ -2693,7 +2700,7 @@ var Ot = /* @__PURE__ */ function() {
2693
2700
  key: "init",
2694
2701
  value: function(n) {
2695
2702
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2696
- this.services = n, this.options = Bn(e, this.options || {}, Jn()), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Mn), this.addDetector(qn), this.addDetector(Vn), this.addDetector($n), this.addDetector(Kn), this.addDetector(zn), this.addDetector(Wn), this.addDetector(Xn);
2703
+ this.services = n, this.options = Kn(e, this.options || {}, tr()), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Wn), this.addDetector(Xn), this.addDetector(Jn), this.addDetector(Gn), this.addDetector(Qn), this.addDetector(Yn), this.addDetector(Zn), this.addDetector(er);
2697
2704
  }
2698
2705
  }, {
2699
2706
  key: "addDetector",
@@ -2723,14 +2730,14 @@ var Ot = /* @__PURE__ */ function() {
2723
2730
  }
2724
2731
  }]), a;
2725
2732
  }();
2726
- Ot.type = "languageDetector";
2727
- function Gn({
2733
+ Pt.type = "languageDetector";
2734
+ function rr({
2728
2735
  detectorConfig: a,
2729
2736
  translationPath: t,
2730
2737
  customDetectors: n,
2731
2738
  ...e
2732
2739
  }) {
2733
- const r = new Ot(), i = {
2740
+ const r = new Pt(), i = {
2734
2741
  name: "hashRouterQuerystringDetector",
2735
2742
  lookup: (f) => {
2736
2743
  try {
@@ -2788,14 +2795,14 @@ function Gn({
2788
2795
  },
2789
2796
  ...e
2790
2797
  };
2791
- return $t.use(wt).use(r).use(sn).init(u);
2798
+ return Wt.use(Ot).use(r).use(cn).init(u);
2792
2799
  }
2793
- const Yn = gn;
2794
- function Zn(a = "translation", t) {
2795
- return On([a, "design-system"], t);
2800
+ const ar = bn;
2801
+ function ir(a = "translation", t) {
2802
+ return Ln([a, "design-system"], t);
2796
2803
  }
2797
2804
  export {
2798
- Yn as SpsLanguage,
2799
- Gn as localize,
2800
- Zn as useSpsLanguage
2805
+ ar as SpsLanguage,
2806
+ rr as localize,
2807
+ ir as useSpsLanguage
2801
2808
  };