@spscommerce/i18n 8.2.2 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import U, { useContext as tt, useState as mt, useRef as Ae, useEffect as Ne } from "react";
2
- function yt(a, n) {
3
- for (var t = 0; t < n.length; t++) {
4
- const e = n[t];
1
+ import { createContext as St, useContext as it, createElement as ie, isValidElement as ue, cloneElement as ne, useState as xt, useRef as Pe, useEffect as Le } from "react";
2
+ function kt(a, t) {
3
+ for (var n = 0; n < t.length; n++) {
4
+ const e = t[n];
5
5
  if (typeof e != "string" && !Array.isArray(e)) {
6
6
  for (const r in e)
7
7
  if (r !== "default" && !(r in a)) {
@@ -16,180 +16,200 @@ function yt(a, n) {
16
16
  return Object.freeze(Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }));
17
17
  }
18
18
  function I(a) {
19
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? I = function(t) {
19
+ return I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
20
20
  return typeof t;
21
- } : I = function(t) {
21
+ } : function(t) {
22
22
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
23
23
  }, I(a);
24
24
  }
25
- function he(a, n, t) {
26
- return n in a ? Object.defineProperty(a, n, {
27
- value: t,
25
+ function Pt(a, t) {
26
+ if (I(a) != "object" || !a)
27
+ return a;
28
+ var n = a[Symbol.toPrimitive];
29
+ if (n !== void 0) {
30
+ var e = n.call(a, t || "default");
31
+ if (I(e) != "object")
32
+ return e;
33
+ throw new TypeError("@@toPrimitive must return a primitive value.");
34
+ }
35
+ return (t === "string" ? String : Number)(a);
36
+ }
37
+ function ot(a) {
38
+ var t = Pt(a, "string");
39
+ return I(t) == "symbol" ? t : String(t);
40
+ }
41
+ function ve(a, t, n) {
42
+ return t = ot(t), t in a ? Object.defineProperty(a, t, {
43
+ value: n,
28
44
  enumerable: !0,
29
45
  configurable: !0,
30
46
  writable: !0
31
- }) : a[n] = t, a;
47
+ }) : a[t] = n, a;
32
48
  }
33
- function F(a) {
34
- for (var n = 1; n < arguments.length; n++) {
35
- var t = arguments[n] != null ? Object(arguments[n]) : {}, e = Object.keys(t);
36
- typeof Object.getOwnPropertySymbols == "function" && e.push.apply(e, Object.getOwnPropertySymbols(t).filter(function(r) {
37
- return Object.getOwnPropertyDescriptor(t, r).enumerable;
49
+ function D(a) {
50
+ for (var t = 1; t < arguments.length; t++) {
51
+ var n = arguments[t] != null ? Object(arguments[t]) : {}, e = Object.keys(n);
52
+ typeof Object.getOwnPropertySymbols == "function" && e.push.apply(e, Object.getOwnPropertySymbols(n).filter(function(r) {
53
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
38
54
  })), e.forEach(function(r) {
39
- he(a, r, t[r]);
55
+ ve(a, r, n[r]);
40
56
  });
41
57
  }
42
58
  return a;
43
59
  }
44
- function M(a, n) {
45
- if (!(a instanceof n))
60
+ function H(a, t) {
61
+ if (!(a instanceof t))
46
62
  throw new TypeError("Cannot call a class as a function");
47
63
  }
48
- function Te(a, n) {
49
- for (var t = 0; t < n.length; t++) {
50
- var e = n[t];
51
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(a, e.key, e);
64
+ function De(a, t) {
65
+ for (var n = 0; n < t.length; n++) {
66
+ var e = t[n];
67
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(a, ot(e.key), e);
52
68
  }
53
69
  }
54
- function q(a, n, t) {
55
- return n && Te(a.prototype, n), t && Te(a, t), a;
70
+ function M(a, t, n) {
71
+ return t && De(a.prototype, t), n && De(a, n), Object.defineProperty(a, "prototype", {
72
+ writable: !1
73
+ }), a;
56
74
  }
57
- function X(a) {
75
+ function W(a) {
58
76
  if (a === void 0)
59
77
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
60
78
  return a;
61
79
  }
62
- function ne(a, n) {
63
- if (n && (I(n) === "object" || typeof n == "function"))
64
- return n;
65
- if (n !== void 0)
80
+ function ee(a, t) {
81
+ if (t && (I(t) === "object" || typeof t == "function"))
82
+ return t;
83
+ if (t !== void 0)
66
84
  throw new TypeError("Derived constructors may only return object or undefined");
67
- return X(a);
85
+ return W(a);
68
86
  }
69
- function Y(a) {
70
- return Y = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
71
- return t.__proto__ || Object.getPrototypeOf(t);
72
- }, Y(a);
87
+ function G(a) {
88
+ return G = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
89
+ return n.__proto__ || Object.getPrototypeOf(n);
90
+ }, G(a);
73
91
  }
74
- function ke(a, n) {
75
- return ke = Object.setPrototypeOf || function(e, r) {
92
+ function Ee(a, t) {
93
+ return Ee = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, r) {
76
94
  return e.__proto__ = r, e;
77
- }, ke(a, n);
95
+ }, Ee(a, t);
78
96
  }
79
- function ve(a, n) {
80
- if (typeof n != "function" && n !== null)
97
+ function me(a, t) {
98
+ if (typeof t != "function" && t !== null)
81
99
  throw new TypeError("Super expression must either be null or a function");
82
- a.prototype = Object.create(n && n.prototype, {
100
+ a.prototype = Object.create(t && t.prototype, {
83
101
  constructor: {
84
102
  value: a,
85
103
  writable: !0,
86
104
  configurable: !0
87
105
  }
88
- }), n && ke(a, n);
106
+ }), Object.defineProperty(a, "prototype", {
107
+ writable: !1
108
+ }), t && Ee(a, t);
89
109
  }
90
- var bt = {
110
+ var Lt = {
91
111
  type: "logger",
92
- log: function(n) {
93
- this.output("log", n);
112
+ log: function(t) {
113
+ this.output("log", t);
94
114
  },
95
- warn: function(n) {
96
- this.output("warn", n);
115
+ warn: function(t) {
116
+ this.output("warn", t);
97
117
  },
98
- error: function(n) {
99
- this.output("error", n);
118
+ error: function(t) {
119
+ this.output("error", t);
100
120
  },
101
- output: function(n, t) {
102
- console && console[n] && console[n].apply(console, t);
121
+ output: function(t, n) {
122
+ console && console[t] && console[t].apply(console, n);
103
123
  }
104
- }, wt = function() {
105
- function a(n) {
106
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
107
- M(this, a), this.init(n, t);
124
+ }, Et = function() {
125
+ function a(t) {
126
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
127
+ H(this, a), this.init(t, n);
108
128
  }
109
- return q(a, [{
129
+ return M(a, [{
110
130
  key: "init",
111
- value: function(t) {
131
+ value: function(n) {
112
132
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
113
- this.prefix = e.prefix || "i18next:", this.logger = t || bt, this.options = e, this.debug = e.debug;
133
+ this.prefix = e.prefix || "i18next:", this.logger = n || Lt, this.options = e, this.debug = e.debug;
114
134
  }
115
135
  }, {
116
136
  key: "setDebug",
117
- value: function(t) {
118
- this.debug = t;
137
+ value: function(n) {
138
+ this.debug = n;
119
139
  }
120
140
  }, {
121
141
  key: "log",
122
142
  value: function() {
123
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
143
+ for (var n = arguments.length, e = new Array(n), r = 0; r < n; r++)
124
144
  e[r] = arguments[r];
125
145
  return this.forward(e, "log", "", !0);
126
146
  }
127
147
  }, {
128
148
  key: "warn",
129
149
  value: function() {
130
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
150
+ for (var n = arguments.length, e = new Array(n), r = 0; r < n; r++)
131
151
  e[r] = arguments[r];
132
152
  return this.forward(e, "warn", "", !0);
133
153
  }
134
154
  }, {
135
155
  key: "error",
136
156
  value: function() {
137
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
157
+ for (var n = arguments.length, e = new Array(n), r = 0; r < n; r++)
138
158
  e[r] = arguments[r];
139
159
  return this.forward(e, "error", "");
140
160
  }
141
161
  }, {
142
162
  key: "deprecate",
143
163
  value: function() {
144
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
164
+ for (var n = arguments.length, e = new Array(n), r = 0; r < n; r++)
145
165
  e[r] = arguments[r];
146
166
  return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
147
167
  }
148
168
  }, {
149
169
  key: "forward",
150
- value: function(t, e, r, i) {
151
- return i && !this.debug ? null : (typeof t[0] == "string" && (t[0] = "".concat(r).concat(this.prefix, " ").concat(t[0])), this.logger[e](t));
170
+ value: function(n, e, r, i) {
171
+ return i && !this.debug ? null : (typeof n[0] == "string" && (n[0] = "".concat(r).concat(this.prefix, " ").concat(n[0])), this.logger[e](n));
152
172
  }
153
173
  }, {
154
174
  key: "create",
155
- value: function(t) {
156
- return new a(this.logger, F({}, {
157
- prefix: "".concat(this.prefix, ":").concat(t, ":")
175
+ value: function(n) {
176
+ return new a(this.logger, D({}, {
177
+ prefix: "".concat(this.prefix, ":").concat(n, ":")
158
178
  }, this.options));
159
179
  }
160
180
  }]), a;
161
- }(), $ = new wt(), K = function() {
181
+ }(), V = new Et(), z = function() {
162
182
  function a() {
163
- M(this, a), this.observers = {};
183
+ H(this, a), this.observers = {};
164
184
  }
165
- return q(a, [{
185
+ return M(a, [{
166
186
  key: "on",
167
- value: function(t, e) {
187
+ value: function(n, e) {
168
188
  var r = this;
169
- return t.split(" ").forEach(function(i) {
189
+ return n.split(" ").forEach(function(i) {
170
190
  r.observers[i] = r.observers[i] || [], r.observers[i].push(e);
171
191
  }), this;
172
192
  }
173
193
  }, {
174
194
  key: "off",
175
- value: function(t, e) {
176
- if (!!this.observers[t]) {
195
+ value: function(n, e) {
196
+ if (!!this.observers[n]) {
177
197
  if (!e) {
178
- delete this.observers[t];
198
+ delete this.observers[n];
179
199
  return;
180
200
  }
181
- this.observers[t] = this.observers[t].filter(function(r) {
201
+ this.observers[n] = this.observers[n].filter(function(r) {
182
202
  return r !== e;
183
203
  });
184
204
  }
185
205
  }
186
206
  }, {
187
207
  key: "emit",
188
- value: function(t) {
208
+ value: function(n) {
189
209
  for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
190
210
  r[i - 1] = arguments[i];
191
- if (this.observers[t]) {
192
- var o = [].concat(this.observers[t]);
211
+ if (this.observers[n]) {
212
+ var o = [].concat(this.observers[n]);
193
213
  o.forEach(function(u) {
194
214
  u.apply(void 0, r);
195
215
  });
@@ -197,70 +217,70 @@ var bt = {
197
217
  if (this.observers["*"]) {
198
218
  var s = [].concat(this.observers["*"]);
199
219
  s.forEach(function(u) {
200
- u.apply(u, [t].concat(r));
220
+ u.apply(u, [n].concat(r));
201
221
  });
202
222
  }
203
223
  }
204
224
  }]), a;
205
225
  }();
206
- function Z() {
207
- var a, n, t = new Promise(function(e, r) {
208
- a = e, n = r;
226
+ function Y() {
227
+ var a, t, n = new Promise(function(e, r) {
228
+ a = e, t = r;
209
229
  });
210
- return t.resolve = a, t.reject = n, t;
230
+ return n.resolve = a, n.reject = t, n;
211
231
  }
212
- function _e(a) {
232
+ function Ie(a) {
213
233
  return a == null ? "" : "" + a;
214
234
  }
215
- function St(a, n, t) {
235
+ function jt(a, t, n) {
216
236
  a.forEach(function(e) {
217
- n[e] && (t[e] = n[e]);
237
+ t[e] && (n[e] = t[e]);
218
238
  });
219
239
  }
220
- function Re(a, n, t) {
240
+ function Ae(a, t, n) {
221
241
  function e(s) {
222
242
  return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
223
243
  }
224
244
  function r() {
225
245
  return !a || typeof a == "string";
226
246
  }
227
- for (var i = typeof n != "string" ? [].concat(n) : n.split("."); i.length > 1; ) {
247
+ for (var i = typeof t != "string" ? [].concat(t) : t.split("."); i.length > 1; ) {
228
248
  if (r())
229
249
  return {};
230
250
  var o = e(i.shift());
231
- !a[o] && t && (a[o] = new t()), Object.prototype.hasOwnProperty.call(a, o) ? a = a[o] : a = {};
251
+ !a[o] && n && (a[o] = new n()), Object.prototype.hasOwnProperty.call(a, o) ? a = a[o] : a = {};
232
252
  }
233
253
  return r() ? {} : {
234
254
  obj: a,
235
255
  k: e(i.shift())
236
256
  };
237
257
  }
238
- function Fe(a, n, t) {
239
- var e = Re(a, n, Object), r = e.obj, i = e.k;
240
- r[i] = t;
258
+ function _e(a, t, n) {
259
+ var e = Ae(a, t, Object), r = e.obj, i = e.k;
260
+ r[i] = n;
241
261
  }
242
- function xt(a, n, t, e) {
243
- var r = Re(a, n, Object), i = r.obj, o = r.k;
244
- i[o] = i[o] || [], e && (i[o] = i[o].concat(t)), e || i[o].push(t);
262
+ function Rt(a, t, n, e) {
263
+ var r = Ae(a, t, Object), i = r.obj, o = r.k;
264
+ i[o] = i[o] || [], e && (i[o] = i[o].concat(n)), e || i[o].push(n);
245
265
  }
246
- function fe(a, n) {
247
- var t = Re(a, n), e = t.obj, r = t.k;
266
+ function fe(a, t) {
267
+ var n = Ae(a, t), e = n.obj, r = n.k;
248
268
  if (!!e)
249
269
  return e[r];
250
270
  }
251
- function De(a, n, t) {
252
- var e = fe(a, t);
253
- return e !== void 0 ? e : fe(n, t);
271
+ function Ue(a, t, n) {
272
+ var e = fe(a, n);
273
+ return e !== void 0 ? e : fe(t, n);
254
274
  }
255
- function nt(a, n, t) {
256
- for (var e in n)
257
- e !== "__proto__" && e !== "constructor" && (e in a ? typeof a[e] == "string" || a[e] instanceof String || typeof n[e] == "string" || n[e] instanceof String ? t && (a[e] = n[e]) : nt(a[e], n[e], t) : a[e] = n[e]);
275
+ function st(a, t, n) {
276
+ for (var e in t)
277
+ 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]) : st(a[e], t[e], n) : a[e] = t[e]);
258
278
  return a;
259
279
  }
260
- function G(a) {
280
+ function Q(a) {
261
281
  return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
262
282
  }
263
- var Ot = {
283
+ var Ct = {
264
284
  "&": "&amp;",
265
285
  "<": "&lt;",
266
286
  ">": "&gt;",
@@ -268,21 +288,21 @@ var Ot = {
268
288
  "'": "&#39;",
269
289
  "/": "&#x2F;"
270
290
  };
271
- function kt(a) {
272
- return typeof a == "string" ? a.replace(/[&<>"'\/]/g, function(n) {
273
- return Ot[n];
291
+ function Nt(a) {
292
+ return typeof a == "string" ? a.replace(/[&<>"'\/]/g, function(t) {
293
+ return Ct[t];
274
294
  }) : a;
275
295
  }
276
- var me = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, Lt = function(a) {
277
- ve(n, a);
278
- function n(t) {
296
+ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, At = function(a) {
297
+ me(t, a);
298
+ function t(n) {
279
299
  var e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
280
300
  ns: ["translation"],
281
301
  defaultNS: "translation"
282
302
  };
283
- return M(this, n), e = ne(this, Y(n).call(this)), me && K.call(X(e)), e.data = t || {}, e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e;
303
+ return H(this, t), e = ee(this, G(t).call(this)), ye && z.call(W(e)), e.data = n || {}, e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e;
284
304
  }
285
- return q(n, [{
305
+ return M(t, [{
286
306
  key: "addNamespaces",
287
307
  value: function(e) {
288
308
  this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
@@ -306,8 +326,8 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
306
326
  silent: !1
307
327
  }, u = this.options.keySeparator;
308
328
  u === void 0 && (u = ".");
309
- var l = [e, r];
310
- i && (l = l.concat(u ? i.split(u) : i)), e.indexOf(".") > -1 && (l = e.split("."), o = r, r = l[1]), this.addNamespaces(r), Fe(this.data, l, o), s.silent || this.emit("added", e, r, i, o);
329
+ var f = [e, r];
330
+ 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);
311
331
  }
312
332
  }, {
313
333
  key: "addResources",
@@ -326,10 +346,10 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
326
346
  value: function(e, r, i, o, s) {
327
347
  var u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
328
348
  silent: !1
329
- }, l = [e, r];
330
- e.indexOf(".") > -1 && (l = e.split("."), o = i, i = r, r = l[1]), this.addNamespaces(r);
331
- var c = fe(this.data, l) || {};
332
- o ? nt(c, i, s) : c = F({}, c, i), Fe(this.data, l, c), u.silent || this.emit("added", e, r, i);
349
+ }, f = [e, r];
350
+ e.indexOf(".") > -1 && (f = e.split("."), o = i, i = r, r = f[1]), this.addNamespaces(r);
351
+ var c = fe(this.data, f) || {};
352
+ o ? st(c, i, s) : c = D({}, c, i), _e(this.data, f, c), u.silent || this.emit("added", e, r, i);
333
353
  }
334
354
  }, {
335
355
  key: "removeResourceBundle",
@@ -344,7 +364,7 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
344
364
  }, {
345
365
  key: "getResourceBundle",
346
366
  value: function(e, r) {
347
- return r || (r = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? F({}, {}, this.getResource(e, r)) : this.getResource(e, r);
367
+ return r || (r = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? D({}, {}, this.getResource(e, r)) : this.getResource(e, r);
348
368
  }
349
369
  }, {
350
370
  key: "getDataByLanguage",
@@ -356,25 +376,25 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
356
376
  value: function() {
357
377
  return this.data;
358
378
  }
359
- }]), n;
360
- }(K), rt = {
379
+ }]), t;
380
+ }(z), ut = {
361
381
  processors: {},
362
- addPostProcessor: function(n) {
363
- this.processors[n.name] = n;
382
+ addPostProcessor: function(t) {
383
+ this.processors[t.name] = t;
364
384
  },
365
- handle: function(n, t, e, r, i) {
385
+ handle: function(t, n, e, r, i) {
366
386
  var o = this;
367
- return n.forEach(function(s) {
368
- o.processors[s] && (t = o.processors[s].process(t, e, r, i));
369
- }), t;
387
+ return t.forEach(function(s) {
388
+ o.processors[s] && (n = o.processors[s].process(n, e, r, i));
389
+ }), n;
370
390
  }
371
- }, Ie = {}, Ue = function(a) {
372
- ve(n, a);
373
- function n(t) {
391
+ }, Be = {}, He = function(a) {
392
+ me(t, a);
393
+ function t(n) {
374
394
  var e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
375
- return M(this, n), e = ne(this, Y(n).call(this)), me && K.call(X(e)), St(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, X(e)), e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e.logger = $.create("translator"), e;
395
+ return H(this, t), e = ee(this, G(t).call(this)), ye && z.call(W(e)), jt(["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;
376
396
  }
377
- return q(n, [{
397
+ return M(t, [{
378
398
  key: "changeLanguage",
379
399
  value: function(e) {
380
400
  e && (this.language = e);
@@ -400,8 +420,8 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
400
420
  key: e,
401
421
  namespaces: s
402
422
  };
403
- var l = e.split(i);
404
- (i !== o || i === o && this.options.ns.indexOf(l[0]) > -1) && (s = l.shift()), e = l.join(o);
423
+ var f = e.split(i);
424
+ (i !== o || i === o && this.options.ns.indexOf(f[0]) > -1) && (s = f.shift()), e = f.join(o);
405
425
  }
406
426
  return typeof s == "string" && (s = [s]), {
407
427
  key: e,
@@ -415,59 +435,59 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
415
435
  if (I(r) !== "object" && this.options.overloadTranslationOptionHandler && (r = this.options.overloadTranslationOptionHandler(arguments)), r || (r = {}), e == null)
416
436
  return "";
417
437
  Array.isArray(e) || (e = [String(e)]);
418
- var s = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator, u = this.extractFromKey(e[e.length - 1], r), l = u.key, c = u.namespaces, p = c[c.length - 1], v = r.lng || this.language, m = r.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
438
+ var s = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator, u = this.extractFromKey(e[e.length - 1], r), f = u.key, c = u.namespaces, p = c[c.length - 1], v = r.lng || this.language, m = r.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
419
439
  if (v && v.toLowerCase() === "cimode") {
420
440
  if (m) {
421
441
  var d = r.nsSeparator || this.options.nsSeparator;
422
- return p + d + l;
442
+ return p + d + f;
423
443
  }
424
- return l;
444
+ return f;
425
445
  }
426
- var y = this.resolve(e, r), h = y && y.res, b = y && y.usedKey || l, S = y && y.exactUsedKey || l, x = Object.prototype.toString.apply(h), R = ["[object Number]", "[object Function]", "[object RegExp]"], k = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, P = typeof h != "string" && typeof h != "boolean" && typeof h != "number";
427
- if (w && h && P && R.indexOf(x) < 0 && !(typeof k == "string" && x === "[object Array]")) {
446
+ var y = this.resolve(e, r), h = y && y.res, b = y && y.usedKey || f, O = y && y.exactUsedKey || f, S = Object.prototype.toString.apply(h), 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 h != "string" && typeof h != "boolean" && typeof h != "number";
447
+ if (w && h && j && A.indexOf(S) < 0 && !(typeof k == "string" && S === "[object Array]")) {
428
448
  if (!r.returnObjects && !this.options.returnObjects)
429
- return this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, h, r) : "key '".concat(l, " (").concat(this.language, ")' returned an object instead of string.");
449
+ return this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, h, r) : "key '".concat(f, " (").concat(this.language, ")' returned an object instead of string.");
430
450
  if (s) {
431
- var A = x === "[object Array]", N = A ? [] : {}, C = A ? S : b;
432
- for (var j in h)
433
- if (Object.prototype.hasOwnProperty.call(h, j)) {
434
- var z = "".concat(C).concat(s).concat(j);
435
- N[j] = this.translate(z, F({}, r, {
451
+ var R = S === "[object Array]", C = R ? [] : {}, L = R ? O : b;
452
+ for (var E in h)
453
+ if (Object.prototype.hasOwnProperty.call(h, E)) {
454
+ var K = "".concat(L).concat(s).concat(E);
455
+ C[E] = this.translate(K, D({}, r, {
436
456
  joinArrays: !1,
437
457
  ns: c
438
- })), N[j] === z && (N[j] = h[j]);
458
+ })), C[E] === K && (C[E] = h[E]);
439
459
  }
440
- h = N;
460
+ h = C;
441
461
  }
442
- } else if (w && typeof k == "string" && x === "[object Array]")
462
+ } else if (w && typeof k == "string" && S === "[object Array]")
443
463
  h = h.join(k), h && (h = this.extendTranslation(h, e, r, i));
444
464
  else {
445
- var B = !1, f = !1, g = r.count !== void 0 && typeof r.count != "string", O = n.hasDefaultValue(r), T = g ? this.pluralResolver.getSuffix(v, r.count) : "", E = r["defaultValue".concat(T)] || r.defaultValue;
446
- !this.isValidLookup(h) && O && (B = !0, h = E), this.isValidLookup(h) || (f = !0, h = l);
447
- var L = O && E !== h && this.options.updateMissing;
448
- if (f || B || L) {
449
- if (this.logger.log(L ? "updateKey" : "missingKey", v, p, l, L ? E : h), s) {
450
- var V = this.resolve(l, F({}, r, {
465
+ var U = !1, l = !1, g = r.count !== void 0 && typeof r.count != "string", x = t.hasDefaultValue(r), T = g ? this.pluralResolver.getSuffix(v, r.count) : "", N = r["defaultValue".concat(T)] || r.defaultValue;
466
+ !this.isValidLookup(h) && x && (U = !0, h = N), this.isValidLookup(h) || (l = !0, h = f);
467
+ var P = x && N !== h && this.options.updateMissing;
468
+ if (l || U || P) {
469
+ if (this.logger.log(P ? "updateKey" : "missingKey", v, p, f, P ? N : h), s) {
470
+ var q = this.resolve(f, D({}, r, {
451
471
  keySeparator: !1
452
472
  }));
453
- V && V.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
473
+ q && q.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
454
474
  }
455
- var D = [], H = this.languageUtils.getFallbackCodes(this.options.fallbackLng, r.lng || this.language);
456
- if (this.options.saveMissingTo === "fallback" && H && H[0])
457
- for (var J = 0; J < H.length; J++)
458
- D.push(H[J]);
475
+ var _ = [], B = this.languageUtils.getFallbackCodes(this.options.fallbackLng, r.lng || this.language);
476
+ if (this.options.saveMissingTo === "fallback" && B && B[0])
477
+ for (var X = 0; X < B.length; X++)
478
+ _.push(B[X]);
459
479
  else
460
- this.options.saveMissingTo === "all" ? D = this.languageUtils.toResolveHierarchy(r.lng || this.language) : D.push(r.lng || this.language);
461
- var je = function(Q, be, Ce) {
462
- o.options.missingKeyHandler ? o.options.missingKeyHandler(Q, p, be, L ? Ce : h, L, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(Q, p, be, L ? Ce : h, L, r), o.emit("missingKey", Q, p, be, h);
480
+ this.options.saveMissingTo === "all" ? _ = this.languageUtils.toResolveHierarchy(r.lng || this.language) : _.push(r.lng || this.language);
481
+ var Te = function(J, we, Fe) {
482
+ o.options.missingKeyHandler ? o.options.missingKeyHandler(J, p, we, P ? Fe : h, P, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(J, p, we, P ? Fe : h, P, r), o.emit("missingKey", J, p, we, h);
463
483
  };
464
- this.options.saveMissing && (this.options.saveMissingPlurals && g ? D.forEach(function(ye) {
465
- o.pluralResolver.getSuffixes(ye).forEach(function(Q) {
466
- je([ye], l + Q, r["defaultValue".concat(Q)] || E);
484
+ this.options.saveMissing && (this.options.saveMissingPlurals && g ? _.forEach(function(be) {
485
+ o.pluralResolver.getSuffixes(be).forEach(function(J) {
486
+ Te([be], f + J, r["defaultValue".concat(J)] || N);
467
487
  });
468
- }) : je(D, l, E));
488
+ }) : Te(_, f, N));
469
489
  }
470
- h = this.extendTranslation(h, e, r, y, i), f && h === l && this.options.appendNamespaceToMissingKey && (h = "".concat(p, ":").concat(l)), f && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(h));
490
+ h = this.extendTranslation(h, e, r, y, i), l && h === f && this.options.appendNamespaceToMissingKey && (h = "".concat(p, ":").concat(f)), l && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(h));
471
491
  }
472
492
  return h;
473
493
  }
@@ -480,34 +500,34 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
480
500
  resolved: o
481
501
  });
482
502
  else if (!i.skipInterpolation) {
483
- i.interpolation && this.interpolator.init(F({}, i, {
484
- interpolation: F({}, this.options.interpolation, i.interpolation)
503
+ i.interpolation && this.interpolator.init(D({}, i, {
504
+ interpolation: D({}, this.options.interpolation, i.interpolation)
485
505
  }));
486
- var l = i.interpolation && i.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, c;
487
- if (l) {
506
+ var f = i.interpolation && i.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, c;
507
+ if (f) {
488
508
  var p = e.match(this.interpolator.nestingRegexp);
489
509
  c = p && p.length;
490
510
  }
491
511
  var v = i.replace && typeof i.replace != "string" ? i.replace : i;
492
- if (this.options.interpolation.defaultVariables && (v = F({}, this.options.interpolation.defaultVariables, v)), e = this.interpolator.interpolate(e, v, i.lng || this.language, i), l) {
512
+ if (this.options.interpolation.defaultVariables && (v = D({}, this.options.interpolation.defaultVariables, v)), e = this.interpolator.interpolate(e, v, i.lng || this.language, i), f) {
493
513
  var m = e.match(this.interpolator.nestingRegexp), d = m && m.length;
494
514
  c < d && (i.nest = !1);
495
515
  }
496
516
  i.nest !== !1 && (e = this.interpolator.nest(e, function() {
497
- for (var b = arguments.length, S = new Array(b), x = 0; x < b; x++)
498
- S[x] = arguments[x];
499
- 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]));
517
+ for (var b = arguments.length, O = new Array(b), S = 0; S < b; S++)
518
+ O[S] = arguments[S];
519
+ return s && s[0] === O[0] && !i.context ? (u.logger.warn("It seems you are nesting recursively key: ".concat(O[0], " in key: ").concat(r[0])), null) : u.translate.apply(u, O.concat([r]));
500
520
  }, i)), i.interpolation && this.interpolator.reset();
501
521
  }
502
522
  var y = i.postProcess || this.options.postProcess, h = typeof y == "string" ? [y] : y;
503
- return e != null && h && h.length && i.applyPostProcessor !== !1 && (e = rt.handle(h, e, r, this.options && this.options.postProcessPassResolved ? F({
523
+ return e != null && h && h.length && i.applyPostProcessor !== !1 && (e = ut.handle(h, e, r, this.options && this.options.postProcessPassResolved ? D({
504
524
  i18nResolved: o
505
525
  }, i) : i, this)), e;
506
526
  }
507
527
  }, {
508
528
  key: "resolve",
509
529
  value: function(e) {
510
- var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o, s, u, l, c;
530
+ var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o, s, u, f, c;
511
531
  return typeof e == "string" && (e = [e]), e.forEach(function(p) {
512
532
  if (!r.isValidLookup(o)) {
513
533
  var v = r.extractFromKey(p, i), m = v.key;
@@ -515,19 +535,19 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
515
535
  var d = v.namespaces;
516
536
  r.options.fallbackNS && (d = d.concat(r.options.fallbackNS));
517
537
  var y = i.count !== void 0 && typeof i.count != "string", h = i.context !== void 0 && typeof i.context == "string" && i.context !== "", b = i.lngs ? i.lngs : r.languageUtils.toResolveHierarchy(i.lng || r.language, i.fallbackLng);
518
- d.forEach(function(S) {
519
- r.isValidLookup(o) || (c = S, !Ie["".concat(b[0], "-").concat(S)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(c) && (Ie["".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) {
538
+ d.forEach(function(O) {
539
+ r.isValidLookup(o) || (c = O, !Be["".concat(b[0], "-").concat(O)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(c) && (Be["".concat(b[0], "-").concat(O)] = !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(S) {
520
540
  if (!r.isValidLookup(o)) {
521
- l = x;
522
- var R = m, k = [R];
541
+ f = S;
542
+ var A = m, k = [A];
523
543
  if (r.i18nFormat && r.i18nFormat.addLookupKeys)
524
- r.i18nFormat.addLookupKeys(k, m, x, S, i);
544
+ r.i18nFormat.addLookupKeys(k, m, S, O, i);
525
545
  else {
526
546
  var w;
527
- y && (w = r.pluralResolver.getSuffix(x, i.count)), y && h && k.push(R + w), h && k.push(R += "".concat(r.options.contextSeparator).concat(i.context)), y && k.push(R += w);
547
+ y && (w = r.pluralResolver.getSuffix(S, i.count)), y && h && k.push(A + w), h && k.push(A += "".concat(r.options.contextSeparator).concat(i.context)), y && k.push(A += w);
528
548
  }
529
- for (var P; P = k.pop(); )
530
- r.isValidLookup(o) || (u = P, o = r.getResource(x, S, P, i));
549
+ for (var j; j = k.pop(); )
550
+ r.isValidLookup(o) || (u = j, o = r.getResource(S, O, j, i));
531
551
  }
532
552
  }));
533
553
  });
@@ -536,7 +556,7 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
536
556
  res: o,
537
557
  usedKey: s,
538
558
  exactUsedKey: u,
539
- usedLng: l,
559
+ usedLng: f,
540
560
  usedNS: c
541
561
  };
542
562
  }
@@ -560,65 +580,65 @@ var me = typeof window < "u" && window.navigator && window.navigator.userAgent &
560
580
  return !0;
561
581
  return !1;
562
582
  }
563
- }]), n;
564
- }(K);
565
- function we(a) {
583
+ }]), t;
584
+ }(z);
585
+ function Oe(a) {
566
586
  return a.charAt(0).toUpperCase() + a.slice(1);
567
587
  }
568
- var Pt = function() {
569
- function a(n) {
570
- M(this, a), this.options = n, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
588
+ var Tt = function() {
589
+ function a(t) {
590
+ H(this, a), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = V.create("languageUtils");
571
591
  }
572
- return q(a, [{
592
+ return M(a, [{
573
593
  key: "getScriptPartFromCode",
574
- value: function(t) {
575
- if (!t || t.indexOf("-") < 0)
594
+ value: function(n) {
595
+ if (!n || n.indexOf("-") < 0)
576
596
  return null;
577
- var e = t.split("-");
597
+ var e = n.split("-");
578
598
  return e.length === 2 || (e.pop(), e[e.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(e.join("-"));
579
599
  }
580
600
  }, {
581
601
  key: "getLanguagePartFromCode",
582
- value: function(t) {
583
- if (!t || t.indexOf("-") < 0)
584
- return t;
585
- var e = t.split("-");
602
+ value: function(n) {
603
+ if (!n || n.indexOf("-") < 0)
604
+ return n;
605
+ var e = n.split("-");
586
606
  return this.formatLanguageCode(e[0]);
587
607
  }
588
608
  }, {
589
609
  key: "formatLanguageCode",
590
- value: function(t) {
591
- if (typeof t == "string" && t.indexOf("-") > -1) {
592
- var e = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = t.split("-");
610
+ value: function(n) {
611
+ if (typeof n == "string" && n.indexOf("-") > -1) {
612
+ var e = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = n.split("-");
593
613
  return this.options.lowerCaseLng ? r = r.map(function(i) {
594
614
  return i.toLowerCase();
595
- }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = we(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = we(r[1].toLowerCase())), e.indexOf(r[2].toLowerCase()) > -1 && (r[2] = we(r[2].toLowerCase()))), r.join("-");
615
+ }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Oe(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Oe(r[1].toLowerCase())), e.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Oe(r[2].toLowerCase()))), r.join("-");
596
616
  }
597
- return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
617
+ return this.options.cleanCode || this.options.lowerCaseLng ? n.toLowerCase() : n;
598
618
  }
599
619
  }, {
600
620
  key: "isWhitelisted",
601
- value: function(t) {
602
- return this.logger.deprecate("languageUtils.isWhitelisted", `function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`), this.isSupportedCode(t);
621
+ value: function(n) {
622
+ return this.logger.deprecate("languageUtils.isWhitelisted", `function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`), this.isSupportedCode(n);
603
623
  }
604
624
  }, {
605
625
  key: "isSupportedCode",
606
- value: function(t) {
607
- return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (t = this.getLanguagePartFromCode(t)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(t) > -1;
626
+ value: function(n) {
627
+ return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (n = this.getLanguagePartFromCode(n)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(n) > -1;
608
628
  }
609
629
  }, {
610
630
  key: "getBestMatchFromCodes",
611
- value: function(t) {
631
+ value: function(n) {
612
632
  var e = this;
613
- if (!t)
633
+ if (!n)
614
634
  return null;
615
635
  var r;
616
- return t.forEach(function(i) {
636
+ return n.forEach(function(i) {
617
637
  if (!r) {
618
638
  var o = e.formatLanguageCode(i);
619
639
  (!e.options.supportedLngs || e.isSupportedCode(o)) && (r = o);
620
640
  }
621
- }), !r && this.options.supportedLngs && t.forEach(function(i) {
641
+ }), !r && this.options.supportedLngs && n.forEach(function(i) {
622
642
  if (!r) {
623
643
  var o = e.getLanguagePartFromCode(i);
624
644
  if (e.isSupportedCode(o))
@@ -632,28 +652,28 @@ var Pt = function() {
632
652
  }
633
653
  }, {
634
654
  key: "getFallbackCodes",
635
- value: function(t, e) {
636
- if (!t)
655
+ value: function(n, e) {
656
+ if (!n)
637
657
  return [];
638
- if (typeof t == "function" && (t = t(e)), typeof t == "string" && (t = [t]), Object.prototype.toString.apply(t) === "[object Array]")
639
- return t;
658
+ if (typeof n == "function" && (n = n(e)), typeof n == "string" && (n = [n]), Object.prototype.toString.apply(n) === "[object Array]")
659
+ return n;
640
660
  if (!e)
641
- return t.default || [];
642
- var r = t[e];
643
- return r || (r = t[this.getScriptPartFromCode(e)]), r || (r = t[this.formatLanguageCode(e)]), r || (r = t[this.getLanguagePartFromCode(e)]), r || (r = t.default), r || [];
661
+ return n.default || [];
662
+ var r = n[e];
663
+ return r || (r = n[this.getScriptPartFromCode(e)]), r || (r = n[this.formatLanguageCode(e)]), r || (r = n[this.getLanguagePartFromCode(e)]), r || (r = n.default), r || [];
644
664
  }
645
665
  }, {
646
666
  key: "toResolveHierarchy",
647
- value: function(t, e) {
648
- var r = this, i = this.getFallbackCodes(e || this.options.fallbackLng || [], t), o = [], s = function(l) {
649
- !l || (r.isSupportedCode(l) ? o.push(l) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)));
667
+ value: function(n, e) {
668
+ var r = this, i = this.getFallbackCodes(e || this.options.fallbackLng || [], n), o = [], s = function(f) {
669
+ !f || (r.isSupportedCode(f) ? o.push(f) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(f)));
650
670
  };
651
- return typeof t == "string" && t.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && s(this.formatLanguageCode(t)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && s(this.getScriptPartFromCode(t)), this.options.load !== "currentOnly" && s(this.getLanguagePartFromCode(t))) : typeof t == "string" && s(this.formatLanguageCode(t)), i.forEach(function(u) {
671
+ return typeof n == "string" && n.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && s(this.formatLanguageCode(n)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && s(this.getScriptPartFromCode(n)), this.options.load !== "currentOnly" && s(this.getLanguagePartFromCode(n))) : typeof n == "string" && s(this.formatLanguageCode(n)), i.forEach(function(u) {
652
672
  o.indexOf(u) < 0 && s(r.formatLanguageCode(u));
653
673
  }), o;
654
674
  }
655
675
  }]), a;
656
- }(), Et = [{
676
+ }(), Ft = [{
657
677
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
658
678
  nr: [1, 2],
659
679
  fc: 1
@@ -745,125 +765,125 @@ var Pt = function() {
745
765
  lngs: ["he", "iw"],
746
766
  nr: [1, 2, 20, 21],
747
767
  fc: 22
748
- }], Rt = {
749
- 1: function(n) {
750
- return Number(n > 1);
768
+ }], Dt = {
769
+ 1: function(t) {
770
+ return Number(t > 1);
751
771
  },
752
- 2: function(n) {
753
- return Number(n != 1);
772
+ 2: function(t) {
773
+ return Number(t != 1);
754
774
  },
755
- 3: function(n) {
775
+ 3: function(t) {
756
776
  return 0;
757
777
  },
758
- 4: function(n) {
759
- return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);
778
+ 4: function(t) {
779
+ return Number(t % 10 == 1 && t % 100 != 11 ? 0 : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) ? 1 : 2);
760
780
  },
761
- 5: function(n) {
762
- return Number(n == 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5);
781
+ 5: function(t) {
782
+ return Number(t == 0 ? 0 : t == 1 ? 1 : t == 2 ? 2 : t % 100 >= 3 && t % 100 <= 10 ? 3 : t % 100 >= 11 ? 4 : 5);
763
783
  },
764
- 6: function(n) {
765
- return Number(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2);
784
+ 6: function(t) {
785
+ return Number(t == 1 ? 0 : t >= 2 && t <= 4 ? 1 : 2);
766
786
  },
767
- 7: function(n) {
768
- return Number(n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);
787
+ 7: function(t) {
788
+ return Number(t == 1 ? 0 : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) ? 1 : 2);
769
789
  },
770
- 8: function(n) {
771
- return Number(n == 1 ? 0 : n == 2 ? 1 : n != 8 && n != 11 ? 2 : 3);
790
+ 8: function(t) {
791
+ return Number(t == 1 ? 0 : t == 2 ? 1 : t != 8 && t != 11 ? 2 : 3);
772
792
  },
773
- 9: function(n) {
774
- return Number(n >= 2);
793
+ 9: function(t) {
794
+ return Number(t >= 2);
775
795
  },
776
- 10: function(n) {
777
- return Number(n == 1 ? 0 : n == 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4);
796
+ 10: function(t) {
797
+ return Number(t == 1 ? 0 : t == 2 ? 1 : t < 7 ? 2 : t < 11 ? 3 : 4);
778
798
  },
779
- 11: function(n) {
780
- return Number(n == 1 || n == 11 ? 0 : n == 2 || n == 12 ? 1 : n > 2 && n < 20 ? 2 : 3);
799
+ 11: function(t) {
800
+ return Number(t == 1 || t == 11 ? 0 : t == 2 || t == 12 ? 1 : t > 2 && t < 20 ? 2 : 3);
781
801
  },
782
- 12: function(n) {
783
- return Number(n % 10 != 1 || n % 100 == 11);
802
+ 12: function(t) {
803
+ return Number(t % 10 != 1 || t % 100 == 11);
784
804
  },
785
- 13: function(n) {
786
- return Number(n !== 0);
805
+ 13: function(t) {
806
+ return Number(t !== 0);
787
807
  },
788
- 14: function(n) {
789
- return Number(n == 1 ? 0 : n == 2 ? 1 : n == 3 ? 2 : 3);
808
+ 14: function(t) {
809
+ return Number(t == 1 ? 0 : t == 2 ? 1 : t == 3 ? 2 : 3);
790
810
  },
791
- 15: function(n) {
792
- return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);
811
+ 15: function(t) {
812
+ return Number(t % 10 == 1 && t % 100 != 11 ? 0 : t % 10 >= 2 && (t % 100 < 10 || t % 100 >= 20) ? 1 : 2);
793
813
  },
794
- 16: function(n) {
795
- return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n !== 0 ? 1 : 2);
814
+ 16: function(t) {
815
+ return Number(t % 10 == 1 && t % 100 != 11 ? 0 : t !== 0 ? 1 : 2);
796
816
  },
797
- 17: function(n) {
798
- return Number(n == 1 || n % 10 == 1 && n % 100 != 11 ? 0 : 1);
817
+ 17: function(t) {
818
+ return Number(t == 1 || t % 10 == 1 && t % 100 != 11 ? 0 : 1);
799
819
  },
800
- 18: function(n) {
801
- return Number(n == 0 ? 0 : n == 1 ? 1 : 2);
820
+ 18: function(t) {
821
+ return Number(t == 0 ? 0 : t == 1 ? 1 : 2);
802
822
  },
803
- 19: function(n) {
804
- return Number(n == 1 ? 0 : n == 0 || n % 100 > 1 && n % 100 < 11 ? 1 : n % 100 > 10 && n % 100 < 20 ? 2 : 3);
823
+ 19: function(t) {
824
+ return Number(t == 1 ? 0 : t == 0 || t % 100 > 1 && t % 100 < 11 ? 1 : t % 100 > 10 && t % 100 < 20 ? 2 : 3);
805
825
  },
806
- 20: function(n) {
807
- return Number(n == 1 ? 0 : n == 0 || n % 100 > 0 && n % 100 < 20 ? 1 : 2);
826
+ 20: function(t) {
827
+ return Number(t == 1 ? 0 : t == 0 || t % 100 > 0 && t % 100 < 20 ? 1 : 2);
808
828
  },
809
- 21: function(n) {
810
- return Number(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0);
829
+ 21: function(t) {
830
+ return Number(t % 100 == 1 ? 1 : t % 100 == 2 ? 2 : t % 100 == 3 || t % 100 == 4 ? 3 : 0);
811
831
  },
812
- 22: function(n) {
813
- return Number(n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3);
832
+ 22: function(t) {
833
+ return Number(t == 1 ? 0 : t == 2 ? 1 : (t < 0 || t > 10) && t % 10 == 0 ? 2 : 3);
814
834
  }
815
835
  };
816
- function jt() {
836
+ function It() {
817
837
  var a = {};
818
- return Et.forEach(function(n) {
819
- n.lngs.forEach(function(t) {
820
- a[t] = {
821
- numbers: n.nr,
822
- plurals: Rt[n.fc]
838
+ return Ft.forEach(function(t) {
839
+ t.lngs.forEach(function(n) {
840
+ a[n] = {
841
+ numbers: t.nr,
842
+ plurals: Dt[t.fc]
823
843
  };
824
844
  });
825
845
  }), a;
826
846
  }
827
- var Ct = function() {
828
- function a(n) {
829
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
830
- M(this, a), this.languageUtils = n, this.options = t, this.logger = $.create("pluralResolver"), this.rules = jt();
847
+ var _t = function() {
848
+ function a(t) {
849
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
850
+ H(this, a), this.languageUtils = t, this.options = n, this.logger = V.create("pluralResolver"), this.rules = It();
831
851
  }
832
- return q(a, [{
852
+ return M(a, [{
833
853
  key: "addRule",
834
- value: function(t, e) {
835
- this.rules[t] = e;
854
+ value: function(n, e) {
855
+ this.rules[n] = e;
836
856
  }
837
857
  }, {
838
858
  key: "getRule",
839
- value: function(t) {
840
- return this.rules[t] || this.rules[this.languageUtils.getLanguagePartFromCode(t)];
859
+ value: function(n) {
860
+ return this.rules[n] || this.rules[this.languageUtils.getLanguagePartFromCode(n)];
841
861
  }
842
862
  }, {
843
863
  key: "needsPlural",
844
- value: function(t) {
845
- var e = this.getRule(t);
864
+ value: function(n) {
865
+ var e = this.getRule(n);
846
866
  return e && e.numbers.length > 1;
847
867
  }
848
868
  }, {
849
869
  key: "getPluralFormsOfKey",
850
- value: function(t, e) {
851
- return this.getSuffixes(t).map(function(r) {
870
+ value: function(n, e) {
871
+ return this.getSuffixes(n).map(function(r) {
852
872
  return e + r;
853
873
  });
854
874
  }
855
875
  }, {
856
876
  key: "getSuffixes",
857
- value: function(t) {
858
- var e = this, r = this.getRule(t);
877
+ value: function(n) {
878
+ var e = this, r = this.getRule(n);
859
879
  return r ? r.numbers.map(function(i) {
860
- return e.getSuffix(t, i);
880
+ return e.getSuffix(n, i);
861
881
  }) : [];
862
882
  }
863
883
  }, {
864
884
  key: "getSuffix",
865
- value: function(t, e) {
866
- var r = this, i = this.getRule(t);
885
+ value: function(n, e) {
886
+ var r = this, i = this.getRule(n);
867
887
  if (i) {
868
888
  var o = i.noAbs ? i.plurals(e) : i.plurals(Math.abs(e)), s = i.numbers[o];
869
889
  this.options.simplifyPluralSuffix && i.numbers.length === 2 && i.numbers[0] === 1 && (s === 2 ? s = "plural" : s === 1 && (s = ""));
@@ -872,25 +892,25 @@ var Ct = function() {
872
892
  };
873
893
  return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? "_plural_".concat(s.toString()) : u() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && i.numbers.length === 2 && i.numbers[0] === 1 ? u() : this.options.prepend && o.toString() ? this.options.prepend + o.toString() : o.toString();
874
894
  }
875
- return this.logger.warn("no plural rule found for: ".concat(t)), "";
895
+ return this.logger.warn("no plural rule found for: ".concat(n)), "";
876
896
  }
877
897
  }]), a;
878
- }(), At = function() {
898
+ }(), Ut = function() {
879
899
  function a() {
880
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
881
- M(this, a), this.logger = $.create("interpolator"), this.options = n, this.format = n.interpolation && n.interpolation.format || function(t) {
882
- return t;
883
- }, this.init(n);
900
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
901
+ H(this, a), this.logger = V.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(n) {
902
+ return n;
903
+ }, this.init(t);
884
904
  }
885
- return q(a, [{
905
+ return M(a, [{
886
906
  key: "init",
887
907
  value: function() {
888
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
889
- t.interpolation || (t.interpolation = {
908
+ var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
909
+ n.interpolation || (n.interpolation = {
890
910
  escapeValue: !0
891
911
  });
892
- var e = t.interpolation;
893
- this.escape = e.escape !== void 0 ? e.escape : kt, 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();
912
+ var e = n.interpolation;
913
+ this.escape = e.escape !== void 0 ? e.escape : Nt, 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();
894
914
  }
895
915
  }, {
896
916
  key: "reset",
@@ -900,8 +920,8 @@ var Ct = function() {
900
920
  }, {
901
921
  key: "resetRegExp",
902
922
  value: function() {
903
- var t = "".concat(this.prefix, "(.+?)").concat(this.suffix);
904
- this.regexp = new RegExp(t, "g");
923
+ var n = "".concat(this.prefix, "(.+?)").concat(this.suffix);
924
+ this.regexp = new RegExp(n, "g");
905
925
  var e = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
906
926
  this.regexpUnescape = new RegExp(e, "g");
907
927
  var r = "".concat(this.nestingPrefix, "(.+?)").concat(this.nestingSuffix);
@@ -909,18 +929,18 @@ var Ct = function() {
909
929
  }
910
930
  }, {
911
931
  key: "interpolate",
912
- value: function(t, e, r, i) {
913
- var o = this, s, u, l, c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
932
+ value: function(n, e, r, i) {
933
+ var o = this, s, u, f, c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
914
934
  function p(h) {
915
935
  return h.replace(/\$/g, "$$$$");
916
936
  }
917
937
  var v = function(b) {
918
938
  if (b.indexOf(o.formatSeparator) < 0) {
919
- var S = De(e, c, b);
920
- return o.alwaysFormat ? o.format(S, void 0, r) : S;
939
+ var O = Ue(e, c, b);
940
+ return o.alwaysFormat ? o.format(O, void 0, r) : O;
921
941
  }
922
- var x = b.split(o.formatSeparator), R = x.shift().trim(), k = x.join(o.formatSeparator).trim();
923
- return o.format(De(e, c, R), k, r, i);
942
+ var S = b.split(o.formatSeparator), A = S.shift().trim(), k = S.join(o.formatSeparator).trim();
943
+ return o.format(Ue(e, c, A), k, r, i);
924
944
  };
925
945
  this.resetRegExp();
926
946
  var m = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, d = i && i.interpolation && i.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, y = [{
@@ -935,42 +955,42 @@ var Ct = function() {
935
955
  }
936
956
  }];
937
957
  return y.forEach(function(h) {
938
- for (l = 0; s = h.regex.exec(t); ) {
958
+ for (f = 0; s = h.regex.exec(n); ) {
939
959
  if (u = v(s[1].trim()), u === void 0)
940
960
  if (typeof m == "function") {
941
- var b = m(t, s, i);
961
+ var b = m(n, s, i);
942
962
  u = typeof b == "string" ? b : "";
943
963
  } else if (d) {
944
964
  u = s[0];
945
965
  continue;
946
966
  } else
947
- o.logger.warn("missed to pass in variable ".concat(s[1], " for interpolating ").concat(t)), u = "";
967
+ o.logger.warn("missed to pass in variable ".concat(s[1], " for interpolating ").concat(n)), u = "";
948
968
  else
949
- typeof u != "string" && !o.useRawValueToEscape && (u = _e(u));
950
- if (t = t.replace(s[0], h.safeValue(u)), h.regex.lastIndex = 0, l++, l >= o.maxReplaces)
969
+ typeof u != "string" && !o.useRawValueToEscape && (u = Ie(u));
970
+ if (n = n.replace(s[0], h.safeValue(u)), h.regex.lastIndex = 0, f++, f >= o.maxReplaces)
951
971
  break;
952
972
  }
953
- }), t;
973
+ }), n;
954
974
  }
955
975
  }, {
956
976
  key: "nest",
957
- value: function(t, e) {
958
- var r = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, s, u = F({}, i);
977
+ value: function(n, e) {
978
+ var r = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, s, u = D({}, i);
959
979
  u.applyPostProcessor = !1, delete u.defaultValue;
960
- function l(m, d) {
980
+ function f(m, d) {
961
981
  var y = this.nestingOptionsSeparator;
962
982
  if (m.indexOf(y) < 0)
963
983
  return m;
964
984
  var h = m.split(new RegExp("".concat(y, "[ ]*{"))), b = "{".concat(h[1]);
965
985
  m = h[0], b = this.interpolate(b, u), b = b.replace(/'/g, '"');
966
986
  try {
967
- u = JSON.parse(b), d && (u = F({}, d, u));
968
- } catch (S) {
969
- return this.logger.warn("failed parsing options string in nesting for key ".concat(m), S), "".concat(m).concat(y).concat(b);
987
+ u = JSON.parse(b), d && (u = D({}, d, u));
988
+ } catch (O) {
989
+ return this.logger.warn("failed parsing options string in nesting for key ".concat(m), O), "".concat(m).concat(y).concat(b);
970
990
  }
971
991
  return delete u.defaultValue, m;
972
992
  }
973
- for (; o = this.nestingRegexp.exec(t); ) {
993
+ for (; o = this.nestingRegexp.exec(n); ) {
974
994
  var c = [], p = !1;
975
995
  if (o[0].includes(this.formatSeparator) && !/{.*}/.test(o[1])) {
976
996
  var v = o[1].split(this.formatSeparator).map(function(m) {
@@ -978,44 +998,44 @@ var Ct = function() {
978
998
  });
979
999
  o[1] = v.shift(), c = v, p = !0;
980
1000
  }
981
- if (s = e(l.call(this, o[1].trim(), u), u), s && o[0] === t && typeof s != "string")
1001
+ if (s = e(f.call(this, o[1].trim(), u), u), s && o[0] === n && typeof s != "string")
982
1002
  return s;
983
- typeof s != "string" && (s = _e(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(t)), s = ""), p && (s = c.reduce(function(m, d) {
1003
+ 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) {
984
1004
  return r.format(m, d, i.lng, i);
985
- }, s.trim())), t = t.replace(o[0], s), this.regexp.lastIndex = 0;
1005
+ }, s.trim())), n = n.replace(o[0], s), this.regexp.lastIndex = 0;
986
1006
  }
987
- return t;
1007
+ return n;
988
1008
  }
989
1009
  }]), a;
990
1010
  }();
991
- function Nt(a, n) {
992
- for (var t = a.indexOf(n); t !== -1; )
993
- a.splice(t, 1), t = a.indexOf(n);
1011
+ function Bt(a, t) {
1012
+ for (var n = a.indexOf(t); n !== -1; )
1013
+ a.splice(n, 1), n = a.indexOf(t);
994
1014
  }
995
- var Tt = function(a) {
996
- ve(n, a);
997
- function n(t, e, r) {
1015
+ var Ht = function(a) {
1016
+ me(t, a);
1017
+ function t(n, e, r) {
998
1018
  var i, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
999
- return M(this, n), i = ne(this, Y(n).call(this)), me && K.call(X(i)), i.backend = t, i.store = e, i.services = r, i.languageUtils = r.languageUtils, i.options = o, i.logger = $.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, o.backend, o), i;
1019
+ return H(this, t), i = ee(this, G(t).call(this)), ye && 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
1020
  }
1001
- return q(n, [{
1021
+ return M(t, [{
1002
1022
  key: "queueLoad",
1003
1023
  value: function(e, r, i, o) {
1004
- var s = this, u = [], l = [], c = [], p = [];
1024
+ var s = this, u = [], f = [], c = [], p = [];
1005
1025
  return e.forEach(function(v) {
1006
1026
  var m = !0;
1007
1027
  r.forEach(function(d) {
1008
1028
  var y = "".concat(v, "|").concat(d);
1009
- !i.reload && s.store.hasResourceBundle(v, d) ? s.state[y] = 2 : s.state[y] < 0 || (s.state[y] === 1 ? l.indexOf(y) < 0 && l.push(y) : (s.state[y] = 1, m = !1, l.indexOf(y) < 0 && l.push(y), u.indexOf(y) < 0 && u.push(y), p.indexOf(d) < 0 && p.push(d)));
1029
+ !i.reload && s.store.hasResourceBundle(v, d) ? s.state[y] = 2 : s.state[y] < 0 || (s.state[y] === 1 ? f.indexOf(y) < 0 && f.push(y) : (s.state[y] = 1, m = !1, f.indexOf(y) < 0 && f.push(y), u.indexOf(y) < 0 && u.push(y), p.indexOf(d) < 0 && p.push(d)));
1010
1030
  }), m || c.push(v);
1011
- }), (u.length || l.length) && this.queue.push({
1012
- pending: l,
1031
+ }), (u.length || f.length) && this.queue.push({
1032
+ pending: f,
1013
1033
  loaded: {},
1014
1034
  errors: [],
1015
1035
  callback: o
1016
1036
  }), {
1017
1037
  toLoad: u,
1018
- pending: l,
1038
+ pending: f,
1019
1039
  toLoadLanguages: c,
1020
1040
  toLoadNamespaces: p
1021
1041
  };
@@ -1025,30 +1045,30 @@ var Tt = function(a) {
1025
1045
  value: function(e, r, i) {
1026
1046
  var o = e.split("|"), s = o[0], u = o[1];
1027
1047
  r && this.emit("failedLoading", s, u, r), i && this.store.addResourceBundle(s, u, i), this.state[e] = r ? -1 : 2;
1028
- var l = {};
1048
+ var f = {};
1029
1049
  this.queue.forEach(function(c) {
1030
- xt(c.loaded, [s], u), Nt(c.pending, e), r && c.errors.push(r), c.pending.length === 0 && !c.done && (Object.keys(c.loaded).forEach(function(p) {
1031
- l[p] || (l[p] = []), c.loaded[p].length && c.loaded[p].forEach(function(v) {
1032
- l[p].indexOf(v) < 0 && l[p].push(v);
1050
+ Rt(c.loaded, [s], u), Bt(c.pending, e), r && c.errors.push(r), c.pending.length === 0 && !c.done && (Object.keys(c.loaded).forEach(function(p) {
1051
+ f[p] || (f[p] = []), c.loaded[p].length && c.loaded[p].forEach(function(v) {
1052
+ f[p].indexOf(v) < 0 && f[p].push(v);
1033
1053
  });
1034
1054
  }), c.done = !0, c.errors.length ? c.callback(c.errors) : c.callback());
1035
- }), this.emit("loaded", l), this.queue = this.queue.filter(function(c) {
1055
+ }), this.emit("loaded", f), this.queue = this.queue.filter(function(c) {
1036
1056
  return !c.done;
1037
1057
  });
1038
1058
  }
1039
1059
  }, {
1040
1060
  key: "read",
1041
1061
  value: function(e, r, i) {
1042
- var o = this, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 350, l = arguments.length > 5 ? arguments[5] : void 0;
1062
+ var o = this, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 350, f = arguments.length > 5 ? arguments[5] : void 0;
1043
1063
  return e.length ? this.backend[i](e, r, function(c, p) {
1044
1064
  if (c && p && s < 5) {
1045
1065
  setTimeout(function() {
1046
- o.read.call(o, e, r, i, s + 1, u * 2, l);
1066
+ o.read.call(o, e, r, i, s + 1, u * 2, f);
1047
1067
  }, u);
1048
1068
  return;
1049
1069
  }
1050
- l(c, p);
1051
- }) : l(null, {});
1070
+ f(c, p);
1071
+ }) : f(null, {});
1052
1072
  }
1053
1073
  }, {
1054
1074
  key: "prepareLoading",
@@ -1060,8 +1080,8 @@ var Tt = function(a) {
1060
1080
  var u = this.queueLoad(e, r, o, s);
1061
1081
  if (!u.toLoad.length)
1062
1082
  return u.pending.length || s(), null;
1063
- u.toLoad.forEach(function(l) {
1064
- i.loadOne(l);
1083
+ u.toLoad.forEach(function(f) {
1084
+ i.loadOne(f);
1065
1085
  });
1066
1086
  }
1067
1087
  }, {
@@ -1080,8 +1100,8 @@ var Tt = function(a) {
1080
1100
  key: "loadOne",
1081
1101
  value: function(e) {
1082
1102
  var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = e.split("|"), s = o[0], u = o[1];
1083
- this.read(s, u, "read", void 0, void 0, function(l, c) {
1084
- l && r.logger.warn("".concat(i, "loading namespace ").concat(u, " for language ").concat(s, " failed"), l), !l && c && r.logger.log("".concat(i, "loaded namespace ").concat(u, " for language ").concat(s), c), r.loaded(e, l, c);
1103
+ this.read(s, u, "read", void 0, void 0, function(f, c) {
1104
+ f && r.logger.warn("".concat(i, "loading namespace ").concat(u, " for language ").concat(s, " failed"), f), !f && c && r.logger.log("".concat(i, "loaded namespace ").concat(u, " for language ").concat(s), c), r.loaded(e, f, c);
1085
1105
  });
1086
1106
  }
1087
1107
  }, {
@@ -1092,13 +1112,13 @@ var Tt = function(a) {
1092
1112
  this.logger.warn('did not save key "'.concat(i, '" as the namespace "').concat(r, '" 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!!!");
1093
1113
  return;
1094
1114
  }
1095
- i == null || i === "" || (this.backend && this.backend.create && this.backend.create(e, r, i, o, null, F({}, u, {
1115
+ i == null || i === "" || (this.backend && this.backend.create && this.backend.create(e, r, i, o, null, D({}, u, {
1096
1116
  isUpdate: s
1097
1117
  })), !(!e || !e[0]) && this.store.addResource(e[0], r, i, o));
1098
1118
  }
1099
- }]), n;
1100
- }(K);
1101
- function _t() {
1119
+ }]), t;
1120
+ }(z);
1121
+ function Mt() {
1102
1122
  return {
1103
1123
  debug: !1,
1104
1124
  initImmediate: !0,
@@ -1134,20 +1154,20 @@ function _t() {
1134
1154
  parseMissingKeyHandler: !1,
1135
1155
  appendNamespaceToMissingKey: !1,
1136
1156
  appendNamespaceToCIMode: !1,
1137
- overloadTranslationOptionHandler: function(n) {
1138
- var t = {};
1139
- if (I(n[1]) === "object" && (t = n[1]), typeof n[1] == "string" && (t.defaultValue = n[1]), typeof n[2] == "string" && (t.tDescription = n[2]), I(n[2]) === "object" || I(n[3]) === "object") {
1140
- var e = n[3] || n[2];
1157
+ overloadTranslationOptionHandler: function(t) {
1158
+ var n = {};
1159
+ if (I(t[1]) === "object" && (n = t[1]), typeof t[1] == "string" && (n.defaultValue = t[1]), typeof t[2] == "string" && (n.tDescription = t[2]), I(t[2]) === "object" || I(t[3]) === "object") {
1160
+ var e = t[3] || t[2];
1141
1161
  Object.keys(e).forEach(function(r) {
1142
- t[r] = e[r];
1162
+ n[r] = e[r];
1143
1163
  });
1144
1164
  }
1145
- return t;
1165
+ return n;
1146
1166
  },
1147
1167
  interpolation: {
1148
1168
  escapeValue: !0,
1149
- format: function(n, t, e, r) {
1150
- return n;
1169
+ format: function(t, n, e, r) {
1170
+ return t;
1151
1171
  },
1152
1172
  prefix: "{{",
1153
1173
  suffix: "}}",
@@ -1161,50 +1181,50 @@ function _t() {
1161
1181
  }
1162
1182
  };
1163
1183
  }
1164
- function Be(a) {
1184
+ function Me(a) {
1165
1185
  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
1186
  }
1167
- function ae() {
1187
+ function re() {
1168
1188
  }
1169
- var Ft = function(a) {
1170
- ve(n, a);
1171
- function n() {
1172
- var t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
1173
- if (M(this, n), t = ne(this, Y(n).call(this)), me && K.call(X(t)), t.options = Be(e), t.services = {}, t.logger = $, t.modules = {
1189
+ var qt = function(a) {
1190
+ me(t, a);
1191
+ function t() {
1192
+ var n, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
1193
+ if (H(this, t), n = ee(this, G(t).call(this)), ye && z.call(W(n)), n.options = Me(e), n.services = {}, n.logger = V, n.modules = {
1174
1194
  external: []
1175
- }, r && !t.isInitialized && !e.isClone) {
1176
- if (!t.options.initImmediate)
1177
- return t.init(e, r), ne(t, X(t));
1195
+ }, r && !n.isInitialized && !e.isClone) {
1196
+ if (!n.options.initImmediate)
1197
+ return n.init(e, r), ee(n, W(n));
1178
1198
  setTimeout(function() {
1179
- t.init(e, r);
1199
+ n.init(e, r);
1180
1200
  }, 0);
1181
1201
  }
1182
- return t;
1202
+ return n;
1183
1203
  }
1184
- return q(n, [{
1204
+ return M(t, [{
1185
1205
  key: "init",
1186
1206
  value: function() {
1187
1207
  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 = F({}, _t(), this.options, Be(r)), this.format = this.options.interpolation.format, i || (i = ae);
1208
+ 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({}, Mt(), this.options, Me(r)), this.format = this.options.interpolation.format, i || (i = re);
1189
1209
  function o(d) {
1190
1210
  return d ? typeof d == "function" ? new d() : d : null;
1191
1211
  }
1192
1212
  if (!this.options.isClone) {
1193
- this.modules.logger ? $.init(o(this.modules.logger), this.options) : $.init(null, this.options);
1194
- var s = new Pt(this.options);
1195
- this.store = new Lt(this.options.resources, this.options);
1213
+ this.modules.logger ? V.init(o(this.modules.logger), this.options) : V.init(null, this.options);
1214
+ var s = new Tt(this.options);
1215
+ this.store = new At(this.options.resources, this.options);
1196
1216
  var u = this.services;
1197
- u.logger = $, u.resourceStore = this.store, u.languageUtils = s, u.pluralResolver = new Ct(s, {
1217
+ u.logger = V, u.resourceStore = this.store, u.languageUtils = s, u.pluralResolver = new _t(s, {
1198
1218
  prepend: this.options.pluralSeparator,
1199
1219
  compatibilityJSON: this.options.compatibilityJSON,
1200
1220
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1201
- }), u.interpolator = new At(this.options), u.utils = {
1221
+ }), u.interpolator = new Ut(this.options), u.utils = {
1202
1222
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1203
- }, u.backendConnector = new Tt(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(d) {
1223
+ }, u.backendConnector = new Ht(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(d) {
1204
1224
  for (var y = arguments.length, h = new Array(y > 1 ? y - 1 : 0), b = 1; b < y; b++)
1205
1225
  h[b - 1] = arguments[b];
1206
1226
  e.emit.apply(e, [d].concat(h));
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 Ue(this.services, this.options), this.translator.on("*", function(d) {
1227
+ }), 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) {
1208
1228
  for (var y = arguments.length, h = new Array(y > 1 ? y - 1 : 0), b = 1; b < y; b++)
1209
1229
  h[b - 1] = arguments[b];
1210
1230
  e.emit.apply(e, [d].concat(h));
@@ -1213,8 +1233,8 @@ var Ft = function(a) {
1213
1233
  });
1214
1234
  }
1215
1235
  if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1216
- var l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1217
- l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
1236
+ var f = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1237
+ f.length > 0 && f[0] !== "dev" && (this.options.lng = f[0]);
1218
1238
  }
1219
1239
  !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined");
1220
1240
  var c = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
@@ -1231,9 +1251,9 @@ var Ft = function(a) {
1231
1251
  return (y = e.store)[d].apply(y, arguments), e;
1232
1252
  };
1233
1253
  });
1234
- var v = Z(), m = function() {
1235
- var y = function(b, S) {
1236
- e.isInitialized && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), v.resolve(S), i(b, S);
1254
+ var v = Y(), m = function() {
1255
+ var y = function(b, O) {
1256
+ e.isInitialized && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), v.resolve(O), i(b, O);
1237
1257
  };
1238
1258
  if (e.languages && e.options.compatibilityAPI !== "v1" && !e.isInitialized)
1239
1259
  return y(null, e.t.bind(e));
@@ -1244,11 +1264,11 @@ var Ft = function(a) {
1244
1264
  }, {
1245
1265
  key: "loadResources",
1246
1266
  value: function(e) {
1247
- var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae, o = i, s = typeof e == "string" ? e : this.language;
1267
+ var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : re, o = i, s = typeof e == "string" ? e : this.language;
1248
1268
  if (typeof e == "function" && (o = e), !this.options.resources || this.options.partialBundledLanguages) {
1249
1269
  if (s && s.toLowerCase() === "cimode")
1250
1270
  return o();
1251
- var u = [], l = function(v) {
1271
+ var u = [], f = function(v) {
1252
1272
  if (!!v) {
1253
1273
  var m = r.services.languageUtils.toResolveHierarchy(v);
1254
1274
  m.forEach(function(d) {
@@ -1257,15 +1277,15 @@ var Ft = function(a) {
1257
1277
  }
1258
1278
  };
1259
1279
  if (s)
1260
- l(s);
1280
+ f(s);
1261
1281
  else {
1262
1282
  var c = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1263
1283
  c.forEach(function(p) {
1264
- return l(p);
1284
+ return f(p);
1265
1285
  });
1266
1286
  }
1267
1287
  this.options.preload && this.options.preload.forEach(function(p) {
1268
- return l(p);
1288
+ return f(p);
1269
1289
  }), this.services.backendConnector.load(u, this.options.ns, o);
1270
1290
  } else
1271
1291
  o(null);
@@ -1273,8 +1293,8 @@ var Ft = function(a) {
1273
1293
  }, {
1274
1294
  key: "reloadResources",
1275
1295
  value: function(e, r, i) {
1276
- var o = Z();
1277
- return e || (e = this.languages), r || (r = this.options.ns), i || (i = ae), this.services.backendConnector.reload(e, r, function(s) {
1296
+ var o = Y();
1297
+ return e || (e = this.languages), r || (r = this.options.ns), i || (i = re), this.services.backendConnector.reload(e, r, function(s) {
1278
1298
  o.resolve(), i(s);
1279
1299
  }), o;
1280
1300
  }
@@ -1285,14 +1305,14 @@ var Ft = function(a) {
1285
1305
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1286
1306
  if (!e.type)
1287
1307
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1288
- 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" && rt.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
1308
+ 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" && ut.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
1289
1309
  }
1290
1310
  }, {
1291
1311
  key: "changeLanguage",
1292
1312
  value: function(e, r) {
1293
1313
  var i = this;
1294
1314
  this.isLanguageChangingTo = e;
1295
- var o = Z();
1315
+ var o = Y();
1296
1316
  this.emit("languageChanging", e);
1297
1317
  var s = function(c, p) {
1298
1318
  p ? (i.language = p, i.languages = i.services.languageUtils.toResolveHierarchy(p), i.translator.changeLanguage(p), i.isLanguageChangingTo = void 0, i.emit("languageChanged", p), i.logger.log("languageChanged", p)) : i.isLanguageChangingTo = void 0, o.resolve(function() {
@@ -1311,14 +1331,14 @@ var Ft = function(a) {
1311
1331
  }, {
1312
1332
  key: "getFixedT",
1313
1333
  value: function(e, r) {
1314
- var i = this, o = function s(u, l) {
1334
+ var i = this, o = function s(u, f) {
1315
1335
  var c;
1316
- if (I(l) !== "object") {
1336
+ if (I(f) !== "object") {
1317
1337
  for (var p = arguments.length, v = new Array(p > 2 ? p - 2 : 0), m = 2; m < p; m++)
1318
1338
  v[m - 2] = arguments[m];
1319
- c = i.options.overloadTranslationOptionHandler([u, l].concat(v));
1339
+ c = i.options.overloadTranslationOptionHandler([u, f].concat(v));
1320
1340
  } else
1321
- c = F({}, l);
1341
+ c = D({}, f);
1322
1342
  return c.lng = c.lng || s.lng, c.lngs = c.lngs || s.lngs, c.ns = c.ns || s.ns, i.t(u, c);
1323
1343
  };
1324
1344
  return typeof e == "string" ? o.lng = e : o.lngs = e, o.ns = r, o;
@@ -1351,21 +1371,21 @@ var Ft = function(a) {
1351
1371
  var o = this.languages[0], s = this.options ? this.options.fallbackLng : !1, u = this.languages[this.languages.length - 1];
1352
1372
  if (o.toLowerCase() === "cimode")
1353
1373
  return !0;
1354
- var l = function(v, m) {
1374
+ var f = function(v, m) {
1355
1375
  var d = r.services.backendConnector.state["".concat(v, "|").concat(m)];
1356
1376
  return d === -1 || d === 2;
1357
1377
  };
1358
1378
  if (i.precheck) {
1359
- var c = i.precheck(this, l);
1379
+ var c = i.precheck(this, f);
1360
1380
  if (c !== void 0)
1361
1381
  return c;
1362
1382
  }
1363
- return !!(this.hasResourceBundle(o, e) || !this.services.backendConnector.backend || l(o, e) && (!s || l(u, e)));
1383
+ return !!(this.hasResourceBundle(o, e) || !this.services.backendConnector.backend || f(o, e) && (!s || f(u, e)));
1364
1384
  }
1365
1385
  }, {
1366
1386
  key: "loadNamespaces",
1367
1387
  value: function(e, r) {
1368
- var i = this, o = Z();
1388
+ var i = this, o = Y();
1369
1389
  return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach(function(s) {
1370
1390
  i.options.ns.indexOf(s) < 0 && i.options.ns.push(s);
1371
1391
  }), this.loadResources(function(s) {
@@ -1375,7 +1395,7 @@ var Ft = function(a) {
1375
1395
  }, {
1376
1396
  key: "loadLanguages",
1377
1397
  value: function(e, r) {
1378
- var i = Z();
1398
+ var i = Y();
1379
1399
  typeof e == "string" && (e = [e]);
1380
1400
  var o = this.options.preload || [], s = e.filter(function(u) {
1381
1401
  return o.indexOf(u) < 0;
@@ -1396,48 +1416,48 @@ var Ft = function(a) {
1396
1416
  key: "createInstance",
1397
1417
  value: function() {
1398
1418
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
1399
- return new n(e, r);
1419
+ return new t(e, r);
1400
1420
  }
1401
1421
  }, {
1402
1422
  key: "cloneInstance",
1403
1423
  value: function() {
1404
- 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 = F({}, this.options, r, {
1424
+ 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, {
1405
1425
  isClone: !0
1406
- }), s = new n(o), u = ["store", "services", "language"];
1407
- return u.forEach(function(l) {
1408
- s[l] = e[l];
1409
- }), s.services = F({}, this.services), s.services.utils = {
1426
+ }), s = new t(o), u = ["store", "services", "language"];
1427
+ return u.forEach(function(f) {
1428
+ s[f] = e[f];
1429
+ }), s.services = D({}, this.services), s.services.utils = {
1410
1430
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
1411
- }, s.translator = new Ue(s.services, s.options), s.translator.on("*", function(l) {
1431
+ }, s.translator = new He(s.services, s.options), s.translator.on("*", function(f) {
1412
1432
  for (var c = arguments.length, p = new Array(c > 1 ? c - 1 : 0), v = 1; v < c; v++)
1413
1433
  p[v - 1] = arguments[v];
1414
- s.emit.apply(s, [l].concat(p));
1434
+ s.emit.apply(s, [f].concat(p));
1415
1435
  }), s.init(o, i), s.translator.options = s.options, s.translator.backendConnector.services.utils = {
1416
1436
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
1417
1437
  }, s;
1418
1438
  }
1419
- }]), n;
1420
- }(K), Dt = new Ft();
1421
- function It(a, n) {
1439
+ }]), t;
1440
+ }(z), Vt = new qt();
1441
+ function $t(a, t) {
1422
1442
  if (a == null)
1423
1443
  return {};
1424
- var t = {}, e = Object.keys(a), r, i;
1444
+ var n = {}, e = Object.keys(a), r, i;
1425
1445
  for (i = 0; i < e.length; i++)
1426
- r = e[i], !(n.indexOf(r) >= 0) && (t[r] = a[r]);
1427
- return t;
1446
+ r = e[i], !(t.indexOf(r) >= 0) && (n[r] = a[r]);
1447
+ return n;
1428
1448
  }
1429
- function at(a, n) {
1449
+ function ft(a, t) {
1430
1450
  if (a == null)
1431
1451
  return {};
1432
- var t = It(a, n), e, r;
1452
+ var n = $t(a, t), e, r;
1433
1453
  if (Object.getOwnPropertySymbols) {
1434
1454
  var i = Object.getOwnPropertySymbols(a);
1435
1455
  for (r = 0; r < i.length; r++)
1436
- e = i[r], !(n.indexOf(e) >= 0) && (!Object.prototype.propertyIsEnumerable.call(a, e) || (t[e] = a[e]));
1456
+ e = i[r], !(t.indexOf(e) >= 0) && (!Object.prototype.propertyIsEnumerable.call(a, e) || (n[e] = a[e]));
1437
1457
  }
1438
- return t;
1458
+ return n;
1439
1459
  }
1440
- var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ut = {
1460
+ var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Kt = {
1441
1461
  area: !0,
1442
1462
  base: !0,
1443
1463
  br: !0,
@@ -1452,67 +1472,67 @@ var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1452
1472
  source: !0,
1453
1473
  track: !0,
1454
1474
  wbr: !0
1455
- }, Bt = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
1456
- function He(a) {
1457
- var n = { type: "tag", name: "", voidElement: !1, attrs: {}, children: [] }, t = a.match(/<\/?([^\s]+?)[/\s>]/);
1458
- if (t && (n.name = t[1], (Ut[t[1]] || a.charAt(a.length - 2) === "/") && (n.voidElement = !0), n.name.startsWith("!--"))) {
1475
+ }, zt = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
1476
+ function qe(a) {
1477
+ var t = { type: "tag", name: "", voidElement: !1, attrs: {}, children: [] }, n = a.match(/<\/?([^\s]+?)[/\s>]/);
1478
+ if (n && (t.name = n[1], (Kt[n[1]] || a.charAt(a.length - 2) === "/") && (t.voidElement = !0), t.name.startsWith("!--"))) {
1459
1479
  var e = a.indexOf("-->");
1460
1480
  return { type: "comment", comment: e !== -1 ? a.slice(4, e) : "" };
1461
1481
  }
1462
- for (var r = new RegExp(Bt), i = null; (i = r.exec(a)) !== null; )
1482
+ for (var r = new RegExp(zt), i = null; (i = r.exec(a)) !== null; )
1463
1483
  if (i[0].trim())
1464
1484
  if (i[1]) {
1465
1485
  var o = i[1].trim(), s = [o, ""];
1466
- o.indexOf("=") > -1 && (s = o.split("=")), n.attrs[s[0]] = s[1], r.lastIndex--;
1486
+ o.indexOf("=") > -1 && (s = o.split("=")), t.attrs[s[0]] = s[1], r.lastIndex--;
1467
1487
  } else
1468
- i[2] && (n.attrs[i[2]] = i[3].trim().substring(1, i[3].length - 1));
1469
- return n;
1488
+ i[2] && (t.attrs[i[2]] = i[3].trim().substring(1, i[3].length - 1));
1489
+ return t;
1470
1490
  }
1471
- var Ht = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, Mt = /^\s*$/, qt = /* @__PURE__ */ Object.create(null);
1472
- function it(a, n) {
1473
- switch (n.type) {
1491
+ var Wt = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, Xt = /^\s*$/, Jt = /* @__PURE__ */ Object.create(null);
1492
+ function lt(a, t) {
1493
+ switch (t.type) {
1474
1494
  case "text":
1475
- return a + n.content;
1495
+ return a + t.content;
1476
1496
  case "tag":
1477
- return a += "<" + n.name + (n.attrs ? function(t) {
1497
+ return a += "<" + t.name + (t.attrs ? function(n) {
1478
1498
  var e = [];
1479
- for (var r in t)
1480
- e.push(r + '="' + t[r] + '"');
1499
+ for (var r in n)
1500
+ e.push(r + '="' + n[r] + '"');
1481
1501
  return e.length ? " " + e.join(" ") : "";
1482
- }(n.attrs) : "") + (n.voidElement ? "/>" : ">"), n.voidElement ? a : a + n.children.reduce(it, "") + "</" + n.name + ">";
1502
+ }(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? a : a + t.children.reduce(lt, "") + "</" + t.name + ">";
1483
1503
  case "comment":
1484
- return a + "<!--" + n.comment + "-->";
1504
+ return a + "<!--" + t.comment + "-->";
1485
1505
  }
1486
1506
  }
1487
- var Vt = { parse: function(a, n) {
1488
- n || (n = {}), n.components || (n.components = qt);
1489
- var t, e = [], r = [], i = -1, o = !1;
1507
+ var Qt = { parse: function(a, t) {
1508
+ t || (t = {}), t.components || (t.components = Jt);
1509
+ var n, e = [], r = [], i = -1, o = !1;
1490
1510
  if (a.indexOf("<") !== 0) {
1491
1511
  var s = a.indexOf("<");
1492
1512
  e.push({ type: "text", content: s === -1 ? a : a.substring(0, s) });
1493
1513
  }
1494
- return a.replace(Ht, function(u, l) {
1514
+ return a.replace(Wt, function(u, f) {
1495
1515
  if (o) {
1496
- if (u !== "</" + t.name + ">")
1516
+ if (u !== "</" + n.name + ">")
1497
1517
  return;
1498
1518
  o = !1;
1499
1519
  }
1500
- var c, p = u.charAt(1) !== "/", v = u.startsWith("<!--"), m = l + u.length, d = a.charAt(m);
1520
+ var c, p = u.charAt(1) !== "/", v = u.startsWith("<!--"), m = f + u.length, d = a.charAt(m);
1501
1521
  if (v) {
1502
- var y = He(u);
1522
+ var y = qe(u);
1503
1523
  return i < 0 ? (e.push(y), e) : ((c = r[i]).children.push(y), e);
1504
1524
  }
1505
- if (p && (i++, (t = He(u)).type === "tag" && n.components[t.name] && (t.type = "component", o = !0), t.voidElement || o || !d || d === "<" || t.children.push({ type: "text", content: a.slice(m, a.indexOf("<", m)) }), i === 0 && e.push(t), (c = r[i - 1]) && c.children.push(t), r[i] = t), (!p || t.voidElement) && (i > -1 && (t.voidElement || t.name === u.slice(2, -1)) && (i--, t = i === -1 ? e : r[i]), !o && d !== "<" && d)) {
1525
+ 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)) {
1506
1526
  c = i === -1 ? e : r[i].children;
1507
1527
  var h = a.indexOf("<", m), b = a.slice(m, h === -1 ? void 0 : h);
1508
- Mt.test(b) && (b = " "), (h > -1 && i + c.length >= 0 || b !== " ") && c.push({ type: "text", content: b });
1528
+ Xt.test(b) && (b = " "), (h > -1 && i + c.length >= 0 || b !== " ") && c.push({ type: "text", content: b });
1509
1529
  }
1510
1530
  }), e;
1511
1531
  }, stringify: function(a) {
1512
- return a.reduce(function(n, t) {
1513
- return n + it("", t);
1532
+ return a.reduce(function(t, n) {
1533
+ return t + lt("", n);
1514
1534
  }, "");
1515
- } }, $t = "".replace, zt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g, Kt = {
1535
+ } }, Gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Yt = {
1516
1536
  "&amp;": "&",
1517
1537
  "&#38;": "&",
1518
1538
  "&lt;": "<",
@@ -1522,60 +1542,69 @@ var Vt = { parse: function(a, n) {
1522
1542
  "&apos;": "'",
1523
1543
  "&#39;": "'",
1524
1544
  "&quot;": '"',
1525
- "&#34;": '"'
1545
+ "&#34;": '"',
1546
+ "&nbsp;": " ",
1547
+ "&#160;": " ",
1548
+ "&copy;": "\xA9",
1549
+ "&#169;": "\xA9",
1550
+ "&reg;": "\xAE",
1551
+ "&#174;": "\xAE",
1552
+ "&hellip;": "\u2026",
1553
+ "&#8230;": "\u2026",
1554
+ "&#x2F;": "/",
1555
+ "&#47;": "/"
1556
+ }, Zt = function(t) {
1557
+ return Yt[t];
1558
+ }, en = function(t) {
1559
+ return t.replace(Gt, Zt);
1526
1560
  };
1527
- function Wt(a) {
1528
- return $t.call(a, zt, Xt);
1529
- }
1530
- function Xt(a) {
1531
- return Kt[a];
1532
- }
1533
- function Me(a, n) {
1534
- var t = Object.keys(a);
1561
+ function Ve(a, t) {
1562
+ var n = Object.keys(a);
1535
1563
  if (Object.getOwnPropertySymbols) {
1536
1564
  var e = Object.getOwnPropertySymbols(a);
1537
- n && (e = e.filter(function(r) {
1565
+ t && (e = e.filter(function(r) {
1538
1566
  return Object.getOwnPropertyDescriptor(a, r).enumerable;
1539
- })), t.push.apply(t, e);
1567
+ })), n.push.apply(n, e);
1540
1568
  }
1541
- return t;
1569
+ return n;
1542
1570
  }
1543
- function qe(a) {
1544
- for (var n = 1; n < arguments.length; n++) {
1545
- var t = arguments[n] != null ? arguments[n] : {};
1546
- n % 2 ? Me(Object(t), !0).forEach(function(e) {
1547
- he(a, e, t[e]);
1548
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Me(Object(t)).forEach(function(e) {
1549
- Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(t, e));
1571
+ function $e(a) {
1572
+ for (var t = 1; t < arguments.length; t++) {
1573
+ var n = arguments[t] != null ? arguments[t] : {};
1574
+ t % 2 ? Ve(Object(n), !0).forEach(function(e) {
1575
+ ve(a, e, n[e]);
1576
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(e) {
1577
+ Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
1550
1578
  });
1551
1579
  }
1552
1580
  return a;
1553
1581
  }
1554
- var Le = {
1582
+ var je = {
1555
1583
  bindI18n: "languageChanged",
1556
1584
  bindI18nStore: "",
1557
1585
  transEmptyNodeValue: "",
1558
1586
  transSupportBasicHtmlNodes: !0,
1559
1587
  transWrapTextNodes: "",
1560
1588
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
1561
- useSuspense: !0
1562
- }, ot, st = U.createContext();
1563
- function Jt() {
1589
+ useSuspense: !0,
1590
+ unescape: en
1591
+ }, ct, pt = St();
1592
+ function tn() {
1564
1593
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1565
- Le = qe(qe({}, Le), a);
1594
+ je = $e($e({}, je), a);
1566
1595
  }
1567
- function ut() {
1568
- return Le;
1596
+ function dt() {
1597
+ return je;
1569
1598
  }
1570
- var Qt = function() {
1599
+ var nn = function() {
1571
1600
  function a() {
1572
- M(this, a), this.usedNamespaces = {};
1601
+ H(this, a), this.usedNamespaces = {};
1573
1602
  }
1574
- return q(a, [{
1603
+ return M(a, [{
1575
1604
  key: "addUsedNamespaces",
1576
- value: function(t) {
1605
+ value: function(n) {
1577
1606
  var e = this;
1578
- t.forEach(function(r) {
1607
+ n.forEach(function(r) {
1579
1608
  e.usedNamespaces[r] || (e.usedNamespaces[r] = !0);
1580
1609
  });
1581
1610
  }
@@ -1586,224 +1615,224 @@ var Qt = function() {
1586
1615
  }
1587
1616
  }]), a;
1588
1617
  }();
1589
- function Gt(a) {
1590
- ot = a;
1618
+ function rn(a) {
1619
+ ct = a;
1591
1620
  }
1592
- function ft() {
1593
- return ot;
1621
+ function gt() {
1622
+ return ct;
1594
1623
  }
1595
- var Yt = {
1624
+ var an = {
1596
1625
  type: "3rdParty",
1597
- init: function(n) {
1598
- Jt(n.options.react), Gt(n);
1626
+ init: function(t) {
1627
+ tn(t.options.react), rn(t);
1599
1628
  }
1600
1629
  };
1601
1630
  function se() {
1602
1631
  if (console && console.warn) {
1603
- for (var a, n = arguments.length, t = new Array(n), e = 0; e < n; e++)
1604
- t[e] = arguments[e];
1605
- typeof t[0] == "string" && (t[0] = "react-i18next:: ".concat(t[0])), (a = console).warn.apply(a, t);
1632
+ for (var a, t = arguments.length, n = new Array(t), e = 0; e < t; e++)
1633
+ n[e] = arguments[e];
1634
+ typeof n[0] == "string" && (n[0] = "react-i18next:: ".concat(n[0])), (a = console).warn.apply(a, n);
1606
1635
  }
1607
1636
  }
1608
- var Ve = {};
1637
+ var Ke = {};
1609
1638
  function le() {
1610
- for (var a = arguments.length, n = new Array(a), t = 0; t < a; t++)
1611
- n[t] = arguments[t];
1612
- typeof n[0] == "string" && Ve[n[0]] || (typeof n[0] == "string" && (Ve[n[0]] = new Date()), se.apply(void 0, n));
1639
+ for (var a = arguments.length, t = new Array(a), n = 0; n < a; n++)
1640
+ t[n] = arguments[n];
1641
+ typeof t[0] == "string" && Ke[t[0]] || (typeof t[0] == "string" && (Ke[t[0]] = new Date()), se.apply(void 0, t));
1613
1642
  }
1614
- function $e(a, n, t) {
1615
- a.loadNamespaces(n, function() {
1643
+ function ze(a, t, n) {
1644
+ a.loadNamespaces(t, function() {
1616
1645
  if (a.isInitialized)
1617
- t();
1646
+ n();
1618
1647
  else {
1619
1648
  var e = function r() {
1620
1649
  setTimeout(function() {
1621
1650
  a.off("initialized", r);
1622
- }, 0), t();
1651
+ }, 0), n();
1623
1652
  };
1624
1653
  a.on("initialized", e);
1625
1654
  }
1626
1655
  });
1627
1656
  }
1628
- function Zt(a, n) {
1629
- var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, e = n.languages[0], r = n.options ? n.options.fallbackLng : !1, i = n.languages[n.languages.length - 1];
1657
+ function on(a, t) {
1658
+ 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];
1630
1659
  if (e.toLowerCase() === "cimode")
1631
1660
  return !0;
1632
- var o = function(u, l) {
1633
- var c = n.services.backendConnector.state["".concat(u, "|").concat(l)];
1661
+ var o = function(u, f) {
1662
+ var c = t.services.backendConnector.state["".concat(u, "|").concat(f)];
1634
1663
  return c === -1 || c === 2;
1635
1664
  };
1636
- return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, a) ? !1 : !!(n.hasResourceBundle(e, a) || !n.services.backendConnector.backend || n.options.resources && !n.options.partialBundledLanguages || o(e, a) && (!r || o(i, a)));
1637
- }
1638
- function en(a, n) {
1639
- var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1640
- if (!n.languages || !n.languages.length)
1641
- return le("i18n.languages were undefined or empty", n.languages), !0;
1642
- var e = n.options.ignoreJSONStructure !== void 0;
1643
- return e ? n.hasLoadedNamespace(a, {
1665
+ 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)));
1666
+ }
1667
+ function sn(a, t) {
1668
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1669
+ if (!t.languages || !t.languages.length)
1670
+ return le("i18n.languages were undefined or empty", t.languages), !0;
1671
+ var e = t.options.ignoreJSONStructure !== void 0;
1672
+ return e ? t.hasLoadedNamespace(a, {
1644
1673
  precheck: function(i, o) {
1645
- if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && i.services.backendConnector.backend && i.isLanguageChangingTo && !o(i.isLanguageChangingTo, a))
1674
+ if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && i.services.backendConnector.backend && i.isLanguageChangingTo && !o(i.isLanguageChangingTo, a))
1646
1675
  return !1;
1647
1676
  }
1648
- }) : Zt(a, n, t);
1677
+ }) : on(a, t, n);
1649
1678
  }
1650
- var tn = ["format"], nn = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
1651
- function ze(a, n) {
1652
- var t = Object.keys(a);
1679
+ var un = ["format"], fn = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
1680
+ function We(a, t) {
1681
+ var n = Object.keys(a);
1653
1682
  if (Object.getOwnPropertySymbols) {
1654
1683
  var e = Object.getOwnPropertySymbols(a);
1655
- n && (e = e.filter(function(r) {
1684
+ t && (e = e.filter(function(r) {
1656
1685
  return Object.getOwnPropertyDescriptor(a, r).enumerable;
1657
- })), t.push.apply(t, e);
1686
+ })), n.push.apply(n, e);
1658
1687
  }
1659
- return t;
1688
+ return n;
1660
1689
  }
1661
- function _(a) {
1662
- for (var n = 1; n < arguments.length; n++) {
1663
- var t = arguments[n] != null ? arguments[n] : {};
1664
- n % 2 ? ze(Object(t), !0).forEach(function(e) {
1665
- he(a, e, t[e]);
1666
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : ze(Object(t)).forEach(function(e) {
1667
- Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(t, e));
1690
+ function F(a) {
1691
+ for (var t = 1; t < arguments.length; t++) {
1692
+ var n = arguments[t] != null ? arguments[t] : {};
1693
+ t % 2 ? We(Object(n), !0).forEach(function(e) {
1694
+ ve(a, e, n[e]);
1695
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : We(Object(n)).forEach(function(e) {
1696
+ Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
1668
1697
  });
1669
1698
  }
1670
1699
  return a;
1671
1700
  }
1672
- function Se(a, n) {
1701
+ function Se(a, t) {
1673
1702
  if (!a)
1674
1703
  return !1;
1675
- var t = a.props ? a.props.children : a.children;
1676
- return n ? t.length > 0 : !!t;
1704
+ var n = a.props ? a.props.children : a.children;
1705
+ return t ? n.length > 0 : !!n;
1677
1706
  }
1678
1707
  function xe(a) {
1679
- return a ? a && a.children ? a.children : a.props && a.props.children : [];
1708
+ return a ? a.props ? a.props.children : a.children : [];
1680
1709
  }
1681
- function rn(a) {
1682
- return Object.prototype.toString.call(a) !== "[object Array]" ? !1 : a.every(function(n) {
1683
- return U.isValidElement(n);
1710
+ function ln(a) {
1711
+ return Object.prototype.toString.call(a) !== "[object Array]" ? !1 : a.every(function(t) {
1712
+ return ue(t);
1684
1713
  });
1685
1714
  }
1686
- function ee(a) {
1715
+ function Z(a) {
1687
1716
  return Array.isArray(a) ? a : [a];
1688
1717
  }
1689
- function an(a, n) {
1690
- var t = _({}, n);
1691
- return t.props = Object.assign(a.props, n.props), t;
1718
+ function cn(a, t) {
1719
+ var n = F({}, t);
1720
+ return n.props = Object.assign(a.props, t.props), n;
1692
1721
  }
1693
- function lt(a, n) {
1722
+ function ht(a, t) {
1694
1723
  if (!a)
1695
1724
  return "";
1696
- var t = "", e = ee(a), r = n.transSupportBasicHtmlNodes && n.transKeepBasicHtmlNodesFor ? n.transKeepBasicHtmlNodesFor : [];
1725
+ var n = "", e = Z(a), r = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
1697
1726
  return e.forEach(function(i, o) {
1698
1727
  if (typeof i == "string")
1699
- t += "".concat(i);
1700
- else if (U.isValidElement(i)) {
1701
- var s = Object.keys(i.props).length, u = r.indexOf(i.type) > -1, l = i.props.children;
1702
- if (!l && u && s === 0)
1703
- t += "<".concat(i.type, "/>");
1704
- else if (!l && (!u || s !== 0))
1705
- t += "<".concat(o, "></").concat(o, ">");
1728
+ n += "".concat(i);
1729
+ else if (ue(i)) {
1730
+ var s = Object.keys(i.props).length, u = r.indexOf(i.type) > -1, f = i.props.children;
1731
+ if (!f && u && s === 0)
1732
+ n += "<".concat(i.type, "/>");
1733
+ else if (!f && (!u || s !== 0))
1734
+ n += "<".concat(o, "></").concat(o, ">");
1706
1735
  else if (i.props.i18nIsDynamicList)
1707
- t += "<".concat(o, "></").concat(o, ">");
1708
- else if (u && s === 1 && typeof l == "string")
1709
- t += "<".concat(i.type, ">").concat(l, "</").concat(i.type, ">");
1736
+ n += "<".concat(o, "></").concat(o, ">");
1737
+ else if (u && s === 1 && typeof f == "string")
1738
+ n += "<".concat(i.type, ">").concat(f, "</").concat(i.type, ">");
1710
1739
  else {
1711
- var c = lt(l, n);
1712
- t += "<".concat(o, ">").concat(c, "</").concat(o, ">");
1740
+ var c = ht(f, t);
1741
+ n += "<".concat(o, ">").concat(c, "</").concat(o, ">");
1713
1742
  }
1714
1743
  } else if (i === null)
1715
1744
  se("Trans: the passed in value is invalid - seems you passed in a null child.");
1716
1745
  else if (I(i) === "object") {
1717
- var p = i.format, v = at(i, tn), m = Object.keys(v);
1746
+ var p = i.format, v = ft(i, un), m = Object.keys(v);
1718
1747
  if (m.length === 1) {
1719
1748
  var d = p ? "".concat(m[0], ", ").concat(p) : m[0];
1720
- t += "{{".concat(d, "}}");
1749
+ n += "{{".concat(d, "}}");
1721
1750
  } else
1722
1751
  se("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.", i);
1723
1752
  } else
1724
1753
  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);
1725
- }), t;
1754
+ }), n;
1726
1755
  }
1727
- function on(a, n, t, e, r, i) {
1728
- if (n === "")
1756
+ function pn(a, t, n, e, r, i) {
1757
+ if (t === "")
1729
1758
  return [];
1730
- var o = e.transKeepBasicHtmlNodesFor || [], s = n && new RegExp(o.join("|")).test(n);
1759
+ var o = e.transKeepBasicHtmlNodesFor || [], s = t && new RegExp(o.join("|")).test(t);
1731
1760
  if (!a && !s)
1732
- return [n];
1761
+ return [t];
1733
1762
  var u = {};
1734
- function l(h) {
1735
- var b = ee(h);
1736
- b.forEach(function(S) {
1737
- typeof S != "string" && (Se(S) ? l(xe(S)) : I(S) === "object" && !U.isValidElement(S) && Object.assign(u, S));
1763
+ function f(h) {
1764
+ var b = Z(h);
1765
+ b.forEach(function(O) {
1766
+ typeof O != "string" && (Se(O) ? f(xe(O)) : I(O) === "object" && !ue(O) && Object.assign(u, O));
1738
1767
  });
1739
1768
  }
1740
- l(a);
1741
- var c = Vt.parse("<0>".concat(n, "</0>")), p = _(_({}, u), r);
1742
- function v(h, b, S) {
1743
- var x = xe(h), R = d(x, b.children, S);
1744
- return rn(x) && R.length === 0 ? x : R;
1769
+ f(a);
1770
+ var c = Qt.parse("<0>".concat(t, "</0>")), p = F(F({}, u), r);
1771
+ function v(h, b, O) {
1772
+ var S = xe(h), A = d(S, b.children, O);
1773
+ return ln(S) && A.length === 0 ? S : A;
1745
1774
  }
1746
- function m(h, b, S, x, R) {
1747
- h.dummy && (h.children = b), S.push(U.cloneElement(h, _(_({}, h.props), {}, {
1748
- key: x
1749
- }), R ? void 0 : b));
1775
+ function m(h, b, O, S, A) {
1776
+ h.dummy && (h.children = b), O.push(ne(h, F(F({}, h.props), {}, {
1777
+ key: S
1778
+ }), A ? void 0 : b));
1750
1779
  }
1751
- function d(h, b, S) {
1752
- var x = ee(h), R = ee(b);
1753
- return R.reduce(function(k, w, P) {
1754
- var A = w.children && w.children[0] && w.children[0].content && t.services.interpolator.interpolate(w.children[0].content, p, t.language);
1780
+ function d(h, b, O) {
1781
+ var S = Z(h), A = Z(b);
1782
+ return A.reduce(function(k, w, j) {
1783
+ var R = w.children && w.children[0] && w.children[0].content && n.services.interpolator.interpolate(w.children[0].content, p, n.language);
1755
1784
  if (w.type === "tag") {
1756
- var N = x[parseInt(w.name, 10)];
1757
- !N && S.length === 1 && S[0][w.name] && (N = S[0][w.name]), N || (N = {});
1758
- var C = Object.keys(w.attrs).length !== 0 ? an({
1785
+ var C = S[parseInt(w.name, 10)];
1786
+ !C && O.length === 1 && O[0][w.name] && (C = O[0][w.name]), C || (C = {});
1787
+ var L = Object.keys(w.attrs).length !== 0 ? cn({
1759
1788
  props: w.attrs
1760
- }, N) : N, j = U.isValidElement(C), z = j && Se(w, !0) && !w.voidElement, B = s && I(C) === "object" && C.dummy && !j, f = I(a) === "object" && a !== null && Object.hasOwnProperty.call(a, w.name);
1761
- if (typeof C == "string") {
1762
- var g = t.services.interpolator.interpolate(C, p, t.language);
1789
+ }, 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);
1790
+ if (typeof L == "string") {
1791
+ var g = n.services.interpolator.interpolate(L, p, n.language);
1763
1792
  k.push(g);
1764
- } else if (Se(C) || z) {
1765
- var O = v(C, w, S);
1766
- m(C, O, k, P);
1767
- } else if (B) {
1768
- var T = d(x, w.children, S);
1769
- k.push(U.cloneElement(C, _(_({}, C.props), {}, {
1770
- key: P
1793
+ } else if (Se(L) || K) {
1794
+ var x = v(L, w, O);
1795
+ m(L, x, k, j);
1796
+ } else if (U) {
1797
+ var T = d(S, w.children, O);
1798
+ k.push(ne(L, F(F({}, L.props), {}, {
1799
+ key: j
1771
1800
  }), T));
1772
1801
  } else if (Number.isNaN(parseFloat(w.name)))
1773
- if (f) {
1774
- var E = v(C, w, S);
1775
- m(C, E, k, P, w.voidElement);
1802
+ if (l) {
1803
+ var N = v(L, w, O);
1804
+ m(L, N, k, j, w.voidElement);
1776
1805
  } else if (e.transSupportBasicHtmlNodes && o.indexOf(w.name) > -1)
1777
1806
  if (w.voidElement)
1778
- k.push(U.createElement(w.name, {
1779
- key: "".concat(w.name, "-").concat(P)
1807
+ k.push(ie(w.name, {
1808
+ key: "".concat(w.name, "-").concat(j)
1780
1809
  }));
1781
1810
  else {
1782
- var L = d(x, w.children, S);
1783
- k.push(U.createElement(w.name, {
1784
- key: "".concat(w.name, "-").concat(P)
1785
- }, L));
1811
+ var P = d(S, w.children, O);
1812
+ k.push(ie(w.name, {
1813
+ key: "".concat(w.name, "-").concat(j)
1814
+ }, P));
1786
1815
  }
1787
1816
  else if (w.voidElement)
1788
1817
  k.push("<".concat(w.name, " />"));
1789
1818
  else {
1790
- var V = d(x, w.children, S);
1791
- k.push("<".concat(w.name, ">").concat(V, "</").concat(w.name, ">"));
1819
+ var q = d(S, w.children, O);
1820
+ k.push("<".concat(w.name, ">").concat(q, "</").concat(w.name, ">"));
1792
1821
  }
1793
- else if (I(C) === "object" && !j) {
1794
- var D = w.children[0] ? A : null;
1795
- D && k.push(D);
1822
+ else if (I(L) === "object" && !E) {
1823
+ var _ = w.children[0] ? R : null;
1824
+ _ && k.push(_);
1796
1825
  } else
1797
- w.children.length === 1 && A ? k.push(U.cloneElement(C, _(_({}, C.props), {}, {
1798
- key: P
1799
- }), A)) : k.push(U.cloneElement(C, _(_({}, C.props), {}, {
1800
- key: P
1826
+ w.children.length === 1 && R ? k.push(ne(L, F(F({}, L.props), {}, {
1827
+ key: j
1828
+ }), R)) : k.push(ne(L, F(F({}, L.props), {}, {
1829
+ key: j
1801
1830
  })));
1802
1831
  } else if (w.type === "text") {
1803
- var H = e.transWrapTextNodes, J = i ? Wt(t.services.interpolator.interpolate(w.content, p, t.language)) : t.services.interpolator.interpolate(w.content, p, t.language);
1804
- H ? k.push(U.createElement(H, {
1805
- key: "".concat(w.name, "-").concat(P)
1806
- }, J)) : k.push(J);
1832
+ 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);
1833
+ B ? k.push(ie(B, {
1834
+ key: "".concat(w.name, "-").concat(j)
1835
+ }, X)) : k.push(X);
1807
1836
  }
1808
1837
  return k;
1809
1838
  }, []);
@@ -1811,184 +1840,196 @@ function on(a, n, t, e, r, i) {
1811
1840
  var y = d([{
1812
1841
  dummy: !0,
1813
1842
  children: a || []
1814
- }], c, ee(a || []));
1843
+ }], c, Z(a || []));
1815
1844
  return xe(y[0]);
1816
1845
  }
1817
- function sn(a) {
1818
- var n = a.children, t = a.count, e = a.parent, r = a.i18nKey, i = a.context, o = a.tOptions, s = o === void 0 ? {} : o, u = a.values, l = a.defaults, c = a.components, p = a.ns, v = a.i18n, m = a.t, d = a.shouldUnescape, y = at(a, nn), h = tt(st) || {}, b = h.i18n, S = h.defaultNS, x = v || b || ft();
1819
- if (!x)
1820
- return le("You will need to pass in an i18next instance by using i18nextReactModule"), n;
1821
- var R = m || x.t.bind(x) || function(g) {
1846
+ function dn(a) {
1847
+ 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 = ft(a, fn), h = it(pt) || {}, b = h.i18n, O = h.defaultNS, S = v || b || gt();
1848
+ if (!S)
1849
+ return le("You will need to pass in an i18next instance by using i18nextReactModule"), t;
1850
+ var A = m || S.t.bind(S) || function(g) {
1822
1851
  return g;
1823
1852
  };
1824
1853
  i && (s.context = i);
1825
- var k = _(_({}, ut()), x.options && x.options.react), w = p || R.ns || S || x.options && x.options.defaultNS;
1854
+ var k = F(F({}, dt()), S.options && S.options.react), w = p || A.ns || O || S.options && S.options.defaultNS;
1826
1855
  w = typeof w == "string" ? [w] : w || ["translation"];
1827
- var P = l || lt(n, k) || k.transEmptyNodeValue || r, A = k.hashTransKey, N = r || (A ? A(P) : P), C = u ? s.interpolation : {
1828
- interpolation: _(_({}, s.interpolation), {}, {
1856
+ var j = f || ht(t, k) || k.transEmptyNodeValue || r, R = k.hashTransKey, C = r || (R ? R(j) : j), L = u ? s.interpolation : {
1857
+ interpolation: F(F({}, s.interpolation), {}, {
1829
1858
  prefix: "#$?",
1830
1859
  suffix: "?$#"
1831
1860
  })
1832
- }, j = _(_(_(_({}, s), {}, {
1833
- count: t
1834
- }, u), C), {}, {
1835
- defaultValue: P,
1861
+ }, E = F(F(F(F({}, s), {}, {
1862
+ count: n
1863
+ }, u), L), {}, {
1864
+ defaultValue: j,
1836
1865
  ns: w
1837
- }), z = N ? R(N, j) : P, B = on(c || n, z, x, k, j, d), f = e !== void 0 ? e : k.defaultTransParent;
1838
- return f ? U.createElement(f, y, B) : B;
1866
+ }), K = C ? A(C, E) : j, U = pn(c || t, K, S, k, E, d), l = e !== void 0 ? e : k.defaultTransParent;
1867
+ return l ? ie(l, y, U) : U;
1839
1868
  }
1840
- function un(a) {
1869
+ function gn(a) {
1841
1870
  if (Array.isArray(a))
1842
1871
  return a;
1843
1872
  }
1844
- function fn(a, n) {
1845
- var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1846
- if (t != null) {
1847
- var e = [], r = !0, i = !1, o, s;
1873
+ function hn(a, t) {
1874
+ var n = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1875
+ if (n != null) {
1876
+ var e, r, i, o, s = [], u = !0, f = !1;
1848
1877
  try {
1849
- for (t = t.call(a); !(r = (o = t.next()).done) && (e.push(o.value), !(n && e.length === n)); r = !0)
1850
- ;
1851
- } catch (u) {
1852
- i = !0, s = u;
1878
+ if (i = (n = n.call(a)).next, t === 0) {
1879
+ if (Object(n) !== n)
1880
+ return;
1881
+ u = !1;
1882
+ } else
1883
+ for (; !(u = (e = i.call(n)).done) && (s.push(e.value), s.length !== t); u = !0)
1884
+ ;
1885
+ } catch (c) {
1886
+ f = !0, r = c;
1853
1887
  } finally {
1854
1888
  try {
1855
- !r && t.return != null && t.return();
1889
+ if (!u && n.return != null && (o = n.return(), Object(o) !== o))
1890
+ return;
1856
1891
  } finally {
1857
- if (i)
1858
- throw s;
1892
+ if (f)
1893
+ throw r;
1859
1894
  }
1860
1895
  }
1861
- return e;
1896
+ return s;
1862
1897
  }
1863
1898
  }
1864
- function Ke(a, n) {
1865
- (n == null || n > a.length) && (n = a.length);
1866
- for (var t = 0, e = new Array(n); t < n; t++)
1867
- e[t] = a[t];
1899
+ function Xe(a, t) {
1900
+ (t == null || t > a.length) && (t = a.length);
1901
+ for (var n = 0, e = new Array(t); n < t; n++)
1902
+ e[n] = a[n];
1868
1903
  return e;
1869
1904
  }
1870
- function ln(a, n) {
1905
+ function vn(a, t) {
1871
1906
  if (!!a) {
1872
1907
  if (typeof a == "string")
1873
- return Ke(a, n);
1874
- var t = Object.prototype.toString.call(a).slice(8, -1);
1875
- if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set")
1908
+ return Xe(a, t);
1909
+ var n = Object.prototype.toString.call(a).slice(8, -1);
1910
+ if (n === "Object" && a.constructor && (n = a.constructor.name), n === "Map" || n === "Set")
1876
1911
  return Array.from(a);
1877
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
1878
- return Ke(a, n);
1912
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1913
+ return Xe(a, t);
1879
1914
  }
1880
1915
  }
1881
- function cn() {
1916
+ function mn() {
1882
1917
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1883
1918
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1884
1919
  }
1885
- function pn(a, n) {
1886
- return un(a) || fn(a, n) || ln(a, n) || cn();
1920
+ function yn(a, t) {
1921
+ return gn(a) || hn(a, t) || vn(a, t) || mn();
1887
1922
  }
1888
- function We(a, n) {
1889
- var t = Object.keys(a);
1923
+ function Je(a, t) {
1924
+ var n = Object.keys(a);
1890
1925
  if (Object.getOwnPropertySymbols) {
1891
1926
  var e = Object.getOwnPropertySymbols(a);
1892
- n && (e = e.filter(function(r) {
1927
+ t && (e = e.filter(function(r) {
1893
1928
  return Object.getOwnPropertyDescriptor(a, r).enumerable;
1894
- })), t.push.apply(t, e);
1929
+ })), n.push.apply(n, e);
1895
1930
  }
1896
- return t;
1931
+ return n;
1897
1932
  }
1898
- function Oe(a) {
1899
- for (var n = 1; n < arguments.length; n++) {
1900
- var t = arguments[n] != null ? arguments[n] : {};
1901
- n % 2 ? We(Object(t), !0).forEach(function(e) {
1902
- he(a, e, t[e]);
1903
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : We(Object(t)).forEach(function(e) {
1904
- Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(t, e));
1933
+ function ke(a) {
1934
+ for (var t = 1; t < arguments.length; t++) {
1935
+ var n = arguments[t] != null ? arguments[t] : {};
1936
+ t % 2 ? Je(Object(n), !0).forEach(function(e) {
1937
+ ve(a, e, n[e]);
1938
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : Je(Object(n)).forEach(function(e) {
1939
+ Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
1905
1940
  });
1906
1941
  }
1907
1942
  return a;
1908
1943
  }
1909
- function dn(a) {
1910
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = n.i18n, e = tt(st) || {}, r = e.i18n, i = e.defaultNS, o = t || r || ft();
1911
- if (o && !o.reportNamespaces && (o.reportNamespaces = new Qt()), !o) {
1944
+ var bn = function(t, n) {
1945
+ var e = Pe();
1946
+ return Le(function() {
1947
+ e.current = n ? e.current : t;
1948
+ }, [t, n]), e.current;
1949
+ };
1950
+ function wn(a) {
1951
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.i18n, e = it(pt) || {}, r = e.i18n, i = e.defaultNS, o = n || r || gt();
1952
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new nn()), !o) {
1912
1953
  le("You will need to pass in an i18next instance by using initReactI18next");
1913
- var s = function(P) {
1914
- return Array.isArray(P) ? P[P.length - 1] : P;
1954
+ var s = function(C) {
1955
+ return Array.isArray(C) ? C[C.length - 1] : C;
1915
1956
  }, u = [s, {}, !1];
1916
1957
  return u.t = s, u.i18n = {}, u.ready = !1, u;
1917
1958
  }
1918
1959
  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.");
1919
- var l = Oe(Oe(Oe({}, ut()), o.options.react), n), c = l.useSuspense, p = l.keyPrefix, v = a || i || o.options && o.options.defaultNS;
1960
+ var f = ke(ke(ke({}, dt()), o.options.react), t), c = f.useSuspense, p = f.keyPrefix, v = a || i || o.options && o.options.defaultNS;
1920
1961
  v = typeof v == "string" ? [v] : v || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(v);
1921
- var m = (o.isInitialized || o.initializedStoreOnce) && v.every(function(w) {
1922
- return en(w, o, l);
1962
+ var m = (o.isInitialized || o.initializedStoreOnce) && v.every(function(R) {
1963
+ return sn(R, o, f);
1923
1964
  });
1924
1965
  function d() {
1925
- return o.getFixedT(null, l.nsMode === "fallback" ? v : v[0], p);
1966
+ return o.getFixedT(null, f.nsMode === "fallback" ? v : v[0], p);
1926
1967
  }
1927
- var y = mt(d), h = pn(y, 2), b = h[0], S = h[1], x = Ae(!0);
1928
- Ne(function() {
1929
- var w = l.bindI18n, P = l.bindI18nStore;
1930
- x.current = !0, !m && !c && $e(o, v, function() {
1931
- x.current && S(d);
1932
- });
1933
- function A() {
1934
- x.current && S(d);
1935
- }
1936
- return w && o && o.on(w, A), P && o && o.store.on(P, A), function() {
1937
- x.current = !1, w && o && w.split(" ").forEach(function(N) {
1938
- return o.off(N, A);
1939
- }), P && o && P.split(" ").forEach(function(N) {
1940
- return o.store.off(N, A);
1968
+ var y = xt(d), h = yn(y, 2), b = h[0], O = h[1], S = v.join(), A = bn(S), k = Pe(!0);
1969
+ Le(function() {
1970
+ var R = f.bindI18n, C = f.bindI18nStore;
1971
+ k.current = !0, !m && !c && ze(o, v, function() {
1972
+ k.current && O(d);
1973
+ }), m && A && A !== S && k.current && O(d);
1974
+ function L() {
1975
+ k.current && O(d);
1976
+ }
1977
+ return R && o && o.on(R, L), C && o && o.store.on(C, L), function() {
1978
+ k.current = !1, R && o && R.split(" ").forEach(function(E) {
1979
+ return o.off(E, L);
1980
+ }), C && o && C.split(" ").forEach(function(E) {
1981
+ return o.store.off(E, L);
1941
1982
  });
1942
1983
  };
1943
- }, [o, v.join()]);
1944
- var R = Ae(!0);
1945
- Ne(function() {
1946
- x.current && !R.current && S(d), R.current = !1;
1947
- }, [o]);
1948
- var k = [b, o, m];
1949
- if (k.t = b, k.i18n = o, k.ready = m, m || !m && !c)
1950
- return k;
1951
- throw new Promise(function(w) {
1952
- $e(o, v, function() {
1953
- w();
1984
+ }, [o, S]);
1985
+ var w = Pe(!0);
1986
+ Le(function() {
1987
+ k.current && !w.current && O(d), w.current = !1;
1988
+ }, [o, p]);
1989
+ var j = [b, o, m];
1990
+ if (j.t = b, j.i18n = o, j.ready = m, m || !m && !c)
1991
+ return j;
1992
+ throw new Promise(function(R) {
1993
+ ze(o, v, function() {
1994
+ R();
1954
1995
  });
1955
1996
  });
1956
1997
  }
1957
- function ue(a) {
1958
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ue = function(t) {
1998
+ function Re(a) {
1999
+ return Re = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1959
2000
  return typeof t;
1960
- } : ue = function(t) {
2001
+ } : function(t) {
1961
2002
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1962
- }, ue(a);
1963
- }
1964
- var ct = [], gn = ct.forEach, hn = ct.slice;
1965
- function Pe(a) {
1966
- return gn.call(hn.call(arguments, 1), function(n) {
1967
- if (n)
1968
- for (var t in n)
1969
- a[t] === void 0 && (a[t] = n[t]);
2003
+ }, Re(a);
2004
+ }
2005
+ var vt = [], On = vt.forEach, Sn = vt.slice;
2006
+ function Ce(a) {
2007
+ return On.call(Sn.call(arguments, 1), function(t) {
2008
+ if (t)
2009
+ for (var n in t)
2010
+ a[n] === void 0 && (a[n] = t[n]);
1970
2011
  }), a;
1971
2012
  }
1972
- function pt() {
1973
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : ue(XMLHttpRequest)) === "object";
2013
+ function mt() {
2014
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Re(XMLHttpRequest)) === "object";
1974
2015
  }
1975
- function vn(a) {
2016
+ function xn(a) {
1976
2017
  return !!a && typeof a.then == "function";
1977
2018
  }
1978
- function mn(a) {
1979
- return vn(a) ? a : Promise.resolve(a);
2019
+ function kn(a) {
2020
+ return xn(a) ? a : Promise.resolve(a);
1980
2021
  }
1981
- function yn(a) {
2022
+ function Pn(a) {
1982
2023
  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.');
1983
2024
  }
1984
- var ce = { exports: {} }, ie = { exports: {} }, Xe;
1985
- function bn() {
1986
- return Xe || (Xe = 1, function(a, n) {
1987
- var t = typeof self < "u" ? self : oe, e = function() {
2025
+ var ce = { exports: {} }, ae = { exports: {} }, Qe;
2026
+ function Ln() {
2027
+ return Qe || (Qe = 1, function(a, t) {
2028
+ var n = typeof self < "u" ? self : oe, e = function() {
1988
2029
  function i() {
1989
- this.fetch = !1, this.DOMException = t.DOMException;
2030
+ this.fetch = !1, this.DOMException = n.DOMException;
1990
2031
  }
1991
- return i.prototype = t, new i();
2032
+ return i.prototype = n, new i();
1992
2033
  }();
1993
2034
  (function(i) {
1994
2035
  (function(o) {
@@ -2005,11 +2046,11 @@ function bn() {
2005
2046
  formData: "FormData" in i,
2006
2047
  arrayBuffer: "ArrayBuffer" in i
2007
2048
  };
2008
- function u(f) {
2009
- return f && DataView.prototype.isPrototypeOf(f);
2049
+ function u(l) {
2050
+ return l && DataView.prototype.isPrototypeOf(l);
2010
2051
  }
2011
2052
  if (s.arrayBuffer)
2012
- var l = [
2053
+ var f = [
2013
2054
  "[object Int8Array]",
2014
2055
  "[object Uint8Array]",
2015
2056
  "[object Uint8ClampedArray]",
@@ -2019,108 +2060,108 @@ function bn() {
2019
2060
  "[object Uint32Array]",
2020
2061
  "[object Float32Array]",
2021
2062
  "[object Float64Array]"
2022
- ], c = ArrayBuffer.isView || function(f) {
2023
- return f && l.indexOf(Object.prototype.toString.call(f)) > -1;
2063
+ ], c = ArrayBuffer.isView || function(l) {
2064
+ return l && f.indexOf(Object.prototype.toString.call(l)) > -1;
2024
2065
  };
2025
- function p(f) {
2026
- if (typeof f != "string" && (f = String(f)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(f))
2066
+ function p(l) {
2067
+ if (typeof l != "string" && (l = String(l)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(l))
2027
2068
  throw new TypeError("Invalid character in header field name");
2028
- return f.toLowerCase();
2069
+ return l.toLowerCase();
2029
2070
  }
2030
- function v(f) {
2031
- return typeof f != "string" && (f = String(f)), f;
2071
+ function v(l) {
2072
+ return typeof l != "string" && (l = String(l)), l;
2032
2073
  }
2033
- function m(f) {
2074
+ function m(l) {
2034
2075
  var g = {
2035
2076
  next: function() {
2036
- var O = f.shift();
2037
- return { done: O === void 0, value: O };
2077
+ var x = l.shift();
2078
+ return { done: x === void 0, value: x };
2038
2079
  }
2039
2080
  };
2040
2081
  return s.iterable && (g[Symbol.iterator] = function() {
2041
2082
  return g;
2042
2083
  }), g;
2043
2084
  }
2044
- function d(f) {
2045
- this.map = {}, f instanceof d ? f.forEach(function(g, O) {
2046
- this.append(O, g);
2047
- }, this) : Array.isArray(f) ? f.forEach(function(g) {
2085
+ function d(l) {
2086
+ this.map = {}, l instanceof d ? l.forEach(function(g, x) {
2087
+ this.append(x, g);
2088
+ }, this) : Array.isArray(l) ? l.forEach(function(g) {
2048
2089
  this.append(g[0], g[1]);
2049
- }, this) : f && Object.getOwnPropertyNames(f).forEach(function(g) {
2050
- this.append(g, f[g]);
2090
+ }, this) : l && Object.getOwnPropertyNames(l).forEach(function(g) {
2091
+ this.append(g, l[g]);
2051
2092
  }, this);
2052
2093
  }
2053
- d.prototype.append = function(f, g) {
2054
- f = p(f), g = v(g);
2055
- var O = this.map[f];
2056
- this.map[f] = O ? O + ", " + g : g;
2057
- }, d.prototype.delete = function(f) {
2058
- delete this.map[p(f)];
2059
- }, d.prototype.get = function(f) {
2060
- return f = p(f), this.has(f) ? this.map[f] : null;
2061
- }, d.prototype.has = function(f) {
2062
- return this.map.hasOwnProperty(p(f));
2063
- }, d.prototype.set = function(f, g) {
2064
- this.map[p(f)] = v(g);
2065
- }, d.prototype.forEach = function(f, g) {
2066
- for (var O in this.map)
2067
- this.map.hasOwnProperty(O) && f.call(g, this.map[O], O, this);
2094
+ d.prototype.append = function(l, g) {
2095
+ l = p(l), g = v(g);
2096
+ var x = this.map[l];
2097
+ this.map[l] = x ? x + ", " + g : g;
2098
+ }, d.prototype.delete = function(l) {
2099
+ delete this.map[p(l)];
2100
+ }, d.prototype.get = function(l) {
2101
+ return l = p(l), this.has(l) ? this.map[l] : null;
2102
+ }, d.prototype.has = function(l) {
2103
+ return this.map.hasOwnProperty(p(l));
2104
+ }, d.prototype.set = function(l, g) {
2105
+ this.map[p(l)] = v(g);
2106
+ }, d.prototype.forEach = function(l, g) {
2107
+ for (var x in this.map)
2108
+ this.map.hasOwnProperty(x) && l.call(g, this.map[x], x, this);
2068
2109
  }, d.prototype.keys = function() {
2069
- var f = [];
2070
- return this.forEach(function(g, O) {
2071
- f.push(O);
2072
- }), m(f);
2110
+ var l = [];
2111
+ return this.forEach(function(g, x) {
2112
+ l.push(x);
2113
+ }), m(l);
2073
2114
  }, d.prototype.values = function() {
2074
- var f = [];
2115
+ var l = [];
2075
2116
  return this.forEach(function(g) {
2076
- f.push(g);
2077
- }), m(f);
2117
+ l.push(g);
2118
+ }), m(l);
2078
2119
  }, d.prototype.entries = function() {
2079
- var f = [];
2080
- return this.forEach(function(g, O) {
2081
- f.push([O, g]);
2082
- }), m(f);
2120
+ var l = [];
2121
+ return this.forEach(function(g, x) {
2122
+ l.push([x, g]);
2123
+ }), m(l);
2083
2124
  }, s.iterable && (d.prototype[Symbol.iterator] = d.prototype.entries);
2084
- function y(f) {
2085
- if (f.bodyUsed)
2125
+ function y(l) {
2126
+ if (l.bodyUsed)
2086
2127
  return Promise.reject(new TypeError("Already read"));
2087
- f.bodyUsed = !0;
2128
+ l.bodyUsed = !0;
2088
2129
  }
2089
- function h(f) {
2090
- return new Promise(function(g, O) {
2091
- f.onload = function() {
2092
- g(f.result);
2093
- }, f.onerror = function() {
2094
- O(f.error);
2130
+ function h(l) {
2131
+ return new Promise(function(g, x) {
2132
+ l.onload = function() {
2133
+ g(l.result);
2134
+ }, l.onerror = function() {
2135
+ x(l.error);
2095
2136
  };
2096
2137
  });
2097
2138
  }
2098
- function b(f) {
2099
- var g = new FileReader(), O = h(g);
2100
- return g.readAsArrayBuffer(f), O;
2139
+ function b(l) {
2140
+ var g = new FileReader(), x = h(g);
2141
+ return g.readAsArrayBuffer(l), x;
2101
2142
  }
2102
- function S(f) {
2103
- var g = new FileReader(), O = h(g);
2104
- return g.readAsText(f), O;
2143
+ function O(l) {
2144
+ var g = new FileReader(), x = h(g);
2145
+ return g.readAsText(l), x;
2105
2146
  }
2106
- function x(f) {
2107
- for (var g = new Uint8Array(f), O = new Array(g.length), T = 0; T < g.length; T++)
2108
- O[T] = String.fromCharCode(g[T]);
2109
- return O.join("");
2147
+ function S(l) {
2148
+ for (var g = new Uint8Array(l), x = new Array(g.length), T = 0; T < g.length; T++)
2149
+ x[T] = String.fromCharCode(g[T]);
2150
+ return x.join("");
2110
2151
  }
2111
- function R(f) {
2112
- if (f.slice)
2113
- return f.slice(0);
2114
- var g = new Uint8Array(f.byteLength);
2115
- return g.set(new Uint8Array(f)), g.buffer;
2152
+ function A(l) {
2153
+ if (l.slice)
2154
+ return l.slice(0);
2155
+ var g = new Uint8Array(l.byteLength);
2156
+ return g.set(new Uint8Array(l)), g.buffer;
2116
2157
  }
2117
2158
  function k() {
2118
- return this.bodyUsed = !1, this._initBody = function(f) {
2119
- this._bodyInit = f, f ? typeof f == "string" ? this._bodyText = f : s.blob && Blob.prototype.isPrototypeOf(f) ? this._bodyBlob = f : s.formData && FormData.prototype.isPrototypeOf(f) ? this._bodyFormData = f : s.searchParams && URLSearchParams.prototype.isPrototypeOf(f) ? this._bodyText = f.toString() : s.arrayBuffer && s.blob && u(f) ? (this._bodyArrayBuffer = R(f.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : s.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(f) || c(f)) ? this._bodyArrayBuffer = R(f) : this._bodyText = f = Object.prototype.toString.call(f) : this._bodyText = "", this.headers.get("content-type") || (typeof f == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : s.searchParams && URLSearchParams.prototype.isPrototypeOf(f) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2159
+ return this.bodyUsed = !1, this._initBody = function(l) {
2160
+ this._bodyInit = l, l ? typeof l == "string" ? this._bodyText = l : s.blob && Blob.prototype.isPrototypeOf(l) ? this._bodyBlob = l : s.formData && FormData.prototype.isPrototypeOf(l) ? this._bodyFormData = l : s.searchParams && URLSearchParams.prototype.isPrototypeOf(l) ? this._bodyText = l.toString() : s.arrayBuffer && s.blob && u(l) ? (this._bodyArrayBuffer = A(l.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : s.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(l) || c(l)) ? this._bodyArrayBuffer = A(l) : this._bodyText = l = Object.prototype.toString.call(l) : this._bodyText = "", this.headers.get("content-type") || (typeof l == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : s.searchParams && URLSearchParams.prototype.isPrototypeOf(l) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2120
2161
  }, s.blob && (this.blob = function() {
2121
- var f = y(this);
2122
- if (f)
2123
- return f;
2162
+ var l = y(this);
2163
+ if (l)
2164
+ return l;
2124
2165
  if (this._bodyBlob)
2125
2166
  return Promise.resolve(this._bodyBlob);
2126
2167
  if (this._bodyArrayBuffer)
@@ -2131,191 +2172,207 @@ function bn() {
2131
2172
  }, this.arrayBuffer = function() {
2132
2173
  return this._bodyArrayBuffer ? y(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(b);
2133
2174
  }), this.text = function() {
2134
- var f = y(this);
2135
- if (f)
2136
- return f;
2175
+ var l = y(this);
2176
+ if (l)
2177
+ return l;
2137
2178
  if (this._bodyBlob)
2138
- return S(this._bodyBlob);
2179
+ return O(this._bodyBlob);
2139
2180
  if (this._bodyArrayBuffer)
2140
- return Promise.resolve(x(this._bodyArrayBuffer));
2181
+ return Promise.resolve(S(this._bodyArrayBuffer));
2141
2182
  if (this._bodyFormData)
2142
2183
  throw new Error("could not read FormData body as text");
2143
2184
  return Promise.resolve(this._bodyText);
2144
2185
  }, s.formData && (this.formData = function() {
2145
- return this.text().then(N);
2186
+ return this.text().then(C);
2146
2187
  }), this.json = function() {
2147
2188
  return this.text().then(JSON.parse);
2148
2189
  }, this;
2149
2190
  }
2150
2191
  var w = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
2151
- function P(f) {
2152
- var g = f.toUpperCase();
2153
- return w.indexOf(g) > -1 ? g : f;
2192
+ function j(l) {
2193
+ var g = l.toUpperCase();
2194
+ return w.indexOf(g) > -1 ? g : l;
2154
2195
  }
2155
- function A(f, g) {
2196
+ function R(l, g) {
2156
2197
  g = g || {};
2157
- var O = g.body;
2158
- if (f instanceof A) {
2159
- if (f.bodyUsed)
2198
+ var x = g.body;
2199
+ if (l instanceof R) {
2200
+ if (l.bodyUsed)
2160
2201
  throw new TypeError("Already read");
2161
- this.url = f.url, this.credentials = f.credentials, g.headers || (this.headers = new d(f.headers)), this.method = f.method, this.mode = f.mode, this.signal = f.signal, !O && f._bodyInit != null && (O = f._bodyInit, f.bodyUsed = !0);
2202
+ this.url = l.url, this.credentials = l.credentials, g.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);
2162
2203
  } else
2163
- this.url = String(f);
2164
- if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new d(g.headers)), this.method = P(g.method || this.method || "GET"), this.mode = g.mode || this.mode || null, this.signal = g.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && O)
2204
+ this.url = String(l);
2205
+ if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new d(g.headers)), this.method = j(g.method || this.method || "GET"), this.mode = g.mode || this.mode || null, this.signal = g.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && x)
2165
2206
  throw new TypeError("Body not allowed for GET or HEAD requests");
2166
- this._initBody(O);
2207
+ this._initBody(x);
2167
2208
  }
2168
- A.prototype.clone = function() {
2169
- return new A(this, { body: this._bodyInit });
2209
+ R.prototype.clone = function() {
2210
+ return new R(this, { body: this._bodyInit });
2170
2211
  };
2171
- function N(f) {
2212
+ function C(l) {
2172
2213
  var g = new FormData();
2173
- return f.trim().split("&").forEach(function(O) {
2174
- if (O) {
2175
- var T = O.split("="), E = T.shift().replace(/\+/g, " "), L = T.join("=").replace(/\+/g, " ");
2176
- g.append(decodeURIComponent(E), decodeURIComponent(L));
2214
+ return l.trim().split("&").forEach(function(x) {
2215
+ if (x) {
2216
+ var T = x.split("="), N = T.shift().replace(/\+/g, " "), P = T.join("=").replace(/\+/g, " ");
2217
+ g.append(decodeURIComponent(N), decodeURIComponent(P));
2177
2218
  }
2178
2219
  }), g;
2179
2220
  }
2180
- function C(f) {
2181
- var g = new d(), O = f.replace(/\r?\n[\t ]+/g, " ");
2182
- return O.split(/\r?\n/).forEach(function(T) {
2183
- var E = T.split(":"), L = E.shift().trim();
2184
- if (L) {
2185
- var V = E.join(":").trim();
2186
- g.append(L, V);
2221
+ function L(l) {
2222
+ var g = new d(), x = l.replace(/\r?\n[\t ]+/g, " ");
2223
+ return x.split(/\r?\n/).forEach(function(T) {
2224
+ var N = T.split(":"), P = N.shift().trim();
2225
+ if (P) {
2226
+ var q = N.join(":").trim();
2227
+ g.append(P, q);
2187
2228
  }
2188
2229
  }), g;
2189
2230
  }
2190
- k.call(A.prototype);
2191
- function j(f, g) {
2192
- g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in g ? g.statusText : "OK", this.headers = new d(g.headers), this.url = g.url || "", this._initBody(f);
2231
+ k.call(R.prototype);
2232
+ function E(l, g) {
2233
+ g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in g ? g.statusText : "OK", this.headers = new d(g.headers), this.url = g.url || "", this._initBody(l);
2193
2234
  }
2194
- k.call(j.prototype), j.prototype.clone = function() {
2195
- return new j(this._bodyInit, {
2235
+ k.call(E.prototype), E.prototype.clone = function() {
2236
+ return new E(this._bodyInit, {
2196
2237
  status: this.status,
2197
2238
  statusText: this.statusText,
2198
2239
  headers: new d(this.headers),
2199
2240
  url: this.url
2200
2241
  });
2201
- }, j.error = function() {
2202
- var f = new j(null, { status: 0, statusText: "" });
2203
- return f.type = "error", f;
2242
+ }, E.error = function() {
2243
+ var l = new E(null, { status: 0, statusText: "" });
2244
+ return l.type = "error", l;
2204
2245
  };
2205
- var z = [301, 302, 303, 307, 308];
2206
- j.redirect = function(f, g) {
2207
- if (z.indexOf(g) === -1)
2246
+ var K = [301, 302, 303, 307, 308];
2247
+ E.redirect = function(l, g) {
2248
+ if (K.indexOf(g) === -1)
2208
2249
  throw new RangeError("Invalid status code");
2209
- return new j(null, { status: g, headers: { location: f } });
2250
+ return new E(null, { status: g, headers: { location: l } });
2210
2251
  }, o.DOMException = i.DOMException;
2211
2252
  try {
2212
2253
  new o.DOMException();
2213
2254
  } catch {
2214
- o.DOMException = function(g, O) {
2215
- this.message = g, this.name = O;
2255
+ o.DOMException = function(g, x) {
2256
+ this.message = g, this.name = x;
2216
2257
  var T = Error(g);
2217
2258
  this.stack = T.stack;
2218
2259
  }, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
2219
2260
  }
2220
- function B(f, g) {
2221
- return new Promise(function(O, T) {
2222
- var E = new A(f, g);
2223
- if (E.signal && E.signal.aborted)
2261
+ function U(l, g) {
2262
+ return new Promise(function(x, T) {
2263
+ var N = new R(l, g);
2264
+ if (N.signal && N.signal.aborted)
2224
2265
  return T(new o.DOMException("Aborted", "AbortError"));
2225
- var L = new XMLHttpRequest();
2226
- function V() {
2227
- L.abort();
2266
+ var P = new XMLHttpRequest();
2267
+ function q() {
2268
+ P.abort();
2228
2269
  }
2229
- L.onload = function() {
2230
- var D = {
2231
- status: L.status,
2232
- statusText: L.statusText,
2233
- headers: C(L.getAllResponseHeaders() || "")
2270
+ P.onload = function() {
2271
+ var _ = {
2272
+ status: P.status,
2273
+ statusText: P.statusText,
2274
+ headers: L(P.getAllResponseHeaders() || "")
2234
2275
  };
2235
- D.url = "responseURL" in L ? L.responseURL : D.headers.get("X-Request-URL");
2236
- var H = "response" in L ? L.response : L.responseText;
2237
- O(new j(H, D));
2238
- }, L.onerror = function() {
2276
+ _.url = "responseURL" in P ? P.responseURL : _.headers.get("X-Request-URL");
2277
+ var B = "response" in P ? P.response : P.responseText;
2278
+ x(new E(B, _));
2279
+ }, P.onerror = function() {
2239
2280
  T(new TypeError("Network request failed"));
2240
- }, L.ontimeout = function() {
2281
+ }, P.ontimeout = function() {
2241
2282
  T(new TypeError("Network request failed"));
2242
- }, L.onabort = function() {
2283
+ }, P.onabort = function() {
2243
2284
  T(new o.DOMException("Aborted", "AbortError"));
2244
- }, L.open(E.method, E.url, !0), E.credentials === "include" ? L.withCredentials = !0 : E.credentials === "omit" && (L.withCredentials = !1), "responseType" in L && s.blob && (L.responseType = "blob"), E.headers.forEach(function(D, H) {
2245
- L.setRequestHeader(H, D);
2246
- }), E.signal && (E.signal.addEventListener("abort", V), L.onreadystatechange = function() {
2247
- L.readyState === 4 && E.signal.removeEventListener("abort", V);
2248
- }), L.send(typeof E._bodyInit > "u" ? null : E._bodyInit);
2285
+ }, P.open(N.method, N.url, !0), N.credentials === "include" ? P.withCredentials = !0 : N.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && s.blob && (P.responseType = "blob"), N.headers.forEach(function(_, B) {
2286
+ P.setRequestHeader(B, _);
2287
+ }), N.signal && (N.signal.addEventListener("abort", q), P.onreadystatechange = function() {
2288
+ P.readyState === 4 && N.signal.removeEventListener("abort", q);
2289
+ }), P.send(typeof N._bodyInit > "u" ? null : N._bodyInit);
2249
2290
  });
2250
2291
  }
2251
- return B.polyfill = !0, i.fetch || (i.fetch = B, i.Headers = d, i.Request = A, i.Response = j), o.Headers = d, o.Request = A, o.Response = j, o.fetch = B, Object.defineProperty(o, "__esModule", { value: !0 }), o;
2292
+ return U.polyfill = !0, i.fetch || (i.fetch = U, i.Headers = d, i.Request = R, i.Response = E), o.Headers = d, o.Request = R, o.Response = E, o.fetch = U, Object.defineProperty(o, "__esModule", { value: !0 }), o;
2252
2293
  })({});
2253
2294
  })(e), e.fetch.ponyfill = !0, delete e.fetch.polyfill;
2254
2295
  var r = e;
2255
- n = r.fetch, n.default = r.fetch, n.fetch = r.fetch, n.Headers = r.Headers, n.Request = r.Request, n.Response = r.Response, a.exports = n;
2256
- }(ie, ie.exports)), ie.exports;
2257
- }
2258
- (function(a, n) {
2259
- var t;
2260
- if (typeof fetch == "function" && (typeof oe < "u" && oe.fetch ? t = oe.fetch : typeof window < "u" && window.fetch && (t = window.fetch)), typeof yn < "u" && (typeof window > "u" || typeof window.document > "u")) {
2261
- var e = t || bn();
2262
- e.default && (e = e.default), n.default = e, a.exports = n.default;
2296
+ 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;
2297
+ }(ae, ae.exports)), ae.exports;
2298
+ }
2299
+ (function(a, t) {
2300
+ var n;
2301
+ if (typeof fetch == "function" && (typeof oe < "u" && oe.fetch ? n = oe.fetch : typeof window < "u" && window.fetch ? n = window.fetch : n = fetch), typeof Pn < "u" && (typeof window > "u" || typeof window.document > "u")) {
2302
+ var e = n || Ln();
2303
+ e.default && (e = e.default), t.default = e, a.exports = t.default;
2263
2304
  }
2264
2305
  })(ce, ce.exports);
2265
- const dt = ce.exports, Je = /* @__PURE__ */ yt({
2306
+ const yt = ce.exports, Ge = /* @__PURE__ */ kt({
2266
2307
  __proto__: null,
2267
- default: dt
2308
+ default: yt
2268
2309
  }, [ce.exports]);
2269
- function te(a) {
2270
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? te = function(t) {
2310
+ function pe(a) {
2311
+ return pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2271
2312
  return typeof t;
2272
- } : te = function(t) {
2313
+ } : function(t) {
2273
2314
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2274
- }, te(a);
2275
- }
2276
- var W;
2277
- typeof fetch == "function" && (typeof global < "u" && global.fetch ? W = global.fetch : typeof window < "u" && window.fetch && (W = window.fetch));
2278
- var re;
2279
- pt && (typeof global < "u" && global.XMLHttpRequest ? re = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (re = window.XMLHttpRequest));
2280
- var pe;
2281
- typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? pe = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (pe = window.ActiveXObject));
2282
- !W && Je && !re && !pe && (W = dt || Je);
2283
- typeof W != "function" && (W = void 0);
2284
- var Ee = function(n, t) {
2285
- if (t && te(t) === "object") {
2315
+ }, pe(a);
2316
+ }
2317
+ var $;
2318
+ typeof fetch == "function" && (typeof global < "u" && global.fetch ? $ = global.fetch : typeof window < "u" && window.fetch ? $ = window.fetch : $ = fetch);
2319
+ var te;
2320
+ mt() && (typeof global < "u" && global.XMLHttpRequest ? te = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (te = window.XMLHttpRequest));
2321
+ var de;
2322
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? de = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (de = window.ActiveXObject));
2323
+ !$ && Ge && !te && !de && ($ = yt || Ge);
2324
+ typeof $ != "function" && ($ = void 0);
2325
+ var Ne = function(t, n) {
2326
+ if (n && pe(n) === "object") {
2286
2327
  var e = "";
2287
- for (var r in t)
2288
- e += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(t[r]);
2328
+ for (var r in n)
2329
+ e += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(n[r]);
2289
2330
  if (!e)
2290
- return n;
2291
- n = n + (n.indexOf("?") !== -1 ? "&" : "?") + e.slice(1);
2331
+ return t;
2332
+ t = t + (t.indexOf("?") !== -1 ? "&" : "?") + e.slice(1);
2292
2333
  }
2293
- return n;
2294
- }, wn = function(n, t, e, r) {
2295
- n.queryStringParams && (t = Ee(t, n.queryStringParams));
2296
- var i = Pe({}, typeof n.customHeaders == "function" ? n.customHeaders() : n.customHeaders);
2297
- e && (i["Content-Type"] = "application/json"), W(t, Pe({
2298
- method: e ? "POST" : "GET",
2299
- body: e ? n.stringify(e) : void 0,
2300
- headers: i
2301
- }, typeof n.requestOptions == "function" ? n.requestOptions(e) : n.requestOptions)).then(function(o) {
2302
- if (!o.ok)
2303
- return r(o.statusText || "Error", {
2304
- status: o.status
2334
+ return t;
2335
+ }, Ye = function(t, n, e) {
2336
+ $(t, n).then(function(r) {
2337
+ if (!r.ok)
2338
+ return e(r.statusText || "Error", {
2339
+ status: r.status
2305
2340
  });
2306
- o.text().then(function(s) {
2307
- r(null, {
2308
- status: o.status,
2309
- data: s
2341
+ r.text().then(function(i) {
2342
+ e(null, {
2343
+ status: r.status,
2344
+ data: i
2310
2345
  });
2311
- }).catch(r);
2312
- }).catch(r);
2313
- }, Sn = function(n, t, e, r) {
2314
- e && te(e) === "object" && (e = Ee("", e).slice(1)), n.queryStringParams && (t = Ee(t, n.queryStringParams));
2346
+ }).catch(e);
2347
+ }).catch(e);
2348
+ }, Ze = !1, En = function(t, n, e, r) {
2349
+ t.queryStringParams && (n = Ne(n, t.queryStringParams));
2350
+ var i = Ce({}, typeof t.customHeaders == "function" ? t.customHeaders() : t.customHeaders);
2351
+ e && (i["Content-Type"] = "application/json");
2352
+ var o = typeof t.requestOptions == "function" ? t.requestOptions(e) : t.requestOptions, s = Ce({
2353
+ method: e ? "POST" : "GET",
2354
+ body: e ? t.stringify(e) : void 0,
2355
+ headers: i
2356
+ }, Ze ? {} : o);
2357
+ try {
2358
+ Ye(n, s, r);
2359
+ } catch (u) {
2360
+ if (!o || Object.keys(o).length === 0 || !u.message || u.message.indexOf("not implemented") < 0)
2361
+ return r(u);
2362
+ try {
2363
+ Object.keys(o).forEach(function(f) {
2364
+ delete s[f];
2365
+ }), Ye(n, s, r), Ze = !0;
2366
+ } catch (f) {
2367
+ r(f);
2368
+ }
2369
+ }
2370
+ }, jn = function(t, n, e, r) {
2371
+ e && pe(e) === "object" && (e = Ne("", e).slice(1)), t.queryStringParams && (n = Ne(n, t.queryStringParams));
2315
2372
  try {
2316
2373
  var i;
2317
- re ? i = new re() : i = new pe("MSXML2.XMLHTTP.3.0"), i.open(e ? "POST" : "GET", t, 1), n.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!n.withCredentials, e && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
2318
- var o = n.customHeaders;
2374
+ te ? i = new te() : i = new de("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");
2375
+ var o = t.customHeaders;
2319
2376
  if (o = typeof o == "function" ? o() : o, o)
2320
2377
  for (var s in o)
2321
2378
  i.setRequestHeader(s, o[s]);
@@ -2328,42 +2385,43 @@ var Ee = function(n, t) {
2328
2385
  } catch (u) {
2329
2386
  console && console.log(u);
2330
2387
  }
2331
- }, xn = function(n, t, e, r) {
2388
+ }, Rn = function(t, n, e, r) {
2332
2389
  if (typeof e == "function" && (r = e, e = void 0), r = r || function() {
2333
- }, W)
2334
- return wn(n, t, e, r);
2335
- if (pt || typeof ActiveXObject == "function")
2336
- return Sn(n, t, e, r);
2390
+ }, $)
2391
+ return En(t, n, e, r);
2392
+ if (mt() || typeof ActiveXObject == "function")
2393
+ return jn(t, n, e, r);
2394
+ r(new Error("No fetch and no xhr implementation found!"));
2337
2395
  };
2338
- function On(a, n) {
2339
- if (!(a instanceof n))
2396
+ function Cn(a, t) {
2397
+ if (!(a instanceof t))
2340
2398
  throw new TypeError("Cannot call a class as a function");
2341
2399
  }
2342
- function Qe(a, n) {
2343
- for (var t = 0; t < n.length; t++) {
2344
- var e = n[t];
2400
+ function et(a, t) {
2401
+ for (var n = 0; n < t.length; n++) {
2402
+ var e = t[n];
2345
2403
  e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(a, e.key, e);
2346
2404
  }
2347
2405
  }
2348
- function kn(a, n, t) {
2349
- return n && Qe(a.prototype, n), t && Qe(a, t), a;
2406
+ function Nn(a, t, n) {
2407
+ return t && et(a.prototype, t), n && et(a, n), Object.defineProperty(a, "prototype", { writable: !1 }), a;
2350
2408
  }
2351
- function Ln(a, n, t) {
2352
- return n in a ? Object.defineProperty(a, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[n] = t, a;
2409
+ function An(a, t, n) {
2410
+ return t in a ? Object.defineProperty(a, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : a[t] = n, a;
2353
2411
  }
2354
- var Pn = function() {
2412
+ var Tn = function() {
2355
2413
  return {
2356
2414
  loadPath: "/locales/{{lng}}/{{ns}}.json",
2357
2415
  addPath: "/locales/add/{{lng}}/{{ns}}",
2358
2416
  allowMultiLoading: !1,
2359
- parse: function(t) {
2360
- return JSON.parse(t);
2417
+ parse: function(n) {
2418
+ return JSON.parse(n);
2361
2419
  },
2362
2420
  stringify: JSON.stringify,
2363
- parsePayload: function(t, e, r) {
2364
- return Ln({}, e, r || "");
2421
+ parsePayload: function(n, e, r) {
2422
+ return An({}, e, r || "");
2365
2423
  },
2366
- request: xn,
2424
+ request: Rn,
2367
2425
  reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
2368
2426
  customHeaders: {},
2369
2427
  queryStringParams: {},
@@ -2376,36 +2434,38 @@ var Pn = function() {
2376
2434
  cache: "default"
2377
2435
  }
2378
2436
  };
2379
- }, gt = function() {
2380
- function a(n) {
2381
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2382
- On(this, a), this.services = n, this.options = t, this.allOptions = e, this.type = "backend", this.init(n, t, e);
2437
+ }, bt = function() {
2438
+ function a(t) {
2439
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2440
+ Cn(this, a), this.services = t, this.options = n, this.allOptions = e, this.type = "backend", this.init(t, n, e);
2383
2441
  }
2384
- return kn(a, [{
2442
+ return Nn(a, [{
2385
2443
  key: "init",
2386
- value: function(t) {
2444
+ value: function(n) {
2387
2445
  var e = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2388
- this.services = t, this.options = Pe(r, this.options || {}, Pn()), this.allOptions = i, this.services && this.options.reloadInterval && setInterval(function() {
2446
+ this.services = n, this.options = Ce(r, this.options || {}, Tn()), this.allOptions = i, this.services && this.options.reloadInterval && setInterval(function() {
2389
2447
  return e.reload();
2390
2448
  }, this.options.reloadInterval);
2391
2449
  }
2392
2450
  }, {
2393
2451
  key: "readMulti",
2394
- value: function(t, e, r) {
2395
- this._readAny(t, t, e, e, r);
2452
+ value: function(n, e, r) {
2453
+ this._readAny(n, n, e, e, r);
2396
2454
  }
2397
2455
  }, {
2398
2456
  key: "read",
2399
- value: function(t, e, r) {
2400
- this._readAny([t], t, [e], e, r);
2457
+ value: function(n, e, r) {
2458
+ this._readAny([n], n, [e], e, r);
2401
2459
  }
2402
2460
  }, {
2403
2461
  key: "_readAny",
2404
- value: function(t, e, r, i, o) {
2462
+ value: function(n, e, r, i, o) {
2405
2463
  var s = this, u = this.options.loadPath;
2406
- typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, r)), u = mn(u), u.then(function(l) {
2407
- var c = s.services.interpolator.interpolate(l, {
2408
- lng: t.join("+"),
2464
+ typeof this.options.loadPath == "function" && (u = this.options.loadPath(n, r)), u = kn(u), u.then(function(f) {
2465
+ if (!f)
2466
+ return o(null, {});
2467
+ var c = s.services.interpolator.interpolate(f, {
2468
+ lng: n.join("+"),
2409
2469
  ns: r.join("+")
2410
2470
  });
2411
2471
  s.loadUrl(c, o, e, i);
@@ -2413,36 +2473,36 @@ var Pn = function() {
2413
2473
  }
2414
2474
  }, {
2415
2475
  key: "loadUrl",
2416
- value: function(t, e, r, i) {
2476
+ value: function(n, e, r, i) {
2417
2477
  var o = this;
2418
- this.options.request(this.options, t, void 0, function(s, u) {
2478
+ this.options.request(this.options, n, void 0, function(s, u) {
2419
2479
  if (u && (u.status >= 500 && u.status < 600 || !u.status))
2420
- return e("failed loading " + t + "; status code: " + u.status, !0);
2480
+ return e("failed loading " + n + "; status code: " + u.status, !0);
2421
2481
  if (u && u.status >= 400 && u.status < 500)
2422
- return e("failed loading " + t + "; status code: " + u.status, !1);
2482
+ return e("failed loading " + n + "; status code: " + u.status, !1);
2423
2483
  if (!u && s && s.message && s.message.indexOf("Failed to fetch") > -1)
2424
- return e("failed loading " + t + ": " + s.message, !0);
2484
+ return e("failed loading " + n + ": " + s.message, !0);
2425
2485
  if (s)
2426
2486
  return e(s, !1);
2427
- var l, c;
2487
+ var f, c;
2428
2488
  try {
2429
- typeof u.data == "string" ? l = o.options.parse(u.data, r, i) : l = u.data;
2489
+ typeof u.data == "string" ? f = o.options.parse(u.data, r, i) : f = u.data;
2430
2490
  } catch {
2431
- c = "failed parsing " + t + " to json";
2491
+ c = "failed parsing " + n + " to json";
2432
2492
  }
2433
2493
  if (c)
2434
2494
  return e(c, !1);
2435
- e(null, l);
2495
+ e(null, f);
2436
2496
  });
2437
2497
  }
2438
2498
  }, {
2439
2499
  key: "create",
2440
- value: function(t, e, r, i, o) {
2500
+ value: function(n, e, r, i, o) {
2441
2501
  var s = this;
2442
2502
  if (!!this.options.addPath) {
2443
- typeof t == "string" && (t = [t]);
2444
- var u = this.options.parsePayload(e, r, i), l = 0, c = [], p = [];
2445
- t.forEach(function(v) {
2503
+ typeof n == "string" && (n = [n]);
2504
+ var u = this.options.parsePayload(e, r, i), f = 0, c = [], p = [];
2505
+ n.forEach(function(v) {
2446
2506
  var m = s.options.addPath;
2447
2507
  typeof s.options.addPath == "function" && (m = s.options.addPath(v, e));
2448
2508
  var d = s.services.interpolator.interpolate(m, {
@@ -2450,7 +2510,7 @@ var Pn = function() {
2450
2510
  ns: e
2451
2511
  });
2452
2512
  s.options.request(s.options, d, u, function(y, h) {
2453
- l += 1, c.push(y), p.push(h), l === t.length && o && o(c, p);
2513
+ f += 1, c.push(y), p.push(h), f === n.length && o && o(c, p);
2454
2514
  });
2455
2515
  });
2456
2516
  }
@@ -2458,18 +2518,18 @@ var Pn = function() {
2458
2518
  }, {
2459
2519
  key: "reload",
2460
2520
  value: function() {
2461
- var t = this, e = this.services, r = e.backendConnector, i = e.languageUtils, o = e.logger, s = r.language;
2521
+ var n = this, e = this.services, r = e.backendConnector, i = e.languageUtils, o = e.logger, s = r.language;
2462
2522
  if (!(s && s.toLowerCase() === "cimode")) {
2463
- var u = [], l = function(p) {
2523
+ var u = [], f = function(p) {
2464
2524
  var v = i.toResolveHierarchy(p);
2465
2525
  v.forEach(function(m) {
2466
2526
  u.indexOf(m) < 0 && u.push(m);
2467
2527
  });
2468
2528
  };
2469
- l(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
2470
- return l(c);
2529
+ f(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
2530
+ return f(c);
2471
2531
  }), u.forEach(function(c) {
2472
- t.allOptions.ns.forEach(function(p) {
2532
+ n.allOptions.ns.forEach(function(p) {
2473
2533
  r.read(c, p, "read", null, null, function(v, m) {
2474
2534
  v && o.warn("loading namespace ".concat(p, " for language ").concat(c, " failed"), v), !v && m && o.log("loaded namespace ".concat(p, " for language ").concat(c), m), r.loaded("".concat(c, "|").concat(p), v, m);
2475
2535
  });
@@ -2479,19 +2539,19 @@ var Pn = function() {
2479
2539
  }
2480
2540
  }]), a;
2481
2541
  }();
2482
- gt.type = "backend";
2483
- var ht = [], En = ht.forEach, Rn = ht.slice;
2484
- function jn(a) {
2485
- return En.call(Rn.call(arguments, 1), function(n) {
2486
- if (n)
2487
- for (var t in n)
2488
- a[t] === void 0 && (a[t] = n[t]);
2542
+ bt.type = "backend";
2543
+ var wt = [], Fn = wt.forEach, Dn = wt.slice;
2544
+ function In(a) {
2545
+ return Fn.call(Dn.call(arguments, 1), function(t) {
2546
+ if (t)
2547
+ for (var n in t)
2548
+ a[n] === void 0 && (a[n] = t[n]);
2489
2549
  }), a;
2490
2550
  }
2491
- var Ge = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Cn = function(n, t, e) {
2551
+ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, _n = function(t, n, e) {
2492
2552
  var r = e || {};
2493
2553
  r.path = r.path || "/";
2494
- var i = encodeURIComponent(t), o = n + "=" + i;
2554
+ var i = encodeURIComponent(n), o = t + "=" + i;
2495
2555
  if (r.maxAge > 0) {
2496
2556
  var s = r.maxAge - 0;
2497
2557
  if (isNaN(s))
@@ -2499,12 +2559,12 @@ var Ge = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Cn = function(n, t, e) {
2499
2559
  o += "; Max-Age=" + Math.floor(s);
2500
2560
  }
2501
2561
  if (r.domain) {
2502
- if (!Ge.test(r.domain))
2562
+ if (!tt.test(r.domain))
2503
2563
  throw new TypeError("option domain is invalid");
2504
2564
  o += "; Domain=" + r.domain;
2505
2565
  }
2506
2566
  if (r.path) {
2507
- if (!Ge.test(r.path))
2567
+ if (!tt.test(r.path))
2508
2568
  throw new TypeError("option path is invalid");
2509
2569
  o += "; Path=" + r.path;
2510
2570
  }
@@ -2533,141 +2593,141 @@ var Ge = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Cn = function(n, t, e) {
2533
2593
  }
2534
2594
  }
2535
2595
  return o;
2536
- }, Ye = {
2537
- create: function(n, t, e, r) {
2596
+ }, nt = {
2597
+ create: function(t, n, e, r) {
2538
2598
  var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2539
2599
  path: "/",
2540
2600
  sameSite: "strict"
2541
2601
  };
2542
- e && (i.expires = new Date(), i.expires.setTime(i.expires.getTime() + e * 60 * 1e3)), r && (i.domain = r), document.cookie = Cn(n, encodeURIComponent(t), i);
2602
+ e && (i.expires = new Date(), i.expires.setTime(i.expires.getTime() + e * 60 * 1e3)), r && (i.domain = r), document.cookie = _n(t, encodeURIComponent(n), i);
2543
2603
  },
2544
- read: function(n) {
2545
- for (var t = n + "=", e = document.cookie.split(";"), r = 0; r < e.length; r++) {
2604
+ read: function(t) {
2605
+ for (var n = t + "=", e = document.cookie.split(";"), r = 0; r < e.length; r++) {
2546
2606
  for (var i = e[r]; i.charAt(0) === " "; )
2547
2607
  i = i.substring(1, i.length);
2548
- if (i.indexOf(t) === 0)
2549
- return i.substring(t.length, i.length);
2608
+ if (i.indexOf(n) === 0)
2609
+ return i.substring(n.length, i.length);
2550
2610
  }
2551
2611
  return null;
2552
2612
  },
2553
- remove: function(n) {
2554
- this.create(n, "", -1);
2613
+ remove: function(t) {
2614
+ this.create(t, "", -1);
2555
2615
  }
2556
- }, An = {
2616
+ }, Un = {
2557
2617
  name: "cookie",
2558
- lookup: function(n) {
2559
- var t;
2560
- if (n.lookupCookie && typeof document < "u") {
2561
- var e = Ye.read(n.lookupCookie);
2562
- e && (t = e);
2618
+ lookup: function(t) {
2619
+ var n;
2620
+ if (t.lookupCookie && typeof document < "u") {
2621
+ var e = nt.read(t.lookupCookie);
2622
+ e && (n = e);
2563
2623
  }
2564
- return t;
2624
+ return n;
2565
2625
  },
2566
- cacheUserLanguage: function(n, t) {
2567
- t.lookupCookie && typeof document < "u" && Ye.create(t.lookupCookie, n, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2626
+ cacheUserLanguage: function(t, n) {
2627
+ n.lookupCookie && typeof document < "u" && nt.create(n.lookupCookie, t, n.cookieMinutes, n.cookieDomain, n.cookieOptions);
2568
2628
  }
2569
- }, Nn = {
2629
+ }, Bn = {
2570
2630
  name: "querystring",
2571
- lookup: function(n) {
2572
- var t;
2631
+ lookup: function(t) {
2632
+ var n;
2573
2633
  if (typeof window < "u")
2574
2634
  for (var e = window.location.search.substring(1), r = e.split("&"), i = 0; i < r.length; i++) {
2575
2635
  var o = r[i].indexOf("=");
2576
2636
  if (o > 0) {
2577
2637
  var s = r[i].substring(0, o);
2578
- s === n.lookupQuerystring && (t = r[i].substring(o + 1));
2638
+ s === t.lookupQuerystring && (n = r[i].substring(o + 1));
2579
2639
  }
2580
2640
  }
2581
- return t;
2641
+ return n;
2582
2642
  }
2583
- }, de;
2643
+ }, ge;
2584
2644
  try {
2585
- de = window !== "undefined" && window.localStorage !== null;
2586
- var Ze = "i18next.translate.boo";
2587
- window.localStorage.setItem(Ze, "foo"), window.localStorage.removeItem(Ze);
2645
+ ge = window !== "undefined" && window.localStorage !== null;
2646
+ var rt = "i18next.translate.boo";
2647
+ window.localStorage.setItem(rt, "foo"), window.localStorage.removeItem(rt);
2588
2648
  } catch {
2589
- de = !1;
2649
+ ge = !1;
2590
2650
  }
2591
- var Tn = {
2651
+ var Hn = {
2592
2652
  name: "localStorage",
2593
- lookup: function(n) {
2594
- var t;
2595
- if (n.lookupLocalStorage && de) {
2596
- var e = window.localStorage.getItem(n.lookupLocalStorage);
2597
- e && (t = e);
2653
+ lookup: function(t) {
2654
+ var n;
2655
+ if (t.lookupLocalStorage && ge) {
2656
+ var e = window.localStorage.getItem(t.lookupLocalStorage);
2657
+ e && (n = e);
2598
2658
  }
2599
- return t;
2659
+ return n;
2600
2660
  },
2601
- cacheUserLanguage: function(n, t) {
2602
- t.lookupLocalStorage && de && window.localStorage.setItem(t.lookupLocalStorage, n);
2661
+ cacheUserLanguage: function(t, n) {
2662
+ n.lookupLocalStorage && ge && window.localStorage.setItem(n.lookupLocalStorage, t);
2603
2663
  }
2604
- }, ge;
2664
+ }, he;
2605
2665
  try {
2606
- ge = window !== "undefined" && window.sessionStorage !== null;
2607
- var et = "i18next.translate.boo";
2608
- window.sessionStorage.setItem(et, "foo"), window.sessionStorage.removeItem(et);
2666
+ he = window !== "undefined" && window.sessionStorage !== null;
2667
+ var at = "i18next.translate.boo";
2668
+ window.sessionStorage.setItem(at, "foo"), window.sessionStorage.removeItem(at);
2609
2669
  } catch {
2610
- ge = !1;
2670
+ he = !1;
2611
2671
  }
2612
- var _n = {
2672
+ var Mn = {
2613
2673
  name: "sessionStorage",
2614
- lookup: function(n) {
2615
- var t;
2616
- if (n.lookupsessionStorage && ge) {
2617
- var e = window.sessionStorage.getItem(n.lookupsessionStorage);
2618
- e && (t = e);
2674
+ lookup: function(t) {
2675
+ var n;
2676
+ if (t.lookupsessionStorage && he) {
2677
+ var e = window.sessionStorage.getItem(t.lookupsessionStorage);
2678
+ e && (n = e);
2619
2679
  }
2620
- return t;
2680
+ return n;
2621
2681
  },
2622
- cacheUserLanguage: function(n, t) {
2623
- t.lookupsessionStorage && ge && window.sessionStorage.setItem(t.lookupsessionStorage, n);
2682
+ cacheUserLanguage: function(t, n) {
2683
+ n.lookupsessionStorage && he && window.sessionStorage.setItem(n.lookupsessionStorage, t);
2624
2684
  }
2625
- }, Fn = {
2685
+ }, qn = {
2626
2686
  name: "navigator",
2627
- lookup: function(n) {
2628
- var t = [];
2687
+ lookup: function(t) {
2688
+ var n = [];
2629
2689
  if (typeof navigator < "u") {
2630
2690
  if (navigator.languages)
2631
2691
  for (var e = 0; e < navigator.languages.length; e++)
2632
- t.push(navigator.languages[e]);
2633
- navigator.userLanguage && t.push(navigator.userLanguage), navigator.language && t.push(navigator.language);
2692
+ n.push(navigator.languages[e]);
2693
+ navigator.userLanguage && n.push(navigator.userLanguage), navigator.language && n.push(navigator.language);
2634
2694
  }
2635
- return t.length > 0 ? t : void 0;
2695
+ return n.length > 0 ? n : void 0;
2636
2696
  }
2637
- }, Dn = {
2697
+ }, Vn = {
2638
2698
  name: "htmlTag",
2639
- lookup: function(n) {
2640
- var t, e = n.htmlTag || (typeof document < "u" ? document.documentElement : null);
2641
- return e && typeof e.getAttribute == "function" && (t = e.getAttribute("lang")), t;
2699
+ lookup: function(t) {
2700
+ var n, e = t.htmlTag || (typeof document < "u" ? document.documentElement : null);
2701
+ return e && typeof e.getAttribute == "function" && (n = e.getAttribute("lang")), n;
2642
2702
  }
2643
- }, In = {
2703
+ }, $n = {
2644
2704
  name: "path",
2645
- lookup: function(n) {
2646
- var t;
2705
+ lookup: function(t) {
2706
+ var n;
2647
2707
  if (typeof window < "u") {
2648
2708
  var e = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
2649
2709
  if (e instanceof Array)
2650
- if (typeof n.lookupFromPathIndex == "number") {
2651
- if (typeof e[n.lookupFromPathIndex] != "string")
2710
+ if (typeof t.lookupFromPathIndex == "number") {
2711
+ if (typeof e[t.lookupFromPathIndex] != "string")
2652
2712
  return;
2653
- t = e[n.lookupFromPathIndex].replace("/", "");
2713
+ n = e[t.lookupFromPathIndex].replace("/", "");
2654
2714
  } else
2655
- t = e[0].replace("/", "");
2715
+ n = e[0].replace("/", "");
2656
2716
  }
2657
- return t;
2717
+ return n;
2658
2718
  }
2659
- }, Un = {
2719
+ }, Kn = {
2660
2720
  name: "subdomain",
2661
- lookup: function(n) {
2662
- var t;
2721
+ lookup: function(t) {
2722
+ var n;
2663
2723
  if (typeof window < "u") {
2664
2724
  var e = window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);
2665
- e instanceof Array && (typeof n.lookupFromSubdomainIndex == "number" ? t = e[n.lookupFromSubdomainIndex].replace("http://", "").replace("https://", "").replace(".", "") : t = e[0].replace("http://", "").replace("https://", "").replace(".", ""));
2725
+ e instanceof Array && (typeof t.lookupFromSubdomainIndex == "number" ? n = e[t.lookupFromSubdomainIndex].replace("http://", "").replace("https://", "").replace(".", "") : n = e[0].replace("http://", "").replace("https://", "").replace(".", ""));
2666
2726
  }
2667
- return t;
2727
+ return n;
2668
2728
  }
2669
2729
  };
2670
- function Bn() {
2730
+ function zn() {
2671
2731
  return {
2672
2732
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2673
2733
  lookupQuerystring: "lng",
@@ -2677,29 +2737,29 @@ function Bn() {
2677
2737
  excludeCacheFor: ["cimode"]
2678
2738
  };
2679
2739
  }
2680
- var vt = /* @__PURE__ */ function() {
2681
- function a(n) {
2682
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2683
- M(this, a), this.type = "languageDetector", this.detectors = {}, this.init(n, t);
2740
+ var Ot = /* @__PURE__ */ function() {
2741
+ function a(t) {
2742
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2743
+ H(this, a), this.type = "languageDetector", this.detectors = {}, this.init(t, n);
2684
2744
  }
2685
- return q(a, [{
2745
+ return M(a, [{
2686
2746
  key: "init",
2687
- value: function(t) {
2747
+ value: function(n) {
2688
2748
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2689
- this.services = t, this.options = jn(e, this.options || {}, Bn()), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(An), this.addDetector(Nn), this.addDetector(Tn), this.addDetector(_n), this.addDetector(Fn), this.addDetector(Dn), this.addDetector(In), this.addDetector(Un);
2749
+ this.services = n, this.options = In(e, this.options || {}, zn()), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Un), this.addDetector(Bn), this.addDetector(Hn), this.addDetector(Mn), this.addDetector(qn), this.addDetector(Vn), this.addDetector($n), this.addDetector(Kn);
2690
2750
  }
2691
2751
  }, {
2692
2752
  key: "addDetector",
2693
- value: function(t) {
2694
- this.detectors[t.name] = t;
2753
+ value: function(n) {
2754
+ this.detectors[n.name] = n;
2695
2755
  }
2696
2756
  }, {
2697
2757
  key: "detect",
2698
- value: function(t) {
2758
+ value: function(n) {
2699
2759
  var e = this;
2700
- t || (t = this.options.order);
2760
+ n || (n = this.options.order);
2701
2761
  var r = [];
2702
- return t.forEach(function(i) {
2762
+ return n.forEach(function(i) {
2703
2763
  if (e.detectors[i]) {
2704
2764
  var o = e.detectors[i].lookup(e.options);
2705
2765
  o && typeof o == "string" && (o = [o]), o && (r = r.concat(o));
@@ -2708,26 +2768,26 @@ var vt = /* @__PURE__ */ function() {
2708
2768
  }
2709
2769
  }, {
2710
2770
  key: "cacheUserLanguage",
2711
- value: function(t, e) {
2771
+ value: function(n, e) {
2712
2772
  var r = this;
2713
- e || (e = this.options.caches), e && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(t) > -1 || e.forEach(function(i) {
2714
- r.detectors[i] && r.detectors[i].cacheUserLanguage(t, r.options);
2773
+ e || (e = this.options.caches), e && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(n) > -1 || e.forEach(function(i) {
2774
+ r.detectors[i] && r.detectors[i].cacheUserLanguage(n, r.options);
2715
2775
  }));
2716
2776
  }
2717
2777
  }]), a;
2718
2778
  }();
2719
- vt.type = "languageDetector";
2720
- function Mn({
2779
+ Ot.type = "languageDetector";
2780
+ function Xn({
2721
2781
  detectorConfig: a,
2722
- translationPath: n,
2723
- customDetectors: t,
2782
+ translationPath: t,
2783
+ customDetectors: n,
2724
2784
  ...e
2725
2785
  }) {
2726
- const r = new vt(), i = {
2786
+ const r = new Ot(), i = {
2727
2787
  name: "hashRouterQuerystringDetector",
2728
- lookup: (l) => {
2788
+ lookup: (f) => {
2729
2789
  try {
2730
- const c = l && l.lookupQuerystring || "lang", v = new RegExp(`[?&]${c}(=([^&#]*)|&|#|$)`).exec(window.location.href);
2790
+ const c = f && f.lookupQuerystring || "lang", v = new RegExp(`[?&]${c}(=([^&#]*)|&|#|$)`).exec(window.location.href);
2731
2791
  if (v && v[2]) {
2732
2792
  const m = decodeURIComponent(v[2].replace(/\+/g, " "));
2733
2793
  if (m)
@@ -2738,15 +2798,15 @@ function Mn({
2738
2798
  }
2739
2799
  }
2740
2800
  };
2741
- r.addDetector(i), Array.isArray(t) && t.forEach((l) => {
2742
- r.addDetector(l);
2801
+ r.addDetector(i), Array.isArray(n) && n.forEach((f) => {
2802
+ r.addDetector(f);
2743
2803
  });
2744
2804
  const u = {
2745
2805
  fallbackLng: "en-US",
2746
2806
  debug: !0,
2747
2807
  keySeparator: ".",
2748
2808
  backend: {
2749
- loadPath: n || "/locales/{{lng}}/{{ns}}.json"
2809
+ loadPath: t || "/locales/{{lng}}/{{ns}}.json"
2750
2810
  },
2751
2811
  interpolation: {
2752
2812
  escapeValue: !1
@@ -2768,14 +2828,14 @@ function Mn({
2768
2828
  },
2769
2829
  ...e
2770
2830
  };
2771
- return Dt.use(gt).use(r).use(Yt).init(u);
2831
+ return Vt.use(bt).use(r).use(an).init(u);
2772
2832
  }
2773
- const qn = sn;
2774
- function Vn(a = "translation", n) {
2775
- return dn([a, "design-system"], n);
2833
+ const Jn = dn;
2834
+ function Qn(a = "translation", t) {
2835
+ return wn([a, "design-system"], t);
2776
2836
  }
2777
2837
  export {
2778
- qn as SpsLanguage,
2779
- Mn as localize,
2780
- Vn as useSpsLanguage
2838
+ Jn as SpsLanguage,
2839
+ Xn as localize,
2840
+ Qn as useSpsLanguage
2781
2841
  };