@ukpc-lib/react 0.15.6-sandbox.saas-9173 → 0.15.9-sandbox.saas-8608.patch-1

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.
@@ -1,61 +1,61 @@
1
- import { r as $, c as ue, g as Ft, s as Bt, j as _ } from "./react-to-web-component-w5r1Fs9q.js";
2
- import { a as Ut, _ as Z } from "./setPrototypeOf-CP0c5ut2.js";
3
- function Ht(i, e) {
4
- for (var n = 0; n < e.length; n++) {
5
- const t = e[n];
6
- if (typeof t != "string" && !Array.isArray(t)) {
7
- for (const r in t)
1
+ import { r as $, c as ce, g as Jt, s as Xt, j as E } from "./react-to-web-component-w5r1Fs9q.js";
2
+ import { a as Wt, _ as Z } from "./setPrototypeOf-CP0c5ut2.js";
3
+ function Gt(i, e) {
4
+ for (var t = 0; t < e.length; t++) {
5
+ const n = e[t];
6
+ if (typeof n != "string" && !Array.isArray(n)) {
7
+ for (const r in n)
8
8
  if (r !== "default" && !(r in i)) {
9
- const a = Object.getOwnPropertyDescriptor(t, r);
9
+ const a = Object.getOwnPropertyDescriptor(n, r);
10
10
  a && Object.defineProperty(i, r, a.get ? a : {
11
11
  enumerable: !0,
12
- get: () => t[r]
12
+ get: () => n[r]
13
13
  });
14
14
  }
15
15
  }
16
16
  }
17
17
  return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }));
18
18
  }
19
- function B(i) {
19
+ function U(i) {
20
20
  "@babel/helpers - typeof";
21
- return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
21
+ return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
22
22
  return typeof e;
23
23
  } : function(e) {
24
24
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
25
- }, B(i);
25
+ }, U(i);
26
26
  }
27
- function U(i, e) {
27
+ function B(i, e) {
28
28
  if (!(i instanceof e))
29
29
  throw new TypeError("Cannot call a class as a function");
30
30
  }
31
- function Mt(i, e) {
32
- if (B(i) != "object" || !i)
31
+ function Qt(i, e) {
32
+ if (U(i) != "object" || !i)
33
33
  return i;
34
- var n = i[Symbol.toPrimitive];
35
- if (n !== void 0) {
36
- var t = n.call(i, e);
37
- if (B(t) != "object")
38
- return t;
34
+ var t = i[Symbol.toPrimitive];
35
+ if (t !== void 0) {
36
+ var n = t.call(i, e);
37
+ if (U(n) != "object")
38
+ return n;
39
39
  throw new TypeError("@@toPrimitive must return a primitive value.");
40
40
  }
41
41
  return (e === "string" ? String : Number)(i);
42
42
  }
43
- function Ot(i) {
44
- var e = Mt(i, "string");
45
- return B(e) == "symbol" ? e : e + "";
43
+ function kt(i) {
44
+ var e = Qt(i, "string");
45
+ return U(e) == "symbol" ? e : e + "";
46
46
  }
47
- function He(i, e) {
48
- for (var n = 0; n < e.length; n++) {
49
- var t = e[n];
50
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(i, Ot(t.key), t);
47
+ function $e(i, e) {
48
+ for (var t = 0; t < e.length; t++) {
49
+ var n = e[t];
50
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, kt(n.key), n);
51
51
  }
52
52
  }
53
- function H(i, e, n) {
54
- return e && He(i.prototype, e), n && He(i, n), Object.defineProperty(i, "prototype", {
53
+ function H(i, e, t) {
54
+ return e && $e(i.prototype, e), t && $e(i, t), Object.defineProperty(i, "prototype", {
55
55
  writable: !1
56
56
  }), i;
57
57
  }
58
- function Oe(i, e) {
58
+ function Se(i, e) {
59
59
  if (typeof e != "function" && e !== null)
60
60
  throw new TypeError("Super expression must either be null or a function");
61
61
  i.prototype = Object.create(e && e.prototype, {
@@ -66,10 +66,10 @@ function Oe(i, e) {
66
66
  }
67
67
  }), Object.defineProperty(i, "prototype", {
68
68
  writable: !1
69
- }), e && Ut(i, e);
69
+ }), e && Wt(i, e);
70
70
  }
71
- function ce(i, e) {
72
- if (e && (B(e) == "object" || typeof e == "function"))
71
+ function de(i, e) {
72
+ if (e && (U(e) == "object" || typeof e == "function"))
73
73
  return e;
74
74
  if (e !== void 0)
75
75
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -80,65 +80,65 @@ function X(i) {
80
80
  return e.__proto__ || Object.getPrototypeOf(e);
81
81
  }, X(i);
82
82
  }
83
- function W(i, e, n) {
84
- return (e = Ot(e)) in i ? Object.defineProperty(i, e, {
85
- value: n,
83
+ function W(i, e, t) {
84
+ return (e = kt(e)) in i ? Object.defineProperty(i, e, {
85
+ value: t,
86
86
  enumerable: !0,
87
87
  configurable: !0,
88
88
  writable: !0
89
- }) : i[e] = n, i;
89
+ }) : i[e] = t, i;
90
90
  }
91
- function wt(i) {
91
+ function Lt(i) {
92
92
  if (Array.isArray(i))
93
93
  return i;
94
94
  }
95
- function $t(i) {
95
+ function Yt(i) {
96
96
  if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null)
97
97
  return Array.from(i);
98
98
  }
99
- function Me(i, e) {
99
+ function qe(i, e) {
100
100
  (e == null || e > i.length) && (e = i.length);
101
- for (var n = 0, t = Array(e); n < e; n++)
102
- t[n] = i[n];
103
- return t;
101
+ for (var t = 0, n = Array(e); t < e; t++)
102
+ n[t] = i[t];
103
+ return n;
104
104
  }
105
- function St(i, e) {
105
+ function Rt(i, e) {
106
106
  if (i) {
107
107
  if (typeof i == "string")
108
- return Me(i, e);
109
- var n = {}.toString.call(i).slice(8, -1);
110
- return n === "Object" && i.constructor && (n = i.constructor.name), n === "Map" || n === "Set" ? Array.from(i) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Me(i, e) : void 0;
108
+ return qe(i, e);
109
+ var t = {}.toString.call(i).slice(8, -1);
110
+ return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? qe(i, e) : void 0;
111
111
  }
112
112
  }
113
- function Pt() {
113
+ function Et() {
114
114
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
115
115
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
116
116
  }
117
- function qt(i) {
118
- return wt(i) || $t(i) || St(i) || Pt();
117
+ function Zt(i) {
118
+ return Lt(i) || Yt(i) || Rt(i) || Et();
119
119
  }
120
- function $e(i, e) {
121
- var n = Object.keys(i);
120
+ function Ke(i, e) {
121
+ var t = Object.keys(i);
122
122
  if (Object.getOwnPropertySymbols) {
123
- var t = Object.getOwnPropertySymbols(i);
124
- e && (t = t.filter(function(r) {
123
+ var n = Object.getOwnPropertySymbols(i);
124
+ e && (n = n.filter(function(r) {
125
125
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
126
- })), n.push.apply(n, t);
126
+ })), t.push.apply(t, n);
127
127
  }
128
- return n;
128
+ return t;
129
129
  }
130
- function qe(i) {
130
+ function Ve(i) {
131
131
  for (var e = 1; e < arguments.length; e++) {
132
- var n = arguments[e] != null ? arguments[e] : {};
133
- e % 2 ? $e(Object(n), !0).forEach(function(t) {
134
- W(i, t, n[t]);
135
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : $e(Object(n)).forEach(function(t) {
136
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
132
+ var t = arguments[e] != null ? arguments[e] : {};
133
+ e % 2 ? Ke(Object(t), !0).forEach(function(n) {
134
+ W(i, n, t[n]);
135
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ke(Object(t)).forEach(function(n) {
136
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
137
137
  });
138
138
  }
139
139
  return i;
140
140
  }
141
- var Kt = {
141
+ var en = {
142
142
  type: "logger",
143
143
  log: function(e) {
144
144
  this.output("log", e);
@@ -149,103 +149,103 @@ var Kt = {
149
149
  error: function(e) {
150
150
  this.output("error", e);
151
151
  },
152
- output: function(e, n) {
153
- console && console[e] && console[e].apply(console, n);
152
+ output: function(e, t) {
153
+ console && console[e] && console[e].apply(console, t);
154
154
  }
155
- }, Vt = function() {
155
+ }, tn = function() {
156
156
  function i(e) {
157
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
158
- U(this, i), this.init(e, n);
157
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
158
+ B(this, i), this.init(e, t);
159
159
  }
160
160
  return H(i, [{
161
161
  key: "init",
162
- value: function(n) {
163
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
164
- this.prefix = t.prefix || "i18next:", this.logger = n || Kt, this.options = t, this.debug = t.debug;
162
+ value: function(t) {
163
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
164
+ this.prefix = n.prefix || "i18next:", this.logger = t || en, this.options = n, this.debug = n.debug;
165
165
  }
166
166
  }, {
167
167
  key: "setDebug",
168
- value: function(n) {
169
- this.debug = n;
168
+ value: function(t) {
169
+ this.debug = t;
170
170
  }
171
171
  }, {
172
172
  key: "log",
173
173
  value: function() {
174
- for (var n = arguments.length, t = new Array(n), r = 0; r < n; r++)
175
- t[r] = arguments[r];
176
- return this.forward(t, "log", "", !0);
174
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
175
+ n[r] = arguments[r];
176
+ return this.forward(n, "log", "", !0);
177
177
  }
178
178
  }, {
179
179
  key: "warn",
180
180
  value: function() {
181
- for (var n = arguments.length, t = new Array(n), r = 0; r < n; r++)
182
- t[r] = arguments[r];
183
- return this.forward(t, "warn", "", !0);
181
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
182
+ n[r] = arguments[r];
183
+ return this.forward(n, "warn", "", !0);
184
184
  }
185
185
  }, {
186
186
  key: "error",
187
187
  value: function() {
188
- for (var n = arguments.length, t = new Array(n), r = 0; r < n; r++)
189
- t[r] = arguments[r];
190
- return this.forward(t, "error", "");
188
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
189
+ n[r] = arguments[r];
190
+ return this.forward(n, "error", "");
191
191
  }
192
192
  }, {
193
193
  key: "deprecate",
194
194
  value: function() {
195
- for (var n = arguments.length, t = new Array(n), r = 0; r < n; r++)
196
- t[r] = arguments[r];
197
- return this.forward(t, "warn", "WARNING DEPRECATED: ", !0);
195
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
196
+ n[r] = arguments[r];
197
+ return this.forward(n, "warn", "WARNING DEPRECATED: ", !0);
198
198
  }
199
199
  }, {
200
200
  key: "forward",
201
- value: function(n, t, r, a) {
202
- return a && !this.debug ? null : (typeof n[0] == "string" && (n[0] = "".concat(r).concat(this.prefix, " ").concat(n[0])), this.logger[t](n));
201
+ value: function(t, n, r, a) {
202
+ return a && !this.debug ? null : (typeof t[0] == "string" && (t[0] = "".concat(r).concat(this.prefix, " ").concat(t[0])), this.logger[n](t));
203
203
  }
204
204
  }, {
205
205
  key: "create",
206
- value: function(n) {
207
- return new i(this.logger, qe(qe({}, {
208
- prefix: "".concat(this.prefix, ":").concat(n, ":")
206
+ value: function(t) {
207
+ return new i(this.logger, Ve(Ve({}, {
208
+ prefix: "".concat(this.prefix, ":").concat(t, ":")
209
209
  }), this.options));
210
210
  }
211
211
  }, {
212
212
  key: "clone",
213
- value: function(n) {
214
- return n = n || this.options, n.prefix = n.prefix || this.prefix, new i(this.logger, n);
213
+ value: function(t) {
214
+ return t = t || this.options, t.prefix = t.prefix || this.prefix, new i(this.logger, t);
215
215
  }
216
216
  }]), i;
217
- }(), J = new Vt(), ee = function() {
217
+ }(), J = new tn(), ee = function() {
218
218
  function i() {
219
- U(this, i), this.observers = {};
219
+ B(this, i), this.observers = {};
220
220
  }
221
221
  return H(i, [{
222
222
  key: "on",
223
- value: function(n, t) {
223
+ value: function(t, n) {
224
224
  var r = this;
225
- return n.split(" ").forEach(function(a) {
226
- r.observers[a] = r.observers[a] || [], r.observers[a].push(t);
225
+ return t.split(" ").forEach(function(a) {
226
+ r.observers[a] = r.observers[a] || [], r.observers[a].push(n);
227
227
  }), this;
228
228
  }
229
229
  }, {
230
230
  key: "off",
231
- value: function(n, t) {
232
- if (this.observers[n]) {
233
- if (!t) {
234
- delete this.observers[n];
231
+ value: function(t, n) {
232
+ if (this.observers[t]) {
233
+ if (!n) {
234
+ delete this.observers[t];
235
235
  return;
236
236
  }
237
- this.observers[n] = this.observers[n].filter(function(r) {
238
- return r !== t;
237
+ this.observers[t] = this.observers[t].filter(function(r) {
238
+ return r !== n;
239
239
  });
240
240
  }
241
241
  }
242
242
  }, {
243
243
  key: "emit",
244
- value: function(n) {
245
- for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
244
+ value: function(t) {
245
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
246
246
  r[a - 1] = arguments[a];
247
- if (this.observers[n]) {
248
- var o = [].concat(this.observers[n]);
247
+ if (this.observers[t]) {
248
+ var o = [].concat(this.observers[t]);
249
249
  o.forEach(function(u) {
250
250
  u.apply(void 0, r);
251
251
  });
@@ -253,28 +253,28 @@ var Kt = {
253
253
  if (this.observers["*"]) {
254
254
  var s = [].concat(this.observers["*"]);
255
255
  s.forEach(function(u) {
256
- u.apply(u, [n].concat(r));
256
+ u.apply(u, [t].concat(r));
257
257
  });
258
258
  }
259
259
  }
260
260
  }]), i;
261
261
  }();
262
262
  function se() {
263
- var i, e, n = new Promise(function(t, r) {
264
- i = t, e = r;
263
+ var i, e, t = new Promise(function(n, r) {
264
+ i = n, e = r;
265
265
  });
266
- return n.resolve = i, n.reject = e, n;
266
+ return t.resolve = i, t.reject = e, t;
267
267
  }
268
- function Ke(i) {
268
+ function ze(i) {
269
269
  return i == null ? "" : "" + i;
270
270
  }
271
- function zt(i, e, n) {
272
- i.forEach(function(t) {
273
- e[t] && (n[t] = e[t]);
271
+ function nn(i, e, t) {
272
+ i.forEach(function(n) {
273
+ e[n] && (t[n] = e[n]);
274
274
  });
275
275
  }
276
- function De(i, e, n) {
277
- function t(s) {
276
+ function Fe(i, e, t) {
277
+ function n(s) {
278
278
  return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
279
279
  }
280
280
  function r() {
@@ -283,40 +283,40 @@ function De(i, e, n) {
283
283
  for (var a = typeof e != "string" ? [].concat(e) : e.split("."); a.length > 1; ) {
284
284
  if (r())
285
285
  return {};
286
- var o = t(a.shift());
287
- !i[o] && n && (i[o] = new n()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {};
286
+ var o = n(a.shift());
287
+ !i[o] && t && (i[o] = new t()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {};
288
288
  }
289
289
  return r() ? {} : {
290
290
  obj: i,
291
- k: t(a.shift())
291
+ k: n(a.shift())
292
292
  };
293
293
  }
294
- function Ve(i, e, n) {
295
- var t = De(i, e, Object), r = t.obj, a = t.k;
296
- r[a] = n;
294
+ function Je(i, e, t) {
295
+ var n = Fe(i, e, Object), r = n.obj, a = n.k;
296
+ r[a] = t;
297
297
  }
298
- function Jt(i, e, n, t) {
299
- var r = De(i, e, Object), a = r.obj, o = r.k;
300
- a[o] = a[o] || [], a[o].push(n);
298
+ function rn(i, e, t, n) {
299
+ var r = Fe(i, e, Object), a = r.obj, o = r.k;
300
+ a[o] = a[o] || [], a[o].push(t);
301
301
  }
302
- function ve(i, e) {
303
- var n = De(i, e), t = n.obj, r = n.k;
304
- if (t)
305
- return t[r];
302
+ function ye(i, e) {
303
+ var t = Fe(i, e), n = t.obj, r = t.k;
304
+ if (n)
305
+ return n[r];
306
306
  }
307
- function Xt(i, e, n) {
308
- var t = ve(i, n);
309
- return t !== void 0 ? t : ve(e, n);
307
+ function an(i, e, t) {
308
+ var n = ye(i, t);
309
+ return n !== void 0 ? n : ye(e, t);
310
310
  }
311
- function xt(i, e, n) {
312
- for (var t in e)
313
- t !== "__proto__" && t !== "constructor" && (t in i ? typeof i[t] == "string" || i[t] instanceof String || typeof e[t] == "string" || e[t] instanceof String ? n && (i[t] = e[t]) : xt(i[t], e[t], n) : i[t] = e[t]);
311
+ function Ct(i, e, t) {
312
+ for (var n in e)
313
+ n !== "__proto__" && n !== "constructor" && (n in i ? typeof i[n] == "string" || i[n] instanceof String || typeof e[n] == "string" || e[n] instanceof String ? t && (i[n] = e[n]) : Ct(i[n], e[n], t) : i[n] = e[n]);
314
314
  return i;
315
315
  }
316
316
  function re(i) {
317
317
  return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
318
318
  }
319
- var Wt = {
319
+ var on = {
320
320
  "&": "&amp;",
321
321
  "<": "&lt;",
322
322
  ">": "&gt;",
@@ -324,39 +324,39 @@ var Wt = {
324
324
  "'": "&#39;",
325
325
  "/": "&#x2F;"
326
326
  };
327
- function Gt(i) {
327
+ function sn(i) {
328
328
  return typeof i == "string" ? i.replace(/[&<>"'\/]/g, function(e) {
329
- return Wt[e];
329
+ return on[e];
330
330
  }) : i;
331
331
  }
332
- var we = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, Yt = [" ", ",", "?", "!", ";"];
333
- function Qt(i, e, n) {
334
- e = e || "", n = n || "";
335
- var t = Yt.filter(function(s) {
336
- return e.indexOf(s) < 0 && n.indexOf(s) < 0;
332
+ var xe = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, un = [" ", ",", "?", "!", ";"];
333
+ function fn(i, e, t) {
334
+ e = e || "", t = t || "";
335
+ var n = un.filter(function(s) {
336
+ return e.indexOf(s) < 0 && t.indexOf(s) < 0;
337
337
  });
338
- if (t.length === 0)
338
+ if (n.length === 0)
339
339
  return !0;
340
- var r = new RegExp("(".concat(t.map(function(s) {
340
+ var r = new RegExp("(".concat(n.map(function(s) {
341
341
  return s === "?" ? "\\?" : s;
342
342
  }).join("|"), ")")), a = !r.test(i);
343
343
  if (!a) {
344
- var o = i.indexOf(n);
344
+ var o = i.indexOf(t);
345
345
  o > 0 && !r.test(i.substring(0, o)) && (a = !0);
346
346
  }
347
347
  return a;
348
348
  }
349
- function me(i, e) {
350
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
349
+ function be(i, e) {
350
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
351
351
  if (i) {
352
352
  if (i[e])
353
353
  return i[e];
354
- for (var t = e.split(n), r = i, a = 0; a < t.length; ++a) {
355
- if (!r || typeof r[t[a]] == "string" && a + 1 < t.length)
354
+ for (var n = e.split(t), r = i, a = 0; a < n.length; ++a) {
355
+ if (!r || typeof r[n[a]] == "string" && a + 1 < n.length)
356
356
  return;
357
- if (r[t[a]] === void 0) {
358
- for (var o = 2, s = t.slice(a, a + o).join(n), u = r[s]; u === void 0 && t.length > a + o; )
359
- o++, s = t.slice(a, a + o).join(n), u = r[s];
357
+ if (r[n[a]] === void 0) {
358
+ for (var o = 2, s = n.slice(a, a + o).join(t), u = r[s]; u === void 0 && n.length > a + o; )
359
+ o++, s = n.slice(a, a + o).join(t), u = r[s];
360
360
  if (u === void 0)
361
361
  return;
362
362
  if (u === null)
@@ -367,48 +367,48 @@ function me(i, e) {
367
367
  if (s && typeof u[s] == "string")
368
368
  return u[s];
369
369
  }
370
- var d = t.slice(a + o).join(n);
371
- return d ? me(u, d, n) : void 0;
370
+ var d = n.slice(a + o).join(t);
371
+ return d ? be(u, d, t) : void 0;
372
372
  }
373
- r = r[t[a]];
373
+ r = r[n[a]];
374
374
  }
375
375
  return r;
376
376
  }
377
377
  }
378
- function ze(i, e) {
379
- var n = Object.keys(i);
378
+ function Xe(i, e) {
379
+ var t = Object.keys(i);
380
380
  if (Object.getOwnPropertySymbols) {
381
- var t = Object.getOwnPropertySymbols(i);
382
- e && (t = t.filter(function(r) {
381
+ var n = Object.getOwnPropertySymbols(i);
382
+ e && (n = n.filter(function(r) {
383
383
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
384
- })), n.push.apply(n, t);
384
+ })), t.push.apply(t, n);
385
385
  }
386
- return n;
386
+ return t;
387
387
  }
388
- function de(i) {
388
+ function ge(i) {
389
389
  for (var e = 1; e < arguments.length; e++) {
390
- var n = arguments[e] != null ? arguments[e] : {};
391
- e % 2 ? ze(Object(n), !0).forEach(function(t) {
392
- W(i, t, n[t]);
393
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : ze(Object(n)).forEach(function(t) {
394
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
390
+ var t = arguments[e] != null ? arguments[e] : {};
391
+ e % 2 ? Xe(Object(t), !0).forEach(function(n) {
392
+ W(i, n, t[n]);
393
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Xe(Object(t)).forEach(function(n) {
394
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
395
395
  });
396
396
  }
397
397
  return i;
398
398
  }
399
- function Zt(i) {
400
- var e = en();
399
+ function cn(i) {
400
+ var e = ln();
401
401
  return function() {
402
- var t = X(i), r;
402
+ var n = X(i), r;
403
403
  if (e) {
404
404
  var a = X(this).constructor;
405
- r = Reflect.construct(t, arguments, a);
405
+ r = Reflect.construct(n, arguments, a);
406
406
  } else
407
- r = t.apply(this, arguments);
408
- return ce(this, r);
407
+ r = n.apply(this, arguments);
408
+ return de(this, r);
409
409
  };
410
410
  }
411
- function en() {
411
+ function ln() {
412
412
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
413
413
  return !1;
414
414
  if (typeof Proxy == "function")
@@ -420,17 +420,17 @@ function en() {
420
420
  return !1;
421
421
  }
422
422
  }
423
- var tn = function(i) {
424
- Oe(n, i);
425
- var e = Zt(n);
426
- function n(t) {
423
+ var dn = function(i) {
424
+ Se(t, i);
425
+ var e = cn(t);
426
+ function t(n) {
427
427
  var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
428
428
  ns: ["translation"],
429
429
  defaultNS: "translation"
430
430
  };
431
- return U(this, n), r = e.call(this), we && ee.call(Z(r)), r.data = t || {}, r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.options.ignoreJSONStructure === void 0 && (r.options.ignoreJSONStructure = !0), r;
431
+ return B(this, t), r = e.call(this), xe && ee.call(Z(r)), r.data = n || {}, r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.options.ignoreJSONStructure === void 0 && (r.options.ignoreJSONStructure = !0), r;
432
432
  }
433
- return H(n, [{
433
+ return H(t, [{
434
434
  key: "addNamespaces",
435
435
  value: function(r) {
436
436
  this.options.ns.indexOf(r) < 0 && this.options.ns.push(r);
@@ -446,8 +446,8 @@ var tn = function(i) {
446
446
  value: function(r, a, o) {
447
447
  var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, u = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, d = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure, c = [r, a];
448
448
  o && typeof o != "string" && (c = c.concat(o)), o && typeof o == "string" && (c = c.concat(u ? o.split(u) : o)), r.indexOf(".") > -1 && (c = r.split("."));
449
- var f = ve(this.data, c);
450
- return f || !d || typeof o != "string" ? f : me(this.data && this.data[r] && this.data[r][a], o, u);
449
+ var f = ye(this.data, c);
450
+ return f || !d || typeof o != "string" ? f : be(this.data && this.data[r] && this.data[r][a], o, u);
451
451
  }
452
452
  }, {
453
453
  key: "addResource",
@@ -455,7 +455,7 @@ var tn = function(i) {
455
455
  var u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
456
456
  silent: !1
457
457
  }, d = u.keySeparator !== void 0 ? u.keySeparator : this.options.keySeparator, c = [r, a];
458
- o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a), Ve(this.data, c, s), u.silent || this.emit("added", r, a, o, s);
458
+ o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a), Je(this.data, c, s), u.silent || this.emit("added", r, a, o, s);
459
459
  }
460
460
  }, {
461
461
  key: "addResources",
@@ -476,8 +476,8 @@ var tn = function(i) {
476
476
  silent: !1
477
477
  }, c = [r, a];
478
478
  r.indexOf(".") > -1 && (c = r.split("."), s = o, o = a, a = c[1]), this.addNamespaces(a);
479
- var f = ve(this.data, c) || {};
480
- s ? xt(f, o, u) : f = de(de({}, f), o), Ve(this.data, c, f), d.silent || this.emit("added", r, a, o);
479
+ var f = ye(this.data, c) || {};
480
+ s ? Ct(f, o, u) : f = ge(ge({}, f), o), Je(this.data, c, f), d.silent || this.emit("added", r, a, o);
481
481
  }
482
482
  }, {
483
483
  key: "removeResourceBundle",
@@ -492,7 +492,7 @@ var tn = function(i) {
492
492
  }, {
493
493
  key: "getResourceBundle",
494
494
  value: function(r, a) {
495
- return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? de(de({}, {}), this.getResource(r, a)) : this.getResource(r, a);
495
+ return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? ge(ge({}, {}), this.getResource(r, a)) : this.getResource(r, a);
496
496
  }
497
497
  }, {
498
498
  key: "getDataByLanguage",
@@ -512,53 +512,53 @@ var tn = function(i) {
512
512
  value: function() {
513
513
  return this.data;
514
514
  }
515
- }]), n;
516
- }(ee), jt = {
515
+ }]), t;
516
+ }(ee), _t = {
517
517
  processors: {},
518
518
  addPostProcessor: function(e) {
519
519
  this.processors[e.name] = e;
520
520
  },
521
- handle: function(e, n, t, r, a) {
521
+ handle: function(e, t, n, r, a) {
522
522
  var o = this;
523
523
  return e.forEach(function(s) {
524
- o.processors[s] && (n = o.processors[s].process(n, t, r, a));
525
- }), n;
524
+ o.processors[s] && (t = o.processors[s].process(t, n, r, a));
525
+ }), t;
526
526
  }
527
527
  };
528
- function Je(i, e) {
529
- var n = Object.keys(i);
528
+ function We(i, e) {
529
+ var t = Object.keys(i);
530
530
  if (Object.getOwnPropertySymbols) {
531
- var t = Object.getOwnPropertySymbols(i);
532
- e && (t = t.filter(function(r) {
531
+ var n = Object.getOwnPropertySymbols(i);
532
+ e && (n = n.filter(function(r) {
533
533
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
534
- })), n.push.apply(n, t);
534
+ })), t.push.apply(t, n);
535
535
  }
536
- return n;
536
+ return t;
537
537
  }
538
538
  function T(i) {
539
539
  for (var e = 1; e < arguments.length; e++) {
540
- var n = arguments[e] != null ? arguments[e] : {};
541
- e % 2 ? Je(Object(n), !0).forEach(function(t) {
542
- W(i, t, n[t]);
543
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : Je(Object(n)).forEach(function(t) {
544
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
540
+ var t = arguments[e] != null ? arguments[e] : {};
541
+ e % 2 ? We(Object(t), !0).forEach(function(n) {
542
+ W(i, n, t[n]);
543
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : We(Object(t)).forEach(function(n) {
544
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
545
545
  });
546
546
  }
547
547
  return i;
548
548
  }
549
- function nn(i) {
550
- var e = rn();
549
+ function pn(i) {
550
+ var e = gn();
551
551
  return function() {
552
- var t = X(i), r;
552
+ var n = X(i), r;
553
553
  if (e) {
554
554
  var a = X(this).constructor;
555
- r = Reflect.construct(t, arguments, a);
555
+ r = Reflect.construct(n, arguments, a);
556
556
  } else
557
- r = t.apply(this, arguments);
558
- return ce(this, r);
557
+ r = n.apply(this, arguments);
558
+ return de(this, r);
559
559
  };
560
560
  }
561
- function rn() {
561
+ function gn() {
562
562
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
563
563
  return !1;
564
564
  if (typeof Proxy == "function")
@@ -570,14 +570,14 @@ function rn() {
570
570
  return !1;
571
571
  }
572
572
  }
573
- var Xe = {}, We = function(i) {
574
- Oe(n, i);
575
- var e = nn(n);
576
- function n(t) {
573
+ var Ge = {}, Qe = function(i) {
574
+ Se(t, i);
575
+ var e = pn(t);
576
+ function t(n) {
577
577
  var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
578
- return U(this, n), r = e.call(this), we && ee.call(Z(r)), zt(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, Z(r)), r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.logger = J.create("translator"), r;
578
+ return B(this, t), r = e.call(this), xe && ee.call(Z(r)), nn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, Z(r)), r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.logger = J.create("translator"), r;
579
579
  }
580
- return H(n, [{
580
+ return H(t, [{
581
581
  key: "changeLanguage",
582
582
  value: function(r) {
583
583
  r && (this.language = r);
@@ -598,7 +598,7 @@ var Xe = {}, We = function(i) {
598
598
  value: function(r, a) {
599
599
  var o = a.nsSeparator !== void 0 ? a.nsSeparator : this.options.nsSeparator;
600
600
  o === void 0 && (o = ":");
601
- var s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, u = a.ns || this.options.defaultNS || [], d = o && r.indexOf(o) > -1, c = !this.options.userDefinedKeySeparator && !a.keySeparator && !this.options.userDefinedNsSeparator && !a.nsSeparator && !Qt(r, o, s);
601
+ var s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, u = a.ns || this.options.defaultNS || [], d = o && r.indexOf(o) > -1, c = !this.options.userDefinedKeySeparator && !a.keySeparator && !this.options.userDefinedNsSeparator && !a.nsSeparator && !fn(r, o, s);
602
602
  if (d && !c) {
603
603
  var f = r.match(this.interpolator.nestingRegexp);
604
604
  if (f && f.length > 0)
@@ -618,43 +618,43 @@ var Xe = {}, We = function(i) {
618
618
  key: "translate",
619
619
  value: function(r, a, o) {
620
620
  var s = this;
621
- if (B(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), B(a) === "object" && (a = T({}, a)), a || (a = {}), r == null)
621
+ if (U(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), U(a) === "object" && (a = T({}, a)), a || (a = {}), r == null)
622
622
  return "";
623
623
  Array.isArray(r) || (r = [String(r)]);
624
- var u = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, d = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, c = this.extractFromKey(r[r.length - 1], a), f = c.key, p = c.namespaces, h = p[p.length - 1], b = a.lng || this.language, y = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
624
+ var u = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, d = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, c = this.extractFromKey(r[r.length - 1], a), f = c.key, p = c.namespaces, g = p[p.length - 1], b = a.lng || this.language, y = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
625
625
  if (b && b.toLowerCase() === "cimode") {
626
626
  if (y) {
627
- var O = a.nsSeparator || this.options.nsSeparator;
627
+ var w = a.nsSeparator || this.options.nsSeparator;
628
628
  return u ? {
629
- res: "".concat(h).concat(O).concat(f),
629
+ res: "".concat(g).concat(w).concat(f),
630
630
  usedKey: f,
631
631
  exactUsedKey: f,
632
632
  usedLng: b,
633
- usedNS: h
634
- } : "".concat(h).concat(O).concat(f);
633
+ usedNS: g
634
+ } : "".concat(g).concat(w).concat(f);
635
635
  }
636
636
  return u ? {
637
637
  res: f,
638
638
  usedKey: f,
639
639
  exactUsedKey: f,
640
640
  usedLng: b,
641
- usedNS: h
641
+ usedNS: g
642
642
  } : f;
643
643
  }
644
- var v = this.resolve(r, a), m = v && v.res, S = v && v.usedKey || f, P = v && v.exactUsedKey || f, L = Object.prototype.toString.apply(m), D = ["[object Number]", "[object Function]", "[object RegExp]"], I = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, N = !this.i18nFormat || this.i18nFormat.handleAsObject, k = typeof m != "string" && typeof m != "boolean" && typeof m != "number";
645
- if (N && m && k && D.indexOf(L) < 0 && !(typeof I == "string" && L === "[object Array]")) {
644
+ var v = this.resolve(r, a), m = v && v.res, S = v && v.usedKey || f, x = v && v.exactUsedKey || f, k = Object.prototype.toString.apply(m), D = ["[object Number]", "[object Function]", "[object RegExp]"], I = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, _ = !this.i18nFormat || this.i18nFormat.handleAsObject, R = typeof m != "string" && typeof m != "boolean" && typeof m != "number";
645
+ if (_ && m && R && D.indexOf(k) < 0 && !(typeof I == "string" && k === "[object Array]")) {
646
646
  if (!a.returnObjects && !this.options.returnObjects) {
647
647
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
648
- var E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, m, T(T({}, a), {}, {
648
+ var C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, m, T(T({}, a), {}, {
649
649
  ns: p
650
650
  })) : "key '".concat(f, " (").concat(this.language, ")' returned an object instead of string.");
651
- return u ? (v.res = E, v) : E;
651
+ return u ? (v.res = C, v) : C;
652
652
  }
653
653
  if (d) {
654
- var Q = L === "[object Array]", A = Q ? [] : {}, Se = Q ? P : S;
654
+ var Y = k === "[object Array]", A = Y ? [] : {}, Pe = Y ? x : S;
655
655
  for (var q in m)
656
656
  if (Object.prototype.hasOwnProperty.call(m, q)) {
657
- var l = "".concat(Se).concat(d).concat(q);
657
+ var l = "".concat(Pe).concat(d).concat(q);
658
658
  A[q] = this.translate(l, T(T({}, a), {
659
659
  joinArrays: !1,
660
660
  ns: p
@@ -662,36 +662,36 @@ var Xe = {}, We = function(i) {
662
662
  }
663
663
  m = A;
664
664
  }
665
- } else if (N && typeof I == "string" && L === "[object Array]")
665
+ } else if (_ && typeof I == "string" && k === "[object Array]")
666
666
  m = m.join(I), m && (m = this.extendTranslation(m, r, a, o));
667
667
  else {
668
- var g = !1, w = !1, j = a.count !== void 0 && typeof a.count != "string", R = n.hasDefaultValue(a), x = j ? this.pluralResolver.getSuffix(b, a.count, a) : "", K = a["defaultValue".concat(x)] || a.defaultValue;
669
- !this.isValidLookup(m) && R && (g = !0, m = K), this.isValidLookup(m) || (w = !0, m = f);
670
- var Pe = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = Pe && w ? void 0 : m, V = R && K !== m && this.options.updateMissing;
671
- if (w || g || V) {
672
- if (this.logger.log(V ? "updateKey" : "missingKey", b, h, f, V ? K : m), d) {
673
- var Ie = this.resolve(f, T(T({}, a), {}, {
668
+ var h = !1, O = !1, j = a.count !== void 0 && typeof a.count != "string", L = t.hasDefaultValue(a), P = j ? this.pluralResolver.getSuffix(b, a.count, a) : "", K = a["defaultValue".concat(P)] || a.defaultValue;
669
+ !this.isValidLookup(m) && L && (h = !0, m = K), this.isValidLookup(m) || (O = !0, m = f);
670
+ var je = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = je && O ? void 0 : m, V = L && K !== m && this.options.updateMissing;
671
+ if (O || h || V) {
672
+ if (this.logger.log(V ? "updateKey" : "missingKey", b, g, f, V ? K : m), d) {
673
+ var Ue = this.resolve(f, T(T({}, a), {}, {
674
674
  keySeparator: !1
675
675
  }));
676
- Ie && Ie.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.");
676
+ Ue && Ue.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.");
677
677
  }
678
- var oe = [], le = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
679
- if (this.options.saveMissingTo === "fallback" && le && le[0])
680
- for (var xe = 0; xe < le.length; xe++)
681
- oe.push(le[xe]);
678
+ var oe = [], pe = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
679
+ if (this.options.saveMissingTo === "fallback" && pe && pe[0])
680
+ for (var ke = 0; ke < pe.length; ke++)
681
+ oe.push(pe[ke]);
682
682
  else
683
683
  this.options.saveMissingTo === "all" ? oe = this.languageUtils.toResolveHierarchy(a.lng || this.language) : oe.push(a.lng || this.language);
684
- var Fe = function(ne, Le, Be) {
685
- var Ue = R && Be !== m ? Be : F;
686
- s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, h, Le, Ue, V, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(ne, h, Le, Ue, V, a), s.emit("missingKey", ne, h, Le, m);
684
+ var Be = function(ne, Re, He) {
685
+ var Me = L && He !== m ? He : F;
686
+ s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, g, Re, Me, V, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(ne, g, Re, Me, V, a), s.emit("missingKey", ne, g, Re, m);
687
687
  };
688
- this.options.saveMissing && (this.options.saveMissingPlurals && j ? oe.forEach(function(je) {
689
- s.pluralResolver.getSuffixes(je, a).forEach(function(ne) {
690
- Fe([je], f + ne, a["defaultValue".concat(ne)] || K);
688
+ this.options.saveMissing && (this.options.saveMissingPlurals && j ? oe.forEach(function(Le) {
689
+ s.pluralResolver.getSuffixes(Le, a).forEach(function(ne) {
690
+ Be([Le], f + ne, a["defaultValue".concat(ne)] || K);
691
691
  });
692
- }) : Fe(oe, f, K));
692
+ }) : Be(oe, f, K));
693
693
  }
694
- m = this.extendTranslation(m, r, a, v, o), w && m === f && this.options.appendNamespaceToMissingKey && (m = "".concat(h, ":").concat(f)), (w || g) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(h, ":").concat(f) : f, g ? m : void 0) : m = this.options.parseMissingKeyHandler(m));
694
+ m = this.extendTranslation(m, r, a, v, o), O && m === f && this.options.appendNamespaceToMissingKey && (m = "".concat(g, ":").concat(f)), (O || h) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(g, ":").concat(f) : f, h ? m : void 0) : m = this.options.parseMissingKeyHandler(m));
695
695
  }
696
696
  return u ? (v.res = m, v) : m;
697
697
  }
@@ -712,19 +712,19 @@ var Xe = {}, We = function(i) {
712
712
  var p = r.match(this.interpolator.nestingRegexp);
713
713
  f = p && p.length;
714
714
  }
715
- var h = o.replace && typeof o.replace != "string" ? o.replace : o;
716
- if (this.options.interpolation.defaultVariables && (h = T(T({}, this.options.interpolation.defaultVariables), h)), r = this.interpolator.interpolate(r, h, o.lng || this.language, o), c) {
715
+ var g = o.replace && typeof o.replace != "string" ? o.replace : o;
716
+ if (this.options.interpolation.defaultVariables && (g = T(T({}, this.options.interpolation.defaultVariables), g)), r = this.interpolator.interpolate(r, g, o.lng || this.language, o), c) {
717
717
  var b = r.match(this.interpolator.nestingRegexp), y = b && b.length;
718
718
  f < y && (o.nest = !1);
719
719
  }
720
720
  !o.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (o.lng = s.usedLng), o.nest !== !1 && (r = this.interpolator.nest(r, function() {
721
- for (var m = arguments.length, S = new Array(m), P = 0; P < m; P++)
722
- S[P] = arguments[P];
721
+ for (var m = arguments.length, S = new Array(m), x = 0; x < m; x++)
722
+ S[x] = arguments[x];
723
723
  return u && u[0] === S[0] && !o.context ? (d.logger.warn("It seems you are nesting recursively key: ".concat(S[0], " in key: ").concat(a[0])), null) : d.translate.apply(d, S.concat([a]));
724
724
  }, o)), o.interpolation && this.interpolator.reset();
725
725
  }
726
- var O = o.postProcess || this.options.postProcess, v = typeof O == "string" ? [O] : O;
727
- return r != null && v && v.length && o.applyPostProcessor !== !1 && (r = jt.handle(v, r, a, this.options && this.options.postProcessPassResolved ? T({
726
+ var w = o.postProcess || this.options.postProcess, v = typeof w == "string" ? [w] : w;
727
+ return r != null && v && v.length && o.applyPostProcessor !== !1 && (r = _t.handle(v, r, a, this.options && this.options.postProcessPassResolved ? T({
728
728
  i18nResolved: s
729
729
  }, o) : o, this)), r;
730
730
  }
@@ -734,29 +734,29 @@ var Xe = {}, We = function(i) {
734
734
  var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, u, d, c, f;
735
735
  return typeof r == "string" && (r = [r]), r.forEach(function(p) {
736
736
  if (!a.isValidLookup(s)) {
737
- var h = a.extractFromKey(p, o), b = h.key;
737
+ var g = a.extractFromKey(p, o), b = g.key;
738
738
  u = b;
739
- var y = h.namespaces;
739
+ var y = g.namespaces;
740
740
  a.options.fallbackNS && (y = y.concat(a.options.fallbackNS));
741
- var O = o.count !== void 0 && typeof o.count != "string", v = O && !o.ordinal && o.count === 0 && a.pluralResolver.shouldUseIntlApi(), m = o.context !== void 0 && (typeof o.context == "string" || typeof o.context == "number") && o.context !== "", S = o.lngs ? o.lngs : a.languageUtils.toResolveHierarchy(o.lng || a.language, o.fallbackLng);
742
- y.forEach(function(P) {
743
- a.isValidLookup(s) || (f = P, !Xe["".concat(S[0], "-").concat(P)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(f) && (Xe["".concat(S[0], "-").concat(P)] = !0, a.logger.warn('key "'.concat(u, '" for languages "').concat(S.join(", "), `" won't get resolved as namespace "`).concat(f, '" 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!!!")), S.forEach(function(L) {
741
+ var w = o.count !== void 0 && typeof o.count != "string", v = w && !o.ordinal && o.count === 0 && a.pluralResolver.shouldUseIntlApi(), m = o.context !== void 0 && (typeof o.context == "string" || typeof o.context == "number") && o.context !== "", S = o.lngs ? o.lngs : a.languageUtils.toResolveHierarchy(o.lng || a.language, o.fallbackLng);
742
+ y.forEach(function(x) {
743
+ a.isValidLookup(s) || (f = x, !Ge["".concat(S[0], "-").concat(x)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(f) && (Ge["".concat(S[0], "-").concat(x)] = !0, a.logger.warn('key "'.concat(u, '" for languages "').concat(S.join(", "), `" won't get resolved as namespace "`).concat(f, '" 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!!!")), S.forEach(function(k) {
744
744
  if (!a.isValidLookup(s)) {
745
- c = L;
745
+ c = k;
746
746
  var D = [b];
747
747
  if (a.i18nFormat && a.i18nFormat.addLookupKeys)
748
- a.i18nFormat.addLookupKeys(D, b, L, P, o);
748
+ a.i18nFormat.addLookupKeys(D, b, k, x, o);
749
749
  else {
750
750
  var I;
751
- O && (I = a.pluralResolver.getSuffix(L, o.count, o));
752
- var N = "".concat(a.options.pluralSeparator, "zero");
753
- if (O && (D.push(b + I), v && D.push(b + N)), m) {
754
- var k = "".concat(b).concat(a.options.contextSeparator).concat(o.context);
755
- D.push(k), O && (D.push(k + I), v && D.push(k + N));
751
+ w && (I = a.pluralResolver.getSuffix(k, o.count, o));
752
+ var _ = "".concat(a.options.pluralSeparator, "zero");
753
+ if (w && (D.push(b + I), v && D.push(b + _)), m) {
754
+ var R = "".concat(b).concat(a.options.contextSeparator).concat(o.context);
755
+ D.push(R), w && (D.push(R + I), v && D.push(R + _));
756
756
  }
757
757
  }
758
- for (var E; E = D.pop(); )
759
- a.isValidLookup(s) || (d = E, s = a.getResource(L, P, E, o));
758
+ for (var C; C = D.pop(); )
759
+ a.isValidLookup(s) || (d = C, s = a.getResource(k, x, C, o));
760
760
  }
761
761
  }));
762
762
  });
@@ -789,65 +789,65 @@ var Xe = {}, We = function(i) {
789
789
  return !0;
790
790
  return !1;
791
791
  }
792
- }]), n;
792
+ }]), t;
793
793
  }(ee);
794
- function Re(i) {
794
+ function Ee(i) {
795
795
  return i.charAt(0).toUpperCase() + i.slice(1);
796
796
  }
797
- var Ge = function() {
797
+ var Ye = function() {
798
798
  function i(e) {
799
- U(this, i), this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = J.create("languageUtils");
799
+ B(this, i), this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = J.create("languageUtils");
800
800
  }
801
801
  return H(i, [{
802
802
  key: "getScriptPartFromCode",
803
- value: function(n) {
804
- if (!n || n.indexOf("-") < 0)
803
+ value: function(t) {
804
+ if (!t || t.indexOf("-") < 0)
805
805
  return null;
806
- var t = n.split("-");
807
- return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
806
+ var n = t.split("-");
807
+ return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
808
808
  }
809
809
  }, {
810
810
  key: "getLanguagePartFromCode",
811
- value: function(n) {
812
- if (!n || n.indexOf("-") < 0)
813
- return n;
814
- var t = n.split("-");
815
- return this.formatLanguageCode(t[0]);
811
+ value: function(t) {
812
+ if (!t || t.indexOf("-") < 0)
813
+ return t;
814
+ var n = t.split("-");
815
+ return this.formatLanguageCode(n[0]);
816
816
  }
817
817
  }, {
818
818
  key: "formatLanguageCode",
819
- value: function(n) {
820
- if (typeof n == "string" && n.indexOf("-") > -1) {
821
- var t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = n.split("-");
819
+ value: function(t) {
820
+ if (typeof t == "string" && t.indexOf("-") > -1) {
821
+ var n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = t.split("-");
822
822
  return this.options.lowerCaseLng ? r = r.map(function(a) {
823
823
  return a.toLowerCase();
824
- }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), t.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Re(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()), t.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Re(r[1].toLowerCase())), t.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Re(r[2].toLowerCase()))), r.join("-");
824
+ }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ee(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()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ee(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Ee(r[2].toLowerCase()))), r.join("-");
825
825
  }
826
- return this.options.cleanCode || this.options.lowerCaseLng ? n.toLowerCase() : n;
826
+ return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
827
827
  }
828
828
  }, {
829
829
  key: "isSupportedCode",
830
- value: function(n) {
831
- return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (n = this.getLanguagePartFromCode(n)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(n) > -1;
830
+ value: function(t) {
831
+ return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (t = this.getLanguagePartFromCode(t)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(t) > -1;
832
832
  }
833
833
  }, {
834
834
  key: "getBestMatchFromCodes",
835
- value: function(n) {
836
- var t = this;
837
- if (!n)
835
+ value: function(t) {
836
+ var n = this;
837
+ if (!t)
838
838
  return null;
839
839
  var r;
840
- return n.forEach(function(a) {
840
+ return t.forEach(function(a) {
841
841
  if (!r) {
842
- var o = t.formatLanguageCode(a);
843
- (!t.options.supportedLngs || t.isSupportedCode(o)) && (r = o);
842
+ var o = n.formatLanguageCode(a);
843
+ (!n.options.supportedLngs || n.isSupportedCode(o)) && (r = o);
844
844
  }
845
- }), !r && this.options.supportedLngs && n.forEach(function(a) {
845
+ }), !r && this.options.supportedLngs && t.forEach(function(a) {
846
846
  if (!r) {
847
- var o = t.getLanguagePartFromCode(a);
848
- if (t.isSupportedCode(o))
847
+ var o = n.getLanguagePartFromCode(a);
848
+ if (n.isSupportedCode(o))
849
849
  return r = o;
850
- r = t.options.supportedLngs.find(function(s) {
850
+ r = n.options.supportedLngs.find(function(s) {
851
851
  if (s === o)
852
852
  return s;
853
853
  if (!(s.indexOf("-") < 0 && o.indexOf("-") < 0) && s.indexOf(o) === 0)
@@ -858,28 +858,28 @@ var Ge = function() {
858
858
  }
859
859
  }, {
860
860
  key: "getFallbackCodes",
861
- value: function(n, t) {
862
- if (!n)
863
- return [];
864
- if (typeof n == "function" && (n = n(t)), typeof n == "string" && (n = [n]), Object.prototype.toString.apply(n) === "[object Array]")
865
- return n;
861
+ value: function(t, n) {
866
862
  if (!t)
867
- return n.default || [];
868
- var r = n[t];
869
- return r || (r = n[this.getScriptPartFromCode(t)]), r || (r = n[this.formatLanguageCode(t)]), r || (r = n[this.getLanguagePartFromCode(t)]), r || (r = n.default), r || [];
863
+ return [];
864
+ if (typeof t == "function" && (t = t(n)), typeof t == "string" && (t = [t]), Object.prototype.toString.apply(t) === "[object Array]")
865
+ return t;
866
+ if (!n)
867
+ return t.default || [];
868
+ var r = t[n];
869
+ return r || (r = t[this.getScriptPartFromCode(n)]), r || (r = t[this.formatLanguageCode(n)]), r || (r = t[this.getLanguagePartFromCode(n)]), r || (r = t.default), r || [];
870
870
  }
871
871
  }, {
872
872
  key: "toResolveHierarchy",
873
- value: function(n, t) {
874
- var r = this, a = this.getFallbackCodes(t || this.options.fallbackLng || [], n), o = [], s = function(d) {
873
+ value: function(t, n) {
874
+ var r = this, a = this.getFallbackCodes(n || this.options.fallbackLng || [], t), o = [], s = function(d) {
875
875
  d && (r.isSupportedCode(d) ? o.push(d) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)));
876
876
  };
877
- 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)), a.forEach(function(u) {
877
+ 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)), a.forEach(function(u) {
878
878
  o.indexOf(u) < 0 && s(r.formatLanguageCode(u));
879
879
  }), o;
880
880
  }
881
881
  }]), i;
882
- }(), an = [{
882
+ }(), hn = [{
883
883
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
884
884
  nr: [1, 2],
885
885
  fc: 1
@@ -971,7 +971,7 @@ var Ge = function() {
971
971
  lngs: ["he", "iw"],
972
972
  nr: [1, 2, 20, 21],
973
973
  fc: 22
974
- }], on = {
974
+ }], vn = {
975
975
  1: function(e) {
976
976
  return +(e > 1);
977
977
  },
@@ -1038,7 +1038,7 @@ var Ge = function() {
1038
1038
  22: function(e) {
1039
1039
  return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
1040
1040
  }
1041
- }, sn = ["v1", "v2", "v3"], Ye = {
1041
+ }, mn = ["v1", "v2", "v3"], Ze = {
1042
1042
  zero: 0,
1043
1043
  one: 1,
1044
1044
  two: 2,
@@ -1046,131 +1046,131 @@ var Ge = function() {
1046
1046
  many: 4,
1047
1047
  other: 5
1048
1048
  };
1049
- function un() {
1049
+ function yn() {
1050
1050
  var i = {};
1051
- return an.forEach(function(e) {
1052
- e.lngs.forEach(function(n) {
1053
- i[n] = {
1051
+ return hn.forEach(function(e) {
1052
+ e.lngs.forEach(function(t) {
1053
+ i[t] = {
1054
1054
  numbers: e.nr,
1055
- plurals: on[e.fc]
1055
+ plurals: vn[e.fc]
1056
1056
  };
1057
1057
  });
1058
1058
  }), i;
1059
1059
  }
1060
- var fn = function() {
1060
+ var bn = function() {
1061
1061
  function i(e) {
1062
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1063
- U(this, i), this.languageUtils = e, this.options = n, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = un();
1062
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1063
+ B(this, i), this.languageUtils = e, this.options = t, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = yn();
1064
1064
  }
1065
1065
  return H(i, [{
1066
1066
  key: "addRule",
1067
- value: function(n, t) {
1068
- this.rules[n] = t;
1067
+ value: function(t, n) {
1068
+ this.rules[t] = n;
1069
1069
  }
1070
1070
  }, {
1071
1071
  key: "getRule",
1072
- value: function(n) {
1073
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1072
+ value: function(t) {
1073
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1074
1074
  if (this.shouldUseIntlApi())
1075
1075
  try {
1076
- return new Intl.PluralRules(n, {
1077
- type: t.ordinal ? "ordinal" : "cardinal"
1076
+ return new Intl.PluralRules(t, {
1077
+ type: n.ordinal ? "ordinal" : "cardinal"
1078
1078
  });
1079
1079
  } catch {
1080
1080
  return;
1081
1081
  }
1082
- return this.rules[n] || this.rules[this.languageUtils.getLanguagePartFromCode(n)];
1082
+ return this.rules[t] || this.rules[this.languageUtils.getLanguagePartFromCode(t)];
1083
1083
  }
1084
1084
  }, {
1085
1085
  key: "needsPlural",
1086
- value: function(n) {
1087
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = this.getRule(n, t);
1086
+ value: function(t) {
1087
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = this.getRule(t, n);
1088
1088
  return this.shouldUseIntlApi() ? r && r.resolvedOptions().pluralCategories.length > 1 : r && r.numbers.length > 1;
1089
1089
  }
1090
1090
  }, {
1091
1091
  key: "getPluralFormsOfKey",
1092
- value: function(n, t) {
1092
+ value: function(t, n) {
1093
1093
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1094
- return this.getSuffixes(n, r).map(function(a) {
1095
- return "".concat(t).concat(a);
1094
+ return this.getSuffixes(t, r).map(function(a) {
1095
+ return "".concat(n).concat(a);
1096
1096
  });
1097
1097
  }
1098
1098
  }, {
1099
1099
  key: "getSuffixes",
1100
- value: function(n) {
1101
- var t = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = this.getRule(n, r);
1100
+ value: function(t) {
1101
+ var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = this.getRule(t, r);
1102
1102
  return a ? this.shouldUseIntlApi() ? a.resolvedOptions().pluralCategories.sort(function(o, s) {
1103
- return Ye[o] - Ye[s];
1103
+ return Ze[o] - Ze[s];
1104
1104
  }).map(function(o) {
1105
- return "".concat(t.options.prepend).concat(o);
1105
+ return "".concat(n.options.prepend).concat(o);
1106
1106
  }) : a.numbers.map(function(o) {
1107
- return t.getSuffix(n, o, r);
1107
+ return n.getSuffix(t, o, r);
1108
1108
  }) : [];
1109
1109
  }
1110
1110
  }, {
1111
1111
  key: "getSuffix",
1112
- value: function(n, t) {
1113
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = this.getRule(n, r);
1114
- return a ? this.shouldUseIntlApi() ? "".concat(this.options.prepend).concat(a.select(t)) : this.getSuffixRetroCompatible(a, t) : (this.logger.warn("no plural rule found for: ".concat(n)), "");
1112
+ value: function(t, n) {
1113
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = this.getRule(t, r);
1114
+ return a ? this.shouldUseIntlApi() ? "".concat(this.options.prepend).concat(a.select(n)) : this.getSuffixRetroCompatible(a, n) : (this.logger.warn("no plural rule found for: ".concat(t)), "");
1115
1115
  }
1116
1116
  }, {
1117
1117
  key: "getSuffixRetroCompatible",
1118
- value: function(n, t) {
1119
- var r = this, a = n.noAbs ? n.plurals(t) : n.plurals(Math.abs(t)), o = n.numbers[a];
1120
- this.options.simplifyPluralSuffix && n.numbers.length === 2 && n.numbers[0] === 1 && (o === 2 ? o = "plural" : o === 1 && (o = ""));
1118
+ value: function(t, n) {
1119
+ var r = this, a = t.noAbs ? t.plurals(n) : t.plurals(Math.abs(n)), o = t.numbers[a];
1120
+ this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 && (o === 2 ? o = "plural" : o === 1 && (o = ""));
1121
1121
  var s = function() {
1122
1122
  return r.options.prepend && o.toString() ? r.options.prepend + o.toString() : o.toString();
1123
1123
  };
1124
- return this.options.compatibilityJSON === "v1" ? o === 1 ? "" : typeof o == "number" ? "_plural_".concat(o.toString()) : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && n.numbers.length === 2 && n.numbers[0] === 1 ? s() : this.options.prepend && a.toString() ? this.options.prepend + a.toString() : a.toString();
1124
+ return this.options.compatibilityJSON === "v1" ? o === 1 ? "" : typeof o == "number" ? "_plural_".concat(o.toString()) : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? s() : this.options.prepend && a.toString() ? this.options.prepend + a.toString() : a.toString();
1125
1125
  }
1126
1126
  }, {
1127
1127
  key: "shouldUseIntlApi",
1128
1128
  value: function() {
1129
- return !sn.includes(this.options.compatibilityJSON);
1129
+ return !mn.includes(this.options.compatibilityJSON);
1130
1130
  }
1131
1131
  }]), i;
1132
1132
  }();
1133
- function Qe(i, e) {
1134
- var n = Object.keys(i);
1133
+ function et(i, e) {
1134
+ var t = Object.keys(i);
1135
1135
  if (Object.getOwnPropertySymbols) {
1136
- var t = Object.getOwnPropertySymbols(i);
1137
- e && (t = t.filter(function(r) {
1136
+ var n = Object.getOwnPropertySymbols(i);
1137
+ e && (n = n.filter(function(r) {
1138
1138
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
1139
- })), n.push.apply(n, t);
1139
+ })), t.push.apply(t, n);
1140
1140
  }
1141
- return n;
1141
+ return t;
1142
1142
  }
1143
1143
  function M(i) {
1144
1144
  for (var e = 1; e < arguments.length; e++) {
1145
- var n = arguments[e] != null ? arguments[e] : {};
1146
- e % 2 ? Qe(Object(n), !0).forEach(function(t) {
1147
- W(i, t, n[t]);
1148
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : Qe(Object(n)).forEach(function(t) {
1149
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
1145
+ var t = arguments[e] != null ? arguments[e] : {};
1146
+ e % 2 ? et(Object(t), !0).forEach(function(n) {
1147
+ W(i, n, t[n]);
1148
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(n) {
1149
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1150
1150
  });
1151
1151
  }
1152
1152
  return i;
1153
1153
  }
1154
- function Ze(i, e, n) {
1155
- var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = Xt(i, e, n);
1156
- return !a && r && typeof n == "string" && (a = me(i, n, t), a === void 0 && (a = me(e, n, t))), a;
1154
+ function tt(i, e, t) {
1155
+ var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = an(i, e, t);
1156
+ return !a && r && typeof t == "string" && (a = be(i, t, n), a === void 0 && (a = be(e, t, n))), a;
1157
1157
  }
1158
- var cn = function() {
1158
+ var wn = function() {
1159
1159
  function i() {
1160
1160
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1161
- U(this, i), this.logger = J.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || function(n) {
1162
- return n;
1161
+ B(this, i), this.logger = J.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || function(t) {
1162
+ return t;
1163
1163
  }, this.init(e);
1164
1164
  }
1165
1165
  return H(i, [{
1166
1166
  key: "init",
1167
1167
  value: function() {
1168
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1169
- n.interpolation || (n.interpolation = {
1168
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1169
+ t.interpolation || (t.interpolation = {
1170
1170
  escapeValue: !0
1171
1171
  });
1172
- var t = n.interpolation;
1173
- this.escape = t.escape !== void 0 ? t.escape : Gt, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? re(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? re(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? re(t.nestingPrefix) : t.nestingPrefixEscaped || re("$t("), this.nestingSuffix = t.nestingSuffix ? re(t.nestingSuffix) : t.nestingSuffixEscaped || re(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
1172
+ var n = t.interpolation;
1173
+ this.escape = n.escape !== void 0 ? n.escape : sn, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? re(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? re(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? re(n.nestingPrefix) : n.nestingPrefixEscaped || re("$t("), this.nestingSuffix = n.nestingSuffix ? re(n.nestingSuffix) : n.nestingSuffixEscaped || re(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
1174
1174
  }
1175
1175
  }, {
1176
1176
  key: "reset",
@@ -1180,34 +1180,34 @@ var cn = function() {
1180
1180
  }, {
1181
1181
  key: "resetRegExp",
1182
1182
  value: function() {
1183
- var n = "".concat(this.prefix, "(.+?)").concat(this.suffix);
1184
- this.regexp = new RegExp(n, "g");
1185
- var t = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
1186
- this.regexpUnescape = new RegExp(t, "g");
1183
+ var t = "".concat(this.prefix, "(.+?)").concat(this.suffix);
1184
+ this.regexp = new RegExp(t, "g");
1185
+ var n = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
1186
+ this.regexpUnescape = new RegExp(n, "g");
1187
1187
  var r = "".concat(this.nestingPrefix, "(.+?)").concat(this.nestingSuffix);
1188
1188
  this.nestingRegexp = new RegExp(r, "g");
1189
1189
  }
1190
1190
  }, {
1191
1191
  key: "interpolate",
1192
- value: function(n, t, r, a) {
1192
+ value: function(t, n, r, a) {
1193
1193
  var o = this, s, u, d, c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
1194
- function f(O) {
1195
- return O.replace(/\$/g, "$$$$");
1194
+ function f(w) {
1195
+ return w.replace(/\$/g, "$$$$");
1196
1196
  }
1197
1197
  var p = function(v) {
1198
1198
  if (v.indexOf(o.formatSeparator) < 0) {
1199
- var m = Ze(t, c, v, o.options.keySeparator, o.options.ignoreJSONStructure);
1200
- return o.alwaysFormat ? o.format(m, void 0, r, M(M(M({}, a), t), {}, {
1199
+ var m = tt(n, c, v, o.options.keySeparator, o.options.ignoreJSONStructure);
1200
+ return o.alwaysFormat ? o.format(m, void 0, r, M(M(M({}, a), n), {}, {
1201
1201
  interpolationkey: v
1202
1202
  })) : m;
1203
1203
  }
1204
- var S = v.split(o.formatSeparator), P = S.shift().trim(), L = S.join(o.formatSeparator).trim();
1205
- return o.format(Ze(t, c, P, o.options.keySeparator, o.options.ignoreJSONStructure), L, r, M(M(M({}, a), t), {}, {
1206
- interpolationkey: P
1204
+ var S = v.split(o.formatSeparator), x = S.shift().trim(), k = S.join(o.formatSeparator).trim();
1205
+ return o.format(tt(n, c, x, o.options.keySeparator, o.options.ignoreJSONStructure), k, r, M(M(M({}, a), n), {}, {
1206
+ interpolationkey: x
1207
1207
  }));
1208
1208
  };
1209
1209
  this.resetRegExp();
1210
- var h = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, b = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables, y = [{
1210
+ var g = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, b = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables, y = [{
1211
1211
  regex: this.regexpUnescape,
1212
1212
  safeValue: function(v) {
1213
1213
  return f(v);
@@ -1218,12 +1218,12 @@ var cn = function() {
1218
1218
  return o.escapeValue ? f(o.escape(v)) : f(v);
1219
1219
  }
1220
1220
  }];
1221
- return y.forEach(function(O) {
1222
- for (d = 0; s = O.regex.exec(n); ) {
1221
+ return y.forEach(function(w) {
1222
+ for (d = 0; s = w.regex.exec(t); ) {
1223
1223
  var v = s[1].trim();
1224
1224
  if (u = p(v), u === void 0)
1225
- if (typeof h == "function") {
1226
- var m = h(n, s, a);
1225
+ if (typeof g == "function") {
1226
+ var m = g(t, s, a);
1227
1227
  u = typeof m == "string" ? m : "";
1228
1228
  } else if (a && Object.prototype.hasOwnProperty.call(a, v))
1229
1229
  u = "";
@@ -1231,141 +1231,141 @@ var cn = function() {
1231
1231
  u = s[0];
1232
1232
  continue;
1233
1233
  } else
1234
- o.logger.warn("missed to pass in variable ".concat(v, " for interpolating ").concat(n)), u = "";
1234
+ o.logger.warn("missed to pass in variable ".concat(v, " for interpolating ").concat(t)), u = "";
1235
1235
  else
1236
- typeof u != "string" && !o.useRawValueToEscape && (u = Ke(u));
1237
- var S = O.safeValue(u);
1238
- if (n = n.replace(s[0], S), b ? (O.regex.lastIndex += u.length, O.regex.lastIndex -= s[0].length) : O.regex.lastIndex = 0, d++, d >= o.maxReplaces)
1236
+ typeof u != "string" && !o.useRawValueToEscape && (u = ze(u));
1237
+ var S = w.safeValue(u);
1238
+ if (t = t.replace(s[0], S), b ? (w.regex.lastIndex += u.length, w.regex.lastIndex -= s[0].length) : w.regex.lastIndex = 0, d++, d >= o.maxReplaces)
1239
1239
  break;
1240
1240
  }
1241
- }), n;
1241
+ }), t;
1242
1242
  }
1243
1243
  }, {
1244
1244
  key: "nest",
1245
- value: function(n, t) {
1245
+ value: function(t, n) {
1246
1246
  var r = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, s, u;
1247
- function d(h, b) {
1247
+ function d(g, b) {
1248
1248
  var y = this.nestingOptionsSeparator;
1249
- if (h.indexOf(y) < 0)
1250
- return h;
1251
- var O = h.split(new RegExp("".concat(y, "[ ]*{"))), v = "{".concat(O[1]);
1252
- h = O[0], v = this.interpolate(v, u);
1249
+ if (g.indexOf(y) < 0)
1250
+ return g;
1251
+ var w = g.split(new RegExp("".concat(y, "[ ]*{"))), v = "{".concat(w[1]);
1252
+ g = w[0], v = this.interpolate(v, u);
1253
1253
  var m = v.match(/'/g), S = v.match(/"/g);
1254
1254
  (m && m.length % 2 === 0 && !S || S.length % 2 !== 0) && (v = v.replace(/'/g, '"'));
1255
1255
  try {
1256
1256
  u = JSON.parse(v), b && (u = M(M({}, b), u));
1257
- } catch (P) {
1258
- return this.logger.warn("failed parsing options string in nesting for key ".concat(h), P), "".concat(h).concat(y).concat(v);
1257
+ } catch (x) {
1258
+ return this.logger.warn("failed parsing options string in nesting for key ".concat(g), x), "".concat(g).concat(y).concat(v);
1259
1259
  }
1260
- return delete u.defaultValue, h;
1260
+ return delete u.defaultValue, g;
1261
1261
  }
1262
- for (; o = this.nestingRegexp.exec(n); ) {
1262
+ for (; o = this.nestingRegexp.exec(t); ) {
1263
1263
  var c = [];
1264
1264
  u = M({}, a), u = u.replace && typeof u.replace != "string" ? u.replace : u, u.applyPostProcessor = !1, delete u.defaultValue;
1265
1265
  var f = !1;
1266
1266
  if (o[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(o[1])) {
1267
- var p = o[1].split(this.formatSeparator).map(function(h) {
1268
- return h.trim();
1267
+ var p = o[1].split(this.formatSeparator).map(function(g) {
1268
+ return g.trim();
1269
1269
  });
1270
1270
  o[1] = p.shift(), c = p, f = !0;
1271
1271
  }
1272
- if (s = t(d.call(this, o[1].trim(), u), u), s && o[0] === n && typeof s != "string")
1272
+ if (s = n(d.call(this, o[1].trim(), u), u), s && o[0] === t && typeof s != "string")
1273
1273
  return s;
1274
- typeof s != "string" && (s = Ke(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(n)), s = ""), f && (s = c.reduce(function(h, b) {
1275
- return r.format(h, b, a.lng, M(M({}, a), {}, {
1274
+ typeof s != "string" && (s = ze(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(t)), s = ""), f && (s = c.reduce(function(g, b) {
1275
+ return r.format(g, b, a.lng, M(M({}, a), {}, {
1276
1276
  interpolationkey: o[1].trim()
1277
1277
  }));
1278
- }, s.trim())), n = n.replace(o[0], s), this.regexp.lastIndex = 0;
1278
+ }, s.trim())), t = t.replace(o[0], s), this.regexp.lastIndex = 0;
1279
1279
  }
1280
- return n;
1280
+ return t;
1281
1281
  }
1282
1282
  }]), i;
1283
1283
  }();
1284
- function et(i, e) {
1285
- var n = Object.keys(i);
1284
+ function nt(i, e) {
1285
+ var t = Object.keys(i);
1286
1286
  if (Object.getOwnPropertySymbols) {
1287
- var t = Object.getOwnPropertySymbols(i);
1288
- e && (t = t.filter(function(r) {
1287
+ var n = Object.getOwnPropertySymbols(i);
1288
+ e && (n = n.filter(function(r) {
1289
1289
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
1290
- })), n.push.apply(n, t);
1290
+ })), t.push.apply(t, n);
1291
1291
  }
1292
- return n;
1292
+ return t;
1293
1293
  }
1294
1294
  function G(i) {
1295
1295
  for (var e = 1; e < arguments.length; e++) {
1296
- var n = arguments[e] != null ? arguments[e] : {};
1297
- e % 2 ? et(Object(n), !0).forEach(function(t) {
1298
- W(i, t, n[t]);
1299
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : et(Object(n)).forEach(function(t) {
1300
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
1296
+ var t = arguments[e] != null ? arguments[e] : {};
1297
+ e % 2 ? nt(Object(t), !0).forEach(function(n) {
1298
+ W(i, n, t[n]);
1299
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : nt(Object(t)).forEach(function(n) {
1300
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1301
1301
  });
1302
1302
  }
1303
1303
  return i;
1304
1304
  }
1305
- function ln(i) {
1306
- var e = i.toLowerCase().trim(), n = {};
1305
+ function On(i) {
1306
+ var e = i.toLowerCase().trim(), t = {};
1307
1307
  if (i.indexOf("(") > -1) {
1308
- var t = i.split("(");
1309
- e = t[0].toLowerCase().trim();
1310
- var r = t[1].substring(0, t[1].length - 1);
1308
+ var n = i.split("(");
1309
+ e = n[0].toLowerCase().trim();
1310
+ var r = n[1].substring(0, n[1].length - 1);
1311
1311
  if (e === "currency" && r.indexOf(":") < 0)
1312
- n.currency || (n.currency = r.trim());
1312
+ t.currency || (t.currency = r.trim());
1313
1313
  else if (e === "relativetime" && r.indexOf(":") < 0)
1314
- n.range || (n.range = r.trim());
1314
+ t.range || (t.range = r.trim());
1315
1315
  else {
1316
1316
  var a = r.split(";");
1317
1317
  a.forEach(function(o) {
1318
1318
  if (o) {
1319
- var s = o.split(":"), u = qt(s), d = u[0], c = u.slice(1), f = c.join(":").trim().replace(/^'+|'+$/g, "");
1320
- n[d.trim()] || (n[d.trim()] = f), f === "false" && (n[d.trim()] = !1), f === "true" && (n[d.trim()] = !0), isNaN(f) || (n[d.trim()] = parseInt(f, 10));
1319
+ var s = o.split(":"), u = Zt(s), d = u[0], c = u.slice(1), f = c.join(":").trim().replace(/^'+|'+$/g, "");
1320
+ t[d.trim()] || (t[d.trim()] = f), f === "false" && (t[d.trim()] = !1), f === "true" && (t[d.trim()] = !0), isNaN(f) || (t[d.trim()] = parseInt(f, 10));
1321
1321
  }
1322
1322
  });
1323
1323
  }
1324
1324
  }
1325
1325
  return {
1326
1326
  formatName: e,
1327
- formatOptions: n
1327
+ formatOptions: t
1328
1328
  };
1329
1329
  }
1330
1330
  function ie(i) {
1331
1331
  var e = {};
1332
- return function(t, r, a) {
1332
+ return function(n, r, a) {
1333
1333
  var o = r + JSON.stringify(a), s = e[o];
1334
- return s || (s = i(r, a), e[o] = s), s(t);
1334
+ return s || (s = i(r, a), e[o] = s), s(n);
1335
1335
  };
1336
1336
  }
1337
- var dn = function() {
1337
+ var Sn = function() {
1338
1338
  function i() {
1339
1339
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1340
- U(this, i), this.logger = J.create("formatter"), this.options = e, this.formats = {
1341
- number: ie(function(n, t) {
1342
- var r = new Intl.NumberFormat(n, G({}, t));
1340
+ B(this, i), this.logger = J.create("formatter"), this.options = e, this.formats = {
1341
+ number: ie(function(t, n) {
1342
+ var r = new Intl.NumberFormat(t, G({}, n));
1343
1343
  return function(a) {
1344
1344
  return r.format(a);
1345
1345
  };
1346
1346
  }),
1347
- currency: ie(function(n, t) {
1348
- var r = new Intl.NumberFormat(n, G(G({}, t), {}, {
1347
+ currency: ie(function(t, n) {
1348
+ var r = new Intl.NumberFormat(t, G(G({}, n), {}, {
1349
1349
  style: "currency"
1350
1350
  }));
1351
1351
  return function(a) {
1352
1352
  return r.format(a);
1353
1353
  };
1354
1354
  }),
1355
- datetime: ie(function(n, t) {
1356
- var r = new Intl.DateTimeFormat(n, G({}, t));
1355
+ datetime: ie(function(t, n) {
1356
+ var r = new Intl.DateTimeFormat(t, G({}, n));
1357
1357
  return function(a) {
1358
1358
  return r.format(a);
1359
1359
  };
1360
1360
  }),
1361
- relativetime: ie(function(n, t) {
1362
- var r = new Intl.RelativeTimeFormat(n, G({}, t));
1361
+ relativetime: ie(function(t, n) {
1362
+ var r = new Intl.RelativeTimeFormat(t, G({}, n));
1363
1363
  return function(a) {
1364
- return r.format(a, t.range || "day");
1364
+ return r.format(a, n.range || "day");
1365
1365
  };
1366
1366
  }),
1367
- list: ie(function(n, t) {
1368
- var r = new Intl.ListFormat(n, G({}, t));
1367
+ list: ie(function(t, n) {
1368
+ var r = new Intl.ListFormat(t, G({}, n));
1369
1369
  return function(a) {
1370
1370
  return r.format(a);
1371
1371
  };
@@ -1374,32 +1374,32 @@ var dn = function() {
1374
1374
  }
1375
1375
  return H(i, [{
1376
1376
  key: "init",
1377
- value: function(n) {
1378
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
1377
+ value: function(t) {
1378
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
1379
1379
  interpolation: {}
1380
- }, r = t.interpolation;
1380
+ }, r = n.interpolation;
1381
1381
  this.formatSeparator = r.formatSeparator ? r.formatSeparator : r.formatSeparator || ",";
1382
1382
  }
1383
1383
  }, {
1384
1384
  key: "add",
1385
- value: function(n, t) {
1386
- this.formats[n.toLowerCase().trim()] = t;
1385
+ value: function(t, n) {
1386
+ this.formats[t.toLowerCase().trim()] = n;
1387
1387
  }
1388
1388
  }, {
1389
1389
  key: "addCached",
1390
- value: function(n, t) {
1391
- this.formats[n.toLowerCase().trim()] = ie(t);
1390
+ value: function(t, n) {
1391
+ this.formats[t.toLowerCase().trim()] = ie(n);
1392
1392
  }
1393
1393
  }, {
1394
1394
  key: "format",
1395
- value: function(n, t, r) {
1396
- var a = this, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = t.split(this.formatSeparator), u = s.reduce(function(d, c) {
1397
- var f = ln(c), p = f.formatName, h = f.formatOptions;
1395
+ value: function(t, n, r) {
1396
+ var a = this, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = n.split(this.formatSeparator), u = s.reduce(function(d, c) {
1397
+ var f = On(c), p = f.formatName, g = f.formatOptions;
1398
1398
  if (a.formats[p]) {
1399
1399
  var b = d;
1400
1400
  try {
1401
- var y = o && o.formatParams && o.formatParams[o.interpolationkey] || {}, O = y.locale || y.lng || o.locale || o.lng || r;
1402
- b = a.formats[p](d, O, G(G(G({}, h), o), y));
1401
+ var y = o && o.formatParams && o.formatParams[o.interpolationkey] || {}, w = y.locale || y.lng || o.locale || o.lng || r;
1402
+ b = a.formats[p](d, w, G(G(G({}, g), o), y));
1403
1403
  } catch (v) {
1404
1404
  a.logger.warn(v);
1405
1405
  }
@@ -1407,45 +1407,45 @@ var dn = function() {
1407
1407
  } else
1408
1408
  a.logger.warn("there was no format function for ".concat(p));
1409
1409
  return d;
1410
- }, n);
1410
+ }, t);
1411
1411
  return u;
1412
1412
  }
1413
1413
  }]), i;
1414
1414
  }();
1415
- function tt(i, e) {
1416
- var n = Object.keys(i);
1415
+ function rt(i, e) {
1416
+ var t = Object.keys(i);
1417
1417
  if (Object.getOwnPropertySymbols) {
1418
- var t = Object.getOwnPropertySymbols(i);
1419
- e && (t = t.filter(function(r) {
1418
+ var n = Object.getOwnPropertySymbols(i);
1419
+ e && (n = n.filter(function(r) {
1420
1420
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
1421
- })), n.push.apply(n, t);
1421
+ })), t.push.apply(t, n);
1422
1422
  }
1423
- return n;
1423
+ return t;
1424
1424
  }
1425
- function nt(i) {
1425
+ function it(i) {
1426
1426
  for (var e = 1; e < arguments.length; e++) {
1427
- var n = arguments[e] != null ? arguments[e] : {};
1428
- e % 2 ? tt(Object(n), !0).forEach(function(t) {
1429
- W(i, t, n[t]);
1430
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : tt(Object(n)).forEach(function(t) {
1431
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
1427
+ var t = arguments[e] != null ? arguments[e] : {};
1428
+ e % 2 ? rt(Object(t), !0).forEach(function(n) {
1429
+ W(i, n, t[n]);
1430
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : rt(Object(t)).forEach(function(n) {
1431
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1432
1432
  });
1433
1433
  }
1434
1434
  return i;
1435
1435
  }
1436
- function pn(i) {
1437
- var e = hn();
1436
+ function xn(i) {
1437
+ var e = Pn();
1438
1438
  return function() {
1439
- var t = X(i), r;
1439
+ var n = X(i), r;
1440
1440
  if (e) {
1441
1441
  var a = X(this).constructor;
1442
- r = Reflect.construct(t, arguments, a);
1442
+ r = Reflect.construct(n, arguments, a);
1443
1443
  } else
1444
- r = t.apply(this, arguments);
1445
- return ce(this, r);
1444
+ r = n.apply(this, arguments);
1445
+ return de(this, r);
1446
1446
  };
1447
1447
  }
1448
- function hn() {
1448
+ function Pn() {
1449
1449
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1450
1450
  return !1;
1451
1451
  if (typeof Proxy == "function")
@@ -1457,26 +1457,26 @@ function hn() {
1457
1457
  return !1;
1458
1458
  }
1459
1459
  }
1460
- function gn(i, e) {
1460
+ function jn(i, e) {
1461
1461
  i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
1462
1462
  }
1463
- var vn = function(i) {
1464
- Oe(n, i);
1465
- var e = pn(n);
1466
- function n(t, r, a) {
1463
+ var kn = function(i) {
1464
+ Se(t, i);
1465
+ var e = xn(t);
1466
+ function t(n, r, a) {
1467
1467
  var o, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1468
- return U(this, n), o = e.call(this), we && ee.call(Z(o)), o.backend = t, o.store = r, o.services = a, o.languageUtils = a.languageUtils, o.options = s, o.logger = J.create("backendConnector"), o.waitingReads = [], o.maxParallelReads = s.maxParallelReads || 10, o.readingCalls = 0, o.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, o.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(a, s.backend, s), o;
1468
+ return B(this, t), o = e.call(this), xe && ee.call(Z(o)), o.backend = n, o.store = r, o.services = a, o.languageUtils = a.languageUtils, o.options = s, o.logger = J.create("backendConnector"), o.waitingReads = [], o.maxParallelReads = s.maxParallelReads || 10, o.readingCalls = 0, o.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, o.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(a, s.backend, s), o;
1469
1469
  }
1470
- return H(n, [{
1470
+ return H(t, [{
1471
1471
  key: "queueLoad",
1472
1472
  value: function(r, a, o, s) {
1473
1473
  var u = this, d = {}, c = {}, f = {}, p = {};
1474
- return r.forEach(function(h) {
1474
+ return r.forEach(function(g) {
1475
1475
  var b = !0;
1476
1476
  a.forEach(function(y) {
1477
- var O = "".concat(h, "|").concat(y);
1478
- !o.reload && u.store.hasResourceBundle(h, y) ? u.state[O] = 2 : u.state[O] < 0 || (u.state[O] === 1 ? c[O] === void 0 && (c[O] = !0) : (u.state[O] = 1, b = !1, c[O] === void 0 && (c[O] = !0), d[O] === void 0 && (d[O] = !0), p[y] === void 0 && (p[y] = !0)));
1479
- }), b || (f[h] = !0);
1477
+ var w = "".concat(g, "|").concat(y);
1478
+ !o.reload && u.store.hasResourceBundle(g, y) ? u.state[w] = 2 : u.state[w] < 0 || (u.state[w] === 1 ? c[w] === void 0 && (c[w] = !0) : (u.state[w] = 1, b = !1, c[w] === void 0 && (c[w] = !0), d[w] === void 0 && (d[w] = !0), p[y] === void 0 && (p[y] = !0)));
1479
+ }), b || (f[g] = !0);
1480
1480
  }), (Object.keys(d).length || Object.keys(c).length) && this.queue.push({
1481
1481
  pending: c,
1482
1482
  pendingCount: Object.keys(c).length,
@@ -1497,10 +1497,10 @@ var vn = function(i) {
1497
1497
  a && this.emit("failedLoading", u, d, a), o && this.store.addResourceBundle(u, d, o), this.state[r] = a ? -1 : 2;
1498
1498
  var c = {};
1499
1499
  this.queue.forEach(function(f) {
1500
- Jt(f.loaded, [u], d), gn(f, r), a && f.errors.push(a), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach(function(p) {
1500
+ rn(f.loaded, [u], d), jn(f, r), a && f.errors.push(a), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach(function(p) {
1501
1501
  c[p] || (c[p] = {});
1502
- var h = f.loaded[p];
1503
- h.length && h.forEach(function(b) {
1502
+ var g = f.loaded[p];
1503
+ g.length && g.forEach(function(b) {
1504
1504
  c[p][b] === void 0 && (c[p][b] = !0);
1505
1505
  });
1506
1506
  }), f.done = !0, f.errors.length ? f.callback(f.errors) : f.callback());
@@ -1526,25 +1526,25 @@ var vn = function(i) {
1526
1526
  return;
1527
1527
  }
1528
1528
  this.readingCalls++;
1529
- var f = function(y, O) {
1529
+ var f = function(y, w) {
1530
1530
  if (s.readingCalls--, s.waitingReads.length > 0) {
1531
1531
  var v = s.waitingReads.shift();
1532
1532
  s.read(v.lng, v.ns, v.fcName, v.tried, v.wait, v.callback);
1533
1533
  }
1534
- if (y && O && u < s.maxRetries) {
1534
+ if (y && w && u < s.maxRetries) {
1535
1535
  setTimeout(function() {
1536
1536
  s.read.call(s, r, a, o, u + 1, d * 2, c);
1537
1537
  }, d);
1538
1538
  return;
1539
1539
  }
1540
- c(y, O);
1540
+ c(y, w);
1541
1541
  }, p = this.backend[o].bind(this.backend);
1542
1542
  if (p.length === 2) {
1543
1543
  try {
1544
- var h = p(r, a);
1545
- h && typeof h.then == "function" ? h.then(function(b) {
1544
+ var g = p(r, a);
1545
+ g && typeof g.then == "function" ? g.then(function(b) {
1546
1546
  return f(null, b);
1547
- }).catch(f) : f(null, h);
1547
+ }).catch(f) : f(null, g);
1548
1548
  } catch (b) {
1549
1549
  f(b);
1550
1550
  }
@@ -1597,15 +1597,15 @@ var vn = function(i) {
1597
1597
  }
1598
1598
  if (!(o == null || o === "")) {
1599
1599
  if (this.backend && this.backend.create) {
1600
- var f = nt(nt({}, d), {}, {
1600
+ var f = it(it({}, d), {}, {
1601
1601
  isUpdate: u
1602
1602
  }), p = this.backend.create.bind(this.backend);
1603
1603
  if (p.length < 6)
1604
1604
  try {
1605
- var h;
1606
- p.length === 5 ? h = p(r, a, o, s, f) : h = p(r, a, o, s), h && typeof h.then == "function" ? h.then(function(b) {
1605
+ var g;
1606
+ p.length === 5 ? g = p(r, a, o, s, f) : g = p(r, a, o, s), g && typeof g.then == "function" ? g.then(function(b) {
1607
1607
  return c(null, b);
1608
- }).catch(c) : c(null, h);
1608
+ }).catch(c) : c(null, g);
1609
1609
  } catch (b) {
1610
1610
  c(b);
1611
1611
  }
@@ -1615,9 +1615,9 @@ var vn = function(i) {
1615
1615
  !r || !r[0] || this.store.addResource(r[0], a, o, s);
1616
1616
  }
1617
1617
  }
1618
- }]), n;
1618
+ }]), t;
1619
1619
  }(ee);
1620
- function rt() {
1620
+ function at() {
1621
1621
  return {
1622
1622
  debug: !1,
1623
1623
  initImmediate: !0,
@@ -1652,18 +1652,18 @@ function rt() {
1652
1652
  appendNamespaceToMissingKey: !1,
1653
1653
  appendNamespaceToCIMode: !1,
1654
1654
  overloadTranslationOptionHandler: function(e) {
1655
- var n = {};
1656
- if (B(e[1]) === "object" && (n = e[1]), typeof e[1] == "string" && (n.defaultValue = e[1]), typeof e[2] == "string" && (n.tDescription = e[2]), B(e[2]) === "object" || B(e[3]) === "object") {
1657
- var t = e[3] || e[2];
1658
- Object.keys(t).forEach(function(r) {
1659
- n[r] = t[r];
1655
+ var t = {};
1656
+ if (U(e[1]) === "object" && (t = e[1]), typeof e[1] == "string" && (t.defaultValue = e[1]), typeof e[2] == "string" && (t.tDescription = e[2]), U(e[2]) === "object" || U(e[3]) === "object") {
1657
+ var n = e[3] || e[2];
1658
+ Object.keys(n).forEach(function(r) {
1659
+ t[r] = n[r];
1660
1660
  });
1661
1661
  }
1662
- return n;
1662
+ return t;
1663
1663
  },
1664
1664
  interpolation: {
1665
1665
  escapeValue: !0,
1666
- format: function(e, n, t, r) {
1666
+ format: function(e, t, n, r) {
1667
1667
  return e;
1668
1668
  },
1669
1669
  prefix: "{{",
@@ -1678,43 +1678,43 @@ function rt() {
1678
1678
  }
1679
1679
  };
1680
1680
  }
1681
- function it(i) {
1681
+ function ot(i) {
1682
1682
  return typeof i.ns == "string" && (i.ns = [i.ns]), typeof i.fallbackLng == "string" && (i.fallbackLng = [i.fallbackLng]), typeof i.fallbackNS == "string" && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i;
1683
1683
  }
1684
- function at(i, e) {
1685
- var n = Object.keys(i);
1684
+ function st(i, e) {
1685
+ var t = Object.keys(i);
1686
1686
  if (Object.getOwnPropertySymbols) {
1687
- var t = Object.getOwnPropertySymbols(i);
1688
- e && (t = t.filter(function(r) {
1687
+ var n = Object.getOwnPropertySymbols(i);
1688
+ e && (n = n.filter(function(r) {
1689
1689
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
1690
- })), n.push.apply(n, t);
1690
+ })), t.push.apply(t, n);
1691
1691
  }
1692
- return n;
1692
+ return t;
1693
1693
  }
1694
1694
  function z(i) {
1695
1695
  for (var e = 1; e < arguments.length; e++) {
1696
- var n = arguments[e] != null ? arguments[e] : {};
1697
- e % 2 ? at(Object(n), !0).forEach(function(t) {
1698
- W(i, t, n[t]);
1699
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : at(Object(n)).forEach(function(t) {
1700
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
1696
+ var t = arguments[e] != null ? arguments[e] : {};
1697
+ e % 2 ? st(Object(t), !0).forEach(function(n) {
1698
+ W(i, n, t[n]);
1699
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : st(Object(t)).forEach(function(n) {
1700
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1701
1701
  });
1702
1702
  }
1703
1703
  return i;
1704
1704
  }
1705
- function mn(i) {
1706
- var e = yn();
1705
+ function Ln(i) {
1706
+ var e = Rn();
1707
1707
  return function() {
1708
- var t = X(i), r;
1708
+ var n = X(i), r;
1709
1709
  if (e) {
1710
1710
  var a = X(this).constructor;
1711
- r = Reflect.construct(t, arguments, a);
1711
+ r = Reflect.construct(n, arguments, a);
1712
1712
  } else
1713
- r = t.apply(this, arguments);
1714
- return ce(this, r);
1713
+ r = n.apply(this, arguments);
1714
+ return de(this, r);
1715
1715
  };
1716
1716
  }
1717
- function yn() {
1717
+ function Rn() {
1718
1718
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1719
1719
  return !1;
1720
1720
  if (typeof Proxy == "function")
@@ -1726,72 +1726,72 @@ function yn() {
1726
1726
  return !1;
1727
1727
  }
1728
1728
  }
1729
- function pe() {
1729
+ function he() {
1730
1730
  }
1731
- function bn(i) {
1731
+ function En(i) {
1732
1732
  var e = Object.getOwnPropertyNames(Object.getPrototypeOf(i));
1733
- e.forEach(function(n) {
1734
- typeof i[n] == "function" && (i[n] = i[n].bind(i));
1733
+ e.forEach(function(t) {
1734
+ typeof i[t] == "function" && (i[t] = i[t].bind(i));
1735
1735
  });
1736
1736
  }
1737
- var ye = function(i) {
1738
- Oe(n, i);
1739
- var e = mn(n);
1740
- function n() {
1741
- var t, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
1742
- if (U(this, n), t = e.call(this), we && ee.call(Z(t)), t.options = it(r), t.services = {}, t.logger = J, t.modules = {
1737
+ var we = function(i) {
1738
+ Se(t, i);
1739
+ var e = Ln(t);
1740
+ function t() {
1741
+ var n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
1742
+ if (B(this, t), n = e.call(this), xe && ee.call(Z(n)), n.options = ot(r), n.services = {}, n.logger = J, n.modules = {
1743
1743
  external: []
1744
- }, bn(Z(t)), a && !t.isInitialized && !r.isClone) {
1745
- if (!t.options.initImmediate)
1746
- return t.init(r, a), ce(t, Z(t));
1744
+ }, En(Z(n)), a && !n.isInitialized && !r.isClone) {
1745
+ if (!n.options.initImmediate)
1746
+ return n.init(r, a), de(n, Z(n));
1747
1747
  setTimeout(function() {
1748
- t.init(r, a);
1748
+ n.init(r, a);
1749
1749
  }, 0);
1750
1750
  }
1751
- return t;
1751
+ return n;
1752
1752
  }
1753
- return H(n, [{
1753
+ return H(t, [{
1754
1754
  key: "init",
1755
1755
  value: function() {
1756
1756
  var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
1757
1757
  typeof a == "function" && (o = a, a = {}), !a.defaultNS && a.defaultNS !== !1 && a.ns && (typeof a.ns == "string" ? a.defaultNS = a.ns : a.ns.indexOf("translation") < 0 && (a.defaultNS = a.ns[0]));
1758
- var s = rt();
1759
- this.options = z(z(z({}, s), this.options), it(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = z(z({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
1758
+ var s = at();
1759
+ this.options = z(z(z({}, s), this.options), ot(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = z(z({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
1760
1760
  function u(v) {
1761
1761
  return v ? typeof v == "function" ? new v() : v : null;
1762
1762
  }
1763
1763
  if (!this.options.isClone) {
1764
1764
  this.modules.logger ? J.init(u(this.modules.logger), this.options) : J.init(null, this.options);
1765
1765
  var d;
1766
- this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = dn);
1767
- var c = new Ge(this.options);
1768
- this.store = new tn(this.options.resources, this.options);
1766
+ this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = Sn);
1767
+ var c = new Ye(this.options);
1768
+ this.store = new dn(this.options.resources, this.options);
1769
1769
  var f = this.services;
1770
- f.logger = J, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new fn(c, {
1770
+ f.logger = J, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new bn(c, {
1771
1771
  prepend: this.options.pluralSeparator,
1772
1772
  compatibilityJSON: this.options.compatibilityJSON,
1773
1773
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1774
- }), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (f.formatter = u(d), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new cn(this.options), f.utils = {
1774
+ }), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (f.formatter = u(d), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new wn(this.options), f.utils = {
1775
1775
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1776
- }, f.backendConnector = new vn(u(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(v) {
1777
- for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), P = 1; P < m; P++)
1778
- S[P - 1] = arguments[P];
1776
+ }, f.backendConnector = new kn(u(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(v) {
1777
+ for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
1778
+ S[x - 1] = arguments[x];
1779
1779
  r.emit.apply(r, [v].concat(S));
1780
- }), this.modules.languageDetector && (f.languageDetector = u(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = u(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new We(this.services, this.options), this.translator.on("*", function(v) {
1781
- for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), P = 1; P < m; P++)
1782
- S[P - 1] = arguments[P];
1780
+ }), this.modules.languageDetector && (f.languageDetector = u(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = u(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Qe(this.services, this.options), this.translator.on("*", function(v) {
1781
+ for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
1782
+ S[x - 1] = arguments[x];
1783
1783
  r.emit.apply(r, [v].concat(S));
1784
1784
  }), this.modules.external.forEach(function(v) {
1785
1785
  v.init && v.init(r);
1786
1786
  });
1787
1787
  }
1788
- if (this.format = this.options.interpolation.format, o || (o = pe), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1788
+ if (this.format = this.options.interpolation.format, o || (o = he), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1789
1789
  var p = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1790
1790
  p.length > 0 && p[0] !== "dev" && (this.options.lng = p[0]);
1791
1791
  }
1792
1792
  !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined");
1793
- var h = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
1794
- h.forEach(function(v) {
1793
+ var g = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
1794
+ g.forEach(function(v) {
1795
1795
  r[v] = function() {
1796
1796
  var m;
1797
1797
  return (m = r.store)[v].apply(m, arguments);
@@ -1804,26 +1804,26 @@ var ye = function(i) {
1804
1804
  return (m = r.store)[v].apply(m, arguments), r;
1805
1805
  };
1806
1806
  });
1807
- var y = se(), O = function() {
1808
- var m = function(P, L) {
1809
- r.isInitialized && !r.initializedStoreOnce && r.logger.warn("init: i18next is already initialized. You should call init just once!"), r.isInitialized = !0, r.options.isClone || r.logger.log("initialized", r.options), r.emit("initialized", r.options), y.resolve(L), o(P, L);
1807
+ var y = se(), w = function() {
1808
+ var m = function(x, k) {
1809
+ r.isInitialized && !r.initializedStoreOnce && r.logger.warn("init: i18next is already initialized. You should call init just once!"), r.isInitialized = !0, r.options.isClone || r.logger.log("initialized", r.options), r.emit("initialized", r.options), y.resolve(k), o(x, k);
1810
1810
  };
1811
1811
  if (r.languages && r.options.compatibilityAPI !== "v1" && !r.isInitialized)
1812
1812
  return m(null, r.t.bind(r));
1813
1813
  r.changeLanguage(r.options.lng, m);
1814
1814
  };
1815
- return this.options.resources || !this.options.initImmediate ? O() : setTimeout(O, 0), y;
1815
+ return this.options.resources || !this.options.initImmediate ? w() : setTimeout(w, 0), y;
1816
1816
  }
1817
1817
  }, {
1818
1818
  key: "loadResources",
1819
1819
  value: function(r) {
1820
- var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : pe, s = o, u = typeof r == "string" ? r : this.language;
1820
+ var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he, s = o, u = typeof r == "string" ? r : this.language;
1821
1821
  if (typeof r == "function" && (s = r), !this.options.resources || this.options.partialBundledLanguages) {
1822
1822
  if (u && u.toLowerCase() === "cimode")
1823
1823
  return s();
1824
- var d = [], c = function(h) {
1825
- if (h) {
1826
- var b = a.services.languageUtils.toResolveHierarchy(h);
1824
+ var d = [], c = function(g) {
1825
+ if (g) {
1826
+ var b = a.services.languageUtils.toResolveHierarchy(g);
1827
1827
  b.forEach(function(y) {
1828
1828
  d.indexOf(y) < 0 && d.push(y);
1829
1829
  });
@@ -1849,7 +1849,7 @@ var ye = function(i) {
1849
1849
  key: "reloadResources",
1850
1850
  value: function(r, a, o) {
1851
1851
  var s = se();
1852
- return r || (r = this.languages), a || (a = this.options.ns), o || (o = pe), this.services.backendConnector.reload(r, a, function(u) {
1852
+ return r || (r = this.languages), a || (a = this.options.ns), o || (o = he), this.services.backendConnector.reload(r, a, function(u) {
1853
1853
  s.resolve(), o(u);
1854
1854
  }), s;
1855
1855
  }
@@ -1860,7 +1860,7 @@ var ye = function(i) {
1860
1860
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1861
1861
  if (!r.type)
1862
1862
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1863
- return r.type === "backend" && (this.modules.backend = r), (r.type === "logger" || r.log && r.warn && r.error) && (this.modules.logger = r), r.type === "languageDetector" && (this.modules.languageDetector = r), r.type === "i18nFormat" && (this.modules.i18nFormat = r), r.type === "postProcessor" && jt.addPostProcessor(r), r.type === "formatter" && (this.modules.formatter = r), r.type === "3rdParty" && this.modules.external.push(r), this;
1863
+ return r.type === "backend" && (this.modules.backend = r), (r.type === "logger" || r.log && r.warn && r.error) && (this.modules.logger = r), r.type === "languageDetector" && (this.modules.languageDetector = r), r.type === "i18nFormat" && (this.modules.i18nFormat = r), r.type === "postProcessor" && _t.addPostProcessor(r), r.type === "formatter" && (this.modules.formatter = r), r.type === "3rdParty" && this.modules.external.push(r), this;
1864
1864
  }
1865
1865
  }, {
1866
1866
  key: "setResolvedLanguage",
@@ -1883,17 +1883,17 @@ var ye = function(i) {
1883
1883
  this.emit("languageChanging", r);
1884
1884
  var u = function(p) {
1885
1885
  o.language = p, o.languages = o.services.languageUtils.toResolveHierarchy(p), o.resolvedLanguage = void 0, o.setResolvedLanguage(p);
1886
- }, d = function(p, h) {
1887
- h ? (u(h), o.translator.changeLanguage(h), o.isLanguageChangingTo = void 0, o.emit("languageChanged", h), o.logger.log("languageChanged", h)) : o.isLanguageChangingTo = void 0, s.resolve(function() {
1886
+ }, d = function(p, g) {
1887
+ g ? (u(g), o.translator.changeLanguage(g), o.isLanguageChangingTo = void 0, o.emit("languageChanged", g), o.logger.log("languageChanged", g)) : o.isLanguageChangingTo = void 0, s.resolve(function() {
1888
1888
  return o.t.apply(o, arguments);
1889
1889
  }), a && a(p, function() {
1890
1890
  return o.t.apply(o, arguments);
1891
1891
  });
1892
1892
  }, c = function(p) {
1893
1893
  !r && !p && o.services.languageDetector && (p = []);
1894
- var h = typeof p == "string" ? p : o.services.languageUtils.getBestMatchFromCodes(p);
1895
- h && (o.language || u(h), o.translator.language || o.translator.changeLanguage(h), o.services.languageDetector && o.services.languageDetector.cacheUserLanguage && o.services.languageDetector.cacheUserLanguage(h)), o.loadResources(h, function(b) {
1896
- d(b, h);
1894
+ var g = typeof p == "string" ? p : o.services.languageUtils.getBestMatchFromCodes(p);
1895
+ g && (o.language || u(g), o.translator.language || o.translator.changeLanguage(g), o.services.languageDetector && o.services.languageDetector.cacheUserLanguage && o.services.languageDetector.cacheUserLanguage(g)), o.loadResources(g, function(b) {
1896
+ d(b, g);
1897
1897
  });
1898
1898
  };
1899
1899
  return !r && this.services.languageDetector && !this.services.languageDetector.async ? c(this.services.languageDetector.detect()) : !r && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(c) : this.services.languageDetector.detect(c) : c(r), s;
@@ -1903,17 +1903,17 @@ var ye = function(i) {
1903
1903
  value: function(r, a, o) {
1904
1904
  var s = this, u = function d(c, f) {
1905
1905
  var p;
1906
- if (B(f) !== "object") {
1907
- for (var h = arguments.length, b = new Array(h > 2 ? h - 2 : 0), y = 2; y < h; y++)
1906
+ if (U(f) !== "object") {
1907
+ for (var g = arguments.length, b = new Array(g > 2 ? g - 2 : 0), y = 2; y < g; y++)
1908
1908
  b[y - 2] = arguments[y];
1909
1909
  p = s.options.overloadTranslationOptionHandler([c, f].concat(b));
1910
1910
  } else
1911
1911
  p = z({}, f);
1912
1912
  p.lng = p.lng || d.lng, p.lngs = p.lngs || d.lngs, p.ns = p.ns || d.ns, p.keyPrefix = p.keyPrefix || o || d.keyPrefix;
1913
- var O = s.options.keySeparator || ".", v;
1913
+ var w = s.options.keySeparator || ".", v;
1914
1914
  return p.keyPrefix && Array.isArray(c) ? v = c.map(function(m) {
1915
- return "".concat(p.keyPrefix).concat(O).concat(m);
1916
- }) : v = p.keyPrefix ? "".concat(p.keyPrefix).concat(O).concat(c) : c, s.t(v, p);
1915
+ return "".concat(p.keyPrefix).concat(w).concat(m);
1916
+ }) : v = p.keyPrefix ? "".concat(p.keyPrefix).concat(w).concat(c) : c, s.t(v, p);
1917
1917
  };
1918
1918
  return typeof r == "string" ? u.lng = r : u.lngs = r, u.ns = a, u.keyPrefix = o, u;
1919
1919
  }
@@ -1945,8 +1945,8 @@ var ye = function(i) {
1945
1945
  var s = o.lng || this.resolvedLanguage || this.languages[0], u = this.options ? this.options.fallbackLng : !1, d = this.languages[this.languages.length - 1];
1946
1946
  if (s.toLowerCase() === "cimode")
1947
1947
  return !0;
1948
- var c = function(h, b) {
1949
- var y = a.services.backendConnector.state["".concat(h, "|").concat(b)];
1948
+ var c = function(g, b) {
1949
+ var y = a.services.backendConnector.state["".concat(g, "|").concat(b)];
1950
1950
  return y === -1 || y === 2;
1951
1951
  };
1952
1952
  if (o.precheck) {
@@ -1983,24 +1983,24 @@ var ye = function(i) {
1983
1983
  value: function(r) {
1984
1984
  if (r || (r = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !r)
1985
1985
  return "rtl";
1986
- var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new Ge(rt());
1986
+ var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new Ye(at());
1987
1987
  return a.indexOf(o.getLanguagePartFromCode(r)) > -1 || r.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1988
1988
  }
1989
1989
  }, {
1990
1990
  key: "cloneInstance",
1991
1991
  value: function() {
1992
- var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : pe, s = z(z(z({}, this.options), a), {
1992
+ var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he, s = z(z(z({}, this.options), a), {
1993
1993
  isClone: !0
1994
- }), u = new n(s);
1994
+ }), u = new t(s);
1995
1995
  (a.debug !== void 0 || a.prefix !== void 0) && (u.logger = u.logger.clone(a));
1996
1996
  var d = ["store", "services", "language"];
1997
1997
  return d.forEach(function(c) {
1998
1998
  u[c] = r[c];
1999
1999
  }), u.services = z({}, this.services), u.services.utils = {
2000
2000
  hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
2001
- }, u.translator = new We(u.services, u.options), u.translator.on("*", function(c) {
2002
- for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), h = 1; h < f; h++)
2003
- p[h - 1] = arguments[h];
2001
+ }, u.translator = new Qe(u.services, u.options), u.translator.on("*", function(c) {
2002
+ for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
2003
+ p[g - 1] = arguments[g];
2004
2004
  u.emit.apply(u, [c].concat(p));
2005
2005
  }), u.init(s, o), u.translator.options = u.options, u.translator.backendConnector.services.utils = {
2006
2006
  hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
@@ -2017,87 +2017,349 @@ var ye = function(i) {
2017
2017
  resolvedLanguage: this.resolvedLanguage
2018
2018
  };
2019
2019
  }
2020
- }]), n;
2020
+ }]), t;
2021
2021
  }(ee);
2022
- W(ye, "createInstance", function() {
2022
+ W(we, "createInstance", function() {
2023
2023
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 ? arguments[1] : void 0;
2024
- return new ye(i, e);
2024
+ return new we(i, e);
2025
2025
  });
2026
- var C = ye.createInstance();
2027
- C.createInstance = ye.createInstance;
2028
- C.createInstance;
2029
- C.dir;
2030
- C.init;
2031
- C.loadResources;
2032
- C.reloadResources;
2033
- C.use;
2034
- C.changeLanguage;
2035
- C.getFixedT;
2036
- var cr = C.t;
2037
- C.exists;
2038
- C.setDefaultNamespace;
2039
- C.hasLoadedNamespace;
2040
- C.loadNamespaces;
2041
- C.loadLanguages;
2042
- function On() {
2026
+ var N = we.createInstance();
2027
+ N.createInstance = we.createInstance;
2028
+ N.createInstance;
2029
+ N.dir;
2030
+ N.init;
2031
+ N.loadResources;
2032
+ N.reloadResources;
2033
+ N.use;
2034
+ N.changeLanguage;
2035
+ N.getFixedT;
2036
+ var Tr = N.t;
2037
+ N.exists;
2038
+ N.setDefaultNamespace;
2039
+ N.hasLoadedNamespace;
2040
+ N.loadNamespaces;
2041
+ N.loadLanguages;
2042
+ var Nt = [], Cn = Nt.forEach, _n = Nt.slice;
2043
+ function Nn(i) {
2044
+ return Cn.call(_n.call(arguments, 1), function(e) {
2045
+ if (e)
2046
+ for (var t in e)
2047
+ i[t] === void 0 && (i[t] = e[t]);
2048
+ }), i;
2049
+ }
2050
+ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2051
+ var r = n || {};
2052
+ r.path = r.path || "/";
2053
+ var a = encodeURIComponent(t), o = "".concat(e, "=").concat(a);
2054
+ if (r.maxAge > 0) {
2055
+ var s = r.maxAge - 0;
2056
+ if (Number.isNaN(s))
2057
+ throw new Error("maxAge should be a Number");
2058
+ o += "; Max-Age=".concat(Math.floor(s));
2059
+ }
2060
+ if (r.domain) {
2061
+ if (!ut.test(r.domain))
2062
+ throw new TypeError("option domain is invalid");
2063
+ o += "; Domain=".concat(r.domain);
2064
+ }
2065
+ if (r.path) {
2066
+ if (!ut.test(r.path))
2067
+ throw new TypeError("option path is invalid");
2068
+ o += "; Path=".concat(r.path);
2069
+ }
2070
+ if (r.expires) {
2071
+ if (typeof r.expires.toUTCString != "function")
2072
+ throw new TypeError("option expires is invalid");
2073
+ o += "; Expires=".concat(r.expires.toUTCString());
2074
+ }
2075
+ if (r.httpOnly && (o += "; HttpOnly"), r.secure && (o += "; Secure"), r.sameSite) {
2076
+ var u = typeof r.sameSite == "string" ? r.sameSite.toLowerCase() : r.sameSite;
2077
+ switch (u) {
2078
+ case !0:
2079
+ o += "; SameSite=Strict";
2080
+ break;
2081
+ case "lax":
2082
+ o += "; SameSite=Lax";
2083
+ break;
2084
+ case "strict":
2085
+ o += "; SameSite=Strict";
2086
+ break;
2087
+ case "none":
2088
+ o += "; SameSite=None";
2089
+ break;
2090
+ default:
2091
+ throw new TypeError("option sameSite is invalid");
2092
+ }
2093
+ }
2094
+ return o;
2095
+ }, ft = {
2096
+ create: function(e, t, n, r) {
2097
+ var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2098
+ path: "/",
2099
+ sameSite: "strict"
2100
+ };
2101
+ n && (a.expires = /* @__PURE__ */ new Date(), a.expires.setTime(a.expires.getTime() + n * 60 * 1e3)), r && (a.domain = r), document.cookie = An(e, encodeURIComponent(t), a);
2102
+ },
2103
+ read: function(e) {
2104
+ for (var t = "".concat(e, "="), n = document.cookie.split(";"), r = 0; r < n.length; r++) {
2105
+ for (var a = n[r]; a.charAt(0) === " "; )
2106
+ a = a.substring(1, a.length);
2107
+ if (a.indexOf(t) === 0)
2108
+ return a.substring(t.length, a.length);
2109
+ }
2110
+ return null;
2111
+ },
2112
+ remove: function(e) {
2113
+ this.create(e, "", -1);
2114
+ }
2115
+ }, Tn = {
2116
+ name: "cookie",
2117
+ lookup: function(e) {
2118
+ var t;
2119
+ if (e.lookupCookie && typeof document < "u") {
2120
+ var n = ft.read(e.lookupCookie);
2121
+ n && (t = n);
2122
+ }
2123
+ return t;
2124
+ },
2125
+ cacheUserLanguage: function(e, t) {
2126
+ t.lookupCookie && typeof document < "u" && ft.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2127
+ }
2128
+ }, Dn = {
2129
+ name: "querystring",
2130
+ lookup: function(e) {
2131
+ var t;
2132
+ if (typeof window < "u") {
2133
+ var n = window.location.search;
2134
+ !window.location.search && window.location.hash && window.location.hash.indexOf("?") > -1 && (n = window.location.hash.substring(window.location.hash.indexOf("?")));
2135
+ for (var r = n.substring(1), a = r.split("&"), o = 0; o < a.length; o++) {
2136
+ var s = a[o].indexOf("=");
2137
+ if (s > 0) {
2138
+ var u = a[o].substring(0, s);
2139
+ u === e.lookupQuerystring && (t = a[o].substring(s + 1));
2140
+ }
2141
+ }
2142
+ }
2143
+ return t;
2144
+ }
2145
+ }, ue = null, ct = function() {
2146
+ if (ue !== null)
2147
+ return ue;
2148
+ try {
2149
+ ue = window !== "undefined" && window.localStorage !== null;
2150
+ var e = "i18next.translate.boo";
2151
+ window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
2152
+ } catch {
2153
+ ue = !1;
2154
+ }
2155
+ return ue;
2156
+ }, In = {
2157
+ name: "localStorage",
2158
+ lookup: function(e) {
2159
+ var t;
2160
+ if (e.lookupLocalStorage && ct()) {
2161
+ var n = window.localStorage.getItem(e.lookupLocalStorage);
2162
+ n && (t = n);
2163
+ }
2164
+ return t;
2165
+ },
2166
+ cacheUserLanguage: function(e, t) {
2167
+ t.lookupLocalStorage && ct() && window.localStorage.setItem(t.lookupLocalStorage, e);
2168
+ }
2169
+ }, fe = null, lt = function() {
2170
+ if (fe !== null)
2171
+ return fe;
2172
+ try {
2173
+ fe = window !== "undefined" && window.sessionStorage !== null;
2174
+ var e = "i18next.translate.boo";
2175
+ window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
2176
+ } catch {
2177
+ fe = !1;
2178
+ }
2179
+ return fe;
2180
+ }, Fn = {
2181
+ name: "sessionStorage",
2182
+ lookup: function(e) {
2183
+ var t;
2184
+ if (e.lookupSessionStorage && lt()) {
2185
+ var n = window.sessionStorage.getItem(e.lookupSessionStorage);
2186
+ n && (t = n);
2187
+ }
2188
+ return t;
2189
+ },
2190
+ cacheUserLanguage: function(e, t) {
2191
+ t.lookupSessionStorage && lt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2192
+ }
2193
+ }, Un = {
2194
+ name: "navigator",
2195
+ lookup: function(e) {
2196
+ var t = [];
2197
+ if (typeof navigator < "u") {
2198
+ if (navigator.languages)
2199
+ for (var n = 0; n < navigator.languages.length; n++)
2200
+ t.push(navigator.languages[n]);
2201
+ navigator.userLanguage && t.push(navigator.userLanguage), navigator.language && t.push(navigator.language);
2202
+ }
2203
+ return t.length > 0 ? t : void 0;
2204
+ }
2205
+ }, Bn = {
2206
+ name: "htmlTag",
2207
+ lookup: function(e) {
2208
+ var t, n = e.htmlTag || (typeof document < "u" ? document.documentElement : null);
2209
+ return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
2210
+ }
2211
+ }, Hn = {
2212
+ name: "path",
2213
+ lookup: function(e) {
2214
+ var t;
2215
+ if (typeof window < "u") {
2216
+ var n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
2217
+ if (n instanceof Array)
2218
+ if (typeof e.lookupFromPathIndex == "number") {
2219
+ if (typeof n[e.lookupFromPathIndex] != "string")
2220
+ return;
2221
+ t = n[e.lookupFromPathIndex].replace("/", "");
2222
+ } else
2223
+ t = n[0].replace("/", "");
2224
+ }
2225
+ return t;
2226
+ }
2227
+ }, Mn = {
2228
+ name: "subdomain",
2229
+ lookup: function(e) {
2230
+ var t = typeof e.lookupFromSubdomainIndex == "number" ? e.lookupFromSubdomainIndex + 1 : 1, n = typeof window < "u" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
2231
+ if (n)
2232
+ return n[t];
2233
+ }
2234
+ }, At = !1;
2235
+ try {
2236
+ document.cookie, At = !0;
2237
+ } catch {
2238
+ }
2239
+ var Tt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
2240
+ At || Tt.splice(1, 1);
2241
+ function $n() {
2242
+ return {
2243
+ order: Tt,
2244
+ lookupQuerystring: "lng",
2245
+ lookupCookie: "i18next",
2246
+ lookupLocalStorage: "i18nextLng",
2247
+ lookupSessionStorage: "i18nextLng",
2248
+ // cache user language
2249
+ caches: ["localStorage"],
2250
+ excludeCacheFor: ["cimode"],
2251
+ // cookieMinutes: 10,
2252
+ // cookieDomain: 'myDomain'
2253
+ convertDetectedLanguage: function(e) {
2254
+ return e;
2255
+ }
2256
+ };
2257
+ }
2258
+ var Dt = /* @__PURE__ */ function() {
2259
+ function i(e) {
2260
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2261
+ B(this, i), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2262
+ }
2263
+ return H(i, [{
2264
+ key: "init",
2265
+ value: function(t) {
2266
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2267
+ this.services = t || {
2268
+ languageUtils: {}
2269
+ }, this.options = Nn(n, this.options || {}, $n()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(a) {
2270
+ return a.replace("-", "_");
2271
+ }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Tn), this.addDetector(Dn), this.addDetector(In), this.addDetector(Fn), this.addDetector(Un), this.addDetector(Bn), this.addDetector(Hn), this.addDetector(Mn);
2272
+ }
2273
+ }, {
2274
+ key: "addDetector",
2275
+ value: function(t) {
2276
+ return this.detectors[t.name] = t, this;
2277
+ }
2278
+ }, {
2279
+ key: "detect",
2280
+ value: function(t) {
2281
+ var n = this;
2282
+ t || (t = this.options.order);
2283
+ var r = [];
2284
+ return t.forEach(function(a) {
2285
+ if (n.detectors[a]) {
2286
+ var o = n.detectors[a].lookup(n.options);
2287
+ o && typeof o == "string" && (o = [o]), o && (r = r.concat(o));
2288
+ }
2289
+ }), r = r.map(function(a) {
2290
+ return n.options.convertDetectedLanguage(a);
2291
+ }), this.services.languageUtils.getBestMatchFromCodes ? r : r.length > 0 ? r[0] : null;
2292
+ }
2293
+ }, {
2294
+ key: "cacheUserLanguage",
2295
+ value: function(t, n) {
2296
+ var r = this;
2297
+ n || (n = this.options.caches), n && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(t) > -1 || n.forEach(function(a) {
2298
+ r.detectors[a] && r.detectors[a].cacheUserLanguage(t, r.options);
2299
+ }));
2300
+ }
2301
+ }]);
2302
+ }();
2303
+ Dt.type = "languageDetector";
2304
+ function qn() {
2043
2305
  if (console && console.warn) {
2044
- for (var i, e = arguments.length, n = new Array(e), t = 0; t < e; t++)
2045
- n[t] = arguments[t];
2046
- typeof n[0] == "string" && (n[0] = "react-i18next:: ".concat(n[0])), (i = console).warn.apply(i, n);
2306
+ for (var i, e = arguments.length, t = new Array(e), n = 0; n < e; n++)
2307
+ t[n] = arguments[n];
2308
+ typeof t[0] == "string" && (t[0] = "react-i18next:: ".concat(t[0])), (i = console).warn.apply(i, t);
2047
2309
  }
2048
2310
  }
2049
- var ot = {};
2050
- function Ee() {
2051
- for (var i = arguments.length, e = new Array(i), n = 0; n < i; n++)
2052
- e[n] = arguments[n];
2053
- typeof e[0] == "string" && ot[e[0]] || (typeof e[0] == "string" && (ot[e[0]] = /* @__PURE__ */ new Date()), On.apply(void 0, e));
2311
+ var dt = {};
2312
+ function Ne() {
2313
+ for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
2314
+ e[t] = arguments[t];
2315
+ typeof e[0] == "string" && dt[e[0]] || (typeof e[0] == "string" && (dt[e[0]] = /* @__PURE__ */ new Date()), qn.apply(void 0, e));
2054
2316
  }
2055
- var Lt = function(e, n) {
2317
+ var It = function(e, t) {
2056
2318
  return function() {
2057
2319
  if (e.isInitialized)
2058
- n();
2320
+ t();
2059
2321
  else {
2060
- var t = function r() {
2322
+ var n = function r() {
2061
2323
  setTimeout(function() {
2062
2324
  e.off("initialized", r);
2063
- }, 0), n();
2325
+ }, 0), t();
2064
2326
  };
2065
- e.on("initialized", t);
2327
+ e.on("initialized", n);
2066
2328
  }
2067
2329
  };
2068
2330
  };
2069
- function st(i, e, n) {
2070
- i.loadNamespaces(e, Lt(i, n));
2331
+ function pt(i, e, t) {
2332
+ i.loadNamespaces(e, It(i, t));
2071
2333
  }
2072
- function ut(i, e, n, t) {
2073
- typeof n == "string" && (n = [n]), n.forEach(function(r) {
2334
+ function gt(i, e, t, n) {
2335
+ typeof t == "string" && (t = [t]), t.forEach(function(r) {
2074
2336
  i.options.ns.indexOf(r) < 0 && i.options.ns.push(r);
2075
- }), i.loadLanguages(e, Lt(i, t));
2337
+ }), i.loadLanguages(e, It(i, n));
2076
2338
  }
2077
- function wn(i, e) {
2078
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t = e.languages[0], r = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
2079
- if (t.toLowerCase() === "cimode")
2339
+ function Kn(i, e) {
2340
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = e.languages[0], r = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
2341
+ if (n.toLowerCase() === "cimode")
2080
2342
  return !0;
2081
2343
  var o = function(u, d) {
2082
2344
  var c = e.services.backendConnector.state["".concat(u, "|").concat(d)];
2083
2345
  return c === -1 || c === 2;
2084
2346
  };
2085
- return n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !o(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(t, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || o(t, i) && (!r || o(a, i)));
2347
+ return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !o(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || o(n, i) && (!r || o(a, i)));
2086
2348
  }
2087
- function Sn(i, e) {
2088
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2349
+ function Vn(i, e) {
2350
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2089
2351
  if (!e.languages || !e.languages.length)
2090
- return Ee("i18n.languages were undefined or empty", e.languages), !0;
2091
- var t = e.options.ignoreJSONStructure !== void 0;
2092
- return t ? e.hasLoadedNamespace(i, {
2093
- lng: n.lng,
2352
+ return Ne("i18n.languages were undefined or empty", e.languages), !0;
2353
+ var n = e.options.ignoreJSONStructure !== void 0;
2354
+ return n ? e.hasLoadedNamespace(i, {
2355
+ lng: t.lng,
2094
2356
  precheck: function(a, o) {
2095
- if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !o(a.isLanguageChangingTo, i))
2357
+ if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !o(a.isLanguageChangingTo, i))
2096
2358
  return !1;
2097
2359
  }
2098
- }) : wn(i, e, n);
2360
+ }) : Kn(i, e, t);
2099
2361
  }
2100
- var Pn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, xn = {
2362
+ var zn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Jn = {
2101
2363
  "&amp;": "&",
2102
2364
  "&#38;": "&",
2103
2365
  "&lt;": "<",
@@ -2118,33 +2380,33 @@ var Pn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
2118
2380
  "&#8230;": "…",
2119
2381
  "&#x2F;": "/",
2120
2382
  "&#47;": "/"
2121
- }, jn = function(e) {
2122
- return xn[e];
2123
- }, Ln = function(e) {
2124
- return e.replace(Pn, jn);
2383
+ }, Xn = function(e) {
2384
+ return Jn[e];
2385
+ }, Wn = function(e) {
2386
+ return e.replace(zn, Xn);
2125
2387
  };
2126
- function ft(i, e) {
2127
- var n = Object.keys(i);
2388
+ function ht(i, e) {
2389
+ var t = Object.keys(i);
2128
2390
  if (Object.getOwnPropertySymbols) {
2129
- var t = Object.getOwnPropertySymbols(i);
2130
- e && (t = t.filter(function(r) {
2391
+ var n = Object.getOwnPropertySymbols(i);
2392
+ e && (n = n.filter(function(r) {
2131
2393
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
2132
- })), n.push.apply(n, t);
2394
+ })), t.push.apply(t, n);
2133
2395
  }
2134
- return n;
2396
+ return t;
2135
2397
  }
2136
- function ct(i) {
2398
+ function vt(i) {
2137
2399
  for (var e = 1; e < arguments.length; e++) {
2138
- var n = arguments[e] != null ? arguments[e] : {};
2139
- e % 2 ? ft(Object(n), !0).forEach(function(t) {
2140
- W(i, t, n[t]);
2141
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : ft(Object(n)).forEach(function(t) {
2142
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
2400
+ var t = arguments[e] != null ? arguments[e] : {};
2401
+ e % 2 ? ht(Object(t), !0).forEach(function(n) {
2402
+ W(i, n, t[n]);
2403
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ht(Object(t)).forEach(function(n) {
2404
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
2143
2405
  });
2144
2406
  }
2145
2407
  return i;
2146
2408
  }
2147
- var Ne = {
2409
+ var Ae = {
2148
2410
  bindI18n: "languageChanged",
2149
2411
  bindI18nStore: "",
2150
2412
  transEmptyNodeValue: "",
@@ -2152,37 +2414,37 @@ var Ne = {
2152
2414
  transWrapTextNodes: "",
2153
2415
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
2154
2416
  useSuspense: !0,
2155
- unescape: Ln
2417
+ unescape: Wn
2156
2418
  };
2157
- function Rn() {
2419
+ function Gn() {
2158
2420
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2159
- Ne = ct(ct({}, Ne), i);
2421
+ Ae = vt(vt({}, Ae), i);
2160
2422
  }
2161
- function kn() {
2162
- return Ne;
2423
+ function Qn() {
2424
+ return Ae;
2163
2425
  }
2164
- var Rt;
2165
- function _n(i) {
2166
- Rt = i;
2426
+ var Ft;
2427
+ function Yn(i) {
2428
+ Ft = i;
2167
2429
  }
2168
- function En() {
2169
- return Rt;
2430
+ function Zn() {
2431
+ return Ft;
2170
2432
  }
2171
- var Nn = {
2433
+ var er = {
2172
2434
  type: "3rdParty",
2173
2435
  init: function(e) {
2174
- Rn(e.options.react), _n(e);
2436
+ Gn(e.options.react), Yn(e);
2175
2437
  }
2176
- }, kt = $.createContext(), Cn = function() {
2438
+ }, Ut = $.createContext(), tr = function() {
2177
2439
  function i() {
2178
- U(this, i), this.usedNamespaces = {};
2440
+ B(this, i), this.usedNamespaces = {};
2179
2441
  }
2180
2442
  return H(i, [{
2181
2443
  key: "addUsedNamespaces",
2182
- value: function(n) {
2183
- var t = this;
2184
- n.forEach(function(r) {
2185
- t.usedNamespaces[r] || (t.usedNamespaces[r] = !0);
2444
+ value: function(t) {
2445
+ var n = this;
2446
+ t.forEach(function(r) {
2447
+ n.usedNamespaces[r] || (n.usedNamespaces[r] = !0);
2186
2448
  });
2187
2449
  }
2188
2450
  }, {
@@ -2192,19 +2454,19 @@ var Nn = {
2192
2454
  }
2193
2455
  }]), i;
2194
2456
  }();
2195
- function An(i, e) {
2196
- var n = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
2197
- if (n != null) {
2198
- var t, r, a, o, s = [], u = !0, d = !1;
2457
+ function nr(i, e) {
2458
+ var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
2459
+ if (t != null) {
2460
+ var n, r, a, o, s = [], u = !0, d = !1;
2199
2461
  try {
2200
- if (a = (n = n.call(i)).next, e !== 0)
2201
- for (; !(u = (t = a.call(n)).done) && (s.push(t.value), s.length !== e); u = !0)
2462
+ if (a = (t = t.call(i)).next, e !== 0)
2463
+ for (; !(u = (n = a.call(t)).done) && (s.push(n.value), s.length !== e); u = !0)
2202
2464
  ;
2203
2465
  } catch (c) {
2204
2466
  d = !0, r = c;
2205
2467
  } finally {
2206
2468
  try {
2207
- if (!u && n.return != null && (o = n.return(), Object(o) !== o))
2469
+ if (!u && t.return != null && (o = t.return(), Object(o) !== o))
2208
2470
  return;
2209
2471
  } finally {
2210
2472
  if (d)
@@ -2214,113 +2476,113 @@ function An(i, e) {
2214
2476
  return s;
2215
2477
  }
2216
2478
  }
2217
- function Tn(i, e) {
2218
- return wt(i) || An(i, e) || St(i, e) || Pt();
2479
+ function rr(i, e) {
2480
+ return Lt(i) || nr(i, e) || Rt(i, e) || Et();
2219
2481
  }
2220
- function lt(i, e) {
2221
- var n = Object.keys(i);
2482
+ function mt(i, e) {
2483
+ var t = Object.keys(i);
2222
2484
  if (Object.getOwnPropertySymbols) {
2223
- var t = Object.getOwnPropertySymbols(i);
2224
- e && (t = t.filter(function(r) {
2485
+ var n = Object.getOwnPropertySymbols(i);
2486
+ e && (n = n.filter(function(r) {
2225
2487
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
2226
- })), n.push.apply(n, t);
2488
+ })), t.push.apply(t, n);
2227
2489
  }
2228
- return n;
2490
+ return t;
2229
2491
  }
2230
- function ke(i) {
2492
+ function Ce(i) {
2231
2493
  for (var e = 1; e < arguments.length; e++) {
2232
- var n = arguments[e] != null ? arguments[e] : {};
2233
- e % 2 ? lt(Object(n), !0).forEach(function(t) {
2234
- W(i, t, n[t]);
2235
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : lt(Object(n)).forEach(function(t) {
2236
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
2494
+ var t = arguments[e] != null ? arguments[e] : {};
2495
+ e % 2 ? mt(Object(t), !0).forEach(function(n) {
2496
+ W(i, n, t[n]);
2497
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : mt(Object(t)).forEach(function(n) {
2498
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
2237
2499
  });
2238
2500
  }
2239
2501
  return i;
2240
2502
  }
2241
- var Dn = function(e, n) {
2242
- var t = $.useRef();
2503
+ var ir = function(e, t) {
2504
+ var n = $.useRef();
2243
2505
  return $.useEffect(function() {
2244
- t.current = e;
2245
- }, [e, n]), t.current;
2506
+ n.current = e;
2507
+ }, [e, t]), n.current;
2246
2508
  };
2247
- function In(i) {
2248
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.i18n, t = $.useContext(kt) || {}, r = t.i18n, a = t.defaultNS, o = n || r || En();
2249
- if (o && !o.reportNamespaces && (o.reportNamespaces = new Cn()), !o) {
2250
- Ee("You will need to pass in an i18next instance by using initReactI18next");
2251
- var s = function(k, E) {
2252
- return typeof E == "string" ? E : E && B(E) === "object" && typeof E.defaultValue == "string" ? E.defaultValue : Array.isArray(k) ? k[k.length - 1] : k;
2509
+ function ar(i) {
2510
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, n = $.useContext(Ut) || {}, r = n.i18n, a = n.defaultNS, o = t || r || Zn();
2511
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new tr()), !o) {
2512
+ Ne("You will need to pass in an i18next instance by using initReactI18next");
2513
+ var s = function(R, C) {
2514
+ return typeof C == "string" ? C : C && U(C) === "object" && typeof C.defaultValue == "string" ? C.defaultValue : Array.isArray(R) ? R[R.length - 1] : R;
2253
2515
  }, u = [s, {}, !1];
2254
2516
  return u.t = s, u.i18n = {}, u.ready = !1, u;
2255
2517
  }
2256
- o.options.react && o.options.react.wait !== void 0 && Ee("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
2257
- var d = ke(ke(ke({}, kn()), o.options.react), e), c = d.useSuspense, f = d.keyPrefix, p = a || o.options && o.options.defaultNS;
2518
+ o.options.react && o.options.react.wait !== void 0 && Ne("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
2519
+ var d = Ce(Ce(Ce({}, Qn()), o.options.react), e), c = d.useSuspense, f = d.keyPrefix, p = a || o.options && o.options.defaultNS;
2258
2520
  p = typeof p == "string" ? [p] : p || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(p);
2259
- var h = (o.isInitialized || o.initializedStoreOnce) && p.every(function(N) {
2260
- return Sn(N, o, d);
2521
+ var g = (o.isInitialized || o.initializedStoreOnce) && p.every(function(_) {
2522
+ return Vn(_, o, d);
2261
2523
  });
2262
2524
  function b() {
2263
2525
  return o.getFixedT(e.lng || null, d.nsMode === "fallback" ? p : p[0], f);
2264
2526
  }
2265
- var y = $.useState(b), O = Tn(y, 2), v = O[0], m = O[1], S = p.join();
2527
+ var y = $.useState(b), w = rr(y, 2), v = w[0], m = w[1], S = p.join();
2266
2528
  e.lng && (S = "".concat(e.lng).concat(S));
2267
- var P = Dn(S), L = $.useRef(!0);
2529
+ var x = ir(S), k = $.useRef(!0);
2268
2530
  $.useEffect(function() {
2269
- var N = d.bindI18n, k = d.bindI18nStore;
2270
- L.current = !0, !h && !c && (e.lng ? ut(o, e.lng, p, function() {
2271
- L.current && m(b);
2272
- }) : st(o, p, function() {
2273
- L.current && m(b);
2274
- })), h && P && P !== S && L.current && m(b);
2275
- function E() {
2276
- L.current && m(b);
2277
- }
2278
- return N && o && o.on(N, E), k && o && o.store.on(k, E), function() {
2279
- L.current = !1, N && o && N.split(" ").forEach(function(Q) {
2280
- return o.off(Q, E);
2281
- }), k && o && k.split(" ").forEach(function(Q) {
2282
- return o.store.off(Q, E);
2531
+ var _ = d.bindI18n, R = d.bindI18nStore;
2532
+ k.current = !0, !g && !c && (e.lng ? gt(o, e.lng, p, function() {
2533
+ k.current && m(b);
2534
+ }) : pt(o, p, function() {
2535
+ k.current && m(b);
2536
+ })), g && x && x !== S && k.current && m(b);
2537
+ function C() {
2538
+ k.current && m(b);
2539
+ }
2540
+ return _ && o && o.on(_, C), R && o && o.store.on(R, C), function() {
2541
+ k.current = !1, _ && o && _.split(" ").forEach(function(Y) {
2542
+ return o.off(Y, C);
2543
+ }), R && o && R.split(" ").forEach(function(Y) {
2544
+ return o.store.off(Y, C);
2283
2545
  });
2284
2546
  };
2285
2547
  }, [o, S]);
2286
2548
  var D = $.useRef(!0);
2287
2549
  $.useEffect(function() {
2288
- L.current && !D.current && m(b), D.current = !1;
2550
+ k.current && !D.current && m(b), D.current = !1;
2289
2551
  }, [o, f]);
2290
- var I = [v, o, h];
2291
- if (I.t = v, I.i18n = o, I.ready = h, h || !h && !c)
2552
+ var I = [v, o, g];
2553
+ if (I.t = v, I.i18n = o, I.ready = g, g || !g && !c)
2292
2554
  return I;
2293
- throw new Promise(function(N) {
2294
- e.lng ? ut(o, e.lng, p, function() {
2295
- return N();
2296
- }) : st(o, p, function() {
2297
- return N();
2555
+ throw new Promise(function(_) {
2556
+ e.lng ? gt(o, e.lng, p, function() {
2557
+ return _();
2558
+ }) : pt(o, p, function() {
2559
+ return _();
2298
2560
  });
2299
2561
  });
2300
2562
  }
2301
- function Fn(i) {
2302
- var e = i.i18n, n = i.defaultNS, t = i.children, r = $.useMemo(function() {
2563
+ function or(i) {
2564
+ var e = i.i18n, t = i.defaultNS, n = i.children, r = $.useMemo(function() {
2303
2565
  return {
2304
2566
  i18n: e,
2305
- defaultNS: n
2567
+ defaultNS: t
2306
2568
  };
2307
- }, [e, n]);
2308
- return $.createElement(kt.Provider, {
2569
+ }, [e, t]);
2570
+ return $.createElement(Ut.Provider, {
2309
2571
  value: r
2310
- }, t);
2572
+ }, n);
2311
2573
  }
2312
- var _t = [], Bn = _t.forEach, Un = _t.slice;
2313
- function Hn(i) {
2314
- return Bn.call(Un.call(arguments, 1), function(e) {
2574
+ var Bt = [], sr = Bt.forEach, ur = Bt.slice;
2575
+ function fr(i) {
2576
+ return sr.call(ur.call(arguments, 1), function(e) {
2315
2577
  if (e)
2316
- for (var n in e)
2317
- i[n] === void 0 && (i[n] = e[n]);
2578
+ for (var t in e)
2579
+ i[t] === void 0 && (i[t] = e[t]);
2318
2580
  }), i;
2319
2581
  }
2320
- function Mn(i) {
2582
+ function cr(i) {
2321
2583
  return i ? typeof i == "function" ? new i() : i : null;
2322
2584
  }
2323
- function $n() {
2585
+ function lr() {
2324
2586
  return {
2325
2587
  handleEmptyResourcesAsFailed: !0,
2326
2588
  cacheHitMode: "none"
@@ -2328,51 +2590,51 @@ function $n() {
2328
2590
  // refreshExpirationTime: 60 * 60 * 1000
2329
2591
  };
2330
2592
  }
2331
- function dt(i, e, n, t) {
2593
+ function yt(i, e, t, n) {
2332
2594
  var r = i.read.bind(i);
2333
2595
  if (r.length === 2) {
2334
2596
  try {
2335
- var a = r(e, n);
2597
+ var a = r(e, t);
2336
2598
  a && typeof a.then == "function" ? a.then(function(o) {
2337
- return t(null, o);
2338
- }).catch(t) : t(null, a);
2599
+ return n(null, o);
2600
+ }).catch(n) : n(null, a);
2339
2601
  } catch (o) {
2340
- t(o);
2602
+ n(o);
2341
2603
  }
2342
2604
  return;
2343
2605
  }
2344
- r(e, n, t);
2606
+ r(e, t, n);
2345
2607
  }
2346
- var Et = /* @__PURE__ */ function() {
2608
+ var Ht = /* @__PURE__ */ function() {
2347
2609
  function i(e) {
2348
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2349
- U(this, i), this.backends = [], this.type = "backend", this.allOptions = t, this.init(e, n);
2610
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2611
+ B(this, i), this.backends = [], this.type = "backend", this.allOptions = n, this.init(e, t);
2350
2612
  }
2351
2613
  return H(i, [{
2352
2614
  key: "init",
2353
- value: function(n) {
2354
- var t = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2355
- this.services = n, this.options = Hn(r, this.options || {}, $n()), this.allOptions = a, this.options.backends && this.options.backends.forEach(function(o, s) {
2356
- t.backends[s] = t.backends[s] || Mn(o), t.backends[s].init(n, t.options.backendOptions && t.options.backendOptions[s] || {}, a);
2615
+ value: function(t) {
2616
+ var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2617
+ this.services = t, this.options = fr(r, this.options || {}, lr()), this.allOptions = a, this.options.backends && this.options.backends.forEach(function(o, s) {
2618
+ n.backends[s] = n.backends[s] || cr(o), n.backends[s].init(t, n.options.backendOptions && n.options.backendOptions[s] || {}, a);
2357
2619
  }), this.services && this.options.reloadInterval && setInterval(function() {
2358
- return t.reload();
2620
+ return n.reload();
2359
2621
  }, this.options.reloadInterval);
2360
2622
  }
2361
2623
  }, {
2362
2624
  key: "read",
2363
- value: function(n, t, r) {
2625
+ value: function(t, n, r) {
2364
2626
  var a = this, o = this.backends.length, s = function d(c) {
2365
2627
  if (c >= o)
2366
2628
  return r(new Error("non of the backend loaded data", !0));
2367
- var f = c === o - 1, p = a.options.handleEmptyResourcesAsFailed && !f ? 0 : -1, h = a.backends[c];
2368
- h.read ? dt(h, n, t, function(b, y, O) {
2629
+ var f = c === o - 1, p = a.options.handleEmptyResourcesAsFailed && !f ? 0 : -1, g = a.backends[c];
2630
+ g.read ? yt(g, t, n, function(b, y, w) {
2369
2631
  if (!b && y && Object.keys(y).length > p) {
2370
- if (r(null, y, c), u(c - 1, y), h.save && a.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(a.options.cacheHitMode) > -1) {
2371
- if (O && a.options.refreshExpirationTime && O + a.options.refreshExpirationTime > Date.now())
2632
+ if (r(null, y, c), u(c - 1, y), g.save && a.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(a.options.cacheHitMode) > -1) {
2633
+ if (w && a.options.refreshExpirationTime && w + a.options.refreshExpirationTime > Date.now())
2372
2634
  return;
2373
2635
  var v = a.backends[c + 1];
2374
- v && v.read && dt(v, n, t, function(m, S) {
2375
- m || S && (Object.keys(S).length <= p || (u(c, S), a.options.cacheHitMode === "refreshAndUpdateStore" && a.services && a.services.resourceStore && a.services.resourceStore.addResourceBundle(n, t, S)));
2636
+ v && v.read && yt(v, t, n, function(m, S) {
2637
+ m || S && (Object.keys(S).length <= p || (u(c, S), a.options.cacheHitMode === "refreshAndUpdateStore" && a.services && a.services.resourceStore && a.services.resourceStore.addResourceBundle(t, n, S)));
2376
2638
  });
2377
2639
  }
2378
2640
  } else
@@ -2381,14 +2643,14 @@ var Et = /* @__PURE__ */ function() {
2381
2643
  }, u = function d(c, f) {
2382
2644
  if (!(c < 0)) {
2383
2645
  var p = a.backends[c];
2384
- p.save && p.save(n, t, f), d(c - 1, f);
2646
+ p.save && p.save(t, n, f), d(c - 1, f);
2385
2647
  }
2386
2648
  };
2387
2649
  s(0);
2388
2650
  }
2389
2651
  }, {
2390
2652
  key: "create",
2391
- value: function(n, t, r, a) {
2653
+ value: function(t, n, r, a) {
2392
2654
  var o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : function() {
2393
2655
  }, s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
2394
2656
  this.backends.forEach(function(u) {
@@ -2397,7 +2659,7 @@ var Et = /* @__PURE__ */ function() {
2397
2659
  if (d.length < 6) {
2398
2660
  try {
2399
2661
  var c;
2400
- d.length === 5 ? c = d(n, t, r, a, s) : c = d(n, t, r, a), c && typeof c.then == "function" ? c.then(function(f) {
2662
+ d.length === 5 ? c = d(t, n, r, a, s) : c = d(t, n, r, a), c && typeof c.then == "function" ? c.then(function(f) {
2401
2663
  return o(null, f);
2402
2664
  }).catch(o) : o(null, c);
2403
2665
  } catch (f) {
@@ -2405,27 +2667,27 @@ var Et = /* @__PURE__ */ function() {
2405
2667
  }
2406
2668
  return;
2407
2669
  }
2408
- d(n, t, r, a, o, s);
2670
+ d(t, n, r, a, o, s);
2409
2671
  }
2410
2672
  });
2411
2673
  }
2412
2674
  }, {
2413
2675
  key: "reload",
2414
2676
  value: function() {
2415
- var n = this, t = this.services, r = t.backendConnector, a = t.languageUtils, o = t.logger, s = r.language;
2677
+ var t = this, n = this.services, r = n.backendConnector, a = n.languageUtils, o = n.logger, s = r.language;
2416
2678
  if (!(s && s.toLowerCase() === "cimode")) {
2417
2679
  var u = [], d = function(f) {
2418
2680
  var p = a.toResolveHierarchy(f);
2419
- p.forEach(function(h) {
2420
- u.indexOf(h) < 0 && u.push(h);
2681
+ p.forEach(function(g) {
2682
+ u.indexOf(g) < 0 && u.push(g);
2421
2683
  });
2422
2684
  };
2423
2685
  d(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
2424
2686
  return d(c);
2425
2687
  }), u.forEach(function(c) {
2426
- n.allOptions.ns.forEach(function(f) {
2427
- r.read(c, f, "read", null, null, function(p, h) {
2428
- p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && h && o.log("loaded namespace ".concat(f, " for language ").concat(c), h), r.loaded("".concat(c, "|").concat(f), p, h);
2688
+ t.allOptions.ns.forEach(function(f) {
2689
+ r.read(c, f, "read", null, null, function(p, g) {
2690
+ p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && g && o.log("loaded namespace ".concat(f, " for language ").concat(c), g), r.loaded("".concat(c, "|").concat(f), p, g);
2429
2691
  });
2430
2692
  });
2431
2693
  });
@@ -2433,35 +2695,35 @@ var Et = /* @__PURE__ */ function() {
2433
2695
  }
2434
2696
  }]), i;
2435
2697
  }();
2436
- Et.type = "backend";
2437
- function Ce(i) {
2698
+ Ht.type = "backend";
2699
+ function Te(i) {
2438
2700
  "@babel/helpers - typeof";
2439
- return Ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2701
+ return Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2440
2702
  return typeof e;
2441
2703
  } : function(e) {
2442
2704
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2443
- }, Ce(i);
2705
+ }, Te(i);
2444
2706
  }
2445
- function Nt() {
2446
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Ce(XMLHttpRequest)) === "object";
2707
+ function Mt() {
2708
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Te(XMLHttpRequest)) === "object";
2447
2709
  }
2448
- function qn(i) {
2710
+ function dr(i) {
2449
2711
  return !!i && typeof i.then == "function";
2450
2712
  }
2451
- function Kn(i) {
2452
- return qn(i) ? i : Promise.resolve(i);
2713
+ function pr(i) {
2714
+ return dr(i) ? i : Promise.resolve(i);
2453
2715
  }
2454
- function Vn(i) {
2716
+ function gr(i) {
2455
2717
  throw new Error('Could not dynamically require "' + i + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2456
2718
  }
2457
- var Ae = { exports: {} }, he = { exports: {} }, pt;
2458
- function zn() {
2459
- return pt || (pt = 1, function(i, e) {
2460
- var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof ue < "u" && ue, t = function() {
2719
+ var De = { exports: {} }, ve = { exports: {} }, bt;
2720
+ function hr() {
2721
+ return bt || (bt = 1, function(i, e) {
2722
+ var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof ce < "u" && ce, n = function() {
2461
2723
  function a() {
2462
- this.fetch = !1, this.DOMException = n.DOMException;
2724
+ this.fetch = !1, this.DOMException = t.DOMException;
2463
2725
  }
2464
- return a.prototype = n, new a();
2726
+ return a.prototype = t, new a();
2465
2727
  }();
2466
2728
  (function(a) {
2467
2729
  (function(o) {
@@ -2500,98 +2762,98 @@ function zn() {
2500
2762
  throw new TypeError('Invalid character in header field name: "' + l + '"');
2501
2763
  return l.toLowerCase();
2502
2764
  }
2503
- function h(l) {
2765
+ function g(l) {
2504
2766
  return typeof l != "string" && (l = String(l)), l;
2505
2767
  }
2506
2768
  function b(l) {
2507
- var g = {
2769
+ var h = {
2508
2770
  next: function() {
2509
- var w = l.shift();
2510
- return { done: w === void 0, value: w };
2771
+ var O = l.shift();
2772
+ return { done: O === void 0, value: O };
2511
2773
  }
2512
2774
  };
2513
- return u.iterable && (g[Symbol.iterator] = function() {
2514
- return g;
2515
- }), g;
2775
+ return u.iterable && (h[Symbol.iterator] = function() {
2776
+ return h;
2777
+ }), h;
2516
2778
  }
2517
2779
  function y(l) {
2518
- this.map = {}, l instanceof y ? l.forEach(function(g, w) {
2519
- this.append(w, g);
2520
- }, this) : Array.isArray(l) ? l.forEach(function(g) {
2521
- this.append(g[0], g[1]);
2522
- }, this) : l && Object.getOwnPropertyNames(l).forEach(function(g) {
2523
- this.append(g, l[g]);
2780
+ this.map = {}, l instanceof y ? l.forEach(function(h, O) {
2781
+ this.append(O, h);
2782
+ }, this) : Array.isArray(l) ? l.forEach(function(h) {
2783
+ this.append(h[0], h[1]);
2784
+ }, this) : l && Object.getOwnPropertyNames(l).forEach(function(h) {
2785
+ this.append(h, l[h]);
2524
2786
  }, this);
2525
2787
  }
2526
- y.prototype.append = function(l, g) {
2527
- l = p(l), g = h(g);
2528
- var w = this.map[l];
2529
- this.map[l] = w ? w + ", " + g : g;
2788
+ y.prototype.append = function(l, h) {
2789
+ l = p(l), h = g(h);
2790
+ var O = this.map[l];
2791
+ this.map[l] = O ? O + ", " + h : h;
2530
2792
  }, y.prototype.delete = function(l) {
2531
2793
  delete this.map[p(l)];
2532
2794
  }, y.prototype.get = function(l) {
2533
2795
  return l = p(l), this.has(l) ? this.map[l] : null;
2534
2796
  }, y.prototype.has = function(l) {
2535
2797
  return this.map.hasOwnProperty(p(l));
2536
- }, y.prototype.set = function(l, g) {
2537
- this.map[p(l)] = h(g);
2538
- }, y.prototype.forEach = function(l, g) {
2539
- for (var w in this.map)
2540
- this.map.hasOwnProperty(w) && l.call(g, this.map[w], w, this);
2798
+ }, y.prototype.set = function(l, h) {
2799
+ this.map[p(l)] = g(h);
2800
+ }, y.prototype.forEach = function(l, h) {
2801
+ for (var O in this.map)
2802
+ this.map.hasOwnProperty(O) && l.call(h, this.map[O], O, this);
2541
2803
  }, y.prototype.keys = function() {
2542
2804
  var l = [];
2543
- return this.forEach(function(g, w) {
2544
- l.push(w);
2805
+ return this.forEach(function(h, O) {
2806
+ l.push(O);
2545
2807
  }), b(l);
2546
2808
  }, y.prototype.values = function() {
2547
2809
  var l = [];
2548
- return this.forEach(function(g) {
2549
- l.push(g);
2810
+ return this.forEach(function(h) {
2811
+ l.push(h);
2550
2812
  }), b(l);
2551
2813
  }, y.prototype.entries = function() {
2552
2814
  var l = [];
2553
- return this.forEach(function(g, w) {
2554
- l.push([w, g]);
2815
+ return this.forEach(function(h, O) {
2816
+ l.push([O, h]);
2555
2817
  }), b(l);
2556
2818
  }, u.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
2557
- function O(l) {
2819
+ function w(l) {
2558
2820
  if (l.bodyUsed)
2559
2821
  return Promise.reject(new TypeError("Already read"));
2560
2822
  l.bodyUsed = !0;
2561
2823
  }
2562
2824
  function v(l) {
2563
- return new Promise(function(g, w) {
2825
+ return new Promise(function(h, O) {
2564
2826
  l.onload = function() {
2565
- g(l.result);
2827
+ h(l.result);
2566
2828
  }, l.onerror = function() {
2567
- w(l.error);
2829
+ O(l.error);
2568
2830
  };
2569
2831
  });
2570
2832
  }
2571
2833
  function m(l) {
2572
- var g = new FileReader(), w = v(g);
2573
- return g.readAsArrayBuffer(l), w;
2834
+ var h = new FileReader(), O = v(h);
2835
+ return h.readAsArrayBuffer(l), O;
2574
2836
  }
2575
2837
  function S(l) {
2576
- var g = new FileReader(), w = v(g);
2577
- return g.readAsText(l), w;
2838
+ var h = new FileReader(), O = v(h);
2839
+ return h.readAsText(l), O;
2578
2840
  }
2579
- function P(l) {
2580
- for (var g = new Uint8Array(l), w = new Array(g.length), j = 0; j < g.length; j++)
2581
- w[j] = String.fromCharCode(g[j]);
2582
- return w.join("");
2841
+ function x(l) {
2842
+ for (var h = new Uint8Array(l), O = new Array(h.length), j = 0; j < h.length; j++)
2843
+ O[j] = String.fromCharCode(h[j]);
2844
+ return O.join("");
2583
2845
  }
2584
- function L(l) {
2846
+ function k(l) {
2585
2847
  if (l.slice)
2586
2848
  return l.slice(0);
2587
- var g = new Uint8Array(l.byteLength);
2588
- return g.set(new Uint8Array(l)), g.buffer;
2849
+ var h = new Uint8Array(l.byteLength);
2850
+ return h.set(new Uint8Array(l)), h.buffer;
2589
2851
  }
2590
2852
  function D() {
2591
2853
  return this.bodyUsed = !1, this._initBody = function(l) {
2592
- this.bodyUsed = this.bodyUsed, this._bodyInit = l, l ? typeof l == "string" ? this._bodyText = l : u.blob && Blob.prototype.isPrototypeOf(l) ? this._bodyBlob = l : u.formData && FormData.prototype.isPrototypeOf(l) ? this._bodyFormData = l : u.searchParams && URLSearchParams.prototype.isPrototypeOf(l) ? this._bodyText = l.toString() : u.arrayBuffer && u.blob && d(l) ? (this._bodyArrayBuffer = L(l.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : u.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(l) || f(l)) ? this._bodyArrayBuffer = L(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) : u.searchParams && URLSearchParams.prototype.isPrototypeOf(l) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2854
+ this.bodyUsed = this.bodyUsed, this._bodyInit = l, l ? typeof l == "string" ? this._bodyText = l : u.blob && Blob.prototype.isPrototypeOf(l) ? this._bodyBlob = l : u.formData && FormData.prototype.isPrototypeOf(l) ? this._bodyFormData = l : u.searchParams && URLSearchParams.prototype.isPrototypeOf(l) ? this._bodyText = l.toString() : u.arrayBuffer && u.blob && d(l) ? (this._bodyArrayBuffer = k(l.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : u.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(l) || f(l)) ? this._bodyArrayBuffer = k(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) : u.searchParams && URLSearchParams.prototype.isPrototypeOf(l) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2593
2855
  }, u.blob && (this.blob = function() {
2594
- var l = O(this);
2856
+ var l = w(this);
2595
2857
  if (l)
2596
2858
  return l;
2597
2859
  if (this._bodyBlob)
@@ -2603,7 +2865,7 @@ function zn() {
2603
2865
  return Promise.resolve(new Blob([this._bodyText]));
2604
2866
  }, this.arrayBuffer = function() {
2605
2867
  if (this._bodyArrayBuffer) {
2606
- var l = O(this);
2868
+ var l = w(this);
2607
2869
  return l || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
2608
2870
  this._bodyArrayBuffer.buffer.slice(
2609
2871
  this._bodyArrayBuffer.byteOffset,
@@ -2613,80 +2875,80 @@ function zn() {
2613
2875
  } else
2614
2876
  return this.blob().then(m);
2615
2877
  }), this.text = function() {
2616
- var l = O(this);
2878
+ var l = w(this);
2617
2879
  if (l)
2618
2880
  return l;
2619
2881
  if (this._bodyBlob)
2620
2882
  return S(this._bodyBlob);
2621
2883
  if (this._bodyArrayBuffer)
2622
- return Promise.resolve(P(this._bodyArrayBuffer));
2884
+ return Promise.resolve(x(this._bodyArrayBuffer));
2623
2885
  if (this._bodyFormData)
2624
2886
  throw new Error("could not read FormData body as text");
2625
2887
  return Promise.resolve(this._bodyText);
2626
2888
  }, u.formData && (this.formData = function() {
2627
- return this.text().then(E);
2889
+ return this.text().then(C);
2628
2890
  }), this.json = function() {
2629
2891
  return this.text().then(JSON.parse);
2630
2892
  }, this;
2631
2893
  }
2632
2894
  var I = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
2633
- function N(l) {
2634
- var g = l.toUpperCase();
2635
- return I.indexOf(g) > -1 ? g : l;
2895
+ function _(l) {
2896
+ var h = l.toUpperCase();
2897
+ return I.indexOf(h) > -1 ? h : l;
2636
2898
  }
2637
- function k(l, g) {
2638
- if (!(this instanceof k))
2899
+ function R(l, h) {
2900
+ if (!(this instanceof R))
2639
2901
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2640
- g = g || {};
2641
- var w = g.body;
2642
- if (l instanceof k) {
2902
+ h = h || {};
2903
+ var O = h.body;
2904
+ if (l instanceof R) {
2643
2905
  if (l.bodyUsed)
2644
2906
  throw new TypeError("Already read");
2645
- this.url = l.url, this.credentials = l.credentials, g.headers || (this.headers = new y(l.headers)), this.method = l.method, this.mode = l.mode, this.signal = l.signal, !w && l._bodyInit != null && (w = l._bodyInit, l.bodyUsed = !0);
2907
+ this.url = l.url, this.credentials = l.credentials, h.headers || (this.headers = new y(l.headers)), this.method = l.method, this.mode = l.mode, this.signal = l.signal, !O && l._bodyInit != null && (O = l._bodyInit, l.bodyUsed = !0);
2646
2908
  } else
2647
2909
  this.url = String(l);
2648
- if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new y(g.headers)), this.method = N(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") && w)
2910
+ if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new y(h.headers)), this.method = _(h.method || this.method || "GET"), this.mode = h.mode || this.mode || null, this.signal = h.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && O)
2649
2911
  throw new TypeError("Body not allowed for GET or HEAD requests");
2650
- if (this._initBody(w), (this.method === "GET" || this.method === "HEAD") && (g.cache === "no-store" || g.cache === "no-cache")) {
2912
+ if (this._initBody(O), (this.method === "GET" || this.method === "HEAD") && (h.cache === "no-store" || h.cache === "no-cache")) {
2651
2913
  var j = /([?&])_=[^&]*/;
2652
2914
  if (j.test(this.url))
2653
2915
  this.url = this.url.replace(j, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
2654
2916
  else {
2655
- var R = /\?/;
2656
- this.url += (R.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
2917
+ var L = /\?/;
2918
+ this.url += (L.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
2657
2919
  }
2658
2920
  }
2659
2921
  }
2660
- k.prototype.clone = function() {
2661
- return new k(this, { body: this._bodyInit });
2922
+ R.prototype.clone = function() {
2923
+ return new R(this, { body: this._bodyInit });
2662
2924
  };
2663
- function E(l) {
2664
- var g = new FormData();
2665
- return l.trim().split("&").forEach(function(w) {
2666
- if (w) {
2667
- var j = w.split("="), R = j.shift().replace(/\+/g, " "), x = j.join("=").replace(/\+/g, " ");
2668
- g.append(decodeURIComponent(R), decodeURIComponent(x));
2925
+ function C(l) {
2926
+ var h = new FormData();
2927
+ return l.trim().split("&").forEach(function(O) {
2928
+ if (O) {
2929
+ var j = O.split("="), L = j.shift().replace(/\+/g, " "), P = j.join("=").replace(/\+/g, " ");
2930
+ h.append(decodeURIComponent(L), decodeURIComponent(P));
2669
2931
  }
2670
- }), g;
2932
+ }), h;
2671
2933
  }
2672
- function Q(l) {
2673
- var g = new y(), w = l.replace(/\r?\n[\t ]+/g, " ");
2674
- return w.split("\r").map(function(j) {
2934
+ function Y(l) {
2935
+ var h = new y(), O = l.replace(/\r?\n[\t ]+/g, " ");
2936
+ return O.split("\r").map(function(j) {
2675
2937
  return j.indexOf(`
2676
2938
  `) === 0 ? j.substr(1, j.length) : j;
2677
2939
  }).forEach(function(j) {
2678
- var R = j.split(":"), x = R.shift().trim();
2679
- if (x) {
2680
- var K = R.join(":").trim();
2681
- g.append(x, K);
2940
+ var L = j.split(":"), P = L.shift().trim();
2941
+ if (P) {
2942
+ var K = L.join(":").trim();
2943
+ h.append(P, K);
2682
2944
  }
2683
- }), g;
2945
+ }), h;
2684
2946
  }
2685
- D.call(k.prototype);
2686
- function A(l, g) {
2947
+ D.call(R.prototype);
2948
+ function A(l, h) {
2687
2949
  if (!(this instanceof A))
2688
2950
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2689
- g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = g.statusText === void 0 ? "" : "" + g.statusText, this.headers = new y(g.headers), this.url = g.url || "", this._initBody(l);
2951
+ h || (h = {}), this.type = "default", this.status = h.status === void 0 ? 200 : h.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = h.statusText === void 0 ? "" : "" + h.statusText, this.headers = new y(h.headers), this.url = h.url || "", this._initBody(l);
2690
2952
  }
2691
2953
  D.call(A.prototype), A.prototype.clone = function() {
2692
2954
  return new A(this._bodyInit, {
@@ -2699,125 +2961,125 @@ function zn() {
2699
2961
  var l = new A(null, { status: 0, statusText: "" });
2700
2962
  return l.type = "error", l;
2701
2963
  };
2702
- var Se = [301, 302, 303, 307, 308];
2703
- A.redirect = function(l, g) {
2704
- if (Se.indexOf(g) === -1)
2964
+ var Pe = [301, 302, 303, 307, 308];
2965
+ A.redirect = function(l, h) {
2966
+ if (Pe.indexOf(h) === -1)
2705
2967
  throw new RangeError("Invalid status code");
2706
- return new A(null, { status: g, headers: { location: l } });
2968
+ return new A(null, { status: h, headers: { location: l } });
2707
2969
  }, o.DOMException = s.DOMException;
2708
2970
  try {
2709
2971
  new o.DOMException();
2710
2972
  } catch {
2711
- o.DOMException = function(g, w) {
2712
- this.message = g, this.name = w;
2713
- var j = Error(g);
2973
+ o.DOMException = function(h, O) {
2974
+ this.message = h, this.name = O;
2975
+ var j = Error(h);
2714
2976
  this.stack = j.stack;
2715
2977
  }, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
2716
2978
  }
2717
- function q(l, g) {
2718
- return new Promise(function(w, j) {
2719
- var R = new k(l, g);
2720
- if (R.signal && R.signal.aborted)
2979
+ function q(l, h) {
2980
+ return new Promise(function(O, j) {
2981
+ var L = new R(l, h);
2982
+ if (L.signal && L.signal.aborted)
2721
2983
  return j(new o.DOMException("Aborted", "AbortError"));
2722
- var x = new XMLHttpRequest();
2984
+ var P = new XMLHttpRequest();
2723
2985
  function K() {
2724
- x.abort();
2986
+ P.abort();
2725
2987
  }
2726
- x.onload = function() {
2988
+ P.onload = function() {
2727
2989
  var F = {
2728
- status: x.status,
2729
- statusText: x.statusText,
2730
- headers: Q(x.getAllResponseHeaders() || "")
2990
+ status: P.status,
2991
+ statusText: P.statusText,
2992
+ headers: Y(P.getAllResponseHeaders() || "")
2731
2993
  };
2732
- F.url = "responseURL" in x ? x.responseURL : F.headers.get("X-Request-URL");
2733
- var V = "response" in x ? x.response : x.responseText;
2994
+ F.url = "responseURL" in P ? P.responseURL : F.headers.get("X-Request-URL");
2995
+ var V = "response" in P ? P.response : P.responseText;
2734
2996
  setTimeout(function() {
2735
- w(new A(V, F));
2997
+ O(new A(V, F));
2736
2998
  }, 0);
2737
- }, x.onerror = function() {
2999
+ }, P.onerror = function() {
2738
3000
  setTimeout(function() {
2739
3001
  j(new TypeError("Network request failed"));
2740
3002
  }, 0);
2741
- }, x.ontimeout = function() {
3003
+ }, P.ontimeout = function() {
2742
3004
  setTimeout(function() {
2743
3005
  j(new TypeError("Network request failed"));
2744
3006
  }, 0);
2745
- }, x.onabort = function() {
3007
+ }, P.onabort = function() {
2746
3008
  setTimeout(function() {
2747
3009
  j(new o.DOMException("Aborted", "AbortError"));
2748
3010
  }, 0);
2749
3011
  };
2750
- function Pe(F) {
3012
+ function je(F) {
2751
3013
  try {
2752
3014
  return F === "" && s.location.href ? s.location.href : F;
2753
3015
  } catch {
2754
3016
  return F;
2755
3017
  }
2756
3018
  }
2757
- x.open(R.method, Pe(R.url), !0), R.credentials === "include" ? x.withCredentials = !0 : R.credentials === "omit" && (x.withCredentials = !1), "responseType" in x && (u.blob ? x.responseType = "blob" : u.arrayBuffer && R.headers.get("Content-Type") && R.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (x.responseType = "arraybuffer")), g && typeof g.headers == "object" && !(g.headers instanceof y) ? Object.getOwnPropertyNames(g.headers).forEach(function(F) {
2758
- x.setRequestHeader(F, h(g.headers[F]));
2759
- }) : R.headers.forEach(function(F, V) {
2760
- x.setRequestHeader(V, F);
2761
- }), R.signal && (R.signal.addEventListener("abort", K), x.onreadystatechange = function() {
2762
- x.readyState === 4 && R.signal.removeEventListener("abort", K);
2763
- }), x.send(typeof R._bodyInit > "u" ? null : R._bodyInit);
3019
+ P.open(L.method, je(L.url), !0), L.credentials === "include" ? P.withCredentials = !0 : L.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && (u.blob ? P.responseType = "blob" : u.arrayBuffer && L.headers.get("Content-Type") && L.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (P.responseType = "arraybuffer")), h && typeof h.headers == "object" && !(h.headers instanceof y) ? Object.getOwnPropertyNames(h.headers).forEach(function(F) {
3020
+ P.setRequestHeader(F, g(h.headers[F]));
3021
+ }) : L.headers.forEach(function(F, V) {
3022
+ P.setRequestHeader(V, F);
3023
+ }), L.signal && (L.signal.addEventListener("abort", K), P.onreadystatechange = function() {
3024
+ P.readyState === 4 && L.signal.removeEventListener("abort", K);
3025
+ }), P.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
2764
3026
  });
2765
3027
  }
2766
- return q.polyfill = !0, s.fetch || (s.fetch = q, s.Headers = y, s.Request = k, s.Response = A), o.Headers = y, o.Request = k, o.Response = A, o.fetch = q, o;
3028
+ return q.polyfill = !0, s.fetch || (s.fetch = q, s.Headers = y, s.Request = R, s.Response = A), o.Headers = y, o.Request = R, o.Response = A, o.fetch = q, o;
2767
3029
  })({});
2768
- })(t), t.fetch.ponyfill = !0, delete t.fetch.polyfill;
2769
- var r = n.fetch ? n : t;
3030
+ })(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
3031
+ var r = t.fetch ? t : n;
2770
3032
  e = r.fetch, e.default = r.fetch, e.fetch = r.fetch, e.Headers = r.Headers, e.Request = r.Request, e.Response = r.Response, i.exports = e;
2771
- }(he, he.exports)), he.exports;
3033
+ }(ve, ve.exports)), ve.exports;
2772
3034
  }
2773
3035
  (function(i, e) {
2774
- var n;
2775
- if (typeof fetch == "function" && (typeof ue < "u" && ue.fetch ? n = ue.fetch : typeof window < "u" && window.fetch ? n = window.fetch : n = fetch), typeof Vn < "u" && typeof window > "u") {
2776
- var t = n || zn();
2777
- t.default && (t = t.default), e.default = t, i.exports = e.default;
2778
- }
2779
- })(Ae, Ae.exports);
2780
- var Ct = Ae.exports;
2781
- const At = /* @__PURE__ */ Ft(Ct), ht = /* @__PURE__ */ Ht({
3036
+ var t;
3037
+ if (typeof fetch == "function" && (typeof ce < "u" && ce.fetch ? t = ce.fetch : typeof window < "u" && window.fetch ? t = window.fetch : t = fetch), typeof gr < "u" && typeof window > "u") {
3038
+ var n = t || hr();
3039
+ n.default && (n = n.default), e.default = n, i.exports = e.default;
3040
+ }
3041
+ })(De, De.exports);
3042
+ var $t = De.exports;
3043
+ const qt = /* @__PURE__ */ Jt($t), wt = /* @__PURE__ */ Gt({
2782
3044
  __proto__: null,
2783
- default: At
2784
- }, [Ct]);
2785
- function gt(i, e) {
2786
- var n = Object.keys(i);
3045
+ default: qt
3046
+ }, [$t]);
3047
+ function Ot(i, e) {
3048
+ var t = Object.keys(i);
2787
3049
  if (Object.getOwnPropertySymbols) {
2788
- var t = Object.getOwnPropertySymbols(i);
2789
- e && (t = t.filter(function(r) {
3050
+ var n = Object.getOwnPropertySymbols(i);
3051
+ e && (n = n.filter(function(r) {
2790
3052
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
2791
- })), n.push.apply(n, t);
3053
+ })), t.push.apply(t, n);
2792
3054
  }
2793
- return n;
3055
+ return t;
2794
3056
  }
2795
- function vt(i) {
3057
+ function St(i) {
2796
3058
  for (var e = 1; e < arguments.length; e++) {
2797
- var n = arguments[e] != null ? arguments[e] : {};
2798
- e % 2 ? gt(Object(n), !0).forEach(function(t) {
2799
- Jn(i, t, n[t]);
2800
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : gt(Object(n)).forEach(function(t) {
2801
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
3059
+ var t = arguments[e] != null ? arguments[e] : {};
3060
+ e % 2 ? Ot(Object(t), !0).forEach(function(n) {
3061
+ vr(i, n, t[n]);
3062
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ot(Object(t)).forEach(function(n) {
3063
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
2802
3064
  });
2803
3065
  }
2804
3066
  return i;
2805
3067
  }
2806
- function Jn(i, e, n) {
2807
- return (e = Xn(e)) in i ? Object.defineProperty(i, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = n, i;
3068
+ function vr(i, e, t) {
3069
+ return (e = mr(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
2808
3070
  }
2809
- function Xn(i) {
2810
- var e = Wn(i, "string");
3071
+ function mr(i) {
3072
+ var e = yr(i, "string");
2811
3073
  return te(e) == "symbol" ? e : e + "";
2812
3074
  }
2813
- function Wn(i, e) {
3075
+ function yr(i, e) {
2814
3076
  if (te(i) != "object" || !i)
2815
3077
  return i;
2816
- var n = i[Symbol.toPrimitive];
2817
- if (n !== void 0) {
2818
- var t = n.call(i, e);
2819
- if (te(t) != "object")
2820
- return t;
3078
+ var t = i[Symbol.toPrimitive];
3079
+ if (t !== void 0) {
3080
+ var n = t.call(i, e);
3081
+ if (te(n) != "object")
3082
+ return n;
2821
3083
  throw new TypeError("@@toPrimitive must return a primitive value.");
2822
3084
  }
2823
3085
  return (e === "string" ? String : Number)(i);
@@ -2830,72 +3092,72 @@ function te(i) {
2830
3092
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2831
3093
  }, te(i);
2832
3094
  }
2833
- var Y;
2834
- typeof fetch == "function" && (typeof global < "u" && global.fetch ? Y = global.fetch : typeof window < "u" && window.fetch ? Y = window.fetch : Y = fetch);
2835
- var fe;
2836
- Nt() && (typeof global < "u" && global.XMLHttpRequest ? fe = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (fe = window.XMLHttpRequest));
2837
- var be;
2838
- typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? be = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (be = window.ActiveXObject));
2839
- !Y && ht && !fe && !be && (Y = At || ht);
2840
- typeof Y != "function" && (Y = void 0);
2841
- var Te = function(e, n) {
2842
- if (n && te(n) === "object") {
2843
- var t = "";
2844
- for (var r in n)
2845
- t += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(n[r]);
2846
- if (!t)
3095
+ var Q;
3096
+ typeof fetch == "function" && (typeof global < "u" && global.fetch ? Q = global.fetch : typeof window < "u" && window.fetch ? Q = window.fetch : Q = fetch);
3097
+ var le;
3098
+ Mt() && (typeof global < "u" && global.XMLHttpRequest ? le = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (le = window.XMLHttpRequest));
3099
+ var Oe;
3100
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? Oe = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (Oe = window.ActiveXObject));
3101
+ !Q && wt && !le && !Oe && (Q = qt || wt);
3102
+ typeof Q != "function" && (Q = void 0);
3103
+ var Ie = function(e, t) {
3104
+ if (t && te(t) === "object") {
3105
+ var n = "";
3106
+ for (var r in t)
3107
+ n += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(t[r]);
3108
+ if (!n)
2847
3109
  return e;
2848
- e = e + (e.indexOf("?") !== -1 ? "&" : "?") + t.slice(1);
3110
+ e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
2849
3111
  }
2850
3112
  return e;
2851
- }, mt = function(e, n, t, r) {
3113
+ }, xt = function(e, t, n, r) {
2852
3114
  var a = function(u) {
2853
3115
  if (!u.ok)
2854
- return t(u.statusText || "Error", {
3116
+ return n(u.statusText || "Error", {
2855
3117
  status: u.status
2856
3118
  });
2857
3119
  u.text().then(function(d) {
2858
- t(null, {
3120
+ n(null, {
2859
3121
  status: u.status,
2860
3122
  data: d
2861
3123
  });
2862
- }).catch(t);
3124
+ }).catch(n);
2863
3125
  };
2864
3126
  if (r) {
2865
- var o = r(e, n);
3127
+ var o = r(e, t);
2866
3128
  if (o instanceof Promise) {
2867
- o.then(a).catch(t);
3129
+ o.then(a).catch(n);
2868
3130
  return;
2869
3131
  }
2870
3132
  }
2871
- typeof fetch == "function" ? fetch(e, n).then(a).catch(t) : Y(e, n).then(a).catch(t);
2872
- }, yt = !1, Gn = function(e, n, t, r) {
2873
- e.queryStringParams && (n = Te(n, e.queryStringParams));
2874
- var a = vt({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
2875
- typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (a["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), t && (a["Content-Type"] = "application/json");
2876
- var o = typeof e.requestOptions == "function" ? e.requestOptions(t) : e.requestOptions, s = vt({
2877
- method: t ? "POST" : "GET",
2878
- body: t ? e.stringify(t) : void 0,
3133
+ typeof fetch == "function" ? fetch(e, t).then(a).catch(n) : Q(e, t).then(a).catch(n);
3134
+ }, Pt = !1, br = function(e, t, n, r) {
3135
+ e.queryStringParams && (t = Ie(t, e.queryStringParams));
3136
+ var a = St({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
3137
+ typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (a["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (a["Content-Type"] = "application/json");
3138
+ var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s = St({
3139
+ method: n ? "POST" : "GET",
3140
+ body: n ? e.stringify(n) : void 0,
2879
3141
  headers: a
2880
- }, yt ? {} : o), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
3142
+ }, Pt ? {} : o), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
2881
3143
  try {
2882
- mt(n, s, r, u);
3144
+ xt(t, s, r, u);
2883
3145
  } catch (d) {
2884
3146
  if (!o || Object.keys(o).length === 0 || !d.message || d.message.indexOf("not implemented") < 0)
2885
3147
  return r(d);
2886
3148
  try {
2887
3149
  Object.keys(o).forEach(function(c) {
2888
3150
  delete s[c];
2889
- }), mt(n, s, r, u), yt = !0;
3151
+ }), xt(t, s, r, u), Pt = !0;
2890
3152
  } catch (c) {
2891
3153
  r(c);
2892
3154
  }
2893
3155
  }
2894
- }, Yn = function(e, n, t, r) {
2895
- t && te(t) === "object" && (t = Te("", t).slice(1)), e.queryStringParams && (n = Te(n, e.queryStringParams));
3156
+ }, wr = function(e, t, n, r) {
3157
+ n && te(n) === "object" && (n = Ie("", n).slice(1)), e.queryStringParams && (t = Ie(t, e.queryStringParams));
2896
3158
  try {
2897
3159
  var a;
2898
- fe ? a = new fe() : a = new be("MSXML2.XMLHTTP.3.0"), a.open(t ? "POST" : "GET", n, 1), e.crossDomain || a.setRequestHeader("X-Requested-With", "XMLHttpRequest"), a.withCredentials = !!e.withCredentials, t && a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), a.overrideMimeType && a.overrideMimeType("application/json");
3160
+ le ? a = new le() : a = new Oe("MSXML2.XMLHTTP.3.0"), a.open(n ? "POST" : "GET", t, 1), e.crossDomain || a.setRequestHeader("X-Requested-With", "XMLHttpRequest"), a.withCredentials = !!e.withCredentials, n && a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), a.overrideMimeType && a.overrideMimeType("application/json");
2899
3161
  var o = e.customHeaders;
2900
3162
  if (o = typeof o == "function" ? o() : o, o)
2901
3163
  for (var s in o)
@@ -2905,16 +3167,16 @@ var Te = function(e, n) {
2905
3167
  status: a.status,
2906
3168
  data: a.responseText
2907
3169
  });
2908
- }, a.send(t);
3170
+ }, a.send(n);
2909
3171
  } catch (u) {
2910
3172
  console && console.log(u);
2911
3173
  }
2912
- }, Qn = function(e, n, t, r) {
2913
- if (typeof t == "function" && (r = t, t = void 0), r = r || function() {
2914
- }, Y && n.indexOf("file:") !== 0)
2915
- return Gn(e, n, t, r);
2916
- if (Nt() || typeof ActiveXObject == "function")
2917
- return Yn(e, n, t, r);
3174
+ }, Or = function(e, t, n, r) {
3175
+ if (typeof n == "function" && (r = n, n = void 0), r = r || function() {
3176
+ }, Q && t.indexOf("file:") !== 0)
3177
+ return br(e, t, n, r);
3178
+ if (Mt() || typeof ActiveXObject == "function")
3179
+ return wr(e, t, n, r);
2918
3180
  r(new Error("No fetch and no xhr implementation found!"));
2919
3181
  };
2920
3182
  function ae(i) {
@@ -2925,73 +3187,73 @@ function ae(i) {
2925
3187
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2926
3188
  }, ae(i);
2927
3189
  }
2928
- function bt(i, e) {
2929
- var n = Object.keys(i);
3190
+ function jt(i, e) {
3191
+ var t = Object.keys(i);
2930
3192
  if (Object.getOwnPropertySymbols) {
2931
- var t = Object.getOwnPropertySymbols(i);
2932
- e && (t = t.filter(function(r) {
3193
+ var n = Object.getOwnPropertySymbols(i);
3194
+ e && (n = n.filter(function(r) {
2933
3195
  return Object.getOwnPropertyDescriptor(i, r).enumerable;
2934
- })), n.push.apply(n, t);
3196
+ })), t.push.apply(t, n);
2935
3197
  }
2936
- return n;
3198
+ return t;
2937
3199
  }
2938
3200
  function _e(i) {
2939
3201
  for (var e = 1; e < arguments.length; e++) {
2940
- var n = arguments[e] != null ? arguments[e] : {};
2941
- e % 2 ? bt(Object(n), !0).forEach(function(t) {
2942
- Tt(i, t, n[t]);
2943
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(n)) : bt(Object(n)).forEach(function(t) {
2944
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(n, t));
3202
+ var t = arguments[e] != null ? arguments[e] : {};
3203
+ e % 2 ? jt(Object(t), !0).forEach(function(n) {
3204
+ Kt(i, n, t[n]);
3205
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : jt(Object(t)).forEach(function(n) {
3206
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
2945
3207
  });
2946
3208
  }
2947
3209
  return i;
2948
3210
  }
2949
- function Zn(i, e) {
3211
+ function Sr(i, e) {
2950
3212
  if (!(i instanceof e))
2951
3213
  throw new TypeError("Cannot call a class as a function");
2952
3214
  }
2953
- function er(i, e) {
2954
- for (var n = 0; n < e.length; n++) {
2955
- var t = e[n];
2956
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(i, Dt(t.key), t);
3215
+ function xr(i, e) {
3216
+ for (var t = 0; t < e.length; t++) {
3217
+ var n = e[t];
3218
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, Vt(n.key), n);
2957
3219
  }
2958
3220
  }
2959
- function tr(i, e, n) {
2960
- return e && er(i.prototype, e), Object.defineProperty(i, "prototype", { writable: !1 }), i;
3221
+ function Pr(i, e, t) {
3222
+ return e && xr(i.prototype, e), Object.defineProperty(i, "prototype", { writable: !1 }), i;
2961
3223
  }
2962
- function Tt(i, e, n) {
2963
- return (e = Dt(e)) in i ? Object.defineProperty(i, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = n, i;
3224
+ function Kt(i, e, t) {
3225
+ return (e = Vt(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
2964
3226
  }
2965
- function Dt(i) {
2966
- var e = nr(i, "string");
3227
+ function Vt(i) {
3228
+ var e = jr(i, "string");
2967
3229
  return ae(e) == "symbol" ? e : e + "";
2968
3230
  }
2969
- function nr(i, e) {
3231
+ function jr(i, e) {
2970
3232
  if (ae(i) != "object" || !i)
2971
3233
  return i;
2972
- var n = i[Symbol.toPrimitive];
2973
- if (n !== void 0) {
2974
- var t = n.call(i, e);
2975
- if (ae(t) != "object")
2976
- return t;
3234
+ var t = i[Symbol.toPrimitive];
3235
+ if (t !== void 0) {
3236
+ var n = t.call(i, e);
3237
+ if (ae(n) != "object")
3238
+ return n;
2977
3239
  throw new TypeError("@@toPrimitive must return a primitive value.");
2978
3240
  }
2979
3241
  return String(i);
2980
3242
  }
2981
- var rr = function() {
3243
+ var kr = function() {
2982
3244
  return {
2983
3245
  loadPath: "/locales/{{lng}}/{{ns}}.json",
2984
3246
  addPath: "/locales/add/{{lng}}/{{ns}}",
2985
- parse: function(n) {
2986
- return JSON.parse(n);
3247
+ parse: function(t) {
3248
+ return JSON.parse(t);
2987
3249
  },
2988
3250
  stringify: JSON.stringify,
2989
- parsePayload: function(n, t, r) {
2990
- return Tt({}, t, r || "");
3251
+ parsePayload: function(t, n, r) {
3252
+ return Kt({}, n, r || "");
2991
3253
  },
2992
- parseLoadPayload: function(n, t) {
3254
+ parseLoadPayload: function(t, n) {
2993
3255
  },
2994
- request: Qn,
3256
+ request: Or,
2995
3257
  reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
2996
3258
  customHeaders: {},
2997
3259
  queryStringParams: {},
@@ -3004,91 +3266,91 @@ var rr = function() {
3004
3266
  cache: "default"
3005
3267
  }
3006
3268
  };
3007
- }, It = function() {
3269
+ }, zt = function() {
3008
3270
  function i(e) {
3009
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3010
- Zn(this, i), this.services = e, this.options = n, this.allOptions = t, this.type = "backend", this.init(e, n, t);
3271
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3272
+ Sr(this, i), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
3011
3273
  }
3012
- return tr(i, [{
3274
+ return Pr(i, [{
3013
3275
  key: "init",
3014
- value: function(n) {
3015
- var t = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3016
- if (this.services = n, this.options = _e(_e(_e({}, rr()), this.options || {}), r), this.allOptions = a, this.services && this.options.reloadInterval) {
3276
+ value: function(t) {
3277
+ var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3278
+ if (this.services = t, this.options = _e(_e(_e({}, kr()), this.options || {}), r), this.allOptions = a, this.services && this.options.reloadInterval) {
3017
3279
  var o = setInterval(function() {
3018
- return t.reload();
3280
+ return n.reload();
3019
3281
  }, this.options.reloadInterval);
3020
3282
  ae(o) === "object" && typeof o.unref == "function" && o.unref();
3021
3283
  }
3022
3284
  }
3023
3285
  }, {
3024
3286
  key: "readMulti",
3025
- value: function(n, t, r) {
3026
- this._readAny(n, n, t, t, r);
3287
+ value: function(t, n, r) {
3288
+ this._readAny(t, t, n, n, r);
3027
3289
  }
3028
3290
  }, {
3029
3291
  key: "read",
3030
- value: function(n, t, r) {
3031
- this._readAny([n], n, [t], t, r);
3292
+ value: function(t, n, r) {
3293
+ this._readAny([t], t, [n], n, r);
3032
3294
  }
3033
3295
  }, {
3034
3296
  key: "_readAny",
3035
- value: function(n, t, r, a, o) {
3297
+ value: function(t, n, r, a, o) {
3036
3298
  var s = this, u = this.options.loadPath;
3037
- typeof this.options.loadPath == "function" && (u = this.options.loadPath(n, r)), u = Kn(u), u.then(function(d) {
3299
+ typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, r)), u = pr(u), u.then(function(d) {
3038
3300
  if (!d)
3039
3301
  return o(null, {});
3040
3302
  var c = s.services.interpolator.interpolate(d, {
3041
- lng: n.join("+"),
3303
+ lng: t.join("+"),
3042
3304
  ns: r.join("+")
3043
3305
  });
3044
- s.loadUrl(c, o, t, a);
3306
+ s.loadUrl(c, o, n, a);
3045
3307
  });
3046
3308
  }
3047
3309
  }, {
3048
3310
  key: "loadUrl",
3049
- value: function(n, t, r, a) {
3311
+ value: function(t, n, r, a) {
3050
3312
  var o = this, s = typeof r == "string" ? [r] : r, u = typeof a == "string" ? [a] : a, d = this.options.parseLoadPayload(s, u);
3051
- this.options.request(this.options, n, d, function(c, f) {
3313
+ this.options.request(this.options, t, d, function(c, f) {
3052
3314
  if (f && (f.status >= 500 && f.status < 600 || !f.status))
3053
- return t("failed loading " + n + "; status code: " + f.status, !0);
3315
+ return n("failed loading " + t + "; status code: " + f.status, !0);
3054
3316
  if (f && f.status >= 400 && f.status < 500)
3055
- return t("failed loading " + n + "; status code: " + f.status, !1);
3317
+ return n("failed loading " + t + "; status code: " + f.status, !1);
3056
3318
  if (!f && c && c.message) {
3057
- var p = c.message.toLowerCase(), h = ["failed", "fetch", "network", "load"].find(function(O) {
3058
- return p.indexOf(O) > -1;
3319
+ var p = c.message.toLowerCase(), g = ["failed", "fetch", "network", "load"].find(function(w) {
3320
+ return p.indexOf(w) > -1;
3059
3321
  });
3060
- if (h)
3061
- return t("failed loading " + n + ": " + c.message, !0);
3322
+ if (g)
3323
+ return n("failed loading " + t + ": " + c.message, !0);
3062
3324
  }
3063
3325
  if (c)
3064
- return t(c, !1);
3326
+ return n(c, !1);
3065
3327
  var b, y;
3066
3328
  try {
3067
3329
  typeof f.data == "string" ? b = o.options.parse(f.data, r, a) : b = f.data;
3068
3330
  } catch {
3069
- y = "failed parsing " + n + " to json";
3331
+ y = "failed parsing " + t + " to json";
3070
3332
  }
3071
3333
  if (y)
3072
- return t(y, !1);
3073
- t(null, b);
3334
+ return n(y, !1);
3335
+ n(null, b);
3074
3336
  });
3075
3337
  }
3076
3338
  }, {
3077
3339
  key: "create",
3078
- value: function(n, t, r, a, o) {
3340
+ value: function(t, n, r, a, o) {
3079
3341
  var s = this;
3080
3342
  if (this.options.addPath) {
3081
- typeof n == "string" && (n = [n]);
3082
- var u = this.options.parsePayload(t, r, a), d = 0, c = [], f = [];
3083
- n.forEach(function(p) {
3084
- var h = s.options.addPath;
3085
- typeof s.options.addPath == "function" && (h = s.options.addPath(p, t));
3086
- var b = s.services.interpolator.interpolate(h, {
3343
+ typeof t == "string" && (t = [t]);
3344
+ var u = this.options.parsePayload(n, r, a), d = 0, c = [], f = [];
3345
+ t.forEach(function(p) {
3346
+ var g = s.options.addPath;
3347
+ typeof s.options.addPath == "function" && (g = s.options.addPath(p, n));
3348
+ var b = s.services.interpolator.interpolate(g, {
3087
3349
  lng: p,
3088
- ns: t
3350
+ ns: n
3089
3351
  });
3090
- s.options.request(s.options, b, u, function(y, O) {
3091
- d += 1, c.push(y), f.push(O), d === n.length && typeof o == "function" && o(c, f);
3352
+ s.options.request(s.options, b, u, function(y, w) {
3353
+ d += 1, c.push(y), f.push(w), d === t.length && typeof o == "function" && o(c, f);
3092
3354
  });
3093
3355
  });
3094
3356
  }
@@ -3096,20 +3358,20 @@ var rr = function() {
3096
3358
  }, {
3097
3359
  key: "reload",
3098
3360
  value: function() {
3099
- var n = this, t = this.services, r = t.backendConnector, a = t.languageUtils, o = t.logger, s = r.language;
3361
+ var t = this, n = this.services, r = n.backendConnector, a = n.languageUtils, o = n.logger, s = r.language;
3100
3362
  if (!(s && s.toLowerCase() === "cimode")) {
3101
3363
  var u = [], d = function(f) {
3102
3364
  var p = a.toResolveHierarchy(f);
3103
- p.forEach(function(h) {
3104
- u.indexOf(h) < 0 && u.push(h);
3365
+ p.forEach(function(g) {
3366
+ u.indexOf(g) < 0 && u.push(g);
3105
3367
  });
3106
3368
  };
3107
3369
  d(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
3108
3370
  return d(c);
3109
3371
  }), u.forEach(function(c) {
3110
- n.allOptions.ns.forEach(function(f) {
3111
- r.read(c, f, "read", null, null, function(p, h) {
3112
- p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && h && o.log("loaded namespace ".concat(f, " for language ").concat(c), h), r.loaded("".concat(c, "|").concat(f), p, h);
3372
+ t.allOptions.ns.forEach(function(f) {
3373
+ r.read(c, f, "read", null, null, function(p, g) {
3374
+ p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && g && o.log("loaded namespace ".concat(f, " for language ").concat(c), g), r.loaded("".concat(c, "|").concat(f), p, g);
3113
3375
  });
3114
3376
  });
3115
3377
  });
@@ -3117,18 +3379,18 @@ var rr = function() {
3117
3379
  }
3118
3380
  }]);
3119
3381
  }();
3120
- It.type = "backend";
3121
- var ir = /* @__PURE__ */ ((i) => (i.en = "en", i.de = "de", i))(ir || {});
3122
- C.use(Et).use(Nn).init({
3382
+ zt.type = "backend";
3383
+ var Lr = /* @__PURE__ */ ((i) => (i.en = "en", i.de = "de", i))(Lr || {});
3384
+ const Rr = {
3385
+ en: "English",
3386
+ de: "German"
3387
+ };
3388
+ N.use(Ht).use(er).use(Dt).init({
3389
+ // defaultNS: "translation",
3390
+ // resources,
3123
3391
  initImmediate: !0,
3124
- supportedLngs: [
3125
- "en",
3126
- "de"
3127
- /* de */
3128
- ],
3129
- nonExplicitSupportedLngs: !0,
3130
- fallbackLng: "en",
3131
3392
  ns: ["translation"],
3393
+ fallbackLng: Object.keys(Rr),
3132
3394
  fallbackNS: "translation",
3133
3395
  partialBundledLanguages: !0,
3134
3396
  resources: {},
@@ -3136,14 +3398,15 @@ C.use(Et).use(Nn).init({
3136
3398
  escapeValue: !1
3137
3399
  },
3138
3400
  backend: {
3139
- backends: [It],
3401
+ backends: [zt],
3140
3402
  backendOptions: [
3141
3403
  {
3404
+ // loadPath: 'https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json',
3142
3405
  loadPath: () => {
3143
- var e, n, t;
3406
+ var e, t, n;
3144
3407
  if ((e = window == null ? void 0 : window.env) != null && e.TRANSLATION_URL)
3145
3408
  return `${window.env.TRANSLATION_URL}/{{lng}}`;
3146
- const i = ((n = window == null ? void 0 : window.env) == null ? void 0 : n.VITE_BASE_URL) || ((t = window == null ? void 0 : window.env) == null ? void 0 : t.REACT_APP_BASE_URL) || location.protocol + "//" + location.host;
3409
+ const i = ((t = window == null ? void 0 : window.env) == null ? void 0 : t.VITE_BASE_URL) || ((n = window == null ? void 0 : window.env) == null ? void 0 : n.REACT_APP_BASE_URL) || location.protocol + "//" + location.host;
3147
3410
  return console.log("url", i), `${i}/translations/{{lng}}`;
3148
3411
  },
3149
3412
  crossDomain: !0,
@@ -3152,28 +3415,28 @@ C.use(Et).use(Nn).init({
3152
3415
  ]
3153
3416
  }
3154
3417
  });
3155
- const ge = {
3418
+ const me = {
3156
3419
  "page-container": "_page-container_1pwo1_1",
3157
3420
  "page-main-content": "_page-main-content_1pwo1_8",
3158
3421
  "page-title": "_page-title_1pwo1_19",
3159
3422
  "text-base": "_text-base_1pwo1_26",
3160
3423
  "mt-4": "_mt-4_1pwo1_33"
3161
- }, ar = () => {
3162
- const { t: i } = In();
3163
- return /* @__PURE__ */ _.jsx("div", { className: "unauth__container " + ge["page-container"], children: /* @__PURE__ */ _.jsxs("div", { className: "unauth__main-content " + ge["page-main-content"], children: [
3164
- /* @__PURE__ */ _.jsx(or, {}),
3165
- /* @__PURE__ */ _.jsxs("div", { className: "unauth__main-text", children: [
3166
- /* @__PURE__ */ _.jsx("h2", { className: "unauth__main-text__title " + ge["page-title"], children: i("components.unauthorizedPage.title") }),
3167
- /* @__PURE__ */ _.jsxs("p", { className: "unauth__main-text__desc " + ge["text-base"], children: [
3424
+ }, Er = () => {
3425
+ const { t: i } = ar();
3426
+ return /* @__PURE__ */ E.jsx("div", { className: "unauth__container " + me["page-container"], children: /* @__PURE__ */ E.jsxs("div", { className: "unauth__main-content " + me["page-main-content"], children: [
3427
+ /* @__PURE__ */ E.jsx(Cr, {}),
3428
+ /* @__PURE__ */ E.jsxs("div", { className: "unauth__main-text", children: [
3429
+ /* @__PURE__ */ E.jsx("h2", { className: "unauth__main-text__title " + me["page-title"], children: i("components.unauthorizedPage.title") }),
3430
+ /* @__PURE__ */ E.jsxs("p", { className: "unauth__main-text__desc " + me["text-base"], children: [
3168
3431
  i("components.unauthorizedPage.description1"),
3169
3432
  " ",
3170
- /* @__PURE__ */ _.jsx("br", {}),
3433
+ /* @__PURE__ */ E.jsx("br", {}),
3171
3434
  " ",
3172
3435
  i("components.unauthorizedPage.description2")
3173
3436
  ] })
3174
3437
  ] })
3175
3438
  ] }) });
3176
- }, or = () => /* @__PURE__ */ _.jsxs(
3439
+ }, Cr = () => /* @__PURE__ */ E.jsxs(
3177
3440
  "svg",
3178
3441
  {
3179
3442
  width: "61",
@@ -3182,9 +3445,9 @@ const ge = {
3182
3445
  fill: "none",
3183
3446
  xmlns: "http://www.w3.org/2000/svg",
3184
3447
  children: [
3185
- /* @__PURE__ */ _.jsxs("g", { filter: "url(#filter0_d_10800_50471)", children: [
3186
- /* @__PURE__ */ _.jsx("rect", { x: "2.5", y: "1", width: "56", height: "56", rx: "28", fill: "white" }),
3187
- /* @__PURE__ */ _.jsx(
3448
+ /* @__PURE__ */ E.jsxs("g", { filter: "url(#filter0_d_10800_50471)", children: [
3449
+ /* @__PURE__ */ E.jsx("rect", { x: "2.5", y: "1", width: "56", height: "56", rx: "28", fill: "white" }),
3450
+ /* @__PURE__ */ E.jsx(
3188
3451
  "path",
3189
3452
  {
3190
3453
  d: "M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",
@@ -3195,7 +3458,7 @@ const ge = {
3195
3458
  }
3196
3459
  )
3197
3460
  ] }),
3198
- /* @__PURE__ */ _.jsx("defs", { children: /* @__PURE__ */ _.jsxs(
3461
+ /* @__PURE__ */ E.jsx("defs", { children: /* @__PURE__ */ E.jsxs(
3199
3462
  "filter",
3200
3463
  {
3201
3464
  id: "filter0_d_10800_50471",
@@ -3206,8 +3469,8 @@ const ge = {
3206
3469
  filterUnits: "userSpaceOnUse",
3207
3470
  "color-interpolation-filters": "sRGB",
3208
3471
  children: [
3209
- /* @__PURE__ */ _.jsx("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
3210
- /* @__PURE__ */ _.jsx(
3472
+ /* @__PURE__ */ E.jsx("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
3473
+ /* @__PURE__ */ E.jsx(
3211
3474
  "feColorMatrix",
3212
3475
  {
3213
3476
  in: "SourceAlpha",
@@ -3216,16 +3479,16 @@ const ge = {
3216
3479
  result: "hardAlpha"
3217
3480
  }
3218
3481
  ),
3219
- /* @__PURE__ */ _.jsx("feOffset", { dy: "1" }),
3220
- /* @__PURE__ */ _.jsx("feGaussianBlur", { stdDeviation: "1" }),
3221
- /* @__PURE__ */ _.jsx(
3482
+ /* @__PURE__ */ E.jsx("feOffset", { dy: "1" }),
3483
+ /* @__PURE__ */ E.jsx("feGaussianBlur", { stdDeviation: "1" }),
3484
+ /* @__PURE__ */ E.jsx(
3222
3485
  "feColorMatrix",
3223
3486
  {
3224
3487
  type: "matrix",
3225
3488
  values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"
3226
3489
  }
3227
3490
  ),
3228
- /* @__PURE__ */ _.jsx(
3491
+ /* @__PURE__ */ E.jsx(
3229
3492
  "feBlend",
3230
3493
  {
3231
3494
  mode: "normal",
@@ -3233,7 +3496,7 @@ const ge = {
3233
3496
  result: "effect1_dropShadow_10800_50471"
3234
3497
  }
3235
3498
  ),
3236
- /* @__PURE__ */ _.jsx(
3499
+ /* @__PURE__ */ E.jsx(
3237
3500
  "feBlend",
3238
3501
  {
3239
3502
  mode: "normal",
@@ -3248,17 +3511,17 @@ const ge = {
3248
3511
  ]
3249
3512
  }
3250
3513
  );
3251
- function sr() {
3252
- return /* @__PURE__ */ _.jsx(Fn, { i18n: C, children: /* @__PURE__ */ _.jsx(ar, {}) });
3514
+ function _r() {
3515
+ return /* @__PURE__ */ E.jsx(or, { i18n: N, children: /* @__PURE__ */ E.jsx(Er, {}) });
3253
3516
  }
3254
3517
  {
3255
- const i = Bt(sr);
3518
+ const i = Xt(_r);
3256
3519
  customElements.define("access-denied", i);
3257
3520
  }
3258
3521
  export {
3259
- Fn as I,
3260
- ir as L,
3261
- ar as U,
3262
- C as i,
3263
- cr as t
3522
+ or as I,
3523
+ Lr as L,
3524
+ Er as U,
3525
+ N as i,
3526
+ Tr as t
3264
3527
  };