@embeddable.com/remarkable-pro 0.0.15 → 0.0.17

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.
Files changed (93) hide show
  1. package/dist/BarChartDefaultHorizontalPro.js +3 -3
  2. package/dist/BarChartDefaultPro.js +3 -3
  3. package/dist/BarChartGroupedHorizontalPro.js +3 -3
  4. package/dist/BarChartGroupedPro.js +3 -3
  5. package/dist/BarChartStackedHorizontalPro.js +3 -3
  6. package/dist/BarChartStackedPro.js +3 -3
  7. package/dist/{ChartCard-BEIVgW77.js → ChartCard-CuGtJlaW.js} +3 -3
  8. package/dist/{ChartCard-BEIVgW77.js.map → ChartCard-CuGtJlaW.js.map} +1 -1
  9. package/dist/{Color.type.emb-ByiNbaI7.js → Color.type.emb-CLYI-rua.js} +282 -283
  10. package/dist/{Color.type.emb-ByiNbaI7.js.map → Color.type.emb-CLYI-rua.js.map} +1 -1
  11. package/dist/ColorEditor.js +1 -1
  12. package/dist/ComparisonPeriodSelectFieldPro.js +3 -3
  13. package/dist/DateRangePickerCustomPro.js +3 -3
  14. package/dist/DateRangeSelectFieldPro.js +3 -3
  15. package/dist/DonutChartPro.js +3 -3
  16. package/dist/DonutLabelChartPro.js +3 -3
  17. package/dist/{EditorCard-NEIuygkP.js → EditorCard-CNtTIFGO.js} +3 -3
  18. package/dist/{EditorCard-NEIuygkP.js.map → EditorCard-CNtTIFGO.js.map} +1 -1
  19. package/dist/HeatMapPro.js +18 -17
  20. package/dist/HeatMapPro.js.map +1 -1
  21. package/dist/KpiChartNumberComparisonPro.js +3 -3
  22. package/dist/KpiChartNumberPro.js +3 -3
  23. package/dist/LineChartComparisonDefaultPro.js +3 -3
  24. package/dist/LineChartDefaultPro.js +3 -3
  25. package/dist/LineChartGroupedPro.js +3 -3
  26. package/dist/MultiSelectFieldPro.js +3 -3
  27. package/dist/PieChartPro.js +3 -3
  28. package/dist/PivotTablePro.js +3 -3
  29. package/dist/SingleSelectFieldPro.js +3 -3
  30. package/dist/TableChartPaginated.js +3 -3
  31. package/dist/{bars.utils-D12lq8bm.js → bars.utils-c9bi5X5n.js} +4 -4
  32. package/dist/{bars.utils-D12lq8bm.js.map → bars.utils-c9bi5X5n.js.map} +1 -1
  33. package/dist/{charts.utils-Bq6c6ccK.js → charts.utils-nkrr8Yy8.js} +6 -5
  34. package/dist/charts.utils-nkrr8Yy8.js.map +1 -0
  35. package/dist/{component.inputs.constants-FaX3B1CO.js → component.inputs.constants-CpWMPDsp.js} +258 -232
  36. package/dist/{component.inputs.constants-FaX3B1CO.js.map → component.inputs.constants-CpWMPDsp.js.map} +1 -1
  37. package/dist/components/component.inputs.constants.d.ts +1 -1
  38. package/dist/embeddable-components.json +12 -12
  39. package/dist/embeddable-theme-0137e.js +2 -1
  40. package/dist/{formatter.utils-IGbSBsIu.js → formatter.utils-DPI9zC1z.js} +2 -2
  41. package/dist/{formatter.utils-IGbSBsIu.js.map → formatter.utils-DPI9zC1z.js.map} +1 -1
  42. package/dist/{index-oK1pn0Vk.js → index-1Pthtw-F.js} +5 -5
  43. package/dist/{index-oK1pn0Vk.js.map → index-1Pthtw-F.js.map} +1 -1
  44. package/dist/{index-EAQjfjEJ.js → index-8dPSbeeV.js} +4 -4
  45. package/dist/{index-EAQjfjEJ.js.map → index-8dPSbeeV.js.map} +1 -1
  46. package/dist/{index-CR69kGQc.js → index-B0gfoUZP.js} +5 -5
  47. package/dist/{index-CR69kGQc.js.map → index-B0gfoUZP.js.map} +1 -1
  48. package/dist/{index-BNFqHQr3.js → index-B6Nckx8Z.js} +6 -6
  49. package/dist/{index-BNFqHQr3.js.map → index-B6Nckx8Z.js.map} +1 -1
  50. package/dist/{index-BKcWHLSf.js → index-BBmMB5DD.js} +5 -5
  51. package/dist/{index-BKcWHLSf.js.map → index-BBmMB5DD.js.map} +1 -1
  52. package/dist/{index-CdjbmThq.js → index-BHVaEsvO.js} +5 -5
  53. package/dist/{index-CdjbmThq.js.map → index-BHVaEsvO.js.map} +1 -1
  54. package/dist/{index-DLCspqkx.js → index-BQKTtuOl.js} +5 -5
  55. package/dist/{index-DLCspqkx.js.map → index-BQKTtuOl.js.map} +1 -1
  56. package/dist/{index-BDPQ_c46.js → index-BTdWqSDj.js} +5 -5
  57. package/dist/{index-BDPQ_c46.js.map → index-BTdWqSDj.js.map} +1 -1
  58. package/dist/{index-CwiND2Ct.js → index-BUnUdDZd.js} +5 -5
  59. package/dist/{index-CwiND2Ct.js.map → index-BUnUdDZd.js.map} +1 -1
  60. package/dist/{index-RHaWI3AH.js → index-BaSNws-A.js} +5 -5
  61. package/dist/{index-RHaWI3AH.js.map → index-BaSNws-A.js.map} +1 -1
  62. package/dist/{index-Dhj9KjfQ.js → index-CB5nTme1.js} +5 -5
  63. package/dist/{index-Dhj9KjfQ.js.map → index-CB5nTme1.js.map} +1 -1
  64. package/dist/{index-B15C4kTf.js → index-CSH6Tke5.js} +5 -5
  65. package/dist/{index-B15C4kTf.js.map → index-CSH6Tke5.js.map} +1 -1
  66. package/dist/{index-DRIH3L5J.js → index-CwL7feVe.js} +5 -5
  67. package/dist/{index-DRIH3L5J.js.map → index-CwL7feVe.js.map} +1 -1
  68. package/dist/{index-DdeFtB5C.js → index-DbQoW48_.js} +6 -6
  69. package/dist/{index-DdeFtB5C.js.map → index-DbQoW48_.js.map} +1 -1
  70. package/dist/{index-_fEx7Sbh.js → index-DfXkoWel.js} +4 -4
  71. package/dist/{index-_fEx7Sbh.js.map → index-DfXkoWel.js.map} +1 -1
  72. package/dist/{index-CQZhGtUT.js → index-DjA9mRxV.js} +6 -6
  73. package/dist/{index-CQZhGtUT.js.map → index-DjA9mRxV.js.map} +1 -1
  74. package/dist/{index-hHVOyy6e.js → index-Dz6llBs_.js} +5 -5
  75. package/dist/{index-hHVOyy6e.js.map → index-Dz6llBs_.js.map} +1 -1
  76. package/dist/{index-BzF8GFHy.js → index-WDuZPeli.js} +5 -5
  77. package/dist/{index-BzF8GFHy.js.map → index-WDuZPeli.js.map} +1 -1
  78. package/dist/{index-DNXqnRoE.js → index-hmfJGJBH.js} +5 -5
  79. package/dist/{index-DNXqnRoE.js.map → index-hmfJGJBH.js.map} +1 -1
  80. package/dist/{index-BjaJdNzu.js → index-natSwnW-.js} +5 -5
  81. package/dist/{index-BjaJdNzu.js.map → index-natSwnW-.js.map} +1 -1
  82. package/dist/{index-BiTSd5Wd.js → index-z0A1zEtp.js} +5 -5
  83. package/dist/{index-BiTSd5Wd.js.map → index-z0A1zEtp.js.map} +1 -1
  84. package/dist/index.d.ts +1 -0
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.js +80 -77
  87. package/dist/{pies.utils-C5DxeS68.js → pies.utils-BO9fuUwj.js} +5 -5
  88. package/dist/{pies.utils-C5DxeS68.js.map → pies.utils-BO9fuUwj.js.map} +1 -1
  89. package/dist/remarkable-pro.css +1 -1
  90. package/dist/{timeRange.utils-CTEHTF97.js → timeRange.utils-DaDev_JE.js} +2 -2
  91. package/dist/{timeRange.utils-CTEHTF97.js.map → timeRange.utils-DaDev_JE.js.map} +1 -1
  92. package/package.json +2 -2
  93. package/dist/charts.utils-Bq6c6ccK.js.map +0 -1
@@ -1,27 +1,27 @@
1
- import { t as Ee, W as Le, X as D, s as Oe } from "./Color.type.emb-ByiNbaI7.js";
1
+ import { t as Ve, W as $e, X as D, s as Ne } from "./Color.type.emb-CLYI-rua.js";
2
2
  const p = (r) => typeof r == "string", U = () => {
3
3
  let r, e;
4
4
  const t = new Promise((i, s) => {
5
5
  r = i, e = s;
6
6
  });
7
7
  return t.resolve = r, t.reject = e, t;
8
- }, oe = (r) => r == null ? "" : "" + r, Me = (r, e, t) => {
8
+ }, pe = (r) => r == null ? "" : "" + r, Ke = (r, e, t) => {
9
9
  r.forEach((i) => {
10
10
  e[i] && (t[i] = e[i]);
11
11
  });
12
- }, Ve = /###/g, le = (r) => r && r.indexOf("###") > -1 ? r.replace(Ve, ".") : r, ue = (r) => !r || p(r), H = (r, e, t) => {
12
+ }, Ue = /###/g, ge = (r) => r && r.indexOf("###") > -1 ? r.replace(Ue, ".") : r, me = (r) => !r || p(r), H = (r, e, t) => {
13
13
  const i = p(e) ? e.split(".") : e;
14
14
  let s = 0;
15
15
  for (; s < i.length - 1; ) {
16
- if (ue(r)) return {};
17
- const n = le(i[s]);
16
+ if (me(r)) return {};
17
+ const n = ge(i[s]);
18
18
  !r[n] && t && (r[n] = new t()), Object.prototype.hasOwnProperty.call(r, n) ? r = r[n] : r = {}, ++s;
19
19
  }
20
- return ue(r) ? {} : {
20
+ return me(r) ? {} : {
21
21
  obj: r,
22
- k: le(i[s])
22
+ k: ge(i[s])
23
23
  };
24
- }, ce = (r, e, t) => {
24
+ }, ye = (r, e, t) => {
25
25
  const {
26
26
  obj: i,
27
27
  k: s
@@ -34,7 +34,7 @@ const p = (r) => typeof r == "string", U = () => {
34
34
  for (; o.obj === void 0 && a.length; )
35
35
  n = `${a[a.length - 1]}.${n}`, a = a.slice(0, a.length - 1), o = H(r, a, Object), o != null && o.obj && typeof o.obj[`${o.k}.${n}`] < "u" && (o.obj = void 0);
36
36
  o.obj[`${o.k}.${n}`] = t;
37
- }, Ke = (r, e, t, i) => {
37
+ }, He = (r, e, t, i) => {
38
38
  const {
39
39
  obj: s,
40
40
  k: n
@@ -47,15 +47,15 @@ const p = (r) => typeof r == "string", U = () => {
47
47
  } = H(r, e);
48
48
  if (t && Object.prototype.hasOwnProperty.call(t, i))
49
49
  return t[i];
50
- }, Ue = (r, e, t) => {
50
+ }, Be = (r, e, t) => {
51
51
  const i = _(r, t);
52
52
  return i !== void 0 ? i : _(e, t);
53
- }, Ce = (r, e, t) => {
53
+ }, ke = (r, e, t) => {
54
54
  for (const i in e)
55
- i !== "__proto__" && i !== "constructor" && (i in r ? p(r[i]) || r[i] instanceof String || p(e[i]) || e[i] instanceof String ? t && (r[i] = e[i]) : Ce(r[i], e[i], t) : r[i] = e[i]);
55
+ i !== "__proto__" && i !== "constructor" && (i in r ? p(r[i]) || r[i] instanceof String || p(e[i]) || e[i] instanceof String ? t && (r[i] = e[i]) : ke(r[i], e[i], t) : r[i] = e[i]);
56
56
  return r;
57
57
  }, j = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
58
- var He = {
58
+ var ze = {
59
59
  "&": "&amp;",
60
60
  "<": "&lt;",
61
61
  ">": "&gt;",
@@ -63,8 +63,8 @@ var He = {
63
63
  "'": "&#39;",
64
64
  "/": "&#x2F;"
65
65
  };
66
- const Be = (r) => p(r) ? r.replace(/[&<>"'\/]/g, (e) => He[e]) : r;
67
- class ze {
66
+ const Je = (r) => p(r) ? r.replace(/[&<>"'\/]/g, (e) => ze[e]) : r;
67
+ class Ye {
68
68
  constructor(e) {
69
69
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
70
70
  }
@@ -76,11 +76,11 @@ class ze {
76
76
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
77
77
  }
78
78
  }
79
- const Je = [" ", ",", "?", "!", ";"], Ye = new ze(20), We = (r, e, t) => {
79
+ const We = [" ", ",", "?", "!", ";"], _e = new Ye(20), qe = (r, e, t) => {
80
80
  e = e || "", t = t || "";
81
- const i = Je.filter((a) => e.indexOf(a) < 0 && t.indexOf(a) < 0);
81
+ const i = We.filter((a) => e.indexOf(a) < 0 && t.indexOf(a) < 0);
82
82
  if (i.length === 0) return !0;
83
- const s = Ye.getRegExp(`(${i.map((a) => a === "?" ? "\\?" : a).join("|")})`);
83
+ const s = _e.getRegExp(`(${i.map((a) => a === "?" ? "\\?" : a).join("|")})`);
84
84
  let n = !s.test(r);
85
85
  if (!n) {
86
86
  const a = r.indexOf(t);
@@ -107,7 +107,7 @@ const Je = [" ", ",", "?", "!", ";"], Ye = new ze(20), We = (r, e, t) => {
107
107
  s = a;
108
108
  }
109
109
  return s;
110
- }, z = (r) => r == null ? void 0 : r.replace("_", "-"), _e = {
110
+ }, z = (r) => r == null ? void 0 : r.replace("_", "-"), Xe = {
111
111
  type: "logger",
112
112
  log(r) {
113
113
  this.output("log", r);
@@ -128,7 +128,7 @@ class q {
128
128
  this.init(e, t);
129
129
  }
130
130
  init(e, t = {}) {
131
- this.prefix = t.prefix || "i18next:", this.logger = e || _e, this.options = t, this.debug = t.debug;
131
+ this.prefix = t.prefix || "i18next:", this.logger = e || Xe, this.options = t, this.debug = t.debug;
132
132
  }
133
133
  log(...e) {
134
134
  return this.forward(e, "log", "", !0);
@@ -186,7 +186,7 @@ class G {
186
186
  });
187
187
  }
188
188
  }
189
- class fe extends G {
189
+ class xe extends G {
190
190
  constructor(e, t = {
191
191
  ns: ["translation"],
192
192
  defaultNS: "translation"
@@ -213,7 +213,7 @@ class fe extends G {
213
213
  }) {
214
214
  const a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
215
215
  let o = [e, t];
216
- i && (o = o.concat(a ? i.split(a) : i)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), ce(this.data, o, s), n.silent || this.emit("added", e, t, i, s);
216
+ i && (o = o.concat(a ? i.split(a) : i)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), ye(this.data, o, s), n.silent || this.emit("added", e, t, i, s);
217
217
  }
218
218
  addResources(e, t, i, s = {
219
219
  silent: !1
@@ -231,10 +231,10 @@ class fe extends G {
231
231
  let o = [e, t];
232
232
  e.indexOf(".") > -1 && (o = e.split("."), s = i, i = t, t = o[1]), this.addNamespaces(t);
233
233
  let u = _(this.data, o) || {};
234
- a.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? Ce(u, i, n) : u = {
234
+ a.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? ke(u, i, n) : u = {
235
235
  ...u,
236
236
  ...i
237
- }, ce(this.data, o, u), a.silent || this.emit("added", e, t, i);
237
+ }, ye(this.data, o, u), a.silent || this.emit("added", e, t, i);
238
238
  }
239
239
  removeResourceBundle(e, t) {
240
240
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -256,7 +256,7 @@ class fe extends G {
256
256
  return this.data;
257
257
  }
258
258
  }
259
- var we = {
259
+ var Ae = {
260
260
  processors: {},
261
261
  addPostProcessor(r) {
262
262
  this.processors[r.name] = r;
@@ -268,25 +268,25 @@ var we = {
268
268
  }), e;
269
269
  }
270
270
  };
271
- const ve = Symbol("i18next/PATH_KEY");
272
- function qe() {
271
+ const Te = Symbol("i18next/PATH_KEY");
272
+ function Ge() {
273
273
  const r = [], e = /* @__PURE__ */ Object.create(null);
274
274
  let t;
275
275
  return e.get = (i, s) => {
276
276
  var n;
277
- return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s === ve ? r : (r.push(s), t = Proxy.revocable(i, e), t.proxy);
277
+ return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s === Te ? r : (r.push(s), t = Proxy.revocable(i, e), t.proxy);
278
278
  }, Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
279
279
  }
280
280
  function se(r, e) {
281
281
  const {
282
- [ve]: t
283
- } = r(qe());
282
+ [Te]: t
283
+ } = r(Ge());
284
284
  return t.join((e == null ? void 0 : e.keySeparator) ?? ".");
285
285
  }
286
- const de = {}, Z = (r) => !p(r) && typeof r != "boolean" && typeof r != "number";
286
+ const be = {}, Z = (r) => !p(r) && typeof r != "boolean" && typeof r != "number";
287
287
  class X extends G {
288
288
  constructor(e, t = {}) {
289
- super(), Me(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
289
+ super(), Ke(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
290
290
  }
291
291
  changeLanguage(e) {
292
292
  e && (this.language = e);
@@ -308,7 +308,7 @@ class X extends G {
308
308
  i === void 0 && (i = ":");
309
309
  const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
310
310
  let n = t.ns || this.options.defaultNS || [];
311
- const a = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !We(e, i, s);
311
+ const a = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !qe(e, i, s);
312
312
  if (a && !o) {
313
313
  const u = e.match(this.interpolator.nestingRegexp);
314
314
  if (u && u.length > 0)
@@ -365,41 +365,41 @@ class X extends G {
365
365
  }) : "", M = S && !s.ordinal && s.count === 0, L = M && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${J}`] || s[`defaultValue${k}`] || s.defaultValue;
366
366
  let b = d;
367
367
  T && !d && N && (b = L);
368
- const je = Z(b), Ie = Object.prototype.toString.apply(b);
369
- if (T && b && je && w.indexOf(Ie) < 0 && !(p(C) && Array.isArray(b))) {
368
+ const Ee = Z(b), Me = Object.prototype.toString.apply(b);
369
+ if (T && b && Ee && w.indexOf(Me) < 0 && !(p(C) && Array.isArray(b))) {
370
370
  if (!s.returnObjects && !this.options.returnObjects) {
371
371
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
372
- const R = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, b, {
372
+ const v = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, b, {
373
373
  ...s,
374
374
  ns: u
375
375
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
376
- return n ? (h.res = R, h.usedParams = this.getUsedParamsDetails(s), h) : R;
376
+ return n ? (h.res = v, h.usedParams = this.getUsedParamsDetails(s), h) : v;
377
377
  }
378
378
  if (a) {
379
- const R = Array.isArray(b), v = R ? [] : {}, ie = R ? x : m;
379
+ const v = Array.isArray(b), R = v ? [] : {}, ce = v ? x : m;
380
380
  for (const P in b)
381
381
  if (Object.prototype.hasOwnProperty.call(b, P)) {
382
- const A = `${ie}${a}${P}`;
383
- N && !d ? v[P] = this.translate(A, {
382
+ const A = `${ce}${a}${P}`;
383
+ N && !d ? R[P] = this.translate(A, {
384
384
  ...s,
385
385
  defaultValue: Z(L) ? L[P] : void 0,
386
386
  joinArrays: !1,
387
387
  ns: u
388
- }) : v[P] = this.translate(A, {
388
+ }) : R[P] = this.translate(A, {
389
389
  ...s,
390
390
  joinArrays: !1,
391
391
  ns: u
392
- }), v[P] === A && (v[P] = b[P]);
392
+ }), R[P] === A && (R[P] = b[P]);
393
393
  }
394
- d = v;
394
+ d = R;
395
395
  }
396
396
  } else if (T && p(C) && Array.isArray(d))
397
397
  d = d.join(C), d && (d = this.extendTranslation(d, e, s, i));
398
398
  else {
399
- let R = !1, v = !1;
400
- !this.isValidLookup(d) && N && (R = !0, d = L), this.isValidLookup(d) || (v = !0, d = o);
401
- const P = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && v ? void 0 : d, A = N && L !== d && this.options.updateMissing;
402
- if (v || R || A) {
399
+ let v = !1, R = !1;
400
+ !this.isValidLookup(d) && N && (v = !0, d = L), this.isValidLookup(d) || (R = !0, d = o);
401
+ const P = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && R ? void 0 : d, A = N && L !== d && this.options.updateMissing;
402
+ if (R || v || A) {
403
403
  if (this.logger.log(A ? "updateKey" : "missingKey", c, l, o, A ? L : d), a) {
404
404
  const O = this.resolve(o, {
405
405
  ...s,
@@ -413,19 +413,19 @@ class X extends G {
413
413
  for (let O = 0; O < Y.length; O++)
414
414
  V.push(Y[O]);
415
415
  else this.options.saveMissingTo === "all" ? V = this.languageUtils.toResolveHierarchy(s.lng || this.language) : V.push(s.lng || this.language);
416
- const ne = (O, F, K) => {
417
- var re;
418
- const ae = N && K !== d ? K : P;
419
- this.options.missingKeyHandler ? this.options.missingKeyHandler(O, l, F, ae, A, s) : (re = this.backendConnector) != null && re.saveMissing && this.backendConnector.saveMissing(O, l, F, ae, A, s), this.emit("missingKey", O, l, F, d);
416
+ const fe = (O, F, K) => {
417
+ var he;
418
+ const de = N && K !== d ? K : P;
419
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(O, l, F, de, A, s) : (he = this.backendConnector) != null && he.saveMissing && this.backendConnector.saveMissing(O, l, F, de, A, s), this.emit("missingKey", O, l, F, d);
420
420
  };
421
421
  this.options.saveMissing && (this.options.saveMissingPlurals && S ? V.forEach((O) => {
422
422
  const F = this.pluralResolver.getSuffixes(O, s);
423
423
  M && s[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((K) => {
424
- ne([O], o + K, s[`defaultValue${K}`] || L);
424
+ fe([O], o + K, s[`defaultValue${K}`] || L);
425
425
  });
426
- }) : ne(V, o, L));
426
+ }) : fe(V, o, L));
427
427
  }
428
- d = this.extendTranslation(d, e, s, h, i), v && d === o && this.options.appendNamespaceToMissingKey && (d = `${l}${f}${o}`), (v || R) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${f}${o}` : o, R ? d : void 0, s));
428
+ d = this.extendTranslation(d, e, s, h, i), R && d === o && this.options.appendNamespaceToMissingKey && (d = `${l}${f}${o}`), (R || v) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${f}${o}` : o, v ? d : void 0, s));
429
429
  }
430
430
  return n ? (h.res = d, h.usedParams = this.getUsedParamsDetails(s), h) : d;
431
431
  }
@@ -463,7 +463,7 @@ class X extends G {
463
463
  !i.lng && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, (...h) => (n == null ? void 0 : n[0]) === h[0] && !i.context ? (this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`), null) : this.translate(...h, t), i)), i.interpolation && this.interpolator.reset();
464
464
  }
465
465
  const a = i.postProcess || this.options.postProcess, o = p(a) ? [a] : a;
466
- return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = we.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
466
+ return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = Ae.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
467
467
  i18nResolved: {
468
468
  ...s,
469
469
  usedParams: this.getUsedParamsDetails(i)
@@ -482,7 +482,7 @@ class X extends G {
482
482
  const g = t.count !== void 0 && !p(t.count), h = g && !t.ordinal && t.count === 0, d = t.context !== void 0 && (p(t.context) || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
483
483
  c.forEach((x) => {
484
484
  var w, C;
485
- this.isValidLookup(i) || (o = x, !de[`${m[0]}-${x}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((C = this.utils) != null && C.hasLoadedNamespace(o)) && (de[`${m[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((T) => {
485
+ this.isValidLookup(i) || (o = x, !be[`${m[0]}-${x}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((C = this.utils) != null && C.hasLoadedNamespace(o)) && (be[`${m[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((T) => {
486
486
  var J;
487
487
  if (this.isValidLookup(i)) return;
488
488
  a = T;
@@ -541,7 +541,7 @@ class X extends G {
541
541
  return !1;
542
542
  }
543
543
  }
544
- class he {
544
+ class Se {
545
545
  constructor(e) {
546
546
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
547
547
  }
@@ -605,20 +605,20 @@ class he {
605
605
  }), s;
606
606
  }
607
607
  }
608
- const pe = {
608
+ const Le = {
609
609
  zero: 0,
610
610
  one: 1,
611
611
  two: 2,
612
612
  few: 3,
613
613
  many: 4,
614
614
  other: 5
615
- }, ge = {
615
+ }, Oe = {
616
616
  select: (r) => r === 1 ? "one" : "other",
617
617
  resolvedOptions: () => ({
618
618
  pluralCategories: ["one", "other"]
619
619
  })
620
620
  };
621
- class Xe {
621
+ class Qe {
622
622
  constructor(e, t = {}) {
623
623
  this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), this.pluralRulesCache = {};
624
624
  }
@@ -642,8 +642,8 @@ class Xe {
642
642
  });
643
643
  } catch {
644
644
  if (!Intl)
645
- return this.logger.error("No Intl support, please use an Intl polyfill!"), ge;
646
- if (!e.match(/-|_/)) return ge;
645
+ return this.logger.error("No Intl support, please use an Intl polyfill!"), Oe;
646
+ if (!e.match(/-|_/)) return Oe;
647
647
  const u = this.languageUtils.getLanguagePartFromCode(e);
648
648
  a = this.getRule(u, t);
649
649
  }
@@ -658,18 +658,18 @@ class Xe {
658
658
  }
659
659
  getSuffixes(e, t = {}) {
660
660
  let i = this.getRule(e, t);
661
- return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => pe[s] - pe[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
661
+ return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => Le[s] - Le[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
662
662
  }
663
663
  getSuffix(e, t, i = {}) {
664
664
  const s = this.getRule(e, i);
665
665
  return s ? `${this.options.prepend}${i.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, i));
666
666
  }
667
667
  }
668
- const me = (r, e, t, i = ".", s = !0) => {
669
- let n = Ue(r, e, t);
668
+ const Ce = (r, e, t, i = ".", s = !0) => {
669
+ let n = Be(r, e, t);
670
670
  return !n && s && p(t) && (n = te(r, t, i), n === void 0 && (n = te(e, t, i))), n;
671
671
  }, ee = (r) => r.replace(/\$/g, "$$$$");
672
- class ye {
672
+ class we {
673
673
  constructor(e = {}) {
674
674
  var t;
675
675
  this.logger = $.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((i) => i), this.init(e);
@@ -697,7 +697,7 @@ class ye {
697
697
  maxReplaces: w,
698
698
  alwaysFormat: C
699
699
  } = e.interpolation;
700
- this.escape = t !== void 0 ? t : Be, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? j(n) : a || "{{", this.suffix = o ? j(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = g ? j(g) : h || j("$t("), this.nestingSuffix = d ? j(d) : m || j(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
700
+ this.escape = t !== void 0 ? t : Je, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? j(n) : a || "{{", this.suffix = o ? j(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = g ? j(g) : h || j("$t("), this.nestingSuffix = d ? j(d) : m || j(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
701
701
  }
702
702
  reset() {
703
703
  this.options && this.init(this.options);
@@ -711,7 +711,7 @@ class ye {
711
711
  let n, a, o;
712
712
  const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (d) => {
713
713
  if (d.indexOf(this.formatSeparator) < 0) {
714
- const C = me(t, u, d, this.options.keySeparator, this.options.ignoreJSONStructure);
714
+ const C = Ce(t, u, d, this.options.keySeparator, this.options.ignoreJSONStructure);
715
715
  return this.alwaysFormat ? this.format(C, void 0, i, {
716
716
  ...s,
717
717
  ...t,
@@ -719,7 +719,7 @@ class ye {
719
719
  }) : C;
720
720
  }
721
721
  const m = d.split(this.formatSeparator), x = m.shift().trim(), w = m.join(this.formatSeparator).trim();
722
- return this.format(me(t, u, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, i, {
722
+ return this.format(Ce(t, u, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, i, {
723
723
  ...s,
724
724
  ...t,
725
725
  interpolationkey: x
@@ -747,7 +747,7 @@ class ye {
747
747
  continue;
748
748
  } else
749
749
  this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), a = "";
750
- else !p(a) && !this.useRawValueToEscape && (a = oe(a));
750
+ else !p(a) && !this.useRawValueToEscape && (a = pe(a));
751
751
  const x = d.safeValue(a);
752
752
  if (e = e.replace(n[0], x), c ? (d.regex.lastIndex += a.length, d.regex.lastIndex -= n[0].length) : d.regex.lastIndex = 0, o++, o >= this.maxReplaces)
753
753
  break;
@@ -781,7 +781,7 @@ class ye {
781
781
  }, a = a.replace && !p(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
782
782
  const l = /{.*}/.test(s[1]) ? s[1].lastIndexOf("}") + 1 : s[1].indexOf(this.formatSeparator);
783
783
  if (l !== -1 && (u = s[1].slice(l).split(this.formatSeparator).map((f) => f.trim()).filter(Boolean), s[1] = s[1].slice(0, l)), n = t(o.call(this, s[1].trim(), a), a), n && s[0] === e && !p(n)) return n;
784
- p(n) || (n = oe(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), u.length && (n = u.reduce((f, c) => this.format(f, c, i.lng, {
784
+ p(n) || (n = pe(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), u.length && (n = u.reduce((f, c) => this.format(f, c, i.lng, {
785
785
  ...i,
786
786
  interpolationkey: s[1].trim()
787
787
  }), n.trim())), e = e.replace(s[0], n), this.regexp.lastIndex = 0;
@@ -789,7 +789,7 @@ class ye {
789
789
  return e;
790
790
  }
791
791
  }
792
- const Ge = (r) => {
792
+ const Ze = (r) => {
793
793
  let e = r.toLowerCase().trim();
794
794
  const t = {};
795
795
  if (r.indexOf("(") > -1) {
@@ -807,7 +807,7 @@ const Ge = (r) => {
807
807
  formatName: e,
808
808
  formatOptions: t
809
809
  };
810
- }, xe = (r) => {
810
+ }, Re = (r) => {
811
811
  const e = {};
812
812
  return (t, i, s) => {
813
813
  let n = s;
@@ -819,8 +819,8 @@ const Ge = (r) => {
819
819
  let o = e[a];
820
820
  return o || (o = r(z(i), s), e[a] = o), o(t);
821
821
  };
822
- }, Qe = (r) => (e, t, i) => r(z(t), i)(e);
823
- class Ze {
822
+ }, et = (r) => (e, t, i) => r(z(t), i)(e);
823
+ class tt {
824
824
  constructor(e = {}) {
825
825
  this.logger = $.create("formatter"), this.options = e, this.init(e);
826
826
  }
@@ -828,7 +828,7 @@ class Ze {
828
828
  interpolation: {}
829
829
  }) {
830
830
  this.formatSeparator = t.interpolation.formatSeparator || ",";
831
- const i = t.cacheInBuiltFormats ? xe : Qe;
831
+ const i = t.cacheInBuiltFormats ? Re : et;
832
832
  this.formats = {
833
833
  number: i((s, n) => {
834
834
  const a = new Intl.NumberFormat(s, {
@@ -867,7 +867,7 @@ class Ze {
867
867
  this.formats[e.toLowerCase().trim()] = t;
868
868
  }
869
869
  addCached(e, t) {
870
- this.formats[e.toLowerCase().trim()] = xe(t);
870
+ this.formats[e.toLowerCase().trim()] = Re(t);
871
871
  }
872
872
  format(e, t, i, s = {}) {
873
873
  const n = t.split(this.formatSeparator);
@@ -880,7 +880,7 @@ class Ze {
880
880
  const {
881
881
  formatName: l,
882
882
  formatOptions: f
883
- } = Ge(u);
883
+ } = Ze(u);
884
884
  if (this.formats[l]) {
885
885
  let g = o;
886
886
  try {
@@ -900,10 +900,10 @@ class Ze {
900
900
  }, e);
901
901
  }
902
902
  }
903
- const et = (r, e) => {
903
+ const st = (r, e) => {
904
904
  r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
905
905
  };
906
- class tt extends G {
906
+ class it extends G {
907
907
  constructor(e, t, i, s = {}) {
908
908
  var n, a;
909
909
  super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = $.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 = [], (a = (n = this.backend) == null ? void 0 : n.init) == null || a.call(n, i, s.backend, s);
@@ -936,7 +936,7 @@ class tt extends G {
936
936
  }), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
937
937
  const o = {};
938
938
  this.queue.forEach((u) => {
939
- Ke(u.loaded, [n], a), et(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
939
+ He(u.loaded, [n], a), st(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
940
940
  o[l] || (o[l] = {});
941
941
  const f = u.loaded[l];
942
942
  f.length && f.forEach((c) => {
@@ -1035,7 +1035,7 @@ class tt extends G {
1035
1035
  }
1036
1036
  }
1037
1037
  }
1038
- const be = () => ({
1038
+ const ve = () => ({
1039
1039
  debug: !1,
1040
1040
  initAsync: !0,
1041
1041
  ns: ["translation"],
@@ -1092,20 +1092,20 @@ const be = () => ({
1092
1092
  skipOnVariables: !0
1093
1093
  },
1094
1094
  cacheInBuiltFormats: !0
1095
- }), Se = (r) => {
1095
+ }), Pe = (r) => {
1096
1096
  var e, t;
1097
1097
  return p(r.ns) && (r.ns = [r.ns]), p(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), p(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), ((t = (e = r.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r;
1098
1098
  }, W = () => {
1099
- }, st = (r) => {
1099
+ }, nt = (r) => {
1100
1100
  Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
1101
1101
  typeof r[t] == "function" && (r[t] = r[t].bind(r));
1102
1102
  });
1103
1103
  };
1104
1104
  class B extends G {
1105
1105
  constructor(e = {}, t) {
1106
- if (super(), this.options = Se(e), this.services = {}, this.logger = $, this.modules = {
1106
+ if (super(), this.options = Pe(e), this.services = {}, this.logger = $, this.modules = {
1107
1107
  external: []
1108
- }, st(this), t && !this.isInitialized && !e.isClone) {
1108
+ }, nt(this), t && !this.isInitialized && !e.isClone) {
1109
1109
  if (!this.options.initAsync)
1110
1110
  return this.init(e, t), this;
1111
1111
  setTimeout(() => {
@@ -1115,11 +1115,11 @@ class B extends G {
1115
1115
  }
1116
1116
  init(e = {}, t) {
1117
1117
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (p(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1118
- const i = be();
1118
+ const i = ve();
1119
1119
  this.options = {
1120
1120
  ...i,
1121
1121
  ...this.options,
1122
- ...Se(e)
1122
+ ...Pe(e)
1123
1123
  }, this.options.interpolation = {
1124
1124
  ...i.interpolation,
1125
1125
  ...this.options.interpolation
@@ -1128,16 +1128,16 @@ class B extends G {
1128
1128
  if (!this.options.isClone) {
1129
1129
  this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
1130
1130
  let l;
1131
- this.modules.formatter ? l = this.modules.formatter : l = Ze;
1132
- const f = new he(this.options);
1133
- this.store = new fe(this.options.resources, this.options);
1131
+ this.modules.formatter ? l = this.modules.formatter : l = tt;
1132
+ const f = new Se(this.options);
1133
+ this.store = new xe(this.options.resources, this.options);
1134
1134
  const c = this.services;
1135
- c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Xe(f, {
1135
+ c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Qe(f, {
1136
1136
  prepend: this.options.pluralSeparator,
1137
1137
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1138
- }), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (c.formatter = s(l), c.formatter.init && c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new ye(this.options), c.utils = {
1138
+ }), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (c.formatter = s(l), c.formatter.init && c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new we(this.options), c.utils = {
1139
1139
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1140
- }, c.backendConnector = new tt(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", (h, ...d) => {
1140
+ }, c.backendConnector = new it(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", (h, ...d) => {
1141
1141
  this.emit(h, ...d);
1142
1142
  }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new X(this.services, this.options), this.translator.on("*", (h, ...d) => {
1143
1143
  this.emit(h, ...d);
@@ -1190,7 +1190,7 @@ class B extends G {
1190
1190
  use(e) {
1191
1191
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1192
1192
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1193
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && we.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1193
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ae.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1194
1194
  }
1195
1195
  setResolvedLanguage(e) {
1196
1196
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -1295,7 +1295,7 @@ class B extends G {
1295
1295
  }
1296
1296
  } catch {
1297
1297
  }
1298
- 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"], i = ((n = this.services) == null ? void 0 : n.languageUtils) || new he(be());
1298
+ 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"], i = ((n = this.services) == null ? void 0 : n.languageUtils) || new Se(ve());
1299
1299
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1300
1300
  }
1301
1301
  static createInstance(e = {}, t) {
@@ -1322,9 +1322,9 @@ class B extends G {
1322
1322
  }, u[l] = Object.keys(u[l]).reduce((f, c) => (f[c] = {
1323
1323
  ...u[l][c]
1324
1324
  }, f), u[l]), u), {});
1325
- n.store = new fe(o, s), n.services.resourceStore = n.store;
1325
+ n.store = new xe(o, s), n.services.resourceStore = n.store;
1326
1326
  }
1327
- return e.interpolation && (n.services.interpolator = new ye(s)), n.translator = new X(n.services, s), n.translator.on("*", (o, ...u) => {
1327
+ return e.interpolation && (n.services.interpolator = new we(s)), n.translator = new X(n.services, s), n.translator.on("*", (o, ...u) => {
1328
1328
  n.emit(o, ...u);
1329
1329
  }), n.init(s, t), n.translator.options = s, n.translator.backendConnector.services.utils = {
1330
1330
  hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
@@ -1355,7 +1355,7 @@ y.setDefaultNamespace;
1355
1355
  y.hasLoadedNamespace;
1356
1356
  y.loadNamespaces;
1357
1357
  y.loadLanguages;
1358
- const Qt = (r) => {
1358
+ const ts = (r) => {
1359
1359
  var e, t;
1360
1360
  !((e = r == null ? void 0 : r.i18n) != null && e.language) || !((t = r == null ? void 0 : r.i18n) != null && t.translations) || y.language === r.i18n.language && y.isInitialized || y.init({
1361
1361
  lng: r.i18n.language,
@@ -1372,100 +1372,124 @@ const Qt = (r) => {
1372
1372
  * This source code is licensed under the MIT license.
1373
1373
  * See the LICENSE file in the root directory of this source tree.
1374
1374
  */
1375
- const it = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], Zt = Ee("outline", "alert-circle", "AlertCircle", it), nt = (r, e) => {
1375
+ const at = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], ss = Ve("outline", "alert-circle", "AlertCircle", at), rt = (r, e) => {
1376
1376
  if (!r || !r.includes("|")) return y.t(r, e);
1377
1377
  const [t, i] = r.split("|", 2).map((s) => s.trim());
1378
1378
  return y.t(
1379
1379
  [t, i].filter((s) => !!s),
1380
1380
  e
1381
1381
  );
1382
- }, es = (r) => {
1382
+ }, is = (r) => {
1383
1383
  const e = {};
1384
1384
  return Object.keys(r).forEach((t) => {
1385
1385
  const i = r[t];
1386
- e[t] = typeof i == "string" ? nt(i) : i;
1386
+ e[t] = typeof i == "string" ? rt(i) : i;
1387
1387
  }), e;
1388
- }, Q = Le("align", {
1388
+ }, Q = $e("align", {
1389
1389
  label: "Align",
1390
1390
  optionLabel: (r) => r
1391
1391
  });
1392
1392
  D(Q, "left");
1393
1393
  D(Q, "center");
1394
1394
  D(Q, "right");
1395
- const at = {
1395
+ const ot = {
1396
+ name: "number",
1397
+ type: "number",
1398
+ label: "Number"
1399
+ }, lt = {
1400
+ name: "string",
1401
+ type: "string",
1402
+ label: "String"
1403
+ }, ut = {
1396
1404
  name: "boolean",
1397
1405
  type: "boolean",
1398
1406
  label: "Boolean"
1399
- }, rt = {
1407
+ }, ct = {
1408
+ name: "timeRange",
1409
+ type: "timeRange",
1410
+ label: "Time Range"
1411
+ }, ft = {
1400
1412
  name: "width",
1401
1413
  type: "number",
1402
1414
  label: "Width",
1403
1415
  description: "You can input a number in pixels e.g. 400"
1404
- }, ot = { name: "align", type: Q, label: "Align" }, Re = { name: "prefix", type: "string", label: "Prefix" }, Pe = { name: "suffix", type: "string", label: "Suffix" }, $e = {
1416
+ }, dt = { name: "align", type: Q, label: "Align" }, ie = { name: "prefix", type: "string", label: "Prefix" }, ne = { name: "suffix", type: "string", label: "Suffix" }, ae = {
1405
1417
  name: "displayName",
1406
1418
  type: "string",
1407
1419
  label: "Display name"
1408
- }, Ne = {
1420
+ }, re = {
1409
1421
  name: "maxCharacters",
1410
1422
  type: "number",
1411
1423
  label: "Maximum characters",
1412
1424
  description: void 0,
1413
1425
  supportedTypes: ["string"]
1414
- }, ke = {
1426
+ }, oe = {
1415
1427
  name: "decimalPlaces",
1416
1428
  type: "number",
1417
1429
  label: "Decimal places",
1418
1430
  supportedTypes: ["number"]
1419
- }, Ae = {
1431
+ }, le = {
1420
1432
  name: "currency",
1421
1433
  type: "string",
1422
1434
  label: "Currency",
1423
1435
  description: "e.g. EUR",
1424
1436
  supportedTypes: ["number"]
1425
- }, Te = {
1437
+ }, ue = {
1426
1438
  name: "abbreviateLargeNumber",
1427
1439
  type: "boolean",
1428
1440
  label: "Abbreviate large number",
1429
1441
  supportedTypes: ["number"]
1430
- }, lt = {
1442
+ }, De = {
1431
1443
  name: "dateBounds",
1432
1444
  type: "timeRange",
1433
1445
  label: "Date Bounds",
1434
1446
  description: "Set the date range for the axis",
1435
1447
  supportedTypes: ["time"]
1436
- }, ut = {
1448
+ }, Fe = {
1437
1449
  name: "granularity",
1438
1450
  type: "granularity",
1439
1451
  label: "Granularity",
1440
1452
  supportedTypes: ["time"]
1441
- }, ct = {
1442
- type: Oe,
1453
+ }, ht = {
1454
+ type: Ne,
1443
1455
  name: "color",
1444
1456
  label: "Color"
1445
1457
  }, I = [
1446
- Re,
1447
- Pe,
1448
- $e,
1449
- Ne,
1450
- ke,
1451
- Ae,
1452
- Te
1453
- ], ft = [
1454
- Re,
1455
- Pe,
1456
- $e,
1457
- Ne,
1458
- ke,
1459
- Ae,
1460
- Te,
1461
- ut,
1462
- lt
1463
- ], ts = {
1464
- boolean: at,
1465
- width: rt,
1466
- align: ot,
1467
- color: ct
1468
- }, E = Le("comparisonPeriod", {
1458
+ ie,
1459
+ ne,
1460
+ ae,
1461
+ re,
1462
+ oe,
1463
+ le,
1464
+ ue
1465
+ ], pt = [
1466
+ ie,
1467
+ ne,
1468
+ ae,
1469
+ re,
1470
+ oe,
1471
+ le,
1472
+ ue,
1473
+ Fe,
1474
+ De
1475
+ ], ns = {
1476
+ boolean: ut,
1477
+ timeRange: ct,
1478
+ number: ot,
1479
+ string: lt,
1480
+ width: ft,
1481
+ align: dt,
1482
+ prefix: ie,
1483
+ suffix: ne,
1484
+ displayName: ae,
1485
+ maxCharacters: re,
1486
+ decimalPlaces: oe,
1487
+ currency: le,
1488
+ abbreviateLargeNumber: ue,
1489
+ dateBounds: De,
1490
+ granularity: Fe,
1491
+ color: ht
1492
+ }, E = $e("comparisonPeriod", {
1469
1493
  label: "Comparison Period",
1470
1494
  optionLabel: (r) => r
1471
1495
  });
@@ -1474,45 +1498,45 @@ D(E, "Previous week");
1474
1498
  D(E, "Previous month");
1475
1499
  D(E, "Previous quarter");
1476
1500
  D(E, "Previous year");
1477
- const dt = {
1501
+ const gt = {
1478
1502
  name: "boolean",
1479
1503
  type: "boolean",
1480
1504
  label: "Boolean"
1481
- }, ht = {
1505
+ }, mt = {
1482
1506
  name: "timeRange",
1483
1507
  type: "timeRange",
1484
1508
  label: "Time Range"
1485
- }, pt = {
1509
+ }, yt = {
1486
1510
  name: "number",
1487
1511
  type: "number",
1488
1512
  label: "Number"
1489
- }, De = {
1513
+ }, je = {
1490
1514
  name: "string",
1491
1515
  type: "string",
1492
1516
  label: "String"
1493
- }, gt = {
1517
+ }, xt = {
1494
1518
  name: "title",
1495
1519
  type: "string",
1496
1520
  label: "Title",
1497
1521
  category: "Component Header"
1498
- }, mt = {
1522
+ }, bt = {
1499
1523
  name: "description",
1500
1524
  type: "string",
1501
1525
  label: "Description",
1502
1526
  category: "Component Header"
1503
- }, yt = {
1527
+ }, St = {
1504
1528
  name: "dataset",
1505
1529
  type: "dataset",
1506
1530
  label: "Dataset",
1507
1531
  required: !0,
1508
1532
  category: "Component Data"
1509
- }, xt = {
1533
+ }, Lt = {
1510
1534
  name: "maxLegendItems",
1511
1535
  type: "number",
1512
1536
  label: "Max Legend Items",
1513
1537
  defaultValue: 10,
1514
1538
  category: "Component Data"
1515
- }, Fe = {
1539
+ }, Ie = {
1516
1540
  name: "dimension",
1517
1541
  type: "dimension",
1518
1542
  label: "Dimension",
@@ -1522,11 +1546,11 @@ const dt = {
1522
1546
  required: !0,
1523
1547
  category: "Component Data",
1524
1548
  inputs: I
1525
- }, bt = {
1526
- ...Fe,
1549
+ }, Ot = {
1550
+ ...Ie,
1527
1551
  name: "groupBy",
1528
1552
  label: "Group By"
1529
- }, St = {
1553
+ }, Ct = {
1530
1554
  name: "dimensionSimple",
1531
1555
  type: "dimension",
1532
1556
  label: "Dimension",
@@ -1536,7 +1560,7 @@ const dt = {
1536
1560
  },
1537
1561
  required: !0,
1538
1562
  category: "Component Data"
1539
- }, Lt = {
1563
+ }, wt = {
1540
1564
  name: "dimensionTime",
1541
1565
  type: "dimension",
1542
1566
  label: "Dimension Time",
@@ -1547,7 +1571,7 @@ const dt = {
1547
1571
  },
1548
1572
  required: !0,
1549
1573
  category: "Component Data"
1550
- }, Ot = {
1574
+ }, Rt = {
1551
1575
  name: "dimension",
1552
1576
  type: "dimension",
1553
1577
  label: "Dimension",
@@ -1556,8 +1580,8 @@ const dt = {
1556
1580
  },
1557
1581
  required: !0,
1558
1582
  category: "Component Data",
1559
- inputs: ft
1560
- }, Ct = {
1583
+ inputs: pt
1584
+ }, vt = {
1561
1585
  name: "dimensions",
1562
1586
  type: "dimension",
1563
1587
  label: "Dimensions",
@@ -1567,7 +1591,7 @@ const dt = {
1567
1591
  required: !0,
1568
1592
  category: "Component Data",
1569
1593
  inputs: I
1570
- }, wt = {
1594
+ }, Pt = {
1571
1595
  name: "dimensionOrMeasure",
1572
1596
  type: "dimensionOrMeasure",
1573
1597
  label: "Dimension or Measure",
@@ -1576,7 +1600,7 @@ const dt = {
1576
1600
  },
1577
1601
  category: "Component Data",
1578
1602
  inputs: I
1579
- }, vt = {
1603
+ }, $t = {
1580
1604
  name: "dimensionsAndMeasures",
1581
1605
  type: "dimensionOrMeasure",
1582
1606
  label: "Dimensions and Measures",
@@ -1587,7 +1611,7 @@ const dt = {
1587
1611
  },
1588
1612
  category: "Component Data",
1589
1613
  inputs: I
1590
- }, Rt = {
1614
+ }, Nt = {
1591
1615
  name: "measure",
1592
1616
  type: "measure",
1593
1617
  label: "Measure",
@@ -1597,7 +1621,7 @@ const dt = {
1597
1621
  required: !0,
1598
1622
  category: "Component Data",
1599
1623
  inputs: I
1600
- }, Pt = {
1624
+ }, kt = {
1601
1625
  name: "measures",
1602
1626
  type: "measure",
1603
1627
  label: "Measures",
@@ -1608,182 +1632,184 @@ const dt = {
1608
1632
  required: !0,
1609
1633
  category: "Component Data",
1610
1634
  inputs: I
1611
- }, $t = {
1635
+ }, At = {
1612
1636
  name: "comparisonPeriod",
1613
1637
  type: E,
1614
1638
  label: "Comparison Period",
1615
1639
  category: "Component data"
1616
- }, Nt = {
1640
+ }, Tt = {
1617
1641
  name: "maxResults",
1618
1642
  type: "number",
1619
1643
  label: "Max results",
1620
1644
  category: "Component Settings",
1621
1645
  defaultValue: 1e3
1622
- }, kt = {
1646
+ }, Dt = {
1623
1647
  name: "placeholder",
1624
1648
  type: "string",
1625
1649
  label: "Placeholder",
1626
1650
  category: "Component Settings"
1627
- }, At = {
1651
+ }, Ft = {
1628
1652
  name: "showLegend",
1629
1653
  type: "boolean",
1630
1654
  label: "Show Legend",
1631
1655
  defaultValue: !0,
1632
1656
  category: "Component Settings"
1633
- }, Tt = {
1657
+ }, jt = {
1634
1658
  name: "showTooltips",
1635
1659
  type: "boolean",
1636
1660
  label: "Show Tooltips",
1637
1661
  defaultValue: !0,
1638
1662
  category: "Component Settings"
1639
- }, Dt = {
1663
+ }, It = {
1640
1664
  name: "showValueLabels",
1641
1665
  type: "boolean",
1642
1666
  label: "Show Value Labels",
1643
1667
  defaultValue: !0,
1644
1668
  category: "Component Settings"
1645
- }, Ft = {
1669
+ }, Et = {
1646
1670
  name: "showTotalLabels",
1647
1671
  type: "boolean",
1648
1672
  label: "Show Total Labels",
1649
1673
  defaultValue: !1,
1650
1674
  category: "Component Settings"
1651
- }, jt = {
1675
+ }, Mt = {
1652
1676
  name: "showLogarithmicScale",
1653
1677
  type: "boolean",
1654
1678
  label: "Show Logarithmic Scale",
1655
1679
  defaultValue: !1,
1656
1680
  category: "Component Settings"
1657
- }, It = {
1681
+ }, Vt = {
1658
1682
  name: "displayPercentages",
1659
1683
  type: "boolean",
1660
1684
  label: "Display Percentages",
1661
1685
  defaultValue: !1,
1662
1686
  category: "Component Settings"
1663
- }, Et = {
1664
- type: Oe,
1687
+ }, Kt = {
1688
+ type: Ne,
1665
1689
  name: "color",
1666
1690
  label: "Color",
1667
1691
  category: "Component Settings"
1668
- }, Mt = {
1692
+ }, Ut = {
1669
1693
  type: "number",
1670
1694
  name: "fontSize",
1671
1695
  label: "Font Size",
1672
1696
  category: "Component Settings"
1673
- }, Vt = {
1697
+ }, Ht = {
1674
1698
  type: "boolean",
1675
1699
  name: "clearable",
1676
1700
  label: "Can be cleared",
1677
1701
  defaultValue: !0,
1678
1702
  category: "Component Settings"
1679
- }, Kt = {
1680
- ...De,
1703
+ }, Bt = {
1704
+ ...je,
1681
1705
  name: "displayNullAs",
1682
- label: "Display Null As",
1706
+ label: "Display null as",
1683
1707
  category: "Component Settings"
1684
- }, Ut = {
1708
+ }, zt = {
1685
1709
  name: "xAxisLabel",
1686
1710
  type: "string",
1687
1711
  label: "X-axis Label",
1688
1712
  category: "Axes Settings"
1689
- }, Ht = {
1713
+ }, Jt = {
1690
1714
  name: "yAxisLabel",
1691
1715
  type: "string",
1692
1716
  label: "Y-axis Label",
1693
1717
  category: "Axes Settings"
1694
- }, Bt = {
1718
+ }, Yt = {
1695
1719
  name: "reverseXAxis",
1696
1720
  type: "boolean",
1697
1721
  label: "Reverse X-axis",
1698
1722
  defaultValue: !1,
1699
1723
  category: "Axes Settings"
1700
- }, zt = {
1724
+ }, Wt = {
1701
1725
  name: "reverseYAxis",
1702
1726
  type: "boolean",
1703
1727
  label: "Reverse Y-axis",
1704
1728
  defaultValue: !1,
1705
1729
  category: "Axes Settings"
1706
- }, Jt = {
1730
+ }, _t = {
1707
1731
  name: "yAxisRangeMin",
1708
1732
  type: "number",
1709
1733
  label: "Y-axis Range Min",
1710
1734
  category: "Axes Settings"
1711
- }, Yt = {
1735
+ }, qt = {
1712
1736
  name: "yAxisRangeMax",
1713
1737
  type: "number",
1714
1738
  label: "Y-axis Range Max",
1715
1739
  category: "Axes Settings"
1716
- }, Wt = {
1740
+ }, Xt = {
1717
1741
  name: "xAxisRangeMin",
1718
1742
  type: "number",
1719
1743
  label: "X-axis Range Min",
1720
1744
  category: "Axes Settings"
1721
- }, _t = {
1745
+ }, Gt = {
1722
1746
  name: "xAxisRangeMax",
1723
1747
  type: "number",
1724
1748
  label: "X-axis Range Max",
1725
1749
  category: "Axes Settings"
1726
- }, qt = {
1750
+ }, Qt = {
1727
1751
  name: "xAxisMaxItems",
1728
1752
  type: "number",
1729
1753
  label: "Max X-axis Items",
1730
1754
  category: "Axes Settings"
1731
- }, Xt = {
1755
+ }, Zt = {
1732
1756
  name: "yAxisMaxItems",
1733
1757
  type: "number",
1734
1758
  label: "Max Y-axis Items",
1735
1759
  category: "Axes Settings"
1736
- }, ss = {
1737
- boolean: dt,
1738
- timeRange: ht,
1739
- number: pt,
1740
- string: De,
1741
- title: gt,
1742
- description: mt,
1743
- dataset: yt,
1744
- maxLegendItems: xt,
1745
- dimension: Fe,
1746
- groupBy: bt,
1747
- dimensionSimple: St,
1748
- dimensionTime: Lt,
1749
- dimensionWithDateBounds: Ot,
1750
- dimensions: Ct,
1751
- dimensionOrMeasure: wt,
1752
- dimensionsAndMeasures: vt,
1753
- measure: Rt,
1754
- measures: Pt,
1755
- comparisonPeriod: $t,
1756
- maxResults: Nt,
1757
- placeholder: kt,
1758
- showLegend: At,
1759
- showTooltips: Tt,
1760
- showValueLabels: Dt,
1761
- showTotalLabels: Ft,
1762
- showLogarithmicScale: jt,
1763
- displayPercentages: It,
1764
- color: Et,
1765
- fontSize: Mt,
1766
- clearable: Vt,
1767
- displayNullAs: Kt,
1768
- xAxisLabel: Ut,
1769
- yAxisLabel: Ht,
1770
- reverseXAxis: Bt,
1771
- reverseYAxis: zt,
1772
- yAxisRangeMin: Jt,
1773
- yAxisRangeMax: Yt,
1774
- xAxisRangeMin: Wt,
1775
- xAxisRangeMax: _t,
1776
- xAxisMaxItems: qt,
1777
- yAxisMaxItems: Xt
1760
+ }, as = {
1761
+ boolean: gt,
1762
+ timeRange: mt,
1763
+ number: yt,
1764
+ string: je,
1765
+ title: xt,
1766
+ description: bt,
1767
+ dataset: St,
1768
+ maxLegendItems: Lt,
1769
+ dimension: Ie,
1770
+ groupBy: Ot,
1771
+ dimensionSimple: Ct,
1772
+ dimensionTime: wt,
1773
+ dimensionWithDateBounds: Rt,
1774
+ dimensions: vt,
1775
+ dimensionOrMeasure: Pt,
1776
+ dimensionsAndMeasures: $t,
1777
+ measure: Nt,
1778
+ measures: kt,
1779
+ comparisonPeriod: At,
1780
+ maxResults: Tt,
1781
+ placeholder: Dt,
1782
+ showLegend: Ft,
1783
+ showTooltips: jt,
1784
+ showValueLabels: It,
1785
+ showTotalLabels: Et,
1786
+ showLogarithmicScale: Mt,
1787
+ displayPercentages: Vt,
1788
+ color: Kt,
1789
+ fontSize: Ut,
1790
+ clearable: Ht,
1791
+ displayNullAs: Bt,
1792
+ xAxisLabel: zt,
1793
+ yAxisLabel: Jt,
1794
+ reverseXAxis: Yt,
1795
+ reverseYAxis: Wt,
1796
+ yAxisRangeMin: _t,
1797
+ yAxisRangeMax: qt,
1798
+ xAxisRangeMin: Xt,
1799
+ xAxisRangeMax: Gt,
1800
+ xAxisMaxItems: Qt,
1801
+ yAxisMaxItems: Zt
1778
1802
  };
1779
1803
  export {
1780
1804
  E as C,
1781
- Zt as I,
1782
- Qt as a,
1783
- ss as b,
1784
- nt as c,
1805
+ ss as I,
1806
+ ts as a,
1807
+ as as b,
1808
+ rt as c,
1809
+ I as d,
1785
1810
  y as i,
1786
- es as r,
1787
- ts as s
1811
+ is as r,
1812
+ ns as s,
1813
+ pt as t
1788
1814
  };
1789
- //# sourceMappingURL=component.inputs.constants-FaX3B1CO.js.map
1815
+ //# sourceMappingURL=component.inputs.constants-CpWMPDsp.js.map