@kingsimba/nc-ui 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,42 +1,43 @@
1
- var Ct = Object.defineProperty;
2
- var Lt = (n, e, t) => e in n ? Ct(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var G = (n, e, t) => Lt(n, typeof e != "symbol" ? e + "" : e, t);
1
+ var kt = Object.defineProperty;
2
+ var Ct = (n, e, t) => e in n ? kt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var G = (n, e, t) => Ct(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as p, jsxs as C } from "react/jsx-runtime";
5
- import Ee, { useState as z, useRef as X, useMemo as Te, useEffect as T, createContext as se, useContext as Z, useCallback as D, Suspense as At } from "react";
5
+ import Ee, { useState as z, useRef as X, useMemo as Te, useEffect as T, createContext as re, useContext as Z, useCallback as D, Suspense as Lt } from "react";
6
6
  import { createPortal as Ce } from "react-dom";
7
- import { R as Rt, C as $t, d as Ot, T as It, E as Pt, V as Et } from "./GeneratedIcons-BE4eggsw.js";
8
- function rt({
7
+ import { R as At, C as Rt, d as $t, T as Ot, E as It, V as Pt } from "./GeneratedIcons-BE4eggsw.js";
8
+ import { c as Et } from "./clsx-OuTLNxxd.js";
9
+ function st({
9
10
  size: n = "default",
10
11
  color: e,
11
12
  overlay: t = !1,
12
- className: r = ""
13
+ className: s = ""
13
14
  }) {
14
- const s = /* @__PURE__ */ p(
15
+ const r = /* @__PURE__ */ p(
15
16
  "div",
16
17
  {
17
- className: `nc-activity-indicator nc-${n} ${r}`,
18
+ className: `nc-activity-indicator nc-${n} ${s}`,
18
19
  style: e ? { borderTopColor: e } : void 0
19
20
  }
20
21
  );
21
- return t ? /* @__PURE__ */ p("div", { className: "nc-activity-indicator-overlay", children: s }) : s;
22
+ return t ? /* @__PURE__ */ p("div", { className: "nc-activity-indicator-overlay", children: r }) : r;
22
23
  }
23
- function ne({ variant: n = "default", block: e, size: t = "default", className: r, disabled: s, textSelectable: i, loading: o, onClick: a, children: c, ...u }) {
24
+ function ne({ variant: n = "default", block: e, size: t = "default", className: s, disabled: r, textSelectable: i, loading: o, onClick: a, children: c, ...u }) {
24
25
  const d = [
25
26
  "nc-button",
26
27
  n !== "default" ? `nc-${n}` : "",
27
28
  e ? "nc-block" : "",
28
29
  t === "small" ? "nc-small" : "",
29
30
  t === "large" ? "nc-large" : "",
30
- s || o ? "nc-disabled" : "",
31
+ r || o ? "nc-disabled" : "",
31
32
  i ? "nc-text-selectable" : "",
32
33
  o ? "nc-loading" : "",
33
- r ?? ""
34
+ s ?? ""
34
35
  ].filter(Boolean).join(" ");
35
36
  return /* @__PURE__ */ C(
36
37
  "button",
37
38
  {
38
39
  className: d,
39
- disabled: s || o,
40
+ disabled: r || o,
40
41
  onClick: (l) => {
41
42
  if (!o) {
42
43
  if (i) {
@@ -50,7 +51,7 @@ function ne({ variant: n = "default", block: e, size: t = "default", className:
50
51
  ...u,
51
52
  children: [
52
53
  o && /* @__PURE__ */ p(
53
- rt,
54
+ st,
54
55
  {
55
56
  size: "small",
56
57
  className: "nc-button-spinner",
@@ -62,33 +63,33 @@ function ne({ variant: n = "default", block: e, size: t = "default", className:
62
63
  }
63
64
  );
64
65
  }
65
- function Cr({ code: n, text: e, type: t, button: r, onAction: s }) {
66
+ function Cs({ code: n, text: e, type: t, button: s, onAction: r }) {
66
67
  return /* @__PURE__ */ C("div", { className: `nc-alert nc-${t}`, children: [
67
68
  /* @__PURE__ */ C("span", { className: `nc-alert-message nc-${t}`, children: [
68
69
  /* @__PURE__ */ p("span", { className: "nc-alert-code", children: n }),
69
70
  e
70
71
  ] }),
71
- r && /* @__PURE__ */ p("span", { className: "nc-alert-action", children: /* @__PURE__ */ p(
72
+ s && /* @__PURE__ */ p("span", { className: "nc-alert-action", children: /* @__PURE__ */ p(
72
73
  ne,
73
74
  {
74
75
  size: "small",
75
- variant: r.variant ?? (t === "error" ? "danger" : "warning"),
76
- onClick: s,
77
- children: r.text
76
+ variant: s.variant ?? (t === "error" ? "danger" : "warning"),
77
+ onClick: r,
78
+ children: s.text
78
79
  }
79
80
  ) })
80
81
  ] });
81
82
  }
82
- function Lr({
83
+ function Ls({
83
84
  percentage: n = 0.5,
84
85
  status: e = "discharging",
85
86
  darkMode: t = !1,
86
- colored: r = !1
87
+ colored: s = !1
87
88
  }) {
88
- const s = Math.max(0, Math.min(1, Number(n) || 0));
89
+ const r = Math.max(0, Math.min(1, Number(n) || 0));
89
90
  let i;
90
- r ? s < 0.1 ? i = "var(--nc-danger)" : s < 0.2 ? i = "var(--nc-warning)" : i = "var(--nc-success)" : i = t ? "#ffffff" : "#000000";
91
- const o = t ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", a = 24, c = 14, u = 2, d = 0, h = 12, l = 0, f = 0, b = 0, v = a, g = c, y = g - l * 2, x = v - l * 2, A = Math.max(1, Math.min(4, g / 4)), m = s === 0 ? 0 : 0.05 + s * 0.95, w = a + u + h, S = 20, N = 0.65, M = Math.max(c, S * N), O = a + u + 1, B = (c - S * N) / 2;
91
+ s ? r < 0.1 ? i = "var(--nc-danger)" : r < 0.2 ? i = "var(--nc-warning)" : i = "var(--nc-success)" : i = t ? "#ffffff" : "#000000";
92
+ const o = t ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", a = 24, c = 14, u = 2, d = 0, h = 12, l = 0, f = 0, b = 0, v = a, g = c, y = g - l * 2, x = v - l * 2, A = Math.max(1, Math.min(4, g / 4)), m = r === 0 ? 0 : 0.05 + r * 0.95, w = a + u + h, S = 20, N = 0.65, M = Math.max(c, S * N), O = a + u + 1, B = (c - S * N) / 2;
92
93
  return /* @__PURE__ */ C(
93
94
  "svg",
94
95
  {
@@ -97,16 +98,16 @@ function Lr({
97
98
  height: M,
98
99
  viewBox: `0 0 ${w} ${M}`,
99
100
  role: "img",
100
- "aria-label": `Battery ${s === 0 ? "-" : Math.round(s * 100) + "%"} ${e}`,
101
+ "aria-label": `Battery ${r === 0 ? "-" : Math.round(r * 100) + "%"} ${e}`,
101
102
  children: [
102
103
  /* @__PURE__ */ C("defs", { children: [
103
- /* @__PURE__ */ p("mask", { id: `nc-battery-fill-mask-${s}`, children: /* @__PURE__ */ p("rect", { x: "0", y: "0", width: x * m, height: y, fill: "white" }) }),
104
- /* @__PURE__ */ C("mask", { id: `nc-battery-text-mask-${s}`, children: [
104
+ /* @__PURE__ */ p("mask", { id: `nc-battery-fill-mask-${r}`, children: /* @__PURE__ */ p("rect", { x: "0", y: "0", width: x * m, height: y, fill: "white" }) }),
105
+ /* @__PURE__ */ C("mask", { id: `nc-battery-text-mask-${r}`, children: [
105
106
  /* @__PURE__ */ p("rect", { x: "0", y: "0", width: w, height: M, fill: "white" }),
106
- /* @__PURE__ */ p("text", { x: f + v / 2, y: c - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: s === 0 ? "-" : Math.round(s * 100) })
107
+ /* @__PURE__ */ p("text", { x: f + v / 2, y: c - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: r === 0 ? "-" : Math.round(r * 100) })
107
108
  ] })
108
109
  ] }),
109
- /* @__PURE__ */ C("g", { mask: `url(#nc-battery-text-mask-${s})`, children: [
110
+ /* @__PURE__ */ C("g", { mask: `url(#nc-battery-text-mask-${r})`, children: [
110
111
  /* @__PURE__ */ p(
111
112
  "rect",
112
113
  {
@@ -129,7 +130,7 @@ function Lr({
129
130
  fill: i,
130
131
  rx: A,
131
132
  ry: A,
132
- mask: `url(#nc-battery-fill-mask-${s})`
133
+ mask: `url(#nc-battery-fill-mask-${r})`
133
134
  }
134
135
  ),
135
136
  /* @__PURE__ */ p(
@@ -141,7 +142,7 @@ function Lr({
141
142
  height: c * 0.48,
142
143
  rx: 0.8,
143
144
  ry: 0.8,
144
- fill: s === 1 ? i : o
145
+ fill: r === 1 ? i : o
145
146
  }
146
147
  ),
147
148
  e === "charging" ? /* @__PURE__ */ p("g", { transform: `translate(${O}, ${B}) scale(${N})`, fill: i, children: /* @__PURE__ */ p("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
@@ -150,21 +151,21 @@ function Lr({
150
151
  }
151
152
  );
152
153
  }
153
- function Ar({
154
+ function As({
154
155
  value: n,
155
156
  onChange: e,
156
157
  options: t,
157
- disabled: r,
158
- labels: s,
158
+ disabled: s,
159
+ labels: r,
159
160
  size: i = "default"
160
161
  }) {
161
162
  return /* @__PURE__ */ p("div", { className: `nc-button-group ${i === "small" ? "nc-small" : ""}`, children: t.map((o, a) => /* @__PURE__ */ p(
162
163
  "button",
163
164
  {
164
165
  className: `nc-button-group-item ${n === o ? "nc-active" : ""} ${a < t.length - 1 ? "nc-has-border" : ""}`,
165
- onClick: () => !r && e(o),
166
- disabled: r,
167
- children: s && s[o] ? s[o] : o
166
+ onClick: () => !s && e(o),
167
+ disabled: s,
168
+ children: r && r[o] ? r[o] : o
168
169
  },
169
170
  o
170
171
  )) });
@@ -181,8 +182,8 @@ function Tt({ size: n }) {
181
182
  }
182
183
  ) });
183
184
  }
184
- function Rr({ checked: n, onChange: e, disabled: t, label: r, size: s = "default", labelColor: i, style: o, className: a = "" }) {
185
- const c = s === "small";
185
+ function Rs({ checked: n, onChange: e, disabled: t, label: s, size: r = "default", labelColor: i, style: o, className: a = "" }) {
186
+ const c = r === "small";
186
187
  return /* @__PURE__ */ C(
187
188
  "label",
188
189
  {
@@ -202,10 +203,10 @@ function Rr({ checked: n, onChange: e, disabled: t, label: r, size: s = "default
202
203
  onKeyDown: (u) => {
203
204
  t || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), e(!n));
204
205
  },
205
- children: n && /* @__PURE__ */ p(Tt, { size: s })
206
+ children: n && /* @__PURE__ */ p(Tt, { size: r })
206
207
  }
207
208
  ),
208
- r && /* @__PURE__ */ p("span", { className: "nc-checkbox-text", style: i ? { color: i } : void 0, children: r })
209
+ s && /* @__PURE__ */ p("span", { className: "nc-checkbox-text", style: i ? { color: i } : void 0, children: s })
209
210
  ]
210
211
  }
211
212
  );
@@ -277,41 +278,41 @@ const Fe = {
277
278
  gotit: "Entendido"
278
279
  }
279
280
  }, Mt = ["en", "zh", "de", "th", "es"];
280
- let st = null;
281
+ let rt = null;
281
282
  function zt() {
282
283
  var t;
283
284
  if (typeof document > "u") return "en";
284
285
  const n = ((t = document.documentElement.lang) == null ? void 0 : t.toLowerCase()) || "";
285
286
  return Mt.find(
286
- (r) => n === r || n.startsWith(r + "-")
287
+ (s) => n === s || n.startsWith(s + "-")
287
288
  ) ?? "en";
288
289
  }
289
- function $r(n) {
290
- st = n;
290
+ function $s(n) {
291
+ rt = n;
291
292
  }
292
293
  function jt() {
293
- return st ?? zt();
294
+ return rt ?? zt();
294
295
  }
295
296
  function V(n) {
296
297
  var t;
297
298
  const e = jt();
298
299
  return ((t = Fe[e]) == null ? void 0 : t[n]) ?? Fe.en[n] ?? n;
299
300
  }
300
- function Ft({ option: n, onChange: e, selected: t, highlighted: r, small: s }) {
301
+ function Ft({ option: n, onChange: e, selected: t, highlighted: s, small: r }) {
301
302
  const i = X(null);
302
303
  return T(() => {
303
- r && i.current && i.current.scrollIntoView({ block: "nearest" });
304
- }, [r]), /* @__PURE__ */ C(
304
+ s && i.current && i.current.scrollIntoView({ block: "nearest" });
305
+ }, [s]), /* @__PURE__ */ C(
305
306
  "div",
306
307
  {
307
308
  ref: i,
308
- className: `nc-combo-dropdown-option ${s ? "nc-small" : ""} ${r ? "nc-highlighted" : ""}`,
309
+ className: `nc-combo-dropdown-option ${r ? "nc-small" : ""} ${s ? "nc-highlighted" : ""}`,
309
310
  role: "option",
310
311
  onMouseDown: () => e(n.value),
311
312
  "aria-selected": t,
312
313
  style: {
313
314
  cursor: "pointer",
314
- background: r ? "rgba(59,130,246,0.18)" : t ? "rgba(59,130,246,0.12)" : void 0
315
+ background: s ? "rgba(59,130,246,0.18)" : t ? "rgba(59,130,246,0.12)" : void 0
315
316
  },
316
317
  children: [
317
318
  n.label,
@@ -328,18 +329,18 @@ function Dt({
328
329
  isOpen: n,
329
330
  options: e,
330
331
  onSelect: t,
331
- selectedValue: r,
332
- placement: s = "bottom",
332
+ selectedValue: s,
333
+ placement: r = "bottom",
333
334
  anchorRef: i,
334
335
  small: o,
335
336
  highlightedIndex: a = -1
336
337
  }) {
337
- const [c, u] = z({ top: 0, left: 0, width: 0 }), [d, h] = z(s);
338
+ const [c, u] = z({ top: 0, left: 0, width: 0 }), [d, h] = z(r);
338
339
  if (T(() => {
339
340
  if (n && i.current) {
340
341
  const f = i.current.getBoundingClientRect();
341
- let b = s;
342
- if (s === "bottom") {
342
+ let b = r;
343
+ if (r === "bottom") {
343
344
  const v = window.innerHeight - f.bottom, g = f.top;
344
345
  v < 320 && g > v && (b = "top");
345
346
  }
@@ -349,7 +350,7 @@ function Dt({
349
350
  width: f.width
350
351
  });
351
352
  }
352
- }, [n, i, s]), !n) return null;
353
+ }, [n, i, r]), !n) return null;
353
354
  const l = /* @__PURE__ */ p(
354
355
  "div",
355
356
  {
@@ -364,7 +365,7 @@ function Dt({
364
365
  maxHeight: 300,
365
366
  overflowY: "auto"
366
367
  },
367
- children: e.length === 0 ? /* @__PURE__ */ p("div", { className: `nc-combo-dropdown-option nc-no-results ${o ? "nc-small" : ""}`, children: V("noResults") }) : e.map((f, b) => /* @__PURE__ */ p(Ft, { option: f, onChange: t, selected: f.value === r, highlighted: b === a, small: o }, f.value))
368
+ children: e.length === 0 ? /* @__PURE__ */ p("div", { className: `nc-combo-dropdown-option nc-no-results ${o ? "nc-small" : ""}`, children: V("noResults") }) : e.map((f, b) => /* @__PURE__ */ p(Ft, { option: f, onChange: t, selected: f.value === s, highlighted: b === a, small: o }, f.value))
368
369
  }
369
370
  );
370
371
  return Ce(l, document.body);
@@ -387,18 +388,18 @@ function Vt({ open: n, onClick: e, small: t }) {
387
388
  {
388
389
  className: `nc-button nc-ghost nc-combo-button nc-combo-toggle ${t ? "nc-small" : ""} ${n ? "nc-open" : ""}`,
389
390
  onClick: e,
390
- onMouseDown: (r) => r.stopPropagation(),
391
+ onMouseDown: (s) => s.stopPropagation(),
391
392
  "aria-label": n ? "Close" : "Open",
392
393
  children: "▾"
393
394
  }
394
395
  );
395
396
  }
396
- function Or({
397
+ function Os({
397
398
  value: n,
398
399
  onChange: e,
399
400
  placeholder: t = "Select…",
400
- options: r,
401
- disabled: s,
401
+ options: s,
402
+ disabled: r,
402
403
  label: i,
403
404
  clearable: o = !0,
404
405
  allowTyping: a = !1,
@@ -409,23 +410,23 @@ function Or({
409
410
  }) {
410
411
  const [l, f] = z(!1), [b, v] = z(""), [g, y] = z(-1), x = X(null), A = X(null), m = u === "small", w = Te(() => {
411
412
  const R = b.toLowerCase();
412
- return a ? r.filter(($) => $.label.toLowerCase().includes(R)) : r;
413
- }, [r, b, a]);
413
+ return a ? s.filter(($) => $.label.toLowerCase().includes(R)) : s;
414
+ }, [s, b, a]);
414
415
  T(() => {
415
416
  l && y(-1);
416
417
  }, [l, w]), T(() => {
417
- if (!o && !n && r.length > 0 && e) {
418
- const R = r.find(($) => $.default) || r[0];
418
+ if (!o && !n && s.length > 0 && e) {
419
+ const R = s.find(($) => $.default) || s[0];
419
420
  e(R.value);
420
421
  }
421
- }, [o, n, r, e]), T(() => {
422
+ }, [o, n, s, e]), T(() => {
422
423
  function R($) {
423
424
  var E;
424
425
  $.target instanceof Node && x.current && ((E = x.current.parentElement) != null && E.contains($.target) || f(!1));
425
426
  }
426
427
  return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
427
428
  }, []);
428
- const S = r.find((R) => R.value === n), N = S && o, M = !s && !N, O = !(l && a) && !!S, B = (R, $ = !1) => {
429
+ const S = s.find((R) => R.value === n), N = S && o, M = !r && !N, O = !(l && a) && !!S, B = (R, $ = !1) => {
429
430
  var E;
430
431
  e == null || e(R), f(!1), v(""), $ && ((E = x.current) == null || E.blur());
431
432
  }, U = () => {
@@ -464,7 +465,7 @@ function Or({
464
465
  ref: A,
465
466
  style: { position: "relative", display: "flex", alignItems: "center" },
466
467
  onMouseDown: (R) => {
467
- s || a && R.target === x.current || (f(($) => (!$ && a && S && v(S.label), !$)), a && !l && setTimeout(() => {
468
+ r || a && R.target === x.current || (f(($) => (!$ && a && S && v(S.label), !$)), a && !l && setTimeout(() => {
468
469
  var $, E;
469
470
  ($ = x.current) == null || $.focus(), (E = x.current) == null || E.select();
470
471
  }, 0));
@@ -478,7 +479,7 @@ function Or({
478
479
  placeholder: t,
479
480
  onFocus: () => {
480
481
  var R;
481
- !s && a && (f(!0), S && (v(S.label), setTimeout(() => {
482
+ !r && a && (f(!0), S && (v(S.label), setTimeout(() => {
482
483
  var $;
483
484
  return ($ = x.current) == null ? void 0 : $.select();
484
485
  }, 0))), a || (R = x.current) == null || R.blur();
@@ -486,7 +487,7 @@ function Or({
486
487
  onChange: (R) => a && v(R.target.value),
487
488
  onKeyDown: I,
488
489
  value: l && a ? b : (S == null ? void 0 : S.label) || "",
489
- readOnly: s || !a,
490
+ readOnly: r || !a,
490
491
  style: {
491
492
  width: "100%",
492
493
  paddingRight: M || N ? m ? 32 : 44 : 12,
@@ -533,85 +534,85 @@ function Or({
533
534
  /* @__PURE__ */ p(Dt, { isOpen: l, options: w, onSelect: B, selectedValue: n, placement: c, anchorRef: A, small: m, highlightedIndex: g })
534
535
  ] });
535
536
  }
536
- function Ir({ onClick: n, loading: e = !1, disabled: t = !1, size: r = "default", title: s, "aria-label": i }) {
537
+ function Is({ onClick: n, loading: e = !1, disabled: t = !1, size: s = "default", title: r, "aria-label": i }) {
537
538
  return /* @__PURE__ */ p(
538
539
  "button",
539
540
  {
540
541
  className: "nc-icon-button",
541
542
  onClick: n,
542
543
  disabled: t || e,
543
- title: s ?? (e ? "Refreshing..." : "Refresh"),
544
+ title: r ?? (e ? "Refreshing..." : "Refresh"),
544
545
  "aria-label": i ?? (e ? "Refreshing" : "Refresh"),
545
- "data-size": r,
546
- children: /* @__PURE__ */ p(Rt, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: e ? "nc-spinning" : "" })
546
+ "data-size": s,
547
+ children: /* @__PURE__ */ p(At, { size: s === "small" ? 14 : s === "large" ? 20 : 18, className: e ? "nc-spinning" : "" })
547
548
  }
548
549
  );
549
550
  }
550
- function it({ onClick: n, disabled: e = !1, size: t = "default", title: r = "Close", "aria-label": s = "Close" }) {
551
+ function it({ onClick: n, disabled: e = !1, size: t = "default", title: s = "Close", "aria-label": r = "Close" }) {
551
552
  return /* @__PURE__ */ p(
552
553
  "button",
553
554
  {
554
555
  className: "nc-icon-button nc-icon-button-close",
555
556
  onClick: n,
556
557
  disabled: e,
557
- title: r,
558
- "aria-label": s,
558
+ title: s,
559
+ "aria-label": r,
559
560
  "data-size": t,
560
- children: /* @__PURE__ */ p($t, { size: t === "small" ? 14 : t === "large" ? 20 : 18 })
561
+ children: /* @__PURE__ */ p(Rt, { size: t === "small" ? 14 : t === "large" ? 20 : 18 })
561
562
  }
562
563
  );
563
564
  }
564
- function Pr({ onClick: n, disabled: e = !1, size: t = "default", title: r = "Edit", "aria-label": s = "Edit" }) {
565
+ function Ps({ onClick: n, disabled: e = !1, size: t = "default", title: s = "Edit", "aria-label": r = "Edit" }) {
565
566
  return /* @__PURE__ */ p(
566
567
  "button",
567
568
  {
568
569
  className: "nc-icon-button nc-icon-button-edit",
569
570
  onClick: n,
570
571
  disabled: e,
571
- title: r,
572
- "aria-label": s,
572
+ title: s,
573
+ "aria-label": r,
573
574
  "data-size": t,
574
- children: /* @__PURE__ */ p(Ot, { size: t === "small" ? 14 : t === "large" ? 20 : 18 })
575
+ children: /* @__PURE__ */ p($t, { size: t === "small" ? 14 : t === "large" ? 20 : 18 })
575
576
  }
576
577
  );
577
578
  }
578
- function Er({ onClick: n, disabled: e = !1, size: t = "default", title: r = "Delete", "aria-label": s = "Delete" }) {
579
+ function Es({ onClick: n, disabled: e = !1, size: t = "default", title: s = "Delete", "aria-label": r = "Delete" }) {
579
580
  return /* @__PURE__ */ p(
580
581
  "button",
581
582
  {
582
583
  className: "nc-icon-button nc-icon-button-trash",
583
584
  onClick: n,
584
585
  disabled: e,
585
- title: r,
586
- "aria-label": s,
586
+ title: s,
587
+ "aria-label": r,
587
588
  "data-size": t,
588
- children: /* @__PURE__ */ p(It, { size: t === "small" ? 14 : t === "large" ? 20 : 18 })
589
+ children: /* @__PURE__ */ p(Ot, { size: t === "small" ? 14 : t === "large" ? 20 : 18 })
589
590
  }
590
591
  );
591
592
  }
592
- function Tr({ onClick: n, disabled: e = !1, children: t, title: r, "aria-label": s, size: i = "default" }) {
593
+ function Ts({ onClick: n, disabled: e = !1, children: t, title: s, "aria-label": r, size: i = "default" }) {
593
594
  return /* @__PURE__ */ p(
594
595
  "button",
595
596
  {
596
597
  className: "nc-hyperlink",
597
598
  onClick: n,
598
599
  disabled: e,
599
- title: r,
600
- "aria-label": s,
600
+ title: s,
601
+ "aria-label": r,
601
602
  "data-size": i,
602
603
  children: t
603
604
  }
604
605
  );
605
606
  }
606
- function Mr({
607
+ function Ms({
607
608
  open: n,
608
609
  onClose: e,
609
610
  options: t,
610
- anchorRef: r,
611
- anchor: s,
611
+ anchorRef: s,
612
+ anchor: r,
612
613
  preferredDirection: i = "down"
613
614
  }) {
614
- const o = X(null), [a, c] = z({ top: 0, left: 0 }), u = s || (r == null ? void 0 : r.current);
615
+ const o = X(null), [a, c] = z({ top: 0, left: 0 }), u = r || (s == null ? void 0 : s.current);
615
616
  if (T(() => {
616
617
  if (!n || !u || !o.current) return;
617
618
  const h = u.getBoundingClientRect(), l = o.current.getBoundingClientRect(), f = window.innerHeight, b = h.bottom + 8, v = b + l.height <= f - 8;
@@ -672,7 +673,7 @@ function Mr({
672
673
  document.body
673
674
  );
674
675
  }
675
- const ot = se(null);
676
+ const ot = re(null);
676
677
  function Ht() {
677
678
  const n = Z(ot);
678
679
  if (!n)
@@ -680,21 +681,21 @@ function Ht() {
680
681
  return n;
681
682
  }
682
683
  function ie({ children: n, onClick: e, ...t }) {
683
- const { close: r } = Ht();
684
+ const { close: s } = Ht();
684
685
  return /* @__PURE__ */ p(ne, { onClick: (i) => {
685
- e == null || e(i), r();
686
+ e == null || e(i), s();
686
687
  }, ...t, children: n ?? V("close") });
687
688
  }
688
689
  function oe(n) {
689
690
  if (n !== void 0)
690
691
  return typeof n == "number" ? `${n}px` : n;
691
692
  }
692
- function zr({
693
+ function zs({
693
694
  open: n,
694
695
  onClose: e,
695
696
  title: t,
696
- children: r,
697
- width: s = 360,
697
+ children: s,
698
+ width: r = 360,
698
699
  height: i,
699
700
  minWidth: o,
700
701
  minHeight: a,
@@ -759,7 +760,7 @@ function zr({
759
760
  ref: w,
760
761
  className: "nc-dialog-container",
761
762
  style: {
762
- width: oe(s),
763
+ width: oe(r),
763
764
  height: oe(i),
764
765
  minWidth: oe(o),
765
766
  minHeight: oe(a),
@@ -775,7 +776,7 @@ function zr({
775
776
  /* @__PURE__ */ p("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: t }),
776
777
  /* @__PURE__ */ p(it, { onClick: e, "aria-label": "Close dialog" })
777
778
  ] }),
778
- /* @__PURE__ */ p("div", { className: "nc-dialog-content", children: r }),
779
+ /* @__PURE__ */ p("div", { className: "nc-dialog-content", children: s }),
779
780
  M()
780
781
  ]
781
782
  }
@@ -783,13 +784,13 @@ function zr({
783
784
  return A ? Ce(O, document.body) : O;
784
785
  }
785
786
  function Kt({ onClick: n, size: e = "default", rightOffset: t = 4 }) {
786
- const r = e === "small" ? 28 : 34;
787
+ const s = e === "small" ? 28 : 34;
787
788
  return /* @__PURE__ */ p(
788
789
  "button",
789
790
  {
790
791
  className: "nc-button nc-ghost",
791
792
  onClick: n,
792
- onMouseDown: (s) => s.stopPropagation(),
793
+ onMouseDown: (r) => r.stopPropagation(),
793
794
  tabIndex: -1,
794
795
  "aria-label": "Clear input",
795
796
  style: {
@@ -797,8 +798,8 @@ function Kt({ onClick: n, size: e = "default", rightOffset: t = 4 }) {
797
798
  right: t,
798
799
  padding: 0,
799
800
  minHeight: 0,
800
- height: r,
801
- width: r,
801
+ height: s,
802
+ width: s,
802
803
  border: "none",
803
804
  display: "flex",
804
805
  alignItems: "center",
@@ -810,7 +811,7 @@ function Kt({ onClick: n, size: e = "default", rightOffset: t = 4 }) {
810
811
  );
811
812
  }
812
813
  function Ut({ visible: n, onClick: e, size: t = "default" }) {
813
- const r = t === "small" ? 28 : 34, s = t === "small" ? 16 : 18;
814
+ const s = t === "small" ? 28 : 34, r = t === "small" ? 16 : 18;
814
815
  return /* @__PURE__ */ p(
815
816
  "button",
816
817
  {
@@ -824,23 +825,23 @@ function Ut({ visible: n, onClick: e, size: t = "default" }) {
824
825
  right: 4,
825
826
  padding: 0,
826
827
  minHeight: 0,
827
- height: r,
828
- width: r,
828
+ height: s,
829
+ width: s,
829
830
  border: "none",
830
831
  display: "flex",
831
832
  alignItems: "center",
832
833
  justifyContent: "center"
833
834
  },
834
- children: n ? /* @__PURE__ */ p(Pt, { size: s }) : /* @__PURE__ */ p(Et, { size: s })
835
+ children: n ? /* @__PURE__ */ p(It, { size: r }) : /* @__PURE__ */ p(Pt, { size: r })
835
836
  }
836
837
  );
837
838
  }
838
- function jr({
839
+ function js({
839
840
  value: n = "",
840
841
  onChange: e,
841
842
  onEnter: t,
842
- onClear: r,
843
- placeholder: s,
843
+ onClear: s,
844
+ placeholder: r,
844
845
  disabled: i,
845
846
  label: o,
846
847
  clearable: a = !0,
@@ -855,7 +856,7 @@ function jr({
855
856
  x && y ? m = A * 2 : (x || y) && (m = A);
856
857
  const w = () => {
857
858
  var O;
858
- e == null || e(""), r == null || r(), (O = f.current) == null || O.focus();
859
+ e == null || e(""), s == null || s(), (O = f.current) == null || O.focus();
859
860
  }, S = (O) => {
860
861
  O.key === "Enter" && (t == null || t());
861
862
  }, N = (O) => {
@@ -870,7 +871,7 @@ function jr({
870
871
  ref: f,
871
872
  type: g && b ? "text" : c,
872
873
  className: M,
873
- placeholder: s,
874
+ placeholder: r,
874
875
  value: n,
875
876
  onChange: N,
876
877
  onKeyDown: S,
@@ -886,12 +887,12 @@ function jr({
886
887
  ] })
887
888
  ] });
888
889
  }
889
- function Fr({
890
+ function Fs({
890
891
  children: n,
891
892
  onClick: e,
892
893
  showBorder: t = !0,
893
- selectable: r = !1,
894
- style: s
894
+ selectable: s = !1,
895
+ style: r
895
896
  }) {
896
897
  const [i, o] = Ee.useState(!1);
897
898
  return /* @__PURE__ */ p(
@@ -899,7 +900,7 @@ function Fr({
899
900
  {
900
901
  onClick: (c) => {
901
902
  if (e) {
902
- if (r) {
903
+ if (s) {
903
904
  const u = window.getSelection();
904
905
  if (u && u.toString().length > 0)
905
906
  return;
@@ -912,17 +913,17 @@ function Fr({
912
913
  onMouseLeave: () => o(!1),
913
914
  style: {
914
915
  cursor: e ? "pointer" : "default",
915
- userSelect: r ? "text" : void 0,
916
+ userSelect: s ? "text" : void 0,
916
917
  borderBottom: t ? void 0 : "none",
917
- ...s
918
+ ...r
918
919
  },
919
920
  className: `nc-list-group-item ${e ? "nc-list-group-item-clickable" : ""} ${i ? "nc-list-group-item-active" : ""}`,
920
921
  children: /* @__PURE__ */ p("div", { style: { flex: 1 }, children: n })
921
922
  }
922
923
  );
923
924
  }
924
- function Dr({ title: n, titleTools: e, children: t, style: r }) {
925
- return /* @__PURE__ */ C("div", { className: "nc-list-group", style: r, children: [
925
+ function Ds({ title: n, titleTools: e, children: t, style: s }) {
926
+ return /* @__PURE__ */ C("div", { className: "nc-list-group", style: s, children: [
926
927
  (n || e) && /* @__PURE__ */ C("div", { className: "nc-list-group-title", children: [
927
928
  /* @__PURE__ */ p("div", { children: n }),
928
929
  e && /* @__PURE__ */ p("div", { className: "nc-list-group-title-tools", children: e })
@@ -936,7 +937,7 @@ function Dr({ title: n, titleTools: e, children: t, style: r }) {
936
937
  )
937
938
  ] });
938
939
  }
939
- function Br({ values: n, onChange: e, options: t, placeholder: r = "Select…", label: s }) {
940
+ function Bs({ values: n, onChange: e, options: t, placeholder: s = "Select…", label: r }) {
940
941
  const [i, o] = z(!1), [a, c] = z(""), u = X(null), d = Te(() => t.filter((l) => l.label.toLowerCase().includes(a.toLowerCase())), [t, a]);
941
942
  T(() => {
942
943
  function l(f) {
@@ -948,9 +949,9 @@ function Br({ values: n, onChange: e, options: t, placeholder: r = "Select…",
948
949
  n.includes(l) ? e(n.filter((f) => f !== l)) : e([...n, l]);
949
950
  };
950
951
  return /* @__PURE__ */ C("div", { ref: u, className: "nc-col", style: { position: "relative" }, children: [
951
- s && /* @__PURE__ */ p("span", { className: "nc-label", children: s }),
952
+ r && /* @__PURE__ */ p("span", { className: "nc-label", children: r }),
952
953
  /* @__PURE__ */ C("div", { className: "nc-row", style: { flexWrap: "wrap", gap: 6, minHeight: 42, alignItems: "center", border: "1px solid var(--nc-button-border)", borderRadius: 8, background: "var(--nc-button-bg)", padding: "4px 8px" }, children: [
953
- n.length === 0 && /* @__PURE__ */ p("span", { className: "nc-label", children: r }),
954
+ n.length === 0 && /* @__PURE__ */ p("span", { className: "nc-label", children: s }),
954
955
  n.map((l) => {
955
956
  const f = t.find((b) => b.value === l);
956
957
  return f ? /* @__PURE__ */ C("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
@@ -990,13 +991,13 @@ function Br({ values: n, onChange: e, options: t, placeholder: r = "Select…",
990
991
  ] })
991
992
  ] });
992
993
  }
993
- function Vr({ value: n, onChange: e, min: t, max: r, step: s = 1, label: i, disabled: o, size: a = "default" }) {
994
+ function Vs({ value: n, onChange: e, min: t, max: s, step: r = 1, label: i, disabled: o, size: a = "default" }) {
994
995
  const c = a === "small", u = () => {
995
- const l = n - s;
996
+ const l = n - r;
996
997
  t !== void 0 && l < t || e(parseFloat(l.toFixed(10)));
997
998
  }, d = () => {
998
- const l = n + s;
999
- r !== void 0 && l > r || e(parseFloat(l.toFixed(10)));
999
+ const l = n + r;
1000
+ s !== void 0 && l > s || e(parseFloat(l.toFixed(10)));
1000
1001
  };
1001
1002
  return /* @__PURE__ */ C("div", { className: `nc-col nc-number-input-col ${c ? "nc-small" : ""}`, children: [
1002
1003
  i && /* @__PURE__ */ p("span", { className: `nc-label ${c ? "nc-small" : ""}`, children: i }),
@@ -1009,11 +1010,11 @@ function Vr({ value: n, onChange: e, min: t, max: r, step: s = 1, label: i, disa
1009
1010
  value: n,
1010
1011
  onChange: (l) => {
1011
1012
  const f = parseFloat(l.target.value);
1012
- isNaN(f) || t !== void 0 && f < t || r !== void 0 && f > r || e(f);
1013
+ isNaN(f) || t !== void 0 && f < t || s !== void 0 && f > s || e(f);
1013
1014
  },
1014
1015
  min: t,
1015
- max: r,
1016
- step: s,
1016
+ max: s,
1017
+ step: r,
1017
1018
  disabled: o
1018
1019
  }
1019
1020
  ),
@@ -1031,19 +1032,19 @@ function Vr({ value: n, onChange: e, min: t, max: r, step: s = 1, label: i, disa
1031
1032
  {
1032
1033
  className: `nc-button nc-ghost nc-number-input-button ${c ? "nc-small" : ""}`,
1033
1034
  onClick: d,
1034
- disabled: o || r !== void 0 && n >= r,
1035
+ disabled: o || s !== void 0 && n >= s,
1035
1036
  children: "+"
1036
1037
  }
1037
1038
  )
1038
1039
  ] })
1039
1040
  ] });
1040
1041
  }
1041
- function Hr({
1042
+ function Hs({
1042
1043
  value: n,
1043
1044
  onChange: e,
1044
1045
  min: t = 0,
1045
- max: r = 100,
1046
- step: s = 1,
1046
+ max: s = 100,
1047
+ step: r = 1,
1047
1048
  label: i,
1048
1049
  disabled: o,
1049
1050
  showValue: a = !0,
@@ -1053,7 +1054,7 @@ function Hr({
1053
1054
  const d = (l) => {
1054
1055
  const f = parseFloat(l.target.value);
1055
1056
  e(f);
1056
- }, h = (n - t) / (r - t) * 100;
1057
+ }, h = (n - t) / (s - t) * 100;
1057
1058
  return /* @__PURE__ */ C("div", { className: "nc-col", style: { gap: 6 }, children: [
1058
1059
  i && /* @__PURE__ */ p("span", { className: "nc-label", children: i }),
1059
1060
  /* @__PURE__ */ C("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
@@ -1065,8 +1066,8 @@ function Hr({
1065
1066
  value: n,
1066
1067
  onChange: d,
1067
1068
  min: t,
1068
- max: r,
1069
- step: s,
1069
+ max: s,
1070
+ step: r,
1070
1071
  disabled: o,
1071
1072
  style: {
1072
1073
  width: u,
@@ -1090,8 +1091,8 @@ function Hr({
1090
1091
  ] })
1091
1092
  ] });
1092
1093
  }
1093
- function Kr({ tabs: n, active: e, onChange: t, className: r, toolbar: s, multiline: i, style: o }) {
1094
- return /* @__PURE__ */ p("div", { className: r || "nc-tab-container", style: { display: "flex", justifyContent: "space-between", alignItems: i ? "flex-start" : "center", overflow: "hidden", ...o }, children: /* @__PURE__ */ C("div", { style: { display: "flex", flex: "1", alignItems: "center", minWidth: 0, overflow: "hidden", flexWrap: i ? "wrap" : "nowrap" }, children: [
1094
+ function Ks({ tabs: n, active: e, onChange: t, className: s, toolbar: r, multiline: i, style: o }) {
1095
+ return /* @__PURE__ */ p("div", { className: s || "nc-tab-container", style: { display: "flex", justifyContent: "space-between", alignItems: i ? "flex-start" : "center", overflow: "hidden", ...o }, children: /* @__PURE__ */ C("div", { style: { display: "flex", flex: "1", alignItems: "center", minWidth: 0, overflow: "hidden", flexWrap: i ? "wrap" : "nowrap" }, children: [
1095
1096
  n.map((a) => /* @__PURE__ */ p(
1096
1097
  "div",
1097
1098
  {
@@ -1108,25 +1109,25 @@ function Kr({ tabs: n, active: e, onChange: t, className: r, toolbar: s, multili
1108
1109
  a
1109
1110
  )),
1110
1111
  /* @__PURE__ */ p("div", { style: { flexGrow: 1 } }),
1111
- s && /* @__PURE__ */ p("div", { style: { display: "flex", gap: "8px", height: "100%", alignItems: "center" }, children: s })
1112
+ r && /* @__PURE__ */ p("div", { style: { display: "flex", gap: "8px", height: "100%", alignItems: "center" }, children: r })
1112
1113
  ] }) });
1113
1114
  }
1114
- function Ur({ checked: n, onChange: e, disabled: t, label: r }) {
1115
+ function Us({ checked: n, onChange: e, disabled: t, label: s }) {
1115
1116
  return /* @__PURE__ */ C(
1116
1117
  "label",
1117
1118
  {
1118
1119
  className: "nc-row",
1119
1120
  style: { gap: 10, alignItems: "center", cursor: t ? "not-allowed" : "pointer" },
1120
1121
  children: [
1121
- r && /* @__PURE__ */ p("span", { className: "nc-label", children: r }),
1122
+ s && /* @__PURE__ */ p("span", { className: "nc-label", children: s }),
1122
1123
  /* @__PURE__ */ p(
1123
1124
  "span",
1124
1125
  {
1125
1126
  role: "switch",
1126
1127
  "aria-checked": n,
1127
1128
  tabIndex: 0,
1128
- onKeyDown: (s) => {
1129
- t || (s.key === "Enter" || s.key === " ") && (s.preventDefault(), e(!n));
1129
+ onKeyDown: (r) => {
1130
+ t || (r.key === "Enter" || r.key === " ") && (r.preventDefault(), e(!n));
1130
1131
  },
1131
1132
  onClick: () => !t && e(!n),
1132
1133
  style: {
@@ -1165,58 +1166,58 @@ function Ur({ checked: n, onChange: e, disabled: t, label: r }) {
1165
1166
  }
1166
1167
  const k = (n) => typeof n == "string", pe = () => {
1167
1168
  let n, e;
1168
- const t = new Promise((r, s) => {
1169
- n = r, e = s;
1169
+ const t = new Promise((s, r) => {
1170
+ n = s, e = r;
1170
1171
  });
1171
1172
  return t.resolve = n, t.reject = e, t;
1172
1173
  }, De = (n) => n == null ? "" : "" + n, Wt = (n, e, t) => {
1173
- n.forEach((r) => {
1174
- e[r] && (t[r] = e[r]);
1174
+ n.forEach((s) => {
1175
+ e[s] && (t[s] = e[s]);
1175
1176
  });
1176
1177
  }, Gt = /###/g, Be = (n) => n && n.indexOf("###") > -1 ? n.replace(Gt, ".") : n, Ve = (n) => !n || k(n), me = (n, e, t) => {
1177
- const r = k(e) ? e.split(".") : e;
1178
- let s = 0;
1179
- for (; s < r.length - 1; ) {
1178
+ const s = k(e) ? e.split(".") : e;
1179
+ let r = 0;
1180
+ for (; r < s.length - 1; ) {
1180
1181
  if (Ve(n)) return {};
1181
- const i = Be(r[s]);
1182
- !n[i] && t && (n[i] = new t()), Object.prototype.hasOwnProperty.call(n, i) ? n = n[i] : n = {}, ++s;
1182
+ const i = Be(s[r]);
1183
+ !n[i] && t && (n[i] = new t()), Object.prototype.hasOwnProperty.call(n, i) ? n = n[i] : n = {}, ++r;
1183
1184
  }
1184
1185
  return Ve(n) ? {} : {
1185
1186
  obj: n,
1186
- k: Be(r[s])
1187
+ k: Be(s[r])
1187
1188
  };
1188
1189
  }, He = (n, e, t) => {
1189
1190
  const {
1190
- obj: r,
1191
- k: s
1191
+ obj: s,
1192
+ k: r
1192
1193
  } = me(n, e, Object);
1193
- if (r !== void 0 || e.length === 1) {
1194
- r[s] = t;
1194
+ if (s !== void 0 || e.length === 1) {
1195
+ s[r] = t;
1195
1196
  return;
1196
1197
  }
1197
1198
  let i = e[e.length - 1], o = e.slice(0, e.length - 1), a = me(n, o, Object);
1198
1199
  for (; a.obj === void 0 && o.length; )
1199
1200
  i = `${o[o.length - 1]}.${i}`, o = o.slice(0, o.length - 1), a = me(n, o, Object), a && a.obj && typeof a.obj[`${a.k}.${i}`] < "u" && (a.obj = void 0);
1200
1201
  a.obj[`${a.k}.${i}`] = t;
1201
- }, Jt = (n, e, t, r) => {
1202
+ }, Jt = (n, e, t, s) => {
1202
1203
  const {
1203
- obj: s,
1204
+ obj: r,
1204
1205
  k: i
1205
1206
  } = me(n, e, Object);
1206
- s[i] = s[i] || [], s[i].push(t);
1207
+ r[i] = r[i] || [], r[i].push(t);
1207
1208
  }, we = (n, e) => {
1208
1209
  const {
1209
1210
  obj: t,
1210
- k: r
1211
+ k: s
1211
1212
  } = me(n, e);
1212
1213
  if (t)
1213
- return t[r];
1214
+ return t[s];
1214
1215
  }, Yt = (n, e, t) => {
1215
- const r = we(n, t);
1216
- return r !== void 0 ? r : we(e, t);
1216
+ const s = we(n, t);
1217
+ return s !== void 0 ? s : we(e, t);
1217
1218
  }, at = (n, e, t) => {
1218
- for (const r in e)
1219
- r !== "__proto__" && r !== "constructor" && (r in n ? k(n[r]) || n[r] instanceof String || k(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : at(n[r], e[r], t) : n[r] = e[r]);
1219
+ for (const s in e)
1220
+ s !== "__proto__" && s !== "constructor" && (s in n ? k(n[s]) || n[s] instanceof String || k(e[s]) || e[s] instanceof String ? t && (n[s] = e[s]) : at(n[s], e[s], t) : n[s] = e[s]);
1220
1221
  return n;
1221
1222
  }, ae = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
1222
1223
  var Qt = {
@@ -1236,41 +1237,41 @@ class Xt {
1236
1237
  const t = this.regExpMap.get(e);
1237
1238
  if (t !== void 0)
1238
1239
  return t;
1239
- const r = new RegExp(e);
1240
- return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
1240
+ const s = new RegExp(e);
1241
+ return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
1241
1242
  }
1242
1243
  }
1243
1244
  const Zt = [" ", ",", "?", "!", ";"], _t = new Xt(20), en = (n, e, t) => {
1244
1245
  e = e || "", t = t || "";
1245
- const r = Zt.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
1246
- if (r.length === 0) return !0;
1247
- const s = _t.getRegExp(`(${r.map((o) => o === "?" ? "\\?" : o).join("|")})`);
1248
- let i = !s.test(n);
1246
+ const s = Zt.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
1247
+ if (s.length === 0) return !0;
1248
+ const r = _t.getRegExp(`(${s.map((o) => o === "?" ? "\\?" : o).join("|")})`);
1249
+ let i = !r.test(n);
1249
1250
  if (!i) {
1250
1251
  const o = n.indexOf(t);
1251
- o > 0 && !s.test(n.substring(0, o)) && (i = !0);
1252
+ o > 0 && !r.test(n.substring(0, o)) && (i = !0);
1252
1253
  }
1253
1254
  return i;
1254
1255
  }, Oe = function(n, e) {
1255
1256
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
1256
1257
  if (!n) return;
1257
1258
  if (n[e]) return n[e];
1258
- const r = e.split(t);
1259
- let s = n;
1260
- for (let i = 0; i < r.length; ) {
1261
- if (!s || typeof s != "object")
1259
+ const s = e.split(t);
1260
+ let r = n;
1261
+ for (let i = 0; i < s.length; ) {
1262
+ if (!r || typeof r != "object")
1262
1263
  return;
1263
1264
  let o, a = "";
1264
- for (let c = i; c < r.length; ++c)
1265
- if (c !== i && (a += t), a += r[c], o = s[a], o !== void 0) {
1266
- if (["string", "number", "boolean"].indexOf(typeof o) > -1 && c < r.length - 1)
1265
+ for (let c = i; c < s.length; ++c)
1266
+ if (c !== i && (a += t), a += s[c], o = r[a], o !== void 0) {
1267
+ if (["string", "number", "boolean"].indexOf(typeof o) > -1 && c < s.length - 1)
1267
1268
  continue;
1268
1269
  i += c - i + 1;
1269
1270
  break;
1270
1271
  }
1271
- s = o;
1272
+ r = o;
1272
1273
  }
1273
- return s;
1274
+ return r;
1274
1275
  }, Se = (n) => n && n.replace("_", "-"), tn = {
1275
1276
  type: "logger",
1276
1277
  log(n) {
@@ -1296,27 +1297,27 @@ class Ne {
1296
1297
  this.prefix = t.prefix || "i18next:", this.logger = e || tn, this.options = t, this.debug = t.debug;
1297
1298
  }
1298
1299
  log() {
1299
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
1300
- t[r] = arguments[r];
1300
+ for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
1301
+ t[s] = arguments[s];
1301
1302
  return this.forward(t, "log", "", !0);
1302
1303
  }
1303
1304
  warn() {
1304
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
1305
- t[r] = arguments[r];
1305
+ for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
1306
+ t[s] = arguments[s];
1306
1307
  return this.forward(t, "warn", "", !0);
1307
1308
  }
1308
1309
  error() {
1309
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
1310
- t[r] = arguments[r];
1310
+ for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
1311
+ t[s] = arguments[s];
1311
1312
  return this.forward(t, "error", "");
1312
1313
  }
1313
1314
  deprecate() {
1314
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
1315
- t[r] = arguments[r];
1315
+ for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
1316
+ t[s] = arguments[s];
1316
1317
  return this.forward(t, "warn", "WARNING DEPRECATED: ", !0);
1317
1318
  }
1318
- forward(e, t, r, s) {
1319
- return s && !this.debug ? null : (k(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[t](e));
1319
+ forward(e, t, s, r) {
1320
+ return r && !this.debug ? null : (k(e[0]) && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
1320
1321
  }
1321
1322
  create(e) {
1322
1323
  return new Ne(this.logger, {
@@ -1334,10 +1335,10 @@ class Le {
1334
1335
  this.observers = {};
1335
1336
  }
1336
1337
  on(e, t) {
1337
- return e.split(" ").forEach((r) => {
1338
- this.observers[r] || (this.observers[r] = /* @__PURE__ */ new Map());
1339
- const s = this.observers[r].get(t) || 0;
1340
- this.observers[r].set(t, s + 1);
1338
+ return e.split(" ").forEach((s) => {
1339
+ this.observers[s] || (this.observers[s] = /* @__PURE__ */ new Map());
1340
+ const r = this.observers[s].get(t) || 0;
1341
+ this.observers[s].set(t, r + 1);
1341
1342
  }), this;
1342
1343
  }
1343
1344
  off(e, t) {
@@ -1350,16 +1351,16 @@ class Le {
1350
1351
  }
1351
1352
  }
1352
1353
  emit(e) {
1353
- for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
1354
- r[s - 1] = arguments[s];
1354
+ for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
1355
+ s[r - 1] = arguments[r];
1355
1356
  this.observers[e] && Array.from(this.observers[e].entries()).forEach((o) => {
1356
1357
  let [a, c] = o;
1357
1358
  for (let u = 0; u < c; u++)
1358
- a(...r);
1359
+ a(...s);
1359
1360
  }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((o) => {
1360
1361
  let [a, c] = o;
1361
1362
  for (let u = 0; u < c; u++)
1362
- a.apply(a, [e, ...r]);
1363
+ a.apply(a, [e, ...s]);
1363
1364
  });
1364
1365
  }
1365
1366
  }
@@ -1378,43 +1379,43 @@ class Ke extends Le {
1378
1379
  const t = this.options.ns.indexOf(e);
1379
1380
  t > -1 && this.options.ns.splice(t, 1);
1380
1381
  }
1381
- getResource(e, t, r) {
1382
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1383
- const i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, o = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
1382
+ getResource(e, t, s) {
1383
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1384
+ const i = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator, o = r.ignoreJSONStructure !== void 0 ? r.ignoreJSONStructure : this.options.ignoreJSONStructure;
1384
1385
  let a;
1385
- e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], r && (Array.isArray(r) ? a.push(...r) : k(r) && i ? a.push(...r.split(i)) : a.push(r)));
1386
+ e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], s && (Array.isArray(s) ? a.push(...s) : k(s) && i ? a.push(...s.split(i)) : a.push(s)));
1386
1387
  const c = we(this.data, a);
1387
- return !c && !t && !r && e.indexOf(".") > -1 && (e = a[0], t = a[1], r = a.slice(2).join(".")), c || !o || !k(r) ? c : Oe(this.data && this.data[e] && this.data[e][t], r, i);
1388
+ return !c && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), c || !o || !k(s) ? c : Oe(this.data && this.data[e] && this.data[e][t], s, i);
1388
1389
  }
1389
- addResource(e, t, r, s) {
1390
+ addResource(e, t, s, r) {
1390
1391
  let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
1391
1392
  silent: !1
1392
1393
  };
1393
1394
  const o = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
1394
1395
  let a = [e, t];
1395
- r && (a = a.concat(o ? r.split(o) : r)), e.indexOf(".") > -1 && (a = e.split("."), s = t, t = a[1]), this.addNamespaces(t), He(this.data, a, s), i.silent || this.emit("added", e, t, r, s);
1396
+ s && (a = a.concat(o ? s.split(o) : s)), e.indexOf(".") > -1 && (a = e.split("."), r = t, t = a[1]), this.addNamespaces(t), He(this.data, a, r), i.silent || this.emit("added", e, t, s, r);
1396
1397
  }
1397
- addResources(e, t, r) {
1398
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
1398
+ addResources(e, t, s) {
1399
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
1399
1400
  silent: !1
1400
1401
  };
1401
- for (const i in r)
1402
- (k(r[i]) || Array.isArray(r[i])) && this.addResource(e, t, i, r[i], {
1402
+ for (const i in s)
1403
+ (k(s[i]) || Array.isArray(s[i])) && this.addResource(e, t, i, s[i], {
1403
1404
  silent: !0
1404
1405
  });
1405
- s.silent || this.emit("added", e, t, r);
1406
+ r.silent || this.emit("added", e, t, s);
1406
1407
  }
1407
- addResourceBundle(e, t, r, s, i) {
1408
+ addResourceBundle(e, t, s, r, i) {
1408
1409
  let o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
1409
1410
  silent: !1,
1410
1411
  skipCopy: !1
1411
1412
  }, a = [e, t];
1412
- e.indexOf(".") > -1 && (a = e.split("."), s = r, r = t, t = a[1]), this.addNamespaces(t);
1413
+ e.indexOf(".") > -1 && (a = e.split("."), r = s, s = t, t = a[1]), this.addNamespaces(t);
1413
1414
  let c = we(this.data, a) || {};
1414
- o.skipCopy || (r = JSON.parse(JSON.stringify(r))), s ? at(c, r, i) : c = {
1415
+ o.skipCopy || (s = JSON.parse(JSON.stringify(s))), r ? at(c, s, i) : c = {
1415
1416
  ...c,
1416
- ...r
1417
- }, He(this.data, a, c), o.silent || this.emit("added", e, t, r);
1417
+ ...s
1418
+ }, He(this.data, a, c), o.silent || this.emit("added", e, t, s);
1418
1419
  }
1419
1420
  removeResourceBundle(e, t) {
1420
1421
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -1432,7 +1433,7 @@ class Ke extends Le {
1432
1433
  }
1433
1434
  hasLanguageSomeTranslations(e) {
1434
1435
  const t = this.getDataByLanguage(e);
1435
- return !!(t && Object.keys(t) || []).find((s) => t[s] && Object.keys(t[s]).length > 0);
1436
+ return !!(t && Object.keys(t) || []).find((r) => t[r] && Object.keys(t[r]).length > 0);
1436
1437
  }
1437
1438
  toJSON() {
1438
1439
  return this.data;
@@ -1443,9 +1444,9 @@ var lt = {
1443
1444
  addPostProcessor(n) {
1444
1445
  this.processors[n.name] = n;
1445
1446
  },
1446
- handle(n, e, t, r, s) {
1447
+ handle(n, e, t, s, r) {
1447
1448
  return n.forEach((i) => {
1448
- this.processors[i] && (e = this.processors[i].process(e, t, r, s));
1449
+ this.processors[i] && (e = this.processors[i].process(e, t, s, r));
1449
1450
  }), e;
1450
1451
  }
1451
1452
  };
@@ -1464,15 +1465,15 @@ class ke extends Le {
1464
1465
  };
1465
1466
  if (e == null)
1466
1467
  return !1;
1467
- const r = this.resolve(e, t);
1468
- return r && r.res !== void 0;
1468
+ const s = this.resolve(e, t);
1469
+ return s && s.res !== void 0;
1469
1470
  }
1470
1471
  extractFromKey(e, t) {
1471
- let r = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
1472
- r === void 0 && (r = ":");
1473
- const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
1472
+ let s = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
1473
+ s === void 0 && (s = ":");
1474
+ const r = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
1474
1475
  let i = t.ns || this.options.defaultNS || [];
1475
- const o = r && e.indexOf(r) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !en(e, r, s);
1476
+ const o = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !en(e, s, r);
1476
1477
  if (o && !a) {
1477
1478
  const c = e.match(this.interpolator.nestingRegexp);
1478
1479
  if (c && c.length > 0)
@@ -1480,27 +1481,27 @@ class ke extends Le {
1480
1481
  key: e,
1481
1482
  namespaces: k(i) ? [i] : i
1482
1483
  };
1483
- const u = e.split(r);
1484
- (r !== s || r === s && this.options.ns.indexOf(u[0]) > -1) && (i = u.shift()), e = u.join(s);
1484
+ const u = e.split(s);
1485
+ (s !== r || s === r && this.options.ns.indexOf(u[0]) > -1) && (i = u.shift()), e = u.join(r);
1485
1486
  }
1486
1487
  return {
1487
1488
  key: e,
1488
1489
  namespaces: k(i) ? [i] : i
1489
1490
  };
1490
1491
  }
1491
- translate(e, t, r) {
1492
+ translate(e, t, s) {
1492
1493
  if (typeof t != "object" && this.options.overloadTranslationOptionHandler && (t = this.options.overloadTranslationOptionHandler(arguments)), typeof t == "object" && (t = {
1493
1494
  ...t
1494
1495
  }), t || (t = {}), e == null) return "";
1495
1496
  Array.isArray(e) || (e = [String(e)]);
1496
- const s = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
1497
+ const r = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
1497
1498
  key: o,
1498
1499
  namespaces: a
1499
1500
  } = this.extractFromKey(e[e.length - 1], t), c = a[a.length - 1], u = t.lng || this.language, d = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1500
1501
  if (u && u.toLowerCase() === "cimode") {
1501
1502
  if (d) {
1502
1503
  const m = t.nsSeparator || this.options.nsSeparator;
1503
- return s ? {
1504
+ return r ? {
1504
1505
  res: `${c}${m}${o}`,
1505
1506
  usedKey: o,
1506
1507
  exactUsedKey: o,
@@ -1509,7 +1510,7 @@ class ke extends Le {
1509
1510
  usedParams: this.getUsedParamsDetails(t)
1510
1511
  } : `${c}${m}${o}`;
1511
1512
  }
1512
- return s ? {
1513
+ return r ? {
1513
1514
  res: o,
1514
1515
  usedKey: o,
1515
1516
  exactUsedKey: o,
@@ -1528,7 +1529,7 @@ class ke extends Le {
1528
1529
  ...t,
1529
1530
  ns: a
1530
1531
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
1531
- return s ? (h.res = m, h.usedParams = this.getUsedParamsDetails(t), h) : m;
1532
+ return r ? (h.res = m, h.usedParams = this.getUsedParamsDetails(t), h) : m;
1532
1533
  }
1533
1534
  if (i) {
1534
1535
  const m = Array.isArray(l), w = m ? [] : {}, S = m ? b : f;
@@ -1544,7 +1545,7 @@ class ke extends Le {
1544
1545
  l = w;
1545
1546
  }
1546
1547
  } else if (x && k(y) && Array.isArray(l))
1547
- l = l.join(y), l && (l = this.extendTranslation(l, e, t, r));
1548
+ l = l.join(y), l && (l = this.extendTranslation(l, e, t, s));
1548
1549
  else {
1549
1550
  let m = !1, w = !1;
1550
1551
  const S = t.count !== void 0 && !k(t.count), N = ke.hasDefaultValue(t), M = S ? this.pluralResolver.getSuffix(u, t.count, t) : "", O = t.ordinal && S ? this.pluralResolver.getSuffix(u, t.count, {
@@ -1577,68 +1578,68 @@ class ke extends Le {
1577
1578
  });
1578
1579
  }) : fe(E, o, U));
1579
1580
  }
1580
- l = this.extendTranslation(l, e, t, h, r), w && l === o && this.options.appendNamespaceToMissingKey && (l = `${c}:${o}`), (w || m) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? l = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${o}` : o, m ? l : void 0) : l = this.options.parseMissingKeyHandler(l));
1581
+ l = this.extendTranslation(l, e, t, h, s), w && l === o && this.options.appendNamespaceToMissingKey && (l = `${c}:${o}`), (w || m) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? l = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${o}` : o, m ? l : void 0) : l = this.options.parseMissingKeyHandler(l));
1581
1582
  }
1582
- return s ? (h.res = l, h.usedParams = this.getUsedParamsDetails(t), h) : l;
1583
+ return r ? (h.res = l, h.usedParams = this.getUsedParamsDetails(t), h) : l;
1583
1584
  }
1584
- extendTranslation(e, t, r, s, i) {
1585
+ extendTranslation(e, t, s, r, i) {
1585
1586
  var o = this;
1586
1587
  if (this.i18nFormat && this.i18nFormat.parse)
1587
1588
  e = this.i18nFormat.parse(e, {
1588
1589
  ...this.options.interpolation.defaultVariables,
1589
- ...r
1590
- }, r.lng || this.language || s.usedLng, s.usedNS, s.usedKey, {
1591
- resolved: s
1590
+ ...s
1591
+ }, s.lng || this.language || r.usedLng, r.usedNS, r.usedKey, {
1592
+ resolved: r
1592
1593
  });
1593
- else if (!r.skipInterpolation) {
1594
- r.interpolation && this.interpolator.init({
1595
- ...r,
1594
+ else if (!s.skipInterpolation) {
1595
+ s.interpolation && this.interpolator.init({
1596
+ ...s,
1596
1597
  interpolation: {
1597
1598
  ...this.options.interpolation,
1598
- ...r.interpolation
1599
+ ...s.interpolation
1599
1600
  }
1600
1601
  });
1601
- const u = k(e) && (r && r.interpolation && r.interpolation.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
1602
+ const u = k(e) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
1602
1603
  let d;
1603
1604
  if (u) {
1604
1605
  const l = e.match(this.interpolator.nestingRegexp);
1605
1606
  d = l && l.length;
1606
1607
  }
1607
- let h = r.replace && !k(r.replace) ? r.replace : r;
1608
+ let h = s.replace && !k(s.replace) ? s.replace : s;
1608
1609
  if (this.options.interpolation.defaultVariables && (h = {
1609
1610
  ...this.options.interpolation.defaultVariables,
1610
1611
  ...h
1611
- }), e = this.interpolator.interpolate(e, h, r.lng || this.language || s.usedLng, r), u) {
1612
+ }), e = this.interpolator.interpolate(e, h, s.lng || this.language || r.usedLng, s), u) {
1612
1613
  const l = e.match(this.interpolator.nestingRegexp), f = l && l.length;
1613
- d < f && (r.nest = !1);
1614
+ d < f && (s.nest = !1);
1614
1615
  }
1615
- !r.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (r.lng = this.language || s.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, function() {
1616
+ !s.lng && this.options.compatibilityAPI !== "v1" && r && r.res && (s.lng = this.language || r.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
1616
1617
  for (var l = arguments.length, f = new Array(l), b = 0; b < l; b++)
1617
1618
  f[b] = arguments[b];
1618
- return i && i[0] === f[0] && !r.context ? (o.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : o.translate(...f, t);
1619
- }, r)), r.interpolation && this.interpolator.reset();
1619
+ return i && i[0] === f[0] && !s.context ? (o.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : o.translate(...f, t);
1620
+ }, s)), s.interpolation && this.interpolator.reset();
1620
1621
  }
1621
- const a = r.postProcess || this.options.postProcess, c = k(a) ? [a] : a;
1622
- return e != null && c && c.length && r.applyPostProcessor !== !1 && (e = lt.handle(c, e, t, this.options && this.options.postProcessPassResolved ? {
1622
+ const a = s.postProcess || this.options.postProcess, c = k(a) ? [a] : a;
1623
+ return e != null && c && c.length && s.applyPostProcessor !== !1 && (e = lt.handle(c, e, t, this.options && this.options.postProcessPassResolved ? {
1623
1624
  i18nResolved: {
1624
- ...s,
1625
- usedParams: this.getUsedParamsDetails(r)
1625
+ ...r,
1626
+ usedParams: this.getUsedParamsDetails(s)
1626
1627
  },
1627
- ...r
1628
- } : r, this)), e;
1628
+ ...s
1629
+ } : s, this)), e;
1629
1630
  }
1630
1631
  resolve(e) {
1631
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r, s, i, o, a;
1632
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, r, i, o, a;
1632
1633
  return k(e) && (e = [e]), e.forEach((c) => {
1633
- if (this.isValidLookup(r)) return;
1634
+ if (this.isValidLookup(s)) return;
1634
1635
  const u = this.extractFromKey(c, t), d = u.key;
1635
- s = d;
1636
+ r = d;
1636
1637
  let h = u.namespaces;
1637
1638
  this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
1638
1639
  const l = t.count !== void 0 && !k(t.count), f = l && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), b = t.context !== void 0 && (k(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
1639
1640
  h.forEach((g) => {
1640
- this.isValidLookup(r) || (a = g, !Ue[`${v[0]}-${g}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (Ue[`${v[0]}-${g}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${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!!!")), v.forEach((y) => {
1641
- if (this.isValidLookup(r)) return;
1641
+ this.isValidLookup(s) || (a = g, !Ue[`${v[0]}-${g}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (Ue[`${v[0]}-${g}`] = !0, this.logger.warn(`key "${r}" for languages "${v.join(", ")}" won't get resolved as namespace "${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!!!")), v.forEach((y) => {
1642
+ if (this.isValidLookup(s)) return;
1642
1643
  o = y;
1643
1644
  const x = [d];
1644
1645
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
@@ -1654,12 +1655,12 @@ class ke extends Le {
1654
1655
  }
1655
1656
  let A;
1656
1657
  for (; A = x.pop(); )
1657
- this.isValidLookup(r) || (i = A, r = this.getResource(y, g, A, t));
1658
+ this.isValidLookup(s) || (i = A, s = this.getResource(y, g, A, t));
1658
1659
  }));
1659
1660
  });
1660
1661
  }), {
1661
- res: r,
1662
- usedKey: s,
1662
+ res: s,
1663
+ usedKey: r,
1663
1664
  exactUsedKey: i,
1664
1665
  usedLng: o,
1665
1666
  usedNS: a
@@ -1668,30 +1669,30 @@ class ke extends Le {
1668
1669
  isValidLookup(e) {
1669
1670
  return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
1670
1671
  }
1671
- getResource(e, t, r) {
1672
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1673
- return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(e, t, r, s) : this.resourceStore.getResource(e, t, r, s);
1672
+ getResource(e, t, s) {
1673
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1674
+ return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(e, t, s, r) : this.resourceStore.getResource(e, t, s, r);
1674
1675
  }
1675
1676
  getUsedParamsDetails() {
1676
1677
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1677
- const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !k(e.replace);
1678
- let s = r ? e.replace : e;
1679
- if (r && typeof e.count < "u" && (s.count = e.count), this.options.interpolation.defaultVariables && (s = {
1678
+ const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = e.replace && !k(e.replace);
1679
+ let r = s ? e.replace : e;
1680
+ if (s && typeof e.count < "u" && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
1680
1681
  ...this.options.interpolation.defaultVariables,
1681
- ...s
1682
- }), !r) {
1683
- s = {
1684
- ...s
1682
+ ...r
1683
+ }), !s) {
1684
+ r = {
1685
+ ...r
1685
1686
  };
1686
1687
  for (const i of t)
1687
- delete s[i];
1688
+ delete r[i];
1688
1689
  }
1689
- return s;
1690
+ return r;
1690
1691
  }
1691
1692
  static hasDefaultValue(e) {
1692
1693
  const t = "defaultValue";
1693
- for (const r in e)
1694
- if (Object.prototype.hasOwnProperty.call(e, r) && t === r.substring(0, t.length) && e[r] !== void 0)
1694
+ for (const s in e)
1695
+ if (Object.prototype.hasOwnProperty.call(e, s) && t === s.substring(0, t.length) && e[s] !== void 0)
1695
1696
  return !0;
1696
1697
  return !1;
1697
1698
  }
@@ -1715,13 +1716,13 @@ class We {
1715
1716
  if (k(e) && e.indexOf("-") > -1) {
1716
1717
  if (typeof Intl < "u" && typeof Intl.getCanonicalLocales < "u")
1717
1718
  try {
1718
- let s = Intl.getCanonicalLocales(e)[0];
1719
- if (s && this.options.lowerCaseLng && (s = s.toLowerCase()), s) return s;
1719
+ let r = Intl.getCanonicalLocales(e)[0];
1720
+ if (r && this.options.lowerCaseLng && (r = r.toLowerCase()), r) return r;
1720
1721
  } catch {
1721
1722
  }
1722
1723
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
1723
- let r = e.split("-");
1724
- return this.options.lowerCaseLng ? r = r.map((s) => s.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), t.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ae(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), t.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ae(r[1].toLowerCase())), t.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Ae(r[2].toLowerCase()))), r.join("-");
1724
+ let s = e.split("-");
1725
+ return this.options.lowerCaseLng ? s = s.map((r) => r.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = Ae(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = Ae(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = Ae(s[2].toLowerCase()))), s.join("-");
1725
1726
  }
1726
1727
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
1727
1728
  }
@@ -1731,17 +1732,17 @@ class We {
1731
1732
  getBestMatchFromCodes(e) {
1732
1733
  if (!e) return null;
1733
1734
  let t;
1734
- return e.forEach((r) => {
1735
+ return e.forEach((s) => {
1735
1736
  if (t) return;
1736
- const s = this.formatLanguageCode(r);
1737
- (!this.options.supportedLngs || this.isSupportedCode(s)) && (t = s);
1738
- }), !t && this.options.supportedLngs && e.forEach((r) => {
1737
+ const r = this.formatLanguageCode(s);
1738
+ (!this.options.supportedLngs || this.isSupportedCode(r)) && (t = r);
1739
+ }), !t && this.options.supportedLngs && e.forEach((s) => {
1739
1740
  if (t) return;
1740
- const s = this.getLanguagePartFromCode(r);
1741
- if (this.isSupportedCode(s)) return t = s;
1741
+ const r = this.getLanguagePartFromCode(s);
1742
+ if (this.isSupportedCode(r)) return t = r;
1742
1743
  t = this.options.supportedLngs.find((i) => {
1743
- if (i === s) return i;
1744
- if (!(i.indexOf("-") < 0 && s.indexOf("-") < 0) && (i.indexOf("-") > 0 && s.indexOf("-") < 0 && i.substring(0, i.indexOf("-")) === s || i.indexOf(s) === 0 && s.length > 1))
1744
+ if (i === r) return i;
1745
+ if (!(i.indexOf("-") < 0 && r.indexOf("-") < 0) && (i.indexOf("-") > 0 && r.indexOf("-") < 0 && i.substring(0, i.indexOf("-")) === r || i.indexOf(r) === 0 && r.length > 1))
1745
1746
  return i;
1746
1747
  });
1747
1748
  }), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
@@ -1750,16 +1751,16 @@ class We {
1750
1751
  if (!e) return [];
1751
1752
  if (typeof e == "function" && (e = e(t)), k(e) && (e = [e]), Array.isArray(e)) return e;
1752
1753
  if (!t) return e.default || [];
1753
- let r = e[t];
1754
- return r || (r = e[this.getScriptPartFromCode(t)]), r || (r = e[this.formatLanguageCode(t)]), r || (r = e[this.getLanguagePartFromCode(t)]), r || (r = e.default), r || [];
1754
+ let s = e[t];
1755
+ return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
1755
1756
  }
1756
1757
  toResolveHierarchy(e, t) {
1757
- const r = this.getFallbackCodes(t || this.options.fallbackLng || [], e), s = [], i = (o) => {
1758
- o && (this.isSupportedCode(o) ? s.push(o) : this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`));
1758
+ const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), r = [], i = (o) => {
1759
+ o && (this.isSupportedCode(o) ? r.push(o) : this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`));
1759
1760
  };
1760
- return k(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))) : k(e) && i(this.formatLanguageCode(e)), r.forEach((o) => {
1761
- s.indexOf(o) < 0 && i(this.formatLanguageCode(o));
1762
- }), s;
1761
+ return k(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))) : k(e) && i(this.formatLanguageCode(e)), s.forEach((o) => {
1762
+ r.indexOf(o) < 0 && i(this.formatLanguageCode(o));
1763
+ }), r;
1763
1764
  }
1764
1765
  }
1765
1766
  let nn = [{
@@ -1854,7 +1855,7 @@ let nn = [{
1854
1855
  lngs: ["he", "iw"],
1855
1856
  nr: [1, 2, 20, 21],
1856
1857
  fc: 22
1857
- }], rn = {
1858
+ }], sn = {
1858
1859
  1: (n) => +(n > 1),
1859
1860
  2: (n) => +(n != 1),
1860
1861
  3: (n) => 0,
@@ -1878,7 +1879,7 @@ let nn = [{
1878
1879
  21: (n) => n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0,
1879
1880
  22: (n) => n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3
1880
1881
  };
1881
- const sn = ["v1", "v2", "v3"], on = ["v4"], Ge = {
1882
+ const rn = ["v1", "v2", "v3"], on = ["v4"], Ge = {
1882
1883
  zero: 0,
1883
1884
  one: 1,
1884
1885
  two: 2,
@@ -1891,7 +1892,7 @@ const sn = ["v1", "v2", "v3"], on = ["v4"], Ge = {
1891
1892
  e.lngs.forEach((t) => {
1892
1893
  n[t] = {
1893
1894
  numbers: e.nr,
1894
- plurals: rn[e.fc]
1895
+ plurals: sn[e.fc]
1895
1896
  };
1896
1897
  });
1897
1898
  }), n;
@@ -1910,16 +1911,16 @@ class ln {
1910
1911
  getRule(e) {
1911
1912
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1912
1913
  if (this.shouldUseIntlApi()) {
1913
- const r = Se(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
1914
- cleanedCode: r,
1915
- type: s
1914
+ const s = Se(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
1915
+ cleanedCode: s,
1916
+ type: r
1916
1917
  });
1917
1918
  if (i in this.pluralRulesCache)
1918
1919
  return this.pluralRulesCache[i];
1919
1920
  let o;
1920
1921
  try {
1921
- o = new Intl.PluralRules(r, {
1922
- type: s
1922
+ o = new Intl.PluralRules(s, {
1923
+ type: r
1923
1924
  });
1924
1925
  } catch {
1925
1926
  if (!e.match(/-|_/)) return;
@@ -1932,37 +1933,37 @@ class ln {
1932
1933
  }
1933
1934
  needsPlural(e) {
1934
1935
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1935
- const r = this.getRule(e, t);
1936
- return this.shouldUseIntlApi() ? r && r.resolvedOptions().pluralCategories.length > 1 : r && r.numbers.length > 1;
1936
+ const s = this.getRule(e, t);
1937
+ return this.shouldUseIntlApi() ? s && s.resolvedOptions().pluralCategories.length > 1 : s && s.numbers.length > 1;
1937
1938
  }
1938
1939
  getPluralFormsOfKey(e, t) {
1939
- let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1940
- return this.getSuffixes(e, r).map((s) => `${t}${s}`);
1940
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1941
+ return this.getSuffixes(e, s).map((r) => `${t}${r}`);
1941
1942
  }
1942
1943
  getSuffixes(e) {
1943
1944
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1944
- const r = this.getRule(e, t);
1945
- return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) => Ge[s] - Ge[i]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : r.numbers.map((s) => this.getSuffix(e, s, t)) : [];
1945
+ const s = this.getRule(e, t);
1946
+ return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((r, i) => Ge[r] - Ge[i]).map((r) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${r}`) : s.numbers.map((r) => this.getSuffix(e, r, t)) : [];
1946
1947
  }
1947
1948
  getSuffix(e, t) {
1948
- let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1949
- const s = this.getRule(e, r);
1950
- return s ? this.shouldUseIntlApi() ? `${this.options.prepend}${r.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : this.getSuffixRetroCompatible(s, t) : (this.logger.warn(`no plural rule found for: ${e}`), "");
1949
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1950
+ const r = this.getRule(e, s);
1951
+ return r ? this.shouldUseIntlApi() ? `${this.options.prepend}${s.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : this.getSuffixRetroCompatible(r, t) : (this.logger.warn(`no plural rule found for: ${e}`), "");
1951
1952
  }
1952
1953
  getSuffixRetroCompatible(e, t) {
1953
- const r = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
1954
- let s = e.numbers[r];
1955
- this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (s === 2 ? s = "plural" : s === 1 && (s = ""));
1956
- const i = () => this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
1957
- return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? `_plural_${s.toString()}` : i() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? i() : this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString();
1954
+ const s = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
1955
+ let r = e.numbers[s];
1956
+ this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 && (r === 2 ? r = "plural" : r === 1 && (r = ""));
1957
+ const i = () => this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString();
1958
+ return this.options.compatibilityJSON === "v1" ? r === 1 ? "" : typeof r == "number" ? `_plural_${r.toString()}` : i() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? i() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
1958
1959
  }
1959
1960
  shouldUseIntlApi() {
1960
- return !sn.includes(this.options.compatibilityJSON);
1961
+ return !rn.includes(this.options.compatibilityJSON);
1961
1962
  }
1962
1963
  }
1963
1964
  const Je = function(n, e, t) {
1964
- let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i = Yt(n, e, t);
1965
- return !i && s && k(t) && (i = Oe(n, t, r), i === void 0 && (i = Oe(e, t, r))), i;
1965
+ let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i = Yt(n, e, t);
1966
+ return !i && r && k(t) && (i = Oe(n, t, s), i === void 0 && (i = Oe(e, t, s))), i;
1966
1967
  }, Re = (n) => n.replace(/\$/g, "$$$$");
1967
1968
  class cn {
1968
1969
  constructor() {
@@ -1976,8 +1977,8 @@ class cn {
1976
1977
  });
1977
1978
  const {
1978
1979
  escape: t,
1979
- escapeValue: r,
1980
- useRawValueToEscape: s,
1980
+ escapeValue: s,
1981
+ useRawValueToEscape: r,
1981
1982
  prefix: i,
1982
1983
  prefixEscaped: o,
1983
1984
  suffix: a,
@@ -1993,35 +1994,35 @@ class cn {
1993
1994
  maxReplaces: y,
1994
1995
  alwaysFormat: x
1995
1996
  } = e.interpolation;
1996
- this.escape = t !== void 0 ? t : qt, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = i ? ae(i) : o || "{{", this.suffix = a ? ae(a) : c || "}}", this.formatSeparator = u || ",", this.unescapePrefix = d ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = l ? ae(l) : f || ae("$t("), this.nestingSuffix = b ? ae(b) : v || ae(")"), this.nestingOptionsSeparator = g || ",", this.maxReplaces = y || 1e3, this.alwaysFormat = x !== void 0 ? x : !1, this.resetRegExp();
1997
+ this.escape = t !== void 0 ? t : qt, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = r !== void 0 ? r : !1, this.prefix = i ? ae(i) : o || "{{", this.suffix = a ? ae(a) : c || "}}", this.formatSeparator = u || ",", this.unescapePrefix = d ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = l ? ae(l) : f || ae("$t("), this.nestingSuffix = b ? ae(b) : v || ae(")"), this.nestingOptionsSeparator = g || ",", this.maxReplaces = y || 1e3, this.alwaysFormat = x !== void 0 ? x : !1, this.resetRegExp();
1997
1998
  }
1998
1999
  reset() {
1999
2000
  this.options && this.init(this.options);
2000
2001
  }
2001
2002
  resetRegExp() {
2002
- const e = (t, r) => t && t.source === r ? (t.lastIndex = 0, t) : new RegExp(r, "g");
2003
+ const e = (t, s) => t && t.source === s ? (t.lastIndex = 0, t) : new RegExp(s, "g");
2003
2004
  this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
2004
2005
  }
2005
- interpolate(e, t, r, s) {
2006
+ interpolate(e, t, s, r) {
2006
2007
  let i, o, a;
2007
2008
  const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, u = (f) => {
2008
2009
  if (f.indexOf(this.formatSeparator) < 0) {
2009
2010
  const y = Je(t, c, f, this.options.keySeparator, this.options.ignoreJSONStructure);
2010
- return this.alwaysFormat ? this.format(y, void 0, r, {
2011
- ...s,
2011
+ return this.alwaysFormat ? this.format(y, void 0, s, {
2012
+ ...r,
2012
2013
  ...t,
2013
2014
  interpolationkey: f
2014
2015
  }) : y;
2015
2016
  }
2016
2017
  const b = f.split(this.formatSeparator), v = b.shift().trim(), g = b.join(this.formatSeparator).trim();
2017
- return this.format(Je(t, c, v, this.options.keySeparator, this.options.ignoreJSONStructure), g, r, {
2018
- ...s,
2018
+ return this.format(Je(t, c, v, this.options.keySeparator, this.options.ignoreJSONStructure), g, s, {
2019
+ ...r,
2019
2020
  ...t,
2020
2021
  interpolationkey: v
2021
2022
  });
2022
2023
  };
2023
2024
  this.resetRegExp();
2024
- const d = s && s.missingInterpolationHandler || this.options.missingInterpolationHandler, h = s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
2025
+ const d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, h = r && r.interpolation && r.interpolation.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
2025
2026
  return [{
2026
2027
  regex: this.regexpUnescape,
2027
2028
  safeValue: (f) => Re(f)
@@ -2033,9 +2034,9 @@ class cn {
2033
2034
  const b = i[1].trim();
2034
2035
  if (o = u(b), o === void 0)
2035
2036
  if (typeof d == "function") {
2036
- const g = d(e, i, s);
2037
+ const g = d(e, i, r);
2037
2038
  o = k(g) ? g : "";
2038
- } else if (s && Object.prototype.hasOwnProperty.call(s, b))
2039
+ } else if (r && Object.prototype.hasOwnProperty.call(r, b))
2039
2040
  o = "";
2040
2041
  else if (h) {
2041
2042
  o = i[0];
@@ -2050,7 +2051,7 @@ class cn {
2050
2051
  }), e;
2051
2052
  }
2052
2053
  nest(e, t) {
2053
- let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, i, o;
2054
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r, i, o;
2054
2055
  const a = (c, u) => {
2055
2056
  const d = this.nestingOptionsSeparator;
2056
2057
  if (c.indexOf(d) < 0) return c;
@@ -2069,21 +2070,21 @@ class cn {
2069
2070
  }
2070
2071
  return o.defaultValue && o.defaultValue.indexOf(this.prefix) > -1 && delete o.defaultValue, c;
2071
2072
  };
2072
- for (; s = this.nestingRegexp.exec(e); ) {
2073
+ for (; r = this.nestingRegexp.exec(e); ) {
2073
2074
  let c = [];
2074
2075
  o = {
2075
- ...r
2076
+ ...s
2076
2077
  }, o = o.replace && !k(o.replace) ? o.replace : o, o.applyPostProcessor = !1, delete o.defaultValue;
2077
2078
  let u = !1;
2078
- if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
2079
- const d = s[1].split(this.formatSeparator).map((h) => h.trim());
2080
- s[1] = d.shift(), c = d, u = !0;
2079
+ if (r[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(r[1])) {
2080
+ const d = r[1].split(this.formatSeparator).map((h) => h.trim());
2081
+ r[1] = d.shift(), c = d, u = !0;
2081
2082
  }
2082
- if (i = t(a.call(this, s[1].trim(), o), o), i && s[0] === e && !k(i)) return i;
2083
- k(i) || (i = De(i)), i || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), i = ""), u && (i = c.reduce((d, h) => this.format(d, h, r.lng, {
2084
- ...r,
2085
- interpolationkey: s[1].trim()
2086
- }), i.trim())), e = e.replace(s[0], i), this.regexp.lastIndex = 0;
2083
+ if (i = t(a.call(this, r[1].trim(), o), o), i && r[0] === e && !k(i)) return i;
2084
+ k(i) || (i = De(i)), i || (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), i = ""), u && (i = c.reduce((d, h) => this.format(d, h, s.lng, {
2085
+ ...s,
2086
+ interpolationkey: r[1].trim()
2087
+ }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
2087
2088
  }
2088
2089
  return e;
2089
2090
  }
@@ -2092,10 +2093,10 @@ const un = (n) => {
2092
2093
  let e = n.toLowerCase().trim();
2093
2094
  const t = {};
2094
2095
  if (n.indexOf("(") > -1) {
2095
- const r = n.split("(");
2096
- e = r[0].toLowerCase().trim();
2097
- const s = r[1].substring(0, r[1].length - 1);
2098
- e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((o) => {
2096
+ const s = n.split("(");
2097
+ e = s[0].toLowerCase().trim();
2098
+ const r = s[1].substring(0, s[1].length - 1);
2099
+ e === "currency" && r.indexOf(":") < 0 ? t.currency || (t.currency = r.trim()) : e === "relativetime" && r.indexOf(":") < 0 ? t.range || (t.range = r.trim()) : r.split(";").forEach((o) => {
2099
2100
  if (o) {
2100
2101
  const [a, ...c] = o.split(":"), u = c.join(":").trim().replace(/^'+|'+$/g, ""), d = a.trim();
2101
2102
  t[d] || (t[d] = u), u === "false" && (t[d] = !1), u === "true" && (t[d] = !0), isNaN(u) || (t[d] = parseInt(u, 10));
@@ -2108,51 +2109,51 @@ const un = (n) => {
2108
2109
  };
2109
2110
  }, le = (n) => {
2110
2111
  const e = {};
2111
- return (t, r, s) => {
2112
- let i = s;
2113
- s && s.interpolationkey && s.formatParams && s.formatParams[s.interpolationkey] && s[s.interpolationkey] && (i = {
2112
+ return (t, s, r) => {
2113
+ let i = r;
2114
+ r && r.interpolationkey && r.formatParams && r.formatParams[r.interpolationkey] && r[r.interpolationkey] && (i = {
2114
2115
  ...i,
2115
- [s.interpolationkey]: void 0
2116
+ [r.interpolationkey]: void 0
2116
2117
  });
2117
- const o = r + JSON.stringify(i);
2118
+ const o = s + JSON.stringify(i);
2118
2119
  let a = e[o];
2119
- return a || (a = n(Se(r), s), e[o] = a), a(t);
2120
+ return a || (a = n(Se(s), r), e[o] = a), a(t);
2120
2121
  };
2121
2122
  };
2122
2123
  class dn {
2123
2124
  constructor() {
2124
2125
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2125
2126
  this.logger = J.create("formatter"), this.options = e, this.formats = {
2126
- number: le((t, r) => {
2127
- const s = new Intl.NumberFormat(t, {
2128
- ...r
2127
+ number: le((t, s) => {
2128
+ const r = new Intl.NumberFormat(t, {
2129
+ ...s
2129
2130
  });
2130
- return (i) => s.format(i);
2131
+ return (i) => r.format(i);
2131
2132
  }),
2132
- currency: le((t, r) => {
2133
- const s = new Intl.NumberFormat(t, {
2134
- ...r,
2133
+ currency: le((t, s) => {
2134
+ const r = new Intl.NumberFormat(t, {
2135
+ ...s,
2135
2136
  style: "currency"
2136
2137
  });
2137
- return (i) => s.format(i);
2138
+ return (i) => r.format(i);
2138
2139
  }),
2139
- datetime: le((t, r) => {
2140
- const s = new Intl.DateTimeFormat(t, {
2141
- ...r
2140
+ datetime: le((t, s) => {
2141
+ const r = new Intl.DateTimeFormat(t, {
2142
+ ...s
2142
2143
  });
2143
- return (i) => s.format(i);
2144
+ return (i) => r.format(i);
2144
2145
  }),
2145
- relativetime: le((t, r) => {
2146
- const s = new Intl.RelativeTimeFormat(t, {
2147
- ...r
2146
+ relativetime: le((t, s) => {
2147
+ const r = new Intl.RelativeTimeFormat(t, {
2148
+ ...s
2148
2149
  });
2149
- return (i) => s.format(i, r.range || "day");
2150
+ return (i) => r.format(i, s.range || "day");
2150
2151
  }),
2151
- list: le((t, r) => {
2152
- const s = new Intl.ListFormat(t, {
2153
- ...r
2152
+ list: le((t, s) => {
2153
+ const r = new Intl.ListFormat(t, {
2154
+ ...s
2154
2155
  });
2155
- return (i) => s.format(i);
2156
+ return (i) => r.format(i);
2156
2157
  })
2157
2158
  }, this.init(e);
2158
2159
  }
@@ -2168,8 +2169,8 @@ class dn {
2168
2169
  addCached(e, t) {
2169
2170
  this.formats[e.toLowerCase().trim()] = le(t);
2170
2171
  }
2171
- format(e, t, r) {
2172
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
2172
+ format(e, t, s) {
2173
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
2173
2174
  const i = t.split(this.formatSeparator);
2174
2175
  if (i.length > 1 && i[0].indexOf("(") > 1 && i[0].indexOf(")") < 0 && i.find((a) => a.indexOf(")") > -1)) {
2175
2176
  const a = i.findIndex((c) => c.indexOf(")") > -1);
@@ -2183,10 +2184,10 @@ class dn {
2183
2184
  if (this.formats[u]) {
2184
2185
  let h = a;
2185
2186
  try {
2186
- const l = s && s.formatParams && s.formatParams[s.interpolationkey] || {}, f = l.locale || l.lng || s.locale || s.lng || r;
2187
+ const l = r && r.formatParams && r.formatParams[r.interpolationkey] || {}, f = l.locale || l.lng || r.locale || r.lng || s;
2187
2188
  h = this.formats[u](a, f, {
2188
2189
  ...d,
2189
- ...s,
2190
+ ...r,
2190
2191
  ...l
2191
2192
  });
2192
2193
  } catch (l) {
@@ -2203,24 +2204,24 @@ const fn = (n, e) => {
2203
2204
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
2204
2205
  };
2205
2206
  class pn extends Le {
2206
- constructor(e, t, r) {
2207
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
2208
- super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = J.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, s.backend, s);
2207
+ constructor(e, t, s) {
2208
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
2209
+ super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = r, this.logger = J.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 && this.backend.init && this.backend.init(s, r.backend, r);
2209
2210
  }
2210
- queueLoad(e, t, r, s) {
2211
+ queueLoad(e, t, s, r) {
2211
2212
  const i = {}, o = {}, a = {}, c = {};
2212
2213
  return e.forEach((u) => {
2213
2214
  let d = !0;
2214
2215
  t.forEach((h) => {
2215
2216
  const l = `${u}|${h}`;
2216
- !r.reload && this.store.hasResourceBundle(u, h) ? this.state[l] = 2 : this.state[l] < 0 || (this.state[l] === 1 ? o[l] === void 0 && (o[l] = !0) : (this.state[l] = 1, d = !1, o[l] === void 0 && (o[l] = !0), i[l] === void 0 && (i[l] = !0), c[h] === void 0 && (c[h] = !0)));
2217
+ !s.reload && this.store.hasResourceBundle(u, h) ? this.state[l] = 2 : this.state[l] < 0 || (this.state[l] === 1 ? o[l] === void 0 && (o[l] = !0) : (this.state[l] = 1, d = !1, o[l] === void 0 && (o[l] = !0), i[l] === void 0 && (i[l] = !0), c[h] === void 0 && (c[h] = !0)));
2217
2218
  }), d || (a[u] = !0);
2218
2219
  }), (Object.keys(i).length || Object.keys(o).length) && this.queue.push({
2219
2220
  pending: o,
2220
2221
  pendingCount: Object.keys(o).length,
2221
2222
  loaded: {},
2222
2223
  errors: [],
2223
- callback: s
2224
+ callback: r
2224
2225
  }), {
2225
2226
  toLoad: Object.keys(i),
2226
2227
  pending: Object.keys(o),
@@ -2228,11 +2229,11 @@ class pn extends Le {
2228
2229
  toLoadNamespaces: Object.keys(c)
2229
2230
  };
2230
2231
  }
2231
- loaded(e, t, r) {
2232
- const s = e.split("|"), i = s[0], o = s[1];
2233
- t && this.emit("failedLoading", i, o, t), !t && r && this.store.addResourceBundle(i, o, r, void 0, void 0, {
2232
+ loaded(e, t, s) {
2233
+ const r = e.split("|"), i = r[0], o = r[1];
2234
+ t && this.emit("failedLoading", i, o, t), !t && s && this.store.addResourceBundle(i, o, s, void 0, void 0, {
2234
2235
  skipCopy: !0
2235
- }), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
2236
+ }), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
2236
2237
  const a = {};
2237
2238
  this.queue.forEach((c) => {
2238
2239
  Jt(c.loaded, [i], o), fn(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((u) => {
@@ -2244,15 +2245,15 @@ class pn extends Le {
2244
2245
  }), c.done = !0, c.errors.length ? c.callback(c.errors) : c.callback());
2245
2246
  }), this.emit("loaded", a), this.queue = this.queue.filter((c) => !c.done);
2246
2247
  }
2247
- read(e, t, r) {
2248
- let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, o = arguments.length > 5 ? arguments[5] : void 0;
2248
+ read(e, t, s) {
2249
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, o = arguments.length > 5 ? arguments[5] : void 0;
2249
2250
  if (!e.length) return o(null, {});
2250
2251
  if (this.readingCalls >= this.maxParallelReads) {
2251
2252
  this.waitingReads.push({
2252
2253
  lng: e,
2253
2254
  ns: t,
2254
- fcName: r,
2255
- tried: s,
2255
+ fcName: s,
2256
+ tried: r,
2256
2257
  wait: i,
2257
2258
  callback: o
2258
2259
  });
@@ -2264,14 +2265,14 @@ class pn extends Le {
2264
2265
  const h = this.waitingReads.shift();
2265
2266
  this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
2266
2267
  }
2267
- if (u && d && s < this.maxRetries) {
2268
+ if (u && d && r < this.maxRetries) {
2268
2269
  setTimeout(() => {
2269
- this.read.call(this, e, t, r, s + 1, i * 2, o);
2270
+ this.read.call(this, e, t, s, r + 1, i * 2, o);
2270
2271
  }, i);
2271
2272
  return;
2272
2273
  }
2273
2274
  o(u, d);
2274
- }, c = this.backend[r].bind(this.backend);
2275
+ }, c = this.backend[s].bind(this.backend);
2275
2276
  if (c.length === 2) {
2276
2277
  try {
2277
2278
  const u = c(e, t);
@@ -2284,40 +2285,40 @@ class pn extends Le {
2284
2285
  return c(e, t, a);
2285
2286
  }
2286
2287
  prepareLoading(e, t) {
2287
- let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = arguments.length > 3 ? arguments[3] : void 0;
2288
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = arguments.length > 3 ? arguments[3] : void 0;
2288
2289
  if (!this.backend)
2289
- return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
2290
+ return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
2290
2291
  k(e) && (e = this.languageUtils.toResolveHierarchy(e)), k(t) && (t = [t]);
2291
- const i = this.queueLoad(e, t, r, s);
2292
+ const i = this.queueLoad(e, t, s, r);
2292
2293
  if (!i.toLoad.length)
2293
- return i.pending.length || s(), null;
2294
+ return i.pending.length || r(), null;
2294
2295
  i.toLoad.forEach((o) => {
2295
2296
  this.loadOne(o);
2296
2297
  });
2297
2298
  }
2298
- load(e, t, r) {
2299
- this.prepareLoading(e, t, {}, r);
2299
+ load(e, t, s) {
2300
+ this.prepareLoading(e, t, {}, s);
2300
2301
  }
2301
- reload(e, t, r) {
2302
+ reload(e, t, s) {
2302
2303
  this.prepareLoading(e, t, {
2303
2304
  reload: !0
2304
- }, r);
2305
+ }, s);
2305
2306
  }
2306
2307
  loadOne(e) {
2307
2308
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
2308
- const r = e.split("|"), s = r[0], i = r[1];
2309
- this.read(s, i, "read", void 0, void 0, (o, a) => {
2310
- o && this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`, o), !o && a && this.logger.log(`${t}loaded namespace ${i} for language ${s}`, a), this.loaded(e, o, a);
2309
+ const s = e.split("|"), r = s[0], i = s[1];
2310
+ this.read(r, i, "read", void 0, void 0, (o, a) => {
2311
+ o && this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`, o), !o && a && this.logger.log(`${t}loaded namespace ${i} for language ${r}`, a), this.loaded(e, o, a);
2311
2312
  });
2312
2313
  }
2313
- saveMissing(e, t, r, s, i) {
2314
+ saveMissing(e, t, s, r, i) {
2314
2315
  let o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
2315
2316
  };
2316
2317
  if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
2317
- this.logger.warn(`did not save key "${r}" as the namespace "${t}" 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!!!");
2318
+ this.logger.warn(`did not save key "${s}" as the namespace "${t}" 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!!!");
2318
2319
  return;
2319
2320
  }
2320
- if (!(r == null || r === "")) {
2321
+ if (!(s == null || s === "")) {
2321
2322
  if (this.backend && this.backend.create) {
2322
2323
  const c = {
2323
2324
  ...o,
@@ -2326,14 +2327,14 @@ class pn extends Le {
2326
2327
  if (u.length < 6)
2327
2328
  try {
2328
2329
  let d;
2329
- u.length === 5 ? d = u(e, t, r, s, c) : d = u(e, t, r, s), d && typeof d.then == "function" ? d.then((h) => a(null, h)).catch(a) : a(null, d);
2330
+ u.length === 5 ? d = u(e, t, s, r, c) : d = u(e, t, s, r), d && typeof d.then == "function" ? d.then((h) => a(null, h)).catch(a) : a(null, d);
2330
2331
  } catch (d) {
2331
2332
  a(d);
2332
2333
  }
2333
2334
  else
2334
- u(e, t, r, s, a, c);
2335
+ u(e, t, s, r, a, c);
2335
2336
  }
2336
- !e || !e[0] || this.store.addResource(e[0], t, r, s);
2337
+ !e || !e[0] || this.store.addResource(e[0], t, s, r);
2337
2338
  }
2338
2339
  }
2339
2340
  }
@@ -2374,8 +2375,8 @@ const Ye = () => ({
2374
2375
  let e = {};
2375
2376
  if (typeof n[1] == "object" && (e = n[1]), k(n[1]) && (e.defaultValue = n[1]), k(n[2]) && (e.tDescription = n[2]), typeof n[2] == "object" || typeof n[3] == "object") {
2376
2377
  const t = n[3] || n[2];
2377
- Object.keys(t).forEach((r) => {
2378
- e[r] = t[r];
2378
+ Object.keys(t).forEach((s) => {
2379
+ e[s] = t[s];
2379
2380
  });
2380
2381
  }
2381
2382
  return e;
@@ -2414,15 +2415,15 @@ class be extends Le {
2414
2415
  }
2415
2416
  init() {
2416
2417
  var e = this;
2417
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
2418
- this.isInitializing = !0, typeof t == "function" && (r = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (k(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
2419
- const s = Ye();
2418
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
2419
+ this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (k(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
2420
+ const r = Ye();
2420
2421
  this.options = {
2421
- ...s,
2422
+ ...r,
2422
2423
  ...this.options,
2423
2424
  ...Qe(t)
2424
2425
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
2425
- ...s.interpolation,
2426
+ ...r.interpolation,
2426
2427
  ...this.options.interpolation
2427
2428
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
2428
2429
  const i = (d) => d ? typeof d == "function" ? new d() : d : null;
@@ -2437,7 +2438,7 @@ class be extends Le {
2437
2438
  prepend: this.options.pluralSeparator,
2438
2439
  compatibilityJSON: this.options.compatibilityJSON,
2439
2440
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
2440
- }), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (l.formatter = i(d), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new cn(this.options), l.utils = {
2441
+ }), d && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (l.formatter = i(d), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new cn(this.options), l.utils = {
2441
2442
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
2442
2443
  }, l.backendConnector = new pn(i(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(f) {
2443
2444
  for (var b = arguments.length, v = new Array(b > 1 ? b - 1 : 0), g = 1; g < b; g++)
@@ -2451,7 +2452,7 @@ class be extends Le {
2451
2452
  f.init && f.init(this);
2452
2453
  });
2453
2454
  }
2454
- if (this.format = this.options.interpolation.format, r || (r = ve), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2455
+ if (this.format = this.options.interpolation.format, s || (s = ve), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2455
2456
  const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2456
2457
  d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
2457
2458
  }
@@ -2466,7 +2467,7 @@ class be extends Le {
2466
2467
  });
2467
2468
  const c = pe(), u = () => {
2468
2469
  const d = (h, l) => {
2469
- 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), c.resolve(l), r(h, l);
2470
+ 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), c.resolve(l), s(h, l);
2470
2471
  };
2471
2472
  if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return d(null, this.t.bind(this));
2472
2473
  this.changeLanguage(this.options.lng, d);
@@ -2474,27 +2475,27 @@ class be extends Le {
2474
2475
  return this.options.resources || !this.options.initImmediate ? u() : setTimeout(u, 0), c;
2475
2476
  }
2476
2477
  loadResources(e) {
2477
- let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ve;
2478
- const s = k(e) ? e : this.language;
2479
- if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
2480
- if (s && s.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
2478
+ let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ve;
2479
+ const r = k(e) ? e : this.language;
2480
+ if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
2481
+ if (r && r.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
2481
2482
  const i = [], o = (a) => {
2482
2483
  if (!a || a === "cimode") return;
2483
2484
  this.services.languageUtils.toResolveHierarchy(a).forEach((u) => {
2484
2485
  u !== "cimode" && i.indexOf(u) < 0 && i.push(u);
2485
2486
  });
2486
2487
  };
2487
- s ? o(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((c) => o(c)), this.options.preload && this.options.preload.forEach((a) => o(a)), this.services.backendConnector.load(i, this.options.ns, (a) => {
2488
- !a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), r(a);
2488
+ r ? o(r) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((c) => o(c)), this.options.preload && this.options.preload.forEach((a) => o(a)), this.services.backendConnector.load(i, this.options.ns, (a) => {
2489
+ !a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(a);
2489
2490
  });
2490
2491
  } else
2491
- r(null);
2492
+ s(null);
2492
2493
  }
2493
- reloadResources(e, t, r) {
2494
- const s = pe();
2495
- return typeof e == "function" && (r = e, e = void 0), typeof t == "function" && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = ve), this.services.backendConnector.reload(e, t, (i) => {
2496
- s.resolve(), r(i);
2497
- }), s;
2494
+ reloadResources(e, t, s) {
2495
+ const r = pe();
2496
+ return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = ve), this.services.backendConnector.reload(e, t, (i) => {
2497
+ r.resolve(), s(i);
2498
+ }), r;
2498
2499
  }
2499
2500
  use(e) {
2500
2501
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
@@ -2504,25 +2505,25 @@ class be extends Le {
2504
2505
  setResolvedLanguage(e) {
2505
2506
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
2506
2507
  for (let t = 0; t < this.languages.length; t++) {
2507
- const r = this.languages[t];
2508
- if (!(["cimode", "dev"].indexOf(r) > -1) && this.store.hasLanguageSomeTranslations(r)) {
2509
- this.resolvedLanguage = r;
2508
+ const s = this.languages[t];
2509
+ if (!(["cimode", "dev"].indexOf(s) > -1) && this.store.hasLanguageSomeTranslations(s)) {
2510
+ this.resolvedLanguage = s;
2510
2511
  break;
2511
2512
  }
2512
2513
  }
2513
2514
  }
2514
2515
  changeLanguage(e, t) {
2515
- var r = this;
2516
+ var s = this;
2516
2517
  this.isLanguageChangingTo = e;
2517
- const s = pe();
2518
+ const r = pe();
2518
2519
  this.emit("languageChanging", e);
2519
2520
  const i = (c) => {
2520
2521
  this.language = c, this.languages = this.services.languageUtils.toResolveHierarchy(c), this.resolvedLanguage = void 0, this.setResolvedLanguage(c);
2521
2522
  }, o = (c, u) => {
2522
- u ? (i(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, s.resolve(function() {
2523
- return r.t(...arguments);
2523
+ u ? (i(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, r.resolve(function() {
2524
+ return s.t(...arguments);
2524
2525
  }), t && t(c, function() {
2525
- return r.t(...arguments);
2526
+ return s.t(...arguments);
2526
2527
  });
2527
2528
  }, a = (c) => {
2528
2529
  !e && !c && this.services.languageDetector && (c = []);
@@ -2531,26 +2532,26 @@ class be extends Le {
2531
2532
  o(d, u);
2532
2533
  });
2533
2534
  };
2534
- return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), s;
2535
+ return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), r;
2535
2536
  }
2536
- getFixedT(e, t, r) {
2537
- var s = this;
2537
+ getFixedT(e, t, s) {
2538
+ var r = this;
2538
2539
  const i = function(o, a) {
2539
2540
  let c;
2540
2541
  if (typeof a != "object") {
2541
2542
  for (var u = arguments.length, d = new Array(u > 2 ? u - 2 : 0), h = 2; h < u; h++)
2542
2543
  d[h - 2] = arguments[h];
2543
- c = s.options.overloadTranslationOptionHandler([o, a].concat(d));
2544
+ c = r.options.overloadTranslationOptionHandler([o, a].concat(d));
2544
2545
  } else
2545
2546
  c = {
2546
2547
  ...a
2547
2548
  };
2548
- c.lng = c.lng || i.lng, c.lngs = c.lngs || i.lngs, c.ns = c.ns || i.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || r || i.keyPrefix);
2549
- const l = s.options.keySeparator || ".";
2549
+ c.lng = c.lng || i.lng, c.lngs = c.lngs || i.lngs, c.ns = c.ns || i.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || s || i.keyPrefix);
2550
+ const l = r.options.keySeparator || ".";
2550
2551
  let f;
2551
- return c.keyPrefix && Array.isArray(o) ? f = o.map((b) => `${c.keyPrefix}${l}${b}`) : f = c.keyPrefix ? `${c.keyPrefix}${l}${o}` : o, s.t(f, c);
2552
+ return c.keyPrefix && Array.isArray(o) ? f = o.map((b) => `${c.keyPrefix}${l}${b}`) : f = c.keyPrefix ? `${c.keyPrefix}${l}${o}` : o, r.t(f, c);
2552
2553
  };
2553
- return k(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = r, i;
2554
+ return k(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = s, i;
2554
2555
  }
2555
2556
  t() {
2556
2557
  return this.translator && this.translator.translate(...arguments);
@@ -2567,8 +2568,8 @@ class be extends Le {
2567
2568
  return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
2568
2569
  if (!this.languages || !this.languages.length)
2569
2570
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
2570
- const r = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
2571
- if (r.toLowerCase() === "cimode") return !0;
2571
+ const s = t.lng || this.resolvedLanguage || this.languages[0], r = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
2572
+ if (s.toLowerCase() === "cimode") return !0;
2572
2573
  const o = (a, c) => {
2573
2574
  const u = this.services.backendConnector.state[`${a}|${c}`];
2574
2575
  return u === -1 || u === 0 || u === 2;
@@ -2577,28 +2578,28 @@ class be extends Le {
2577
2578
  const a = t.precheck(this, o);
2578
2579
  if (a !== void 0) return a;
2579
2580
  }
2580
- return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(r, e) && (!s || o(i, e)));
2581
+ return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(s, e) && (!r || o(i, e)));
2581
2582
  }
2582
2583
  loadNamespaces(e, t) {
2583
- const r = pe();
2584
- return this.options.ns ? (k(e) && (e = [e]), e.forEach((s) => {
2585
- this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
2586
- }), this.loadResources((s) => {
2587
- r.resolve(), t && t(s);
2588
- }), r) : (t && t(), Promise.resolve());
2584
+ const s = pe();
2585
+ return this.options.ns ? (k(e) && (e = [e]), e.forEach((r) => {
2586
+ this.options.ns.indexOf(r) < 0 && this.options.ns.push(r);
2587
+ }), this.loadResources((r) => {
2588
+ s.resolve(), t && t(r);
2589
+ }), s) : (t && t(), Promise.resolve());
2589
2590
  }
2590
2591
  loadLanguages(e, t) {
2591
- const r = pe();
2592
+ const s = pe();
2592
2593
  k(e) && (e = [e]);
2593
- const s = this.options.preload || [], i = e.filter((o) => s.indexOf(o) < 0 && this.services.languageUtils.isSupportedCode(o));
2594
- return i.length ? (this.options.preload = s.concat(i), this.loadResources((o) => {
2595
- r.resolve(), t && t(o);
2596
- }), r) : (t && t(), Promise.resolve());
2594
+ const r = this.options.preload || [], i = e.filter((o) => r.indexOf(o) < 0 && this.services.languageUtils.isSupportedCode(o));
2595
+ return i.length ? (this.options.preload = r.concat(i), this.loadResources((o) => {
2596
+ s.resolve(), t && t(o);
2597
+ }), s) : (t && t(), Promise.resolve());
2597
2598
  }
2598
2599
  dir(e) {
2599
2600
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
2600
- const t = ["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"], r = this.services && this.services.languageUtils || new We(Ye());
2601
- return t.indexOf(r.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
2601
+ const t = ["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"], s = this.services && this.services.languageUtils || new We(Ye());
2602
+ return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
2602
2603
  }
2603
2604
  static createInstance() {
2604
2605
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
@@ -2606,24 +2607,24 @@ class be extends Le {
2606
2607
  }
2607
2608
  cloneInstance() {
2608
2609
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ve;
2609
- const r = e.forkResourceStore;
2610
- r && delete e.forkResourceStore;
2611
- const s = {
2610
+ const s = e.forkResourceStore;
2611
+ s && delete e.forkResourceStore;
2612
+ const r = {
2612
2613
  ...this.options,
2613
2614
  ...e,
2614
2615
  isClone: !0
2615
- }, i = new be(s);
2616
+ }, i = new be(r);
2616
2617
  return (e.debug !== void 0 || e.prefix !== void 0) && (i.logger = i.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
2617
2618
  i[a] = this[a];
2618
2619
  }), i.services = {
2619
2620
  ...this.services
2620
2621
  }, i.services.utils = {
2621
2622
  hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
2622
- }, r && (i.store = new Ke(this.store.data, s), i.services.resourceStore = i.store), i.translator = new ke(i.services, s), i.translator.on("*", function(a) {
2623
+ }, s && (i.store = new Ke(this.store.data, r), i.services.resourceStore = i.store), i.translator = new ke(i.services, r), i.translator.on("*", function(a) {
2623
2624
  for (var c = arguments.length, u = new Array(c > 1 ? c - 1 : 0), d = 1; d < c; d++)
2624
2625
  u[d - 1] = arguments[d];
2625
2626
  i.emit(a, ...u);
2626
- }), i.init(s, t), i.translator.options = s, i.translator.backendConnector.services.utils = {
2627
+ }), i.init(r, t), i.translator.options = r, i.translator.backendConnector.services.utils = {
2627
2628
  hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
2628
2629
  }, i;
2629
2630
  }
@@ -2653,14 +2654,14 @@ F.setDefaultNamespace;
2653
2654
  F.hasLoadedNamespace;
2654
2655
  F.loadNamespaces;
2655
2656
  F.loadLanguages;
2656
- function Wr(n) {
2657
+ function Ws(n) {
2657
2658
  const e = F.createInstance(), t = {};
2658
- for (const s in n)
2659
- t[s] = { translation: n[s] };
2660
- const r = typeof document < "u" && document.documentElement.lang || "en";
2659
+ for (const r in n)
2660
+ t[r] = { translation: n[r] };
2661
+ const s = typeof document < "u" && document.documentElement.lang || "en";
2661
2662
  return e.init({
2662
2663
  resources: t,
2663
- lng: r,
2664
+ lng: s,
2664
2665
  fallbackLng: "en",
2665
2666
  interpolation: {
2666
2667
  escapeValue: !1
@@ -2753,13 +2754,13 @@ class mn {
2753
2754
  */
2754
2755
  subscribe(e, t) {
2755
2756
  return this.listeners.has(e) || this.listeners.set(e, /* @__PURE__ */ new Set()), this.listeners.get(e).add(t), () => {
2756
- var r;
2757
- (r = this.listeners.get(e)) == null || r.delete(t);
2757
+ var s;
2758
+ (s = this.listeners.get(e)) == null || s.delete(t);
2758
2759
  };
2759
2760
  }
2760
2761
  notify(e, t) {
2761
- var r;
2762
- (r = this.listeners.get(e)) == null || r.forEach((s) => s(t));
2762
+ var s;
2763
+ (s = this.listeners.get(e)) == null || s.forEach((r) => r(t));
2763
2764
  }
2764
2765
  }
2765
2766
  const q = new mn();
@@ -2774,9 +2775,9 @@ class bn {
2774
2775
  * @param handler - Function that returns true if it handled the back action
2775
2776
  * @returns Unsubscribe function
2776
2777
  */
2777
- register(e, t, r) {
2778
- return this.handlers = this.handlers.filter((s) => s.id !== e), this.handlers.push({ id: e, priority: t, handler: r }), this.handlers.sort((s, i) => i.priority - s.priority), () => {
2779
- this.handlers = this.handlers.filter((s) => s.id !== e);
2778
+ register(e, t, s) {
2779
+ return this.handlers = this.handlers.filter((r) => r.id !== e), this.handlers.push({ id: e, priority: t, handler: s }), this.handlers.sort((r, i) => i.priority - r.priority), () => {
2780
+ this.handlers = this.handlers.filter((r) => r.id !== e);
2780
2781
  };
2781
2782
  }
2782
2783
  /**
@@ -2826,22 +2827,22 @@ class xn {
2826
2827
  * @returns Promise that resolves with the RunningApp when ref is ready, or null if app not found
2827
2828
  */
2828
2829
  async launchApp(e, t) {
2829
- const { launchInBackground: r = !1 } = t || {};
2830
+ const { launchInBackground: s = !1 } = t || {};
2830
2831
  if (!ue.has(e))
2831
2832
  return console.error(`Cannot launch app "${e}": not registered`), null;
2832
- const s = this.apps.find((o) => o.appId === e);
2833
- if (s)
2834
- return r || (this.setActiveApp(e), q._setActiveAppId(e)), s.ref ? s : this.waitForRef(e);
2833
+ const r = this.apps.find((o) => o.appId === e);
2834
+ if (r)
2835
+ return s || (this.setActiveApp(e), q._setActiveAppId(e)), r.ref ? r : this.waitForRef(e);
2835
2836
  const i = {
2836
2837
  appId: e,
2837
2838
  launchedAt: Date.now()
2838
2839
  };
2839
- return this.apps.push(i), r || (this.activeAppId = e, q._setActiveAppId(e), Xe(e)), this.notify(), this.waitForRef(e);
2840
+ return this.apps.push(i), s || (this.activeAppId = e, q._setActiveAppId(e), Xe(e)), this.notify(), this.waitForRef(e);
2840
2841
  }
2841
2842
  waitForRef(e) {
2842
2843
  return new Promise((t) => {
2843
- const r = this.refReadyResolvers.get(e) || [];
2844
- r.push(t), this.refReadyResolvers.set(e, r);
2844
+ const s = this.refReadyResolvers.get(e) || [];
2845
+ s.push(t), this.refReadyResolvers.set(e, s);
2845
2846
  });
2846
2847
  }
2847
2848
  /**
@@ -2849,14 +2850,14 @@ class xn {
2849
2850
  * This resolves any pending launchApp promises.
2850
2851
  */
2851
2852
  setAppRef(e, t) {
2852
- const r = this.apps.find((i) => i.appId === e);
2853
- if (!r) {
2853
+ const s = this.apps.find((i) => i.appId === e);
2854
+ if (!s) {
2854
2855
  console.warn(`Cannot set ref for app "${e}": not running`);
2855
2856
  return;
2856
2857
  }
2857
- r.ref = t;
2858
- const s = this.refReadyResolvers.get(e);
2859
- s && (s.forEach((i) => i(r)), this.refReadyResolvers.delete(e));
2858
+ s.ref = t;
2859
+ const r = this.refReadyResolvers.get(e);
2860
+ r && (r.forEach((i) => i(s)), this.refReadyResolvers.delete(e));
2860
2861
  }
2861
2862
  /**
2862
2863
  * Get a running app by id.
@@ -2868,12 +2869,12 @@ class xn {
2868
2869
  * Close a running app.
2869
2870
  */
2870
2871
  closeApp(e) {
2871
- const t = this.apps.findIndex((s) => s.appId === e);
2872
+ const t = this.apps.findIndex((r) => r.appId === e);
2872
2873
  if (t === -1) return;
2873
- const r = this.apps[t];
2874
- if (r.ref && (r.ref = void 0), this.apps.splice(t, 1), this.activeAppId === e) {
2875
- const s = window.innerWidth >= 768;
2876
- this.activeAppId = s && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, q._setActiveAppId(this.activeAppId), this.activeAppId ? Xe(this.activeAppId) : vn();
2874
+ const s = this.apps[t];
2875
+ if (s.ref && (s.ref = void 0), this.apps.splice(t, 1), this.activeAppId === e) {
2876
+ const r = window.innerWidth >= 768;
2877
+ this.activeAppId = r && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, q._setActiveAppId(this.activeAppId), this.activeAppId ? Xe(this.activeAppId) : vn();
2877
2878
  }
2878
2879
  this.notify();
2879
2880
  }
@@ -2929,7 +2930,7 @@ class xn {
2929
2930
  this.listeners.forEach((e) => e());
2930
2931
  }
2931
2932
  }
2932
- const W = new xn(), ut = se(null);
2933
+ const W = new xn(), ut = re(null);
2933
2934
  function yn() {
2934
2935
  const n = Z(ut);
2935
2936
  if (!n)
@@ -2940,14 +2941,14 @@ function wn() {
2940
2941
  if (console && console.warn) {
2941
2942
  for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
2942
2943
  e[t] = arguments[t];
2943
- re(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
2944
+ se(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
2944
2945
  }
2945
2946
  }
2946
2947
  const Ze = {};
2947
2948
  function Ie() {
2948
2949
  for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
2949
2950
  e[t] = arguments[t];
2950
- re(e[0]) && Ze[e[0]] || (re(e[0]) && (Ze[e[0]] = /* @__PURE__ */ new Date()), wn(...e));
2951
+ se(e[0]) && Ze[e[0]] || (se(e[0]) && (Ze[e[0]] = /* @__PURE__ */ new Date()), wn(...e));
2951
2952
  }
2952
2953
  const dt = (n, e) => () => {
2953
2954
  if (n.isInitialized)
@@ -2962,28 +2963,28 @@ const dt = (n, e) => () => {
2962
2963
  }
2963
2964
  }, _e = (n, e, t) => {
2964
2965
  n.loadNamespaces(e, dt(n, t));
2965
- }, et = (n, e, t, r) => {
2966
- re(t) && (t = [t]), t.forEach((s) => {
2967
- n.options.ns.indexOf(s) < 0 && n.options.ns.push(s);
2968
- }), n.loadLanguages(e, dt(n, r));
2966
+ }, et = (n, e, t, s) => {
2967
+ se(t) && (t = [t]), t.forEach((r) => {
2968
+ n.options.ns.indexOf(r) < 0 && n.options.ns.push(r);
2969
+ }), n.loadLanguages(e, dt(n, s));
2969
2970
  }, Sn = function(n, e) {
2970
2971
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2971
- const r = e.languages[0], s = e.options ? e.options.fallbackLng : !1, i = e.languages[e.languages.length - 1];
2972
- if (r.toLowerCase() === "cimode") return !0;
2972
+ const s = e.languages[0], r = e.options ? e.options.fallbackLng : !1, i = e.languages[e.languages.length - 1];
2973
+ if (s.toLowerCase() === "cimode") return !0;
2973
2974
  const o = (a, c) => {
2974
2975
  const u = e.services.backendConnector.state[`${a}|${c}`];
2975
2976
  return u === -1 || u === 2;
2976
2977
  };
2977
- return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !o(e.isLanguageChangingTo, n) ? !1 : !!(e.hasResourceBundle(r, n) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || o(r, n) && (!s || o(i, n)));
2978
+ return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !o(e.isLanguageChangingTo, n) ? !1 : !!(e.hasResourceBundle(s, n) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || o(s, n) && (!r || o(i, n)));
2978
2979
  }, Nn = function(n, e) {
2979
2980
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2980
2981
  return !e.languages || !e.languages.length ? (Ie("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(n, {
2981
2982
  lng: t.lng,
2982
- precheck: (s, i) => {
2983
- if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !i(s.isLanguageChangingTo, n)) return !1;
2983
+ precheck: (r, i) => {
2984
+ if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !i(r.isLanguageChangingTo, n)) return !1;
2984
2985
  }
2985
2986
  }) : Sn(n, e, t);
2986
- }, re = (n) => typeof n == "string", kn = (n) => typeof n == "object" && n !== null, Cn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ln = {
2987
+ }, se = (n) => typeof n == "string", kn = (n) => typeof n == "object" && n !== null, Cn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ln = {
2987
2988
  "&amp;": "&",
2988
2989
  "&#38;": "&",
2989
2990
  "&lt;": "<",
@@ -3017,7 +3018,7 @@ let $n = {
3017
3018
  };
3018
3019
  const On = () => $n;
3019
3020
  let In;
3020
- const Pn = () => In, En = se();
3021
+ const Pn = () => In, En = re();
3021
3022
  class Tn {
3022
3023
  constructor() {
3023
3024
  G(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
@@ -3034,17 +3035,17 @@ const Mn = (n, e) => {
3034
3035
  return T(() => {
3035
3036
  t.current = n;
3036
3037
  }, [n, e]), t.current;
3037
- }, ft = (n, e, t, r) => n.getFixedT(e, t, r), zn = (n, e, t, r) => D(ft(n, e, t, r), [n, e, t, r]), pt = function(n) {
3038
+ }, ft = (n, e, t, s) => n.getFixedT(e, t, s), zn = (n, e, t, s) => D(ft(n, e, t, s), [n, e, t, s]), pt = function(n) {
3038
3039
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3039
3040
  const {
3040
3041
  i18n: t
3041
3042
  } = e, {
3042
- i18n: r,
3043
- defaultNS: s
3044
- } = Z(En) || {}, i = t || r || Pn();
3043
+ i18n: s,
3044
+ defaultNS: r
3045
+ } = Z(En) || {}, i = t || s || Pn();
3045
3046
  if (i && !i.reportNamespaces && (i.reportNamespaces = new Tn()), !i) {
3046
3047
  Ie("You will need to pass in an i18next instance by using initReactI18next");
3047
- const m = (S, N) => re(N) ? N : kn(N) && re(N.defaultValue) ? N.defaultValue : Array.isArray(S) ? S[S.length - 1] : S, w = [m, {}, !1];
3048
+ const m = (S, N) => se(N) ? N : kn(N) && se(N.defaultValue) ? N.defaultValue : Array.isArray(S) ? S[S.length - 1] : S, w = [m, {}, !1];
3048
3049
  return w.t = m, w.i18n = {}, w.ready = !1, w;
3049
3050
  }
3050
3051
  i.options.react && i.options.react.wait !== void 0 && Ie("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
@@ -3056,8 +3057,8 @@ const Mn = (n, e) => {
3056
3057
  useSuspense: a,
3057
3058
  keyPrefix: c
3058
3059
  } = o;
3059
- let u = s || i.options && i.options.defaultNS;
3060
- u = re(u) ? [u] : u || ["translation"], i.reportNamespaces.addUsedNamespaces && i.reportNamespaces.addUsedNamespaces(u);
3060
+ let u = r || i.options && i.options.defaultNS;
3061
+ u = se(u) ? [u] : u || ["translation"], i.reportNamespaces.addUsedNamespaces && i.reportNamespaces.addUsedNamespaces(u);
3061
3062
  const d = (i.isInitialized || i.initializedStoreOnce) && u.every((m) => Nn(m, i, o)), h = zn(i, e.lng || null, o.nsMode === "fallback" ? u : u[0], c), l = () => h, f = () => ft(i, e.lng || null, o.nsMode === "fallback" ? u : u[0], c), [b, v] = z(l);
3062
3063
  let g = u.join();
3063
3064
  e.lng && (g = `${e.lng}${g}`);
@@ -3106,10 +3107,10 @@ function jn({ size: n = 16 }) {
3106
3107
  }
3107
3108
  );
3108
3109
  }
3109
- function Fn({ title: n, onClose: e, onBack: t, toolbar: r, hideBackButton: s }) {
3110
+ function Fn({ title: n, onClose: e, onBack: t, toolbar: s, hideBackButton: r }) {
3110
3111
  return /* @__PURE__ */ C("div", { className: "nc-app-title-bar", children: [
3111
3112
  /* @__PURE__ */ C("div", { className: "nc-app-title-bar-left", children: [
3112
- t && !s && /* @__PURE__ */ p(
3113
+ t && !r && /* @__PURE__ */ p(
3113
3114
  "button",
3114
3115
  {
3115
3116
  className: "nc-app-title-bar-back",
@@ -3122,7 +3123,7 @@ function Fn({ title: n, onClose: e, onBack: t, toolbar: r, hideBackButton: s })
3122
3123
  /* @__PURE__ */ p("span", { className: "nc-app-title-bar-title", children: n })
3123
3124
  ] }),
3124
3125
  /* @__PURE__ */ C("div", { className: "nc-app-title-bar-right", children: [
3125
- r && /* @__PURE__ */ p("div", { className: "nc-app-title-bar-toolbar", children: r }),
3126
+ s && /* @__PURE__ */ p("div", { className: "nc-app-title-bar-toolbar", children: s }),
3126
3127
  /* @__PURE__ */ p(it, { onClick: e, "aria-label": "Close application" })
3127
3128
  ] })
3128
3129
  ] });
@@ -3161,10 +3162,10 @@ class Dn extends Ee.Component {
3161
3162
  }
3162
3163
  }
3163
3164
  function ht({ appId: n, isActive: e, onClose: t }) {
3164
- const { t: r } = pt(), s = ue.get(n), [i, o] = z(""), [a, c] = z(null), [u, d] = z(null), [h, l] = z(!1), [f, b] = z(!1);
3165
+ const { t: s } = pt(), r = ue.get(n), [i, o] = z(""), [a, c] = z(null), [u, d] = z(null), [h, l] = z(!1), [f, b] = z(!1);
3165
3166
  Ee.useEffect(() => {
3166
- s != null && s.titleKey && o(r(s.titleKey));
3167
- }, [s, r]), T(() => {
3167
+ r != null && r.titleKey && o(s(r.titleKey));
3168
+ }, [r, s]), T(() => {
3168
3169
  if (e)
3169
3170
  return ct.register(`app-${n}`, 50, () => a ? (a(), !0) : (t(), !0));
3170
3171
  }, [e, a, t, n]);
@@ -3192,9 +3193,9 @@ function ht({ appId: n, isActive: e, onClose: t }) {
3192
3193
  setHideTitleBar: w,
3193
3194
  close: t
3194
3195
  }), [v, g, y, x, A, m, w, t]);
3195
- if (!s)
3196
+ if (!r)
3196
3197
  return null;
3197
- const N = s.component, M = !s.hideTitleBar && !f;
3198
+ const N = r.component, M = !r.hideTitleBar && !f;
3198
3199
  return /* @__PURE__ */ C(
3199
3200
  "div",
3200
3201
  {
@@ -3220,7 +3221,7 @@ function ht({ appId: n, isActive: e, onClose: t }) {
3220
3221
  {
3221
3222
  className: M ? "nc-app-content-wrapper" : "",
3222
3223
  style: {
3223
- padding: s.padding,
3224
+ padding: r.padding,
3224
3225
  flex: 1,
3225
3226
  minHeight: 0,
3226
3227
  display: "flex",
@@ -3229,7 +3230,7 @@ function ht({ appId: n, isActive: e, onClose: t }) {
3229
3230
  position: "relative"
3230
3231
  },
3231
3232
  children: /* @__PURE__ */ p(ut.Provider, { value: S, children: /* @__PURE__ */ p(Dn, { appId: n, children: /* @__PURE__ */ p(
3232
- At,
3233
+ Lt,
3233
3234
  {
3234
3235
  fallback: /* @__PURE__ */ p(
3235
3236
  "div",
@@ -3240,7 +3241,7 @@ function ht({ appId: n, isActive: e, onClose: t }) {
3240
3241
  justifyContent: "center",
3241
3242
  flex: 1
3242
3243
  },
3243
- children: /* @__PURE__ */ p(rt, {})
3244
+ children: /* @__PURE__ */ p(st, {})
3244
3245
  }
3245
3246
  ),
3246
3247
  children: /* @__PURE__ */ p(N, {})
@@ -3258,38 +3259,38 @@ const xe = 768, ye = 1024, gt = {
3258
3259
  isDesktop: !0,
3259
3260
  width: typeof window < "u" ? window.innerWidth : 1024,
3260
3261
  height: typeof window < "u" ? window.innerHeight : 768
3261
- }, mt = se(gt);
3262
- function Gr({ children: n }) {
3262
+ }, mt = re(gt);
3263
+ function Gs({ children: n }) {
3263
3264
  const [e, t] = z(() => {
3264
3265
  if (typeof window > "u") return gt;
3265
- const r = window.innerWidth, s = window.innerHeight;
3266
+ const s = window.innerWidth, r = window.innerHeight;
3266
3267
  return {
3267
- isMobile: r < xe,
3268
- isTablet: r >= xe && r < ye,
3269
- isDesktop: r >= ye,
3270
- width: r,
3271
- height: s
3268
+ isMobile: s < xe,
3269
+ isTablet: s >= xe && s < ye,
3270
+ isDesktop: s >= ye,
3271
+ width: s,
3272
+ height: r
3272
3273
  };
3273
3274
  });
3274
3275
  return T(() => {
3275
- const r = () => {
3276
- const s = window.innerWidth, i = window.innerHeight;
3276
+ const s = () => {
3277
+ const r = window.innerWidth, i = window.innerHeight;
3277
3278
  t({
3278
- isMobile: s < xe,
3279
- isTablet: s >= xe && s < ye,
3280
- isDesktop: s >= ye,
3281
- width: s,
3279
+ isMobile: r < xe,
3280
+ isTablet: r >= xe && r < ye,
3281
+ isDesktop: r >= ye,
3282
+ width: r,
3282
3283
  height: i
3283
3284
  });
3284
3285
  };
3285
- return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
3286
+ return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
3286
3287
  }, []), /* @__PURE__ */ p(mt.Provider, { value: e, children: n });
3287
3288
  }
3288
3289
  function bt() {
3289
3290
  return Z(mt);
3290
3291
  }
3291
- function Jr() {
3292
- const { isMobile: n } = bt(), [e, t] = z(() => q.getActiveAppId()), [r, s] = z(() => W.getRunningApps());
3292
+ function Js() {
3293
+ const { isMobile: n } = bt(), [e, t] = z(() => q.getActiveAppId()), [s, r] = z(() => W.getRunningApps());
3293
3294
  T(() => {
3294
3295
  const h = q.subscribe("activeAppId", (l) => {
3295
3296
  t(l);
@@ -3298,7 +3299,7 @@ function Jr() {
3298
3299
  h();
3299
3300
  };
3300
3301
  }, []), T(() => W.subscribe(() => {
3301
- s(W.getRunningApps());
3302
+ r(W.getRunningApps());
3302
3303
  }), []), T(() => {
3303
3304
  if (!new URLSearchParams(window.location.search).has("app")) {
3304
3305
  const f = q.getActiveAppId();
@@ -3322,7 +3323,7 @@ function Jr() {
3322
3323
  zIndex: n && u ? 10 : void 0,
3323
3324
  maxHeight: n && u ? "calc(100% - 56px)" : "100%",
3324
3325
  borderRight: u && !n ? "1px solid var(--nc-border)" : void 0
3325
- }, children: r.map((h) => /* @__PURE__ */ p(
3326
+ }, children: s.map((h) => /* @__PURE__ */ p(
3326
3327
  ht,
3327
3328
  {
3328
3329
  appId: h.appId,
@@ -3332,11 +3333,11 @@ function Jr() {
3332
3333
  h.appId
3333
3334
  )) });
3334
3335
  }
3335
- function Yr({ pinnedAppIds: n, className: e = "" }) {
3336
- const { isMobile: t } = bt(), [r, s] = z(() => q.getActiveAppId()), [i, o] = z(() => W.getRunningApps());
3336
+ function Ys({ pinnedAppIds: n, className: e = "" }) {
3337
+ const { isMobile: t } = bt(), [s, r] = z(() => q.getActiveAppId()), [i, o] = z(() => W.getRunningApps());
3337
3338
  T(() => {
3338
3339
  const l = q.subscribe("activeAppId", (f) => {
3339
- s(f);
3340
+ r(f);
3340
3341
  });
3341
3342
  return () => {
3342
3343
  l();
@@ -3345,11 +3346,11 @@ function Yr({ pinnedAppIds: n, className: e = "" }) {
3345
3346
  o(W.getRunningApps());
3346
3347
  }), []);
3347
3348
  const a = (l) => {
3348
- r === l ? W.setActiveApp(null) : W.launchApp(l);
3349
+ s === l ? W.setActiveApp(null) : W.launchApp(l);
3349
3350
  }, c = n.map((l) => ue.get(l)).filter((l) => !!l), u = i.filter((l) => !n.includes(l.appId)).map((l) => ({ running: l, def: ue.get(l.appId) })).filter((l) => !!l.def), d = (l) => i.some((f) => f.appId === l), h = t ? 24 : 28;
3350
3351
  return /* @__PURE__ */ C("div", { className: `nc-app-taskbar ${t ? "nc-mobile" : "nc-desktop"} ${e}`, children: [
3351
3352
  c.map((l) => {
3352
- const f = l.icon, b = r === l.id, v = d(l.id);
3353
+ const f = l.icon, b = s === l.id, v = d(l.id);
3353
3354
  return /* @__PURE__ */ C(
3354
3355
  "button",
3355
3356
  {
@@ -3366,7 +3367,7 @@ function Yr({ pinnedAppIds: n, className: e = "" }) {
3366
3367
  }),
3367
3368
  u.length > 0 && /* @__PURE__ */ p("div", { className: "nc-app-taskbar-separator" }),
3368
3369
  u.map(({ running: l, def: f }) => {
3369
- const b = f.icon, v = r === l.appId;
3370
+ const b = f.icon, v = s === l.appId;
3370
3371
  return /* @__PURE__ */ C(
3371
3372
  "button",
3372
3373
  {
@@ -3383,17 +3384,17 @@ function Yr({ pinnedAppIds: n, className: e = "" }) {
3383
3384
  })
3384
3385
  ] });
3385
3386
  }
3386
- function Qr({
3387
+ function Qs({
3387
3388
  appId: n,
3388
3389
  open: e,
3389
3390
  onClose: t,
3390
- closeOnBackdrop: r = !1,
3391
- className: s = "",
3391
+ closeOnBackdrop: s = !1,
3392
+ className: r = "",
3392
3393
  maxWidth: i = 1200,
3393
3394
  maxHeight: o = 900
3394
3395
  }) {
3395
3396
  const a = (u) => {
3396
- r && u.target === u.currentTarget && t();
3397
+ s && u.target === u.currentTarget && t();
3397
3398
  };
3398
3399
  if (T(() => {
3399
3400
  if (!e) return;
@@ -3408,7 +3409,7 @@ function Qr({
3408
3409
  children: /* @__PURE__ */ p(
3409
3410
  "div",
3410
3411
  {
3411
- className: `nc-app-dialog-container ${s}`,
3412
+ className: `nc-app-dialog-container ${r}`,
3412
3413
  style: {
3413
3414
  maxWidth: `${i}px`,
3414
3415
  maxHeight: `${o}px`
@@ -3428,22 +3429,22 @@ function Qr({
3428
3429
  );
3429
3430
  return Ce(c, document.body);
3430
3431
  }
3431
- const Me = se(null), vt = se(null);
3432
- function qr() {
3432
+ const Me = re(null), vt = re(null);
3433
+ function qs() {
3433
3434
  const n = Z(Me);
3434
3435
  if (!n)
3435
3436
  throw new Error("useNavStack must be used within a NavStackProvider");
3436
3437
  return n;
3437
3438
  }
3438
- function Xr() {
3439
+ function Xs() {
3439
3440
  const n = Z(vt);
3440
3441
  if (!n)
3441
3442
  throw new Error("useNavView must be used within NavStack");
3442
3443
  return n;
3443
3444
  }
3444
- const ze = se(null);
3445
- function Zr({ rootView: n, children: e }) {
3446
- const { t } = pt(), r = yn(), [s, i] = z([n]), [o, a] = z([null]), c = D((m, w) => {
3445
+ const ze = re(null);
3446
+ function Zs({ rootView: n, children: e }) {
3447
+ const { t } = pt(), s = yn(), [r, i] = z([n]), [o, a] = z([null]), c = D((m, w) => {
3447
3448
  a((S) => {
3448
3449
  const N = [...S];
3449
3450
  return N[m] = w, N;
@@ -3459,15 +3460,15 @@ function Zr({ rootView: n, children: e }) {
3459
3460
  i((m) => m.length <= 1 ? m : m.slice(0, -1)), a((m) => m.slice(0, -1));
3460
3461
  }, []), l = D(() => {
3461
3462
  i([n]), a([null]);
3462
- }, [n]), f = s.length, b = f > 1, v = s.length - 1, g = s[s.length - 1], y = g != null && g.titleKey ? t(g.titleKey) : (g == null ? void 0 : g.title) ?? "";
3463
+ }, [n]), f = r.length, b = f > 1, v = r.length - 1, g = r[r.length - 1], y = g != null && g.titleKey ? t(g.titleKey) : (g == null ? void 0 : g.title) ?? "";
3463
3464
  T(() => {
3464
- r.setTitle(y);
3465
- }, [y, r]), T(() => {
3466
- b ? r.setBackHandler(h) : r.clearBackHandler();
3467
- }, [b, h, r]), T(() => {
3465
+ s.setTitle(y);
3466
+ }, [y, s]), T(() => {
3467
+ b ? s.setBackHandler(h) : s.clearBackHandler();
3468
+ }, [b, h, s]), T(() => {
3468
3469
  const m = o[o.length - 1];
3469
- m ? r.setToolbar(m) : r.clearToolbar();
3470
- }, [o, r]);
3470
+ m ? s.setToolbar(m) : s.clearToolbar();
3471
+ }, [o, s]);
3471
3472
  const x = {
3472
3473
  push: d,
3473
3474
  pop: h,
@@ -3476,7 +3477,7 @@ function Zr({ rootView: n, children: e }) {
3476
3477
  canGoBack: b,
3477
3478
  currentTitle: y
3478
3479
  }, A = {
3479
- stack: s,
3480
+ stack: r,
3480
3481
  toolbarStack: o,
3481
3482
  updateToolbar: c,
3482
3483
  clearToolbarAt: u,
@@ -3488,124 +3489,111 @@ function Bn({ index: n, children: e }) {
3488
3489
  const t = Z(ze);
3489
3490
  if (!t)
3490
3491
  throw new Error("NavViewProvider must be used within NavStackProvider");
3491
- const { updateToolbar: r, clearToolbarAt: s, topIndex: i } = t, o = D((u) => {
3492
- n === i && r(n, u);
3493
- }, [n, i, r]), a = D(() => {
3494
- n === i && s(n);
3495
- }, [n, i, s]), c = {
3492
+ const { updateToolbar: s, clearToolbarAt: r, topIndex: i } = t, o = D((u) => {
3493
+ n === i && s(n, u);
3494
+ }, [n, i, s]), a = D(() => {
3495
+ n === i && r(n);
3496
+ }, [n, i, r]), c = {
3496
3497
  setToolbar: o,
3497
3498
  clearToolbar: a
3498
3499
  };
3499
3500
  return /* @__PURE__ */ p(vt.Provider, { value: c, children: e });
3500
3501
  }
3501
- function _r() {
3502
+ function _s() {
3502
3503
  const n = Z(Me), e = Z(ze);
3503
3504
  if (!n || !e)
3504
3505
  throw new Error("NavStackContainer must be used within a NavStackProvider");
3505
3506
  const { stack: t } = e;
3506
- return /* @__PURE__ */ p("div", { className: "nav-stack-container", children: /* @__PURE__ */ p("div", { className: "nav-stack-content", children: t.map((r, s) => {
3507
- const i = s === t.length - 1;
3508
- return /* @__PURE__ */ p(Bn, { index: s, children: /* @__PURE__ */ p(
3507
+ return /* @__PURE__ */ p("div", { className: "nav-stack-container", children: /* @__PURE__ */ p("div", { className: "nav-stack-content", children: t.map((s, r) => {
3508
+ const i = r === t.length - 1;
3509
+ return /* @__PURE__ */ p(Bn, { index: r, children: /* @__PURE__ */ p(
3509
3510
  "div",
3510
3511
  {
3511
3512
  style: { display: i ? "flex" : "none", flexDirection: "column", height: "100%" },
3512
- children: r.component
3513
+ children: s.component
3513
3514
  }
3514
- ) }, r.id);
3515
+ ) }, s.id);
3515
3516
  }) }) });
3516
3517
  }
3517
- function xt(n) {
3518
- var e, t, r = "";
3519
- if (typeof n == "string" || typeof n == "number") r += n;
3520
- else if (typeof n == "object") if (Array.isArray(n)) {
3521
- var s = n.length;
3522
- for (e = 0; e < s; e++) n[e] && (t = xt(n[e])) && (r && (r += " "), r += t);
3523
- } else for (t in n) n[t] && (r && (r += " "), r += t);
3524
- return r;
3525
- }
3526
- function Vn() {
3527
- for (var n, e, t = 0, r = "", s = arguments.length; t < s; t++) (n = arguments[t]) && (e = xt(n)) && (r && (r += " "), r += e);
3528
- return r;
3529
- }
3530
- const je = "-", Hn = (n) => {
3531
- const e = Un(n), {
3518
+ const je = "-", Vn = (n) => {
3519
+ const e = Kn(n), {
3532
3520
  conflictingClassGroups: t,
3533
- conflictingClassGroupModifiers: r
3521
+ conflictingClassGroupModifiers: s
3534
3522
  } = n;
3535
3523
  return {
3536
3524
  getClassGroupId: (o) => {
3537
3525
  const a = o.split(je);
3538
- return a[0] === "" && a.length !== 1 && a.shift(), yt(a, e) || Kn(o);
3526
+ return a[0] === "" && a.length !== 1 && a.shift(), xt(a, e) || Hn(o);
3539
3527
  },
3540
3528
  getConflictingClassGroupIds: (o, a) => {
3541
3529
  const c = t[o] || [];
3542
- return a && r[o] ? [...c, ...r[o]] : c;
3530
+ return a && s[o] ? [...c, ...s[o]] : c;
3543
3531
  }
3544
3532
  };
3545
- }, yt = (n, e) => {
3533
+ }, xt = (n, e) => {
3546
3534
  var o;
3547
3535
  if (n.length === 0)
3548
3536
  return e.classGroupId;
3549
- const t = n[0], r = e.nextPart.get(t), s = r ? yt(n.slice(1), r) : void 0;
3550
- if (s)
3551
- return s;
3537
+ const t = n[0], s = e.nextPart.get(t), r = s ? xt(n.slice(1), s) : void 0;
3538
+ if (r)
3539
+ return r;
3552
3540
  if (e.validators.length === 0)
3553
3541
  return;
3554
3542
  const i = n.join(je);
3555
3543
  return (o = e.validators.find(({
3556
3544
  validator: a
3557
3545
  }) => a(i))) == null ? void 0 : o.classGroupId;
3558
- }, tt = /^\[(.+)\]$/, Kn = (n) => {
3546
+ }, tt = /^\[(.+)\]$/, Hn = (n) => {
3559
3547
  if (tt.test(n)) {
3560
3548
  const e = tt.exec(n)[1], t = e == null ? void 0 : e.substring(0, e.indexOf(":"));
3561
3549
  if (t)
3562
3550
  return "arbitrary.." + t;
3563
3551
  }
3564
- }, Un = (n) => {
3552
+ }, Kn = (n) => {
3565
3553
  const {
3566
3554
  theme: e,
3567
3555
  prefix: t
3568
- } = n, r = {
3556
+ } = n, s = {
3569
3557
  nextPart: /* @__PURE__ */ new Map(),
3570
3558
  validators: []
3571
3559
  };
3572
- return Gn(Object.entries(n.classGroups), t).forEach(([i, o]) => {
3573
- Pe(o, r, i, e);
3574
- }), r;
3575
- }, Pe = (n, e, t, r) => {
3576
- n.forEach((s) => {
3577
- if (typeof s == "string") {
3578
- const i = s === "" ? e : nt(e, s);
3560
+ return Wn(Object.entries(n.classGroups), t).forEach(([i, o]) => {
3561
+ Pe(o, s, i, e);
3562
+ }), s;
3563
+ }, Pe = (n, e, t, s) => {
3564
+ n.forEach((r) => {
3565
+ if (typeof r == "string") {
3566
+ const i = r === "" ? e : nt(e, r);
3579
3567
  i.classGroupId = t;
3580
3568
  return;
3581
3569
  }
3582
- if (typeof s == "function") {
3583
- if (Wn(s)) {
3584
- Pe(s(r), e, t, r);
3570
+ if (typeof r == "function") {
3571
+ if (Un(r)) {
3572
+ Pe(r(s), e, t, s);
3585
3573
  return;
3586
3574
  }
3587
3575
  e.validators.push({
3588
- validator: s,
3576
+ validator: r,
3589
3577
  classGroupId: t
3590
3578
  });
3591
3579
  return;
3592
3580
  }
3593
- Object.entries(s).forEach(([i, o]) => {
3594
- Pe(o, nt(e, i), t, r);
3581
+ Object.entries(r).forEach(([i, o]) => {
3582
+ Pe(o, nt(e, i), t, s);
3595
3583
  });
3596
3584
  });
3597
3585
  }, nt = (n, e) => {
3598
3586
  let t = n;
3599
- return e.split(je).forEach((r) => {
3600
- t.nextPart.has(r) || t.nextPart.set(r, {
3587
+ return e.split(je).forEach((s) => {
3588
+ t.nextPart.has(s) || t.nextPart.set(s, {
3601
3589
  nextPart: /* @__PURE__ */ new Map(),
3602
3590
  validators: []
3603
- }), t = t.nextPart.get(r);
3591
+ }), t = t.nextPart.get(s);
3604
3592
  }), t;
3605
- }, Wn = (n) => n.isThemeGetter, Gn = (n, e) => e ? n.map(([t, r]) => {
3606
- const s = r.map((i) => typeof i == "string" ? e + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([o, a]) => [e + o, a])) : i);
3607
- return [t, s];
3608
- }) : n, Jn = (n) => {
3593
+ }, Un = (n) => n.isThemeGetter, Wn = (n, e) => e ? n.map(([t, s]) => {
3594
+ const r = s.map((i) => typeof i == "string" ? e + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([o, a]) => [e + o, a])) : i);
3595
+ return [t, r];
3596
+ }) : n, Gn = (n) => {
3609
3597
  if (n < 1)
3610
3598
  return {
3611
3599
  get: () => {
@@ -3613,33 +3601,33 @@ const je = "-", Hn = (n) => {
3613
3601
  set: () => {
3614
3602
  }
3615
3603
  };
3616
- let e = 0, t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
3617
- const s = (i, o) => {
3618
- t.set(i, o), e++, e > n && (e = 0, r = t, t = /* @__PURE__ */ new Map());
3604
+ let e = 0, t = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
3605
+ const r = (i, o) => {
3606
+ t.set(i, o), e++, e > n && (e = 0, s = t, t = /* @__PURE__ */ new Map());
3619
3607
  };
3620
3608
  return {
3621
3609
  get(i) {
3622
3610
  let o = t.get(i);
3623
3611
  if (o !== void 0)
3624
3612
  return o;
3625
- if ((o = r.get(i)) !== void 0)
3626
- return s(i, o), o;
3613
+ if ((o = s.get(i)) !== void 0)
3614
+ return r(i, o), o;
3627
3615
  },
3628
3616
  set(i, o) {
3629
- t.has(i) ? t.set(i, o) : s(i, o);
3617
+ t.has(i) ? t.set(i, o) : r(i, o);
3630
3618
  }
3631
3619
  };
3632
- }, wt = "!", Yn = (n) => {
3620
+ }, yt = "!", Jn = (n) => {
3633
3621
  const {
3634
3622
  separator: e,
3635
3623
  experimentalParseClassName: t
3636
- } = n, r = e.length === 1, s = e[0], i = e.length, o = (a) => {
3624
+ } = n, s = e.length === 1, r = e[0], i = e.length, o = (a) => {
3637
3625
  const c = [];
3638
3626
  let u = 0, d = 0, h;
3639
3627
  for (let g = 0; g < a.length; g++) {
3640
3628
  let y = a[g];
3641
3629
  if (u === 0) {
3642
- if (y === s && (r || a.slice(g, g + i) === e)) {
3630
+ if (y === r && (s || a.slice(g, g + i) === e)) {
3643
3631
  c.push(a.slice(d, g)), d = g + i;
3644
3632
  continue;
3645
3633
  }
@@ -3650,7 +3638,7 @@ const je = "-", Hn = (n) => {
3650
3638
  }
3651
3639
  y === "[" ? u++ : y === "]" && u--;
3652
3640
  }
3653
- const l = c.length === 0 ? a : a.substring(d), f = l.startsWith(wt), b = f ? l.substring(1) : l, v = h && h > d ? h - d : void 0;
3641
+ const l = c.length === 0 ? a : a.substring(d), f = l.startsWith(yt), b = f ? l.substring(1) : l, v = h && h > d ? h - d : void 0;
3654
3642
  return {
3655
3643
  modifiers: c,
3656
3644
  hasImportantModifier: f,
@@ -3662,24 +3650,24 @@ const je = "-", Hn = (n) => {
3662
3650
  className: a,
3663
3651
  parseClassName: o
3664
3652
  }) : o;
3665
- }, Qn = (n) => {
3653
+ }, Yn = (n) => {
3666
3654
  if (n.length <= 1)
3667
3655
  return n;
3668
3656
  const e = [];
3669
3657
  let t = [];
3670
- return n.forEach((r) => {
3671
- r[0] === "[" ? (e.push(...t.sort(), r), t = []) : t.push(r);
3658
+ return n.forEach((s) => {
3659
+ s[0] === "[" ? (e.push(...t.sort(), s), t = []) : t.push(s);
3672
3660
  }), e.push(...t.sort()), e;
3673
- }, qn = (n) => ({
3674
- cache: Jn(n.cacheSize),
3675
- parseClassName: Yn(n),
3676
- ...Hn(n)
3677
- }), Xn = /\s+/, Zn = (n, e) => {
3661
+ }, Qn = (n) => ({
3662
+ cache: Gn(n.cacheSize),
3663
+ parseClassName: Jn(n),
3664
+ ...Vn(n)
3665
+ }), qn = /\s+/, Xn = (n, e) => {
3678
3666
  const {
3679
3667
  parseClassName: t,
3680
- getClassGroupId: r,
3681
- getConflictingClassGroupIds: s
3682
- } = e, i = [], o = n.trim().split(Xn);
3668
+ getClassGroupId: s,
3669
+ getConflictingClassGroupIds: r
3670
+ } = e, i = [], o = n.trim().split(qn);
3683
3671
  let a = "";
3684
3672
  for (let c = o.length - 1; c >= 0; c -= 1) {
3685
3673
  const u = o[c], {
@@ -3688,23 +3676,23 @@ const je = "-", Hn = (n) => {
3688
3676
  baseClassName: l,
3689
3677
  maybePostfixModifierPosition: f
3690
3678
  } = t(u);
3691
- let b = !!f, v = r(b ? l.substring(0, f) : l);
3679
+ let b = !!f, v = s(b ? l.substring(0, f) : l);
3692
3680
  if (!v) {
3693
3681
  if (!b) {
3694
3682
  a = u + (a.length > 0 ? " " + a : a);
3695
3683
  continue;
3696
3684
  }
3697
- if (v = r(l), !v) {
3685
+ if (v = s(l), !v) {
3698
3686
  a = u + (a.length > 0 ? " " + a : a);
3699
3687
  continue;
3700
3688
  }
3701
3689
  b = !1;
3702
3690
  }
3703
- const g = Qn(d).join(":"), y = h ? g + wt : g, x = y + v;
3691
+ const g = Yn(d).join(":"), y = h ? g + yt : g, x = y + v;
3704
3692
  if (i.includes(x))
3705
3693
  continue;
3706
3694
  i.push(x);
3707
- const A = s(v, b);
3695
+ const A = r(v, b);
3708
3696
  for (let m = 0; m < A.length; ++m) {
3709
3697
  const w = A[m];
3710
3698
  i.push(y + w);
@@ -3713,50 +3701,50 @@ const je = "-", Hn = (n) => {
3713
3701
  }
3714
3702
  return a;
3715
3703
  };
3716
- function _n() {
3717
- let n = 0, e, t, r = "";
3704
+ function Zn() {
3705
+ let n = 0, e, t, s = "";
3718
3706
  for (; n < arguments.length; )
3719
- (e = arguments[n++]) && (t = St(e)) && (r && (r += " "), r += t);
3720
- return r;
3707
+ (e = arguments[n++]) && (t = wt(e)) && (s && (s += " "), s += t);
3708
+ return s;
3721
3709
  }
3722
- const St = (n) => {
3710
+ const wt = (n) => {
3723
3711
  if (typeof n == "string")
3724
3712
  return n;
3725
3713
  let e, t = "";
3726
- for (let r = 0; r < n.length; r++)
3727
- n[r] && (e = St(n[r])) && (t && (t += " "), t += e);
3714
+ for (let s = 0; s < n.length; s++)
3715
+ n[s] && (e = wt(n[s])) && (t && (t += " "), t += e);
3728
3716
  return t;
3729
3717
  };
3730
- function er(n, ...e) {
3731
- let t, r, s, i = o;
3718
+ function _n(n, ...e) {
3719
+ let t, s, r, i = o;
3732
3720
  function o(c) {
3733
3721
  const u = e.reduce((d, h) => h(d), n());
3734
- return t = qn(u), r = t.cache.get, s = t.cache.set, i = a, a(c);
3722
+ return t = Qn(u), s = t.cache.get, r = t.cache.set, i = a, a(c);
3735
3723
  }
3736
3724
  function a(c) {
3737
- const u = r(c);
3725
+ const u = s(c);
3738
3726
  if (u)
3739
3727
  return u;
3740
- const d = Zn(c, t);
3741
- return s(c, d), d;
3728
+ const d = Xn(c, t);
3729
+ return r(c, d), d;
3742
3730
  }
3743
3731
  return function() {
3744
- return i(_n.apply(null, arguments));
3732
+ return i(Zn.apply(null, arguments));
3745
3733
  };
3746
3734
  }
3747
3735
  const P = (n) => {
3748
3736
  const e = (t) => t[n] || [];
3749
3737
  return e.isThemeGetter = !0, e;
3750
- }, Nt = /^\[(?:([a-z-]+):)?(.+)\]$/i, tr = /^\d+\/\d+$/, nr = /* @__PURE__ */ new Set(["px", "full", "screen"]), rr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ir = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ar = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Q = (n) => ce(n) || nr.has(n) || tr.test(n), ee = (n) => de(n, "length", gr), ce = (n) => !!n && !Number.isNaN(Number(n)), $e = (n) => de(n, "number", ce), he = (n) => !!n && Number.isInteger(Number(n)), lr = (n) => n.endsWith("%") && ce(n.slice(0, -1)), L = (n) => Nt.test(n), te = (n) => rr.test(n), cr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), ur = (n) => de(n, cr, kt), dr = (n) => de(n, "position", kt), fr = /* @__PURE__ */ new Set(["image", "url"]), pr = (n) => de(n, fr, br), hr = (n) => de(n, "", mr), ge = () => !0, de = (n, e, t) => {
3751
- const r = Nt.exec(n);
3752
- return r ? r[1] ? typeof e == "string" ? r[1] === e : e.has(r[1]) : t(r[2]) : !1;
3753
- }, gr = (n) => (
3738
+ }, St = /^\[(?:([a-z-]+):)?(.+)\]$/i, es = /^\d+\/\d+$/, ts = /* @__PURE__ */ new Set(["px", "full", "screen"]), ns = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ss = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, rs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, is = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, os = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Q = (n) => ce(n) || ts.has(n) || es.test(n), ee = (n) => de(n, "length", hs), ce = (n) => !!n && !Number.isNaN(Number(n)), $e = (n) => de(n, "number", ce), he = (n) => !!n && Number.isInteger(Number(n)), as = (n) => n.endsWith("%") && ce(n.slice(0, -1)), L = (n) => St.test(n), te = (n) => ns.test(n), ls = /* @__PURE__ */ new Set(["length", "size", "percentage"]), cs = (n) => de(n, ls, Nt), us = (n) => de(n, "position", Nt), ds = /* @__PURE__ */ new Set(["image", "url"]), fs = (n) => de(n, ds, ms), ps = (n) => de(n, "", gs), ge = () => !0, de = (n, e, t) => {
3739
+ const s = St.exec(n);
3740
+ return s ? s[1] ? typeof e == "string" ? s[1] === e : e.has(s[1]) : t(s[2]) : !1;
3741
+ }, hs = (n) => (
3754
3742
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
3755
3743
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
3756
3744
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
3757
- sr.test(n) && !ir.test(n)
3758
- ), kt = () => !1, mr = (n) => or.test(n), br = (n) => ar.test(n), vr = () => {
3759
- const n = P("colors"), e = P("spacing"), t = P("blur"), r = P("brightness"), s = P("borderColor"), i = P("borderRadius"), o = P("borderSpacing"), a = P("borderWidth"), c = P("contrast"), u = P("grayscale"), d = P("hueRotate"), h = P("invert"), l = P("gap"), f = P("gradientColorStops"), b = P("gradientColorStopPositions"), v = P("inset"), g = P("margin"), y = P("opacity"), x = P("padding"), A = P("saturate"), m = P("scale"), w = P("sepia"), S = P("skew"), N = P("space"), M = P("translate"), O = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", L, e], I = () => [L, e], R = () => ["", Q, ee], $ = () => ["auto", ce, L], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], fe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", L], _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], K = () => [ce, L];
3745
+ ss.test(n) && !rs.test(n)
3746
+ ), Nt = () => !1, gs = (n) => is.test(n), ms = (n) => os.test(n), bs = () => {
3747
+ const n = P("colors"), e = P("spacing"), t = P("blur"), s = P("brightness"), r = P("borderColor"), i = P("borderRadius"), o = P("borderSpacing"), a = P("borderWidth"), c = P("contrast"), u = P("grayscale"), d = P("hueRotate"), h = P("invert"), l = P("gap"), f = P("gradientColorStops"), b = P("gradientColorStopPositions"), v = P("inset"), g = P("margin"), y = P("opacity"), x = P("padding"), A = P("saturate"), m = P("scale"), w = P("sepia"), S = P("skew"), N = P("space"), M = P("translate"), O = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", L, e], I = () => [L, e], R = () => ["", Q, ee], $ = () => ["auto", ce, L], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], fe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", L], _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], K = () => [ce, L];
3760
3748
  return {
3761
3749
  cacheSize: 500,
3762
3750
  separator: ":",
@@ -3775,7 +3763,7 @@ const P = (n) => {
3775
3763
  invert: H(),
3776
3764
  gap: I(),
3777
3765
  gradientColorStops: [n],
3778
- gradientColorStopPositions: [lr, ee],
3766
+ gradientColorStopPositions: [as, ee],
3779
3767
  inset: U(),
3780
3768
  margin: U(),
3781
3769
  opacity: K(),
@@ -4688,7 +4676,7 @@ const P = (n) => {
4688
4676
  * @see https://tailwindcss.com/docs/background-position
4689
4677
  */
4690
4678
  "bg-position": [{
4691
- bg: [...E(), dr]
4679
+ bg: [...E(), us]
4692
4680
  }],
4693
4681
  /**
4694
4682
  * Background Repeat
@@ -4704,7 +4692,7 @@ const P = (n) => {
4704
4692
  * @see https://tailwindcss.com/docs/background-size
4705
4693
  */
4706
4694
  "bg-size": [{
4707
- bg: ["auto", "cover", "contain", ur]
4695
+ bg: ["auto", "cover", "contain", cs]
4708
4696
  }],
4709
4697
  /**
4710
4698
  * Background Image
@@ -4713,7 +4701,7 @@ const P = (n) => {
4713
4701
  "bg-image": [{
4714
4702
  bg: ["none", {
4715
4703
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
4716
- }, pr]
4704
+ }, fs]
4717
4705
  }],
4718
4706
  /**
4719
4707
  * Background Color
@@ -4990,70 +4978,70 @@ const P = (n) => {
4990
4978
  * @see https://tailwindcss.com/docs/border-color
4991
4979
  */
4992
4980
  "border-color": [{
4993
- border: [s]
4981
+ border: [r]
4994
4982
  }],
4995
4983
  /**
4996
4984
  * Border Color X
4997
4985
  * @see https://tailwindcss.com/docs/border-color
4998
4986
  */
4999
4987
  "border-color-x": [{
5000
- "border-x": [s]
4988
+ "border-x": [r]
5001
4989
  }],
5002
4990
  /**
5003
4991
  * Border Color Y
5004
4992
  * @see https://tailwindcss.com/docs/border-color
5005
4993
  */
5006
4994
  "border-color-y": [{
5007
- "border-y": [s]
4995
+ "border-y": [r]
5008
4996
  }],
5009
4997
  /**
5010
4998
  * Border Color S
5011
4999
  * @see https://tailwindcss.com/docs/border-color
5012
5000
  */
5013
5001
  "border-color-s": [{
5014
- "border-s": [s]
5002
+ "border-s": [r]
5015
5003
  }],
5016
5004
  /**
5017
5005
  * Border Color E
5018
5006
  * @see https://tailwindcss.com/docs/border-color
5019
5007
  */
5020
5008
  "border-color-e": [{
5021
- "border-e": [s]
5009
+ "border-e": [r]
5022
5010
  }],
5023
5011
  /**
5024
5012
  * Border Color Top
5025
5013
  * @see https://tailwindcss.com/docs/border-color
5026
5014
  */
5027
5015
  "border-color-t": [{
5028
- "border-t": [s]
5016
+ "border-t": [r]
5029
5017
  }],
5030
5018
  /**
5031
5019
  * Border Color Right
5032
5020
  * @see https://tailwindcss.com/docs/border-color
5033
5021
  */
5034
5022
  "border-color-r": [{
5035
- "border-r": [s]
5023
+ "border-r": [r]
5036
5024
  }],
5037
5025
  /**
5038
5026
  * Border Color Bottom
5039
5027
  * @see https://tailwindcss.com/docs/border-color
5040
5028
  */
5041
5029
  "border-color-b": [{
5042
- "border-b": [s]
5030
+ "border-b": [r]
5043
5031
  }],
5044
5032
  /**
5045
5033
  * Border Color Left
5046
5034
  * @see https://tailwindcss.com/docs/border-color
5047
5035
  */
5048
5036
  "border-color-l": [{
5049
- "border-l": [s]
5037
+ "border-l": [r]
5050
5038
  }],
5051
5039
  /**
5052
5040
  * Divide Color
5053
5041
  * @see https://tailwindcss.com/docs/divide-color
5054
5042
  */
5055
5043
  "divide-color": [{
5056
- divide: [s]
5044
+ divide: [r]
5057
5045
  }],
5058
5046
  /**
5059
5047
  * Outline Style
@@ -5129,7 +5117,7 @@ const P = (n) => {
5129
5117
  * @see https://tailwindcss.com/docs/box-shadow
5130
5118
  */
5131
5119
  shadow: [{
5132
- shadow: ["", "inner", "none", te, hr]
5120
+ shadow: ["", "inner", "none", te, ps]
5133
5121
  }],
5134
5122
  /**
5135
5123
  * Box Shadow Color
@@ -5180,7 +5168,7 @@ const P = (n) => {
5180
5168
  * @see https://tailwindcss.com/docs/brightness
5181
5169
  */
5182
5170
  brightness: [{
5183
- brightness: [r]
5171
+ brightness: [s]
5184
5172
  }],
5185
5173
  /**
5186
5174
  * Contrast
@@ -5251,7 +5239,7 @@ const P = (n) => {
5251
5239
  * @see https://tailwindcss.com/docs/backdrop-brightness
5252
5240
  */
5253
5241
  "backdrop-brightness": [{
5254
- "backdrop-brightness": [r]
5242
+ "backdrop-brightness": [s]
5255
5243
  }],
5256
5244
  /**
5257
5245
  * Backdrop Contrast
@@ -5784,58 +5772,58 @@ const P = (n) => {
5784
5772
  "font-size": ["leading"]
5785
5773
  }
5786
5774
  };
5787
- }, xr = /* @__PURE__ */ er(vr);
5788
- function es(...n) {
5789
- return xr(Vn(n));
5775
+ }, vs = /* @__PURE__ */ _n(bs);
5776
+ function er(...n) {
5777
+ return vs(Et(n));
5790
5778
  }
5791
5779
  export {
5792
- rt as ActivityIndicator,
5793
- Cr as Alert,
5780
+ st as ActivityIndicator,
5781
+ Cs as Alert,
5794
5782
  ht as AppContainer,
5795
5783
  ut as AppContext,
5796
- Qr as AppDialog,
5797
- Jr as AppPanel,
5798
- Yr as AppTaskbar,
5784
+ Qs as AppDialog,
5785
+ Js as AppPanel,
5786
+ Ys as AppTaskbar,
5799
5787
  Fn as AppTitleBar,
5800
- Lr as Battery,
5788
+ Ls as Battery,
5801
5789
  ne as Button,
5802
- Ar as ButtonGroup,
5803
- Rr as Checkbox,
5790
+ As as ButtonGroup,
5791
+ Rs as Checkbox,
5804
5792
  it as CloseButton,
5805
- Or as ComboBox,
5806
- Mr as ContextMenu,
5807
- zr as Dialog,
5793
+ Os as ComboBox,
5794
+ Ms as ContextMenu,
5795
+ zs as Dialog,
5808
5796
  ie as DialogClose,
5809
- Pr as EditButton,
5810
- Tr as Hyperlink,
5811
- jr as Input,
5812
- Dr as ListGroup,
5813
- Fr as ListGroupItem,
5814
- Br as MultiSelect,
5815
- _r as NavStackContainer,
5816
- Zr as NavStackProvider,
5817
- Vr as NumberInput,
5818
- Ir as RefreshButton,
5819
- Hr as Slider,
5820
- Kr as Tabs,
5821
- Ur as Toggle,
5822
- Er as TrashButton,
5823
- Gr as ViewportProvider,
5797
+ Ps as EditButton,
5798
+ Ts as Hyperlink,
5799
+ js as Input,
5800
+ Ds as ListGroup,
5801
+ Fs as ListGroupItem,
5802
+ Bs as MultiSelect,
5803
+ _s as NavStackContainer,
5804
+ Zs as NavStackProvider,
5805
+ Vs as NumberInput,
5806
+ Is as RefreshButton,
5807
+ Hs as Slider,
5808
+ Ks as Tabs,
5809
+ Us as Toggle,
5810
+ Es as TrashButton,
5811
+ Gs as ViewportProvider,
5824
5812
  ue as appRegistry,
5825
5813
  q as appStateStore,
5826
5814
  ct as backHandlerRegistry,
5827
5815
  vn as clearAppInUrl,
5828
- es as cn,
5829
- Wr as createAppI18nFactory,
5816
+ er as cn,
5817
+ Ws as createAppI18nFactory,
5830
5818
  jt as getLocale,
5831
5819
  W as runningAppsStore,
5832
5820
  Xe as setAppInUrl,
5833
- $r as setLocale,
5821
+ $s as setLocale,
5834
5822
  V as t,
5835
5823
  yn as useApp,
5836
5824
  Ht as useDialog,
5837
- qr as useNavStack,
5838
- Xr as useNavView,
5825
+ qs as useNavStack,
5826
+ Xs as useNavView,
5839
5827
  bt as useViewport
5840
5828
  };
5841
5829
  //# sourceMappingURL=index.js.map