@arcgis/charts-components 5.1.0-next.82 → 5.1.0-next.83

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 (172) hide show
  1. package/dist/cdn/{BHFEFC6X.js → 2C53KAFV.js} +1 -1
  2. package/dist/cdn/{GEXUXKE2.js → 2DACBEJH.js} +1 -1
  3. package/dist/cdn/2F63MBYD.js +2 -0
  4. package/dist/cdn/{CJ7NTZVC.js → 2ZCJSPOP.js} +1 -1
  5. package/dist/cdn/{UC2KHUNN.js → 3PGPIXWL.js} +1 -1
  6. package/dist/cdn/{UOC3SKN2.js → 4EULL7VO.js} +1 -1
  7. package/dist/cdn/4SZOVAC4.js +2 -0
  8. package/dist/cdn/{WFGGTYWP.js → 4VAAS2W5.js} +1 -1
  9. package/dist/cdn/{7R3FEB3R.js → 52IYTDZC.js} +1 -1
  10. package/dist/cdn/5GXFNW3H.js +2 -0
  11. package/dist/cdn/{BJAQIZB3.js → 5TEAPXIJ.js} +1 -1
  12. package/dist/cdn/{VDZ5R7WX.js → 5ZH65PNZ.js} +1 -1
  13. package/dist/cdn/64HBWFA3.js +2 -0
  14. package/dist/cdn/{TITJWWP7.js → 6TS7TXG7.js} +1 -1
  15. package/dist/cdn/{ZC6NYZDM.js → 74U7XXHV.js} +1 -1
  16. package/dist/cdn/7KD5V3MH.js +2 -0
  17. package/dist/cdn/{B7RU4X5Z.js → AAM5VKBK.js} +1 -1
  18. package/dist/cdn/{GVBLRXKE.js → AAV66WVS.js} +1 -1
  19. package/dist/cdn/{PSCAEQLN.js → AXCA6ASP.js} +1 -1
  20. package/dist/cdn/{AZLVOWWT.js → CGNK5OP4.js} +3 -3
  21. package/dist/cdn/{UR6A4VM5.js → CMWMYS2K.js} +1 -1
  22. package/dist/cdn/CUQNQICY.js +2 -0
  23. package/dist/cdn/{3G26ZRB7.js → DCZD5KWR.js} +1 -1
  24. package/dist/cdn/{O4645DWG.js → DMSWFKFP.js} +1 -1
  25. package/dist/cdn/{OWRWKXFL.js → DTQAQIJM.js} +1 -1
  26. package/dist/cdn/DZSS337I.js +2 -0
  27. package/dist/cdn/E4Y6N6PF.js +2 -0
  28. package/dist/cdn/{623QYMIQ.js → EOUHXPEA.js} +1 -1
  29. package/dist/cdn/{FUHOULT2.js → F7CR2AY4.js} +1 -1
  30. package/dist/cdn/{QILOZFO7.js → FBG5ZTTQ.js} +8 -8
  31. package/dist/cdn/FEDPGCQC.js +2 -0
  32. package/dist/cdn/{YUN4XIA2.js → FITORE2C.js} +1 -1
  33. package/dist/cdn/{7QYOWBFU.js → FRYQRMDP.js} +1 -1
  34. package/dist/cdn/{N2RUZDL5.js → FUA7KDU7.js} +1 -1
  35. package/dist/cdn/{J6J3DXQC.js → G27LJ5W2.js} +1 -1
  36. package/dist/cdn/{WY264B2J.js → GRSM3NBO.js} +1 -1
  37. package/dist/cdn/H7EXVEYQ.js +2 -0
  38. package/dist/cdn/HBW4NM4H.js +2 -0
  39. package/dist/cdn/{S5FXOTG4.js → HKW5AON4.js} +1 -1
  40. package/dist/cdn/{IEPVBL2M.js → HTESG4KU.js} +1 -1
  41. package/dist/cdn/{LYZNGXSF.js → IFHTUSGS.js} +1 -1
  42. package/dist/cdn/{XR44W6VF.js → IIAYXAK2.js} +1 -1
  43. package/dist/cdn/{EFXQZRUY.js → ITWL3DEC.js} +1 -1
  44. package/dist/cdn/{OTMPMNL4.js → IV56BISU.js} +1 -1
  45. package/dist/cdn/{RN72ZH7K.js → IYTHLK7D.js} +1 -1
  46. package/dist/cdn/{MUHGSAN5.js → JC3YR2FM.js} +1 -1
  47. package/dist/cdn/JJ7N2BFD.js +2 -0
  48. package/dist/cdn/JVLIBFGJ.js +2 -0
  49. package/dist/cdn/KFYUW7H7.js +2 -0
  50. package/dist/cdn/KHN7AZBU.js +2 -0
  51. package/dist/cdn/LB6JRSLI.js +2 -0
  52. package/dist/cdn/{G63R4TEN.js → LDZK3TBM.js} +1 -1
  53. package/dist/cdn/LQ7U4J5D.js +2 -0
  54. package/dist/cdn/{5U2X7LKH.js → M7SNGANA.js} +1 -1
  55. package/dist/cdn/MNYJ2GYM.js +2 -0
  56. package/dist/cdn/MV6H65JZ.js +2 -0
  57. package/dist/cdn/{S2H4RCXL.js → N4OXGGCA.js} +1 -1
  58. package/dist/cdn/{CV3MN2OB.js → NESORWBG.js} +1 -1
  59. package/dist/cdn/{LJU5JLT7.js → NUGJT3MO.js} +1 -1
  60. package/dist/cdn/NVCMDHE6.js +2 -0
  61. package/dist/cdn/NWBQZSJH.js +2 -0
  62. package/dist/cdn/OED52OID.js +2 -0
  63. package/dist/cdn/QHZQKJJO.js +2 -0
  64. package/dist/cdn/{OOHBEF67.js → QZOROYMP.js} +1 -1
  65. package/dist/cdn/{4SRUJNYL.js → R4B3CB3N.js} +1 -1
  66. package/dist/cdn/{FUOCURYO.js → R6YWDKWN.js} +1 -1
  67. package/dist/cdn/RJZTG6BJ.js +2 -0
  68. package/dist/cdn/S64CBDJB.js +2 -0
  69. package/dist/cdn/{2BAQEPCK.js → SH37YJOP.js} +1 -1
  70. package/dist/cdn/SPJK6GM3.js +2 -0
  71. package/dist/cdn/{R2BGMXLL.js → SR5JGIZ4.js} +1 -1
  72. package/dist/cdn/{NWRE6XI6.js → SRVDVLIK.js} +1 -1
  73. package/dist/cdn/{WG43MAVJ.js → TUERF5XO.js} +1 -1
  74. package/dist/cdn/TVNJKFSE.js +2 -0
  75. package/dist/cdn/{VPVFOEEH.js → U2C7US5M.js} +1 -1
  76. package/dist/cdn/{KGLVHBMW.js → UDCTDYWY.js} +1 -1
  77. package/dist/cdn/UEWINO5H.js +2 -0
  78. package/dist/cdn/{HKGGDNSY.js → URXBOBYP.js} +1 -1
  79. package/dist/cdn/{YCXOS27R.js → VFNM4LQT.js} +1 -1
  80. package/dist/cdn/VS6WXU6Z.js +2 -0
  81. package/dist/cdn/{UBI26YGI.js → VWTWH44G.js} +1 -1
  82. package/dist/cdn/{4ASFVM5K.js → WD7BCM2T.js} +1 -1
  83. package/dist/cdn/{RS6N2KGI.js → WQHYVWTM.js} +1 -1
  84. package/dist/cdn/X24IXIYO.js +2 -0
  85. package/dist/cdn/{PQZYONXN.js → X3YHAZMZ.js} +1 -1
  86. package/dist/cdn/{XHVWL7MY.js → XPQKK4JT.js} +1 -1
  87. package/dist/cdn/YBXJYVTG.js +2 -0
  88. package/dist/cdn/{TCGJR6OG.js → YCE3GAGK.js} +1 -1
  89. package/dist/cdn/{FX754GOP.js → YFNVAJP6.js} +1 -1
  90. package/dist/cdn/{6OUQ7ORF.js → YVCUDFXA.js} +1 -1
  91. package/dist/cdn/ZISQPBKD.js +2 -0
  92. package/dist/cdn/assets/charts-config-line-style/t9n/messages.en.json +1 -1
  93. package/dist/cdn/index.js +1 -1
  94. package/dist/chart-rendering/common/interfaces.d.ts +23 -7
  95. package/dist/chunks/index.js +875 -875
  96. package/dist/chunks/serial-chart-data.js +25 -25
  97. package/dist/components/arcgis-chart/customElement.d.ts +76 -24
  98. package/dist/components/arcgis-chart/customElement.js +893 -891
  99. package/dist/components/arcgis-charts-config-axes/customElement.js +6 -6
  100. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  101. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  102. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  103. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  104. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  105. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  106. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  107. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +13 -13
  108. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  109. package/dist/components/arcgis-charts-config-color-style/customElement.js +2 -2
  110. package/dist/components/arcgis-charts-config-create-flow/customElement.js +58 -58
  111. package/dist/components/arcgis-charts-config-font-style/customElement.js +8 -8
  112. package/dist/components/arcgis-charts-config-format-popover/customElement.js +4 -4
  113. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  114. package/dist/components/arcgis-charts-config-guides/customElement.js +4 -4
  115. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +12 -12
  116. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  117. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  118. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  119. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  120. package/dist/components/arcgis-charts-config-line-chart/customElement.js +17 -17
  121. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  122. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  123. package/dist/components/arcgis-charts-config-line-style/customElement.js +15 -15
  124. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -5
  125. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  126. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  127. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  128. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +2 -2
  129. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  130. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +6 -6
  131. package/dist/docs/api.json +1 -1
  132. package/dist/docs/docs.json +1 -1
  133. package/dist/docs/vscode.html-custom-data.json +1 -1
  134. package/dist/docs/web-types.json +1 -1
  135. package/dist/loader.js +2 -2
  136. package/dist/types/lumina.d.ts +1 -2
  137. package/dist/types/preact.d.ts +1 -2
  138. package/dist/types/react.d.ts +1 -2
  139. package/dist/types/stencil.d.ts +1 -2
  140. package/package.json +4 -4
  141. package/dist/cdn/2ADFKCPA.js +0 -2
  142. package/dist/cdn/5GD3PE32.js +0 -2
  143. package/dist/cdn/6AUW6C3P.js +0 -2
  144. package/dist/cdn/7CVRX5TJ.js +0 -2
  145. package/dist/cdn/7ZK3YGN6.js +0 -2
  146. package/dist/cdn/AVUM7BWA.js +0 -2
  147. package/dist/cdn/BO7RCJZB.js +0 -2
  148. package/dist/cdn/D5EMJRBB.js +0 -2
  149. package/dist/cdn/DS42P2EG.js +0 -2
  150. package/dist/cdn/EE7MSNVY.js +0 -2
  151. package/dist/cdn/EQ3IZDDQ.js +0 -2
  152. package/dist/cdn/FK52K255.js +0 -2
  153. package/dist/cdn/FUFEC4JX.js +0 -2
  154. package/dist/cdn/HJRYXAVR.js +0 -2
  155. package/dist/cdn/IY7457CX.js +0 -2
  156. package/dist/cdn/K4DKNVD7.js +0 -2
  157. package/dist/cdn/K76KZ3TY.js +0 -2
  158. package/dist/cdn/KZOJBRI6.js +0 -2
  159. package/dist/cdn/L4Y3GEOG.js +0 -2
  160. package/dist/cdn/PMFA3GVU.js +0 -2
  161. package/dist/cdn/PWCAXPNP.js +0 -2
  162. package/dist/cdn/QOJZM6EZ.js +0 -2
  163. package/dist/cdn/RCAB2G52.js +0 -2
  164. package/dist/cdn/SZKVED6M.js +0 -2
  165. package/dist/cdn/TKTNTVES.js +0 -2
  166. package/dist/cdn/UMXNCRW5.js +0 -2
  167. package/dist/cdn/UWIRHZ3N.js +0 -2
  168. package/dist/cdn/V7CMOKQQ.js +0 -2
  169. package/dist/cdn/XBBP6DN4.js +0 -2
  170. package/dist/cdn/YGCLG2LA.js +0 -2
  171. package/dist/cdn/YWFHR2KJ.js +0 -2
  172. package/dist/cdn/ZKVDUGFR.js +0 -2
@@ -2,7 +2,7 @@
2
2
  import { computeStatisticsHistograms as ea, fetchPixelFeatureSet as ta, computeRasterAttributeTable as ia } from "@arcgis/core/applications/Components/imageryUtils.js";
3
3
  import gr from "@arcgis/core/geometry/Extent.js";
4
4
  import "@arcgis/toolkit/type";
5
- import { u as y, r as I, t as re, p as ne, n as ve, k as li, m as Ce, s as $, q as Ie, a as di, S as ra, g as ee, l as na, w as q, j as aa, d as Te, v as dt, G as sa } from "./series-types.js";
5
+ import { u as y, r as I, t as re, p as ne, n as ve, k as li, m as Ce, s as $, q as Ie, a as $i, S as ra, g as ee, l as na, w as q, j as aa, d as Te, v as dt, G as sa } from "./series-types.js";
6
6
  import { g as pt, i as X, d as K, f as He, h as Ve, k as te, e as fe, j as xt, R as H } from "./rest-js-object-literals.js";
7
7
  import * as br from "@arcgis/core/geometry/support/jsonUtils.js";
8
8
  import oa from "@arcgis/core/rest/support/AttributeBinsQuery.js";
@@ -21,7 +21,7 @@ import { isEmpty as Cr, isEqual as Re, memoize as qi, cloneDeep as wt, sortBy as
21
21
  import { fetchT9nStringsBundle as $e, getElementLocale as Ae, supportedLocales as Fr } from "@arcgis/toolkit/intl";
22
22
  import { DateTime as xe } from "luxon";
23
23
  import ma from "@arcgis/core/Graphic.js";
24
- import * as vi from "@arcgis/core/symbols/support/symbolUtils.js";
24
+ import * as xi from "@arcgis/core/symbols/support/symbolUtils.js";
25
25
  import ga from "@esri/arcgis-html-sanitizer";
26
26
  import Ki from "@arcgis/core/layers/support/FeatureFilter.js";
27
27
  import ba from "@arcgis/core/smartMapping/statistics/histogram.js";
@@ -149,7 +149,7 @@ const Va = {
149
149
  }, rt = {
150
150
  Reject: "reject",
151
151
  RenderUpToTheLimit: "renderUpToTheLimit"
152
- }, z = {
152
+ }, j = {
153
153
  AxisLabels: "axisLabels",
154
154
  GuideLabel: "guideLabel",
155
155
  AxisTitle: "axisTitle",
@@ -165,7 +165,7 @@ const Va = {
165
165
  maxRecords: 2e3,
166
166
  orderByJSAPIDelimiter: " ",
167
167
  outStatistics: {
168
- statisticType: di.statisticType,
168
+ statisticType: $i.statisticType,
169
169
  onStatisticField: "OBJECTID",
170
170
  outStatisticFieldName: "arcgis_charts_outStatisticFieldName_default_key"
171
171
  },
@@ -178,7 +178,7 @@ const Va = {
178
178
  undefinedSliceId: "arcgis-charts-slice-id-undefined",
179
179
  nullSliceId: "arcgis-charts-slice-id-null",
180
180
  emptySliceId: "arcgis-charts-slice-id-empty"
181
- }, Nt = "arcgis_charts_box_plot_category", j = {
181
+ }, Nt = "arcgis_charts_box_plot_category", V = {
182
182
  valueField: "arcgis_charts_heat_chart_value",
183
183
  xField: "arcgis_charts_heat_chart_x",
184
184
  yField: "arcgis_charts_heat_chart_y"
@@ -252,7 +252,7 @@ function Bp() {
252
252
  }
253
253
  };
254
254
  }
255
- function ci(t = 1) {
255
+ function di(t = 1) {
256
256
  return [
257
257
  Math.floor(Math.random() * 256),
258
258
  Math.floor(Math.random() * 256),
@@ -266,19 +266,19 @@ function Y(t) {
266
266
  size: 10
267
267
  };
268
268
  switch (t) {
269
- case z.ChartTitle:
269
+ case j.ChartTitle:
270
270
  e.size = 18;
271
271
  break;
272
- case z.AxisTitle:
272
+ case j.AxisTitle:
273
273
  e.size = 14;
274
274
  break;
275
- case z.LegendText:
275
+ case j.LegendText:
276
276
  e.size = 12;
277
277
  break;
278
- case z.LegendTitle:
278
+ case j.LegendTitle:
279
279
  e.size = 13;
280
280
  break;
281
- case z.DescriptionText:
281
+ case j.DescriptionText:
282
282
  e.size = 11;
283
283
  break;
284
284
  }
@@ -286,7 +286,7 @@ function Y(t) {
286
286
  }
287
287
  function Br(t = "", e = Y(), i) {
288
288
  let r = K.Center;
289
- return (i === z.DataLabels || i === z.GuideLabel) && (r = void 0), {
289
+ return (i === j.DataLabels || i === j.GuideLabel) && (r = void 0), {
290
290
  type: X.TS,
291
291
  color: Ar(),
292
292
  text: t,
@@ -294,7 +294,7 @@ function Br(t = "", e = Y(), i) {
294
294
  horizontalAlignment: r
295
295
  };
296
296
  }
297
- function G(t) {
297
+ function _(t) {
298
298
  const { text: e, visible: i, font: r, type: n } = t ?? {
299
299
  text: "",
300
300
  visible: !0,
@@ -309,7 +309,7 @@ function G(t) {
309
309
  function Wt(t) {
310
310
  const e = t?.useRandomColor ?? !1, i = t?.useRampColor, r = t?.width ?? 1, n = t?.isHistogramOverlay;
311
311
  let a = t?.color ?? Ar(1);
312
- return e ? a = ci() : i !== void 0 && (n === !0 ? a = Be({
312
+ return e ? a = di() : i !== void 0 && (n === !0 ? a = Be({
313
313
  colorIndex: i.colorIndex,
314
314
  histogramOverlays: n
315
315
  }) : a = Be({ colorIndex: i.colorIndex })), t?.opacity !== void 0 && (a[3] = t.opacity), {
@@ -331,7 +331,7 @@ function Lp() {
331
331
  intlOptions: {}
332
332
  };
333
333
  }
334
- function Ti() {
334
+ function wi() {
335
335
  return {
336
336
  type: y.NumberAxisFormat,
337
337
  intlOptions: {
@@ -363,16 +363,16 @@ function Np() {
363
363
  };
364
364
  }
365
365
  function Xt(t = "Category Axis") {
366
- const e = G({
366
+ const e = _({
367
367
  text: t,
368
368
  visible: !0,
369
- font: Y(z.AxisTitle)
369
+ font: Y(j.AxisTitle)
370
370
  });
371
371
  e.content.horizontalAlignment = K.Center, e.content.verticalAlignment = te.Middle;
372
- const i = G({
372
+ const i = _({
373
373
  text: t,
374
374
  visible: !0,
375
- font: Y(z.AxisLabels)
375
+ font: Y(j.AxisLabels)
376
376
  });
377
377
  return {
378
378
  type: y.Axis,
@@ -384,21 +384,21 @@ function Xt(t = "Category Axis") {
384
384
  };
385
385
  }
386
386
  function Zt(t = "Value Axis") {
387
- const e = G({
387
+ const e = _({
388
388
  text: t,
389
389
  visible: !0,
390
- font: Y(z.AxisTitle)
391
- }), i = G({
390
+ font: Y(j.AxisTitle)
391
+ }), i = _({
392
392
  text: t,
393
393
  visible: !0,
394
- font: Y(z.AxisLabels)
394
+ font: Y(j.AxisLabels)
395
395
  });
396
396
  return e.content.verticalAlignment = te.Middle, e.content.horizontalAlignment = K.Center, {
397
397
  type: y.Axis,
398
398
  visible: !0,
399
399
  title: e,
400
400
  labels: i,
401
- valueFormat: Ti(),
401
+ valueFormat: wi(),
402
402
  lineSymbol: Wt({ color: Ir })
403
403
  };
404
404
  }
@@ -406,12 +406,12 @@ function nt() {
406
406
  return {
407
407
  type: y.Legend,
408
408
  visible: !0,
409
- title: G({
409
+ title: _({
410
410
  text: "",
411
411
  visible: !0,
412
- font: Y(z.LegendTitle)
412
+ font: Y(j.LegendTitle)
413
413
  }),
414
- body: Br("", Y(z.LegendText)),
414
+ body: Br("", Y(j.LegendText)),
415
415
  position: li.Right
416
416
  };
417
417
  }
@@ -439,7 +439,7 @@ function Op(t, e = !1) {
439
439
  return {
440
440
  type: X.SFS,
441
441
  style: He.Solid,
442
- color: e ? ci(ge) : Be({
442
+ color: e ? di(ge) : Be({
443
443
  colorIndex: t ?? 0,
444
444
  opacity: ge
445
445
  })
@@ -471,7 +471,7 @@ function Ja(t = !1) {
471
471
  return {
472
472
  type: X.SMS,
473
473
  style: Ve.Circle,
474
- color: t ? ci(ge) : Be({ colorIndex: 0, opacity: ge }),
474
+ color: t ? di(ge) : Be({ colorIndex: 0, opacity: ge }),
475
475
  size: 7
476
476
  };
477
477
  }
@@ -494,7 +494,7 @@ function Ka(t = !1) {
494
494
  symbol: {
495
495
  type: X.SLS,
496
496
  style: pt.Solid,
497
- color: t ? ci() : Be({ colorIndex: 1 }),
497
+ color: t ? di() : Be({ colorIndex: 1 }),
498
498
  width: 2
499
499
  }
500
500
  }
@@ -508,10 +508,10 @@ function Xa(t, e) {
508
508
  name: i,
509
509
  y: "",
510
510
  x: "",
511
- dataLabels: G({
511
+ dataLabels: _({
512
512
  text: "",
513
513
  visible: !1,
514
- font: Y(z.DataLabels)
514
+ font: Y(j.DataLabels)
515
515
  }),
516
516
  query: {
517
517
  outStatistics: [
@@ -542,10 +542,10 @@ function Za() {
542
542
  y: "",
543
543
  markerSymbol: Ja(),
544
544
  overlays: Ka(),
545
- dataLabels: G({
545
+ dataLabels: _({
546
546
  text: "",
547
547
  visible: !1,
548
- font: Y(z.DataLabels)
548
+ font: Y(j.DataLabels)
549
549
  })
550
550
  };
551
551
  }
@@ -611,10 +611,10 @@ function is(t) {
611
611
  y: r,
612
612
  lineSymbol: Ya(t.seriesIndex),
613
613
  markerSymbol: Qa(t.seriesIndex),
614
- dataLabels: G({
614
+ dataLabels: _({
615
615
  text: "",
616
616
  visible: !1,
617
- font: Y(z.DataLabels)
617
+ font: Y(j.DataLabels)
618
618
  }),
619
619
  temporalBinning: {
620
620
  unit: $.Day,
@@ -657,11 +657,11 @@ function Rp(t) {
657
657
  x: "",
658
658
  y: r,
659
659
  fillSymbol: rs(t.seriesIndex),
660
- dataLabels: G({
660
+ dataLabels: _({
661
661
  text: "",
662
662
  visible: !1,
663
- font: Y(z.DataLabels),
664
- type: z.DataLabels
663
+ font: Y(j.DataLabels),
664
+ type: j.DataLabels
665
665
  })
666
666
  };
667
667
  }
@@ -719,11 +719,11 @@ function qp(t, e) {
719
719
  x: "",
720
720
  y: i,
721
721
  fillSymbol: as(),
722
- dataLabels: G({
722
+ dataLabels: _({
723
723
  text: "",
724
724
  visible: !1,
725
- font: Y(z.DataLabels),
726
- type: z.DataLabels
725
+ font: Y(j.DataLabels),
726
+ type: j.DataLabels
727
727
  }),
728
728
  startAngle: -90,
729
729
  endAngle: 270,
@@ -732,14 +732,14 @@ function qp(t, e) {
732
732
  displayNumericValueOnDataLabel: !1,
733
733
  displayPercentageOnDataLabel: !0,
734
734
  numericValueFormat: {
735
- ...Ti(),
735
+ ...wi(),
736
736
  intlOptions: {
737
737
  minimumFractionDigits: 1,
738
738
  maximumFractionDigits: 1
739
739
  }
740
740
  },
741
741
  percentValueFormat: {
742
- ...Ti(),
742
+ ...wi(),
743
743
  intlOptions: {
744
744
  minimumFractionDigits: 1,
745
745
  maximumFractionDigits: 1
@@ -782,16 +782,16 @@ function kp(t, e = We()) {
782
782
  orderBy: ne.Ascending
783
783
  }
784
784
  },
785
- title: G({
785
+ title: _({
786
786
  text: Je(t),
787
787
  visible: !0,
788
- font: Y(z.ChartTitle)
788
+ font: Y(j.ChartTitle)
789
789
  }),
790
- subtitle: G(),
791
- footer: G({
790
+ subtitle: _(),
791
+ footer: _({
792
792
  text: "",
793
793
  visible: !0,
794
- font: Y(z.DescriptionText)
794
+ font: Y(j.DescriptionText)
795
795
  }),
796
796
  background: at(),
797
797
  axes: ft(t, y.BarSeries),
@@ -812,16 +812,16 @@ function Wp(t, e = We()) {
812
812
  orderBy: ne.Ascending
813
813
  }
814
814
  },
815
- title: G({
815
+ title: _({
816
816
  text: Je(t),
817
817
  visible: !0,
818
- font: Y(z.ChartTitle)
818
+ font: Y(j.ChartTitle)
819
819
  }),
820
- subtitle: G(),
821
- footer: G({
820
+ subtitle: _(),
821
+ footer: _({
822
822
  text: "",
823
823
  visible: !0,
824
- font: Y(z.DescriptionText)
824
+ font: Y(j.DescriptionText)
825
825
  }),
826
826
  background: at(),
827
827
  series: [],
@@ -844,16 +844,16 @@ function Vp(t, e = We()) {
844
844
  orderBy: ne.Ascending
845
845
  }
846
846
  },
847
- title: G({
847
+ title: _({
848
848
  text: Je(t),
849
849
  visible: !0,
850
- font: Y(z.ChartTitle)
850
+ font: Y(j.ChartTitle)
851
851
  }),
852
- subtitle: G(),
853
- footer: G({
852
+ subtitle: _(),
853
+ footer: _({
854
854
  text: "",
855
855
  visible: !0,
856
- font: Y(z.DescriptionText)
856
+ font: Y(j.DescriptionText)
857
857
  }),
858
858
  background: at(),
859
859
  axes: ft(t, y.LineSeries),
@@ -873,16 +873,16 @@ function jp(t, e = We()) {
873
873
  orderBy: ne.Ascending
874
874
  }
875
875
  },
876
- title: G({
876
+ title: _({
877
877
  text: Je(t),
878
878
  visible: !0,
879
- font: Y(z.ChartTitle)
879
+ font: Y(j.ChartTitle)
880
880
  }),
881
- subtitle: G(),
882
- footer: G({
881
+ subtitle: _(),
882
+ footer: _({
883
883
  text: "",
884
884
  visible: !0,
885
- font: Y(z.DescriptionText)
885
+ font: Y(j.DescriptionText)
886
886
  }),
887
887
  background: at(),
888
888
  axes: ft(t, y.RadarSeries),
@@ -902,16 +902,16 @@ function zp(t, e = We()) {
902
902
  orderBy: ne.Descending
903
903
  }
904
904
  },
905
- title: G({
905
+ title: _({
906
906
  text: Je(t),
907
907
  visible: !0,
908
- font: Y(z.ChartTitle)
908
+ font: Y(j.ChartTitle)
909
909
  }),
910
- subtitle: G(),
911
- footer: G({
910
+ subtitle: _(),
911
+ footer: _({
912
912
  text: "",
913
913
  visible: !0,
914
- font: Y(z.DescriptionText)
914
+ font: Y(j.DescriptionText)
915
915
  }),
916
916
  background: at(),
917
917
  series: [],
@@ -928,10 +928,10 @@ function _p(t, e = We()) {
928
928
  type: y.Chart,
929
929
  id: e,
930
930
  colorMatch: !0,
931
- title: G({
931
+ title: _({
932
932
  text: Je(t),
933
933
  visible: !0,
934
- font: Y(z.ChartTitle)
934
+ font: Y(j.ChartTitle)
935
935
  }),
936
936
  series: [],
937
937
  axes: ts(t)
@@ -943,16 +943,16 @@ function Gp(t, e = We()) {
943
943
  type: y.Chart,
944
944
  id: e,
945
945
  colorMatch: !0,
946
- title: G({
946
+ title: _({
947
947
  text: Je(t),
948
948
  visible: !0,
949
- font: Y(z.ChartTitle)
949
+ font: Y(j.ChartTitle)
950
950
  }),
951
- subtitle: G(),
952
- footer: G({
951
+ subtitle: _(),
952
+ footer: _({
953
953
  text: "",
954
954
  visible: !0,
955
- font: Y(z.DescriptionText)
955
+ font: Y(j.DescriptionText)
956
956
  }),
957
957
  background: at(),
958
958
  axes: ft(t, y.ScatterSeries),
@@ -965,10 +965,10 @@ function Up(t, e) {
965
965
  version: Ye,
966
966
  type: y.Chart,
967
967
  id: We(),
968
- title: G({
968
+ title: _({
969
969
  text: Je(t),
970
970
  visible: !0,
971
- font: Y(z.ChartTitle)
971
+ font: Y(j.ChartTitle)
972
972
  }),
973
973
  background: at(),
974
974
  axes: ft(t, y.HeatSeries),
@@ -1006,10 +1006,10 @@ function ls() {
1006
1006
  overlays: ss(),
1007
1007
  dataTransformationType: ee.None,
1008
1008
  fillSymbol: os(),
1009
- dataLabels: G({
1009
+ dataLabels: _({
1010
1010
  text: "",
1011
1011
  visible: !1,
1012
- font: Y(z.DataLabels)
1012
+ font: Y(j.DataLabels)
1013
1013
  })
1014
1014
  };
1015
1015
  }
@@ -1019,16 +1019,16 @@ function Hp(t, e = We()) {
1019
1019
  type: y.Chart,
1020
1020
  id: e,
1021
1021
  colorMatch: !0,
1022
- title: G({
1022
+ title: _({
1023
1023
  text: Je(t),
1024
1024
  visible: !0,
1025
- font: Y(z.ChartTitle)
1025
+ font: Y(j.ChartTitle)
1026
1026
  }),
1027
- subtitle: G(),
1028
- footer: G({
1027
+ subtitle: _(),
1028
+ footer: _({
1029
1029
  text: "",
1030
1030
  visible: !0,
1031
- font: Y(z.DescriptionText)
1031
+ font: Y(j.DescriptionText)
1032
1032
  }),
1033
1033
  background: at(),
1034
1034
  axes: ft(t, y.HistogramSeries),
@@ -1101,7 +1101,7 @@ function yt(t) {
1101
1101
  e[r] = t[r] ?? Qt[r];
1102
1102
  }), e;
1103
1103
  }
1104
- function pi() {
1104
+ function ci() {
1105
1105
  return {
1106
1106
  /* Specifies the size of the queries on an aggregated scatterplot, counting the number of cells per query.
1107
1107
  A bigger number implies fewer but slower queries. A smaller number implies more but faster queries.
@@ -1643,7 +1643,9 @@ const cs = 0, ps = "_arcgis_charts_outliers", us = "_arcgis_charts_z_score", Kp
1643
1643
  lastTemporalBin: "is_arcgis_charts_last_bin",
1644
1644
  options: {
1645
1645
  hideEmptySeries: !0,
1646
+ showEmptySeries: !1,
1646
1647
  replaceNoValueCategoryWithZero: !0,
1648
+ hideZeroCountCategories: !1,
1647
1649
  autoInverseDataLabelTextColor: !1
1648
1650
  },
1649
1651
  nullCategory: {
@@ -1890,11 +1892,11 @@ function gs(t) {
1890
1892
  const { arrayToSort: e, orderBy: i, sortingField: r, fieldList: n, isByFieldsChart: a, preferLabel: s } = t;
1891
1893
  e !== void 0 && e.length > 1 && !ae(r) && i !== void 0 && i.length > 0 && e.sort((o, d) => {
1892
1894
  let l = o[r];
1893
- s && a && typeof l == "string" && (l = Li(n, l));
1895
+ s && a && typeof l == "string" && (l = Bi(n, l));
1894
1896
  let c = i.indexOf(l?.toString() ?? "");
1895
1897
  c === -1 && (c = i.length);
1896
1898
  let p = d[r];
1897
- s && a && typeof p == "string" && (p = Li(n, p));
1899
+ s && a && typeof p == "string" && (p = Bi(n, p));
1898
1900
  let u = i.indexOf(p?.toString() ?? "");
1899
1901
  return u === -1 && (u = i.length), c - u;
1900
1902
  });
@@ -1962,7 +1964,7 @@ function ri(t) {
1962
1964
  Object.entries(e).forEach(([o]) => {
1963
1965
  if (o !== "" && o !== _e && o in e) {
1964
1966
  const d = {
1965
- [i]: Li(n, o),
1967
+ [i]: Bi(n, o),
1966
1968
  [r]: e[o],
1967
1969
  [C.xAxisField]: o,
1968
1970
  [C.originalCategoryValue]: o
@@ -2007,29 +2009,29 @@ function Dr(t, e) {
2007
2009
  maxLineThreePlusSeriesCountTotal: h,
2008
2010
  maxPieChartSliceCountTotal: m,
2009
2011
  maxGaugeByFeaturesLimit: b
2010
- } = yt(e), x = q(t.series), S = t.series.length === 0 ? 1 : t.series.length, v = E(t.series);
2011
- switch (x) {
2012
+ } = yt(e), S = q(t.series), x = t.series.length === 0 ? 1 : t.series.length, v = E(t.series);
2013
+ switch (S) {
2012
2014
  case y.ComboLineAndBarSeries:
2013
2015
  case y.BarSeries:
2014
- S <= r && (S === 1 ? i = n : S === 2 ? i = Yt({
2016
+ x <= r && (x === 1 ? i = n : x === 2 ? i = Yt({
2015
2017
  countTotal: s,
2016
2018
  countPerSeries: a,
2017
- numberOfSeries: S
2018
- }) : S > 2 && (i = Yt({
2019
+ numberOfSeries: x
2020
+ }) : x > 2 && (i = Yt({
2019
2021
  countTotal: d,
2020
2022
  countPerSeries: o,
2021
- numberOfSeries: S
2023
+ numberOfSeries: x
2022
2024
  })));
2023
2025
  break;
2024
2026
  case y.LineSeries:
2025
- S <= l && (S === 1 ? i = c : S === 2 ? i = Yt({
2027
+ x <= l && (x === 1 ? i = c : x === 2 ? i = Yt({
2026
2028
  countTotal: u,
2027
2029
  countPerSeries: p,
2028
- numberOfSeries: S
2029
- }) : S > 2 && (i = Yt({
2030
+ numberOfSeries: x
2031
+ }) : x > 2 && (i = Yt({
2030
2032
  countTotal: h,
2031
2033
  countPerSeries: f,
2032
- numberOfSeries: S
2034
+ numberOfSeries: x
2033
2035
  })));
2034
2036
  break;
2035
2037
  case y.PieSeries:
@@ -2044,7 +2046,7 @@ function Dr(t, e) {
2044
2046
  // handled through the number of bins
2045
2047
  case y.BoxPlotSeries:
2046
2048
  }
2047
- return (v === g.BarAndLineNoAggregation || v === g.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / S)), i;
2049
+ return (v === g.BarAndLineNoAggregation || v === g.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / x)), i;
2048
2050
  }
2049
2051
  function er(t, e) {
2050
2052
  let i = t;
@@ -2134,7 +2136,7 @@ function yu(t) {
2134
2136
  const { series: n } = e, a = q(n), s = E(n), o = Ke(e), d = st({
2135
2137
  seriesConfig: o,
2136
2138
  queryObject: i
2137
- }), c = W(i)?.renderer;
2139
+ }), c = k(i)?.renderer;
2138
2140
  switch (c?.type) {
2139
2141
  case fe.Simple:
2140
2142
  r = a === y.HistogramSeries || a === y.ScatterSeries || s === g.BarAndLineMonoField || s === g.BoxPlotMonoField || s === g.BoxPlotMultiFields || s === g.BoxPlotMonoFieldAndCategory || s === g.BarAndLineNoAggregation && n.length === 1 && !d;
@@ -2198,15 +2200,15 @@ function Os(t) {
2198
2200
  const { color: f, label: h } = p;
2199
2201
  let m;
2200
2202
  Array.isArray(f) && f?.length === 4 ? m = f : f && "toRgba" in f && (m = f.toRgba());
2201
- let b = !1, x = !0;
2203
+ let b = !1, S = !0;
2202
2204
  switch (d) {
2203
2205
  case y.BarSeries:
2204
2206
  case y.LineSeries:
2205
2207
  case y.ComboLineAndBarSeries:
2206
2208
  case y.RadarSeries:
2207
2209
  if (r !== g.BarAndLineFromFields) {
2208
- const S = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === u);
2209
- S !== void 0 && "y" in S ? u = [S.y].flat()[0] : u = "";
2210
+ const x = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === u);
2211
+ x !== void 0 && "y" in x ? u = [x.y].flat()[0] : u = "";
2210
2212
  }
2211
2213
  b = r !== g.BarAndLineFromFields || u === n[C.originalCategoryValue];
2212
2214
  break;
@@ -2214,13 +2216,13 @@ function Os(t) {
2214
2216
  b = r === g.PieFromFields && u === n[C.originalCategoryValue];
2215
2217
  break;
2216
2218
  case y.BoxPlotSeries:
2217
- r === g.BoxPlotMonoField || r === g.BoxPlotMonoFieldAndCategory ? b = u === i[0].y : u && (r === g.BoxPlotMultiFields || r === g.BoxPlotMultiFieldsAndCategory) && (b = i.map((v) => v.y).flat().includes(u)), x = !1;
2219
+ r === g.BoxPlotMonoField || r === g.BoxPlotMonoFieldAndCategory ? b = u === i[0].y : u && (r === g.BoxPlotMultiFields || r === g.BoxPlotMultiFieldsAndCategory) && (b = i.map((v) => v.y).flat().includes(u)), S = !1;
2218
2220
  break;
2219
2221
  }
2220
2222
  b && m && (s = {
2221
2223
  type: X.SMS,
2222
2224
  color: m,
2223
- label: x && h ? h : void 0
2225
+ label: S && h ? h : void 0
2224
2226
  }, l != null && (s.outline = l), Nr({
2225
2227
  dataItem: n,
2226
2228
  symbolField: r === g.BarAndLineFromFields || r === g.PieFromFields ? C.rendererSymbolField : `${C.rendererSymbolField}_${u}`,
@@ -2270,9 +2272,9 @@ function Ms(t) {
2270
2272
  const { chartRenderer: e, queryObject: i } = t, r = e !== void 0 ? {
2271
2273
  // TODO: find a better way to copy the layer. For now it's all right as the information we need are not lost with the spread operator
2272
2274
  // eslint-disable-next-line @typescript-eslint/no-misused-spread
2273
- ...W(i),
2275
+ ...k(i),
2274
2276
  renderer: xr.fromJSON(e)
2275
- } : W(i);
2277
+ } : k(i);
2276
2278
  return new ma({
2277
2279
  layer: r
2278
2280
  });
@@ -2309,7 +2311,7 @@ async function Rs(t) {
2309
2311
  chartSubType: s,
2310
2312
  rendererType: n,
2311
2313
  dataItem: i
2312
- }), x = be({
2314
+ }), S = be({
2313
2315
  where: m.query?.where,
2314
2316
  normalize: !0,
2315
2317
  keepSurroundingQuotes: !1,
@@ -2317,11 +2319,11 @@ async function Rs(t) {
2317
2319
  });
2318
2320
  h.set(b, {
2319
2321
  ...i,
2320
- [o]: x
2322
+ [o]: S
2321
2323
  });
2322
2324
  }
2323
2325
  }) : e[0].type === y.HeatSeries && n === fe.ClassBreaks ? h.set(C.rendererSymbolField, {
2324
- [j.valueField]: i[j.valueField]
2326
+ [V.valueField]: i[V.valueField]
2325
2327
  }) : h.set(
2326
2328
  q(e) === y.HistogramSeries ? C.rendererSymbolFieldForHistogram : C.rendererSymbolField,
2327
2329
  {
@@ -2332,26 +2334,26 @@ async function Rs(t) {
2332
2334
  try {
2333
2335
  const m = Array.from(h.entries()), b = d.clone();
2334
2336
  b.layer = d.layer;
2335
- const x = r?.uniqueValueInfos;
2336
- for (let S = 0; S < m.length; S += 1) {
2337
- const [v, F] = m[S];
2337
+ const S = r?.uniqueValueInfos;
2338
+ for (let x = 0; x < m.length; x += 1) {
2339
+ const [v, F] = m[x];
2338
2340
  if (tr({
2339
2341
  mode: "encode",
2340
2342
  x: f,
2341
2343
  splitByField: o,
2342
2344
  attributes: F
2343
- }), l && l.length > 0 && Object.keys(F).forEach((T) => {
2344
- l.includes(T) || delete F[T];
2345
+ }), l && l.length > 0 && Object.keys(F).forEach((w) => {
2346
+ l.includes(w) || delete F[w];
2345
2347
  }), b.attributes = F, c?.has(JSON.stringify(F)))
2346
2348
  p = c.get(JSON.stringify(F));
2347
2349
  else {
2348
- if (p = (await vi.getDisplayedSymbol(b))?.toJSON(), p != null) {
2350
+ if (p = (await xi.getDisplayedSymbol(b))?.toJSON(), p != null) {
2349
2351
  if (p.color === void 0) {
2350
- const A = (await vi.getDisplayedColor(b))?.toJSON();
2352
+ const A = (await xi.getDisplayedColor(b))?.toJSON();
2351
2353
  A && (p.color = A.length === 4 ? A : [...A, 255]);
2352
2354
  }
2353
- const T = await vi.getLegendLabel(b);
2354
- T != null && T !== "" && (p.label = T, p.uniqueValue = x?.find((A) => A.label === T)?.value ?? void 0);
2355
+ const w = await xi.getLegendLabel(b);
2356
+ w != null && w !== "" && (p.label = w, p.uniqueValue = S?.find((A) => A.label === w)?.value ?? void 0);
2355
2357
  }
2356
2358
  c?.set(JSON.stringify(F), p);
2357
2359
  }
@@ -2455,13 +2457,13 @@ function gu(t, e) {
2455
2457
  const r = q(t?.series), n = q(e?.series);
2456
2458
  return r && r !== n && (i = r === y.ComboLineAndBarSeries && (n === y.BarSeries || n === y.LineSeries) || n === y.ComboLineAndBarSeries && (r === y.BarSeries || r === y.LineSeries) || r === y.BarSeries && n === y.LineSeries || r === y.LineSeries && n === y.BarSeries), i;
2457
2459
  }
2458
- function Ii(t, e) {
2460
+ function Ti(t, e) {
2459
2461
  return t !== void 0 && e !== void 0 && e > 0;
2460
2462
  }
2461
2463
  function bu(t) {
2462
2464
  const { chartConfig: e, queryObject: i, chartData: r } = t;
2463
2465
  let n = [];
2464
- const a = E(e.series), s = Pr(e), o = W(i), d = e.chartRenderer ?? o?.renderer?.toJSON();
2466
+ const a = E(e.series), s = Pr(e), o = k(i), d = e.chartRenderer ?? o?.renderer?.toJSON();
2465
2467
  return n = e.series.map((l, c) => {
2466
2468
  const p = q([l]);
2467
2469
  let u;
@@ -2474,7 +2476,7 @@ function bu(t) {
2474
2476
  })?.color : u === void 0 && (u = Be({ colorIndex: c }))), u;
2475
2477
  }).filter((l) => l !== void 0), n;
2476
2478
  }
2477
- function Ai(t) {
2479
+ function Ii(t) {
2478
2480
  return t !== g.PieNoAggregation && t !== g.BarAndLineNoAggregation && t !== g.BarAndLineSplitByNoAggregation;
2479
2481
  }
2480
2482
  function Vs(t) {
@@ -2490,7 +2492,7 @@ function js(t) {
2490
2492
  function Su() {
2491
2493
  return `{name} {${C.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
2492
2494
  }
2493
- const P = {
2495
+ const O = {
2494
2496
  Min: "min",
2495
2497
  FirstQuartile: "first_quartile",
2496
2498
  Median: "median",
@@ -2595,7 +2597,7 @@ function _s(t) {
2595
2597
  }
2596
2598
  return e;
2597
2599
  }
2598
- function Bi(t) {
2600
+ function Ai(t) {
2599
2601
  let e = t, i = "";
2600
2602
  t.startsWith("'") && t.endsWith("'") && (e = t.slice(1, -1), i = "'"), e = e.replace(/'/gu, "''");
2601
2603
  let r = "";
@@ -2625,31 +2627,31 @@ function Ge(t) {
2625
2627
  maxLineUniqueSeriesCountTotal: h,
2626
2628
  maxLineTwoSeriesCountPerSeries: m,
2627
2629
  maxLineTwoSeriesCountTotal: b,
2628
- maxLineThreePlusSeriesCountPerSeries: x,
2629
- maxLineThreePlusSeriesCountTotal: S,
2630
+ maxLineThreePlusSeriesCountPerSeries: S,
2631
+ maxLineThreePlusSeriesCountTotal: x,
2630
2632
  maxPieChartSliceCountTotal: v,
2631
2633
  maxGaugeByFeaturesLimit: F,
2632
- maxBoxPlotSeriesCount: w,
2633
- maxBoxUniqueSeriesCountTotal: T,
2634
+ maxBoxPlotSeriesCount: T,
2635
+ maxBoxUniqueSeriesCountTotal: w,
2634
2636
  maxBoxTwoSeriesCountTotal: A,
2635
- maxBoxTwoSeriesCountPerSeries: O,
2636
- maxBoxThreePlusSeriesCountTotal: L,
2637
- maxBoxThreePlusSeriesCountPerSeries: M,
2638
- maxHeatChartCellLimit: B
2637
+ maxBoxTwoSeriesCountPerSeries: P,
2638
+ maxBoxThreePlusSeriesCountTotal: D,
2639
+ maxBoxThreePlusSeriesCountPerSeries: B,
2640
+ maxHeatChartCellLimit: M
2639
2641
  } = yt(n);
2640
2642
  switch (r) {
2641
2643
  case y.BarSeries:
2642
2644
  case y.ComboLineAndBarSeries:
2643
2645
  {
2644
- const N = e / i;
2645
- i <= o ? i === 0 ? s = !0 : i === 1 ? s = e <= d : i === 2 ? s = e <= c && N <= l : i > 2 && (s = e <= u && N <= p) : s = !1;
2646
+ const L = e / i;
2647
+ i <= o ? i === 0 ? s = !0 : i === 1 ? s = e <= d : i === 2 ? s = e <= c && L <= l : i > 2 && (s = e <= u && L <= p) : s = !1;
2646
2648
  }
2647
2649
  break;
2648
2650
  case y.LineSeries:
2649
2651
  case y.RadarSeries:
2650
2652
  {
2651
- const N = e / i;
2652
- i <= f ? i === 0 ? s = !0 : i === 1 ? s = e <= h : i === 2 ? s = e <= b && N <= m : i > 2 && (s = e <= S && N <= x) : s = !1;
2653
+ const L = e / i;
2654
+ i <= f ? i === 0 ? s = !0 : i === 1 ? s = e <= h : i === 2 ? s = e <= b && L <= m : i > 2 && (s = e <= x && L <= S) : s = !1;
2653
2655
  }
2654
2656
  break;
2655
2657
  case y.PieSeries:
@@ -2657,12 +2659,12 @@ function Ge(t) {
2657
2659
  break;
2658
2660
  case y.BoxPlotSeries:
2659
2661
  {
2660
- const N = e / i;
2661
- i <= w ? i === 0 ? s = !0 : i === 1 ? s = e <= T : i === 2 ? s = e <= A && N <= O : i > 2 && (s = e <= L && N <= M) : s = !1;
2662
+ const L = e / i;
2663
+ i <= T ? i === 0 ? s = !0 : i === 1 ? s = e <= w : i === 2 ? s = e <= A && L <= P : i > 2 && (s = e <= D && L <= B) : s = !1;
2662
2664
  }
2663
2665
  break;
2664
2666
  case y.HeatSeries:
2665
- s = e <= B;
2667
+ s = e <= M;
2666
2668
  break;
2667
2669
  case y.GaugeSeries:
2668
2670
  s = e <= F;
@@ -2671,7 +2673,7 @@ function Ge(t) {
2671
2673
  }
2672
2674
  return s;
2673
2675
  }
2674
- function Li(t = [], e) {
2676
+ function Bi(t = [], e) {
2675
2677
  const i = t.find((r) => r.name === e)?.alias;
2676
2678
  return i !== "" ? i ?? e : e;
2677
2679
  }
@@ -2738,7 +2740,7 @@ function ei(t, e) {
2738
2740
  const i = e.find((n) => n in t);
2739
2741
  return { isInItem: i !== void 0, expr: i };
2740
2742
  }
2741
- function ui(t) {
2743
+ function pi(t) {
2742
2744
  return ei(t, Tr);
2743
2745
  }
2744
2746
  function wu(t, e) {
@@ -2984,12 +2986,12 @@ function qt(t, e) {
2984
2986
  }
2985
2987
  function $u(t) {
2986
2988
  return ue(
2987
- W(t)
2989
+ k(t)
2988
2990
  )?.sourceJSON?.advancedQueryCapabilities.supportedOperationsWithCacheHint.includes("queryBins");
2989
2991
  }
2990
2992
  function io(t) {
2991
2993
  let e = !1;
2992
- const r = ue(W(t))?.sourceJSON;
2994
+ const r = ue(k(t))?.sourceJSON;
2993
2995
  if (r) {
2994
2996
  const n = r.queryBinsCapabilities?.supportsFixedIntervalBin, a = r.queryBinsCapabilities?.supportedStatisticTypes, s = [I.Maximum, I.Count].every(
2995
2997
  (o) => a?.includes(o.toUpperCase()) || a?.includes(o.toLowerCase())
@@ -3002,7 +3004,7 @@ function qu(t) {
3002
3004
  let e;
3003
3005
  return Ee(t) ? e = t.layer : e = t, e;
3004
3006
  }
3005
- function W(t) {
3007
+ function k(t) {
3006
3008
  let e;
3007
3009
  return Ee(t) ? e = t.layer : e = t, e;
3008
3010
  }
@@ -3015,7 +3017,7 @@ function Eu(t) {
3015
3017
  const { chartConfig: e, queryObject: i } = t;
3016
3018
  let r;
3017
3019
  if (i) {
3018
- const n = W(i);
3020
+ const n = k(i);
3019
3021
  Js(n) ? r = {
3020
3022
  id: n.id,
3021
3023
  layerType: "ArcGISImageServiceLayer"
@@ -3056,17 +3058,17 @@ function no(t) {
3056
3058
  async function ao(t) {
3057
3059
  const { queryObject: e, queryConfig: i, outputFormat: r, dataFormat: n, outAnalytics: a } = t, { where: s, geometry: o, distance: d, units: l, timeExtent: c } = i;
3058
3060
  let p;
3059
- const u = W(e), f = ue(u);
3061
+ const u = k(e), f = ue(u);
3060
3062
  if (f) {
3061
- const m = { where: Z([s, f.definitionExpression]) }, b = { query: m }, x = Ot(o)?.extent?.toJSON();
3062
- if (x !== void 0) {
3063
- const v = no(l), { xmin: F, ymin: w, xmax: T, ymax: A } = x;
3064
- m.geometryType = "esriGeometryEnvelope", m.geometry = `${F},${w},${T},${A}`, d !== void 0 && (m.distance = d.toString()), v !== void 0 && (m.units = v, o?.spatialReference?.wkid != null && (m.inSR = o.spatialReference.wkid.toString()));
3063
+ const m = { where: Z([s, f.definitionExpression]) }, b = { query: m }, S = Ot(o)?.extent?.toJSON();
3064
+ if (S !== void 0) {
3065
+ const v = no(l), { xmin: F, ymin: T, xmax: w, ymax: A } = S;
3066
+ m.geometryType = "esriGeometryEnvelope", m.geometry = `${F},${T},${w},${A}`, d !== void 0 && (m.distance = d.toString()), v !== void 0 && (m.units = v, o?.spatialReference?.wkid != null && (m.inSR = o.spatialReference.wkid.toString()));
3065
3067
  }
3066
3068
  c && (m.time = `${c[0]},${c[1]}`);
3067
- const S = `${f.url}/${f.layerId}/queryAnalytic?f=${r}&dataFormat=${n}&outAnalytics=${a}`;
3069
+ const x = `${f.url}/${f.layerId}/queryAnalytic?f=${r}&dataFormat=${n}&outAnalytics=${a}`;
3068
3070
  try {
3069
- p = (await ti(S, b)).data?.features?.[0]?.attributes;
3071
+ p = (await ti(x, b)).data?.features?.[0]?.attributes;
3070
3072
  } catch (v) {
3071
3073
  const F = (await $e(
3072
3074
  Ae(document.documentElement).t9nLocale,
@@ -3088,7 +3090,7 @@ function _r(t, e) {
3088
3090
  async function so(t) {
3089
3091
  const { chartConfig: e, queryObject: i, queryConfig: r, errorStrings: n, options: a } = t;
3090
3092
  let s;
3091
- const o = W(i), d = to(o);
3093
+ const o = k(i), d = to(o);
3092
3094
  if (d && i && "queryAttributeBins" in i) {
3093
3095
  const { x: l, y: c, xTemporalBinning: p, yTemporalBinning: u } = e.series[0], { outTimeZone: f, firstDayOfWeek: h, includeLeapDay: m } = e, b = xo({
3094
3096
  queryObject: i,
@@ -3104,8 +3106,8 @@ async function so(t) {
3104
3106
  });
3105
3107
  try {
3106
3108
  s = await i.queryAttributeBins(b);
3107
- } catch (x) {
3108
- throw new pe(oe.QueryFeaturesError, n.errors.queryError, x);
3109
+ } catch (S) {
3110
+ throw new pe(oe.QueryFeaturesError, n.errors.queryError, S);
3109
3111
  }
3110
3112
  }
3111
3113
  if (!d)
@@ -3157,7 +3159,7 @@ async function lo(t) {
3157
3159
  async function co(t) {
3158
3160
  const { queryConfig: e, x: i, queryObject: r, chartSubType: n, isGaugeByFeature: a } = t;
3159
3161
  let s;
3160
- const o = W(r), { idField: d, isTraditionalTypeOID: l } = Oe(o), c = Vi({ queryObject: r, queryConfig: e });
3162
+ const o = k(r), { idField: d, isTraditionalTypeOID: l } = Oe(o), c = Vi({ queryObject: r, queryConfig: e });
3161
3163
  c.outFields = a || n === g.PieNoAggregation || n === g.BarAndLineNoAggregation || n === g.BarAndLineSplitByNoAggregation ? [l ? d : "*"] : [i], c.outFields?.[0] === i && (c.returnDistinctValues = !0);
3162
3164
  try {
3163
3165
  s = await r.queryFeatureCount(c);
@@ -3211,7 +3213,7 @@ async function Vt(t) {
3211
3213
  async function Gr(t) {
3212
3214
  const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: r, abortKey: n } = t;
3213
3215
  let a = [];
3214
- const s = W(e), o = Co(s), d = Vi({
3216
+ const s = k(e), o = Co(s), d = Vi({
3215
3217
  queryObject: e,
3216
3218
  queryConfig: i,
3217
3219
  maxRecordCountFactor: o
@@ -3258,13 +3260,13 @@ async function po(t) {
3258
3260
  async function Le(t) {
3259
3261
  const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: r, featureCount: n, noBatch: a, abortKey: s } = t;
3260
3262
  let o = [];
3261
- const d = W(e), l = n ?? 1, c = Hr(d);
3263
+ const d = k(e), l = n ?? 1, c = Hr(d);
3262
3264
  if (a !== !0 && l > c && d?.capabilities?.query.supportsPagination) {
3263
3265
  let p = 0, u = 0;
3264
3266
  const f = Math.ceil(l / c), h = Math.ceil(f / Q.maxParallelRequests), m = [];
3265
3267
  for (; u < h; ) {
3266
3268
  p = u * Q.maxParallelRequests * c;
3267
- const x = po({
3269
+ const S = po({
3268
3270
  queryConfig: { ...i, start: p },
3269
3271
  queryObject: e,
3270
3272
  maxRecords: c,
@@ -3272,7 +3274,7 @@ async function Le(t) {
3272
3274
  returnUniqueIdsOnly: r,
3273
3275
  abortKey: s
3274
3276
  });
3275
- m.push(x), u += 1;
3277
+ m.push(S), u += 1;
3276
3278
  }
3277
3279
  o = (await Promise.all(m)).flat();
3278
3280
  } else (Number.isNaN(l) || l >= 0) && (o = await Gr({
@@ -3313,7 +3315,7 @@ async function fo(t) {
3313
3315
  const { unit: d } = a;
3314
3316
  try {
3315
3317
  if (d) {
3316
- const l = ue(W(e)) ?? void 0;
3318
+ const l = ue(k(e)) ?? void 0;
3317
3319
  if (o = qt(l, r), o && e && "queryAttributeBins" in e) {
3318
3320
  const c = bo({
3319
3321
  queryObject: e,
@@ -3373,7 +3375,7 @@ function Z(t, e) {
3373
3375
  function ho(t, e) {
3374
3376
  let i = e;
3375
3377
  if (t !== void 0) {
3376
- const r = W(t), n = ue(r)?.timeExtent;
3378
+ const r = k(t), n = ue(r)?.timeExtent;
3377
3379
  n?.start != null && n?.end != null && (i = [n.start.valueOf(), n.end.valueOf()]);
3378
3380
  }
3379
3381
  return i;
@@ -3401,15 +3403,15 @@ function Ot(t) {
3401
3403
  function Qr(t) {
3402
3404
  return t === void 0 ? ["*"] : Array.from(new Set(t));
3403
3405
  }
3404
- function fi(t) {
3405
- const { queryType: e, queryObject: i, queryConfig: r } = t, { where: n, outStatistics: a, geometry: s, distance: o, units: d, timeExtent: l, returnDistinctValues: c } = r ?? {}, p = W(i);
3406
+ function ui(t) {
3407
+ const { queryType: e, queryObject: i, queryConfig: r } = t, { where: n, outStatistics: a, geometry: s, distance: o, units: d, timeExtent: l, returnDistinctValues: c } = r ?? {}, p = k(i);
3406
3408
  let f = ue(p)?.createQuery() ?? new la(), h;
3407
- const m = yi(p).idFields;
3409
+ const m = fi(p).idFields;
3408
3410
  if (e === "AttributeBinsQuery" && r?.objectIds?.[0] !== void 0 && m && (h = `${m} IN (${r.objectIds.join(",")})`), e === "AttributeBinsQuery" && (f = new oa(f.toJSON())), f.where = Z([f.where, n, h]), "returnDistinctValues" in f && (f.returnDistinctValues = c ?? !1), a !== void 0) {
3409
- const x = ro(p);
3411
+ const S = ro(p);
3410
3412
  f.outStatistics = a.filter(
3411
- (S) => S.statisticType !== I.EnvelopeAggregate || x
3412
- ).map((S) => da.fromJSON(S));
3413
+ (x) => x.statisticType !== I.EnvelopeAggregate || S
3414
+ ).map((x) => da.fromJSON(x));
3413
3415
  }
3414
3416
  const b = Ot(s);
3415
3417
  return b !== void 0 && (f.geometry = b, r?.spatialRelationship && (f.spatialRelationship = r.spatialRelationship), zr(p) && (o !== void 0 && (f.distance = o), d !== void 0 && (f.units = d))), l && (f.timeExtent = new Sr({
@@ -3430,12 +3432,12 @@ function go(t) {
3430
3432
  return e;
3431
3433
  }
3432
3434
  function bo(t) {
3433
- const { queryObject: e, queryConfig: i, temporalBinning: r, dateField: n, splitByField: a } = t, s = W(e), d = Fe(e).find((S) => S.name === n)?.type, l = fi({
3435
+ const { queryObject: e, queryConfig: i, temporalBinning: r, dateField: n, splitByField: a } = t, s = k(e), d = Fe(e).find((x) => x.name === n)?.type, l = ui({
3434
3436
  queryType: "AttributeBinsQuery",
3435
3437
  queryObject: e,
3436
3438
  queryConfig: i
3437
- }), { unit: c, size: p, timeAggregationType: u, start: f, end: h, offset: m, outTimeZone: b } = r, x = Ur(n);
3438
- if (l.lowerBoundaryAlias = x.lowerBoundaryAlias, l.upperBoundaryAlias = x.upperBoundaryAlias, d !== H.DateOnly && (l.outTimeZone = b ?? Intl.DateTimeFormat().resolvedOptions().timeZone), l.binParameters = {
3439
+ }), { unit: c, size: p, timeAggregationType: u, start: f, end: h, offset: m, outTimeZone: b } = r, S = Ur(n);
3440
+ if (l.lowerBoundaryAlias = S.lowerBoundaryAlias, l.upperBoundaryAlias = S.upperBoundaryAlias, d !== H.DateOnly && (l.outTimeZone = b ?? Intl.DateTimeFormat().resolvedOptions().timeZone), l.binParameters = {
3439
3441
  type: "date",
3440
3442
  field: n,
3441
3443
  interval: { unit: c, value: p },
@@ -3545,7 +3547,7 @@ function xo(t) {
3545
3547
  includeLeapDay: d,
3546
3548
  configTimeZone: l,
3547
3549
  options: c
3548
- } = t, p = Fe(e), u = p.find((w) => w.name === r)?.type, f = p.find((w) => w.name === n)?.type, h = fi({
3550
+ } = t, p = Fe(e), u = p.find((T) => T.name === r)?.type, f = p.find((T) => T.name === n)?.type, h = ui({
3549
3551
  queryType: "AttributeBinsQuery",
3550
3552
  queryObject: e,
3551
3553
  queryConfig: i
@@ -3554,9 +3556,9 @@ function xo(t) {
3554
3556
  type: "fixed-interval",
3555
3557
  interval: 1
3556
3558
  }, h.lowerBoundaryAlias = Q.heatChartLowerBoundaryAlias, h.upperBoundaryAlias = Q.heatChartUpperBoundaryAlias, u !== H.DateOnly) {
3557
- const w = Intl.DateTimeFormat().resolvedOptions().timeZone, T = c?.view && "timeZone" in c?.view ? c.view.timeZone : void 0;
3558
- let A = l ?? T ?? w;
3559
- A === "unknown" ? A = "Etc/UTC" : A === "system" && (A = w), h.outTimeZone = A;
3559
+ const T = Intl.DateTimeFormat().resolvedOptions().timeZone, w = c?.view && "timeZone" in c?.view ? c.view.timeZone : void 0;
3560
+ let A = l ?? w ?? T;
3561
+ A === "unknown" ? A = "Etc/UTC" : A === "system" && (A = T), h.outTimeZone = A;
3560
3562
  }
3561
3563
  o !== void 0 && (h.binParameters.firstDayOfWeek = o);
3562
3564
  const m = rr({
@@ -3565,8 +3567,8 @@ function xo(t) {
3565
3567
  xOrYFieldType: u,
3566
3568
  addIntervalStatement: !1,
3567
3569
  includeLeapDay: d
3568
- }), { field: b, expression: x, start: S, end: v } = m;
3569
- b ? h.binParameters.field = b : x && (h.binParameters.expression = x, h.binParameters.expressionValueType = "integer", h.binParameters.type === "fixed-interval" && (S !== void 0 && (h.binParameters.start = S), v !== void 0 && (h.binParameters.end = v)));
3570
+ }), { field: b, expression: S, start: x, end: v } = m;
3571
+ b ? h.binParameters.field = b : S && (h.binParameters.expression = S, h.binParameters.expressionValueType = "integer", h.binParameters.type === "fixed-interval" && (x !== void 0 && (h.binParameters.start = x), v !== void 0 && (h.binParameters.end = v)));
3570
3572
  const F = rr({
3571
3573
  temporalBinning: s,
3572
3574
  xOrY: n,
@@ -3582,7 +3584,7 @@ function xo(t) {
3582
3584
  }), h;
3583
3585
  }
3584
3586
  function vo(t) {
3585
- const { queryObject: e, queryConfig: i, xStep: r, xMin: n, xMax: a, x: s, y: o, yStep: d } = t, l = fi({
3587
+ const { queryObject: e, queryConfig: i, xStep: r, xMin: n, xMax: a, x: s, y: o, yStep: d } = t, l = ui({
3586
3588
  queryType: "AttributeBinsQuery",
3587
3589
  queryObject: e,
3588
3590
  queryConfig: i
@@ -3602,9 +3604,9 @@ function vo(t) {
3602
3604
  }, l;
3603
3605
  }
3604
3606
  function Vi(t) {
3605
- const { queryObject: e, queryConfig: i, maxRecordCountFactor: r } = t, { groupByFieldsForStatistics: n, orderByFields: a, gdbVersion: s, start: o, num: d, outFields: l } = i ?? {}, c = fi({ queryType: "Query", queryObject: e, queryConfig: i });
3607
+ const { queryObject: e, queryConfig: i, maxRecordCountFactor: r } = t, { groupByFieldsForStatistics: n, orderByFields: a, gdbVersion: s, start: o, num: d, outFields: l } = i ?? {}, c = ui({ queryType: "Query", queryObject: e, queryConfig: i });
3606
3608
  c.returnGeometry = !1;
3607
- const p = W(e);
3609
+ const p = k(e);
3608
3610
  return c.outFields = Qr(l), c.groupByFieldsForStatistics = n ?? c.groupByFieldsForStatistics, c.orderByFields = a ?? [], c.objectIds = i?.objectIds, r !== void 0 && (c.maxRecordCountFactor = r), s !== void 0 && s !== "" && (c.gdbVersion = s), d !== void 0 && (c.num = d), o !== void 0 && (c.start = o, c.num = c.num ?? Hr(p)), c;
3609
3611
  }
3610
3612
  function Co(t) {
@@ -3624,7 +3626,7 @@ const Vu = {
3624
3626
  AdditionalProperties: "additionalProperties",
3625
3627
  Enum: "enum",
3626
3628
  AnyOf: "anyOf"
3627
- }, V = {
3629
+ }, W = {
3628
3630
  BadData: "badData",
3629
3631
  EmptyDataSet: "emptyDataSet",
3630
3632
  InvalidConfig: "invalidConfig",
@@ -3659,43 +3661,43 @@ function wo(t) {
3659
3661
  return e;
3660
3662
  }
3661
3663
  async function To(t) {
3662
- const { queryConfig: e, chartConfig: i, queryObject: r, options: n, abortKey: a } = t, s = i.series[0], { x: o, dataTransformationType: d, binCount: l } = s, c = W(r);
3664
+ const { queryConfig: e, chartConfig: i, queryObject: r, options: n, abortKey: a } = t, s = i.series[0], { x: o, dataTransformationType: d, binCount: l } = s, c = k(r);
3663
3665
  if (!de(c))
3664
3666
  throw new pe(oe.LayerNotSupported);
3665
3667
  c.loaded || await c.load();
3666
- const p = await c.generateRasterInfo(c.rasterFunction), u = n?.view, f = Ot(e.geometry) ?? c.fullExtent, h = p.bandCount === 1 ? 0 : p.bandInfos.findIndex((x) => x.name === o);
3668
+ const p = await c.generateRasterInfo(c.rasterFunction), u = n?.view, f = Ot(e.geometry) ?? c.fullExtent, h = p.bandCount === 1 ? 0 : p.bandInfos.findIndex((S) => S.name === o);
3667
3669
  let m, b;
3668
3670
  if (u === void 0 && (d === void 0 || d === ee.None) && l && Array.isArray(p.histograms) && p.histograms.length > h && p.histograms[h].size % l === 0 && Array.isArray(p.statistics) && p?.statistics?.length > h)
3669
3671
  m = p.histograms[h], b = p.statistics[h];
3670
3672
  else {
3671
- let x, S, v;
3673
+ let S, x, v;
3672
3674
  if (u)
3673
- x = u.resolution, S = u.resolution, v = u.spatialReference;
3675
+ S = u.resolution, x = u.resolution, v = u.spatialReference;
3674
3676
  else {
3675
- const A = Fo, O = 2, L = p.width, M = p.height, B = Math.max(
3677
+ const A = Fo, P = 2, D = p.width, B = p.height, M = Math.max(
3676
3678
  0,
3677
- Math.ceil(Math.log(Math.max(L, M) / A) / Math.log(O))
3678
- ), N = O ** B;
3679
- x = p.pixelSize.x * N, S = p.pixelSize.y * N, v = c.spatialReference;
3679
+ Math.ceil(Math.log(Math.max(D, B) / A) / Math.log(P))
3680
+ ), L = P ** M;
3681
+ S = p.pixelSize.x * L, x = p.pixelSize.y * L, v = c.spatialReference;
3680
3682
  }
3681
3683
  const F = new Aa({
3682
- x,
3683
- y: S,
3684
+ x: S,
3685
+ y: x,
3684
3686
  spatialReference: v
3685
- }), w = wo(d), T = await ea(
3687
+ }), T = wo(d), w = await ea(
3686
3688
  c,
3687
3689
  {
3688
3690
  bandIds: [h],
3689
3691
  geometry: f,
3690
3692
  histogramSize: l ?? void 0,
3691
3693
  pixelSize: F,
3692
- transformType: w
3694
+ transformType: T
3693
3695
  },
3694
3696
  {
3695
3697
  signal: a !== void 0 ? et.get(a)?.signal : void 0
3696
3698
  }
3697
3699
  );
3698
- b = T.statistics[0], m = T.histograms[0];
3700
+ b = w.statistics[0], m = w.histograms[0];
3699
3701
  }
3700
3702
  return { histogram: m, statistics: b };
3701
3703
  }
@@ -3756,18 +3758,18 @@ async function Ao(t) {
3756
3758
  }
3757
3759
  } : s = {
3758
3760
  valid: !1,
3759
- invalidType: V.EmptyDataSet
3761
+ invalidType: W.EmptyDataSet
3760
3762
  };
3761
3763
  } else
3762
3764
  s = {
3763
3765
  valid: !1,
3764
- invalidType: V.BadData
3766
+ invalidType: W.BadData
3765
3767
  };
3766
3768
  return s;
3767
3769
  }
3768
3770
  const Bo = (t) => t.series[0].x;
3769
3771
  function Lo(t) {
3770
- const { chartConfig: e, layer: i, selectionDataItems: r } = t, n = Di(i, Bo(e)), s = r.map((l) => [
3772
+ const { chartConfig: e, layer: i, selectionDataItems: r } = t, n = Li(i, Bo(e)), s = r.map((l) => [
3771
3773
  l.minValue,
3772
3774
  l.maxValue
3773
3775
  ]).reduce((l, c, p) => {
@@ -3847,7 +3849,7 @@ async function Po(t) {
3847
3849
  const { queryObject: e } = t;
3848
3850
  let i = !1;
3849
3851
  if (!de(e)) {
3850
- const r = eo(e), n = W(e), a = ue(n);
3852
+ const r = eo(e), n = k(e), a = ue(n);
3851
3853
  if (r && a?.url !== void 0 && a.url !== null) {
3852
3854
  const s = `${a.url}/${a.layerId}?f=json`;
3853
3855
  try {
@@ -3886,25 +3888,25 @@ async function $o(t) {
3886
3888
  fieldValue: h,
3887
3889
  slopePropertyList: m,
3888
3890
  interceptPropertyList: b,
3889
- r2PropertyList: x
3890
- } = Do, S = `[{"${u}": "${f}", "${h}":"${s},${o}"}]`, v = await ao({
3891
+ r2PropertyList: S
3892
+ } = Do, x = `[{"${u}": "${f}", "${h}":"${s},${o}"}]`, v = await ao({
3891
3893
  queryObject: i,
3892
3894
  queryConfig: n,
3893
3895
  outputFormat: p,
3894
3896
  dataFormat: c,
3895
- outAnalytics: S
3897
+ outAnalytics: x
3896
3898
  });
3897
3899
  if (v !== void 0) {
3898
- let F = Number.NaN, w = Number.NaN;
3899
- const { expr: T } = ei(v, m), { expr: A } = ei(v, b), { expr: O } = ei(v, x);
3900
- T !== void 0 && Number.isFinite(v[T]) && (F = v[T]), A !== void 0 && Number.isFinite(v[A]) && (w = v[A]), O !== void 0 && Number.isFinite(v[O]) && (d = v[O]);
3901
- const { dataContextXMinField: L, dataContextXMaxField: M, dataContextYMinField: B, dataContextYMaxField: N } = C.scatterplotAggregationFields, R = e.get(L) ?? Number.NaN, k = e.get(M) ?? Number.NaN, _ = e.get(B) ?? Number.NaN, D = e.get(N) ?? Number.NaN, we = (k - R) / 100;
3900
+ let F = Number.NaN, T = Number.NaN;
3901
+ const { expr: w } = ei(v, m), { expr: A } = ei(v, b), { expr: P } = ei(v, S);
3902
+ w !== void 0 && Number.isFinite(v[w]) && (F = v[w]), A !== void 0 && Number.isFinite(v[A]) && (T = v[A]), P !== void 0 && Number.isFinite(v[P]) && (d = v[P]);
3903
+ const { dataContextXMinField: D, dataContextXMaxField: B, dataContextYMinField: M, dataContextYMaxField: L } = C.scatterplotAggregationFields, R = e.get(D) ?? Number.NaN, G = e.get(B) ?? Number.NaN, z = e.get(M) ?? Number.NaN, N = e.get(L) ?? Number.NaN, we = (G - R) / 100;
3902
3904
  let Pe = R - we, U = Number.NaN;
3903
- for (; !(U >= _ && U <= D) && Pe <= k; )
3904
- Pe += we, U = F * Pe + w;
3905
- let Me = k + we, Se = Number.NaN;
3906
- for (; !(Se >= _ && Se <= D) && Me >= R; )
3907
- Me -= we, Se = F * Me + w;
3905
+ for (; !(U >= z && U <= N) && Pe <= G; )
3906
+ Pe += we, U = F * Pe + T;
3907
+ let Me = G + we, Se = Number.NaN;
3908
+ for (; !(Se >= z && Se <= N) && Me >= R; )
3909
+ Me -= we, Se = F * Me + T;
3908
3910
  l = [
3909
3911
  { [s]: Pe, [o]: U },
3910
3912
  { [s]: Me, [o]: Se }
@@ -3996,7 +3998,7 @@ function zo(t) {
3996
3998
  const { chartConfig: e, layer: i, selectionDataItems: r } = t;
3997
3999
  let n;
3998
4000
  if (r.length > 0) {
3999
- const { x: a, y: s } = jo(e), o = Di(i, a), d = Di(i, s);
4001
+ const { x: a, y: s } = jo(e), o = Li(i, a), d = Li(i, s);
4000
4002
  if (o !== void 0 && d !== void 0) {
4001
4003
  let l = r[0]?.[a], c = r[0]?.[s], p = l, u = c;
4002
4004
  r.forEach((f) => {
@@ -4110,7 +4112,7 @@ const tn = qi(
4110
4112
  },
4111
4113
  (t) => JSON.stringify(t, Object.keys(t).sort())
4112
4114
  // stringify with sorted keys
4113
- ), Di = (t, e) => {
4115
+ ), Li = (t, e) => {
4114
4116
  let i;
4115
4117
  const r = t.serviceRasterInfo?.bandInfos;
4116
4118
  if (e && r && r.length > 0) {
@@ -4147,7 +4149,7 @@ async function Ho(t) {
4147
4149
  let s = [];
4148
4150
  if (e !== void 0)
4149
4151
  try {
4150
- const o = W(e);
4152
+ const o = k(e);
4151
4153
  o.loaded || await o.load();
4152
4154
  const l = {
4153
4155
  geometry: Ot(i.geometry) ?? o.fullExtent,
@@ -4246,13 +4248,13 @@ async function Hu(t) {
4246
4248
  if (s)
4247
4249
  o = await Go(t);
4248
4250
  else {
4249
- const d = W(e), l = ue(d);
4251
+ const d = k(e), l = ue(d);
4250
4252
  l !== void 0 ? n && i !== void 0 && !l.isTable ? (l.outFields = ["*"], o = await i.whenLayerView(l)) : o = e : r?.iLayer && r.iLayer?.layerType === "ArcGISFeatureLayer" && (o = await ji(r.iLayer, a));
4251
4253
  }
4252
4254
  return o;
4253
4255
  }
4254
4256
  function Fe(t, e) {
4255
- const i = W(t);
4257
+ const i = k(t);
4256
4258
  let r = [];
4257
4259
  if (i !== void 0) {
4258
4260
  const n = e === !0 && i?.popupTemplate?.fieldInfos !== void 0;
@@ -4272,7 +4274,7 @@ function Fe(t, e) {
4272
4274
  function nn(t, e = []) {
4273
4275
  return e.find((i) => i.name === t);
4274
4276
  }
4275
- function yi(t) {
4277
+ function fi(t) {
4276
4278
  let e, i = !1;
4277
4279
  if (de(t))
4278
4280
  e = [Zr(t)];
@@ -4287,7 +4289,7 @@ function Oe(t) {
4287
4289
  if (de(t))
4288
4290
  e = Zr(t);
4289
4291
  else if (t) {
4290
- const r = yi(t);
4292
+ const r = fi(t);
4291
4293
  i = r.isTraditionalTypeOID, r.idFields && (e = r.idFields[0]);
4292
4294
  }
4293
4295
  return { idField: e, isTraditionalTypeOID: i };
@@ -4325,21 +4327,21 @@ function Ko(t) {
4325
4327
  function Ku(t) {
4326
4328
  return t.filter((e) => Lt(e)).map((e) => e.name);
4327
4329
  }
4328
- function Ni(t, e) {
4330
+ function Di(t, e) {
4329
4331
  let i;
4330
4332
  if (e) {
4331
- const n = W(t).getFieldDomain(e);
4333
+ const n = k(t).getFieldDomain(e);
4332
4334
  n instanceof pa && (i = n);
4333
4335
  }
4334
4336
  return i;
4335
4337
  }
4336
- function Oi(t, e) {
4338
+ function Ni(t, e) {
4337
4339
  let i = e?.getName(t?.toString()) ?? e?.getName(t) ?? e?.getName(Number(t));
4338
4340
  return i === null && (i = void 0), i;
4339
4341
  }
4340
4342
  function nr(t) {
4341
4343
  const { queryObject: e, fieldName: i, fieldValue: r } = t;
4342
- return de(e) ? void 0 : Oi(r, Ni(e, i));
4344
+ return de(e) ? void 0 : Ni(r, Di(e, i));
4343
4345
  }
4344
4346
  async function an(t) {
4345
4347
  let e = [];
@@ -4397,15 +4399,15 @@ function on(t) {
4397
4399
  spatialRelationship: m
4398
4400
  } = o ?? {}, {
4399
4401
  where: b,
4400
- gdbVersion: x,
4401
- timeExtent: S,
4402
+ gdbVersion: S,
4403
+ timeExtent: x,
4402
4404
  geometry: v,
4403
4405
  distance: F,
4404
- units: w,
4405
- objectIds: T,
4406
+ units: T,
4407
+ objectIds: w,
4406
4408
  spatialRelationship: A
4407
- } = r ?? {}, O = s[0], { query: L } = O, { where: M } = L ?? {}, B = E(s), N = { ...L };
4408
- return N.where = Z([d, b]), B !== g.BarAndLineSplitBy && B !== g.BoxPlotMonoFieldAndSplitBy && B !== g.BoxPlotMonoFieldAndCategoryAndSplitBy && B !== g.BoxPlotMultiFieldsAndSplitBy && B !== g.BarAndLineSplitByNoAggregation && (N.where = Z([N.where, M])), i.orderOptions?.orderByFields !== void 0 && (N.orderByFields = i.orderOptions.orderByFields), N.gdbVersion = x ?? l, N.timeExtent = ho(e, S ?? c), N.geometry = de(e) ? Qo({
4409
+ } = r ?? {}, P = s[0], { query: D } = P, { where: B } = D ?? {}, M = E(s), L = { ...D };
4410
+ return L.where = Z([d, b]), M !== g.BarAndLineSplitBy && M !== g.BoxPlotMonoFieldAndSplitBy && M !== g.BoxPlotMonoFieldAndCategoryAndSplitBy && M !== g.BoxPlotMultiFieldsAndSplitBy && M !== g.BarAndLineSplitByNoAggregation && (L.where = Z([L.where, B])), i.orderOptions?.orderByFields !== void 0 && (L.orderByFields = i.orderOptions.orderByFields), L.gdbVersion = S ?? l, L.timeExtent = ho(e, x ?? c), L.geometry = de(e) ? Qo({
4409
4411
  queryObject: e,
4410
4412
  defaultGeometry: v ?? p,
4411
4413
  ignoreViewExtent: n,
@@ -4414,7 +4416,7 @@ function on(t) {
4414
4416
  queryObject: e,
4415
4417
  defaultGeometry: v ?? p,
4416
4418
  ignoreViewExtent: n
4417
- }), N.distance = F ?? u, N.units = w ?? f, N.objectIds = T ?? h, N.spatialRelationship = A ?? m, L?.outStatistics?.[0]?.statisticType === I.Count && (N.returnDistinctValues = L?.returnDistinctValues ?? !1), N;
4419
+ }), L.distance = F ?? u, L.units = T ?? f, L.objectIds = w ?? h, L.spatialRelationship = A ?? m, D?.outStatistics?.[0]?.statisticType === I.Count && (L.returnDistinctValues = D?.returnDistinctValues ?? !1), L;
4418
4420
  }
4419
4421
  async function Xu(t) {
4420
4422
  let e = [];
@@ -4561,7 +4563,7 @@ const ef = {
4561
4563
  y.ComboLineAndBarSeries,
4562
4564
  y.RadarSeries
4563
4565
  ];
4564
- function Ci(t, e) {
4566
+ function vi(t, e) {
4565
4567
  let i = 0;
4566
4568
  if (t !== e) {
4567
4569
  const r = t.split("."), n = e.split(".");
@@ -4585,13 +4587,13 @@ function ll(t) {
4585
4587
  function dl(t) {
4586
4588
  let e = dt.Same, i = [];
4587
4589
  if (ll(t) && t !== void 0) {
4588
- lt.sort(Ci);
4589
- const n = Ci(t, lt[lt.length - 1]);
4590
+ lt.sort(vi);
4591
+ const n = vi(t, lt[lt.length - 1]);
4590
4592
  if (n === 1 ? e = dt.Newer : n === -1 && (e = dt.Older), e === dt.Newer || e === dt.Same)
4591
4593
  i.push(t);
4592
4594
  else {
4593
4595
  for (let a = lt.length - 2; a >= 0; a -= 1)
4594
- if (Ci(t, lt[a]) >= 0) {
4596
+ if (vi(t, lt[a]) >= 0) {
4595
4597
  i = lt.slice(a, lt.length);
4596
4598
  break;
4597
4599
  }
@@ -4617,7 +4619,7 @@ function le(t, e) {
4617
4619
  function be(t) {
4618
4620
  const { where: e, normalize: i, keepSurroundingQuotes: r, escape: n } = t;
4619
4621
  let a = "";
4620
- return e !== void 0 && e.includes("=") && (a = e.split("=").slice(1).join("=").trim(), a === "null" ? a = null : a.trim() !== "" && !Number.isNaN(Number(a)) ? a = Number(a) : i === !1 ? n === !0 && (a = Bi(a)) : a = Mr({ value: a, keepSurroundingQuotes: r, escape: n })), a;
4622
+ return e !== void 0 && e.includes("=") && (a = e.split("=").slice(1).join("=").trim(), a === "null" ? a = null : a.trim() !== "" && !Number.isNaN(Number(a)) ? a = Number(a) : i === !1 ? n === !0 && (a = Ai(a)) : a = Mr({ value: a, keepSurroundingQuotes: r, escape: n })), a;
4621
4623
  }
4622
4624
  function Ue(t) {
4623
4625
  let e = !1;
@@ -4675,7 +4677,7 @@ function E(t) {
4675
4677
  function st(t) {
4676
4678
  const { seriesConfig: e, xAxisValueFormatType: i, setTimeBinningInfoWhenNotProvided: r, queryObject: n } = t;
4677
4679
  let a = !1;
4678
- if (!de(n) && !(W(n)?.fields?.find((o) => o.name === e.x)?.type === "time-only") && Ne(e) && e.binTemporalData !== !1 && i === y.DateAxisFormat) {
4680
+ if (!de(n) && !(k(n)?.fields?.find((o) => o.name === e.x)?.type === "time-only") && Ne(e) && e.binTemporalData !== !1 && i === y.DateAxisFormat) {
4679
4681
  const o = E([e]);
4680
4682
  if (e.temporalBinning && o !== g.BarAndLineNoAggregation && o !== g.BarAndLineSplitByNoAggregation) {
4681
4683
  const { unit: d, size: l } = e.temporalBinning;
@@ -4831,7 +4833,7 @@ function pf(t, e) {
4831
4833
  }
4832
4834
  function uf(t, e) {
4833
4835
  let i, r, n, a;
4834
- return Ne(t.series[0]) && (i = t.series[0].temporalBinning?.unit, n = t.series[0].temporalBinning?.size), Ne(e.series[0]) && (r = e.series[0].temporalBinning?.unit, a = e.series[0].temporalBinning?.size), Ii(i, n) && !Ii(r, a);
4836
+ return Ne(t.series[0]) && (i = t.series[0].temporalBinning?.unit, n = t.series[0].temporalBinning?.size), Ne(e.series[0]) && (r = e.series[0].temporalBinning?.unit, a = e.series[0].temporalBinning?.size), Ti(i, n) && !Ti(r, a);
4835
4837
  }
4836
4838
  function ff(t, e) {
4837
4839
  return t.axes?.length === 3 && e.axes?.length === 2 || t.axes?.length === 2 && e.axes?.length === 3;
@@ -4994,10 +4996,10 @@ function gn(t) {
4994
4996
  let e;
4995
4997
  const i = t?.orderOptions?.data;
4996
4998
  return t.series?.length > 0 && i?.orderType === ve.MultiAxes && (e = [], e.push({
4997
- sortingField: j.xField,
4999
+ sortingField: V.xField,
4998
5000
  orderBy: i.orderByX ?? ne.Ascending
4999
5001
  }), e.push({
5000
- sortingField: i.orderByY !== void 0 ? j.yField : "",
5002
+ sortingField: i.orderByY !== void 0 ? V.yField : "",
5001
5003
  orderBy: i.orderByY
5002
5004
  })), e;
5003
5005
  }
@@ -5009,7 +5011,7 @@ function bn(t) {
5009
5011
  if (r === ve.Category)
5010
5012
  r = t.series[0].x;
5011
5013
  else {
5012
- r === ve.Mean ? r = P.Average : r === ve.Median && (r = P.Median);
5014
+ r === ve.Mean ? r = O.Average : r === ve.Median && (r = O.Median);
5013
5015
  const a = e === g.BoxPlotMultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = le(t.series[0].query?.where), o = be({
5014
5016
  where: t.series[0].query?.where
5015
5017
  });
@@ -5061,7 +5063,7 @@ function Sn(t) {
5061
5063
  }));
5062
5064
  return s;
5063
5065
  }
5064
- function Pi(t) {
5066
+ function Oi(t) {
5065
5067
  let e;
5066
5068
  const i = q(t.series);
5067
5069
  if (t.series?.length > 0) {
@@ -5088,7 +5090,7 @@ function wf(t) {
5088
5090
  const { oldConfig: e, newConfig: i, dataWasUpdated: r } = t, n = q(i.series), a = E(i.series);
5089
5091
  let s = !1, o = !1;
5090
5092
  if (a !== g.BoxPlotMonoField && a !== g.BoxPlotMonoFieldAndSplitBy && i.orderOptions?.data !== void 0) {
5091
- const d = Pi(e), l = Pi(i);
5093
+ const d = Oi(e), l = Oi(i);
5092
5094
  if (n === y.HeatSeries) {
5093
5095
  const c = d ? d[0] : void 0, p = l ? l[0] : void 0, u = d ? d[1] : void 0, f = l ? l[1] : void 0;
5094
5096
  o = e.orderOptions?.data?.orderType !== i.orderOptions?.data?.orderType || c?.sortingField !== p?.sortingField || c?.orderBy !== p?.orderBy || u?.sortingField !== f?.sortingField || u?.orderBy !== f?.orderBy, s = o || r;
@@ -5118,7 +5120,7 @@ function Sl(t = ee.None, e) {
5118
5120
  }
5119
5121
  function xn(t, e) {
5120
5122
  const i = { valid: !1 };
5121
- return e === !0 ? i.invalidType = V.HistogramEmptyField : t === ee.Log ? i.invalidType = V.NegativeValueInLogCalculation : t === ee.Sqrt && (i.invalidType = V.NegativeValueInSqrtCalculation), i;
5123
+ return e === !0 ? i.invalidType = W.HistogramEmptyField : t === ee.Log ? i.invalidType = W.NegativeValueInLogCalculation : t === ee.Sqrt && (i.invalidType = W.NegativeValueInSqrtCalculation), i;
5122
5124
  }
5123
5125
  function xl(t, e) {
5124
5126
  let i = t;
@@ -5157,7 +5159,7 @@ function vn(t) {
5157
5159
  return e;
5158
5160
  }
5159
5161
  async function Cl(t) {
5160
- const { queryObject: e, fieldName: i, queryConfig: r, abortKey: n } = t, a = W(e), { idField: s, isTraditionalTypeOID: o } = Oe(a), d = o ? s : "*", l = `${I.Count}_${s}`, c = `${I.Count}_${i}`, p = `${I.Minimum}_${i}`, u = `${I.Maximum}_${i}`, f = {
5162
+ const { queryObject: e, fieldName: i, queryConfig: r, abortKey: n } = t, a = k(e), { idField: s, isTraditionalTypeOID: o } = Oe(a), d = o ? s : "*", l = `${I.Count}_${s}`, c = `${I.Count}_${i}`, p = `${I.Minimum}_${i}`, u = `${I.Maximum}_${i}`, f = {
5161
5163
  ...r,
5162
5164
  outStatistics: [
5163
5165
  {
@@ -5185,8 +5187,8 @@ async function Cl(t) {
5185
5187
  queryObject: e,
5186
5188
  queryConfig: f,
5187
5189
  abortKey: n
5188
- }), m = h.get(l) ?? Number.NaN, b = h.get(c) ?? Number.NaN, x = h.get(p) ?? Number.NaN, S = h.get(u) ?? Number.NaN;
5189
- return { countExcludingNulls: b, countIncludingNulls: m, min: x, max: S };
5190
+ }), m = h.get(l) ?? Number.NaN, b = h.get(c) ?? Number.NaN, S = h.get(p) ?? Number.NaN, x = h.get(u) ?? Number.NaN;
5191
+ return { countExcludingNulls: b, countIncludingNulls: m, min: S, max: x };
5190
5192
  }
5191
5193
  async function Fl(t) {
5192
5194
  const { queryConfig: e, chartConfig: i, queryObject: r, abortKey: n } = t, a = i.series[0], { x: s, dataTransformationType: o } = a;
@@ -5258,7 +5260,7 @@ async function Bl(t) {
5258
5260
  errorStrings: o
5259
5261
  } = t, d = e.series[0], { dataTransformationType: l } = d;
5260
5262
  let c = { valid: !0 };
5261
- const p = W(r), f = Ot(i?.geometry)?.extent?.toJSON() !== void 0, h = s?.view, m = Tl({
5263
+ const p = k(r), f = Ot(i?.geometry)?.extent?.toJSON() !== void 0, h = s?.view, m = Tl({
5262
5264
  seriesConfig: d,
5263
5265
  layer: p,
5264
5266
  view: h,
@@ -5269,61 +5271,61 @@ async function Bl(t) {
5269
5271
  if (h !== void 0 && (b = new Ki({
5270
5272
  geometry: h.extent
5271
5273
  }), h.extent !== void 0 && zr(p))) {
5272
- const { distance: L, units: M } = i;
5273
- L !== void 0 && (b.distance = L), M !== void 0 && (b.units = M);
5274
+ const { distance: D, units: B } = i;
5275
+ D !== void 0 && (b.distance = D), B !== void 0 && (b.units = B);
5274
5276
  }
5275
5277
  if (i.timeExtent) {
5276
- const L = { start: i.timeExtent[0], end: i.timeExtent[1] };
5277
- b === void 0 ? b = new Ki({ timeExtent: L }) : b.timeExtent = L;
5278
+ const D = { start: i.timeExtent[0], end: i.timeExtent[1] };
5279
+ b === void 0 ? b = new Ki({ timeExtent: D }) : b.timeExtent = D;
5278
5280
  }
5279
5281
  m.filter = b;
5280
- let x;
5282
+ let S;
5281
5283
  m.outStatisticTypes = { exclude: ["median"] };
5282
5284
  try {
5283
- x = await Xi(m);
5284
- } catch (L) {
5285
- throw new pe(oe.QueryFeaturesError, o.errors.queryError, L);
5285
+ S = await Xi(m);
5286
+ } catch (D) {
5287
+ throw new pe(oe.QueryFeaturesError, o.errors.queryError, D);
5286
5288
  }
5287
5289
  m.outStatisticTypes = { include: ["median"] };
5288
5290
  try {
5289
- const L = await Xi(m);
5290
- L?.median && (x.median = L.median);
5291
+ const D = await Xi(m);
5292
+ D?.median && (S.median = D.median);
5291
5293
  } catch {
5292
5294
  }
5293
- x = wl(x);
5294
- const { avg: S, count: v, stddev: F, min: w, max: T, sum: A, median: O } = x;
5295
+ S = wl(S);
5296
+ const { avg: x, count: v, stddev: F, min: T, max: w, sum: A, median: P } = S;
5295
5297
  if (v === 0)
5296
5298
  c = {
5297
5299
  ...xn(l)
5298
5300
  };
5299
5301
  else {
5300
- const L = Il({
5302
+ const D = Il({
5301
5303
  seriesConfig: d,
5302
5304
  layer: p,
5303
5305
  view: h,
5304
5306
  useFeaturesInView: f,
5305
- minValue: vl(w),
5306
- maxValue: T,
5307
+ minValue: vl(T),
5308
+ maxValue: w,
5307
5309
  valueExpression: m.valueExpression,
5308
5310
  queryConfig: i
5309
5311
  });
5310
- L.filter = b;
5311
- let M;
5312
+ D.filter = b;
5313
+ let B;
5312
5314
  try {
5313
- M = await ba(L);
5314
- } catch (N) {
5315
- throw new pe(oe.QueryFeaturesError, o.errors.queryError, N);
5315
+ B = await ba(D);
5316
+ } catch (L) {
5317
+ throw new pe(oe.QueryFeaturesError, o.errors.queryError, L);
5316
5318
  }
5317
- const B = Al(a, n);
5319
+ const M = Al(a, n);
5318
5320
  c.data = {
5319
- mean: S,
5321
+ mean: x,
5320
5322
  stddev: F,
5321
- min: w,
5322
- max: T,
5323
- median: Number(O),
5324
- bins: M?.bins,
5323
+ min: T,
5324
+ max: w,
5325
+ median: Number(P),
5326
+ bins: B?.bins,
5325
5327
  count: n,
5326
- nulls: B,
5328
+ nulls: M,
5327
5329
  sum: A ?? void 0
5328
5330
  }, c.data.bins.length > 0 && (c.data.bins[c.data.bins.length - 1].isLastBin = !0);
5329
5331
  }
@@ -5411,22 +5413,22 @@ function si(t) {
5411
5413
  switch (e.valid = !1, i) {
5412
5414
  case y.BarSeries:
5413
5415
  case y.ComboLineAndBarSeries:
5414
- e.invalidType = V.BarElementExceedsLimit;
5416
+ e.invalidType = W.BarElementExceedsLimit;
5415
5417
  break;
5416
5418
  case y.LineSeries:
5417
- e.invalidType = V.LineChartExceedsLimit;
5419
+ e.invalidType = W.LineChartExceedsLimit;
5418
5420
  break;
5419
5421
  case y.PieSeries:
5420
- e.invalidType = V.PieChartExceedsLimit;
5422
+ e.invalidType = W.PieChartExceedsLimit;
5421
5423
  break;
5422
5424
  case y.GaugeSeries:
5423
- e.invalidType = V.GaugeExceedsLimit;
5425
+ e.invalidType = W.GaugeExceedsLimit;
5424
5426
  break;
5425
5427
  case y.BoxPlotSeries:
5426
- r?.outlierLimit === !0 ? e.invalidType = V.BoxPlotOutliersExceedsLimit : e.invalidType = V.BoxPlotExceedsLimit;
5428
+ r?.outlierLimit === !0 ? e.invalidType = W.BoxPlotOutliersExceedsLimit : e.invalidType = W.BoxPlotExceedsLimit;
5427
5429
  break;
5428
5430
  case y.HeatSeries:
5429
- e.invalidType = V.HeatChartExceedsLimit;
5431
+ e.invalidType = W.HeatChartExceedsLimit;
5430
5432
  break;
5431
5433
  }
5432
5434
  }
@@ -5449,136 +5451,136 @@ function Lf(t) {
5449
5451
  const u = new Intl.NumberFormat(o), f = yt(i), { maxCategoryCount: h } = f;
5450
5452
  let m = l.modalHeaders.invalidChart;
5451
5453
  switch (e) {
5452
- case V.BarElementExceedsLimit: {
5454
+ case W.BarElementExceedsLimit: {
5453
5455
  m = l.modalHeaders.tooManyFeatures;
5454
- let x = Number.NaN, S = Number.NaN, v = "";
5455
- n !== void 0 && (n <= f.maxBarChartSeriesCount ? n === 1 ? (v = l.errors.uniqueSeriesBarCountCannotExceedLimit, x = f.maxBarUniqueSeriesCountTotal) : n === 2 ? (v = l.errors.twoSeriesBarCountCannotExceedLimit, x = f.maxBarTwoSeriesCountTotal, S = f.maxBarTwoSeriesCountPerSeries) : n > 2 && (v = l.errors.threePlusSeriesBarCountCannotExceedLimit, x = f.maxBarThreePlusSeriesCountTotal, S = f.maxBarThreePlusSeriesCountPerSeries) : (v = l.errors.barSeriesCountCannotExceedLimit, S = f.maxBarChartSeriesCount));
5456
- const F = u.format(x), w = u.format(S), T = r !== void 0 ? u.format(r) : "";
5456
+ let S = Number.NaN, x = Number.NaN, v = "";
5457
+ n !== void 0 && (n <= f.maxBarChartSeriesCount ? n === 1 ? (v = l.errors.uniqueSeriesBarCountCannotExceedLimit, S = f.maxBarUniqueSeriesCountTotal) : n === 2 ? (v = l.errors.twoSeriesBarCountCannotExceedLimit, S = f.maxBarTwoSeriesCountTotal, x = f.maxBarTwoSeriesCountPerSeries) : n > 2 && (v = l.errors.threePlusSeriesBarCountCannotExceedLimit, S = f.maxBarThreePlusSeriesCountTotal, x = f.maxBarThreePlusSeriesCountPerSeries) : (v = l.errors.barSeriesCountCannotExceedLimit, x = f.maxBarChartSeriesCount));
5458
+ const F = u.format(S), T = u.format(x), w = r !== void 0 ? u.format(r) : "";
5457
5459
  c = ie(v, {
5458
5460
  totalLimit: F,
5459
- seriesLimit: w,
5460
- elementCount: T
5461
+ seriesLimit: T,
5462
+ elementCount: w
5461
5463
  }), p = {
5462
5464
  actualCount: r ?? Number.NaN,
5463
- totalLimit: x,
5464
- seriesLimit: S
5465
+ totalLimit: S,
5466
+ seriesLimit: x
5465
5467
  };
5466
5468
  break;
5467
5469
  }
5468
- case V.LineChartExceedsLimit:
5470
+ case W.LineChartExceedsLimit:
5469
5471
  {
5470
5472
  m = l.modalHeaders.tooManyFeatures;
5471
- let x = Number.NaN, S = Number.NaN, v = "";
5472
- n !== void 0 && (n <= f.maxLineChartSeriesCount ? n === 1 ? (v = d ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, x = f.maxLineUniqueSeriesCountTotal) : n === 2 ? (v = d ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, x = f.maxLineTwoSeriesCountTotal, S = f.maxLineTwoSeriesCountPerSeries) : n > 2 && (v = d ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, x = f.maxLineThreePlusSeriesCountTotal, S = f.maxLineThreePlusSeriesCountPerSeries) : (v = l.errors.lineSeriesCountCannotExceedLimit, S = f.maxLineChartSeriesCount));
5473
- const F = u.format(x), w = u.format(S), T = r !== void 0 ? u.format(r) : "";
5473
+ let S = Number.NaN, x = Number.NaN, v = "";
5474
+ n !== void 0 && (n <= f.maxLineChartSeriesCount ? n === 1 ? (v = d ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, S = f.maxLineUniqueSeriesCountTotal) : n === 2 ? (v = d ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, S = f.maxLineTwoSeriesCountTotal, x = f.maxLineTwoSeriesCountPerSeries) : n > 2 && (v = d ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, S = f.maxLineThreePlusSeriesCountTotal, x = f.maxLineThreePlusSeriesCountPerSeries) : (v = l.errors.lineSeriesCountCannotExceedLimit, x = f.maxLineChartSeriesCount));
5475
+ const F = u.format(S), T = u.format(x), w = r !== void 0 ? u.format(r) : "";
5474
5476
  c = ie(v, {
5475
- elementCount: T,
5476
- seriesLimit: w,
5477
+ elementCount: w,
5478
+ seriesLimit: T,
5477
5479
  totalLimit: F
5478
5480
  }), p = {
5479
5481
  actualCount: r ?? Number.NaN,
5480
- totalLimit: x,
5481
- seriesLimit: S
5482
+ totalLimit: S,
5483
+ seriesLimit: x
5482
5484
  };
5483
5485
  }
5484
5486
  break;
5485
- case V.BoxPlotExceedsLimit:
5487
+ case W.BoxPlotExceedsLimit:
5486
5488
  {
5487
5489
  m = l.modalHeaders.tooManyFeatures;
5488
- let x = Number.NaN, S = Number.NaN, v = "";
5489
- n !== void 0 && (n <= f.maxBoxPlotSeriesCount ? n === 1 ? (v = l.errors.uniqueSeriesBoxCountCannotExceedLimit, x = f.maxBoxUniqueSeriesCountTotal) : n === 2 ? (v = l.errors.twoSeriesBoxCountCannotExceedLimit, x = f.maxBoxTwoSeriesCountTotal, S = f.maxBoxTwoSeriesCountPerSeries) : n > 2 && (v = l.errors.threePlusBoxLineCountCannotExceedLimit, x = f.maxBoxThreePlusSeriesCountTotal, S = f.maxBoxThreePlusSeriesCountPerSeries) : (v = l.errors.boxSeriesCountCannotExceedLimit, S = f.maxBoxPlotSeriesCount));
5490
- const F = u.format(x), w = u.format(S), T = r !== void 0 ? u.format(r) : "";
5490
+ let S = Number.NaN, x = Number.NaN, v = "";
5491
+ n !== void 0 && (n <= f.maxBoxPlotSeriesCount ? n === 1 ? (v = l.errors.uniqueSeriesBoxCountCannotExceedLimit, S = f.maxBoxUniqueSeriesCountTotal) : n === 2 ? (v = l.errors.twoSeriesBoxCountCannotExceedLimit, S = f.maxBoxTwoSeriesCountTotal, x = f.maxBoxTwoSeriesCountPerSeries) : n > 2 && (v = l.errors.threePlusBoxLineCountCannotExceedLimit, S = f.maxBoxThreePlusSeriesCountTotal, x = f.maxBoxThreePlusSeriesCountPerSeries) : (v = l.errors.boxSeriesCountCannotExceedLimit, x = f.maxBoxPlotSeriesCount));
5492
+ const F = u.format(S), T = u.format(x), w = r !== void 0 ? u.format(r) : "";
5491
5493
  c = ie(v, {
5492
- elementCount: T,
5493
- seriesLimit: w,
5494
+ elementCount: w,
5495
+ seriesLimit: T,
5494
5496
  totalLimit: F
5495
5497
  }), p = {
5496
5498
  actualCount: r ?? Number.NaN,
5497
- totalLimit: x,
5498
- seriesLimit: S
5499
+ totalLimit: S,
5500
+ seriesLimit: x
5499
5501
  };
5500
5502
  }
5501
5503
  break;
5502
- case V.BoxPlotOutliersExceedsLimit:
5504
+ case W.BoxPlotOutliersExceedsLimit:
5503
5505
  {
5504
5506
  m = l.modalHeaders.tooManyFeatures;
5505
- const x = l.errors.boxSeriesOutlierCannotExceedLimit, S = f.maxBoxPlotOutlierLimit, v = u.format(S);
5506
- c = ie(x, {
5507
+ const S = l.errors.boxSeriesOutlierCannotExceedLimit, x = f.maxBoxPlotOutlierLimit, v = u.format(x);
5508
+ c = ie(S, {
5507
5509
  totalLimit: v
5508
- }), p = { actualCount: r ?? Number.NaN, totalLimit: S };
5510
+ }), p = { actualCount: r ?? Number.NaN, totalLimit: x };
5509
5511
  }
5510
5512
  break;
5511
- case V.HeatChartExceedsLimit:
5513
+ case W.HeatChartExceedsLimit:
5512
5514
  {
5513
5515
  m = l.modalHeaders.tooManyFeatures;
5514
- const x = l.errors.heatChartCannotExceedLimit, S = f.maxHeatChartCellLimit, v = u.format(S), F = r !== void 0 ? u.format(r) : "";
5515
- c = ie(x, {
5516
+ const S = l.errors.heatChartCannotExceedLimit, x = f.maxHeatChartCellLimit, v = u.format(x), F = r !== void 0 ? u.format(r) : "";
5517
+ c = ie(S, {
5516
5518
  featureCount: F,
5517
5519
  totalLimit: v
5518
5520
  }), p = {
5519
5521
  actualCount: r ?? Number.NaN,
5520
- totalLimit: S
5522
+ totalLimit: x
5521
5523
  };
5522
5524
  }
5523
5525
  break;
5524
- case V.PieChartExceedsLimit:
5526
+ case W.PieChartExceedsLimit:
5525
5527
  {
5526
5528
  m = l.modalHeaders.tooManyFeatures;
5527
- const x = l.errors.pieChartSlicesCannotExceedLimit, S = f.maxPieChartSliceCountTotal, v = u.format(S), F = r !== void 0 ? u.format(r) : "";
5528
- c = ie(x, {
5529
+ const S = l.errors.pieChartSlicesCannotExceedLimit, x = f.maxPieChartSliceCountTotal, v = u.format(x), F = r !== void 0 ? u.format(r) : "";
5530
+ c = ie(S, {
5529
5531
  sliceCount: F,
5530
5532
  totalLimit: v
5531
5533
  }), p = {
5532
5534
  actualCount: r ?? Number.NaN,
5533
- totalLimit: S
5535
+ totalLimit: x
5534
5536
  };
5535
5537
  }
5536
5538
  break;
5537
- case V.GaugeExceedsLimit:
5539
+ case W.GaugeExceedsLimit:
5538
5540
  {
5539
5541
  m = l.modalHeaders.tooManyFeatures;
5540
- const x = l.errors.gaugeCannotExceedLimit, S = f.maxGaugeByFeaturesLimit, v = u.format(S), F = r !== void 0 ? u.format(r) : "";
5541
- c = ie(x, {
5542
+ const S = l.errors.gaugeCannotExceedLimit, x = f.maxGaugeByFeaturesLimit, v = u.format(x), F = r !== void 0 ? u.format(r) : "";
5543
+ c = ie(S, {
5542
5544
  featureCount: F,
5543
5545
  totalLimit: v
5544
5546
  }), p = {
5545
5547
  actualCount: r ?? Number.NaN,
5546
- totalLimit: S
5548
+ totalLimit: x
5547
5549
  };
5548
5550
  }
5549
5551
  break;
5550
- case V.PieChartMixOfNegativePositiveSlices:
5552
+ case W.PieChartMixOfNegativePositiveSlices:
5551
5553
  m = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, c = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
5552
5554
  break;
5553
- case V.NegativeValueInSqrtCalculation:
5555
+ case W.NegativeValueInSqrtCalculation:
5554
5556
  m = l.modalHeaders.invalidData, c = l.errors.negativeValueInDataForSqrtTransformation;
5555
5557
  break;
5556
- case V.NegativeValueInLogCalculation:
5558
+ case W.NegativeValueInLogCalculation:
5557
5559
  m = l.modalHeaders.invalidData, c = l.errors.negativeValueInDataForLogTransformation;
5558
5560
  break;
5559
- case V.HistogramEmptyField:
5561
+ case W.HistogramEmptyField:
5560
5562
  s === !0 ? (m = l.modalHeaders.noDataAvailable, c = l.errors.noDataFBSMessage) : Ee(a) ? (m = l.modalHeaders.noDataAvailable, c = l.errors.noDataFBEMessage) : (m = l.modalHeaders.invalidChart, c = l.errors.histogramEmptyField);
5561
5563
  break;
5562
- case V.EmptyDataSet:
5564
+ case W.EmptyDataSet:
5563
5565
  m = l.modalHeaders.noDataAvailable, s === !0 ? c = l.errors.noDataFBSMessage : Ee(a) ? c = l.errors.noDataFBEMessage : c = l.errors.noDataMessage;
5564
5566
  break;
5565
- case V.NegativeValueInXAxisLogScale:
5567
+ case W.NegativeValueInXAxisLogScale:
5566
5568
  c = l.errors.logarithmicXAxisNotPossible;
5567
5569
  break;
5568
- case V.NegativeValueInYAxisLogScale:
5570
+ case W.NegativeValueInYAxisLogScale:
5569
5571
  c = l.errors.logarithmicYAxisNotPossible;
5570
5572
  break;
5571
- case V.BadData:
5573
+ case W.BadData:
5572
5574
  }
5573
- if (c === l.errors.defaultInvalidChart && (e === V.BarElementExceedsLimit || e === V.LineChartExceedsLimit || e === V.HeatChartExceedsLimit || e === V.PieChartExceedsLimit || e === V.GaugeExceedsLimit || e === V.BoxPlotExceedsLimit) && typeof r == "number" && typeof n == "number" && r / n > h) {
5574
- const x = r / n;
5575
+ if (c === l.errors.defaultInvalidChart && (e === W.BarElementExceedsLimit || e === W.LineChartExceedsLimit || e === W.HeatChartExceedsLimit || e === W.PieChartExceedsLimit || e === W.GaugeExceedsLimit || e === W.BoxPlotExceedsLimit) && typeof r == "number" && typeof n == "number" && r / n > h) {
5576
+ const S = r / n;
5575
5577
  c = ie(l.errors.categoryCountCannotExceedLimit, {
5576
- categoryCount: u.format(x),
5578
+ categoryCount: u.format(S),
5577
5579
  maxCategoryCount: u.format(h)
5578
5580
  });
5579
5581
  }
5580
5582
  return {
5581
- keyword: e ?? V.BadData,
5583
+ keyword: e ?? W.BadData,
5582
5584
  header: m,
5583
5585
  message: c,
5584
5586
  params: p
@@ -5587,7 +5589,7 @@ function Lf(t) {
5587
5589
  function Dt(t, e) {
5588
5590
  return `${e}_${t}`;
5589
5591
  }
5590
- function Mi(t) {
5592
+ function Pi(t) {
5591
5593
  const { value: e, mean: i, stdDev: r } = t;
5592
5594
  return (e - i) / r;
5593
5595
  }
@@ -5600,12 +5602,12 @@ function zi(t) {
5600
5602
  };
5601
5603
  const l = se({
5602
5604
  ...d,
5603
- key: P.Average
5605
+ key: O.Average
5604
5606
  }), c = se({
5605
5607
  ...d,
5606
- key: P.StandardDeviation
5608
+ key: O.StandardDeviation
5607
5609
  }), p = a ?? Number(e[l]), u = s ?? Number(e[c]);
5608
- return Number.isFinite(p) && Number.isFinite(u) && Object.values(P).forEach((f) => {
5610
+ return Number.isFinite(p) && Number.isFinite(u) && Object.values(O).forEach((f) => {
5609
5611
  const h = se({
5610
5612
  key: f,
5611
5613
  y: r,
@@ -5621,20 +5623,20 @@ function zi(t) {
5621
5623
  showOutliers: !1,
5622
5624
  standardizeValues: !0
5623
5625
  };
5624
- let x = se(d);
5625
- if (o[x] = Mi({ mean: p, stdDev: u, value: b }), f === P.Min || f === P.Max) {
5626
+ let S = se(d);
5627
+ if (o[S] = Pi({ mean: p, stdDev: u, value: b }), f === O.Min || f === O.Max) {
5626
5628
  d = {
5627
5629
  ...d,
5628
5630
  key: f,
5629
5631
  showOutliers: !0,
5630
5632
  standardizeValues: !0
5631
- }, x = se(d), d = {
5633
+ }, S = se(d), d = {
5632
5634
  ...d,
5633
5635
  standardizeValues: !1,
5634
5636
  splitByValue: n
5635
5637
  };
5636
- const S = se(d);
5637
- b = Number(e[S]), Number.isFinite(b) && (o[x] = Mi({
5638
+ const x = se(d);
5639
+ b = Number(e[x]), Number.isFinite(b) && (o[S] = Pi({
5638
5640
  mean: p,
5639
5641
  stdDev: u,
5640
5642
  value: b
@@ -5740,19 +5742,19 @@ function ql(t, e) {
5740
5742
  s.splitByValue = l;
5741
5743
  const c = se({
5742
5744
  ...s,
5743
- key: P.Min,
5745
+ key: O.Min,
5744
5746
  showOutliers: !0
5745
5747
  }), p = se({
5746
5748
  ...s,
5747
- key: P.Min,
5749
+ key: O.Min,
5748
5750
  showOutliers: !1
5749
5751
  }), u = se({
5750
5752
  ...s,
5751
- key: P.Max,
5753
+ key: O.Max,
5752
5754
  showOutliers: !0
5753
5755
  }), f = se({
5754
5756
  ...s,
5755
- key: P.Max,
5757
+ key: O.Max,
5756
5758
  showOutliers: !1
5757
5759
  });
5758
5760
  d[u] === void 0 && d[f] !== void 0 && (d[u] = d[f]), d[c] === void 0 && d[p] !== void 0 && (d[c] = d[p]);
@@ -5761,40 +5763,40 @@ function ql(t, e) {
5761
5763
  }
5762
5764
  function El(t, e) {
5763
5765
  let i, r;
5764
- const n = t[e[P.IQR]], a = t[e[P.FirstQuartile]], s = t[e[P.ThirdQuartile]];
5766
+ const n = t[e[O.IQR]], a = t[e[O.FirstQuartile]], s = t[e[O.ThirdQuartile]];
5765
5767
  return Number.isFinite(n) && Number.isFinite(a) && Number.isFinite(s) && (i = a - n * 1.5, r = s + n * 1.5), { outlierMinThreshold: i, outlierMaxThreshold: r };
5766
5768
  }
5767
5769
  function sr(t) {
5768
5770
  const { yField: e, xField: i, xValue: r, splitByField: n, splitByValue: a, outlierMaxThreshold: s, outlierMinThreshold: o, target: d } = t;
5769
5771
  let l;
5770
5772
  if (i !== void 0 && r !== void 0) {
5771
- const f = typeof r != "string" ? r : `'${Bi(r)}'`;
5773
+ const f = typeof r != "string" ? r : `'${Ai(r)}'`;
5772
5774
  l = `${i}=${f.toString()}`;
5773
5775
  }
5774
5776
  let c;
5775
5777
  if (n !== void 0 && a !== void 0) {
5776
- const f = typeof a != "string" ? a : `'${Bi(a)}'`;
5778
+ const f = typeof a != "string" ? a : `'${Ai(a)}'`;
5777
5779
  c = `${n}=${f.toString()}`;
5778
5780
  }
5779
5781
  let p;
5780
5782
  return d === "outliers" && o !== s ? p = `(${e}<${o} OR ${e}>${s})` : d === "alternativeData" && (o === s ? p = `(${e}=${o})` : p = `(${e}>=${o} AND ${e}<=${s})`), [l, c, p].filter((f) => f !== void 0).join(" AND ");
5781
5783
  }
5782
5784
  function wn(t) {
5783
- const { data: e, yField: i, x: r, chartSubType: n, splitByField: a } = t, s = n === g.BoxPlotMonoField || n === g.BoxPlotMonoFieldAndCategory || n === g.BoxPlotMonoFieldAndSplitBy || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = Ft(s), d = [], l = [], { maxOperandsPerWhereClause: c } = pi();
5785
+ const { data: e, yField: i, x: r, chartSubType: n, splitByField: a } = t, s = n === g.BoxPlotMonoField || n === g.BoxPlotMonoFieldAndCategory || n === g.BoxPlotMonoFieldAndSplitBy || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = Ft(s), d = [], l = [], { maxOperandsPerWhereClause: c } = ci();
5784
5786
  let p = [], u = [], f = 1;
5785
5787
  return e.forEach((h, m) => {
5786
- const { outlierMinThreshold: b, outlierMaxThreshold: x } = El(h, o);
5787
- if (typeof b == "number" && typeof x == "number") {
5788
- const S = {
5788
+ const { outlierMinThreshold: b, outlierMaxThreshold: S } = El(h, o);
5789
+ if (typeof b == "number" && typeof S == "number") {
5790
+ const x = {
5789
5791
  yField: i,
5790
5792
  outlierMinThreshold: b,
5791
- outlierMaxThreshold: x
5793
+ outlierMaxThreshold: S
5792
5794
  };
5793
- (n === g.BoxPlotMonoFieldAndCategory || n === g.BoxPlotMultiFieldsAndCategory || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in h && (S.xField = r, S.xValue = Rt({
5795
+ (n === g.BoxPlotMonoFieldAndCategory || n === g.BoxPlotMultiFieldsAndCategory || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in h && (x.xField = r, x.xValue = Rt({
5794
5796
  value: h[r],
5795
5797
  dataContext: h,
5796
5798
  keepNullValues: !0
5797
- })), (n === g.BoxPlotMonoFieldAndSplitBy || n === g.BoxPlotMultiFieldsAndSplitBy || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in h && (S.splitByField = a, S.splitByValue = h[a]), p.push(sr({ ...S, target: "outliers" })), u.push(sr({ ...S, target: "alternativeData" })), (f % c === 0 || m === e.length - 1) && (d.push(Z(p, "OR")), l.push(Z(u, "OR")), p = [], u = []);
5799
+ })), (n === g.BoxPlotMonoFieldAndSplitBy || n === g.BoxPlotMultiFieldsAndSplitBy || n === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in h && (x.splitByField = a, x.splitByValue = h[a]), p.push(sr({ ...x, target: "outliers" })), u.push(sr({ ...x, target: "alternativeData" })), (f % c === 0 || m === e.length - 1) && (d.push(Z(p, "OR")), l.push(Z(u, "OR")), p = [], u = []);
5798
5800
  }
5799
5801
  f += 1;
5800
5802
  }), { outliersFilterBatches: d, dataWithoutOutliersFilterBatches: l };
@@ -5806,14 +5808,14 @@ function kl(t) {
5806
5808
  switch (r) {
5807
5809
  case g.BoxPlotMultiFields: {
5808
5810
  const c = Ft(a), p = e[0];
5809
- d = Number(p[c[P.Average]]), l = Number(p[c[P.StandardDeviation]]);
5811
+ d = Number(p[c[O.Average]]), l = Number(p[c[O.StandardDeviation]]);
5810
5812
  break;
5811
5813
  }
5812
5814
  case g.BoxPlotMultiFieldsAndCategory: {
5813
5815
  const c = e.find((p) => p[n] === i[n]);
5814
5816
  if (c !== void 0) {
5815
5817
  const p = Ft(a);
5816
- d = Number(c[p[P.Average]]), l = Number(c[p[P.StandardDeviation]]);
5818
+ d = Number(c[p[O.Average]]), l = Number(c[p[O.StandardDeviation]]);
5817
5819
  }
5818
5820
  break;
5819
5821
  }
@@ -5821,7 +5823,7 @@ function kl(t) {
5821
5823
  const c = e.find((p) => p[o] === i[o]);
5822
5824
  if (c !== void 0) {
5823
5825
  const p = Ft(a);
5824
- d = Number(c[p[P.Average]]), l = Number(c[p[P.StandardDeviation]]);
5826
+ d = Number(c[p[O.Average]]), l = Number(c[p[O.StandardDeviation]]);
5825
5827
  }
5826
5828
  break;
5827
5829
  }
@@ -5829,28 +5831,28 @@ function kl(t) {
5829
5831
  return { mean: d, stdDev: l };
5830
5832
  }
5831
5833
  async function Wl(t) {
5832
- const { seriesConfig: e, data: i, uniqueQuery: r, queryObject: n, meanAndStdDevPerField: a, abortKey: s } = t, o = E(e), d = e[0], { x: l } = d, c = le(d.query?.where), p = W(n), u = Oe(p).idField, f = he(e), h = [];
5833
- for (let x = 0; x < f.length; x += 1) {
5834
- const S = f[x], { outliersFilterBatches: v } = wn({
5834
+ const { seriesConfig: e, data: i, uniqueQuery: r, queryObject: n, meanAndStdDevPerField: a, abortKey: s } = t, o = E(e), d = e[0], { x: l } = d, c = le(d.query?.where), p = k(n), u = Oe(p).idField, f = he(e), h = [];
5835
+ for (let S = 0; S < f.length; S += 1) {
5836
+ const x = f[S], { outliersFilterBatches: v } = wn({
5835
5837
  data: i,
5836
- yField: S,
5838
+ yField: x,
5837
5839
  x: l,
5838
5840
  chartSubType: o,
5839
5841
  splitByField: c
5840
5842
  });
5841
5843
  for (let F = 0; F < v.length; F += 1) {
5842
- const w = v[F];
5843
- if (w !== "") {
5844
- const T = [];
5845
- l !== C.boxPlot.boxPlotCategory && T.push(l), T.push(S), c !== "" && T.push(c), T.push(u);
5844
+ const T = v[F];
5845
+ if (T !== "") {
5846
+ const w = [];
5847
+ l !== C.boxPlot.boxPlotCategory && w.push(l), w.push(x), c !== "" && w.push(c), w.push(u);
5846
5848
  const A = {
5847
5849
  ...r,
5848
- where: Z([r.where, w]),
5850
+ where: Z([r.where, T]),
5849
5851
  groupByFieldsForStatistics: void 0,
5850
5852
  outStatistics: void 0,
5851
5853
  orderByFields: void 0,
5852
5854
  num: void 0,
5853
- outFields: T
5855
+ outFields: w
5854
5856
  };
5855
5857
  h.push(
5856
5858
  Le({
@@ -5865,58 +5867,58 @@ async function Wl(t) {
5865
5867
  }
5866
5868
  }
5867
5869
  const m = await Promise.all(h), b = /* @__PURE__ */ new Map();
5868
- for (let x = 0; x < m.length; x += 1) {
5869
- const S = m[x], v = f[x];
5870
- S.forEach((F) => {
5871
- const w = { ...F.attributes };
5872
- if (w[v] !== void 0) {
5873
- l === C.boxPlot.boxPlotCategory && (w[C.boxPlot.boxPlotCategory] = v);
5874
- let T = {
5875
- key: P.Outlier,
5870
+ for (let S = 0; S < m.length; S += 1) {
5871
+ const x = m[S], v = f[S];
5872
+ x.forEach((F) => {
5873
+ const T = { ...F.attributes };
5874
+ if (T[v] !== void 0) {
5875
+ l === C.boxPlot.boxPlotCategory && (T[C.boxPlot.boxPlotCategory] = v);
5876
+ let w = {
5877
+ key: O.Outlier,
5876
5878
  chartSubType: o
5877
5879
  };
5878
5880
  switch (o) {
5879
5881
  case g.BoxPlotMonoFieldAndSplitBy:
5880
5882
  case g.BoxPlotMultiFieldsAndSplitBy:
5881
5883
  case g.BoxPlotMonoFieldAndCategoryAndSplitBy:
5882
- T = {
5883
- ...T,
5884
- splitByValue: w[c]
5884
+ w = {
5885
+ ...w,
5886
+ splitByValue: T[c]
5885
5887
  };
5886
5888
  break;
5887
5889
  case g.BoxPlotMultiFieldsAndCategory:
5888
- T = {
5889
- ...T,
5890
+ w = {
5891
+ ...w,
5890
5892
  y: v
5891
5893
  };
5892
5894
  break;
5893
5895
  }
5894
- const A = se(T), O = w[v];
5895
- w[A] = O;
5896
- const L = `${w[l]}-${w[c]}-${O}`, M = b.get(L);
5897
- if (w[Q.uniqueIdsName] = [
5898
- ...M?.[Q.uniqueIdsName] ?? [],
5899
- w[u]
5900
- ], delete w[u], Wn(o)) {
5901
- const B = se({
5902
- ...T,
5896
+ const A = se(w), P = T[v];
5897
+ T[A] = P;
5898
+ const D = `${T[l]}-${T[c]}-${P}`, B = b.get(D);
5899
+ if (T[Q.uniqueIdsName] = [
5900
+ ...B?.[Q.uniqueIdsName] ?? [],
5901
+ T[u]
5902
+ ], delete T[u], Wn(o)) {
5903
+ const M = se({
5904
+ ...w,
5903
5905
  standardizeValues: !0
5904
- }), { mean: N, stdDev: R } = kl({
5906
+ }), { mean: L, stdDev: R } = kl({
5905
5907
  data: i,
5906
- outlierDataItem: w,
5908
+ outlierDataItem: T,
5907
5909
  chartSubType: o,
5908
5910
  x: l,
5909
5911
  y: v,
5910
5912
  splitByField: c,
5911
5913
  meanAndStdDevPerField: a
5912
5914
  });
5913
- N !== void 0 && R !== void 0 && (w[B] = Mi({
5914
- value: O,
5915
- mean: N,
5915
+ L !== void 0 && R !== void 0 && (T[M] = Pi({
5916
+ value: P,
5917
+ mean: L,
5916
5918
  stdDev: R
5917
5919
  }));
5918
5920
  }
5919
- delete w[v], w[C.boxPlot.boxPlotOutlierId] = !0, b.set(L, w);
5921
+ delete T[v], T[C.boxPlot.boxPlotOutlierId] = !0, b.set(D, T);
5920
5922
  }
5921
5923
  });
5922
5924
  }
@@ -5925,27 +5927,27 @@ async function Wl(t) {
5925
5927
  async function Vl(t) {
5926
5928
  const { data: e, queryObject: i, uniqueQuery: r, elementCount: n, chartConfig: a, chartLimits: s, abortKey: o } = t;
5927
5929
  let d = [];
5928
- const { series: l, showMean: c } = a, p = mi({ showMean: c, seriesConfig: l }), u = E(l), f = Ke(a), { x: h } = f, m = le(f.query?.where), b = [];
5929
- for (let S = 0; S < p.length; S += 1) {
5930
- const v = p[S], { dataWithoutOutliersFilterBatches: F } = wn({
5930
+ const { series: l, showMean: c } = a, p = hi({ showMean: c, seriesConfig: l }), u = E(l), f = Ke(a), { x: h } = f, m = le(f.query?.where), b = [];
5931
+ for (let x = 0; x < p.length; x += 1) {
5932
+ const v = p[x], { dataWithoutOutliersFilterBatches: F } = wn({
5931
5933
  data: e,
5932
5934
  yField: v,
5933
5935
  x: h,
5934
5936
  chartSubType: u,
5935
5937
  splitByField: m
5936
5938
  });
5937
- for (let w = 0; w < F.length; w += 1) {
5938
- const T = F[w], A = {
5939
+ for (let T = 0; T < F.length; T += 1) {
5940
+ const w = F[T], A = {
5939
5941
  ...r,
5940
- where: Z([r.where, T])
5942
+ where: Z([r.where, w])
5941
5943
  };
5942
5944
  A.outStatistics !== void 0 && (A.outStatistics = A.outStatistics?.filter(
5943
- (O) => (O.statisticType === I.Minimum || O.statisticType === I.Maximum) && O.onStatisticField === v
5944
- ).map((O) => ({
5945
- ...O,
5946
- outStatisticFieldName: `${O.outStatisticFieldName}${C.boxPlot.boxPlotOutliersSuffix}`
5945
+ (P) => (P.statisticType === I.Minimum || P.statisticType === I.Maximum) && P.onStatisticField === v
5946
+ ).map((P) => ({
5947
+ ...P,
5948
+ outStatisticFieldName: `${P.outStatisticFieldName}${C.boxPlot.boxPlotOutliersSuffix}`
5947
5949
  }))), b.push(
5948
- hi({
5950
+ yi({
5949
5951
  queryObject: i,
5950
5952
  uniqueQuery: A,
5951
5953
  chartConfig: a,
@@ -5958,9 +5960,9 @@ async function Vl(t) {
5958
5960
  );
5959
5961
  }
5960
5962
  }
5961
- const x = await Promise.all(b);
5962
- for (let S = 0; S < x.length; S += 1)
5963
- d.push(...x[S]);
5963
+ const S = await Promise.all(b);
5964
+ for (let x = 0; x < S.length; x += 1)
5965
+ d.push(...S[x]);
5964
5966
  return u !== g.BoxPlotMonoFieldAndCategoryAndSplitBy && (d = kt({
5965
5967
  data: d,
5966
5968
  x: m !== void 0 && m !== "" ? m : h
@@ -5971,7 +5973,7 @@ async function jl(t) {
5971
5973
  let a;
5972
5974
  const { series: s, showMean: o } = r, d = E(s);
5973
5975
  if (d === g.BoxPlotMultiFieldsAndCategory || d === g.BoxPlotMultiFieldsAndSplitBy) {
5974
- const l = mi({ showMean: o, seriesConfig: s }), c = {
5976
+ const l = hi({ showMean: o, seriesConfig: s }), c = {
5975
5977
  ...i
5976
5978
  };
5977
5979
  delete c.outStatistics, delete c.groupByFieldsForStatistics, delete c.orderByFields;
@@ -6013,7 +6015,7 @@ function zl(t) {
6013
6015
  });
6014
6016
  }
6015
6017
  function Tn(t) {
6016
- const { chartConfig: e, data: i, calculateZScore: r = !1, meanAndStdDevPerField: n } = t, { series: a, showMean: s } = e, o = Ke(e), d = E(e.series), { x: l } = o, c = mi({ showMean: s, seriesConfig: a });
6018
+ const { chartConfig: e, data: i, calculateZScore: r = !1, meanAndStdDevPerField: n } = t, { series: a, showMean: s } = e, o = Ke(e), d = E(e.series), { x: l } = o, c = hi({ showMean: s, seriesConfig: a });
6017
6019
  let p = i;
6018
6020
  if (i?.[0] !== void 0) {
6019
6021
  const u = le(o.query?.where);
@@ -6163,7 +6165,7 @@ function Ql(t) {
6163
6165
  });
6164
6166
  }
6165
6167
  } else {
6166
- const c = W(n), { idField: p, isTraditionalTypeOID: u } = Oe(c), f = u ? p : "*";
6168
+ const c = k(n), { idField: p, isTraditionalTypeOID: u } = Oe(c), f = u ? p : "*";
6167
6169
  e.outStatistics = [
6168
6170
  {
6169
6171
  statisticType: l.statisticType,
@@ -6177,28 +6179,28 @@ function Ql(t) {
6177
6179
  function Yl(t) {
6178
6180
  const { chartConfig: e, fetchFullBoxPlotData: i } = t, { series: r } = e, n = Bt(e);
6179
6181
  let a = [
6180
- { statisticType: I.Average, suffix: P.Average }
6182
+ { statisticType: I.Average, suffix: O.Average }
6181
6183
  ];
6182
6184
  i === !0 && (a = [
6183
6185
  ...a,
6184
- { statisticType: I.Minimum, suffix: P.Min },
6186
+ { statisticType: I.Minimum, suffix: O.Min },
6185
6187
  {
6186
6188
  statisticType: I.ContinuousPercentile,
6187
6189
  statisticParameters: { value: 0.25 },
6188
- suffix: P.FirstQuartile
6190
+ suffix: O.FirstQuartile
6189
6191
  },
6190
6192
  {
6191
6193
  statisticType: I.ContinuousPercentile,
6192
6194
  statisticParameters: { value: 0.5 },
6193
- suffix: P.Median
6195
+ suffix: O.Median
6194
6196
  },
6195
6197
  {
6196
6198
  statisticType: I.ContinuousPercentile,
6197
6199
  statisticParameters: { value: 0.75 },
6198
- suffix: P.ThirdQuartile
6200
+ suffix: O.ThirdQuartile
6199
6201
  },
6200
- { statisticType: I.Maximum, suffix: P.Max },
6201
- { statisticType: I.StandardDeviation, suffix: P.StandardDeviation }
6202
+ { statisticType: I.Maximum, suffix: O.Max },
6203
+ { statisticType: I.StandardDeviation, suffix: O.StandardDeviation }
6202
6204
  ]);
6203
6205
  const s = /* @__PURE__ */ new Set();
6204
6206
  return n && "y" in r[0] ? [r[0].y].flat().forEach((d) => s.add(d)) : r.forEach((d) => {
@@ -6260,59 +6262,59 @@ function _i(t) {
6260
6262
  seriesConfig: p,
6261
6263
  queryObject: n
6262
6264
  });
6263
- let b = /* @__PURE__ */ new Map(), x = !1, S = !1, v = !1, F = !1, w = !1, T = {};
6265
+ let b = /* @__PURE__ */ new Map(), S = !1, x = !1, v = !1, F = !1, T = !1, w = {};
6264
6266
  if (u !== void 0) {
6265
- T = wt(u);
6266
- const _ = le(u.where);
6267
- let D = "";
6268
- switch (i.fetchNullValues !== !0 && (f !== C.boxPlot.boxPlotCategory && (D = `${f} IS NOT NULL`), _.trim() !== "" && _ !== f && !Ue(u.where) && (D = Z([D, `${_} IS NOT NULL`]))), c) {
6267
+ w = wt(u);
6268
+ const z = le(u.where);
6269
+ let N = "";
6270
+ switch (i.fetchNullValues !== !0 && (f !== C.boxPlot.boxPlotCategory && (N = `${f} IS NOT NULL`), z.trim() !== "" && z !== f && !Ue(u.where) && (N = Z([N, `${z} IS NOT NULL`]))), c) {
6269
6271
  case g.BarAndLineSplitBy: {
6270
- b = Ul(l), F = !0, x = !0, S = !0;
6272
+ b = Ul(l), F = !0, S = !0, x = !0;
6271
6273
  break;
6272
6274
  }
6273
6275
  case g.BarAndLineMultiFields:
6274
- Jl(T, l), S = !0;
6276
+ Jl(w, l), x = !0;
6275
6277
  break;
6276
6278
  case g.PieFromFields:
6277
6279
  case g.BarAndLineFromFields:
6278
- D = "", v = !0, S = !0;
6280
+ N = "", v = !0, x = !0;
6279
6281
  break;
6280
6282
  case g.BarAndLineMonoField:
6281
6283
  case g.PieFromCategory:
6282
- S = !0;
6284
+ x = !0;
6283
6285
  break;
6284
6286
  case g.BoxPlotMonoField:
6285
6287
  case g.BoxPlotMultiFields:
6286
- v = !0, w = !0;
6288
+ v = !0, T = !0;
6287
6289
  break;
6288
6290
  case g.BoxPlotMonoFieldAndCategory:
6289
6291
  case g.BoxPlotMultiFieldsAndCategory:
6290
6292
  case g.BoxPlotMonoFieldAndSplitBy:
6291
6293
  case g.BoxPlotMonoFieldAndCategoryAndSplitBy:
6292
6294
  case g.BoxPlotMultiFieldsAndSplitBy: {
6293
- w = !0, F = !0, v = !0;
6295
+ T = !0, F = !0, v = !0;
6294
6296
  break;
6295
6297
  }
6296
6298
  case g.PieNoAggregation:
6297
6299
  case g.BarAndLineNoAggregation:
6298
6300
  case g.BarAndLineSplitByNoAggregation:
6299
6301
  }
6300
- if (S && Ql({
6301
- uniqueQuery: T,
6302
+ if (x && Ql({
6303
+ uniqueQuery: w,
6302
6304
  y: h,
6303
- useGenericOutStatFieldName: x,
6305
+ useGenericOutStatFieldName: S,
6304
6306
  queryObject: n,
6305
6307
  chartSubType: c,
6306
6308
  isTimeBinningSeries: m,
6307
6309
  returnFeaturesExtent: d,
6308
- splitByField: _
6309
- }), F && Hl({ uniqueQuery: T, splitByField: _, x: f }), ye(e) && w && (T.outStatistics = Yl({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete T.orderByFields : i.orderByFields !== void 0 && (T.orderByFields = i.orderByFields.filter((J) => {
6310
+ splitByField: z
6311
+ }), F && Hl({ uniqueQuery: w, splitByField: z, x: f }), ye(e) && T && (w.outStatistics = Yl({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete w.orderByFields : i.orderByFields !== void 0 && (w.orderByFields = i.orderByFields.filter((J) => {
6310
6312
  const we = J.split(" ");
6311
6313
  return !ae(we[0]);
6312
6314
  })), m && Ne(l[0])) {
6313
- const J = W(n), { idFields: we } = yi(J);
6315
+ const J = k(n), { idFields: we } = fi(J);
6314
6316
  Fe(n).find((Me) => Me.name === f)?.type !== H.DateOnly && we && Kl({
6315
- uniqueQuery: T,
6317
+ uniqueQuery: w,
6316
6318
  x: f,
6317
6319
  splitByField: le(u.where),
6318
6320
  unit: a?.unit ?? l[0].temporalBinning?.unit,
@@ -6321,11 +6323,11 @@ function _i(t) {
6321
6323
  runsOnClientQueryEngine: Ee(n)
6322
6324
  });
6323
6325
  }
6324
- T.where = D;
6326
+ w.where = N;
6325
6327
  }
6326
- An({ chartConfig: e, options: r, uniqueQuery: T });
6327
- const { gdbVersion: A, geometry: O, distance: L, units: M, timeExtent: B, where: N, objectIds: R, spatialRelationship: k } = i;
6328
- return A !== void 0 && (T.gdbVersion = A), O !== void 0 && (T.geometry = O), L !== void 0 && (T.distance = L), M !== void 0 && (T.units = M), B !== void 0 && (T.timeExtent = B), R !== void 0 && (T.objectIds = R), k !== void 0 && (T.spatialRelationship = k), N !== void 0 && (T.where = Z([T.where, N])), { uniqueQuery: T, mapToStatField: b };
6328
+ An({ chartConfig: e, options: r, uniqueQuery: w });
6329
+ const { gdbVersion: A, geometry: P, distance: D, units: B, timeExtent: M, where: L, objectIds: R, spatialRelationship: G } = i;
6330
+ return A !== void 0 && (w.gdbVersion = A), P !== void 0 && (w.geometry = P), D !== void 0 && (w.distance = D), B !== void 0 && (w.units = B), M !== void 0 && (w.timeExtent = M), R !== void 0 && (w.objectIds = R), G !== void 0 && (w.spatialRelationship = G), L !== void 0 && (w.where = Z([w.where, L])), { uniqueQuery: w, mapToStatField: b };
6329
6331
  }
6330
6332
  async function Xl(t) {
6331
6333
  const { queryObject: e, queryConfig: i, chartConfig: r, abortKey: n } = t, a = r.series[0], { x: s, valueConversion: o } = a, d = Qi(r), l = await Le({
@@ -6455,7 +6457,7 @@ function ed(t) {
6455
6457
  function oi(t) {
6456
6458
  const { arrayToSort: e, chartConfig: i, fieldList: r, isTimeBinningSeries: n } = t;
6457
6459
  if (n !== !0 && e[0] !== void 0) {
6458
- const { series: a } = i, s = E(a), o = q(a), d = ke(i), l = Pi(i);
6460
+ const { series: a } = i, s = E(a), o = q(a), d = ke(i), l = Oi(i);
6459
6461
  if (At(i) && e !== void 0)
6460
6462
  ed({ arrayToSort: e, chartConfig: i, dataOrderParameters: l });
6461
6463
  else if (l?.[0] !== void 0 && e !== void 0 && e.length > 1) {
@@ -6472,12 +6474,12 @@ function oi(t) {
6472
6474
  preferLabel: f
6473
6475
  });
6474
6476
  else {
6475
- const x = d === y.DateAxisFormat && u;
6477
+ const S = d === y.DateAxisFormat && u;
6476
6478
  $t({
6477
6479
  arrayToSort: e,
6478
6480
  orderBy: c,
6479
6481
  sortingField: p,
6480
- forceAscendingOrder: x,
6482
+ forceAscendingOrder: S,
6481
6483
  isNonAggregated: b,
6482
6484
  sortByCategory: u,
6483
6485
  preferLabel: f,
@@ -6555,28 +6557,28 @@ async function Pf(t) {
6555
6557
  const { data: e, queryObject: i, chartConfig: r, allowColorMatch: n } = t;
6556
6558
  let a = !1, s = [];
6557
6559
  if (n && !de(i)) {
6558
- const { series: o, chartRenderer: d } = r, l = td(d), c = l ? Ct.ChartRenderer : Ct.LayerRenderer, p = i ? W(i) : void 0, u = l ?? p?.renderer;
6560
+ const { series: o, chartRenderer: d } = r, l = td(d), c = l ? Ct.ChartRenderer : Ct.LayerRenderer, p = i ? k(i) : void 0, u = l ?? p?.renderer;
6559
6561
  let f;
6560
6562
  p && c === Ct.LayerRenderer ? s = await an(p) : c === Ct.ChartRenderer && (s = Es(u));
6561
6563
  const h = Ls(l, p?.renderer), m = Ms({
6562
6564
  chartRenderer: d,
6563
6565
  queryObject: i
6564
- }), b = q(o), x = E(o), S = Ke(r), v = le(S.query?.where);
6566
+ }), b = q(o), S = E(o), x = Ke(r), v = le(x.query?.where);
6565
6567
  f = /* @__PURE__ */ new Map();
6566
6568
  for (let F = 0; F < (b === y.HistogramSeries && e.length > 0 ? 1 : e.length); F += 1) {
6567
- const w = e[F], T = await Rs({
6569
+ const T = e[F], w = await Rs({
6568
6570
  seriesConfig: r.series,
6569
- dataItem: w,
6571
+ dataItem: T,
6570
6572
  renderer: u,
6571
6573
  rendererType: h,
6572
6574
  rendererOrigin: c,
6573
- chartSubType: x,
6575
+ chartSubType: S,
6574
6576
  splitByField: v,
6575
6577
  graphicTemplate: m,
6576
6578
  mapAttributesToSymbol: f,
6577
6579
  rendererFieldNames: s
6578
6580
  });
6579
- a = a || T.colorMatchApplied;
6581
+ a = a || w.colorMatchApplied;
6580
6582
  }
6581
6583
  }
6582
6584
  return { dataItems: e, colorMatchApplied: a, rendererFieldNames: s };
@@ -6601,13 +6603,13 @@ function id(t) {
6601
6603
  C.lastTemporalBin,
6602
6604
  C.technicalFieldSplitByField,
6603
6605
  Q.uniqueIdsName,
6604
- j.valueField,
6606
+ V.valueField,
6605
6607
  ...Tr
6606
6608
  ], p = (m, b) => {
6607
- const x = b[C.originalCategoryValue];
6608
- x !== void 0 && n && (b[n] = x);
6609
- const S = b[C.originalYCategoryValue];
6610
- S !== void 0 && a && (b[a] = S), n && b[j.xField] !== void 0 && (b[n] = b[C.originalCategoryValue] !== void 0 ? b[C.originalCategoryValue] : b[j.xField], delete b[j.xField]), a && b[j.yField] !== void 0 && (b[a] = b[C.originalYCategoryValue] !== void 0 ? b[C.originalYCategoryValue] : b[j.yField], delete b[j.yField]), s && b[j.valueField] !== void 0 && (b[s] = b[j.valueField], delete b[j.valueField]);
6609
+ const S = b[C.originalCategoryValue];
6610
+ S !== void 0 && n && (b[n] = S);
6611
+ const x = b[C.originalYCategoryValue];
6612
+ x !== void 0 && a && (b[a] = x), n && b[V.xField] !== void 0 && (b[n] = b[C.originalCategoryValue] !== void 0 ? b[C.originalCategoryValue] : b[V.xField], delete b[V.xField]), a && b[V.yField] !== void 0 && (b[a] = b[C.originalYCategoryValue] !== void 0 ? b[C.originalYCategoryValue] : b[V.yField], delete b[V.yField]), s && b[V.valueField] !== void 0 && (b[s] = b[V.valueField], delete b[V.valueField]);
6611
6613
  const v = {};
6612
6614
  return Object.keys(b).forEach((F) => {
6613
6615
  !c.includes(F) && !F.includes(C.rendererSymbolField) && (v[F] = b[F]);
@@ -6681,7 +6683,7 @@ function Bn(t) {
6681
6683
  let [s, o] = a, d = !0;
6682
6684
  const l = Ee(r);
6683
6685
  if (l) {
6684
- const c = W(r), { fieldsIndex: p } = c;
6686
+ const c = k(r), { fieldsIndex: p } = c;
6685
6687
  s = dr({ fieldsIndex: p, fieldName: e, inputDate: s }), o = dr({ fieldsIndex: p, fieldName: e, inputDate: o });
6686
6688
  } else
6687
6689
  typeof s == "number" && typeof o == "number" ? Number.isFinite(s) && Number.isFinite(o) ? (s = It(s), o = It(o)) : d = !1 : typeof s == "string" && typeof o == "string" && (s = new Date(s).toISOString(), o = new Date(o).toISOString());
@@ -6719,12 +6721,12 @@ function Dn(t) {
6719
6721
  let l = "";
6720
6722
  if (js(s)) {
6721
6723
  const p = E(s.series) === g.BoxPlotMultiFieldsAndCategory ? i : void 0, u = se({
6722
- key: P.Min,
6724
+ key: O.Min,
6723
6725
  showOutliers: !0,
6724
6726
  splitBy: r,
6725
6727
  y: p
6726
6728
  }), f = se({
6727
- key: P.Max,
6729
+ key: O.Max,
6728
6730
  showOutliers: !0,
6729
6731
  splitBy: r,
6730
6732
  y: p
@@ -6792,7 +6794,7 @@ function od(t) {
6792
6794
  let l = "";
6793
6795
  if (d.type === y.HeatSeries) {
6794
6796
  let c, p;
6795
- const u = r[j.xField], f = r[C.originalCategoryValue], h = r[j.yField], m = r[C.originalYCategoryValue], b = n.axes?.[0]?.valueFormat?.type, x = n.axes?.[1]?.valueFormat?.type;
6797
+ const u = r[V.xField], f = r[C.originalCategoryValue], h = r[V.yField], m = r[C.originalYCategoryValue], b = n.axes?.[0]?.valueFormat?.type, S = n.axes?.[1]?.valueFormat?.type;
6796
6798
  b === y.CategoryAxisFormat ? c = Qe({
6797
6799
  where: tt(d.x, f ?? u),
6798
6800
  normalize: !1,
@@ -6805,7 +6807,7 @@ function od(t) {
6805
6807
  outTimeZone: a,
6806
6808
  dataTimeZone: s,
6807
6809
  runsOnClientQueryEngine: o
6808
- }), x === y.CategoryAxisFormat ? p = Qe({
6810
+ }), S === y.CategoryAxisFormat ? p = Qe({
6809
6811
  where: tt(d.y, m ?? h),
6810
6812
  normalize: !1,
6811
6813
  escape: !0
@@ -6867,53 +6869,53 @@ async function dd(t) {
6867
6869
  let l = { valid: !0, data: { dataItems: [] } };
6868
6870
  if (n !== void 0 && n.length > 0) {
6869
6871
  const c = Ke(r), { x: p } = c, u = "y" in c ? c.y : "", h = Fe(e).find((F) => F.name === p)?.type, m = [], b = n.reduce(
6870
- (F, w) => {
6871
- const T = [];
6872
- if (Q.uniqueIdsName in w)
6873
- m.push(w[Q.uniqueIdsName]);
6872
+ (F, T) => {
6873
+ const w = [];
6874
+ if (Q.uniqueIdsName in T)
6875
+ m.push(T[Q.uniqueIdsName]);
6874
6876
  else {
6875
6877
  switch (d) {
6876
6878
  case g.BoxPlotMonoFieldAndSplitBy:
6877
6879
  case g.BoxPlotMultiFieldsAndSplitBy:
6878
6880
  case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
6879
- const L = le(c.query?.where ?? ""), M = `_${P.Average}`;
6880
- Object.keys(w).forEach((B) => {
6881
- if (B.includes(M)) {
6882
- const N = B.replace(M, "");
6883
- N.trim() !== "" && T.push(tt(L, N));
6881
+ const D = le(c.query?.where ?? ""), B = `_${O.Average}`;
6882
+ Object.keys(T).forEach((M) => {
6883
+ if (M.includes(B)) {
6884
+ const L = M.replace(B, "");
6885
+ L.trim() !== "" && w.push(tt(D, L));
6884
6886
  }
6885
6887
  });
6886
6888
  break;
6887
6889
  }
6888
6890
  }
6889
6891
  const A = [u].flat();
6890
- let O = A.length === 1 ? A[0] : "";
6892
+ let P = A.length === 1 ? A[0] : "";
6891
6893
  if (d === g.BoxPlotMultiFieldsAndCategory) {
6892
- const L = `_${P.FirstQuartile}`, M = Object.keys(w).find((B) => B.includes(L));
6893
- M !== void 0 && (O = M.replace(L, ""));
6894
+ const D = `_${O.FirstQuartile}`, B = Object.keys(T).find((M) => M.includes(D));
6895
+ B !== void 0 && (P = B.replace(D, ""));
6894
6896
  }
6895
- T.length === 0 && T.push(""), T.forEach((L) => {
6896
- const M = Dn({
6897
+ w.length === 0 && w.push(""), w.forEach((D) => {
6898
+ const B = Dn({
6897
6899
  chartConfig: r,
6898
6900
  xAxisField: p,
6899
- yAxisField: O,
6900
- splitBy: L,
6901
- dataContext: w,
6901
+ yAxisField: P,
6902
+ splitBy: D,
6903
+ dataContext: T,
6902
6904
  xAxisFieldType: h
6903
6905
  });
6904
- F.push(M);
6906
+ F.push(B);
6905
6907
  });
6906
6908
  }
6907
6909
  return F;
6908
6910
  },
6909
6911
  []
6910
- ), x = W(e);
6911
- if (x !== void 0 && m.length > 0) {
6912
- const F = Oe(x).idField;
6912
+ ), S = k(e);
6913
+ if (S !== void 0 && m.length > 0) {
6914
+ const F = Oe(S).idField;
6913
6915
  b.push(`${F} IN (${m.join(",")})`);
6914
6916
  }
6915
- const S = b.join(" OR "), v = { ...i };
6916
- v.where = Z([v.where, S]), l = await Gi({
6917
+ const x = b.join(" OR "), v = { ...i };
6918
+ v.where = Z([v.where, x]), l = await Gi({
6917
6919
  queryObject: e,
6918
6920
  chartConfig: r,
6919
6921
  queryConfig: v,
@@ -6946,10 +6948,10 @@ async function cd(t) {
6946
6948
  break;
6947
6949
  case y.PieSeries:
6948
6950
  if (E(r.series) === g.PieFromFields) {
6949
- const { x: m, y: b } = r.series[0], x = wt(f);
6950
- x.forEach((S) => {
6951
- m in S && (S[me] = S[m], delete S[m]), b in S && (S[De] = S[b], delete S[b]);
6952
- }), u.data = { dataItems: x };
6951
+ const { x: m, y: b } = r.series[0], S = wt(f);
6952
+ S.forEach((x) => {
6953
+ m in x && (x[me] = x[m], delete x[m]), b in x && (x[De] = x[b], delete x[b]);
6954
+ }), u.data = { dataItems: S };
6953
6955
  } else
6954
6956
  u.data = { dataItems: f };
6955
6957
  u.count = f.length, h = !0;
@@ -6979,14 +6981,14 @@ async function cd(t) {
6979
6981
  else {
6980
6982
  const m = { ...i };
6981
6983
  if (n !== void 0 && n.length > 0) {
6982
- const x = n.map(
6984
+ const S = n.map(
6983
6985
  (v) => Bn({
6984
6986
  xAxisField: l[0].x,
6985
6987
  dataContext: v,
6986
6988
  queryObject: e
6987
6989
  })
6988
- ), S = Z(x, "OR");
6989
- m.where = Z([m.where, S]);
6990
+ ), x = Z(S, "OR");
6991
+ m.where = Z([m.where, x]);
6990
6992
  }
6991
6993
  u = await Hi({
6992
6994
  queryObject: e,
@@ -7008,13 +7010,13 @@ async function cd(t) {
7008
7010
  }, u.count = 0;
7009
7011
  else {
7010
7012
  const { x: m } = l[0], b = f.map((v, F) => {
7011
- const { minValue: w, maxValue: T } = v, A = F === f.length - 1 ? "<=" : "<";
7012
- return `${m} >= ${w} AND ${m} ${A} ${T}`;
7013
- }), x = Z(b, "OR"), S = { ...i };
7014
- S.where = Z([S.where, x]), u = await Cn({
7013
+ const { minValue: T, maxValue: w } = v, A = F === f.length - 1 ? "<=" : "<";
7014
+ return `${m} >= ${T} AND ${m} ${A} ${w}`;
7015
+ }), S = Z(b, "OR"), x = { ...i };
7016
+ x.where = Z([x.where, S]), u = await Cn({
7015
7017
  queryObject: e,
7016
7018
  chartConfig: r,
7017
- queryConfig: S,
7019
+ queryConfig: x,
7018
7020
  options: s,
7019
7021
  errorStrings: o,
7020
7022
  abortKey: d
@@ -7044,7 +7046,7 @@ async function cd(t) {
7044
7046
  async function Gi(t) {
7045
7047
  const { queryObject: e, chartConfig: i, queryConfig: r, options: n, errorStrings: a, abortKey: s } = t;
7046
7048
  let o = { valid: !0 };
7047
- const d = Bt(i), l = await Ri({
7049
+ const d = Bt(i), l = await Mi({
7048
7050
  queryObject: e,
7049
7051
  queryConfig: r,
7050
7052
  fetchFullBoxPlotData: !d,
@@ -7057,7 +7059,7 @@ async function Gi(t) {
7057
7059
  else {
7058
7060
  const c = { dataItems: [] };
7059
7061
  c.meanLines = l.data.dataItems;
7060
- const p = Dl(i), u = (await Ri({
7062
+ const p = Dl(i), u = (await Mi({
7061
7063
  queryObject: e,
7062
7064
  queryConfig: r,
7063
7065
  fetchFullBoxPlotData: !0,
@@ -7137,7 +7139,7 @@ async function pd(t) {
7137
7139
  setTimeBinningInfoWhenNotProvided: n?.setTimeBinningInfoWhenNotProvided,
7138
7140
  seriesConfig: p[0],
7139
7141
  queryObject: e
7140
- }) ? h = await Hi(m) : h = await Ri(m);
7142
+ }) ? h = await Hi(m) : h = await Mi(m);
7141
7143
  break;
7142
7144
  }
7143
7145
  case y.ScatterSeries:
@@ -7374,32 +7376,32 @@ function Sd(t) {
7374
7376
  const { unit: o } = r, d = r.size ?? 1, l = i[0], { x: c } = l;
7375
7377
  let p, u;
7376
7378
  if (Ne(l) && (u = l.temporalBinning?.nullPolicy, p = l.temporalBinning?.timeAggregationType), d > 1 || o === $.Week || o === $.Month || o === $.Year) {
7377
- const { query: f } = i[0], h = he(i), { statisticType: m } = f?.outStatistics?.[0] ?? di;
7378
- let b = !1, x = p === re.End ? e.length - 1 : 0;
7379
- const S = {
7380
- binFirstOrLastIndex: x,
7379
+ const { query: f } = i[0], h = he(i), { statisticType: m } = f?.outStatistics?.[0] ?? $i;
7380
+ let b = !1, S = p === re.End ? e.length - 1 : 0;
7381
+ const x = {
7382
+ binFirstOrLastIndex: S,
7381
7383
  data: e,
7382
7384
  x: c,
7383
7385
  timeIntervalInfo: r
7384
7386
  };
7385
7387
  for (; !b; ) {
7386
7388
  let v = {};
7387
- const { binStartDate: F, binEndDate: w, last: T, nextBinFirstOrLastIndex: A, sliceStartIndex: O, sliceEndIndex: L } = p === re.End ? (
7389
+ const { binStartDate: F, binEndDate: T, last: w, nextBinFirstOrLastIndex: A, sliceStartIndex: P, sliceEndIndex: D } = p === re.End ? (
7388
7390
  // When grouping from the end we'll start from the last date and move backward to create the bins
7389
- gd(S)
7391
+ gd(x)
7390
7392
  ) : (
7391
7393
  // When grouping from the start we'll start from the first date and move forward to create the bins
7392
- md(S)
7394
+ md(x)
7393
7395
  );
7394
- if (b = T, v = p === re.End ? v = e[L - 1] : v = e[x], w > a && F < a || F < n && w > n || F >= n && w <= a) {
7395
- const M = e.slice(O, L).filter((R) => !(C.dateBinModel in R));
7396
+ if (b = w, v = p === re.End ? v = e[D - 1] : v = e[S], T > a && F < a || F < n && T > n || F >= n && T <= a) {
7397
+ const B = e.slice(P, D).filter((R) => !(C.dateBinModel in R));
7396
7398
  h.forEach((R) => {
7397
- v[R] = bd({ binsToRegroup: M, statisticType: m, y: R, nullPolicy: u });
7399
+ v[R] = bd({ binsToRegroup: B, statisticType: m, y: R, nullPolicy: u });
7398
7400
  });
7399
- const B = M.map((R) => R[_e]).filter((R) => R !== void 0), N = hs(B);
7400
- N !== void 0 && (v[_e] = N), v[c] = F, v[C.xAxisField] = F, v[C.dateBinningRange] = [F, w], delete v[C.dateBinModel], s.push(v);
7401
- } else T && p !== re.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
7402
- x = A, S.binFirstOrLastIndex = A;
7401
+ const M = B.map((R) => R[_e]).filter((R) => R !== void 0), L = hs(M);
7402
+ L !== void 0 && (v[_e] = L), v[c] = F, v[C.xAxisField] = F, v[C.dateBinningRange] = [F, T], delete v[C.dateBinModel], s.push(v);
7403
+ } else w && p !== re.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
7404
+ S = A, x.binFirstOrLastIndex = A;
7403
7405
  }
7404
7406
  p === re.End && (s = s.reverse());
7405
7407
  } else d === 1 ? s = e.map((f, h) => {
@@ -7473,7 +7475,7 @@ function xd(t) {
7473
7475
  const m = Mn(a);
7474
7476
  if (c === re.End) {
7475
7477
  let b = n[0][l];
7476
- for (let x = 0; x < h; x += 1)
7478
+ for (let S = 0; S < h; S += 1)
7477
7479
  b = it({
7478
7480
  date: b,
7479
7481
  unit: d,
@@ -7487,7 +7489,7 @@ function xd(t) {
7487
7489
  h > 0 && (p = n[n.length - 1][l]);
7488
7490
  } else {
7489
7491
  let b = n[n.length - 1][l];
7490
- for (let x = 0; x < h; x += 1)
7492
+ for (let S = 0; S < h; S += 1)
7491
7493
  b = it({
7492
7494
  date: b,
7493
7495
  unit: d,
@@ -7612,10 +7614,10 @@ function* Id(t) {
7612
7614
  ];
7613
7615
  let u = ut.groupByCaseBegin;
7614
7616
  for (let h = 0; h < n.length; h += 1) {
7615
- const m = n[h], [b, x] = m[C.dateBinningRange], S = It(b), v = It(x);
7617
+ const m = n[h], [b, S] = m[C.dateBinningRange], x = It(b), v = It(S);
7616
7618
  u = Td({
7617
7619
  groupByFieldsForStatistics: u,
7618
- queryStartDate: S,
7620
+ queryStartDate: x,
7619
7621
  queryEndDate: v,
7620
7622
  dateField: d,
7621
7623
  y: [l].flat()[0],
@@ -7638,7 +7640,7 @@ function* Id(t) {
7638
7640
  }
7639
7641
  }
7640
7642
  async function Ad(t) {
7641
- const { queryObject: e, data: i, seriesConfig: r, queryConfig: n } = t, a = i, { statisticType: s } = r[0].query?.outStatistics?.[0] ?? di;
7643
+ const { queryObject: e, data: i, seriesConfig: r, queryConfig: n } = t, a = i, { statisticType: s } = r[0].query?.outStatistics?.[0] ?? $i;
7642
7644
  if (s === I.ContinuousPercentile && a.length > 0) {
7643
7645
  const o = Id({
7644
7646
  queryObject: e,
@@ -7647,7 +7649,7 @@ async function Ad(t) {
7647
7649
  queryConfig: n
7648
7650
  }), d = (await Promise.all(o)).flat();
7649
7651
  if (d.length > 0) {
7650
- const { isInItem: l, expr: c } = ui(d[0].attributes);
7652
+ const { isInItem: l, expr: c } = pi(d[0].attributes);
7651
7653
  l && d.forEach((p) => {
7652
7654
  const u = p.attributes[`${c}`];
7653
7655
  if (u !== void 0) {
@@ -7663,10 +7665,10 @@ async function Ad(t) {
7663
7665
  return a;
7664
7666
  }
7665
7667
  function pr(t) {
7666
- const { dataItem: e, nullPolicy: i, statField: r, aggregationType: n } = t;
7668
+ const { dataItem: e, nullPolicy: i, statField: r } = t;
7667
7669
  if (r) {
7668
- const a = e[r];
7669
- if (n === I.Count && a === 0 || a === void 0 || a === null)
7670
+ const n = e[r];
7671
+ if (n == null)
7670
7672
  switch (!0) {
7671
7673
  case i === Ce.Zero:
7672
7674
  e[r] = 0;
@@ -7682,39 +7684,37 @@ function pr(t) {
7682
7684
  }
7683
7685
  function Bd(t) {
7684
7686
  const { chartConfig: e, queryResults: i, mapToStatField: r, splitByField: n, x: a, y: s, nullPolicy: o, queryObject: d } = t, l = Ur(a), p = Fe(d).find((b) => b.name === a)?.type, u = [], f = e.series[0], h = "temporalBinning" in f ? f.temporalBinning?.trimIncompleteTimeInterval : !1, m = "temporalBinning" in f ? f.temporalBinning?.timeAggregationType : !1;
7685
- return i.forEach((b, x) => {
7686
- if (!(h && (x === 0 && m === re.End || x === i.length - 1 && m === re.Start))) {
7687
+ return i.forEach((b, S) => {
7688
+ if (!(h && (S === 0 && m === re.End || S === i.length - 1 && m === re.Start))) {
7687
7689
  const { attributes: v, stackedAttributes: F } = b;
7688
- let w = v[l.lowerBoundaryAlias], T = v[l.upperBoundaryAlias];
7689
- const A = w, O = T, L = (B, N) => {
7690
- let R = B;
7691
- if (N === H.DateOnly && (typeof B == "string" && B.length === 10 || typeof B == "number"))
7690
+ let T = v[l.lowerBoundaryAlias], w = v[l.upperBoundaryAlias];
7691
+ const A = T, P = w, D = (B, M) => {
7692
+ let L = B;
7693
+ if (M === H.DateOnly && (typeof B == "string" && B.length === 10 || typeof B == "number"))
7692
7694
  if (typeof B == "string") {
7693
- const k = B.split("-");
7694
- k.length === 3 && (R = xe.local(Number(k[0]), Number(k[1]), Number(k[2])).valueOf());
7695
+ const R = B.split("-");
7696
+ R.length === 3 && (L = xe.local(Number(R[0]), Number(R[1]), Number(R[2])).valueOf());
7695
7697
  } else
7696
- R = new Date(B), R = new Date(R.valueOf() + R.getTimezoneOffset() * 6e4), R = xe.local(R.getFullYear(), R.getMonth() + 1, R.getDate()).valueOf();
7697
- else typeof B == "string" && ["+", "-"].forEach((k) => {
7698
- k && B.lastIndexOf(k) === B.length - 6 && (R = new Date(B.slice(0, B.lastIndexOf(k))).valueOf());
7698
+ L = new Date(B), L = new Date(L.valueOf() + L.getTimezoneOffset() * 6e4), L = xe.local(L.getFullYear(), L.getMonth() + 1, L.getDate()).valueOf();
7699
+ else typeof B == "string" && ["+", "-"].forEach((R) => {
7700
+ R && B.lastIndexOf(R) === B.length - 6 && (L = new Date(B.slice(0, B.lastIndexOf(R))).valueOf());
7699
7701
  });
7700
- return R;
7702
+ return L;
7701
7703
  };
7702
- w = L(w, p), T = L(T, p);
7703
- const M = f.query?.outStatistics?.[0].statisticType ?? di.statisticType;
7704
- if (typeof w == "number" && typeof T == "number") {
7704
+ if (T = D(T, p), w = D(w, p), typeof T == "number" && typeof w == "number") {
7705
7705
  const B = { ...v };
7706
- B[C.originalServerBinningRange] = [A, O], B[a] = w, B[C.xAxisField] = w, B[C.dateBinningRange] = [w, T], delete B[l.lowerBoundaryAlias], delete B[l.upperBoundaryAlias], F && n && !ae(n) && r ? F.forEach((k) => {
7707
- const _ = k[n];
7708
- if (_ === null || typeof _ == "string" || typeof _ == "number") {
7709
- const D = r?.get(_);
7710
- D !== void 0 && (B[D] = k[Q.outStatistics?.outStatisticFieldName ?? ""], pr({ dataItem: B, statField: D, nullPolicy: o, aggregationType: M }));
7706
+ B[C.originalServerBinningRange] = [A, P], B[a] = T, B[C.xAxisField] = T, B[C.dateBinningRange] = [T, w], delete B[l.lowerBoundaryAlias], delete B[l.upperBoundaryAlias], F && n && !ae(n) && r ? F.forEach((R) => {
7707
+ const G = R[n];
7708
+ if (G === null || typeof G == "string" || typeof G == "number") {
7709
+ const z = r?.get(G);
7710
+ z !== void 0 && (B[z] = R[Q.outStatistics?.outStatisticFieldName ?? ""], pr({ dataItem: B, statField: z, nullPolicy: o }));
7711
7711
  }
7712
- }) : typeof s == "string" && pr({ dataItem: B, statField: s, nullPolicy: o, aggregationType: M });
7713
- const { featureExtent: N, featureExtentKey: R } = Rn({
7712
+ }) : typeof s == "string" && pr({ dataItem: B, statField: s, nullPolicy: o });
7713
+ const { featureExtent: M, featureExtentKey: L } = Rn({
7714
7714
  feature: b,
7715
7715
  splitByField: n
7716
7716
  });
7717
- N && (B[R] = N), u.push(B);
7717
+ M && (B[L] = M), u.push(B);
7718
7718
  }
7719
7719
  }
7720
7720
  }), u;
@@ -7776,10 +7776,10 @@ function Nd(t) {
7776
7776
  let r, n, { dateMinTimestamp: a, dateMaxTimestamp: s } = e;
7777
7777
  if (a && s) {
7778
7778
  typeof a == "string" && (a = new Date(a).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
7779
- const o = Dd(i), d = (s - a) / o, l = hr.findIndex((x) => x.threshold > d), c = hr[l], { unitMs: p, preferredIntervalSize: u } = c;
7779
+ const o = Dd(i), d = (s - a) / o, l = hr.findIndex((S) => S.threshold > d), c = hr[l], { unitMs: p, preferredIntervalSize: u } = c;
7780
7780
  ({ unit: r } = c);
7781
7781
  const f = d / p, h = u.findIndex(
7782
- (x) => x >= f
7782
+ (S) => S >= f
7783
7783
  ), m = u[h], b = h === 0 ? u[0] : u[h - 1];
7784
7784
  n = m - f < f - b ? m : b;
7785
7785
  }
@@ -7790,7 +7790,7 @@ function Od(t) {
7790
7790
  let n = !1;
7791
7791
  if (Ne(e) && i) {
7792
7792
  const { unit: a, size: s } = e.temporalBinning ?? {};
7793
- n = !Ii(a, s) && r === !0;
7793
+ n = !Ti(a, s) && r === !0;
7794
7794
  }
7795
7795
  return n;
7796
7796
  }
@@ -7865,17 +7865,17 @@ function Rd(t, e) {
7865
7865
  function $d(t, e) {
7866
7866
  const i = e, r = he(t), n = r.length === 1;
7867
7867
  return r.forEach((a) => {
7868
- const s = Ft(n ? void 0 : a), o = i[s[P.FirstQuartile]], d = i[s[P.ThirdQuartile]];
7869
- Number.isFinite(o) && Number.isFinite(d) && d >= o && (i[s[P.IQR]] = d - o);
7868
+ const s = Ft(n ? void 0 : a), o = i[s[O.FirstQuartile]], d = i[s[O.ThirdQuartile]];
7869
+ Number.isFinite(o) && Number.isFinite(d) && d >= o && (i[s[O.IQR]] = d - o);
7870
7870
  }), i;
7871
7871
  }
7872
7872
  function qd(t, e) {
7873
7873
  const i = e.series[0], r = t;
7874
7874
  if (i.type === y.HeatSeries) {
7875
7875
  const { x: n, y: a } = i;
7876
- r[j.xField] = r[n]?.toString(), delete r[n], r[j.yField] = r[a]?.toString(), delete r[a];
7876
+ r[V.xField] = r[n]?.toString(), delete r[n], r[V.yField] = r[a]?.toString(), delete r[a];
7877
7877
  const s = i.query?.outStatistics?.[0]?.outStatisticFieldName;
7878
- s && (r[j.valueField] = r[s], delete r[s]);
7878
+ s && (r[V.valueField] = r[s], delete r[s]);
7879
7879
  }
7880
7880
  return r;
7881
7881
  }
@@ -7980,7 +7980,7 @@ function Ud(t) {
7980
7980
  yAxisValueFormat: p
7981
7981
  } = t;
7982
7982
  let u, f;
7983
- l !== g.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (u = Oi(i, s)), o && d === y.HeatSeries && typeof a == "string" && (typeof r == "string" || typeof r == "number") && (f = Oi(r, o)), u !== void 0 && u !== i && (typeof u != "string" || !ce(c)) && (e[C.originalCategoryValue] = e[n], e[n] = u), typeof a == "string" && !ce(p) && f !== void 0 && f !== r && (e[C.originalYCategoryValue] = e[a], e[a] = f));
7983
+ l !== g.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (u = Ni(i, s)), o && d === y.HeatSeries && typeof a == "string" && (typeof r == "string" || typeof r == "number") && (f = Ni(r, o)), u !== void 0 && u !== i && (typeof u != "string" || !ce(c)) && (e[C.originalCategoryValue] = e[n], e[n] = u), typeof a == "string" && !ce(p) && f !== void 0 && f !== r && (e[C.originalYCategoryValue] = e[a], e[a] = f));
7984
7984
  }
7985
7985
  function Hd(t) {
7986
7986
  let e;
@@ -7999,50 +7999,50 @@ function $n(t) {
7999
7999
  showMean: d,
8000
8000
  chartLimits: l,
8001
8001
  fieldList: c
8002
- } = t, { series: p } = r, u = E(p), f = q(p), { x: h } = p[0], m = "y" in p[0] ? p[0].y : void 0, b = p[0].query?.outStatistics ?? [], x = ze(r?.axes?.[0]?.valueFormat), { originalYCategoryValue: S, originalCategoryValue: v, originalDateValue: F } = C, w = Ni(e, h), T = typeof m == "string" ? Ni(e, m) : void 0, O = Ko(c ?? []).includes(h), L = [];
8003
- let M = 0;
8004
- const B = /* @__PURE__ */ new Set(), { maxCategoryCount: N } = yt(l), R = _d({ queryResponse: i, chartConfig: r, maxCategoryCount: N });
8005
- for (let k = 0; R[k] && k < R.length && !(o !== void 0 && M >= o); k += 1) {
8006
- M += jd(u, r);
8007
- const _ = R[k];
8008
- let D = { ..._.attributes };
8009
- if (Gd({ attributes: D, uniqueCategoryList: B, maxCategoryCount: N, x: h, chartSubType: u }))
8002
+ } = t, { series: p } = r, u = E(p), f = q(p), { x: h } = p[0], m = "y" in p[0] ? p[0].y : void 0, b = p[0].query?.outStatistics ?? [], S = ze(r?.axes?.[0]?.valueFormat), { originalYCategoryValue: x, originalCategoryValue: v, originalDateValue: F } = C, T = Di(e, h), w = typeof m == "string" ? Di(e, m) : void 0, P = Ko(c ?? []).includes(h), D = [];
8003
+ let B = 0;
8004
+ const M = /* @__PURE__ */ new Set(), { maxCategoryCount: L } = yt(l), R = _d({ queryResponse: i, chartConfig: r, maxCategoryCount: L });
8005
+ for (let G = 0; R[G] && G < R.length && !(o !== void 0 && B >= o); G += 1) {
8006
+ B += jd(u, r);
8007
+ const z = R[G];
8008
+ let N = { ...z.attributes };
8009
+ if (Gd({ attributes: N, uniqueCategoryList: M, maxCategoryCount: L, x: h, chartSubType: u }))
8010
8010
  continue;
8011
- if (Ed(D, p), u === g.PieFromFields || u === g.BarAndLineFromFields)
8012
- D = kd(D, b);
8011
+ if (Ed(N, p), u === g.PieFromFields || u === g.BarAndLineFromFields)
8012
+ N = kd(N, b);
8013
8013
  else if (typeof m == "string" && u === g.BarAndLineSplitByNoAggregation) {
8014
- const Se = W(e), { idField: gt, isTraditionalTypeOID: gi } = Oe(Se);
8015
- Wd({ dataItem: D, splitByField: a, y: m, fieldOID: gi ? gt : void 0 });
8014
+ const Se = k(e), { idField: gt, isTraditionalTypeOID: mi } = Oe(Se);
8015
+ Wd({ dataItem: N, splitByField: a, y: m, fieldOID: mi ? gt : void 0 });
8016
8016
  } else m && (u === g.BoxPlotMonoField || u === g.BoxPlotMonoFieldAndCategory || u === g.BoxPlotMonoFieldAndSplitBy || u === g.BoxPlotMonoFieldAndCategoryAndSplitBy) && Vd(
8017
- D,
8017
+ N,
8018
8018
  typeof m == "string" ? m : m[0]
8019
8019
  );
8020
- zd({ attributes: D, showMean: d, chartSubType: u });
8021
- let J = D[h];
8022
- const we = typeof m == "string" ? D[m] : void 0;
8023
- J === null && p[0]?.query?.fetchNullValues === !0 && u !== g.PieFromFields && (D[v] = null, J = C.nullValue), x || (O && typeof J == "string" ? J = new Date(J).valueOf() : s && (J = Pd(D))), typeof J == "string" && c?.find((Se) => Se.name === h)?.type === H.TimeOnly && (D[v] = J, J = Hd(J));
8024
- const { outStatisticFieldName: Pe } = Q.outStatistics ?? {}, { featureExtent: U, featureExtentKey: Me } = Rn({ feature: _, splitByField: a, chartSubType: u });
8025
- if (U && (D[Me] = U), u === g.BarAndLineSplitBy && Pe !== void 0) {
8026
- const Se = D[a], gt = n?.get(Se);
8027
- gt !== void 0 && (Se === a && (D[C.technicalFieldSplitByField] = D[gt]), D[gt] = D[Pe]), delete D[Pe];
8028
- } else (u === g.PieNoAggregation || u === g.BarAndLineNoAggregation || u === g.BarAndLineSplitByNoAggregation) && (O ? D[F] = J : J !== C.nullValue && (D[v] = J), Wa({ isXAxis: !0, chartType: f, valueFormat: r.axes?.[0]?.valueFormat }) && (D[C.xAxisField] = `${J}-${k}`), D[Q.uniqueIdsName] = _.getObjectId());
8029
- f === y.BoxPlotSeries && (D = $d(p, D)), f === y.PieSeries && typeof J == "number" && (D[v] === void 0 && (D[v] = D[h]), J = `${J}`), J !== void 0 && (D[v] === void 0 && (D[v] = D[h]), D[h] === null ? D[h] = f === y.HeatSeries ? "null" : C.nullValue : D[h] = J, Ud({
8030
- attributes: D,
8020
+ zd({ attributes: N, showMean: d, chartSubType: u });
8021
+ let J = N[h];
8022
+ const we = typeof m == "string" ? N[m] : void 0;
8023
+ J === null && p[0]?.query?.fetchNullValues === !0 && u !== g.PieFromFields && (N[v] = null, J = C.nullValue), S || (P && typeof J == "string" ? J = new Date(J).valueOf() : s && (J = Pd(N))), typeof J == "string" && c?.find((Se) => Se.name === h)?.type === H.TimeOnly && (N[v] = J, J = Hd(J));
8024
+ const { outStatisticFieldName: Pe } = Q.outStatistics ?? {}, { featureExtent: U, featureExtentKey: Me } = Rn({ feature: z, splitByField: a, chartSubType: u });
8025
+ if (U && (N[Me] = U), u === g.BarAndLineSplitBy && Pe !== void 0) {
8026
+ const Se = N[a], gt = n?.get(Se);
8027
+ gt !== void 0 && (Se === a && (N[C.technicalFieldSplitByField] = N[gt]), N[gt] = N[Pe]), delete N[Pe];
8028
+ } else (u === g.PieNoAggregation || u === g.BarAndLineNoAggregation || u === g.BarAndLineSplitByNoAggregation) && (P ? N[F] = J : J !== C.nullValue && (N[v] = J), Wa({ isXAxis: !0, chartType: f, valueFormat: r.axes?.[0]?.valueFormat }) && (N[C.xAxisField] = `${J}-${G}`), N[Q.uniqueIdsName] = z.getObjectId());
8029
+ f === y.BoxPlotSeries && (N = $d(p, N)), f === y.PieSeries && typeof J == "number" && (N[v] === void 0 && (N[v] = N[h]), J = `${J}`), J !== void 0 && (N[v] === void 0 && (N[v] = N[h]), N[h] === null ? N[h] = f === y.HeatSeries ? "null" : C.nullValue : N[h] = J, Ud({
8030
+ attributes: N,
8031
8031
  xValue: J,
8032
8032
  yValue: we,
8033
8033
  x: h,
8034
8034
  y: m,
8035
- xFieldDomain: w,
8036
- yFieldDomain: T,
8035
+ xFieldDomain: T,
8036
+ yFieldDomain: w,
8037
8037
  chartType: f,
8038
8038
  chartSubType: u,
8039
8039
  xAxisValueFormat: r.axes?.[0].valueFormat,
8040
8040
  yAxisValueFormat: r.axes?.[1]?.valueFormat
8041
- }), f === y.HeatSeries && typeof m == "string" && D[m] === null && (D[m] = "null", D[S] = null), D[C.xAxisField] === void 0 && (D[C.xAxisField] = D[h])), D = qd(D, r), L.push(D);
8041
+ }), f === y.HeatSeries && typeof m == "string" && N[m] === null && (N[m] = "null", N[x] = null), N[C.xAxisField] === void 0 && (N[C.xAxisField] = N[h])), N = qd(N, r), D.push(N);
8042
8042
  }
8043
- return L;
8043
+ return D;
8044
8044
  }
8045
- async function hi(t) {
8045
+ async function yi(t) {
8046
8046
  const {
8047
8047
  queryObject: e,
8048
8048
  uniqueQuery: i,
@@ -8062,7 +8062,7 @@ async function hi(t) {
8062
8062
  queryConfig: i,
8063
8063
  featureCount: s,
8064
8064
  abortKey: a
8065
- }), x = Fe(e, c), { x: S } = u[0];
8065
+ }), S = Fe(e, c), { x } = u[0];
8066
8066
  return h = $n({
8067
8067
  queryObject: e,
8068
8068
  queryResponse: b,
@@ -8070,11 +8070,11 @@ async function hi(t) {
8070
8070
  mapToStatField: n,
8071
8071
  splitByField: m,
8072
8072
  isTimeBinningSeries: o,
8073
- fieldList: x,
8073
+ fieldList: S,
8074
8074
  resultLimit: i.num,
8075
8075
  showMean: d,
8076
8076
  chartLimits: l
8077
- }), f !== g.BarAndLineSplitByNoAggregation && f !== g.BarAndLineFromFields && (m !== "" && (h = kt({ data: h, x: S, splitByField: m })), h = Rd(
8077
+ }), f !== g.BarAndLineSplitByNoAggregation && f !== g.BarAndLineFromFields && (m !== "" && (h = kt({ data: h, x, splitByField: m })), h = Rd(
8078
8078
  h,
8079
8079
  u
8080
8080
  )), h;
@@ -8086,11 +8086,11 @@ async function qn(t) {
8086
8086
  (f) => f.statisticType !== I.EnvelopeAggregate
8087
8087
  ).length ?? 0, p = u) : p = await co({ queryObject: i, x: l, chartSubType: d, queryConfig: r, isGaugeByFeature: s }), p !== void 0) {
8088
8088
  const f = d === g.BoxPlotMonoField || d === g.BoxPlotMonoFieldAndCategory || d === g.BoxPlotMonoFieldAndSplitBy;
8089
- u = Ai(d) && !f ? p * c : p;
8089
+ u = Ii(d) && !f ? p * c : p;
8090
8090
  }
8091
8091
  return a === rt.RenderUpToTheLimit && u !== void 0 && n !== void 0 && n < u && (u = n, p = Math.ceil(u / c)), { categoryOrDateCount: p, elementCount: u };
8092
8092
  }
8093
- async function Ri(t) {
8093
+ async function Mi(t) {
8094
8094
  const {
8095
8095
  chartConfig: e,
8096
8096
  queryConfig: i,
@@ -8100,109 +8100,109 @@ async function Ri(t) {
8100
8100
  abortKey: s,
8101
8101
  fieldList: o,
8102
8102
  preFetchedQueryResponse: d
8103
- } = t, l = Bt(e), { chartLimits: c, usePopupTemplateFieldsInfo: p } = n ?? {}, u = n?.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, { behaviorAfterLimit: f } = c ?? {};
8104
- let h;
8105
- const m = { valid: !0 };
8106
- let b, x = !1;
8107
- const S = e.series, v = S[0], F = E(e.series);
8103
+ } = t, l = Bt(e), { chartLimits: c, usePopupTemplateFieldsInfo: p } = n ?? {}, u = n?.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, f = !(n?.hideZeroCountCategories ?? !u), { behaviorAfterLimit: h } = c ?? {};
8104
+ let m;
8105
+ const b = { valid: !0 };
8106
+ let S, x = !1;
8107
+ const v = e.series, F = v[0], T = E(e.series);
8108
8108
  if (de(a))
8109
- h = q(S) === y.BarSeries ? await Dc(t) : m;
8109
+ m = q(v) === y.BarSeries ? await Dc(t) : b;
8110
8110
  else {
8111
- if (v !== void 0) {
8112
- const w = q(S), { uniqueQuery: T, mapToStatField: A } = _i({
8111
+ if (F !== void 0) {
8112
+ const w = q(v), { uniqueQuery: A, mapToStatField: P } = _i({
8113
8113
  chartConfig: e,
8114
8114
  queryObject: a,
8115
8115
  queryConfig: i,
8116
8116
  fetchFullBoxPlotData: r,
8117
8117
  options: n
8118
8118
  });
8119
- let { categoryOrDateCount: O, elementCount: L } = await qn({
8119
+ let { categoryOrDateCount: D, elementCount: B } = await qn({
8120
8120
  chartConfig: e,
8121
8121
  queryObject: a,
8122
8122
  queryConfig: i,
8123
- behaviorAfterLimit: f,
8124
- numberMaxOfFeaturesToFetch: T.num
8123
+ behaviorAfterLimit: h,
8124
+ numberMaxOfFeaturesToFetch: A.num
8125
8125
  });
8126
- const M = !Number.isFinite(L);
8127
- let B = M || Ge({
8128
- count: L ?? 0,
8129
- seriesCount: S.length,
8126
+ const M = !Number.isFinite(B);
8127
+ let L = M || Ge({
8128
+ count: B ?? 0,
8129
+ seriesCount: v.length,
8130
8130
  chartType: w,
8131
8131
  chartLimits: c
8132
8132
  });
8133
- if (B && (b = await hi({
8133
+ if (L && (S = await yi({
8134
8134
  queryObject: a,
8135
- uniqueQuery: T,
8135
+ uniqueQuery: A,
8136
8136
  chartConfig: e,
8137
8137
  preFetchedQueryResponse: d,
8138
- mapToStatField: A,
8139
- elementCount: L,
8138
+ mapToStatField: P,
8139
+ elementCount: B,
8140
8140
  isTimeBinningSeries: !1,
8141
8141
  showMean: l,
8142
8142
  chartLimits: c,
8143
8143
  usePopupTemplateFieldsInfo: p,
8144
8144
  abortKey: s
8145
- }), ye(e) && b !== void 0 && (m.data = await _l({
8146
- data: b,
8145
+ }), ye(e) && S !== void 0 && (b.data = await _l({
8146
+ data: S,
8147
8147
  queryObject: a,
8148
8148
  fetchFullBoxPlotData: r,
8149
- uniqueQuery: T,
8149
+ uniqueQuery: A,
8150
8150
  chartConfig: e,
8151
- elementCount: L,
8151
+ elementCount: B,
8152
8152
  chartLimits: c,
8153
8153
  abortKey: s
8154
- }), c?.maxBoxPlotOutlierLimit !== void 0 && (B = (m.data.outliers ?? []).length <= c.maxBoxPlotOutlierLimit, x = !B)), M && (O = b.length, L = Ai(F) ? O * S.length : O, B = Ge({
8155
- count: L,
8156
- seriesCount: S.length,
8154
+ }), c?.maxBoxPlotOutlierLimit !== void 0 && (L = (b.data.outliers ?? []).length <= c.maxBoxPlotOutlierLimit, x = !L)), M && (D = S.length, B = Ii(T) ? D * v.length : D, L = Ge({
8155
+ count: B,
8156
+ seriesCount: v.length,
8157
8157
  chartType: w,
8158
8158
  chartLimits: c
8159
- })), B)) {
8159
+ })), L)) {
8160
8160
  if (w === y.PieSeries) {
8161
- F === g.PieFromFields && (b = ri({
8162
- dataToConvert: b[0],
8161
+ T === g.PieFromFields && (S = ri({
8162
+ dataToConvert: S[0],
8163
8163
  x: me,
8164
8164
  y: De,
8165
8165
  fieldList: o
8166
8166
  }));
8167
- let N = "";
8168
- F === g.PieFromFields ? N = De : "y" in v && typeof v.y == "string" && (N = v.y), Cs(b, N) ? m.data = { dataItems: b } : Nl(m, V.PieChartMixOfNegativePositiveSlices);
8169
- } else if ((w === y.RadarSeries || w === y.BarSeries || w === y.LineSeries || w === y.ComboLineAndBarSeries) && (F === g.BarAndLineFromFields && "y" in v && typeof v.y == "string" ? b = ri({
8170
- dataToConvert: b[0],
8171
- x: v.x,
8172
- y: v.y,
8167
+ let R = "";
8168
+ T === g.PieFromFields ? R = De : "y" in F && typeof F.y == "string" && (R = F.y), Cs(S, R) ? b.data = { dataItems: S } : Nl(b, W.PieChartMixOfNegativePositiveSlices);
8169
+ } else if ((w === y.RadarSeries || w === y.BarSeries || w === y.LineSeries || w === y.ComboLineAndBarSeries) && (T === g.BarAndLineFromFields && "y" in F && typeof F.y == "string" ? S = ri({
8170
+ dataToConvert: S[0],
8171
+ x: F.x,
8172
+ y: F.y,
8173
8173
  fieldList: o
8174
- }) : b = await fd({
8174
+ }) : S = await fd({
8175
8175
  queryObject: a,
8176
- seriesData: b,
8176
+ seriesData: S,
8177
8177
  chartConfig: e,
8178
8178
  queryConfig: i,
8179
- categoryOrDateCount: O,
8180
- behaviorAfterLimit: f,
8179
+ categoryOrDateCount: D,
8180
+ behaviorAfterLimit: h,
8181
8181
  abortKey: s
8182
- }), L = Ai(F) ? b.length * S.length : b.length, B = Ge({
8183
- count: L,
8184
- seriesCount: S.length,
8182
+ }), B = Ii(T) ? S.length * v.length : S.length, L = Ge({
8183
+ count: B,
8184
+ seriesCount: v.length,
8185
8185
  chartType: w,
8186
8186
  chartLimits: c
8187
- }), B)) {
8188
- u && (b = yd(b, e));
8189
- let N = {};
8190
- if (Ne(v)) {
8191
- const { size: R, unit: k } = v.temporalBinning ?? {};
8192
- R !== void 0 && k !== void 0 && (N = { size: R, unit: k });
8187
+ }), L)) {
8188
+ f && (S = yd(S, e));
8189
+ let R = {};
8190
+ if (Ne(F)) {
8191
+ const { size: G, unit: z } = F.temporalBinning ?? {};
8192
+ G !== void 0 && z !== void 0 && (R = { size: G, unit: z });
8193
8193
  }
8194
- m.data = { dataItems: b, timeIntervalInfo: N };
8194
+ b.data = { dataItems: S, timeIntervalInfo: R };
8195
8195
  }
8196
8196
  }
8197
- B || si({
8198
- dataInfo: m,
8197
+ L || si({
8198
+ dataInfo: b,
8199
8199
  chartType: w,
8200
8200
  subError: { outlierLimit: x }
8201
- }), m.count = L;
8201
+ }), b.count = B;
8202
8202
  }
8203
- h = m;
8203
+ m = b;
8204
8204
  }
8205
- return h;
8205
+ return m;
8206
8206
  }
8207
8207
  function Qd(t) {
8208
8208
  let e;
@@ -8220,18 +8220,18 @@ function Jd(t) {
8220
8220
  const { dataItems: e, valueField: i, filterOutZero: r } = t, n = [null];
8221
8221
  r && n.push(0);
8222
8222
  const a = new Set(
8223
- e.filter((o) => !n.includes(o[i])).map((o) => o[j.xField])
8223
+ e.filter((o) => !n.includes(o[i])).map((o) => o[V.xField])
8224
8224
  ), s = new Set(
8225
- e.filter((o) => !n.includes(o[i])).map((o) => o[j.yField])
8225
+ e.filter((o) => !n.includes(o[i])).map((o) => o[V.yField])
8226
8226
  );
8227
8227
  return e.filter(
8228
- (o) => a.has(o[j.xField]) && s.has(o[j.yField])
8228
+ (o) => a.has(o[V.xField]) && s.has(o[V.yField])
8229
8229
  );
8230
8230
  }
8231
8231
  function Kd(t) {
8232
8232
  const { dataItems: e, xUniqueValues: i, yUniqueValues: r, valueField: n, emptyCellValue: a, x: s, y: o, queryObject: d } = t, l = [], c = /* @__PURE__ */ new Set();
8233
8233
  for (const p of e) {
8234
- const u = p[C.originalCategoryValue] !== void 0 ? p[C.originalCategoryValue] : p[j.xField], f = p[C.originalYCategoryValue] !== void 0 ? p[C.originalYCategoryValue] : p[j.yField];
8234
+ const u = p[C.originalCategoryValue] !== void 0 ? p[C.originalCategoryValue] : p[V.xField], f = p[C.originalYCategoryValue] !== void 0 ? p[C.originalYCategoryValue] : p[V.yField];
8235
8235
  c.add(`${u}|${f}`);
8236
8236
  }
8237
8237
  for (const p of i) {
@@ -8251,8 +8251,8 @@ function Kd(t) {
8251
8251
  l.push({
8252
8252
  [C.originalCategoryValue]: p === null ? null : p,
8253
8253
  [C.originalYCategoryValue]: f === null ? null : f,
8254
- [j.xField]: p === null ? "null" : m,
8255
- [j.yField]: f === null ? "null" : b,
8254
+ [V.xField]: p === null ? "null" : m,
8255
+ [V.yField]: f === null ? "null" : b,
8256
8256
  [n]: a
8257
8257
  });
8258
8258
  }
@@ -8276,13 +8276,13 @@ async function En(t) {
8276
8276
  } = t, d = { valid: !0 };
8277
8277
  let l;
8278
8278
  if (At(e)) {
8279
- const { nullPolicy: c } = e, p = e.series[0], { x: u, y: f, query: h, xTemporalBinning: m, yTemporalBinning: b } = p, x = h?.outStatistics?.[0]?.outStatisticFieldName ?? "", S = h?.outStatistics?.[0]?.statisticType ?? I.Count;
8279
+ const { nullPolicy: c } = e, p = e.series[0], { x: u, y: f, query: h, xTemporalBinning: m, yTemporalBinning: b } = p, S = h?.outStatistics?.[0]?.outStatisticFieldName ?? "", x = h?.outStatistics?.[0]?.statisticType ?? I.Count;
8280
8280
  i?.outStatistics?.[0] && In(i.outStatistics[0]) && !("statisticParameters" in i?.outStatistics[0]) && (i.outStatistics[0].statisticParameters = {
8281
8281
  value: C.defaultStatParameterValue
8282
8282
  });
8283
- const v = Yd(e), F = j.valueField, w = c === Ce.Zero ? 0 : null;
8283
+ const v = Yd(e), F = V.valueField, T = c === Ce.Zero ? 0 : null;
8284
8284
  if (Fn(e)) {
8285
- const T = await oo({
8285
+ const w = await oo({
8286
8286
  chartConfig: e,
8287
8287
  queryObject: r,
8288
8288
  queryConfig: i,
@@ -8291,17 +8291,17 @@ async function En(t) {
8291
8291
  abortKey: o
8292
8292
  });
8293
8293
  if (!Ge({
8294
- count: T?.length ?? 0,
8294
+ count: w?.length ?? 0,
8295
8295
  seriesCount: 1,
8296
8296
  chartType: y.HeatSeries,
8297
8297
  chartLimits: s?.chartLimits
8298
8298
  }))
8299
8299
  si({ dataInfo: d, chartType: y.HeatSeries });
8300
- else if (typeof T?.[0] == "object") {
8300
+ else if (typeof w?.[0] == "object") {
8301
8301
  const A = Fe(r, s?.usePopupTemplateFieldsInfo);
8302
8302
  l = $n({
8303
8303
  queryObject: r,
8304
- queryResponse: T,
8304
+ queryResponse: w,
8305
8305
  chartConfig: e,
8306
8306
  splitByField: "",
8307
8307
  isTimeBinningSeries: !1,
@@ -8309,15 +8309,15 @@ async function En(t) {
8309
8309
  resultLimit: i.num,
8310
8310
  fieldList: A
8311
8311
  });
8312
- const O = await wi({ queryObject: r, queryConfig: i, category: u, abortKey: o }), L = await wi({ queryObject: r, queryConfig: i, category: f, abortKey: o });
8313
- l.length !== O?.length * L?.length && (l = [
8312
+ const P = await Fi({ queryObject: r, queryConfig: i, category: u, abortKey: o }), D = await Fi({ queryObject: r, queryConfig: i, category: f, abortKey: o });
8313
+ l.length !== P?.length * D?.length && (l = [
8314
8314
  ...l,
8315
8315
  ...Kd({
8316
8316
  dataItems: l,
8317
- xUniqueValues: O,
8318
- yUniqueValues: L,
8317
+ xUniqueValues: P,
8318
+ yUniqueValues: D,
8319
8319
  valueField: F,
8320
- emptyCellValue: w,
8320
+ emptyCellValue: T,
8321
8321
  x: u,
8322
8322
  y: f,
8323
8323
  queryObject: r
@@ -8325,48 +8325,48 @@ async function En(t) {
8325
8325
  ], v && (l = Jd({
8326
8326
  dataItems: l,
8327
8327
  valueField: F,
8328
- filterOutZero: S === I.Count
8328
+ filterOutZero: x === I.Count
8329
8329
  })));
8330
8330
  }
8331
8331
  } else {
8332
- const T = await so({
8332
+ const w = await so({
8333
8333
  chartConfig: e,
8334
8334
  queryObject: r,
8335
8335
  queryConfig: i,
8336
8336
  options: s,
8337
8337
  errorStrings: a
8338
- }), A = b ? Qd(b.unit) : await wi({ queryObject: r, queryConfig: i, category: f, abortKey: o });
8339
- let O = 0;
8340
- l = T?.features.flatMap((L) => {
8341
- const M = [], { attributes: B, stackedAttributes: N } = L, R = [];
8342
- if (N?.forEach((k) => {
8343
- const _ = `${k[f]}`;
8344
- R.push(_), M.push({
8345
- [j.xField]: `${B[Q.heatChartLowerBoundaryAlias]}`,
8346
- [j.yField]: _,
8347
- [F]: k[x]
8338
+ }), A = b ? Qd(b.unit) : await Fi({ queryObject: r, queryConfig: i, category: f, abortKey: o });
8339
+ let P = 0;
8340
+ l = w?.features.flatMap((D) => {
8341
+ const B = [], { attributes: M, stackedAttributes: L } = D, R = [];
8342
+ if (L?.forEach((G) => {
8343
+ const z = `${G[f]}`;
8344
+ R.push(z), B.push({
8345
+ [V.xField]: `${M[Q.heatChartLowerBoundaryAlias]}`,
8346
+ [V.yField]: z,
8347
+ [F]: G[S]
8348
8348
  });
8349
8349
  }), n && A && R.length !== A?.length) {
8350
- const k = A.filter((_) => !R.includes(_.toString()));
8351
- v && (k.length !== A.length || R.length === 0) || k.forEach((_) => {
8352
- Number.isFinite(Number(B[Q.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(_)) && (m?.unit === Te.DayOfMonth && b?.unit === Te.MonthOfYear && ur({
8353
- day: Number(B[Q.heatChartLowerBoundaryAlias]),
8354
- month: Number(_),
8350
+ const G = A.filter((z) => !R.includes(z.toString()));
8351
+ v && (G.length !== A.length || R.length === 0) || G.forEach((z) => {
8352
+ Number.isFinite(Number(M[Q.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(z)) && (m?.unit === Te.DayOfMonth && b?.unit === Te.MonthOfYear && ur({
8353
+ day: Number(M[Q.heatChartLowerBoundaryAlias]),
8354
+ month: Number(z),
8355
8355
  includeLeapDay: e.includeLeapDay
8356
8356
  }) || b?.unit === Te.DayOfMonth && m?.unit === Te.MonthOfYear && ur({
8357
- day: Number(_),
8358
- month: Number(B[Q.heatChartLowerBoundaryAlias]),
8357
+ day: Number(z),
8358
+ month: Number(M[Q.heatChartLowerBoundaryAlias]),
8359
8359
  includeLeapDay: e.includeLeapDay
8360
- })) || M.push({
8361
- [j.xField]: `${B[Q.heatChartLowerBoundaryAlias]}`,
8362
- [j.yField]: _,
8360
+ })) || B.push({
8361
+ [V.xField]: `${M[Q.heatChartLowerBoundaryAlias]}`,
8362
+ [V.yField]: z,
8363
8363
  [F]: c === Ce.Zero ? 0 : null
8364
8364
  });
8365
8365
  });
8366
8366
  }
8367
- return O += M.length, M;
8367
+ return P += B.length, B;
8368
8368
  }), Ge({
8369
- count: O,
8369
+ count: P,
8370
8370
  seriesCount: 1,
8371
8371
  chartType: y.HeatSeries,
8372
8372
  chartLimits: s?.chartLimits
@@ -8408,47 +8408,47 @@ async function Hi(t) {
8408
8408
  if (Ne(p)) {
8409
8409
  const { temporalBinning: b } = p;
8410
8410
  if (r && b) {
8411
- const { unit: x, size: S } = b;
8412
- let v = 1, F = { unit: x, size: S }, w = !1;
8413
- const T = Od({
8411
+ const { unit: S, size: x } = b;
8412
+ let v = 1, F = { unit: S, size: x }, T = !1;
8413
+ const w = Od({
8414
8414
  series: p,
8415
8415
  isTimeBinningSeries: !0,
8416
8416
  setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided
8417
- }), A = !qt(r) || T ? await Cd({ queryObject: r, queryConfig: i, x: u }) : void 0;
8418
- T && A && A.numberOfFeatures > 0 && A.dateRange.dateMaxTimestamp !== void 0 && A.dateRange.dateMinTimestamp !== void 0 && (F = Nd(A), Fe(r).find((R) => R.name === u)?.type === H.DateOnly && F.unit !== void 0 && [
8417
+ }), A = !qt(r) || w ? await Cd({ queryObject: r, queryConfig: i, x: u }) : void 0;
8418
+ w && A && A.numberOfFeatures > 0 && A.dateRange.dateMaxTimestamp !== void 0 && A.dateRange.dateMinTimestamp !== void 0 && (F = Nd(A), Fe(r).find((R) => R.name === u)?.type === H.DateOnly && F.unit !== void 0 && [
8419
8419
  $.Hour,
8420
8420
  $.Minute,
8421
8421
  $.Second
8422
8422
  ].includes(F.unit) && (F.unit = $.Day, F.size = 1), b.size = F.size, b.unit = F.unit);
8423
- const { uniqueQuery: O, mapToStatField: L } = _i({
8423
+ const { uniqueQuery: P, mapToStatField: D } = _i({
8424
8424
  chartConfig: e,
8425
8425
  queryConfig: i,
8426
8426
  queryObject: r,
8427
8427
  timeIntervalInfo: F,
8428
8428
  options: a
8429
8429
  });
8430
- let M = Ge({
8430
+ let B = Ge({
8431
8431
  count: v ?? 0,
8432
8432
  seriesCount: c.length,
8433
8433
  chartType: y.LineSeries,
8434
8434
  chartLimits: o
8435
8435
  });
8436
- if (M) {
8436
+ if (B) {
8437
8437
  if (qt(r)) {
8438
- const B = s?.[0] instanceof Sa ? s : await fo({
8438
+ const M = s?.[0] instanceof Sa ? s : await fo({
8439
8439
  queryObject: r,
8440
8440
  dateField: u,
8441
8441
  splitByField: f,
8442
- queryConfig: O,
8442
+ queryConfig: P,
8443
8443
  temporalBinning: b
8444
- }), N = "y" in p && typeof p.y == "string" ? p.y : void 0;
8444
+ }), L = "y" in p && typeof p.y == "string" ? p.y : void 0;
8445
8445
  if (m = Bd({
8446
8446
  chartConfig: e,
8447
- queryResults: B,
8448
- mapToStatField: L,
8447
+ queryResults: M,
8448
+ mapToStatField: D,
8449
8449
  splitByField: f,
8450
8450
  x: u,
8451
- y: N,
8451
+ y: L,
8452
8452
  nullPolicy: b.nullPolicy,
8453
8453
  queryObject: r
8454
8454
  }), !Ge({
@@ -8457,27 +8457,27 @@ async function Hi(t) {
8457
8457
  chartType: y.LineSeries,
8458
8458
  chartLimits: o
8459
8459
  })) {
8460
- const R = he(c), k = m.filter(
8461
- (_) => R.some((D) => D in _ && Number.isFinite(_[D]))
8460
+ const R = he(c), G = m.filter(
8461
+ (z) => R.some((N) => N in z && Number.isFinite(z[N]))
8462
8462
  ).length;
8463
8463
  Ge({
8464
- count: k,
8464
+ count: G,
8465
8465
  seriesCount: c.length,
8466
8466
  chartType: y.LineSeries,
8467
8467
  chartLimits: o
8468
- }) || (M = !1);
8468
+ }) || (B = !1);
8469
8469
  }
8470
8470
  } else if (A?.dateRange.dateMinTimestamp && A.dateRange.dateMaxTimestamp) {
8471
- const { numberOfFinalBinsWithinDataRange: B } = Pn({
8471
+ const { numberOfFinalBinsWithinDataRange: M } = Pn({
8472
8472
  dateMinTimestamp: A.dateRange.dateMinTimestamp,
8473
8473
  dateMaxTimestamp: A.dateRange.dateMaxTimestamp,
8474
8474
  timeIntervalInfo: F
8475
8475
  });
8476
- v = B * c.length, v = On(v, F.unit), m = await hi({
8476
+ v = M * c.length, v = On(v, F.unit), m = await yi({
8477
8477
  queryObject: r,
8478
- uniqueQuery: O,
8478
+ uniqueQuery: P,
8479
8479
  chartConfig: e,
8480
- mapToStatField: L,
8480
+ mapToStatField: D,
8481
8481
  elementCount: v,
8482
8482
  chartLimits: o,
8483
8483
  isTimeBinningSeries: !0,
@@ -8493,9 +8493,9 @@ async function Hi(t) {
8493
8493
  timeIntervalInfo: F
8494
8494
  });
8495
8495
  }
8496
- Vr(r) && m && m?.length === hd && (w = !0), l === rt.RenderUpToTheLimit && m && (m = Xd({ chartConfig: e, options: a, data: m }));
8496
+ Vr(r) && m && m?.length === hd && (T = !0), l === rt.RenderUpToTheLimit && m && (m = Xd({ chartConfig: e, options: a, data: m }));
8497
8497
  }
8498
- M || (h.valid = !1, h.invalidType = V.LineChartExceedsLimit), m && m.length > 0 && (m[m.length - 1][C.lastTemporalBin] = !0), h.data = { dataItems: m, timeIntervalInfo: F, serverLimitReached: w }, h.count = v;
8498
+ B || (h.valid = !1, h.invalidType = W.LineChartExceedsLimit), m && m.length > 0 && (m[m.length - 1][C.lastTemporalBin] = !0), h.data = { dataItems: m, timeIntervalInfo: F, serverLimitReached: T }, h.count = v;
8499
8499
  }
8500
8500
  }
8501
8501
  return h;
@@ -8513,7 +8513,7 @@ async function Zd(t) {
8513
8513
  fetchFullBoxPlotData: !s,
8514
8514
  options: a
8515
8515
  });
8516
- let m = await hi({
8516
+ let m = await yi({
8517
8517
  queryObject: r,
8518
8518
  uniqueQuery: f,
8519
8519
  elementCount: 1,
@@ -8578,16 +8578,16 @@ async function rc(t) {
8578
8578
  dataContextCountDistinctX: p,
8579
8579
  dataContextCountDistinctY: u
8580
8580
  } = C.scatterplotAggregationFields;
8581
- let f, h, m, b, x;
8582
- const S = e.get(o), v = e.get(d), F = e.get(l), w = e.get(c);
8583
- if (S != null && F !== void 0 && F !== null && v !== void 0 && v !== null && w !== void 0 && w !== null && !Number.isNaN(S + v + F + w)) {
8584
- const { maxScatterPointsAfterAggregation: T } = yt(n?.chartLimits), O = Math.floor(Math.sqrt(T)), L = await ic({
8581
+ let f, h, m, b, S;
8582
+ const x = e.get(o), v = e.get(d), F = e.get(l), T = e.get(c);
8583
+ if (x != null && F !== void 0 && F !== null && v !== void 0 && v !== null && T !== void 0 && T !== null && !Number.isNaN(x + v + F + T)) {
8584
+ const { maxScatterPointsAfterAggregation: w } = yt(n?.chartLimits), P = Math.floor(Math.sqrt(w)), D = await ic({
8585
8585
  queryObject: r,
8586
8586
  chartConfig: i,
8587
8587
  queryConfig: a,
8588
8588
  abortKey: s
8589
8589
  });
8590
- m = Math.min(L.get(u) ?? Number.NaN, O), b = Math.min(L.get(p) ?? Number.NaN, O), x = b * m, f = v === S ? 0 : (v - S) / (b - 1), h = w === F ? 0 : (w - F) / (m - 1), e.set(C.scatterplotAggregationFields.xStep, f), e.set(C.scatterplotAggregationFields.yStep, h), e.set(C.scatterplotAggregationFields.rowCount, m), e.set(C.scatterplotAggregationFields.columnCount, b), e.set(C.scatterplotAggregationFields.realGridSize, x);
8590
+ m = Math.min(D.get(u) ?? Number.NaN, P), b = Math.min(D.get(p) ?? Number.NaN, P), S = b * m, f = v === x ? 0 : (v - x) / (b - 1), h = T === F ? 0 : (T - F) / (m - 1), e.set(C.scatterplotAggregationFields.xStep, f), e.set(C.scatterplotAggregationFields.yStep, h), e.set(C.scatterplotAggregationFields.rowCount, m), e.set(C.scatterplotAggregationFields.columnCount, b), e.set(C.scatterplotAggregationFields.realGridSize, S);
8591
8591
  }
8592
8592
  }
8593
8593
  function nc(t) {
@@ -8631,33 +8631,33 @@ async function sc(t) {
8631
8631
  queryNumberOfFeatures: m,
8632
8632
  queryNumberOfAggregatedFeatures: b
8633
8633
  } = C.scatterplotAggregationFields;
8634
- let x;
8635
- const S = e?.get(p) ?? Number.NaN, v = e?.get(u) ?? Number.NaN, F = e?.get(m) ?? Number.NaN, w = e?.get(f) ?? S, T = e?.get(h) ?? v;
8636
- if (S != null && w !== void 0 && w !== null && v !== void 0 && v !== null && T !== void 0 && T !== null && !Number.isNaN(S + v + w + T)) {
8637
- const A = W(r), { idField: O, isTraditionalTypeOID: L } = Oe(A), M = L ? O : "*", B = e?.get(C.scatterplotAggregationFields.xStep), N = e?.get(C.scatterplotAggregationFields.yStep), R = e?.get(C.scatterplotAggregationFields.realGridSize), k = e?.get(C.scatterplotAggregationFields.rowCount), _ = e?.get(C.scatterplotAggregationFields.columnCount), D = /* @__PURE__ */ new Map(), J = Fe(r);
8634
+ let S;
8635
+ const x = e?.get(p) ?? Number.NaN, v = e?.get(u) ?? Number.NaN, F = e?.get(m) ?? Number.NaN, T = e?.get(f) ?? x, w = e?.get(h) ?? v;
8636
+ if (x != null && T !== void 0 && T !== null && v !== void 0 && v !== null && w !== void 0 && w !== null && !Number.isNaN(x + v + T + w)) {
8637
+ const A = k(r), { idField: P, isTraditionalTypeOID: D } = Oe(A), B = D ? P : "*", M = e?.get(C.scatterplotAggregationFields.xStep), L = e?.get(C.scatterplotAggregationFields.yStep), R = e?.get(C.scatterplotAggregationFields.realGridSize), G = e?.get(C.scatterplotAggregationFields.rowCount), z = e?.get(C.scatterplotAggregationFields.columnCount), N = /* @__PURE__ */ new Map(), J = Fe(r);
8638
8638
  if (J?.forEach((U) => {
8639
- Lt(U) && D.set(U.name, {
8639
+ Lt(U) && N.set(U.name, {
8640
8640
  onStatisticField: U.name,
8641
8641
  outStatisticFieldName: U.name,
8642
8642
  statisticType: I.Maximum
8643
8643
  });
8644
8644
  }), (J.filter((U) => d?.additionalTooltipFields?.includes(U.name)) ?? [])?.forEach((U) => {
8645
- Lt(U) || D.set(U.name, {
8645
+ Lt(U) || N.set(U.name, {
8646
8646
  onStatisticField: U.name,
8647
8647
  outStatisticFieldName: U.name,
8648
8648
  statisticType: I.Maximum
8649
8649
  });
8650
8650
  }), (await an(A)).forEach((U) => {
8651
- D.set(U, {
8651
+ N.set(U, {
8652
8652
  onStatisticField: U,
8653
8653
  outStatisticFieldName: U,
8654
8654
  statisticType: I.Maximum
8655
8655
  });
8656
- }), O !== "" && D.set(O, {
8657
- onStatisticField: M,
8656
+ }), P !== "" && N.set(P, {
8657
+ onStatisticField: B,
8658
8658
  outStatisticFieldName: b,
8659
8659
  statisticType: I.Count
8660
- }), D.set(l, {
8660
+ }), N.set(l, {
8661
8661
  onStatisticField: l,
8662
8662
  outStatisticFieldName: l,
8663
8663
  statisticType: I.Maximum
@@ -8665,47 +8665,47 @@ async function sc(t) {
8665
8665
  onStatisticField: c,
8666
8666
  outStatisticFieldName: c,
8667
8667
  statisticType: I.Maximum
8668
- }), B !== void 0 && N !== void 0) {
8668
+ }), M !== void 0 && L !== void 0) {
8669
8669
  if (a) {
8670
8670
  const U = {
8671
8671
  ...n,
8672
- outStatistics: [...D.values()]
8672
+ outStatistics: [...N.values()]
8673
8673
  };
8674
- x = await lo({
8674
+ S = await lo({
8675
8675
  queryObject: r,
8676
8676
  queryConfig: U,
8677
- xStep: B,
8678
- xMin: S,
8677
+ xStep: M,
8678
+ xMin: x,
8679
8679
  xMax: v,
8680
8680
  x: l,
8681
8681
  y: c,
8682
- yStep: N,
8682
+ yStep: L,
8683
8683
  errorStrings: s
8684
8684
  });
8685
- } else if (k !== void 0 && _ !== void 0) {
8685
+ } else if (G !== void 0 && z !== void 0) {
8686
8686
  let U = 0;
8687
- const { maxScatterCellsPerQuery: Me, maxScatterCellsPerQueryForStandard: Se } = pi(), gi = await Xo(A) ? Se : Me, bi = [];
8688
- let Si = !0, bt = S, ot = w, St = "", jt = 1, xi = 1, zt = Number.MAX_SAFE_INTEGER, _t = Number.MIN_SAFE_INTEGER, Gt = Number.MAX_SAFE_INTEGER, Ut = Number.MIN_SAFE_INTEGER;
8689
- for (; xi <= _ && Si; ) {
8690
- for (ot = w, jt = 1; jt <= k && Si; ) {
8687
+ const { maxScatterCellsPerQuery: Me, maxScatterCellsPerQueryForStandard: Se } = ci(), mi = await Xo(A) ? Se : Me, gi = [];
8688
+ let bi = !0, bt = x, ot = T, St = "", jt = 1, Si = 1, zt = Number.MAX_SAFE_INTEGER, _t = Number.MIN_SAFE_INTEGER, Gt = Number.MAX_SAFE_INTEGER, Ut = Number.MIN_SAFE_INTEGER;
8689
+ for (; Si <= z && bi; ) {
8690
+ for (ot = T, jt = 1; jt <= G && bi; ) {
8691
8691
  if (St = nc({
8692
8692
  groupByFieldsForStatistics: St,
8693
8693
  x: l,
8694
8694
  y: c,
8695
8695
  xValue: bt,
8696
8696
  yValue: ot,
8697
- xStep: B,
8698
- yStep: N,
8699
- endOfRow: jt === k,
8700
- endOfColumn: xi === _
8701
- }), bt < zt && (zt = bt), bt + B > _t && (_t = bt + B), ot < Gt && (Gt = ot), ot + B > Ut && (Ut = ot + N), U += 1, U % gi === 0 || U === R || U === F) {
8697
+ xStep: M,
8698
+ yStep: L,
8699
+ endOfRow: jt === G,
8700
+ endOfColumn: Si === z
8701
+ }), bt < zt && (zt = bt), bt + M > _t && (_t = bt + M), ot < Gt && (Gt = ot), ot + M > Ut && (Ut = ot + L), U += 1, U % mi === 0 || U === R || U === F) {
8702
8702
  St = `${St} ${ut.groupByCaseEnd}`;
8703
8703
  const Zn = {
8704
8704
  ...n,
8705
8705
  groupByFieldsForStatistics: [St],
8706
- outStatistics: [...D.values()]
8706
+ outStatistics: [...N.values()]
8707
8707
  };
8708
- bi.push(
8708
+ gi.push(
8709
8709
  ac({
8710
8710
  chartConfig: i,
8711
8711
  queryConfig: Zn,
@@ -8716,17 +8716,17 @@ async function sc(t) {
8716
8716
  yMax: Ut,
8717
8717
  abortKey: o
8718
8718
  })
8719
- ), zt = Number.MAX_SAFE_INTEGER, _t = Number.MIN_SAFE_INTEGER, Gt = Number.MAX_SAFE_INTEGER, Ut = Number.MIN_SAFE_INTEGER, St = "", U === R && (Si = !1);
8719
+ ), zt = Number.MAX_SAFE_INTEGER, _t = Number.MIN_SAFE_INTEGER, Gt = Number.MAX_SAFE_INTEGER, Ut = Number.MIN_SAFE_INTEGER, St = "", U === R && (bi = !1);
8720
8720
  }
8721
- ot += N, jt += 1;
8721
+ ot += L, jt += 1;
8722
8722
  }
8723
- bt += B, xi += 1;
8723
+ bt += M, Si += 1;
8724
8724
  }
8725
- x = (await Promise.all(bi)).flat();
8725
+ S = (await Promise.all(gi)).flat();
8726
8726
  }
8727
8727
  }
8728
8728
  }
8729
- return x;
8729
+ return S;
8730
8730
  }
8731
8731
  async function oc(t) {
8732
8732
  const { chartConfig: e, queryConfig: i, queryObject: r, abortKey: n } = t, a = e.series[0], { x: s, y: o } = a;
@@ -8737,7 +8737,7 @@ async function oc(t) {
8737
8737
  dataContextYMinField: p,
8738
8738
  dataContextYMaxField: u,
8739
8739
  queryNumberOfFeatures: f
8740
- } = C.scatterplotAggregationFields, { idField: h, isTraditionalTypeOID: m } = Oe(W(r)), b = m ? h : "*", x = [
8740
+ } = C.scatterplotAggregationFields, { idField: h, isTraditionalTypeOID: m } = Oe(k(r)), b = m ? h : "*", S = [
8741
8741
  {
8742
8742
  statisticType: I.Count,
8743
8743
  onStatisticField: b,
@@ -8754,7 +8754,7 @@ async function oc(t) {
8754
8754
  onStatisticField: s
8755
8755
  }
8756
8756
  ];
8757
- s !== o && x.push(
8757
+ s !== o && S.push(
8758
8758
  {
8759
8759
  statisticType: I.Minimum,
8760
8760
  outStatisticFieldName: p,
@@ -8766,10 +8766,10 @@ async function oc(t) {
8766
8766
  onStatisticField: o
8767
8767
  }
8768
8768
  );
8769
- const S = { ...i };
8770
- return S.outStatistics = x, d = await Vt({
8769
+ const x = { ...i };
8770
+ return x.outStatistics = S, d = await Vt({
8771
8771
  queryObject: r,
8772
- queryConfig: S,
8772
+ queryConfig: x,
8773
8773
  abortKey: n
8774
8774
  }), s === o && (d.set(p, d.get(l) ?? Number.NaN), d.set(u, d.get(c) ?? Number.NaN)), d;
8775
8775
  }
@@ -8783,40 +8783,40 @@ function lc(t) {
8783
8783
  if (e && "stackedAttributes" in i && i.stackedAttributes) {
8784
8784
  const u = _r(r, n), f = i.attributes[u.lowerBoundaryAlias], h = i.attributes[u.upperBoundaryAlias];
8785
8785
  i.stackedAttributes.forEach((m) => {
8786
- let b = m[u.stackAlias], x;
8787
- typeof b == "number" && typeof a == "number" && (b *= a), typeof b == "number" && typeof a == "number" && (x = b + a);
8788
- const S = m[r], v = m[n];
8789
- typeof b == "number" && typeof x == "number" && typeof S == "number" && typeof v == "number" && p.push({
8786
+ let b = m[u.stackAlias], S;
8787
+ typeof b == "number" && typeof a == "number" && (b *= a), typeof b == "number" && typeof a == "number" && (S = b + a);
8788
+ const x = m[r], v = m[n];
8789
+ typeof b == "number" && typeof S == "number" && typeof x == "number" && typeof v == "number" && p.push({
8790
8790
  ...m,
8791
- [r]: Jt({ value: S, valueMin: f, valueMax: h }),
8792
- [n]: Jt({ value: v, valueMin: b, valueMax: x }),
8791
+ [r]: Jt({ value: x, valueMin: f, valueMax: h }),
8792
+ [n]: Jt({ value: v, valueMin: b, valueMax: S }),
8793
8793
  [o]: Math.min(f, h),
8794
8794
  [d]: Math.max(f, h),
8795
8795
  [l]: b,
8796
- [c]: x
8796
+ [c]: S
8797
8797
  });
8798
8798
  });
8799
8799
  } else {
8800
- const { expr: u, isInItem: f } = ui(i.attributes);
8800
+ const { expr: u, isInItem: f } = pi(i.attributes);
8801
8801
  if (f && u && i.attributes[u] !== s) {
8802
- let [h, m, b, x] = i.attributes[u].split("|");
8803
- h = Math.min(h, m), m = Math.max(h, m), b = Math.min(b, x), x = Math.max(b, x);
8804
- const S = {
8802
+ let [h, m, b, S] = i.attributes[u].split("|");
8803
+ h = Math.min(h, m), m = Math.max(h, m), b = Math.min(b, S), S = Math.max(b, S);
8804
+ const x = {
8805
8805
  ...i.attributes,
8806
8806
  [o]: h,
8807
8807
  [d]: m,
8808
8808
  [l]: b,
8809
- [c]: x
8809
+ [c]: S
8810
8810
  };
8811
- S[r] = Jt({
8812
- value: S[r],
8811
+ x[r] = Jt({
8812
+ value: x[r],
8813
8813
  valueMin: h,
8814
8814
  valueMax: m
8815
- }), S[n] = Jt({
8816
- value: S[n],
8815
+ }), x[n] = Jt({
8816
+ value: x[n],
8817
8817
  valueMin: b,
8818
- valueMax: x
8819
- }), p = [S];
8818
+ valueMax: S
8819
+ }), p = [x];
8820
8820
  }
8821
8821
  }
8822
8822
  return p;
@@ -8834,30 +8834,30 @@ function dc(t) {
8834
8834
  }) : u[0][Q.uniqueIdsName] = p.getObjectId(), u;
8835
8835
  });
8836
8836
  return c = c?.filter((p) => {
8837
- const { expr: u } = ui(p);
8837
+ const { expr: u } = pi(p);
8838
8838
  return Number.isFinite(p[o]) && Number.isFinite(p[d]) && (u === void 0 || p[u] !== ut.groupByOutKeyword);
8839
8839
  }), c ?? [];
8840
8840
  }
8841
8841
  async function cc(t) {
8842
- const { queryObject: e, queryConfig: i, chartConfig: r, featureCount: n, abortKey: a } = t, s = r.series[0], { x: o, y: d } = s, l = W(e);
8842
+ const { queryObject: e, queryConfig: i, chartConfig: r, featureCount: n, abortKey: a } = t, s = r.series[0], { x: o, y: d } = s, l = k(e);
8843
8843
  let c = [];
8844
- const p = Fe(e), u = yi(l).idFields, f = (p?.filter((S) => Lt(S) && S.name !== o && S.name !== d) ?? []).map(
8845
- (S) => S.name
8844
+ const p = Fe(e), u = fi(l).idFields, f = (p?.filter((x) => Lt(x) && x.name !== o && x.name !== d) ?? []).map(
8845
+ (x) => x.name
8846
8846
  ) ?? [], h = s?.additionalTooltipFields ?? [], m = Array.from(
8847
8847
  /* @__PURE__ */ new Set([o, d, ...u ?? [], ...f, ...h])
8848
8848
  ), b = ue(l);
8849
8849
  if (b && !b.isTable) {
8850
- const { rendererField: S, rendererNormalizationField: v } = Yo(l?.renderer ?? void 0);
8851
- ae(S) || m.push(S), ae(v) || m.push(v);
8850
+ const { rendererField: x, rendererNormalizationField: v } = Yo(l?.renderer ?? void 0);
8851
+ ae(x) || m.push(x), ae(v) || m.push(v);
8852
8852
  }
8853
- const x = {
8853
+ const S = {
8854
8854
  ...i,
8855
8855
  orderByFields: [`${o} ${ne.Ascending}`],
8856
8856
  outFields: m
8857
8857
  };
8858
8858
  return c = await Le({
8859
8859
  queryObject: e,
8860
- queryConfig: x,
8860
+ queryConfig: S,
8861
8861
  featureCount: n,
8862
8862
  abortKey: a
8863
8863
  }), c;
@@ -8922,7 +8922,7 @@ async function kn(t) {
8922
8922
  numberOfFeatures: f,
8923
8923
  isAggregationMode: h,
8924
8924
  useQueryAttributeBins: m
8925
- }), x = dc({
8925
+ }), S = dc({
8926
8926
  chartConfig: e,
8927
8927
  rawData: b,
8928
8928
  isAggregationMode: h,
@@ -8930,34 +8930,34 @@ async function kn(t) {
8930
8930
  useQueryAttributeBins: m
8931
8931
  });
8932
8932
  n !== !1 && $t({
8933
- arrayToSort: x,
8933
+ arrayToSort: S,
8934
8934
  sortingField: e.series[0].x,
8935
8935
  orderBy: ne.Ascending
8936
8936
  });
8937
- const { r2: S, trendLinePoints: v } = a !== !1 ? await Kr({
8938
- data: x,
8937
+ const { r2: x, trendLinePoints: v } = a !== !1 ? await Kr({
8938
+ data: S,
8939
8939
  statsMap: l,
8940
8940
  queryConfig: i,
8941
8941
  options: s,
8942
8942
  queryObject: r,
8943
8943
  chartConfig: e
8944
8944
  }) : C.scatterplotSeries;
8945
- d = { dataItems: x, r2: S, trendLinePoints: v, aggregated: h };
8945
+ d = { dataItems: S, r2: x, trendLinePoints: v, aggregated: h };
8946
8946
  }
8947
8947
  return d;
8948
8948
  }
8949
8949
  function Ft(t) {
8950
8950
  const e = t === void 0 || t === "";
8951
8951
  return {
8952
- [P.Average]: `${e ? "" : `${t}_`}${P.Average}`,
8953
- [P.Min]: `${e ? "" : `${t}_`}${P.Min}`,
8954
- [P.Max]: `${e ? "" : `${t}_`}${P.Max}`,
8955
- [P.FirstQuartile]: `${e ? "" : `${t}_`}${P.FirstQuartile}`,
8956
- [P.Median]: `${e ? "" : `${t}_`}${P.Median}`,
8957
- [P.ThirdQuartile]: `${e ? "" : `${t}_`}${P.ThirdQuartile}`,
8958
- [P.IQR]: `${e ? "" : `${t}_`}${P.IQR}`,
8959
- [P.Outlier]: `${e ? "" : `${t}_`}${P.Outlier}`,
8960
- [P.StandardDeviation]: `${e ? "" : `${t}_`}${P.StandardDeviation}`
8952
+ [O.Average]: `${e ? "" : `${t}_`}${O.Average}`,
8953
+ [O.Min]: `${e ? "" : `${t}_`}${O.Min}`,
8954
+ [O.Max]: `${e ? "" : `${t}_`}${O.Max}`,
8955
+ [O.FirstQuartile]: `${e ? "" : `${t}_`}${O.FirstQuartile}`,
8956
+ [O.Median]: `${e ? "" : `${t}_`}${O.Median}`,
8957
+ [O.ThirdQuartile]: `${e ? "" : `${t}_`}${O.ThirdQuartile}`,
8958
+ [O.IQR]: `${e ? "" : `${t}_`}${O.IQR}`,
8959
+ [O.Outlier]: `${e ? "" : `${t}_`}${O.Outlier}`,
8960
+ [O.StandardDeviation]: `${e ? "" : `${t}_`}${O.StandardDeviation}`
8961
8961
  };
8962
8962
  }
8963
8963
  function Qi(t) {
@@ -8973,10 +8973,10 @@ function Wn(t) {
8973
8973
  function se(t) {
8974
8974
  const { key: e, y: i, chartSubType: r, splitBy: n, splitByValue: a, showOutliers: s, standardizeValues: o } = t;
8975
8975
  let d = a, c = Ft(i)[e];
8976
- return s === !0 && (e === P.Min || e === P.Max) && (c = `${c}${ps}`), o === !0 && (Wn(r) || e === P.Outlier) && (c = `${c}${us}`), (a === void 0 || `${a}`.trim() === "") && (d = be({ where: n, normalize: !0, escape: !1 })), d !== void 0 && `${d}`.trim() !== "" && (c = `${d}${c !== "" ? `_${c}` : ""}`), c;
8976
+ return s === !0 && (e === O.Min || e === O.Max) && (c = `${c}${ps}`), o === !0 && (Wn(r) || e === O.Outlier) && (c = `${c}${us}`), (a === void 0 || `${a}`.trim() === "") && (d = be({ where: n, normalize: !0, escape: !1 })), d !== void 0 && `${d}`.trim() !== "" && (c = `${d}${c !== "" ? `_${c}` : ""}`), c;
8977
8977
  }
8978
- function Fi(t) {
8979
- const { dataItem: e, y: i, splitBy: r, showOutliers: n } = t, a = se({ key: P.FirstQuartile, y: i, splitBy: r, showOutliers: n }), s = se({ key: P.ThirdQuartile, y: i, splitBy: r, showOutliers: n });
8978
+ function Ci(t) {
8979
+ const { dataItem: e, y: i, splitBy: r, showOutliers: n } = t, a = se({ key: O.FirstQuartile, y: i, splitBy: r, showOutliers: n }), s = se({ key: O.ThirdQuartile, y: i, splitBy: r, showOutliers: n });
8980
8980
  return Number.isFinite(e[a]) || Number.isFinite(e[s]);
8981
8981
  }
8982
8982
  function uc(t) {
@@ -8986,18 +8986,18 @@ function uc(t) {
8986
8986
  case g.BoxPlotMonoField:
8987
8987
  case g.BoxPlotMultiFields:
8988
8988
  case g.BoxPlotMonoFieldAndCategory:
8989
- s = Fi({ dataItem: i, showOutliers: n });
8989
+ s = Ci({ dataItem: i, showOutliers: n });
8990
8990
  break;
8991
8991
  case g.BoxPlotMultiFieldsAndCategory:
8992
8992
  s = r.some(
8993
- (o) => Fi({ dataItem: i, y: o, showOutliers: n })
8993
+ (o) => Ci({ dataItem: i, y: o, showOutliers: n })
8994
8994
  );
8995
8995
  break;
8996
8996
  case g.BoxPlotMonoFieldAndSplitBy:
8997
8997
  case g.BoxPlotMultiFieldsAndSplitBy:
8998
8998
  case g.BoxPlotMonoFieldAndCategoryAndSplitBy:
8999
8999
  s = e.some(
9000
- (o) => Fi({
9000
+ (o) => Ci({
9001
9001
  dataItem: i,
9002
9002
  splitBy: o.query?.where,
9003
9003
  showOutliers: n
@@ -9021,7 +9021,7 @@ function he(t, e) {
9021
9021
  return s !== void 0 && n === g.BarAndLineSplitByNoAggregation && (s = `${s.toString()}_${be({ where: a.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), s;
9022
9022
  }).filter((a) => a !== void 0), Array.from(new Set(i.flat()));
9023
9023
  }
9024
- function mi(t) {
9024
+ function hi(t) {
9025
9025
  const { seriesConfig: e, filteredSeriesIds: i, showMean: r } = t;
9026
9026
  let n = [];
9027
9027
  if (r === !0) {
@@ -9101,7 +9101,7 @@ function $f(t) {
9101
9101
  break;
9102
9102
  case y.HeatSeries:
9103
9103
  d = r.some(
9104
- (l) => Ze(l[j.valueField], i)
9104
+ (l) => Ze(l[V.valueField], i)
9105
9105
  );
9106
9106
  break;
9107
9107
  }
@@ -9146,7 +9146,7 @@ function hc(t) {
9146
9146
  }), { stackedMinY: o, stackedMaxY: s, dataHasNegativeValues: d };
9147
9147
  }
9148
9148
  function mc(t) {
9149
- const { dataItem: e, ...i } = t, r = se({ key: P.Min, ...i }), n = se({ key: P.Max, ...i }), a = e[r], s = e[n];
9149
+ const { dataItem: e, ...i } = t, r = se({ key: O.Min, ...i }), n = se({ key: O.Max, ...i }), a = e[r], s = e[n];
9150
9150
  return { min: a, max: s };
9151
9151
  }
9152
9152
  function fr(t) {
@@ -9162,21 +9162,21 @@ function fr(t) {
9162
9162
  if ({ min: r, max: n } = Et(p, (f) => f[l]), a.axes?.[0]?.valueFormat.type === y.DateAxisFormat && r !== void 0 && n !== void 0 && ([r, n] = [new Date(r).valueOf(), new Date(n).valueOf()]), c === y.BoxPlotSeries) {
9163
9163
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
9164
9164
  const f = he(d, o), h = E(d), m = "standardizeValues" in a ? a.standardizeValues === !0 : void 0, b = a.series.map(
9165
- (x) => x.visible !== !1 ? be({ where: x.query?.where }) : ""
9165
+ (S) => S.visible !== !1 ? be({ where: S.query?.where }) : ""
9166
9166
  );
9167
- b.length === 0 && b.push(" "), p.forEach((x) => {
9168
- f.forEach((S) => {
9169
- const v = h === g.BoxPlotMultiFieldsAndCategory ? S : void 0;
9167
+ b.length === 0 && b.push(" "), p.forEach((S) => {
9168
+ f.forEach((x) => {
9169
+ const v = h === g.BoxPlotMultiFieldsAndCategory ? x : void 0;
9170
9170
  b.forEach((F) => {
9171
- const { min: w, max: T } = mc({
9171
+ const { min: T, max: w } = mc({
9172
9172
  y: v,
9173
9173
  splitByValue: F,
9174
9174
  chartSubType: h,
9175
9175
  showOutliers: !1,
9176
9176
  standardizeValues: m,
9177
- dataItem: x
9177
+ dataItem: S
9178
9178
  });
9179
- w != null && w < e && (e = w), T != null && T > i && (i = T);
9179
+ T != null && T < e && (e = T), w != null && w > i && (i = w);
9180
9180
  });
9181
9181
  });
9182
9182
  });
@@ -9196,11 +9196,11 @@ function fr(t) {
9196
9196
  case Ie.Side:
9197
9197
  default: {
9198
9198
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, he(d, o).forEach((m) => {
9199
- const { min: b, max: x } = Et(
9199
+ const { min: b, max: S } = Et(
9200
9200
  p,
9201
- (S) => S[m]
9201
+ (x) => x[m]
9202
9202
  );
9203
- b !== void 0 && b < e && (e = b), x !== void 0 && x > i && (i = x);
9203
+ b !== void 0 && b < e && (e = b), S !== void 0 && S > i && (i = S);
9204
9204
  });
9205
9205
  break;
9206
9206
  }
@@ -9225,7 +9225,7 @@ function jn(t) {
9225
9225
  }
9226
9226
  return e;
9227
9227
  }
9228
- function $i(t, e) {
9228
+ function Ri(t, e) {
9229
9229
  let i = !1;
9230
9230
  return Number.isFinite(t) && t !== Number.MAX_SAFE_INTEGER && Number.isFinite(e) && e !== Number.MIN_SAFE_INTEGER && (i = t <= 0 || e <= 0), i;
9231
9231
  }
@@ -9238,7 +9238,7 @@ function zn(t) {
9238
9238
  chartConfig: e,
9239
9239
  chartData: i
9240
9240
  });
9241
- n = $i(a, s);
9241
+ n = Ri(a, s);
9242
9242
  }
9243
9243
  } else {
9244
9244
  const a = gc({
@@ -9249,7 +9249,7 @@ function zn(t) {
9249
9249
  chartData: i,
9250
9250
  filteredSeriesIds: a
9251
9251
  });
9252
- n = $i(s, o);
9252
+ n = Ri(s, o);
9253
9253
  }
9254
9254
  return n;
9255
9255
  }
@@ -9275,7 +9275,7 @@ function Sc(t, e) {
9275
9275
  const a = Ei(t);
9276
9276
  let s = a ? t : t.dataItems;
9277
9277
  if (t !== void 0) {
9278
- const { originalCategoryValue: o, originalYCategoryValue: d, originalDateValue: l, xAxisField: c } = C, p = i === y.HeatSeries ? j.xField : n.x, u = i === y.HeatSeries ? j.yField : void 0;
9278
+ const { originalCategoryValue: o, originalYCategoryValue: d, originalDateValue: l, xAxisField: c } = C, p = i === y.HeatSeries ? V.xField : n.x, u = i === y.HeatSeries ? V.yField : void 0;
9279
9279
  s = s.map((f) => {
9280
9280
  let h = f[p];
9281
9281
  f[l] !== void 0 ? h = f[l] : f[o] !== void 0 && (h = f[o]);
@@ -9295,7 +9295,7 @@ function yr(t) {
9295
9295
  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[Q.uniqueIdsName], Object.keys(e).filter(
9296
9296
  (n) => n.includes(C.rendererSymbolField)
9297
9297
  ).forEach((n) => delete e[n]);
9298
- const r = ui(e);
9298
+ const r = pi(e);
9299
9299
  return r.isInItem && delete e[r.expr ?? ""], e;
9300
9300
  }
9301
9301
  function xc(t, e) {
@@ -9351,7 +9351,7 @@ function vc(t) {
9351
9351
  if (r[0].type === y.HeatSeries)
9352
9352
  i > 0 && c.forEach((p) => {
9353
9353
  o.set(
9354
- `${p[j.xField]}-${p[j.yField]}`,
9354
+ `${p[V.xField]}-${p[V.yField]}`,
9355
9355
  p
9356
9356
  );
9357
9357
  });
@@ -9377,17 +9377,17 @@ function vc(t) {
9377
9377
  return o.size > 0 && (s = Array.from(o.values())), s;
9378
9378
  }
9379
9379
  async function Cc(t) {
9380
- const { numberOfQueries: e, selectionOIDs: i, chartConfig: r, queryConfig: n, options: a, errorStrings: s, queryObject: o } = t, { setTimeBinningInfoWhenNotProvided: d } = a ?? {}, { series: l } = r, c = q(l), p = [], { maxOIDsPerSelectionQuery: u } = pi();
9380
+ const { numberOfQueries: e, selectionOIDs: i, chartConfig: r, queryConfig: n, options: a, errorStrings: s, queryObject: o } = t, { setTimeBinningInfoWhenNotProvided: d } = a ?? {}, { series: l } = r, c = q(l), p = [], { maxOIDsPerSelectionQuery: u } = ci();
9381
9381
  for (let h = 0; h < e; h += 1) {
9382
- const m = h * u, b = (h + 1) * u - 1, x = i.slice(m === 0 ? 0 : m - 1, b), S = { ...n };
9383
- switch (S.objectIds = x, c) {
9382
+ const m = h * u, b = (h + 1) * u - 1, S = i.slice(m === 0 ? 0 : m - 1, b), x = { ...n };
9383
+ switch (x.objectIds = S, c) {
9384
9384
  case y.HeatSeries:
9385
9385
  p.push(
9386
9386
  En({
9387
9387
  completeHeatChartDataset: !1,
9388
9388
  // we do not want the empty bins to be added for the selection
9389
9389
  chartConfig: r,
9390
- queryConfig: S,
9390
+ queryConfig: x,
9391
9391
  queryObject: o,
9392
9392
  errorStrings: s,
9393
9393
  options: a
@@ -9409,7 +9409,7 @@ async function Cc(t) {
9409
9409
  "temporalBinning" in v.series[0] && v.series[0].temporalBinning && (v.series[0].temporalBinning.trimIncompleteTimeInterval = !1, qt(o) && (delete v.series[0].temporalBinning.start, delete v.series[0].temporalBinning.end)), p.push(
9410
9410
  Hi({
9411
9411
  chartConfig: v,
9412
- queryConfig: S,
9412
+ queryConfig: x,
9413
9413
  queryObject: o,
9414
9414
  options: a
9415
9415
  })
@@ -9420,7 +9420,7 @@ async function Cc(t) {
9420
9420
  queryObject: o,
9421
9421
  chartConfig: r,
9422
9422
  options: a,
9423
- queryConfig: S
9423
+ queryConfig: x
9424
9424
  })
9425
9425
  );
9426
9426
  break;
@@ -9431,7 +9431,7 @@ async function Cc(t) {
9431
9431
  chartConfig: r,
9432
9432
  options: a,
9433
9433
  errorStrings: s,
9434
- queryConfig: S
9434
+ queryConfig: x
9435
9435
  })
9436
9436
  );
9437
9437
  break;
@@ -9440,7 +9440,7 @@ async function Cc(t) {
9440
9440
  kn({
9441
9441
  queryObject: o,
9442
9442
  chartConfig: r,
9443
- queryConfig: S,
9443
+ queryConfig: x,
9444
9444
  options: a,
9445
9445
  errorStrings: s,
9446
9446
  sortData: !1,
@@ -9454,7 +9454,7 @@ async function Cc(t) {
9454
9454
  p.push(
9455
9455
  Ll({
9456
9456
  queryObject: o,
9457
- queryConfig: S,
9457
+ queryConfig: x,
9458
9458
  chartConfig: r,
9459
9459
  x: l[0].x
9460
9460
  })
@@ -9468,14 +9468,14 @@ async function Wf(t) {
9468
9468
  const { updatedPropsSnapshot: e, chartConfig: i, chartData: r, dataWasUpdated: n, queryObject: a, options: s, errorStrings: o } = t, { series: d } = i, { selectionData: l, viewExtentUpdated: c, returnSelectionOIDs: p, chartLimits: u } = s ?? {}, { selectionItems: f, selectionOIDs: h } = l ?? {};
9469
9469
  let m;
9470
9470
  const b = q(d);
9471
- let x = !1;
9471
+ let S = !1;
9472
9472
  if (e.has("selectionData")) {
9473
- const { oldValue: F, newValue: w } = e.get("selectionData");
9474
- x = !Re(F?.selectionOIDs, w?.selectionOIDs);
9473
+ const { oldValue: F, newValue: T } = e.get("selectionData");
9474
+ S = !Re(F?.selectionOIDs, T?.selectionOIDs);
9475
9475
  }
9476
- const S = b !== y.HistogramSeries && b !== y.HeatSeries && f !== void 0 && f.length > 0 && !(d[0].x in f[0]) && !(me in f[0]) && !(C.boxPlot.boxPlotCategory in f[0]);
9477
- if (c !== !0 && p !== !1 && h !== void 0 && h.length > 0 && (n === !0 || S || x)) {
9478
- const F = Yi(r), w = on({
9476
+ const x = b !== y.HistogramSeries && b !== y.HeatSeries && f !== void 0 && f.length > 0 && !(d[0].x in f[0]) && !(me in f[0]) && !(C.boxPlot.boxPlotCategory in f[0]);
9477
+ if (c !== !0 && p !== !1 && h !== void 0 && h.length > 0 && (n === !0 || x || S)) {
9478
+ const F = Yi(r), T = on({
9479
9479
  queryObject: a,
9480
9480
  chartConfig: i,
9481
9481
  runtimeDataFilters: s?.runtimeDataFilters,
@@ -9483,22 +9483,22 @@ async function Wf(t) {
9483
9483
  viewExtent: s?.view?.extent
9484
9484
  });
9485
9485
  if (F !== void 0 && !xs({ dataContext: F[0], chartConfig: i, chartLimits: u }))
9486
- m = F.filter((T) => {
9487
- const A = T[Q.uniqueIdsName];
9486
+ m = F.filter((w) => {
9487
+ const A = w[Q.uniqueIdsName];
9488
9488
  return typeof A == "number" || typeof A == "string" ? h?.includes(A) : !1;
9489
9489
  });
9490
- else if (h?.[0] !== void 0 && w !== void 0) {
9491
- const { maxOIDsPerSelectionQuery: T } = pi(), A = Math.ceil(h.length / T), O = await Cc({
9490
+ else if (h?.[0] !== void 0 && T !== void 0) {
9491
+ const { maxOIDsPerSelectionQuery: w } = ci(), A = Math.ceil(h.length / w), P = await Cc({
9492
9492
  numberOfQueries: A,
9493
9493
  selectionOIDs: h,
9494
- queryConfig: w,
9494
+ queryConfig: T,
9495
9495
  queryObject: a,
9496
9496
  options: s,
9497
9497
  errorStrings: o,
9498
9498
  chartConfig: i
9499
9499
  });
9500
9500
  m = vc({
9501
- dataFetchingResults: O,
9501
+ dataFetchingResults: P,
9502
9502
  numberOfQueries: A,
9503
9503
  series: d
9504
9504
  });
@@ -9508,7 +9508,7 @@ async function Wf(t) {
9508
9508
  }
9509
9509
  const Vf = {
9510
9510
  shouldCheckDataMinMaxForLogScaleOnXAxis: jn,
9511
- minMaxHasZeroOrNegativeValues: $i,
9511
+ minMaxHasZeroOrNegativeValues: Ri,
9512
9512
  isChartWithZeroOrNegativeValues: zn
9513
9513
  }, vt = {
9514
9514
  $schema: "http://json-schema.org/draft-07/schema#",
@@ -19745,7 +19745,7 @@ async function Un(t) {
19745
19745
  Ae(document.documentElement).t9nLocale,
19746
19746
  qe("./assets/common/t9n"),
19747
19747
  "messages."
19748
- )).errorStrings, r = W(t);
19748
+ )).errorStrings, r = k(t);
19749
19749
  try {
19750
19750
  await r.load();
19751
19751
  } catch {
@@ -19853,7 +19853,7 @@ function Yn(t) {
19853
19853
  Q.outStatistics.outStatisticFieldName ?? ""
19854
19854
  ];
19855
19855
  let l = [];
19856
- ye(t) ? l = mi({
19856
+ ye(t) ? l = hi({
19857
19857
  showMean: t.showMean,
19858
19858
  seriesConfig: t.series
19859
19859
  }) : l = t.series.map((p) => "y" in p ? p.y : void 0).filter((p) => p !== void 0).flat(), o ? l.forEach((p) => e.add(p)) : d.push(...l), t.series.forEach((p) => {
@@ -19985,10 +19985,10 @@ const _f = {
19985
19985
  getRequiredFieldNamesFromChartConfig: Yn,
19986
19986
  customizeValidationErrors: Gn
19987
19987
  };
19988
- async function wi(t) {
19988
+ async function Fi(t) {
19989
19989
  const { queryObject: e, queryConfig: i, category: r, splitByField: n, chartLimits: a, abortKey: s } = t, o = n !== void 0, d = r !== Nt ? [r] : [];
19990
19990
  o && d.push(n);
19991
- const l = W(e), { idField: c, isTraditionalTypeOID: p } = Oe(l), u = p ? c : "*", f = {
19991
+ const l = k(e), { idField: c, isTraditionalTypeOID: p } = Oe(l), u = p ? c : "*", f = {
19992
19992
  ...i,
19993
19993
  groupByFieldsForStatistics: Array.from(new Set(d)),
19994
19994
  outStatistics: [
@@ -20017,7 +20017,7 @@ async function wi(t) {
20017
20017
  new Set(
20018
20018
  h.map((b) => b.attributes[o ? n : r])
20019
20019
  )
20020
- ).sort((b, x) => typeof b == "string" && typeof x == "string" ? b.localeCompare(x) : Number(b) - Number(x));
20020
+ ).sort((b, S) => typeof b == "string" && typeof S == "string" ? b.localeCompare(S) : Number(b) - Number(S));
20021
20021
  }
20022
20022
  const hr = [
20023
20023
  {
@@ -20184,7 +20184,7 @@ async function Dc(t) {
20184
20184
  let a;
20185
20185
  if (r === void 0)
20186
20186
  throw new Error("QueryObject is undefined!");
20187
- const s = W(r);
20187
+ const s = k(r);
20188
20188
  if (!de(s))
20189
20189
  throw new pe(oe.LayerNotSupported);
20190
20190
  const o = await Lc({
@@ -20195,7 +20195,7 @@ async function Dc(t) {
20195
20195
  if (!o || !d)
20196
20196
  a = {
20197
20197
  valid: !1,
20198
- invalidType: V.BadData
20198
+ invalidType: W.BadData
20199
20199
  };
20200
20200
  else {
20201
20201
  const l = e.series;
@@ -20211,22 +20211,22 @@ async function Dc(t) {
20211
20211
  }
20212
20212
  const f = [];
20213
20213
  u.forEach((h) => {
20214
- const m = {}, b = h[0][c], { display: x, original: S } = mr(b, p);
20215
- m[c] = x, m[C.xAxisField] = x, m[C.originalCategoryValue] = S, l.forEach((v) => {
20214
+ const m = {}, b = h[0][c], { display: S, original: x } = mr(b, p);
20215
+ m[c] = S, m[C.xAxisField] = S, m[C.originalCategoryValue] = x, l.forEach((v) => {
20216
20216
  const F = v.query?.outStatistics?.[0];
20217
20217
  if (!F) {
20218
- const { name: M } = v;
20219
- m[M] = h[0][M];
20218
+ const { name: B } = v;
20219
+ m[B] = h[0][B];
20220
20220
  return;
20221
20221
  }
20222
- let w = h;
20223
- const T = v.query?.where;
20224
- T && (w = h.filter((M) => Ac(M, T)));
20225
- const A = F.statisticType, O = F.onStatisticField, L = F.outStatisticFieldName;
20226
- m[L] = Bc({
20227
- features: w,
20222
+ let T = h;
20223
+ const w = v.query?.where;
20224
+ w && (T = h.filter((B) => Ac(B, w)));
20225
+ const A = F.statisticType, P = F.onStatisticField, D = F.outStatisticFieldName;
20226
+ m[D] = Bc({
20227
+ features: T,
20228
20228
  aggregationType: A,
20229
- onField: O
20229
+ onField: P
20230
20230
  });
20231
20231
  }), f.push(m);
20232
20232
  }), a = {
@@ -20304,13 +20304,13 @@ function Xn(t) {
20304
20304
  export {
20305
20305
  Ne as $,
20306
20306
  Va as A,
20307
- P as B,
20307
+ O as B,
20308
20308
  g as C,
20309
- V as D,
20309
+ W as D,
20310
20310
  oe as E,
20311
20311
  Kp as F,
20312
20312
  za as G,
20313
- j as H,
20313
+ V as H,
20314
20314
  xp as I,
20315
20315
  bp as J,
20316
20316
  Sp as K,
@@ -20320,9 +20320,9 @@ export {
20320
20320
  je as O,
20321
20321
  _a as P,
20322
20322
  Cf as Q,
20323
- Fi as R,
20323
+ Ci as R,
20324
20324
  xu as S,
20325
- z as T,
20325
+ j as T,
20326
20326
  bl as U,
20327
20327
  zr as V,
20328
20328
  Ye as W,
@@ -20332,7 +20332,7 @@ export {
20332
20332
  qt as _,
20333
20333
  pe as a,
20334
20334
  Jp as a$,
20335
- Bi as a0,
20335
+ Ai as a0,
20336
20336
  Yi as a1,
20337
20337
  rl as a2,
20338
20338
  il as a3,
@@ -20350,7 +20350,7 @@ export {
20350
20350
  $p as aF,
20351
20351
  Ha as aG,
20352
20352
  Mt as aH,
20353
- G as aI,
20353
+ _ as aI,
20354
20354
  Ar as aJ,
20355
20355
  Bp as aK,
20356
20356
  Lp as aL,
@@ -20376,28 +20376,28 @@ export {
20376
20376
  Zu as ae,
20377
20377
  al as af,
20378
20378
  gp as ag,
20379
- ci as ah,
20379
+ di as ah,
20380
20380
  gc as ai,
20381
20381
  cl as aj,
20382
20382
  Ft as ak,
20383
- mi as al,
20383
+ hi as al,
20384
20384
  se as am,
20385
20385
  Wi as an,
20386
20386
  yt as ao,
20387
20387
  E as ap,
20388
- pi as aq,
20388
+ ci as aq,
20389
20389
  dl as ar,
20390
20390
  Pr as as,
20391
20391
  fr as at,
20392
20392
  hc as au,
20393
- Pi as av,
20393
+ Oi as av,
20394
20394
  Qf as aw,
20395
20395
  Qp as ax,
20396
20396
  ft as ay,
20397
20397
  at as az,
20398
20398
  Xe as b,
20399
20399
  Yo as b$,
20400
- Ti as b0,
20400
+ wi as b0,
20401
20401
  Ht as b1,
20402
20402
  Np as b2,
20403
20403
  zp as b3,
@@ -20407,10 +20407,10 @@ export {
20407
20407
  jp as b7,
20408
20408
  Mp as b8,
20409
20409
  Gp as b9,
20410
- W as bA,
20410
+ k as bA,
20411
20411
  Ku as bB,
20412
20412
  ro as bC,
20413
- yi as bD,
20413
+ fi as bD,
20414
20414
  Uf as bE,
20415
20415
  ue as bF,
20416
20416
  Co as bG,
@@ -20425,7 +20425,7 @@ export {
20425
20425
  mo as bP,
20426
20426
  Hu as bQ,
20427
20427
  ho as bR,
20428
- Di as bS,
20428
+ Li as bS,
20429
20429
  Lo as bT,
20430
20430
  en as bU,
20431
20431
  Zr as bV,
@@ -20446,9 +20446,9 @@ export {
20446
20446
  Nu as bj,
20447
20447
  Xn as bk,
20448
20448
  ji as bl,
20449
- Li as bm,
20450
- Ni as bn,
20451
- Oi as bo,
20449
+ Bi as bm,
20450
+ Di as bn,
20451
+ Ni as bo,
20452
20452
  nr as bp,
20453
20453
  nn as bq,
20454
20454
  Cu as br,
@@ -20495,7 +20495,7 @@ export {
20495
20495
  zf as cU,
20496
20496
  ei as cV,
20497
20497
  yo as cW,
20498
- ui as cX,
20498
+ pi as cX,
20499
20499
  zu as cY,
20500
20500
  Lu as cZ,
20501
20501
  st as c_,
@@ -20559,7 +20559,7 @@ export {
20559
20559
  _o as dT,
20560
20560
  hr as dU,
20561
20561
  Gf as dV,
20562
- wi as dW,
20562
+ Fi as dW,
20563
20563
  sl as dX,
20564
20564
  Iu as dY,
20565
20565
  Zp as dZ,
@@ -20620,7 +20620,7 @@ export {
20620
20620
  Bf as eQ,
20621
20621
  hp as eR,
20622
20622
  bu as eS,
20623
- Ai as eT,
20623
+ Ii as eT,
20624
20624
  Tt as eU,
20625
20625
  ys as eV,
20626
20626
  ju as eW,