drizzle-cube 0.2.8 → 0.2.10

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 (94) hide show
  1. package/dist/client/charts.js +15 -15
  2. package/dist/client/chunks/{chart-activitygridchart-Cz4bEf3V.js → chart-activitygridchart-C1ts13cL.js} +40 -40
  3. package/dist/client/chunks/chart-activitygridchart-C1ts13cL.js.map +1 -0
  4. package/dist/client/chunks/chart-activitygridchart-config-AVBoHdRn.js +244 -0
  5. package/dist/client/chunks/chart-activitygridchart-config-AVBoHdRn.js.map +1 -0
  6. package/dist/client/chunks/{chart-areachart-config-DWN1E5ej.js → chart-areachart-config-0ICuIaRP.js} +2 -2
  7. package/dist/client/chunks/{chart-areachart-config-DWN1E5ej.js.map → chart-areachart-config-0ICuIaRP.js.map} +1 -1
  8. package/dist/client/chunks/{chart-areachart-DLdolSnU.js → chart-areachart-fOi6lwUq.js} +3 -3
  9. package/dist/client/chunks/{chart-areachart-DLdolSnU.js.map → chart-areachart-fOi6lwUq.js.map} +1 -1
  10. package/dist/client/chunks/{chart-barchart-Bdjz8DJp.js → chart-barchart-CJfPZQin.js} +4 -4
  11. package/dist/client/chunks/{chart-barchart-Bdjz8DJp.js.map → chart-barchart-CJfPZQin.js.map} +1 -1
  12. package/dist/client/chunks/{chart-barchart-config-DZA0xTns.js → chart-barchart-config-DalFHdmP.js} +2 -2
  13. package/dist/client/chunks/{chart-barchart-config-DZA0xTns.js.map → chart-barchart-config-DalFHdmP.js.map} +1 -1
  14. package/dist/client/chunks/{chart-bubblechart-BlQkmqkI.js → chart-bubblechart-BVk_qFly.js} +2 -2
  15. package/dist/client/chunks/{chart-bubblechart-BlQkmqkI.js.map → chart-bubblechart-BVk_qFly.js.map} +1 -1
  16. package/dist/client/chunks/{chart-bubblechart-config-C79lfDSO.js → chart-bubblechart-config-WjiDlqnP.js} +2 -2
  17. package/dist/client/chunks/{chart-bubblechart-config-C79lfDSO.js.map → chart-bubblechart-config-WjiDlqnP.js.map} +1 -1
  18. package/dist/client/chunks/{chart-charttooltip-k8soCd2n.js → chart-charttooltip-5tzcFRt0.js} +2 -2
  19. package/dist/client/chunks/{chart-charttooltip-k8soCd2n.js.map → chart-charttooltip-5tzcFRt0.js.map} +1 -1
  20. package/dist/client/chunks/{chart-datatable-Mo4gYCwa.js → chart-datatable-BW_dWRbb.js} +3 -3
  21. package/dist/client/chunks/{chart-datatable-Mo4gYCwa.js.map → chart-datatable-BW_dWRbb.js.map} +1 -1
  22. package/dist/client/chunks/{chart-datatable-config-DqGw99R3.js → chart-datatable-config-C7TgMD3u.js} +2 -2
  23. package/dist/client/chunks/{chart-datatable-config-DqGw99R3.js.map → chart-datatable-config-C7TgMD3u.js.map} +1 -1
  24. package/dist/client/chunks/{chart-kpidelta-CTcuIO9G.js → chart-kpidelta-D_VuZaVL.js} +2 -2
  25. package/dist/client/chunks/{chart-kpidelta-CTcuIO9G.js.map → chart-kpidelta-D_VuZaVL.js.map} +1 -1
  26. package/dist/client/chunks/{chart-kpidelta-config-B-Y-LHmd.js → chart-kpidelta-config-DtSDG4Kl.js} +2 -2
  27. package/dist/client/chunks/{chart-kpidelta-config-B-Y-LHmd.js.map → chart-kpidelta-config-DtSDG4Kl.js.map} +1 -1
  28. package/dist/client/chunks/{chart-kpinumber-slEXt8C-.js → chart-kpinumber-DeCkVi2e.js} +4 -4
  29. package/dist/client/chunks/{chart-kpinumber-slEXt8C-.js.map → chart-kpinumber-DeCkVi2e.js.map} +1 -1
  30. package/dist/client/chunks/{chart-kpinumber-config-BaNaJMI6.js → chart-kpinumber-config-Da2LFeKM.js} +2 -2
  31. package/dist/client/chunks/{chart-kpinumber-config-BaNaJMI6.js.map → chart-kpinumber-config-Da2LFeKM.js.map} +1 -1
  32. package/dist/client/chunks/{chart-kpitext-giq03TOK.js → chart-kpitext-D8OpA0CY.js} +3 -3
  33. package/dist/client/chunks/{chart-kpitext-giq03TOK.js.map → chart-kpitext-D8OpA0CY.js.map} +1 -1
  34. package/dist/client/chunks/{chart-kpitext-config-BNywYqEW.js → chart-kpitext-config-DjvigyfE.js} +2 -2
  35. package/dist/client/chunks/{chart-kpitext-config-BNywYqEW.js.map → chart-kpitext-config-DjvigyfE.js.map} +1 -1
  36. package/dist/client/chunks/{chart-linechart-BfnU6L-D.js → chart-linechart-BdfBVl3m.js} +4 -4
  37. package/dist/client/chunks/{chart-linechart-BfnU6L-D.js.map → chart-linechart-BdfBVl3m.js.map} +1 -1
  38. package/dist/client/chunks/{chart-linechart-config-BL_1mjHF.js → chart-linechart-config-C5tpU_2u.js} +2 -2
  39. package/dist/client/chunks/{chart-linechart-config-BL_1mjHF.js.map → chart-linechart-config-C5tpU_2u.js.map} +1 -1
  40. package/dist/client/chunks/{chart-markdownchart-config-DtZOfYu4.js → chart-markdownchart-config-CgOA3YSw.js} +2 -2
  41. package/dist/client/chunks/{chart-markdownchart-config-DtZOfYu4.js.map → chart-markdownchart-config-CgOA3YSw.js.map} +1 -1
  42. package/dist/client/chunks/{chart-piechart-CZRDQxeB.js → chart-piechart-CiFJQtC8.js} +3 -3
  43. package/dist/client/chunks/{chart-piechart-CZRDQxeB.js.map → chart-piechart-CiFJQtC8.js.map} +1 -1
  44. package/dist/client/chunks/{chart-piechart-config-Bg4jeIFo.js → chart-piechart-config-CtP_JkGm.js} +2 -2
  45. package/dist/client/chunks/{chart-piechart-config-Bg4jeIFo.js.map → chart-piechart-config-CtP_JkGm.js.map} +1 -1
  46. package/dist/client/chunks/{chart-radarchart-D5yRnY9j.js → chart-radarchart-CJ4kpk5J.js} +3 -3
  47. package/dist/client/chunks/{chart-radarchart-D5yRnY9j.js.map → chart-radarchart-CJ4kpk5J.js.map} +1 -1
  48. package/dist/client/chunks/{chart-radarchart-config-d6dLkI7B.js → chart-radarchart-config-BkD_6Khq.js} +2 -2
  49. package/dist/client/chunks/{chart-radarchart-config-d6dLkI7B.js.map → chart-radarchart-config-BkD_6Khq.js.map} +1 -1
  50. package/dist/client/chunks/{chart-radialbarchart-Djtcn7aH.js → chart-radialbarchart-DLQqN_1Z.js} +3 -3
  51. package/dist/client/chunks/{chart-radialbarchart-Djtcn7aH.js.map → chart-radialbarchart-DLQqN_1Z.js.map} +1 -1
  52. package/dist/client/chunks/{chart-radialbarchart-config-BGf97-BV.js → chart-radialbarchart-config-CBZDlB2k.js} +2 -2
  53. package/dist/client/chunks/{chart-radialbarchart-config-BGf97-BV.js.map → chart-radialbarchart-config-CBZDlB2k.js.map} +1 -1
  54. package/dist/client/chunks/{chart-scatterchart-C83KgqYY.js → chart-scatterchart-DeGqPbYm.js} +2 -2
  55. package/dist/client/chunks/{chart-scatterchart-C83KgqYY.js.map → chart-scatterchart-DeGqPbYm.js.map} +1 -1
  56. package/dist/client/chunks/{chart-scatterchart-config-DEIB74ot.js → chart-scatterchart-config-DsdmlpHr.js} +2 -2
  57. package/dist/client/chunks/{chart-scatterchart-config-DEIB74ot.js.map → chart-scatterchart-config-DsdmlpHr.js.map} +1 -1
  58. package/dist/client/chunks/{chart-treemapchart-BDKnKGTz.js → chart-treemapchart-ClXsAOjr.js} +3 -3
  59. package/dist/client/chunks/{chart-treemapchart-BDKnKGTz.js.map → chart-treemapchart-ClXsAOjr.js.map} +1 -1
  60. package/dist/client/chunks/{chart-treemapchart-config-ppKPTB96.js → chart-treemapchart-config-CdF9NvPP.js} +2 -2
  61. package/dist/client/chunks/{chart-treemapchart-config-ppKPTB96.js.map → chart-treemapchart-config-CdF9NvPP.js.map} +1 -1
  62. package/dist/client/chunks/{charts-MJLpxe3r.js → charts-DY7pF_-4.js} +42 -42
  63. package/dist/client/chunks/{charts-MJLpxe3r.js.map → charts-DY7pF_-4.js.map} +1 -1
  64. package/dist/client/chunks/components-DAOVOiM_.js +13429 -0
  65. package/dist/client/chunks/components-DAOVOiM_.js.map +1 -0
  66. package/dist/client/chunks/{index-CSeLP8gq.js → index-DH5abYWH.js} +2 -2
  67. package/dist/client/chunks/{index-CSeLP8gq.js.map → index-DH5abYWH.js.map} +1 -1
  68. package/dist/client/components/AnalysisBuilder/AnalysisFilterSection.d.ts +3 -1
  69. package/dist/client/components/AnalysisBuilder/AnalysisQueryPanel.d.ts +2 -1
  70. package/dist/client/components/AnalysisBuilder/AnalysisResultsPanel.d.ts +2 -1
  71. package/dist/client/components/AnalysisBuilder/BreakdownItemCard.d.ts +3 -1
  72. package/dist/client/components/AnalysisBuilder/BreakdownSection.d.ts +3 -2
  73. package/dist/client/components/AnalysisBuilder/MetricItemCard.d.ts +3 -1
  74. package/dist/client/components/AnalysisBuilder/MetricsSection.d.ts +3 -2
  75. package/dist/client/components/AnalysisBuilder/types.d.ts +61 -0
  76. package/dist/client/components/PortletAnalysisModal.d.ts +25 -0
  77. package/dist/client/components.js +3 -3
  78. package/dist/client/hooks.js +2 -2
  79. package/dist/client/icons/registry.d.ts +1 -1
  80. package/dist/client/icons.js +1 -1
  81. package/dist/client/index.d.ts +1 -0
  82. package/dist/client/index.js +51 -3202
  83. package/dist/client/index.js.map +1 -1
  84. package/dist/client/providers/CubeProvider.d.ts +1 -1
  85. package/dist/client/providers.js +1 -1
  86. package/dist/client/styles.css +1 -1
  87. package/dist/client/types.d.ts +1 -0
  88. package/dist/client-bundle-stats.html +1 -1
  89. package/package.json +1 -1
  90. package/dist/client/chunks/chart-activitygridchart-Cz4bEf3V.js.map +0 -1
  91. package/dist/client/chunks/chart-activitygridchart-config-BngZDVh_.js +0 -236
  92. package/dist/client/chunks/chart-activitygridchart-config-BngZDVh_.js.map +0 -1
  93. package/dist/client/chunks/components-CXA6-jJq.js +0 -9845
  94. package/dist/client/chunks/components-CXA6-jJq.js.map +0 -1
@@ -1,16 +1,16 @@
1
- import { L as t, r as e, f as s, b as o, k as C, l as h, m as f, i as l, q as p, p as d, n as i, o as R, a as c, u as m } from "./chunks/charts-MJLpxe3r.js";
2
- import { a as g, C as x, N as u, P as A } from "./chunks/chart-activitygridchart-Cz4bEf3V.js";
3
- import { default as L } from "./chunks/chart-barchart-Bdjz8DJp.js";
4
- import { default as y } from "./chunks/chart-linechart-BfnU6L-D.js";
5
- import { A as I } from "./chunks/chart-areachart-DLdolSnU.js";
6
- import { default as b } from "./chunks/chart-piechart-CZRDQxeB.js";
7
- import { default as N } from "./chunks/chart-scatterchart-C83KgqYY.js";
8
- import { default as V } from "./chunks/chart-radarchart-D5yRnY9j.js";
9
- import { default as D } from "./chunks/chart-radialbarchart-Djtcn7aH.js";
10
- import { default as H } from "./chunks/chart-treemapchart-BDKnKGTz.js";
11
- import { default as k } from "./chunks/chart-datatable-Mo4gYCwa.js";
1
+ import { L as t, r as e, f as s, g as o, k as C, l as h, m as f, i as l, q as p, p as d, n as i, o as R, a as c, u as m } from "./chunks/charts-DY7pF_-4.js";
2
+ import { a as n, C as x, N as u, P as A } from "./chunks/chart-activitygridchart-C1ts13cL.js";
3
+ import { default as L } from "./chunks/chart-barchart-CJfPZQin.js";
4
+ import { default as y } from "./chunks/chart-linechart-BdfBVl3m.js";
5
+ import { A as I } from "./chunks/chart-areachart-fOi6lwUq.js";
6
+ import { default as E } from "./chunks/chart-piechart-CiFJQtC8.js";
7
+ import { default as P } from "./chunks/chart-scatterchart-DeGqPbYm.js";
8
+ import { default as b } from "./chunks/chart-radarchart-CJ4kpk5J.js";
9
+ import { default as D } from "./chunks/chart-radialbarchart-DLQqN_1Z.js";
10
+ import { default as H } from "./chunks/chart-treemapchart-ClXsAOjr.js";
11
+ import { default as k } from "./chunks/chart-datatable-BW_dWRbb.js";
12
12
  export {
13
- g as CHART_COLORS,
13
+ n as CHART_COLORS,
14
14
  x as CHART_MARGINS,
15
15
  k as DataTable,
16
16
  t as LazyChart,
@@ -19,10 +19,10 @@ export {
19
19
  I as RechartsAreaChart,
20
20
  L as RechartsBarChart,
21
21
  y as RechartsLineChart,
22
- b as RechartsPieChart,
23
- V as RechartsRadarChart,
22
+ E as RechartsPieChart,
23
+ b as RechartsRadarChart,
24
24
  D as RechartsRadialBarChart,
25
- N as RechartsScatterChart,
25
+ P as RechartsScatterChart,
26
26
  H as RechartsTreeMapChart,
27
27
  e as clearChartConfigCache,
28
28
  s as formatChartData,
@@ -1,5 +1,5 @@
1
1
  import { jsx as O, jsxs as pt } from "react/jsx-runtime";
2
- import { useState as B, useCallback as Rt, useEffect as bt, useContext as ln, createContext as fn, useMemo as ae, useRef as oe, useLayoutEffect as hn } from "react";
2
+ import { useState as G, useCallback as Rt, useEffect as bt, useContext as ln, createContext as fn, useMemo as ae, useRef as oe, useLayoutEffect as hn } from "react";
3
3
  class dn {
4
4
  apiUrl;
5
5
  headers;
@@ -156,7 +156,7 @@ function yn() {
156
156
  return j ? Date.now() - j.timestamp < gn : !1;
157
157
  }
158
158
  function xn(t) {
159
- const [e, n] = B(null), [r, i] = B({}), [a, o] = B(!0), [s, c] = B(null), u = Rt(async () => {
159
+ const [e, n] = G(null), [r, i] = G({}), [a, o] = G(!0), [s, c] = G(null), u = Rt(async () => {
160
160
  if (yn() && j) {
161
161
  n(j.data), i(j.labelMap), o(!1), c(null);
162
162
  return;
@@ -256,8 +256,8 @@ function ka({
256
256
  apiOptions: e,
257
257
  token: n,
258
258
  options: r = {},
259
- features: i = { enableAI: !0, aiEndpoint: "/api/ai/generate", showSchemaDiagram: !1 },
260
- // Default to AI enabled, schema diagram disabled
259
+ features: i = { enableAI: !0, aiEndpoint: "/api/ai/generate", showSchemaDiagram: !1, useAnalysisBuilder: !1 },
260
+ // Default to AI enabled, schema diagram disabled, old portlet edit modal
261
261
  dashboardModes: a = ["rows", "grid"],
262
262
  enableBatching: o = !0,
263
263
  // Default to batching enabled
@@ -265,7 +265,7 @@ function ka({
265
265
  // Default 100ms batch window
266
266
  children: c
267
267
  }) {
268
- const [u, f] = B(null), m = u || {
268
+ const [u, f] = G(null), m = u || {
269
269
  apiOptions: e || { apiUrl: "/cubejs-api/v1" },
270
270
  token: n
271
271
  }, l = ae(() => t && !e && !n ? t : mn(m.token, m.apiOptions), [t, e, n, m.apiOptions, m.token]), d = ae(() => {
@@ -822,11 +822,11 @@ function Xn(t) {
822
822
  function Qn(t) {
823
823
  return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
824
824
  }
825
- function Gn() {
825
+ function Bn() {
826
826
  return [];
827
827
  }
828
- function Bn(t) {
829
- return t == null ? Gn : function() {
828
+ function Gn(t) {
829
+ return t == null ? Bn : function() {
830
830
  return this.querySelectorAll(t);
831
831
  };
832
832
  }
@@ -836,7 +836,7 @@ function Jn(t) {
836
836
  };
837
837
  }
838
838
  function Zn(t) {
839
- typeof t == "function" ? t = Jn(t) : t = Bn(t);
839
+ typeof t == "function" ? t = Jn(t) : t = Gn(t);
840
840
  for (var e = this._groups, n = e.length, r = [], i = [], a = 0; a < n; ++a)
841
841
  for (var o = e[a], s = o.length, c, u = 0; u < s; ++u)
842
842
  (c = o[u]) && (r.push(t.call(c, c.__data__, u, o)), i.push(c));
@@ -1100,7 +1100,7 @@ function Ir(t, e) {
1100
1100
  function ze(t) {
1101
1101
  return t.trim().split(/^|\s+/);
1102
1102
  }
1103
- function Gt(t) {
1103
+ function Bt(t) {
1104
1104
  return t.classList || new Ie(t);
1105
1105
  }
1106
1106
  function Ie(t) {
@@ -1120,10 +1120,10 @@ Ie.prototype = {
1120
1120
  }
1121
1121
  };
1122
1122
  function We(t, e) {
1123
- for (var n = Gt(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
1123
+ for (var n = Bt(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
1124
1124
  }
1125
1125
  function Ue(t, e) {
1126
- for (var n = Gt(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
1126
+ for (var n = Bt(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
1127
1127
  }
1128
1128
  function Wr(t) {
1129
1129
  return function() {
@@ -1143,7 +1143,7 @@ function Yr(t, e) {
1143
1143
  function Xr(t, e) {
1144
1144
  var n = ze(t + "");
1145
1145
  if (arguments.length < 2) {
1146
- for (var r = Gt(this.node()), i = -1, a = n.length; ++i < a; ) if (!r.contains(n[i])) return !1;
1146
+ for (var r = Bt(this.node()), i = -1, a = n.length; ++i < a; ) if (!r.contains(n[i])) return !1;
1147
1147
  return !0;
1148
1148
  }
1149
1149
  return this.each((typeof e == "function" ? Yr : e ? Wr : Ur)(n, e));
@@ -1151,19 +1151,19 @@ function Xr(t, e) {
1151
1151
  function Qr() {
1152
1152
  this.textContent = "";
1153
1153
  }
1154
- function Gr(t) {
1154
+ function Br(t) {
1155
1155
  return function() {
1156
1156
  this.textContent = t;
1157
1157
  };
1158
1158
  }
1159
- function Br(t) {
1159
+ function Gr(t) {
1160
1160
  return function() {
1161
1161
  var e = t.apply(this, arguments);
1162
1162
  this.textContent = e ?? "";
1163
1163
  };
1164
1164
  }
1165
1165
  function Jr(t) {
1166
- return arguments.length ? this.each(t == null ? Qr : (typeof t == "function" ? Br : Gr)(t)) : this.node().textContent;
1166
+ return arguments.length ? this.each(t == null ? Qr : (typeof t == "function" ? Gr : Br)(t)) : this.node().textContent;
1167
1167
  }
1168
1168
  function Zr() {
1169
1169
  this.innerHTML = "";
@@ -1349,7 +1349,7 @@ I.prototype = {
1349
1349
  function ct(t) {
1350
1350
  return typeof t == "string" ? new I([[document.querySelector(t)]], [document.documentElement]) : new I([[t]], Mi);
1351
1351
  }
1352
- function Bt(t, e, n) {
1352
+ function Gt(t, e, n) {
1353
1353
  t.prototype = e.prototype = n, n.constructor = t;
1354
1354
  }
1355
1355
  function Xe(t, e) {
@@ -1509,7 +1509,7 @@ var lt = 0.7, Nt = 1 / lt, it = "\\s*([+-]?\\d+)\\s*", ft = "\\s*([+-]?(?:\\d*\\
1509
1509
  yellow: 16776960,
1510
1510
  yellowgreen: 10145074
1511
1511
  };
1512
- Bt(dt, ht, {
1512
+ Gt(dt, ht, {
1513
1513
  copy(t) {
1514
1514
  return Object.assign(new this.constructor(), this, t);
1515
1515
  },
@@ -1555,7 +1555,7 @@ function Ut(t, e, n, r) {
1555
1555
  function P(t, e, n, r) {
1556
1556
  this.r = +t, this.g = +e, this.b = +n, this.opacity = +r;
1557
1557
  }
1558
- Bt(P, Ut, Xe(dt, {
1558
+ Gt(P, Ut, Xe(dt, {
1559
1559
  brighter(t) {
1560
1560
  return t = t == null ? Nt : Math.pow(Nt, t), new P(this.r * t, this.g * t, this.b * t, this.opacity);
1561
1561
  },
@@ -1614,7 +1614,7 @@ function Hi(t, e, n, r) {
1614
1614
  function W(t, e, n, r) {
1615
1615
  this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
1616
1616
  }
1617
- Bt(W, Hi, Xe(dt, {
1617
+ Gt(W, Hi, Xe(dt, {
1618
1618
  brighter(t) {
1619
1619
  return t = t == null ? Nt : Math.pow(Nt, t), new W(this.h, this.s, this.l * t, this.opacity);
1620
1620
  },
@@ -1662,18 +1662,18 @@ function Oi(t, e, n) {
1662
1662
  };
1663
1663
  }
1664
1664
  function Pi(t) {
1665
- return (t = +t) == 1 ? Ge : function(e, n) {
1665
+ return (t = +t) == 1 ? Be : function(e, n) {
1666
1666
  return n - e ? Oi(e, n, t) : Jt(isNaN(e) ? n : e);
1667
1667
  };
1668
1668
  }
1669
- function Ge(t, e) {
1669
+ function Be(t, e) {
1670
1670
  var n = e - t;
1671
1671
  return n ? qi(t, n) : Jt(isNaN(t) ? e : t);
1672
1672
  }
1673
1673
  const ve = (function t(e) {
1674
1674
  var n = Pi(e);
1675
1675
  function r(i, a) {
1676
- var o = n((i = Ut(i)).r, (a = Ut(a)).r), s = n(i.g, a.g), c = n(i.b, a.b), u = Ge(i.opacity, a.opacity);
1676
+ var o = n((i = Ut(i)).r, (a = Ut(a)).r), s = n(i.g, a.g), c = n(i.b, a.b), u = Be(i.opacity, a.opacity);
1677
1677
  return function(f) {
1678
1678
  return i.r = o(f), i.g = s(f), i.b = c(f), i.opacity = u(f), i + "";
1679
1679
  };
@@ -1745,12 +1745,12 @@ function Zt(t, e) {
1745
1745
  var n = typeof e, r;
1746
1746
  return e == null || n === "boolean" ? Jt(e) : (n === "number" ? $t : n === "string" ? (r = ht(e)) ? (e = r, ve) : Qi : e instanceof ht ? ve : e instanceof Date ? Wi : zi(e) ? Vi : Array.isArray(e) ? Ii : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Ui : $t)(t, e);
1747
1747
  }
1748
- function Gi(t, e) {
1748
+ function Bi(t, e) {
1749
1749
  return t = +t, e = +e, function(n) {
1750
1750
  return Math.round(t * (1 - n) + e * n);
1751
1751
  };
1752
1752
  }
1753
- function Bi(t) {
1753
+ function Gi(t) {
1754
1754
  return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
1755
1755
  }
1756
1756
  function At(t, e) {
@@ -1818,11 +1818,11 @@ function ji(t) {
1818
1818
  }
1819
1819
  return r > 0 ? t.slice(0, r) + t.slice(i + 1) : t;
1820
1820
  }
1821
- var Be;
1821
+ var Ge;
1822
1822
  function ta(t, e) {
1823
1823
  var n = At(t, e);
1824
1824
  if (!n) return t + "";
1825
- var r = n[0], i = n[1], a = i - (Be = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
1825
+ var r = n[0], i = n[1], a = i - (Ge = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
1826
1826
  return a === o ? r : a > o ? r + new Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + new Array(1 - a).join("0") + At(t, Math.max(0, e + a - 1))[0];
1827
1827
  }
1828
1828
  function _e(t, e) {
@@ -1835,7 +1835,7 @@ const Me = {
1835
1835
  "%": (t, e) => (t * 100).toFixed(e),
1836
1836
  b: (t) => Math.round(t).toString(2),
1837
1837
  c: (t) => t + "",
1838
- d: Bi,
1838
+ d: Gi,
1839
1839
  e: (t, e) => t.toExponential(e),
1840
1840
  f: (t, e) => t.toFixed(e),
1841
1841
  g: (t, e) => t.toPrecision(e),
@@ -1865,7 +1865,7 @@ function ea(t) {
1865
1865
  else {
1866
1866
  g = +g;
1867
1867
  var D = g < 0 || 1 / g < 0;
1868
- if (g = isNaN(g) ? c : x(Math.abs(g), N), C && (g = ji(g)), D && +g == 0 && M !== "+" && (D = !1), w = (D ? M === "(" ? M : s : M === "-" || M === "(" ? "" : M) + w, k = (v === "s" ? Se[8 + Be / 3] : "") + k + (D && M === "(" ? ")" : ""), h) {
1868
+ if (g = isNaN(g) ? c : x(Math.abs(g), N), C && (g = ji(g)), D && +g == 0 && M !== "+" && (D = !1), w = (D ? M === "(" ? M : s : M === "-" || M === "(" ? "" : M) + w, k = (v === "s" ? Se[8 + Ge / 3] : "") + k + (D && M === "(" ? ")" : ""), h) {
1869
1869
  for (R = -1, V = g.length; ++R < V; )
1870
1870
  if (ot = g.charCodeAt(R), 48 > ot || ot > 57) {
1871
1871
  k = (ot === 46 ? i + g.slice(R + 1) : g.slice(R)) + k, g = g.slice(0, R);
@@ -2019,7 +2019,7 @@ function je() {
2019
2019
  }, m.range = function(l) {
2020
2020
  return arguments.length ? (e = Array.from(l), f()) : e.slice();
2021
2021
  }, m.rangeRound = function(l) {
2022
- return e = Array.from(l), n = Gi, f();
2022
+ return e = Array.from(l), n = Bi, f();
2023
2023
  }, m.clamp = function(l) {
2024
2024
  return arguments.length ? (o = l ? !0 : U, f()) : o !== U;
2025
2025
  }, m.interpolate = function(l) {
@@ -2149,7 +2149,7 @@ function xa({
2149
2149
  height: i = "100%",
2150
2150
  colorPalette: a
2151
2151
  }) {
2152
- const o = oe(null), s = oe(null), [c, u] = B({ width: 0, height: 0 }), [f, m] = B(!1), [l, d] = B("light"), { getFieldLabel: M } = bn();
2152
+ const o = oe(null), s = oe(null), [c, u] = G({ width: 0, height: 0 }), [f, m] = G(!1), [l, d] = G("light"), { getFieldLabel: M } = bn();
2153
2153
  bt(() => (d(_t()), kn((h) => {
2154
2154
  d(h);
2155
2155
  })), []);
@@ -2335,10 +2335,10 @@ function xa({
2335
2335
  L = new Date(y);
2336
2336
  if (isNaN(L.getTime()))
2337
2337
  return null;
2338
- const Q = w.extractX(L), G = w.extractY(L);
2338
+ const Q = w.extractX(L), B = w.extractY(L);
2339
2339
  return {
2340
2340
  x: Q,
2341
- y: G,
2341
+ y: B,
2342
2342
  value: S,
2343
2343
  date: L,
2344
2344
  label: Qt(y, g)
@@ -2362,8 +2362,8 @@ function xa({
2362
2362
  const p = Tt / J, y = te / z, S = Math.min(p, y);
2363
2363
  H = w.cellWidth * S, nt = w.cellHeight * S;
2364
2364
  } else {
2365
- const y = { width: 16, height: 16 }, S = 24, L = Tt / J, Q = te / z, G = Math.min(L, Q);
2366
- H = Math.max(y.width, Math.min(S, w.cellWidth * G)), nt = Math.max(y.height, Math.min(S, w.cellHeight * G)), g === "week" && H < y.width && (H = y.width);
2365
+ const y = { width: 16, height: 16 }, S = 24, L = Tt / J, Q = te / z, B = Math.min(L, Q);
2366
+ H = Math.max(y.width, Math.min(S, w.cellWidth * B)), nt = Math.max(y.height, Math.min(S, w.cellHeight * B)), g === "week" && H < y.width && (H = y.width);
2367
2367
  }
2368
2368
  const ee = D.length * H + (D.length - 1) * 4, nn = ee > Tt ? ee + X.left + X.right : c.width, rt = ct(o.current).attr("width", nn).attr("height", c.height).append("g").attr("transform", `translate(${X.left},${X.top})`), ne = k.map((p) => p.value), rn = le(ne) || 0, an = ue(ne) || 1, on = en().domain([rn, an]).range(a?.gradient || _n), re = /* @__PURE__ */ new Map();
2369
2369
  k.forEach((p) => {
@@ -2376,8 +2376,8 @@ function xa({
2376
2376
  });
2377
2377
  for (const p of D)
2378
2378
  for (let y = V; y <= R; y++) {
2379
- const S = `${p}-${y}`, L = re.get(S), Q = st.get(p) || 0, G = rt.append("rect").attr("x", Q * (H + 4)).attr("y", (y - V) * (nt + 4)).attr("width", H).attr("height", nt).attr("rx", 2).attr("ry", 2).style("fill", L ? on(L.value) : cn).style("stroke", ie).style("stroke-width", 1);
2380
- F.showTooltip && G.style("cursor", "pointer").on("mouseover", function(q) {
2379
+ const S = `${p}-${y}`, L = re.get(S), Q = st.get(p) || 0, B = rt.append("rect").attr("x", Q * (H + 4)).attr("y", (y - V) * (nt + 4)).attr("width", H).attr("height", nt).attr("rx", 2).attr("ry", 2).style("fill", L ? on(L.value) : cn).style("stroke", ie).style("stroke-width", 1);
2380
+ F.showTooltip && B.style("cursor", "pointer").on("mouseover", function(q) {
2381
2381
  if (ct(this).style("stroke", "#000").style("stroke-width", 2), L) {
2382
2382
  const K = [
2383
2383
  `<strong>${L.label}</strong>`,
@@ -2404,14 +2404,14 @@ function xa({
2404
2404
  }
2405
2405
  for (const [y, S] of p)
2406
2406
  if (S.length > 0) {
2407
- const L = Math.min(...S.map((K) => st.get(K) || 0)), Q = Math.max(...S.map((K) => st.get(K) || 0)), G = (L + Q) / 2;
2407
+ const L = Math.min(...S.map((K) => st.get(K) || 0)), Q = Math.max(...S.map((K) => st.get(K) || 0)), B = (L + Q) / 2;
2408
2408
  let q = "";
2409
2409
  if (y > 9999) {
2410
2410
  const K = Math.floor(y / 100), un = y % 100;
2411
2411
  q = `${["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"][un - 1]} '${K.toString().slice(-2)}`;
2412
2412
  } else
2413
2413
  q = `'${y.toString().slice(-2)}`;
2414
- rt.append("text").attr("x", G * (H + 4) + H / 2).attr("y", -25).attr("text-anchor", "middle").style("font-size", "12px").style("font-weight", "bold").style("fill", mt).text(q), S.length > 1 && rt.append("line").attr("x1", L * (H + 4)).attr("x2", Q * (H + 4) + H).attr("y1", -20).attr("y2", -20).style("stroke", sn).style("stroke-width", 1).style("opacity", 0.3);
2414
+ rt.append("text").attr("x", B * (H + 4) + H / 2).attr("y", -25).attr("text-anchor", "middle").style("font-size", "12px").style("font-weight", "bold").style("fill", mt).text(q), S.length > 1 && rt.append("line").attr("x1", L * (H + 4)).attr("x2", Q * (H + 4) + H).attr("y1", -20).attr("y2", -20).style("stroke", sn).style("stroke-width", 1).style("opacity", 0.3);
2415
2415
  }
2416
2416
  } else {
2417
2417
  const p = Math.max(1, Math.floor(D.length / 10));
@@ -2509,4 +2509,4 @@ export {
2509
2509
  Ra as y,
2510
2510
  La as z
2511
2511
  };
2512
- //# sourceMappingURL=chart-activitygridchart-Cz4bEf3V.js.map
2512
+ //# sourceMappingURL=chart-activitygridchart-C1ts13cL.js.map