@pie-element/simple-cloze 0.1.5-next.20261005220847 → 0.1.5

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.
@@ -386,70 +386,111 @@ function ve(e, t, n, r, i, a, o) {
386
386
  function ye(e) {
387
387
  for (let t of [...e.querySelectorAll("mstack, mlongdiv")]) !t.closest("math") || t.closest("mjx-container") || t.replaceWith(t.localName === "mstack" ? he(t) : _e(t));
388
388
  }
389
- var be = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", xe = "pie-mathjax-version-conflict", N = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
390
- function Se(e, t) {
389
+ var be = "PIE-MJX-explorer-styles", N = "var(--pie-text, black)", xe = "var(--pie-background, #ffffff)", Se = "var(--pie-border-dark, #66686A)", P = "var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))", F = `color-mix(in srgb, ${P} 15%, transparent)`, Ce = `
390
+ :root mjx-container [data-sre-highlight-1]:not([data-mjx-collapsed], rect) {
391
+ color: ${N} !important;
392
+ fill: ${N} !important;
393
+ }
394
+ :root mjx-container:not([data-mjx-clone-container]) [data-sre-highlight-1]:not([data-sre-enclosed], rect) {
395
+ background-color: ${F} !important;
396
+ }
397
+ :root mjx-container rect[data-sre-highlight-1]:not([data-sre-enclosed]) {
398
+ fill: ${F} !important;
399
+ }
400
+ :root mjx-container .mjx-selected {
401
+ outline: 2px solid ${P} !important;
402
+ }
403
+ :root mjx-container [data-sre-highlight-2] {
404
+ color: ${N} !important;
405
+ background-color: transparent !important;
406
+ fill: ${N} !important;
407
+ outline: 2px dashed ${P} !important;
408
+ }
409
+ :root mjx-container rect[data-sre-highlight-2] {
410
+ fill: transparent !important;
411
+ stroke: ${P} !important;
412
+ stroke-width: 2px !important;
413
+ vector-effect: non-scaling-stroke;
414
+ }
415
+ :root .MJX_LiveRegion, :root .MJX_HoverRegion, :root .MJX_ToolTip {
416
+ color: ${N} !important;
417
+ background-color: ${xe} !important;
418
+ border-color: ${Se} !important;
419
+ }
420
+ :root .MJX_LiveRegion > div, :root .MJX_HoverRegion > div {
421
+ color: ${N} !important;
422
+ background-color: ${F} !important;
423
+ }
424
+ `;
425
+ function we(e = document) {
426
+ if (e.getElementById("PIE-MJX-explorer-styles")) return;
427
+ let t = e.createElement("style");
428
+ t.id = be, t.textContent = Ce, e.head.appendChild(t);
429
+ }
430
+ var Te = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", Ee = "pie-mathjax-version-conflict", De = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
431
+ function Oe(e, t) {
391
432
  if (typeof window > "u") return;
392
433
  let n = globalThis;
393
- n[N] ??= {
434
+ n[De] ??= {
394
435
  logged: !1,
395
436
  conditions: []
396
437
  };
397
- let r = n[N];
438
+ let r = n[De];
398
439
  if (r.conditions.includes(e)) return;
399
440
  r.conditions.push(e);
400
- let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${be}`;
401
- r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(xe, { detail: {
441
+ let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Te}`;
442
+ r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(Ee, { detail: {
402
443
  condition: e,
403
444
  message: i,
404
- docsUrl: be
445
+ docsUrl: Te
405
446
  } }));
406
447
  }
407
- var Ce = "https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js", we = {
448
+ var ke = "https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js", Ae = {
408
449
  parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
409
450
  overarc: "\\overparen",
410
451
  napprox: "\\not\\approx",
411
452
  longdiv: "\\enclose{longdiv}",
412
453
  abs: ["\\left|#1\\right|", 1]
413
- }, Te = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", Ee = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, De = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, Oe = /\\embed\{newLine\}\[\]/g, ke = [
454
+ }, je = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", Me = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, Ne = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, Pe = /\\embed\{newLine\}\[\]/g, Fe = [
414
455
  ["$$", "$$"],
415
456
  ["$", "$"],
416
457
  ["\\[", "\\]"],
417
458
  ["\\(", "\\)"]
418
- ], P = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Ae = "MJX-CHTML-styles", je = "PIE-MJX-SVG-styles", F = "PIE-MathJax-Menu-Settings", Me = { "mjx-container[overflow=\"linebreak\"][display]": {
459
+ ], Ie = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Le = "MJX-CHTML-styles", Re = "PIE-MJX-SVG-styles", I = "PIE-MathJax-Menu-Settings", ze = { "mjx-container[overflow=\"linebreak\"][display]": {
419
460
  overflow: "auto clip",
420
461
  "min-width": "initial !important"
421
- } }, Ne = 200, Pe = 201;
422
- function I(e) {
462
+ } }, Be = 200, Ve = 201;
463
+ function L(e) {
423
464
  let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
424
465
  for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
425
466
  }
426
- function Fe(e) {
427
- for (let [t, n] of ke) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
467
+ function He(e) {
468
+ for (let [t, n] of Fe) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
428
469
  return e;
429
470
  }
430
- function Ie(e) {
431
- return Fe(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
471
+ function Ue(e) {
472
+ return He(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
432
473
  }
433
- var Le = "mathjax_ignore", Re = "mathjax_process";
434
- function ze(e, t) {
435
- let n = e.closest(`.${Le}, .${Re}`);
436
- return n !== null && t.contains(n) && !n.classList.contains(Re);
474
+ var We = "mathjax_ignore", Ge = "mathjax_process";
475
+ function Ke(e, t) {
476
+ let n = e.closest(`.${We}, .${Ge}`);
477
+ return n !== null && t.contains(n) && !n.classList.contains(Ge);
437
478
  }
438
- function Be(e) {
479
+ function qe(e) {
439
480
  for (let t of e.querySelectorAll("[data-latex]")) {
440
- if (t.dataset.mathHandled || t.closest("mjx-container") || ze(t, e)) continue;
481
+ if (t.dataset.mathHandled || t.closest("mjx-container") || Ke(t, e)) continue;
441
482
  let n = t.textContent;
442
- n && (t.textContent = `\\(${Ie(n)}\\)`.replace(Oe, "\\newline "), t.dataset.mathHandled = "true");
483
+ n && (t.textContent = `\\(${Ue(n)}\\)`.replace(Pe, "\\newline "), t.dataset.mathHandled = "true");
443
484
  }
444
485
  }
445
- function Ve(e) {
486
+ function Je(e) {
446
487
  for (let t of e.querySelectorAll("math")) t.closest("mjx-container") || t.setAttribute("displaystyle", "true");
447
488
  }
448
- function He(e, t) {
489
+ function Ye(e, t) {
449
490
  for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
450
- return (t ? De : Ee).test(e.textContent ?? "");
491
+ return (t ? Ne : Me).test(e.textContent ?? "");
451
492
  }
452
- function Ue(e) {
493
+ function Xe(e) {
453
494
  return new Promise((n, i) => {
454
495
  let { useSingleDollar: a = !1, accessibility: o = !0, loadFonts: s = !0, srcUrl: c } = e, l = {
455
496
  loader: {
@@ -457,17 +498,17 @@ function Ue(e) {
457
498
  failed: (e) => i(e),
458
499
  "output/svg": { ready: (e) => {
459
500
  let n = t();
460
- return We(n) && Ge(n), e;
501
+ return Ze(n) && Qe(n), e;
461
502
  } }
462
503
  },
463
504
  startup: {
464
505
  typeset: !1,
465
506
  ready: () => {
466
- let e = t(), r = e?.startup, a = We(e);
467
- a && (Ge(e), Ke(e)), r?.defaultReady?.(), a && (qe(r?.document), r?.document?.addStyles?.(Me)), Promise.resolve(r?.promise).then(() => n(), i);
507
+ let e = t(), r = e?.startup, a = Ze(e);
508
+ a && (Qe(e), $e(e)), r?.defaultReady?.(), a && (et(r?.document), r?.document?.addStyles?.(ze)), Promise.resolve(r?.promise).then(() => n(), i);
468
509
  }
469
510
  },
470
- tex: { macros: { ...we } },
511
+ tex: { macros: { ...Ae } },
471
512
  output: { displayOverflow: "linebreak" },
472
513
  options: {
473
514
  enableMenu: o,
@@ -479,80 +520,80 @@ function Ue(e) {
479
520
  a11y: { inTabOrder: !1 }
480
521
  }
481
522
  };
482
- a && l.tex && (console.warn(Te), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), s || (l.chtml = { fontURL: "" }), r(l, c || Ce).catch(i);
523
+ a && l.tex && (console.warn(je), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), s || (l.chtml = { fontURL: "" }), r(l, c || ke).catch(i);
483
524
  });
484
525
  }
485
- function We(e) {
526
+ function Ze(e) {
486
527
  return !!e?.version?.startsWith("4.");
487
528
  }
488
- function Ge(e) {
529
+ function Qe(e) {
489
530
  let t = e?._?.output, n = t?.chtml_ts?.CHTML;
490
531
  n && (n.STYLESHEETID = s);
491
532
  let r = t?.svg_ts?.SVG;
492
- r && (r.STYLESHEETID = je);
533
+ r && (r.STYLESHEETID = Re);
493
534
  }
494
- function Ke(e) {
535
+ function $e(e) {
495
536
  let t = e?._?.ui?.menu?.Menu?.Menu;
496
537
  if (t) {
497
- t.MENU_STORAGE = F;
538
+ t.MENU_STORAGE = I;
498
539
  try {
499
- let e = localStorage.getItem(F);
540
+ let e = localStorage.getItem(I);
500
541
  if (!e) return;
501
542
  let { assistiveMml: t, ...n } = JSON.parse(e);
502
543
  if (t === void 0) return;
503
- Object.keys(n).length ? localStorage.setItem(F, JSON.stringify(n)) : localStorage.removeItem(F);
544
+ Object.keys(n).length ? localStorage.setItem(I, JSON.stringify(n)) : localStorage.removeItem(I);
504
545
  } catch {}
505
546
  }
506
547
  }
507
- function qe(e) {
548
+ function et(e) {
508
549
  if (!e) return;
509
550
  let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
510
551
  let n = e.typesetRoot;
511
- !n || t.has(n) || (I(n), t.add(n));
552
+ !n || t.has(n) || (L(n), t.add(n));
512
553
  };
513
- e.addRenderAction?.("pie-strip-latex", Pe, (e) => {
554
+ e.addRenderAction?.("pie-strip-latex", Ve, (e) => {
514
555
  for (let t of e.math ?? []) n(t);
515
556
  return !1;
516
557
  }, (e) => {
517
558
  let t = e.typesetRoot;
518
- return t && I(t), !1;
559
+ return t && L(t), !1;
519
560
  });
520
561
  let r = e.outputJax?.chtmlStyles;
521
- r?.id === Ae && (r.id = s), Xe();
562
+ r?.id === Le && (r.id = s), rt();
522
563
  }
523
- function Je(e) {
564
+ function tt(e) {
524
565
  return e instanceof HTMLStyleElement && c.includes(e.id);
525
566
  }
526
- function Ye(e) {
527
- Se("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
567
+ function nt(e) {
568
+ Oe("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
528
569
  }
529
- function Xe() {
530
- let e = document.head, t = [...e.children].find(Je);
570
+ function rt() {
571
+ let e = document.head, t = [...e.children].find(tt);
531
572
  if (t) {
532
- Ye(t);
573
+ nt(t);
533
574
  return;
534
575
  }
535
576
  let n = new MutationObserver((e) => {
536
577
  for (let t of e) {
537
- let e = [...t.addedNodes].find(Je);
578
+ let e = [...t.addedNodes].find(tt);
538
579
  if (e) {
539
- Ye(e), n.disconnect();
580
+ nt(e), n.disconnect();
540
581
  return;
541
582
  }
542
583
  }
543
584
  });
544
585
  n.observe(e, { childList: !0 });
545
586
  }
546
- function Ze(e) {
587
+ function it(e) {
547
588
  let t = e?.math;
548
589
  if (!t?.remove) return;
549
- let n = [...t].filter((e) => (e.state?.() ?? 0) >= Ne && e.typesetRoot?.isConnected === !1);
590
+ let n = [...t].filter((e) => (e.state?.() ?? 0) >= Be && e.typesetRoot?.isConnected === !1);
550
591
  if (n.length !== 0) {
551
592
  for (let e of [...n].reverse()) e.clear?.();
552
593
  t.remove(...n);
553
594
  }
554
595
  }
555
- function Qe(e) {
596
+ function at(e) {
556
597
  return new Promise((n, r) => {
557
598
  let i = e.startup ?? {};
558
599
  e.startup = i;
@@ -563,86 +604,86 @@ function Qe(e) {
563
604
  };
564
605
  });
565
606
  }
566
- function $e(e) {
607
+ function ot(e) {
567
608
  let n = t();
568
- return n ? n.version ? n.startup?.promise ? Promise.resolve(n.startup.promise).then(() => void 0) : Promise.resolve() : Qe(n) : Ue(e);
609
+ return n ? n.version ? n.startup?.promise ? Promise.resolve(n.startup.promise).then(() => void 0) : Promise.resolve() : at(n) : Xe(e);
569
610
  }
570
- function et(e) {
571
- return $e(e).then(() => {
611
+ function st(e) {
612
+ return ot(e).then(() => {
572
613
  typeof t()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
573
614
  });
574
615
  }
575
- function tt(e) {
576
- let t = i, n = t[P];
577
- return n || (n = et(e), t[P] = n), n;
616
+ function ct(e) {
617
+ let t = i, n = t[Ie];
618
+ return n || (n = st(e), t[Ie] = n), n;
578
619
  }
579
- function nt(e = {}) {
620
+ function lt(e = {}) {
580
621
  let n = e.useSingleDollar ?? !1;
581
622
  return async (r) => {
582
623
  if (typeof window > "u") return;
583
- Be(r), f(r), Ve(r), ye(r);
584
- let i = tt(e);
585
- if (!He(r, n)) {
624
+ qe(r), f(r), Je(r), ye(r);
625
+ let i = ct(e);
626
+ if (!Ye(r, n)) {
586
627
  i.catch(() => {});
587
628
  return;
588
629
  }
589
630
  await i;
590
631
  let a = t();
591
632
  if (await a?.startup?.promise, typeof a?.typesetPromise == "function") {
592
- Ze(a.startup?.document);
633
+ we(), it(a.startup?.document);
593
634
  try {
594
635
  await a.typesetPromise([r]);
595
636
  } catch (e) {
596
637
  throw a.typesetClear?.([r]), e;
597
638
  }
598
- I(r);
639
+ L(r);
599
640
  }
600
641
  };
601
642
  }
602
- var rt = "@pie-lib/math-rendering", it = "@pie-lib/math-rendering@2", at = "pie-print", ot = 50, st = 1e4, ct = null;
603
- function lt() {
604
- return !!window[it]?.opts?.useSingleDollar;
643
+ var ut = "@pie-lib/math-rendering", dt = "@pie-lib/math-rendering@2", ft = "pie-print", pt = 50, mt = 1e4, ht = null;
644
+ function gt() {
645
+ return !!window[dt]?.opts?.useSingleDollar;
605
646
  }
606
- function ut() {
607
- return ct ||= nt({ useSingleDollar: lt() }), ct;
647
+ function _t() {
648
+ return ht ||= lt({ useSingleDollar: gt() }), ht;
608
649
  }
609
- function dt() {
650
+ function vt() {
610
651
  if (typeof window > "u") return null;
611
- let e = window[rt];
612
- return typeof e?.renderMath == "function" && e.renderMath !== L ? e : null;
652
+ let e = window[ut];
653
+ return typeof e?.renderMath == "function" && e.renderMath !== R ? e : null;
613
654
  }
614
- function ft(e) {
655
+ function yt(e) {
615
656
  let t = e;
616
657
  for (; t;) {
617
- if (t instanceof Element && t.localName === at) return t;
658
+ if (t instanceof Element && t.localName === ft) return t;
618
659
  t = t instanceof ShadowRoot ? t.host : t.parentNode;
619
660
  }
620
661
  return null;
621
662
  }
622
- function pt() {
663
+ function bt() {
623
664
  let e = window.renderMath;
624
665
  return typeof e == "function" ? e : null;
625
666
  }
626
- async function mt(e) {
627
- let t = ft(e);
667
+ async function xt(e) {
668
+ let t = yt(e);
628
669
  if (!t) return null;
629
- let n = pt();
670
+ let n = bt();
630
671
  if (n || t.mathRenderingModuleUrlImported !== !0) return n;
631
- let r = Date.now() + st;
672
+ let r = Date.now() + mt;
632
673
  for (; Date.now() < r;) {
633
- await new Promise((e) => setTimeout(e, ot));
634
- let e = pt();
674
+ await new Promise((e) => setTimeout(e, pt));
675
+ let e = bt();
635
676
  if (e) return e;
636
677
  }
637
678
  return null;
638
679
  }
639
- var L = async (e) => {
680
+ var R = async (e) => {
640
681
  if (typeof window > "u") return;
641
682
  let t = typeof e == "string", n;
642
683
  t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
643
- let r = dt(), i = r || t ? null : await mt(n);
644
- return r ? await r.renderMath?.(n) : i && i !== L ? await i(n) : await ut()(n), t ? n.innerHTML : void 0;
645
- }, ht = {
684
+ let r = vt(), i = r || t ? null : await xt(n);
685
+ return r ? await r.renderMath?.(n) : i && i !== R ? await i(n) : await _t()(n), t ? n.innerHTML : void 0;
686
+ }, St = {
646
687
  translation: {
647
688
  categorize: {
648
689
  limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
@@ -705,6 +746,8 @@ var L = async (e) => {
705
746
  addElementLimit_other: "You can only add {{count}} elements",
706
747
  clearAll: "Clear all",
707
748
  closedEnd: "closed",
749
+ elementCorrect: "Correct.",
750
+ elementIncorrect: "Incorrect.",
708
751
  graphLabel: "Number line from {{min}} to {{max}}, with a tick every {{interval}}",
709
752
  line: "Line from {{left}} ({{leftEnd}}) to {{right}} ({{rightEnd}}).",
710
753
  openEnd: "open",
@@ -771,6 +814,8 @@ var L = async (e) => {
771
814
  delete: "Delete",
772
815
  newLabel: "New label",
773
816
  categoryLabel: "Category {{index}} label",
817
+ categoryLabelValue: "Category {{index}} label: {{label}}",
818
+ category: "Category {{index}}",
774
819
  reachedLimit_other: "There can't be more than {{count}} categories.",
775
820
  keyLegend: {
776
821
  incorrectAnswer: "Student incorrect answer",
@@ -925,7 +970,7 @@ var L = async (e) => {
925
970
  cancel: "Cancel",
926
971
  playAudio: "Play audio"
927
972
  }
928
- }, gt = {
973
+ }, Ct = {
929
974
  translation: {
930
975
  categorize: {
931
976
  limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
@@ -988,6 +1033,8 @@ var L = async (e) => {
988
1033
  addElementLimit_other: "Solo puedes agregar {{count}} elementos",
989
1034
  clearAll: "Borrar todo",
990
1035
  closedEnd: "cerrado",
1036
+ elementCorrect: "Correcto.",
1037
+ elementIncorrect: "Incorrecto.",
991
1038
  graphLabel: "Recta numérica de {{min}} a {{max}}, con una marca cada {{interval}}",
992
1039
  line: "Línea de {{left}} ({{leftEnd}}) a {{right}} ({{rightEnd}}).",
993
1040
  openEnd: "abierto",
@@ -1054,6 +1101,8 @@ var L = async (e) => {
1054
1101
  delete: "Eliminar",
1055
1102
  newLabel: "Nueva etiqueta",
1056
1103
  categoryLabel: "Etiqueta de la categoría {{index}}",
1104
+ categoryLabelValue: "Etiqueta de la categoría {{index}}: {{label}}",
1105
+ category: "Categoría {{index}}",
1057
1106
  reachedLimit_other: "No puede haber más de {{count}} categorías.",
1058
1107
  keyLegend: {
1059
1108
  incorrectAnswer: "Respuesta incorrecta del estudiante",
@@ -1208,55 +1257,55 @@ var L = async (e) => {
1208
1257
  cancel: "Cancelar",
1209
1258
  playAudio: "Reproducir audio"
1210
1259
  }
1211
- }, R = (e) => typeof e == "string", z = () => {
1260
+ }, z = (e) => typeof e == "string", B = () => {
1212
1261
  let e, t, n = new Promise((n, r) => {
1213
1262
  e = n, t = r;
1214
1263
  });
1215
1264
  return n.resolve = e, n.reject = t, n;
1216
- }, _t = (e) => e == null ? "" : "" + e, vt = (e, t, n) => {
1265
+ }, wt = (e) => e == null ? "" : "" + e, Tt = (e, t, n) => {
1217
1266
  e.forEach((e) => {
1218
1267
  t[e] && (n[e] = t[e]);
1219
1268
  });
1220
- }, yt = /###/g, bt = (e) => e && e.indexOf("###") > -1 ? e.replace(yt, ".") : e, xt = (e) => !e || R(e), B = (e, t, n) => {
1221
- let r = R(t) ? t.split(".") : t, i = 0;
1269
+ }, Et = /###/g, Dt = (e) => e && e.indexOf("###") > -1 ? e.replace(Et, ".") : e, Ot = (e) => !e || z(e), V = (e, t, n) => {
1270
+ let r = z(t) ? t.split(".") : t, i = 0;
1222
1271
  for (; i < r.length - 1;) {
1223
- if (xt(e)) return {};
1224
- let t = bt(r[i]);
1272
+ if (Ot(e)) return {};
1273
+ let t = Dt(r[i]);
1225
1274
  !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
1226
1275
  }
1227
- return xt(e) ? {} : {
1276
+ return Ot(e) ? {} : {
1228
1277
  obj: e,
1229
- k: bt(r[i])
1278
+ k: Dt(r[i])
1230
1279
  };
1231
- }, St = (e, t, n) => {
1232
- let { obj: r, k: i } = B(e, t, Object);
1280
+ }, kt = (e, t, n) => {
1281
+ let { obj: r, k: i } = V(e, t, Object);
1233
1282
  if (r !== void 0 || t.length === 1) {
1234
1283
  r[i] = n;
1235
1284
  return;
1236
1285
  }
1237
- let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = B(e, o, Object);
1238
- for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = B(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
1286
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = V(e, o, Object);
1287
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = V(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
1239
1288
  s.obj[`${s.k}.${a}`] = n;
1240
- }, Ct = (e, t, n, r) => {
1241
- let { obj: i, k: a } = B(e, t, Object);
1289
+ }, At = (e, t, n, r) => {
1290
+ let { obj: i, k: a } = V(e, t, Object);
1242
1291
  i[a] = i[a] || [], i[a].push(n);
1243
- }, V = (e, t) => {
1244
- let { obj: n, k: r } = B(e, t);
1292
+ }, H = (e, t) => {
1293
+ let { obj: n, k: r } = V(e, t);
1245
1294
  if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
1246
- }, wt = (e, t, n) => {
1247
- let r = V(e, n);
1248
- return r === void 0 ? V(t, n) : r;
1249
- }, Tt = (e, t, n) => {
1250
- for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? R(e[r]) || e[r] instanceof String || R(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Tt(e[r], t[r], n) : e[r] = t[r]);
1295
+ }, jt = (e, t, n) => {
1296
+ let r = H(e, n);
1297
+ return r === void 0 ? H(t, n) : r;
1298
+ }, Mt = (e, t, n) => {
1299
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? z(e[r]) || e[r] instanceof String || z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Mt(e[r], t[r], n) : e[r] = t[r]);
1251
1300
  return e;
1252
- }, H = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Et = {
1301
+ }, U = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Nt = {
1253
1302
  "&": "&amp;",
1254
1303
  "<": "&lt;",
1255
1304
  ">": "&gt;",
1256
1305
  "\"": "&quot;",
1257
1306
  "'": "&#39;",
1258
1307
  "/": "&#x2F;"
1259
- }, Dt = (e) => R(e) ? e.replace(/[&<>"'\/]/g, (e) => Et[e]) : e, Ot = class {
1308
+ }, Pt = (e) => z(e) ? e.replace(/[&<>"'\/]/g, (e) => Nt[e]) : e, Ft = class {
1260
1309
  constructor(e) {
1261
1310
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1262
1311
  }
@@ -1266,23 +1315,23 @@ var L = async (e) => {
1266
1315
  let n = new RegExp(e);
1267
1316
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
1268
1317
  }
1269
- }, kt = [
1318
+ }, It = [
1270
1319
  " ",
1271
1320
  ",",
1272
1321
  "?",
1273
1322
  "!",
1274
1323
  ";"
1275
- ], At = new Ot(20), jt = (e, t, n) => {
1324
+ ], Lt = new Ft(20), Rt = (e, t, n) => {
1276
1325
  t ||= "", n ||= "";
1277
- let r = kt.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
1326
+ let r = It.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
1278
1327
  if (r.length === 0) return !0;
1279
- let i = At.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
1328
+ let i = Lt.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
1280
1329
  if (!a) {
1281
1330
  let t = e.indexOf(n);
1282
1331
  t > 0 && !i.test(e.substring(0, t)) && (a = !0);
1283
1332
  }
1284
1333
  return a;
1285
- }, U = (e, t, n = ".") => {
1334
+ }, W = (e, t, n = ".") => {
1286
1335
  if (!e) return;
1287
1336
  if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
1288
1337
  let r = t.split(n), i = e;
@@ -1301,7 +1350,7 @@ var L = async (e) => {
1301
1350
  i = t;
1302
1351
  }
1303
1352
  return i;
1304
- }, W = (e) => e?.replace(/_/g, "-"), Mt = {
1353
+ }, G = (e) => e?.replace(/_/g, "-"), zt = {
1305
1354
  type: "logger",
1306
1355
  log(e) {
1307
1356
  this.output("log", e);
@@ -1315,12 +1364,12 @@ var L = async (e) => {
1315
1364
  output(e, t) {
1316
1365
  console?.[e]?.apply?.(console, t);
1317
1366
  }
1318
- }, G = new class e {
1367
+ }, K = new class e {
1319
1368
  constructor(e, t = {}) {
1320
1369
  this.init(e, t);
1321
1370
  }
1322
1371
  init(e, t = {}) {
1323
- this.prefix = t.prefix || "i18next:", this.logger = e || Mt, this.options = t, this.debug = t.debug;
1372
+ this.prefix = t.prefix || "i18next:", this.logger = e || zt, this.options = t, this.debug = t.debug;
1324
1373
  }
1325
1374
  log(...e) {
1326
1375
  return this.forward(e, "log", "", !0);
@@ -1335,7 +1384,7 @@ var L = async (e) => {
1335
1384
  return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
1336
1385
  }
1337
1386
  forward(e, t, n, r) {
1338
- return r && !this.debug ? null : (R(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
1387
+ return r && !this.debug ? null : (z(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
1339
1388
  }
1340
1389
  create(t) {
1341
1390
  return new e(this.logger, {
@@ -1346,7 +1395,7 @@ var L = async (e) => {
1346
1395
  clone(t) {
1347
1396
  return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
1348
1397
  }
1349
- }(), K = class {
1398
+ }(), q = class {
1350
1399
  constructor() {
1351
1400
  this.observers = {};
1352
1401
  }
@@ -1373,7 +1422,7 @@ var L = async (e) => {
1373
1422
  for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
1374
1423
  });
1375
1424
  }
1376
- }, Nt = class extends K {
1425
+ }, Bt = class extends q {
1377
1426
  constructor(e, t = {
1378
1427
  ns: ["translation"],
1379
1428
  defaultNS: "translation"
@@ -1389,16 +1438,16 @@ var L = async (e) => {
1389
1438
  }
1390
1439
  getResource(e, t, n, r = {}) {
1391
1440
  let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
1392
- e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : R(n) && i ? o.push(...n.split(i)) : o.push(n)));
1393
- let s = V(this.data, o);
1394
- return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !R(n) ? s : U(this.data?.[e]?.[t], n, i);
1441
+ e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : z(n) && i ? o.push(...n.split(i)) : o.push(n)));
1442
+ let s = H(this.data, o);
1443
+ return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !z(n) ? s : W(this.data?.[e]?.[t], n, i);
1395
1444
  }
1396
1445
  addResource(e, t, n, r, i = { silent: !1 }) {
1397
1446
  let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
1398
- n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), St(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
1447
+ n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), kt(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
1399
1448
  }
1400
1449
  addResources(e, t, n, r = { silent: !1 }) {
1401
- for (let r in n) (R(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
1450
+ for (let r in n) (z(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
1402
1451
  r.silent || this.emit("added", e, t, n);
1403
1452
  }
1404
1453
  addResourceBundle(e, t, n, r, i, a = {
@@ -1407,11 +1456,11 @@ var L = async (e) => {
1407
1456
  }) {
1408
1457
  let o = [e, t];
1409
1458
  e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
1410
- let s = V(this.data, o) || {};
1411
- a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Tt(s, n, i) : s = {
1459
+ let s = H(this.data, o) || {};
1460
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Mt(s, n, i) : s = {
1412
1461
  ...s,
1413
1462
  ...n
1414
- }, St(this.data, o, s), a.silent || this.emit("added", e, t, n);
1463
+ }, kt(this.data, o, s), a.silent || this.emit("added", e, t, n);
1415
1464
  }
1416
1465
  removeResourceBundle(e, t) {
1417
1466
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -1432,7 +1481,7 @@ var L = async (e) => {
1432
1481
  toJSON() {
1433
1482
  return this.data;
1434
1483
  }
1435
- }, Pt = {
1484
+ }, Vt = {
1436
1485
  processors: {},
1437
1486
  addPostProcessor(e) {
1438
1487
  this.processors[e.name] = e;
@@ -1442,22 +1491,22 @@ var L = async (e) => {
1442
1491
  t = this.processors[e]?.process(t, n, r, i) ?? t;
1443
1492
  }), t;
1444
1493
  }
1445
- }, Ft = Symbol("i18next/PATH_KEY");
1446
- function It() {
1494
+ }, Ht = Symbol("i18next/PATH_KEY");
1495
+ function Ut() {
1447
1496
  let e = [], t = Object.create(null), n;
1448
- return t.get = (r, i) => (n?.revoke?.(), i === Ft ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
1497
+ return t.get = (r, i) => (n?.revoke?.(), i === Ht ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
1449
1498
  }
1450
- function q(e, t) {
1451
- let { [Ft]: n } = e(It()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
1499
+ function J(e, t) {
1500
+ let { [Ht]: n } = e(Ut()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
1452
1501
  if (n.length > 1 && i) {
1453
1502
  let e = t?.ns, a = Array.isArray(e) ? e : null;
1454
1503
  if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
1455
1504
  }
1456
1505
  return n.join(r);
1457
1506
  }
1458
- var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number", Rt = class e extends K {
1507
+ var Wt = {}, Y = (e) => !z(e) && typeof e != "boolean" && typeof e != "number", Gt = class e extends q {
1459
1508
  constructor(e, t = {}) {
1460
- super(), vt([
1509
+ super(), Tt([
1461
1510
  "resourceStore",
1462
1511
  "languageUtils",
1463
1512
  "pluralResolver",
@@ -1465,7 +1514,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1465
1514
  "backendConnector",
1466
1515
  "i18nFormat",
1467
1516
  "utils"
1468
- ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = G.create("translator");
1517
+ ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = K.create("translator");
1469
1518
  }
1470
1519
  changeLanguage(e) {
1471
1520
  e && (this.language = e);
@@ -1475,34 +1524,34 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1475
1524
  if (e == null) return !1;
1476
1525
  let r = this.resolve(e, n);
1477
1526
  if (r?.res === void 0) return !1;
1478
- let i = J(r.res);
1527
+ let i = Y(r.res);
1479
1528
  return !(n.returnObjects === !1 && i);
1480
1529
  }
1481
1530
  extractFromKey(e, t) {
1482
1531
  let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
1483
1532
  n === void 0 && (n = ":");
1484
- let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !jt(e, n, r);
1533
+ let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Rt(e, n, r);
1485
1534
  if (a && !o) {
1486
1535
  let t = e.match(this.interpolator.nestingRegexp);
1487
1536
  if (t && t.length > 0) return {
1488
1537
  key: e,
1489
- namespaces: R(i) ? [i] : i
1538
+ namespaces: z(i) ? [i] : i
1490
1539
  };
1491
1540
  let a = e.split(n);
1492
1541
  (n !== r || n === r && this.options.ns.indexOf(a[0]) > -1) && (i = a.shift()), e = a.join(r);
1493
1542
  }
1494
1543
  return {
1495
1544
  key: e,
1496
- namespaces: R(i) ? [i] : i
1545
+ namespaces: z(i) ? [i] : i
1497
1546
  };
1498
1547
  }
1499
1548
  translate(t, n, r) {
1500
1549
  let i = typeof n == "object" ? { ...n } : n;
1501
1550
  if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
1502
- typeof t == "function" && (t = q(t, {
1551
+ typeof t == "function" && (t = J(t, {
1503
1552
  ...this.options,
1504
1553
  ...i
1505
- })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? q(e, {
1554
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? J(e, {
1506
1555
  ...this.options,
1507
1556
  ...i
1508
1557
  }) : String(e));
@@ -1528,10 +1577,10 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1528
1577
  "[object Number]",
1529
1578
  "[object Function]",
1530
1579
  "[object RegExp]"
1531
- ], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !R(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", C = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", w = b && !i.ordinal && i.count === 0, T = w && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${C}`] || i.defaultValue, E = m;
1580
+ ], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !z(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", C = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", w = b && !i.ordinal && i.count === 0, T = w && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${C}`] || i.defaultValue, E = m;
1532
1581
  y && !m && x && (E = T);
1533
- let D = J(E), O = Object.prototype.toString.apply(E);
1534
- if (y && E && D && _.indexOf(O) < 0 && !(R(v) && Array.isArray(E))) {
1582
+ let D = Y(E), O = Object.prototype.toString.apply(E);
1583
+ if (y && E && D && _.indexOf(O) < 0 && !(z(v) && Array.isArray(E))) {
1535
1584
  if (!i.returnObjects && !this.options.returnObjects) {
1536
1585
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
1537
1586
  let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, E, {
@@ -1546,7 +1595,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1546
1595
  let r = `${n}${o}${e}`;
1547
1596
  x && !m ? t[e] = this.translate(r, {
1548
1597
  ...i,
1549
- defaultValue: J(T) ? T[e] : void 0,
1598
+ defaultValue: Y(T) ? T[e] : void 0,
1550
1599
  joinArrays: !1,
1551
1600
  ns: c
1552
1601
  }) : t[e] = this.translate(r, {
@@ -1557,7 +1606,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1557
1606
  }
1558
1607
  m = t;
1559
1608
  }
1560
- } else if (y && R(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
1609
+ } else if (y && z(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
1561
1610
  else {
1562
1611
  let e = !1, n = !1;
1563
1612
  !this.isValidLookup(m) && x && (e = !0, m = T), this.isValidLookup(m) || (n = !0, m = s);
@@ -1601,12 +1650,12 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1601
1650
  ...n.interpolation
1602
1651
  }
1603
1652
  });
1604
- let a = R(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
1653
+ let a = z(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
1605
1654
  if (a) {
1606
1655
  let t = e.match(this.interpolator.nestingRegexp);
1607
1656
  o = t && t.length;
1608
1657
  }
1609
- let s = n.replace && !R(n.replace) ? n.replace : n;
1658
+ let s = n.replace && !z(n.replace) ? n.replace : n;
1610
1659
  if (this.options.interpolation.defaultVariables && (s = {
1611
1660
  ...this.options.interpolation.defaultVariables,
1612
1661
  ...s
@@ -1616,8 +1665,8 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1616
1665
  }
1617
1666
  !n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
1618
1667
  }
1619
- let a = n.postProcess || this.options.postProcess, o = R(a) ? [a] : a;
1620
- return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Pt.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
1668
+ let a = n.postProcess || this.options.postProcess, o = z(a) ? [a] : a;
1669
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Vt.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
1621
1670
  i18nResolved: {
1622
1671
  ...r,
1623
1672
  usedParams: this.getUsedParamsDetails(n)
@@ -1627,7 +1676,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1627
1676
  }
1628
1677
  resolve(e, t = {}) {
1629
1678
  let n, r, i, a, o;
1630
- return R(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? q(e, {
1679
+ return z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? J(e, {
1631
1680
  ...this.options,
1632
1681
  ...t
1633
1682
  }) : e)), e.forEach((e) => {
@@ -1636,9 +1685,9 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1636
1685
  r = c;
1637
1686
  let l = s.namespaces;
1638
1687
  this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
1639
- let u = t.count !== void 0 && !R(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
1688
+ let u = t.count !== void 0 && !z(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (z(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
1640
1689
  l.forEach((e) => {
1641
- this.isValidLookup(n) || (o = e, !Lt[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (Lt[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" 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!!!")), p.forEach((r) => {
1690
+ this.isValidLookup(n) || (o = e, !Wt[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (Wt[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" 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!!!")), p.forEach((r) => {
1642
1691
  if (this.isValidLookup(n)) return;
1643
1692
  a = r;
1644
1693
  let o = [c];
@@ -1687,7 +1736,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1687
1736
  "joinArrays",
1688
1737
  "postProcess",
1689
1738
  "interpolation"
1690
- ], n = e.replace && !R(e.replace), r = n ? e.replace : e;
1739
+ ], n = e.replace && !z(e.replace), r = n ? e.replace : e;
1691
1740
  if (n && e.count !== void 0 && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
1692
1741
  ...this.options.interpolation.defaultVariables,
1693
1742
  ...r
@@ -1701,22 +1750,22 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1701
1750
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
1702
1751
  return !1;
1703
1752
  }
1704
- }, zt = class {
1753
+ }, Kt = class {
1705
1754
  constructor(e) {
1706
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = G.create("languageUtils");
1755
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = K.create("languageUtils");
1707
1756
  }
1708
1757
  getScriptPartFromCode(e) {
1709
- if (e = W(e), !e || e.indexOf("-") < 0) return null;
1758
+ if (e = G(e), !e || e.indexOf("-") < 0) return null;
1710
1759
  let t = e.split("-");
1711
1760
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
1712
1761
  }
1713
1762
  getLanguagePartFromCode(e) {
1714
- if (e = W(e), !e || e.indexOf("-") < 0) return e;
1763
+ if (e = G(e), !e || e.indexOf("-") < 0) return e;
1715
1764
  let t = e.split("-");
1716
1765
  return this.formatLanguageCode(t[0]);
1717
1766
  }
1718
1767
  formatLanguageCode(e) {
1719
- if (R(e) && e.indexOf("-") > -1) {
1768
+ if (z(e) && e.indexOf("-") > -1) {
1720
1769
  let t;
1721
1770
  try {
1722
1771
  t = Intl.getCanonicalLocales(e)[0];
@@ -1748,7 +1797,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1748
1797
  }
1749
1798
  getFallbackCodes(e, t) {
1750
1799
  if (!e) return [];
1751
- if (typeof e == "function" && (e = e(t)), R(e) && (e = [e]), Array.isArray(e)) return e;
1800
+ if (typeof e == "function" && (e = e(t)), z(e) && (e = [e]), Array.isArray(e)) return e;
1752
1801
  if (!t) return e.default || [];
1753
1802
  let n = e[t];
1754
1803
  return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
@@ -1757,29 +1806,29 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1757
1806
  let n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), r = [], i = (e) => {
1758
1807
  e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
1759
1808
  };
1760
- return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : R(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
1809
+ return z(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : z(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
1761
1810
  r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
1762
1811
  }), r;
1763
1812
  }
1764
- }, Bt = {
1813
+ }, qt = {
1765
1814
  zero: 0,
1766
1815
  one: 1,
1767
1816
  two: 2,
1768
1817
  few: 3,
1769
1818
  many: 4,
1770
1819
  other: 5
1771
- }, Vt = {
1820
+ }, Jt = {
1772
1821
  select: (e) => e === 1 ? "one" : "other",
1773
1822
  resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
1774
- }, Ht = class {
1823
+ }, Yt = class {
1775
1824
  constructor(e, t = {}) {
1776
- this.languageUtils = e, this.options = t, this.logger = G.create("pluralResolver"), this.pluralRulesCache = {};
1825
+ this.languageUtils = e, this.options = t, this.logger = K.create("pluralResolver"), this.pluralRulesCache = {};
1777
1826
  }
1778
1827
  clearCache() {
1779
1828
  this.pluralRulesCache = {};
1780
1829
  }
1781
1830
  getRule(e, t = {}) {
1782
- let n = W(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
1831
+ let n = G(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
1783
1832
  cleanedCode: n,
1784
1833
  type: r
1785
1834
  });
@@ -1788,8 +1837,8 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1788
1837
  try {
1789
1838
  a = new Intl.PluralRules(n, { type: r });
1790
1839
  } catch {
1791
- if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Vt;
1792
- if (!e.match(/-|_/)) return Vt;
1840
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Jt;
1841
+ if (!e.match(/-|_/)) return Jt;
1793
1842
  let n = this.languageUtils.getLanguagePartFromCode(e);
1794
1843
  a = this.getRule(n, t);
1795
1844
  }
@@ -1804,23 +1853,23 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1804
1853
  }
1805
1854
  getSuffixes(e, t = {}) {
1806
1855
  let n = this.getRule(e, t);
1807
- return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => Bt[e] - Bt[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
1856
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => qt[e] - qt[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
1808
1857
  }
1809
1858
  getSuffix(e, t, n = {}) {
1810
1859
  let r = this.getRule(e, n);
1811
1860
  return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
1812
1861
  }
1813
- }, Ut = (e, t, n, r = ".", i = !0) => {
1814
- let a = wt(e, t, n);
1815
- return !a && i && R(n) && (a = U(e, n, r), a === void 0 && (a = U(t, n, r))), a;
1816
- }, Y = (e) => e.replace(/\$/g, "$$$$"), X = class {
1862
+ }, Xt = (e, t, n, r = ".", i = !0) => {
1863
+ let a = jt(e, t, n);
1864
+ return !a && i && z(n) && (a = W(e, n, r), a === void 0 && (a = W(t, n, r))), a;
1865
+ }, X = (e) => e.replace(/\$/g, "$$$$"), Zt = class {
1817
1866
  constructor(e = {}) {
1818
- this.logger = G.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
1867
+ this.logger = K.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
1819
1868
  }
1820
1869
  init(e = {}) {
1821
1870
  e.interpolation ||= { escapeValue: !0 };
1822
1871
  let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: _ } = e.interpolation;
1823
- this.escape = t === void 0 ? Dt : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? H(i) : a || "{{", this.suffix = o ? H(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? H(d) : f || H("$t("), this.nestingSuffix = p ? H(p) : m || H(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ !== void 0 && _, this.resetRegExp();
1872
+ this.escape = t === void 0 ? Pt : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? U(i) : a || "{{", this.suffix = o ? U(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? U(d) : f || U("$t("), this.nestingSuffix = p ? U(p) : m || U(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ !== void 0 && _, this.resetRegExp();
1824
1873
  }
1825
1874
  reset() {
1826
1875
  this.options && this.init(this.options);
@@ -1832,7 +1881,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1832
1881
  interpolate(e, t, n, r) {
1833
1882
  let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
1834
1883
  if (e.indexOf(this.formatSeparator) < 0) {
1835
- let i = Ut(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
1884
+ let i = Xt(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
1836
1885
  return this.alwaysFormat ? this.format(i, void 0, n, {
1837
1886
  ...r,
1838
1887
  ...t,
@@ -1840,7 +1889,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1840
1889
  }) : i;
1841
1890
  }
1842
1891
  let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
1843
- return this.format(Ut(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
1892
+ return this.format(Xt(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
1844
1893
  ...r,
1845
1894
  ...t,
1846
1895
  interpolationkey: a
@@ -1850,22 +1899,22 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1850
1899
  let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
1851
1900
  return [{
1852
1901
  regex: this.regexpUnescape,
1853
- safeValue: (e) => Y(e)
1902
+ safeValue: (e) => X(e)
1854
1903
  }, {
1855
1904
  regex: this.regexp,
1856
- safeValue: (e) => this.escapeValue ? Y(this.escape(e)) : Y(e)
1905
+ safeValue: (e) => this.escapeValue ? X(this.escape(e)) : X(e)
1857
1906
  }].forEach((t) => {
1858
1907
  for (o = 0; i = t.regex.exec(e);) {
1859
1908
  let n = i[1].trim();
1860
1909
  if (a = c(n), a === void 0) if (typeof l == "function") {
1861
1910
  let t = l(e, i, r);
1862
- a = R(t) ? t : "";
1911
+ a = z(t) ? t : "";
1863
1912
  } else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
1864
1913
  else if (u) {
1865
1914
  a = i[0];
1866
1915
  continue;
1867
1916
  } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
1868
- else !R(a) && !this.useRawValueToEscape && (a = _t(a));
1917
+ else !z(a) && !this.useRawValueToEscape && (a = wt(a));
1869
1918
  let s = t.safeValue(a);
1870
1919
  if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
1871
1920
  }
@@ -1875,7 +1924,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1875
1924
  let r, i, a, o = (e, t) => {
1876
1925
  let n = this.nestingOptionsSeparator;
1877
1926
  if (e.indexOf(n) < 0) return e;
1878
- let r = e.split(RegExp(`${H(n)}[ ]*{`)), i = `{${r[1]}`;
1927
+ let r = e.split(RegExp(`${U(n)}[ ]*{`)), i = `{${r[1]}`;
1879
1928
  e = r[0], i = this.interpolate(i, a);
1880
1929
  let o = i.match(/'/g), s = i.match(/"/g);
1881
1930
  ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
@@ -1891,17 +1940,17 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1891
1940
  };
1892
1941
  for (; r = this.nestingRegexp.exec(e);) {
1893
1942
  let s = [];
1894
- a = { ...n }, a = a.replace && !R(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
1943
+ a = { ...n }, a = a.replace && !z(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
1895
1944
  let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
1896
- if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !R(i)) return i;
1897
- R(i) || (i = _t(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
1945
+ if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !z(i)) return i;
1946
+ z(i) || (i = wt(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
1898
1947
  ...n,
1899
1948
  interpolationkey: r[1].trim()
1900
1949
  }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
1901
1950
  }
1902
1951
  return e;
1903
1952
  }
1904
- }, Wt = (e) => {
1953
+ }, Qt = (e) => {
1905
1954
  let t = e.toLowerCase().trim(), n = {};
1906
1955
  if (e.indexOf("(") > -1) {
1907
1956
  let r = e.split("(");
@@ -1918,7 +1967,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1918
1967
  formatName: t,
1919
1968
  formatOptions: n
1920
1969
  };
1921
- }, Gt = (e) => {
1970
+ }, $t = (e) => {
1922
1971
  let t = {};
1923
1972
  return (n, r, i) => {
1924
1973
  let a = i;
@@ -1927,15 +1976,15 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1927
1976
  [i.interpolationkey]: void 0
1928
1977
  });
1929
1978
  let o = r + JSON.stringify(a), s = t[o];
1930
- return s || (s = e(W(r), i), t[o] = s), s(n);
1979
+ return s || (s = e(G(r), i), t[o] = s), s(n);
1931
1980
  };
1932
- }, Kt = (e) => (t, n, r) => e(W(n), r)(t), qt = class {
1981
+ }, en = (e) => (t, n, r) => e(G(n), r)(t), tn = class {
1933
1982
  constructor(e = {}) {
1934
- this.logger = G.create("formatter"), this.options = e, this.init(e);
1983
+ this.logger = K.create("formatter"), this.options = e, this.init(e);
1935
1984
  }
1936
1985
  init(e, t = { interpolation: {} }) {
1937
1986
  this.formatSeparator = t.interpolation.formatSeparator || ",";
1938
- let n = t.cacheInBuiltFormats ? Gt : Kt;
1987
+ let n = t.cacheInBuiltFormats ? $t : en;
1939
1988
  this.formats = {
1940
1989
  number: n((e, t) => {
1941
1990
  let n = new Intl.NumberFormat(e, { ...t });
@@ -1966,7 +2015,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1966
2015
  this.formats[e.toLowerCase().trim()] = t;
1967
2016
  }
1968
2017
  addCached(e, t) {
1969
- this.formats[e.toLowerCase().trim()] = Gt(t);
2018
+ this.formats[e.toLowerCase().trim()] = $t(t);
1970
2019
  }
1971
2020
  format(e, t, n, r = {}) {
1972
2021
  let i = t.split(this.formatSeparator);
@@ -1975,7 +2024,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1975
2024
  i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
1976
2025
  }
1977
2026
  return i.reduce((e, t) => {
1978
- let { formatName: i, formatOptions: a } = Wt(t);
2027
+ let { formatName: i, formatOptions: a } = Qt(t);
1979
2028
  if (this.formats[i]) {
1980
2029
  let t = e;
1981
2030
  try {
@@ -1993,11 +2042,11 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
1993
2042
  return e;
1994
2043
  }, e);
1995
2044
  }
1996
- }, Jt = (e, t) => {
2045
+ }, nn = (e, t) => {
1997
2046
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
1998
- }, Yt = class extends K {
2047
+ }, rn = class extends q {
1999
2048
  constructor(e, t, n, r = {}) {
2000
- super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = G.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
2049
+ super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = K.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
2001
2050
  }
2002
2051
  queueLoad(e, t, n, r) {
2003
2052
  let i = {}, a = {}, o = {}, s = {};
@@ -2025,7 +2074,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2025
2074
  t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
2026
2075
  let o = {};
2027
2076
  this.queue.forEach((n) => {
2028
- Ct(n.loaded, [i], a), Jt(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
2077
+ At(n.loaded, [i], a), nn(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
2029
2078
  o[e] || (o[e] = {});
2030
2079
  let t = n.loaded[e];
2031
2080
  t.length && t.forEach((t) => {
@@ -2074,7 +2123,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2074
2123
  }
2075
2124
  prepareLoading(e, t, n = {}, r) {
2076
2125
  if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
2077
- R(e) && (e = this.languageUtils.toResolveHierarchy(e)), R(t) && (t = [t]);
2126
+ z(e) && (e = this.languageUtils.toResolveHierarchy(e)), z(t) && (t = [t]);
2078
2127
  let i = this.queueLoad(e, t, n, r);
2079
2128
  if (!i.toLoad.length) return i.pending.length || r(), null;
2080
2129
  i.toLoad.forEach((e) => {
@@ -2150,7 +2199,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2150
2199
  appendNamespaceToCIMode: !1,
2151
2200
  overloadTranslationOptionHandler: (e) => {
2152
2201
  let t = {};
2153
- if (typeof e[1] == "object" && (t = e[1]), R(e[1]) && (t.defaultValue = e[1]), R(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
2202
+ if (typeof e[1] == "object" && (t = e[1]), z(e[1]) && (t.defaultValue = e[1]), z(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
2154
2203
  let n = e[3] || e[2];
2155
2204
  Object.keys(n).forEach((e) => {
2156
2205
  t[e] = n[e];
@@ -2172,15 +2221,15 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2172
2221
  skipOnVariables: !0
2173
2222
  },
2174
2223
  cacheInBuiltFormats: !0
2175
- }), Xt = (e) => (R(e.ns) && (e.ns = [e.ns]), R(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), R(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), Q = () => {}, Zt = (e) => {
2224
+ }), an = (e) => (z(e.ns) && (e.ns = [e.ns]), z(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), z(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), Q = () => {}, on = (e) => {
2176
2225
  Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
2177
2226
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
2178
2227
  });
2179
- }, Qt = "__i18next_supportNoticeShown", $t = () => !!(typeof globalThis < "u" && globalThis[Qt] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), en = () => {
2180
- typeof globalThis < "u" && (globalThis[Qt] = !0);
2181
- }, tn = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), $ = class e extends K {
2228
+ }, sn = "__i18next_supportNoticeShown", cn = () => !!(typeof globalThis < "u" && globalThis[sn] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), ln = () => {
2229
+ typeof globalThis < "u" && (globalThis[sn] = !0);
2230
+ }, un = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), $ = class e extends q {
2182
2231
  constructor(e = {}, t) {
2183
- if (super(), this.options = Xt(e), this.services = {}, this.logger = G, this.modules = { external: [] }, Zt(this), t && !this.isInitialized && !e.isClone) {
2232
+ if (super(), this.options = an(e), this.services = {}, this.logger = K, this.modules = { external: [] }, on(this), t && !this.isInitialized && !e.isClone) {
2184
2233
  if (!this.options.initAsync) return this.init(e, t), this;
2185
2234
  setTimeout(() => {
2186
2235
  this.init(e, t);
@@ -2188,30 +2237,30 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2188
2237
  }
2189
2238
  }
2190
2239
  init(e = {}, t) {
2191
- this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (R(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
2240
+ this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (z(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
2192
2241
  let n = Z();
2193
2242
  this.options = {
2194
2243
  ...n,
2195
2244
  ...this.options,
2196
- ...Xt(e)
2245
+ ...an(e)
2197
2246
  }, this.options.interpolation = {
2198
2247
  ...n.interpolation,
2199
2248
  ...this.options.interpolation
2200
- }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !tn(this) && !$t() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), en());
2249
+ }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !un(this) && !cn() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), ln());
2201
2250
  let r = (e) => e ? typeof e == "function" ? new e() : e : null;
2202
2251
  if (!this.options.isClone) {
2203
- this.modules.logger ? G.init(r(this.modules.logger), this.options) : G.init(null, this.options);
2252
+ this.modules.logger ? K.init(r(this.modules.logger), this.options) : K.init(null, this.options);
2204
2253
  let e;
2205
- e = this.modules.formatter ? this.modules.formatter : qt;
2206
- let t = new zt(this.options);
2207
- this.store = new Nt(this.options.resources, this.options);
2254
+ e = this.modules.formatter ? this.modules.formatter : tn;
2255
+ let t = new Kt(this.options);
2256
+ this.store = new Bt(this.options.resources, this.options);
2208
2257
  let i = this.services;
2209
- i.logger = G, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Ht(t, {
2258
+ i.logger = K, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Yt(t, {
2210
2259
  prepend: this.options.pluralSeparator,
2211
2260
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
2212
- }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new X(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Yt(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
2261
+ }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new Zt(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new rn(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
2213
2262
  this.emit(e, ...t);
2214
- }), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new Rt(this.services, this.options), this.translator.on("*", (e, ...t) => {
2263
+ }), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new Gt(this.services, this.options), this.translator.on("*", (e, ...t) => {
2215
2264
  this.emit(e, ...t);
2216
2265
  }), this.modules.external.forEach((e) => {
2217
2266
  e.init && e.init(this);
@@ -2236,7 +2285,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2236
2285
  ].forEach((e) => {
2237
2286
  this[e] = (...t) => (this.store[e](...t), this);
2238
2287
  });
2239
- let i = z(), a = () => {
2288
+ let i = B(), a = () => {
2240
2289
  let e = (e, n) => {
2241
2290
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
2242
2291
  };
@@ -2246,7 +2295,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2246
2295
  return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
2247
2296
  }
2248
2297
  loadResources(e, t = Q) {
2249
- let n = t, r = R(e) ? e : this.language;
2298
+ let n = t, r = z(e) ? e : this.language;
2250
2299
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
2251
2300
  if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
2252
2301
  let e = [], t = (t) => {
@@ -2260,7 +2309,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2260
2309
  } else n(null);
2261
2310
  }
2262
2311
  reloadResources(e, t, n) {
2263
- let r = z();
2312
+ let r = B();
2264
2313
  return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= Q, this.services.backendConnector.reload(e, t, (e) => {
2265
2314
  r.resolve(), n(e);
2266
2315
  }), r;
@@ -2268,7 +2317,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2268
2317
  use(e) {
2269
2318
  if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
2270
2319
  if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
2271
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Pt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
2320
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Vt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
2272
2321
  }
2273
2322
  setResolvedLanguage(e) {
2274
2323
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -2284,7 +2333,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2284
2333
  }
2285
2334
  changeLanguage(e, t) {
2286
2335
  this.isLanguageChangingTo = e;
2287
- let n = z();
2336
+ let n = B();
2288
2337
  this.emit("languageChanging", e);
2289
2338
  let r = (e) => {
2290
2339
  this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
@@ -2292,7 +2341,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2292
2341
  a ? this.isLanguageChangingTo === e && (r(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, n.resolve((...e) => this.t(...e)), t && t(i, (...e) => this.t(...e));
2293
2342
  }, a = (t) => {
2294
2343
  !e && !t && this.services.languageDetector && (t = []);
2295
- let n = R(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(R(t) ? [t] : t);
2344
+ let n = z(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(z(t) ? [t] : t);
2296
2345
  a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
2297
2346
  i(e, a);
2298
2347
  });
@@ -2307,11 +2356,11 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2307
2356
  ...this.options,
2308
2357
  ...a
2309
2358
  };
2310
- typeof a.keyPrefix == "function" && (a.keyPrefix = q(a.keyPrefix, o));
2359
+ typeof a.keyPrefix == "function" && (a.keyPrefix = J(a.keyPrefix, o));
2311
2360
  let s = this.options.keySeparator || ".", c;
2312
- return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = q(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = q(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
2361
+ return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = J(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = J(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
2313
2362
  };
2314
- return R(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
2363
+ return z(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
2315
2364
  }
2316
2365
  t(...e) {
2317
2366
  return this.translator?.translate(...e);
@@ -2338,16 +2387,16 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2338
2387
  return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
2339
2388
  }
2340
2389
  loadNamespaces(e, t) {
2341
- let n = z();
2342
- return this.options.ns ? (R(e) && (e = [e]), e.forEach((e) => {
2390
+ let n = B();
2391
+ return this.options.ns ? (z(e) && (e = [e]), e.forEach((e) => {
2343
2392
  this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
2344
2393
  }), this.loadResources((e) => {
2345
2394
  n.resolve(), t && t(e);
2346
2395
  }), n) : (t && t(), Promise.resolve());
2347
2396
  }
2348
2397
  loadLanguages(e, t) {
2349
- let n = z();
2350
- R(e) && (e = [e]);
2398
+ let n = B();
2399
+ z(e) && (e = [e]);
2351
2400
  let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
2352
2401
  return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
2353
2402
  n.resolve(), t && t(e);
@@ -2362,7 +2411,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2362
2411
  if (e && e.direction) return e.direction;
2363
2412
  }
2364
2413
  } catch {}
2365
- let t = /* @__PURE__ */ "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".split("."), n = this.services?.languageUtils || new zt(Z());
2414
+ let t = /* @__PURE__ */ "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".split("."), n = this.services?.languageUtils || new Kt(Z());
2366
2415
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
2367
2416
  }
2368
2417
  static createInstance(t = {}, n) {
@@ -2383,7 +2432,7 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2383
2432
  "language"
2384
2433
  ].forEach((e) => {
2385
2434
  a[e] = this[e];
2386
- }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new Nt(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
2435
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new Bt(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
2387
2436
  let e = {
2388
2437
  ...Z().interpolation,
2389
2438
  ...this.options.interpolation,
@@ -2392,9 +2441,9 @@ var Lt = {}, J = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
2392
2441
  ...i,
2393
2442
  interpolation: e
2394
2443
  };
2395
- a.services.interpolator = new X(n);
2444
+ a.services.interpolator = new Zt(n);
2396
2445
  }
2397
- return a.translator = new Rt(a.services, i), a.translator.on("*", (e, ...t) => {
2446
+ return a.translator = new Gt(a.services, i), a.translator.on("*", (e, ...t) => {
2398
2447
  a.emit(e, ...t);
2399
2448
  }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
2400
2449
  }
@@ -2415,13 +2464,13 @@ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.ch
2415
2464
  lng: "en",
2416
2465
  showSupportNotice: !1,
2417
2466
  resources: {
2418
- en: ht,
2419
- es: gt
2467
+ en: St,
2468
+ es: Ct
2420
2469
  }
2421
2470
  });
2422
2471
  //#endregion
2423
2472
  //#region src/i18n.ts
2424
- var { translator: nn } = {
2473
+ var { translator: dn } = {
2425
2474
  translator: {
2426
2475
  ...$,
2427
2476
  t: (e, t) => {
@@ -2453,13 +2502,13 @@ var { translator: nn } = {
2453
2502
  label: "Spanish"
2454
2503
  }]
2455
2504
  };
2456
- function rn(e, t) {
2457
- return nn.t(`translation:simpleCloze:${e}`, { lng: t });
2505
+ function fn(e, t) {
2506
+ return dn.t(`translation:simpleCloze:${e}`, { lng: t });
2458
2507
  }
2459
- function an(e, t) {
2460
- return nn.t(`common:${e}`, { lng: t });
2508
+ function pn(e, t) {
2509
+ return dn.t(`common:${e}`, { lng: t });
2461
2510
  }
2462
2511
  //#endregion
2463
- export { an as n, L as r, rn as t };
2512
+ export { pn as n, R as r, fn as t };
2464
2513
 
2465
- //# sourceMappingURL=i18n-CzkUQedD.js.map
2514
+ //# sourceMappingURL=i18n-CL6Kt4aa.js.map