@arcgis/charts-components 5.1.7 → 5.1.9

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 (106) hide show
  1. package/dist/cdn/{VP644A55.js → 255OWYZ7.js} +1 -1
  2. package/dist/cdn/{M2M2BTFT.js → 2GRBCFHP.js} +1 -1
  3. package/dist/cdn/{GGVEMANV.js → 37Q6YB2F.js} +1 -1
  4. package/dist/cdn/{77CBAL3N.js → 37WVMHZO.js} +1 -1
  5. package/dist/cdn/{5NBLVE62.js → 3BAN77GV.js} +1 -1
  6. package/dist/cdn/{HMJ4RCP2.js → 3C7XWLMO.js} +1 -1
  7. package/dist/cdn/{VJZRKHL3.js → 3UFIR7MH.js} +1 -1
  8. package/dist/cdn/{ZD4GCWUA.js → 3UKGJLWY.js} +1 -1
  9. package/dist/cdn/{RNVUH2ZG.js → 465TELT3.js} +1 -1
  10. package/dist/cdn/{3SZUW37Y.js → 47FUB64F.js} +1 -1
  11. package/dist/cdn/{2EXBJDDC.js → 4HSPARNL.js} +1 -1
  12. package/dist/cdn/{FSAWMHCJ.js → 4PKKQ4LC.js} +1 -1
  13. package/dist/cdn/{XGMT63IO.js → 4UTTKKDQ.js} +1 -1
  14. package/dist/cdn/{53TNU4HW.js → 5DANJEHY.js} +1 -1
  15. package/dist/cdn/{TVK7PI7J.js → 5VSDOBZ7.js} +1 -1
  16. package/dist/cdn/{UGXE2O7L.js → 5Y4XWFUM.js} +1 -1
  17. package/dist/cdn/{4UP5B3N6.js → 5YNVXGU3.js} +1 -1
  18. package/dist/cdn/{5Q22WA6Q.js → 62HNQELB.js} +1 -1
  19. package/dist/cdn/{DKYJA35R.js → 6AAJK6RN.js} +1 -1
  20. package/dist/cdn/{VVYGLVH2.js → 6CLV7RY4.js} +1 -1
  21. package/dist/cdn/{LWSGFRJI.js → 755J6YPE.js} +1 -1
  22. package/dist/cdn/{VBZG6GU5.js → 7CHZWQ57.js} +1 -1
  23. package/dist/cdn/{YRLKJ2X4.js → 7JFAQ5QS.js} +1 -1
  24. package/dist/cdn/{B7QVXJAI.js → 7JNAZ4H4.js} +1 -1
  25. package/dist/cdn/{6IU7YPGD.js → 7YPQSIYR.js} +1 -1
  26. package/dist/cdn/{5VCTSMNN.js → ABUHCCE6.js} +1 -1
  27. package/dist/cdn/{ZPTAEKAW.js → ABYPCAQM.js} +1 -1
  28. package/dist/cdn/{LNQXAWWI.js → ACQ5LTFU.js} +1 -1
  29. package/dist/cdn/{6C5WQFZL.js → AJW65YRA.js} +1 -1
  30. package/dist/cdn/{6HAD5KHB.js → BG3MPQLD.js} +1 -1
  31. package/dist/cdn/{4MC2YEFM.js → BV47ZZ4J.js} +1 -1
  32. package/dist/cdn/{K7OQDPXF.js → CVAG7GZG.js} +1 -1
  33. package/dist/cdn/{CCXXGTJV.js → DHRNVTPS.js} +1 -1
  34. package/dist/cdn/{CEKV6JXN.js → DMKKYXJZ.js} +1 -1
  35. package/dist/cdn/{RG4E4ROZ.js → DRJ3UAJL.js} +1 -1
  36. package/dist/cdn/{KE7TS5EK.js → DYKIDDUP.js} +1 -1
  37. package/dist/cdn/{QIU375OW.js → E6BPMQRR.js} +1 -1
  38. package/dist/cdn/{72FTZEYR.js → ELQVXFQO.js} +1 -1
  39. package/dist/cdn/{WLJSMNXN.js → F22ZD5FL.js} +1 -1
  40. package/dist/cdn/{Z7MMGJFE.js → F32Q7XQE.js} +1 -1
  41. package/dist/cdn/{4H5ED3J2.js → FI7R54OE.js} +14 -14
  42. package/dist/cdn/{UEWACWNA.js → FWBXUTZH.js} +1 -1
  43. package/dist/cdn/{MSVCAYZS.js → G35PZN7Q.js} +1 -1
  44. package/dist/cdn/{L2USBON5.js → G5C4NSEI.js} +1 -1
  45. package/dist/cdn/{PBYOPQZZ.js → GEEYEKG6.js} +1 -1
  46. package/dist/cdn/{BQIO4SFV.js → GO7LCWSD.js} +1 -1
  47. package/dist/cdn/GWFW2J7D.js +3 -0
  48. package/dist/cdn/{EJSVQFYP.js → H2URXBC3.js} +1 -1
  49. package/dist/cdn/{26FVMDJO.js → HUJ3GP6I.js} +1 -1
  50. package/dist/cdn/{WSFZEGS4.js → IVQ5GBPA.js} +1 -1
  51. package/dist/cdn/{2XM5I7K7.js → J4SU6E43.js} +1 -1
  52. package/dist/cdn/{NJX5OKGW.js → JHARBYHG.js} +1 -1
  53. package/dist/cdn/{KEFYEYPR.js → JLN5O42Q.js} +1 -1
  54. package/dist/cdn/{IXDJ3MA3.js → JU5LEOTM.js} +1 -1
  55. package/dist/cdn/{ZVI4X53P.js → JWLOGLQP.js} +1 -1
  56. package/dist/cdn/{ZCUCWPLC.js → K5DQPSDV.js} +1 -1
  57. package/dist/cdn/{5XKTX2ED.js → KCODK2Z4.js} +1 -1
  58. package/dist/cdn/{LBDGW4XX.js → LJDZ6WFS.js} +1 -1
  59. package/dist/cdn/{VR6KGABY.js → LOIRCO6P.js} +1 -1
  60. package/dist/cdn/{6MB4LTPX.js → LSF6KE7G.js} +1 -1
  61. package/dist/cdn/{VWTWJ7YZ.js → LZQ52QPJ.js} +1 -1
  62. package/dist/cdn/{4F53EV6H.js → MC5V6KVP.js} +1 -1
  63. package/dist/cdn/{L6JUKUXL.js → MD37DSV6.js} +1 -1
  64. package/dist/cdn/{EK3UQJGQ.js → MOIUDDC3.js} +1 -1
  65. package/dist/cdn/{GEW5J27H.js → MQWTRA5I.js} +1 -1
  66. package/dist/cdn/{BMZLASFX.js → MYPQ5NAS.js} +1 -1
  67. package/dist/cdn/{7DC5CO2S.js → NCV7HM42.js} +1 -1
  68. package/dist/cdn/{YMVVZEQ3.js → NM5VZ56D.js} +1 -1
  69. package/dist/cdn/{J7LPA6IR.js → NQGTZMQB.js} +1 -1
  70. package/dist/cdn/{OMZBB2D5.js → NYW3LNXY.js} +1 -1
  71. package/dist/cdn/{KFPQOAZG.js → P7ATISIU.js} +1 -1
  72. package/dist/cdn/{GGLFJRLY.js → QDNXFCKJ.js} +1 -1
  73. package/dist/cdn/{X3JYCSYW.js → QHBAR37B.js} +1 -1
  74. package/dist/cdn/{2IOS4IWI.js → QSQVSIHM.js} +1 -1
  75. package/dist/cdn/{UUM2LTMI.js → QUPXQHQW.js} +1 -1
  76. package/dist/cdn/{JB6UVHVR.js → QVFFZ5SA.js} +1 -1
  77. package/dist/cdn/{UQU4QNRF.js → R6GJP6XF.js} +1 -1
  78. package/dist/cdn/{LSDIQWV2.js → RDHR52A2.js} +1 -1
  79. package/dist/cdn/{TWAZEJ4H.js → RK633SA6.js} +1 -1
  80. package/dist/cdn/{N5OD2IAF.js → RQIJF4NT.js} +1 -1
  81. package/dist/cdn/{WT442GMP.js → RSAWA4WE.js} +1 -1
  82. package/dist/cdn/{2L23H347.js → TAJJGDI5.js} +1 -1
  83. package/dist/cdn/{C7GRHFCP.js → TCIQPVPQ.js} +1 -1
  84. package/dist/cdn/{C433QEJV.js → TFNJ7NJY.js} +1 -1
  85. package/dist/cdn/{6UN2WGMW.js → TTFK6GBS.js} +1 -1
  86. package/dist/cdn/{FVEFPZYM.js → V7S4OT7K.js} +1 -1
  87. package/dist/cdn/{2TKMBOEI.js → VCXFNB36.js} +1 -1
  88. package/dist/cdn/{V2HJGQHM.js → WJ75DYA2.js} +1 -1
  89. package/dist/cdn/{YRSSI3KD.js → WOM5J4ZG.js} +1 -1
  90. package/dist/cdn/{JB2ACWRF.js → X7NW5CHC.js} +1 -1
  91. package/dist/cdn/{XCDICJDS.js → XAV2ZVJI.js} +1 -1
  92. package/dist/cdn/{SQFJ6LCV.js → XLTPNCZO.js} +1 -1
  93. package/dist/cdn/{DKRCTSUH.js → XO4ZT2RZ.js} +1 -1
  94. package/dist/cdn/{ILJXET3Y.js → XZD6B44Y.js} +1 -1
  95. package/dist/cdn/{2CYIURXG.js → ZRL5LS7K.js} +1 -1
  96. package/dist/cdn/{VGA5ODWT.js → ZXLBAOP6.js} +1 -1
  97. package/dist/cdn/index.js +1 -1
  98. package/dist/cdn/model/shared/setup-utils.js +1 -1
  99. package/dist/chunks/index2.js +886 -874
  100. package/dist/chunks/runtime.js +1 -1
  101. package/dist/components/arcgis-chart/customElement.js +13 -14
  102. package/dist/docs/api.json +1 -1
  103. package/dist/docs/docs.json +1 -1
  104. package/dist/docs/web-types.json +1 -1
  105. package/package.json +3 -3
  106. package/dist/cdn/ZSJ66FGW.js +0 -3
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { isEqual as at, sortBy as Ti, cloneDeep as He, memoize as qt, isArray as ui, isNil as hr, isEmpty as Sr } from "lodash-es";
3
- import { u as h, k as Fr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as br, s as R, t as ee, d as he, a as Zi, G as xr } from "./chart-object-literals.js";
3
+ import { u as S, k as Fr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as br, s as R, t as ee, d as he, a as Zi, G as xr } from "./chart-object-literals.js";
4
4
  import Ai from "@arcgis/core/layers/support/FeatureFilter.js";
5
5
  import Cr from "@arcgis/core/smartMapping/statistics/histogram.js";
6
6
  import wi from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
@@ -17,14 +17,14 @@ import Pr from "@arcgis/core/portal/Portal.js";
17
17
  import * as Ki from "@arcgis/core/renderers/support/jsonUtils.js";
18
18
  import Lt from "@arcgis/core/request.js";
19
19
  import ea from "@arcgis/core/rest/support/FeatureSet.js";
20
- import { g as _ } from "./series-types.js";
21
- import { F as C, q as oe, C as F, e as Xt, z as ta, l as ci, o as Li, v as ia, d as Jt, x as Mr, g as aa, s as Wt, w as Dr, i as Or, r as Ae, t as Vt } from "./index3.js";
20
+ import { g as j } from "./series-types.js";
21
+ import { F as x, q as oe, C as F, e as Xt, z as ta, l as ci, o as Li, v as ia, d as Jt, x as Mr, g as aa, s as Wt, w as Dr, i as Or, r as Ae, t as Vt } from "./index3.js";
22
22
  import Ir from "@arcgis/core/Graphic.js";
23
23
  import * as Gt from "@arcgis/core/symbols/support/symbolUtils.js";
24
24
  import { f as Kt, h as et, i as _e, e as se, R as U } from "./rest-js-object-literals.js";
25
25
  import Er from "@arcgis/core/AttributeBinsGraphic.js";
26
26
  import { substitute as Be } from "@arcgis/core/intl.js";
27
- import { g as Rt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as ei, am as ra, aB as na, aq as qr, s as $t, ay as Vr, b as Rr, a as $r } from "./index.js";
27
+ import { g as Rt, L as lt, az as W, j as _, r as ut, o as Oe, ax as ei, am as ra, aB as na, aq as qr, s as $t, ay as Vr, b as Rr, a as $r } from "./index.js";
28
28
  import { unsafeGetElementDirection as kr } from "@arcgis/toolkit/dom";
29
29
  import { fetchT9nStringsBundle as mt, getElementLocale as ze, supportedLocales as sa } from "@arcgis/toolkit/intl";
30
30
  import { i as oa, b as la, c as ie, a as yt, f as Qr, e as _r } from "./type-guards.js";
@@ -62,16 +62,16 @@ function sc(t) {
62
62
  return t.intlOptions;
63
63
  }
64
64
  function ne(t) {
65
- return t?.type === h.NumberAxisFormat;
65
+ return t?.type === S.NumberAxisFormat;
66
66
  }
67
67
  function oc(t) {
68
68
  return ne(t) && t.intlOptions?.style === "percent";
69
69
  }
70
70
  function we(t) {
71
- return t?.type === h.CategoryAxisFormat;
71
+ return t?.type === S.CategoryAxisFormat;
72
72
  }
73
73
  function je(t) {
74
- return t?.type === h.DateAxisFormat;
74
+ return t?.type === S.DateAxisFormat;
75
75
  }
76
76
  function lc(t) {
77
77
  const { oldConfig: e, newConfig: i, rotationChanged: a } = t;
@@ -108,28 +108,28 @@ function uc(t) {
108
108
  const { chartType: e, axesConfig: i, errorStrings: a } = t;
109
109
  let r, n;
110
110
  switch (e) {
111
- case h.GaugeSeries:
111
+ case S.GaugeSeries:
112
112
  r = un, n = "invalidValueFormatForGauge";
113
113
  break;
114
- case h.ScatterSeries:
114
+ case S.ScatterSeries:
115
115
  r = on, n = "invalidValueFormatForScatterplot";
116
116
  break;
117
- case h.HistogramSeries:
117
+ case S.HistogramSeries:
118
118
  r = ln, n = "invalidValueFormatForHistogram";
119
119
  break;
120
- case h.LineSeries:
120
+ case S.LineSeries:
121
121
  r = tn, n = "invalidValueFormatForLineChart";
122
122
  break;
123
- case h.BarSeries:
123
+ case S.BarSeries:
124
124
  r = an, n = "invalidValueFormatForBarChart";
125
125
  break;
126
- case h.ComboLineAndBarSeries:
126
+ case S.ComboLineAndBarSeries:
127
127
  r = sn, n = "invalidValueFormatForComboBarLineChart";
128
128
  break;
129
- case h.BoxPlotSeries:
129
+ case S.BoxPlotSeries:
130
130
  r = rn, n = "invalidValueFormatForBoxPlot";
131
131
  break;
132
- case h.HeatSeries:
132
+ case S.HeatSeries:
133
133
  r = nn, n = "invalidValueFormatForHeatChart";
134
134
  break;
135
135
  }
@@ -137,13 +137,13 @@ function uc(t) {
137
137
  }
138
138
  function cn(t) {
139
139
  const { isXAxis: e, chartType: i, valueFormat: a, isAxisForHistogramOverlaySeries: r } = t;
140
- return e && (we(a) || i === h.HistogramSeries && !r || i === h.BarSeries && ne(a));
140
+ return e && (we(a) || i === S.HistogramSeries && !r || i === S.BarSeries && ne(a));
141
141
  }
142
142
  function We(t) {
143
- return _(t?.series) === h.HeatSeries;
143
+ return j(t?.series) === S.HeatSeries;
144
144
  }
145
145
  function de(t) {
146
- return _(t?.series) === h.BoxPlotSeries;
146
+ return j(t?.series) === S.BoxPlotSeries;
147
147
  }
148
148
  function dn(t) {
149
149
  return t !== void 0 && t !== Kt.Solid && t !== Kt.Null;
@@ -174,13 +174,13 @@ function cc(t, e) {
174
174
  return i;
175
175
  }
176
176
  const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fields_value", dc = "arcgis_charts_bar_line_from_fields_name", fc = "arcgis_charts_bar_line_from_fields_value", pt = {
177
- ...C,
177
+ ...x,
178
178
  titleAndSubtitlePaddingBottom: 5,
179
179
  chartPadding: 5,
180
- footerContainer: { ...C.footerContainer, paddingTop: 0, paddingBottom: 0 },
181
- headerContainer: { ...C.headerContainer, paddingBottom: 18 },
182
- chartContainer: { ...C.chartContainer },
183
- dataLabel: { ...C.dataLabel, verticalCenter: "bottom" },
180
+ footerContainer: { ...x.footerContainer, paddingTop: 0, paddingBottom: 0 },
181
+ headerContainer: { ...x.headerContainer, paddingBottom: 18 },
182
+ chartContainer: { ...x.chartContainer },
183
+ dataLabel: { ...x.dataLabel, verticalCenter: "bottom" },
184
184
  scrollbarPadding: 12,
185
185
  zIndexes: {
186
186
  // setting a high z index so guide will be on top when above is set to true
@@ -249,7 +249,7 @@ const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fi
249
249
  symbol: {
250
250
  type: _e.SFS,
251
251
  style: Kt.Solid,
252
- color: C.grayColor
252
+ color: x.grayColor
253
253
  },
254
254
  text: "null"
255
255
  },
@@ -354,8 +354,8 @@ function yn(t) {
354
354
  return t?.capabilities?.queryAttributeBins?.supportsFixedInterval === !0 && t?.capabilities?.queryAttributeBins?.supportsStackBy;
355
355
  }
356
356
  function xc(t) {
357
- const { chartConfig: e, queryObject: i, options: a } = t, r = _(e?.series), n = te(e?.series[0]?.query?.where);
358
- return !(r === h.HeatSeries || e && Pe({
357
+ const { chartConfig: e, queryObject: i, options: a } = t, r = j(e?.series), n = te(e?.series[0]?.query?.where);
358
+ return !(r === S.HeatSeries || e && Pe({
359
359
  xAxisValueFormatType: xe(e),
360
360
  setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided,
361
361
  seriesConfig: e.series[0],
@@ -503,10 +503,10 @@ const Qe = [
503
503
  "25.0.0",
504
504
  "25.1.0"
505
505
  ], hn = "1.0.0", Sn = "unrecognized.version", Fn = [
506
- h.LineSeries,
507
- h.BarSeries,
508
- h.ComboLineAndBarSeries,
509
- h.RadarSeries
506
+ S.LineSeries,
507
+ S.BarSeries,
508
+ S.ComboLineAndBarSeries,
509
+ S.RadarSeries
510
510
  ];
511
511
  function Ut(t, e) {
512
512
  let i = 0;
@@ -550,7 +550,7 @@ function Nc(t) {
550
550
  }
551
551
  function Re(t) {
552
552
  const { series: e } = t;
553
- let a = ("showMean" in t ? t.showMean : !1) === !0 ? e.find((r) => r.type === h.LineSeries) : e[0];
553
+ let a = ("showMean" in t ? t.showMean : !1) === !0 ? e.find((r) => r.type === S.LineSeries) : e[0];
554
554
  return a ??= e[0], a;
555
555
  }
556
556
  function Tc(t, e) {
@@ -597,23 +597,23 @@ function ga(t) {
597
597
  }
598
598
  function xn(t) {
599
599
  let e = F.BoxPlotMonoField;
600
- const i = t.length === 1, a = t.find((o) => o.type === h.LineSeries) ?? t[0], { x: r } = a, n = "y" in a ? a.y : "", s = a.query?.where;
600
+ const i = t.length === 1, a = t.find((o) => o.type === S.LineSeries) ?? t[0], { x: r } = a, n = "y" in a ? a.y : "", s = a.query?.where;
601
601
  return r === Rt ? typeof n == "object" && n.length > 1 ? Ie(s) ? i && (e = F.BoxPlotMultiFields) : e = F.BoxPlotMultiFieldsAndSplitBy : i ? e = F.BoxPlotMonoField : Ie(s) || (e = F.BoxPlotMonoFieldAndSplitBy) : i ? e = F.BoxPlotMonoFieldAndCategory : Ie(s) ? e = F.BoxPlotMultiFieldsAndCategory : e = F.BoxPlotMonoFieldAndCategoryAndSplitBy, e;
602
602
  }
603
603
  function k(t) {
604
604
  let e = F.NonSpecific;
605
605
  if (t?.[0] !== void 0)
606
- switch (_(t)) {
607
- case h.PieSeries:
606
+ switch (j(t)) {
607
+ case S.PieSeries:
608
608
  e = ya(t);
609
609
  break;
610
- case h.RadarSeries:
611
- case h.BarSeries:
612
- case h.LineSeries:
613
- case h.ComboLineAndBarSeries:
610
+ case S.RadarSeries:
611
+ case S.BarSeries:
612
+ case S.LineSeries:
613
+ case S.ComboLineAndBarSeries:
614
614
  e = ga(t);
615
615
  break;
616
- case h.BoxPlotSeries:
616
+ case S.BoxPlotSeries:
617
617
  e = xn(t);
618
618
  break;
619
619
  }
@@ -624,8 +624,8 @@ function Cn(t) {
624
624
  }
625
625
  function vn(t) {
626
626
  let e = !0;
627
- const i = _(t.series);
628
- if (i === h.BarSeries || i === h.LineSeries || i === h.ComboLineAndBarSeries) {
627
+ const i = j(t.series);
628
+ if (i === S.BarSeries || i === S.LineSeries || i === S.ComboLineAndBarSeries) {
629
629
  const a = k(t.series);
630
630
  e = a !== F.BarAndLineNoAggregation && a !== F.BarAndLineSplitByNoAggregation;
631
631
  }
@@ -635,25 +635,25 @@ function pa(t) {
635
635
  const { statsMap: e, dataContext: i, chartLimits: a } = t;
636
636
  let r = !1;
637
637
  if (e !== void 0) {
638
- const { maxScatterPointsBeforeAggregation: n } = ut(a), { queryNumberOfFeatures: s } = C.scatterplotAggregationFields;
638
+ const { maxScatterPointsBeforeAggregation: n } = ut(a), { queryNumberOfFeatures: s } = x.scatterplotAggregationFields;
639
639
  r = (e.get(s) ?? Number.NaN) >= n;
640
- } else i !== void 0 && (r = C.scatterplotAggregationFields.dataContextXMinField in i);
640
+ } else i !== void 0 && (r = x.scatterplotAggregationFields.dataContextXMinField in i);
641
641
  return r;
642
642
  }
643
643
  function Bn(t) {
644
644
  const { dataContext: e, chartConfig: i, chartLimits: a } = t;
645
645
  let r = !0;
646
646
  if (i !== void 0)
647
- switch (_(i.series)) {
648
- case h.BarSeries:
649
- case h.LineSeries:
650
- case h.ComboLineAndBarSeries:
647
+ switch (j(i.series)) {
648
+ case S.BarSeries:
649
+ case S.LineSeries:
650
+ case S.ComboLineAndBarSeries:
651
651
  r = vn(i);
652
652
  break;
653
- case h.ScatterSeries:
653
+ case S.ScatterSeries:
654
654
  r = pa({ dataContext: e, chartLimits: a });
655
655
  break;
656
- case h.PieSeries:
656
+ case S.PieSeries:
657
657
  r = Cn(i);
658
658
  break;
659
659
  }
@@ -662,7 +662,7 @@ function Bn(t) {
662
662
  function Pe(t) {
663
663
  const { seriesConfig: e, xAxisValueFormatType: i, setTimeBinningInfoWhenNotProvided: a, queryObject: r } = t;
664
664
  let n = !1;
665
- if (!ie(r) && !(z(r)?.fields?.find((o) => o.name === e.x)?.type === "time-only") && be(e) && e.binTemporalData !== !1 && i === h.DateAxisFormat) {
665
+ if (!ie(r) && !(z(r)?.fields?.find((o) => o.name === e.x)?.type === "time-only") && be(e) && e.binTemporalData !== !1 && i === S.DateAxisFormat) {
666
666
  const o = k([e]);
667
667
  if (e.temporalBinning && o !== F.BarAndLineNoAggregation && o !== F.BarAndLineSplitByNoAggregation) {
668
668
  const { unit: u, size: c } = e.temporalBinning;
@@ -700,8 +700,8 @@ function Tn(t, e) {
700
700
  if (e[0].x !== t[0].x)
701
701
  i = !0;
702
702
  else {
703
- const a = _(t);
704
- if (a !== h.HistogramSeries && a !== h.GaugeSeries) {
703
+ const a = j(t);
704
+ if (a !== S.HistogramSeries && a !== S.GaugeSeries) {
705
705
  const r = ue(t).sort(), n = ue(e).sort();
706
706
  i = JSON.stringify(r) !== JSON.stringify(n);
707
707
  }
@@ -712,10 +712,10 @@ function Sa(t, e) {
712
712
  return (t ?? !1) !== (e ?? !1);
713
713
  }
714
714
  function Fa(t, e) {
715
- return be(t.series[0]) && be(e.series[0]) && (t.series[0].binTemporalData ?? C.binTemporalData) !== (e.series[0].binTemporalData ?? C.binTemporalData);
715
+ return be(t.series[0]) && be(e.series[0]) && (t.series[0].binTemporalData ?? x.binTemporalData) !== (e.series[0].binTemporalData ?? x.binTemporalData);
716
716
  }
717
717
  function ba(t, e) {
718
- const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, r = k(e.series), n = r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation, s = i === h.DateAxisFormat && a === h.NumberAxisFormat, o = i === h.NumberAxisFormat && a === h.DateAxisFormat;
718
+ const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, r = k(e.series), n = r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation, s = i === S.DateAxisFormat && a === S.NumberAxisFormat, o = i === S.NumberAxisFormat && a === S.DateAxisFormat;
719
719
  return i !== a && (n || s || o);
720
720
  }
721
721
  function An(t) {
@@ -753,7 +753,7 @@ function Ln(t, e) {
753
753
  function Pn(t) {
754
754
  const { previousConfig: e, newConfig: i, fieldList: a } = t, r = e.series[0], n = i.series[0];
755
755
  let s = !1;
756
- if (r.type === h.ScatterSeries && n.type === h.ScatterSeries && a && a.length > 0) {
756
+ if (r.type === S.ScatterSeries && n.type === S.ScatterSeries && a && a.length > 0) {
757
757
  const o = new Set(r.additionalTooltipFields || []), u = new Set(n.additionalTooltipFields || []);
758
758
  if (!at(o, u)) {
759
759
  const c = Array.from(u).filter((l) => !o.has(l));
@@ -773,11 +773,11 @@ function Pt(t) {
773
773
  return e.position === void 0 && (e.position = pt.heatChart.legend.position), e;
774
774
  }
775
775
  function Lc(t, e) {
776
- const i = t.legend ?? { type: h.Legend }, a = e.legend ?? { type: h.Legend }, r = Pt(i), n = Pt(a);
776
+ const i = t.legend ?? { type: S.Legend }, a = e.legend ?? { type: S.Legend }, r = Pt(i), n = Pt(a);
777
777
  return !at(r, n);
778
778
  }
779
779
  function Pc(t, e) {
780
- const i = t.legend ?? { type: h.Legend }, a = e.legend ?? { type: h.Legend }, r = Pt(i), n = Pt(a);
780
+ const i = t.legend ?? { type: S.Legend }, a = e.legend ?? { type: S.Legend }, r = Pt(i), n = Pt(a);
781
781
  return r.position !== n.position;
782
782
  }
783
783
  function Mc(t, e) {
@@ -789,8 +789,8 @@ function Dc(t, e) {
789
789
  function Oc(t) {
790
790
  const { oldConfig: e, newConfig: i } = t;
791
791
  let a = !1;
792
- const r = e?.series[0], n = i.series[0], s = _(e?.series), o = _(i.series);
793
- if (s === h.PieSeries && o === h.PieSeries) {
792
+ const r = e?.series[0], n = i.series[0], s = j(e?.series), o = j(i.series);
793
+ if (s === S.PieSeries && o === S.PieSeries) {
794
794
  const { slices: u, sliceGrouping: c } = r, { slices: l, sliceGrouping: d } = n, f = u?.map((p) => ({
795
795
  sliceId: p.sliceId,
796
796
  label: p.label
@@ -835,22 +835,22 @@ function kc(t, e) {
835
835
  return Li(t) !== Li(e);
836
836
  }
837
837
  function Qc(t, e) {
838
- return (t.showOutliers ?? C.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? C.boxPlot.boxPlotOutliersVisibility);
838
+ return (t.showOutliers ?? x.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? x.boxPlot.boxPlotOutliersVisibility);
839
839
  }
840
840
  function _c(t, e) {
841
- return (t.standardizeValues ?? C.boxPlot.boxPlotStandardizeValuesVisibility) !== (e.standardizeValues ?? C.boxPlot.boxPlotStandardizeValuesVisibility);
841
+ return (t.standardizeValues ?? x.boxPlot.boxPlotStandardizeValuesVisibility) !== (e.standardizeValues ?? x.boxPlot.boxPlotStandardizeValuesVisibility);
842
842
  }
843
843
  function jc(t, e) {
844
844
  return JSON.stringify(t?.chartRenderer) !== JSON.stringify(e?.chartRenderer);
845
845
  }
846
846
  function Hc(t, e) {
847
- const i = t.axes?.[0].valueFormat.type === h.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === h.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
847
+ const i = t.axes?.[0].valueFormat.type === S.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === S.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
848
848
  return i !== a;
849
849
  }
850
850
  function zc(t, e) {
851
851
  let i = !1;
852
852
  const a = t.series[0], r = e.series[0];
853
- if (a.type === h.ScatterSeries && r.type === h.ScatterSeries) {
853
+ if (a.type === S.ScatterSeries && r.type === S.ScatterSeries) {
854
854
  const { sizePolicy: n } = a, { sizePolicy: s } = r;
855
855
  i = JSON.stringify(n) !== JSON.stringify(s);
856
856
  }
@@ -859,7 +859,7 @@ function zc(t, e) {
859
859
  function Wc(t, e) {
860
860
  let i = !1;
861
861
  const a = t.series[0], r = e.series[0];
862
- if (a.type === h.ScatterSeries && r.type === h.ScatterSeries) {
862
+ if (a.type === S.ScatterSeries && r.type === S.ScatterSeries) {
863
863
  const { sizePolicy: n } = a, { sizePolicy: s } = r;
864
864
  i = n === void 0 && s !== void 0 || n !== void 0 && s === void 0 || n?.field !== s?.field;
865
865
  }
@@ -877,9 +877,9 @@ function Gc(t) {
877
877
  selectionData: u,
878
878
  setTimeBinningInfoWhenNotProvided: c,
879
879
  chartLimits: l
880
- } = t, { series: d } = i, { series: f } = e, m = _(d);
880
+ } = t, { series: d } = i, { series: f } = e, m = j(d);
881
881
  let y = !1, g = !1, p = !1;
882
- const S = {
882
+ const h = {
883
883
  common: {
884
884
  layerChanged: !1,
885
885
  queryChanged: !1,
@@ -905,22 +905,22 @@ function Gc(t) {
905
905
  tooltipFieldsChanged: !1
906
906
  }
907
907
  };
908
- switch (S.common.queryChanged = ha({
908
+ switch (h.common.queryChanged = ha({
909
909
  previousConfig: e,
910
910
  newConfig: i,
911
911
  behaviorAfterLimit: l?.behaviorAfterLimit
912
- }), S.common.configFiltersChanged = Nn(e, i), S.common.xOrYChanged = Tn(f, d), S.common.filterBySelectionChanged = Sa(
912
+ }), h.common.configFiltersChanged = Nn(e, i), h.common.xOrYChanged = Tn(f, d), h.common.filterBySelectionChanged = Sa(
913
913
  a,
914
914
  o
915
- ), S.common.dataForFilterBySelectionChanged = Mn({
915
+ ), h.common.dataForFilterBySelectionChanged = Mn({
916
916
  previousSelectionOIDs: r,
917
917
  selectionData: u,
918
918
  filterBySelection: o
919
- }), S.common.binTemporalDataChanged = Fa(e, i), S.common.valueFormatChangeRequiresNewData = ba(
919
+ }), h.common.binTemporalDataChanged = Fa(e, i), h.common.valueFormatChangeRequiresNewData = ba(
920
920
  e,
921
921
  i
922
- ), S.common = {
923
- ...S.common,
922
+ ), h.common = {
923
+ ...h.common,
924
924
  ...An({
925
925
  previousSeries: f,
926
926
  newConfig: i,
@@ -928,38 +928,38 @@ function Gc(t) {
928
928
  queryObject: s
929
929
  })
930
930
  }, m) {
931
- case h.HistogramSeries:
932
- S.histogram.dataPropsChanged = es(f, d) || Kn(
931
+ case S.HistogramSeries:
932
+ h.histogram.dataPropsChanged = es(f, d) || Kn(
933
933
  f,
934
934
  d
935
935
  );
936
936
  break;
937
- case h.LineSeries:
938
- case h.BarSeries:
939
- case h.ComboLineAndBarSeries:
940
- S.common.numberOfSeriesChanged = Pi(f, d);
937
+ case S.LineSeries:
938
+ case S.BarSeries:
939
+ case S.ComboLineAndBarSeries:
940
+ h.common.numberOfSeriesChanged = Pi(f, d);
941
941
  break;
942
- case h.BoxPlotSeries:
943
- de(e) && de(i) && (S.common.numberOfSeriesChanged = Pi(f, d), S.boxPlot.showMeanChanged = xa(e, i));
942
+ case S.BoxPlotSeries:
943
+ de(e) && de(i) && (h.common.numberOfSeriesChanged = Pi(f, d), h.boxPlot.showMeanChanged = xa(e, i));
944
944
  break;
945
- case h.GaugeSeries:
946
- S.gauge.valueConversionChanged = Ca(e, i);
945
+ case S.GaugeSeries:
946
+ h.gauge.valueConversionChanged = Ca(e, i);
947
947
  break;
948
- case h.HeatSeries:
949
- We(e) && We(i) && (S.heatChart.binningChanged = va(e, i), S.heatChart.hideEmptyRowsAndColumnsChanged = wn(
948
+ case S.HeatSeries:
949
+ We(e) && We(i) && (h.heatChart.binningChanged = va(e, i), h.heatChart.hideEmptyRowsAndColumnsChanged = wn(
950
950
  e,
951
951
  i
952
- ), S.heatChart.includeLeapDay = Ln(e, i));
952
+ ), h.heatChart.includeLeapDay = Ln(e, i));
953
953
  break;
954
- case h.ScatterSeries:
955
- S.scatterPlot.tooltipFieldsChanged = Pn({
954
+ case S.ScatterSeries:
955
+ h.scatterPlot.tooltipFieldsChanged = Pn({
956
956
  previousConfig: e,
957
957
  newConfig: i,
958
958
  fieldList: n
959
959
  });
960
960
  break;
961
961
  }
962
- return g = Object.values(S.common).some((x) => x), (S.gauge.valueConversionChanged || S.histogram.dataPropsChanged || S.boxPlot.showMeanChanged || S.heatChart.binningChanged || S.heatChart.hideEmptyRowsAndColumnsChanged || S.heatChart.includeLeapDay || S.scatterPlot.tooltipFieldsChanged) && (p = !0), y = g || p, { dataUpdateNeeded: y, dataUpdateDetails: S };
962
+ return g = Object.values(h.common).some((v) => v), (h.gauge.valueConversionChanged || h.histogram.dataPropsChanged || h.boxPlot.showMeanChanged || h.heatChart.binningChanged || h.heatChart.hideEmptyRowsAndColumnsChanged || h.heatChart.includeLeapDay || h.scatterPlot.tooltipFieldsChanged) && (p = !0), y = g || p, { dataUpdateNeeded: y, dataUpdateDetails: h };
963
963
  }
964
964
  function Uc(t, e) {
965
965
  const i = He(t);
@@ -989,10 +989,10 @@ function di(t) {
989
989
  let e;
990
990
  const i = t?.orderOptions?.data;
991
991
  return t.series?.length > 0 && i?.orderType === De.MultiAxes && (e = [], e.push({
992
- sortingField: Q.xField,
992
+ sortingField: _.xField,
993
993
  orderBy: i.orderByX ?? ye.Ascending
994
994
  }), e.push({
995
- sortingField: i.orderByY !== void 0 ? Q.yField : "",
995
+ sortingField: i.orderByY !== void 0 ? _.yField : "",
996
996
  orderBy: i.orderByY
997
997
  })), e;
998
998
  }
@@ -1000,7 +1000,7 @@ function Dn(t) {
1000
1000
  const { chartConfig: e, field: i } = t;
1001
1001
  let a;
1002
1002
  const r = di(e);
1003
- return r?.length === 2 && (a = i === Q.xField ? r[0]?.orderBy : r[1]?.orderBy), a;
1003
+ return r?.length === 2 && (a = i === _.xField ? r[0]?.orderBy : r[1]?.orderBy), a;
1004
1004
  }
1005
1005
  function Ba(t) {
1006
1006
  const e = k(t.series);
@@ -1037,13 +1037,13 @@ function Na(t) {
1037
1037
  const c = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
1038
1038
  if (o = t.orderOptions?.data?.orderType ?? De.Category, u = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === De.Category ? r ? o = ce : o = c ? i : pt.originalCategoryValue : o = r ? Ne : [a].flat()[0], o !== void 0 && o !== "") {
1039
1039
  const l = ci(t);
1040
- if (_(t.series) !== h.PieSeries && o !== i && t.series?.length > 1)
1040
+ if (j(t.series) !== S.PieSeries && o !== i && t.series?.length > 1)
1041
1041
  switch (l) {
1042
1042
  case Te.Stacked:
1043
- o = C.technicalSortingFieldBySum;
1043
+ o = x.technicalSortingFieldBySum;
1044
1044
  break;
1045
1045
  case Te.Stacked100:
1046
- o = C.technicalSortingFieldByPercent;
1046
+ o = x.technicalSortingFieldByPercent;
1047
1047
  break;
1048
1048
  case Te.Side:
1049
1049
  typeof a == "string" && (o = a);
@@ -1064,21 +1064,21 @@ function Na(t) {
1064
1064
  }
1065
1065
  function Mt(t) {
1066
1066
  let e;
1067
- const i = _(t?.series);
1067
+ const i = j(t?.series);
1068
1068
  if (t?.series && t.series.length > 0) {
1069
1069
  let a;
1070
1070
  switch (i) {
1071
- case h.HeatSeries:
1071
+ case S.HeatSeries:
1072
1072
  We(t) && (e = di(t));
1073
1073
  break;
1074
- case h.BoxPlotSeries:
1074
+ case S.BoxPlotSeries:
1075
1075
  de(t) && (a = Ba(t));
1076
1076
  break;
1077
- case h.LineSeries:
1078
- case h.BarSeries:
1079
- case h.ComboLineAndBarSeries:
1080
- case h.RadarSeries:
1081
- case h.PieSeries:
1077
+ case S.LineSeries:
1078
+ case S.BarSeries:
1079
+ case S.ComboLineAndBarSeries:
1080
+ case S.RadarSeries:
1081
+ case S.PieSeries:
1082
1082
  a = Na(t);
1083
1083
  break;
1084
1084
  }
@@ -1087,11 +1087,11 @@ function Mt(t) {
1087
1087
  return e;
1088
1088
  }
1089
1089
  function Yc(t) {
1090
- const { oldConfig: e, newConfig: i, dataWasUpdated: a } = t, r = _(i.series), n = k(i.series);
1090
+ const { oldConfig: e, newConfig: i, dataWasUpdated: a } = t, r = j(i.series), n = k(i.series);
1091
1091
  let s = !1, o = !1;
1092
1092
  if (n !== F.BoxPlotMonoField && n !== F.BoxPlotMonoFieldAndSplitBy && i.orderOptions?.data !== void 0) {
1093
1093
  const u = Mt(e), c = Mt(i);
1094
- if (r === h.HeatSeries) {
1094
+ if (r === S.HeatSeries) {
1095
1095
  const l = u ? u[0] : void 0, d = c ? c[0] : void 0, f = u ? u[1] : void 0, m = c ? c[1] : void 0;
1096
1096
  o = e?.orderOptions?.data?.orderType !== i.orderOptions?.data?.orderType || l?.sortingField !== d?.sortingField || l?.orderBy !== d?.orderBy || f?.sortingField !== m?.sortingField || f?.orderBy !== m?.orderBy, s = o || a;
1097
1097
  } else {
@@ -1131,21 +1131,21 @@ function On(t) {
1131
1131
  function Mi(t) {
1132
1132
  const { value: e, dataContext: i, specificField: a, keepNullValues: r = !1, useRendererLabel: n = !1, config: s } = t;
1133
1133
  let o = e;
1134
- const { originalCategoryValue: u, originalDateValue: c } = C;
1134
+ const { originalCategoryValue: u, originalDateValue: c } = x;
1135
1135
  if (i !== void 0) {
1136
1136
  const l = n ? Hn(i) : void 0;
1137
- a !== void 0 && i[a] !== void 0 ? o = i[a] : l !== void 0 ? o = l : i[C.xAxisDisplayField] !== void 0 ? o = i[C.xAxisDisplayField] : i[C.xAxisField] !== void 0 ? o = i[C.xAxisField] : i[C.boxPlot.boxPlotCategory] !== void 0 ? o = i[C.boxPlot.boxPlotCategory] : i[c] !== void 0 ? o = i[c] : i[u] !== void 0 ? o = i[u] : i[ce] !== void 0 && (o = i[ce]), !r && (o === null || o === C.nullValue) && (s?.series?.[0].type === h.BarSeries || s?.series?.[0].type === h.LineSeries ? o = s.series?.[0]?.nullCategory?.text ?? C.nullCategory?.text ?? "null" : o = "null");
1137
+ a !== void 0 && i[a] !== void 0 ? o = i[a] : l !== void 0 ? o = l : i[x.xAxisDisplayField] !== void 0 ? o = i[x.xAxisDisplayField] : i[x.xAxisField] !== void 0 ? o = i[x.xAxisField] : i[x.boxPlot.boxPlotCategory] !== void 0 ? o = i[x.boxPlot.boxPlotCategory] : i[c] !== void 0 ? o = i[c] : i[u] !== void 0 ? o = i[u] : i[ce] !== void 0 && (o = i[ce]), !r && (o === null || o === x.nullValue) && (s?.series?.[0].type === S.BarSeries || s?.series?.[0].type === S.LineSeries ? o = s.series?.[0]?.nullCategory?.text ?? x.nullCategory?.text ?? "null" : o = "null");
1138
1138
  }
1139
1139
  return o;
1140
1140
  }
1141
1141
  function fi(t) {
1142
1142
  const { value: e, dataContext: i } = t;
1143
1143
  let a = e;
1144
- const { originalCategoryValue: r, originalDateValue: n } = C;
1144
+ const { originalCategoryValue: r, originalDateValue: n } = x;
1145
1145
  return i?.[n] !== void 0 ? a = i[n] : i?.[r] !== void 0 ? a = i[r] : i?.[ce] !== void 0 && (a = i[ce]), a;
1146
1146
  }
1147
1147
  function In(t) {
1148
- return t?.[C.originalCategoryValue];
1148
+ return t?.[x.originalCategoryValue];
1149
1149
  }
1150
1150
  function ht(t) {
1151
1151
  const {
@@ -1165,14 +1165,14 @@ function ht(t) {
1165
1165
  s === !0 && !u && (m = Mi({
1166
1166
  value: `${l[a]?.toString()}`,
1167
1167
  dataContext: l,
1168
- specificField: o ? C.xAxisField : C.originalCategoryValue
1168
+ specificField: o ? x.xAxisField : x.originalCategoryValue
1169
1169
  }));
1170
1170
  let y = d[a];
1171
1171
  return s === !0 && !u && (y = Mi({
1172
1172
  value: `${d[a]?.toString()}`,
1173
1173
  dataContext: d,
1174
- specificField: o ? C.xAxisField : C.originalCategoryValue
1175
- })), n === !0 && c && s === !0 && (m = Number.isNaN(Number.parseFloat(`${m?.toString()}`)) ? m : Number.parseFloat(m), y = Number.isNaN(Number.parseFloat(`${y?.toString()}`)) ? y : Number.parseFloat(y)), s === !0 && (l[C.originalCategoryValue] === null || m === null) || l[ei.defaultGroupOfSlicesId] === !0 ? f = 1 : s === !0 && (d[C.originalCategoryValue] === null || y === null) || d[ei.defaultGroupOfSlicesId] === !0 ? f = -1 : typeof m == "string" && typeof y == "string" ? (f = m.localeCompare(y, void 0, { numeric: !0 }), c && (f *= -1)) : m === void 0 ? f = c ? -1 : 1 : y === void 0 ? f = c ? 1 : -1 : m !== null && y !== null && (m > y ? f = c ? -1 : 1 : m < y && (f = c ? 1 : -1)), f;
1174
+ specificField: o ? x.xAxisField : x.originalCategoryValue
1175
+ })), n === !0 && c && s === !0 && (m = Number.isNaN(Number.parseFloat(`${m?.toString()}`)) ? m : Number.parseFloat(m), y = Number.isNaN(Number.parseFloat(`${y?.toString()}`)) ? y : Number.parseFloat(y)), s === !0 && (l[x.originalCategoryValue] === null || m === null) || l[ei.defaultGroupOfSlicesId] === !0 ? f = 1 : s === !0 && (d[x.originalCategoryValue] === null || y === null) || d[ei.defaultGroupOfSlicesId] === !0 ? f = -1 : typeof m == "string" && typeof y == "string" ? (f = m.localeCompare(y, void 0, { numeric: !0 }), c && (f *= -1)) : m === void 0 ? f = c ? -1 : 1 : y === void 0 ? f = c ? 1 : -1 : m !== null && y !== null && (m > y ? f = c ? -1 : 1 : m < y && (f = c ? 1 : -1)), f;
1176
1176
  });
1177
1177
  }
1178
1178
  }
@@ -1203,7 +1203,7 @@ function qn(t, e) {
1203
1203
  }
1204
1204
  function nt(t) {
1205
1205
  let e = new Date(t).valueOf();
1206
- return Number.isNaN(e) || (e = new Intl.DateTimeFormat("en-US", C.dateFormatUTC).format(t).replace(",", "")), e;
1206
+ return Number.isNaN(e) || (e = new Intl.DateTimeFormat("en-US", x.dateFormatUTC).format(t).replace(",", "")), e;
1207
1207
  }
1208
1208
  function Dt(t) {
1209
1209
  const { dataToConvert: e, x: i, y: a, fieldList: r } = t, n = [];
@@ -1214,10 +1214,10 @@ function Dt(t) {
1214
1214
  const u = {
1215
1215
  [i]: Jt(r, o),
1216
1216
  [a]: e[o],
1217
- [C.xAxisField]: o,
1218
- [C.originalCategoryValue]: o
1217
+ [x.xAxisField]: o,
1218
+ [x.originalCategoryValue]: o
1219
1219
  };
1220
- s !== void 0 && (u[Oe] = s), e[`${C.rendererSymbolField}_${o}`] !== void 0 && (u[C.rendererSymbolField] = e[`${C.rendererSymbolField}_${o}`]), n.push(u);
1220
+ s !== void 0 && (u[Oe] = s), e[`${x.rendererSymbolField}_${o}`] !== void 0 && (u[x.rendererSymbolField] = e[`${x.rendererSymbolField}_${o}`]), n.push(u);
1221
1221
  }
1222
1222
  });
1223
1223
  }
@@ -1257,44 +1257,44 @@ function Ta(t, e) {
1257
1257
  maxLineThreePlusSeriesCountTotal: y,
1258
1258
  maxPieChartSliceCountTotal: g,
1259
1259
  maxGaugeByFeaturesLimit: p
1260
- } = ut(e), S = _(t.series), x = t.series.length === 0 ? 1 : t.series.length, v = k(t.series);
1261
- switch (S) {
1262
- case h.ComboLineAndBarSeries:
1263
- case h.BarSeries:
1264
- x <= a && (x === 1 ? i = r : x === 2 ? i = At({
1260
+ } = ut(e), h = j(t.series), v = t.series.length === 0 ? 1 : t.series.length, B = k(t.series);
1261
+ switch (h) {
1262
+ case S.ComboLineAndBarSeries:
1263
+ case S.BarSeries:
1264
+ v <= a && (v === 1 ? i = r : v === 2 ? i = At({
1265
1265
  countTotal: s,
1266
1266
  countPerSeries: n,
1267
- numberOfSeries: x
1268
- }) : x > 2 && (i = At({
1267
+ numberOfSeries: v
1268
+ }) : v > 2 && (i = At({
1269
1269
  countTotal: u,
1270
1270
  countPerSeries: o,
1271
- numberOfSeries: x
1271
+ numberOfSeries: v
1272
1272
  })));
1273
1273
  break;
1274
- case h.LineSeries:
1275
- x <= c && (x === 1 ? i = l : x === 2 ? i = At({
1274
+ case S.LineSeries:
1275
+ v <= c && (v === 1 ? i = l : v === 2 ? i = At({
1276
1276
  countTotal: f,
1277
1277
  countPerSeries: d,
1278
- numberOfSeries: x
1279
- }) : x > 2 && (i = At({
1278
+ numberOfSeries: v
1279
+ }) : v > 2 && (i = At({
1280
1280
  countTotal: y,
1281
1281
  countPerSeries: m,
1282
- numberOfSeries: x
1282
+ numberOfSeries: v
1283
1283
  })));
1284
1284
  break;
1285
- case h.PieSeries:
1285
+ case S.PieSeries:
1286
1286
  i = g;
1287
1287
  break;
1288
- case h.GaugeSeries:
1288
+ case S.GaugeSeries:
1289
1289
  i = p;
1290
1290
  break;
1291
- case h.ScatterSeries:
1291
+ case S.ScatterSeries:
1292
1292
  // handled through the aggregation feature
1293
- case h.HistogramSeries:
1293
+ case S.HistogramSeries:
1294
1294
  // handled through the number of bins
1295
- case h.BoxPlotSeries:
1295
+ case S.BoxPlotSeries:
1296
1296
  }
1297
- return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / x)), i;
1297
+ return (B === F.BarAndLineNoAggregation || B === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / v)), i;
1298
1298
  }
1299
1299
  function Di(t, e) {
1300
1300
  let i = t;
@@ -1321,7 +1321,7 @@ function Xc(t) {
1321
1321
  return e;
1322
1322
  }
1323
1323
  function Aa(t) {
1324
- const { stringToTruncate: e, characterLimit: i, ellipsis: a = C.chartEllipsis } = t;
1324
+ const { stringToTruncate: e, characterLimit: i, ellipsis: a = x.chartEllipsis } = t;
1325
1325
  let r = e;
1326
1326
  return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (r = e.slice(0, i), r = `${r}${a}`), r;
1327
1327
  }
@@ -1345,7 +1345,7 @@ function Kc(t, e = ":") {
1345
1345
  function ed(t) {
1346
1346
  return (i) => {
1347
1347
  let a = typeof i != "string" ? i?.toString() ?? "" : i;
1348
- return !oe(a) && a !== C.htmlEmptyContent && (a = Aa({
1348
+ return !oe(a) && a !== x.htmlEmptyContent && (a = Aa({
1349
1349
  stringToTruncate: a,
1350
1350
  characterLimit: t
1351
1351
  })), a;
@@ -1368,7 +1368,7 @@ function td(t) {
1368
1368
  let u = i ?? e?.text ?? "";
1369
1369
  if (a === "html") {
1370
1370
  let { wrap: c, maxWidth: l } = n ?? {};
1371
- r === br.Wrap && (c = !0, l = l ?? C.xAxisLabelMaxWidth);
1371
+ r === br.Wrap && (c = !0, l = l ?? x.xAxisLabelMaxWidth);
1372
1372
  const d = c === !0 && Number.isFinite(l) ? `max-width: ${l}px; word-break: break-word;` : "";
1373
1373
  u = `<p style="margin:0;${s}${o}${d}">${u}</p>`;
1374
1374
  } else
@@ -1379,12 +1379,12 @@ function _n(t) {
1379
1379
  return t ? t.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
1380
1380
  }
1381
1381
  const id = [
1382
- h.BarSeries,
1383
- h.BoxPlotSeries,
1384
- h.LineSeries,
1385
- h.PieSeries,
1386
- h.HistogramSeries,
1387
- h.ScatterSeries
1382
+ S.BarSeries,
1383
+ S.BoxPlotSeries,
1384
+ S.LineSeries,
1385
+ S.PieSeries,
1386
+ S.HistogramSeries,
1387
+ S.ScatterSeries
1388
1388
  ], ad = 1, rd = { PNG: "png" }, tt = {
1389
1389
  ChartRenderer: 1,
1390
1390
  LayerRenderer: 2
@@ -1395,25 +1395,25 @@ function nd(t) {
1395
1395
  if (e.chartRenderer)
1396
1396
  a = !0;
1397
1397
  else {
1398
- const { series: r } = e, n = _(r), s = k(r), o = Re(e), u = Pe({
1398
+ const { series: r } = e, n = j(r), s = k(r), o = Re(e), u = Pe({
1399
1399
  seriesConfig: o,
1400
1400
  queryObject: i
1401
1401
  }), l = z(i)?.renderer;
1402
1402
  switch (l?.type) {
1403
1403
  case se.Simple:
1404
- a = n === h.HistogramSeries || n === h.ScatterSeries || s === F.BarAndLineMonoField || s === F.BoxPlotMonoField || s === F.BoxPlotMultiFields || s === F.BoxPlotMonoFieldAndCategory || s === F.BarAndLineNoAggregation && r.length === 1 && !u;
1404
+ a = n === S.HistogramSeries || n === S.ScatterSeries || s === F.BarAndLineMonoField || s === F.BoxPlotMonoField || s === F.BoxPlotMultiFields || s === F.BoxPlotMonoFieldAndCategory || s === F.BarAndLineNoAggregation && r.length === 1 && !u;
1405
1405
  break;
1406
1406
  case se.UniqueValue:
1407
1407
  {
1408
1408
  const f = l?.field, m = te(o.query?.where), { x: y } = o;
1409
- a = (s === F.BoxPlotMonoFieldAndSplitBy || s === F.BoxPlotMultiFieldsAndSplitBy || s === F.BoxPlotMonoFieldAndCategoryAndSplitBy || s === F.BarAndLineSplitByNoAggregation || s === F.BarAndLineSplitBy) && f === m || (s === F.BoxPlotMonoFieldAndCategory || s === F.PieFromCategory || s === F.BarAndLineMonoField) && f === y || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation || n === h.ScatterSeries;
1409
+ a = (s === F.BoxPlotMonoFieldAndSplitBy || s === F.BoxPlotMultiFieldsAndSplitBy || s === F.BoxPlotMonoFieldAndCategoryAndSplitBy || s === F.BarAndLineSplitByNoAggregation || s === F.BarAndLineSplitBy) && f === m || (s === F.BoxPlotMonoFieldAndCategory || s === F.PieFromCategory || s === F.BarAndLineMonoField) && f === y || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation || n === S.ScatterSeries;
1410
1410
  }
1411
1411
  break;
1412
1412
  case se.PieChart:
1413
1413
  a = s === F.PieFromFields || s === F.BarAndLineFromFields || s === F.BarAndLineMultiFields || s === F.BarAndLineMonoField || s === F.BoxPlotMonoField || s === F.BoxPlotMultiFields || s === F.BoxPlotMonoFieldAndCategory || s === F.BoxPlotMultiFieldsAndCategory;
1414
1414
  break;
1415
1415
  case se.ClassBreaks:
1416
- a = n === h.HeatSeries || n === h.ScatterSeries || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation;
1416
+ a = n === S.HeatSeries || n === S.ScatterSeries || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation;
1417
1417
  break;
1418
1418
  case se.Dictionary:
1419
1419
  case se.DotDensity:
@@ -1427,10 +1427,10 @@ function jn(t, e) {
1427
1427
  return _n(t?.type) ?? e?.type;
1428
1428
  }
1429
1429
  function Hn(t) {
1430
- const e = C.rendererSymbolField;
1430
+ const e = x.rendererSymbolField;
1431
1431
  let i = e in t ? e : void 0;
1432
1432
  if (!i) {
1433
- const a = t[C.originalCategoryValue];
1433
+ const a = t[x.originalCategoryValue];
1434
1434
  i = Object.keys(t).find((r) => {
1435
1435
  const n = t[r];
1436
1436
  return r.includes(e) && n?.label && n?.uniqueValue === a;
@@ -1455,39 +1455,39 @@ function wa(t) {
1455
1455
  function Wn(t) {
1456
1456
  const { renderer: e, seriesConfig: i, chartSubType: a, dataItem: r, rendererOrigin: n } = t;
1457
1457
  let s, o = !1;
1458
- const u = _(i), { outline: c, attributes: l } = e;
1458
+ const u = j(i), { outline: c, attributes: l } = e;
1459
1459
  return l.forEach(
1460
1460
  (d) => {
1461
1461
  let { field: f } = d;
1462
1462
  const { color: m, label: y } = d;
1463
1463
  let g;
1464
1464
  Array.isArray(m) && m?.length === 4 ? g = m : m && "toRgba" in m && (g = m.toRgba());
1465
- let p = !1, S = !0;
1465
+ let p = !1, h = !0;
1466
1466
  switch (u) {
1467
- case h.BarSeries:
1468
- case h.LineSeries:
1469
- case h.ComboLineAndBarSeries:
1470
- case h.RadarSeries:
1467
+ case S.BarSeries:
1468
+ case S.LineSeries:
1469
+ case S.ComboLineAndBarSeries:
1470
+ case S.RadarSeries:
1471
1471
  if (a !== F.BarAndLineFromFields) {
1472
- const x = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === f);
1473
- x !== void 0 && "y" in x ? f = [x.y].flat()[0] : f = "";
1472
+ const v = i.find((B) => B.query?.outStatistics?.[0]?.onStatisticField === f);
1473
+ v !== void 0 && "y" in v ? f = [v.y].flat()[0] : f = "";
1474
1474
  }
1475
- p = a !== F.BarAndLineFromFields || f === r[C.originalCategoryValue];
1475
+ p = a !== F.BarAndLineFromFields || f === r[x.originalCategoryValue];
1476
1476
  break;
1477
- case h.PieSeries:
1478
- p = a === F.PieFromFields && f === r[C.originalCategoryValue];
1477
+ case S.PieSeries:
1478
+ p = a === F.PieFromFields && f === r[x.originalCategoryValue];
1479
1479
  break;
1480
- case h.BoxPlotSeries:
1481
- a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ? p = f === i[0].y : f && (a === F.BoxPlotMultiFields || a === F.BoxPlotMultiFieldsAndCategory) && (p = i.map((v) => v.y).flat().includes(f)), S = !1;
1480
+ case S.BoxPlotSeries:
1481
+ a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ? p = f === i[0].y : f && (a === F.BoxPlotMultiFields || a === F.BoxPlotMultiFieldsAndCategory) && (p = i.map((B) => B.y).flat().includes(f)), h = !1;
1482
1482
  break;
1483
1483
  }
1484
1484
  p && g && (s = {
1485
1485
  type: _e.SMS,
1486
1486
  color: g,
1487
- label: S && y ? y : void 0
1487
+ label: h && y ? y : void 0
1488
1488
  }, c != null && (s.outline = c), wa({
1489
1489
  dataItem: r,
1490
- symbolField: a === F.BarAndLineFromFields || a === F.PieFromFields ? C.rendererSymbolField : `${C.rendererSymbolField}_${f}`,
1490
+ symbolField: a === F.BarAndLineFromFields || a === F.PieFromFields ? x.rendererSymbolField : `${x.rendererSymbolField}_${f}`,
1491
1491
  rendererSymbol: s,
1492
1492
  rendererOrigin: n
1493
1493
  }) && (o = !0));
@@ -1496,7 +1496,7 @@ function Wn(t) {
1496
1496
  }
1497
1497
  function Gn(t) {
1498
1498
  const { seriesConfig: e, chartSubType: i, rendererType: a } = t;
1499
- let n = C.rendererSymbolField;
1499
+ let n = x.rendererSymbolField;
1500
1500
  if (a === se.UniqueValue) {
1501
1501
  if (ia(i)) {
1502
1502
  const s = fe({
@@ -1504,7 +1504,7 @@ function Gn(t) {
1504
1504
  keepSurroundingQuotes: !1,
1505
1505
  escape: !1
1506
1506
  });
1507
- s === null ? n = C.nullValue : i === F.BarAndLineSplitBy && typeof e.y == "string" ? n = e.y : i === F.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? n = `${e.y}_${s}` : n = `${s}`;
1507
+ s === null ? n = x.nullValue : i === F.BarAndLineSplitBy && typeof e.y == "string" ? n = e.y : i === F.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? n = `${e.y}_${s}` : n = `${s}`;
1508
1508
  }
1509
1509
  } else if (a === se.PieChart)
1510
1510
  switch (i) {
@@ -1528,7 +1528,7 @@ function La(t) {
1528
1528
  chartSubType: i,
1529
1529
  rendererType: a
1530
1530
  });
1531
- return n instanceof Array && e.type === h.BoxPlotSeries && a === se.PieChart && r !== void 0 && (n = n.find((s) => s === r[Rt]) ?? n[0]), n = n !== C.rendererSymbolField ? `${C.rendererSymbolField}_${n.toString()}` : n, n;
1531
+ return n instanceof Array && e.type === S.BoxPlotSeries && a === se.PieChart && r !== void 0 && (n = n.find((s) => s === r[Rt]) ?? n[0]), n = n !== x.rendererSymbolField ? `${x.rendererSymbolField}_${n.toString()}` : n, n;
1532
1532
  }
1533
1533
  function Un(t) {
1534
1534
  const { chartRenderer: e, queryObject: i } = t, a = e !== void 0 ? {
@@ -1567,13 +1567,13 @@ async function Yn(t) {
1567
1567
  } else if (i?.[ei.defaultGroupOfSlicesId] !== !0) {
1568
1568
  const { x: m } = e[0], y = /* @__PURE__ */ new Map();
1569
1569
  o && o.trim() !== "" ? e.forEach((g) => {
1570
- if (g.type === h.BarSeries || g.type === h.LineSeries || g.type === h.BoxPlotSeries || g.type === h.RadarSeries) {
1570
+ if (g.type === S.BarSeries || g.type === S.LineSeries || g.type === S.BoxPlotSeries || g.type === S.RadarSeries) {
1571
1571
  const p = La({
1572
1572
  seriesConfig: g,
1573
1573
  chartSubType: s,
1574
1574
  rendererType: r,
1575
1575
  dataItem: i
1576
- }), S = fe({
1576
+ }), h = fe({
1577
1577
  where: g.query?.where,
1578
1578
  normalize: !0,
1579
1579
  keepSurroundingQuotes: !1,
@@ -1581,13 +1581,13 @@ async function Yn(t) {
1581
1581
  });
1582
1582
  y.set(p, {
1583
1583
  ...i,
1584
- [o]: S
1584
+ [o]: h
1585
1585
  });
1586
1586
  }
1587
- }) : e[0].type === h.HeatSeries && r === se.ClassBreaks ? y.set(C.rendererSymbolField, {
1588
- [Q.valueField]: i[Q.valueField]
1587
+ }) : e[0].type === S.HeatSeries && r === se.ClassBreaks ? y.set(x.rendererSymbolField, {
1588
+ [_.valueField]: i[_.valueField]
1589
1589
  }) : y.set(
1590
- _(e) === h.HistogramSeries ? C.rendererSymbolFieldForHistogram : C.rendererSymbolField,
1590
+ j(e) === S.HistogramSeries ? x.rendererSymbolFieldForHistogram : x.rendererSymbolField,
1591
1591
  {
1592
1592
  ...i,
1593
1593
  [m]: In(i)
@@ -1596,9 +1596,9 @@ async function Yn(t) {
1596
1596
  try {
1597
1597
  const g = Array.from(y.entries()), p = u.clone();
1598
1598
  p.layer = u.layer;
1599
- const S = a?.uniqueValueInfos;
1600
- for (let x = 0; x < g.length; x += 1) {
1601
- const [v, b] = g[x];
1599
+ const h = a?.uniqueValueInfos;
1600
+ for (let v = 0; v < g.length; v += 1) {
1601
+ const [B, b] = g[v];
1602
1602
  if (Oi({
1603
1603
  mode: "encode",
1604
1604
  x: m,
@@ -1615,7 +1615,7 @@ async function Yn(t) {
1615
1615
  T && (d.color = T.length === 4 ? T : [...T, 255]);
1616
1616
  }
1617
1617
  const N = await Gt.getLegendLabel(p);
1618
- N != null && N !== "" && (d.label = N, d.uniqueValue = S?.find((T) => T.label === N)?.value ?? void 0);
1618
+ N != null && N !== "" && (d.label = N, d.uniqueValue = h?.find((T) => T.label === N)?.value ?? void 0);
1619
1619
  }
1620
1620
  l?.set(JSON.stringify(b), d);
1621
1621
  }
@@ -1626,7 +1626,7 @@ async function Yn(t) {
1626
1626
  attributes: i
1627
1627
  }), wa({
1628
1628
  dataItem: i,
1629
- symbolField: v,
1629
+ symbolField: B,
1630
1630
  rendererSymbol: d,
1631
1631
  rendererOrigin: n
1632
1632
  }) && (f = !0);
@@ -1639,7 +1639,7 @@ async function Yn(t) {
1639
1639
  function Oi(t) {
1640
1640
  const { splitByField: e, attributes: i, x: a, mode: r } = t;
1641
1641
  [a, e ?? ""].forEach((n) => {
1642
- i[n] === (r === "encode" ? null : C.nullValue) && (i[n] = r === "encode" ? C.nullValue : null);
1642
+ i[n] === (r === "encode" ? null : x.nullValue) && (i[n] = r === "encode" ? x.nullValue : null);
1643
1643
  });
1644
1644
  }
1645
1645
  function Zn(t) {
@@ -1710,8 +1710,8 @@ function es(t, e) {
1710
1710
  }
1711
1711
  function ld(t, e) {
1712
1712
  let i = !0;
1713
- const a = _(t?.series), r = _(e?.series);
1714
- return a && a !== r && (i = a === h.ComboLineAndBarSeries && (r === h.BarSeries || r === h.LineSeries) || r === h.ComboLineAndBarSeries && (a === h.BarSeries || a === h.LineSeries) || a === h.BarSeries && r === h.LineSeries || a === h.LineSeries && r === h.BarSeries), i;
1713
+ const a = j(t?.series), r = j(e?.series);
1714
+ return a && a !== r && (i = a === S.ComboLineAndBarSeries && (r === S.BarSeries || r === S.LineSeries) || r === S.ComboLineAndBarSeries && (a === S.BarSeries || a === S.LineSeries) || a === S.BarSeries && r === S.LineSeries || a === S.LineSeries && r === S.BarSeries), i;
1715
1715
  }
1716
1716
  function ti(t, e) {
1717
1717
  return t !== void 0 && e !== void 0 && e > 0;
@@ -1721,9 +1721,9 @@ function ud(t) {
1721
1721
  let r = [];
1722
1722
  const n = k(e.series), s = aa(e), o = z(i), u = e.chartRenderer ?? o?.renderer?.toJSON();
1723
1723
  return r = e.series.map((c, l) => {
1724
- const d = _([c]);
1724
+ const d = j([c]);
1725
1725
  let f;
1726
- return (d === h.BarSeries || d === h.LineSeries || d === h.RadarSeries) && (c.type === h.BarSeries ? f = c.fillSymbol?.color : (c.type === h.RadarSeries || c.type === h.LineSeries) && (f = c.lineSymbol?.color), s ? f = Zn({
1726
+ return (d === S.BarSeries || d === S.LineSeries || d === S.RadarSeries) && (c.type === S.BarSeries ? f = c.fillSymbol?.color : (c.type === S.RadarSeries || c.type === S.LineSeries) && (f = c.lineSymbol?.color), s ? f = Zn({
1727
1727
  dataItem: a[0],
1728
1728
  seriesConfig: c,
1729
1729
  chartSubType: n,
@@ -1746,7 +1746,7 @@ function is(t) {
1746
1746
  return de(t) ? t?.showOutliers : void 0;
1747
1747
  }
1748
1748
  function cd() {
1749
- return `{name} {${C.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
1749
+ return `{name} {${x.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
1750
1750
  }
1751
1751
  function as(t, e) {
1752
1752
  const i = me.now().offset / 60, a = me.now().setZone(t) ?? i, r = a.offset / 60, n = e ? a.setZone(e).offset / 60 : 0;
@@ -1952,53 +1952,53 @@ function yi(t) {
1952
1952
  seriesConfig: d,
1953
1953
  queryObject: a
1954
1954
  });
1955
- let p = /* @__PURE__ */ new Map(), S = !1, x = !1, v = !1, b = !1, B = !1, N = {};
1955
+ let p = /* @__PURE__ */ new Map(), h = !1, v = !1, B = !1, b = !1, C = !1, N = {};
1956
1956
  if (f !== void 0) {
1957
1957
  N = He(f);
1958
1958
  const $ = te(f.where);
1959
1959
  let M = "";
1960
- switch (i.fetchNullValues !== !0 && (m !== C.boxPlot.boxPlotCategory && (M = `${m} IS NOT NULL`), $.trim() !== "" && $ !== m && !Ie(f.where) && (M = Y([M, `${$} IS NOT NULL`]))), l) {
1960
+ switch (i.fetchNullValues !== !0 && (m !== x.boxPlot.boxPlotCategory && (M = `${m} IS NOT NULL`), $.trim() !== "" && $ !== m && !Ie(f.where) && (M = Y([M, `${$} IS NOT NULL`]))), l) {
1961
1961
  case F.BarAndLineSplitBy: {
1962
- p = ss(c), b = !0, S = !0, x = !0;
1962
+ p = ss(c), b = !0, h = !0, v = !0;
1963
1963
  break;
1964
1964
  }
1965
1965
  case F.BarAndLineMultiFields:
1966
- cs(N, c), x = !0;
1966
+ cs(N, c), v = !0;
1967
1967
  break;
1968
1968
  case F.PieFromFields:
1969
1969
  case F.BarAndLineFromFields:
1970
- M = "", v = !0, x = !0;
1970
+ M = "", B = !0, v = !0;
1971
1971
  break;
1972
1972
  case F.BarAndLineMonoField:
1973
1973
  case F.PieFromCategory:
1974
- x = !0;
1974
+ v = !0;
1975
1975
  break;
1976
1976
  case F.BoxPlotMonoField:
1977
1977
  case F.BoxPlotMultiFields:
1978
- v = !0, B = !0;
1978
+ B = !0, C = !0;
1979
1979
  break;
1980
1980
  case F.BoxPlotMonoFieldAndCategory:
1981
1981
  case F.BoxPlotMultiFieldsAndCategory:
1982
1982
  case F.BoxPlotMonoFieldAndSplitBy:
1983
1983
  case F.BoxPlotMonoFieldAndCategoryAndSplitBy:
1984
1984
  case F.BoxPlotMultiFieldsAndSplitBy: {
1985
- B = !0, b = !0, v = !0;
1985
+ C = !0, b = !0, B = !0;
1986
1986
  break;
1987
1987
  }
1988
1988
  case F.PieNoAggregation:
1989
1989
  case F.BarAndLineNoAggregation:
1990
1990
  case F.BarAndLineSplitByNoAggregation:
1991
1991
  }
1992
- if (x && ls({
1992
+ if (v && ls({
1993
1993
  uniqueQuery: N,
1994
1994
  y,
1995
- useGenericOutStatFieldName: S,
1995
+ useGenericOutStatFieldName: h,
1996
1996
  queryObject: a,
1997
1997
  chartSubType: l,
1998
1998
  isTimeBinningSeries: g,
1999
1999
  returnFeaturesExtent: o,
2000
2000
  splitByField: $
2001
- }), b && os({ uniqueQuery: N, splitByField: $, x: m }), de(e) && B && (N.outStatistics = us({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete N.orderByFields : i.orderByFields !== void 0 && (N.orderByFields = i.orderByFields.filter((q) => {
2001
+ }), b && os({ uniqueQuery: N, splitByField: $, x: m }), de(e) && C && (N.outStatistics = us({ chartConfig: e, fetchFullBoxPlotData: s })), B ? delete N.orderByFields : i.orderByFields !== void 0 && (N.orderByFields = i.orderByFields.filter((q) => {
2002
2002
  const G = q.split(" ");
2003
2003
  return !oe(G[0]);
2004
2004
  })), g && be(c[0])) {
@@ -2038,7 +2038,7 @@ const le = {
2038
2038
  AdditionalProperties: "additionalProperties",
2039
2039
  Enum: "enum",
2040
2040
  AnyOf: "anyOf"
2041
- }, j = {
2041
+ }, Q = {
2042
2042
  BadData: "badData",
2043
2043
  EmptyDataSet: "emptyDataSet",
2044
2044
  NoValue: "noValue",
@@ -2084,23 +2084,23 @@ async function ys(t) {
2084
2084
  const y = ft(i.geometry) ?? f.fullExtent, g = Ot(f, c);
2085
2085
  if (g < 0)
2086
2086
  throw new Error("Band ID not found for `${x}`.");
2087
- let p, S;
2087
+ let p, h;
2088
2088
  if (!r && (l === void 0 || l === Z.None) && d && Array.isArray(m.histograms) && m.histograms.length > g && m.histograms[g].size % d === 0 && Array.isArray(m.statistics) && m?.statistics?.length > g)
2089
- p = m.histograms[g], S = m.statistics[g];
2089
+ p = m.histograms[g], h = m.statistics[g];
2090
2090
  else {
2091
- let x, v, b;
2091
+ let v, B, b;
2092
2092
  if (r && n)
2093
- x = n.resolution, v = n.resolution, b = n.spatialReference;
2093
+ v = n.resolution, B = n.resolution, b = n.spatialReference;
2094
2094
  else {
2095
2095
  const w = fs, L = 2, A = m.width, I = m.height, P = Math.max(
2096
2096
  0,
2097
2097
  Math.ceil(Math.log(Math.max(A, I) / w) / Math.log(L))
2098
2098
  ), O = L ** P;
2099
- x = m.pixelSize.x * O, v = m.pixelSize.y * O, b = f.spatialReference;
2099
+ v = m.pixelSize.x * O, B = m.pixelSize.y * O, b = f.spatialReference;
2100
2100
  }
2101
- const B = new ca({
2102
- x,
2103
- y: v,
2101
+ const C = new ca({
2102
+ x: v,
2103
+ y: B,
2104
2104
  spatialReference: b
2105
2105
  }), N = ms(l), T = await Gr(
2106
2106
  f,
@@ -2108,7 +2108,7 @@ async function ys(t) {
2108
2108
  bandIds: [g],
2109
2109
  geometry: y,
2110
2110
  histogramSize: d ?? void 0,
2111
- pixelSize: B,
2111
+ pixelSize: C,
2112
2112
  transformType: N,
2113
2113
  downsampleOnly: !0
2114
2114
  },
@@ -2116,9 +2116,9 @@ async function ys(t) {
2116
2116
  signal: o ?? (s !== void 0 ? Ge.get(s)?.signal : void 0)
2117
2117
  }
2118
2118
  );
2119
- S = T.statistics[0], p = T.histograms[0];
2119
+ h = T.statistics[0], p = T.histograms[0];
2120
2120
  }
2121
- return { histogram: p, statistics: S };
2121
+ return { histogram: p, statistics: h };
2122
2122
  }
2123
2123
  function gs(t, e) {
2124
2124
  const i = [], a = (t.max - t.min) / t.size;
@@ -2178,12 +2178,14 @@ async function ps(t) {
2178
2178
  }
2179
2179
  } : u = {
2180
2180
  valid: !1,
2181
- invalidType: j.EmptyDataSet
2181
+ invalidType: Q.EmptyDataSet
2182
2182
  };
2183
2183
  } else
2184
2184
  u = {
2185
2185
  valid: !1,
2186
- invalidType: j.BadData
2186
+ invalidType: Q.NoValue
2187
+ // for #17296
2188
+ // invalidType: DataWarningKeywords.BadData, // 2DO: review whether to use BadData or NoValue after future enhancement
2187
2189
  };
2188
2190
  return u;
2189
2191
  }
@@ -2294,22 +2296,22 @@ async function vs(t) {
2294
2296
  let m;
2295
2297
  const y = z(e), g = ge(y);
2296
2298
  if (g) {
2297
- const S = { where: Y([u, g.definitionExpression]) }, x = { query: S, signal: o }, v = ft(c)?.extent?.toJSON();
2298
- if (v !== void 0) {
2299
- const B = Cs(d), { xmin: N, ymin: T, xmax: w, ymax: L } = v;
2300
- S.geometryType = "esriGeometryEnvelope", S.geometry = `${N},${T},${w},${L}`, l !== void 0 && (S.distance = l.toString()), B !== void 0 && (S.units = B, c?.spatialReference?.wkid != null && (S.inSR = c.spatialReference.wkid.toString()));
2299
+ const h = { where: Y([u, g.definitionExpression]) }, v = { query: h, signal: o }, B = ft(c)?.extent?.toJSON();
2300
+ if (B !== void 0) {
2301
+ const C = Cs(d), { xmin: N, ymin: T, xmax: w, ymax: L } = B;
2302
+ h.geometryType = "esriGeometryEnvelope", h.geometry = `${N},${T},${w},${L}`, l !== void 0 && (h.distance = l.toString()), C !== void 0 && (h.units = C, c?.spatialReference?.wkid != null && (h.inSR = c.spatialReference.wkid.toString()));
2301
2303
  }
2302
- f && (S.time = `${f[0]},${f[1]}`);
2304
+ f && (h.time = `${f[0]},${f[1]}`);
2303
2305
  const b = `${g.url}/${g.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;
2304
2306
  try {
2305
- m = (await Lt(b, x)).data?.features?.[0]?.attributes;
2306
- } catch (B) {
2307
+ m = (await Lt(b, v)).data?.features?.[0]?.attributes;
2308
+ } catch (C) {
2307
2309
  const N = s ?? (await mt(
2308
2310
  ze(document.documentElement).t9nLocale,
2309
2311
  gt("./assets/common/t9n"),
2310
2312
  "messages."
2311
2313
  )).errorStrings;
2312
- throw new re(le.QueryFeaturesError, N.errors.queryError, B);
2314
+ throw new re(le.QueryFeaturesError, N.errors.queryError, C);
2313
2315
  }
2314
2316
  }
2315
2317
  return m;
@@ -2326,7 +2328,7 @@ async function Bs(t) {
2326
2328
  let u;
2327
2329
  const c = z(i), l = yn(c);
2328
2330
  if (l && i && "queryAttributeBins" in i) {
2329
- const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone: g, firstDayOfWeek: p, includeLeapDay: S } = e, x = Fo({
2331
+ const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone: g, firstDayOfWeek: p, includeLeapDay: h } = e, v = Fo({
2330
2332
  queryObject: i,
2331
2333
  queryConfig: a,
2332
2334
  x: d,
@@ -2335,14 +2337,14 @@ async function Bs(t) {
2335
2337
  yTemporalBinning: y,
2336
2338
  configTimeZone: g,
2337
2339
  firstDayOfWeek: p,
2338
- includeLeapDay: S,
2340
+ includeLeapDay: h,
2339
2341
  view: r,
2340
2342
  syncViewTimeZone: n
2341
2343
  });
2342
2344
  try {
2343
- u = await i.queryAttributeBins(x, { signal: o });
2344
- } catch (v) {
2345
- throw new re(le.QueryFeaturesError, s.errors.queryError, v);
2345
+ u = await i.queryAttributeBins(v, { signal: o });
2346
+ } catch (B) {
2347
+ throw new re(le.QueryFeaturesError, s.errors.queryError, B);
2346
2348
  }
2347
2349
  }
2348
2350
  if (!l)
@@ -2496,10 +2498,10 @@ async function Fe(t) {
2496
2498
  const l = z(e), d = r ?? 1, f = Ha(l);
2497
2499
  if (n !== !0 && d > f && l?.capabilities?.query.supportsPagination) {
2498
2500
  let m = 0, y = 0;
2499
- const g = Math.ceil(d / f), p = Math.ceil(g / W.maxParallelRequests), S = [];
2501
+ const g = Math.ceil(d / f), p = Math.ceil(g / W.maxParallelRequests), h = [];
2500
2502
  for (; y < p; ) {
2501
2503
  m = y * W.maxParallelRequests * f;
2502
- const v = ws({
2504
+ const B = ws({
2503
2505
  queryConfig: { ...i, start: m },
2504
2506
  queryObject: e,
2505
2507
  maxRecords: f,
@@ -2509,9 +2511,9 @@ async function Fe(t) {
2509
2511
  abortKey: o,
2510
2512
  abortSignal: u
2511
2513
  });
2512
- S.push(v), y += 1;
2514
+ h.push(B), y += 1;
2513
2515
  }
2514
- c = (await Promise.all(S)).flat();
2516
+ c = (await Promise.all(h)).flat();
2515
2517
  } else (Number.isNaN(d) || d >= 0) && (c = await Oa({
2516
2518
  queryObject: e,
2517
2519
  queryConfig: i,
@@ -2641,10 +2643,10 @@ async function Is(t) {
2641
2643
  typeKey: y,
2642
2644
  typeValue: g,
2643
2645
  fieldValue: p,
2644
- slopePropertyList: S,
2645
- interceptPropertyList: x,
2646
- r2PropertyList: v
2647
- } = xs, b = `[{"${y}": "${g}", "${p}":"${u},${c}"}]`, B = await vs({
2646
+ slopePropertyList: h,
2647
+ interceptPropertyList: v,
2648
+ r2PropertyList: B
2649
+ } = xs, b = `[{"${y}": "${g}", "${p}":"${u},${c}"}]`, C = await vs({
2648
2650
  queryObject: i,
2649
2651
  queryConfig: r,
2650
2652
  outputFormat: m,
@@ -2653,11 +2655,11 @@ async function Is(t) {
2653
2655
  errorStrings: n,
2654
2656
  abortSignal: s
2655
2657
  });
2656
- if (B !== void 0) {
2658
+ if (C !== void 0) {
2657
2659
  let N = Number.NaN, T = Number.NaN;
2658
- const { expr: w } = Wt(B, S), { expr: L } = Wt(B, x), { expr: A } = Wt(B, v);
2659
- w !== void 0 && Number.isFinite(B[w]) && (N = B[w]), L !== void 0 && Number.isFinite(B[L]) && (T = B[L]), A !== void 0 && Number.isFinite(B[A]) && (l = B[A]);
2660
- const { dataContextXMinField: I, dataContextXMaxField: P, dataContextYMinField: O, dataContextYMaxField: V } = C.scatterplotAggregationFields, $ = e.get(I) ?? Number.NaN, M = e.get(P) ?? Number.NaN, q = e.get(O) ?? Number.NaN, G = e.get(V) ?? Number.NaN, X = (M - $) / 100;
2660
+ const { expr: w } = Wt(C, h), { expr: L } = Wt(C, v), { expr: A } = Wt(C, B);
2661
+ w !== void 0 && Number.isFinite(C[w]) && (N = C[w]), L !== void 0 && Number.isFinite(C[L]) && (T = C[L]), A !== void 0 && Number.isFinite(C[A]) && (l = C[A]);
2662
+ const { dataContextXMinField: I, dataContextXMaxField: P, dataContextYMinField: O, dataContextYMaxField: V } = x.scatterplotAggregationFields, $ = e.get(I) ?? Number.NaN, M = e.get(P) ?? Number.NaN, q = e.get(O) ?? Number.NaN, G = e.get(V) ?? Number.NaN, X = (M - $) / 100;
2661
2663
  let H = $ - X, ae = Number.NaN;
2662
2664
  for (; !(ae >= q && ae <= G) && H <= M; )
2663
2665
  H += X, ae = N * H + T;
@@ -2673,7 +2675,7 @@ async function Is(t) {
2673
2675
  }
2674
2676
  function Ea(t) {
2675
2677
  const { data: e, chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a;
2676
- let { r2: s, trendLinePoints: o } = C.scatterplotSeries;
2678
+ let { r2: s, trendLinePoints: o } = x.scatterplotSeries;
2677
2679
  const u = Os({ data: e, x: r, y: n });
2678
2680
  if (u !== void 0) {
2679
2681
  const c = jr(u), l = Hr(c);
@@ -2682,7 +2684,7 @@ function Ea(t) {
2682
2684
  return { r2: s, trendLinePoints: o };
2683
2685
  }
2684
2686
  async function qa(t) {
2685
- const e = await Ms(t), { chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a, { r2: s } = C.scatterplotSeries, o = [
2687
+ const e = await Ms(t), { chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a, { r2: s } = x.scatterplotSeries, o = [
2686
2688
  { [r]: Number.NaN, [n]: Number.NaN },
2687
2689
  { [r]: Number.NaN, [n]: Number.NaN }
2688
2690
  ];
@@ -2750,7 +2752,7 @@ async function $s(t) {
2750
2752
  queryObject: a,
2751
2753
  chartConfig: e,
2752
2754
  errorStrings: s
2753
- }) : C.scatterplotSeries;
2755
+ }) : x.scatterplotSeries;
2754
2756
  return { dataItems: c, r2: d, trendLinePoints: f };
2755
2757
  }
2756
2758
  const ks = (t) => ({
@@ -2881,8 +2883,8 @@ function js(t) {
2881
2883
  function Ii(t, e) {
2882
2884
  let i;
2883
2885
  return t == null && e ? i = {
2884
- groupKey: C.nullValue,
2885
- display: C.nullValue,
2886
+ groupKey: x.nullValue,
2887
+ display: x.nullValue,
2886
2888
  original: null
2887
2889
  } : i = { groupKey: t, display: t, original: t }, i;
2888
2890
  }
@@ -2930,40 +2932,50 @@ async function zs(t) {
2930
2932
  if (!l || !d)
2931
2933
  u = {
2932
2934
  valid: !1,
2933
- invalidType: j.BadData
2935
+ invalidType: Q.NoValue
2936
+ // for #17296
2937
+ // invalidType: DataWarningKeywords.BadData, // 2DO: review whether to use BadData or NoValue after future enhancement
2934
2938
  };
2935
2939
  else {
2936
2940
  const f = e.series;
2937
- if (!f || f.length === 0 || d.length === 0)
2941
+ if (!f || f.length === 0)
2942
+ u = {
2943
+ valid: !1,
2944
+ invalidType: Q.InvalidConfig
2945
+ // for #17296
2946
+ };
2947
+ else if (d.length === 0)
2938
2948
  u = {
2939
- valid: !0
2949
+ valid: !1,
2950
+ invalidType: Q.EmptyDataSet
2951
+ // for #17296
2940
2952
  };
2941
2953
  else {
2942
- const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues), g = /* @__PURE__ */ new Map();
2943
- for (const S of d) {
2944
- const { groupKey: x } = Ii(S.attributes[m], y);
2945
- x === C.nullValue && !y || (g.has(x) || g.set(x, []), g.get(x).push(S.attributes));
2954
+ const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((h) => h.query?.fetchNullValues), g = /* @__PURE__ */ new Map();
2955
+ for (const h of d) {
2956
+ const { groupKey: v } = Ii(h.attributes[m], y);
2957
+ v === x.nullValue && !y || (g.has(v) || g.set(v, []), g.get(v).push(h.attributes));
2946
2958
  }
2947
2959
  const p = [];
2948
- g.forEach((S) => {
2949
- const x = {}, v = S[0][m], { display: b, original: B } = Ii(v, y);
2950
- x[m] = b, x[C.xAxisField] = b, x[C.originalCategoryValue] = B, f.forEach((N) => {
2960
+ g.forEach((h) => {
2961
+ const v = {}, B = h[0][m], { display: b, original: C } = Ii(B, y);
2962
+ v[m] = b, v[x.xAxisField] = b, v[x.originalCategoryValue] = C, f.forEach((N) => {
2951
2963
  const T = N.query?.outStatistics?.[0];
2952
2964
  if (!T) {
2953
2965
  const { name: O } = N;
2954
- x[O] = S[0][O];
2966
+ v[O] = h[0][O];
2955
2967
  return;
2956
2968
  }
2957
- let w = S;
2969
+ let w = h;
2958
2970
  const L = N.query?.where;
2959
- L && (w = S.filter((O) => _s(O, L)));
2971
+ L && (w = h.filter((O) => _s(O, L)));
2960
2972
  const A = T.statisticType, I = T.onStatisticField, P = T.outStatisticFieldName;
2961
- x[P] = js({
2973
+ v[P] = js({
2962
2974
  features: w,
2963
2975
  aggregationType: A,
2964
2976
  onField: I
2965
2977
  });
2966
- }), p.push(x);
2978
+ }), p.push(v);
2967
2979
  }), u = {
2968
2980
  valid: !0,
2969
2981
  data: {
@@ -3031,20 +3043,20 @@ function Us(t) {
3031
3043
  return r;
3032
3044
  }
3033
3045
  const ai = "PixelID", Ys = "Pixel ID", Zs = [
3034
- h.BarSeries,
3035
- h.HistogramSeries,
3036
- h.ScatterSeries
3046
+ S.BarSeries,
3047
+ S.HistogramSeries,
3048
+ S.ScatterSeries
3037
3049
  ];
3038
3050
  async function pd(t) {
3039
3051
  let e = !1;
3040
3052
  const { config: i, layer: a, abortSignal: r } = t;
3041
3053
  if (Dr(Zs, i))
3042
- switch (_(i?.series)) {
3043
- case h.BarSeries:
3054
+ switch (j(i?.series)) {
3055
+ case S.BarSeries:
3044
3056
  a.loaded || await a.load({ signal: r }), e = !!(await dt(a, r))?.attributeTable;
3045
3057
  break;
3046
- case h.HistogramSeries:
3047
- case h.ScatterSeries:
3058
+ case S.HistogramSeries:
3059
+ case S.ScatterSeries:
3048
3060
  e = !0;
3049
3061
  break;
3050
3062
  }
@@ -3090,7 +3102,7 @@ function Ra(t) {
3090
3102
  if (!n)
3091
3103
  throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");
3092
3104
  let s = [];
3093
- return i !== void 0 ? i !== h.BarSeries ? s = Ei({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }) : n.attributeTable && (s = n.attributeTable.fields.map((o) => o.toJSON())) : n.attributeTable ? s = n.attributeTable.fields.map((o) => o.toJSON()) : s = Ei({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }), s;
3105
+ return i !== void 0 ? i !== S.BarSeries ? s = Ei({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }) : n.attributeTable && (s = n.attributeTable.fields.map((o) => o.toJSON())) : n.attributeTable ? s = n.attributeTable.fields.map((o) => o.toJSON()) : s = Ei({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }), s;
3094
3106
  }
3095
3107
  function Ei(t) {
3096
3108
  const { layer: e, rasterInfo: i, popupTemplateFieldInfosEnabled: a } = t;
@@ -3169,24 +3181,24 @@ const $a = qt(
3169
3181
  }
3170
3182
  return i;
3171
3183
  }, Sd = (t) => {
3172
- const { chartConfig: e, layer: i, selectionDataItems: a } = t, r = _(e.series);
3184
+ const { chartConfig: e, layer: i, selectionDataItems: a } = t, r = j(e.series);
3173
3185
  let n;
3174
3186
  switch (r) {
3175
- case h.BarSeries:
3187
+ case S.BarSeries:
3176
3188
  n = Us({
3177
3189
  chartConfig: e,
3178
3190
  layer: i,
3179
3191
  selectionDataItems: a
3180
3192
  });
3181
3193
  break;
3182
- case h.HistogramSeries:
3194
+ case S.HistogramSeries:
3183
3195
  n = Ss({
3184
3196
  chartConfig: e,
3185
3197
  layer: i,
3186
3198
  selectionDataItems: a
3187
3199
  });
3188
3200
  break;
3189
- case h.ScatterSeries:
3201
+ case S.ScatterSeries:
3190
3202
  n = Qs({
3191
3203
  chartConfig: e,
3192
3204
  layer: i,
@@ -3458,24 +3470,24 @@ function ja(t) {
3458
3470
  spatialRelationship: g
3459
3471
  } = o ?? {}, {
3460
3472
  where: p,
3461
- gdbVersion: S,
3462
- timeExtent: x,
3463
- geometry: v,
3473
+ gdbVersion: h,
3474
+ timeExtent: v,
3475
+ geometry: B,
3464
3476
  distance: b,
3465
- units: B,
3477
+ units: C,
3466
3478
  objectIds: N,
3467
3479
  spatialRelationship: T
3468
3480
  } = a ?? {}, w = s[0], { query: L } = w, { where: A } = L ?? {}, I = k(s), P = { ...L };
3469
- return P.where = Y([u, p]), I !== F.BarAndLineSplitBy && I !== F.BoxPlotMonoFieldAndSplitBy && I !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && I !== F.BoxPlotMultiFieldsAndSplitBy && I !== F.BarAndLineSplitByNoAggregation && (P.where = Y([P.where, A])), i.orderOptions?.orderByFields !== void 0 && (P.orderByFields = i.orderOptions.orderByFields), P.gdbVersion = S ?? c, P.timeExtent = yo(n?.timeExtent, x ?? l), P.geometry = ie(e) ? to({
3481
+ return P.where = Y([u, p]), I !== F.BarAndLineSplitBy && I !== F.BoxPlotMonoFieldAndSplitBy && I !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && I !== F.BoxPlotMultiFieldsAndSplitBy && I !== F.BarAndLineSplitByNoAggregation && (P.where = Y([P.where, A])), i.orderOptions?.orderByFields !== void 0 && (P.orderByFields = i.orderOptions.orderByFields), P.gdbVersion = h ?? c, P.timeExtent = yo(n?.timeExtent, v ?? l), P.geometry = ie(e) ? to({
3470
3482
  queryObject: e,
3471
- defaultGeometry: v ?? d,
3483
+ defaultGeometry: B ?? d,
3472
3484
  ignoreViewExtent: r,
3473
3485
  viewExtent: n?.extent
3474
3486
  }) : go({
3475
3487
  queryObject: e,
3476
- defaultGeometry: v ?? d,
3488
+ defaultGeometry: B ?? d,
3477
3489
  ignoreViewExtent: r
3478
- }), P.distance = b ?? f, P.units = B ?? m, P.objectIds = N ?? y, P.spatialRelationship = T ?? g, L?.outStatistics?.[0]?.statisticType === D.Count && (P.returnDistinctValues = L?.returnDistinctValues ?? !1), P?.outStatistics?.forEach((O) => {
3490
+ }), P.distance = b ?? f, P.units = C ?? m, P.objectIds = N ?? y, P.spatialRelationship = T ?? g, L?.outStatistics?.[0]?.statisticType === D.Count && (P.returnDistinctValues = L?.returnDistinctValues ?? !1), P?.outStatistics?.forEach((O) => {
3479
3491
  mi(O) && !("statisticParameters" in O) && (O.statisticParameters = {
3480
3492
  value: W.defaultStatParameterValue
3481
3493
  });
@@ -3587,24 +3599,24 @@ function za(t) {
3587
3599
  }
3588
3600
  function _t(t) {
3589
3601
  const { queryType: e, queryObject: i, queryConfig: a, view: r, configTimeZone: n, dateField: s, useViewTimeZone: o } = t, { where: u, outStatistics: c, geometry: l, distance: d, units: f, timeExtent: m, returnDistinctValues: y } = a ?? {}, g = z(i);
3590
- let S = ge(g)?.createQuery() ?? new Br(), x;
3591
- const v = kt(g).idFields;
3592
- if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (x = `${v} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (S = new vr(S.toJSON()), Ce(i).find((T) => T.name === s)?.type !== U.DateOnly)) {
3602
+ let h = ge(g)?.createQuery() ?? new Br(), v;
3603
+ const B = kt(g).idFields;
3604
+ if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && B && (v = `${B} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (h = new vr(h.toJSON()), Ce(i).find((T) => T.name === s)?.type !== U.DateOnly)) {
3593
3605
  const T = Intl.DateTimeFormat().resolvedOptions().timeZone, w = o && r && "timeZone" in r ? r.timeZone : void 0;
3594
3606
  let L = n ?? w ?? T;
3595
- L === "unknown" ? L = "Etc/UTC" : L === "system" && (L = T), S.outTimeZone = L;
3607
+ L === "unknown" ? L = "Etc/UTC" : L === "system" && (L = T), h.outTimeZone = L;
3596
3608
  }
3597
- if (S.where = Y([S.where, u, x]), "returnDistinctValues" in S && (S.returnDistinctValues = y ?? !1), c !== void 0) {
3598
- const B = pn(g);
3599
- S.outStatistics = c.filter(
3600
- (N) => N.statisticType !== D.EnvelopeAggregate || B
3609
+ if (h.where = Y([h.where, u, v]), "returnDistinctValues" in h && (h.returnDistinctValues = y ?? !1), c !== void 0) {
3610
+ const C = pn(g);
3611
+ h.outStatistics = c.filter(
3612
+ (N) => N.statisticType !== D.EnvelopeAggregate || C
3601
3613
  ).map((N) => Nr.fromJSON(N));
3602
3614
  }
3603
3615
  const b = ft(l);
3604
- return b !== void 0 && (S.geometry = b, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), ma(g) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Ji({
3616
+ return b !== void 0 && (h.geometry = b, a?.spatialRelationship && (h.spatialRelationship = a.spatialRelationship), ma(g) && (d !== void 0 && (h.distance = d), f !== void 0 && (h.units = f))), m && (h.timeExtent = new Ji({
3605
3617
  start: m?.[0],
3606
3618
  end: m?.[1]
3607
- })), mo(S) && (S.cacheHint = !0), S;
3619
+ })), mo(h) && (h.cacheHint = !0), h;
3608
3620
  }
3609
3621
  function po(t) {
3610
3622
  let e;
@@ -3619,7 +3631,7 @@ function po(t) {
3619
3631
  return e;
3620
3632
  }
3621
3633
  function ho(t) {
3622
- const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone: g } = a, p = z(e), S = _t({
3634
+ const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone: g } = a, p = z(e), h = _t({
3623
3635
  queryType: "AttributeBinsQuery",
3624
3636
  queryObject: e,
3625
3637
  queryConfig: i,
@@ -3628,23 +3640,23 @@ function ho(t) {
3628
3640
  view: o,
3629
3641
  dateField: r,
3630
3642
  useViewTimeZone: u ?? !1
3631
- }), x = Ia(r);
3632
- if (S.lowerBoundaryAlias = x.lowerBoundaryAlias, S.upperBoundaryAlias = x.upperBoundaryAlias, S.binParameters = {
3643
+ }), v = Ia(r);
3644
+ if (h.lowerBoundaryAlias = v.lowerBoundaryAlias, h.upperBoundaryAlias = v.upperBoundaryAlias, h.binParameters = {
3633
3645
  type: "date",
3634
3646
  field: r,
3635
3647
  interval: { unit: c, value: l },
3636
3648
  start: f,
3637
3649
  end: m,
3638
3650
  offset: y ? { unit: y.unit, value: y.size } : null
3639
- }, S.binParameters.type === "date" && (p?.capabilities?.queryAttributeBins?.supportsSnapToData && (S.binParameters.snapToData = po(d)), p?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (S.binParameters.returnFullIntervalBin = !0)), !oe(n)) {
3640
- const b = ge(p)?.fields.find((B) => B.name === n)?.type;
3641
- (!b || b === "string" || b === "integer" || b === "small-integer" || b === "big-integer" || b === "double") && (S.binParameters.stackBy = {
3651
+ }, h.binParameters.type === "date" && (p?.capabilities?.queryAttributeBins?.supportsSnapToData && (h.binParameters.snapToData = po(d)), p?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (h.binParameters.returnFullIntervalBin = !0)), !oe(n)) {
3652
+ const b = ge(p)?.fields.find((C) => C.name === n)?.type;
3653
+ (!b || b === "string" || b === "integer" || b === "small-integer" || b === "big-integer" || b === "double") && (h.binParameters.stackBy = {
3642
3654
  type: "field",
3643
3655
  value: n,
3644
3656
  valueType: b === "string" ? "string" : "integer"
3645
3657
  });
3646
3658
  }
3647
- return S;
3659
+ return h;
3648
3660
  }
3649
3661
  function pi(t) {
3650
3662
  const {
@@ -3759,18 +3771,18 @@ function Fo(t) {
3759
3771
  xOrYFieldType: m,
3760
3772
  addIntervalStatement: !1,
3761
3773
  includeLeapDay: u
3762
- }), { field: S, expression: x, start: v, end: b } = p;
3763
- S ? g.binParameters.field = S : x && (g.binParameters.expression = x, g.binParameters.expressionValueType = "integer", g.binParameters.type === "fixed-interval" && (v !== void 0 && (g.binParameters.start = v), b !== void 0 && (g.binParameters.end = b)));
3764
- const B = Vi({
3774
+ }), { field: h, expression: v, start: B, end: b } = p;
3775
+ h ? g.binParameters.field = h : v && (g.binParameters.expression = v, g.binParameters.expressionValueType = "integer", g.binParameters.type === "fixed-interval" && (B !== void 0 && (g.binParameters.start = B), b !== void 0 && (g.binParameters.end = b)));
3776
+ const C = Vi({
3765
3777
  temporalBinning: s,
3766
3778
  xOrY: r,
3767
3779
  xOrYFieldType: y,
3768
3780
  addIntervalStatement: !1,
3769
3781
  includeLeapDay: u
3770
3782
  });
3771
- return B.field ? g.binParameters.stackBy = { type: "field", value: B.field } : B.expression && (g.binParameters.stackBy = {
3783
+ return C.field ? g.binParameters.stackBy = { type: "field", value: C.field } : C.expression && (g.binParameters.stackBy = {
3772
3784
  type: "expression",
3773
- value: B.expression,
3785
+ value: C.expression,
3774
3786
  valueType: "integer",
3775
3787
  alias: r
3776
3788
  }), g;
@@ -3818,7 +3830,7 @@ function Co(t = Z.None, e) {
3818
3830
  }
3819
3831
  function Wa(t, e) {
3820
3832
  const i = { valid: !1 };
3821
- return e === !0 ? i.invalidType = j.HistogramEmptyField : t === Z.Log ? i.invalidType = j.NegativeValueInLogCalculation : t === Z.Sqrt && (i.invalidType = j.NegativeValueInSqrtCalculation), i;
3833
+ return e === !0 ? i.invalidType = Q.HistogramEmptyField : t === Z.Log ? i.invalidType = Q.NegativeValueInLogCalculation : t === Z.Sqrt && (i.invalidType = Q.NegativeValueInSqrtCalculation), i;
3822
3834
  }
3823
3835
  function vo(t, e) {
3824
3836
  let i = t;
@@ -3887,8 +3899,8 @@ async function No(t) {
3887
3899
  errorStrings: r,
3888
3900
  abortKey: n,
3889
3901
  abortSignal: s
3890
- }), S = p.get(d) ?? Number.NaN, x = p.get(f) ?? Number.NaN, v = p.get(m) ?? Number.NaN, b = p.get(y) ?? Number.NaN;
3891
- return { countExcludingNulls: x, countIncludingNulls: S, min: v, max: b };
3902
+ }), h = p.get(d) ?? Number.NaN, v = p.get(f) ?? Number.NaN, B = p.get(m) ?? Number.NaN, b = p.get(y) ?? Number.NaN;
3903
+ return { countExcludingNulls: v, countIncludingNulls: h, min: B, max: b };
3892
3904
  }
3893
3905
  async function To(t) {
3894
3906
  const { queryConfig: e, chartConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = i.series[0], { x: u, dataTransformationType: c } = o;
@@ -3900,8 +3912,8 @@ async function To(t) {
3900
3912
  errorStrings: r,
3901
3913
  abortKey: n,
3902
3914
  abortSignal: s
3903
- }), g = Co(c, m), p = f < 2 || m === y, S = { ...e };
3904
- return S.where = Y([S.where, `${u} is not null`]), {
3915
+ }), g = Co(c, m), p = f < 2 || m === y, h = { ...e };
3916
+ return h.where = Y([h.where, `${u} is not null`]), {
3905
3917
  rawData: l,
3906
3918
  dataCompatibleWithTransformation: g,
3907
3919
  dataCountIncompatible: p,
@@ -3982,33 +3994,33 @@ async function Mo(t) {
3982
3994
  queryConfig: i,
3983
3995
  abortSignal: u
3984
3996
  });
3985
- let S;
3986
- if (g !== void 0 && (S = new Ai({
3997
+ let h;
3998
+ if (g !== void 0 && (h = new Ai({
3987
3999
  geometry: g.extent
3988
4000
  }), g.extent !== void 0 && ma(f))) {
3989
4001
  const { distance: A, units: I } = i;
3990
- A !== void 0 && (S.distance = A), I !== void 0 && (S.units = I);
4002
+ A !== void 0 && (h.distance = A), I !== void 0 && (h.units = I);
3991
4003
  }
3992
4004
  if (i.timeExtent) {
3993
4005
  const A = { start: i.timeExtent[0], end: i.timeExtent[1] };
3994
- S === void 0 ? S = new Ai({ timeExtent: A }) : S.timeExtent = A;
4006
+ h === void 0 ? h = new Ai({ timeExtent: A }) : h.timeExtent = A;
3995
4007
  }
3996
- p.filter = S;
3997
- let x;
4008
+ p.filter = h;
4009
+ let v;
3998
4010
  p.outStatisticTypes = { exclude: ["median"] };
3999
4011
  try {
4000
- x = await wi(p);
4012
+ v = await wi(p);
4001
4013
  } catch (A) {
4002
4014
  throw new re(le.QueryFeaturesError, o.errors.queryError, A);
4003
4015
  }
4004
4016
  p.outStatisticTypes = { include: ["median"] };
4005
4017
  try {
4006
4018
  const A = await wi(p);
4007
- A?.median && (x.median = A.median);
4019
+ A?.median && (v.median = A.median);
4008
4020
  } catch {
4009
4021
  }
4010
- x = Ao(x);
4011
- const { avg: v, count: b, stddev: B, min: N, max: T, sum: w, median: L } = x;
4022
+ v = Ao(v);
4023
+ const { avg: B, count: b, stddev: C, min: N, max: T, sum: w, median: L } = v;
4012
4024
  if (b === 0)
4013
4025
  d = {
4014
4026
  ...Wa(l)
@@ -4025,7 +4037,7 @@ async function Mo(t) {
4025
4037
  queryConfig: i,
4026
4038
  abortSignal: u
4027
4039
  });
4028
- A.filter = S;
4040
+ A.filter = h;
4029
4041
  let I;
4030
4042
  try {
4031
4043
  I = await Cr(A);
@@ -4034,8 +4046,8 @@ async function Mo(t) {
4034
4046
  }
4035
4047
  const P = Po(n, r);
4036
4048
  d.data = {
4037
- mean: v,
4038
- stddev: B,
4049
+ mean: B,
4050
+ stddev: C,
4039
4051
  min: N,
4040
4052
  max: T,
4041
4053
  median: Number(L),
@@ -4107,7 +4119,7 @@ const Ri = {
4107
4119
  groupByCaseEnd: "ELSE 'OUT' END"
4108
4120
  };
4109
4121
  function Md(t) {
4110
- return _(t.series) !== h.BoxPlotSeries ? C.xAxisField : t.series[0].x;
4122
+ return j(t.series) !== S.BoxPlotSeries ? x.xAxisField : t.series[0].x;
4111
4123
  }
4112
4124
  function Dd(t) {
4113
4125
  const e = ci(t);
@@ -4187,24 +4199,24 @@ function Ya(t) {
4187
4199
  function It(t) {
4188
4200
  const { dataInfo: e, chartType: i, subError: a } = t;
4189
4201
  switch (e.valid = !1, i) {
4190
- case h.BarSeries:
4191
- case h.ComboLineAndBarSeries:
4192
- e.invalidType = j.BarElementExceedsLimit;
4202
+ case S.BarSeries:
4203
+ case S.ComboLineAndBarSeries:
4204
+ e.invalidType = Q.BarElementExceedsLimit;
4193
4205
  break;
4194
- case h.LineSeries:
4195
- e.invalidType = j.LineChartExceedsLimit;
4206
+ case S.LineSeries:
4207
+ e.invalidType = Q.LineChartExceedsLimit;
4196
4208
  break;
4197
- case h.PieSeries:
4198
- e.invalidType = j.PieChartExceedsLimit;
4209
+ case S.PieSeries:
4210
+ e.invalidType = Q.PieChartExceedsLimit;
4199
4211
  break;
4200
- case h.GaugeSeries:
4201
- e.invalidType = j.GaugeExceedsLimit;
4212
+ case S.GaugeSeries:
4213
+ e.invalidType = Q.GaugeExceedsLimit;
4202
4214
  break;
4203
- case h.BoxPlotSeries:
4204
- a?.outlierLimit === !0 ? e.invalidType = j.BoxPlotOutliersExceedsLimit : e.invalidType = j.BoxPlotExceedsLimit;
4215
+ case S.BoxPlotSeries:
4216
+ a?.outlierLimit === !0 ? e.invalidType = Q.BoxPlotOutliersExceedsLimit : e.invalidType = Q.BoxPlotExceedsLimit;
4205
4217
  break;
4206
- case h.HeatSeries:
4207
- e.invalidType = j.HeatChartExceedsLimit;
4218
+ case S.HeatSeries:
4219
+ e.invalidType = Q.HeatChartExceedsLimit;
4208
4220
  break;
4209
4221
  }
4210
4222
  }
@@ -4223,147 +4235,147 @@ function $d(t) {
4223
4235
  isTemporalChart: u,
4224
4236
  isGaugeChartByFeature: c,
4225
4237
  errorStrings: l
4226
- } = t;
4227
- let d = l.errors.defaultInvalidChart, f;
4228
- const m = new Intl.NumberFormat(o), y = ut(i), { maxCategoryCount: g } = y;
4229
- let p = l.modalHeaders.invalidChart;
4238
+ } = t, d = ie(n);
4239
+ let f = l.errors.defaultInvalidChart, m;
4240
+ const y = new Intl.NumberFormat(o), g = ut(i), { maxCategoryCount: p } = g;
4241
+ let h = l.modalHeaders.invalidChart;
4230
4242
  switch (e) {
4231
- case j.BarElementExceedsLimit: {
4232
- p = l.modalHeaders.tooManyFeatures;
4233
- let x = Number.NaN, v = Number.NaN, b = "";
4234
- r !== void 0 && (r <= y.maxBarChartSeriesCount ? r === 1 ? (b = l.errors.uniqueSeriesBarCountCannotExceedLimit, x = y.maxBarUniqueSeriesCountTotal) : r === 2 ? (b = l.errors.twoSeriesBarCountCannotExceedLimit, x = y.maxBarTwoSeriesCountTotal, v = y.maxBarTwoSeriesCountPerSeries) : r > 2 && (b = l.errors.threePlusSeriesBarCountCannotExceedLimit, x = y.maxBarThreePlusSeriesCountTotal, v = y.maxBarThreePlusSeriesCountPerSeries) : (b = l.errors.barSeriesCountCannotExceedLimit, v = y.maxBarChartSeriesCount));
4235
- const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4236
- d = Be(b, {
4237
- totalLimit: B,
4238
- seriesLimit: N,
4239
- elementCount: T
4240
- }), f = {
4243
+ case Q.BarElementExceedsLimit: {
4244
+ h = l.modalHeaders.tooManyFeatures;
4245
+ let B = Number.NaN, b = Number.NaN, C = "";
4246
+ r !== void 0 && (r <= g.maxBarChartSeriesCount ? r === 1 ? (C = l.errors.uniqueSeriesBarCountCannotExceedLimit, B = g.maxBarUniqueSeriesCountTotal) : r === 2 ? (C = l.errors.twoSeriesBarCountCannotExceedLimit, B = g.maxBarTwoSeriesCountTotal, b = g.maxBarTwoSeriesCountPerSeries) : r > 2 && (C = l.errors.threePlusSeriesBarCountCannotExceedLimit, B = g.maxBarThreePlusSeriesCountTotal, b = g.maxBarThreePlusSeriesCountPerSeries) : (C = l.errors.barSeriesCountCannotExceedLimit, b = g.maxBarChartSeriesCount));
4247
+ const N = y.format(B), T = y.format(b), w = a !== void 0 ? y.format(a) : "";
4248
+ f = Be(C, {
4249
+ totalLimit: N,
4250
+ seriesLimit: T,
4251
+ elementCount: w
4252
+ }), m = {
4241
4253
  actualCount: a ?? Number.NaN,
4242
- totalLimit: x,
4243
- seriesLimit: v
4254
+ totalLimit: B,
4255
+ seriesLimit: b
4244
4256
  };
4245
4257
  break;
4246
4258
  }
4247
- case j.LineChartExceedsLimit:
4259
+ case Q.LineChartExceedsLimit:
4248
4260
  {
4249
- p = l.modalHeaders.tooManyFeatures;
4250
- let x = Number.NaN, v = Number.NaN, b = "";
4251
- r !== void 0 && (r <= y.maxLineChartSeriesCount ? r === 1 ? (b = u ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, x = y.maxLineUniqueSeriesCountTotal) : r === 2 ? (b = u ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, x = y.maxLineTwoSeriesCountTotal, v = y.maxLineTwoSeriesCountPerSeries) : r > 2 && (b = u ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, x = y.maxLineThreePlusSeriesCountTotal, v = y.maxLineThreePlusSeriesCountPerSeries) : (b = l.errors.lineSeriesCountCannotExceedLimit, v = y.maxLineChartSeriesCount));
4252
- const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4253
- d = Be(b, {
4254
- elementCount: T,
4255
- seriesLimit: N,
4256
- totalLimit: B
4257
- }), f = {
4261
+ h = l.modalHeaders.tooManyFeatures;
4262
+ let B = Number.NaN, b = Number.NaN, C = "";
4263
+ r !== void 0 && (r <= g.maxLineChartSeriesCount ? r === 1 ? (C = u ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, B = g.maxLineUniqueSeriesCountTotal) : r === 2 ? (C = u ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, B = g.maxLineTwoSeriesCountTotal, b = g.maxLineTwoSeriesCountPerSeries) : r > 2 && (C = u ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, B = g.maxLineThreePlusSeriesCountTotal, b = g.maxLineThreePlusSeriesCountPerSeries) : (C = l.errors.lineSeriesCountCannotExceedLimit, b = g.maxLineChartSeriesCount));
4264
+ const N = y.format(B), T = y.format(b), w = a !== void 0 ? y.format(a) : "";
4265
+ f = Be(C, {
4266
+ elementCount: w,
4267
+ seriesLimit: T,
4268
+ totalLimit: N
4269
+ }), m = {
4258
4270
  actualCount: a ?? Number.NaN,
4259
- totalLimit: x,
4260
- seriesLimit: v
4271
+ totalLimit: B,
4272
+ seriesLimit: b
4261
4273
  };
4262
4274
  }
4263
4275
  break;
4264
- case j.BoxPlotExceedsLimit:
4276
+ case Q.BoxPlotExceedsLimit:
4265
4277
  {
4266
- p = l.modalHeaders.tooManyFeatures;
4267
- let x = Number.NaN, v = Number.NaN, b = "";
4268
- r !== void 0 && (r <= y.maxBoxPlotSeriesCount ? r === 1 ? (b = l.errors.uniqueSeriesBoxCountCannotExceedLimit, x = y.maxBoxUniqueSeriesCountTotal) : r === 2 ? (b = l.errors.twoSeriesBoxCountCannotExceedLimit, x = y.maxBoxTwoSeriesCountTotal, v = y.maxBoxTwoSeriesCountPerSeries) : r > 2 && (b = l.errors.threePlusBoxLineCountCannotExceedLimit, x = y.maxBoxThreePlusSeriesCountTotal, v = y.maxBoxThreePlusSeriesCountPerSeries) : (b = l.errors.boxSeriesCountCannotExceedLimit, v = y.maxBoxPlotSeriesCount));
4269
- const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4270
- d = Be(b, {
4271
- elementCount: T,
4272
- seriesLimit: N,
4273
- totalLimit: B
4274
- }), f = {
4278
+ h = l.modalHeaders.tooManyFeatures;
4279
+ let B = Number.NaN, b = Number.NaN, C = "";
4280
+ r !== void 0 && (r <= g.maxBoxPlotSeriesCount ? r === 1 ? (C = l.errors.uniqueSeriesBoxCountCannotExceedLimit, B = g.maxBoxUniqueSeriesCountTotal) : r === 2 ? (C = l.errors.twoSeriesBoxCountCannotExceedLimit, B = g.maxBoxTwoSeriesCountTotal, b = g.maxBoxTwoSeriesCountPerSeries) : r > 2 && (C = l.errors.threePlusBoxLineCountCannotExceedLimit, B = g.maxBoxThreePlusSeriesCountTotal, b = g.maxBoxThreePlusSeriesCountPerSeries) : (C = l.errors.boxSeriesCountCannotExceedLimit, b = g.maxBoxPlotSeriesCount));
4281
+ const N = y.format(B), T = y.format(b), w = a !== void 0 ? y.format(a) : "";
4282
+ f = Be(C, {
4283
+ elementCount: w,
4284
+ seriesLimit: T,
4285
+ totalLimit: N
4286
+ }), m = {
4275
4287
  actualCount: a ?? Number.NaN,
4276
- totalLimit: x,
4277
- seriesLimit: v
4288
+ totalLimit: B,
4289
+ seriesLimit: b
4278
4290
  };
4279
4291
  }
4280
4292
  break;
4281
- case j.BoxPlotOutliersExceedsLimit:
4293
+ case Q.BoxPlotOutliersExceedsLimit:
4282
4294
  {
4283
- p = l.modalHeaders.tooManyFeatures;
4284
- const x = l.errors.boxSeriesOutlierCannotExceedLimit, v = y.maxBoxPlotOutlierLimit, b = m.format(v);
4285
- d = Be(x, {
4286
- totalLimit: b
4287
- }), f = { actualCount: a ?? Number.NaN, totalLimit: v };
4295
+ h = l.modalHeaders.tooManyFeatures;
4296
+ const B = l.errors.boxSeriesOutlierCannotExceedLimit, b = g.maxBoxPlotOutlierLimit, C = y.format(b);
4297
+ f = Be(B, {
4298
+ totalLimit: C
4299
+ }), m = { actualCount: a ?? Number.NaN, totalLimit: b };
4288
4300
  }
4289
4301
  break;
4290
- case j.HeatChartExceedsLimit:
4302
+ case Q.HeatChartExceedsLimit:
4291
4303
  {
4292
- p = l.modalHeaders.tooManyFeatures;
4293
- const x = l.errors.heatChartCannotExceedLimit, v = y.maxHeatChartCellLimit, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
4294
- d = Be(x, {
4295
- featureCount: B,
4296
- totalLimit: b
4297
- }), f = {
4304
+ h = l.modalHeaders.tooManyFeatures;
4305
+ const B = l.errors.heatChartCannotExceedLimit, b = g.maxHeatChartCellLimit, C = y.format(b), N = a !== void 0 ? y.format(a) : "";
4306
+ f = Be(B, {
4307
+ featureCount: N,
4308
+ totalLimit: C
4309
+ }), m = {
4298
4310
  actualCount: a ?? Number.NaN,
4299
- totalLimit: v
4311
+ totalLimit: b
4300
4312
  };
4301
4313
  }
4302
4314
  break;
4303
- case j.PieChartExceedsLimit:
4315
+ case Q.PieChartExceedsLimit:
4304
4316
  {
4305
- p = l.modalHeaders.tooManyFeatures;
4306
- const x = l.errors.pieChartSlicesCannotExceedLimit, v = y.maxPieChartSliceCountTotal, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
4307
- d = Be(x, {
4308
- sliceCount: B,
4309
- totalLimit: b
4310
- }), f = {
4317
+ h = l.modalHeaders.tooManyFeatures;
4318
+ const B = l.errors.pieChartSlicesCannotExceedLimit, b = g.maxPieChartSliceCountTotal, C = y.format(b), N = a !== void 0 ? y.format(a) : "";
4319
+ f = Be(B, {
4320
+ sliceCount: N,
4321
+ totalLimit: C
4322
+ }), m = {
4311
4323
  actualCount: a ?? Number.NaN,
4312
- totalLimit: v
4324
+ totalLimit: b
4313
4325
  };
4314
4326
  }
4315
4327
  break;
4316
- case j.GaugeExceedsLimit:
4328
+ case Q.GaugeExceedsLimit:
4317
4329
  {
4318
- p = l.modalHeaders.tooManyFeatures;
4319
- const x = l.errors.gaugeCannotExceedLimit, v = y.maxGaugeByFeaturesLimit, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
4320
- d = Be(x, {
4321
- featureCount: B,
4322
- totalLimit: b
4323
- }), f = {
4330
+ h = l.modalHeaders.tooManyFeatures;
4331
+ const B = l.errors.gaugeCannotExceedLimit, b = g.maxGaugeByFeaturesLimit, C = y.format(b), N = a !== void 0 ? y.format(a) : "";
4332
+ f = Be(B, {
4333
+ featureCount: N,
4334
+ totalLimit: C
4335
+ }), m = {
4324
4336
  actualCount: a ?? Number.NaN,
4325
- totalLimit: v
4337
+ totalLimit: b
4326
4338
  };
4327
4339
  }
4328
4340
  break;
4329
- case j.PieChartMixOfNegativePositiveSlices:
4330
- p = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, d = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
4341
+ case Q.PieChartMixOfNegativePositiveSlices:
4342
+ h = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, f = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
4331
4343
  break;
4332
- case j.NegativeValueInSqrtCalculation:
4333
- p = l.modalHeaders.invalidData, d = l.errors.negativeValueInDataForSqrtTransformation;
4344
+ case Q.NegativeValueInSqrtCalculation:
4345
+ h = l.modalHeaders.invalidData, f = l.errors.negativeValueInDataForSqrtTransformation;
4334
4346
  break;
4335
- case j.NegativeValueInLogCalculation:
4336
- p = l.modalHeaders.invalidData, d = l.errors.negativeValueInDataForLogTransformation;
4347
+ case Q.NegativeValueInLogCalculation:
4348
+ h = l.modalHeaders.invalidData, f = l.errors.negativeValueInDataForLogTransformation;
4337
4349
  break;
4338
- case j.HistogramEmptyField:
4339
- s === !0 ? (p = l.modalHeaders.noDataAvailable, d = l.errors.noDataFBSMessage) : Ee(n) ? (p = l.modalHeaders.noDataAvailable, d = l.errors.noDataFBEMessage) : (p = l.modalHeaders.invalidChart, d = l.errors.histogramEmptyField);
4350
+ case Q.HistogramEmptyField:
4351
+ s === !0 ? (h = l.modalHeaders.noDataAvailable, f = l.errors.noDataFBSMessage) : Ee(n) ? (h = l.modalHeaders.noDataAvailable, f = l.errors.noDataFBEMessage) : (h = l.modalHeaders.invalidChart, f = l.errors.histogramEmptyField);
4340
4352
  break;
4341
- case j.EmptyDataSet:
4342
- p = l.modalHeaders.noDataAvailable, s === !0 ? d = l.errors.noDataFBSMessage : Ee(n) ? d = l.errors.noDataFBEMessage : d = l.errors.noDataMessage;
4353
+ case Q.EmptyDataSet:
4354
+ h = l.modalHeaders.noDataAvailable, s === !0 ? f = l.errors.noDataFBSMessage : Ee(n) ? f = l.errors.noDataFBEMessage : f = l.errors.noDataMessage;
4343
4355
  break;
4344
- case j.NoValue:
4345
- c && a && (p = void 0, d = l.errors.noValue);
4356
+ case Q.NoValue:
4357
+ c && a ? (h = void 0, f = l.errors.noValue) : d && (h = l.modalHeaders.noDataAvailable, f = l.errors.noDataMessage);
4346
4358
  break;
4347
- case j.NegativeValueInXAxisLogScale:
4348
- d = l.errors.logarithmicXAxisNotPossible;
4359
+ case Q.NegativeValueInXAxisLogScale:
4360
+ f = l.errors.logarithmicXAxisNotPossible;
4349
4361
  break;
4350
- case j.NegativeValueInYAxisLogScale:
4351
- d = l.errors.logarithmicYAxisNotPossible;
4362
+ case Q.NegativeValueInYAxisLogScale:
4363
+ f = l.errors.logarithmicYAxisNotPossible;
4352
4364
  break;
4353
- case j.BadData:
4365
+ case Q.BadData:
4354
4366
  }
4355
- if (d === l.errors.defaultInvalidChart && (e === j.BarElementExceedsLimit || e === j.LineChartExceedsLimit || e === j.HeatChartExceedsLimit || e === j.PieChartExceedsLimit || e === j.GaugeExceedsLimit || e === j.BoxPlotExceedsLimit) && typeof a == "number" && typeof r == "number" && a / r > g) {
4356
- const x = a / r;
4357
- d = Be(l.errors.categoryCountCannotExceedLimit, {
4358
- categoryCount: m.format(x),
4359
- maxCategoryCount: m.format(g)
4367
+ if (f === l.errors.defaultInvalidChart && (e === Q.BarElementExceedsLimit || e === Q.LineChartExceedsLimit || e === Q.HeatChartExceedsLimit || e === Q.PieChartExceedsLimit || e === Q.GaugeExceedsLimit || e === Q.BoxPlotExceedsLimit) && typeof a == "number" && typeof r == "number" && a / r > p) {
4368
+ const B = a / r;
4369
+ f = Be(l.errors.categoryCountCannotExceedLimit, {
4370
+ categoryCount: y.format(B),
4371
+ maxCategoryCount: y.format(p)
4360
4372
  });
4361
4373
  }
4362
4374
  return {
4363
- keyword: e ?? j.BadData,
4364
- header: p,
4365
- message: d,
4366
- params: f
4375
+ keyword: e ?? Q.BadData,
4376
+ header: h,
4377
+ message: f,
4378
+ params: m
4367
4379
  };
4368
4380
  }
4369
4381
  function ot(t, e) {
@@ -4403,20 +4415,20 @@ function Si(t) {
4403
4415
  showOutliers: !1,
4404
4416
  standardizeValues: !0
4405
4417
  };
4406
- let S = K(u);
4407
- if (o[S] = si({ mean: d, stdDev: f, value: p }), m === E.Min || m === E.Max) {
4418
+ let h = K(u);
4419
+ if (o[h] = si({ mean: d, stdDev: f, value: p }), m === E.Min || m === E.Max) {
4408
4420
  u = {
4409
4421
  ...u,
4410
4422
  key: m,
4411
4423
  showOutliers: !0,
4412
4424
  standardizeValues: !0
4413
- }, S = K(u), u = {
4425
+ }, h = K(u), u = {
4414
4426
  ...u,
4415
4427
  standardizeValues: !1,
4416
4428
  splitByValue: r
4417
4429
  };
4418
- const x = K(u);
4419
- p = Number(e[x]), Number.isFinite(p) && (o[S] = si({
4430
+ const v = K(u);
4431
+ p = Number(e[v]), Number.isFinite(p) && (o[h] = si({
4420
4432
  mean: d,
4421
4433
  stdDev: f,
4422
4434
  value: p
@@ -4431,7 +4443,7 @@ function Ro(t) {
4431
4443
  return i.forEach((o) => {
4432
4444
  let u = {};
4433
4445
  Object.keys(r).forEach((c) => {
4434
- c.startsWith(o) ? u[c.replace(`${o}_`, "")] = r[c] : c.includes(C.rendererSymbolField) && (u[c] = r[c]), u[C.boxPlot.boxPlotCategory] = o, a && (u = Si({
4446
+ c.startsWith(o) ? u[c.replace(`${o}_`, "")] = r[c] : c.includes(x.rendererSymbolField) && (u[c] = r[c]), u[x.boxPlot.boxPlotCategory] = o, a && (u = Si({
4435
4447
  dataItem: u,
4436
4448
  chartSubType: F.BoxPlotMultiFields
4437
4449
  }));
@@ -4440,12 +4452,12 @@ function Ro(t) {
4440
4452
  }
4441
4453
  function $o(t) {
4442
4454
  const { data: e, splitByField: i, y: a } = t, r = {
4443
- [C.boxPlot.boxPlotCategory]: a
4455
+ [x.boxPlot.boxPlotCategory]: a
4444
4456
  };
4445
4457
  return e.forEach((s) => {
4446
4458
  const o = s[i];
4447
4459
  o !== void 0 && Object.keys(s).forEach((u) => {
4448
- u === C.rendererSymbolField ? r[`${u}_${o?.toString()}`] = s[u] : u === C.boxPlot.boxPlotMeanLineMarkerId ? r[u] = s[u] : r[`${o?.toString()}_${u}`] = s[u];
4460
+ u === x.rendererSymbolField ? r[`${u}_${o?.toString()}`] = s[u] : u === x.boxPlot.boxPlotMeanLineMarkerId ? r[u] = s[u] : r[`${o?.toString()}_${u}`] = s[u];
4449
4461
  });
4450
4462
  }), [r];
4451
4463
  }
@@ -4455,10 +4467,10 @@ function ko(t) {
4455
4467
  const c = u[e];
4456
4468
  a.forEach((l) => {
4457
4469
  let d = {
4458
- [C.boxPlot.boxPlotCategory]: l
4470
+ [x.boxPlot.boxPlotCategory]: l
4459
4471
  };
4460
4472
  Object.entries(u).forEach(([f, m]) => {
4461
- f.startsWith(`${l}_`) ? d[`${c}_${f.replace(`${l}_`, "")}`] = m : f.includes(C.rendererSymbolField) ? d[`${f}_${c}`] = m : f === C.boxPlot.boxPlotMeanLineMarkerId && (d[f] = u[f]);
4473
+ f.startsWith(`${l}_`) ? d[`${c}_${f.replace(`${l}_`, "")}`] = m : f.includes(x.rendererSymbolField) ? d[`${f}_${c}`] = m : f === x.boxPlot.boxPlotMeanLineMarkerId && (d[f] = u[f]);
4462
4474
  }), r && (d = Si({
4463
4475
  dataItem: d,
4464
4476
  chartSubType: F.BoxPlotMultiFieldsAndSplitBy,
@@ -4491,12 +4503,12 @@ function _o(t) {
4491
4503
  return a.forEach((s) => {
4492
4504
  const o = s[i], u = { [i]: o }, c = s[e];
4493
4505
  Object.entries(s).forEach(([l, d]) => {
4494
- if (l.includes(C.rendererSymbolField))
4495
- u[`${C.rendererSymbolField}_${c?.toString()}`] = d;
4496
- else if (l === C.boxPlot.boxPlotMeanLineMarkerId)
4506
+ if (l.includes(x.rendererSymbolField))
4507
+ u[`${x.rendererSymbolField}_${c?.toString()}`] = d;
4508
+ else if (l === x.boxPlot.boxPlotMeanLineMarkerId)
4497
4509
  u[l] = s[l];
4498
4510
  else if (l !== e && l !== i) {
4499
- const f = l !== C.xAxisField && l !== C.originalCategoryValue ? `${c?.toString()}_${l}` : l;
4511
+ const f = l !== x.xAxisField && l !== x.originalCategoryValue ? `${c?.toString()}_${l}` : l;
4500
4512
  u[f] = d;
4501
4513
  }
4502
4514
  }), r.set(o, {
@@ -4565,17 +4577,17 @@ function Za(t) {
4565
4577
  const { data: e, yField: i, x: a, chartSubType: r, splitByField: n } = t, s = r === F.BoxPlotMonoField || r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = it(s), u = [], c = [], { maxOperandsPerWhereClause: l } = $t();
4566
4578
  let d = [], f = [], m = 1;
4567
4579
  return e.forEach((y, g) => {
4568
- const { outlierMinThreshold: p, outlierMaxThreshold: S } = Ho(y, o);
4569
- if (typeof p == "number" && typeof S == "number") {
4570
- const x = {
4580
+ const { outlierMinThreshold: p, outlierMaxThreshold: h } = Ho(y, o);
4581
+ if (typeof p == "number" && typeof h == "number") {
4582
+ const v = {
4571
4583
  yField: i,
4572
4584
  outlierMinThreshold: p,
4573
- outlierMaxThreshold: S
4585
+ outlierMaxThreshold: h
4574
4586
  };
4575
- (r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (x.xField = a, x.xValue = fi({
4587
+ (r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (v.xField = a, v.xValue = fi({
4576
4588
  value: y[a],
4577
4589
  dataContext: y
4578
- })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (x.splitByField = n, x.splitByValue = y[n]), d.push($i({ ...x, target: "outliers" })), f.push($i({ ...x, target: "alternativeData" })), (m % l === 0 || g === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4590
+ })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (v.splitByField = n, v.splitByValue = y[n]), d.push($i({ ...v, target: "outliers" })), f.push($i({ ...v, target: "alternativeData" })), (m % l === 0 || g === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4579
4591
  }
4580
4592
  m += 1;
4581
4593
  }), { outliersFilterBatches: u, dataWithoutOutliersFilterBatches: c };
@@ -4611,19 +4623,19 @@ function zo(t) {
4611
4623
  }
4612
4624
  async function Wo(t) {
4613
4625
  const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: r, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = k(e), l = e[0], { x: d } = l, f = te(l.query?.where), m = z(r), y = ve(m).idField, g = ue(e), p = [];
4614
- for (let v = 0; v < g.length; v += 1) {
4615
- const b = g[v], { outliersFilterBatches: B } = Za({
4626
+ for (let B = 0; B < g.length; B += 1) {
4627
+ const b = g[B], { outliersFilterBatches: C } = Za({
4616
4628
  data: i,
4617
4629
  yField: b,
4618
4630
  x: d,
4619
4631
  chartSubType: c,
4620
4632
  splitByField: f
4621
4633
  });
4622
- for (let N = 0; N < B.length; N += 1) {
4623
- const T = B[N];
4634
+ for (let N = 0; N < C.length; N += 1) {
4635
+ const T = C[N];
4624
4636
  if (T !== "") {
4625
4637
  const w = [];
4626
- d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(b), f !== "" && w.push(f), w.push(y);
4638
+ d !== x.boxPlot.boxPlotCategory && w.push(d), w.push(b), f !== "" && w.push(f), w.push(y);
4627
4639
  const L = {
4628
4640
  ...a,
4629
4641
  where: Y([a.where, T]),
@@ -4647,13 +4659,13 @@ async function Wo(t) {
4647
4659
  }
4648
4660
  }
4649
4661
  }
4650
- const S = await Promise.all(p), x = /* @__PURE__ */ new Map();
4651
- for (let v = 0; v < S.length; v += 1) {
4652
- const b = S[v], B = g[v];
4662
+ const h = await Promise.all(p), v = /* @__PURE__ */ new Map();
4663
+ for (let B = 0; B < h.length; B += 1) {
4664
+ const b = h[B], C = g[B];
4653
4665
  b.forEach((N) => {
4654
4666
  const T = { ...N.attributes };
4655
- if (T[B] !== void 0) {
4656
- d === C.boxPlot.boxPlotCategory && (T[C.boxPlot.boxPlotCategory] = B);
4667
+ if (T[C] !== void 0) {
4668
+ d === x.boxPlot.boxPlotCategory && (T[x.boxPlot.boxPlotCategory] = C);
4657
4669
  let w = {
4658
4670
  key: E.Outlier,
4659
4671
  chartSubType: c
@@ -4670,13 +4682,13 @@ async function Wo(t) {
4670
4682
  case F.BoxPlotMultiFieldsAndCategory:
4671
4683
  w = {
4672
4684
  ...w,
4673
- y: B
4685
+ y: C
4674
4686
  };
4675
4687
  break;
4676
4688
  }
4677
- const L = K(w), A = T[B];
4689
+ const L = K(w), A = T[C];
4678
4690
  T[L] = A;
4679
- const I = `${T[d]}-${T[f]}-${A}`, P = x.get(I);
4691
+ const I = `${T[d]}-${T[f]}-${A}`, P = v.get(I);
4680
4692
  if (T[W.uniqueIdsName] = [
4681
4693
  ...P?.[W.uniqueIdsName] ?? [],
4682
4694
  T[y]
@@ -4689,7 +4701,7 @@ async function Wo(t) {
4689
4701
  outlierDataItem: T,
4690
4702
  chartSubType: c,
4691
4703
  x: d,
4692
- y: B,
4704
+ y: C,
4693
4705
  splitByField: f,
4694
4706
  meanAndStdDevPerField: n
4695
4707
  });
@@ -4699,11 +4711,11 @@ async function Wo(t) {
4699
4711
  stdDev: $
4700
4712
  }));
4701
4713
  }
4702
- delete T[B], T[C.boxPlot.boxPlotOutlierId] = !0, x.set(I, T);
4714
+ delete T[C], T[x.boxPlot.boxPlotOutlierId] = !0, v.set(I, T);
4703
4715
  }
4704
4716
  });
4705
4717
  }
4706
- return Array.from(x.values());
4718
+ return Array.from(v.values());
4707
4719
  }
4708
4720
  async function Go(t) {
4709
4721
  const {
@@ -4718,14 +4730,14 @@ async function Go(t) {
4718
4730
  abortSignal: c
4719
4731
  } = t;
4720
4732
  let l = [];
4721
- const { series: d, showMean: f } = n, m = vi({ showMean: f, seriesConfig: d }), y = k(d), g = Re(n), { x: p } = g, S = te(g.query?.where), x = [];
4733
+ const { series: d, showMean: f } = n, m = vi({ showMean: f, seriesConfig: d }), y = k(d), g = Re(n), { x: p } = g, h = te(g.query?.where), v = [];
4722
4734
  for (let b = 0; b < m.length; b += 1) {
4723
- const B = m[b], { dataWithoutOutliersFilterBatches: N } = Za({
4735
+ const C = m[b], { dataWithoutOutliersFilterBatches: N } = Za({
4724
4736
  data: e,
4725
- yField: B,
4737
+ yField: C,
4726
4738
  x: p,
4727
4739
  chartSubType: y,
4728
- splitByField: S
4740
+ splitByField: h
4729
4741
  });
4730
4742
  for (let T = 0; T < N.length; T += 1) {
4731
4743
  const w = N[T], L = {
@@ -4733,11 +4745,11 @@ async function Go(t) {
4733
4745
  where: Y([a.where, w])
4734
4746
  };
4735
4747
  L.outStatistics !== void 0 && (L.outStatistics = L.outStatistics?.filter(
4736
- (A) => (A.statisticType === D.Minimum || A.statisticType === D.Maximum) && A.onStatisticField === B
4748
+ (A) => (A.statisticType === D.Minimum || A.statisticType === D.Maximum) && A.onStatisticField === C
4737
4749
  ).map((A) => ({
4738
4750
  ...A,
4739
- outStatisticFieldName: `${A.outStatisticFieldName}${C.boxPlot.boxPlotOutliersSuffix}`
4740
- }))), x.push(
4751
+ outStatisticFieldName: `${A.outStatisticFieldName}${x.boxPlot.boxPlotOutliersSuffix}`
4752
+ }))), v.push(
4741
4753
  jt({
4742
4754
  queryObject: i,
4743
4755
  uniqueQuery: L,
@@ -4753,12 +4765,12 @@ async function Go(t) {
4753
4765
  );
4754
4766
  }
4755
4767
  }
4756
- const v = await Promise.all(x);
4757
- for (let b = 0; b < v.length; b += 1)
4758
- l.push(...v[b]);
4768
+ const B = await Promise.all(v);
4769
+ for (let b = 0; b < B.length; b += 1)
4770
+ l.push(...B[b]);
4759
4771
  return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = bt({
4760
4772
  data: l,
4761
- x: S !== void 0 && S !== "" ? S : p
4773
+ x: h !== void 0 && h !== "" ? h : p
4762
4774
  })), l;
4763
4775
  }
4764
4776
  async function Uo(t) {
@@ -4816,7 +4828,7 @@ function Xa(t) {
4816
4828
  const f = te(o.query?.where);
4817
4829
  switch (u) {
4818
4830
  case F.BoxPlotMonoField:
4819
- d[0][C.boxPlot.boxPlotCategory] = l[0];
4831
+ d[0][x.boxPlot.boxPlotCategory] = l[0];
4820
4832
  break;
4821
4833
  case F.BoxPlotMultiFields:
4822
4834
  d = Ro({
@@ -4941,19 +4953,19 @@ function Ja(t) {
4941
4953
  return {
4942
4954
  xAxisData: ki({
4943
4955
  chartConfig: e,
4944
- field: Q.xField,
4956
+ field: _.xField,
4945
4957
  chartData: i
4946
4958
  }),
4947
4959
  yAxisData: ki({
4948
4960
  chartConfig: e,
4949
- field: Q.yField,
4961
+ field: _.yField,
4950
4962
  chartData: i
4951
4963
  })
4952
4964
  };
4953
4965
  }
4954
4966
  function Qi(t) {
4955
4967
  const { orderBy: e, axisFormatOptions: i } = t;
4956
- return e !== void 0 && i !== void 0 && (!Array.isArray(e) || i?.type === h.CategoryAxisFormat);
4968
+ return e !== void 0 && i !== void 0 && (!Array.isArray(e) || i?.type === S.CategoryAxisFormat);
4957
4969
  }
4958
4970
  function _i(t, e, i) {
4959
4971
  let a = 0;
@@ -4996,7 +5008,7 @@ function Ko(t) {
4996
5008
  function Et(t) {
4997
5009
  const { arrayToSort: e, chartConfig: i, fieldList: a, isTimeBinningSeries: r } = t;
4998
5010
  if (r !== !0 && e[0] !== void 0) {
4999
- const { series: n } = i, s = k(n), o = _(n), u = xe(i), c = Mt(i);
5011
+ const { series: n } = i, s = k(n), o = j(n), u = xe(i), c = Mt(i);
5000
5012
  if (We(i) && e !== void 0)
5001
5013
  Jo({
5002
5014
  arrayToSort: e,
@@ -5006,8 +5018,8 @@ function Et(t) {
5006
5018
  else if (c?.[0] !== void 0 && e !== void 0 && e.length > 1) {
5007
5019
  const { orderBy: l } = c[0];
5008
5020
  let { sortingField: d } = c[0];
5009
- const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy, g = y || o === h.PieSeries, p = s === F.PieNoAggregation || s === F.BarAndLineNoAggregation || s === F.BarAndLineSplitByNoAggregation;
5010
- if (f && g && (!m || (o === h.LineSeries || o === h.RadarSeries) && u === h.NumberAxisFormat) && (d = C.originalCategoryValue), Array.isArray(l))
5021
+ const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy, g = y || o === S.PieSeries, p = s === F.PieNoAggregation || s === F.BarAndLineNoAggregation || s === F.BarAndLineSplitByNoAggregation;
5022
+ if (f && g && (!m || (o === S.LineSeries || o === S.RadarSeries) && u === S.NumberAxisFormat) && (d = x.originalCategoryValue), Array.isArray(l))
5011
5023
  En({
5012
5024
  arrayToSort: e,
5013
5025
  orderBy: l,
@@ -5017,12 +5029,12 @@ function Et(t) {
5017
5029
  preferLabel: m
5018
5030
  });
5019
5031
  else {
5020
- const S = u === h.DateAxisFormat && f;
5032
+ const h = u === S.DateAxisFormat && f;
5021
5033
  ht({
5022
5034
  arrayToSort: e,
5023
5035
  orderBy: l,
5024
5036
  sortingField: d,
5025
- forceAscendingOrder: S,
5037
+ forceAscendingOrder: h,
5026
5038
  isNonAggregated: p,
5027
5039
  sortByCategory: f,
5028
5040
  preferLabel: m,
@@ -5055,7 +5067,7 @@ function kd(t) {
5055
5067
  }
5056
5068
  function el(t) {
5057
5069
  return t?.type === "uniqueValue" && (t.uniqueValueInfos = t.uniqueValueInfos.map((e) => {
5058
- const i = e.value === null ? C.nullValue : e.value;
5070
+ const i = e.value === null ? x.nullValue : e.value;
5059
5071
  return { ...e, value: i };
5060
5072
  })), t;
5061
5073
  }
@@ -5069,17 +5081,17 @@ async function Qd(t) {
5069
5081
  const y = jn(c, d?.renderer), g = Un({
5070
5082
  chartRenderer: u,
5071
5083
  queryObject: i
5072
- }), p = _(o), S = k(o), x = Re(a), v = te(x.query?.where);
5084
+ }), p = j(o), h = k(o), v = Re(a), B = te(v.query?.where);
5073
5085
  m = /* @__PURE__ */ new Map();
5074
- for (let b = 0; b < (p === h.HistogramSeries && e.length > 0 ? 1 : e.length); b += 1) {
5075
- const B = e[b], N = await Yn({
5086
+ for (let b = 0; b < (p === S.HistogramSeries && e.length > 0 ? 1 : e.length); b += 1) {
5087
+ const C = e[b], N = await Yn({
5076
5088
  seriesConfig: a.series,
5077
- dataItem: B,
5089
+ dataItem: C,
5078
5090
  renderer: f,
5079
5091
  rendererType: y,
5080
5092
  rendererOrigin: l,
5081
- chartSubType: S,
5082
- splitByField: v,
5093
+ chartSubType: h,
5094
+ splitByField: B,
5083
5095
  graphicTemplate: g,
5084
5096
  mapAttributesToSymbol: m,
5085
5097
  rendererFieldNames: s
@@ -5126,7 +5138,7 @@ async function il(t) {
5126
5138
  })).elementCount, r?.behaviorAfterLimit !== lt.RenderUpToTheLimit && (f = Ae({
5127
5139
  count: m ?? 0,
5128
5140
  seriesCount: i.series.length,
5129
- chartType: h.GaugeSeries,
5141
+ chartType: S.GaugeSeries,
5130
5142
  chartLimits: r
5131
5143
  })), r && (Number.isFinite(l) || Number.isFinite(m)))) {
5132
5144
  const y = Math.min(l ?? Number.NaN, m ?? Number.NaN);
@@ -5149,7 +5161,7 @@ async function il(t) {
5149
5161
  } else
5150
5162
  u.count = m, It({
5151
5163
  dataInfo: u,
5152
- chartType: h.GaugeSeries
5164
+ chartType: S.GaugeSeries
5153
5165
  });
5154
5166
  return u;
5155
5167
  }
@@ -5195,30 +5207,30 @@ function al(t) {
5195
5207
  c = !0;
5196
5208
  else if (!a) {
5197
5209
  const l = [
5198
- C.originalCategoryValue,
5199
- C.originalYCategoryValue,
5200
- C.originalDateValue,
5201
- C.xAxisField,
5202
- C.technicalSortingFieldBySum,
5203
- C.technicalSortingFieldByPercent,
5204
- C.pieChart.technicalFieldSlicePercent,
5205
- C.pieChart.technicalFieldGroupedSlices,
5206
- C.pieChart.technicalFieldSliceId,
5207
- C.originalServerBinningRange,
5208
- C.lastTemporalBin,
5209
- C.technicalFieldSplitByField,
5210
+ x.originalCategoryValue,
5211
+ x.originalYCategoryValue,
5212
+ x.originalDateValue,
5213
+ x.xAxisField,
5214
+ x.technicalSortingFieldBySum,
5215
+ x.technicalSortingFieldByPercent,
5216
+ x.pieChart.technicalFieldSlicePercent,
5217
+ x.pieChart.technicalFieldGroupedSlices,
5218
+ x.pieChart.technicalFieldSliceId,
5219
+ x.originalServerBinningRange,
5220
+ x.lastTemporalBin,
5221
+ x.technicalFieldSplitByField,
5210
5222
  W.uniqueIdsName,
5211
- Q.valueField,
5223
+ _.valueField,
5212
5224
  ...Vr
5213
5225
  ], d = (g, p) => {
5214
- const S = p[C.originalCategoryValue];
5215
- S !== void 0 && r && (p[r] = S);
5216
- const x = p[C.originalYCategoryValue];
5217
- x !== void 0 && n && (p[n] = x), r && p[Q.xField] !== void 0 && (p[r] = p[C.originalCategoryValue] !== void 0 ? p[C.originalCategoryValue] : p[Q.xField], delete p[Q.xField]), n && p[Q.yField] !== void 0 && (p[n] = p[C.originalYCategoryValue] !== void 0 ? p[C.originalYCategoryValue] : p[Q.yField], delete p[Q.yField]), s && p[Q.valueField] !== void 0 && (p[s] = p[Q.valueField], delete p[Q.valueField]);
5218
- const v = {};
5226
+ const h = p[x.originalCategoryValue];
5227
+ h !== void 0 && r && (p[r] = h);
5228
+ const v = p[x.originalYCategoryValue];
5229
+ v !== void 0 && n && (p[n] = v), r && p[_.xField] !== void 0 && (p[r] = p[x.originalCategoryValue] !== void 0 ? p[x.originalCategoryValue] : p[_.xField], delete p[_.xField]), n && p[_.yField] !== void 0 && (p[n] = p[x.originalYCategoryValue] !== void 0 ? p[x.originalYCategoryValue] : p[_.yField], delete p[_.yField]), s && p[_.valueField] !== void 0 && (p[s] = p[_.valueField], delete p[_.valueField]);
5230
+ const B = {};
5219
5231
  return Object.keys(p).forEach((b) => {
5220
- !l.includes(b) && !b.includes(C.rendererSymbolField) && (v[b] = p[b]);
5221
- }), g.push(v), g;
5232
+ !l.includes(b) && !b.includes(x.rendererSymbolField) && (B[b] = p[b]);
5233
+ }), g.push(B), g;
5222
5234
  }, f = (g, p) => JSON.stringify(g).localeCompare(JSON.stringify(p));
5223
5235
  let m = o?.reduce(d, [])?.sort(f), y = u?.reduce(d, [])?.sort(f);
5224
5236
  m && y && r && m.length !== y.length && (m = bt({ data: m, x: r }), y = bt({ data: y, x: r })), c = m?.length !== y?.length || !at(m, y);
@@ -5262,7 +5274,7 @@ function qe(t, e) {
5262
5274
  function nl(t) {
5263
5275
  const { dataContext: e, xAxisField: i, yAxisField: a, options: r } = t;
5264
5276
  let n = "";
5265
- const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: u, dataContextYMaxField: c } = C.scatterplotAggregationFields;
5277
+ const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: u, dataContextYMaxField: c } = x.scatterplotAggregationFields;
5266
5278
  if (pa({ dataContext: e, chartLimits: r?.chartLimits })) {
5267
5279
  const { [s]: l, [o]: d } = e, f = i !== a ? e[u] : l, m = i !== a ? e[c] : d;
5268
5280
  if (!Number.isNaN(l) && !Number.isNaN(d) && !Number.isNaN(f) && !Number.isNaN(m)) {
@@ -5283,7 +5295,7 @@ function ji(t) {
5283
5295
  function Ka(t) {
5284
5296
  const { xAxisField: e, dataContext: i, queryObject: a } = t;
5285
5297
  let r = "";
5286
- const n = i[C.originalServerBinningRange] ?? i[C.dateBinningRange];
5298
+ const n = i[x.originalServerBinningRange] ?? i[x.dateBinningRange];
5287
5299
  if (ui(n) && n.length === 2) {
5288
5300
  let [s, o] = n, u = !0;
5289
5301
  const c = Ee(a);
@@ -5293,7 +5305,7 @@ function Ka(t) {
5293
5305
  } else
5294
5306
  typeof s == "number" && typeof o == "number" ? Number.isFinite(s) && Number.isFinite(o) ? (s = nt(s), o = nt(o)) : u = !1 : typeof s == "string" && typeof o == "string" && (s = new Date(s).toISOString(), o = new Date(o).toISOString());
5295
5307
  if (u) {
5296
- const l = c ? "" : "'", d = i[C.lastTemporalBin] === !0 ? "<=" : "<";
5308
+ const l = c ? "" : "'", d = i[x.lastTemporalBin] === !0 ? "<=" : "<";
5297
5309
  r = `${e}>=${l}${s}${l} AND ${e}${d}${l}${o}${l}`;
5298
5310
  }
5299
5311
  }
@@ -5302,7 +5314,7 @@ function Ka(t) {
5302
5314
  function er(t, e) {
5303
5315
  let i = "";
5304
5316
  if (Number.isFinite(t)) {
5305
- const a = 1 / 10 ** C.queryMaxFloatPrecision;
5317
+ const a = 1 / 10 ** x.queryMaxFloatPrecision;
5306
5318
  i = `${e}>=${t - a} AND ${e}<=${t + a}`;
5307
5319
  }
5308
5320
  return i;
@@ -5310,7 +5322,7 @@ function er(t, e) {
5310
5322
  function tr(t) {
5311
5323
  const { xAxisField: e, yAxisField: i, splitBy: a, dataContext: r, xAxisFieldType: n, chartConfig: s } = t;
5312
5324
  let o = "";
5313
- if (e !== void 0 && e !== C.boxPlot.boxPlotCategory) {
5325
+ if (e !== void 0 && e !== x.boxPlot.boxPlotCategory) {
5314
5326
  let d = fi({
5315
5327
  value: r[e],
5316
5328
  dataContext: r
@@ -5334,7 +5346,7 @@ function tr(t) {
5334
5346
  showOutliers: !0,
5335
5347
  splitBy: a,
5336
5348
  y: d
5337
- }), y = e === C.boxPlot.boxPlotCategory ? r[e] : i;
5349
+ }), y = e === x.boxPlot.boxPlotCategory ? r[e] : i;
5338
5350
  if (!oe(y)) {
5339
5351
  const g = r[f], p = r[m];
5340
5352
  Number.isFinite(g) && Number.isFinite(p) && (c = `${y?.toString()}>=${g?.toString()} AND ${y?.toString()}<=${p?.toString()}`);
@@ -5345,7 +5357,7 @@ function tr(t) {
5345
5357
  function sl(t) {
5346
5358
  const { xAxisField: e, splitBy: i, dataContext: a, xAxisFieldType: r, chartConfig: n, queryObject: s } = t;
5347
5359
  let o = "";
5348
- if (C.dateBinningRange in a)
5360
+ if (x.dateBinningRange in a)
5349
5361
  o = Ka({ xAxisField: e, dataContext: a, queryObject: s });
5350
5362
  else if (k(n.series) !== F.BarAndLineFromFields) {
5351
5363
  let l = fi({
@@ -5363,7 +5375,7 @@ function sl(t) {
5363
5375
  }
5364
5376
  function ol(t) {
5365
5377
  const { xAxisField: e, dataContext: i, chartConfig: a } = t;
5366
- let r = i[C.originalCategoryValue];
5378
+ let r = i[x.originalCategoryValue];
5367
5379
  return r === void 0 && (r = i[e]), k(a.series) === F.PieFromFields ? "" : Le({
5368
5380
  where: qe(e, r),
5369
5381
  normalize: !1,
@@ -5395,10 +5407,10 @@ function ll(t) {
5395
5407
  runsOnClientQueryEngine: o
5396
5408
  } = t, u = r.series[0];
5397
5409
  let c = "";
5398
- if (u.type === h.HeatSeries) {
5410
+ if (u.type === S.HeatSeries) {
5399
5411
  let l, d;
5400
- const f = a[Q.xField], m = a[C.originalCategoryValue], y = a[Q.yField], g = a[C.originalYCategoryValue], p = r.axes?.[0]?.valueFormat?.type, S = r.axes?.[1]?.valueFormat?.type;
5401
- p === h.CategoryAxisFormat ? l = Le({
5412
+ const f = a[_.xField], m = a[x.originalCategoryValue], y = a[_.yField], g = a[x.originalYCategoryValue], p = r.axes?.[0]?.valueFormat?.type, h = r.axes?.[1]?.valueFormat?.type;
5413
+ p === S.CategoryAxisFormat ? l = Le({
5402
5414
  where: qe(u.x, m ?? f),
5403
5415
  normalize: !1,
5404
5416
  escape: !0
@@ -5410,7 +5422,7 @@ function ll(t) {
5410
5422
  outTimeZone: n,
5411
5423
  dataTimeZone: s,
5412
5424
  runsOnClientQueryEngine: o
5413
- }), S === h.CategoryAxisFormat ? d = Le({
5425
+ }), h === S.CategoryAxisFormat ? d = Le({
5414
5426
  where: qe(u.y, g ?? y),
5415
5427
  normalize: !1,
5416
5428
  escape: !0
@@ -5430,7 +5442,7 @@ function ul(t) {
5430
5442
  const { xAxisField: e, dataContext: i, chartConfig: a } = t;
5431
5443
  let r = "";
5432
5444
  const n = a.series[0], { minValue: s, maxValue: o } = i;
5433
- if (Number.isFinite(s) && Number.isFinite(o) && n.type === h.HistogramSeries) {
5445
+ if (Number.isFinite(s) && Number.isFinite(o) && n.type === S.HistogramSeries) {
5434
5446
  const u = qn(e, n.dataTransformationType), c = i.isLastBin ? "<=" : "<";
5435
5447
  r = Y([
5436
5448
  `${u}>=${s?.toString()}`,
@@ -5440,28 +5452,28 @@ function ul(t) {
5440
5452
  return r;
5441
5453
  }
5442
5454
  function jd(t) {
5443
- const { chartConfig: e } = t, i = _(e.series);
5455
+ const { chartConfig: e } = t, i = j(e.series);
5444
5456
  let a = "";
5445
5457
  switch (i) {
5446
- case h.ScatterSeries:
5458
+ case S.ScatterSeries:
5447
5459
  a = nl(t);
5448
5460
  break;
5449
- case h.HeatSeries:
5461
+ case S.HeatSeries:
5450
5462
  a = ll(t);
5451
5463
  break;
5452
- case h.RadarSeries:
5453
- case h.BarSeries:
5454
- case h.LineSeries:
5455
- case h.ComboLineAndBarSeries:
5464
+ case S.RadarSeries:
5465
+ case S.BarSeries:
5466
+ case S.LineSeries:
5467
+ case S.ComboLineAndBarSeries:
5456
5468
  a = sl(t);
5457
5469
  break;
5458
- case h.BoxPlotSeries:
5470
+ case S.BoxPlotSeries:
5459
5471
  a = tr(t);
5460
5472
  break;
5461
- case h.HistogramSeries:
5473
+ case S.HistogramSeries:
5462
5474
  a = ul(t);
5463
5475
  break;
5464
- case h.PieSeries:
5476
+ case S.PieSeries:
5465
5477
  a = ol(t);
5466
5478
  break;
5467
5479
  }
@@ -5486,7 +5498,7 @@ async function cl(t) {
5486
5498
  } = t, g = k(a.series);
5487
5499
  let p = { valid: !0, data: { dataItems: [] } };
5488
5500
  if (r !== void 0 && r.length > 0) {
5489
- const S = Re(a), { x } = S, v = "y" in S ? S.y : "", B = Ce(e).find((I) => I.name === x)?.type, N = [], T = r.reduce(
5501
+ const h = Re(a), { x: v } = h, B = "y" in h ? h.y : "", C = Ce(e).find((I) => I.name === v)?.type, N = [], T = r.reduce(
5490
5502
  (I, P) => {
5491
5503
  const O = [];
5492
5504
  if (W.uniqueIdsName in P)
@@ -5496,7 +5508,7 @@ async function cl(t) {
5496
5508
  case F.BoxPlotMonoFieldAndSplitBy:
5497
5509
  case F.BoxPlotMultiFieldsAndSplitBy:
5498
5510
  case F.BoxPlotMonoFieldAndCategoryAndSplitBy: {
5499
- const M = te(S.query?.where ?? ""), q = `_${E.Average}`;
5511
+ const M = te(h.query?.where ?? ""), q = `_${E.Average}`;
5500
5512
  Object.keys(P).forEach((G) => {
5501
5513
  if (G.includes(q)) {
5502
5514
  const J = G.replace(q, "");
@@ -5506,7 +5518,7 @@ async function cl(t) {
5506
5518
  break;
5507
5519
  }
5508
5520
  }
5509
- const V = [v].flat();
5521
+ const V = [B].flat();
5510
5522
  let $ = V.length === 1 ? V[0] : "";
5511
5523
  if (g === F.BoxPlotMultiFieldsAndCategory) {
5512
5524
  const M = `_${E.FirstQuartile}`, q = Object.keys(P).find((G) => G.includes(M));
@@ -5515,11 +5527,11 @@ async function cl(t) {
5515
5527
  O.length === 0 && O.push(""), O.forEach((M) => {
5516
5528
  const q = tr({
5517
5529
  chartConfig: a,
5518
- xAxisField: x,
5530
+ xAxisField: v,
5519
5531
  yAxisField: $,
5520
5532
  splitBy: M,
5521
5533
  dataContext: P,
5522
- xAxisFieldType: B
5534
+ xAxisFieldType: C
5523
5535
  });
5524
5536
  I.push(q);
5525
5537
  });
@@ -5571,25 +5583,25 @@ async function dl(t) {
5571
5583
  abortSignal: p
5572
5584
  } = t;
5573
5585
  yt(e);
5574
- const { series: S } = a, x = _(S), v = xe(a);
5575
- let b = { valid: !0 }, B = s?.selectionItems ?? [];
5576
- n || (B = rl({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
5586
+ const { series: h } = a, v = j(h), B = xe(a);
5587
+ let b = { valid: !0 }, C = s?.selectionItems ?? [];
5588
+ n || (C = rl({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
5577
5589
  let N = !1;
5578
- switch (x) {
5579
- case h.HeatSeries:
5580
- b.data = { dataItems: B };
5590
+ switch (v) {
5591
+ case S.HeatSeries:
5592
+ b.data = { dataItems: C };
5581
5593
  break;
5582
- case h.PieSeries:
5594
+ case S.PieSeries:
5583
5595
  if (k(a.series) === F.PieFromFields) {
5584
- const { x: T, y: w } = a.series[0], L = He(B);
5596
+ const { x: T, y: w } = a.series[0], L = He(C);
5585
5597
  L.forEach((A) => {
5586
5598
  T in A && (A[ce] = A[T], delete A[T]), w in A && (A[Ne] = A[w], delete A[w]);
5587
5599
  }), b.data = { dataItems: L };
5588
5600
  } else
5589
- b.data = { dataItems: B };
5590
- b.count = B.length, N = !0;
5601
+ b.data = { dataItems: C };
5602
+ b.count = C.length, N = !0;
5591
5603
  break;
5592
- case h.BoxPlotSeries:
5604
+ case S.BoxPlotSeries:
5593
5605
  de(a) && (b = await cl({
5594
5606
  queryObject: e,
5595
5607
  queryConfig: i,
@@ -5607,23 +5619,23 @@ async function dl(t) {
5607
5619
  abortSignal: p
5608
5620
  }));
5609
5621
  break;
5610
- case h.BarSeries:
5611
- case h.ComboLineAndBarSeries:
5612
- case h.RadarSeries:
5613
- case h.LineSeries:
5614
- if (B.length === 0 || !Pe({
5615
- xAxisValueFormatType: v,
5622
+ case S.BarSeries:
5623
+ case S.ComboLineAndBarSeries:
5624
+ case S.RadarSeries:
5625
+ case S.LineSeries:
5626
+ if (C.length === 0 || !Pe({
5627
+ xAxisValueFormatType: B,
5616
5628
  setTimeBinningInfoWhenNotProvided: o,
5617
- seriesConfig: S[0],
5629
+ seriesConfig: h[0],
5618
5630
  queryObject: e
5619
5631
  }))
5620
- b.data = { dataItems: B }, b.count = B.length * S.length, N = !0;
5632
+ b.data = { dataItems: C }, b.count = C.length * h.length, N = !0;
5621
5633
  else {
5622
5634
  const T = { ...i };
5623
5635
  if (r !== void 0 && r.length > 0) {
5624
5636
  const L = r.map(
5625
5637
  (I) => Ka({
5626
- xAxisField: S[0].x,
5638
+ xAxisField: h[0].x,
5627
5639
  dataContext: I,
5628
5640
  queryObject: e
5629
5641
  })
@@ -5644,8 +5656,8 @@ async function dl(t) {
5644
5656
  });
5645
5657
  }
5646
5658
  break;
5647
- case h.HistogramSeries: {
5648
- if (B.length === 0)
5659
+ case S.HistogramSeries: {
5660
+ if (C.length === 0)
5649
5661
  b.data = {
5650
5662
  mean: Number.NaN,
5651
5663
  median: Number.NaN,
@@ -5655,8 +5667,8 @@ async function dl(t) {
5655
5667
  bins: []
5656
5668
  }, b.count = 0;
5657
5669
  else {
5658
- const { x: T } = S[0], w = B.map((I, P) => {
5659
- const { minValue: O, maxValue: V } = I, $ = P === B.length - 1 ? "<=" : "<";
5670
+ const { x: T } = h[0], w = C.map((I, P) => {
5671
+ const { minValue: O, maxValue: V } = I, $ = P === C.length - 1 ? "<=" : "<";
5660
5672
  return `${T} >= ${O} AND ${T} ${$} ${V}`;
5661
5673
  }), L = Y(w, "OR"), A = { ...i };
5662
5674
  A.where = Y([A.where, L]), b = await Ua({
@@ -5671,16 +5683,16 @@ async function dl(t) {
5671
5683
  }
5672
5684
  break;
5673
5685
  }
5674
- case h.ScatterSeries: {
5675
- if (B.length === 0) {
5676
- const { r2: T, trendLinePoints: w } = C.scatterplotSeries;
5686
+ case S.ScatterSeries: {
5687
+ if (C.length === 0) {
5688
+ const { r2: T, trendLinePoints: w } = x.scatterplotSeries;
5677
5689
  b.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, b.count = 0;
5678
5690
  } else {
5679
5691
  const { r2: T, trendLinePoints: w } = Ea({
5680
- data: B,
5692
+ data: C,
5681
5693
  chartConfig: a
5682
5694
  });
5683
- b.data = { dataItems: B, r2: T, trendLinePoints: w }, b.count = B.length;
5695
+ b.data = { dataItems: C, r2: T, trendLinePoints: w }, b.count = C.length;
5684
5696
  }
5685
5697
  break;
5686
5698
  }
@@ -5726,9 +5738,9 @@ async function Fi(t) {
5726
5738
  if (!g)
5727
5739
  y = p;
5728
5740
  else {
5729
- const S = { dataItems: [] };
5730
- S.meanLines = p.data.dataItems;
5731
- const x = Oo(i), v = (await oi({
5741
+ const h = { dataItems: [] };
5742
+ h.meanLines = p.data.dataItems;
5743
+ const v = Oo(i), B = (await oi({
5732
5744
  queryObject: e,
5733
5745
  queryConfig: a,
5734
5746
  fetchFullBoxPlotData: !0,
@@ -5740,11 +5752,11 @@ async function Fi(t) {
5740
5752
  replaceNoValueCategoryWithZero: f,
5741
5753
  view: m,
5742
5754
  errorStrings: r,
5743
- chartConfig: x,
5755
+ chartConfig: v,
5744
5756
  abortKey: n,
5745
5757
  abortSignal: s
5746
5758
  })).data;
5747
- S.dataItems = v.dataItems, S.outliers = v.outliers, y.data = S;
5759
+ h.dataItems = B.dataItems, h.outliers = B.outliers, y.data = h;
5748
5760
  }
5749
5761
  return y;
5750
5762
  }
@@ -5766,20 +5778,20 @@ async function fl(t) {
5766
5778
  errorStrings: y,
5767
5779
  abortKey: g,
5768
5780
  abortSignal: p,
5769
- fieldList: S,
5770
- currentSelectionDataItems: x,
5771
- dataForFilterBySelectionChanged: v,
5781
+ fieldList: h,
5782
+ currentSelectionDataItems: v,
5783
+ dataForFilterBySelectionChanged: B,
5772
5784
  filterByViewExtent: b,
5773
- preFetchedQueryResponse: B
5774
- } = t, { series: N } = i, T = _(N);
5785
+ preFetchedQueryResponse: C
5786
+ } = t, { series: N } = i, T = j(N);
5775
5787
  let w = { valid: !0 };
5776
5788
  if (r)
5777
5789
  w = await dl({
5778
5790
  queryObject: e,
5779
5791
  queryConfig: a,
5780
5792
  chartConfig: i,
5781
- currentSelectionDataItems: x,
5782
- dataForFilterBySelectionChanged: v,
5793
+ currentSelectionDataItems: v,
5794
+ dataForFilterBySelectionChanged: B,
5783
5795
  selectionData: n,
5784
5796
  setTimeBinningInfoWhenNotProvided: s,
5785
5797
  returnFeaturesExtent: o,
@@ -5794,7 +5806,7 @@ async function fl(t) {
5794
5806
  });
5795
5807
  else
5796
5808
  switch (T) {
5797
- case h.HeatSeries:
5809
+ case S.HeatSeries:
5798
5810
  yt(e), w = await ur({
5799
5811
  chartConfig: i,
5800
5812
  queryConfig: a,
@@ -5809,7 +5821,7 @@ async function fl(t) {
5809
5821
  abortSignal: p
5810
5822
  });
5811
5823
  break;
5812
- case h.BoxPlotSeries:
5824
+ case S.BoxPlotSeries:
5813
5825
  de(i) && (w = await Fi({
5814
5826
  queryObject: e,
5815
5827
  // @REV: temporary
@@ -5827,11 +5839,11 @@ async function fl(t) {
5827
5839
  abortSignal: p
5828
5840
  }));
5829
5841
  break;
5830
- case h.BarSeries:
5831
- case h.ComboLineAndBarSeries:
5832
- case h.PieSeries:
5833
- case h.RadarSeries:
5834
- case h.LineSeries: {
5842
+ case S.BarSeries:
5843
+ case S.ComboLineAndBarSeries:
5844
+ case S.PieSeries:
5845
+ case S.RadarSeries:
5846
+ case S.LineSeries: {
5835
5847
  const L = {
5836
5848
  queryObject: e,
5837
5849
  // @REV: temporary
@@ -5848,8 +5860,8 @@ async function fl(t) {
5848
5860
  view: f,
5849
5861
  abortKey: g,
5850
5862
  abortSignal: p,
5851
- fieldList: S,
5852
- preFetchedQueryResponse: B
5863
+ fieldList: h,
5864
+ preFetchedQueryResponse: C
5853
5865
  };
5854
5866
  Pe({
5855
5867
  xAxisValueFormatType: xe(i),
@@ -5859,7 +5871,7 @@ async function fl(t) {
5859
5871
  }) ? w = await xi(L) : w = await oi(L);
5860
5872
  break;
5861
5873
  }
5862
- case h.ScatterSeries:
5874
+ case S.ScatterSeries:
5863
5875
  w.data = await cr({
5864
5876
  queryObject: e,
5865
5877
  queryConfig: a,
@@ -5877,7 +5889,7 @@ async function fl(t) {
5877
5889
  abortSignal: p
5878
5890
  });
5879
5891
  break;
5880
- case h.HistogramSeries:
5892
+ case S.HistogramSeries:
5881
5893
  w = await Ua({
5882
5894
  queryObject: e,
5883
5895
  queryConfig: a,
@@ -5889,7 +5901,7 @@ async function fl(t) {
5889
5901
  errorStrings: y
5890
5902
  });
5891
5903
  break;
5892
- case h.GaugeSeries:
5904
+ case S.GaugeSeries:
5893
5905
  yt(e), w = await il({
5894
5906
  queryObject: e,
5895
5907
  chartConfig: i,
@@ -5921,11 +5933,11 @@ async function Hd(t) {
5921
5933
  chartLimits: y,
5922
5934
  popupTemplateFieldInfosEnabled: g,
5923
5935
  hideZeroCountCategories: p,
5924
- replaceNoValueCategoryWithZero: S,
5925
- view: x,
5926
- syncViewTimeZone: v,
5936
+ replaceNoValueCategoryWithZero: h,
5937
+ view: v,
5938
+ syncViewTimeZone: B,
5927
5939
  errorStrings: b,
5928
- fieldList: B,
5940
+ fieldList: C,
5929
5941
  preFetchedQueryResponse: N
5930
5942
  } = t;
5931
5943
  let T = { valid: !0 };
@@ -5934,7 +5946,7 @@ async function Hd(t) {
5934
5946
  chartConfig: i,
5935
5947
  runtimeDataFilters: u,
5936
5948
  ignoreViewExtent: c,
5937
- view: x
5949
+ view: v
5938
5950
  });
5939
5951
  return Ls(a), T = await fl({
5940
5952
  chartConfig: i,
@@ -5950,13 +5962,13 @@ async function Hd(t) {
5950
5962
  chartLimits: y,
5951
5963
  popupTemplateFieldInfosEnabled: g,
5952
5964
  hideZeroCountCategories: p,
5953
- replaceNoValueCategoryWithZero: S,
5954
- view: x,
5955
- syncViewTimeZone: v,
5965
+ replaceNoValueCategoryWithZero: h,
5966
+ view: v,
5967
+ syncViewTimeZone: B,
5956
5968
  abortKey: a,
5957
5969
  abortSignal: r,
5958
5970
  errorStrings: b,
5959
- fieldList: B,
5971
+ fieldList: C,
5960
5972
  preFetchedQueryResponse: N
5961
5973
  }), T.queryConfig = w, T;
5962
5974
  }
@@ -5964,7 +5976,7 @@ function ml(t, e, i) {
5964
5976
  const a = /* @__PURE__ */ new Map();
5965
5977
  for (let n = 0; n < t.length; n += 1) {
5966
5978
  const s = { [i]: t[n] };
5967
- C.xAxisField in s || (s[C.xAxisField] = t[n]), a.set(t[n], s);
5979
+ x.xAxisField in s || (s[x.xAxisField] = t[n]), a.set(t[n], s);
5968
5980
  }
5969
5981
  for (let n = 0; n < e.length; n += 1) {
5970
5982
  const s = e[n][i];
@@ -5986,28 +5998,28 @@ async function yl(t) {
5986
5998
  } = t, { series: l } = i;
5987
5999
  let d = e;
5988
6000
  const f = k(l), m = xe(i);
5989
- if (s !== lt.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== F.BarAndLineFromFields && f !== F.BarAndLineNoAggregation && f !== F.PieNoAggregation && m === h.CategoryAxisFormat) {
6001
+ if (s !== lt.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== F.BarAndLineFromFields && f !== F.BarAndLineNoAggregation && f !== F.PieNoAggregation && m === S.CategoryAxisFormat) {
5990
6002
  const { x: y } = l[0], g = {
5991
6003
  ...a,
5992
6004
  returnDistinctValues: !0,
5993
6005
  outFields: [y]
5994
6006
  };
5995
6007
  delete g.outStatistics, delete g.orderByFields, delete g.groupByFieldsForStatistics;
5996
- const S = (await Fe({
6008
+ const h = (await Fe({
5997
6009
  queryObject: r,
5998
6010
  queryConfig: g,
5999
6011
  featureCount: n,
6000
6012
  errorStrings: o,
6001
6013
  abortKey: u,
6002
6014
  abortSignal: c
6003
- })).map((x) => x.attributes[y]).filter((x) => x != null);
6004
- S.length > e.length && (d = ml(S, e, y));
6015
+ })).map((v) => v.attributes[y]).filter((v) => v != null);
6016
+ h.length > e.length && (d = ml(h, e, y));
6005
6017
  }
6006
6018
  return d;
6007
6019
  }
6008
6020
  function gl(t, e) {
6009
6021
  const i = t, { series: a } = e;
6010
- if (xe(e) === h.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === D.Count) {
6022
+ if (xe(e) === S.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === D.Count) {
6011
6023
  const r = a.reduce(
6012
6024
  (n, s) => {
6013
6025
  const o = s.query?.outStatistics?.[0].outStatisticFieldName ?? [s.y].flat()[0];
@@ -6187,31 +6199,31 @@ function xl(t) {
6187
6199
  let d, f;
6188
6200
  if (be(c) && (f = c.temporalBinning?.nullPolicy, d = c.temporalBinning?.timeAggregationType), u > 1 || o === R.Week || o === R.Month || o === R.Year) {
6189
6201
  const { query: m } = i[0], y = ue(i), { statisticType: g } = m?.outStatistics?.[0] ?? Zi;
6190
- let p = !1, S = d === ee.End ? e.length - 1 : 0;
6191
- const x = {
6192
- binFirstOrLastIndex: S,
6202
+ let p = !1, h = d === ee.End ? e.length - 1 : 0;
6203
+ const v = {
6204
+ binFirstOrLastIndex: h,
6193
6205
  data: e,
6194
6206
  x: l,
6195
6207
  timeIntervalInfo: a
6196
6208
  };
6197
6209
  for (; !p; ) {
6198
- let v = {};
6199
- const { binStartDate: b, binEndDate: B, last: N, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === ee.End ? (
6210
+ let B = {};
6211
+ const { binStartDate: b, binEndDate: C, last: N, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === ee.End ? (
6200
6212
  // When grouping from the end we'll start from the last date and move backward to create the bins
6201
- Fl(x)
6213
+ Fl(v)
6202
6214
  ) : (
6203
6215
  // When grouping from the start we'll start from the first date and move forward to create the bins
6204
- Sl(x)
6216
+ Sl(v)
6205
6217
  );
6206
- if (p = N, v = d === ee.End ? v = e[L - 1] : v = e[S], B > n && b < n || b < r && B > r || b >= r && B <= n) {
6207
- const A = e.slice(w, L).filter((O) => !(C.dateBinModel in O));
6218
+ if (p = N, B = d === ee.End ? B = e[L - 1] : B = e[h], C > n && b < n || b < r && C > r || b >= r && C <= n) {
6219
+ const A = e.slice(w, L).filter((O) => !(x.dateBinModel in O));
6208
6220
  y.forEach((O) => {
6209
- v[O] = bl({ binsToRegroup: A, statisticType: g, y: O, nullPolicy: f });
6221
+ B[O] = bl({ binsToRegroup: A, statisticType: g, y: O, nullPolicy: f });
6210
6222
  });
6211
6223
  const I = A.map((O) => O[Oe]).filter((O) => O !== void 0), P = On(I);
6212
- P !== void 0 && (v[Oe] = P), v[l] = b, v[C.xAxisField] = b, v[C.dateBinningRange] = [b, B], delete v[C.dateBinModel], s.push(v);
6213
- } else N && d !== ee.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
6214
- S = T, x.binFirstOrLastIndex = T;
6224
+ P !== void 0 && (B[Oe] = P), B[l] = b, B[x.xAxisField] = b, B[x.dateBinningRange] = [b, C], delete B[x.dateBinModel], s.push(B);
6225
+ } else N && d !== ee.End && s.length > 0 && (s[s.length - 1][x.dateBinningRange][1] = s[s.length - 1][x.dateBinningRange][1] + 1);
6226
+ h = T, v.binFirstOrLastIndex = T;
6215
6227
  }
6216
6228
  d === ee.End && (s = s.reverse());
6217
6229
  } else u === 1 ? s = e.map((m, y) => {
@@ -6224,7 +6236,7 @@ function xl(t) {
6224
6236
  nextOrPrevious: "next"
6225
6237
  }), {
6226
6238
  ...m,
6227
- [C.dateBinningRange]: [g, p]
6239
+ [x.dateBinningRange]: [g, p]
6228
6240
  };
6229
6241
  }) : s = e;
6230
6242
  return s;
@@ -6262,7 +6274,7 @@ function nr(t) {
6262
6274
  const e = t[0].temporalBinning?.nullPolicy;
6263
6275
  return t.reduce(
6264
6276
  (a, r) => {
6265
- a[C.dateBinModel] = void 0;
6277
+ a[x.dateBinModel] = void 0;
6266
6278
  const n = r.query?.outStatistics?.[0].outStatisticFieldName ?? [r.y].flat()[0];
6267
6279
  return e !== Se.Interpolate && (a[n] = e === Se.Zero ? 0 : null), a;
6268
6280
  },
@@ -6285,7 +6297,7 @@ function Cl(t) {
6285
6297
  const g = nr(n);
6286
6298
  if (l === ee.End) {
6287
6299
  let p = r[0][c];
6288
- for (let S = 0; S < y; S += 1)
6300
+ for (let h = 0; h < y; h += 1)
6289
6301
  p = Ve({
6290
6302
  date: p,
6291
6303
  unit: u,
@@ -6294,12 +6306,12 @@ function Cl(t) {
6294
6306
  }), r.push({
6295
6307
  ...g,
6296
6308
  [c]: p,
6297
- [C.xAxisField]: p
6309
+ [x.xAxisField]: p
6298
6310
  });
6299
6311
  y > 0 && (d = r[r.length - 1][c]);
6300
6312
  } else {
6301
6313
  let p = r[r.length - 1][c];
6302
- for (let S = 0; S < y; S += 1)
6314
+ for (let h = 0; h < y; h += 1)
6303
6315
  p = Ve({
6304
6316
  date: p,
6305
6317
  unit: u,
@@ -6308,7 +6320,7 @@ function Cl(t) {
6308
6320
  }), r.push({
6309
6321
  ...g,
6310
6322
  [c]: p,
6311
- [C.xAxisField]: p
6323
+ [x.xAxisField]: p
6312
6324
  });
6313
6325
  f = r[r.length - 1][c];
6314
6326
  }
@@ -6372,7 +6384,7 @@ function Nl(t) {
6372
6384
  g !== r[p][d] ? c.push({
6373
6385
  ...m,
6374
6386
  [d]: g,
6375
- [C.xAxisField]: g
6387
+ [x.xAxisField]: g
6376
6388
  }) : p = f === ee.End ? p - 1 : p + 1, g = Ve({
6377
6389
  date: g,
6378
6390
  unit: u === R.Month || u === R.Year ? R.Day : u,
@@ -6385,16 +6397,16 @@ function Nl(t) {
6385
6397
  function Tl(t) {
6386
6398
  const { data: e, seriesConfig: i, dateMinTimestamp: a, dateMaxTimestamp: r } = t, n = e;
6387
6399
  if (i[0].temporalBinning?.trimIncompleteTimeInterval !== !1) {
6388
- const { timeAggregationType: s } = i[0].temporalBinning ?? {}, o = e[0]?.[C.dateBinningRange]?.[0], u = e[e.length - 1]?.[C.dateBinningRange]?.[1];
6400
+ const { timeAggregationType: s } = i[0].temporalBinning ?? {}, o = e[0]?.[x.dateBinningRange]?.[0], u = e[e.length - 1]?.[x.dateBinningRange]?.[1];
6389
6401
  if (s === ee.End ? o < a : u > r)
6390
6402
  if (s === ee.End) {
6391
6403
  let l = o;
6392
6404
  for (; l < a && e.length > 0; )
6393
- e.shift(), e.length > 0 && (l = e[0][C.dateBinningRange]?.[0]);
6405
+ e.shift(), e.length > 0 && (l = e[0][x.dateBinningRange]?.[0]);
6394
6406
  } else {
6395
6407
  let l = u;
6396
6408
  for (; l > r && e.length > 0; )
6397
- e.pop(), e.length > 0 && (l = e[e.length - 1][C.dateBinningRange]?.[1]);
6409
+ e.pop(), e.length > 0 && (l = e[e.length - 1][x.dateBinningRange]?.[1]);
6398
6410
  }
6399
6411
  }
6400
6412
  return n;
@@ -6426,11 +6438,11 @@ function* wl(t) {
6426
6438
  ];
6427
6439
  let y = Ue.groupByCaseBegin;
6428
6440
  for (let p = 0; p < r.length; p += 1) {
6429
- const S = r[p], [x, v] = S[C.dateBinningRange], b = nt(x), B = nt(v);
6441
+ const h = r[p], [v, B] = h[x.dateBinningRange], b = nt(v), C = nt(B);
6430
6442
  y = Al({
6431
6443
  groupByFieldsForStatistics: y,
6432
6444
  queryStartDate: b,
6433
- queryEndDate: B,
6445
+ queryEndDate: C,
6434
6446
  dateField: l,
6435
6447
  y: [d].flat()[0],
6436
6448
  binIndex: p,
@@ -6471,8 +6483,8 @@ async function Ll(t) {
6471
6483
  if (y !== void 0) {
6472
6484
  const [g, p] = y.split("|");
6473
6485
  if (p !== void 0) {
6474
- const S = m.attributes[D.ContinuousPercentile];
6475
- o[p][`${g}`] = S;
6486
+ const h = m.attributes[D.ContinuousPercentile];
6487
+ o[p][`${g}`] = h;
6476
6488
  }
6477
6489
  }
6478
6490
  });
@@ -6500,11 +6512,11 @@ function Wi(t) {
6500
6512
  }
6501
6513
  function Pl(t) {
6502
6514
  const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Ia(n), d = Ce(u).find((p) => p.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, g = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
6503
- return i.forEach((p, S) => {
6504
- if (!(y && (S === 0 && g === ee.End || S === i.length - 1 && g === ee.Start))) {
6505
- const { attributes: v, stackedAttributes: b } = p;
6506
- let B = v[c.lowerBoundaryAlias], N = v[c.upperBoundaryAlias];
6507
- const T = B, w = N, L = (A, I) => {
6515
+ return i.forEach((p, h) => {
6516
+ if (!(y && (h === 0 && g === ee.End || h === i.length - 1 && g === ee.Start))) {
6517
+ const { attributes: B, stackedAttributes: b } = p;
6518
+ let C = B[c.lowerBoundaryAlias], N = B[c.upperBoundaryAlias];
6519
+ const T = C, w = N, L = (A, I) => {
6508
6520
  let P = A;
6509
6521
  if (I === U.DateOnly && (typeof A == "string" && A.length === 10 || typeof A == "number"))
6510
6522
  if (typeof A == "string") {
@@ -6517,9 +6529,9 @@ function Pl(t) {
6517
6529
  });
6518
6530
  return P;
6519
6531
  };
6520
- if (B = L(B, d), N = L(N, d), typeof B == "number" && typeof N == "number") {
6521
- const A = { ...v };
6522
- A[C.originalServerBinningRange] = [T, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias], b && r && !oe(r) && a ? b.forEach((O) => {
6532
+ if (C = L(C, d), N = L(N, d), typeof C == "number" && typeof N == "number") {
6533
+ const A = { ...B };
6534
+ A[x.originalServerBinningRange] = [T, w], A[n] = C, A[x.xAxisField] = C, A[x.dateBinningRange] = [C, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias], b && r && !oe(r) && a ? b.forEach((O) => {
6523
6535
  const V = O[r];
6524
6536
  if (V === null || typeof V == "string" || typeof V == "number") {
6525
6537
  const $ = a?.get(V);
@@ -6559,7 +6571,7 @@ async function Ml(t) {
6559
6571
  dateMinTimestamp: d,
6560
6572
  dateMaxTimestamp: f,
6561
6573
  timeIntervalInfo: o
6562
- }), { newDateMin: p, newDateMax: S } = Cl({
6574
+ }), { newDateMin: p, newDateMax: h } = Cl({
6563
6575
  dateMaxTimestamp: f,
6564
6576
  data: l,
6565
6577
  numberOfFinalBinsWithinDataRange: y,
@@ -6569,7 +6581,7 @@ async function Ml(t) {
6569
6581
  });
6570
6582
  l = Nl({
6571
6583
  newDateMin: p,
6572
- newDateMax: S,
6584
+ newDateMax: h,
6573
6585
  seriesConfig: n,
6574
6586
  data: l,
6575
6587
  initialNumberOfBins: m,
@@ -6609,10 +6621,10 @@ function Ol(t) {
6609
6621
  let a, r, { dateMinTimestamp: n, dateMaxTimestamp: s } = e;
6610
6622
  if (n && s) {
6611
6623
  typeof n == "string" && (n = new Date(n).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
6612
- const o = Dl(i), u = (s - n) / o, c = zi.findIndex((S) => S.threshold > u), l = zi[c], { unitMs: d, preferredIntervalSize: f } = l;
6624
+ const o = Dl(i), u = (s - n) / o, c = zi.findIndex((h) => h.threshold > u), l = zi[c], { unitMs: d, preferredIntervalSize: f } = l;
6613
6625
  ({ unit: a } = l);
6614
6626
  const m = u / d, y = f.findIndex(
6615
- (S) => S >= m
6627
+ (h) => h >= m
6616
6628
  ), g = f[y], p = y === 0 ? f[0] : f[y - 1];
6617
6629
  r = g - m < m - p ? g : p;
6618
6630
  }
@@ -6674,9 +6686,9 @@ async function Yt(t) {
6674
6686
  });
6675
6687
  return Array.from(
6676
6688
  new Set(
6677
- p.map((x) => x.attributes[c ? r : a])
6689
+ p.map((v) => v.attributes[c ? r : a])
6678
6690
  )
6679
- ).sort((x, v) => typeof x == "string" && typeof v == "string" ? x.localeCompare(v) : Number(x) - Number(v));
6691
+ ).sort((v, B) => typeof v == "string" && typeof B == "string" ? v.localeCompare(B) : Number(v) - Number(B));
6680
6692
  }
6681
6693
  function sr(t) {
6682
6694
  const { feature: e, splitByField: i, chartSubType: a } = t;
@@ -6693,7 +6705,7 @@ function sr(t) {
6693
6705
  }
6694
6706
  function ql(t) {
6695
6707
  const { input: e, x: i, splitByField: a } = t;
6696
- return e.reduce((n, s) => (a !== void 0 && a !== i && !(C.technicalFieldSplitByField in s) && delete s[a], Object.assign(n, s)), {});
6708
+ return e.reduce((n, s) => (a !== void 0 && a !== i && !(x.technicalFieldSplitByField in s) && delete s[a], Object.assign(n, s)), {});
6697
6709
  }
6698
6710
  function bt(t) {
6699
6711
  const { data: e, x: i, splitByField: a } = t;
@@ -6709,19 +6721,19 @@ function bt(t) {
6709
6721
  return r;
6710
6722
  }
6711
6723
  function Vl(t, e) {
6712
- const i = t, a = _(e);
6713
- if (a !== h.PieSeries && a !== h.BoxPlotSeries) {
6724
+ const i = t, a = j(e);
6725
+ if (a !== S.PieSeries && a !== S.BoxPlotSeries) {
6714
6726
  const r = ue(e), n = e[0].y;
6715
6727
  t.forEach((s) => {
6716
6728
  let o = 0;
6717
6729
  if (r.forEach((u) => {
6718
6730
  const c = s[u];
6719
6731
  Number.isFinite(c) && (o += c);
6720
- }), s[C.technicalSortingFieldBySum] = o, Number.isFinite(o) && o > 0) {
6732
+ }), s[x.technicalSortingFieldBySum] = o, Number.isFinite(o) && o > 0) {
6721
6733
  const u = s[n];
6722
6734
  if (Number.isFinite(u)) {
6723
6735
  const c = u / o;
6724
- s[C.technicalSortingFieldByPercent] = c;
6736
+ s[x.technicalSortingFieldByPercent] = c;
6725
6737
  }
6726
6738
  }
6727
6739
  });
@@ -6737,11 +6749,11 @@ function Rl(t, e) {
6737
6749
  }
6738
6750
  function $l(t, e) {
6739
6751
  const i = e.series[0], a = t;
6740
- if (i.type === h.HeatSeries) {
6752
+ if (i.type === S.HeatSeries) {
6741
6753
  const { x: r, y: n } = i;
6742
- a[Q.xField] = a[r]?.toString(), delete a[r], a[Q.yField] = a[n]?.toString(), delete a[n];
6754
+ a[_.xField] = a[r]?.toString(), delete a[r], a[_.yField] = a[n]?.toString(), delete a[n];
6743
6755
  const s = i.query?.outStatistics?.[0]?.outStatisticFieldName;
6744
- s && (a[Q.valueField] = a[s], delete a[s]);
6756
+ s && (a[_.valueField] = a[s], delete a[s]);
6745
6757
  }
6746
6758
  return a;
6747
6759
  }
@@ -6811,7 +6823,7 @@ function Hl(t, e) {
6811
6823
  }
6812
6824
  function zl(t) {
6813
6825
  const { attributes: e, showMean: i, chartSubType: a } = t;
6814
- i && (a === F.BoxPlotMonoFieldAndSplitBy || a === F.BoxPlotMultiFieldsAndSplitBy || a === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[C.boxPlot.boxPlotMeanLineMarkerId] = !0);
6826
+ i && (a === F.BoxPlotMonoFieldAndSplitBy || a === F.BoxPlotMultiFieldsAndSplitBy || a === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[x.boxPlot.boxPlotMeanLineMarkerId] = !0);
6815
6827
  }
6816
6828
  function Wl(t) {
6817
6829
  const { queryResponse: e, chartConfig: i, maxCategoryCount: a } = t, r = k(i.series);
@@ -6846,7 +6858,7 @@ function Ul(t) {
6846
6858
  yAxisValueFormat: d
6847
6859
  } = t;
6848
6860
  let f, m;
6849
- c !== F.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (f = ni(i, s)), o && u === h.HeatSeries && typeof n == "string" && (typeof a == "string" || typeof a == "number") && (m = ni(a, o)), f !== void 0 && f !== i && (typeof f != "string" || !ne(l)) && (e[C.originalCategoryValue] = e[r], e[r] = f, e[C.xAxisDisplayField] = f), typeof n == "string" && !ne(d) && m !== void 0 && m !== a && (e[C.originalYCategoryValue] = e[n], e[n] = m));
6861
+ c !== F.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (f = ni(i, s)), o && u === S.HeatSeries && typeof n == "string" && (typeof a == "string" || typeof a == "number") && (m = ni(a, o)), f !== void 0 && f !== i && (typeof f != "string" || !ne(l)) && (e[x.originalCategoryValue] = e[r], e[r] = f, e[x.xAxisDisplayField] = f), typeof n == "string" && !ne(d) && m !== void 0 && m !== a && (e[x.originalYCategoryValue] = e[n], e[n] = m));
6850
6862
  }
6851
6863
  function Yl(t) {
6852
6864
  let e;
@@ -6865,7 +6877,7 @@ function or(t) {
6865
6877
  showMean: u,
6866
6878
  chartLimits: c,
6867
6879
  fieldList: l
6868
- } = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], g = "y" in d[0] ? d[0].y : void 0, p = d[0].query?.outStatistics ?? [], S = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: x, originalCategoryValue: v, originalDateValue: b } = C, B = ri(e, y), N = typeof g == "string" ? ri(e, g) : void 0, w = ro(l ?? []).includes(y), L = [];
6880
+ } = t, { series: d } = a, f = k(d), m = j(d), { x: y } = d[0], g = "y" in d[0] ? d[0].y : void 0, p = d[0].query?.outStatistics ?? [], h = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: v, originalCategoryValue: B, originalDateValue: b } = x, C = ri(e, y), N = typeof g == "string" ? ri(e, g) : void 0, w = ro(l ?? []).includes(y), L = [];
6869
6881
  let A = 0;
6870
6882
  const I = /* @__PURE__ */ new Set(), { maxCategoryCount: P } = ut(c), O = Wl({ queryResponse: i, chartConfig: a, maxCategoryCount: P });
6871
6883
  for (let V = 0; O[V] && V < O.length && !(o !== void 0 && A >= o); V += 1) {
@@ -6886,25 +6898,25 @@ function or(t) {
6886
6898
  zl({ attributes: M, showMean: u, chartSubType: f });
6887
6899
  let q = M[y];
6888
6900
  const G = typeof g == "string" ? M[g] : void 0;
6889
- q === null && d[0]?.query?.fetchNullValues === !0 && f !== F.PieFromFields && (M[v] = null, q = C.nullValue), S || (w && typeof q == "string" ? q = new Date(q).valueOf() : s && (q = El(M))), typeof q == "string" && l?.find((ae) => ae.name === y)?.type === U.TimeOnly && (M[v] = q, q = Yl(q));
6901
+ q === null && d[0]?.query?.fetchNullValues === !0 && f !== F.PieFromFields && (M[B] = null, q = x.nullValue), h || (w && typeof q == "string" ? q = new Date(q).valueOf() : s && (q = El(M))), typeof q == "string" && l?.find((ae) => ae.name === y)?.type === U.TimeOnly && (M[B] = q, q = Yl(q));
6890
6902
  const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } = sr({ feature: $, splitByField: n, chartSubType: f });
6891
6903
  if (X && (M[H] = X), f === F.BarAndLineSplitBy && J !== void 0) {
6892
6904
  const ae = M[n], pe = r?.get(ae);
6893
- pe !== void 0 && (ae === n && (M[C.technicalFieldSplitByField] = M[pe]), M[pe] = M[J]), delete M[J];
6894
- } else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[b] = q : q !== C.nullValue && (M[v] = q), cn({ isXAxis: !0, chartType: m, valueFormat: a.axes?.[0]?.valueFormat }) && (M[C.xAxisField] = `${q}-${V}`, M[C.xAxisDisplayField] = q), M[W.uniqueIdsName] = $.getObjectId());
6895
- m === h.BoxPlotSeries && (M = Rl(d, M)), m === h.PieSeries && typeof q == "number" && (M[v] === void 0 && (M[v] = M[y]), q = `${q}`), q !== void 0 && (M[v] === void 0 && (M[v] = M[y]), M[y] === null ? M[y] = m === h.HeatSeries ? "null" : C.nullValue : M[y] = q, Ul({
6905
+ pe !== void 0 && (ae === n && (M[x.technicalFieldSplitByField] = M[pe]), M[pe] = M[J]), delete M[J];
6906
+ } else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[b] = q : q !== x.nullValue && (M[B] = q), cn({ isXAxis: !0, chartType: m, valueFormat: a.axes?.[0]?.valueFormat }) && (M[x.xAxisField] = `${q}-${V}`, M[x.xAxisDisplayField] = q), M[W.uniqueIdsName] = $.getObjectId());
6907
+ m === S.BoxPlotSeries && (M = Rl(d, M)), m === S.PieSeries && typeof q == "number" && (M[B] === void 0 && (M[B] = M[y]), q = `${q}`), q !== void 0 && (M[B] === void 0 && (M[B] = M[y]), M[y] === null ? M[y] = m === S.HeatSeries ? "null" : x.nullValue : M[y] = q, Ul({
6896
6908
  attributes: M,
6897
6909
  xValue: q,
6898
6910
  yValue: G,
6899
6911
  x: y,
6900
6912
  y: g,
6901
- xFieldDomain: B,
6913
+ xFieldDomain: C,
6902
6914
  yFieldDomain: N,
6903
6915
  chartType: m,
6904
6916
  chartSubType: f,
6905
6917
  xAxisValueFormat: a.axes?.[0].valueFormat,
6906
6918
  yAxisValueFormat: a.axes?.[1]?.valueFormat
6907
- }), m === h.HeatSeries && typeof g == "string" && M[g] === null && (M[g] = "null", M[x] = null), M[C.xAxisField] === void 0 && (M[C.xAxisField] = M[y])), M = $l(M, a), L.push(M);
6919
+ }), m === S.HeatSeries && typeof g == "string" && M[g] === null && (M[g] = "null", M[v] = null), M[x.xAxisField] === void 0 && (M[x.xAxisField] = M[y])), M = $l(M, a), L.push(M);
6908
6920
  }
6909
6921
  return L;
6910
6922
  }
@@ -6925,26 +6937,26 @@ async function jt(t) {
6925
6937
  errorStrings: m
6926
6938
  } = t, { series: y } = a, g = k(y);
6927
6939
  let p = [];
6928
- const S = g === F.BarAndLineSplitBy || g === F.BarAndLineSplitByNoAggregation ? te(y[0].query?.where) : "", x = f ?? await Fe({
6940
+ const h = g === F.BarAndLineSplitBy || g === F.BarAndLineSplitByNoAggregation ? te(y[0].query?.where) : "", v = f ?? await Fe({
6929
6941
  queryObject: e,
6930
6942
  queryConfig: i,
6931
6943
  featureCount: o,
6932
6944
  abortKey: n,
6933
6945
  errorStrings: m,
6934
6946
  abortSignal: s
6935
- }), v = Ce(e, d), { x: b } = y[0];
6947
+ }), B = Ce(e, d), { x: b } = y[0];
6936
6948
  return p = or({
6937
6949
  queryObject: e,
6938
- queryResponse: x,
6950
+ queryResponse: v,
6939
6951
  chartConfig: a,
6940
6952
  mapToStatField: r,
6941
- splitByField: S,
6953
+ splitByField: h,
6942
6954
  isTimeBinningSeries: u,
6943
- fieldList: v,
6955
+ fieldList: B,
6944
6956
  resultLimit: i.num,
6945
6957
  showMean: c,
6946
6958
  chartLimits: l
6947
- }), g !== F.BarAndLineSplitByNoAggregation && g !== F.BarAndLineFromFields && (S !== "" && (p = bt({ data: p, x: b, splitByField: S })), p = Vl(
6959
+ }), g !== F.BarAndLineSplitByNoAggregation && g !== F.BarAndLineFromFields && (h !== "" && (p = bt({ data: p, x: b, splitByField: h })), p = Vl(
6948
6960
  p,
6949
6961
  y
6950
6962
  )), p;
@@ -6991,16 +7003,16 @@ async function oi(t) {
6991
7003
  chartLimits: f,
6992
7004
  popupTemplateFieldInfosEnabled: m,
6993
7005
  hideZeroCountCategories: y
6994
- } = t, g = st(e), p = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, S = !(y ?? !p), { behaviorAfterLimit: x } = f ?? {};
6995
- let v;
7006
+ } = t, g = st(e), p = t.replaceNoValueCategoryWithZero ?? x.options.replaceNoValueCategoryWithZero, h = !(y ?? !p), { behaviorAfterLimit: v } = f ?? {};
7007
+ let B;
6996
7008
  const b = { valid: !0 };
6997
- let B, N = !1;
7009
+ let C, N = !1;
6998
7010
  const T = e.series, w = T[0], L = k(e.series);
6999
7011
  if (ie(r))
7000
- v = _(T) === h.BarSeries ? await zs(t) : b;
7012
+ B = j(T) === S.BarSeries ? await zs(t) : b;
7001
7013
  else {
7002
7014
  if (w !== void 0) {
7003
- const A = _(T), { uniqueQuery: I, mapToStatField: P } = yi({
7015
+ const A = j(T), { uniqueQuery: I, mapToStatField: P } = yi({
7004
7016
  chartConfig: e,
7005
7017
  queryObject: r,
7006
7018
  queryConfig: i,
@@ -7013,7 +7025,7 @@ async function oi(t) {
7013
7025
  chartConfig: e,
7014
7026
  queryObject: r,
7015
7027
  queryConfig: i,
7016
- behaviorAfterLimit: x,
7028
+ behaviorAfterLimit: v,
7017
7029
  numberMaxOfFeaturesToFetch: I.num,
7018
7030
  abortSignal: c
7019
7031
  });
@@ -7024,7 +7036,7 @@ async function oi(t) {
7024
7036
  chartType: A,
7025
7037
  chartLimits: f
7026
7038
  });
7027
- if (M && (B = await jt({
7039
+ if (M && (C = await jt({
7028
7040
  queryObject: r,
7029
7041
  uniqueQuery: I,
7030
7042
  chartConfig: e,
@@ -7038,8 +7050,8 @@ async function oi(t) {
7038
7050
  errorStrings: u,
7039
7051
  abortKey: n,
7040
7052
  abortSignal: c
7041
- }), de(e) && B !== void 0 && (b.data = await Zo({
7042
- data: B,
7053
+ }), de(e) && C !== void 0 && (b.data = await Zo({
7054
+ data: C,
7043
7055
  queryObject: r,
7044
7056
  fetchFullBoxPlotData: a,
7045
7057
  uniqueQuery: I,
@@ -7049,49 +7061,49 @@ async function oi(t) {
7049
7061
  errorStrings: u,
7050
7062
  abortKey: n,
7051
7063
  abortSignal: c
7052
- }), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (b.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit, N = !M)), $ && (O = B.length, V = ii(L) ? O * T.length : O, M = Ae({
7064
+ }), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (b.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit, N = !M)), $ && (O = C.length, V = ii(L) ? O * T.length : O, M = Ae({
7053
7065
  count: V,
7054
7066
  seriesCount: T.length,
7055
7067
  chartType: A,
7056
7068
  chartLimits: f
7057
7069
  })), M)) {
7058
- if (A === h.PieSeries) {
7059
- L === F.PieFromFields && (B = Dt({
7060
- dataToConvert: B[0],
7070
+ if (A === S.PieSeries) {
7071
+ L === F.PieFromFields && (C = Dt({
7072
+ dataToConvert: C[0],
7061
7073
  x: ce,
7062
7074
  y: Ne,
7063
7075
  fieldList: s
7064
7076
  }));
7065
7077
  let q = "";
7066
- L === F.PieFromFields ? q = Ne : "y" in w && typeof w.y == "string" && (q = w.y), Vn(B, q) ? b.data = { dataItems: B } : Vo(b, j.PieChartMixOfNegativePositiveSlices);
7067
- } else if ((A === h.RadarSeries || A === h.BarSeries || A === h.LineSeries || A === h.ComboLineAndBarSeries) && (L === F.BarAndLineFromFields && "y" in w && typeof w.y == "string" ? B = Dt({
7068
- dataToConvert: B[0],
7078
+ L === F.PieFromFields ? q = Ne : "y" in w && typeof w.y == "string" && (q = w.y), Vn(C, q) ? b.data = { dataItems: C } : Vo(b, Q.PieChartMixOfNegativePositiveSlices);
7079
+ } else if ((A === S.RadarSeries || A === S.BarSeries || A === S.LineSeries || A === S.ComboLineAndBarSeries) && (L === F.BarAndLineFromFields && "y" in w && typeof w.y == "string" ? C = Dt({
7080
+ dataToConvert: C[0],
7069
7081
  x: w.x,
7070
7082
  y: w.y,
7071
7083
  fieldList: s
7072
- }) : B = await yl({
7084
+ }) : C = await yl({
7073
7085
  queryObject: r,
7074
- seriesData: B,
7086
+ seriesData: C,
7075
7087
  chartConfig: e,
7076
7088
  queryConfig: i,
7077
7089
  categoryOrDateCount: O,
7078
- behaviorAfterLimit: x,
7090
+ behaviorAfterLimit: v,
7079
7091
  errorStrings: u,
7080
7092
  abortKey: n,
7081
7093
  abortSignal: c
7082
- }), V = ii(L) ? B.length * T.length : B.length, M = Ae({
7094
+ }), V = ii(L) ? C.length * T.length : C.length, M = Ae({
7083
7095
  count: V,
7084
7096
  seriesCount: T.length,
7085
7097
  chartType: A,
7086
7098
  chartLimits: f
7087
7099
  }), M)) {
7088
- S && (B = gl(B, e));
7100
+ h && (C = gl(C, e));
7089
7101
  let q = {};
7090
7102
  if (be(w)) {
7091
7103
  const { size: G, unit: J } = w.temporalBinning ?? {};
7092
7104
  G !== void 0 && J !== void 0 && (q = { size: G, unit: J });
7093
7105
  }
7094
- b.data = { dataItems: B, timeIntervalInfo: q };
7106
+ b.data = { dataItems: C, timeIntervalInfo: q };
7095
7107
  }
7096
7108
  }
7097
7109
  M || It({
@@ -7100,9 +7112,9 @@ async function oi(t) {
7100
7112
  subError: { outlierLimit: N }
7101
7113
  }), b.count = V;
7102
7114
  }
7103
- v = b;
7115
+ B = b;
7104
7116
  }
7105
- return v;
7117
+ return B;
7106
7118
  }
7107
7119
  function Zl(t) {
7108
7120
  let e;
@@ -7120,18 +7132,18 @@ function Jl(t) {
7120
7132
  const { dataItems: e, valueField: i, filterOutZero: a } = t, r = [null];
7121
7133
  a && r.push(0);
7122
7134
  const n = new Set(
7123
- e.filter((o) => !r.includes(o[i])).map((o) => o[Q.xField])
7135
+ e.filter((o) => !r.includes(o[i])).map((o) => o[_.xField])
7124
7136
  ), s = new Set(
7125
- e.filter((o) => !r.includes(o[i])).map((o) => o[Q.yField])
7137
+ e.filter((o) => !r.includes(o[i])).map((o) => o[_.yField])
7126
7138
  );
7127
7139
  return e.filter(
7128
- (o) => n.has(o[Q.xField]) && s.has(o[Q.yField])
7140
+ (o) => n.has(o[_.xField]) && s.has(o[_.yField])
7129
7141
  );
7130
7142
  }
7131
7143
  function Kl(t) {
7132
7144
  const { dataItems: e, xUniqueValues: i, yUniqueValues: a, valueField: r, emptyCellValue: n, x: s, y: o, queryObject: u } = t, c = [], l = /* @__PURE__ */ new Set();
7133
7145
  for (const d of e) {
7134
- const f = d[C.originalCategoryValue] !== void 0 ? d[C.originalCategoryValue] : d[Q.xField], m = d[C.originalYCategoryValue] !== void 0 ? d[C.originalYCategoryValue] : d[Q.yField];
7146
+ const f = d[x.originalCategoryValue] !== void 0 ? d[x.originalCategoryValue] : d[_.xField], m = d[x.originalYCategoryValue] !== void 0 ? d[x.originalYCategoryValue] : d[_.yField];
7135
7147
  l.add(`${f}|${m}`);
7136
7148
  }
7137
7149
  for (const d of i) {
@@ -7149,10 +7161,10 @@ function Kl(t) {
7149
7161
  fieldValue: y
7150
7162
  }) ?? m : m;
7151
7163
  c.push({
7152
- [C.originalCategoryValue]: d === null ? null : d,
7153
- [C.originalYCategoryValue]: m === null ? null : m,
7154
- [Q.xField]: d === null ? "null" : g,
7155
- [Q.yField]: m === null ? "null" : p,
7164
+ [x.originalCategoryValue]: d === null ? null : d,
7165
+ [x.originalYCategoryValue]: m === null ? null : m,
7166
+ [_.xField]: d === null ? "null" : g,
7167
+ [_.yField]: m === null ? "null" : p,
7156
7168
  [r]: n
7157
7169
  });
7158
7170
  }
@@ -7181,7 +7193,7 @@ async function ur(t) {
7181
7193
  } = t, m = { valid: !0 };
7182
7194
  let y;
7183
7195
  if (We(e)) {
7184
- const { nullPolicy: g } = e, p = e.series[0], { x: S, y: x, query: v, xTemporalBinning: b, yTemporalBinning: B } = p, N = v?.outStatistics?.[0]?.outStatisticFieldName ?? "", T = v?.outStatistics?.[0]?.statisticType ?? D.Count, w = Xl(e), L = Q.valueField, A = g === Se.Zero ? 0 : null;
7196
+ const { nullPolicy: g } = e, p = e.series[0], { x: h, y: v, query: B, xTemporalBinning: b, yTemporalBinning: C } = p, N = B?.outStatistics?.[0]?.outStatisticFieldName ?? "", T = B?.outStatistics?.[0]?.statisticType ?? D.Count, w = Xl(e), L = _.valueField, A = g === Se.Zero ? 0 : null;
7185
7197
  if (Io(e)) {
7186
7198
  const I = await Ns({
7187
7199
  chartConfig: e,
@@ -7195,10 +7207,10 @@ async function ur(t) {
7195
7207
  if (!Ae({
7196
7208
  count: I?.length ?? 0,
7197
7209
  seriesCount: 1,
7198
- chartType: h.HeatSeries,
7210
+ chartType: S.HeatSeries,
7199
7211
  chartLimits: o
7200
7212
  }))
7201
- It({ dataInfo: m, chartType: h.HeatSeries });
7213
+ It({ dataInfo: m, chartType: S.HeatSeries });
7202
7214
  else if (typeof I?.[0] == "object") {
7203
7215
  const P = Ce(a, u);
7204
7216
  y = or({
@@ -7214,14 +7226,14 @@ async function ur(t) {
7214
7226
  const O = await Yt({
7215
7227
  queryObject: a,
7216
7228
  queryConfig: i,
7217
- category: S,
7229
+ category: h,
7218
7230
  errorStrings: n,
7219
7231
  abortKey: d,
7220
7232
  abortSignal: f
7221
7233
  }), V = await Yt({
7222
7234
  queryObject: a,
7223
7235
  queryConfig: i,
7224
- category: x,
7236
+ category: v,
7225
7237
  errorStrings: n,
7226
7238
  abortKey: d,
7227
7239
  abortSignal: f
@@ -7234,8 +7246,8 @@ async function ur(t) {
7234
7246
  yUniqueValues: V,
7235
7247
  valueField: L,
7236
7248
  emptyCellValue: A,
7237
- x: S,
7238
- y: x,
7249
+ x: h,
7250
+ y: v,
7239
7251
  queryObject: a
7240
7252
  })
7241
7253
  ], w && (y = Jl({
@@ -7253,31 +7265,31 @@ async function ur(t) {
7253
7265
  syncViewTimeZone: l,
7254
7266
  errorStrings: n,
7255
7267
  abortSignal: f
7256
- }), P = B ? Zl(B.unit) : await Yt({ queryObject: a, queryConfig: i, category: x, errorStrings: n, abortKey: d, abortSignal: f });
7268
+ }), P = C ? Zl(C.unit) : await Yt({ queryObject: a, queryConfig: i, category: v, errorStrings: n, abortKey: d, abortSignal: f });
7257
7269
  let O = 0;
7258
7270
  y = I?.features.flatMap((V) => {
7259
7271
  const $ = [], { attributes: M, stackedAttributes: q } = V, G = [];
7260
7272
  if (q?.forEach((J) => {
7261
- const X = `${J[x]}`;
7273
+ const X = `${J[v]}`;
7262
7274
  G.push(X), $.push({
7263
- [Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
7264
- [Q.yField]: X,
7275
+ [_.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
7276
+ [_.yField]: X,
7265
7277
  [L]: J[N]
7266
7278
  });
7267
7279
  }), r && P && G.length !== P?.length) {
7268
7280
  const J = P.filter((X) => !G.includes(X.toString()));
7269
7281
  w && (J.length !== P.length || G.length === 0) || J.forEach((X) => {
7270
- Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (b?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && Gi({
7282
+ Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (b?.unit === he.DayOfMonth && C?.unit === he.MonthOfYear && Gi({
7271
7283
  day: Number(M[W.heatChartLowerBoundaryAlias]),
7272
7284
  month: Number(X),
7273
7285
  includeLeapDay: e.includeLeapDay
7274
- }) || B?.unit === he.DayOfMonth && b?.unit === he.MonthOfYear && Gi({
7286
+ }) || C?.unit === he.DayOfMonth && b?.unit === he.MonthOfYear && Gi({
7275
7287
  day: Number(X),
7276
7288
  month: Number(M[W.heatChartLowerBoundaryAlias]),
7277
7289
  includeLeapDay: e.includeLeapDay
7278
7290
  })) || $.push({
7279
- [Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
7280
- [Q.yField]: X,
7291
+ [_.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
7292
+ [_.yField]: X,
7281
7293
  [L]: g === Se.Zero ? 0 : null
7282
7294
  });
7283
7295
  });
@@ -7286,9 +7298,9 @@ async function ur(t) {
7286
7298
  }), Ae({
7287
7299
  count: O,
7288
7300
  seriesCount: 1,
7289
- chartType: h.HeatSeries,
7301
+ chartType: S.HeatSeries,
7290
7302
  chartLimits: o
7291
- }) || It({ dataInfo: m, chartType: h.HeatSeries });
7303
+ }) || It({ dataInfo: m, chartType: S.HeatSeries });
7292
7304
  }
7293
7305
  y && (m.data = {
7294
7306
  dataItems: y,
@@ -7339,23 +7351,23 @@ async function xi(t) {
7339
7351
  popupTemplateFieldInfosEnabled: d,
7340
7352
  view: f,
7341
7353
  syncViewTimeZone: m
7342
- } = t, { behaviorAfterLimit: y } = l ?? {}, g = e.series, p = g[0], { x: S } = p, x = te(p.query?.where), v = { valid: !0 };
7354
+ } = t, { behaviorAfterLimit: y } = l ?? {}, g = e.series, p = g[0], { x: h } = p, v = te(p.query?.where), B = { valid: !0 };
7343
7355
  let b;
7344
7356
  if (be(p)) {
7345
- const { temporalBinning: B } = p;
7346
- if (a && B) {
7347
- const { unit: N, size: T } = B;
7357
+ const { temporalBinning: C } = p;
7358
+ if (a && C) {
7359
+ const { unit: N, size: T } = C;
7348
7360
  let w = 1, L = { unit: N, size: T }, A = !1;
7349
7361
  const I = Il({
7350
7362
  series: p,
7351
7363
  isTimeBinningSeries: !0,
7352
7364
  setTimeBinningInfoWhenNotProvided: u
7353
- }), P = !rt(x, a) || I ? await Bl({ queryObject: a, queryConfig: i, x: S, errorStrings: o, abortSignal: n }) : void 0;
7354
- I && P && P.numberOfFeatures > 0 && P.dateRange.dateMaxTimestamp !== void 0 && P.dateRange.dateMinTimestamp !== void 0 && (L = Ol(P), Ce(a).find((G) => G.name === S)?.type === U.DateOnly && L.unit !== void 0 && [
7365
+ }), P = !rt(v, a) || I ? await Bl({ queryObject: a, queryConfig: i, x: h, errorStrings: o, abortSignal: n }) : void 0;
7366
+ I && P && P.numberOfFeatures > 0 && P.dateRange.dateMaxTimestamp !== void 0 && P.dateRange.dateMinTimestamp !== void 0 && (L = Ol(P), Ce(a).find((G) => G.name === h)?.type === U.DateOnly && L.unit !== void 0 && [
7355
7367
  R.Hour,
7356
7368
  R.Minute,
7357
7369
  R.Second
7358
- ].includes(L.unit) && (L.unit = R.Day, L.size = 1), B.size = L.size, B.unit = L.unit);
7370
+ ].includes(L.unit) && (L.unit = R.Day, L.size = 1), C.size = L.size, C.unit = L.unit);
7359
7371
  const { uniqueQuery: O, mapToStatField: V } = yi({
7360
7372
  chartConfig: e,
7361
7373
  queryConfig: i,
@@ -7368,18 +7380,18 @@ async function xi(t) {
7368
7380
  let $ = Ae({
7369
7381
  count: w ?? 0,
7370
7382
  seriesCount: g.length,
7371
- chartType: h.LineSeries,
7383
+ chartType: S.LineSeries,
7372
7384
  chartLimits: l
7373
7385
  });
7374
7386
  if ($) {
7375
- if (rt(x, a)) {
7376
- const M = e.axes?.[0].valueFormat.type === h.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0, q = s?.[0] instanceof Er ? s : await Ps({
7387
+ if (rt(v, a)) {
7388
+ const M = e.axes?.[0].valueFormat.type === S.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0, q = s?.[0] instanceof Er ? s : await Ps({
7377
7389
  queryObject: a,
7378
- dateField: S,
7379
- splitByField: x,
7390
+ dateField: h,
7391
+ splitByField: v,
7380
7392
  queryConfig: O,
7381
7393
  axisTimeZone: M,
7382
- temporalBinning: B,
7394
+ temporalBinning: C,
7383
7395
  errorStrings: o,
7384
7396
  view: f,
7385
7397
  syncViewTimeZone: m,
@@ -7389,15 +7401,15 @@ async function xi(t) {
7389
7401
  chartConfig: e,
7390
7402
  queryResults: q,
7391
7403
  mapToStatField: V,
7392
- splitByField: x,
7393
- x: S,
7404
+ splitByField: v,
7405
+ x: h,
7394
7406
  y: G,
7395
- nullPolicy: B.nullPolicy,
7407
+ nullPolicy: C.nullPolicy,
7396
7408
  queryObject: a
7397
7409
  }), !Ae({
7398
7410
  count: b.length,
7399
7411
  seriesCount: g.length,
7400
- chartType: h.LineSeries,
7412
+ chartType: S.LineSeries,
7401
7413
  chartLimits: l
7402
7414
  })) {
7403
7415
  const J = ue(g), X = b.filter(
@@ -7406,7 +7418,7 @@ async function xi(t) {
7406
7418
  Ae({
7407
7419
  count: X,
7408
7420
  seriesCount: g.length,
7409
- chartType: h.LineSeries,
7421
+ chartType: S.LineSeries,
7410
7422
  chartLimits: l
7411
7423
  }) || ($ = !1);
7412
7424
  }
@@ -7432,7 +7444,7 @@ async function xi(t) {
7432
7444
  queryObject: a,
7433
7445
  queryConfig: i,
7434
7446
  queryResults: b,
7435
- x: S,
7447
+ x: h,
7436
7448
  seriesConfig: g,
7437
7449
  dateRange: P.dateRange,
7438
7450
  timeIntervalInfo: L,
@@ -7442,10 +7454,10 @@ async function xi(t) {
7442
7454
  }
7443
7455
  da(a) && b && b?.length === pl && (A = !0), y === lt.RenderUpToTheLimit && b && (b = eu({ chartConfig: e, chartLimits: l, data: b }));
7444
7456
  }
7445
- $ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit), b && b.length > 0 && (b[b.length - 1][C.lastTemporalBin] = !0), v.data = { dataItems: b, timeIntervalInfo: L, serverLimitReached: A }, v.count = w;
7457
+ $ || (B.valid = !1, B.invalidType = Q.LineChartExceedsLimit), b && b.length > 0 && (b[b.length - 1][x.lastTemporalBin] = !0), B.data = { dataItems: b, timeIntervalInfo: L, serverLimitReached: A }, B.count = w;
7446
7458
  }
7447
7459
  }
7448
- return v;
7460
+ return B;
7449
7461
  }
7450
7462
  async function tu(t) {
7451
7463
  const {
@@ -7525,7 +7537,7 @@ async function iu(t) {
7525
7537
  }
7526
7538
  const au = "{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";
7527
7539
  async function ru(t) {
7528
- const { chartConfig: e, queryObject: i, queryConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = e.series[0], { x: u, y: c } = o, { dataContextCountDistinctX: l, dataContextCountDistinctY: d } = C.scatterplotAggregationFields, f = {
7540
+ const { chartConfig: e, queryObject: i, queryConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = e.series[0], { x: u, y: c } = o, { dataContextCountDistinctX: l, dataContextCountDistinctY: d } = x.scatterplotAggregationFields, f = {
7529
7541
  ...a,
7530
7542
  outStatistics: [
7531
7543
  {
@@ -7558,10 +7570,10 @@ async function nu(t) {
7558
7570
  dataContextYMaxField: f,
7559
7571
  dataContextCountDistinctX: m,
7560
7572
  dataContextCountDistinctY: y
7561
- } = C.scatterplotAggregationFields;
7562
- let g, p, S, x, v;
7563
- const b = e.get(c), B = e.get(l), N = e.get(d), T = e.get(f);
7564
- if (b != null && N !== void 0 && N !== null && B !== void 0 && B !== null && T !== void 0 && T !== null && !Number.isNaN(b + B + N + T)) {
7573
+ } = x.scatterplotAggregationFields;
7574
+ let g, p, h, v, B;
7575
+ const b = e.get(c), C = e.get(l), N = e.get(d), T = e.get(f);
7576
+ if (b != null && N !== void 0 && N !== null && C !== void 0 && C !== null && T !== void 0 && T !== null && !Number.isNaN(b + C + N + T)) {
7565
7577
  const { maxScatterPointsAfterAggregation: w } = ut(r), A = Math.floor(Math.sqrt(w)), I = await ru({
7566
7578
  queryObject: a,
7567
7579
  chartConfig: i,
@@ -7570,7 +7582,7 @@ async function nu(t) {
7570
7582
  abortKey: o,
7571
7583
  abortSignal: u
7572
7584
  });
7573
- S = Math.min(I.get(y) ?? Number.NaN, A), x = Math.min(I.get(m) ?? Number.NaN, A), v = x * S, g = B === b ? 0 : (B - b) / (x - 1), p = T === N ? 0 : (T - N) / (S - 1), e.set(C.scatterplotAggregationFields.xStep, g), e.set(C.scatterplotAggregationFields.yStep, p), e.set(C.scatterplotAggregationFields.rowCount, S), e.set(C.scatterplotAggregationFields.columnCount, x), e.set(C.scatterplotAggregationFields.realGridSize, v);
7585
+ h = Math.min(I.get(y) ?? Number.NaN, A), v = Math.min(I.get(m) ?? Number.NaN, A), B = v * h, g = C === b ? 0 : (C - b) / (v - 1), p = T === N ? 0 : (T - N) / (h - 1), e.set(x.scatterplotAggregationFields.xStep, g), e.set(x.scatterplotAggregationFields.yStep, p), e.set(x.scatterplotAggregationFields.rowCount, h), e.set(x.scatterplotAggregationFields.columnCount, v), e.set(x.scatterplotAggregationFields.realGridSize, B);
7574
7586
  }
7575
7587
  }
7576
7588
  function su(t) {
@@ -7623,12 +7635,12 @@ async function lu(t) {
7623
7635
  dataContextYMinField: y,
7624
7636
  dataContextYMaxField: g,
7625
7637
  queryNumberOfFeatures: p,
7626
- queryNumberOfAggregatedFeatures: S
7627
- } = C.scatterplotAggregationFields;
7628
- let x;
7629
- const v = e?.get(f) ?? Number.NaN, b = e?.get(m) ?? Number.NaN, B = e?.get(p) ?? Number.NaN, N = e?.get(y) ?? v, T = e?.get(g) ?? b;
7630
- if (v != null && N !== void 0 && N !== null && b !== void 0 && b !== null && T !== void 0 && T !== null && !Number.isNaN(v + b + N + T)) {
7631
- const w = z(a), { idField: L, isTraditionalTypeOID: A } = ve(w), I = A ? L : "*", P = e?.get(C.scatterplotAggregationFields.xStep), O = e?.get(C.scatterplotAggregationFields.yStep), V = e?.get(C.scatterplotAggregationFields.realGridSize), $ = e?.get(C.scatterplotAggregationFields.rowCount), M = e?.get(C.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), G = Ce(a);
7638
+ queryNumberOfAggregatedFeatures: h
7639
+ } = x.scatterplotAggregationFields;
7640
+ let v;
7641
+ const B = e?.get(f) ?? Number.NaN, b = e?.get(m) ?? Number.NaN, C = e?.get(p) ?? Number.NaN, N = e?.get(y) ?? B, T = e?.get(g) ?? b;
7642
+ if (B != null && N !== void 0 && N !== null && b !== void 0 && b !== null && T !== void 0 && T !== null && !Number.isNaN(B + b + N + T)) {
7643
+ const w = z(a), { idField: L, isTraditionalTypeOID: A } = ve(w), I = A ? L : "*", P = e?.get(x.scatterplotAggregationFields.xStep), O = e?.get(x.scatterplotAggregationFields.yStep), V = e?.get(x.scatterplotAggregationFields.realGridSize), $ = e?.get(x.scatterplotAggregationFields.rowCount), M = e?.get(x.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), G = Ce(a);
7632
7644
  if (G?.forEach((H) => {
7633
7645
  Ft(H) && q.set(H.name, {
7634
7646
  onStatisticField: H.name,
@@ -7649,7 +7661,7 @@ async function lu(t) {
7649
7661
  });
7650
7662
  }), L !== "" && q.set(L, {
7651
7663
  onStatisticField: I,
7652
- outStatisticFieldName: S,
7664
+ outStatisticFieldName: h,
7653
7665
  statisticType: D.Count
7654
7666
  }), q.set(l, {
7655
7667
  onStatisticField: l,
@@ -7665,11 +7677,11 @@ async function lu(t) {
7665
7677
  ...r,
7666
7678
  outStatistics: [...q.values()]
7667
7679
  };
7668
- x = await Ts({
7680
+ v = await Ts({
7669
7681
  queryObject: a,
7670
7682
  queryConfig: H,
7671
7683
  xStep: P,
7672
- xMin: v,
7684
+ xMin: B,
7673
7685
  xMax: b,
7674
7686
  x: l,
7675
7687
  y: d,
@@ -7680,7 +7692,7 @@ async function lu(t) {
7680
7692
  } else if ($ !== void 0 && M !== void 0) {
7681
7693
  let H = 0;
7682
7694
  const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = $t(), Bi = await no(w, u) ? pe : ae, Ni = [];
7683
- let Ht = !0, Xe = v, ke = N, Je = "", Ct = 1, zt = 1, vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER;
7695
+ let Ht = !0, Xe = B, ke = N, Je = "", Ct = 1, zt = 1, vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER;
7684
7696
  for (; zt <= M && Ht; ) {
7685
7697
  for (ke = N, Ct = 1; Ct <= $ && Ht; ) {
7686
7698
  if (Je = su({
@@ -7693,7 +7705,7 @@ async function lu(t) {
7693
7705
  yStep: O,
7694
7706
  endOfRow: Ct === $,
7695
7707
  endOfColumn: zt === M
7696
- }), Xe < vt && (vt = Xe), Xe + P > Bt && (Bt = Xe + P), ke < Nt && (Nt = ke), ke + P > Tt && (Tt = ke + O), H += 1, H % Bi === 0 || H === V || H === B) {
7708
+ }), Xe < vt && (vt = Xe), Xe + P > Bt && (Bt = Xe + P), ke < Nt && (Nt = ke), ke + P > Tt && (Tt = ke + O), H += 1, H % Bi === 0 || H === V || H === C) {
7697
7709
  Je = `${Je} ${Ue.groupByCaseEnd}`;
7698
7710
  const pr = {
7699
7711
  ...r,
@@ -7719,11 +7731,11 @@ async function lu(t) {
7719
7731
  }
7720
7732
  Xe += P, zt += 1;
7721
7733
  }
7722
- x = (await Promise.all(Ni)).flat();
7734
+ v = (await Promise.all(Ni)).flat();
7723
7735
  }
7724
7736
  }
7725
7737
  }
7726
- return x;
7738
+ return v;
7727
7739
  }
7728
7740
  async function uu(t) {
7729
7741
  const { chartConfig: e, queryConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = e.series[0], { x: u, y: c } = o;
@@ -7734,10 +7746,10 @@ async function uu(t) {
7734
7746
  dataContextYMinField: m,
7735
7747
  dataContextYMaxField: y,
7736
7748
  queryNumberOfFeatures: g
7737
- } = C.scatterplotAggregationFields, { idField: p, isTraditionalTypeOID: S } = ve(z(a)), x = S ? p : "*", v = [
7749
+ } = x.scatterplotAggregationFields, { idField: p, isTraditionalTypeOID: h } = ve(z(a)), v = h ? p : "*", B = [
7738
7750
  {
7739
7751
  statisticType: D.Count,
7740
- onStatisticField: x,
7752
+ onStatisticField: v,
7741
7753
  outStatisticFieldName: g
7742
7754
  },
7743
7755
  {
@@ -7751,7 +7763,7 @@ async function uu(t) {
7751
7763
  onStatisticField: u
7752
7764
  }
7753
7765
  ];
7754
- u !== c && v.push(
7766
+ u !== c && B.push(
7755
7767
  {
7756
7768
  statisticType: D.Minimum,
7757
7769
  outStatisticFieldName: m,
@@ -7764,7 +7776,7 @@ async function uu(t) {
7764
7776
  }
7765
7777
  );
7766
7778
  const b = { ...i };
7767
- return b.outStatistics = v, l = await xt({
7779
+ return b.outStatistics = B, l = await xt({
7768
7780
  queryObject: a,
7769
7781
  queryConfig: b,
7770
7782
  errorStrings: r,
@@ -7777,45 +7789,45 @@ function wt(t) {
7777
7789
  return e === i || e === a ? e : Math.random() * (a - i) + i;
7778
7790
  }
7779
7791
  function cu(t) {
7780
- const { useQueryAttributeBins: e, graphic: i, x: a, y: r, yStep: n } = t, { groupByOutKeyword: s } = Ue, { dataContextXMinField: o, dataContextXMaxField: u, dataContextYMinField: c, dataContextYMaxField: l } = C.scatterplotAggregationFields;
7792
+ const { useQueryAttributeBins: e, graphic: i, x: a, y: r, yStep: n } = t, { groupByOutKeyword: s } = Ue, { dataContextXMinField: o, dataContextXMaxField: u, dataContextYMinField: c, dataContextYMaxField: l } = x.scatterplotAggregationFields;
7781
7793
  let d = [];
7782
7794
  if (e && "stackedAttributes" in i && i.stackedAttributes) {
7783
7795
  const f = Da(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
7784
7796
  i.stackedAttributes.forEach((g) => {
7785
- let p = g[f.stackAlias], S;
7786
- typeof p == "number" && typeof n == "number" && (p *= n), typeof p == "number" && typeof n == "number" && (S = p + n);
7787
- const x = g[a], v = g[r];
7788
- typeof p == "number" && typeof S == "number" && typeof x == "number" && typeof v == "number" && d.push({
7797
+ let p = g[f.stackAlias], h;
7798
+ typeof p == "number" && typeof n == "number" && (p *= n), typeof p == "number" && typeof n == "number" && (h = p + n);
7799
+ const v = g[a], B = g[r];
7800
+ typeof p == "number" && typeof h == "number" && typeof v == "number" && typeof B == "number" && d.push({
7789
7801
  ...g,
7790
- [a]: wt({ value: x, valueMin: m, valueMax: y }),
7791
- [r]: wt({ value: v, valueMin: p, valueMax: S }),
7802
+ [a]: wt({ value: v, valueMin: m, valueMax: y }),
7803
+ [r]: wt({ value: B, valueMin: p, valueMax: h }),
7792
7804
  [o]: Math.min(m, y),
7793
7805
  [u]: Math.max(m, y),
7794
7806
  [c]: p,
7795
- [l]: S
7807
+ [l]: h
7796
7808
  });
7797
7809
  });
7798
7810
  } else {
7799
7811
  const { expr: f, isInItem: m } = Vt(i.attributes);
7800
7812
  if (m && f && i.attributes[f] !== s) {
7801
- let [y, g, p, S] = i.attributes[f].split("|");
7802
- y = Math.min(y, g), g = Math.max(y, g), p = Math.min(p, S), S = Math.max(p, S);
7803
- const x = {
7813
+ let [y, g, p, h] = i.attributes[f].split("|");
7814
+ y = Math.min(y, g), g = Math.max(y, g), p = Math.min(p, h), h = Math.max(p, h);
7815
+ const v = {
7804
7816
  ...i.attributes,
7805
7817
  [o]: y,
7806
7818
  [u]: g,
7807
7819
  [c]: p,
7808
- [l]: S
7820
+ [l]: h
7809
7821
  };
7810
- x[a] = wt({
7811
- value: x[a],
7822
+ v[a] = wt({
7823
+ value: v[a],
7812
7824
  valueMin: y,
7813
7825
  valueMax: g
7814
- }), x[r] = wt({
7815
- value: x[r],
7826
+ }), v[r] = wt({
7827
+ value: v[r],
7816
7828
  valueMin: p,
7817
- valueMax: S
7818
- }), d = [x];
7829
+ valueMax: h
7830
+ }), d = [v];
7819
7831
  }
7820
7832
  }
7821
7833
  return d;
@@ -7842,21 +7854,21 @@ async function fu(t) {
7842
7854
  let f = [];
7843
7855
  const m = Ce(e), y = kt(d).idFields, g = (m?.filter((b) => Ft(b) && b.name !== c && b.name !== l) ?? []).map(
7844
7856
  (b) => b.name
7845
- ) ?? [], p = u?.additionalTooltipFields ?? [], S = Array.from(
7857
+ ) ?? [], p = u?.additionalTooltipFields ?? [], h = Array.from(
7846
7858
  /* @__PURE__ */ new Set([c, l, ...y ?? [], ...g, ...p])
7847
- ), x = ge(d);
7848
- if (x && !x.isTable) {
7849
- const { rendererField: b, rendererNormalizationField: B } = io(d?.renderer ?? void 0);
7850
- oe(b) || S.push(b), oe(B) || S.push(B);
7859
+ ), v = ge(d);
7860
+ if (v && !v.isTable) {
7861
+ const { rendererField: b, rendererNormalizationField: C } = io(d?.renderer ?? void 0);
7862
+ oe(b) || h.push(b), oe(C) || h.push(C);
7851
7863
  }
7852
- const v = {
7864
+ const B = {
7853
7865
  ...i,
7854
7866
  orderByFields: [`${c} ${ye.Ascending}`],
7855
- outFields: S
7867
+ outFields: h
7856
7868
  };
7857
7869
  return f = await Fe({
7858
7870
  queryObject: e,
7859
- queryConfig: v,
7871
+ queryConfig: B,
7860
7872
  featureCount: r,
7861
7873
  errorStrings: n,
7862
7874
  abortKey: s,
@@ -7923,7 +7935,7 @@ async function cr(t) {
7923
7935
  errorStrings: o,
7924
7936
  abortKey: u,
7925
7937
  abortSignal: c
7926
- }), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s), g = d?.get(f) ?? Number.NaN, p = g >= y, S = gn(a);
7938
+ }), { queryNumberOfFeatures: f, yStep: m } = x.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s), g = d?.get(f) ?? Number.NaN, p = g >= y, h = gn(a);
7927
7939
  p && await nu({
7928
7940
  statsMap: d,
7929
7941
  chartConfig: e,
@@ -7934,35 +7946,35 @@ async function cr(t) {
7934
7946
  abortKey: u,
7935
7947
  abortSignal: c
7936
7948
  });
7937
- const x = await mu({
7949
+ const v = await mu({
7938
7950
  ...t,
7939
7951
  queryObject: a,
7940
7952
  statsMap: d,
7941
7953
  numberOfFeatures: g,
7942
7954
  isAggregationMode: p,
7943
- useQueryAttributeBins: S
7944
- }), v = du({
7955
+ useQueryAttributeBins: h
7956
+ }), B = du({
7945
7957
  chartConfig: e,
7946
- rawData: x,
7958
+ rawData: v,
7947
7959
  isAggregationMode: p,
7948
7960
  yStep: d.get(m),
7949
- useQueryAttributeBins: S
7961
+ useQueryAttributeBins: h
7950
7962
  });
7951
7963
  r !== !1 && ht({
7952
- arrayToSort: v,
7964
+ arrayToSort: B,
7953
7965
  sortingField: e.series[0].x,
7954
7966
  orderBy: ye.Ascending
7955
7967
  });
7956
- const { r2: b, trendLinePoints: B } = n !== !1 ? await qa({
7957
- data: v,
7968
+ const { r2: b, trendLinePoints: C } = n !== !1 ? await qa({
7969
+ data: B,
7958
7970
  statsMap: d,
7959
7971
  queryConfig: i,
7960
7972
  queryObject: a,
7961
7973
  chartConfig: e,
7962
7974
  errorStrings: o,
7963
7975
  abortSignal: c
7964
- }) : C.scatterplotSeries;
7965
- l = { dataItems: v, r2: b, trendLinePoints: B, aggregated: p };
7976
+ }) : x.scatterplotSeries;
7977
+ l = { dataItems: B, r2: b, trendLinePoints: C, aggregated: p };
7966
7978
  }
7967
7979
  return l;
7968
7980
  }
@@ -8045,7 +8057,7 @@ function vi(t) {
8045
8057
  const { seriesConfig: e, filteredSeriesIds: i, showMean: a } = t;
8046
8058
  let r = [];
8047
8059
  if (a === !0) {
8048
- const n = e.find((s) => s.type === h.BoxPlotSeries);
8060
+ const n = e.find((s) => s.type === S.BoxPlotSeries);
8049
8061
  n !== void 0 && "y" in n && (r = [n.y].flat());
8050
8062
  } else
8051
8063
  r = ue(e, i);
@@ -8062,7 +8074,7 @@ function zd(t) {
8062
8074
  const { chartConfig: e, nullAsValid: i = !1, dataSet: a } = t;
8063
8075
  let r = !0;
8064
8076
  if (e !== void 0) {
8065
- const n = _(e.series);
8077
+ const n = j(e.series);
8066
8078
  if (a === void 0 || a.length === 0)
8067
8079
  r = !0;
8068
8080
  else {
@@ -8070,22 +8082,22 @@ function zd(t) {
8070
8082
  r = !a.some((o) => {
8071
8083
  let u = !1;
8072
8084
  switch (n) {
8073
- case h.HistogramSeries:
8085
+ case S.HistogramSeries:
8074
8086
  {
8075
8087
  const c = o;
8076
8088
  u = Me(c.minValue, i) && Me(c.maxValue, i);
8077
8089
  }
8078
8090
  break;
8079
- case h.ScatterSeries:
8091
+ case S.ScatterSeries:
8080
8092
  {
8081
8093
  const c = o, { x: l, y: d } = e.series[0];
8082
8094
  u = Me(c[l], i) && Me(c[d], i);
8083
8095
  }
8084
8096
  break;
8085
- case h.ComboLineAndBarSeries:
8086
- case h.RadarSeries:
8087
- case h.LineSeries:
8088
- case h.BarSeries: {
8097
+ case S.ComboLineAndBarSeries:
8098
+ case S.RadarSeries:
8099
+ case S.LineSeries:
8100
+ case S.BarSeries: {
8089
8101
  const c = o, { x: l } = e.series[0];
8090
8102
  u = s.some(
8091
8103
  (d) => gu({
@@ -8098,7 +8110,7 @@ function zd(t) {
8098
8110
  );
8099
8111
  break;
8100
8112
  }
8101
- case h.BoxPlotSeries: {
8113
+ case S.BoxPlotSeries: {
8102
8114
  if (de(e)) {
8103
8115
  const c = e.series;
8104
8116
  u = yu({
@@ -8110,7 +8122,7 @@ function zd(t) {
8110
8122
  }
8111
8123
  break;
8112
8124
  }
8113
- case h.PieSeries:
8125
+ case S.PieSeries:
8114
8126
  {
8115
8127
  const c = o;
8116
8128
  let { x: l, y: d } = e.series[0];
@@ -8119,15 +8131,15 @@ function zd(t) {
8119
8131
  u = c[l] !== void 0 && c[l] !== null && !hr(f) && Me(Number(f), i);
8120
8132
  }
8121
8133
  break;
8122
- case h.GaugeSeries:
8134
+ case S.GaugeSeries:
8123
8135
  {
8124
8136
  const { x: c } = e.series[0];
8125
8137
  u = Me(o[c], i);
8126
8138
  }
8127
8139
  break;
8128
- case h.HeatSeries:
8140
+ case S.HeatSeries:
8129
8141
  u = a.some(
8130
- (c) => Me(c[Q.valueField], i)
8142
+ (c) => Me(c[_.valueField], i)
8131
8143
  );
8132
8144
  break;
8133
8145
  }
@@ -8148,7 +8160,7 @@ function pu(t, e) {
8148
8160
  }
8149
8161
  function hu(t) {
8150
8162
  const { seriesConfig: e, filteredSeriesIds: i, filteredData: a } = t, r = pu(e, i), n = e.find(
8151
- (c) => c.type === h.LineSeries || c.type === h.RadarSeries
8163
+ (c) => c.type === S.LineSeries || c.type === S.RadarSeries
8152
8164
  )?.stackNegativeValuesToBaseline ?? !0;
8153
8165
  let s = Number.MIN_SAFE_INTEGER, o = Number.MAX_SAFE_INTEGER, u = !1;
8154
8166
  return a.forEach((c) => {
@@ -8179,30 +8191,30 @@ function Ui(t) {
8179
8191
  let e = Number.NaN, i = Number.NaN, a, r;
8180
8192
  const { chartConfig: n, chartData: s, filteredSeriesIds: o } = t, { series: u } = n;
8181
8193
  if (u?.length > 0) {
8182
- const { x: c } = u[0], l = _(n.series);
8183
- if (l === h.HistogramSeries && s.length > 0) {
8194
+ const { x: c } = u[0], l = j(n.series);
8195
+ if (l === S.HistogramSeries && s.length > 0) {
8184
8196
  const d = s[0]?.[Ri.Start], f = s[s.length - 1]?.[Ri.End];
8185
8197
  a = typeof d == "number" ? d : a, r = typeof f == "number" ? f : r;
8186
8198
  } else {
8187
8199
  const d = s.filter((m) => m[c] !== null);
8188
- if ({ min: a, max: r } = St(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === h.BoxPlotSeries) {
8200
+ if ({ min: a, max: r } = St(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === S.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === S.BoxPlotSeries) {
8189
8201
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
8190
8202
  const m = ue(u, o), y = k(u), g = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, p = n.series.map(
8191
- (S) => S.visible !== !1 ? fe({ where: S.query?.where }) : ""
8203
+ (h) => h.visible !== !1 ? fe({ where: h.query?.where }) : ""
8192
8204
  );
8193
- p.length === 0 && p.push(" "), d.forEach((S) => {
8194
- m.forEach((x) => {
8195
- const v = y === F.BoxPlotMultiFieldsAndCategory ? x : void 0;
8205
+ p.length === 0 && p.push(" "), d.forEach((h) => {
8206
+ m.forEach((v) => {
8207
+ const B = y === F.BoxPlotMultiFieldsAndCategory ? v : void 0;
8196
8208
  p.forEach((b) => {
8197
- const { min: B, max: N } = Su({
8198
- y: v,
8209
+ const { min: C, max: N } = Su({
8210
+ y: B,
8199
8211
  splitByValue: b,
8200
8212
  chartSubType: y,
8201
8213
  showOutliers: !1,
8202
8214
  standardizeValues: g,
8203
- dataItem: S
8215
+ dataItem: h
8204
8216
  });
8205
- B != null && B < e && (e = B), N != null && N > i && (i = N);
8217
+ C != null && C < e && (e = C), N != null && N > i && (i = N);
8206
8218
  });
8207
8219
  });
8208
8220
  });
@@ -8222,11 +8234,11 @@ function Ui(t) {
8222
8234
  case Te.Side:
8223
8235
  default: {
8224
8236
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((g) => {
8225
- const { min: p, max: S } = St(
8237
+ const { min: p, max: h } = St(
8226
8238
  d,
8227
- (x) => x[g]
8239
+ (v) => v[g]
8228
8240
  );
8229
- p !== void 0 && p < e && (e = p), S !== void 0 && S > i && (i = S);
8241
+ p !== void 0 && p < e && (e = p), h !== void 0 && h > i && (i = h);
8230
8242
  });
8231
8243
  break;
8232
8244
  }
@@ -8247,7 +8259,7 @@ function yr(t) {
8247
8259
  let e = !1;
8248
8260
  if (t) {
8249
8261
  const i = t.axes?.[0], a = i?.isLogarithmic === !0, r = i?.valueFormat?.type;
8250
- e = (r === h.NumberAxisFormat || r === h.DateAxisFormat) && a;
8262
+ e = (r === S.NumberAxisFormat || r === S.DateAxisFormat) && a;
8251
8263
  }
8252
8264
  return e;
8253
8265
  }
@@ -8294,14 +8306,14 @@ function bu(t, e) {
8294
8306
  return i;
8295
8307
  }
8296
8308
  function xu(t, e) {
8297
- const i = _(e);
8309
+ const i = j(e);
8298
8310
  let a = t;
8299
8311
  const r = e?.[0];
8300
- if ((i === h.PieSeries || i === h.BoxPlotSeries || i === h.LineSeries || i === h.RadarSeries || i === h.BarSeries || i === h.HeatSeries || i === h.ComboLineAndBarSeries) && r !== void 0) {
8312
+ if ((i === S.PieSeries || i === S.BoxPlotSeries || i === S.LineSeries || i === S.RadarSeries || i === S.BarSeries || i === S.HeatSeries || i === S.ComboLineAndBarSeries) && r !== void 0) {
8301
8313
  const n = ui(t);
8302
8314
  let s = n ? t : t.dataItems;
8303
8315
  if (t !== void 0) {
8304
- const { originalCategoryValue: o, originalYCategoryValue: u, originalDateValue: c, xAxisField: l } = C, d = i === h.HeatSeries ? Q.xField : r.x, f = i === h.HeatSeries ? Q.yField : void 0;
8316
+ const { originalCategoryValue: o, originalYCategoryValue: u, originalDateValue: c, xAxisField: l } = x, d = i === S.HeatSeries ? _.xField : r.x, f = i === S.HeatSeries ? _.yField : void 0;
8305
8317
  s = s.map((m) => {
8306
8318
  let y = m[d];
8307
8319
  m[c] !== void 0 ? y = m[c] : m[o] !== void 0 && (y = m[o]);
@@ -8318,30 +8330,30 @@ function xu(t, e) {
8318
8330
  }
8319
8331
  function Yi(t) {
8320
8332
  const e = { ...t };
8321
- delete e[C.technicalSortingFieldBySum], delete e[C.technicalSortingFieldByPercent], delete e[C.pieChart.technicalFieldSlicePercent], delete e[C.pieChart.technicalFieldGroupedSlices], delete e[C.lastTemporalBin], delete e[C.originalServerBinningRange], delete e[C.technicalFieldSplitByField], delete e[W.uniqueIdsName], Object.keys(e).filter(
8322
- (r) => r.includes(C.rendererSymbolField)
8333
+ delete e[x.technicalSortingFieldBySum], delete e[x.technicalSortingFieldByPercent], delete e[x.pieChart.technicalFieldSlicePercent], delete e[x.pieChart.technicalFieldGroupedSlices], delete e[x.lastTemporalBin], delete e[x.originalServerBinningRange], delete e[x.technicalFieldSplitByField], delete e[W.uniqueIdsName], Object.keys(e).filter(
8334
+ (r) => r.includes(x.rendererSymbolField)
8323
8335
  ).forEach((r) => delete e[r]);
8324
8336
  const a = Vt(e);
8325
8337
  return a.isInItem && delete e[a.expr ?? ""], e;
8326
8338
  }
8327
8339
  function Cu(t, e) {
8328
8340
  let i = t;
8329
- const a = _(e);
8341
+ const a = j(e);
8330
8342
  let r = Ci(i);
8331
8343
  if (r !== void 0)
8332
8344
  switch (a) {
8333
- case h.ComboLineAndBarSeries:
8334
- case h.BarSeries:
8335
- case h.LineSeries:
8336
- case h.RadarSeries:
8337
- case h.PieSeries:
8345
+ case S.ComboLineAndBarSeries:
8346
+ case S.BarSeries:
8347
+ case S.LineSeries:
8348
+ case S.RadarSeries:
8349
+ case S.PieSeries:
8338
8350
  {
8339
8351
  r = r.map(Yi), i = { dataItems: r };
8340
8352
  const { timeIntervalInfo: n, serverLimitReached: s } = t ?? {};
8341
8353
  Sr(n) || (i.timeIntervalInfo = n), s !== void 0 && (i.serverLimitReached = s);
8342
8354
  }
8343
8355
  break;
8344
- case h.ScatterSeries:
8356
+ case S.ScatterSeries:
8345
8357
  i = {
8346
8358
  ...i,
8347
8359
  dataItems: r.map(Yi)
@@ -8360,28 +8372,28 @@ function Ud(t) {
8360
8372
  return a !== void 0 && (a = xu(a, i), a = Cu(a, i), a = bu(a, i)), a;
8361
8373
  }
8362
8374
  function vu(t) {
8363
- const { dataFetchingResults: e, numberOfQueries: i, series: a } = t, r = _(a), n = k(a);
8375
+ const { dataFetchingResults: e, numberOfQueries: i, series: a } = t, r = j(a), n = k(a);
8364
8376
  let s = [];
8365
8377
  const o = /* @__PURE__ */ new Map();
8366
8378
  for (let u = 0; u < i; u += 1) {
8367
8379
  const c = e[u];
8368
8380
  if (c !== void 0) {
8369
8381
  let l;
8370
- if (r === h.ScatterSeries)
8382
+ if (r === S.ScatterSeries)
8371
8383
  l = c.dataItems;
8372
8384
  else if ("data" in c && c.data) {
8373
8385
  const d = c.data;
8374
8386
  "dataItems" in d && (l = d.dataItems), "outliers" in d && d.outliers && s.push(...d.outliers), "meanLines" in d && d.meanLines && s.push(...d.meanLines);
8375
8387
  }
8376
8388
  if (l)
8377
- if (a[0].type === h.HeatSeries)
8389
+ if (a[0].type === S.HeatSeries)
8378
8390
  i > 0 && l.forEach((d) => {
8379
8391
  o.set(
8380
- `${d[Q.xField]}-${d[Q.yField]}`,
8392
+ `${d[_.xField]}-${d[_.yField]}`,
8381
8393
  d
8382
8394
  );
8383
8395
  });
8384
- else if (a[0].type === h.ScatterSeries) {
8396
+ else if (a[0].type === S.ScatterSeries) {
8385
8397
  const { x: d, y: f } = a[0];
8386
8398
  s.push(
8387
8399
  ...l.map((m) => ({
@@ -8418,12 +8430,12 @@ async function Bu(t) {
8418
8430
  returnFeaturesExtent: f,
8419
8431
  popupTemplateFieldInfosEnabled: m,
8420
8432
  view: y
8421
- } = t, { series: g } = a, p = _(g), S = [], { maxOIDsPerSelectionQuery: x } = $t();
8433
+ } = t, { series: g } = a, p = j(g), h = [], { maxOIDsPerSelectionQuery: v } = $t();
8422
8434
  for (let b = 0; b < e; b += 1) {
8423
- const B = b * x, N = (b + 1) * x - 1, T = i.slice(B === 0 ? 0 : B - 1, N), w = { ...r };
8435
+ const C = b * v, N = (b + 1) * v - 1, T = i.slice(C === 0 ? 0 : C - 1, N), w = { ...r };
8424
8436
  switch (w.objectIds = T, p) {
8425
- case h.HeatSeries:
8426
- S.push(
8437
+ case S.HeatSeries:
8438
+ h.push(
8427
8439
  ur({
8428
8440
  completeHeatChartDataset: !1,
8429
8441
  // we do not want the empty bins to be added for the selection
@@ -8438,11 +8450,11 @@ async function Bu(t) {
8438
8450
  })
8439
8451
  );
8440
8452
  break;
8441
- case h.PieSeries:
8442
- case h.BarSeries:
8443
- case h.LineSeries:
8444
- case h.RadarSeries:
8445
- case h.ComboLineAndBarSeries:
8453
+ case S.PieSeries:
8454
+ case S.BarSeries:
8455
+ case S.LineSeries:
8456
+ case S.RadarSeries:
8457
+ case S.ComboLineAndBarSeries:
8446
8458
  if (Pe({
8447
8459
  xAxisValueFormatType: xe(a),
8448
8460
  setTimeBinningInfoWhenNotProvided: d,
@@ -8450,7 +8462,7 @@ async function Bu(t) {
8450
8462
  queryObject: s
8451
8463
  })) {
8452
8464
  const L = He(a);
8453
- "temporalBinning" in L.series[0] && L.series[0].temporalBinning && (L.series[0].temporalBinning.trimIncompleteTimeInterval = !1, rt(o, s) && (delete L.series[0].temporalBinning.start, delete L.series[0].temporalBinning.end)), S.push(
8465
+ "temporalBinning" in L.series[0] && L.series[0].temporalBinning && (L.series[0].temporalBinning.trimIncompleteTimeInterval = !1, rt(o, s) && (delete L.series[0].temporalBinning.start, delete L.series[0].temporalBinning.end)), h.push(
8454
8466
  xi({
8455
8467
  chartConfig: L,
8456
8468
  queryConfig: w,
@@ -8464,7 +8476,7 @@ async function Bu(t) {
8464
8476
  })
8465
8477
  );
8466
8478
  } else
8467
- S.push(
8479
+ h.push(
8468
8480
  tu({
8469
8481
  queryObject: s,
8470
8482
  chartConfig: a,
@@ -8477,8 +8489,8 @@ async function Bu(t) {
8477
8489
  })
8478
8490
  );
8479
8491
  break;
8480
- case h.BoxPlotSeries:
8481
- S.push(
8492
+ case S.BoxPlotSeries:
8493
+ h.push(
8482
8494
  iu({
8483
8495
  queryObject: s,
8484
8496
  chartConfig: a,
@@ -8494,8 +8506,8 @@ async function Bu(t) {
8494
8506
  })
8495
8507
  );
8496
8508
  break;
8497
- case h.ScatterSeries:
8498
- S.push(
8509
+ case S.ScatterSeries:
8510
+ h.push(
8499
8511
  cr({
8500
8512
  queryObject: s,
8501
8513
  chartConfig: a,
@@ -8515,8 +8527,8 @@ async function Bu(t) {
8515
8527
  })
8516
8528
  );
8517
8529
  break;
8518
- case h.HistogramSeries:
8519
- S.push(
8530
+ case S.HistogramSeries:
8531
+ h.push(
8520
8532
  Do({
8521
8533
  queryObject: s,
8522
8534
  queryConfig: w,
@@ -8528,7 +8540,7 @@ async function Bu(t) {
8528
8540
  break;
8529
8541
  }
8530
8542
  }
8531
- return await Promise.all(S);
8543
+ return await Promise.all(h);
8532
8544
  }
8533
8545
  async function Yd(t) {
8534
8546
  const {
@@ -8548,12 +8560,12 @@ async function Yd(t) {
8548
8560
  viewExtentUpdated: y,
8549
8561
  runtimeDataFilters: g,
8550
8562
  ignoreViewExtent: p,
8551
- returnSelectionOIDs: S,
8552
- selectionData: x
8553
- } = t, { series: v } = e, { selectionItems: b, selectionOIDs: B } = x ?? {};
8563
+ returnSelectionOIDs: h,
8564
+ selectionData: v
8565
+ } = t, { series: B } = e, { selectionItems: b, selectionOIDs: C } = v ?? {};
8554
8566
  let N;
8555
- const T = _(v), w = T !== h.HistogramSeries && T !== h.HeatSeries && b !== void 0 && b.length > 0 && !(v[0].x in b[0]) && !(ce in b[0]) && !(C.boxPlot.boxPlotCategory in b[0]);
8556
- if (y !== !0 && S !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
8567
+ const T = j(B), w = T !== S.HistogramSeries && T !== S.HeatSeries && b !== void 0 && b.length > 0 && !(B[0].x in b[0]) && !(ce in b[0]) && !(x.boxPlot.boxPlotCategory in b[0]);
8568
+ if (y !== !0 && h !== !1 && C !== void 0 && C.length > 0 && (a === !0 || w || u)) {
8557
8569
  const A = Ci(i), I = ja({
8558
8570
  queryObject: s,
8559
8571
  chartConfig: e,
@@ -8564,12 +8576,12 @@ async function Yd(t) {
8564
8576
  if (A !== void 0 && !Bn({ dataContext: A[0], chartConfig: e, chartLimits: c }))
8565
8577
  N = A.filter((P) => {
8566
8578
  const O = P[W.uniqueIdsName];
8567
- return typeof O == "number" || typeof O == "string" ? B?.includes(O) : !1;
8579
+ return typeof O == "number" || typeof O == "string" ? C?.includes(O) : !1;
8568
8580
  });
8569
- else if (B?.[0] !== void 0 && I !== void 0) {
8570
- const { maxOIDsPerSelectionQuery: P } = $t(), O = Math.ceil(B.length / P), V = te(e.series[0]?.query?.where), $ = await Bu({
8581
+ else if (C?.[0] !== void 0 && I !== void 0) {
8582
+ const { maxOIDsPerSelectionQuery: P } = $t(), O = Math.ceil(C.length / P), V = te(e.series[0]?.query?.where), $ = await Bu({
8571
8583
  numberOfQueries: O,
8572
- selectionOIDs: B,
8584
+ selectionOIDs: C,
8573
8585
  queryConfig: I,
8574
8586
  queryObject: s,
8575
8587
  replaceNoValueCategoryWithZero: r,
@@ -8586,7 +8598,7 @@ async function Yd(t) {
8586
8598
  N = vu({
8587
8599
  dataFetchingResults: $,
8588
8600
  numberOfQueries: O,
8589
- series: v
8601
+ series: B
8590
8602
  });
8591
8603
  }
8592
8604
  }
@@ -8602,7 +8614,7 @@ export {
8602
8614
  re as A,
8603
8615
  E as B,
8604
8616
  fd as C,
8605
- j as D,
8617
+ Q as D,
8606
8618
  le as E,
8607
8619
  zs as F,
8608
8620
  ps as G,