@databrainhq/plugin 0.17.9-beta.33 → 0.17.9-beta.34

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 (47) hide show
  1. package/dist/{Accordion-BdGcYoH_.mjs → Accordion-DtzU-kv3.mjs} +1 -1
  2. package/dist/{Chart-D3fn0ghg.mjs → Chart-BKjKglnR.mjs} +760 -760
  3. package/dist/{CreateGlobalFilter-8t6GSGyT.mjs → CreateGlobalFilter-COJr9pxx.mjs} +195 -195
  4. package/dist/{CreateMetricV2-BJoSn42i.mjs → CreateMetricV2-CfcDgw3E.mjs} +146 -146
  5. package/dist/{DraggableItem-CzPHM5Ek.mjs → DraggableItem-B8IW0_no.mjs} +139 -139
  6. package/dist/{HorizontalStackTable-DNBbrIFn.mjs → HorizontalStackTable-BgTor_KQ.mjs} +48 -48
  7. package/dist/{ManageMetricsV2-1fBC-FFm.mjs → ManageMetricsV2-DM8gofxF.mjs} +3 -3
  8. package/dist/{MetricCardV2-D7p6yAv5.mjs → MetricCardV2-Ff__3yWl.mjs} +146 -146
  9. package/dist/{NoDataFound-1gLzunO6.mjs → NoDataFound-Ifpvns9-.mjs} +1 -1
  10. package/dist/{NoDataState-rNtw1p0V.mjs → NoDataState-DPVhHP6M.mjs} +2 -2
  11. package/dist/{Panel-DQXH8IBE.mjs → Panel-BUwtA4r-.mjs} +1 -1
  12. package/dist/{PivotTableV2-DfzyY9RC.mjs → PivotTableV2-DQU2H33d.mjs} +2 -2
  13. package/dist/{PivotTableV3-B97O3ZLD.mjs → PivotTableV3-BLp5-cQr.mjs} +4 -4
  14. package/dist/{Portal-DE_CdG2S.mjs → Portal-BP2ivXF8.mjs} +2480 -2388
  15. package/dist/{RadioButton-BOkJ0ZLZ.mjs → RadioButton-oGBMxhHq.mjs} +2 -2
  16. package/dist/{ScheduleEmail-BpdnxS9q.mjs → ScheduleEmail-CiO6PMLd.mjs} +517 -517
  17. package/dist/{SearchMetricData-sBWIMhvT.mjs → SearchMetricData-C4stwNY9.mjs} +1272 -1272
  18. package/dist/{SortPanel-CNjSmhPX.mjs → SortPanel-Cy82r5dX.mjs} +1332 -1332
  19. package/dist/{Table-ODMPh1l7.mjs → Table-Cg4EZCAG.mjs} +296 -296
  20. package/dist/{TagInputField-DYDsUtvi.mjs → TagInputField-DuY_whs7.mjs} +9 -9
  21. package/dist/{TextAreaField-D4VprIA4.mjs → TextAreaField-D5O-kEVL.mjs} +297 -297
  22. package/dist/{TimeSeriesSettings-BTj3ofRS.mjs → TimeSeriesSettings-TXu0_07R.mjs} +11 -11
  23. package/dist/{arrayToCsvString-D9T6ms_d.mjs → arrayToCsvString-Bj2E5XgM.mjs} +1 -1
  24. package/dist/{cardActions-BLBLsjcd.mjs → cardActions-BPRHHm2G.mjs} +21 -7
  25. package/dist/{cardQueryError-tZcXyRqS.mjs → cardQueryError-DFKFCfFx.mjs} +1274 -1274
  26. package/dist/{charts-CY0Vq7Bn.mjs → charts-C2loGjFP.mjs} +3 -3
  27. package/dist/{chevron-down-mMC3ps2h.mjs → chevron-down-BWD1dxqC.mjs} +6 -6
  28. package/dist/{conditionalFormatting-LaI9Vca7.mjs → conditionalFormatting-Ca-leGbK.mjs} +1 -1
  29. package/dist/{contrast-Clo5ZlPI.mjs → contrast-EppiiunY.mjs} +117 -112
  30. package/dist/{createGlobalFilter.module-CWkuVq9m.mjs → createGlobalFilter.module-B3yI7_04.mjs} +1 -1
  31. package/dist/data.cjs +1 -1
  32. package/dist/data.mjs +1 -1
  33. package/dist/{echarts-mz_HZpET.mjs → echarts-CsSfDZ5q.mjs} +2 -2
  34. package/dist/{metric.mutation-B8OUNYhj.mjs → metric.mutation-hYspHj1p.mjs} +1 -1
  35. package/dist/{option-ywDB8mz_.mjs → option-B1zeYJnm.mjs} +1 -1
  36. package/dist/{permissions-Rp1874rG.mjs → permissions-Bc9NDT2w.mjs} +359 -359
  37. package/dist/{pluginV3Request-CK6p_HfU.mjs → pluginV3Request-DFy6TETh.mjs} +1 -1
  38. package/dist/{renderer-DEc5om01.mjs → renderer-Bk8GbA94.mjs} +2 -2
  39. package/dist/{theme-CU-AvQm_.mjs → theme-BA-MvZE0.mjs} +1 -1
  40. package/dist/{timeseries-BBiiZaG9.mjs → timeseries-kGhqoQ6V.mjs} +1948 -1942
  41. package/dist/{toTasteAppearance-BnmM-nar.mjs → toTasteAppearance-CGUd4zvZ.mjs} +1 -1
  42. package/dist/{useGuesTokenUsageLog-CTqOyx82.mjs → useGuesTokenUsageLog-CVeQacbL.mjs} +1 -1
  43. package/dist/{usePublishArchivedMetrics-BsHt2ki1.mjs → usePublishArchivedMetrics-BGEBFLub.mjs} +2 -2
  44. package/dist/{useQuery-B_9KK0aG.mjs → useQuery-CNVFkkjT.mjs} +1 -1
  45. package/dist/webcomponents.es.js +3942 -3939
  46. package/dist/webcomponents.umd.js +184 -184
  47. package/package.json +2 -2
@@ -2,11 +2,11 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { a as e, i as t, o as n, r, t as i } from "./rolldown-runtime-C1JUX4Ur.mjs";
5
- import { $i as a, Aa as o, Cn as s, Ha as c, Ii as l, L as u, Or as d, Ur as f, Wt as p, Ya as m, _n as h, a as g, ai as _, cr as v, ga as y, ii as b, l as x, m as S, mr as ee, pr as C, u as w, wn as T, xi as te } from "./Portal-DE_CdG2S.mjs";
6
- import { i as E, n as D, r as ne, t as re } from "./toTasteAppearance-BnmM-nar.mjs";
7
- import { $ as ie, A as O, G as ae, J as k, O as A, Q as j, S as M, X as N, Y as oe, Z as se } from "./option-ywDB8mz_.mjs";
8
- import { a as ce, i as le, n as ue, o as de, r as fe } from "./chevron-down-mMC3ps2h.mjs";
9
- import { g as pe, m as me, p as he, r as ge, t as _e, y as ve } from "./timeseries-BBiiZaG9.mjs";
5
+ import { Cn as a, L as o, Li as s, Si as c, Ua as l, Wr as u, Wt as d, Xa as f, _a as p, _n as m, a as h, ai as g, ea as _, hr as v, ja as y, kr as b, l as x, lr as S, m as ee, mr as C, oi as w, u as T, wn as te } from "./Portal-BP2ivXF8.mjs";
6
+ import { i as E, n as D, r as ne, t as re } from "./toTasteAppearance-CGUd4zvZ.mjs";
7
+ import { $ as ie, A as O, G as ae, J as k, O as A, Q as j, S as M, X as N, Y as oe, Z as se } from "./option-B1zeYJnm.mjs";
8
+ import { a as ce, i as le, n as ue, o as de, r as fe } from "./chevron-down-BWD1dxqC.mjs";
9
+ import { g as pe, m as me, p as he, r as ge, t as _e, y as ve } from "./timeseries-kGhqoQ6V.mjs";
10
10
  import { n as ye } from "./text-CtrvkDIo.mjs";
11
11
  import { $ as P, $r as be, Ar as xe, C as Se, Cs as Ce, D as we, Do as Te, Dr as Ee, E as De, Ec as F, Er as I, Fc as Oe, Fs as ke, Ft as Ae, Gt as je, Hi as Me, Ii as Ne, Ka as Pe, Kr as L, L as Fe, Ln as Ie, M as Le, Nc as Re, O as ze, Oo as Be, Or as Ve, Pi as He, Qa as Ue, Qr as We, Rc as Ge, S as Ke, So as qe, T as R, Tc as Je, Vc as Ye, Vr as Xe, Wa as Ze, Wc as Qe, Xa as $e, Xc as et, Xn as tt, Xr as nt, Ya as rt, Yr as z, Za as it, Zr as at, _ as ot, _r as st, a as ct, ai as lt, b as ut, bc as dt, bo as ft, br as pt, c as mt, d as ht, dc as gt, dr as _t, ei as vt, el as yt, eo as bt, er as xt, et as St, f as Ct, fc as wt, fi as Tt, fr as Et, g as Dt, gc as Ot, go as kt, h as At, hc as jt, ho as Mt, i as Nt, ii as Pt, it as Ft, jr as It, kc as Lt, l as Rt, lc as zt, m as Bt, mo as Vt, n as Ht, ni as Ut, no as Wt, nt as Gt, o as Kt, oi as qt, p as Jt, po as Yt, qn as Xt, qr as Zt, r as Qt, ri as $t, ro as en, rs as tn, s as nn, t as rn, ti as an, tl as on, u as sn, ur as cn, v as ln, vc as un, vn as dn, vo as fn, vr as pn, w as mn, wc as hn, wo as gn, x as _n, xc as vn, xo as yn, xr as bn, y as xn, yo as Sn, zc as Cn, zi as wn } from "./echarts-CrmHGsP0.mjs";
12
12
  import { t as Tn } from "./SeriesData-Bv5A1N4c.mjs";
@@ -18,55 +18,55 @@ import { n as Nn, t as Pn } from "./Axis-9fJG6_xT.mjs";
18
18
  import { n as Fn } from "./axisNiceTicks-CggqNl9O.mjs";
19
19
  import { t as In } from "./extension-CLVYoN7B.mjs";
20
20
  import { c as Ln } from "./install-C_kPiY2Z.mjs";
21
- import { n as Rn } from "./cardActions-BLBLsjcd.mjs";
22
- import { t as B } from "./NoDataFound-1gLzunO6.mjs";
23
- import { n as zn, t as Bn } from "./Accordion-BdGcYoH_.mjs";
24
- import { n as Vn, t as Hn } from "./esm-B2ERA78g.mjs";
25
- import { a as Un, i as Wn, n as Gn, o as Kn, r as qn, t as Jn } from "./dist-DHNl58qD.mjs";
26
- import { t as Yn } from "./conditionalFormatting-LaI9Vca7.mjs";
27
- import { t as Xn } from "./Loader-CHJMbWv0.mjs";
21
+ import { n as Rn, r as zn } from "./cardActions-BPRHHm2G.mjs";
22
+ import { t as B } from "./NoDataFound-Ifpvns9-.mjs";
23
+ import { n as Bn, t as Vn } from "./Accordion-DtzU-kv3.mjs";
24
+ import { n as Hn, t as Un } from "./esm-B2ERA78g.mjs";
25
+ import { a as Wn, i as Gn, n as Kn, o as qn, r as Jn, t as Yn } from "./dist-DHNl58qD.mjs";
26
+ import { t as Xn } from "./conditionalFormatting-Ca-leGbK.mjs";
27
+ import { t as Zn } from "./Loader-CHJMbWv0.mjs";
28
28
  import { t as V } from "./list.module-DmT9azvq.mjs";
29
- import { n as Zn, o as Qn } from "./canvasTeardown-CyI2ZHcq.mjs";
30
- import { a as $n, i as er } from "./tslib.es6-D6qdqxsl.mjs";
29
+ import { n as Qn, o as $n } from "./canvasTeardown-CyI2ZHcq.mjs";
30
+ import { a as er, i as tr } from "./tslib.es6-D6qdqxsl.mjs";
31
31
  import * as H from "react";
32
- import tr, { createElement as nr, forwardRef as rr, lazy as ir, useCallback as ar, useEffect as U, useLayoutEffect as or, useMemo as W, useRef as G, useState as K, useSyncExternalStore as sr } from "react";
33
- import { Fragment as cr, jsx as q, jsxs as J } from "react/jsx-runtime";
32
+ import nr, { createElement as rr, forwardRef as ir, lazy as ar, useCallback as or, useEffect as U, useLayoutEffect as sr, useMemo as W, useRef as G, useState as K, useSyncExternalStore as cr } from "react";
33
+ import { Fragment as lr, jsx as q, jsxs as J } from "react/jsx-runtime";
34
34
  //#region ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/helper.js
35
- var lr = /* @__PURE__ */ r({
35
+ var ur = /* @__PURE__ */ r({
36
36
  createDimensions: () => En,
37
- createList: () => ur,
38
- createScale: () => fr,
37
+ createList: () => dr,
38
+ createScale: () => pr,
39
39
  createSymbol: () => Fe,
40
- createTextStyle: () => mr,
41
- dataStack: () => dr,
40
+ createTextStyle: () => hr,
41
+ dataStack: () => fr,
42
42
  enableHoverEmphasis: () => Tt,
43
43
  getECData: () => He,
44
44
  getLayoutRect: () => je,
45
- mixinAxisModelCommonMethods: () => pr
45
+ mixinAxisModelCommonMethods: () => mr
46
46
  });
47
- function ur(e) {
47
+ function dr(e) {
48
48
  return Dn(null, e);
49
49
  }
50
- var dr = {
50
+ var fr = {
51
51
  isDimensionStacked: kn,
52
52
  enableDataStack: An,
53
53
  getStackedDimension: On
54
54
  };
55
- function fr(e, t) {
55
+ function pr(e, t) {
56
56
  var n = t;
57
57
  t instanceof tt || (n = new tt(t));
58
58
  var r = jn(n), i = Mn(n, r, !1);
59
59
  return e[1] < e[0] && (e = e.slice().reverse()), Fn(i, n, null, null, e), i;
60
60
  }
61
- function pr(e) {
61
+ function mr(e) {
62
62
  Ye(e, Nn);
63
63
  }
64
- function mr(e, t) {
64
+ function hr(e, t) {
65
65
  return t ||= {}, xt(e, null, null, t.state !== "normal");
66
66
  }
67
67
  //#endregion
68
68
  //#region ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/number.js
69
- var hr = /* @__PURE__ */ r({
69
+ var gr = /* @__PURE__ */ r({
70
70
  MAX_SAFE_INTEGER: () => Ze,
71
71
  asc: () => Pe,
72
72
  getPercentWithPrecision: () => rt,
@@ -86,11 +86,11 @@ var hr = /* @__PURE__ */ r({
86
86
  reformIntervals: () => yn,
87
87
  remRadian: () => qe,
88
88
  round: () => gn
89
- }), gr = /* @__PURE__ */ r({
89
+ }), _r = /* @__PURE__ */ r({
90
90
  format: () => dn,
91
91
  parse: () => Mt,
92
92
  roundTime: () => Ie
93
- }), _r = /* @__PURE__ */ r({
93
+ }), vr = /* @__PURE__ */ r({
94
94
  Arc: () => We,
95
95
  BezierCurve: () => be,
96
96
  BoundingRect: () => Ce,
@@ -123,7 +123,7 @@ var hr = /* @__PURE__ */ r({
123
123
  registerShape: () => xe,
124
124
  resizePath: () => It,
125
125
  updateProps: () => L
126
- }), vr = /* @__PURE__ */ r({
126
+ }), yr = /* @__PURE__ */ r({
127
127
  bind: () => gt,
128
128
  clone: () => wt,
129
129
  curry: () => jt,
@@ -143,25 +143,25 @@ var hr = /* @__PURE__ */ r({
143
143
  });
144
144
  //#endregion
145
145
  //#region ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api.js
146
- function yr(e) {
146
+ function br(e) {
147
147
  var t = Ae.extend(e);
148
148
  return Ae.registerClass(t), t;
149
149
  }
150
- function br(e) {
150
+ function xr(e) {
151
151
  var t = Gt.extend(e);
152
152
  return Gt.registerClass(t), t;
153
153
  }
154
- function xr(e) {
154
+ function Sr(e) {
155
155
  var t = Ft.extend(e);
156
156
  return Ft.registerClass(t), t;
157
157
  }
158
- function Sr(e) {
158
+ function Cr(e) {
159
159
  var t = St.extend(e);
160
160
  return St.registerClass(t), t;
161
161
  }
162
162
  //#endregion
163
163
  //#region ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/core.js
164
- var Cr = /* @__PURE__ */ r({
164
+ var wr = /* @__PURE__ */ r({
165
165
  Axis: () => Pn,
166
166
  ChartView: () => St,
167
167
  ComponentModel: () => Ae,
@@ -178,21 +178,21 @@ var Cr = /* @__PURE__ */ r({
178
178
  disconnect: () => Kt,
179
179
  dispose: () => nn,
180
180
  env: () => on,
181
- extendChartView: () => Sr,
182
- extendComponentModel: () => yr,
183
- extendComponentView: () => br,
184
- extendSeriesModel: () => xr,
181
+ extendChartView: () => Cr,
182
+ extendComponentModel: () => br,
183
+ extendComponentView: () => xr,
184
+ extendSeriesModel: () => Sr,
185
185
  format: () => me,
186
186
  getCoordinateSystemDimensions: () => mt,
187
187
  getInstanceByDom: () => Rt,
188
188
  getInstanceById: () => sn,
189
189
  getMap: () => ht,
190
- graphic: () => _r,
191
- helper: () => lr,
190
+ graphic: () => vr,
191
+ helper: () => ur,
192
192
  init: () => Ct,
193
193
  innerDrawElementOnCanvas: () => Le,
194
194
  matrix: () => ke,
195
- number: () => hr,
195
+ number: () => gr,
196
196
  parseGeoJSON: () => Ln,
197
197
  parseGeoJson: () => Ln,
198
198
  registerAction: () => Jt,
@@ -213,9 +213,9 @@ var Cr = /* @__PURE__ */ r({
213
213
  setCanvasCreator: () => we,
214
214
  setPlatformAPI: () => yt,
215
215
  throttle: () => P,
216
- time: () => gr,
216
+ time: () => _r,
217
217
  use: () => In,
218
- util: () => vr,
218
+ util: () => yr,
219
219
  vector: () => zt,
220
220
  version: () => ze,
221
221
  zrUtil: () => et,
@@ -223,17 +223,17 @@ var Cr = /* @__PURE__ */ r({
223
223
  });
224
224
  //#endregion
225
225
  //#region src/charts/chartMinHeight.ts
226
- function wr(e) {
226
+ function Tr(e) {
227
227
  let t = e ? ce[e] : void 0;
228
228
  return t ? N(t) : 200;
229
229
  }
230
230
  //#endregion
231
231
  //#region src/charts/echarts6Compatibility.ts
232
- var Tr = /* @__PURE__ */ new WeakMap(), Er = (e) => typeof e == "object" && !!e && !Array.isArray(e), Dr = (e, t) => Array.isArray(e) ? e.map((e) => Er(e) ? t(e) : e) : Er(e) ? t(e) : e, Or = (e) => ({
232
+ var Er = /* @__PURE__ */ new WeakMap(), Dr = (e) => typeof e == "object" && !!e && !Array.isArray(e), Or = (e, t) => Array.isArray(e) ? e.map((e) => Dr(e) ? t(e) : e) : Dr(e) ? t(e) : e, kr = (e) => ({
233
233
  ...e,
234
234
  outerBoundsMode: e.outerBoundsMode === void 0 ? "none" : e.outerBoundsMode
235
- }), kr = (e) => {
236
- let t = Er(e.axisLabel) ? e.axisLabel : {};
235
+ }), Ar = (e) => {
236
+ let t = Dr(e.axisLabel) ? e.axisLabel : {};
237
237
  return {
238
238
  ...e,
239
239
  containShape: e.containShape !== void 0 && e.containShape,
@@ -242,21 +242,21 @@ var Tr = /* @__PURE__ */ new WeakMap(), Er = (e) => typeof e == "object" && !!e
242
242
  nameMoveOverlap: t.nameMoveOverlap !== void 0 && t.nameMoveOverlap
243
243
  }
244
244
  };
245
- }, Ar = (e) => {
246
- if (!Er(e)) return e;
247
- let t = Tr.get(e);
245
+ }, jr = (e) => {
246
+ if (!Dr(e)) return e;
247
+ let t = Er.get(e);
248
248
  if (t !== void 0) return t;
249
249
  let n = {
250
250
  ...e,
251
251
  legacyViewCoordSysCenterBase: e.legacyViewCoordSysCenterBase === void 0 || e.legacyViewCoordSysCenterBase,
252
252
  richInheritPlainLabel: e.richInheritPlainLabel !== void 0 && e.richInheritPlainLabel
253
253
  };
254
- return e.grid !== void 0 && (n.grid = Dr(e.grid, Or)), e.xAxis !== void 0 && (n.xAxis = Dr(e.xAxis, kr)), e.yAxis !== void 0 && (n.yAxis = Dr(e.yAxis, kr)), Tr.set(e, n), n;
255
- }, jr = [
256
- o.pie,
257
- o.doughnut,
258
- o.rose
259
- ], Mr = [
254
+ return e.grid !== void 0 && (n.grid = Or(e.grid, kr)), e.xAxis !== void 0 && (n.xAxis = Or(e.xAxis, Ar)), e.yAxis !== void 0 && (n.yAxis = Or(e.yAxis, Ar)), Er.set(e, n), n;
255
+ }, Mr = [
256
+ y.pie,
257
+ y.doughnut,
258
+ y.rose
259
+ ], Nr = [
260
260
  "top-left",
261
261
  "top-center",
262
262
  "top-right",
@@ -265,27 +265,27 @@ var Tr = /* @__PURE__ */ new WeakMap(), Er = (e) => typeof e == "object" && !!e
265
265
  "bottom-right",
266
266
  "left",
267
267
  "right"
268
- ], Nr = (e) => e && Mr.includes(e) ? e : void 0, Pr = (e) => e === "horizontal" || e === "vertical" ? e : void 0, Fr = (e) => {
268
+ ], Pr = (e) => e && Nr.includes(e) ? e : void 0, Fr = (e) => e === "horizontal" || e === "vertical" ? e : void 0, Ir = (e) => {
269
269
  if (typeof e == "number" && Number.isFinite(e)) return e;
270
270
  if (typeof e == "string" && e.trim() !== "") {
271
271
  let t = Number(e);
272
272
  return Number.isFinite(t) ? t : void 0;
273
273
  }
274
- }, Ir = (e) => {
274
+ }, Lr = (e) => {
275
275
  let t = e.legendAppearance, n = e.legendSettings;
276
276
  return {
277
277
  show: t?.show ?? n?.show,
278
- fixedPosition: Nr(t?.fixedPosition ?? n?.fixedPosition),
279
- legendAppearance: Pr(t?.legendAppearance ?? n?.position),
278
+ fixedPosition: Pr(t?.fixedPosition ?? n?.fixedPosition),
279
+ legendAppearance: Fr(t?.legendAppearance ?? n?.position),
280
280
  disableLegendScrolling: t?.disableLegendScrolling ?? n?.disableScroll,
281
281
  truncateLegend: t?.truncateLegend ?? n?.truncateLegendValue,
282
- fontSize: Fr(t?.fontSize) ?? Fr(n?.fontSize)
282
+ fontSize: Ir(t?.fontSize) ?? Ir(n?.fontSize)
283
283
  };
284
284
  };
285
- function Lr(e) {
285
+ function Rr(e) {
286
286
  let { chartType: t, canvas: n, legendLabels: r } = e;
287
- if (!t || !jr.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
288
- let i = Ir(e);
287
+ if (!t || !Mr.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
288
+ let i = Lr(e);
289
289
  if (i.show === !1) return null;
290
290
  let a = ae({
291
291
  labels: r,
@@ -312,14 +312,14 @@ function Lr(e) {
312
312
  insetRightPx: a.reserveRightPx
313
313
  };
314
314
  }
315
- var Rr = /* @__PURE__ */ new Set([
315
+ var zr = /* @__PURE__ */ new Set([
316
316
  void 0,
317
317
  "outside",
318
318
  "outer"
319
- ]), zr = (e) => {
319
+ ]), Br = (e) => {
320
320
  let t = Array.isArray(e) ? e[e.length - 1] : e, n = /^(\d+(?:\.\d+)?)%$/.exec(String(t ?? "").trim());
321
321
  return n ? Number(n[1]) / 100 : 0;
322
- }, Br = (e) => !!e?.label?.show && Rr.has(e.label.position), Vr = (e) => {
322
+ }, Vr = (e) => !!e?.label?.show && zr.has(e.label.position), Hr = (e) => {
323
323
  let t = Array.isArray(e.data) ? e.data : [], n = e.label?.formatter;
324
324
  return t.flatMap((e) => {
325
325
  let t = e && typeof e == "object" ? e : {}, r = String(t.name ?? "");
@@ -333,20 +333,20 @@ var Rr = /* @__PURE__ */ new Set([
333
333
  return r.split("\n");
334
334
  });
335
335
  };
336
- function Hr(e, t, n) {
336
+ function Ur(e, t, n) {
337
337
  let { chartType: r, canvas: i } = t;
338
- if (!r || !jr.includes(r) || !i || !(i.width > 0) || !(i.height > 0)) return null;
339
- let a = e.filter(Br);
338
+ if (!r || !Mr.includes(r) || !i || !(i.width > 0) || !(i.height > 0)) return null;
339
+ let a = e.filter(Vr);
340
340
  if (a.length === 0 || n.centerX !== void 0 && !/%$/.test(n.centerX)) return null;
341
- let o = Math.max(...e.map((e) => zr(e?.radius))), s = a[0], c = M({
341
+ let o = Math.max(...e.map((e) => Br(e?.radius))), s = a[0], c = M({
342
342
  layout: i,
343
343
  outerRadius: o * n.scale,
344
344
  centerX: n.centerX,
345
345
  insetLeftPx: n.insetLeftPx,
346
346
  insetRightPx: n.insetRightPx,
347
- labelLines: a.flatMap(Vr),
348
- fontSizePx: Fr(s.label?.fontSize),
349
- leaderPx: (Fr(s.labelLine?.length) ?? 10) + (Fr(s.labelLine?.length2) ?? 20)
347
+ labelLines: a.flatMap(Hr),
348
+ fontSizePx: Ir(s.label?.fontSize),
349
+ leaderPx: (Ir(s.labelLine?.length) ?? 10) + (Ir(s.labelLine?.length2) ?? 20)
350
350
  });
351
351
  return c.mode === "hidden" ? {
352
352
  hide: !0,
@@ -356,21 +356,21 @@ function Hr(e, t, n) {
356
356
  radiusScale: c.radiusScale
357
357
  };
358
358
  }
359
- function Ur(e, t) {
359
+ function Wr(e, t) {
360
360
  if (!e) return e;
361
361
  let n = e.series;
362
362
  if (!Array.isArray(n) || n.length === 0) return e;
363
- let r = e.legend?.data, i = Array.isArray(r) ? r.flat(2).filter((e) => e != null).map(String) : [], a = i.length > 0 ? Lr({
363
+ let r = e.legend?.data, i = Array.isArray(r) ? r.flat(2).filter((e) => e != null).map(String) : [], a = i.length > 0 ? Rr({
364
364
  ...t,
365
365
  legendLabels: i
366
- }) : null, o = a && !(a.center[0] === "50%" && a.center[1] === "50%" && a.radiusScale >= 1 && (e.legend?.type ?? "scroll") === a.legendType) ? a : null, s = n[0]?.center, c = Hr(n, t, {
366
+ }) : null, o = a && !(a.center[0] === "50%" && a.center[1] === "50%" && a.radiusScale >= 1 && (e.legend?.type ?? "scroll") === a.legendType) ? a : null, s = n[0]?.center, c = Ur(n, t, {
367
367
  centerX: o ? o.center[0] : Array.isArray(s) ? String(s[0]) : void 0,
368
368
  scale: o ? o.radiusScale : 1,
369
369
  insetLeftPx: o?.insetLeftPx ?? 0,
370
370
  insetRightPx: o?.insetRightPx ?? 0
371
371
  });
372
372
  if (!o && !c) return e;
373
- let l = (o?.radiusScale ?? 1) * (c?.radiusScale ?? 1), u = !!c?.hide && e.legend?.show === !1 && n.some((e) => e && Br(e)), d = u ? l * .82 : l;
373
+ let l = (o?.radiusScale ?? 1) * (c?.radiusScale ?? 1), u = !!c?.hide && e.legend?.show === !1 && n.some((e) => e && Vr(e)), d = u ? l * .82 : l;
374
374
  return {
375
375
  ...e,
376
376
  ...o ? { legend: {
@@ -391,7 +391,7 @@ function Ur(e, t) {
391
391
  ...o ? { center: o.center } : {},
392
392
  ...u ? { center: [(o?.center ?? e.center ?? ["50%", "50%"])[0], "44%"] } : {},
393
393
  ...e.radius !== void 0 && d < 1 ? { radius: O(e.radius, d) } : {},
394
- ...c?.hide && Br(e) ? {
394
+ ...c?.hide && Vr(e) ? {
395
395
  label: {
396
396
  ...e.label,
397
397
  show: !1
@@ -406,13 +406,13 @@ function Ur(e, t) {
406
406
  }
407
407
  //#endregion
408
408
  //#region src/charts/withMetricChartAppearance.ts
409
- var Wr = [
409
+ var Gr = [
410
410
  "top",
411
411
  "left",
412
412
  "right",
413
413
  "bottom",
414
414
  "inside"
415
- ], Gr = [
415
+ ], Kr = [
416
416
  "top-left",
417
417
  "top-center",
418
418
  "top-right",
@@ -421,7 +421,7 @@ var Wr = [
421
421
  "bottom-left",
422
422
  "bottom-center",
423
423
  "bottom-right"
424
- ], Kr = [
424
+ ], qr = [
425
425
  "circle",
426
426
  "rect",
427
427
  "roundRect",
@@ -429,34 +429,34 @@ var Wr = [
429
429
  "diamond",
430
430
  "arrow",
431
431
  "none"
432
- ], qr = (e) => e != null, Jr = (e) => {
432
+ ], Jr = (e) => e != null, Yr = (e) => {
433
433
  let t = e?.position;
434
- if (t && t !== "hidden" && Wr.includes(t)) return { position: t };
435
- }, Yr = (e) => {
434
+ if (t && t !== "hidden" && Gr.includes(t)) return { position: t };
435
+ }, Xr = (e) => {
436
436
  if (!e) return;
437
- let t = f.legendSettings ?? {}, n = {};
438
- return e.show === !1 && (n.show = !1), e.fixedPosition && e.fixedPosition !== t.fixedPosition && Gr.includes(e.fixedPosition) && (n.fixedPosition = e.fixedPosition), e.position === "vertical" && (n.legendAppearance = "vertical"), e.legendShape && e.legendShape !== t.legendShape && Kr.includes(e.legendShape) && (n.legendShape = e.legendShape), qr(e.truncateLegendValue) && e.truncateLegendValue !== t.truncateLegendValue && (n.truncateLegend = e.truncateLegendValue), e.disableScroll === !0 && (n.disableLegendScrolling = !0), e.customise === !0 && (n.enableVariablePosition = !0, n.top = e.top, n.left = e.left), Object.keys(n).length ? n : void 0;
439
- }, Xr = (e, t) => {
437
+ let t = u.legendSettings ?? {}, n = {};
438
+ return e.show === !1 && (n.show = !1), e.fixedPosition && e.fixedPosition !== t.fixedPosition && Kr.includes(e.fixedPosition) && (n.fixedPosition = e.fixedPosition), e.position === "vertical" && (n.legendAppearance = "vertical"), e.legendShape && e.legendShape !== t.legendShape && qr.includes(e.legendShape) && (n.legendShape = e.legendShape), Jr(e.truncateLegendValue) && e.truncateLegendValue !== t.truncateLegendValue && (n.truncateLegend = e.truncateLegendValue), e.disableScroll === !0 && (n.disableLegendScrolling = !0), e.customise === !0 && (n.enableVariablePosition = !0, n.top = e.top, n.left = e.left), Object.keys(n).length ? n : void 0;
439
+ }, Zr = (e, t) => {
440
440
  if (!t) return e;
441
441
  if (!e) return t;
442
442
  let n = { ...t };
443
- for (let [t, r] of Object.entries(e)) qr(r) && (n[t] = r);
443
+ for (let [t, r] of Object.entries(e)) Jr(r) && (n[t] = r);
444
444
  return n;
445
- }, Zr = (e, t) => {
446
- let n = Xr(e?.chartLabel, Jr(t?.labelSettings)), r = Xr(e?.chartLegend, Yr(t?.legendSettings));
445
+ }, Qr = (e, t) => {
446
+ let n = Zr(e?.chartLabel, Yr(t?.labelSettings)), r = Zr(e?.chartLegend, Xr(t?.legendSettings));
447
447
  return n === e?.chartLabel && r === e?.chartLegend ? e : {
448
448
  ...e,
449
449
  ...n ? { chartLabel: n } : {},
450
450
  ...r ? { chartLegend: r } : {}
451
451
  };
452
- }, Qr = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, $r = /^[\\/]{2}/;
453
- function ei(e, t) {
452
+ }, $r = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, ei = /^[\\/]{2}/;
453
+ function ti(e, t) {
454
454
  return t + e.replace(/\\/g, "/");
455
455
  }
456
456
  function Y(e, t) {
457
457
  if (e === !1 || e == null) throw Error(t);
458
458
  }
459
- function ti(e, t) {
459
+ function ni(e, t) {
460
460
  if (!e) {
461
461
  typeof console < "u" && console.warn(t);
462
462
  try {
@@ -464,10 +464,10 @@ function ti(e, t) {
464
464
  } catch {}
465
465
  }
466
466
  }
467
- function ni({ pathname: e = "/", search: t = "", hash: n = "" }) {
467
+ function ri({ pathname: e = "/", search: t = "", hash: n = "" }) {
468
468
  return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
469
469
  }
470
- function ri(e) {
470
+ function ii(e) {
471
471
  let t = {};
472
472
  if (e) {
473
473
  let n = e.indexOf("#");
@@ -477,21 +477,21 @@ function ri(e) {
477
477
  }
478
478
  return t;
479
479
  }
480
- function ii(e, t, n = "/") {
481
- return ai(e, t, n, !1);
480
+ function ai(e, t, n = "/") {
481
+ return oi(e, t, n, !1);
482
482
  }
483
- function ai(e, t, n, r, i) {
484
- let a = wi((typeof t == "string" ? ri(t) : t).pathname || "/", n);
483
+ function oi(e, t, n, r, i) {
484
+ let a = Ti((typeof t == "string" ? ii(t) : t).pathname || "/", n);
485
485
  if (a == null) return null;
486
- let o = i ?? oi(e), s = null, c = Ci(a);
487
- for (let e = 0; s == null && e < o.length; ++e) s = yi(o[e], c, r);
486
+ let o = i ?? si(e), s = null, c = wi(a);
487
+ for (let e = 0; s == null && e < o.length; ++e) s = bi(o[e], c, r);
488
488
  return s;
489
489
  }
490
- function oi(e) {
491
- let t = si(e);
492
- return li(t), t;
490
+ function si(e) {
491
+ let t = ci(e);
492
+ return ui(t), t;
493
493
  }
494
- function si(e, t = [], n = [], r = "", i = !1) {
494
+ function ci(e, t = [], n = [], r = "", i = !1) {
495
495
  let a = (e, a, o = i, s) => {
496
496
  let c = {
497
497
  relativePath: s === void 0 ? e.path || "" : s,
@@ -504,11 +504,11 @@ function si(e, t = [], n = [], r = "", i = !1) {
504
504
  Y(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
505
505
  }
506
506
  let l = X([r, c.relativePath]), u = n.concat(c);
507
- e.children && e.children.length > 0 && (Y(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), si(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
507
+ e.children && e.children.length > 0 && (Y(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), ci(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
508
508
  path: l,
509
- score: _i(l, e.index),
509
+ score: vi(l, e.index),
510
510
  routesMeta: u.map((e, t) => {
511
- let [n, r] = Si(e.relativePath, e.caseSensitive, t === u.length - 1);
511
+ let [n, r] = Ci(e.relativePath, e.caseSensitive, t === u.length - 1);
512
512
  return {
513
513
  ...e,
514
514
  matcher: n,
@@ -519,37 +519,37 @@ function si(e, t = [], n = [], r = "", i = !1) {
519
519
  };
520
520
  return e.forEach((e, t) => {
521
521
  if (e.path === "" || !e.path?.includes("?")) a(e, t);
522
- else for (let n of ci(e.path)) a(e, t, !0, n);
522
+ else for (let n of li(e.path)) a(e, t, !0, n);
523
523
  }), t;
524
524
  }
525
- function ci(e) {
525
+ function li(e) {
526
526
  let t = e.split("/");
527
527
  if (t.length === 0) return [];
528
528
  let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
529
529
  if (r.length === 0) return i ? [a, ""] : [a];
530
- let o = ci(r.join("/")), s = [];
530
+ let o = li(r.join("/")), s = [];
531
531
  return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
532
532
  }
533
- function li(e) {
534
- e.sort((e, t) => e.score === t.score ? vi(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
533
+ function ui(e) {
534
+ e.sort((e, t) => e.score === t.score ? yi(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
535
535
  }
536
- var ui = /^:[\w-]+$/, di = 3, fi = 2, pi = 1, mi = 10, hi = -2, gi = (e) => e === "*";
537
- function _i(e, t) {
536
+ var di = /^:[\w-]+$/, fi = 3, pi = 2, mi = 1, hi = 10, gi = -2, _i = (e) => e === "*";
537
+ function vi(e, t) {
538
538
  let n = e.split("/"), r = n.length;
539
- return n.some(gi) && (r += hi), t && (r += fi), n.filter((e) => !gi(e)).reduce((e, t) => e + (ui.test(t) ? di : t === "" ? pi : mi), r);
539
+ return n.some(_i) && (r += gi), t && (r += pi), n.filter((e) => !_i(e)).reduce((e, t) => e + (di.test(t) ? fi : t === "" ? mi : hi), r);
540
540
  }
541
- function vi(e, t) {
541
+ function yi(e, t) {
542
542
  return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
543
543
  }
544
- function yi(e, t, n = !1) {
544
+ function bi(e, t, n = !1) {
545
545
  let { routesMeta: r } = e, i = {}, a = "/", o = [];
546
546
  for (let e = 0; e < r.length; ++e) {
547
547
  let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
548
548
  path: s.relativePath,
549
549
  caseSensitive: s.caseSensitive,
550
550
  end: c
551
- }, d = s.matcher && s.compiledParams ? xi(u, l, s.matcher, s.compiledParams) : bi(u, l), f = s.route;
552
- if (!d && c && n && !r[r.length - 1].route.index && (d = bi({
551
+ }, d = s.matcher && s.compiledParams ? Si(u, l, s.matcher, s.compiledParams) : xi(u, l), f = s.route;
552
+ if (!d && c && n && !r[r.length - 1].route.index && (d = xi({
553
553
  path: s.relativePath,
554
554
  caseSensitive: s.caseSensitive,
555
555
  end: !1
@@ -557,30 +557,30 @@ function yi(e, t, n = !1) {
557
557
  Object.assign(i, d.params), o.push({
558
558
  params: i,
559
559
  pathname: X([a, d.pathname]),
560
- pathnameBase: Ni(X([a, d.pathnameBase])),
560
+ pathnameBase: Pi(X([a, d.pathnameBase])),
561
561
  route: f
562
562
  }), d.pathnameBase !== "/" && (a = X([a, d.pathnameBase]));
563
563
  }
564
564
  return o;
565
565
  }
566
- function bi(e, t) {
566
+ function xi(e, t) {
567
567
  typeof e == "string" && (e = {
568
568
  path: e,
569
569
  caseSensitive: !1,
570
570
  end: !0
571
571
  });
572
- let [n, r] = Si(e.path, e.caseSensitive, e.end);
573
- return xi(e, t, n, r);
572
+ let [n, r] = Ci(e.path, e.caseSensitive, e.end);
573
+ return Si(e, t, n, r);
574
574
  }
575
- function xi(e, t, n, r) {
575
+ function Si(e, t, n, r) {
576
576
  let i = t.match(n);
577
577
  if (!i) return null;
578
- let a = i[0], o = Mi(a, 1), s = i.slice(1);
578
+ let a = i[0], o = Ni(a, 1), s = i.slice(1);
579
579
  return {
580
580
  params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
581
581
  if (t === "*") {
582
582
  let e = s[r] || "";
583
- o = Mi(a.slice(0, a.length - e.length), 1);
583
+ o = Ni(a.slice(0, a.length - e.length), 1);
584
584
  }
585
585
  let i = s[r];
586
586
  return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -590,8 +590,8 @@ function xi(e, t, n, r) {
590
590
  pattern: e
591
591
  };
592
592
  }
593
- function Si(e, t = !1, n = !0) {
594
- ti(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
593
+ function Ci(e, t = !1, n = !0) {
594
+ ni(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
595
595
  let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
596
596
  if (r.push({
597
597
  paramName: t,
@@ -604,46 +604,46 @@ function Si(e, t = !1, n = !0) {
604
604
  }).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
605
605
  return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
606
606
  }
607
- function Ci(e) {
607
+ function wi(e) {
608
608
  try {
609
609
  return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
610
610
  } catch (t) {
611
- return ti(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
611
+ return ni(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
612
612
  }
613
613
  }
614
- function wi(e, t) {
614
+ function Ti(e, t) {
615
615
  if (t === "/") return e;
616
616
  if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
617
617
  let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
618
618
  return r && r !== "/" ? null : e.slice(n) || "/";
619
619
  }
620
- function Ti(e, t = "/") {
621
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? ri(e) : e, a;
622
- return n ? (n = ji(n), a = n.startsWith("/") || n.startsWith("\\") ? Ei(n.substring(1), "/") : Ei(n, t)) : a = t, {
620
+ function Ei(e, t = "/") {
621
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? ii(e) : e, a;
622
+ return n ? (n = Mi(n), a = n.startsWith("/") || n.startsWith("\\") ? Di(n.substring(1), "/") : Di(n, t)) : a = t, {
623
623
  pathname: a,
624
- search: Pi(r),
625
- hash: Fi(i)
624
+ search: Fi(r),
625
+ hash: Ii(i)
626
626
  };
627
627
  }
628
- function Ei(e, t) {
629
- let n = Mi(t).split("/");
628
+ function Di(e, t) {
629
+ let n = Ni(t).split("/");
630
630
  return e.split("/").forEach((e) => {
631
631
  e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
632
632
  }), n.length > 1 ? n.join("/") : "/";
633
633
  }
634
- function Di(e, t, n, r) {
634
+ function Oi(e, t, n, r) {
635
635
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
636
636
  }
637
- function Oi(e) {
637
+ function ki(e) {
638
638
  return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
639
639
  }
640
- function ki(e) {
641
- let t = Oi(e);
640
+ function Ai(e) {
641
+ let t = ki(e);
642
642
  return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
643
643
  }
644
- function Ai(e, t, n, r = !1) {
644
+ function ji(e, t, n, r = !1) {
645
645
  let i;
646
- typeof e == "string" ? i = ri(e) : (i = { ...e }, Y(!i.pathname || !i.pathname.includes("?"), Di("?", "pathname", "search", i)), Y(!i.pathname || !i.pathname.includes("#"), Di("#", "pathname", "hash", i)), Y(!i.search || !i.search.includes("#"), Di("#", "search", "hash", i)));
646
+ typeof e == "string" ? i = ii(e) : (i = { ...e }, Y(!i.pathname || !i.pathname.includes("?"), Oi("?", "pathname", "search", i)), Y(!i.pathname || !i.pathname.includes("#"), Oi("#", "pathname", "hash", i)), Y(!i.search || !i.search.includes("#"), Oi("#", "search", "hash", i)));
647
647
  let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
648
648
  if (o == null) s = n;
649
649
  else {
@@ -655,40 +655,40 @@ function Ai(e, t, n, r = !1) {
655
655
  }
656
656
  s = e >= 0 ? t[e] : "/";
657
657
  }
658
- let c = Ti(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
658
+ let c = Ei(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
659
659
  return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
660
660
  }
661
- var ji = (e) => e.replace(/[\\/]{2,}/g, "/"), X = (e) => ji(e.join("/"));
662
- function Mi(e, t = 0) {
661
+ var Mi = (e) => e.replace(/[\\/]{2,}/g, "/"), X = (e) => Mi(e.join("/"));
662
+ function Ni(e, t = 0) {
663
663
  let n = e.length;
664
664
  for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
665
665
  return n === e.length ? e : e.slice(0, n);
666
666
  }
667
- var Ni = (e) => Mi(e).replace(/^\/*/, "/"), Pi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Fi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ii = class {
667
+ var Pi = (e) => Ni(e).replace(/^\/*/, "/"), Fi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ii = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Li = class {
668
668
  constructor(e, t, n, r = !1) {
669
669
  this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
670
670
  }
671
671
  };
672
- function Li(e) {
672
+ function Ri(e) {
673
673
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
674
674
  }
675
- function Ri(e) {
675
+ function zi(e) {
676
676
  return X(e.map((e) => e.route.path).filter(Boolean)) || "/";
677
677
  }
678
- var zi = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
679
- function Bi(e, t) {
678
+ var Bi = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
679
+ function Vi(e, t) {
680
680
  let n = e;
681
- if (typeof n != "string" || !Qr.test(n)) return {
681
+ if (typeof n != "string" || !$r.test(n)) return {
682
682
  absoluteURL: void 0,
683
683
  isExternal: !1,
684
684
  to: n
685
685
  };
686
686
  let r = n, i = !1;
687
- if (zi) try {
688
- let e = new URL(window.location.href), r = $r.test(n) ? new URL(ei(n, e.protocol)) : new URL(n), a = wi(r.pathname, t);
687
+ if (Bi) try {
688
+ let e = new URL(window.location.href), r = ei.test(n) ? new URL(ti(n, e.protocol)) : new URL(n), a = Ti(r.pathname, t);
689
689
  r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
690
690
  } catch {
691
- ti(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
691
+ ni(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
692
692
  }
693
693
  return {
694
694
  absoluteURL: r,
@@ -697,43 +697,43 @@ function Bi(e, t) {
697
697
  };
698
698
  }
699
699
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
700
- var Vi = new URL("http://localhost");
701
- function Hi(e) {
700
+ var Hi = new URL("http://localhost");
701
+ function Ui(e) {
702
702
  if (e.createURL) return e.createURL("/");
703
703
  try {
704
- return new URL(e.createHref("/"), Vi);
704
+ return new URL(e.createHref("/"), Hi);
705
705
  } catch {
706
- return Vi;
706
+ return Hi;
707
707
  }
708
708
  }
709
- function Ui(e, t) {
709
+ function Wi(e, t) {
710
710
  return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
711
711
  }
712
- function Wi(e, t) {
712
+ function Gi(e, t) {
713
713
  if (e.startsWith("//")) return !0;
714
714
  let n = t.protocol.toLowerCase();
715
715
  return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
716
716
  }
717
- function Gi(e, t, n, r) {
717
+ function Ki(e, t, n, r) {
718
718
  let i = null;
719
719
  try {
720
720
  i = e == null ? null : new URL(e, n);
721
721
  } catch {}
722
- let a = new URL(t, n), o = i != null && !Ui(i, n), s = !Ui(a, n);
722
+ let a = new URL(t, n), o = i != null && !Wi(i, n), s = !Wi(a, n);
723
723
  if (r === "reject") {
724
724
  if (o || s) throw Error("External navigation is not allowed");
725
- } else if (s && (i == null || !Wi(e, i) || !Ui(i, a))) throw Error("External navigation is not allowed");
725
+ } else if (s && (i == null || !Gi(e, i) || !Wi(i, a))) throw Error("External navigation is not allowed");
726
726
  }
727
- var Ki = [
727
+ var qi = [
728
728
  "POST",
729
729
  "PUT",
730
730
  "PATCH",
731
731
  "DELETE"
732
732
  ];
733
- new Set(Ki);
734
- var qi = ["GET", ...Ki];
735
733
  new Set(qi);
736
- var Ji = [
734
+ var Ji = ["GET", ...qi];
735
+ new Set(Ji);
736
+ var Yi = [
737
737
  "about:",
738
738
  "blob:",
739
739
  "chrome:",
@@ -745,88 +745,88 @@ var Ji = [
745
745
  "filesystem:",
746
746
  "javascript:"
747
747
  ];
748
- function Yi(e) {
748
+ function Xi(e) {
749
749
  try {
750
- return Ji.includes(new URL(e).protocol);
750
+ return Yi.includes(new URL(e).protocol);
751
751
  } catch {
752
752
  return !1;
753
753
  }
754
754
  }
755
- var Xi = H.createContext(null);
756
- Xi.displayName = "DataRouter";
757
755
  var Zi = H.createContext(null);
758
- Zi.displayName = "DataRouterState";
759
- var Qi = H.createContext(!1);
760
- function $i() {
761
- return H.useContext(Qi);
756
+ Zi.displayName = "DataRouter";
757
+ var Qi = H.createContext(null);
758
+ Qi.displayName = "DataRouterState";
759
+ var $i = H.createContext(!1);
760
+ function ea() {
761
+ return H.useContext($i);
762
762
  }
763
- var ea = H.createContext({ isTransitioning: !1 });
764
- ea.displayName = "ViewTransition";
765
- var ta = H.createContext(/* @__PURE__ */ new Map());
766
- ta.displayName = "Fetchers";
767
- var na = H.createContext(null);
768
- na.displayName = "Await";
763
+ var ta = H.createContext({ isTransitioning: !1 });
764
+ ta.displayName = "ViewTransition";
765
+ var na = H.createContext(/* @__PURE__ */ new Map());
766
+ na.displayName = "Fetchers";
767
+ var ra = H.createContext(null);
768
+ ra.displayName = "Await";
769
769
  var Z = H.createContext(null);
770
770
  Z.displayName = "Navigation";
771
- var ra = H.createContext(null);
772
- ra.displayName = "Location";
773
- var ia = H.createContext({
771
+ var ia = H.createContext(null);
772
+ ia.displayName = "Location";
773
+ var aa = H.createContext({
774
774
  outlet: null,
775
775
  matches: [],
776
776
  isDataRoute: !1
777
777
  });
778
- ia.displayName = "Route";
779
- var aa = H.createContext(null);
780
- aa.displayName = "RouteError";
781
- var oa = "REACT_ROUTER_ERROR", sa = "REDIRECT", ca = "ROUTE_ERROR_RESPONSE";
782
- function la(e) {
783
- if (e.startsWith(`${oa}:${sa}:{`)) try {
778
+ aa.displayName = "Route";
779
+ var oa = H.createContext(null);
780
+ oa.displayName = "RouteError";
781
+ var sa = "REACT_ROUTER_ERROR", ca = "REDIRECT", la = "ROUTE_ERROR_RESPONSE";
782
+ function ua(e) {
783
+ if (e.startsWith(`${sa}:${ca}:{`)) try {
784
784
  let t = JSON.parse(e.slice(28));
785
785
  if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
786
786
  } catch {}
787
787
  }
788
- function ua(e) {
789
- if (e.startsWith(`${oa}:${ca}:{`)) try {
788
+ function da(e) {
789
+ if (e.startsWith(`${sa}:${la}:{`)) try {
790
790
  let t = JSON.parse(e.slice(40));
791
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Ii(t.status, t.statusText, t.data);
791
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Li(t.status, t.statusText, t.data);
792
792
  } catch {}
793
793
  }
794
- function da(e, { relative: t } = {}) {
795
- Y(fa(), "useHref() may be used only in the context of a <Router> component.");
796
- let { basename: n, navigator: r } = H.useContext(Z), { hash: i, pathname: a, search: o } = va(e, { relative: t }), s = a;
794
+ function fa(e, { relative: t } = {}) {
795
+ Y(pa(), "useHref() may be used only in the context of a <Router> component.");
796
+ let { basename: n, navigator: r } = H.useContext(Z), { hash: i, pathname: a, search: o } = ya(e, { relative: t }), s = a;
797
797
  return n !== "/" && (s = a === "/" ? n : X([n, a])), r.createHref({
798
798
  pathname: s,
799
799
  search: o,
800
800
  hash: i
801
801
  });
802
802
  }
803
- function fa() {
804
- return H.useContext(ra) != null;
805
- }
806
803
  function pa() {
807
- return Y(fa(), "useLocation() may be used only in the context of a <Router> component."), H.useContext(ra).location;
804
+ return H.useContext(ia) != null;
808
805
  }
809
- var ma = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
810
- function ha(e) {
811
- H.useContext(Z).static || H.useLayoutEffect(e);
806
+ function ma() {
807
+ return Y(pa(), "useLocation() may be used only in the context of a <Router> component."), H.useContext(ia).location;
812
808
  }
813
- function ga() {
814
- let { isDataRoute: e } = H.useContext(ia);
815
- return e ? Pa() : _a();
809
+ var ha = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
810
+ function ga(e) {
811
+ H.useContext(Z).static || H.useLayoutEffect(e);
816
812
  }
817
813
  function _a() {
818
- Y(fa(), "useNavigate() may be used only in the context of a <Router> component.");
819
- let e = H.useContext(Xi), { basename: t, navigator: n } = H.useContext(Z), { matches: r } = H.useContext(ia), { pathname: i } = pa(), a = JSON.stringify(ki(r)), o = H.useRef(!1);
820
- return ha(() => {
814
+ let { isDataRoute: e } = H.useContext(aa);
815
+ return e ? Fa() : va();
816
+ }
817
+ function va() {
818
+ Y(pa(), "useNavigate() may be used only in the context of a <Router> component.");
819
+ let e = H.useContext(Zi), { basename: t, navigator: n } = H.useContext(Z), { matches: r } = H.useContext(aa), { pathname: i } = ma(), a = JSON.stringify(Ai(r)), o = H.useRef(!1);
820
+ return ga(() => {
821
821
  o.current = !0;
822
822
  }), H.useCallback((r, s = {}) => {
823
- if (ti(o.current, ma), !o.current) return;
823
+ if (ni(o.current, ha), !o.current) return;
824
824
  if (typeof r == "number") {
825
825
  n.go(r);
826
826
  return;
827
827
  }
828
- let c = Ai(r, JSON.parse(a), i, s.relative === "path");
829
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : X([t, c.pathname])), Gi(typeof r == "string" ? r : ni(r), n.createHref(c), Hi(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
828
+ let c = ji(r, JSON.parse(a), i, s.relative === "path");
829
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : X([t, c.pathname])), Ki(typeof r == "string" ? r : ri(r), n.createHref(c), Ui(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
830
830
  }, [
831
831
  t,
832
832
  n,
@@ -836,27 +836,27 @@ function _a() {
836
836
  ]);
837
837
  }
838
838
  H.createContext(null);
839
- function va(e, { relative: t } = {}) {
840
- let { matches: n } = H.useContext(ia), { pathname: r } = pa(), i = JSON.stringify(ki(n));
841
- return H.useMemo(() => Ai(e, JSON.parse(i), r, t === "path"), [
839
+ function ya(e, { relative: t } = {}) {
840
+ let { matches: n } = H.useContext(aa), { pathname: r } = ma(), i = JSON.stringify(Ai(n));
841
+ return H.useMemo(() => ji(e, JSON.parse(i), r, t === "path"), [
842
842
  e,
843
843
  i,
844
844
  r,
845
845
  t
846
846
  ]);
847
847
  }
848
- function ya(e, t, n) {
849
- Y(fa(), "useRoutes() may be used only in the context of a <Router> component.");
850
- let { navigator: r } = H.useContext(Z), { matches: i } = H.useContext(ia), a = i[i.length - 1], o = a ? a.params : {}, s = a ? a.pathname : "/", c = a ? a.pathnameBase : "/", l = a && a.route;
848
+ function ba(e, t, n) {
849
+ Y(pa(), "useRoutes() may be used only in the context of a <Router> component.");
850
+ let { navigator: r } = H.useContext(Z), { matches: i } = H.useContext(aa), a = i[i.length - 1], o = a ? a.params : {}, s = a ? a.pathname : "/", c = a ? a.pathnameBase : "/", l = a && a.route;
851
851
  {
852
852
  let e = l && l.path || "";
853
- Ia(s, !l || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
853
+ La(s, !l || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
854
854
 
855
855
  Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
856
856
  }
857
- let u = pa(), d;
857
+ let u = ma(), d;
858
858
  if (t) {
859
- let e = typeof t == "string" ? ri(t) : t;
859
+ let e = typeof t == "string" ? ii(t) : t;
860
860
  Y(c === "/" || e.pathname?.startsWith(c), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`), d = e;
861
861
  } else d = u;
862
862
  let f = d.pathname || "/", p = f;
@@ -864,14 +864,14 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
864
864
  let e = c.replace(/^\//, "").split("/");
865
865
  p = "/" + f.replace(/^\//, "").split("/").slice(e.length).join("/");
866
866
  }
867
- let m = n && n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : ii(e, { pathname: p });
868
- ti(l || m != null, `No routes matched location "${d.pathname}${d.search}${d.hash}" `), ti(m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0, `Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
869
- let h = Ea(m && m.map((e) => Object.assign({}, e, {
867
+ let m = n && n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : ai(e, { pathname: p });
868
+ ni(l || m != null, `No routes matched location "${d.pathname}${d.search}${d.hash}" `), ni(m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0, `Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
869
+ let h = Da(m && m.map((e) => Object.assign({}, e, {
870
870
  params: Object.assign({}, o, e.params),
871
871
  pathname: X([c, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
872
872
  pathnameBase: e.pathnameBase === "/" ? c : X([c, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
873
873
  })), i, n);
874
- return t && h ? /* @__PURE__ */ H.createElement(ra.Provider, { value: {
874
+ return t && h ? /* @__PURE__ */ H.createElement(ia.Provider, { value: {
875
875
  location: {
876
876
  pathname: "/",
877
877
  search: "",
@@ -884,8 +884,8 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
884
884
  navigationType: "POP"
885
885
  } }, h) : h;
886
886
  }
887
- function ba() {
888
- let e = Na(), t = Li(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", i = {
887
+ function xa() {
888
+ let e = Pa(), t = Ri(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", i = {
889
889
  padding: "0.5rem",
890
890
  backgroundColor: r
891
891
  }, a = {
@@ -894,7 +894,7 @@ function ba() {
894
894
  }, o = null;
895
895
  return console.error("Error handled by React Router default ErrorBoundary:", e), o = /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ H.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ H.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ H.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ H.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ H.createElement("pre", { style: i }, n) : null, o);
896
896
  }
897
- var xa = /* @__PURE__ */ H.createElement(ba, null), Sa = class extends H.Component {
897
+ var Sa = /* @__PURE__ */ H.createElement(xa, null), Ca = class extends H.Component {
898
898
  constructor(e) {
899
899
  super(e), this.state = {
900
900
  location: e.location,
@@ -922,32 +922,32 @@ var xa = /* @__PURE__ */ H.createElement(ba, null), Sa = class extends H.Compone
922
922
  render() {
923
923
  let e = this.state.error;
924
924
  if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
925
- let t = ua(e.digest);
925
+ let t = da(e.digest);
926
926
  t && (e = t);
927
927
  }
928
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ H.createElement(ia.Provider, { value: this.props.routeContext }, /* @__PURE__ */ H.createElement(aa.Provider, {
928
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ H.createElement(aa.Provider, { value: this.props.routeContext }, /* @__PURE__ */ H.createElement(oa.Provider, {
929
929
  value: e,
930
930
  children: this.props.component
931
931
  }));
932
- return this.context ? /* @__PURE__ */ H.createElement(wa, { error: e }, t) : t;
932
+ return this.context ? /* @__PURE__ */ H.createElement(Ta, { error: e }, t) : t;
933
933
  }
934
934
  };
935
- Sa.contextType = Qi;
936
- var Ca = /* @__PURE__ */ new WeakMap();
937
- function wa({ children: e, error: t }) {
935
+ Ca.contextType = $i;
936
+ var wa = /* @__PURE__ */ new WeakMap();
937
+ function Ta({ children: e, error: t }) {
938
938
  let { basename: n, navigator: r } = H.useContext(Z);
939
939
  if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
940
- let e = la(t.digest);
940
+ let e = ua(t.digest);
941
941
  if (e) {
942
- let i = Ca.get(t);
942
+ let i = wa.get(t);
943
943
  if (i) throw i;
944
- let a = Bi(e.location, n), o = a.absoluteURL || a.to;
945
- if (Gi(e.location, o, Hi(r), "allow-explicit"), Yi(o)) throw Error("Invalid redirect location");
946
- if (zi && !Ca.get(t)) {
944
+ let a = Vi(e.location, n), o = a.absoluteURL || a.to;
945
+ if (Ki(e.location, o, Ui(r), "allow-explicit"), Xi(o)) throw Error("Invalid redirect location");
946
+ if (Bi && !wa.get(t)) {
947
947
  if (a.isExternal || e.reloadDocument) window.location.href = o;
948
948
  else {
949
949
  let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
950
- throw Ca.set(t, n), n;
950
+ throw wa.set(t, n), n;
951
951
  }
952
952
  }
953
953
  return /* @__PURE__ */ H.createElement("meta", {
@@ -958,11 +958,11 @@ function wa({ children: e, error: t }) {
958
958
  }
959
959
  return e;
960
960
  }
961
- function Ta({ routeContext: e, match: t, children: n }) {
962
- let r = H.useContext(Xi);
963
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ H.createElement(ia.Provider, { value: e }, n);
961
+ function Ea({ routeContext: e, match: t, children: n }) {
962
+ let r = H.useContext(Zi);
963
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ H.createElement(aa.Provider, { value: e }, n);
964
964
  }
965
- function Ea(e, t = [], n) {
965
+ function Da(e, t = [], n) {
966
966
  let r = n?.state;
967
967
  if (e == null) {
968
968
  if (!r) return null;
@@ -993,16 +993,16 @@ function Ea(e, t = [], n) {
993
993
  c(e, {
994
994
  location: r.location,
995
995
  params: r.matches?.[0]?.params ?? {},
996
- pattern: Ri(r.matches),
996
+ pattern: zi(r.matches),
997
997
  errorInfo: t
998
998
  });
999
999
  } : void 0;
1000
1000
  return i.reduceRight((e, n, c) => {
1001
1001
  let u, d = !1, f = null, p = null;
1002
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || xa, o && (s < 0 && c === 0 ? (Ia("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
1002
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || Sa, o && (s < 0 && c === 0 ? (La("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
1003
1003
  let m = t.concat(i.slice(0, c + 1)), h = () => {
1004
1004
  let t;
1005
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ H.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ H.createElement(Ta, {
1005
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ H.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ H.createElement(Ea, {
1006
1006
  match: n,
1007
1007
  routeContext: {
1008
1008
  outlet: e,
@@ -1012,7 +1012,7 @@ function Ea(e, t = [], n) {
1012
1012
  children: t
1013
1013
  });
1014
1014
  };
1015
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ H.createElement(Sa, {
1015
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ H.createElement(Ca, {
1016
1016
  location: r.location,
1017
1017
  revalidation: r.revalidation,
1018
1018
  component: f,
@@ -1027,50 +1027,50 @@ function Ea(e, t = [], n) {
1027
1027
  }) : h();
1028
1028
  }, null);
1029
1029
  }
1030
- function Da(e) {
1031
- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1032
- }
1033
1030
  function Oa(e) {
1034
- let t = H.useContext(Xi);
1035
- return Y(t, Da(e)), t;
1031
+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1036
1032
  }
1037
1033
  function ka(e) {
1038
1034
  let t = H.useContext(Zi);
1039
- return Y(t, Da(e)), t;
1035
+ return Y(t, Oa(e)), t;
1040
1036
  }
1041
1037
  function Aa(e) {
1042
- let t = H.useContext(ia);
1043
- return Y(t, Da(e)), t;
1038
+ let t = H.useContext(Qi);
1039
+ return Y(t, Oa(e)), t;
1044
1040
  }
1045
1041
  function ja(e) {
1046
- let t = Aa(e), n = t.matches[t.matches.length - 1];
1047
- return Y(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
1042
+ let t = H.useContext(aa);
1043
+ return Y(t, Oa(e)), t;
1048
1044
  }
1049
- function Ma() {
1050
- return ja("useRouteId");
1045
+ function Ma(e) {
1046
+ let t = ja(e), n = t.matches[t.matches.length - 1];
1047
+ return Y(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
1051
1048
  }
1052
1049
  function Na() {
1053
- let e = H.useContext(aa), t = ka("useRouteError"), n = ja("useRouteError");
1054
- return e === void 0 ? t.errors?.[n] : e;
1050
+ return Ma("useRouteId");
1055
1051
  }
1056
1052
  function Pa() {
1057
- let { router: e } = Oa("useNavigate"), t = ja("useNavigate"), n = H.useRef(!1);
1058
- return ha(() => {
1053
+ let e = H.useContext(oa), t = Aa("useRouteError"), n = Ma("useRouteError");
1054
+ return e === void 0 ? t.errors?.[n] : e;
1055
+ }
1056
+ function Fa() {
1057
+ let { router: e } = ka("useNavigate"), t = Ma("useNavigate"), n = H.useRef(!1);
1058
+ return ga(() => {
1059
1059
  n.current = !0;
1060
1060
  }), H.useCallback(async (r, i = {}) => {
1061
- ti(n.current, ma), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
1061
+ ni(n.current, ha), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
1062
1062
  fromRouteId: t,
1063
1063
  ...i
1064
1064
  }));
1065
1065
  }, [e, t]);
1066
1066
  }
1067
- var Fa = {};
1068
- function Ia(e, t, n) {
1069
- !t && !Fa[e] && (Fa[e] = !0, ti(!1, n));
1067
+ var Ia = {};
1068
+ function La(e, t, n) {
1069
+ !t && !Ia[e] && (Ia[e] = !0, ni(!1, n));
1070
1070
  }
1071
- H.memo(La);
1072
- function La({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
1073
- return ya(e, void 0, {
1071
+ H.memo(Ra);
1072
+ function Ra({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
1073
+ return ba(e, void 0, {
1074
1074
  manifest: t,
1075
1075
  state: r,
1076
1076
  isStatic: i,
@@ -1079,60 +1079,60 @@ function La({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError:
1079
1079
  });
1080
1080
  }
1081
1081
  H.Component;
1082
- var Ra = "get", za = "application/x-www-form-urlencoded";
1083
- function Ba(e) {
1084
- return typeof HTMLElement < "u" && e instanceof HTMLElement;
1085
- }
1082
+ var za = "get", Ba = "application/x-www-form-urlencoded";
1086
1083
  function Va(e) {
1087
- return Ba(e) && e.tagName.toLowerCase() === "button";
1084
+ return typeof HTMLElement < "u" && e instanceof HTMLElement;
1088
1085
  }
1089
1086
  function Ha(e) {
1090
- return Ba(e) && e.tagName.toLowerCase() === "form";
1087
+ return Va(e) && e.tagName.toLowerCase() === "button";
1091
1088
  }
1092
1089
  function Ua(e) {
1093
- return Ba(e) && e.tagName.toLowerCase() === "input";
1090
+ return Va(e) && e.tagName.toLowerCase() === "form";
1094
1091
  }
1095
1092
  function Wa(e) {
1093
+ return Va(e) && e.tagName.toLowerCase() === "input";
1094
+ }
1095
+ function Ga(e) {
1096
1096
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1097
1097
  }
1098
- function Ga(e, t) {
1099
- return e.button === 0 && (!t || t === "_self") && !Wa(e);
1098
+ function Ka(e, t) {
1099
+ return e.button === 0 && (!t || t === "_self") && !Ga(e);
1100
1100
  }
1101
- var Ka = null;
1102
- function qa() {
1103
- if (Ka === null) try {
1104
- new FormData(document.createElement("form"), 0), Ka = !1;
1101
+ var qa = null;
1102
+ function Ja() {
1103
+ if (qa === null) try {
1104
+ new FormData(document.createElement("form"), 0), qa = !1;
1105
1105
  } catch {
1106
- Ka = !0;
1106
+ qa = !0;
1107
1107
  }
1108
- return Ka;
1108
+ return qa;
1109
1109
  }
1110
- var Ja = /* @__PURE__ */ new Set([
1110
+ var Ya = /* @__PURE__ */ new Set([
1111
1111
  "application/x-www-form-urlencoded",
1112
1112
  "multipart/form-data",
1113
1113
  "text/plain"
1114
1114
  ]);
1115
- function Ya(e) {
1116
- return e != null && !Ja.has(e) ? (ti(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${za}"`), null) : e;
1115
+ function Xa(e) {
1116
+ return e != null && !Ya.has(e) ? (ni(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ba}"`), null) : e;
1117
1117
  }
1118
- function Xa(e, t) {
1118
+ function Za(e, t) {
1119
1119
  let n, r, i, a, o;
1120
- if (Ha(e)) {
1120
+ if (Ua(e)) {
1121
1121
  let o = e.getAttribute("action");
1122
- r = o ? wi(o, t) : null, n = e.getAttribute("method") || Ra, i = Ya(e.getAttribute("enctype")) || za, a = new FormData(e);
1123
- } else if (Va(e) || Ua(e) && (e.type === "submit" || e.type === "image")) {
1122
+ r = o ? Ti(o, t) : null, n = e.getAttribute("method") || za, i = Xa(e.getAttribute("enctype")) || Ba, a = new FormData(e);
1123
+ } else if (Ha(e) || Wa(e) && (e.type === "submit" || e.type === "image")) {
1124
1124
  let o = e.form;
1125
1125
  if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
1126
1126
  let s = e.getAttribute("formaction") || o.getAttribute("action");
1127
- if (r = s ? wi(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Ra, i = Ya(e.getAttribute("formenctype")) || Ya(o.getAttribute("enctype")) || za, a = new FormData(o, e), !qa()) {
1127
+ if (r = s ? Ti(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || za, i = Xa(e.getAttribute("formenctype")) || Xa(o.getAttribute("enctype")) || Ba, a = new FormData(o, e), !Ja()) {
1128
1128
  let { name: t, type: n, value: r } = e;
1129
1129
  if (n === "image") {
1130
1130
  let e = t ? `${t}.` : "";
1131
1131
  a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
1132
1132
  } else t && a.append(t, r);
1133
1133
  }
1134
- } else if (Ba(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
1135
- else n = Ra, r = null, i = za, o = e;
1134
+ } else if (Va(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
1135
+ else n = za, r = null, i = Ba, o = e;
1136
1136
  return a && i === "text/plain" && (o = a, a = void 0), {
1137
1137
  action: r,
1138
1138
  method: n.toLowerCase(),
@@ -1142,14 +1142,14 @@ function Xa(e, t) {
1142
1142
  };
1143
1143
  }
1144
1144
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
1145
- function Za(e, t) {
1145
+ function Qa(e, t) {
1146
1146
  if (e === !1 || e == null) throw Error(t);
1147
1147
  }
1148
- function Qa(e, t, n, r) {
1148
+ function $a(e, t, n, r) {
1149
1149
  let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
1150
- return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && wi(i.pathname, t) === "/" ? `${Mi(t)}/_root.${r}` : `${Mi(i.pathname)}.${r}`, i;
1150
+ return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && Ti(i.pathname, t) === "/" ? `${Ni(t)}/_root.${r}` : `${Ni(i.pathname)}.${r}`, i;
1151
1151
  }
1152
- async function $a(e, t) {
1152
+ async function eo(e, t) {
1153
1153
  if (e.id in t) return t[e.id];
1154
1154
  try {
1155
1155
  let n = await import(
@@ -1162,21 +1162,21 @@ async function $a(e, t) {
1162
1162
  return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
1163
1163
  }
1164
1164
  }
1165
- function eo(e) {
1165
+ function to(e) {
1166
1166
  return e != null && typeof e.page == "string";
1167
1167
  }
1168
- function to(e) {
1168
+ function no(e) {
1169
1169
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
1170
1170
  }
1171
- async function no(e, t, n) {
1172
- return so((await Promise.all(e.map(async (e) => {
1171
+ async function ro(e, t, n) {
1172
+ return co((await Promise.all(e.map(async (e) => {
1173
1173
  let r = t.routes[e.route.id];
1174
1174
  if (r) {
1175
- let e = await $a(r, n);
1175
+ let e = await eo(r, n);
1176
1176
  return e.links ? e.links() : [];
1177
1177
  }
1178
1178
  return [];
1179
- }))).flat(1).filter(to).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
1179
+ }))).flat(1).filter(no).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
1180
1180
  ...e,
1181
1181
  rel: "prefetch",
1182
1182
  as: "style"
@@ -1185,7 +1185,7 @@ async function no(e, t, n) {
1185
1185
  rel: "prefetch"
1186
1186
  }));
1187
1187
  }
1188
- function ro(e, t, n, r, i, a) {
1188
+ function io(e, t, n, r, i, a) {
1189
1189
  let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
1190
1190
  return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
1191
1191
  let c = r.routes[t.route.id];
@@ -1204,49 +1204,49 @@ function ro(e, t, n, r, i, a) {
1204
1204
  return !0;
1205
1205
  }) : [];
1206
1206
  }
1207
- function io(e, t, { includeHydrateFallback: n } = {}) {
1208
- return ao(e.map((e) => {
1207
+ function ao(e, t, { includeHydrateFallback: n } = {}) {
1208
+ return oo(e.map((e) => {
1209
1209
  let r = t.routes[e.route.id];
1210
1210
  if (!r) return [];
1211
1211
  let i = [r.module];
1212
1212
  return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
1213
1213
  }).flat(1));
1214
1214
  }
1215
- function ao(e) {
1215
+ function oo(e) {
1216
1216
  return [...new Set(e)];
1217
1217
  }
1218
- function oo(e) {
1218
+ function so(e) {
1219
1219
  let t = {}, n = Object.keys(e).sort();
1220
1220
  for (let r of n) t[r] = e[r];
1221
1221
  return t;
1222
1222
  }
1223
- function so(e, t) {
1223
+ function co(e, t) {
1224
1224
  let n = /* @__PURE__ */ new Set(), r = new Set(t);
1225
1225
  return e.reduce((e, i) => {
1226
- if (t && !eo(i) && i.as === "script" && i.href && r.has(i.href)) return e;
1227
- let a = JSON.stringify(oo(i));
1226
+ if (t && !to(i) && i.as === "script" && i.href && r.has(i.href)) return e;
1227
+ let a = JSON.stringify(so(i));
1228
1228
  return n.has(a) || (n.add(a), e.push({
1229
1229
  key: a,
1230
1230
  link: i
1231
1231
  })), e;
1232
1232
  }, []);
1233
1233
  }
1234
- function co() {
1235
- let e = H.useContext(Xi);
1236
- return Za(e, "You must render this element inside a <DataRouterContext.Provider> element"), e;
1237
- }
1238
1234
  function lo() {
1239
1235
  let e = H.useContext(Zi);
1240
- return Za(e, "You must render this element inside a <DataRouterStateContext.Provider> element"), e;
1236
+ return Qa(e, "You must render this element inside a <DataRouterContext.Provider> element"), e;
1237
+ }
1238
+ function uo() {
1239
+ let e = H.useContext(Qi);
1240
+ return Qa(e, "You must render this element inside a <DataRouterStateContext.Provider> element"), e;
1241
1241
  }
1242
- var uo = H.createContext(void 0);
1243
- uo.displayName = "FrameworkContext";
1244
- function fo() {
1245
- let e = H.useContext(uo);
1246
- return Za(e, "You must render this element inside a <HydratedRouter> element"), e;
1242
+ var fo = H.createContext(void 0);
1243
+ fo.displayName = "FrameworkContext";
1244
+ function po() {
1245
+ let e = H.useContext(fo);
1246
+ return Qa(e, "You must render this element inside a <HydratedRouter> element"), e;
1247
1247
  }
1248
- function po(e, t) {
1249
- let n = H.useContext(uo), [r, i] = H.useState(!1), [a, o] = H.useState(!1), { onFocus: s, onBlur: c, onMouseEnter: l, onMouseLeave: u, onTouchStart: d } = t, f = H.useRef(null);
1248
+ function mo(e, t) {
1249
+ let n = H.useContext(fo), [r, i] = H.useState(!1), [a, o] = H.useState(!1), { onFocus: s, onBlur: c, onMouseEnter: l, onMouseLeave: u, onTouchStart: d } = t, f = H.useRef(null);
1250
1250
  H.useEffect(() => {
1251
1251
  if (e === "render" && o(!0), e === "viewport") {
1252
1252
  let e = new IntersectionObserver((e) => {
@@ -1277,11 +1277,11 @@ function po(e, t) {
1277
1277
  a,
1278
1278
  f,
1279
1279
  {
1280
- onFocus: mo(s, p),
1281
- onBlur: mo(c, m),
1282
- onMouseEnter: mo(l, p),
1283
- onMouseLeave: mo(u, m),
1284
- onTouchStart: mo(d, p)
1280
+ onFocus: ho(s, p),
1281
+ onBlur: ho(c, m),
1282
+ onMouseEnter: ho(l, p),
1283
+ onMouseLeave: ho(u, m),
1284
+ onTouchStart: ho(d, p)
1285
1285
  }
1286
1286
  ] : [
1287
1287
  a,
@@ -1293,13 +1293,13 @@ function po(e, t) {
1293
1293
  {}
1294
1294
  ];
1295
1295
  }
1296
- function mo(e, t) {
1296
+ function ho(e, t) {
1297
1297
  return (n) => {
1298
1298
  e && e(n), n.defaultPrevented || t(n);
1299
1299
  };
1300
1300
  }
1301
- function ho({ page: e, ...t }) {
1302
- let n = $i(), { nonce: r } = fo(), { router: i } = co(), a = H.useMemo(() => ii(i.routes, e, i.basename), [
1301
+ function go({ page: e, ...t }) {
1302
+ let n = ea(), { nonce: r } = po(), { router: i } = lo(), a = H.useMemo(() => ai(i.routes, e, i.basename), [
1303
1303
  i.routes,
1304
1304
  e,
1305
1305
  i.basename
@@ -1307,21 +1307,21 @@ function ho({ page: e, ...t }) {
1307
1307
  return a ? (t.nonce == null && r && (t = {
1308
1308
  ...t,
1309
1309
  nonce: r
1310
- }), n ? /* @__PURE__ */ H.createElement(_o, {
1310
+ }), n ? /* @__PURE__ */ H.createElement(vo, {
1311
1311
  page: e,
1312
1312
  matches: a,
1313
1313
  ...t
1314
- }) : /* @__PURE__ */ H.createElement(vo, {
1314
+ }) : /* @__PURE__ */ H.createElement(yo, {
1315
1315
  page: e,
1316
1316
  matches: a,
1317
1317
  ...t
1318
1318
  })) : null;
1319
1319
  }
1320
- function go(e) {
1321
- let { manifest: t, routeModules: n } = fo(), [r, i] = H.useState([]);
1320
+ function _o(e) {
1321
+ let { manifest: t, routeModules: n } = po(), [r, i] = H.useState([]);
1322
1322
  return H.useEffect(() => {
1323
1323
  let r = !1;
1324
- return no(e, t, n).then((e) => {
1324
+ return ro(e, t, n).then((e) => {
1325
1325
  r || i(e);
1326
1326
  }), () => {
1327
1327
  r = !0;
@@ -1332,10 +1332,10 @@ function go(e) {
1332
1332
  n
1333
1333
  ]), r;
1334
1334
  }
1335
- function _o({ page: e, matches: t, ...n }) {
1336
- let r = pa(), { future: i } = fo(), { basename: a } = co(), o = H.useMemo(() => {
1335
+ function vo({ page: e, matches: t, ...n }) {
1336
+ let r = ma(), { future: i } = po(), { basename: a } = lo(), o = H.useMemo(() => {
1337
1337
  if (e === r.pathname + r.search + r.hash) return [];
1338
- let n = Qa(e, a, i.v8_trailingSlashAwareDataRequests, "rsc"), o = !1, s = [];
1338
+ let n = $a(e, a, i.v8_trailingSlashAwareDataRequests, "rsc"), o = !1, s = [];
1339
1339
  for (let e of t) typeof e.route.shouldRevalidate == "function" ? o = !0 : s.push(e.route.id);
1340
1340
  return o && s.length > 0 && n.searchParams.set("_routes", s.join(",")), [n.pathname + n.search];
1341
1341
  }, [
@@ -1353,14 +1353,14 @@ function _o({ page: e, matches: t, ...n }) {
1353
1353
  ...n
1354
1354
  })));
1355
1355
  }
1356
- function vo({ page: e, matches: t, ...n }) {
1357
- let r = pa(), { future: i, manifest: a, routeModules: o } = fo(), { basename: s } = co(), { loaderData: c, matches: l } = lo(), u = H.useMemo(() => ro(e, t, l, a, r, "data"), [
1356
+ function yo({ page: e, matches: t, ...n }) {
1357
+ let r = ma(), { future: i, manifest: a, routeModules: o } = po(), { basename: s } = lo(), { loaderData: c, matches: l } = uo(), u = H.useMemo(() => io(e, t, l, a, r, "data"), [
1358
1358
  e,
1359
1359
  t,
1360
1360
  l,
1361
1361
  a,
1362
1362
  r
1363
- ]), d = H.useMemo(() => ro(e, t, l, a, r, "assets"), [
1363
+ ]), d = H.useMemo(() => io(e, t, l, a, r, "assets"), [
1364
1364
  e,
1365
1365
  t,
1366
1366
  l,
@@ -1373,7 +1373,7 @@ function vo({ page: e, matches: t, ...n }) {
1373
1373
  let t = a.routes[e.route.id];
1374
1374
  t && t.hasLoader && (!u.some((t) => t.route.id === e.route.id) && e.route.id in c && o[e.route.id]?.shouldRevalidate || t.hasClientLoader ? l = !0 : n.add(e.route.id));
1375
1375
  }), n.size === 0) return [];
1376
- let d = Qa(e, s, i.v8_trailingSlashAwareDataRequests, "data");
1376
+ let d = $a(e, s, i.v8_trailingSlashAwareDataRequests, "data");
1377
1377
  return l && n.size > 0 && d.searchParams.set("_routes", t.filter((e) => n.has(e.route.id)).map((e) => e.route.id).join(",")), [d.pathname + d.search];
1378
1378
  }, [
1379
1379
  s,
@@ -1385,7 +1385,7 @@ function vo({ page: e, matches: t, ...n }) {
1385
1385
  t,
1386
1386
  e,
1387
1387
  o
1388
- ]), p = H.useMemo(() => io(d, a), [d, a]), m = go(d);
1388
+ ]), p = H.useMemo(() => ao(d, a), [d, a]), m = _o(d);
1389
1389
  return /* @__PURE__ */ H.createElement(H.Fragment, null, f.map((e) => /* @__PURE__ */ H.createElement("link", {
1390
1390
  key: e,
1391
1391
  rel: "prefetch",
@@ -1404,7 +1404,7 @@ function vo({ page: e, matches: t, ...n }) {
1404
1404
  crossOrigin: t.crossOrigin ?? n.crossOrigin
1405
1405
  })));
1406
1406
  }
1407
- function yo(...e) {
1407
+ function bo(...e) {
1408
1408
  return (t) => {
1409
1409
  e.forEach((e) => {
1410
1410
  typeof e == "function" ? e(t) : e != null && (e.current = t);
@@ -1412,19 +1412,19 @@ function yo(...e) {
1412
1412
  };
1413
1413
  }
1414
1414
  H.Component;
1415
- var bo = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
1415
+ var xo = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
1416
1416
  try {
1417
- bo && (window.__reactRouterVersion = "7.18.4");
1417
+ xo && (window.__reactRouterVersion = "7.18.4");
1418
1418
  } catch {}
1419
- var xo = H.forwardRef(function({ onClick: e, discover: t = "render", prefetch: n = "none", relative: r, reloadDocument: i, replace: a, mask: o, state: s, target: c, to: l, preventScrollReset: u, viewTransition: d, defaultShouldRevalidate: f, ...p }, m) {
1420
- let { basename: h, navigator: g, useTransitions: _ } = H.useContext(Z), v = typeof l == "string" && Qr.test(l), y = Bi(l, h);
1419
+ var So = H.forwardRef(function({ onClick: e, discover: t = "render", prefetch: n = "none", relative: r, reloadDocument: i, replace: a, mask: o, state: s, target: c, to: l, preventScrollReset: u, viewTransition: d, defaultShouldRevalidate: f, ...p }, m) {
1420
+ let { basename: h, navigator: g, useTransitions: _ } = H.useContext(Z), v = typeof l == "string" && $r.test(l), y = Vi(l, h);
1421
1421
  l = y.to;
1422
- let b = da(l, { relative: r }), x = pa(), S = null;
1422
+ let b = fa(l, { relative: r }), x = ma(), S = null;
1423
1423
  if (o) {
1424
- let e = Ai(o, [], x.mask ? x.mask.pathname : "/", !0);
1424
+ let e = ji(o, [], x.mask ? x.mask.pathname : "/", !0);
1425
1425
  h !== "/" && (e.pathname = e.pathname === "/" ? h : X([h, e.pathname])), S = g.createHref(e);
1426
1426
  }
1427
- let [ee, C, w] = po(n, p), T = Eo(l, {
1427
+ let [ee, C, w] = mo(n, p), T = Do(l, {
1428
1428
  replace: a,
1429
1429
  mask: o,
1430
1430
  state: s,
@@ -1443,16 +1443,16 @@ var xo = H.forwardRef(function({ onClick: e, discover: t = "render", prefetch: n
1443
1443
  ...w,
1444
1444
  href: (E ? S : void 0) || y.absoluteURL || b,
1445
1445
  onClick: E ? te : e,
1446
- ref: yo(m, C),
1446
+ ref: bo(m, C),
1447
1447
  target: c,
1448
1448
  "data-discover": !v && t === "render" ? "true" : void 0
1449
1449
  });
1450
- return ee && !v ? /* @__PURE__ */ H.createElement(H.Fragment, null, D, /* @__PURE__ */ H.createElement(ho, { page: b })) : D;
1450
+ return ee && !v ? /* @__PURE__ */ H.createElement(H.Fragment, null, D, /* @__PURE__ */ H.createElement(go, { page: b })) : D;
1451
1451
  });
1452
- xo.displayName = "Link";
1453
- var So = H.forwardRef(function({ "aria-current": e = "page", caseSensitive: t = !1, className: n = "", end: r = !1, style: i, to: a, viewTransition: o, children: s, ...c }, l) {
1454
- let u = va(a, { relative: c.relative }), d = pa(), f = H.useContext(Zi), { navigator: p, basename: m } = H.useContext(Z), h = f != null && jo(u) && o === !0, g = p.encodeLocation ? p.encodeLocation(u).pathname : u.pathname, _ = d.pathname, v = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
1455
- t || (_ = _.toLowerCase(), v = v ? v.toLowerCase() : null, g = g.toLowerCase()), v && m && (v = wi(v, m) || v);
1452
+ So.displayName = "Link";
1453
+ var Co = H.forwardRef(function({ "aria-current": e = "page", caseSensitive: t = !1, className: n = "", end: r = !1, style: i, to: a, viewTransition: o, children: s, ...c }, l) {
1454
+ let u = ya(a, { relative: c.relative }), d = ma(), f = H.useContext(Qi), { navigator: p, basename: m } = H.useContext(Z), h = f != null && Mo(u) && o === !0, g = p.encodeLocation ? p.encodeLocation(u).pathname : u.pathname, _ = d.pathname, v = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
1455
+ t || (_ = _.toLowerCase(), v = v ? v.toLowerCase() : null, g = g.toLowerCase()), v && m && (v = Ti(v, m) || v);
1456
1456
  let y = g !== "/" && g.endsWith("/") ? g.length - 1 : g.length, b = _ === g || !r && _.startsWith(g) && _.charAt(y) === "/", x = v != null && (v === g || !r && v.startsWith(g) && v.charAt(g.length) === "/"), S = {
1457
1457
  isActive: b,
1458
1458
  isPending: x,
@@ -1465,7 +1465,7 @@ var So = H.forwardRef(function({ "aria-current": e = "page", caseSensitive: t =
1465
1465
  h ? "transitioning" : null
1466
1466
  ].filter(Boolean).join(" ");
1467
1467
  let w = typeof i == "function" ? i(S) : i;
1468
- return /* @__PURE__ */ H.createElement(xo, {
1468
+ return /* @__PURE__ */ H.createElement(So, {
1469
1469
  ...c,
1470
1470
  "aria-current": ee,
1471
1471
  className: C,
@@ -1475,9 +1475,9 @@ var So = H.forwardRef(function({ "aria-current": e = "page", caseSensitive: t =
1475
1475
  viewTransition: o
1476
1476
  }, typeof s == "function" ? s(S) : s);
1477
1477
  });
1478
- So.displayName = "NavLink";
1479
- var Co = H.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: n, reloadDocument: r, replace: i, state: a, method: o = Ra, action: s, onSubmit: c, relative: l, preventScrollReset: u, viewTransition: d, defaultShouldRevalidate: f, ...p }, m) => {
1480
- let { useTransitions: h } = H.useContext(Z), g = ko(), _ = Ao(s, { relative: l }), v = o.toLowerCase() === "get" ? "get" : "post", y = typeof s == "string" && Qr.test(s);
1478
+ Co.displayName = "NavLink";
1479
+ var wo = H.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: n, reloadDocument: r, replace: i, state: a, method: o = za, action: s, onSubmit: c, relative: l, preventScrollReset: u, viewTransition: d, defaultShouldRevalidate: f, ...p }, m) => {
1480
+ let { useTransitions: h } = H.useContext(Z), g = Ao(), _ = jo(s, { relative: l }), v = o.toLowerCase() === "get" ? "get" : "post", y = typeof s == "string" && $r.test(s);
1481
1481
  return /* @__PURE__ */ H.createElement("form", {
1482
1482
  ref: m,
1483
1483
  method: v,
@@ -1502,20 +1502,20 @@ var Co = H.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: n, rel
1502
1502
  "data-discover": !y && e === "render" ? "true" : void 0
1503
1503
  });
1504
1504
  });
1505
- Co.displayName = "Form";
1506
- function wo(e) {
1505
+ wo.displayName = "Form";
1506
+ function To(e) {
1507
1507
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1508
1508
  }
1509
- function To(e) {
1510
- let t = H.useContext(Xi);
1511
- return Y(t, wo(e)), t;
1509
+ function Eo(e) {
1510
+ let t = H.useContext(Zi);
1511
+ return Y(t, To(e)), t;
1512
1512
  }
1513
- function Eo(e, { target: t, replace: n, mask: r, state: i, preventScrollReset: a, relative: o, viewTransition: s, defaultShouldRevalidate: c, useTransitions: l } = {}) {
1514
- let u = ga(), d = pa(), f = va(e, { relative: o });
1513
+ function Do(e, { target: t, replace: n, mask: r, state: i, preventScrollReset: a, relative: o, viewTransition: s, defaultShouldRevalidate: c, useTransitions: l } = {}) {
1514
+ let u = _a(), d = ma(), f = ya(e, { relative: o });
1515
1515
  return H.useCallback((p) => {
1516
- if (Ga(p, t)) {
1516
+ if (Ka(p, t)) {
1517
1517
  p.preventDefault();
1518
- let t = n === void 0 ? ni(d) === ni(f) : n, m = () => u(e, {
1518
+ let t = n === void 0 ? ri(d) === ri(f) : n, m = () => u(e, {
1519
1519
  replace: t,
1520
1520
  mask: r,
1521
1521
  state: i,
@@ -1542,13 +1542,13 @@ function Eo(e, { target: t, replace: n, mask: r, state: i, preventScrollReset: a
1542
1542
  l
1543
1543
  ]);
1544
1544
  }
1545
- var Do = 0, Oo = () => `__${String(++Do)}__`;
1546
- function ko() {
1547
- let { router: e } = To("useSubmit"), { basename: t } = H.useContext(Z), n = Ma(), r = e.fetch, i = e.navigate;
1545
+ var Oo = 0, ko = () => `__${String(++Oo)}__`;
1546
+ function Ao() {
1547
+ let { router: e } = Eo("useSubmit"), { basename: t } = H.useContext(Z), n = Na(), r = e.fetch, i = e.navigate;
1548
1548
  return H.useCallback(async (e, a = {}) => {
1549
- let { action: o, method: s, encType: c, formData: l, body: u } = Xa(e, t);
1549
+ let { action: o, method: s, encType: c, formData: l, body: u } = Za(e, t);
1550
1550
  if (a.navigate === !1) {
1551
- let e = a.fetcherKey || Oo();
1551
+ let e = a.fetcherKey || ko();
1552
1552
  await r(e, n, a.action || o, {
1553
1553
  defaultShouldRevalidate: a.defaultShouldRevalidate,
1554
1554
  preventScrollReset: a.preventScrollReset,
@@ -1578,10 +1578,10 @@ function ko() {
1578
1578
  n
1579
1579
  ]);
1580
1580
  }
1581
- function Ao(e, { relative: t } = {}) {
1582
- let { basename: n } = H.useContext(Z), r = H.useContext(ia);
1581
+ function jo(e, { relative: t } = {}) {
1582
+ let { basename: n } = H.useContext(Z), r = H.useContext(aa);
1583
1583
  Y(r, "useFormAction must be used inside a RouteContext");
1584
- let [i] = r.matches.slice(-1), a = { ...va(e || ".", { relative: t }) }, o = pa();
1584
+ let [i] = r.matches.slice(-1), a = { ...ya(e || ".", { relative: t }) }, o = ma();
1585
1585
  if (e == null) {
1586
1586
  a.search = o.search;
1587
1587
  let e = new URLSearchParams(a.search), t = e.getAll("index");
@@ -1591,24 +1591,24 @@ function Ao(e, { relative: t } = {}) {
1591
1591
  a.search = n ? `?${n}` : "";
1592
1592
  }
1593
1593
  }
1594
- return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (a.pathname = a.pathname === "/" ? n : X([n, a.pathname])), ni(a);
1594
+ return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (a.pathname = a.pathname === "/" ? n : X([n, a.pathname])), ri(a);
1595
1595
  }
1596
- function jo(e, { relative: t } = {}) {
1597
- let n = H.useContext(ea);
1596
+ function Mo(e, { relative: t } = {}) {
1597
+ let n = H.useContext(ta);
1598
1598
  Y(n != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1599
- let { basename: r } = To("useViewTransitionState"), i = va(e, { relative: t });
1599
+ let { basename: r } = Eo("useViewTransitionState"), i = ya(e, { relative: t });
1600
1600
  if (!n.isTransitioning) return !1;
1601
- let a = wi(n.currentLocation.pathname, r) || n.currentLocation.pathname, o = wi(n.nextLocation.pathname, r) || n.nextLocation.pathname;
1602
- return bi(i.pathname, o) != null || bi(i.pathname, a) != null;
1601
+ let a = Ti(n.currentLocation.pathname, r) || n.currentLocation.pathname, o = Ti(n.nextLocation.pathname, r) || n.nextLocation.pathname;
1602
+ return xi(i.pathname, o) != null || xi(i.pathname, a) != null;
1603
1603
  }
1604
1604
  //#endregion
1605
1605
  //#region src/components/List/index.tsx
1606
- var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: o = 5, isDataLoading: s = !1, showLogo: l, isShowOptions: u, setValue: d, currentPage: f = 1, isEnableScrollToTop: p, isDisableMoreOption: h, isEnableSelectAll: _, onSelectAll: v, onDeselectAll: y, isAllSelected: b, parent: x, extraValues: T, extraHeaderText: te, onTourClick: E, onRowClick: D, onRowHover: ne, onMouseOut: re, buttonContent: ie, noDataSubHeading: O, isDatasourceList: ae, stateKey: k, onCreate: A, isDemoDatasource: j, isOpenInNewTab: M, noDataProps: N }) => {
1607
- let oe = ga(), [se, ce] = K(o), [le, ue] = K(""), [de, fe] = K(""), pe = (e) => {
1608
- if (x) switch (x) {
1606
+ var No = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: o = 5, isDataLoading: s = !1, showLogo: c, isShowOptions: u, setValue: d, currentPage: p = 1, isEnableScrollToTop: m, isDisableMoreOption: g, isEnableSelectAll: _, onSelectAll: y, onDeselectAll: b, isAllSelected: x, parent: S, extraValues: w, extraHeaderText: te, onTourClick: E, onRowClick: D, onRowHover: ne, onMouseOut: re, buttonContent: ie, noDataSubHeading: O, isDatasourceList: ae, stateKey: k, onCreate: A, isDemoDatasource: j, isOpenInNewTab: M, noDataProps: N }) => {
1607
+ let oe = _a(), [se, ce] = K(o), [le, ue] = K(""), [de, fe] = K(""), pe = (e) => {
1608
+ if (S) switch (S) {
1609
1609
  case "DASHBOARD":
1610
- case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${T?.workspaceId}${T?.dataMartId ? `&dmId=${T?.dataMartId}` : ""}${e?.createdBy ? `&createdByClient=${e?.createdBy}` : ""}`;
1611
- case "METRIC": return `/metric/${e?.metric?.id}/?wid=${e?.workspaceId}${T?.dataMartId ? `&dmId=${T?.dataMartId}` : ""}${e?.dashboardId ? `&dashboardId=${e?.dashboardId}` : ""}&client=${e?.metric?.clientId}&parent=homepage&isPublished=${e?.isPublished}`;
1610
+ case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${w?.workspaceId}${w?.dataMartId ? `&dmId=${w?.dataMartId}` : ""}${e?.createdBy ? `&createdByClient=${e?.createdBy}` : ""}`;
1611
+ case "METRIC": return `/metric/${e?.metric?.id}/?wid=${e?.workspaceId}${w?.dataMartId ? `&dmId=${w?.dataMartId}` : ""}${e?.dashboardId ? `&dashboardId=${e?.dashboardId}` : ""}&client=${e?.metric?.clientId}&parent=homepage&isPublished=${e?.isPublished}`;
1612
1612
  case "DATASOURCE": return `/integration/${e.integrationId}?id=${e.id}`;
1613
1613
  case "DATAAPP": return `embedInfo/${e.id}`;
1614
1614
  case "DASHBOARD_EMBED_ACCESS": return e?.embedType === "dashboard" ? `embedAccessControl/${e?.id}?dataAppId=${e?.dataAppId}&wid=${e?.workspaceId}` : null;
@@ -1634,14 +1634,14 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1634
1634
  subTextGap: "6px",
1635
1635
  msgVariant: "sec-heading-4",
1636
1636
  isNoDatasourceConnected: !0
1637
- }), /* @__PURE__ */ q(So, {
1637
+ }), /* @__PURE__ */ q(Co, {
1638
1638
  to: "/configuration",
1639
1639
  children: /* @__PURE__ */ J("div", {
1640
1640
  className: V.createBtn,
1641
1641
  children: [/* @__PURE__ */ q(C, {
1642
1642
  size: "sm",
1643
1643
  name: "plus"
1644
- }), /* @__PURE__ */ q(m, {
1644
+ }), /* @__PURE__ */ q(f, {
1645
1645
  variant: "btn",
1646
1646
  children: "Datasource"
1647
1647
  })]
@@ -1669,7 +1669,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1669
1669
  children: [/* @__PURE__ */ q(C, {
1670
1670
  size: "sm",
1671
1671
  name: "plus"
1672
- }), /* @__PURE__ */ q(m, {
1672
+ }), /* @__PURE__ */ q(f, {
1673
1673
  variant: "btn",
1674
1674
  children: "Data Mart"
1675
1675
  })]
@@ -1696,7 +1696,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1696
1696
  children: [/* @__PURE__ */ q(C, {
1697
1697
  size: "sm",
1698
1698
  name: "plus"
1699
- }), /* @__PURE__ */ q(m, {
1699
+ }), /* @__PURE__ */ q(f, {
1700
1700
  variant: "btn",
1701
1701
  children: "Data App"
1702
1702
  })]
@@ -1734,13 +1734,13 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1734
1734
  subTextGap: "6px",
1735
1735
  msgVariant: "sec-heading-4",
1736
1736
  isNoDashboard: !0
1737
- }), x === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1737
+ }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1738
1738
  className: V.createBtn,
1739
1739
  onClick: A,
1740
1740
  children: [/* @__PURE__ */ q(C, {
1741
1741
  size: "sm",
1742
1742
  name: "plus"
1743
- }), /* @__PURE__ */ q(m, {
1743
+ }), /* @__PURE__ */ q(f, {
1744
1744
  variant: "btn",
1745
1745
  children: "Dashboard"
1746
1746
  })]
@@ -1761,13 +1761,13 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1761
1761
  subTextGap: "6px",
1762
1762
  msgVariant: "sec-heading-4",
1763
1763
  isNoMetric: !0
1764
- }), x && /* @__PURE__ */ J("div", {
1764
+ }), S && /* @__PURE__ */ J("div", {
1765
1765
  className: V.createBtn,
1766
1766
  onClick: A,
1767
1767
  children: [/* @__PURE__ */ q(C, {
1768
1768
  size: "sm",
1769
1769
  name: "plus"
1770
- }), /* @__PURE__ */ q(m, {
1770
+ }), /* @__PURE__ */ q(f, {
1771
1771
  variant: "btn",
1772
1772
  children: "Metric"
1773
1773
  })]
@@ -1788,13 +1788,13 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1788
1788
  subTextGap: "6px",
1789
1789
  msgVariant: "sec-heading-4",
1790
1790
  isNoMatchedMetric: !0
1791
- }), x === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1791
+ }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1792
1792
  className: V.createBtn,
1793
1793
  onClick: A,
1794
1794
  children: [/* @__PURE__ */ q(C, {
1795
1795
  size: "sm",
1796
1796
  name: "plus"
1797
- }), /* @__PURE__ */ q(m, {
1797
+ }), /* @__PURE__ */ q(f, {
1798
1798
  variant: "btn",
1799
1799
  children: "Dashboard"
1800
1800
  })]
@@ -1815,13 +1815,13 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1815
1815
  subTextGap: "6px",
1816
1816
  msgVariant: "sec-heading-4",
1817
1817
  isNoMatchedMetric: !0
1818
- }), x && /* @__PURE__ */ J("div", {
1818
+ }), S && /* @__PURE__ */ J("div", {
1819
1819
  className: V.createBtn,
1820
1820
  onClick: A,
1821
1821
  children: [/* @__PURE__ */ q(C, {
1822
1822
  size: "sm",
1823
1823
  name: "plus"
1824
- }), /* @__PURE__ */ q(m, {
1824
+ }), /* @__PURE__ */ q(f, {
1825
1825
  variant: "btn",
1826
1826
  children: "Metric"
1827
1827
  })]
@@ -1914,15 +1914,15 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1914
1914
  return null;
1915
1915
  }, he = () => {
1916
1916
  if (k) switch (k) {
1917
- case "datasource": return /* @__PURE__ */ J(cr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
1917
+ case "datasource": return /* @__PURE__ */ J(lr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
1918
1918
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
1919
1919
  children: [
1920
- /* @__PURE__ */ q(m, {
1920
+ /* @__PURE__ */ q(f, {
1921
1921
  variant: "heading-2",
1922
1922
  color: "primary",
1923
1923
  children: "FAQs"
1924
1924
  }),
1925
- /* @__PURE__ */ q(Bn, {
1925
+ /* @__PURE__ */ q(Vn, {
1926
1926
  header: "What is a Data Source?",
1927
1927
  isOpen: de === "datasource",
1928
1928
  setIsOpen: () => {
@@ -1930,7 +1930,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1930
1930
  },
1931
1931
  content: /* @__PURE__ */ q("div", {
1932
1932
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
1933
- children: /* @__PURE__ */ q(m, {
1933
+ children: /* @__PURE__ */ q(f, {
1934
1934
  variant: "faq-content",
1935
1935
  color: "light",
1936
1936
  children: "A connection point for integrating and monitoring all your data in one place."
@@ -1938,7 +1938,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1938
1938
  }),
1939
1939
  width: "100%"
1940
1940
  }, "datasource"),
1941
- /* @__PURE__ */ q(Bn, {
1941
+ /* @__PURE__ */ q(Vn, {
1942
1942
  header: "How to set up a Data Source?",
1943
1943
  isOpen: de === "datasource-setup",
1944
1944
  setIsOpen: () => {
@@ -1946,7 +1946,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1946
1946
  },
1947
1947
  content: /* @__PURE__ */ J("div", {
1948
1948
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-end dbn:-top-3 dbn:relative",
1949
- children: [/* @__PURE__ */ J(m, {
1949
+ children: [/* @__PURE__ */ J(f, {
1950
1950
  variant: "faq-content",
1951
1951
  color: "light",
1952
1952
  children: [
@@ -1962,10 +1962,10 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1962
1962
  ">",
1963
1963
  " Save"
1964
1964
  ]
1965
- }), /* @__PURE__ */ q(So, {
1965
+ }), /* @__PURE__ */ q(Co, {
1966
1966
  target: "_blank",
1967
1967
  to: "https://docs.usedatabrain.com/guides/onboarding-and-configuration/add-a-data-source",
1968
- children: /* @__PURE__ */ q(c, {
1968
+ children: /* @__PURE__ */ q(l, {
1969
1969
  variant: "popover",
1970
1970
  leftIcon: /* @__PURE__ */ q(C, {
1971
1971
  name: "new-window",
@@ -1980,15 +1980,15 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1980
1980
  }, "datasource-setup")
1981
1981
  ]
1982
1982
  })] });
1983
- case "dataapp": return /* @__PURE__ */ J(cr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
1983
+ case "dataapp": return /* @__PURE__ */ J(lr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
1984
1984
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
1985
1985
  children: [
1986
- /* @__PURE__ */ q(m, {
1986
+ /* @__PURE__ */ q(f, {
1987
1987
  variant: "heading-2",
1988
1988
  color: "primary",
1989
1989
  children: "FAQs"
1990
1990
  }),
1991
- /* @__PURE__ */ q(Bn, {
1991
+ /* @__PURE__ */ q(Vn, {
1992
1992
  header: "What are Data Apps?",
1993
1993
  isOpen: de === "dataapp",
1994
1994
  setIsOpen: () => {
@@ -1996,7 +1996,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1996
1996
  },
1997
1997
  content: /* @__PURE__ */ q("div", {
1998
1998
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
1999
- children: /* @__PURE__ */ q(m, {
1999
+ children: /* @__PURE__ */ q(f, {
2000
2000
  variant: "faq-content",
2001
2001
  color: "light",
2002
2002
  children: "Tools for embedding dashboards and metrics on your site, enabling centralized monitoring."
@@ -2004,7 +2004,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2004
2004
  }),
2005
2005
  width: "100%"
2006
2006
  }, "dataapp"),
2007
- /* @__PURE__ */ q(Bn, {
2007
+ /* @__PURE__ */ q(Vn, {
2008
2008
  header: "How to set up a Data App?",
2009
2009
  isOpen: de === "dataapp-setup",
2010
2010
  setIsOpen: () => {
@@ -2012,7 +2012,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2012
2012
  },
2013
2013
  content: /* @__PURE__ */ J("div", {
2014
2014
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2015
- children: [/* @__PURE__ */ J(m, {
2015
+ children: [/* @__PURE__ */ J(f, {
2016
2016
  variant: "faq-content",
2017
2017
  color: "light",
2018
2018
  children: [
@@ -2030,10 +2030,10 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2030
2030
  ">",
2031
2031
  " Save"
2032
2032
  ]
2033
- }), /* @__PURE__ */ q(So, {
2033
+ }), /* @__PURE__ */ q(Co, {
2034
2034
  target: "_blank",
2035
2035
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-data-app",
2036
- children: /* @__PURE__ */ q(c, {
2036
+ children: /* @__PURE__ */ q(l, {
2037
2037
  variant: "popover",
2038
2038
  leftIcon: /* @__PURE__ */ q(C, {
2039
2039
  name: "new-window",
@@ -2048,15 +2048,15 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2048
2048
  }, "dataapp-setup")
2049
2049
  ]
2050
2050
  })] });
2051
- case "datamart": return /* @__PURE__ */ J(cr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
2051
+ case "datamart": return /* @__PURE__ */ J(lr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
2052
2052
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2053
2053
  children: [
2054
- /* @__PURE__ */ q(m, {
2054
+ /* @__PURE__ */ q(f, {
2055
2055
  variant: "heading-2",
2056
2056
  color: "primary",
2057
2057
  children: "FAQs"
2058
2058
  }),
2059
- /* @__PURE__ */ q(Bn, {
2059
+ /* @__PURE__ */ q(Vn, {
2060
2060
  header: "What is a Data Mart?",
2061
2061
  isOpen: de === "datamart",
2062
2062
  setIsOpen: () => {
@@ -2064,7 +2064,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2064
2064
  },
2065
2065
  content: /* @__PURE__ */ q("div", {
2066
2066
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2067
- children: /* @__PURE__ */ q(m, {
2067
+ children: /* @__PURE__ */ q(f, {
2068
2068
  variant: "faq-content",
2069
2069
  color: "light",
2070
2070
  children: "A focused subset of data, optimized to speed up insights and streamline workflows."
@@ -2072,7 +2072,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2072
2072
  }),
2073
2073
  width: "100%"
2074
2074
  }, "datamart"),
2075
- /* @__PURE__ */ q(Bn, {
2075
+ /* @__PURE__ */ q(Vn, {
2076
2076
  header: "How to set up a Data Mart?",
2077
2077
  isOpen: de === "datamart-setup",
2078
2078
  setIsOpen: () => {
@@ -2080,7 +2080,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2080
2080
  },
2081
2081
  content: /* @__PURE__ */ J("div", {
2082
2082
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2083
- children: [/* @__PURE__ */ J(m, {
2083
+ children: [/* @__PURE__ */ J(f, {
2084
2084
  variant: "faq-content",
2085
2085
  color: "light",
2086
2086
  children: [
@@ -2098,10 +2098,10 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2098
2098
  ">",
2099
2099
  " Save"
2100
2100
  ]
2101
- }), /* @__PURE__ */ q(So, {
2101
+ }), /* @__PURE__ */ q(Co, {
2102
2102
  target: "_blank",
2103
2103
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-datamart",
2104
- children: /* @__PURE__ */ q(c, {
2104
+ children: /* @__PURE__ */ q(l, {
2105
2105
  variant: "popover",
2106
2106
  leftIcon: /* @__PURE__ */ q(C, {
2107
2107
  name: "new-window",
@@ -2116,15 +2116,15 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2116
2116
  }, "datamart-setup")
2117
2117
  ]
2118
2118
  })] });
2119
- case "semantic": return /* @__PURE__ */ J(cr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
2119
+ case "semantic": return /* @__PURE__ */ J(lr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
2120
2120
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2121
2121
  children: [
2122
- /* @__PURE__ */ q(m, {
2122
+ /* @__PURE__ */ q(f, {
2123
2123
  variant: "heading-2",
2124
2124
  color: "primary",
2125
2125
  children: "FAQs"
2126
2126
  }),
2127
- /* @__PURE__ */ q(Bn, {
2127
+ /* @__PURE__ */ q(Vn, {
2128
2128
  header: "What is a Semantic Layer?",
2129
2129
  isOpen: de === "semantic",
2130
2130
  setIsOpen: () => {
@@ -2132,7 +2132,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2132
2132
  },
2133
2133
  content: /* @__PURE__ */ q("div", {
2134
2134
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2135
- children: /* @__PURE__ */ q(m, {
2135
+ children: /* @__PURE__ */ q(f, {
2136
2136
  variant: "faq-content",
2137
2137
  color: "light",
2138
2138
  children: "An enhancement layer for Data Marts that adds context and relationships for accurate, natural language queries."
@@ -2140,7 +2140,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2140
2140
  }),
2141
2141
  width: "100%"
2142
2142
  }, "semantic"),
2143
- /* @__PURE__ */ q(Bn, {
2143
+ /* @__PURE__ */ q(Vn, {
2144
2144
  header: "How to set up a Semantic Layer?",
2145
2145
  isOpen: de === "semantic-setup",
2146
2146
  setIsOpen: () => {
@@ -2148,7 +2148,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2148
2148
  },
2149
2149
  content: /* @__PURE__ */ J("div", {
2150
2150
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2151
- children: [/* @__PURE__ */ J(m, {
2151
+ children: [/* @__PURE__ */ J(f, {
2152
2152
  variant: "faq-content",
2153
2153
  color: "light",
2154
2154
  children: [
@@ -2166,10 +2166,10 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2166
2166
  ">",
2167
2167
  " Save"
2168
2168
  ]
2169
- }), /* @__PURE__ */ q(So, {
2169
+ }), /* @__PURE__ */ q(Co, {
2170
2170
  target: "_blank",
2171
2171
  to: "https://docs.usedatabrain.com/guides/datasources/semantic-layer",
2172
- children: /* @__PURE__ */ q(c, {
2172
+ children: /* @__PURE__ */ q(l, {
2173
2173
  variant: "popover",
2174
2174
  leftIcon: /* @__PURE__ */ q(C, {
2175
2175
  name: "new-window",
@@ -2189,17 +2189,17 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2189
2189
  return null;
2190
2190
  }, ge = G(null);
2191
2191
  return U(() => {
2192
- p && f && ge.current && ge.current.scrollTo({
2192
+ m && p && ge.current && ge.current.scrollTo({
2193
2193
  top: 0,
2194
2194
  behavior: "auto"
2195
2195
  });
2196
- }, [f]), /* @__PURE__ */ J(cr, { children: [/* @__PURE__ */ J("div", {
2196
+ }, [p]), /* @__PURE__ */ J(lr, { children: [/* @__PURE__ */ J("div", {
2197
2197
  ref: ge,
2198
2198
  className: `${V[`container-${n}`]} ${a}`,
2199
2199
  children: [
2200
2200
  s ? /* @__PURE__ */ q("div", {
2201
2201
  className: "dbn:my-5 dbn:w-full dbn:flex dbn:items-center dbn:justify-end",
2202
- children: /* @__PURE__ */ q(g, {
2202
+ children: /* @__PURE__ */ q(h, {
2203
2203
  variant: "table",
2204
2204
  tableRows: 4
2205
2205
  })
@@ -2222,18 +2222,18 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2222
2222
  className: `${te ? V.headerCol2 : V.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
2223
2223
  children: [/* @__PURE__ */ J("span", {
2224
2224
  className: `${_ && n === 0 ? "dbn:flex dbn:gap-2" : ""}`,
2225
- children: [n === 0 && _ ? /* @__PURE__ */ q(w, {
2225
+ children: [n === 0 && _ ? /* @__PURE__ */ q(T, {
2226
2226
  id: `${t?.name?.replaceAll(" ", "-")?.toLowerCase()}-header-checkbox`,
2227
2227
  onChange: (e) => {
2228
- e.target.checked ? v?.() : y?.();
2228
+ e.target.checked ? y?.() : b?.();
2229
2229
  },
2230
- checked: b
2231
- }) : null, /* @__PURE__ */ q(m, {
2230
+ checked: x
2231
+ }) : null, /* @__PURE__ */ q(f, {
2232
2232
  variant: "sec-heading-6",
2233
2233
  color: "gray",
2234
2234
  children: t.headerCell || t.name
2235
2235
  })]
2236
- }), n === e.length - 1 && te ? /* @__PURE__ */ q(m, {
2236
+ }), n === e.length - 1 && te ? /* @__PURE__ */ q(f, {
2237
2237
  variant: "body-text-3",
2238
2238
  color: "cta",
2239
2239
  children: te
@@ -2241,9 +2241,9 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2241
2241
  }, t.name)) })
2242
2242
  }), /* @__PURE__ */ q("tbody", {
2243
2243
  className: V.body,
2244
- children: (h ? t : t.slice(0, se))?.map((t, r) => /* @__PURE__ */ q("tr", {
2244
+ children: (g ? t : t.slice(0, se))?.map((t, r) => /* @__PURE__ */ q("tr", {
2245
2245
  "data-testid": `row-${t?.name ?? t?.metric?.name ?? t?.companyRole?.name ?? t?.email?.split("@")?.[0]}`,
2246
- className: `${V[`row-${n}`]} ${x || E || ne || D ? "dbn:cursor-pointer" : ""}`,
2246
+ className: `${V[`row-${n}`]} ${S || E || ne || D ? "dbn:cursor-pointer" : ""}`,
2247
2247
  onClick: (e) => {
2248
2248
  E && E(t), D && D(t);
2249
2249
  let n = pe(t);
@@ -2263,19 +2263,19 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2263
2263
  className: `${V.col} ${V[`col-${n}`]}`,
2264
2264
  children: /* @__PURE__ */ q("div", {
2265
2265
  className: V[`col-${n}-cell`],
2266
- children: i === 0 && l || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ J("div", {
2266
+ children: i === 0 && c || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ J("div", {
2267
2267
  className: "dbn:flex dbn:gap-2",
2268
- children: [(t?.type || t?.dbName) && /* @__PURE__ */ q(ee, {
2268
+ children: [(t?.type || t?.dbName) && /* @__PURE__ */ q(v, {
2269
2269
  name: r.columnKey?.toLowerCase() === "type" ? t.type?.toString() : t.dbName?.toString()?.toLowerCase(),
2270
2270
  width: 20
2271
2271
  }), r.columnKey?.toLowerCase() === "name" && (t.name === null || t.name === void 0) && t.dbName?.toString()?.toLowerCase() === "awss3" ? "Demo Datasource" : (r.columnCell ? r.columnCell(t) : t[r.columnKey]) || "-"]
2272
2272
  }) : /* @__PURE__ */ J("div", {
2273
2273
  className: "dbn:w-full dbn:flex dbn:items-center dbn:justify-between",
2274
- children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ J(cr, { children: [/* @__PURE__ */ q(m, {
2274
+ children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ J(lr, { children: [/* @__PURE__ */ q(f, {
2275
2275
  variant: "body-text-2",
2276
2276
  className: "dbn:text-xs",
2277
2277
  children: "XXXX"
2278
- }), /* @__PURE__ */ q(c, {
2278
+ }), /* @__PURE__ */ q(l, {
2279
2279
  "data-testid": "invitation-copy",
2280
2280
  variant: "tertiary",
2281
2281
  type: "button",
@@ -2288,14 +2288,14 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2288
2288
  }),
2289
2289
  className: "dbn:p-0 dbn:pl-1 dbn:text-xs dbn:gap-1",
2290
2290
  children: le === t[r.columnKey] ? "Copied" : "Copy"
2291
- })] }) : t[r.columnKey]) || "-", i === e.length - 1 && u ? /* @__PURE__ */ J(S, {
2292
- buttonContent: /* @__PURE__ */ q(c, {
2291
+ })] }) : t[r.columnKey]) || "-", i === e.length - 1 && u ? /* @__PURE__ */ J(ee, {
2292
+ buttonContent: /* @__PURE__ */ q(l, {
2293
2293
  variant: "popover",
2294
2294
  leftIcon: /* @__PURE__ */ q(C, { name: "kebab-menu-vertical" })
2295
2295
  }),
2296
2296
  menuWidth: "120px",
2297
2297
  position: "bottom",
2298
- children: [/* @__PURE__ */ q(c, {
2298
+ children: [/* @__PURE__ */ q(l, {
2299
2299
  variant: "popover",
2300
2300
  className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
2301
2301
  onClick: () => d?.({
@@ -2304,7 +2304,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2304
2304
  }),
2305
2305
  leftIcon: /* @__PURE__ */ q(C, { name: "pencil-simple" }),
2306
2306
  children: "Edit"
2307
- }), /* @__PURE__ */ q(c, {
2307
+ }), /* @__PURE__ */ q(l, {
2308
2308
  variant: "popover",
2309
2309
  className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
2310
2310
  onClick: () => d?.({
@@ -2322,10 +2322,10 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2322
2322
  }, `row-${r}`))
2323
2323
  })]
2324
2324
  }) : null,
2325
- !s && t.length === 0 && k ? /* @__PURE__ */ q(cr, { children: me() }) : null,
2326
- t.length > se && !h ? /* @__PURE__ */ q("div", {
2325
+ !s && t.length === 0 && k ? /* @__PURE__ */ q(lr, { children: me() }) : null,
2326
+ t.length > se && !g ? /* @__PURE__ */ q("div", {
2327
2327
  className: V.loadMore,
2328
- children: /* @__PURE__ */ J(c, {
2328
+ children: /* @__PURE__ */ J(l, {
2329
2329
  type: "button",
2330
2330
  variant: "tertiary",
2331
2331
  onClick: () => ce((e) => e + o),
@@ -2333,7 +2333,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2333
2333
  })
2334
2334
  }) : null
2335
2335
  ]
2336
- }), t.length === 0 && k && /* @__PURE__ */ q(cr, { children: he() })] });
2336
+ }), t.length === 0 && k && /* @__PURE__ */ q(lr, { children: he() })] });
2337
2337
  }, Q = {
2338
2338
  "table-loader-container": "_table-loader-container_o1h6j_8",
2339
2339
  tableData: "_tableData_o1h6j_21",
@@ -2406,17 +2406,17 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2406
2406
  "col-view-primary-cell": "_col-view-primary-cell_o1h6j_269",
2407
2407
  link: "_link_o1h6j_273",
2408
2408
  textLineBreak: "_textLineBreak_o1h6j_277"
2409
- }, No = Wn(), Po = (e, t, n, r) => {
2410
- let i = Vn(e.getValue(t), n);
2409
+ }, Po = Gn(), Fo = (e, t, n, r) => {
2410
+ let i = Hn(e.getValue(t), n);
2411
2411
  return r({ itemRank: i }), i.passed;
2412
- }, Fo = (e, t, n) => {
2412
+ }, Io = (e, t, n) => {
2413
2413
  let r = e.getValue(t);
2414
2414
  return String(r)?.toLowerCase().includes(String(n)?.toLowerCase());
2415
- }, Io = (e) => e?.textWrap?.isEnable ? 48 : e?.lineGap === "small" ? 36 : e?.lineGap === "large" ? 44 : 40, Lo = ({ data: e, isLoading: t, error: n, tableSettings: r, className: i = "", onColumnSizingChange: a, onChartReady: o, isExternalChart: c, paginationInfo: l = {
2415
+ }, Lo = (e) => e?.textWrap?.isEnable ? 48 : e?.lineGap === "small" ? 36 : e?.lineGap === "large" ? 44 : 40, Ro = ({ data: e, isLoading: t, error: n, tableSettings: r, className: i = "", onColumnSizingChange: o, onChartReady: s, isExternalChart: c, paginationInfo: l = {
2416
2416
  limit: 10,
2417
2417
  offset: 0,
2418
2418
  totalRecords: 10
2419
- }, externalGlobalFilter: u, setExternalGlobalFilter: d, headerAlignment: f = "center", events: p, language: h, translationDictionary: _, isMetricCard: v, isDisableChartActions: y }) => {
2419
+ }, externalGlobalFilter: u, setExternalGlobalFilter: d, headerAlignment: p = "center", events: m, language: g, translationDictionary: _, isMetricCard: v, isDisableChartActions: y }) => {
2420
2420
  let [b, x] = K([]), [S, ee] = K(","), C = (e) => {
2421
2421
  let t = {};
2422
2422
  return Object.keys(e).sort().forEach((n) => {
@@ -2426,7 +2426,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2426
2426
  U(() => {
2427
2427
  r?.badgeSeparator ? ee(r.badgeSeparator) : ee(",");
2428
2428
  }, [r?.badgeSeparator]);
2429
- let te = W(() => {
2429
+ let T = W(() => {
2430
2430
  let e = "2.5rem";
2431
2431
  return r?.textWrap?.isEnable ? e = "auto" : r?.lineGap === "small" ? e = "36px" : r?.lineGap === "medium" ? e = "40px" : r?.lineGap === "large" && (e = "44px"), {
2432
2432
  width: "100%",
@@ -2450,32 +2450,32 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2450
2450
  };
2451
2451
  if (t && Object.keys(t).includes(e)) return { backgroundColor: t[e] };
2452
2452
  if (n && Object.keys(n).includes(e)) return { color: n[e] };
2453
- }, [D, ne] = K(r?.columnSizing), re = G(null), ie = W(() => !e || !w || !Array.isArray(e) || !Array.isArray(w) ? [] : r?.isEnableTranspose ? T(w, r?.isEnableTranspose) : w, [
2453
+ }, [D, ne] = K(r?.columnSizing), re = G(null), ie = W(() => !e || !w || !Array.isArray(e) || !Array.isArray(w) ? [] : r?.isEnableTranspose ? te(w, r?.isEnableTranspose) : w, [
2454
2454
  e,
2455
2455
  w,
2456
2456
  r?.isEnableTranspose
2457
- ]), O = W(() => !h || !_ ? ie : ie?.map((e) => {
2457
+ ]), O = W(() => !g || !_ ? ie : ie?.map((e) => {
2458
2458
  let t = {};
2459
2459
  for (let n in e) {
2460
- let r = s({
2460
+ let r = a({
2461
2461
  text: n,
2462
- selectedLanguage: h,
2462
+ selectedLanguage: g,
2463
2463
  translationDictionary: _
2464
2464
  });
2465
- t[r] = s({
2465
+ t[r] = a({
2466
2466
  text: e[n],
2467
- selectedLanguage: h,
2467
+ selectedLanguage: g,
2468
2468
  translationDictionary: _
2469
2469
  });
2470
2470
  }
2471
2471
  return t;
2472
2472
  }), [
2473
2473
  ie,
2474
- h,
2474
+ g,
2475
2475
  _
2476
2476
  ]), ae = W(() => O, [O]), k = W(() => {
2477
2477
  let e = Object.keys(O[0] || {});
2478
- return r?.showColumnFilter && (e = b), r?.isEnableViewDetails && (e = [...e, "View Details"]), r?.hiddenColumns?.length && (e = e?.filter((e) => !r?.hiddenColumns?.includes(e))), e?.map((e) => No.accessor(e, {
2478
+ return r?.showColumnFilter && (e = b), r?.isEnableViewDetails && (e = [...e, "View Details"]), r?.hiddenColumns?.length && (e = e?.filter((e) => !r?.hiddenColumns?.includes(e))), e?.map((e) => Po.accessor(e, {
2479
2479
  header: () => e,
2480
2480
  cell: (t) => {
2481
2481
  let n = t.row.original[e];
@@ -2483,26 +2483,26 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2483
2483
  },
2484
2484
  enableResizing: !0
2485
2485
  }));
2486
- }, [O[0], b]), A = qn({
2486
+ }, [O[0], b]), A = Jn({
2487
2487
  data: ae,
2488
2488
  columns: k,
2489
2489
  state: { ...D ? { columnSizing: D } : {} },
2490
- filterFns: { fuzzy: Po },
2491
- globalFilterFn: Fo,
2492
- getCoreRowModel: Un(),
2493
- getFilteredRowModel: Kn(),
2490
+ filterFns: { fuzzy: Fo },
2491
+ globalFilterFn: Io,
2492
+ getCoreRowModel: Wn(),
2493
+ getFilteredRowModel: qn(),
2494
2494
  debugTable: !1,
2495
2495
  enableColumnResizing: !0,
2496
2496
  columnResizeMode: "onChange",
2497
2497
  onColumnSizingChange: ne
2498
- }), j = A.getSortedRowModel().rows, M = Hn({
2498
+ }), j = A.getSortedRowModel().rows, M = Un({
2499
2499
  count: j.length,
2500
2500
  getScrollElement: () => re.current,
2501
- estimateSize: () => Io(r),
2501
+ estimateSize: () => Lo(r),
2502
2502
  overscan: 12
2503
2503
  }), N = M.getVirtualItems(), oe = N.length ? N[0].start : 0, se = N.length ? M.getTotalSize() - N[N.length - 1].end : 0, ce = A.getVisibleLeafColumns().length || 1;
2504
2504
  U(() => {
2505
- A.getIsSomeColumnsVisible() && o?.();
2505
+ A.getIsSomeColumnsVisible() && s?.();
2506
2506
  }, [A.getIsSomeColumnsVisible()]);
2507
2507
  let le = (e, t) => t?.includes(e) ? Q.badge : "";
2508
2508
  return U(() => {
@@ -2516,8 +2516,8 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2516
2516
  children: /* @__PURE__ */ J("div", {
2517
2517
  className: `${Q.tableData} ${Q.noBorder}`,
2518
2518
  children: [
2519
- t && !e?.length ? /* @__PURE__ */ q(g, { variant: "table" }) : null,
2520
- !!w?.length && /* @__PURE__ */ q(Jn, {
2519
+ t && !e?.length ? /* @__PURE__ */ q(h, { variant: "table" }) : null,
2520
+ !!w?.length && /* @__PURE__ */ q(Yn, {
2521
2521
  style: { height: "100%" },
2522
2522
  scrollableNodeProps: { ref: re },
2523
2523
  children: /* @__PURE__ */ q("table", {
@@ -2537,9 +2537,9 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2537
2537
  ref: M.measureElement,
2538
2538
  "data-index": e.index,
2539
2539
  "data-testid": `table-row-${t.id}`,
2540
- style: p?.click ? { cursor: "pointer" } : void 0,
2540
+ style: m?.click ? { cursor: "pointer" } : void 0,
2541
2541
  onClick: () => {
2542
- p?.click({}, Object.keys(t.original ?? {})?.map((e) => ({
2542
+ m?.click({}, Object.keys(t.original ?? {})?.map((e) => ({
2543
2543
  columnName: e,
2544
2544
  value: t.original?.[e]
2545
2545
  })));
@@ -2547,11 +2547,11 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2547
2547
  children: t.getVisibleCells()?.map((e, t) => {
2548
2548
  let n = "";
2549
2549
  le(e.column.id, r?.badgeColumns) && (n = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n?.toString()?.includes(S) && n?.toString()?.split(S));
2550
- let i = r?.textWrap?.isEnable && r?.textWrap?.columns?.includes(e.column.id), a = () => r?.replaceNullValuesWithEmpty && (e?.getValue() === "null" || e?.getValue() === null) ? "" : r?.replaceNullValues && (e?.getValue() === "null" || e?.getValue() === null) ? "-" : Gn(e.column.columnDef.cell, e.getContext()), o = v && !y && r?.chartAction?.isEnableCustomRedirection ? r?.chartAction?.clickValues?.find((t) => t.text === e?.getValue()?.toString()) : null, s = o?.link, c = o?.isOpenInNewTab, l = Yn({
2550
+ let i = r?.textWrap?.isEnable && r?.textWrap?.columns?.includes(e.column.id), a = () => r?.replaceNullValuesWithEmpty && (e?.getValue() === "null" || e?.getValue() === null) ? "" : r?.replaceNullValues && (e?.getValue() === "null" || e?.getValue() === null) ? "-" : Kn(e.column.columnDef.cell, e.getContext()), o = v && !y && r?.chartAction?.isEnableCustomRedirection ? r?.chartAction?.clickValues?.find((t) => t.text === e?.getValue()?.toString()) : null, s = o?.link, c = o?.isOpenInNewTab, l = Xn({
2551
2551
  rules: r?.conditionalFormatting?.find(({ columnName: t }) => t === e?.column?.id)?.rules || [],
2552
2552
  value: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue()
2553
- }), u = l?.prefix || "", d = l?.suffix || "", f = !Object.keys(l)?.length && r?.badgeColumns?.includes(e.column.id) ? E(e.column.id, r?.badgeColors, r?.badgeTextColors) : l, m = "", h = (f?.isApplyBadgeColor || !(f?.isApplyBgColor || !f?.badgeColor)) && !!Object.keys(l)?.length;
2554
- h ? m = f?.badgeColor : r?.badgeColumns?.includes(e.column.id) && (m = E(e.column.id, r?.badgeColors, r?.badgeTextColors)?.backgroundColor);
2553
+ }), u = l?.prefix || "", d = l?.suffix || "", f = !Object.keys(l)?.length && r?.badgeColumns?.includes(e.column.id) ? E(e.column.id, r?.badgeColors, r?.badgeTextColors) : l, p = "", h = (f?.isApplyBadgeColor || !(f?.isApplyBgColor || !f?.badgeColor)) && !!Object.keys(l)?.length;
2554
+ h ? p = f?.badgeColor : r?.badgeColumns?.includes(e.column.id) && (p = E(e.column.id, r?.badgeColors, r?.badgeTextColors)?.backgroundColor);
2555
2555
  let g = l;
2556
2556
  if (l && "backgroundColor" in l && h) {
2557
2557
  let { backgroundColor: e, ...t } = l;
@@ -2562,10 +2562,10 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2562
2562
  className: `${Q.tableRowCol}`,
2563
2563
  title: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : `${e.getValue()}`,
2564
2564
  onClick: (e) => {
2565
- p?.click && o && (e.preventDefault(), c ? window.open(s, "_blank") : window.location.href = s || "");
2565
+ m?.click && o && (e.preventDefault(), zn(s, c));
2566
2566
  },
2567
2567
  onContextMenu: (t) => {
2568
- p?.contextmenu && o ? (t.preventDefault(), c ? window.open(s, "_blank") : window.location.href = s || "") : typeof e.getValue() == "string" && p?.contextmenu({ name: `${e.getValue()}` });
2568
+ m?.contextmenu && o ? (t.preventDefault(), zn(s, c)) : typeof e.getValue() == "string" && m?.contextmenu({ name: `${e.getValue()}` });
2569
2569
  },
2570
2570
  style: {
2571
2571
  position: "relative",
@@ -2574,10 +2574,10 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2574
2574
  children: [
2575
2575
  !!r && /* @__PURE__ */ q("div", {
2576
2576
  style: {
2577
- ...te,
2577
+ ...T,
2578
2578
  ...g
2579
2579
  },
2580
- children: a() === "" ? /* @__PURE__ */ q(cr, {}) : /* @__PURE__ */ J("span", {
2580
+ children: a() === "" ? /* @__PURE__ */ q(lr, {}) : /* @__PURE__ */ J("span", {
2581
2581
  "data-testid": "cell-content",
2582
2582
  className: `${i ? Q.wrapText : Q.truncateText} ${le(e.column.id, r.badgeColumns) || h ? Q.badge : ""} ${o ? Q.link : ""} ${i && r?.textWrap?.enableLineBreaks ? Q.textLineBreak : ""}`,
2583
2583
  style: {
@@ -2585,7 +2585,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2585
2585
  color: r?.contentColor || "var(--dbn-typography-colorPrimary, #222c3a)",
2586
2586
  ...f,
2587
2587
  fontWeight: r?.contentWeight || 500,
2588
- backgroundColor: m || ""
2588
+ backgroundColor: p || ""
2589
2589
  },
2590
2590
  children: [
2591
2591
  u,
@@ -2600,7 +2600,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2600
2600
  width: "100%"
2601
2601
  },
2602
2602
  className: Q.truncateText,
2603
- children: Gn(e.column.columnDef.cell, e.getContext())
2603
+ children: Kn(e.column.columnDef.cell, e.getContext())
2604
2604
  }),
2605
2605
  e.column.getCanResize() ? /* @__PURE__ */ q("div", {
2606
2606
  className: "resizer",
@@ -2655,11 +2655,11 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2655
2655
  width: "400px",
2656
2656
  height: "400px"
2657
2657
  }),
2658
- /* @__PURE__ */ q(m, {
2658
+ /* @__PURE__ */ q(f, {
2659
2659
  variant: "heading-3",
2660
2660
  children: "No data tables queried"
2661
2661
  }),
2662
- /* @__PURE__ */ q(m, {
2662
+ /* @__PURE__ */ q(f, {
2663
2663
  variant: "body-text-2",
2664
2664
  children: "Type your query and input fields beside to generate results and explore data"
2665
2665
  })
@@ -2667,19 +2667,19 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2667
2667
  }),
2668
2668
  n && /* @__PURE__ */ q("div", {
2669
2669
  className: Q.error,
2670
- children: /* @__PURE__ */ q(m, { children: n })
2670
+ children: /* @__PURE__ */ q(f, { children: n })
2671
2671
  })
2672
2672
  ]
2673
2673
  })
2674
2674
  })
2675
2675
  });
2676
- }, Ro = /* @__PURE__ */ i(((e) => {
2676
+ }, zo = /* @__PURE__ */ i(((e) => {
2677
2677
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0;
2678
2678
  var t = 1;
2679
2679
  e.default = function() {
2680
2680
  return `${t++}`;
2681
2681
  };
2682
- })), zo = /* @__PURE__ */ i(((e) => {
2682
+ })), Bo = /* @__PURE__ */ i(((e) => {
2683
2683
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0, e.default = function(e) {
2684
2684
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 60, n = null;
2685
2685
  return function() {
@@ -2689,11 +2689,11 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2689
2689
  }, t);
2690
2690
  };
2691
2691
  };
2692
- })), Bo = /* @__PURE__ */ i(((e) => {
2693
- Object.defineProperty(e, "__esModule", { value: !0 }), e.SizeSensorId = e.SensorTabIndex = e.SensorClassName = void 0, e.SizeSensorId = "size-sensor-id", e.SensorClassName = "size-sensor-object", e.SensorTabIndex = "-1";
2694
2692
  })), Vo = /* @__PURE__ */ i(((e) => {
2693
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.SizeSensorId = e.SensorTabIndex = e.SensorClassName = void 0, e.SizeSensorId = "size-sensor-id", e.SensorClassName = "size-sensor-object", e.SensorTabIndex = "-1";
2694
+ })), Ho = /* @__PURE__ */ i(((e) => {
2695
2695
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createSensor = void 0;
2696
- var t = r(zo()), n = Bo();
2696
+ var t = r(Bo()), n = Vo();
2697
2697
  function r(e) {
2698
2698
  return e && e.__esModule ? e : { default: e };
2699
2699
  }
@@ -2723,9 +2723,9 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2723
2723
  }
2724
2724
  };
2725
2725
  };
2726
- })), Ho = /* @__PURE__ */ i(((e) => {
2726
+ })), Uo = /* @__PURE__ */ i(((e) => {
2727
2727
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createSensor = void 0;
2728
- var t = Bo(), n = r(zo());
2728
+ var t = Vo(), n = r(Bo());
2729
2729
  function r(e) {
2730
2730
  return e && e.__esModule ? e : { default: e };
2731
2731
  }
@@ -2752,13 +2752,13 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2752
2752
  }
2753
2753
  };
2754
2754
  };
2755
- })), Uo = /* @__PURE__ */ i(((e) => {
2755
+ })), Wo = /* @__PURE__ */ i(((e) => {
2756
2756
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createSensor = void 0;
2757
- var t = Vo(), n = Ho();
2757
+ var t = Ho(), n = Uo();
2758
2758
  e.createSensor = typeof ResizeObserver < "u" ? n.createSensor : t.createSensor;
2759
- })), Wo = /* @__PURE__ */ i(((e) => {
2759
+ })), Go = /* @__PURE__ */ i(((e) => {
2760
2760
  Object.defineProperty(e, "__esModule", { value: !0 }), e.removeSensor = e.getSensor = e.Sensors = void 0;
2761
- var t = i(Ro()), n = Uo(), r = Bo();
2761
+ var t = i(zo()), n = Wo(), r = Vo();
2762
2762
  function i(e) {
2763
2763
  return e && e.__esModule ? e : { default: e };
2764
2764
  }
@@ -2779,9 +2779,9 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2779
2779
  var t = e.element.getAttribute(r.SizeSensorId);
2780
2780
  e.destroy(), o(t);
2781
2781
  };
2782
- })), Go = /* @__PURE__ */ i(((e) => {
2782
+ })), Ko = /* @__PURE__ */ i(((e) => {
2783
2783
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ver = e.clear = e.bind = void 0;
2784
- var t = Wo();
2784
+ var t = Go();
2785
2785
  e.bind = function(e, n) {
2786
2786
  var r = (0, t.getSensor)(e);
2787
2787
  return r.bind(n), function() {
@@ -2791,7 +2791,7 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2791
2791
  var n = (0, t.getSensor)(e);
2792
2792
  (0, t.removeSensor)(n);
2793
2793
  }, e.ver = "1.0.3";
2794
- })), Ko = /* @__PURE__ */ i(((e) => {
2794
+ })), qo = /* @__PURE__ */ i(((e) => {
2795
2795
  Object.defineProperty(e, "__esModule", { value: !0 }), e.pick = void 0;
2796
2796
  function t(e, t) {
2797
2797
  var n = {};
@@ -2800,19 +2800,19 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2800
2800
  }), n;
2801
2801
  }
2802
2802
  e.pick = t;
2803
- })), qo = /* @__PURE__ */ i(((e) => {
2803
+ })), Jo = /* @__PURE__ */ i(((e) => {
2804
2804
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isFunction = void 0;
2805
2805
  function t(e) {
2806
2806
  return typeof e == "function";
2807
2807
  }
2808
2808
  e.isFunction = t;
2809
- })), Jo = /* @__PURE__ */ i(((e) => {
2809
+ })), Yo = /* @__PURE__ */ i(((e) => {
2810
2810
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isString = void 0;
2811
2811
  function t(e) {
2812
2812
  return typeof e == "string";
2813
2813
  }
2814
2814
  e.isString = t;
2815
- })), Yo = /* @__PURE__ */ i(((e, t) => {
2815
+ })), Xo = /* @__PURE__ */ i(((e, t) => {
2816
2816
  t.exports = function e(t, n) {
2817
2817
  if (t === n) return !0;
2818
2818
  if (t && n && typeof t == "object" && typeof n == "object") {
@@ -2836,11 +2836,11 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2836
2836
  }
2837
2837
  return t !== t && n !== n;
2838
2838
  };
2839
- })), Xo = /* @__PURE__ */ i(((t) => {
2840
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isEqual = void 0, t.isEqual = (er(), e($n)).__importDefault(Yo()).default;
2841
- })), Zo = /* @__PURE__ */ n((/* @__PURE__ */ i(((n) => {
2839
+ })), Zo = /* @__PURE__ */ i(((t) => {
2840
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.isEqual = void 0, t.isEqual = (tr(), e(er)).__importDefault(Xo()).default;
2841
+ })), Qo = /* @__PURE__ */ n((/* @__PURE__ */ i(((n) => {
2842
2842
  Object.defineProperty(n, "__esModule", { value: !0 });
2843
- var r = (er(), e($n)), i = r.__importStar(t("react")), a = Go(), o = Ko(), s = qo(), c = Jo(), l = Xo();
2843
+ var r = (tr(), e(er)), i = r.__importStar(t("react")), a = Ko(), o = qo(), s = Jo(), c = Yo(), l = Zo();
2844
2844
  n.default = function(e) {
2845
2845
  r.__extends(t, e);
2846
2846
  function t(t) {
@@ -2973,37 +2973,37 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2973
2973
  }, s));
2974
2974
  }, t;
2975
2975
  }(i.PureComponent);
2976
- })))()), Qo = class extends Zo.default {
2976
+ })))()), $o = class extends Qo.default {
2977
2977
  constructor(e) {
2978
2978
  super({
2979
2979
  ...e,
2980
- echarts: Cr
2980
+ echarts: wr
2981
2981
  });
2982
2982
  }
2983
2983
  async initEchartsInstance() {
2984
2984
  return this.echarts.init(this.ele, this.props.theme, this.props.opts);
2985
2985
  }
2986
2986
  componentDidUpdate(e) {
2987
- let t = Zn(this.ele);
2987
+ let t = Qn(this.ele);
2988
2988
  try {
2989
2989
  super.componentDidUpdate(e);
2990
2990
  } finally {
2991
- let e = new Set(Zn(this.ele));
2992
- Qn(t.filter((t) => !e.has(t)));
2991
+ let e = new Set(Qn(this.ele));
2992
+ $n(t.filter((t) => !e.has(t)));
2993
2993
  }
2994
2994
  }
2995
2995
  componentWillUnmount() {
2996
- let e = Zn(this.ele);
2996
+ let e = Qn(this.ele);
2997
2997
  try {
2998
2998
  super.componentWillUnmount();
2999
2999
  } finally {
3000
- Qn(e);
3000
+ $n(e);
3001
3001
  }
3002
3002
  }
3003
- }, $o = ir(async () => (await import("./echarts-mz_HZpET.mjs"), { default: Qo })), es = rr((e, t) => /* @__PURE__ */ q(x, {
3003
+ }, es = ar(async () => (await import("./echarts-CsSfDZ5q.mjs"), { default: $o })), ts = ir((e, t) => /* @__PURE__ */ q(x, {
3004
3004
  surface: "chart",
3005
- fallback: /* @__PURE__ */ q(Xn, {}),
3006
- children: /* @__PURE__ */ q($o, {
3005
+ fallback: /* @__PURE__ */ q(Zn, {}),
3006
+ children: /* @__PURE__ */ q(es, {
3007
3007
  ...e,
3008
3008
  ref: t
3009
3009
  })
@@ -3029,8 +3029,8 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3029
3029
  chartDiv: "_chartDiv_1pb84_69",
3030
3030
  chartUnavailable: "_chartUnavailable_1pb84_73",
3031
3031
  noChart: "_noChart_1pb84_77"
3032
- }, ts = ({ chartType: e, text: t = "This chart is no longer available.", subText: n }) => {
3033
- let r = a.flatMap((e) => e.value)?.find((t) => t.name?.toLowerCase() === e)?.disabledIcon;
3032
+ }, ns = ({ chartType: e, text: t = "This chart is no longer available.", subText: n }) => {
3033
+ let r = _.flatMap((e) => e.value)?.find((t) => t.name?.toLowerCase() === e)?.disabledIcon;
3034
3034
  return /* @__PURE__ */ J("div", {
3035
3035
  className: $.chartUnavailable,
3036
3036
  children: [/* @__PURE__ */ q("img", {
@@ -3039,18 +3039,18 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3039
3039
  className: $.noChart
3040
3040
  }), /* @__PURE__ */ J("div", {
3041
3041
  className: "dbn:flex dbn:flex-col dbn:gap-1 dbn:items-center",
3042
- children: [/* @__PURE__ */ q(m, {
3042
+ children: [/* @__PURE__ */ q(f, {
3043
3043
  variant: "sec-heading-4",
3044
3044
  color: "primary",
3045
3045
  children: t
3046
- }), /* @__PURE__ */ q(m, {
3046
+ }), /* @__PURE__ */ q(f, {
3047
3047
  variant: "body-text-3",
3048
3048
  color: "gray",
3049
3049
  children: n
3050
3050
  })]
3051
3051
  })]
3052
3052
  });
3053
- }, ns = ir(async () => ({ default: (await import("./Table-ODMPh1l7.mjs").then((e) => e.n)).Table })), rs = ir(async () => ({ default: (await import("./HorizontalStackTable-DNBbrIFn.mjs")).HorizontalStackTable })), is = ir(async () => ({ default: (await import("./PivotTable-5UaGFGcV.mjs")).default })), as = ir(async () => ({ default: (await import("./PivotTableV2-DfzyY9RC.mjs")).PivotTableV2 })), os = ir(() => import("./PivotTableV3-B97O3ZLD.mjs")), ss = ({ children: e, surface: t }) => /* @__PURE__ */ q(x, {
3053
+ }, rs = ar(async () => ({ default: (await import("./Table-Cg4EZCAG.mjs").then((e) => e.n)).Table })), is = ar(async () => ({ default: (await import("./HorizontalStackTable-BgTor_KQ.mjs")).HorizontalStackTable })), as = ar(async () => ({ default: (await import("./PivotTable-5UaGFGcV.mjs")).default })), os = ar(async () => ({ default: (await import("./PivotTableV2-DQU2H33d.mjs")).PivotTableV2 })), ss = ar(() => import("./PivotTableV3-BLp5-cQr.mjs")), cs = ({ children: e, surface: t }) => /* @__PURE__ */ q(x, {
3054
3054
  surface: t,
3055
3055
  fallback: /* @__PURE__ */ J("div", {
3056
3056
  className: "dbn:flex dbn:h-full dbn:min-h-32 dbn:items-center dbn:justify-center",
@@ -3063,25 +3063,25 @@ var Mo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3063
3063
  ]
3064
3064
  }),
3065
3065
  children: e
3066
- }), cs = (e) => /* @__PURE__ */ q(ss, {
3066
+ }), ls = (e) => /* @__PURE__ */ q(cs, {
3067
3067
  surface: "table",
3068
- children: /* @__PURE__ */ q(ns, { ...e })
3069
- }), ls = (e) => /* @__PURE__ */ q(ss, {
3070
- surface: "stack table",
3071
3068
  children: /* @__PURE__ */ q(rs, { ...e })
3072
- }), us = (e) => /* @__PURE__ */ q(ss, {
3073
- surface: "pivot table",
3069
+ }), us = (e) => /* @__PURE__ */ q(cs, {
3070
+ surface: "stack table",
3074
3071
  children: /* @__PURE__ */ q(is, { ...e })
3075
- }), ds = (e) => /* @__PURE__ */ q(ss, {
3072
+ }), ds = (e) => /* @__PURE__ */ q(cs, {
3076
3073
  surface: "pivot table",
3077
3074
  children: /* @__PURE__ */ q(as, { ...e })
3078
- }), fs = (e) => /* @__PURE__ */ q(ss, {
3075
+ }), fs = (e) => /* @__PURE__ */ q(cs, {
3079
3076
  surface: "pivot table",
3080
3077
  children: /* @__PURE__ */ q(os, { ...e })
3078
+ }), ps = (e) => /* @__PURE__ */ q(cs, {
3079
+ surface: "pivot table",
3080
+ children: /* @__PURE__ */ q(ss, { ...e })
3081
3081
  });
3082
3082
  //#endregion
3083
3083
  //#region src/components/Chart/singleValueDelta.ts
3084
- function ps(e) {
3084
+ function ms(e) {
3085
3085
  if (e == null) return "none";
3086
3086
  let t = String(e).trim();
3087
3087
  if (!t || /nan|infinity/i.test(t)) return "none";
@@ -3090,7 +3090,7 @@ function ps(e) {
3090
3090
  let r = Number(n[0]);
3091
3091
  return Number.isFinite(r) ? r > 0 ? "up" : r < 0 ? "down" : "flat" : "none";
3092
3092
  }
3093
- var ms = (e, t, n, r, i) => {
3093
+ var hs = (e, t, n, r, i) => {
3094
3094
  let a = n || 30, o = t.clientWidth, s = t.clientHeight, c = i ? Math.max(a, Math.min(i.capPx ?? 96, Math.floor((s > 0 ? s : 0) * i.maxFraction))) : a;
3095
3095
  if (r && r.w === o && r.h === s && r.base === a && r.max === c && e.style.fontSize === `${r.px}px`) return {
3096
3096
  memo: r,
@@ -3123,7 +3123,7 @@ var ms = (e, t, n, r, i) => {
3123
3123
  },
3124
3124
  wrote: !0
3125
3125
  };
3126
- }, hs = tr.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: a, comparisonValue: o, trendLineOptions: c, events: l, originalValue: d, variables: f, language: m, translationDictionary: g, setHoverSubHeader: _, onChartClickWithMetric: v, renderOpts: y }) => {
3126
+ }, gs = nr.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: s, comparisonValue: c, trendLineOptions: l, events: u, originalValue: f, variables: p, language: h, translationDictionary: g, setHoverSubHeader: _, onChartClickWithMetric: v, renderOpts: y }) => {
3127
3127
  let [b, x] = K(""), S = G(null), ee = G(null), w = G(null), T = G(null), { valueFont: te, subHeaderFont: E, changeVariableFont: D, changeIconSize: ne } = W(() => {
3128
3128
  let e = {
3129
3129
  fontSize: `${t?.subHeaderFontSize || 14}px`,
@@ -3152,7 +3152,7 @@ var ms = (e, t, n, r, i) => {
3152
3152
  ]), re = W(() => {
3153
3153
  if (!e) return "empty";
3154
3154
  let t = ye(e.toString());
3155
- return t.length === 0 ? "empty-empty" : `${`${t.slice(0, 4)}-${t.slice(-4)}`.toLowerCase()}-${p(6)}`;
3155
+ return t.length === 0 ? "empty-empty" : `${`${t.slice(0, 4)}-${t.slice(-4)}`.toLowerCase()}-${d(6)}`;
3156
3156
  }, [e]);
3157
3157
  U(() => {
3158
3158
  let e = new ResizeObserver(() => {
@@ -3160,21 +3160,21 @@ var ms = (e, t, n, r, i) => {
3160
3160
  });
3161
3161
  return w?.current && e?.observe(w?.current), () => e?.disconnect();
3162
3162
  }, []), U(() => {
3163
- (e || t) && a?.();
3163
+ (e || t) && s?.();
3164
3164
  }, [e, t]), U(() => {
3165
3165
  let e = !1;
3166
- if (t?.conditionalFormatter?.length && d) {
3166
+ if (t?.conditionalFormatter?.length && f) {
3167
3167
  let n = t?.conditionalFormatter?.filter((e) => !e?.type || e?.type === "range"), r = t?.conditionalFormatter?.filter((e) => e?.type === "string");
3168
- if (typeof d == "number" && n?.length && n?.forEach((n) => {
3169
- (!n?.type || n.type === "range") && n?.min?.toString() && n?.max && n.min <= Number(d) && n?.max >= Number(d) && (x(n?.color ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3170
- }), typeof d == "string" && r?.length) {
3171
- let n = Yn({
3168
+ if (typeof f == "number" && n?.length && n?.forEach((n) => {
3169
+ (!n?.type || n.type === "range") && n?.min?.toString() && n?.max && n.min <= Number(f) && n?.max >= Number(f) && (x(n?.color ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3170
+ }), typeof f == "string" && r?.length) {
3171
+ let n = Xn({
3172
3172
  rules: r?.map((e) => ({
3173
3173
  operator: e?.operator || "isEqualTo",
3174
3174
  styles: e?.color,
3175
3175
  value: e?.text || ""
3176
3176
  })),
3177
- value: d
3177
+ value: f
3178
3178
  });
3179
3179
  n && typeof n != "object" && (x(n ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3180
3180
  }
@@ -3183,33 +3183,33 @@ var ms = (e, t, n, r, i) => {
3183
3183
  }, [
3184
3184
  t?.conditionalFormatter,
3185
3185
  t?.fontColor,
3186
- d
3186
+ f
3187
3187
  ]);
3188
3188
  let ie = W(() => t?.isEnableTruncate ? ge(e.toString(), t?.truncateValue || 0) : e, [
3189
3189
  e,
3190
3190
  t?.isEnableTruncate,
3191
3191
  t?.truncateValue
3192
- ]), O = W(() => t?.prefix ? s({
3193
- text: h(t?.prefix || "^^^^^", f),
3194
- selectedLanguage: m,
3192
+ ]), O = W(() => t?.prefix ? a({
3193
+ text: m(t?.prefix || "^^^^^", p),
3194
+ selectedLanguage: h,
3195
3195
  translationDictionary: g
3196
3196
  }) : "", [
3197
- f,
3197
+ p,
3198
3198
  t?.prefix,
3199
- m,
3199
+ h,
3200
3200
  g
3201
- ]), ae = W(() => t?.suffix ? s({
3202
- text: h(t?.suffix || "^^^^^", f),
3203
- selectedLanguage: m,
3201
+ ]), ae = W(() => t?.suffix ? a({
3202
+ text: m(t?.suffix || "^^^^^", p),
3203
+ selectedLanguage: h,
3204
3204
  translationDictionary: g
3205
3205
  }) : "", [
3206
- f,
3206
+ p,
3207
3207
  t?.suffix,
3208
- m,
3208
+ h,
3209
3209
  g
3210
3210
  ]), k = G(null), A = G({ maxFraction: .6 }), j = W(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3211
3211
  A.current = { maxFraction: j ? .42 : .6 };
3212
- let M = W(() => ps(o), [o]), N = M !== "none", oe = N && !!c, se = W(() => N ? oe ? {
3212
+ let M = W(() => ms(c), [c]), N = M !== "none", oe = N && !!l, se = W(() => N ? oe ? {
3213
3213
  value: "50%",
3214
3214
  comparison: "18%",
3215
3215
  trend: "32%"
@@ -3228,7 +3228,7 @@ var ms = (e, t, n, r, i) => {
3228
3228
  k.current = null;
3229
3229
  let r = () => {
3230
3230
  if (e.clientWidth <= 0 || e.clientHeight <= 0) return;
3231
- let { memo: r } = ms(n, e, t?.fontSize || 0, k.current, t?.fontSize ? void 0 : A.current);
3231
+ let { memo: r } = hs(n, e, t?.fontSize || 0, k.current, t?.fontSize ? void 0 : A.current);
3232
3232
  k.current = r;
3233
3233
  };
3234
3234
  r();
@@ -3269,10 +3269,10 @@ var ms = (e, t, n, r, i) => {
3269
3269
  ref: ee,
3270
3270
  style: te,
3271
3271
  onClick: (e) => {
3272
- v ? v() : n?.isEnable ? l?.click() : l?.contextmenu();
3272
+ v ? v() : n?.isEnable ? u?.click() : u?.contextmenu();
3273
3273
  },
3274
3274
  onContextMenu: (e) => {
3275
- v ? v() : n?.isEnable ? l?.click() : l?.contextmenu();
3275
+ v ? v() : n?.isEnable ? u?.click() : u?.contextmenu();
3276
3276
  },
3277
3277
  className: `${n?.isEnable ? $.chartClickAction : ""} ${$.singleValue}`,
3278
3278
  "data-testid": `singleValue-${re}`,
@@ -3283,7 +3283,7 @@ var ms = (e, t, n, r, i) => {
3283
3283
  ]
3284
3284
  }), j && /* @__PURE__ */ q("div", {
3285
3285
  className: `dbn:w-full dbn:flex dbn:flex-col ${le}`,
3286
- children: /* @__PURE__ */ q(u, {
3286
+ children: /* @__PURE__ */ q(o, {
3287
3287
  text: t?.displayText,
3288
3288
  position: "bottom",
3289
3289
  isSingleLineTxt: !1,
@@ -3332,7 +3332,7 @@ var ms = (e, t, n, r, i) => {
3332
3332
  width: ne,
3333
3333
  height: ne
3334
3334
  }),
3335
- o,
3335
+ c,
3336
3336
  " ",
3337
3337
  t?.comparisonSuffix
3338
3338
  ]
@@ -3346,13 +3346,13 @@ var ms = (e, t, n, r, i) => {
3346
3346
  height: se.trend,
3347
3347
  minHeight: 0
3348
3348
  },
3349
- children: /* @__PURE__ */ q(es, {
3349
+ children: /* @__PURE__ */ q(ts, {
3350
3350
  ref: T,
3351
3351
  style: {
3352
3352
  width: "100%",
3353
3353
  height: "100%"
3354
3354
  },
3355
- option: Ar(c),
3355
+ option: jr(l),
3356
3356
  theme: "v5",
3357
3357
  notMerge: !0,
3358
3358
  opts: y
@@ -3360,11 +3360,11 @@ var ms = (e, t, n, r, i) => {
3360
3360
  })
3361
3361
  ]
3362
3362
  });
3363
- }), gs = (e, t) => {
3363
+ }), _s = (e, t) => {
3364
3364
  if (!e) return "";
3365
3365
  let n = e.xAxis?.[0] ?? e.xAxis ?? {}, r = e.yAxis?.[0] ?? e.yAxis ?? {}, i = (Array.isArray(n?.data) ? n.data.length : 0) || (Array.isArray(r?.data) ? r.data.length : 0), a = Array.isArray(e.series) ? e.series.length : 0, o = Array.isArray(e.series?.[0]?.data) ? e.series[0].data.length : 0;
3366
3366
  return `${t ?? ""}|${i}|${a}|${o}`;
3367
- }, _s = (e) => {
3367
+ }, vs = (e) => {
3368
3368
  let t = {};
3369
3369
  try {
3370
3370
  let n = e?.getOption?.()?.dataZoom;
@@ -3379,9 +3379,9 @@ var ms = (e, t, n, r, i) => {
3379
3379
  });
3380
3380
  } catch {}
3381
3381
  return t;
3382
- }, vs = (e, t, n) => {
3382
+ }, ys = (e, t, n) => {
3383
3383
  if (!e || !Array.isArray(e.dataZoom)) return e;
3384
- let r = gs(e, t);
3384
+ let r = _s(e, t);
3385
3385
  return n.shape === r ? Object.keys(n.windows).length ? {
3386
3386
  ...e,
3387
3387
  dataZoom: e.dataZoom.map((e, t) => {
@@ -3392,13 +3392,13 @@ var ms = (e, t, n, r, i) => {
3392
3392
  };
3393
3393
  })
3394
3394
  } : e : (n.shape = r, n.windows = {}, e);
3395
- }, ys = /* @__PURE__ */ r({ Chart: () => Ls }), bs = async () => {
3396
- let e = await import("./charts-CY0Vq7Bn.mjs").then((e) => e.t), t = e.DbnChart, { buildAnswerLine: n } = e;
3395
+ }, bs = /* @__PURE__ */ r({ Chart: () => Rs }), xs = async () => {
3396
+ let e = await import("./charts-C2loGjFP.mjs").then((e) => e.t), t = e.DbnChart, { buildAnswerLine: n } = e;
3397
3397
  return { default: ({ answerLineInput: e, ...r }) => /* @__PURE__ */ q(t, {
3398
3398
  ...r,
3399
3399
  answerLine: e ? n(e) : null
3400
3400
  }) };
3401
- }, xs = null, Ss = null, Cs = ir(() => (Ss ??= bs().then((e) => (xs = e.default, e)), Ss)), ws = (e, t) => {
3401
+ }, Ss = null, Cs = null, ws = ar(() => (Cs ??= xs().then((e) => (Ss = e.default, e)), Cs)), Ts = (e, t) => {
3402
3402
  let n = t?.onChartClickWithMetric, r = t?.chartClickConfig?.isEnable ? e?.click : e?.contextmenu;
3403
3403
  if (!n && !r) return;
3404
3404
  let i = () => {
@@ -3412,8 +3412,8 @@ var ms = (e, t, n, r, i) => {
3412
3412
  click: i,
3413
3413
  contextmenu: i
3414
3414
  };
3415
- }, Ts = (e) => typeof e == "object" && !!e && "current" in e, Es = (e, t) => {
3416
- if (!Ts(t)) return e;
3415
+ }, Es = (e) => typeof e == "object" && !!e && "current" in e, Ds = (e, t) => {
3416
+ if (!Es(t)) return e;
3417
3417
  let n = e?.finished;
3418
3418
  return {
3419
3419
  ...e ?? {},
@@ -3423,7 +3423,7 @@ var ms = (e, t, n, r, i) => {
3423
3423
  r && (t.current = { getEchartsInstance: () => r.isDisposed?.() ? void 0 : r });
3424
3424
  }
3425
3425
  };
3426
- }, Ds = (e) => q(xs || Cs, { ...e }), Os = /* @__PURE__ */ new Set([
3426
+ }, Os = (e) => q(Ss || ws, { ...e }), ks = /* @__PURE__ */ new Set([
3427
3427
  "echarts",
3428
3428
  "option",
3429
3429
  "theme",
@@ -3444,27 +3444,27 @@ var ms = (e, t, n, r, i) => {
3444
3444
  "tabIndex",
3445
3445
  "ref",
3446
3446
  "key"
3447
- ]), ks = (e) => e.startsWith("data-") || e.startsWith("aria-"), As = (e) => {
3447
+ ]), As = (e) => e.startsWith("data-") || e.startsWith("aria-"), js = (e) => {
3448
3448
  if (!e) return { theme: "v5" };
3449
3449
  let t = { theme: "v5" };
3450
- for (let n of Object.keys(e)) (Os.has(n) || ks(n)) && (t[n] = e[n]);
3450
+ for (let n of Object.keys(e)) (ks.has(n) || As(n)) && (t[n] = e[n]);
3451
3451
  return t;
3452
- }, js = (e) => e !== o.treeMap, Ms = (e, t) => {
3453
- if (e !== o.treeMap) return e;
3452
+ }, Ms = (e) => e !== y.treeMap, Ns = (e, t) => {
3453
+ if (e !== y.treeMap) return e;
3454
3454
  try {
3455
3455
  return `${e}:${JSON.stringify(t)}`;
3456
3456
  } catch {
3457
3457
  return e;
3458
3458
  }
3459
- }, Ns = (e, t, n = 0) => {
3459
+ }, Ps = (e, t, n = 0) => {
3460
3460
  if (e === t) return !0;
3461
3461
  if (n > 8) return !1;
3462
3462
  if (typeof e == "function" && typeof t == "function") return !0;
3463
3463
  if (typeof e != "object" || typeof t != "object" || e === null || t === null || Array.isArray(e) !== Array.isArray(t)) return !1;
3464
- if (Array.isArray(e)) return e.length === t.length && e.every((e, r) => Ns(e, t[r], n + 1));
3464
+ if (Array.isArray(e)) return e.length === t.length && e.every((e, r) => Ps(e, t[r], n + 1));
3465
3465
  let r = (e) => (t) => e[t] !== void 0 && typeof e[t] != "function", i = Object.keys(e).filter(r(e)), a = Object.keys(t).filter(r(t));
3466
- return i.length === a.length && i.every((r) => Object.hasOwn(t, r) && Ns(e[r], t[r], n + 1));
3467
- }, Ps = ({ echartsInstance: e, optionsObj: t, params: n, isGantt: r, chartIds: i }) => {
3466
+ return i.length === a.length && i.every((r) => Object.hasOwn(t, r) && Ps(e[r], t[r], n + 1));
3467
+ }, Fs = ({ echartsInstance: e, optionsObj: t, params: n, isGantt: r, chartIds: i }) => {
3468
3468
  if (!e || e.isDisposed() || !n?.name) return;
3469
3469
  let a = e?.id || "default-chart";
3470
3470
  i?.add(a);
@@ -3501,7 +3501,7 @@ var ms = (e, t, n, r, i) => {
3501
3501
  } catch (e) {
3502
3502
  console.error("Failed to update chart options", e);
3503
3503
  }
3504
- }, Fs = (e, t) => {
3504
+ }, Is = (e, t) => {
3505
3505
  let n = e?.xAxis, r = t?.[0];
3506
3506
  if (!n || !r || typeof r != "object" || n in r) return e;
3507
3507
  let i = n.toLowerCase(), a = Object.keys(r).find((e) => e.toLowerCase() === i);
@@ -3509,33 +3509,33 @@ var ms = (e, t, n, r, i) => {
3509
3509
  ...e,
3510
3510
  xAxis: a
3511
3511
  } : e;
3512
- }, Is = tr.memo(({ chartHeight: e, hasDecreasedHeight: t, config: n, chartOptions: r, options: i, className: a, onEvents: o, chartRef: s, renderOpts: c }) => {
3513
- let l = tr.useMemo(() => ({
3512
+ }, Ls = nr.memo(({ chartHeight: e, hasDecreasedHeight: t, config: n, chartOptions: r, options: i, className: a, onEvents: o, chartRef: s, renderOpts: c }) => {
3513
+ let l = nr.useMemo(() => ({
3514
3514
  width: "100%",
3515
3515
  height: t && (e || 0) >= 6 ? "100px" : t && !e ? "40%" : "100%"
3516
- }), [e, t]), u = tr.useMemo(() => Ar(r.customSettings?.chartZoom?.isZoomEnabled ? {
3516
+ }), [e, t]), u = nr.useMemo(() => jr(r.customSettings?.chartZoom?.isZoomEnabled ? {
3517
3517
  ...i,
3518
3518
  animation: !0
3519
3519
  } : {
3520
3520
  ...i,
3521
3521
  animation: !1
3522
3522
  }), [r, i]);
3523
- return /* @__PURE__ */ nr(es, {
3523
+ return /* @__PURE__ */ rr(ts, {
3524
3524
  style: l,
3525
- ...As(n),
3525
+ ...js(n),
3526
3526
  option: u,
3527
3527
  className: a,
3528
- key: Ms(r.chartType, u),
3528
+ key: Ns(r.chartType, u),
3529
3529
  onEvents: o,
3530
3530
  ref: s,
3531
- notMerge: js(r.chartType),
3531
+ notMerge: Ms(r.chartType),
3532
3532
  opts: c
3533
3533
  });
3534
- }, (e, t) => !(e.chartHeight !== t.chartHeight || e.hasDecreasedHeight !== t.hasDecreasedHeight || e.className !== t.className || e.options !== t.options || e.renderOpts !== t.renderOpts || e.onEvents !== t.onEvents || !Ns(e.config, t.config) || !Ns(e.chartOptions, t.chartOptions))), Ls = tr.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: a, config: s, className: u, isShowFullScreen: f, isShowFullScreenEnabled: p, metricId: m, sortOrder: h, onMaximize: g, onDrillPivotTable: S, pivotDrillState: ee, isPythonMode: C, seriesName: w = "", isSortReversed: T, chartHeight: O, chartAppearance: ae, metricCardColor: A, isMetricCard: M, isDashboard: N, externalGlobalFilter: ce, setExternalGlobalFilter: me, variables: ge, language: ye, translationDictionary: P, setHoverSubHeader: be, drilldownCols: xe, isEnableDrillDown: Se, dateFilter: Ce, chartFontSettings: we, downloadData: Te, isDownloading: Ee, generatingPdf: De }) => {
3535
- let F = W(() => Fs(e, t), [e, t]), [I, Oe] = K(null), [ke, Ae] = K(null), je = sr(ie, k, k), Me = ar((e) => {
3534
+ }, (e, t) => !(e.chartHeight !== t.chartHeight || e.hasDecreasedHeight !== t.hasDecreasedHeight || e.className !== t.className || e.options !== t.options || e.renderOpts !== t.renderOpts || e.onEvents !== t.onEvents || !Ps(e.config, t.config) || !Ps(e.chartOptions, t.chartOptions))), Rs = nr.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: a, config: o, className: u, isShowFullScreen: d, isShowFullScreenEnabled: f, metricId: m, sortOrder: h, onMaximize: _, onDrillPivotTable: v, pivotDrillState: ee, isPythonMode: C, seriesName: T = "", isSortReversed: te, chartHeight: O, chartAppearance: ae, metricCardColor: A, isMetricCard: M, isDashboard: N, externalGlobalFilter: ce, setExternalGlobalFilter: me, variables: ge, language: ye, translationDictionary: P, setHoverSubHeader: be, drilldownCols: xe, isEnableDrillDown: Se, dateFilter: Ce, chartFontSettings: we, downloadData: Te, isDownloading: Ee, generatingPdf: De }) => {
3535
+ let F = W(() => Is(e, t), [e, t]), [I, Oe] = K(null), [ke, Ae] = K(null), je = cr(ie, k, k), Me = or((e) => {
3536
3536
  Oe((t) => t === e ? t : e);
3537
3537
  }, []), [Ne, Pe] = K(() => E(null));
3538
- or(() => {
3538
+ sr(() => {
3539
3539
  Pe(E(I));
3540
3540
  }, [I]);
3541
3541
  let L = W(() => Ne ? ne({
@@ -3549,7 +3549,7 @@ var ms = (e, t, n, r, i) => {
3549
3549
  t
3550
3550
  ]), Fe = L ? he() : !1, Ie = W(() => {
3551
3551
  if (!L) return null;
3552
- let e = ue(Zr(ae, F), {
3552
+ let e = ue(Qr(ae, F), {
3553
3553
  ...fe(F.customSettings),
3554
3554
  tooltipSettings: F?.tooltipSettings,
3555
3555
  categoryField: L?.type === "gaugeV2" ? null : F?.xAxis,
@@ -3565,19 +3565,19 @@ var ms = (e, t, n, r, i) => {
3565
3565
  ae,
3566
3566
  F,
3567
3567
  Fe
3568
- ]), Le = L ? v() : !1, Re = W(() => {
3568
+ ]), Le = L ? S() : !1, Re = W(() => {
3569
3569
  if (Ne && L) return le(F);
3570
3570
  }, [
3571
3571
  Ne,
3572
3572
  L,
3573
3573
  F
3574
- ]), ze = W(() => !Ne || !L ? null : zn(F, t, n), [
3574
+ ]), ze = W(() => !Ne || !L ? null : Bn(F, t, n), [
3575
3575
  Ne,
3576
3576
  L,
3577
3577
  F,
3578
3578
  t,
3579
3579
  n
3580
- ]), [Be, Ve] = K(), [He, Ue] = K(!1), We = G(null), [Ge, Ke] = K(null), qe = ar((e) => {
3580
+ ]), [Be, Ve] = K(), [He, Ue] = K(!1), We = G(null), [Ge, Ke] = K(null), qe = or((e) => {
3581
3581
  We.current = e, Ke(e);
3582
3582
  }, []), R = G(null), [Je, Ye] = K(0), [Xe, Ze] = K(0), Qe = G(Je), $e = G(Xe), et = ve(F);
3583
3583
  U(() => {
@@ -3588,7 +3588,7 @@ var ms = (e, t, n, r, i) => {
3588
3588
  let tt = W(() => JSON.stringify(we), [we]), nt = W(() => JSON.stringify(F), [F]), rt = W(() => JSON.stringify(i), [i]), z = W(() => {
3589
3589
  if (L) return null;
3590
3590
  let e = t;
3591
- return h === "ascending" && (e = [...t].sort((e, t) => e[w] - t[w])), h === "descending" && (e = [...t].sort((e, t) => t[w] - e[w])), T && (e = [...e].reverse()), _e({
3591
+ return h === "ascending" && (e = [...t].sort((e, t) => e[T] - t[T])), h === "descending" && (e = [...t].sort((e, t) => t[T] - e[T])), te && (e = [...e].reverse()), _e({
3592
3592
  isDashboard: N,
3593
3593
  chartOptions: F,
3594
3594
  data: e,
@@ -3616,8 +3616,8 @@ var ms = (e, t, n, r, i) => {
3616
3616
  rt,
3617
3617
  Be,
3618
3618
  h,
3619
- w,
3620
3619
  T,
3620
+ te,
3621
3621
  O,
3622
3622
  ae,
3623
3623
  We,
@@ -3631,7 +3631,7 @@ var ms = (e, t, n, r, i) => {
3631
3631
  Ce,
3632
3632
  N
3633
3633
  ]), [it, at] = K(), [ot, st] = K(), [ct, lt] = K(), ut = ct ?? z;
3634
- or(() => {
3634
+ sr(() => {
3635
3635
  lt(void 0);
3636
3636
  }, [z]);
3637
3637
  let dt = G({
@@ -3669,13 +3669,13 @@ var ms = (e, t, n, r, i) => {
3669
3669
  });
3670
3670
  let t = e.datazoom;
3671
3671
  return e.datazoom = (...e) => {
3672
- let n = e[1], r = _s(n);
3672
+ let n = e[1], r = vs(n);
3673
3673
  Object.keys(r).length && (pt.current.windows = r), t?.(...e);
3674
3674
  }, e;
3675
3675
  }, [ft]), gt = G(/* @__PURE__ */ new Set()), _t = W(() => ({
3676
3676
  ...ht,
3677
3677
  legendselectchanged: (e, t) => {
3678
- Ps({
3678
+ Fs({
3679
3679
  echartsInstance: t,
3680
3680
  optionsObj: dt.current.options,
3681
3681
  params: e,
@@ -3685,15 +3685,15 @@ var ms = (e, t, n, r, i) => {
3685
3685
  }), [ht]), vt = W(() => ({
3686
3686
  ...ht,
3687
3687
  legendselectchanged: (e, t) => {
3688
- Ps({
3688
+ Fs({
3689
3689
  echartsInstance: t,
3690
3690
  optionsObj: dt.current.advancedOptions,
3691
3691
  params: e,
3692
- isGantt: dt.current.chartOptions?.chartType === o.gantt,
3692
+ isGantt: dt.current.chartOptions?.chartType === y.gantt,
3693
3693
  chartIds: gt.current
3694
3694
  });
3695
3695
  }
3696
- }), [ht]), yt = W(() => Ar(vs(ut, F?.chartType, pt.current)), [ut, F?.chartType]), bt = W(() => Ar(vs(it ?? z, F?.chartType, pt.current)), [
3696
+ }), [ht]), yt = W(() => jr(ys(ut, F?.chartType, pt.current)), [ut, F?.chartType]), bt = W(() => jr(ys(it ?? z, F?.chartType, pt.current)), [
3697
3697
  it,
3698
3698
  z,
3699
3699
  F?.chartType
@@ -3710,18 +3710,18 @@ var ms = (e, t, n, r, i) => {
3710
3710
  };
3711
3711
  }, []);
3712
3712
  let [xt, St] = K(0), [Ct, wt] = K(0), [Tt, Et] = K(0), [Dt, Ot] = K([]), [kt, At] = K(!1), jt = W(() => [
3713
- o.indianMap,
3714
- o.geoBarMap,
3715
- o.geoMap,
3716
- o.geoScatterMap,
3717
- o.worldMap
3718
- ].includes(F.chartType), [F.chartType]), Mt = W(() => [o.worldMap, o.indianMap].includes(F?.chartType || "") && Be && t.length && F?.xAxis, [
3713
+ y.indianMap,
3714
+ y.geoBarMap,
3715
+ y.geoMap,
3716
+ y.geoScatterMap,
3717
+ y.worldMap
3718
+ ].includes(F.chartType), [F.chartType]), Mt = W(() => [y.worldMap, y.indianMap].includes(F?.chartType || "") && Be && t.length && F?.xAxis, [
3719
3719
  Be,
3720
3720
  t.length,
3721
3721
  F?.xAxis,
3722
3722
  F.chartType
3723
3723
  ]);
3724
- or(() => {
3724
+ sr(() => {
3725
3725
  if (L || !I) return;
3726
3726
  let e = I.parentElement ?? I, t = () => {
3727
3727
  let t = e.getBoundingClientRect();
@@ -3766,22 +3766,22 @@ var ms = (e, t, n, r, i) => {
3766
3766
  };
3767
3767
  }, [L, I]);
3768
3768
  let Nt = W(() => ke === null ? null : {
3769
- renderer: s?.opts?.renderer || "canvas",
3769
+ renderer: o?.opts?.renderer || "canvas",
3770
3770
  devicePixelRatio: ke
3771
- }, [s?.opts?.renderer, ke]), Pt = W(() => Ms(F.chartType, ut), [ut, F.chartType]);
3771
+ }, [o?.opts?.renderer, ke]), Pt = W(() => Ns(F.chartType, ut), [ut, F.chartType]);
3772
3772
  U(() => {
3773
3773
  if (!L && jt) {
3774
3774
  let e = [
3775
- o.geoBarMap,
3776
- o.geoMap,
3777
- o.geoScatterMap
3775
+ y.geoBarMap,
3776
+ y.geoMap,
3777
+ y.geoScatterMap
3778
3778
  ].includes(F.chartType);
3779
3779
  Ve(null), Ue(!1);
3780
3780
  let t = window.dbn?.geoJsonBaseUrl, n = (e) => fetch(`${t.replace(/\/+$/, "")}/${e}.json`).then((e) => {
3781
3781
  if (!e.ok) throw Error(`Geo outline fetch failed: ${e.status}`);
3782
3782
  return e.json();
3783
3783
  }), r = () => Ue(!0);
3784
- e ? (t ? n("usa") : import("./usa-s6QiUwFP.mjs").then((e) => e.default)).then(Ve).catch(r) : F?.chartType === o.indianMap ? (t ? n("india") : import("./india-D6s43bBg.mjs").then((e) => e.default)).then(Ve).catch(r) : (t ? n("world") : import("./world-CY-Yxrxs.mjs").then((e) => e.default)).then(Ve).catch(r);
3784
+ e ? (t ? n("usa") : import("./usa-s6QiUwFP.mjs").then((e) => e.default)).then(Ve).catch(r) : F?.chartType === y.indianMap ? (t ? n("india") : import("./india-D6s43bBg.mjs").then((e) => e.default)).then(Ve).catch(r) : (t ? n("world") : import("./world-CY-Yxrxs.mjs").then((e) => e.default)).then(Ve).catch(r);
3785
3785
  }
3786
3786
  }, [F.chartType, L]);
3787
3787
  let Ft = W(() => F.customSettings?.showDynamicBehaviour ? pe(t, F) : t, [t, F]);
@@ -3795,7 +3795,7 @@ var ms = (e, t, n, r, i) => {
3795
3795
  language: ye,
3796
3796
  translationDictionary: P,
3797
3797
  dateFilter: Ce,
3798
- chartRef: s?.ref ?? R,
3798
+ chartRef: o?.ref ?? R,
3799
3799
  chartGridWidth: Qe.current,
3800
3800
  chartWidth: $e.current
3801
3801
  }));
@@ -3840,7 +3840,7 @@ var ms = (e, t, n, r, i) => {
3840
3840
  translationDictionary: P,
3841
3841
  language: ye,
3842
3842
  dateFilter: Ce,
3843
- chartRef: s?.ref ?? R,
3843
+ chartRef: o?.ref ?? R,
3844
3844
  chartGridWidth: Qe.current,
3845
3845
  chartWidth: $e.current
3846
3846
  });
@@ -3860,12 +3860,12 @@ var ms = (e, t, n, r, i) => {
3860
3860
  Ce,
3861
3861
  N
3862
3862
  ]);
3863
- let Lt = W(() => [o.linearGauge, o.progressBar].includes(F?.chartType), [F.chartType]), Rt = G(!0), zt = G(void 0);
3863
+ let Lt = W(() => [y.linearGauge, y.progressBar].includes(F?.chartType), [F.chartType]), Rt = G(!0), zt = G(void 0);
3864
3864
  U(() => {
3865
3865
  if (L) return;
3866
3866
  let e = setTimeout(() => {
3867
- let e = (s?.ref ?? R)?.current?.getEchartsInstance();
3868
- if (e && !y.includes(F?.chartType || "")) try {
3867
+ let e = (o?.ref ?? R)?.current?.getEchartsInstance();
3868
+ if (e && !p.includes(F?.chartType || "")) try {
3869
3869
  let t = e._componentsViews?.find((e) => e?.type === "grid")?.__model?.coordinateSystem?._rect;
3870
3870
  t && F?.labelSettings?.wrapText && Ye(t?.width), t?.width && Et(t.width);
3871
3871
  let n = e._componentsViews?.find((e) => e?.type === "legend.scroll" || e?.type === "legend.plain"), r = n?._backgroundEl?.shape?.width || 0, i = n?._backgroundEl?.shape?.height || 0;
@@ -3876,22 +3876,22 @@ var ms = (e, t, n, r, i) => {
3876
3876
  }, 300);
3877
3877
  return () => clearTimeout(e);
3878
3878
  }, [
3879
- s?.ref,
3879
+ o?.ref,
3880
3880
  F,
3881
3881
  L
3882
3882
  ]), U(() => {
3883
3883
  if (L || !z) return;
3884
3884
  let e = setTimeout(() => {
3885
- let e = (s?.ref ?? R)?.current?.getEchartsInstance(), t = z;
3886
- if (e && !y.includes(F?.chartType || "")) {
3887
- let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = z?.xAxis?.[0]?.data?.length || z?.xAxis?.data?.length || 0, a = Tt / i * .7 / z?.series?.length, c = [o.bar].includes(F?.chartType) && (F?.isDynamicSeries && F?.seriesField !== "ungrouped" || F?.seriesField !== "ungrouped"), u = F?.customSettings?.chartZoom?.isZoomEnabled && ["xy", "y"].includes(F?.customSettings?.chartZoom?.zoomAxis || "") ? 40 : 0, f = F?.legendSettings?.disableScroll, p = F?.customSettings?.chartZoom?.isZoomEnabled && ["x", "xy"].includes(F?.customSettings?.chartZoom?.zoomAxis || ""), m = p ? 40 : 0, h = 0, g = 0;
3888
- if (l.includes(F?.legendSettings?.fixedPosition || "") && (h = Ct / r * 100 || 0), d.includes(F?.legendSettings?.fixedPosition || "") && (g = Ct / r * 100 || 0), (s?.ref ?? R)?.current && F?.legendSettings?.position === "vertical" && _.includes(F?.legendSettings?.fixedPosition || "") && F?.chartType !== o.horizontalCombo) {
3889
- if (F?.chartType === o.combo || F?.chartType === o.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3885
+ let e = (o?.ref ?? R)?.current?.getEchartsInstance(), t = z;
3886
+ if (e && !p.includes(F?.chartType || "")) {
3887
+ let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = z?.xAxis?.[0]?.data?.length || z?.xAxis?.data?.length || 0, a = Tt / i * .7 / z?.series?.length, l = [y.bar].includes(F?.chartType) && (F?.isDynamicSeries && F?.seriesField !== "ungrouped" || F?.seriesField !== "ungrouped"), u = F?.customSettings?.chartZoom?.isZoomEnabled && ["xy", "y"].includes(F?.customSettings?.chartZoom?.zoomAxis || "") ? 40 : 0, d = F?.legendSettings?.disableScroll, f = F?.customSettings?.chartZoom?.isZoomEnabled && ["x", "xy"].includes(F?.customSettings?.chartZoom?.zoomAxis || ""), p = f ? 40 : 0, m = 0, h = 0;
3888
+ if (s.includes(F?.legendSettings?.fixedPosition || "") && (m = Ct / r * 100 || 0), b.includes(F?.legendSettings?.fixedPosition || "") && (h = Ct / r * 100 || 0), (o?.ref ?? R)?.current && F?.legendSettings?.position === "vertical" && w.includes(F?.legendSettings?.fixedPosition || "") && F?.chartType !== y.horizontalCombo) {
3889
+ if (F?.chartType === y.combo || F?.chartType === y.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3890
3890
  let e = ((z?.leftOffset + 5 || 0) + u) / n * 100, r = (z?.rightOffset + 5 || 0) / n * 100;
3891
- b.includes(F?.legendSettings?.fixedPosition || "") && (r = (z?.rightOffset + 5 || 0) / n * 100, e = (xt + (z?.leftOffset + 5 || 0)) / n * 100), te.includes(F?.legendSettings?.fixedPosition || "") && (r = (xt + (z?.rightOffset + 5 || 0)) / n * 100, e = (z?.leftOffset + 5 || 0) / n * 100);
3891
+ g.includes(F?.legendSettings?.fixedPosition || "") && (r = (z?.rightOffset + 5 || 0) / n * 100, e = (xt + (z?.leftOffset + 5 || 0)) / n * 100), c.includes(F?.legendSettings?.fixedPosition || "") && (r = (xt + (z?.rightOffset + 5 || 0)) / n * 100, e = (z?.leftOffset + 5 || 0) / n * 100);
3892
3892
  let i = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "vertical" ? {
3893
3893
  ...e,
3894
- left: b.includes(F?.legendSettings?.fixedPosition || "") ? xt : 5
3894
+ left: g.includes(F?.legendSettings?.fixedPosition || "") ? xt : 5
3895
3895
  } : e) : z?.dataZoom;
3896
3896
  t = {
3897
3897
  ...z,
@@ -3905,23 +3905,23 @@ var ms = (e, t, n, r, i) => {
3905
3905
  } else {
3906
3906
  let e = xt / n * 100, r = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "vertical" ? {
3907
3907
  ...e,
3908
- left: b.includes(F?.legendSettings?.fixedPosition || "") ? xt : 5
3908
+ left: g.includes(F?.legendSettings?.fixedPosition || "") ? xt : 5
3909
3909
  } : e) : z?.dataZoom;
3910
3910
  t = {
3911
3911
  ...z,
3912
3912
  grid: {
3913
3913
  ...z?.grid,
3914
- ...b.includes(F?.legendSettings?.fixedPosition || "") ? {
3914
+ ...g.includes(F?.legendSettings?.fixedPosition || "") ? {
3915
3915
  left: `${(F?.margins?.marginLeft || 0) + e}%`,
3916
3916
  right: `${F?.margins?.marginRight || 0}%`
3917
3917
  } : {},
3918
- ...F?.legendSettings?.position && te.includes(F?.legendSettings?.fixedPosition || "") ? {
3918
+ ...F?.legendSettings?.position && c.includes(F?.legendSettings?.fixedPosition || "") ? {
3919
3919
  left: `${F?.margins?.marginLeft || 0}%`,
3920
3920
  right: `${(F?.margins?.marginRight || 0) + e}%`
3921
3921
  } : {}
3922
3922
  },
3923
- ...F?.customSettings?.chartZoom?.isZoomEnabled && b.includes(F?.legendSettings?.fixedPosition || "") ? { dataZoom: r } : {},
3924
- ...c ? { series: z?.series?.map((e, t) => ({
3923
+ ...F?.customSettings?.chartZoom?.isZoomEnabled && g.includes(F?.legendSettings?.fixedPosition || "") ? { dataZoom: r } : {},
3924
+ ...l ? { series: z?.series?.map((e, t) => ({
3925
3925
  ...e,
3926
3926
  barWidth: a,
3927
3927
  itemStyle: {
@@ -3931,24 +3931,24 @@ var ms = (e, t, n, r, i) => {
3931
3931
  })) } : {}
3932
3932
  };
3933
3933
  }
3934
- } else if ((s?.ref ?? R)?.current && F?.chartType === o.horizontalCombo) {
3934
+ } else if ((o?.ref ?? R)?.current && F?.chartType === y.horizontalCombo) {
3935
3935
  let e = xt / n * 100, i = (z?.bottomOffset || 0) / r * 100, a = (z?.topOffset || 0) / r * 100;
3936
- d.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (a = (z?.topOffset + 5 || 0) / r * 100, i = ((Ct || 25) + (z?.bottomOffset + 5 || 0)) / r * 100), l.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (a = ((Ct || 25) + (z?.topOffset + 5 || 0)) / r * 100, i = (z?.bottomOffset + 5 || 0) / r * 100);
3936
+ b.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (a = (z?.topOffset + 5 || 0) / r * 100, i = ((Ct || 25) + (z?.bottomOffset + 5 || 0)) / r * 100), s.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (a = ((Ct || 25) + (z?.topOffset + 5 || 0)) / r * 100, i = (z?.bottomOffset + 5 || 0) / r * 100);
3937
3937
  let o = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "horizontal" ? {
3938
3938
  ...e,
3939
- bottom: d.includes(F?.legendSettings?.fixedPosition || "") ? Ct : 5
3939
+ bottom: b.includes(F?.legendSettings?.fixedPosition || "") ? Ct : 5
3940
3940
  } : e) : z?.dataZoom;
3941
3941
  t = {
3942
3942
  ...z,
3943
3943
  grid: {
3944
3944
  ...z?.grid,
3945
3945
  top: `${(F?.margins?.marginTop || 0) + a}%`,
3946
- bottom: `${(F?.margins?.marginBottom || 0) + i + (p ? 5 : 0)}%`,
3947
- ...b.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "vertical" ? {
3946
+ bottom: `${(F?.margins?.marginBottom || 0) + i + (f ? 5 : 0)}%`,
3947
+ ...g.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "vertical" ? {
3948
3948
  left: `${(F?.margins?.marginLeft || 0) + e}%`,
3949
3949
  right: `${F?.margins?.marginRight || 0}%`
3950
3950
  } : {},
3951
- ...F?.legendSettings?.position && te.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "vertical" ? {
3951
+ ...F?.legendSettings?.position && c.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "vertical" ? {
3952
3952
  left: `${F?.margins?.marginLeft || 0}%`,
3953
3953
  right: `${(F?.margins?.marginRight || 0) + e}%`
3954
3954
  } : {}
@@ -3956,11 +3956,11 @@ var ms = (e, t, n, r, i) => {
3956
3956
  ...F?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: o } : {}
3957
3957
  };
3958
3958
  } else {
3959
- let e = F?.legendSettings?.position === "horizontal" && d.includes(F?.legendSettings?.fixedPosition || ""), r = e && (m + Ct) / n * 100 || 0, i = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "horizontal" ? {
3959
+ let e = F?.legendSettings?.position === "horizontal" && b.includes(F?.legendSettings?.fixedPosition || ""), r = e && (p + Ct) / n * 100 || 0, i = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "horizontal" ? {
3960
3960
  ...e,
3961
3961
  bottom: Ct
3962
3962
  } : e) : null;
3963
- if (F?.chartType === o.combo || F?.chartType === o.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3963
+ if (F?.chartType === y.combo || F?.chartType === y.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3964
3964
  let a = ((z?.leftOffset || 0) + u) / n * 100, o = (z?.rightOffset || 0) / n * 100;
3965
3965
  t = {
3966
3966
  ...z,
@@ -3969,9 +3969,9 @@ var ms = (e, t, n, r, i) => {
3969
3969
  ...z?.grid,
3970
3970
  left: `${(F?.margins?.marginLeft || 0) + a}%`,
3971
3971
  right: `${(F?.margins?.marginRight || 0) + o}%`,
3972
- ...f ? {
3973
- top: `${(F?.margins?.marginTop || 0) + h}%`,
3974
- bottom: `${(F?.margins?.marginBottom || 0) + g + (p ? r : 0)}%`
3972
+ ...d ? {
3973
+ top: `${(F?.margins?.marginTop || 0) + m}%`,
3974
+ bottom: `${(F?.margins?.marginBottom || 0) + h + (f ? r : 0)}%`
3975
3975
  } : {}
3976
3976
  }
3977
3977
  };
@@ -3984,12 +3984,12 @@ var ms = (e, t, n, r, i) => {
3984
3984
  ...z?.grid,
3985
3985
  left: `${(F?.margins?.marginLeft || 0) + s}%`,
3986
3986
  right: `${F?.margins?.marginRight || 0}%`,
3987
- ...f ? {
3988
- top: `${(F?.margins?.marginTop || 0) + h}%`,
3989
- bottom: `${(F?.margins?.marginBottom || 0) + g + (p ? r : 0)}%`
3987
+ ...d ? {
3988
+ top: `${(F?.margins?.marginTop || 0) + m}%`,
3989
+ bottom: `${(F?.margins?.marginBottom || 0) + h + (f ? r : 0)}%`
3990
3990
  } : {}
3991
3991
  },
3992
- ...c ? { series: z?.series?.map((e, t) => ({
3992
+ ...l ? { series: z?.series?.map((e, t) => ({
3993
3993
  ...e,
3994
3994
  barWidth: a,
3995
3995
  itemStyle: {
@@ -4001,7 +4001,7 @@ var ms = (e, t, n, r, i) => {
4001
4001
  }
4002
4002
  }
4003
4003
  } else t = z;
4004
- e && y.includes(F?.chartType || "") && (t = Ur(t, {
4004
+ e && p.includes(F?.chartType || "") && (t = Wr(t, {
4005
4005
  chartType: F?.chartType,
4006
4006
  canvas: {
4007
4007
  width: e.getWidth?.() || 0,
@@ -4015,7 +4015,7 @@ var ms = (e, t, n, r, i) => {
4015
4015
  return () => clearTimeout(e);
4016
4016
  }, [
4017
4017
  L,
4018
- s?.ref,
4018
+ o?.ref,
4019
4019
  z,
4020
4020
  F,
4021
4021
  xt,
@@ -4023,7 +4023,7 @@ var ms = (e, t, n, r, i) => {
4023
4023
  Tt,
4024
4024
  ae?.chartLegend
4025
4025
  ]), U(() => {
4026
- if (L || !z || (zt.current &&= (clearInterval(zt.current), void 0), F.chartType !== o.geoBarMap)) return;
4026
+ if (L || !z || (zt.current &&= (clearInterval(zt.current), void 0), F.chartType !== y.geoBarMap)) return;
4027
4027
  let e = We.current;
4028
4028
  if (!e || typeof IntersectionObserver != "function") return Rt.current = !0, zt.current = setInterval(() => {
4029
4029
  st(Rt.current ? z.geoOption : z.barOption), Rt.current = !Rt.current;
@@ -4049,7 +4049,7 @@ var ms = (e, t, n, r, i) => {
4049
4049
  L,
4050
4050
  z
4051
4051
  ]);
4052
- let { ref: Bt, ...Vt } = s || {};
4052
+ let { ref: Bt, ...Vt } = o || {};
4053
4053
  U(() => {
4054
4054
  if (!L && Mt) {
4055
4055
  let e = [], n = new Set(Be?.features?.map((e) => e.properties.name));
@@ -4071,15 +4071,15 @@ var ms = (e, t, n, r, i) => {
4071
4071
  }], [F?.xAxis, F?.yAxisList]);
4072
4072
  U(() => {
4073
4073
  if (!L && (Ge && [
4074
- o.gaugeV2,
4075
- o.linearGaugeV2,
4076
- o.progressBarV2,
4077
- o.funnelV2
4074
+ y.gaugeV2,
4075
+ y.linearGaugeV2,
4076
+ y.progressBarV2,
4077
+ y.funnelV2
4078
4078
  ].includes(F.chartType) && z?.drawD3Chart && z?.drawD3Chart(), ![
4079
- o.gaugeV2,
4080
- o.linearGaugeV2,
4081
- o.progressBarV2,
4082
- o.funnelV2
4079
+ y.gaugeV2,
4080
+ y.linearGaugeV2,
4081
+ y.progressBarV2,
4082
+ y.funnelV2
4083
4083
  ].includes(F.chartType))) {
4084
4084
  let e = document.querySelector("#dbn-portal");
4085
4085
  (document.querySelector("#chartContainer #gaugeContainer") || e?.shadowRoot?.querySelector("#chartContainer #gaugeContainer"))?.remove(), (document.querySelector("#chartContainer #gaugeV2") || e?.shadowRoot?.querySelector("#chartContainer #gaugeV2"))?.remove(), (document.querySelector("#chartContainer #lineargauge") || e?.shadowRoot?.querySelector("#chartContainer #lineargauge"))?.remove(), (document.querySelector("#chartContainer #progressBar") || e?.shadowRoot?.querySelector("#chartContainer #progressBar"))?.remove(), (document.querySelector("#chartContainer #funnelContainer") || e?.shadowRoot?.querySelector("#chartContainer #funnelContainer"))?.remove();
@@ -4090,7 +4090,7 @@ var ms = (e, t, n, r, i) => {
4090
4090
  F.chartType,
4091
4091
  z?.drawD3Chart
4092
4092
  ]), U(() => {
4093
- let e = (s?.ref ?? R)?.current?.getEchartsInstance?.();
4093
+ let e = (o?.ref ?? R)?.current?.getEchartsInstance?.();
4094
4094
  if (!e || !F?.labelSettings?.wrapText) return;
4095
4095
  let t, n = () => {
4096
4096
  clearTimeout(t), t = setTimeout(() => {
@@ -4106,14 +4106,14 @@ var ms = (e, t, n, r, i) => {
4106
4106
  i.disconnect(), clearTimeout(t);
4107
4107
  };
4108
4108
  }, [
4109
- s?.ref,
4109
+ o?.ref,
4110
4110
  R,
4111
4111
  F?.labelSettings?.wrapText,
4112
4112
  F?.chartType
4113
4113
  ]);
4114
4114
  let Ut;
4115
4115
  if (L) {
4116
- let e = wr(F.chartType), t = Lt && (O || 0) >= 6 ? Math.min(100, e) : typeof O == "number" && O > 0 ? Math.max(e, O * 24) : e;
4116
+ let e = Tr(F.chartType), t = Lt && (O || 0) >= 6 ? Math.min(100, e) : typeof O == "number" && O > 0 ? Math.max(e, O * 24) : e;
4117
4117
  Ut = /* @__PURE__ */ q("div", {
4118
4118
  style: {
4119
4119
  width: "100%",
@@ -4129,7 +4129,7 @@ var ms = (e, t, n, r, i) => {
4129
4129
  className: "dbn:w-full dbn:h-full",
4130
4130
  "aria-hidden": !0
4131
4131
  }),
4132
- children: /* @__PURE__ */ q(Ds, {
4132
+ children: /* @__PURE__ */ q(Os, {
4133
4133
  type: L.type,
4134
4134
  data: L.data,
4135
4135
  answerLineInput: ze,
@@ -4140,27 +4140,27 @@ var ms = (e, t, n, r, i) => {
4140
4140
  colorBy: L.colorBy,
4141
4141
  valueFormatter: Re,
4142
4142
  chartColors: a === !1 ? void 0 : i,
4143
- renderer: s?.opts?.renderer,
4144
- onEvents: Es(L.type === "singleValue" ? ws(r, s) : r, s?.ref),
4143
+ renderer: o?.opts?.renderer,
4144
+ onEvents: Ds(L.type === "singleValue" ? Ts(r, o) : r, o?.ref),
4145
4145
  className: u
4146
4146
  })
4147
4147
  })
4148
4148
  });
4149
- } else Ut = F.chartType === o.radar ? /* @__PURE__ */ q(ts, {
4149
+ } else Ut = F.chartType === y.radar ? /* @__PURE__ */ q(ns, {
4150
4150
  chartType: F.chartType,
4151
4151
  text: Ne ? "Radar needs one category and at least three measures." : "Radar requires the new chart engine."
4152
4152
  }) : !z || Nt === null ? null : (() => {
4153
4153
  let e = [
4154
- o.indianMap,
4155
- o.geoBarMap,
4156
- o.geoMap,
4157
- o.geoScatterMap,
4158
- o.worldMap
4154
+ y.indianMap,
4155
+ y.geoBarMap,
4156
+ y.geoMap,
4157
+ y.geoScatterMap,
4158
+ y.worldMap
4159
4159
  ].includes(F.chartType);
4160
- return e && He ? /* @__PURE__ */ q(ts, {
4160
+ return e && He ? /* @__PURE__ */ q(ns, {
4161
4161
  chartType: F.chartType,
4162
4162
  text: "Could not load the map outline. Check your connection and try again."
4163
- }) : e && !Be ? /* @__PURE__ */ q(Xn, {}) : F.chartType === o.singleValue ? /* @__PURE__ */ q(hs, {
4163
+ }) : e && !Be ? /* @__PURE__ */ q(Zn, {}) : F.chartType === y.singleValue ? /* @__PURE__ */ q(gs, {
4164
4164
  ...Vt,
4165
4165
  value: z.value,
4166
4166
  settings: z.settings,
@@ -4174,7 +4174,7 @@ var ms = (e, t, n, r, i) => {
4174
4174
  translationDictionary: P,
4175
4175
  setHoverSubHeader: be,
4176
4176
  renderOpts: Nt
4177
- }) : F.chartType === o.horizontalStackTable ? /* @__PURE__ */ q(ls, {
4177
+ }) : F.chartType === y.horizontalStackTable ? /* @__PURE__ */ q(us, {
4178
4178
  ...Vt,
4179
4179
  data: z.data,
4180
4180
  rawData: t,
@@ -4194,9 +4194,9 @@ var ms = (e, t, n, r, i) => {
4194
4194
  stackCols: F.stackTableCols || [],
4195
4195
  colors: z.colors,
4196
4196
  showLabels: F.customSettings?.showStackLabels,
4197
- onChangePage: s?.onChangePage,
4198
- setChartSettings: s?.setChartSettings,
4199
- dropdownZindex: s?.dropdownZindex,
4197
+ onChangePage: o?.onChangePage,
4198
+ setChartSettings: o?.setChartSettings,
4199
+ dropdownZindex: o?.dropdownZindex,
4200
4200
  additionalSettings: {
4201
4201
  barRadius: F?.customSettings?.barRadius,
4202
4202
  barWidth: F?.customSettings?.barWidth,
@@ -4207,12 +4207,12 @@ var ms = (e, t, n, r, i) => {
4207
4207
  ].includes(F?.labelSettings?.position) ? F?.labelSettings?.position : "bottom"
4208
4208
  },
4209
4209
  renderOpts: Nt
4210
- }) : F.chartType === o.table ? /* @__PURE__ */ q(cs, {
4210
+ }) : F.chartType === y.table ? /* @__PURE__ */ q(ls, {
4211
4211
  chartFieldFormats: F.customSettings?.chartFieldFormats,
4212
4212
  yAxisList: F?.yAxisList || [],
4213
4213
  ...Vt,
4214
- onChangePaginationColumnFilters: s?.onChangePaginationColumnFilters,
4215
- tableColumnFilters: s?.tableColumnFilters,
4214
+ onChangePaginationColumnFilters: o?.onChangePaginationColumnFilters,
4215
+ tableColumnFilters: o?.tableColumnFilters,
4216
4216
  events: r,
4217
4217
  data: z.data,
4218
4218
  error: "",
@@ -4231,27 +4231,27 @@ var ms = (e, t, n, r, i) => {
4231
4231
  },
4232
4232
  dateColumns: F?.dateColumns,
4233
4233
  className: u,
4234
- isExternalChart: s?.isExternalChart,
4235
- isFullScreenChart: s?.isFullScreenChart,
4236
- onChangePage: s?.onChangePage,
4237
- isEnableNextBtn: s?.isEnableNextBtn,
4238
- isEnablePrevBtn: s?.isEnablePrevBtn,
4239
- paginationInfo: s?.paginationInfo,
4240
- setChartSettings: s?.setChartSettings,
4241
- isShowFullScreen: f,
4234
+ isExternalChart: o?.isExternalChart,
4235
+ isFullScreenChart: o?.isFullScreenChart,
4236
+ onChangePage: o?.onChangePage,
4237
+ isEnableNextBtn: o?.isEnableNextBtn,
4238
+ isEnablePrevBtn: o?.isEnablePrevBtn,
4239
+ paginationInfo: o?.paginationInfo,
4240
+ setChartSettings: o?.setChartSettings,
4241
+ isShowFullScreen: d,
4242
4242
  isMetricCard: M,
4243
- isShowFullScreenEnabled: p && !Se,
4243
+ isShowFullScreenEnabled: f && !Se,
4244
4244
  metricId: m,
4245
- onMaximize: g,
4246
- dropdownZindex: s?.dropdownZindex,
4245
+ onMaximize: _,
4246
+ dropdownZindex: o?.dropdownZindex,
4247
4247
  externalGlobalFilter: ce,
4248
4248
  setExternalGlobalFilter: me,
4249
4249
  language: ye,
4250
4250
  translationDictionary: P,
4251
- isDisableChartActions: !s?.chartClickConfig?.isEnable,
4251
+ isDisableChartActions: !o?.chartClickConfig?.isEnable,
4252
4252
  onDownloadData: Te,
4253
4253
  isDownloading: Ee
4254
- }) : F.chartType === o.trendAnalyzer ? /* @__PURE__ */ q(Lo, {
4254
+ }) : F.chartType === y.trendAnalyzer ? /* @__PURE__ */ q(Ro, {
4255
4255
  ...Vt,
4256
4256
  events: r,
4257
4257
  data: z.data,
@@ -4271,41 +4271,41 @@ var ms = (e, t, n, r, i) => {
4271
4271
  },
4272
4272
  dateColumns: F?.dateColumns,
4273
4273
  className: u,
4274
- isExternalChart: s?.isExternalChart,
4275
- isFullScreenChart: s?.isFullScreenChart,
4276
- onChangePage: s?.onChangePage,
4277
- isEnableNextBtn: s?.isEnableNextBtn,
4278
- isEnablePrevBtn: s?.isEnablePrevBtn,
4279
- paginationInfo: s?.paginationInfo,
4280
- setChartSettings: s?.setChartSettings,
4281
- isShowFullScreen: f,
4274
+ isExternalChart: o?.isExternalChart,
4275
+ isFullScreenChart: o?.isFullScreenChart,
4276
+ onChangePage: o?.onChangePage,
4277
+ isEnableNextBtn: o?.isEnableNextBtn,
4278
+ isEnablePrevBtn: o?.isEnablePrevBtn,
4279
+ paginationInfo: o?.paginationInfo,
4280
+ setChartSettings: o?.setChartSettings,
4281
+ isShowFullScreen: d,
4282
4282
  isMetricCard: M,
4283
- isShowFullScreenEnabled: p && !Se,
4284
- onMaximize: g,
4285
- dropdownZindex: s?.dropdownZindex,
4283
+ isShowFullScreenEnabled: f && !Se,
4284
+ onMaximize: _,
4285
+ dropdownZindex: o?.dropdownZindex,
4286
4286
  externalGlobalFilter: ce,
4287
4287
  setExternalGlobalFilter: me,
4288
4288
  language: ye,
4289
4289
  translationDictionary: P,
4290
- isDisableChartActions: !s?.chartClickConfig?.isEnable,
4290
+ isDisableChartActions: !o?.chartClickConfig?.isEnable,
4291
4291
  onDownloadData: Te,
4292
4292
  isDownloading: Ee
4293
- }) : F.chartType === o.pivot ? /* @__PURE__ */ q(us, {
4293
+ }) : F.chartType === y.pivot ? /* @__PURE__ */ q(ds, {
4294
4294
  ...Vt,
4295
4295
  data: t,
4296
4296
  pivotTableSettings: z.pivotTableSettings,
4297
4297
  tableSettings: z?.tableSettings
4298
- }) : F.chartType === o.pivotV2 ? /* @__PURE__ */ q(ds, { props: {
4298
+ }) : F.chartType === y.pivotV2 ? /* @__PURE__ */ q(fs, { props: {
4299
4299
  columns: z?.pivotTableSettings2?.headers || [],
4300
4300
  data: t || [],
4301
4301
  rows: z?.pivotTableSettings2?.dimensions || [],
4302
4302
  values: z?.pivotTableSettings2?.measures || [],
4303
- onChartReady: s?.onChartReady,
4303
+ onChartReady: o?.onChartReady,
4304
4304
  headerSettings: z?.pivotTableSettings2?.headerSettings,
4305
4305
  measures: z?.pivotTableSettings2?.aggregates || [],
4306
4306
  isEnableStripedRows: z?.pivotTableSettings2?.isEnableStripedRows,
4307
4307
  dimensions: z?.pivotTableSettings2?.dims || [],
4308
- onDrillPivotTable: S,
4308
+ onDrillPivotTable: v,
4309
4309
  pivotDrillState: ee,
4310
4310
  formatSettings: {
4311
4311
  isEnableFormatting: F?.tableSettings?.isEnableNumberFormatting,
@@ -4318,16 +4318,16 @@ var ms = (e, t, n, r, i) => {
4318
4318
  isEnableTableSort: F?.tableSettings?.enableSorting,
4319
4319
  isEnableAllSort: F?.tableSettings?.isEnableAllSort,
4320
4320
  tableSettings: z?.tableSettings
4321
- } }) : F.chartType === o.pivotV3 ? /* @__PURE__ */ q(fs, { props: {
4321
+ } }) : F.chartType === y.pivotV3 ? /* @__PURE__ */ q(ps, { props: {
4322
4322
  columns: z?.pivotTableSettings3?.columns || [],
4323
4323
  data: t || [],
4324
4324
  rows: z?.pivotTableSettings3?.rows || [],
4325
- onChartReady: s?.onChartReady,
4325
+ onChartReady: o?.onChartReady,
4326
4326
  headerSettings: z?.pivotTableSettings3?.headerSettings,
4327
4327
  measures: z?.pivotTableSettings3?.aggregates || [],
4328
4328
  isEnableStripedRows: z?.pivotTableSettings2?.isEnableStripedRows,
4329
4329
  dimensions: z?.pivotTableSettings3?.dims || [],
4330
- onDrillPivotTable: S,
4330
+ onDrillPivotTable: v,
4331
4331
  pivotDrillState: ee,
4332
4332
  formatSettings: {
4333
4333
  isEnableFormatting: F?.tableSettings?.isEnableNumberFormatting,
@@ -4349,31 +4349,31 @@ var ms = (e, t, n, r, i) => {
4349
4349
  hiddenColumns: z?.pivotTableSettings3?.hiddenColumns || [],
4350
4350
  orderedColumns: z?.pivotTableSettings3?.orderedColumns || []
4351
4351
  } }) : [
4352
- o.bar,
4353
- o.line,
4354
- o.area,
4355
- o.stackedArea,
4356
- o.timeSeries
4357
- ].includes(F.chartType) && F.customSettings?.showDynamicBehaviour && !et ? /* @__PURE__ */ nr(es, {
4352
+ y.bar,
4353
+ y.line,
4354
+ y.area,
4355
+ y.stackedArea,
4356
+ y.timeSeries
4357
+ ].includes(F.chartType) && F.customSettings?.showDynamicBehaviour && !et ? /* @__PURE__ */ rr(ts, {
4358
4358
  style: {
4359
4359
  width: "100%",
4360
4360
  height: "100%"
4361
4361
  },
4362
- ...As(s),
4362
+ ...js(o),
4363
4363
  option: bt,
4364
4364
  className: u,
4365
4365
  key: Pt,
4366
- ref: s?.ref ?? R,
4366
+ ref: o?.ref ?? R,
4367
4367
  onEvents: _t,
4368
- notMerge: js(F.chartType),
4368
+ notMerge: Ms(F.chartType),
4369
4369
  opts: Nt
4370
- }) : F.chartType === o.geoBarMap ? /* @__PURE__ */ q(es, {
4370
+ }) : F.chartType === y.geoBarMap ? /* @__PURE__ */ q(ts, {
4371
4371
  style: {
4372
4372
  width: "100%",
4373
4373
  height: "100%"
4374
4374
  },
4375
- ...As(s),
4376
- option: Ar({
4375
+ ...js(o),
4376
+ option: jr({
4377
4377
  ...ot || z?.geoOption,
4378
4378
  animation: !0
4379
4379
  }),
@@ -4382,33 +4382,33 @@ var ms = (e, t, n, r, i) => {
4382
4382
  notMerge: !0,
4383
4383
  opts: Nt
4384
4384
  }) : [
4385
- o.gaugeV2,
4386
- o.linearGaugeV2,
4387
- o.progressBarV2,
4388
- o.funnelV2
4385
+ y.gaugeV2,
4386
+ y.linearGaugeV2,
4387
+ y.progressBarV2,
4388
+ y.funnelV2
4389
4389
  ].includes(F.chartType) ? /* @__PURE__ */ q("div", {
4390
4390
  ref: qe,
4391
4391
  className: "dbn:w-full dbn:h-full dbn:flex dbn:flex-col"
4392
- }) : F?.chartType === o.gauge ? /* @__PURE__ */ q(ts, {
4392
+ }) : F?.chartType === y.gauge ? /* @__PURE__ */ q(ns, {
4393
4393
  chartType: F?.chartType,
4394
4394
  subText: "Please use the Gauge V2 chart instead."
4395
- }) : [o.worldMap, o.indianMap].includes(F.chartType) ? /* @__PURE__ */ J("div", {
4395
+ }) : [y.worldMap, y.indianMap].includes(F.chartType) ? /* @__PURE__ */ J("div", {
4396
4396
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4397
4397
  id: "chartContainer",
4398
- children: [Mt && Dt?.length ? /* @__PURE__ */ J(c, {
4398
+ children: [Mt && Dt?.length ? /* @__PURE__ */ J(l, {
4399
4399
  variant: "popover",
4400
4400
  onClick: () => At(!kt),
4401
4401
  className: $.buttonText,
4402
4402
  children: ["Go To Geo ", kt ? "Map >" : "Table >"]
4403
- }) : null, kt ? /* @__PURE__ */ q(Mo, {
4403
+ }) : null, kt ? /* @__PURE__ */ q(No, {
4404
4404
  data: Dt,
4405
4405
  headers: Ht
4406
- }) : /* @__PURE__ */ q(es, {
4406
+ }) : /* @__PURE__ */ q(ts, {
4407
4407
  style: {
4408
4408
  width: "100%",
4409
4409
  height: Lt && (O || 0) >= 6 ? "100px" : Lt && !O ? "40%" : "100%"
4410
4410
  },
4411
- ...As(s),
4411
+ ...js(o),
4412
4412
  option: F.customSettings?.chartZoom?.isZoomEnabled ? {
4413
4413
  ...yt,
4414
4414
  animation: !0
@@ -4417,7 +4417,7 @@ var ms = (e, t, n, r, i) => {
4417
4417
  animation: !1
4418
4418
  },
4419
4419
  className: u,
4420
- ref: s?.ref ?? R,
4420
+ ref: o?.ref ?? R,
4421
4421
  onEvents: ht,
4422
4422
  notMerge: !0,
4423
4423
  opts: Nt
@@ -4425,22 +4425,22 @@ var ms = (e, t, n, r, i) => {
4425
4425
  }) : /* @__PURE__ */ q("div", {
4426
4426
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4427
4427
  id: "chartContainer",
4428
- children: M ? /* @__PURE__ */ q(Is, {
4428
+ children: M ? /* @__PURE__ */ q(Ls, {
4429
4429
  chartHeight: O,
4430
4430
  hasDecreasedHeight: Lt,
4431
- config: s,
4431
+ config: o,
4432
4432
  chartOptions: F,
4433
4433
  options: yt,
4434
4434
  className: u,
4435
4435
  onEvents: vt,
4436
- chartRef: s?.ref ?? R,
4436
+ chartRef: o?.ref ?? R,
4437
4437
  renderOpts: Nt
4438
- }) : /* @__PURE__ */ nr(es, {
4438
+ }) : /* @__PURE__ */ rr(ts, {
4439
4439
  style: {
4440
4440
  width: "100%",
4441
4441
  height: Lt && (O || 0) >= 6 ? "100px" : Lt && !O ? "40%" : "100%"
4442
4442
  },
4443
- ...As(s),
4443
+ ...js(o),
4444
4444
  option: F.customSettings?.chartZoom?.isZoomEnabled ? {
4445
4445
  ...yt,
4446
4446
  animation: !0
@@ -4451,8 +4451,8 @@ var ms = (e, t, n, r, i) => {
4451
4451
  className: u,
4452
4452
  key: Pt,
4453
4453
  onEvents: vt,
4454
- ref: s?.ref ?? R,
4455
- notMerge: js(F.chartType),
4454
+ ref: o?.ref ?? R,
4455
+ notMerge: Ms(F.chartType),
4456
4456
  opts: Nt
4457
4457
  })
4458
4458
  });
@@ -4471,4 +4471,4 @@ var ms = (e, t, n, r, i) => {
4471
4471
  });
4472
4472
  });
4473
4473
  //#endregion
4474
- export { yr as a, vr as c, hr as d, lr as f, Sr as i, _r as l, ys as n, br as o, cs as r, xr as s, Ls as t, gr as u };
4474
+ export { br as a, yr as c, gr as d, ur as f, Cr as i, vr as l, bs as n, xr as o, ls as r, Sr as s, Rs as t, _r as u };