@ukpc-lib/react 0.10.10 → 0.10.11

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