@arcgis/charts-components 5.0.0-next.13 → 5.0.0-next.15

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 (308) hide show
  1. package/dist/cdn/{WUGCEQ3O.js → 2HFDQNUJ.js} +2 -2
  2. package/dist/cdn/{I7GRDKGE.js → 2IHRS6XO.js} +2 -2
  3. package/dist/cdn/{2KGRZS4B.js → 2QGYZBVC.js} +2 -2
  4. package/dist/cdn/{MZD74T66.js → 3ANPURTA.js} +2 -2
  5. package/dist/cdn/{FSBBCC67.js → 3OHMNCK2.js} +2 -2
  6. package/dist/cdn/{6LPANFJT.js → 3SWCIBBB.js} +2 -2
  7. package/dist/cdn/{QC6RA53Y.js → 3TM24EQG.js} +2 -2
  8. package/dist/cdn/{EH5J64LO.js → 3VSMJUCU.js} +2 -2
  9. package/dist/cdn/{5S67JF46.js → 434U5CCN.js} +2 -2
  10. package/dist/cdn/{WDFVR55Y.js → 4ABZGR4R.js} +2 -2
  11. package/dist/cdn/{EEEGEZOI.js → 4KDC6BC7.js} +2 -2
  12. package/dist/cdn/{MPEI7RJI.js → 4V56AR7R.js} +2 -2
  13. package/dist/cdn/{D47UATDE.js → 55RT2PVM.js} +2 -2
  14. package/dist/cdn/{DOPFX4SB.js → 5ONL44LQ.js} +2 -2
  15. package/dist/cdn/{JZQVT4V2.js → 5OYL6L6X.js} +2 -2
  16. package/dist/cdn/{4CS3FR2O.js → 5OZWJTGQ.js} +2 -2
  17. package/dist/cdn/{23ZMWSAR.js → 5TXDR4IW.js} +2 -2
  18. package/dist/cdn/{FBZQGW5A.js → 67ZO6F2S.js} +2 -2
  19. package/dist/cdn/{HMSQ5QXL.js → 6HSQ4R6A.js} +2 -2
  20. package/dist/cdn/{BSIWCTLU.js → 6UN56MTN.js} +2 -2
  21. package/dist/cdn/{TF5SSMI5.js → 6WUSSL77.js} +2 -2
  22. package/dist/cdn/{UB23KURL.js → 7FEKKJ6O.js} +2 -2
  23. package/dist/cdn/{6UOH6XYF.js → 7GGYLQVR.js} +40 -40
  24. package/dist/cdn/{VPVWXLLC.js → 7S5NKGVS.js} +2 -2
  25. package/dist/cdn/7XO4NEYB.js +6 -0
  26. package/dist/cdn/{UVHLCTSW.js → ABHW5CE2.js} +2 -2
  27. package/dist/cdn/{4ZMMW6TF.js → ACIN5UVG.js} +2 -2
  28. package/dist/cdn/{MO73QHYP.js → AEU2HWYS.js} +2 -2
  29. package/dist/cdn/{427SAJZF.js → AGN5CUWV.js} +2 -2
  30. package/dist/cdn/{RKBXEX2I.js → ASKPQLLK.js} +2 -2
  31. package/dist/cdn/B5YRLKHW.js +4 -0
  32. package/dist/cdn/{EDNENDTJ.js → BBDMNKC4.js} +2 -2
  33. package/dist/cdn/{BI23P3P2.js → BBRHHOLU.js} +2 -2
  34. package/dist/cdn/{BY5HY7B3.js → BJ26ADXK.js} +1 -1
  35. package/dist/cdn/{DEWKTZZP.js → BN6SWWLW.js} +2 -2
  36. package/dist/cdn/{LSJO3ECB.js → BO52KAZU.js} +2 -2
  37. package/dist/cdn/{X4ADIM5L.js → BOJMT6WM.js} +2 -2
  38. package/dist/cdn/{Y7QUHFB5.js → BQAEYXEP.js} +2 -2
  39. package/dist/cdn/{IVT62N2K.js → BXNZWDJR.js} +1 -1
  40. package/dist/cdn/BZ4U4UIO.js +4 -0
  41. package/dist/cdn/{IS2ZJXGX.js → C6XJTUW3.js} +2 -2
  42. package/dist/cdn/{FWDO34DM.js → CCNMNFU4.js} +2 -2
  43. package/dist/cdn/{RFBF27WR.js → CFEF5PED.js} +2 -2
  44. package/dist/cdn/{DYK7JCLK.js → CJNWHNUN.js} +2 -2
  45. package/dist/cdn/{BBIMUCPL.js → CPJMPYBA.js} +2 -2
  46. package/dist/cdn/{5YKE32ZS.js → CS2UZBIZ.js} +2 -2
  47. package/dist/cdn/{AN3Z3DED.js → D3B5BETN.js} +2 -2
  48. package/dist/cdn/{ULTLJ2O4.js → D3S6VZYM.js} +2 -2
  49. package/dist/cdn/{5EI4WAME.js → DCWMK4AG.js} +2 -2
  50. package/dist/cdn/{PR34OOND.js → DFX5P352.js} +1 -1
  51. package/dist/cdn/{5P7UJ6TT.js → DRSYMOLS.js} +2 -2
  52. package/dist/cdn/{H7V6VO3C.js → DYJIU22C.js} +2 -2
  53. package/dist/cdn/{O23FJD3R.js → E2BIA6XS.js} +2 -2
  54. package/dist/cdn/{THOFTDTR.js → EC2DBBVI.js} +2 -2
  55. package/dist/cdn/{Q4HFSM5X.js → EC66UVAA.js} +2 -2
  56. package/dist/cdn/{OQIATH7G.js → ECKCFNKB.js} +2 -2
  57. package/dist/cdn/{UVTVCANZ.js → ECTTF3BJ.js} +2 -2
  58. package/dist/cdn/{VXOBVGAM.js → EEZIP3OH.js} +2 -2
  59. package/dist/cdn/{YKGO4QBT.js → EQHZLZYP.js} +2 -2
  60. package/dist/cdn/{H3YN4BEX.js → FGGAHPDC.js} +2 -2
  61. package/dist/cdn/{44RLTQMQ.js → FJSOMVMF.js} +2 -2
  62. package/dist/cdn/{ZO2YQVMD.js → FJXJFOKB.js} +2 -2
  63. package/dist/cdn/{IUQM7NTE.js → FK4QG67C.js} +2 -2
  64. package/dist/cdn/{MDIIJDZN.js → FM53MHU6.js} +2 -2
  65. package/dist/cdn/{VK6HZU5V.js → FP2PG3PR.js} +2 -2
  66. package/dist/cdn/{KXHUKCOP.js → FTPOWQ2M.js} +2 -2
  67. package/dist/cdn/{LYFUTZMU.js → G35MJO3E.js} +2 -2
  68. package/dist/cdn/{57635DD6.js → GA62NEL6.js} +2 -2
  69. package/dist/cdn/{QLSUV3MA.js → GARNQKIY.js} +2 -2
  70. package/dist/cdn/{7USOFA4I.js → GL4TUFQJ.js} +2 -2
  71. package/dist/cdn/{BZLAVNQJ.js → GMRJBBRH.js} +2 -2
  72. package/dist/cdn/{PEH65QC7.js → GOSVLWOK.js} +2 -2
  73. package/dist/cdn/GPCXBOIX.js +4 -0
  74. package/dist/cdn/{EXGXS6IC.js → GQBA4C22.js} +2 -2
  75. package/dist/cdn/{XZGAMPZE.js → GVST4DZO.js} +2 -2
  76. package/dist/cdn/{OKQ7WM2R.js → HF3PGFD4.js} +2 -2
  77. package/dist/cdn/{A2RVATQV.js → HHD6BMFI.js} +2 -2
  78. package/dist/cdn/{GXW3BGAY.js → HJ4XZBJ3.js} +2 -2
  79. package/dist/cdn/{K3JAT7M5.js → HP7IJBB7.js} +2 -2
  80. package/dist/cdn/{7XMX5OUC.js → HULKC4IF.js} +2 -2
  81. package/dist/cdn/{2DZVA65I.js → HVQFWTR5.js} +2 -2
  82. package/dist/cdn/{VCFQ5BLB.js → HX5IWCPE.js} +2 -2
  83. package/dist/cdn/{C5F3ZQKM.js → HYSRH3IH.js} +2 -2
  84. package/dist/cdn/{MUQATTSO.js → I2ENEH6I.js} +2 -2
  85. package/dist/cdn/{VHOIHI3V.js → I52DONAE.js} +2 -2
  86. package/dist/cdn/I5CJ47QO.js +4 -0
  87. package/dist/cdn/{YVJ4R5D3.js → IMMVGOCW.js} +1 -1
  88. package/dist/cdn/{RMMOG7AZ.js → IP27FNZD.js} +2 -2
  89. package/dist/cdn/{7HF3N6H5.js → IQIMCRWU.js} +1 -1
  90. package/dist/cdn/{YCQM2VBR.js → ITEKBAP7.js} +2 -2
  91. package/dist/cdn/{NIXAGKKC.js → J4SXB67D.js} +2 -2
  92. package/dist/cdn/{I4T6G5TR.js → JGUVK274.js} +2 -2
  93. package/dist/cdn/{MCO2TTQL.js → JXEKDWPB.js} +2 -2
  94. package/dist/cdn/{MVSS7SGU.js → KGZREVW2.js} +2 -2
  95. package/dist/cdn/{6YKFHI43.js → L4WTVQBU.js} +2 -2
  96. package/dist/cdn/{7DWESA4W.js → LIRCYPIK.js} +2 -2
  97. package/dist/cdn/{LBK2USAQ.js → LJ3BG6G7.js} +4 -4
  98. package/dist/cdn/{2KZRELLP.js → LKSAJIL6.js} +2 -2
  99. package/dist/cdn/{BVAJGX2B.js → LKW4K6ZV.js} +2 -2
  100. package/dist/cdn/{7PTJ4CQ2.js → MA76GDKJ.js} +2 -2
  101. package/dist/cdn/{GZVDZDHR.js → MNIOSGYH.js} +2 -2
  102. package/dist/cdn/{YQDON6CP.js → MS4P4IKG.js} +1 -1
  103. package/dist/cdn/{MZARUXMD.js → MTAFS22C.js} +2 -2
  104. package/dist/cdn/{PJH6WBIF.js → MX2AFGMT.js} +2 -2
  105. package/dist/cdn/{2ROUX6TO.js → MZGUXZRK.js} +2 -2
  106. package/dist/cdn/{J65EAWEH.js → N32MD2IW.js} +2 -2
  107. package/dist/cdn/{ZRLBIR7S.js → NKL2GWDP.js} +2 -2
  108. package/dist/cdn/{VXK3XGG5.js → NLFGUCP5.js} +2 -2
  109. package/dist/cdn/NUTIVT7T.js +4 -0
  110. package/dist/cdn/{JBGSJHAT.js → NWE4IMRQ.js} +1 -1
  111. package/dist/cdn/{7RYUYLI3.js → NXCYGG55.js} +2 -2
  112. package/dist/cdn/{OMVTQEIR.js → NXKKC7KX.js} +1 -1
  113. package/dist/cdn/{SCJHQJWS.js → NXLUVAFE.js} +2 -2
  114. package/dist/cdn/{IOWSM6YZ.js → NXNB6OOK.js} +1 -1
  115. package/dist/cdn/{CXKIS5FH.js → NYH2YOLM.js} +2 -2
  116. package/dist/cdn/{E5TUJCXM.js → O4IEPQH6.js} +2 -2
  117. package/dist/cdn/{OYHO4BOA.js → OATQT3I4.js} +2 -2
  118. package/dist/cdn/{2IQVM3N4.js → OE44KX23.js} +2 -2
  119. package/dist/cdn/{VLCMD5G6.js → OFACCOMI.js} +2 -2
  120. package/dist/cdn/{CGBFYWHG.js → OGXRF57E.js} +2 -2
  121. package/dist/cdn/{O3LDD74B.js → OIVFQGIS.js} +2 -2
  122. package/dist/cdn/{W345BUVZ.js → OKU26SYR.js} +2 -2
  123. package/dist/cdn/{UGSXATIJ.js → OXUL6KKR.js} +2 -2
  124. package/dist/cdn/{6H2Z22XB.js → PCC7DRKD.js} +2 -2
  125. package/dist/cdn/{ATPRZA2E.js → PGGJPZLU.js} +2 -2
  126. package/dist/cdn/{YIVZNNY7.js → PLZX7KKU.js} +2 -2
  127. package/dist/cdn/{XLH3FKVE.js → Q2YGNKSP.js} +2 -2
  128. package/dist/cdn/{2YKNEYVJ.js → Q3G4E6BP.js} +2 -2
  129. package/dist/cdn/{ZMYBIPRW.js → QCOONURH.js} +2 -2
  130. package/dist/cdn/{V6BSO4HF.js → QNA7AWUF.js} +2 -2
  131. package/dist/cdn/{7NIFGXTS.js → QPBIH32T.js} +2 -2
  132. package/dist/cdn/{TMU3LLUA.js → R4YARP3S.js} +2 -2
  133. package/dist/cdn/{XQ3WKZR4.js → RBUKMYCI.js} +2 -2
  134. package/dist/cdn/{QBVWXU32.js → RFKZEZM4.js} +2 -2
  135. package/dist/cdn/{PUPFEXOY.js → RKHIFJZU.js} +2 -2
  136. package/dist/cdn/{KVCJQCE6.js → RTYRKL2Z.js} +2 -2
  137. package/dist/cdn/{Q4DN7TK6.js → S2C5BT6G.js} +2 -2
  138. package/dist/cdn/{G2EJYYKN.js → S7QW2GIV.js} +2 -2
  139. package/dist/cdn/{76KBTH62.js → SBTNRJH4.js} +2 -2
  140. package/dist/cdn/{R4556EWJ.js → SGQFASRN.js} +1 -1
  141. package/dist/cdn/{7MECPUCX.js → SQ4AJ7I2.js} +2 -2
  142. package/dist/cdn/{TQWAXPE6.js → T3R7X7UQ.js} +2 -2
  143. package/dist/cdn/{PHWXS4LW.js → TAZIP23C.js} +2 -2
  144. package/dist/cdn/{MMYQI55D.js → TI2SXKKD.js} +2 -2
  145. package/dist/cdn/{XCIEWMIP.js → TUGGISIT.js} +2 -2
  146. package/dist/cdn/{IJ75KTR2.js → TUPRRUWH.js} +2 -2
  147. package/dist/cdn/{KNW7ZMCD.js → ULG2BR6O.js} +2 -2
  148. package/dist/cdn/{KZKGOGEM.js → UNTE33BC.js} +2 -2
  149. package/dist/cdn/{LJE2DEA2.js → USMEGZQC.js} +2 -2
  150. package/dist/cdn/{QLYDF2JV.js → UYOAOW6W.js} +2 -2
  151. package/dist/cdn/{7LU6ZBNR.js → UZAJV6LD.js} +2 -2
  152. package/dist/cdn/{QSEN63RJ.js → V43ECDTA.js} +2 -2
  153. package/dist/cdn/{ERLIW3HZ.js → V55GOYAN.js} +2 -2
  154. package/dist/cdn/{7YLL4R7C.js → VA3OLXFX.js} +2 -2
  155. package/dist/cdn/{DY5GHRDF.js → VCJ7DX64.js} +2 -2
  156. package/dist/cdn/{KCVWQ2SH.js → VH7AHW3J.js} +2 -2
  157. package/dist/cdn/{PDKJGDKZ.js → VH7G4YIT.js} +2 -2
  158. package/dist/cdn/{7CWODO7C.js → VQP3IDET.js} +2 -2
  159. package/dist/cdn/{J5FNKHCP.js → VVIXKCCI.js} +2 -2
  160. package/dist/cdn/{WSALX4ON.js → VXAYZ72E.js} +2 -2
  161. package/dist/cdn/{54ZLBQBJ.js → VZ5P2GFE.js} +2 -2
  162. package/dist/cdn/{6D4POUHT.js → WD5X74MH.js} +2 -2
  163. package/dist/cdn/{CMJ6MWSF.js → WDNAMGNM.js} +2 -2
  164. package/dist/cdn/{AZ2CKUL5.js → WERW5R5B.js} +2 -2
  165. package/dist/cdn/{QEKWSEYR.js → WOGMJMBK.js} +2 -2
  166. package/dist/cdn/{2WY5I7MT.js → X4HBQOFJ.js} +2 -2
  167. package/dist/cdn/{Z4NIAXRJ.js → X74G76ZE.js} +2 -2
  168. package/dist/cdn/{N7AQDPB7.js → XA6ZLYSX.js} +2 -2
  169. package/dist/cdn/{4LWVC4DU.js → XIKGBRO3.js} +2 -2
  170. package/dist/cdn/{QOMAKSSC.js → XRSKTIQQ.js} +2 -2
  171. package/dist/cdn/{B7B2F3VL.js → XW3DX2TS.js} +2 -2
  172. package/dist/cdn/{4PIDVK66.js → XWBVISIK.js} +2 -2
  173. package/dist/cdn/{7VPD6BTC.js → Y3YARJKZ.js} +2 -2
  174. package/dist/cdn/{AAKHKOUQ.js → YBU5U7G6.js} +2 -2
  175. package/dist/cdn/{JMNJEVGH.js → YFDFWFSZ.js} +2 -2
  176. package/dist/cdn/{Z7JZNXHI.js → YRHF56BK.js} +2 -2
  177. package/dist/cdn/{HROS2OSX.js → Z2ZST7C2.js} +2 -2
  178. package/dist/cdn/{OZTDCWOR.js → Z3TLBJKK.js} +2 -2
  179. package/dist/cdn/{FX6JGERW.js → ZACH5REB.js} +2 -2
  180. package/dist/cdn/{3YGBJRGR.js → ZLYKKNCA.js} +2 -2
  181. package/dist/cdn/{KA2Z5KD6.js → ZSHQ5G7Y.js} +2 -2
  182. package/dist/cdn/{XQJTQYO3.js → ZTGCTWNR.js} +2 -2
  183. package/dist/cdn/index.js +2 -2
  184. package/dist/chart-rendering/common/data/utils/misc/index.d.ts +0 -8
  185. package/dist/chart-rendering/common/interfaces.d.ts +9 -5
  186. package/dist/chart-rendering/next/index.d.ts +2 -2
  187. package/dist/chart-rendering/stable/index.d.ts +5 -3
  188. package/dist/chart-rendering/stable/utils/error-modal/index.d.ts +5 -7
  189. package/dist/chunks/action-bar-utils.js +7 -7
  190. package/dist/chunks/axis-model-wrapper.js +1 -1
  191. package/dist/chunks/bar-chart-model.js +2 -2
  192. package/dist/chunks/bar-chart-series.js +1 -1
  193. package/dist/chunks/baseline-stacking.js +2 -2
  194. package/dist/chunks/bg_BG.js +1 -1
  195. package/dist/chunks/bg_BG2.js +1 -1
  196. package/dist/chunks/box-plot-data.js +6 -6
  197. package/dist/chunks/box-plot-model.js +15 -15
  198. package/dist/chunks/chart-ui-utils.js +1 -1
  199. package/dist/chunks/chart-ui-utils2.js +12 -12
  200. package/dist/chunks/combo-bar-line-chart-model.js +2 -2
  201. package/dist/chunks/common.js +1 -1
  202. package/dist/chunks/config-update.js +980 -991
  203. package/dist/chunks/data.js +328 -328
  204. package/dist/chunks/default.js +1 -1
  205. package/dist/chunks/gauge-model.js +11 -11
  206. package/dist/chunks/heat-chart-model.js +9 -9
  207. package/dist/chunks/histogram-data.js +9 -9
  208. package/dist/chunks/histogram-model.js +2 -2
  209. package/dist/chunks/index.js +35 -35
  210. package/dist/chunks/index2.js +2 -2
  211. package/dist/chunks/index3.js +2 -2
  212. package/dist/chunks/index4.js +1 -1
  213. package/dist/chunks/index5.js +1 -1
  214. package/dist/chunks/interfaces.js +241 -238
  215. package/dist/chunks/interfaces2.js +1 -1
  216. package/dist/chunks/interfaces3.js +1 -1
  217. package/dist/chunks/interfaces4.js +2 -2
  218. package/dist/chunks/line-chart-model.js +6 -6
  219. package/dist/chunks/model-with-baseline-stacking.js +1 -1
  220. package/dist/chunks/model-with-data-labels.js +2 -2
  221. package/dist/chunks/model-with-multi-axes.js +2 -2
  222. package/dist/chunks/model-with-rotation.js +2 -2
  223. package/dist/chunks/pie-chart-data.js +33 -33
  224. package/dist/chunks/pie-chart-model.js +20 -20
  225. package/dist/chunks/popover-ui-utils.js +1 -1
  226. package/dist/chunks/radar-chart-model.js +6 -6
  227. package/dist/chunks/resource.js +1 -1
  228. package/dist/chunks/rest-js-object-literals.js +1 -1
  229. package/dist/chunks/runtime.js +1 -1
  230. package/dist/chunks/scatterplot-model.js +2 -2
  231. package/dist/chunks/serial-chart-model.js +21 -19
  232. package/dist/chunks/series-types.js +1 -1
  233. package/dist/chunks/series.js +2 -2
  234. package/dist/chunks/sk_SK.js +1 -1
  235. package/dist/chunks/store.js +1 -1
  236. package/dist/chunks/type-guards.js +1 -1
  237. package/dist/chunks/useT9n.js +1 -1
  238. package/dist/chunks/web-component-utils.js +98 -98
  239. package/dist/components/arcgis-chart/customElement.d.ts +7 -9
  240. package/dist/components/arcgis-chart/customElement.js +6584 -6516
  241. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  242. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  243. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  244. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
  245. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +2 -2
  246. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +2 -2
  247. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
  248. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
  249. package/dist/components/arcgis-charts-config-box-plot/customElement.js +2 -2
  250. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +2 -2
  251. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +2 -2
  252. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
  253. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +2 -2
  254. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  255. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  256. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  257. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  258. package/dist/components/arcgis-charts-config-create-flow/customElement.js +5 -5
  259. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  260. package/dist/components/arcgis-charts-config-font-style/customElement.js +2 -2
  261. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  262. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  263. package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
  264. package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
  265. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  266. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  267. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  268. package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
  269. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +2 -2
  270. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +2 -2
  271. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  272. package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
  273. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
  274. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +2 -2
  275. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
  276. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +2 -2
  277. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
  278. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  279. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +2 -2
  280. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +5 -5
  281. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
  282. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
  283. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +2 -2
  284. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
  285. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +6 -6
  286. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +2 -2
  287. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  288. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  289. package/dist/docs/api.json +5 -9
  290. package/dist/docs/docs.json +6 -10
  291. package/dist/docs/vscode.html-custom-data.json +1 -1
  292. package/dist/docs/web-types.json +2 -2
  293. package/dist/index.js +206 -205
  294. package/dist/loader.js +1 -1
  295. package/dist/model/heat-chart-model/heat-chart-model.d.ts +3 -8
  296. package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +3 -3
  297. package/dist/model.js +1 -1
  298. package/dist/utils/chart-config/utils/index.d.ts +7 -0
  299. package/dist/utils/chart-config/validator/index.d.ts +10 -10
  300. package/dist/utils/components/config-update.d.ts +11 -3
  301. package/dist/utils/layer/interfaces.d.ts +1 -0
  302. package/package.json +4 -4
  303. package/dist/cdn/EFUADL5X.js +0 -6
  304. package/dist/cdn/EKNBAJH5.js +0 -4
  305. package/dist/cdn/F3CH7OY3.js +0 -4
  306. package/dist/cdn/ILWDMLET.js +0 -4
  307. package/dist/cdn/M4SEBR7O.js +0 -4
  308. package/dist/cdn/TMTC7FJZ.js +0 -4
@@ -1,8 +1,8 @@
1
- import { W as S, d as Ii, u as W, m as re, b as _, g as me, t as be, e as ke, a as P, n as G, i as j, S as zt, o as $i } from "./series-types.js";
1
+ import { W as S, d as Ii, u as W, m as re, b as _, g as me, t as xe, e as ke, a as P, n as G, i as j, S as zt, o as $i } from "./series-types.js";
2
2
  import "@arcgis/toolkit/intl";
3
- import { cloneDeep as Me, isArray as vt, isEmpty as Ri, isEqual as Pe, sortBy as Ot } from "lodash-es";
3
+ import { cloneDeep as Fe, isArray as vt, isEmpty as Ri, isEqual as Le, sortBy as Ot } from "lodash-es";
4
4
  import { extent as ki, mean as ji, max as Wi, min as Qi, sum as Hi, rollup as zi } from "d3-array";
5
- import { b5 as pt, cz as p, p as E, c8 as Gt, c4 as z, a5 as Ut, B as _t, d as ne, a as he, T as Y, cl as lt, b3 as $e, H as se, r as oe, q as ve, bc as We, aU as Re, a1 as nt, S as xe, cf as ht, cj as ee, l as ge, cq as Gi, c9 as qt, cb as Yt, N as V, k as K, F as U, a3 as k, cu as Kt, D as $, bU as Ui, I as Nt, bz as ye, bH as Q, E as _i, i as we, z as je, cc as Et, aV as Ue, m as Tt, b9 as Ne, c0 as Qe, a2 as Jt, cC as Yi, A as Xt, ce as Se, by as _e, bL as Ki, b_ as Ji, b6 as Vt, R as Xi, bj as Zt, bw as Zi, bk as ea, bY as ta, bZ as ei, bs as ia, ck as mt, c2 as aa, b7 as na, bt as ra, U as sa, n as Fe, bN as ti, bA as oa, bn as ii, bB as la, bC as ca, cB as ae, Q as ua, P as It, bD as ai, bV as da, bv as fa, bh as ni, bu as ma, bx as ga, bf as ya, bi as pa, X as ri, b8 as ha } from "./interfaces.js";
5
+ import { b6 as pt, cA as h, p as E, c9 as Gt, c5 as z, a6 as Ut, s as Gi, E as _t, d as ne, a as he, U as Y, cm as lt, b4 as $e, I as se, r as oe, q as Ne, bd as We, aV as Re, a2 as nt, T as Ce, cg as ht, ck as ee, l as ge, cr as Ui, ca as qt, cc as Yt, P as V, k as K, G as U, a4 as k, cv as Kt, D as $, bV as _i, J as Nt, bA as ye, bI as Q, F as Yi, i as we, A as je, cd as Et, aW as Ue, m as Tt, ba as Te, c1 as Qe, a3 as Jt, cD as Ki, B as Xt, cf as Se, bz as _e, bM as Ji, b$ as Xi, b7 as Vt, S as Zi, bk as Zt, bx as ea, bl as ta, bZ as ia, b_ as ei, bt as aa, cl as mt, c3 as na, b8 as ra, bu as sa, V as oa, n as be, bO as ti, bB as la, bo as ii, bC as ca, bD as ua, cC as ae, R as da, Q as It, bE as ai, bW as fa, bw as ma, bi as ni, bv as ga, by as ya, bg as pa, bj as ha, Y as ri } from "./interfaces.js";
6
6
  import "@arcgis/core/geometry/support/jsonUtils.js";
7
7
  import "@arcgis/core/rest/support/AttributeBinsQuery.js";
8
8
  import "@arcgis/core/rest/support/Query.js";
@@ -24,100 +24,99 @@ import $t from "@arcgis/core/layers/support/FeatureFilter.js";
24
24
  import Ba from "@arcgis/core/smartMapping/statistics/histogram.js";
25
25
  import Rt from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
26
26
  import { linearRegression as va, linearRegressionLine as Na, rSquared as Ta } from "simple-statistics";
27
- import { c as Aa } from "./index.js";
28
- import { h as Pa } from "./index4.js";
27
+ import { h as Aa } from "./index4.js";
29
28
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
30
29
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
31
- v5.0.0-next.13 */
32
- async function La(i, e) {
30
+ v5.0.0-next.15 */
31
+ async function Pa(i, e) {
33
32
  const t = e.errors[i];
34
33
  throw new pt(e.modalHeaders.error, t ?? e.errors.simpleError);
35
34
  }
36
35
  function pe(i) {
37
36
  return i.axes?.[0]?.valueFormat?.type;
38
37
  }
39
- function oo(i) {
38
+ function no(i) {
40
39
  return i.intlOptions;
41
40
  }
42
41
  function J(i) {
43
42
  return i?.type === S.NumberAxisFormat;
44
43
  }
45
- function lo(i) {
44
+ function ro(i) {
46
45
  return J(i) && i.intlOptions?.style === "percent";
47
46
  }
48
47
  function fe(i) {
49
48
  return i?.type === S.CategoryAxisFormat;
50
49
  }
51
- function Ae(i) {
50
+ function Pe(i) {
52
51
  return i?.type === S.DateAxisFormat;
53
52
  }
54
- function co(i) {
53
+ function so(i) {
55
54
  const { oldConfig: e, newConfig: t, rotationChanged: a } = i;
56
55
  return a ? [!0, !0] : [
57
56
  e.horizontalAxisLabelsBehavior !== t.horizontalAxisLabelsBehavior,
58
57
  e.verticalAxisLabelsBehavior !== t.verticalAxisLabelsBehavior
59
58
  ];
60
59
  }
60
+ function La(i) {
61
+ return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
62
+ }
61
63
  function Ma(i) {
62
64
  return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
63
65
  }
64
66
  function wa(i) {
65
- return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
67
+ return (fe(i?.[0]?.valueFormat) || Pe(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
66
68
  }
67
69
  function Da(i) {
68
- return (fe(i?.[0]?.valueFormat) || Ae(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
70
+ return fe(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Pe(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Pe(i?.[0]?.valueFormat) && Pe(i?.[1]?.valueFormat);
69
71
  }
70
72
  function Oa(i) {
71
- return fe(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Ae(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Ae(i?.[0]?.valueFormat) && Ae(i?.[1]?.valueFormat);
73
+ return (fe(i?.[0]?.valueFormat) || Pe(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat);
72
74
  }
73
75
  function qa(i) {
74
- return (fe(i?.[0]?.valueFormat) || Ae(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat);
76
+ return J(i?.[0]?.valueFormat) && J(i?.[1]?.valueFormat);
75
77
  }
76
78
  function Ea(i) {
77
79
  return J(i?.[0]?.valueFormat) && J(i?.[1]?.valueFormat);
78
80
  }
79
81
  function Va(i) {
80
- return J(i?.[0]?.valueFormat) && J(i?.[1]?.valueFormat);
81
- }
82
- function Ia(i) {
83
82
  return J(i?.[0]?.valueFormat);
84
83
  }
85
- async function uo(i) {
84
+ async function oo(i) {
86
85
  const { chartType: e, axesConfig: t, errorStrings: a } = i;
87
86
  let n, r;
88
87
  switch (e) {
89
88
  case S.GaugeSeries:
90
- n = Ia, r = "invalidValueFormatForGauge";
89
+ n = Va, r = "invalidValueFormatForGauge";
91
90
  break;
92
91
  case S.ScatterSeries:
93
- n = Ea, r = "invalidValueFormatForScatterplot";
92
+ n = qa, r = "invalidValueFormatForScatterplot";
94
93
  break;
95
94
  case S.HistogramSeries:
96
- n = Va, r = "invalidValueFormatForHistogram";
95
+ n = Ea, r = "invalidValueFormatForHistogram";
97
96
  break;
98
97
  case S.LineSeries:
99
- n = Ma, r = "invalidValueFormatForLineChart";
98
+ n = La, r = "invalidValueFormatForLineChart";
100
99
  break;
101
100
  case S.BarSeries:
102
- n = wa, r = "invalidValueFormatForBarChart";
101
+ n = Ma, r = "invalidValueFormatForBarChart";
103
102
  break;
104
103
  case S.ComboLineAndBarSeries:
105
- n = qa, r = "invalidValueFormatForComboBarLineChart";
104
+ n = Oa, r = "invalidValueFormatForComboBarLineChart";
106
105
  break;
107
106
  case S.BoxPlotSeries:
108
- n = Da, r = "invalidValueFormatForBoxPlot";
107
+ n = wa, r = "invalidValueFormatForBoxPlot";
109
108
  break;
110
109
  case S.HeatSeries:
111
- n = Oa, r = "invalidValueFormatForHeatChart";
110
+ n = Da, r = "invalidValueFormatForHeatChart";
112
111
  break;
113
112
  }
114
- n !== void 0 && r !== void 0 && (n(t) || await La(r, a));
113
+ n !== void 0 && r !== void 0 && (n(t) || await Pa(r, a));
115
114
  }
116
- function $a(i) {
115
+ function Ia(i) {
117
116
  const { isXAxis: e, chartType: t, valueFormat: a, isAxisForHistogramOverlaySeries: n } = i;
118
117
  return e && (fe(a) || t === S.HistogramSeries && !n || t === S.BarSeries && J(a));
119
118
  }
120
- function fo(i) {
119
+ function lo(i) {
121
120
  const { chartConfig: e, isSecondValueAxis: t, seriesIds: a } = i;
122
121
  let n = a;
123
122
  return e.axes?.length === 3 && (n = e.series.map((r) => {
@@ -200,13 +199,13 @@ const si = {
200
199
  },
201
200
  heatChartFirstDayOfWeek: 7
202
201
  };
203
- function Ra(i, e) {
202
+ function $a(i, e) {
204
203
  return i[0].dataTransformationType !== e[0].dataTransformationType;
205
204
  }
206
- function ka(i, e) {
205
+ function Ra(i, e) {
207
206
  return i[0].binCount !== e[0].binCount;
208
207
  }
209
- function mo(i, e) {
208
+ function co(i, e) {
210
209
  let t = !0;
211
210
  const a = W(i?.series), n = W(e?.series);
212
211
  return a !== n && (t = a === S.ComboLineAndBarSeries && (n === S.BarSeries || n === S.LineSeries) || n === S.ComboLineAndBarSeries && (a === S.BarSeries || a === S.LineSeries) || a === S.BarSeries && n === S.LineSeries || a === S.LineSeries && n === S.BarSeries), t;
@@ -214,14 +213,14 @@ function mo(i, e) {
214
213
  function St(i, e) {
215
214
  return i !== void 0 && e !== void 0 && e > 0;
216
215
  }
217
- function go(i) {
216
+ function uo(i) {
218
217
  const { chartConfig: e, queryObject: t, chartData: a } = i;
219
218
  let n = [];
220
219
  const r = E(e.series), s = Gt(e), o = z(t), c = e.chartRenderer ?? o?.renderer?.toJSON();
221
220
  return n = e.series.map((l, u) => {
222
221
  const d = W([l]);
223
222
  let f;
224
- return (d === S.BarSeries || d === S.LineSeries || d === S.RadarSeries) && (l.type === S.BarSeries ? f = l.fillSymbol?.color : (l.type === S.RadarSeries || l.type === S.LineSeries) && (f = l.lineSymbol?.color), s ? f = Ps({
223
+ return (d === S.BarSeries || d === S.LineSeries || d === S.RadarSeries) && (l.type === S.BarSeries ? f = l.fillSymbol?.color : (l.type === S.RadarSeries || l.type === S.LineSeries) && (f = l.lineSymbol?.color), s ? f = Ts({
225
224
  dataItem: a[0],
226
225
  seriesConfig: l,
227
226
  chartSubType: r,
@@ -231,22 +230,22 @@ function go(i) {
231
230
  }).filter((l) => l !== void 0), n;
232
231
  }
233
232
  function Ft(i) {
234
- return i !== p.PieNoAggregation && i !== p.BarAndLineNoAggregation && i !== p.BarAndLineSplitByNoAggregation;
233
+ return i !== h.PieNoAggregation && i !== h.BarAndLineNoAggregation && i !== h.BarAndLineSplitByNoAggregation;
235
234
  }
236
- function ja(i) {
235
+ function ka(i) {
237
236
  const e = E(i.series);
238
- return e === p.BarAndLineFromFields || e === p.PieFromFields || e === p.BoxPlotMonoField || e === p.BoxPlotMultiFields || e === p.BoxPlotMonoFieldAndSplitBy || e === p.BoxPlotMultiFieldsAndSplitBy;
237
+ return e === h.BarAndLineFromFields || e === h.PieFromFields || e === h.BoxPlotMonoField || e === h.BoxPlotMultiFields || e === h.BoxPlotMonoFieldAndSplitBy || e === h.BoxPlotMultiFieldsAndSplitBy;
239
238
  }
240
239
  function He(i) {
241
240
  return i && "showMean" in i && typeof i.showMean == "boolean" ? i.showMean : !1;
242
241
  }
243
- function Wa(i) {
242
+ function ja(i) {
244
243
  return i && "showOutliers" in i && typeof i.showOutliers == "boolean" ? i.showOutliers : void 0;
245
244
  }
246
- function yo() {
245
+ function fo() {
247
246
  return `{name} {${b.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
248
247
  }
249
- function Qa(i) {
248
+ function Wa(i) {
250
249
  let e;
251
250
  return i?.[0] !== void 0 && (e = i.reduce(
252
251
  (t, a) => ({
@@ -272,12 +271,12 @@ function ze(i) {
272
271
  let c = e;
273
272
  const { originalCategoryValue: l, originalDateValue: u, typeOrDomainIdValue: d } = b;
274
273
  if (t !== void 0) {
275
- const f = s ? xs(t) : void 0;
274
+ const f = s ? Fs(t) : void 0;
276
275
  a !== void 0 && t[a] !== void 0 ? c = t[a] : f !== void 0 ? c = f : n === !1 && t[d] !== void 0 ? c = t[d] : t[u] !== void 0 ? c = t[u] : t[l] !== void 0 ? c = t[l] : t[ne] !== void 0 && (c = t[ne]), !r && c === null && (c = "null", o?.series?.[0].type === S.BarSeries && (c = o.series?.[0]?.nullCategory?.text ?? si.nullCategory?.text ?? c));
277
276
  }
278
277
  return c;
279
278
  }
280
- function Ha(i) {
279
+ function Qa(i) {
281
280
  return i?.[b.typeOrDomainIdValue] !== void 0 ? i?.[b.typeOrDomainIdValue] : i?.[b.originalCategoryValue];
282
281
  }
283
282
  function Ge(i) {
@@ -309,7 +308,7 @@ function Ge(i) {
309
308
  });
310
309
  }
311
310
  }
312
- function za(i) {
311
+ function Ha(i) {
313
312
  const { arrayToSort: e, orderBy: t, sortingField: a, fieldList: n, isByFieldsChart: r, preferLabel: s } = i;
314
313
  e !== void 0 && e.length > 1 && !ee(a) && t !== void 0 && t.length > 0 && e.sort((o, c) => {
315
314
  let l = o[a];
@@ -324,7 +323,7 @@ function za(i) {
324
323
  }
325
324
  function oi(i, e) {
326
325
  const t = i;
327
- if (e?.[0] !== void 0 && E(e) === p.PieFromFields) {
326
+ if (e?.[0] !== void 0 && E(e) === h.PieFromFields) {
328
327
  const { x: a, y: n } = e[0];
329
328
  (vt(i) ? t : t.dataItems).forEach((o) => (ne in o && a !== ne && (o[a] = o[a] !== void 0 ? o[a] : o[ne], delete o[ne]), he in o && n !== he && (o[n] = o[n] !== void 0 ? o[n] : o[he], delete o[he]), o));
330
329
  }
@@ -357,7 +356,7 @@ function bt(i) {
357
356
  const a = lt(e);
358
357
  return a.isInItem && delete e[a.expr ?? ""], e;
359
358
  }
360
- function Ga(i, e) {
359
+ function za(i, e) {
361
360
  let t = i;
362
361
  const a = W(e);
363
362
  let n = _t(t);
@@ -385,8 +384,8 @@ function Ga(i, e) {
385
384
  }
386
385
  function ci(i) {
387
386
  const { data: e, seriesConfig: t } = i;
388
- let a = Me(e);
389
- return a !== void 0 && (a = li(a, t), a = Ga(a, t), a = oi(a, t)), a;
387
+ let a = Fe(e);
388
+ return a !== void 0 && (a = li(a, t), a = za(a, t), a = oi(a, t)), a;
390
389
  }
391
390
  function ui(i) {
392
391
  const { statsMap: e, dataContext: t, chartLimits: a } = i;
@@ -397,19 +396,19 @@ function ui(i) {
397
396
  } else t !== void 0 && (n = b.scatterplotAggregationFields.dataContextXMinField in t);
398
397
  return n;
399
398
  }
400
- function Ua(i) {
399
+ function Ga(i) {
401
400
  let e = !0;
402
401
  const t = W(i.series);
403
402
  if (t === S.BarSeries || t === S.LineSeries || t === S.ComboLineAndBarSeries) {
404
403
  const a = E(i.series);
405
- e = a !== p.BarAndLineNoAggregation && a !== p.BarAndLineSplitByNoAggregation;
404
+ e = a !== h.BarAndLineNoAggregation && a !== h.BarAndLineSplitByNoAggregation;
406
405
  }
407
406
  return e;
408
407
  }
409
- function _a(i) {
410
- return E(i.series) !== p.PieNoAggregation;
408
+ function Ua(i) {
409
+ return E(i.series) !== h.PieNoAggregation;
411
410
  }
412
- function Ya(i) {
411
+ function _a(i) {
413
412
  const { dataContext: e, chartConfig: t, chartLimits: a } = i;
414
413
  let n = !0;
415
414
  if (t !== void 0)
@@ -417,18 +416,18 @@ function Ya(i) {
417
416
  case S.BarSeries:
418
417
  case S.LineSeries:
419
418
  case S.ComboLineAndBarSeries:
420
- n = Ua(t);
419
+ n = Ga(t);
421
420
  break;
422
421
  case S.ScatterSeries:
423
422
  n = ui({ dataContext: e, chartLimits: a });
424
423
  break;
425
424
  case S.PieSeries:
426
- n = _a(t);
425
+ n = Ua(t);
427
426
  break;
428
427
  }
429
428
  return n;
430
429
  }
431
- function Ka(i, e) {
430
+ function Ya(i, e) {
432
431
  let t = i;
433
432
  switch (e) {
434
433
  case _.Log:
@@ -445,57 +444,57 @@ function Ve(i) {
445
444
  return Number.isNaN(e) || (e = new Intl.DateTimeFormat("en-US", b.dateFormatUTC).format(i).replace(",", "")), e;
446
445
  }
447
446
  function st(i) {
448
- const { dataToConvert: e, x: t, y: a, fieldList: n } = i, r = [], s = e[xe];
447
+ const { dataToConvert: e, x: t, y: a, fieldList: n } = i, r = [], s = e[Ce];
449
448
  return Object.entries(e).forEach(([o]) => {
450
- if (o !== "" && o !== xe && o in e) {
449
+ if (o !== "" && o !== Ce && o in e) {
451
450
  const c = {
452
451
  [t]: ht(n, o),
453
452
  [a]: e[o],
454
453
  [b.xAxisField]: o,
455
454
  [b.originalCategoryValue]: o
456
455
  };
457
- s !== void 0 && (c[xe] = s), e[`${b.rendererSymbolField}_${o}`] !== void 0 && (c[b.rendererSymbolField] = e[`${b.rendererSymbolField}_${o}`]), r.push(c);
456
+ s !== void 0 && (c[Ce] = s), e[`${b.rendererSymbolField}_${o}`] !== void 0 && (c[b.rendererSymbolField] = e[`${b.rendererSymbolField}_${o}`]), r.push(c);
458
457
  }
459
458
  }), r;
460
459
  }
461
- function Ja(i, e) {
460
+ function Ka(i, e) {
462
461
  return JSON.stringify(i.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
463
462
  }
464
- function Xa(i, e) {
463
+ function Ja(i, e) {
465
464
  return JSON.stringify(i.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(i.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (i.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || i.outTimeZone !== e.outTimeZone || (i.nullPolicy ?? re.Null) !== (e.nullPolicy ?? re.Null);
466
465
  }
467
- function Za(i) {
466
+ function Xa(i) {
468
467
  const { oldConfig: e, newConfig: t, fieldList: a } = i, n = e.series[0], r = t.series[0];
469
468
  let s = !1;
470
469
  if (n.type === S.ScatterSeries && r.type === S.ScatterSeries && a && a.length > 0) {
471
470
  const o = new Set(n.additionalTooltipFields || []), c = new Set(r.additionalTooltipFields || []);
472
- if (!Pe(o, c)) {
471
+ if (!Le(o, c)) {
473
472
  const l = Array.from(c).filter((u) => !o.has(u));
474
473
  l.length > 0 && (s = a?.some((u) => l.includes(u.name) && !We(u)));
475
474
  }
476
475
  }
477
476
  return s;
478
477
  }
479
- function po(i, e) {
478
+ function mo(i, e) {
480
479
  return (i.colorMatch ?? !1) !== (e.colorMatch ?? !1);
481
480
  }
482
- function ho(i, e) {
481
+ function go(i, e) {
483
482
  return (i.legend?.visible ?? !1) !== (e.legend?.visible ?? !1) || JSON.stringify(i.legend?.body) !== JSON.stringify(e.legend?.body);
484
483
  }
485
- function So(i, e) {
484
+ function yo(i, e) {
486
485
  return JSON.stringify(i.series[0]?.gradientRules) !== JSON.stringify(e.series[0]?.gradientRules);
487
486
  }
488
- function Fo(i) {
487
+ function po(i) {
489
488
  const { oldConfig: e, newConfig: t } = i;
490
489
  let a = !1;
491
490
  const n = e.series[0], r = t.series[0], s = W(e.series), o = W(t.series);
492
491
  if (s === S.PieSeries && o === S.PieSeries) {
493
- const { slices: c, sliceGrouping: l } = n, { slices: u, sliceGrouping: d } = r, f = c?.map((h) => ({
494
- sliceId: h.sliceId,
495
- label: h.label
496
- })), m = u?.map((h) => ({
497
- sliceId: h.sliceId,
498
- label: h.label
492
+ const { slices: c, sliceGrouping: l } = n, { slices: u, sliceGrouping: d } = r, f = c?.map((p) => ({
493
+ sliceId: p.sliceId,
494
+ label: p.label
495
+ })), m = u?.map((p) => ({
496
+ sliceId: p.sliceId,
497
+ label: p.label
499
498
  })), g = l?.label, y = d?.label;
500
499
  a = JSON.stringify(f) !== JSON.stringify(m) || JSON.stringify(g) !== JSON.stringify(y);
501
500
  }
@@ -504,10 +503,10 @@ function Fo(i) {
504
503
  function kt(i, e) {
505
504
  return e.length !== i.length;
506
505
  }
507
- function en(i) {
506
+ function Za(i) {
508
507
  const { oldSeries: e, newConfig: t, oldTimeIntervalInfo: a, setTimeBinningInfoWhenNotProvided: n } = i, r = t.series?.[0];
509
508
  let s = !1, o = !1, c = !1;
510
- if (oe(r) && ve({
509
+ if (oe(r) && Ne({
511
510
  seriesConfig: r,
512
511
  xAxisValueFormatType: pe(t),
513
512
  setTimeBinningInfoWhenNotProvided: n
@@ -517,10 +516,10 @@ function en(i) {
517
516
  }
518
517
  return { timeBinningChanged: s, timeIntervalUnitChanged: o, newTimeBinningWillBeCalculated: c };
519
518
  }
520
- function tn(i) {
519
+ function en(i) {
521
520
  const { oldConfig: e, newConfig: t, behaviorAfterLimit: a } = i, n = e.series, r = t.series;
522
521
  let s = !1, o = !1;
523
- (a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || t.orderOptions?.data === void 0) && (o = !Pe(e.orderOptions?.orderByFields, t.orderOptions?.orderByFields));
522
+ (a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || t.orderOptions?.data === void 0) && (o = !Le(e.orderOptions?.orderByFields, t.orderOptions?.orderByFields));
524
523
  const c = Ot(
525
524
  n.map((u) => u.query),
526
525
  ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"]
@@ -528,9 +527,9 @@ function tn(i) {
528
527
  r.map((u) => u.query),
529
528
  ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"]
530
529
  );
531
- return s = !Pe(c, l), s || o;
530
+ return s = !Le(c, l), s || o;
532
531
  }
533
- function an(i, e) {
532
+ function tn(i, e) {
534
533
  let t = !1;
535
534
  if (e[0].x !== i[0].x)
536
535
  t = !0;
@@ -543,38 +542,35 @@ function an(i, e) {
543
542
  }
544
543
  return t;
545
544
  }
546
- function nn(i, e) {
545
+ function an(i, e) {
547
546
  return (i ?? !1) !== (e?.filterBySelection ?? !1);
548
547
  }
549
548
  function di(i) {
550
549
  const { currentSelectionOIDs: e, options: t } = i;
551
550
  let a = !1;
552
- return t?.filterBySelection === !0 && (a = e?.length !== t?.selectionData?.selectionOIDs?.length || !Pe(e, t?.selectionData?.selectionOIDs)), a;
553
- }
554
- function rn(i, e) {
555
- return JSON.stringify(i.dataFilters) !== JSON.stringify(e.dataFilters);
551
+ return t?.filterBySelection === !0 && (a = e?.length !== t?.selectionData?.selectionOIDs?.length || !Le(e, t?.selectionData?.selectionOIDs)), a;
556
552
  }
557
- function sn(i, e) {
553
+ function nn(i, e) {
558
554
  return oe(i.series[0]) && oe(e.series[0]) && (i.series[0].binTemporalData ?? b.binTemporalData) !== (e.series[0].binTemporalData ?? b.binTemporalData);
559
555
  }
560
- function bo(i, e) {
556
+ function ho(i, e) {
561
557
  return i?.length !== e?.length || i?.some((t, a) => {
562
558
  const n = ge({ where: t?.query?.where }), r = ge({ where: e?.[a]?.query?.where });
563
559
  return n !== r;
564
560
  });
565
561
  }
566
- function xo(i, e) {
562
+ function So(i, e) {
567
563
  const t = se(i), a = se(e);
568
564
  return JSON.stringify(t) !== JSON.stringify(a);
569
565
  }
570
- function on(i, e) {
566
+ function rn(i, e) {
571
567
  return He(i) !== He(e);
572
568
  }
573
- function ln(i, e) {
574
- const t = i.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = E(e.series), r = n === p.BarAndLineNoAggregation || n === p.BarAndLineSplitByNoAggregation, s = t === S.DateAxisFormat && a === S.NumberAxisFormat, o = t === S.NumberAxisFormat && a === S.DateAxisFormat;
569
+ function sn(i, e) {
570
+ const t = i.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = E(e.series), r = n === h.BarAndLineNoAggregation || n === h.BarAndLineSplitByNoAggregation, s = t === S.DateAxisFormat && a === S.NumberAxisFormat, o = t === S.NumberAxisFormat && a === S.DateAxisFormat;
575
571
  return t !== a && (r || s || o);
576
572
  }
577
- function Co(i) {
573
+ function Fo(i) {
578
574
  const {
579
575
  forceDataUpdate: e,
580
576
  oldConfig: t,
@@ -610,27 +606,27 @@ function Co(i) {
610
606
  tooltipFieldsChanged: !1
611
607
  }
612
608
  };
613
- switch (y.common.queryChanged = tn({
609
+ switch (y.common.queryChanged = en({
614
610
  oldConfig: t,
615
611
  newConfig: a,
616
612
  behaviorAfterLimit: n?.chartLimits?.behaviorAfterLimit
617
- }), y.common.configFiltersChanged = rn(t, a), y.common.xOrYChanged = an(u, l), y.common.filterBySelectionChanged = nn(r, n), y.common.dataForFilterBySelectionChanged = di({
613
+ }), y.common.configFiltersChanged = Gi(t, a), y.common.xOrYChanged = tn(u, l), y.common.filterBySelectionChanged = an(r, n), y.common.dataForFilterBySelectionChanged = di({
618
614
  currentSelectionOIDs: o,
619
615
  options: n
620
- }), y.common.binTemporalDataChanged = sn(t, a), y.common.valueFormatChangeRequiresNewData = ln(
616
+ }), y.common.binTemporalDataChanged = nn(t, a), y.common.valueFormatChangeRequiresNewData = sn(
621
617
  t,
622
618
  a
623
619
  ), y.common = {
624
620
  ...y.common,
625
- ...en({
621
+ ...Za({
626
622
  oldSeries: u,
627
623
  newConfig: a,
628
624
  oldTimeIntervalInfo: s,
629
625
  setTimeBinningInfoWhenNotProvided: n?.setTimeBinningInfoWhenNotProvided
630
626
  })
631
- }, m = Object.values(y.common).some((h) => h), d) {
627
+ }, m = Object.values(y.common).some((p) => p), d) {
632
628
  case S.HistogramSeries:
633
- y.histogram.dataPropsChanged = ka(u, l) || Ra(u, l);
629
+ y.histogram.dataPropsChanged = Ra(u, l) || $a(u, l);
634
630
  break;
635
631
  case S.LineSeries:
636
632
  case S.BarSeries:
@@ -638,16 +634,16 @@ function Co(i) {
638
634
  y.common.numberOfSeriesChanged = kt(u, l);
639
635
  break;
640
636
  case S.BoxPlotSeries:
641
- y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged = on(t, a);
637
+ y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged = rn(t, a);
642
638
  break;
643
639
  case S.GaugeSeries:
644
- y.gauge.valueConversionChanged = Ja(t, a);
640
+ y.gauge.valueConversionChanged = Ka(t, a);
645
641
  break;
646
642
  case S.HeatSeries:
647
- y.heatChart.binningChanged = Xa(t, a);
643
+ y.heatChart.binningChanged = Ja(t, a);
648
644
  break;
649
645
  case S.ScatterSeries:
650
- y.scatterPlot.tooltipFieldsChanged = Za({
646
+ y.scatterPlot.tooltipFieldsChanged = Xa({
651
647
  oldConfig: t,
652
648
  newConfig: a,
653
649
  fieldList: c
@@ -656,16 +652,16 @@ function Co(i) {
656
652
  }
657
653
  return (y.gauge.valueConversionChanged || y.histogram.dataPropsChanged || y.common.numberOfSeriesChanged || y.common.binTemporalDataChanged || y.boxPlot.showMeanChanged || y.heatChart.binningChanged || y.scatterPlot.tooltipFieldsChanged) && (g = !0), f = e === !0 || m || g, { dataUpdateNeeded: f, updateNeededDetails: y };
658
654
  }
659
- function Bo(i) {
655
+ function bo(i) {
660
656
  return i.common.timeIntervalUnitChanged || i.common.newTimeBinningWillBeCalculated || i.common.dataForFilterBySelectionChanged || i.common.filterBySelectionChanged || i.common.configFiltersChanged || i.common.numberOfSeriesChanged || i.common.queryChanged || i.common.xOrYChanged;
661
657
  }
662
- function cn(i, e) {
658
+ function on(i, e) {
663
659
  let t = !0;
664
660
  if (i !== void 0 && i.length > 1 && !ee(e)) {
665
661
  let a = 0, n = 0, r = 0;
666
662
  i.forEach((s) => {
667
663
  const o = s[e];
668
- !Gi(o) || o === 0 ? r += 1 : o > 0 ? a += 1 : n += 1;
664
+ !Ui(o) || o === 0 ? r += 1 : o > 0 ? a += 1 : n += 1;
669
665
  }), t = r === i.length || a >= 0 && n === 0 || a === 0 && n >= 0;
670
666
  }
671
667
  return t;
@@ -692,9 +688,9 @@ function fi(i, e) {
692
688
  maxLineThreePlusSeriesCountPerSeries: m,
693
689
  maxLineThreePlusSeriesCountTotal: g,
694
690
  maxPieChartSliceCountTotal: y,
695
- maxGaugeByFeaturesLimit: h
696
- } = Re(e), x = W(i.series), F = i.series.length === 0 ? 1 : i.series.length, C = E(i.series);
697
- switch (x) {
691
+ maxGaugeByFeaturesLimit: p
692
+ } = Re(e), C = W(i.series), F = i.series.length === 0 ? 1 : i.series.length, x = E(i.series);
693
+ switch (C) {
698
694
  case S.ComboLineAndBarSeries:
699
695
  case S.BarSeries:
700
696
  F <= a && (F === 1 ? t = n : F === 2 ? t = it({
@@ -722,7 +718,7 @@ function fi(i, e) {
722
718
  t = y;
723
719
  break;
724
720
  case S.GaugeSeries:
725
- t = h;
721
+ t = p;
726
722
  break;
727
723
  case S.ScatterSeries:
728
724
  // handled through the aggregation feature
@@ -730,7 +726,7 @@ function fi(i, e) {
730
726
  // handled through the number of bins
731
727
  case S.BoxPlotSeries:
732
728
  }
733
- return (C === p.BarAndLineNoAggregation || C === p.BarAndLineMultiFields) && t !== void 0 && (t = Math.ceil(t / F)), t;
729
+ return (x === h.BarAndLineNoAggregation || x === h.BarAndLineMultiFields) && t !== void 0 && (t = Math.ceil(t / F)), t;
734
730
  }
735
731
  function jt(i, e) {
736
732
  let t = i;
@@ -740,7 +736,7 @@ function jt(i, e) {
740
736
  }
741
737
  return t;
742
738
  }
743
- function un(i) {
739
+ function ln(i) {
744
740
  let e = !1;
745
741
  if (i !== void 0) {
746
742
  const t = i.replace(" ", ""), a = /^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u, n = /^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;
@@ -748,9 +744,9 @@ function un(i) {
748
744
  }
749
745
  return e;
750
746
  }
751
- function vo(i) {
747
+ function xo(i) {
752
748
  let e;
753
- if (un(i)) {
749
+ if (ln(i)) {
754
750
  const t = /%(\d{1,3}(.\d+)?)$/u, a = /(\d{1,3}(.\d+)?)%$/u, n = i.replace(" ", ""), r = t.exec(n)?.[1] ?? a.exec(n)?.[1];
755
751
  r !== void 0 && (e = Number(r));
756
752
  }
@@ -777,7 +773,7 @@ function ce(i) {
777
773
  bubbles: !0
778
774
  };
779
775
  }
780
- function No(i) {
776
+ function Co(i) {
781
777
  const { data: e, seriesConfig: t, htmlContainer: a } = i;
782
778
  if (a && e) {
783
779
  const n = ci({ data: e, seriesConfig: t });
@@ -786,36 +782,36 @@ function No(i) {
786
782
  );
787
783
  }
788
784
  }
789
- function To(i) {
785
+ function Bo(i) {
790
786
  const { data: e, chartConfig: t, htmlContainer: a } = i;
791
787
  if (a && e) {
792
- const n = gs(e, t);
788
+ const n = fs(e, t);
793
789
  a.dispatchEvent(new window.CustomEvent(le.DataFetchComplete, ce(n)));
794
790
  }
795
791
  }
796
- function Ao(i, e) {
792
+ function vo(i, e) {
797
793
  e && e.dispatchEvent(
798
794
  new window.CustomEvent(le.LegendItemVisibilityChange, ce(i))
799
795
  );
800
796
  }
801
- function Po(i, e) {
797
+ function No(i, e) {
802
798
  e && e.dispatchEvent(new window.CustomEvent(le.UpdateComplete, ce(i)));
803
799
  }
804
- function Lo(i) {
800
+ function To(i) {
805
801
  i && i.dispatchEvent(new window.CustomEvent(le.RenderingComplete, ce()));
806
802
  }
807
- function Mo(i) {
803
+ function Ao(i) {
808
804
  const { data: e, seriesConfig: t, htmlContainer: a } = i;
809
805
  if (a) {
810
806
  const n = e;
811
- let r = Me(e.selectionItems);
807
+ let r = Fe(e.selectionItems);
812
808
  r && (r = li(r, t), r = r.map(bt), r = oi(r, t), n.selectionItems = r), a.dispatchEvent(new window.CustomEvent(le.SelectionComplete, ce(n)));
813
809
  }
814
810
  }
815
- function wo(i) {
811
+ function Po(i) {
816
812
  i && i.dispatchEvent(new window.CustomEvent(le.TooManySelectedElements, ce()));
817
813
  }
818
- function Do(i) {
814
+ function Lo(i) {
819
815
  const { data: e, htmlContainer: t, chartId: a, colorMatchApplied: n } = i;
820
816
  t && t.dispatchEvent(
821
817
  new window.CustomEvent(
@@ -828,73 +824,73 @@ function Do(i) {
828
824
  )
829
825
  );
830
826
  }
831
- function Oo(i, e) {
827
+ function Mo(i, e) {
832
828
  e && e.dispatchEvent(new window.CustomEvent(le.AxesMinMaxChange, ce(i)));
833
829
  }
834
- function qo(i, e) {
830
+ function wo(i, e) {
835
831
  e && e.dispatchEvent(new window.CustomEvent(le.BadDataWarningRaise, ce(i)));
836
832
  }
837
- function dn(i) {
833
+ function cn(i) {
838
834
  const { data: e, htmlContainer: t } = i;
839
835
  t && e && t.dispatchEvent(new window.CustomEvent(le.SeriesOrder, ce(e)));
840
836
  }
841
- function Eo(i, e) {
837
+ function Do(i, e) {
842
838
  let t, a, n, r;
843
839
  return oe(i.series[0]) && (t = i.series[0].temporalBinning?.unit, n = i.series[0].temporalBinning?.size), oe(e.series[0]) && (a = e.series[0].temporalBinning?.unit, r = e.series[0].temporalBinning?.size), St(t, n) && !St(a, r);
844
840
  }
845
- function Vo(i, e) {
841
+ function Oo(i, e) {
846
842
  return i.axes?.length === 3 && e.axes?.length === 2 || i.axes?.length === 2 && e.axes?.length === 3;
847
843
  }
848
- function Io(i, e) {
844
+ function qo(i, e) {
849
845
  return JSON.stringify(i.series.map((t) => t.assignToSecondValueAxis ?? !1)) !== JSON.stringify(e.series.map((t) => t.assignToSecondValueAxis ?? !1));
850
846
  }
851
- function $o(i, e) {
847
+ function Eo(i, e) {
852
848
  const t = i.axes?.map((n) => n?.guides?.map((r) => r?.above === !0)), a = e.axes?.map((n) => n?.guides?.map((r) => r?.above === !0));
853
849
  return JSON.stringify(t) !== JSON.stringify(a);
854
850
  }
855
- function Ro(i, e) {
851
+ function Vo(i, e) {
856
852
  return qt(i) !== qt(e);
857
853
  }
858
- function ko(i) {
854
+ function Io(i) {
859
855
  return W(i.series) !== S.BoxPlotSeries ? b.xAxisField : i.series[0].x;
860
856
  }
861
- function jo(i) {
857
+ function $o(i) {
862
858
  const e = Yt(i);
863
859
  return e === ke.Stacked || e === ke.Stacked100;
864
860
  }
865
- function Wo(i, e) {
861
+ function Ro(i, e) {
866
862
  return (i.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility);
867
863
  }
868
- function Qo(i, e) {
864
+ function ko(i, e) {
869
865
  return (i.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility) !== (e.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility);
870
866
  }
871
- function Ho(i, e) {
867
+ function jo(i, e) {
872
868
  return JSON.stringify(i.chartRenderer) !== JSON.stringify(e.chartRenderer);
873
869
  }
874
- function zo(i, e) {
870
+ function Wo(i, e) {
875
871
  const t = i.axes?.[0].valueFormat.type === S.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === S.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
876
872
  return t !== a;
877
873
  }
878
- function fn(i, e) {
874
+ function un(i, e) {
879
875
  return i.series.map((t) => t.name).join() !== e.series.map((t) => t.name).join();
880
876
  }
881
- function mn(i, e) {
877
+ function dn(i, e) {
882
878
  const t = i.orderOptions?.series, a = e.orderOptions?.series, n = (t?.orderBy ?? me.Ascending) !== (a?.orderBy ?? me.Ascending), r = (t?.preferLabel ?? !0) !== (a?.preferLabel ?? !0);
883
879
  return n || r;
884
880
  }
885
- function Go(i, e) {
886
- return mn(i, e) || fn(i, e);
881
+ function Qo(i, e) {
882
+ return dn(i, e) || un(i, e);
887
883
  }
888
- function gn(i) {
884
+ function fn(i) {
889
885
  const e = E(i.series);
890
886
  let t;
891
887
  if (i.orderOptions?.data !== void 0) {
892
- let a = i.orderOptions?.data?.orderType ?? be.Category, n = i.orderOptions?.data?.orderBy;
893
- if (a === be.Category)
888
+ let a = i.orderOptions?.data?.orderType ?? xe.Category, n = i.orderOptions?.data?.orderBy;
889
+ if (a === xe.Category)
894
890
  a = i.series[0].x;
895
891
  else {
896
- a === be.Mean ? a = V.Average : a === be.Median && (a = V.Median);
897
- const r = e === p.BoxPlotMultiFieldsAndCategory && typeof i.series[0].y == "string" ? i.series[0].y : void 0, s = K(i.series[0].query?.where), o = ge({
892
+ a === xe.Mean ? a = V.Average : a === xe.Median && (a = V.Median);
893
+ const r = e === h.BoxPlotMultiFieldsAndCategory && typeof i.series[0].y == "string" ? i.series[0].y : void 0, s = K(i.series[0].query?.where), o = ge({
898
894
  where: i.series[0].query?.where
899
895
  });
900
896
  a = U({
@@ -913,9 +909,9 @@ function gn(i) {
913
909
  }
914
910
  return t;
915
911
  }
916
- function yn(i) {
912
+ function mn(i) {
917
913
  let e;
918
- if (!mi(i) && i.series?.length > 0 && i.orderOptions?.data?.orderType === be.Category) {
914
+ if (!mi(i) && i.series?.length > 0 && i.orderOptions?.data?.orderType === xe.Category) {
919
915
  let a;
920
916
  fe(i.axes?.[0]?.valueFormat) ? a = k.xField : fe(i.axes?.[1]?.valueFormat) && (a = k.yField), a && (e = {
921
917
  sortingField: a,
@@ -924,11 +920,11 @@ function yn(i) {
924
920
  }
925
921
  return e;
926
922
  }
927
- function pn(i) {
928
- const e = i.series[0], { x: t, y: a } = e, n = E(i.series) === p.PieFromFields, r = E(i.series) === p.BarAndLineFromFields;
923
+ function gn(i) {
924
+ const e = i.series[0], { x: t, y: a } = e, n = E(i.series) === h.PieFromFields, r = E(i.series) === h.BarAndLineFromFields;
929
925
  let s, o = "", c;
930
926
  if (i.orderOptions?.data !== void 0) {
931
- if (o = i.orderOptions?.data?.orderType ?? be.Category, c = i.orderOptions?.data?.orderBy, o === be.Category ? o = n ? ne : t : o = n ? he : [a].flat()[0], o !== void 0 && o !== "") {
927
+ if (o = i.orderOptions?.data?.orderType ?? xe.Category, c = i.orderOptions?.data?.orderBy, o === xe.Category ? o = n ? ne : t : o = n ? he : [a].flat()[0], o !== void 0 && o !== "") {
932
928
  const l = Yt(i);
933
929
  if (W(i.series) !== S.PieSeries && o !== t && i.series?.length > 1)
934
930
  switch (l) {
@@ -959,31 +955,31 @@ function xt(i) {
959
955
  let e;
960
956
  const t = W(i.series);
961
957
  if (t === S.HeatSeries)
962
- e = yn(i);
958
+ e = mn(i);
963
959
  else if (i.series?.length > 0)
964
960
  switch (t) {
965
961
  case S.BoxPlotSeries:
966
- e = gn(i);
962
+ e = fn(i);
967
963
  break;
968
964
  case S.LineSeries:
969
965
  case S.BarSeries:
970
966
  case S.RadarSeries:
971
967
  case S.PieSeries:
972
- e = pn(i);
968
+ e = gn(i);
973
969
  break;
974
970
  }
975
971
  return e;
976
972
  }
977
- function Uo(i) {
973
+ function Ho(i) {
978
974
  const { oldConfig: e, newConfig: t, dataUpdateNeeded: a } = i, n = E(t.series);
979
975
  let r = !1, s = !1;
980
- if (n !== p.BoxPlotMonoField && n !== p.BoxPlotMonoFieldAndSplitBy && t.orderOptions?.data !== void 0) {
976
+ if (n !== h.BoxPlotMonoField && n !== h.BoxPlotMonoFieldAndSplitBy && t.orderOptions?.data !== void 0) {
981
977
  const o = xt(e), c = xt(t);
982
978
  s = e.orderOptions?.data?.orderType !== t.orderOptions?.data?.orderType || o?.sortingField !== c?.sortingField || o?.orderBy !== c?.orderBy || (o?.preferLabel ?? !0) !== (c?.preferLabel ?? !0), r = s || a;
983
979
  }
984
980
  return r;
985
981
  }
986
- function _o(i, e) {
982
+ function zo(i, e) {
987
983
  const t = [], a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
988
984
  return i.forEach((r, s) => n.set(r.id, s)), e.forEach((r, s) => {
989
985
  let o = n.get(r.id);
@@ -995,8 +991,8 @@ function _o(i, e) {
995
991
  }
996
992
  }), t;
997
993
  }
998
- function Yo(i, e) {
999
- const t = Me(i);
994
+ function Go(i, e) {
995
+ const t = Fe(i);
1000
996
  if (t && t.series.length > 1) {
1001
997
  const { preferLabel: a, orderBy: n } = t.orderOptions?.series ?? {};
1002
998
  if (n !== void 0) {
@@ -1014,12 +1010,12 @@ function Yo(i, e) {
1014
1010
  });
1015
1011
  }
1016
1012
  }
1017
- return dn({
1013
+ return cn({
1018
1014
  data: t?.series.map((a) => a.id),
1019
1015
  htmlContainer: e
1020
1016
  }), t;
1021
1017
  }
1022
- function hn(i) {
1018
+ function yn(i) {
1023
1019
  const e = { ...i };
1024
1020
  return i.showMean === !0 && (e.series = [e.series[0]], e.series[0].query?.where !== void 0 && delete e.series[0].query.where), e;
1025
1021
  }
@@ -1051,10 +1047,10 @@ function ot(i) {
1051
1047
  break;
1052
1048
  }
1053
1049
  }
1054
- function Sn(i, e) {
1050
+ function pn(i, e) {
1055
1051
  i.valid = !1, i.invalidType = e;
1056
1052
  }
1057
- async function Ko(i) {
1053
+ async function Uo(i) {
1058
1054
  const {
1059
1055
  invalidType: e,
1060
1056
  chartLimits: t,
@@ -1072,16 +1068,16 @@ async function Ko(i) {
1072
1068
  switch (e) {
1073
1069
  case $.BarElementExceedsLimit: {
1074
1070
  y = l.modalHeaders.tooManyFeatures;
1075
- let x = Number.NaN, F = Number.NaN, C = "";
1076
- n !== void 0 && (n <= m.maxBarChartSeriesCount ? n === 1 ? (C = l.errors.uniqueSeriesBarCountCannotExceedLimit, x = m.maxBarUniqueSeriesCountTotal) : n === 2 ? (C = l.errors.twoSeriesBarCountCannotExceedLimit, x = m.maxBarTwoSeriesCountTotal, F = m.maxBarTwoSeriesCountPerSeries) : n > 2 && (C = l.errors.threePlusSeriesBarCountCannotExceedLimit, x = m.maxBarThreePlusSeriesCountTotal, F = m.maxBarThreePlusSeriesCountPerSeries) : (C = l.errors.barSeriesCountCannotExceedLimit, F = m.maxBarChartSeriesCount));
1077
- const B = f.format(x), N = f.format(F), v = a !== void 0 ? f.format(a) : "";
1078
- u = de(C, {
1071
+ let C = Number.NaN, F = Number.NaN, x = "";
1072
+ n !== void 0 && (n <= m.maxBarChartSeriesCount ? n === 1 ? (x = l.errors.uniqueSeriesBarCountCannotExceedLimit, C = m.maxBarUniqueSeriesCountTotal) : n === 2 ? (x = l.errors.twoSeriesBarCountCannotExceedLimit, C = m.maxBarTwoSeriesCountTotal, F = m.maxBarTwoSeriesCountPerSeries) : n > 2 && (x = l.errors.threePlusSeriesBarCountCannotExceedLimit, C = m.maxBarThreePlusSeriesCountTotal, F = m.maxBarThreePlusSeriesCountPerSeries) : (x = l.errors.barSeriesCountCannotExceedLimit, F = m.maxBarChartSeriesCount));
1073
+ const B = f.format(C), N = f.format(F), v = a !== void 0 ? f.format(a) : "";
1074
+ u = de(x, {
1079
1075
  totalLimit: B,
1080
1076
  seriesLimit: N,
1081
1077
  elementCount: v
1082
1078
  }), d = {
1083
1079
  actualCount: a ?? Number.NaN,
1084
- totalLimit: x,
1080
+ totalLimit: C,
1085
1081
  seriesLimit: F
1086
1082
  };
1087
1083
  break;
@@ -1089,16 +1085,16 @@ async function Ko(i) {
1089
1085
  case $.LineChartExceedsLimit:
1090
1086
  {
1091
1087
  y = l.modalHeaders.tooManyFeatures;
1092
- let x = Number.NaN, F = Number.NaN, C = "";
1093
- n !== void 0 && (n <= m.maxLineChartSeriesCount ? n === 1 ? (C = c ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, x = m.maxLineUniqueSeriesCountTotal) : n === 2 ? (C = c ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, x = m.maxLineTwoSeriesCountTotal, F = m.maxLineTwoSeriesCountPerSeries) : n > 2 && (C = c ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, x = m.maxLineThreePlusSeriesCountTotal, F = m.maxLineThreePlusSeriesCountPerSeries) : (C = l.errors.lineSeriesCountCannotExceedLimit, F = m.maxLineChartSeriesCount));
1094
- const B = f.format(x), N = f.format(F), v = a !== void 0 ? f.format(a) : "";
1095
- u = de(C, {
1088
+ let C = Number.NaN, F = Number.NaN, x = "";
1089
+ n !== void 0 && (n <= m.maxLineChartSeriesCount ? n === 1 ? (x = c ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, C = m.maxLineUniqueSeriesCountTotal) : n === 2 ? (x = c ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, C = m.maxLineTwoSeriesCountTotal, F = m.maxLineTwoSeriesCountPerSeries) : n > 2 && (x = c ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, C = m.maxLineThreePlusSeriesCountTotal, F = m.maxLineThreePlusSeriesCountPerSeries) : (x = l.errors.lineSeriesCountCannotExceedLimit, F = m.maxLineChartSeriesCount));
1090
+ const B = f.format(C), N = f.format(F), v = a !== void 0 ? f.format(a) : "";
1091
+ u = de(x, {
1096
1092
  elementCount: v,
1097
1093
  seriesLimit: N,
1098
1094
  totalLimit: B
1099
1095
  }), d = {
1100
1096
  actualCount: a ?? Number.NaN,
1101
- totalLimit: x,
1097
+ totalLimit: C,
1102
1098
  seriesLimit: F
1103
1099
  };
1104
1100
  }
@@ -1106,16 +1102,16 @@ async function Ko(i) {
1106
1102
  case $.BoxPlotExceedsLimit:
1107
1103
  {
1108
1104
  y = l.modalHeaders.tooManyFeatures;
1109
- let x = Number.NaN, F = Number.NaN, C = "";
1110
- n !== void 0 && (n <= m.maxBoxPlotSeriesCount ? n === 1 ? (C = l.errors.uniqueSeriesBoxCountCannotExceedLimit, x = m.maxBoxUniqueSeriesCountTotal) : n === 2 ? (C = l.errors.twoSeriesBoxCountCannotExceedLimit, x = m.maxBoxTwoSeriesCountTotal, F = m.maxBoxTwoSeriesCountPerSeries) : n > 2 && (C = l.errors.threePlusBoxLineCountCannotExceedLimit, x = m.maxBoxThreePlusSeriesCountTotal, F = m.maxBoxThreePlusSeriesCountPerSeries) : (C = l.errors.boxSeriesCountCannotExceedLimit, F = m.maxBoxPlotSeriesCount));
1111
- const B = f.format(x), N = f.format(F), v = a !== void 0 ? f.format(a) : "";
1112
- u = de(C, {
1105
+ let C = Number.NaN, F = Number.NaN, x = "";
1106
+ n !== void 0 && (n <= m.maxBoxPlotSeriesCount ? n === 1 ? (x = l.errors.uniqueSeriesBoxCountCannotExceedLimit, C = m.maxBoxUniqueSeriesCountTotal) : n === 2 ? (x = l.errors.twoSeriesBoxCountCannotExceedLimit, C = m.maxBoxTwoSeriesCountTotal, F = m.maxBoxTwoSeriesCountPerSeries) : n > 2 && (x = l.errors.threePlusBoxLineCountCannotExceedLimit, C = m.maxBoxThreePlusSeriesCountTotal, F = m.maxBoxThreePlusSeriesCountPerSeries) : (x = l.errors.boxSeriesCountCannotExceedLimit, F = m.maxBoxPlotSeriesCount));
1107
+ const B = f.format(C), N = f.format(F), v = a !== void 0 ? f.format(a) : "";
1108
+ u = de(x, {
1113
1109
  elementCount: v,
1114
1110
  seriesLimit: N,
1115
1111
  totalLimit: B
1116
1112
  }), d = {
1117
1113
  actualCount: a ?? Number.NaN,
1118
- totalLimit: x,
1114
+ totalLimit: C,
1119
1115
  seriesLimit: F
1120
1116
  };
1121
1117
  }
@@ -1123,19 +1119,19 @@ async function Ko(i) {
1123
1119
  case $.BoxPlotOutliersExceedsLimit:
1124
1120
  {
1125
1121
  y = l.modalHeaders.tooManyFeatures;
1126
- const x = l.errors.boxSeriesOutlierCannotExceedLimit, F = m.maxBoxPlotOutlierLimit, C = f.format(F);
1127
- u = de(x, {
1128
- totalLimit: C
1122
+ const C = l.errors.boxSeriesOutlierCannotExceedLimit, F = m.maxBoxPlotOutlierLimit, x = f.format(F);
1123
+ u = de(C, {
1124
+ totalLimit: x
1129
1125
  }), d = { actualCount: a ?? Number.NaN, totalLimit: F };
1130
1126
  }
1131
1127
  break;
1132
1128
  case $.HeatChartExceedsLimit:
1133
1129
  {
1134
1130
  y = l.modalHeaders.tooManyFeatures;
1135
- const x = l.errors.heatChartCannotExceedLimit, F = m.maxHeatChartCellLimit, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
1136
- u = de(x, {
1131
+ const C = l.errors.heatChartCannotExceedLimit, F = m.maxHeatChartCellLimit, x = f.format(F), B = a !== void 0 ? f.format(a) : "";
1132
+ u = de(C, {
1137
1133
  featureCount: B,
1138
- totalLimit: C
1134
+ totalLimit: x
1139
1135
  }), d = {
1140
1136
  actualCount: a ?? Number.NaN,
1141
1137
  totalLimit: F
@@ -1145,10 +1141,10 @@ async function Ko(i) {
1145
1141
  case $.PieChartExceedsLimit:
1146
1142
  {
1147
1143
  y = l.modalHeaders.tooManyFeatures;
1148
- const x = l.errors.pieChartSlicesCannotExceedLimit, F = m.maxPieChartSliceCountTotal, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
1149
- u = de(x, {
1144
+ const C = l.errors.pieChartSlicesCannotExceedLimit, F = m.maxPieChartSliceCountTotal, x = f.format(F), B = a !== void 0 ? f.format(a) : "";
1145
+ u = de(C, {
1150
1146
  sliceCount: B,
1151
- totalLimit: C
1147
+ totalLimit: x
1152
1148
  }), d = {
1153
1149
  actualCount: a ?? Number.NaN,
1154
1150
  totalLimit: F
@@ -1158,10 +1154,10 @@ async function Ko(i) {
1158
1154
  case $.GaugeExceedsLimit:
1159
1155
  {
1160
1156
  y = l.modalHeaders.tooManyFeatures;
1161
- const x = l.errors.gaugeCannotExceedLimit, F = m.maxGaugeByFeaturesLimit, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
1162
- u = de(x, {
1157
+ const C = l.errors.gaugeCannotExceedLimit, F = m.maxGaugeByFeaturesLimit, x = f.format(F), B = a !== void 0 ? f.format(a) : "";
1158
+ u = de(C, {
1163
1159
  featureCount: B,
1164
- totalLimit: C
1160
+ totalLimit: x
1165
1161
  }), d = {
1166
1162
  actualCount: a ?? Number.NaN,
1167
1163
  totalLimit: F
@@ -1181,7 +1177,7 @@ async function Ko(i) {
1181
1177
  u = l.errors.histogramEmptyField;
1182
1178
  break;
1183
1179
  case $.EmptyDataSet:
1184
- y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage : Ui(r) ? u = l.errors.noDataFBEMessage : u = l.errors.noDataMessage;
1180
+ y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage : _i(r) ? u = l.errors.noDataFBEMessage : u = l.errors.noDataMessage;
1185
1181
  break;
1186
1182
  case $.NegativeValueInXAxisLogScale:
1187
1183
  u = l.errors.logarithmicXAxisNotPossible;
@@ -1192,9 +1188,9 @@ async function Ko(i) {
1192
1188
  case $.BadData:
1193
1189
  }
1194
1190
  if (u === l.errors.defaultInvalidChart && (e === $.BarElementExceedsLimit || e === $.LineChartExceedsLimit || e === $.HeatChartExceedsLimit || e === $.PieChartExceedsLimit || e === $.GaugeExceedsLimit || e === $.BoxPlotExceedsLimit) && typeof a == "number" && typeof n == "number" && a / n > g) {
1195
- const x = a / n;
1191
+ const C = a / n;
1196
1192
  u = de(l.errors.categoryCountCannotExceedLimit, {
1197
- categoryCount: f.format(x),
1193
+ categoryCount: f.format(C),
1198
1194
  maxCategoryCount: f.format(g)
1199
1195
  });
1200
1196
  }
@@ -1234,50 +1230,50 @@ function At(i) {
1234
1230
  splitByValue: n
1235
1231
  }), y = e[g];
1236
1232
  if (y != null) {
1237
- let h = Number(y);
1238
- if (Number.isFinite(h)) {
1233
+ let p = Number(y);
1234
+ if (Number.isFinite(p)) {
1239
1235
  c = {
1240
1236
  ...c,
1241
1237
  key: m,
1242
1238
  showOutliers: !1,
1243
1239
  standardizeValues: !0
1244
1240
  };
1245
- let x = U(c);
1246
- if (o[x] = Ct({ mean: d, stdDev: f, value: h }), m === V.Min || m === V.Max) {
1241
+ let C = U(c);
1242
+ if (o[C] = Ct({ mean: d, stdDev: f, value: p }), m === V.Min || m === V.Max) {
1247
1243
  c = {
1248
1244
  ...c,
1249
1245
  key: m,
1250
1246
  showOutliers: !0,
1251
1247
  standardizeValues: !0
1252
- }, x = U(c), c = {
1248
+ }, C = U(c), c = {
1253
1249
  ...c,
1254
1250
  standardizeValues: !1,
1255
1251
  splitByValue: n
1256
1252
  };
1257
1253
  const F = U(c);
1258
- h = Number(e[F]), Number.isFinite(h) && (o[x] = Ct({
1254
+ p = Number(e[F]), Number.isFinite(p) && (o[C] = Ct({
1259
1255
  mean: d,
1260
1256
  stdDev: f,
1261
- value: h
1257
+ value: p
1262
1258
  }));
1263
1259
  }
1264
1260
  }
1265
1261
  }
1266
1262
  }), o;
1267
1263
  }
1268
- function Fn(i) {
1264
+ function hn(i) {
1269
1265
  const { data: e, yList: t, calculateZScore: a = !1 } = i, n = e[0], r = /* @__PURE__ */ new Map();
1270
1266
  return t.forEach((o) => {
1271
1267
  let c = {};
1272
1268
  Object.keys(n).forEach((l) => {
1273
1269
  l.startsWith(o) ? c[l.replace(`${o}_`, "")] = n[l] : l.includes(b.rendererSymbolField) && (c[l] = n[l]), c[b.boxPlot.boxPlotCategory] = o, a && (c = At({
1274
1270
  dataItem: c,
1275
- chartSubType: p.BoxPlotMultiFields
1271
+ chartSubType: h.BoxPlotMultiFields
1276
1272
  }));
1277
1273
  }), r.set(o, c);
1278
1274
  }), Array.from(r.values());
1279
1275
  }
1280
- function bn(i) {
1276
+ function Sn(i) {
1281
1277
  const { data: e, splitByField: t, y: a } = i, n = {
1282
1278
  [b.boxPlot.boxPlotCategory]: a
1283
1279
  };
@@ -1288,7 +1284,7 @@ function bn(i) {
1288
1284
  });
1289
1285
  }), [n];
1290
1286
  }
1291
- function xn(i) {
1287
+ function Fn(i) {
1292
1288
  const { splitByField: e, data: t, yList: a, calculateZScore: n = !1, meanAndStdDevPerField: r } = i, s = /* @__PURE__ */ new Map();
1293
1289
  return t.forEach((c) => {
1294
1290
  const l = c[e];
@@ -1300,7 +1296,7 @@ function xn(i) {
1300
1296
  f.startsWith(`${u}_`) ? d[`${l}_${f.replace(`${u}_`, "")}`] = m : f.includes(b.rendererSymbolField) ? d[`${f}_${l}`] = m : f === b.boxPlot.boxPlotMeanLineMarkerId && (d[f] = c[f]);
1301
1297
  }), n && (d = At({
1302
1298
  dataItem: d,
1303
- chartSubType: p.BoxPlotMultiFieldsAndSplitBy,
1299
+ chartSubType: h.BoxPlotMultiFieldsAndSplitBy,
1304
1300
  splitByValue: l,
1305
1301
  meanPerField: r?.[Ie(u, P.Average)],
1306
1302
  stdDevPerField: r?.[Ie(u, P.StandardDeviation)]
@@ -1311,13 +1307,13 @@ function xn(i) {
1311
1307
  });
1312
1308
  }), Array.from(s.values());
1313
1309
  }
1314
- function Cn(i) {
1310
+ function bn(i) {
1315
1311
  const { data: e, yList: t, calculateZScore: a = !1, meanAndStdDevPerField: n } = i, r = e;
1316
1312
  return a && r.forEach((s) => {
1317
1313
  t.forEach((o) => {
1318
1314
  At({
1319
1315
  dataItem: s,
1320
- chartSubType: p.BoxPlotMultiFieldsAndCategory,
1316
+ chartSubType: h.BoxPlotMultiFieldsAndCategory,
1321
1317
  y: o,
1322
1318
  meanPerField: n?.[Ie(o, P.Average)],
1323
1319
  stdDevPerField: n?.[Ie(o, P.StandardDeviation)]
@@ -1325,7 +1321,7 @@ function Cn(i) {
1325
1321
  });
1326
1322
  }), r;
1327
1323
  }
1328
- function Bn(i) {
1324
+ function xn(i) {
1329
1325
  const { splitByField: e, x: t, data: a } = i, n = /* @__PURE__ */ new Map();
1330
1326
  return a.forEach((s) => {
1331
1327
  const o = s[t], c = { [t]: o }, l = s[e];
@@ -1344,9 +1340,9 @@ function Bn(i) {
1344
1340
  });
1345
1341
  }), Array.from(n.values());
1346
1342
  }
1347
- function vn(i, e) {
1343
+ function Cn(i, e) {
1348
1344
  const { series: t } = i, a = t[0], { y: n } = a, r = E(i.series), s = {
1349
- y: r === p.BoxPlotMultiFieldsAndCategory ? n : void 0,
1345
+ y: r === h.BoxPlotMultiFieldsAndCategory ? n : void 0,
1350
1346
  chartSubType: r
1351
1347
  }, o = i.series.map((c) => {
1352
1348
  let l = ge({
@@ -1380,7 +1376,7 @@ function vn(i, e) {
1380
1376
  });
1381
1377
  });
1382
1378
  }
1383
- function Nn(i, e) {
1379
+ function Bn(i, e) {
1384
1380
  let t, a;
1385
1381
  const n = i[e[V.IQR]], r = i[e[V.FirstQuartile]], s = i[e[V.ThirdQuartile]];
1386
1382
  return Number.isFinite(n) && Number.isFinite(r) && Number.isFinite(s) && (t = r - n * 1.5, a = s + n * 1.5), { outlierMinThreshold: t, outlierMaxThreshold: a };
@@ -1401,37 +1397,37 @@ function Wt(i) {
1401
1397
  return c === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : c === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [l, u, d].filter((m) => m !== void 0).join(" AND ");
1402
1398
  }
1403
1399
  function gi(i) {
1404
- const { data: e, yField: t, x: a, chartSubType: n, splitByField: r } = i, s = n === p.BoxPlotMonoField || n === p.BoxPlotMonoFieldAndCategory || n === p.BoxPlotMonoFieldAndSplitBy || n === p.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : t, o = je(s), c = [], l = [], { maxOperandsPerWhereClause: u } = Ue();
1400
+ const { data: e, yField: t, x: a, chartSubType: n, splitByField: r } = i, s = n === h.BoxPlotMonoField || n === h.BoxPlotMonoFieldAndCategory || n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : t, o = je(s), c = [], l = [], { maxOperandsPerWhereClause: u } = Ue();
1405
1401
  let d = [], f = [], m = 1;
1406
1402
  return e.forEach((g, y) => {
1407
- const { outlierMinThreshold: h, outlierMaxThreshold: x } = Nn(g, o);
1408
- if (typeof h == "number" && typeof x == "number") {
1403
+ const { outlierMinThreshold: p, outlierMaxThreshold: C } = Bn(g, o);
1404
+ if (typeof p == "number" && typeof C == "number") {
1409
1405
  const F = {
1410
1406
  yField: t,
1411
- outlierMinThreshold: h,
1412
- outlierMaxThreshold: x
1407
+ outlierMinThreshold: p,
1408
+ outlierMaxThreshold: C
1413
1409
  };
1414
- (n === p.BoxPlotMonoFieldAndCategory || n === p.BoxPlotMultiFieldsAndCategory || n === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in g && (F.xField = a, F.xValue = ze({
1410
+ (n === h.BoxPlotMonoFieldAndCategory || n === h.BoxPlotMultiFieldsAndCategory || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in g && (F.xField = a, F.xValue = ze({
1415
1411
  value: g[a],
1416
1412
  dataContext: g,
1417
1413
  keepNullValues: !0,
1418
1414
  specificField: b.typeOrDomainIdValue
1419
- })), (n === p.BoxPlotMonoFieldAndSplitBy || n === p.BoxPlotMultiFieldsAndSplitBy || n === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (F.splitByField = r, F.splitByValue = g[r]), d.push(Wt({ ...F, target: "outliers" })), f.push(Wt({ ...F, target: "alternativeData" })), (m % u === 0 || y === e.length - 1) && (c.push(Q(d, "OR")), l.push(Q(f, "OR")), d = [], f = []);
1415
+ })), (n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMultiFieldsAndSplitBy || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (F.splitByField = r, F.splitByValue = g[r]), d.push(Wt({ ...F, target: "outliers" })), f.push(Wt({ ...F, target: "alternativeData" })), (m % u === 0 || y === e.length - 1) && (c.push(Q(d, "OR")), l.push(Q(f, "OR")), d = [], f = []);
1420
1416
  }
1421
1417
  m += 1;
1422
1418
  }), { outliersFilterBatches: c, dataWithoutOutliersFilterBatches: l };
1423
1419
  }
1424
- function Tn(i) {
1420
+ function vn(i) {
1425
1421
  const { data: e, outlierDataItem: t, chartSubType: a, x: n, y: r, meanAndStdDevPerField: s, splitByField: o } = i;
1426
1422
  let c = s?.[Ie(r, P.Average)], l = s?.[Ie(r, P.StandardDeviation)];
1427
1423
  if (c === void 0 && l === void 0)
1428
1424
  switch (a) {
1429
- case p.BoxPlotMultiFields: {
1425
+ case h.BoxPlotMultiFields: {
1430
1426
  const u = je(r), d = e[0];
1431
1427
  c = Number(d[u[V.Average]]), l = Number(d[u[V.StandardDeviation]]);
1432
1428
  break;
1433
1429
  }
1434
- case p.BoxPlotMultiFieldsAndCategory: {
1430
+ case h.BoxPlotMultiFieldsAndCategory: {
1435
1431
  const u = e.find((d) => d[n] === t[n]);
1436
1432
  if (u !== void 0) {
1437
1433
  const d = je(r);
@@ -1439,7 +1435,7 @@ function Tn(i) {
1439
1435
  }
1440
1436
  break;
1441
1437
  }
1442
- case p.BoxPlotMultiFieldsAndSplitBy: {
1438
+ case h.BoxPlotMultiFieldsAndSplitBy: {
1443
1439
  const u = e.find((d) => d[o] === t[o]);
1444
1440
  if (u !== void 0) {
1445
1441
  const d = je(r);
@@ -1450,21 +1446,21 @@ function Tn(i) {
1450
1446
  }
1451
1447
  return { mean: c, stdDev: l };
1452
1448
  }
1453
- async function An(i) {
1449
+ async function Nn(i) {
1454
1450
  const { seriesConfig: e, data: t, uniqueQuery: a, queryObject: n, meanAndStdDevPerField: r, abortKey: s } = i, o = E(e), c = e[0], { x: l } = c, u = K(c.query?.where), d = z(n), f = se(e), m = [];
1455
- for (let h = 0; h < f.length; h += 1) {
1456
- const x = f[h], { outliersFilterBatches: F } = gi({
1451
+ for (let p = 0; p < f.length; p += 1) {
1452
+ const C = f[p], { outliersFilterBatches: F } = gi({
1457
1453
  data: t,
1458
- yField: x,
1454
+ yField: C,
1459
1455
  x: l,
1460
1456
  chartSubType: o,
1461
1457
  splitByField: u
1462
1458
  });
1463
- for (let C = 0; C < F.length; C += 1) {
1464
- const B = F[C];
1459
+ for (let x = 0; x < F.length; x += 1) {
1460
+ const B = F[x];
1465
1461
  if (B !== "") {
1466
1462
  const N = [];
1467
- l !== b.boxPlot.boxPlotCategory && N.push(l), N.push(x), u !== "" && N.push(u), N.push(d.objectIdField);
1463
+ l !== b.boxPlot.boxPlotCategory && N.push(l), N.push(C), u !== "" && N.push(u), N.push(d.objectIdField);
1468
1464
  const v = {
1469
1465
  ...a,
1470
1466
  where: Q([a.where, B]),
@@ -1487,10 +1483,10 @@ async function An(i) {
1487
1483
  }
1488
1484
  }
1489
1485
  const g = await Promise.all(m), y = /* @__PURE__ */ new Map();
1490
- for (let h = 0; h < g.length; h += 1) {
1491
- const x = g[h], F = f[h];
1492
- x.forEach((C) => {
1493
- const B = { ...C.attributes };
1486
+ for (let p = 0; p < g.length; p += 1) {
1487
+ const C = g[p], F = f[p];
1488
+ C.forEach((x) => {
1489
+ const B = { ...x.attributes };
1494
1490
  if (B[F] !== void 0) {
1495
1491
  l === b.boxPlot.boxPlotCategory && (B[b.boxPlot.boxPlotCategory] = F);
1496
1492
  let N = {
@@ -1498,15 +1494,15 @@ async function An(i) {
1498
1494
  chartSubType: o
1499
1495
  };
1500
1496
  switch (o) {
1501
- case p.BoxPlotMonoFieldAndSplitBy:
1502
- case p.BoxPlotMultiFieldsAndSplitBy:
1503
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
1497
+ case h.BoxPlotMonoFieldAndSplitBy:
1498
+ case h.BoxPlotMultiFieldsAndSplitBy:
1499
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
1504
1500
  N = {
1505
1501
  ...N,
1506
1502
  splitByValue: B[u]
1507
1503
  };
1508
1504
  break;
1509
- case p.BoxPlotMultiFieldsAndCategory:
1505
+ case h.BoxPlotMultiFieldsAndCategory:
1510
1506
  N = {
1511
1507
  ...N,
1512
1508
  y: F
@@ -1519,11 +1515,11 @@ async function An(i) {
1519
1515
  if (B[Y.uniqueIdsName] = [
1520
1516
  ...L?.[Y.uniqueIdsName] ?? [],
1521
1517
  B[d.objectIdField]
1522
- ], delete B[d.objectIdField], _i(o)) {
1518
+ ], delete B[d.objectIdField], Yi(o)) {
1523
1519
  const D = U({
1524
1520
  ...N,
1525
1521
  standardizeValues: !0
1526
- }), { mean: R, stdDev: M } = Tn({
1522
+ }), { mean: R, stdDev: M } = vn({
1527
1523
  data: t,
1528
1524
  outlierDataItem: B,
1529
1525
  chartSubType: o,
@@ -1544,14 +1540,14 @@ async function An(i) {
1544
1540
  }
1545
1541
  return Array.from(y.values());
1546
1542
  }
1547
- async function Pn(i) {
1543
+ async function Tn(i) {
1548
1544
  const { data: e, queryObject: t, uniqueQuery: a, elementCount: n, chartConfig: r, chartLimits: s, abortKey: o } = i;
1549
1545
  let c = [];
1550
- const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = E(l), m = we(r), { x: g } = m, y = K(m.query?.where), h = [];
1546
+ const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = E(l), m = we(r), { x: g } = m, y = K(m.query?.where), p = [];
1551
1547
  for (let F = 0; F < d.length; F += 1) {
1552
- const C = d[F], { dataWithoutOutliersFilterBatches: B } = gi({
1548
+ const x = d[F], { dataWithoutOutliersFilterBatches: B } = gi({
1553
1549
  data: e,
1554
- yField: C,
1550
+ yField: x,
1555
1551
  x: g,
1556
1552
  chartSubType: f,
1557
1553
  splitByField: y
@@ -1562,11 +1558,11 @@ async function Pn(i) {
1562
1558
  where: Q([a.where, v])
1563
1559
  };
1564
1560
  T.outStatistics !== void 0 && (T.outStatistics = T.outStatistics?.filter(
1565
- (w) => (w.statisticType === P.Minimum || w.statisticType === P.Maximum) && w.onStatisticField === C
1561
+ (w) => (w.statisticType === P.Minimum || w.statisticType === P.Maximum) && w.onStatisticField === x
1566
1562
  ).map((w) => ({
1567
1563
  ...w,
1568
1564
  outStatisticFieldName: `${w.outStatisticFieldName}${b.boxPlot.boxPlotOutliersSuffix}`
1569
- }))), h.push(
1565
+ }))), p.push(
1570
1566
  ut({
1571
1567
  queryObject: t,
1572
1568
  uniqueQuery: T,
@@ -1580,19 +1576,19 @@ async function Pn(i) {
1580
1576
  );
1581
1577
  }
1582
1578
  }
1583
- const x = await Promise.all(h);
1584
- for (let F = 0; F < x.length; F += 1)
1585
- c.push(...x[F]);
1586
- return f !== p.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = Lt({
1579
+ const C = await Promise.all(p);
1580
+ for (let F = 0; F < C.length; F += 1)
1581
+ c.push(...C[F]);
1582
+ return f !== h.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = Lt({
1587
1583
  data: c,
1588
1584
  x: y !== void 0 && y !== "" ? y : g
1589
1585
  })), c;
1590
1586
  }
1591
- async function Ln(i) {
1587
+ async function An(i) {
1592
1588
  const { queryObject: e, uniqueQuery: t, chartConfig: a, abortKey: n } = i;
1593
1589
  let r;
1594
1590
  const { series: s, showMean: o } = a, c = E(s);
1595
- if (c === p.BoxPlotMultiFieldsAndCategory || c === p.BoxPlotMultiFieldsAndSplitBy) {
1591
+ if (c === h.BoxPlotMultiFieldsAndCategory || c === h.BoxPlotMultiFieldsAndSplitBy) {
1596
1592
  const l = Nt({ showMean: o, seriesConfig: s }), u = {
1597
1593
  ...t
1598
1594
  };
@@ -1624,7 +1620,7 @@ async function Ln(i) {
1624
1620
  }
1625
1621
  return r;
1626
1622
  }
1627
- function Mn(i) {
1623
+ function Pn(i) {
1628
1624
  const { data: e, additionalData: t, chartConfig: a } = i, n = a.series[0], { x: r } = n, s = K(n.query?.where);
1629
1625
  return e.map((o) => {
1630
1626
  let c = o;
@@ -1640,26 +1636,26 @@ function yi(i) {
1640
1636
  if ((o.type === S.LineSeries || o.type === S.BoxPlotSeries) && t?.[0] !== void 0) {
1641
1637
  const f = K(o.query?.where);
1642
1638
  switch (c) {
1643
- case p.BoxPlotMonoField:
1639
+ case h.BoxPlotMonoField:
1644
1640
  d[0][b.boxPlot.boxPlotCategory] = u[0];
1645
1641
  break;
1646
- case p.BoxPlotMultiFields:
1647
- d = Fn({
1642
+ case h.BoxPlotMultiFields:
1643
+ d = hn({
1648
1644
  data: t,
1649
1645
  yList: u,
1650
1646
  calculateZScore: a
1651
1647
  });
1652
1648
  break;
1653
- case p.BoxPlotMonoFieldAndSplitBy:
1654
- d = bn({
1649
+ case h.BoxPlotMonoFieldAndSplitBy:
1650
+ d = Sn({
1655
1651
  data: t,
1656
1652
  splitByField: f,
1657
1653
  y: u[0]
1658
1654
  // there's only one `y` value for that query type
1659
1655
  });
1660
1656
  break;
1661
- case p.BoxPlotMultiFieldsAndSplitBy:
1662
- d = xn({
1657
+ case h.BoxPlotMultiFieldsAndSplitBy:
1658
+ d = Fn({
1663
1659
  splitByField: f,
1664
1660
  data: t,
1665
1661
  yList: u,
@@ -1667,45 +1663,45 @@ function yi(i) {
1667
1663
  calculateZScore: a
1668
1664
  });
1669
1665
  break;
1670
- case p.BoxPlotMultiFieldsAndCategory:
1671
- d = Cn({
1666
+ case h.BoxPlotMultiFieldsAndCategory:
1667
+ d = bn({
1672
1668
  data: t,
1673
1669
  yList: u,
1674
1670
  meanAndStdDevPerField: n,
1675
1671
  calculateZScore: a
1676
1672
  });
1677
1673
  break;
1678
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
1679
- d = Bn({
1674
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
1675
+ d = xn({
1680
1676
  splitByField: f,
1681
1677
  x: l,
1682
1678
  data: t
1683
1679
  });
1684
1680
  break;
1685
- case p.BoxPlotMonoFieldAndCategory:
1681
+ case h.BoxPlotMonoFieldAndCategory:
1686
1682
  }
1687
1683
  }
1688
- return vn(e, d), d;
1684
+ return Cn(e, d), d;
1689
1685
  }
1690
- async function wn(i) {
1686
+ async function Ln(i) {
1691
1687
  const { data: e, queryObject: t, uniqueQuery: a, fetchFullBoxPlotData: n, chartConfig: r, elementCount: s, chartLimits: o, abortKey: c } = i;
1692
1688
  let l = e, u = [];
1693
1689
  if (l !== void 0) {
1694
- const { series: d } = r, f = await Ln({
1690
+ const { series: d } = r, f = await An({
1695
1691
  queryObject: t,
1696
1692
  uniqueQuery: a,
1697
1693
  chartConfig: r,
1698
1694
  abortKey: c
1699
1695
  });
1700
1696
  if (n !== !1) {
1701
- u = await An({
1697
+ u = await Nn({
1702
1698
  queryObject: t,
1703
1699
  uniqueQuery: a,
1704
1700
  seriesConfig: d,
1705
1701
  data: l,
1706
1702
  abortKey: c
1707
1703
  });
1708
- const m = await Pn({
1704
+ const m = await Tn({
1709
1705
  queryObject: t,
1710
1706
  uniqueQuery: a,
1711
1707
  elementCount: s,
@@ -1714,7 +1710,7 @@ async function wn(i) {
1714
1710
  chartLimits: o,
1715
1711
  abortKey: c
1716
1712
  });
1717
- l = Mn({
1713
+ l = Pn({
1718
1714
  data: l,
1719
1715
  additionalData: m,
1720
1716
  chartConfig: r
@@ -1729,19 +1725,19 @@ async function wn(i) {
1729
1725
  }
1730
1726
  return { dataItems: l, outliers: u };
1731
1727
  }
1732
- function Dn(i) {
1728
+ function Mn(i) {
1733
1729
  const { whereValue: e, outStatistics: t, y: a } = i;
1734
1730
  let n = Y.outStatistics.outStatisticFieldName ?? "";
1735
1731
  return t?.outStatisticFieldName !== void 0 ? n = t.outStatisticFieldName : t?.onStatisticField !== void 0 && t.statisticType !== void 0 ? n = `${t.statisticType}_${t.onStatisticField}_${e}` : a !== void 0 && (n = [a].flat()[0]), n;
1736
1732
  }
1737
- function On(i) {
1733
+ function wn(i) {
1738
1734
  const e = /* @__PURE__ */ new Map();
1739
1735
  for (let t = 0; t < i.length; t += 1) {
1740
1736
  const a = i[t], n = a.query?.where;
1741
1737
  if (n !== void 0 && "y" in a) {
1742
1738
  const r = ge({ where: n, normalize: !0, escape: !1 });
1743
1739
  if (r !== "") {
1744
- const s = Dn({
1740
+ const s = Mn({
1745
1741
  whereValue: r,
1746
1742
  outStatistics: a.query?.outStatistics?.[0],
1747
1743
  y: a.y
@@ -1752,16 +1748,16 @@ function On(i) {
1752
1748
  }
1753
1749
  return e;
1754
1750
  }
1755
- function qn(i) {
1751
+ function Dn(i) {
1756
1752
  const { uniqueQuery: e, splitByField: t, x: a } = i, n = [...e.groupByFieldsForStatistics ?? [], a, t].filter(
1757
1753
  (r) => r !== void 0 && r.trim() !== "" && r !== Jt
1758
1754
  );
1759
1755
  e.groupByFieldsForStatistics = Array.from(new Set(n));
1760
1756
  }
1761
- function En(i) {
1757
+ function On(i) {
1762
1758
  return i.statisticType === P.ContinuousPercentile || i.statisticType === P.DiscretePercentile;
1763
1759
  }
1764
- function Vn(i) {
1760
+ function qn(i) {
1765
1761
  const {
1766
1762
  uniqueQuery: e,
1767
1763
  y: t,
@@ -1773,11 +1769,11 @@ function Vn(i) {
1773
1769
  splitByField: c
1774
1770
  } = i, l = Y.outStatistics;
1775
1771
  if (e.outStatistics?.[0] !== void 0) {
1776
- r !== p.PieFromFields && r !== p.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = a ? l.outStatisticFieldName : [t].flat()[0]);
1772
+ r !== h.PieFromFields && r !== h.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = a ? l.outStatisticFieldName : [t].flat()[0]);
1777
1773
  const { outStatistics: u } = e;
1778
1774
  for (let d = 0; d < u.length; d += 1) {
1779
1775
  const f = e.outStatistics[d];
1780
- f !== void 0 && En(f) && (s && !Qe(n) ? (u[d].statisticType = P.Count, delete u[d].statisticParameters) : u[d] = {
1776
+ f !== void 0 && On(f) && (s && !Qe(n) ? (u[d].statisticType = P.Count, delete u[d].statisticParameters) : u[d] = {
1781
1777
  ...u[d],
1782
1778
  statisticParameters: u[d].statisticParameters ?? {
1783
1779
  value: b.defaultStatParameterValue
@@ -1796,7 +1792,7 @@ function Vn(i) {
1796
1792
  }
1797
1793
  o === !0 && (!s || ee(c)) && e.outStatistics?.push({ statisticType: P.EnvelopeAggregate, onStatisticField: "1" });
1798
1794
  }
1799
- function In(i) {
1795
+ function En(i) {
1800
1796
  const { chartConfig: e, fetchFullBoxPlotData: t } = i, { series: a } = e, n = He(e);
1801
1797
  let r = [
1802
1798
  { statisticType: P.Average, suffix: V.Average }
@@ -1836,17 +1832,17 @@ function In(i) {
1836
1832
  })
1837
1833
  );
1838
1834
  }
1839
- function $n(i, e) {
1835
+ function Vn(i, e) {
1840
1836
  for (let t = 1; t < e.length; t += 1) {
1841
1837
  const a = { ...e[t].query?.outStatistics?.[0] };
1842
1838
  a !== void 0 && i.outStatistics !== void 0 && i.outStatistics.push(a);
1843
1839
  }
1844
1840
  }
1845
- function Rn(i) {
1841
+ function In(i) {
1846
1842
  const { uniqueQuery: e, x: t, splitByField: a, unit: n, chartSubType: r, objectIdField: s } = i;
1847
1843
  if (n !== void 0) {
1848
- const o = Yi(t, n);
1849
- e.orderByFields = o, e.groupByFieldsForStatistics = o, r === p.BarAndLineSplitBy && !ee(a) ? e.groupByFieldsForStatistics.push(a) : r === p.BarAndLineNoAggregation && (e.groupByFieldsForStatistics.push(s), e.outStatistics = [
1844
+ const o = Ki(t, n);
1845
+ e.orderByFields = o, e.groupByFieldsForStatistics = o, r === h.BarAndLineSplitBy && !ee(a) ? e.groupByFieldsForStatistics.push(a) : r === h.BarAndLineNoAggregation && (e.groupByFieldsForStatistics.push(s), e.outStatistics = [
1850
1846
  {
1851
1847
  onStatisticField: s,
1852
1848
  outStatisticFieldName: `COUNT_${s}`,
@@ -1861,7 +1857,7 @@ function pi(i) {
1861
1857
  const n = fi(e, t?.chartLimits);
1862
1858
  if (n !== void 0) {
1863
1859
  const r = E(e.series);
1864
- if (r === p.PieFromFields || r === p.BarAndLineFromFields) {
1860
+ if (r === h.PieFromFields || r === h.BarAndLineFromFields) {
1865
1861
  if (a.outStatistics?.[0] !== void 0) {
1866
1862
  const s = (l, u) => l.statisticType === P.EnvelopeAggregate === u, o = a.outStatistics.filter((l) => s(l, !0)), c = a.outStatistics.filter((l) => s(l, !1));
1867
1863
  c.splice(n), a.outStatistics = [...c, ...o];
@@ -1872,63 +1868,63 @@ function pi(i) {
1872
1868
  }
1873
1869
  }
1874
1870
  async function ct(i) {
1875
- const { chartConfig: e, queryConfig: t, options: a, queryObject: n, timeIntervalInfo: r, fetchFullBoxPlotData: s } = i, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: c } = a ?? {}, l = e.series, u = E(l), d = we(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, y = ve({
1871
+ const { chartConfig: e, queryConfig: t, options: a, queryObject: n, timeIntervalInfo: r, fetchFullBoxPlotData: s } = i, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: c } = a ?? {}, l = e.series, u = E(l), d = we(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, y = Ne({
1876
1872
  xAxisValueFormatType: pe(e),
1877
1873
  setTimeBinningInfoWhenNotProvided: o,
1878
1874
  seriesConfig: d
1879
1875
  });
1880
- let h = /* @__PURE__ */ new Map(), x = !1, F = !1, C = !1, B = !1, N = !1, v = {};
1876
+ let p = /* @__PURE__ */ new Map(), C = !1, F = !1, x = !1, B = !1, N = !1, v = {};
1881
1877
  if (f !== void 0) {
1882
- v = Me(f);
1878
+ v = Fe(f);
1883
1879
  const O = K(f.where);
1884
1880
  let H = "";
1885
1881
  switch (t.fetchNullValues !== !0 && (m !== b.boxPlot.boxPlotCategory && (H = `${m} IS NOT NULL`), O.trim() !== "" && O !== m && !Tt(f.where) && (H = Q([H, `${O} IS NOT NULL`]))), u) {
1886
- case p.BarAndLineSplitBy: {
1887
- h = On(l), B = !0, x = !0, F = !0;
1882
+ case h.BarAndLineSplitBy: {
1883
+ p = wn(l), B = !0, C = !0, F = !0;
1888
1884
  break;
1889
1885
  }
1890
- case p.BarAndLineMultiFields:
1891
- $n(v, l), F = !0;
1886
+ case h.BarAndLineMultiFields:
1887
+ Vn(v, l), F = !0;
1892
1888
  break;
1893
- case p.PieFromFields:
1894
- case p.BarAndLineFromFields:
1895
- H = "", C = !0, F = !0;
1889
+ case h.PieFromFields:
1890
+ case h.BarAndLineFromFields:
1891
+ H = "", x = !0, F = !0;
1896
1892
  break;
1897
- case p.BarAndLineMonoField:
1898
- case p.PieFromCategory:
1893
+ case h.BarAndLineMonoField:
1894
+ case h.PieFromCategory:
1899
1895
  F = !0;
1900
1896
  break;
1901
- case p.BoxPlotMonoField:
1902
- case p.BoxPlotMultiFields:
1903
- C = !0, N = !0;
1897
+ case h.BoxPlotMonoField:
1898
+ case h.BoxPlotMultiFields:
1899
+ x = !0, N = !0;
1904
1900
  break;
1905
- case p.BoxPlotMonoFieldAndCategory:
1906
- case p.BoxPlotMultiFieldsAndCategory:
1907
- case p.BoxPlotMonoFieldAndSplitBy:
1908
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
1909
- case p.BoxPlotMultiFieldsAndSplitBy: {
1910
- N = !0, B = !0, C = !0;
1901
+ case h.BoxPlotMonoFieldAndCategory:
1902
+ case h.BoxPlotMultiFieldsAndCategory:
1903
+ case h.BoxPlotMonoFieldAndSplitBy:
1904
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
1905
+ case h.BoxPlotMultiFieldsAndSplitBy: {
1906
+ N = !0, B = !0, x = !0;
1911
1907
  break;
1912
1908
  }
1913
- case p.PieNoAggregation:
1914
- case p.BarAndLineNoAggregation:
1915
- case p.BarAndLineSplitByNoAggregation:
1909
+ case h.PieNoAggregation:
1910
+ case h.BarAndLineNoAggregation:
1911
+ case h.BarAndLineSplitByNoAggregation:
1916
1912
  }
1917
- if (F && Vn({
1913
+ if (F && qn({
1918
1914
  uniqueQuery: v,
1919
1915
  y: g,
1920
- useGenericOutStatFieldName: x,
1916
+ useGenericOutStatFieldName: C,
1921
1917
  queryObject: n,
1922
1918
  chartSubType: u,
1923
1919
  isTimeBinningSeries: y,
1924
1920
  returnFeaturesExtent: c,
1925
1921
  splitByField: O
1926
- }), B && qn({ uniqueQuery: v, splitByField: O, x: m }), N && (v.outStatistics = In({ chartConfig: e, fetchFullBoxPlotData: s })), C ? delete v.orderByFields : t.orderByFields !== void 0 && (v.orderByFields = t.orderByFields.filter((X) => {
1922
+ }), B && Dn({ uniqueQuery: v, splitByField: O, x: m }), N && (v.outStatistics = En({ chartConfig: e, fetchFullBoxPlotData: s })), x ? delete v.orderByFields : t.orderByFields !== void 0 && (v.orderByFields = t.orderByFields.filter((X) => {
1927
1923
  const I = X.split(" ");
1928
1924
  return !ee(I[0]);
1929
1925
  })), y && oe(l[0])) {
1930
1926
  const X = z(n), { objectIdField: I } = X;
1931
- (await Ne(n)).find((te) => te.name === m)?.type !== Ye.DateOnly && Rn({
1927
+ (await Te(n)).find((te) => te.name === m)?.type !== Ye.DateOnly && In({
1932
1928
  uniqueQuery: v,
1933
1929
  x: m,
1934
1930
  splitByField: K(f.where),
@@ -1941,9 +1937,9 @@ async function ct(i) {
1941
1937
  }
1942
1938
  pi({ chartConfig: e, options: a, uniqueQuery: v });
1943
1939
  const { gdbVersion: T, geometry: w, distance: L, units: D, timeExtent: R, where: M, objectIds: q, spatialRelationship: A } = t;
1944
- return T !== void 0 && (v.gdbVersion = T), w !== void 0 && (v.geometry = w), L !== void 0 && (v.distance = L), D !== void 0 && (v.units = D), R !== void 0 && (v.timeExtent = R), q !== void 0 && (v.objectIds = q), A !== void 0 && (v.spatialRelationship = A), M !== void 0 && (v.where = Q([v.where, M])), { uniqueQuery: v, mapToStatField: h };
1940
+ return T !== void 0 && (v.gdbVersion = T), w !== void 0 && (v.geometry = w), L !== void 0 && (v.distance = L), D !== void 0 && (v.units = D), R !== void 0 && (v.timeExtent = R), q !== void 0 && (v.objectIds = q), A !== void 0 && (v.spatialRelationship = A), M !== void 0 && (v.where = Q([v.where, M])), { uniqueQuery: v, mapToStatField: p };
1945
1941
  }
1946
- async function kn(i) {
1942
+ async function $n(i) {
1947
1943
  const { queryObject: e, queryConfig: t, chartConfig: a, abortKey: n } = i, r = a.series[0], { x: s, valueConversion: o } = r, c = Xt(a), l = await ye({
1948
1944
  queryObject: e,
1949
1945
  queryConfig: t,
@@ -1964,7 +1960,7 @@ async function kn(i) {
1964
1960
  }
1965
1961
  return u;
1966
1962
  }
1967
- async function jn(i) {
1963
+ async function Rn(i) {
1968
1964
  const { queryObject: e, chartConfig: t, queryConfig: a, options: n, abortKey: r } = i, { chartLimits: s } = n ?? {}, o = { valid: !0 };
1969
1965
  if (e !== void 0) {
1970
1966
  const { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = s ?? {}, u = Xt(t);
@@ -1989,7 +1985,7 @@ async function jn(i) {
1989
1985
  }), pi({ chartConfig: t, options: n, uniqueQuery: a });
1990
1986
  }
1991
1987
  if (Number.isNaN(d) || d) {
1992
- const m = await kn({
1988
+ const m = await $n({
1993
1989
  queryObject: e,
1994
1990
  chartConfig: t,
1995
1991
  queryConfig: a,
@@ -2004,7 +2000,7 @@ async function jn(i) {
2004
2000
  }
2005
2001
  return o;
2006
2002
  }
2007
- async function Jo(i) {
2003
+ async function _o(i) {
2008
2004
  const { queryObject: e, chartConfig: t, queryConfig: a } = i, { minimumFromField: n, maximumFromField: r } = t.axes[0], s = [];
2009
2005
  let o = "", c = "";
2010
2006
  n !== void 0 && (typeof n == "string" ? (o = `${P.Minimum}_${n}`, s.push({
@@ -2036,14 +2032,14 @@ async function Jo(i) {
2036
2032
  }), d = u.get(o), f = u.get(c);
2037
2033
  return { minimumFromData: d, maximumFromData: f };
2038
2034
  }
2039
- function Wn(i = _.None, e) {
2035
+ function kn(i = _.None, e) {
2040
2036
  return i === _.None || i === _.Log && e > 0 || i === _.Sqrt && e >= 0;
2041
2037
  }
2042
2038
  function hi(i, e) {
2043
2039
  const t = { valid: !1 };
2044
2040
  return e === !0 ? t.invalidType = $.HistogramEmptyField : i === _.Log ? t.invalidType = $.NegativeValueInLogCalculation : i === _.Sqrt && (t.invalidType = $.NegativeValueInSqrtCalculation), t;
2045
2041
  }
2046
- function Qn(i, e) {
2042
+ function jn(i, e) {
2047
2043
  let t = i;
2048
2044
  switch (e) {
2049
2045
  case _.Log:
@@ -2055,7 +2051,7 @@ function Qn(i, e) {
2055
2051
  }
2056
2052
  return t;
2057
2053
  }
2058
- function Hn(i) {
2054
+ function Wn(i) {
2059
2055
  let e = i;
2060
2056
  const t = i.toString().split(".");
2061
2057
  if (t[1] !== void 0) {
@@ -2077,7 +2073,7 @@ function Si(i) {
2077
2073
  }
2078
2074
  return e;
2079
2075
  }
2080
- async function zn(i) {
2076
+ async function Qn(i) {
2081
2077
  const { queryObject: e, fieldName: t, queryConfig: a, abortKey: n } = i, r = z(e), { objectIdField: s } = r, o = `${P.Count}_${s}`, c = `${P.Count}_${t}`, l = `${P.Minimum}_${t}`, u = `${P.Maximum}_${t}`, d = {
2082
2078
  ...a,
2083
2079
  outStatistics: [
@@ -2106,18 +2102,18 @@ async function zn(i) {
2106
2102
  queryObject: e,
2107
2103
  queryConfig: d,
2108
2104
  abortKey: n
2109
- }), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN, h = f.get(u) ?? Number.NaN;
2110
- return { countExcludingNulls: g, countIncludingNulls: m, min: y, max: h };
2105
+ }), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN, p = f.get(u) ?? Number.NaN;
2106
+ return { countExcludingNulls: g, countIncludingNulls: m, min: y, max: p };
2111
2107
  }
2112
- async function Gn(i) {
2108
+ async function Hn(i) {
2113
2109
  const { queryConfig: e, chartConfig: t, queryObject: a, abortKey: n } = i, r = t.series[0], { x: s, dataTransformationType: o } = r;
2114
2110
  let c = [];
2115
- const { countIncludingNulls: l, countExcludingNulls: u, min: d, max: f } = await zn({
2111
+ const { countIncludingNulls: l, countExcludingNulls: u, min: d, max: f } = await Qn({
2116
2112
  queryObject: a,
2117
2113
  queryConfig: e,
2118
2114
  fieldName: s,
2119
2115
  abortKey: n
2120
- }), m = Wn(o, d), g = u < 2 || d === f, y = { ...e };
2116
+ }), m = kn(o, d), g = u < 2 || d === f, y = { ...e };
2121
2117
  return y.where = Q([y.where, `${s} is not null`]), {
2122
2118
  rawData: c,
2123
2119
  dataCompatibleWithTransformation: m,
@@ -2126,11 +2122,11 @@ async function Gn(i) {
2126
2122
  countIncludingNulls: l
2127
2123
  };
2128
2124
  }
2129
- function Un(i) {
2125
+ function zn(i) {
2130
2126
  const e = { ...i };
2131
2127
  return e.avg = e.avg ?? Number.NaN, e.count = e.count ?? Number.NaN, e.max = e.max ?? Number.NaN, e.min = e.min ?? Number.NaN, e.stddev = e.stddev ?? Number.NaN, e.sum = e.sum ?? Number.NaN, e.variance = e.variance ?? Number.NaN, e.median = e.median ?? Number.NaN, e;
2132
2128
  }
2133
- function _n(i) {
2129
+ function Gn(i) {
2134
2130
  const { seriesConfig: e, layer: t, useFeaturesInView: a, view: n, queryConfig: r } = i, { x: s, dataTransformationType: o } = e;
2135
2131
  let c = {
2136
2132
  layer: t,
@@ -2145,7 +2141,7 @@ function _n(i) {
2145
2141
  normalizationType: Si(o)
2146
2142
  }), c;
2147
2143
  }
2148
- function Yn(i) {
2144
+ function Un(i) {
2149
2145
  const { seriesConfig: e, layer: t, useFeaturesInView: a, view: n, minValue: r, maxValue: s, queryConfig: o } = i, { x: c, binCount: l, dataTransformationType: u } = e;
2150
2146
  let d = {
2151
2147
  layer: t,
@@ -2153,7 +2149,7 @@ function Yn(i) {
2153
2149
  field: c,
2154
2150
  minValue: r,
2155
2151
  maxValue: s,
2156
- numBins: l ?? Xi,
2152
+ numBins: l ?? Zi,
2157
2153
  classificationMethod: "equal-interval",
2158
2154
  // excluding the filters like 1=tionMethod: "equal-interval",1 from the sqlWhere. It's causing query failures (see https://devtopia.esri.com/WebGIS/arcgis-charts/issues/6677)
2159
2155
  sqlWhere: Tt(o.where) ? void 0 : o.where,
@@ -2164,11 +2160,11 @@ function Yn(i) {
2164
2160
  normalizationType: Si(u)
2165
2161
  }), d;
2166
2162
  }
2167
- function Kn(i, e) {
2163
+ function _n(i, e) {
2168
2164
  let t = Number.NaN;
2169
2165
  return i !== void 0 && e !== void 0 && (t = i - e), t;
2170
2166
  }
2171
- async function Jn(i) {
2167
+ async function Yn(i) {
2172
2168
  const {
2173
2169
  chartConfig: e,
2174
2170
  queryConfig: t,
@@ -2180,63 +2176,63 @@ async function Jn(i) {
2180
2176
  } = i, c = e.series[0], { dataTransformationType: l } = c;
2181
2177
  let u = { valid: !0 };
2182
2178
  if (a !== void 0) {
2183
- const d = z(a), m = Ki(t?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = _n({
2179
+ const d = z(a), m = Ji(t?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = Gn({
2184
2180
  seriesConfig: c,
2185
2181
  layer: d,
2186
2182
  view: g,
2187
2183
  useFeaturesInView: m,
2188
2184
  queryConfig: t
2189
2185
  });
2190
- let h;
2191
- if (g !== void 0 && (h = new $t({
2186
+ let p;
2187
+ if (g !== void 0 && (p = new $t({
2192
2188
  geometry: g.extent
2193
- }), g.extent !== void 0 && Ji(d))) {
2189
+ }), g.extent !== void 0 && Xi(d))) {
2194
2190
  const { distance: L, units: D } = t;
2195
- L !== void 0 && (h.distance = L), D !== void 0 && (h.units = D);
2191
+ L !== void 0 && (p.distance = L), D !== void 0 && (p.units = D);
2196
2192
  }
2197
2193
  if (t.timeExtent) {
2198
2194
  const L = { start: t.timeExtent[0], end: t.timeExtent[1] };
2199
- h === void 0 ? h = new $t({ timeExtent: L }) : h.timeExtent = L;
2195
+ p === void 0 ? p = new $t({ timeExtent: L }) : p.timeExtent = L;
2200
2196
  }
2201
- y.filter = h;
2202
- let x;
2197
+ y.filter = p;
2198
+ let C;
2203
2199
  y.outStatisticTypes = { exclude: ["median"] };
2204
2200
  try {
2205
- x = await Rt(y);
2201
+ C = await Rt(y);
2206
2202
  } catch (L) {
2207
2203
  throw new pt(Vt.QueryFeaturesError, o.errors.queryError, L);
2208
2204
  }
2209
2205
  y.outStatisticTypes = { include: ["median"] };
2210
2206
  try {
2211
2207
  const L = await Rt(y);
2212
- L?.median && (x.median = L.median);
2208
+ L?.median && (C.median = L.median);
2213
2209
  } catch {
2214
2210
  }
2215
- x = Un(x);
2216
- const { avg: F, count: C, stddev: B, min: N, max: v, sum: T, median: w } = x;
2217
- if (C === 0)
2211
+ C = zn(C);
2212
+ const { avg: F, count: x, stddev: B, min: N, max: v, sum: T, median: w } = C;
2213
+ if (x === 0)
2218
2214
  u = {
2219
2215
  ...hi(l)
2220
2216
  };
2221
2217
  else {
2222
- const L = Yn({
2218
+ const L = Un({
2223
2219
  seriesConfig: c,
2224
2220
  layer: d,
2225
2221
  view: g,
2226
2222
  useFeaturesInView: m,
2227
- minValue: Hn(N),
2223
+ minValue: Wn(N),
2228
2224
  maxValue: v,
2229
2225
  valueExpression: y.valueExpression,
2230
2226
  queryConfig: t
2231
2227
  });
2232
- L.filter = h;
2228
+ L.filter = p;
2233
2229
  let D;
2234
2230
  try {
2235
2231
  D = await Ba(L);
2236
2232
  } catch (M) {
2237
2233
  throw new pt(Vt.QueryFeaturesError, o.errors.queryError, M);
2238
2234
  }
2239
- const R = Kn(r, n);
2235
+ const R = _n(r, n);
2240
2236
  u.data = {
2241
2237
  mean: F,
2242
2238
  stddev: B,
@@ -2253,14 +2249,14 @@ async function Jn(i) {
2253
2249
  return u;
2254
2250
  }
2255
2251
  async function Fi(i) {
2256
- const { chartConfig: e, queryConfig: t, queryObject: a, options: n, abortKey: r, errorStrings: s } = i, { series: o } = e, c = o[0], { rawData: l, dataCompatibleWithTransformation: u, dataCountIncompatible: d, countIncludingNulls: f, countExcludingNulls: m } = await Gn({
2252
+ const { chartConfig: e, queryConfig: t, queryObject: a, options: n, abortKey: r, errorStrings: s } = i, { series: o } = e, c = o[0], { rawData: l, dataCompatibleWithTransformation: u, dataCountIncompatible: d, countIncludingNulls: f, countExcludingNulls: m } = await Hn({
2257
2253
  queryObject: a,
2258
2254
  chartConfig: e,
2259
2255
  queryConfig: t,
2260
2256
  abortKey: r
2261
2257
  });
2262
2258
  let g = { valid: !0 };
2263
- return !u || d ? g = hi(c.dataTransformationType, d) : g = await Jn({
2259
+ return !u || d ? g = hi(c.dataTransformationType, d) : g = await Yn({
2264
2260
  chartConfig: e,
2265
2261
  queryObject: a,
2266
2262
  queryConfig: t,
@@ -2270,7 +2266,7 @@ async function Fi(i) {
2270
2266
  errorStrings: s
2271
2267
  }), g;
2272
2268
  }
2273
- async function Xn(i) {
2269
+ async function Kn(i) {
2274
2270
  const { queryObject: e, queryConfig: t, chartConfig: a, x: n } = i, { series: r } = a, { dataTransformationType: s } = r[0], o = {
2275
2271
  ...t,
2276
2272
  orderByFields: [n],
@@ -2282,16 +2278,16 @@ async function Xn(i) {
2282
2278
  queryObject: e,
2283
2279
  queryConfig: o
2284
2280
  })).map((u) => ({
2285
- [n]: Qn(u.attributes[n], s)
2281
+ [n]: jn(u.attributes[n], s)
2286
2282
  })) }
2287
2283
  };
2288
2284
  }
2289
- const Le = {
2285
+ const Me = {
2290
2286
  groupByCaseBegin: "CASE",
2291
2287
  groupByOutKeyword: "OUT",
2292
2288
  groupByCaseEnd: "ELSE 'OUT' END"
2293
- }, Zn = "{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";
2294
- async function er(i) {
2289
+ }, Jn = "{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";
2290
+ async function Xn(i) {
2295
2291
  const { chartConfig: e, queryObject: t, queryConfig: a, abortKey: n } = i, r = e.series[0], { x: s, y: o } = r, { dataContextCountDistinctX: c, dataContextCountDistinctY: l } = b.scatterplotAggregationFields, u = {
2296
2292
  ...a,
2297
2293
  outStatistics: [
@@ -2315,7 +2311,7 @@ async function er(i) {
2315
2311
  abortKey: n
2316
2312
  });
2317
2313
  }
2318
- async function tr(i) {
2314
+ async function Zn(i) {
2319
2315
  const { statsMap: e, chartConfig: t, queryObject: a, options: n, queryConfig: r, abortKey: s } = i, {
2320
2316
  dataContextXMinField: o,
2321
2317
  dataContextXMaxField: c,
@@ -2324,22 +2320,22 @@ async function tr(i) {
2324
2320
  dataContextCountDistinctX: d,
2325
2321
  dataContextCountDistinctY: f
2326
2322
  } = b.scatterplotAggregationFields;
2327
- let m, g, y, h, x;
2328
- const F = e.get(o), C = e.get(c), B = e.get(l), N = e.get(u);
2329
- if (F != null && B !== void 0 && B !== null && C !== void 0 && C !== null && N !== void 0 && N !== null && !Number.isNaN(F + C + B + N)) {
2330
- const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), w = Math.floor(Math.sqrt(v)), L = await er({
2323
+ let m, g, y, p, C;
2324
+ const F = e.get(o), x = e.get(c), B = e.get(l), N = e.get(u);
2325
+ if (F != null && B !== void 0 && B !== null && x !== void 0 && x !== null && N !== void 0 && N !== null && !Number.isNaN(F + x + B + N)) {
2326
+ const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), w = Math.floor(Math.sqrt(v)), L = await Xn({
2331
2327
  queryObject: a,
2332
2328
  chartConfig: t,
2333
2329
  queryConfig: r,
2334
2330
  abortKey: s
2335
2331
  });
2336
- y = Math.min(L.get(f) ?? Number.NaN, w), h = Math.min(L.get(d) ?? Number.NaN, w), x = h * y, m = C === F ? 0 : (C - F) / (h - 1), g = N === B ? 0 : (N - B) / (y - 1), e.set(b.scatterplotAggregationFields.xStep, m), e.set(b.scatterplotAggregationFields.yStep, g), e.set(b.scatterplotAggregationFields.rowCount, y), e.set(b.scatterplotAggregationFields.columnCount, h), e.set(b.scatterplotAggregationFields.realGridSize, x);
2332
+ y = Math.min(L.get(f) ?? Number.NaN, w), p = Math.min(L.get(d) ?? Number.NaN, w), C = p * y, m = x === F ? 0 : (x - F) / (p - 1), g = N === B ? 0 : (N - B) / (y - 1), e.set(b.scatterplotAggregationFields.xStep, m), e.set(b.scatterplotAggregationFields.yStep, g), e.set(b.scatterplotAggregationFields.rowCount, y), e.set(b.scatterplotAggregationFields.columnCount, p), e.set(b.scatterplotAggregationFields.realGridSize, C);
2337
2333
  }
2338
2334
  }
2339
- function ir(i) {
2335
+ function er(i) {
2340
2336
  const { groupByFieldsForStatistics: e, x: t, y: a, xValue: n, yValue: r, xStep: s, yStep: o, endOfRow: c, endOfColumn: l } = i;
2341
- let u = e === "" ? Le.groupByCaseBegin : e;
2342
- return u = de(Zn, {
2337
+ let u = e === "" ? Me.groupByCaseBegin : e;
2338
+ return u = de(Jn, {
2343
2339
  groupByFieldsForStatistics: u,
2344
2340
  x: t,
2345
2341
  y: a,
@@ -2357,7 +2353,7 @@ function ir(i) {
2357
2353
  // we use = to catch the last value of the line, < otherwise
2358
2354
  }), u;
2359
2355
  }
2360
- async function ar(i) {
2356
+ async function tr(i) {
2361
2357
  const { chartConfig: e, queryConfig: t, queryObject: a, xMin: n, xMax: r, yMin: s, yMax: o, abortKey: c } = i, l = e.series[0], { x: u, y: d } = l, f = { ...t };
2362
2358
  return f.where = Q([f.where, `${u}>=${n}`, `${u}<=${r}`]), u !== d && (f.where = Q([f.where, `${d}>=${s}`, `${d}<=${o}`])), await ye({
2363
2359
  queryObject: a,
@@ -2368,19 +2364,19 @@ async function ar(i) {
2368
2364
  abortKey: c
2369
2365
  });
2370
2366
  }
2371
- async function nr(i) {
2367
+ async function ir(i) {
2372
2368
  const { statsMap: e, chartConfig: t, queryObject: a, queryConfig: n, useQueryAttributeBins: r, errorStrings: s, abortKey: o } = i, c = t.series[0], { x: l, y: u } = c, {
2373
2369
  dataContextXMinField: d,
2374
2370
  dataContextXMaxField: f,
2375
2371
  dataContextYMinField: m,
2376
2372
  dataContextYMaxField: g,
2377
2373
  queryNumberOfFeatures: y,
2378
- queryNumberOfAggregatedFeatures: h
2374
+ queryNumberOfAggregatedFeatures: p
2379
2375
  } = b.scatterplotAggregationFields;
2380
- let x;
2381
- const F = e?.get(d) ?? Number.NaN, C = e?.get(f) ?? Number.NaN, B = e?.get(y) ?? Number.NaN, N = e?.get(m) ?? F, v = e?.get(g) ?? C;
2382
- if (F != null && N !== void 0 && N !== null && C !== void 0 && C !== null && v !== void 0 && v !== null && !Number.isNaN(F + C + N + v)) {
2383
- const T = z(a), { objectIdField: w } = T, L = e?.get(b.scatterplotAggregationFields.xStep), D = e?.get(b.scatterplotAggregationFields.yStep), R = e?.get(b.scatterplotAggregationFields.realGridSize), M = e?.get(b.scatterplotAggregationFields.rowCount), q = e?.get(b.scatterplotAggregationFields.columnCount), A = /* @__PURE__ */ new Map(), O = await Ne(a);
2376
+ let C;
2377
+ const F = e?.get(d) ?? Number.NaN, x = e?.get(f) ?? Number.NaN, B = e?.get(y) ?? Number.NaN, N = e?.get(m) ?? F, v = e?.get(g) ?? x;
2378
+ if (F != null && N !== void 0 && N !== null && x !== void 0 && x !== null && v !== void 0 && v !== null && !Number.isNaN(F + x + N + v)) {
2379
+ const T = z(a), { objectIdField: w } = T, L = e?.get(b.scatterplotAggregationFields.xStep), D = e?.get(b.scatterplotAggregationFields.yStep), R = e?.get(b.scatterplotAggregationFields.realGridSize), M = e?.get(b.scatterplotAggregationFields.rowCount), q = e?.get(b.scatterplotAggregationFields.columnCount), A = /* @__PURE__ */ new Map(), O = await Te(a);
2384
2380
  if (O?.forEach((I) => {
2385
2381
  We(I) && A.set(I.name, {
2386
2382
  onStatisticField: I.name,
@@ -2401,7 +2397,7 @@ async function nr(i) {
2401
2397
  });
2402
2398
  }), A.set(w, {
2403
2399
  onStatisticField: w,
2404
- outStatisticFieldName: h,
2400
+ outStatisticFieldName: p,
2405
2401
  statisticType: P.Count
2406
2402
  }).set(l, {
2407
2403
  onStatisticField: l,
@@ -2417,12 +2413,12 @@ async function nr(i) {
2417
2413
  ...n,
2418
2414
  outStatistics: [...A.values()]
2419
2415
  };
2420
- x = await Zi({
2416
+ C = await ea({
2421
2417
  queryObject: a,
2422
2418
  queryConfig: I,
2423
2419
  xStep: L,
2424
2420
  xMin: F,
2425
- xMax: C,
2421
+ xMax: x,
2426
2422
  x: l,
2427
2423
  y: u,
2428
2424
  yStep: D,
@@ -2430,29 +2426,29 @@ async function nr(i) {
2430
2426
  });
2431
2427
  } else if (M !== void 0 && q !== void 0) {
2432
2428
  let I = 0;
2433
- const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ue } = Ue(), De = await ea(T) ? ue : Z, Dt = [];
2434
- let dt = !0, Oe = F, Te = N, qe = "", Je = 1, ft = 1, Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER;
2429
+ const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ue } = Ue(), De = await ta(T) ? ue : Z, Dt = [];
2430
+ let dt = !0, Oe = F, Ae = N, qe = "", Je = 1, ft = 1, Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER;
2435
2431
  for (; ft <= q && dt; ) {
2436
- for (Te = N, Je = 1; Je <= M && dt; ) {
2437
- if (qe = ir({
2432
+ for (Ae = N, Je = 1; Je <= M && dt; ) {
2433
+ if (qe = er({
2438
2434
  groupByFieldsForStatistics: qe,
2439
2435
  x: l,
2440
2436
  y: u,
2441
2437
  xValue: Oe,
2442
- yValue: Te,
2438
+ yValue: Ae,
2443
2439
  xStep: L,
2444
2440
  yStep: D,
2445
2441
  endOfRow: Je === M,
2446
2442
  endOfColumn: ft === q
2447
- }), Oe < Xe && (Xe = Oe), Oe + L > Ze && (Ze = Oe + L), Te < et && (et = Te), Te + L > tt && (tt = Te + D), I += 1, I % De === 0 || I === R || I === B) {
2448
- qe = `${qe} ${Le.groupByCaseEnd}`;
2443
+ }), Oe < Xe && (Xe = Oe), Oe + L > Ze && (Ze = Oe + L), Ae < et && (et = Ae), Ae + L > tt && (tt = Ae + D), I += 1, I % De === 0 || I === R || I === B) {
2444
+ qe = `${qe} ${Me.groupByCaseEnd}`;
2449
2445
  const Vi = {
2450
2446
  ...n,
2451
2447
  groupByFieldsForStatistics: [qe],
2452
2448
  outStatistics: [...A.values()]
2453
2449
  };
2454
2450
  Dt.push(
2455
- ar({
2451
+ tr({
2456
2452
  chartConfig: t,
2457
2453
  queryConfig: Vi,
2458
2454
  queryObject: a,
@@ -2464,17 +2460,17 @@ async function nr(i) {
2464
2460
  })
2465
2461
  ), Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER, qe = "", I === R && (dt = !1);
2466
2462
  }
2467
- Te += D, Je += 1;
2463
+ Ae += D, Je += 1;
2468
2464
  }
2469
2465
  Oe += L, ft += 1;
2470
2466
  }
2471
- x = (await Promise.all(Dt)).flat();
2467
+ C = (await Promise.all(Dt)).flat();
2472
2468
  }
2473
2469
  }
2474
2470
  }
2475
- return x;
2471
+ return C;
2476
2472
  }
2477
- const rr = {
2473
+ const ar = {
2478
2474
  dataFormat: "json",
2479
2475
  outputFormat: "json",
2480
2476
  typeKey: "analyticType",
@@ -2484,10 +2480,10 @@ const rr = {
2484
2480
  interceptPropertyList: ["Intercept", "INTERCEPT", "intercept"],
2485
2481
  r2PropertyList: ["R2", "r2"]
2486
2482
  };
2487
- async function sr(i) {
2483
+ async function nr(i) {
2488
2484
  const { queryObject: e } = i;
2489
2485
  let t = !1;
2490
- const a = ta(e), n = z(e), r = ei(n);
2486
+ const a = ia(e), n = z(e), r = ei(n);
2491
2487
  if (a && r.url !== void 0 && r.url !== null) {
2492
2488
  const s = `${r.url}/${r.layerId}?f=json`;
2493
2489
  try {
@@ -2498,19 +2494,19 @@ async function sr(i) {
2498
2494
  }
2499
2495
  return t;
2500
2496
  }
2501
- function or(i) {
2497
+ function rr(i) {
2502
2498
  const { x: e, y: t, trendlineXToY: a, data: n } = i, [r, s] = n ? ki(n, (c) => c[e]) : [Number.NaN, Number.NaN];
2503
2499
  return [
2504
2500
  { [e]: r ?? Number.NaN, [t]: a(r ?? Number.NaN) },
2505
2501
  { [e]: s ?? Number.NaN, [t]: a(s ?? Number.NaN) }
2506
2502
  ];
2507
2503
  }
2508
- function lr(i) {
2504
+ function sr(i) {
2509
2505
  const { data: e, x: t, y: a } = i;
2510
2506
  let n = [];
2511
2507
  return e !== void 0 && (n = e.filter((r) => Number.isFinite(r[t]) && Number.isFinite(r[a])).map((r) => [r[t], r[a]])), n;
2512
2508
  }
2513
- async function cr(i) {
2509
+ async function or(i) {
2514
2510
  const { statsMap: e, queryObject: t, chartConfig: a, queryConfig: n } = i, r = a.series[0], { x: s, y: o } = r;
2515
2511
  let c = Number.NaN, l = [
2516
2512
  { [s]: Number.NaN, [o]: Number.NaN },
@@ -2523,19 +2519,19 @@ async function cr(i) {
2523
2519
  typeValue: m,
2524
2520
  fieldValue: g,
2525
2521
  slopePropertyList: y,
2526
- interceptPropertyList: h,
2527
- r2PropertyList: x
2528
- } = rr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await ia({
2522
+ interceptPropertyList: p,
2523
+ r2PropertyList: C
2524
+ } = ar, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, x = await aa({
2529
2525
  queryObject: t,
2530
2526
  queryConfig: n,
2531
2527
  outputFormat: d,
2532
2528
  dataFormat: u,
2533
2529
  outAnalytics: F
2534
2530
  });
2535
- if (C !== void 0) {
2531
+ if (x !== void 0) {
2536
2532
  let B = Number.NaN, N = Number.NaN;
2537
- const { expr: v } = mt(C, y), { expr: T } = mt(C, h), { expr: w } = mt(C, x);
2538
- v !== void 0 && Number.isFinite(C[v]) && (B = C[v]), T !== void 0 && Number.isFinite(C[T]) && (N = C[T]), w !== void 0 && Number.isFinite(C[w]) && (c = C[w]);
2533
+ const { expr: v } = mt(x, y), { expr: T } = mt(x, p), { expr: w } = mt(x, C);
2534
+ v !== void 0 && Number.isFinite(x[v]) && (B = x[v]), T !== void 0 && Number.isFinite(x[T]) && (N = x[T]), w !== void 0 && Number.isFinite(x[w]) && (c = x[w]);
2539
2535
  const { dataContextXMinField: L, dataContextXMaxField: D, dataContextYMinField: R, dataContextYMaxField: M } = b.scatterplotAggregationFields, q = e.get(L) ?? Number.NaN, A = e.get(D) ?? Number.NaN, O = e.get(R) ?? Number.NaN, H = e.get(M) ?? Number.NaN, I = (A - q) / 100;
2540
2536
  let Z = q - I, ue = Number.NaN;
2541
2537
  for (; !(ue >= O && ue <= H) && Z <= A; )
@@ -2553,28 +2549,28 @@ async function cr(i) {
2553
2549
  function bi(i) {
2554
2550
  const { data: e, chartConfig: t } = i, a = t.series[0], { x: n, y: r } = a;
2555
2551
  let { r2: s, trendLinePoints: o } = b.scatterplotSeries;
2556
- const c = lr({ data: e, x: n, y: r });
2552
+ const c = sr({ data: e, x: n, y: r });
2557
2553
  if (c !== void 0) {
2558
2554
  const l = va(c), u = Na(l);
2559
- s = Ta(c, u), o = or({ x: n, y: r, trendlineXToY: u, data: e });
2555
+ s = Ta(c, u), o = rr({ x: n, y: r, trendlineXToY: u, data: e });
2560
2556
  }
2561
2557
  return { r2: s, trendLinePoints: o };
2562
2558
  }
2563
- async function ur(i) {
2564
- const e = await sr(i), { chartConfig: t } = i, a = t.series[0], { x: n, y: r } = a, { r2: s } = b.scatterplotSeries, o = [
2559
+ async function lr(i) {
2560
+ const e = await nr(i), { chartConfig: t } = i, a = t.series[0], { x: n, y: r } = a, { r2: s } = b.scatterplotSeries, o = [
2565
2561
  { [n]: Number.NaN, [r]: Number.NaN },
2566
2562
  { [n]: Number.NaN, [r]: Number.NaN }
2567
2563
  ];
2568
2564
  let c = { r2: s, trendLinePoints: o }, l = !1;
2569
2565
  if (e)
2570
2566
  try {
2571
- c = await cr(i);
2567
+ c = await or(i);
2572
2568
  } catch {
2573
2569
  l = !0;
2574
2570
  }
2575
2571
  return (!e || l) && (c = bi(i)), c;
2576
2572
  }
2577
- async function dr(i) {
2573
+ async function cr(i) {
2578
2574
  const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n } = i, r = e.series[0], { x: s, y: o } = r;
2579
2575
  let c = /* @__PURE__ */ new Map();
2580
2576
  const {
@@ -2612,10 +2608,10 @@ async function dr(i) {
2612
2608
  onStatisticField: o
2613
2609
  }
2614
2610
  );
2615
- const h = { ...t };
2616
- return h.outStatistics = y, c = await _e({
2611
+ const p = { ...t };
2612
+ return p.outStatistics = y, c = await _e({
2617
2613
  queryObject: a,
2618
- queryConfig: h,
2614
+ queryConfig: p,
2619
2615
  abortKey: n
2620
2616
  }), s === o && (c.set(d, c.get(l) ?? Number.NaN), c.set(f, c.get(u) ?? Number.NaN)), c;
2621
2617
  }
@@ -2623,36 +2619,36 @@ function at(i) {
2623
2619
  const { value: e, valueMin: t, valueMax: a } = i;
2624
2620
  return e === t || e === a ? e : Math.random() * (a - t) + t;
2625
2621
  }
2626
- function fr(i) {
2627
- const { useQueryAttributeBins: e, graphic: t, x: a, y: n, yStep: r } = i, { groupByOutKeyword: s } = Le, { dataContextXMinField: o, dataContextXMaxField: c, dataContextYMinField: l, dataContextYMaxField: u } = b.scatterplotAggregationFields;
2622
+ function ur(i) {
2623
+ const { useQueryAttributeBins: e, graphic: t, x: a, y: n, yStep: r } = i, { groupByOutKeyword: s } = Me, { dataContextXMinField: o, dataContextXMaxField: c, dataContextYMinField: l, dataContextYMaxField: u } = b.scatterplotAggregationFields;
2628
2624
  let d = [];
2629
2625
  if (e && "stackedAttributes" in t && t.stackedAttributes) {
2630
- const f = ra(a, n), m = t.attributes[f.lowerBoundaryAlias], g = t.attributes[f.upperBoundaryAlias];
2626
+ const f = sa(a, n), m = t.attributes[f.lowerBoundaryAlias], g = t.attributes[f.upperBoundaryAlias];
2631
2627
  t.stackedAttributes.forEach((y) => {
2632
- let h = y[f.stackAlias], x;
2633
- typeof h == "number" && typeof r == "number" && (h *= r), typeof h == "number" && typeof r == "number" && (x = h + r);
2634
- const F = y[a], C = y[n];
2635
- typeof h == "number" && typeof x == "number" && typeof F == "number" && typeof C == "number" && d.push({
2628
+ let p = y[f.stackAlias], C;
2629
+ typeof p == "number" && typeof r == "number" && (p *= r), typeof p == "number" && typeof r == "number" && (C = p + r);
2630
+ const F = y[a], x = y[n];
2631
+ typeof p == "number" && typeof C == "number" && typeof F == "number" && typeof x == "number" && d.push({
2636
2632
  ...y,
2637
2633
  [a]: at({ value: F, valueMin: m, valueMax: g }),
2638
- [n]: at({ value: C, valueMin: h, valueMax: x }),
2634
+ [n]: at({ value: x, valueMin: p, valueMax: C }),
2639
2635
  [o]: Math.min(m, g),
2640
2636
  [c]: Math.max(m, g),
2641
- [l]: h,
2642
- [u]: x
2637
+ [l]: p,
2638
+ [u]: C
2643
2639
  });
2644
2640
  });
2645
2641
  } else {
2646
2642
  const { expr: f, isInItem: m } = lt(t.attributes);
2647
2643
  if (m && f && t.attributes[f] !== s) {
2648
- let [g, y, h, x] = t.attributes[f].split("|");
2649
- g = Math.min(g, y), y = Math.max(g, y), h = Math.min(h, x), x = Math.max(h, x);
2644
+ let [g, y, p, C] = t.attributes[f].split("|");
2645
+ g = Math.min(g, y), y = Math.max(g, y), p = Math.min(p, C), C = Math.max(p, C);
2650
2646
  const F = {
2651
2647
  ...t.attributes,
2652
2648
  [o]: g,
2653
2649
  [c]: y,
2654
- [l]: h,
2655
- [u]: x
2650
+ [l]: p,
2651
+ [u]: C
2656
2652
  };
2657
2653
  F[a] = at({
2658
2654
  value: F[a],
@@ -2660,18 +2656,18 @@ function fr(i) {
2660
2656
  valueMax: y
2661
2657
  }), F[n] = at({
2662
2658
  value: F[n],
2663
- valueMin: h,
2664
- valueMax: x
2659
+ valueMin: p,
2660
+ valueMax: C
2665
2661
  }), d = [F];
2666
2662
  }
2667
2663
  }
2668
2664
  return d;
2669
2665
  }
2670
- async function mr(i) {
2666
+ async function dr(i) {
2671
2667
  const { queryObject: e, chartConfig: t, rawData: a, isAggregationMode: n, yStep: r, useQueryAttributeBins: s } = i, o = t.series[0], { x: c, y: l } = o, d = z(e).objectIdField;
2672
2668
  let m = (Array.isArray(a) ? a : a?.features)?.flatMap((g) => {
2673
2669
  let y = [{ ...g.attributes }];
2674
- return Mt(y[0], [c, l]), n ? y = fr({
2670
+ return Mt(y[0], [c, l]), n ? y = ur({
2675
2671
  useQueryAttributeBins: s,
2676
2672
  graphic: g,
2677
2673
  x: c,
@@ -2681,20 +2677,20 @@ async function mr(i) {
2681
2677
  });
2682
2678
  return m = m?.filter((g) => {
2683
2679
  const { expr: y } = lt(g);
2684
- return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !== Le.groupByOutKeyword);
2680
+ return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !== Me.groupByOutKeyword);
2685
2681
  }), m ?? [];
2686
2682
  }
2687
- async function gr(i) {
2683
+ async function fr(i) {
2688
2684
  const { queryObject: e, queryConfig: t, chartConfig: a, featureCount: n, abortKey: r } = i, s = a.series[0], { x: o, y: c } = s, l = z(e);
2689
2685
  let u = [];
2690
- const f = ((await Ne(e))?.filter((h) => We(h) && h.name !== o && h.name !== c) ?? []).map(
2691
- (h) => h.name
2686
+ const f = ((await Te(e))?.filter((p) => We(p) && p.name !== o && p.name !== c) ?? []).map(
2687
+ (p) => p.name
2692
2688
  ) ?? [], m = s?.additionalTooltipFields ?? [], g = Array.from(
2693
2689
  /* @__PURE__ */ new Set([o, c, l.objectIdField, ...f, ...m])
2694
2690
  );
2695
2691
  if (!ei(l).isTable) {
2696
- const { rendererField: h, rendererNormalizationField: x } = na(l?.renderer ?? void 0);
2697
- ee(h) || g.push(h), ee(x) || g.push(x);
2692
+ const { rendererField: p, rendererNormalizationField: C } = ra(l?.renderer ?? void 0);
2693
+ ee(p) || g.push(p), ee(C) || g.push(C);
2698
2694
  }
2699
2695
  const y = {
2700
2696
  ...t,
@@ -2708,7 +2704,7 @@ async function gr(i) {
2708
2704
  abortKey: r
2709
2705
  }), u;
2710
2706
  }
2711
- async function yr(i) {
2707
+ async function mr(i) {
2712
2708
  let e;
2713
2709
  const {
2714
2710
  chartConfig: t,
@@ -2723,7 +2719,7 @@ async function yr(i) {
2723
2719
  } = i, d = t.series[0], { x: f, y: m } = d;
2724
2720
  if (!Number.isNaN(s) && s > 0) {
2725
2721
  const g = { ...a };
2726
- g.where = Q([g.where, `${f} IS NOT NULL`, `${m} IS NOT NULL`]), o ? e = await nr({
2722
+ g.where = Q([g.where, `${f} IS NOT NULL`, `${m} IS NOT NULL`]), o ? e = await ir({
2727
2723
  chartConfig: t,
2728
2724
  queryObject: n,
2729
2725
  queryConfig: g,
@@ -2731,7 +2727,7 @@ async function yr(i) {
2731
2727
  useQueryAttributeBins: c,
2732
2728
  errorStrings: l,
2733
2729
  abortKey: u
2734
- }) : e = await gr({
2730
+ }) : e = await fr({
2735
2731
  queryObject: n,
2736
2732
  chartConfig: t,
2737
2733
  queryConfig: g,
@@ -2742,13 +2738,13 @@ async function yr(i) {
2742
2738
  return e;
2743
2739
  }
2744
2740
  async function xi(i) {
2745
- const { chartConfig: e, queryConfig: t, queryObject: a, sortData: n, calculateTrendLine: r, options: s, abortKey: o } = i, c = await dr({
2741
+ const { chartConfig: e, queryConfig: t, queryObject: a, sortData: n, calculateTrendLine: r, options: s, abortKey: o } = i, c = await cr({
2746
2742
  chartConfig: e,
2747
2743
  queryConfig: t,
2748
2744
  queryObject: a,
2749
2745
  abortKey: o
2750
- }), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = aa(a);
2751
- m && await tr({
2746
+ }), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = na(a);
2747
+ m && await Zn({
2752
2748
  statsMap: c,
2753
2749
  chartConfig: e,
2754
2750
  queryObject: a,
@@ -2756,13 +2752,13 @@ async function xi(i) {
2756
2752
  queryConfig: t,
2757
2753
  abortKey: o
2758
2754
  });
2759
- const y = await yr({
2755
+ const y = await mr({
2760
2756
  ...i,
2761
2757
  statsMap: c,
2762
2758
  numberOfFeatures: f,
2763
2759
  isAggregationMode: m,
2764
2760
  useQueryAttributeBins: g
2765
- }), h = await mr({
2761
+ }), p = await dr({
2766
2762
  queryObject: a,
2767
2763
  chartConfig: e,
2768
2764
  rawData: y,
@@ -2771,27 +2767,27 @@ async function xi(i) {
2771
2767
  useQueryAttributeBins: g
2772
2768
  });
2773
2769
  n !== !1 && Ge({
2774
- arrayToSort: h,
2770
+ arrayToSort: p,
2775
2771
  sortingField: e.series[0].x,
2776
2772
  orderBy: me.Ascending
2777
2773
  });
2778
- const { r2: x, trendLinePoints: F } = r !== !1 ? await ur({
2779
- data: h,
2774
+ const { r2: C, trendLinePoints: F } = r !== !1 ? await lr({
2775
+ data: p,
2780
2776
  statsMap: c,
2781
2777
  queryConfig: t,
2782
2778
  options: s,
2783
2779
  queryObject: a,
2784
2780
  chartConfig: e
2785
2781
  }) : b.scatterplotSeries;
2786
- return { dataItems: h, r2: x, trendLinePoints: F, aggregated: m };
2782
+ return { dataItems: p, r2: C, trendLinePoints: F, aggregated: m };
2787
2783
  }
2788
- function pr(i) {
2789
- const { itemsA: e, itemsB: t, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = i;
2790
- let o = !1;
2791
- if (e === void 0 && t !== void 0 || e !== void 0 && t === void 0)
2792
- o = !0;
2784
+ function gr(i) {
2785
+ const { itemsA: e, itemsB: t, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = i, o = Fe(e), c = Fe(t);
2786
+ let l = !1;
2787
+ if (o === void 0 && c !== void 0 || o !== void 0 && c === void 0)
2788
+ l = !0;
2793
2789
  else if (!a) {
2794
- const c = [
2790
+ const u = [
2795
2791
  b.originalCategoryValue,
2796
2792
  b.originalDateValue,
2797
2793
  b.xAxisField,
@@ -2807,32 +2803,32 @@ function pr(i) {
2807
2803
  b.technicalFieldSplitByField,
2808
2804
  Y.uniqueIdsName,
2809
2805
  k.valueField,
2810
- ...sa
2811
- ], l = (m, g) => {
2812
- const y = g[b.typeOrDomainFieldName];
2813
- typeof y == "string" && g[y] !== void 0 && (g[y] = g[b.typeOrDomainIdValue]), n && g[k.xField] !== void 0 && (g[n] = g[k.xField], delete g[k.xField]), r && g[k.yField] !== void 0 && (g[r] = g[k.yField], delete g[k.yField]), s && g[k.valueField] !== void 0 && (g[s] = g[k.valueField], delete g[k.valueField]);
2814
- const h = {};
2815
- return Object.keys(g).forEach((x) => {
2816
- !c.includes(x) && !x.includes(b.rendererSymbolField) && (h[x] = g[x]);
2817
- }), m.push(h), m;
2818
- }, u = (m, g) => JSON.stringify(m).localeCompare(JSON.stringify(g)), d = e?.reduce(l, [])?.sort(u), f = t?.reduce(l, [])?.sort(u);
2819
- o = d?.length !== f?.length || !Pe(d, f);
2806
+ ...oa
2807
+ ], d = (y, p) => {
2808
+ const C = p[b.typeOrDomainFieldName];
2809
+ typeof C == "string" && p[C] !== void 0 && (p[C] = p[b.typeOrDomainIdValue]), n && p[k.xField] !== void 0 && (p[n] = p[k.xField], delete p[k.xField]), r && p[k.yField] !== void 0 && (p[r] = p[k.yField], delete p[k.yField]), s && p[k.valueField] !== void 0 && (p[s] = p[k.valueField], delete p[k.valueField]);
2810
+ const F = {};
2811
+ return Object.keys(p).forEach((x) => {
2812
+ !u.includes(x) && !x.includes(b.rendererSymbolField) && (F[x] = p[x]);
2813
+ }), y.push(F), y;
2814
+ }, f = (y, p) => JSON.stringify(y).localeCompare(JSON.stringify(p)), m = o?.reduce(d, [])?.sort(f), g = c?.reduce(d, [])?.sort(f);
2815
+ l = m?.length !== g?.length || !Le(m, g);
2820
2816
  }
2821
- return o;
2817
+ return l;
2822
2818
  }
2823
- function hr(i) {
2819
+ function yr(i) {
2824
2820
  const { chartConfig: e, currentSelectionDataItems: t, options: a } = i, { selectionData: n } = a ?? {};
2825
2821
  let r = [];
2826
2822
  if (e !== void 0) {
2827
2823
  const s = e.series, o = E(s), { selectionItems: c } = n ?? {};
2828
- if (c !== void 0 && pr({
2824
+ if (c !== void 0 && gr({
2829
2825
  itemsA: c,
2830
2826
  itemsB: t,
2831
- isPieFromFields: E(e.series) === p.PieFromFields,
2827
+ isPieFromFields: E(e.series) === h.PieFromFields,
2832
2828
  x: e.series[0].x,
2833
2829
  y: "y" in e.series[0] ? e.series[0].y.toString() : void 0,
2834
2830
  outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
2835
- }) ? r = c : r = t ?? [], s.length > 1 && o !== p.BarAndLineNoAggregation && o !== p.BarAndLineSplitByNoAggregation) {
2831
+ }) ? r = c : r = t ?? [], s.length > 1 && o !== h.BarAndLineNoAggregation && o !== h.BarAndLineSplitByNoAggregation) {
2836
2832
  const l = K(s[0].query?.where);
2837
2833
  r = Lt({ data: r, x: s[0].x, splitByField: l });
2838
2834
  }
@@ -2843,7 +2839,7 @@ function hr(i) {
2843
2839
  }
2844
2840
  return r ?? [];
2845
2841
  }
2846
- function Ce(i, e) {
2842
+ function Be(i, e) {
2847
2843
  let t = "";
2848
2844
  if (i.trim() !== "" && e !== void 0)
2849
2845
  if (e === null)
@@ -2854,7 +2850,7 @@ function Ce(i, e) {
2854
2850
  }
2855
2851
  return t;
2856
2852
  }
2857
- function Sr(i) {
2853
+ function pr(i) {
2858
2854
  const { dataContext: e, xAxisField: t, yAxisField: a, options: n } = i;
2859
2855
  let r = "";
2860
2856
  const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: c, dataContextYMaxField: l } = b.scatterplotAggregationFields;
@@ -2866,8 +2862,8 @@ function Sr(i) {
2866
2862
  }
2867
2863
  } else
2868
2864
  r = Q([
2869
- Fe({ where: Ce(t, e[t]) }),
2870
- a !== void 0 ? Fe({ where: Ce(a, e[a]) }) : ""
2865
+ be({ where: Be(t, e[t]) }),
2866
+ a !== void 0 ? be({ where: Be(a, e[a]) }) : ""
2871
2867
  ]);
2872
2868
  return r;
2873
2869
  }
@@ -2900,16 +2896,16 @@ function vi(i) {
2900
2896
  keepNullValues: !0,
2901
2897
  specificField: b.typeOrDomainIdValue
2902
2898
  });
2903
- r === Ye.Double ? o = Bi(d, e) : (Ae(s.axes?.[0].valueFormat) && (d = Ve(d)), o = Fe({
2904
- where: Ce(e, d),
2899
+ r === Ye.Double ? o = Bi(d, e) : (Pe(s.axes?.[0].valueFormat) && (d = Ve(d)), o = be({
2900
+ where: Be(e, d),
2905
2901
  normalize: !1,
2906
2902
  escape: !0
2907
2903
  }));
2908
2904
  }
2909
- const c = Fe({ where: a ?? "", normalize: !1, escape: !0 });
2905
+ const c = be({ where: a ?? "", normalize: !1, escape: !0 });
2910
2906
  let l = "";
2911
- if (Wa(s) === !0) {
2912
- const d = E(s.series) === p.BoxPlotMultiFieldsAndCategory ? t : void 0, f = U({
2907
+ if (ja(s) === !0) {
2908
+ const d = E(s.series) === h.BoxPlotMultiFieldsAndCategory ? t : void 0, f = U({
2913
2909
  key: V.Min,
2914
2910
  showOutliers: !0,
2915
2911
  splitBy: a,
@@ -2921,38 +2917,38 @@ function vi(i) {
2921
2917
  y: d
2922
2918
  }), g = e === b.boxPlot.boxPlotCategory ? n[e] : t;
2923
2919
  if (!ee(g)) {
2924
- const y = n[f], h = n[m];
2925
- Number.isFinite(y) && Number.isFinite(h) && (l = `${g?.toString()}>=${y?.toString()} AND ${g?.toString()}<=${h?.toString()}`);
2920
+ const y = n[f], p = n[m];
2921
+ Number.isFinite(y) && Number.isFinite(p) && (l = `${g?.toString()}>=${y?.toString()} AND ${g?.toString()}<=${p?.toString()}`);
2926
2922
  }
2927
2923
  }
2928
2924
  return Q([o, c, l]);
2929
2925
  }
2930
- function Fr(i) {
2926
+ function hr(i) {
2931
2927
  const { xAxisField: e, splitBy: t, dataContext: a, xAxisFieldType: n, chartConfig: r } = i;
2932
2928
  let s = "";
2933
2929
  if (b.dateBinningRange in a)
2934
2930
  s = Ci(e, a);
2935
- else if (E(r.series) !== p.BarAndLineFromFields) {
2931
+ else if (E(r.series) !== h.BarAndLineFromFields) {
2936
2932
  let l = ze({
2937
2933
  value: a[e],
2938
2934
  dataContext: a,
2939
2935
  keepNullValues: !0,
2940
2936
  specificField: b.typeOrDomainIdValue
2941
2937
  });
2942
- n === Ye.Double ? s = Bi(l, e) : (Ae(r.axes?.[0].valueFormat) && (l = Ve(l)), s = Fe({
2943
- where: Ce(e, l),
2938
+ n === Ye.Double ? s = Bi(l, e) : (Pe(r.axes?.[0].valueFormat) && (l = Ve(l)), s = be({
2939
+ where: Be(e, l),
2944
2940
  normalize: !1,
2945
2941
  escape: !0
2946
2942
  }));
2947
2943
  }
2948
- const o = Fe({ where: t ?? "", normalize: !1, escape: !0 });
2944
+ const o = be({ where: t ?? "", normalize: !1, escape: !0 });
2949
2945
  return Q([s, o]);
2950
2946
  }
2951
- function br(i) {
2947
+ function Sr(i) {
2952
2948
  const { xAxisField: e, dataContext: t, chartConfig: a } = i;
2953
2949
  let n = b.typeOrDomainIdValue in t ? t[b.typeOrDomainIdValue] : t[b.originalCategoryValue];
2954
- return n === void 0 && (n = t[e]), E(a.series) === p.PieFromFields ? "" : Fe({
2955
- where: Ce(e, n),
2950
+ return n === void 0 && (n = t[e]), E(a.series) === h.PieFromFields ? "" : be({
2951
+ where: Be(e, n),
2956
2952
  normalize: !1,
2957
2953
  escape: !0
2958
2954
  });
@@ -2971,7 +2967,7 @@ function Qt(i) {
2971
2967
  });
2972
2968
  return l && (c = `${l}=${a}`), c;
2973
2969
  }
2974
- function xr(i) {
2970
+ function Fr(i) {
2975
2971
  const {
2976
2972
  xAxisFieldType: e,
2977
2973
  yAxisFieldType: t,
@@ -2985,8 +2981,8 @@ function xr(i) {
2985
2981
  if (c.type === S.HeatSeries) {
2986
2982
  let u, d;
2987
2983
  const f = a[k.xField], m = a[k.yField], g = n.axes?.[0]?.valueFormat?.type, y = n.axes?.[1]?.valueFormat?.type;
2988
- g === S.CategoryAxisFormat ? u = Fe({
2989
- where: Ce(c.x, f),
2984
+ g === S.CategoryAxisFormat ? u = be({
2985
+ where: Be(c.x, f),
2990
2986
  normalize: !1,
2991
2987
  escape: !0
2992
2988
  }) : u = Qt({
@@ -2997,8 +2993,8 @@ function xr(i) {
2997
2993
  outTimeZone: r,
2998
2994
  dataTimeZone: s,
2999
2995
  runsOnClientQueryEngine: o
3000
- }), y === S.CategoryAxisFormat ? d = Fe({
3001
- where: Ce(c.y, m),
2996
+ }), y === S.CategoryAxisFormat ? d = be({
2997
+ where: Be(c.y, m),
3002
2998
  normalize: !1,
3003
2999
  escape: !0
3004
3000
  }) : d = Qt({
@@ -3010,12 +3006,12 @@ function xr(i) {
3010
3006
  }
3011
3007
  return l;
3012
3008
  }
3013
- function Cr(i) {
3009
+ function br(i) {
3014
3010
  const { xAxisField: e, dataContext: t, chartConfig: a } = i;
3015
3011
  let n = "";
3016
3012
  const r = a.series[0], { minValue: s, maxValue: o } = t;
3017
3013
  if (Number.isFinite(s) && Number.isFinite(o) && r.type === S.HistogramSeries) {
3018
- const c = Ka(e, r.dataTransformationType), l = t.isLastBin ? "<=" : "<";
3014
+ const c = Ya(e, r.dataTransformationType), l = t.isLastBin ? "<=" : "<";
3019
3015
  n = Q([
3020
3016
  `${c}>=${s?.toString()}`,
3021
3017
  `${c}${l}${o?.toString()}`
@@ -3023,39 +3019,39 @@ function Cr(i) {
3023
3019
  }
3024
3020
  return n;
3025
3021
  }
3026
- function Xo(i) {
3022
+ function Yo(i) {
3027
3023
  const { chartConfig: e } = i, t = W(e.series);
3028
3024
  let a = "";
3029
3025
  switch (t) {
3030
3026
  case S.ScatterSeries:
3031
- a = Sr(i);
3027
+ a = pr(i);
3032
3028
  break;
3033
3029
  case S.HeatSeries:
3034
- a = xr(i);
3030
+ a = Fr(i);
3035
3031
  break;
3036
3032
  case S.RadarSeries:
3037
3033
  case S.BarSeries:
3038
3034
  case S.LineSeries:
3039
3035
  case S.ComboLineAndBarSeries:
3040
- a = Fr(i);
3036
+ a = hr(i);
3041
3037
  break;
3042
3038
  case S.BoxPlotSeries:
3043
3039
  a = vi(i);
3044
3040
  break;
3045
3041
  case S.HistogramSeries:
3046
- a = Cr(i);
3042
+ a = br(i);
3047
3043
  break;
3048
3044
  case S.PieSeries:
3049
- a = br(i);
3045
+ a = Sr(i);
3050
3046
  break;
3051
3047
  }
3052
3048
  return a;
3053
3049
  }
3054
- async function Br(i) {
3050
+ async function xr(i) {
3055
3051
  const { numberOfQueries: e, selectionOIDs: t, chartConfig: a, queryConfig: n, options: r, errorStrings: s, queryObject: o } = i, { setTimeBinningInfoWhenNotProvided: c } = r ?? {}, { series: l } = a, u = W(l), d = [], { maxOIDsPerSelectionQuery: f } = Ue();
3056
3052
  for (let g = 0; g < e; g += 1) {
3057
- const y = g * f, h = (g + 1) * f - 1, x = t.slice(y === 0 ? 0 : y - 1, h), F = { ...n };
3058
- switch (F.objectIds = x, u) {
3053
+ const y = g * f, p = (g + 1) * f - 1, C = t.slice(y === 0 ? 0 : y - 1, p), F = { ...n };
3054
+ switch (F.objectIds = C, u) {
3059
3055
  case S.HeatSeries:
3060
3056
  d.push(
3061
3057
  Di({
@@ -3074,15 +3070,15 @@ async function Br(i) {
3074
3070
  case S.LineSeries:
3075
3071
  case S.RadarSeries:
3076
3072
  case S.ComboLineAndBarSeries:
3077
- if (ve({
3073
+ if (Ne({
3078
3074
  xAxisValueFormatType: pe(a),
3079
3075
  setTimeBinningInfoWhenNotProvided: c,
3080
3076
  seriesConfig: l[0]
3081
3077
  })) {
3082
- const C = a;
3083
- "temporalBinning" in C.series[0] && C.series[0].temporalBinning && (C.series[0].temporalBinning.trimIncompleteTimeInterval = !1, Qe(o) && (delete C.series[0].temporalBinning.start, delete C.series[0].temporalBinning.end)), d.push(
3078
+ const x = a;
3079
+ "temporalBinning" in x.series[0] && x.series[0].temporalBinning && (x.series[0].temporalBinning.trimIncompleteTimeInterval = !1, Qe(o) && (delete x.series[0].temporalBinning.start, delete x.series[0].temporalBinning.end)), d.push(
3084
3080
  wt({
3085
- chartConfig: C,
3081
+ chartConfig: x,
3086
3082
  queryConfig: F,
3087
3083
  queryObject: o,
3088
3084
  options: r
@@ -3090,7 +3086,7 @@ async function Br(i) {
3090
3086
  );
3091
3087
  } else
3092
3088
  d.push(
3093
- fs({
3089
+ us({
3094
3090
  queryObject: o,
3095
3091
  chartConfig: a,
3096
3092
  options: r,
@@ -3100,7 +3096,7 @@ async function Br(i) {
3100
3096
  break;
3101
3097
  case S.BoxPlotSeries:
3102
3098
  d.push(
3103
- ms({
3099
+ ds({
3104
3100
  queryObject: o,
3105
3101
  chartConfig: a,
3106
3102
  options: r,
@@ -3126,7 +3122,7 @@ async function Br(i) {
3126
3122
  break;
3127
3123
  case S.HistogramSeries:
3128
3124
  d.push(
3129
- Xn({
3125
+ Kn({
3130
3126
  queryObject: o,
3131
3127
  queryConfig: F,
3132
3128
  chartConfig: a,
@@ -3138,7 +3134,7 @@ async function Br(i) {
3138
3134
  }
3139
3135
  return await Promise.all(d);
3140
3136
  }
3141
- function vr(i) {
3137
+ function Cr(i) {
3142
3138
  const { dataFetchingResults: e, numberOfQueries: t, series: a } = i, n = W(a), r = E(a);
3143
3139
  let s = [];
3144
3140
  const o = /* @__PURE__ */ new Map();
@@ -3168,11 +3164,11 @@ function vr(i) {
3168
3164
  [f]: m[f]
3169
3165
  }))
3170
3166
  );
3171
- } else l.valid && (r === p.PieFromFields ? s = st({
3167
+ } else l.valid && (r === h.PieFromFields ? s = st({
3172
3168
  dataToConvert: u[0],
3173
3169
  x: ne,
3174
3170
  y: he
3175
- }) : r === p.BarAndLineFromFields ? s = st({
3171
+ }) : r === h.BarAndLineFromFields ? s = st({
3176
3172
  dataToConvert: u[0],
3177
3173
  x: a[0].x,
3178
3174
  y: a[0].y
@@ -3181,7 +3177,7 @@ function vr(i) {
3181
3177
  }
3182
3178
  return o.size > 0 && (s = Array.from(o.values())), s;
3183
3179
  }
3184
- async function Nr(i) {
3180
+ async function Br(i) {
3185
3181
  const {
3186
3182
  chartConfig: e,
3187
3183
  queryConfig: t,
@@ -3192,17 +3188,17 @@ async function Nr(i) {
3192
3188
  options: o,
3193
3189
  errorStrings: c
3194
3190
  } = i, { series: l } = e, { selectionData: u, viewExtentUpdated: d, returnSelectionOIDs: f, chartLimits: m } = o ?? {}, { selectionItems: g, selectionOIDs: y } = u ?? {};
3195
- let h;
3196
- const x = W(l), F = x !== S.HistogramSeries && x !== S.HeatSeries && g !== void 0 && g.length > 0 && !(l[0].x in g[0]) && !(ne in g[0]) && !(b.boxPlot.boxPlotCategory in g[0]);
3197
- if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !Pe(y, n))) {
3191
+ let p;
3192
+ const C = W(l), F = C !== S.HistogramSeries && C !== S.HeatSeries && g !== void 0 && g.length > 0 && !(l[0].x in g[0]) && !(ne in g[0]) && !(b.boxPlot.boxPlotCategory in g[0]);
3193
+ if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !Le(y, n))) {
3198
3194
  const B = _t(a);
3199
- if (B !== void 0 && !Ya({ dataContext: B[0], chartConfig: e, chartLimits: m }))
3200
- h = B.filter((N) => {
3195
+ if (B !== void 0 && !_a({ dataContext: B[0], chartConfig: e, chartLimits: m }))
3196
+ p = B.filter((N) => {
3201
3197
  const v = N[Y.uniqueIdsName];
3202
3198
  return typeof v == "number" ? y?.includes(v) : !1;
3203
3199
  });
3204
3200
  else if (y?.[0] !== void 0 && t !== void 0) {
3205
- const { maxOIDsPerSelectionQuery: N } = Ue(), v = Math.ceil(y.length / N), T = await Br({
3201
+ const { maxOIDsPerSelectionQuery: N } = Ue(), v = Math.ceil(y.length / N), T = await xr({
3206
3202
  numberOfQueries: v,
3207
3203
  selectionOIDs: y,
3208
3204
  queryConfig: t,
@@ -3211,27 +3207,27 @@ async function Nr(i) {
3211
3207
  errorStrings: c,
3212
3208
  chartConfig: e
3213
3209
  });
3214
- h = vr({
3210
+ p = Cr({
3215
3211
  dataFetchingResults: T,
3216
3212
  numberOfQueries: v,
3217
3213
  series: l
3218
3214
  });
3219
3215
  }
3220
3216
  }
3221
- return h;
3217
+ return p;
3222
3218
  }
3223
- function* Tr(i) {
3219
+ function* vr(i) {
3224
3220
  const { filterList: e, queryObject: t, queryConfig: a } = i;
3225
3221
  for (let n = 0; n < e.length; n += 1) {
3226
3222
  const r = { ...a };
3227
- r.where = Q([r.where, e[n]]), yield oa({
3223
+ r.where = Q([r.where, e[n]]), yield la({
3228
3224
  queryObject: t,
3229
3225
  queryConfig: r,
3230
3226
  uniqueFeature: !0
3231
3227
  });
3232
3228
  }
3233
3229
  }
3234
- async function Zo(i) {
3230
+ async function Ko(i) {
3235
3231
  const { whereList: e, queryObject: t, queryFilter: a, queryConfig: n } = i;
3236
3232
  let r = [];
3237
3233
  if (e.length > 0) {
@@ -3241,7 +3237,7 @@ async function Zo(i) {
3241
3237
  let g = Q(m, "OR");
3242
3238
  g = Q([a, g]), o.push(g);
3243
3239
  }
3244
- const l = Tr({
3240
+ const l = vr({
3245
3241
  filterList: o,
3246
3242
  queryObject: t,
3247
3243
  queryConfig: n
@@ -3250,28 +3246,28 @@ async function Zo(i) {
3250
3246
  }
3251
3247
  return r;
3252
3248
  }
3253
- async function Ar(i) {
3249
+ async function Nr(i) {
3254
3250
  const { queryObject: e, queryConfig: t, chartConfig: a, currentSelectionDataItems: n, options: r, errorStrings: s, abortKey: o } = i, c = E(a.series);
3255
3251
  let l = { valid: !0, data: { dataItems: [] } };
3256
3252
  if (n !== void 0 && n.length > 0) {
3257
3253
  const u = we(a), { x: d } = u, f = "y" in u ? u.y : "";
3258
3254
  let m;
3259
- e !== void 0 && (m = (await Ne(e)).find((B) => B.name === d)?.type);
3255
+ e !== void 0 && (m = (await Te(e)).find((B) => B.name === d)?.type);
3260
3256
  const g = [], y = n.reduce(
3261
- (C, B) => {
3257
+ (x, B) => {
3262
3258
  const N = [];
3263
3259
  if (Y.uniqueIdsName in B)
3264
3260
  g.push(B[Y.uniqueIdsName]);
3265
3261
  else {
3266
3262
  switch (c) {
3267
- case p.BoxPlotMonoFieldAndSplitBy:
3268
- case p.BoxPlotMultiFieldsAndSplitBy:
3269
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy: {
3263
+ case h.BoxPlotMonoFieldAndSplitBy:
3264
+ case h.BoxPlotMultiFieldsAndSplitBy:
3265
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy: {
3270
3266
  const w = K(u.query?.where ?? ""), L = `_${V.Average}`;
3271
3267
  Object.keys(B).forEach((D) => {
3272
3268
  if (D.includes(L)) {
3273
3269
  const R = D.replace(L, "");
3274
- R.trim() !== "" && N.push(Ce(w, R));
3270
+ R.trim() !== "" && N.push(Be(w, R));
3275
3271
  }
3276
3272
  });
3277
3273
  break;
@@ -3279,7 +3275,7 @@ async function Ar(i) {
3279
3275
  }
3280
3276
  const v = [f].flat();
3281
3277
  let T = v.length === 1 ? v[0] : "";
3282
- if (c === p.BoxPlotMultiFieldsAndCategory) {
3278
+ if (c === h.BoxPlotMultiFieldsAndCategory) {
3283
3279
  const w = `_${V.FirstQuartile}`, L = Object.keys(B).find((D) => D.includes(w));
3284
3280
  L !== void 0 && (T = L.replace(w, ""));
3285
3281
  }
@@ -3292,19 +3288,19 @@ async function Ar(i) {
3292
3288
  dataContext: B,
3293
3289
  xAxisFieldType: m
3294
3290
  });
3295
- C.push(L);
3291
+ x.push(L);
3296
3292
  });
3297
3293
  }
3298
- return C;
3294
+ return x;
3299
3295
  },
3300
3296
  []
3301
- ), h = z(e);
3302
- if (h !== void 0 && g.length > 0) {
3303
- const { objectIdField: C } = h;
3304
- y.push(`${C} IN (${g.join(",")})`);
3297
+ ), p = z(e);
3298
+ if (p !== void 0 && g.length > 0) {
3299
+ const { objectIdField: x } = p;
3300
+ y.push(`${x} IN (${g.join(",")})`);
3305
3301
  }
3306
- const x = y.join(" OR "), F = { ...t };
3307
- F.where = Q([F.where, x]), l = await Pt({
3302
+ const C = y.join(" OR "), F = { ...t };
3303
+ F.where = Q([F.where, C]), l = await Pt({
3308
3304
  queryObject: e,
3309
3305
  chartConfig: a,
3310
3306
  queryConfig: F,
@@ -3315,7 +3311,7 @@ async function Ar(i) {
3315
3311
  }
3316
3312
  return l;
3317
3313
  }
3318
- async function Pr(i) {
3314
+ async function Tr(i) {
3319
3315
  const {
3320
3316
  queryObject: e,
3321
3317
  queryConfig: t,
@@ -3328,7 +3324,7 @@ async function Pr(i) {
3328
3324
  abortKey: l
3329
3325
  } = i, { series: u } = a, d = W(u), f = pe(a);
3330
3326
  let m = { valid: !0 }, g;
3331
- di({ currentSelectionOIDs: r, options: o }) ? g = await Nr({
3327
+ di({ currentSelectionOIDs: r, options: o }) ? g = await Br({
3332
3328
  chartConfig: a,
3333
3329
  queryConfig: t,
3334
3330
  chartData: s,
@@ -3337,46 +3333,46 @@ async function Pr(i) {
3337
3333
  queryObject: e,
3338
3334
  options: o,
3339
3335
  errorStrings: c
3340
- }) ?? [] : g = hr({ chartConfig: a, currentSelectionDataItems: n, options: o });
3336
+ }) ?? [] : g = yr({ chartConfig: a, currentSelectionDataItems: n, options: o });
3341
3337
  let y = !1;
3342
3338
  switch (d) {
3343
3339
  case S.HeatSeries:
3344
3340
  m.data = { dataItems: g };
3345
3341
  break;
3346
3342
  case S.PieSeries:
3347
- if (E(a.series) === p.PieFromFields) {
3348
- const { x: h, y: x } = a.series[0], F = Me(g);
3349
- F.forEach((C) => {
3350
- h in C && (C[ne] = C[h], delete C[h]), x in C && (C[he] = C[x], delete C[x]);
3343
+ if (E(a.series) === h.PieFromFields) {
3344
+ const { x: p, y: C } = a.series[0], F = Fe(g);
3345
+ F.forEach((x) => {
3346
+ p in x && (x[ne] = x[p], delete x[p]), C in x && (x[he] = x[C], delete x[C]);
3351
3347
  }), m.data = { dataItems: F };
3352
3348
  } else
3353
3349
  m.data = { dataItems: g };
3354
3350
  m.count = g.length, y = !0;
3355
3351
  break;
3356
3352
  case S.BoxPlotSeries:
3357
- m = await Ar(i);
3353
+ m = await Nr(i);
3358
3354
  break;
3359
3355
  case S.BarSeries:
3360
3356
  case S.ComboLineAndBarSeries:
3361
3357
  case S.RadarSeries:
3362
3358
  case S.LineSeries:
3363
- if (g.length === 0 || !ve({
3359
+ if (g.length === 0 || !Ne({
3364
3360
  xAxisValueFormatType: f,
3365
3361
  setTimeBinningInfoWhenNotProvided: o?.setTimeBinningInfoWhenNotProvided,
3366
3362
  seriesConfig: u[0]
3367
3363
  }))
3368
3364
  m.data = { dataItems: g }, m.count = g.length * u.length, y = !0;
3369
3365
  else {
3370
- const h = { ...t };
3366
+ const p = { ...t };
3371
3367
  if (n !== void 0 && n.length > 0) {
3372
3368
  const F = n.map(
3373
3369
  (B) => Ci(u[0].x, B)
3374
- ), C = Q(F, "OR");
3375
- h.where = Q([h.where, C]);
3370
+ ), x = Q(F, "OR");
3371
+ p.where = Q([p.where, x]);
3376
3372
  }
3377
3373
  m = await wt({
3378
3374
  queryObject: e,
3379
- queryConfig: h,
3375
+ queryConfig: p,
3380
3376
  chartConfig: a,
3381
3377
  options: o
3382
3378
  });
@@ -3393,14 +3389,14 @@ async function Pr(i) {
3393
3389
  bins: []
3394
3390
  }, m.count = 0;
3395
3391
  else {
3396
- const { x: h } = u[0], x = g.map((B, N) => {
3392
+ const { x: p } = u[0], C = g.map((B, N) => {
3397
3393
  const { minValue: v, maxValue: T } = B, w = N === g.length - 1 ? "<=" : "<";
3398
- return `${h} >= ${v} AND ${h} ${w} ${T}`;
3399
- }), F = Q(x, "OR"), C = { ...t };
3400
- C.where = Q([C.where, F]), m = await Fi({
3394
+ return `${p} >= ${v} AND ${p} ${w} ${T}`;
3395
+ }), F = Q(C, "OR"), x = { ...t };
3396
+ x.where = Q([x.where, F]), m = await Fi({
3401
3397
  queryObject: e,
3402
3398
  chartConfig: a,
3403
- queryConfig: C,
3399
+ queryConfig: x,
3404
3400
  options: o,
3405
3401
  errorStrings: c,
3406
3402
  abortKey: l
@@ -3410,14 +3406,14 @@ async function Pr(i) {
3410
3406
  }
3411
3407
  case S.ScatterSeries: {
3412
3408
  if (g.length === 0) {
3413
- const { r2: h, trendLinePoints: x } = b.scatterplotSeries;
3414
- m.data = { dataItems: [], r2: h, trendLinePoints: x, count: 0 }, m.count = 0;
3409
+ const { r2: p, trendLinePoints: C } = b.scatterplotSeries;
3410
+ m.data = { dataItems: [], r2: p, trendLinePoints: C, count: 0 }, m.count = 0;
3415
3411
  } else {
3416
- const { r2: h, trendLinePoints: x } = bi({
3412
+ const { r2: p, trendLinePoints: C } = bi({
3417
3413
  data: g,
3418
3414
  chartConfig: a
3419
3415
  });
3420
- m.data = { dataItems: g, r2: h, trendLinePoints: x }, m.count = g.length;
3416
+ m.data = { dataItems: g, r2: p, trendLinePoints: C }, m.count = g.length;
3421
3417
  }
3422
3418
  break;
3423
3419
  }
@@ -3443,7 +3439,7 @@ async function Pt(i) {
3443
3439
  else {
3444
3440
  const u = { dataItems: [] };
3445
3441
  u.meanLines = l.data.dataItems;
3446
- const d = hn(t), f = (await Bt({
3442
+ const d = yn(t), f = (await Bt({
3447
3443
  queryObject: e,
3448
3444
  queryConfig: a,
3449
3445
  fetchFullBoxPlotData: !0,
@@ -3455,11 +3451,11 @@ async function Pt(i) {
3455
3451
  }
3456
3452
  return o;
3457
3453
  }
3458
- async function Lr(i) {
3454
+ async function Ar(i) {
3459
3455
  const { queryObject: e, chartConfig: t, queryConfig: a, binnedServerData: n, options: r, errorStrings: s, abortKey: o, fieldList: c } = i, { series: l } = t, { filterBySelection: u } = r ?? {}, d = W(l);
3460
3456
  let f = { valid: !0 };
3461
3457
  if (u === !0)
3462
- f = await Pr(i);
3458
+ f = await Tr(i);
3463
3459
  else
3464
3460
  switch (d) {
3465
3461
  case S.HeatSeries:
@@ -3481,7 +3477,7 @@ async function Lr(i) {
3481
3477
  abortKey: o,
3482
3478
  fieldList: c
3483
3479
  };
3484
- ve({
3480
+ Ne({
3485
3481
  xAxisValueFormatType: pe(t),
3486
3482
  setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
3487
3483
  seriesConfig: l[0]
@@ -3509,7 +3505,7 @@ async function Lr(i) {
3509
3505
  });
3510
3506
  break;
3511
3507
  case S.GaugeSeries:
3512
- f = await jn({
3508
+ f = await Rn({
3513
3509
  queryObject: e,
3514
3510
  chartConfig: t,
3515
3511
  queryConfig: a,
@@ -3520,7 +3516,7 @@ async function Lr(i) {
3520
3516
  }
3521
3517
  return f;
3522
3518
  }
3523
- async function el(i) {
3519
+ async function Jo(i) {
3524
3520
  const {
3525
3521
  queryObject: e,
3526
3522
  chartConfig: t,
@@ -3540,7 +3536,7 @@ async function el(i) {
3540
3536
  runtimeDataFilters: c?.runtimeDataFilters,
3541
3537
  ignoreViewExtent: c?.ignoreViewExtent
3542
3538
  });
3543
- return la(a), d = await Lr({
3539
+ return ca(a), d = await Ar({
3544
3540
  chartConfig: t,
3545
3541
  queryObject: e,
3546
3542
  queryConfig: f,
@@ -3554,7 +3550,7 @@ async function el(i) {
3554
3550
  fieldList: u
3555
3551
  }), d.queryConfig = f, d;
3556
3552
  }
3557
- function Mr(i, e, t) {
3553
+ function Pr(i, e, t) {
3558
3554
  const a = /* @__PURE__ */ new Map();
3559
3555
  for (let r = 0; r < i.length; r += 1)
3560
3556
  a.set(i[r], { [t]: i[r] });
@@ -3564,11 +3560,11 @@ function Mr(i, e, t) {
3564
3560
  }
3565
3561
  return [...a.values()];
3566
3562
  }
3567
- async function wr(i) {
3563
+ async function Lr(i) {
3568
3564
  const { seriesData: e, chartConfig: t, queryConfig: a, queryObject: n, categoryOrDateCount: r, behaviorAfterLimit: s, abortKey: o } = i, { series: c } = t;
3569
3565
  let l = e;
3570
3566
  const u = E(c), d = pe(t);
3571
- if (s !== $e.RenderUpToTheLimit && n !== void 0 && r !== void 0 && r > e.length && u !== p.BarAndLineFromFields && u !== p.BarAndLineNoAggregation && u !== p.PieNoAggregation && d === S.CategoryAxisFormat) {
3567
+ if (s !== $e.RenderUpToTheLimit && n !== void 0 && r !== void 0 && r > e.length && u !== h.BarAndLineFromFields && u !== h.BarAndLineNoAggregation && u !== h.PieNoAggregation && d === S.CategoryAxisFormat) {
3572
3568
  const { x: f } = c[0], m = {
3573
3569
  ...a,
3574
3570
  returnDistinctValues: !0,
@@ -3580,12 +3576,12 @@ async function wr(i) {
3580
3576
  queryConfig: m,
3581
3577
  featureCount: r,
3582
3578
  abortKey: o
3583
- })).map((h) => h.attributes[f]).filter((h) => h != null);
3584
- y.length > e.length && (l = Mr(y, e, f));
3579
+ })).map((p) => p.attributes[f]).filter((p) => p != null);
3580
+ y.length > e.length && (l = Pr(y, e, f));
3585
3581
  }
3586
3582
  return l;
3587
3583
  }
3588
- function Dr(i, e) {
3584
+ function Mr(i, e) {
3589
3585
  const t = i, { series: a } = e;
3590
3586
  if (pe(e) === S.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === P.Count) {
3591
3587
  const n = a.reduce(
@@ -3601,19 +3597,19 @@ function Dr(i, e) {
3601
3597
  return t;
3602
3598
  }
3603
3599
  const Ni = [
3604
- p.BarAndLineMonoField,
3605
- p.BarAndLineMultiFields,
3606
- p.PieNoAggregation,
3607
- p.PieFromCategory,
3608
- p.BoxPlotMonoFieldAndCategory,
3609
- p.BoxPlotMultiFieldsAndCategory,
3610
- p.BoxPlotMonoFieldAndCategoryAndSplitBy
3611
- ], Or = 8e3;
3600
+ h.BarAndLineMonoField,
3601
+ h.BarAndLineMultiFields,
3602
+ h.PieNoAggregation,
3603
+ h.PieFromCategory,
3604
+ h.BoxPlotMonoFieldAndCategory,
3605
+ h.BoxPlotMultiFieldsAndCategory,
3606
+ h.BoxPlotMonoFieldAndCategoryAndSplitBy
3607
+ ], wr = 8e3;
3612
3608
  function Ti(i, e) {
3613
3609
  let t = i;
3614
3610
  return e === j.Week ? t /= 7 : e === j.Month ? t /= 30 : e === j.Year && (t /= 365), t = Math.ceil(t), t;
3615
3611
  }
3616
- function Be(i) {
3612
+ function ve(i) {
3617
3613
  const { date: e, unit: t, nextOrPrevious: a, size: n } = i;
3618
3614
  if (n !== void 0 && Number.isFinite(n)) {
3619
3615
  const r = a === "next" ? n : -n;
@@ -3635,10 +3631,10 @@ function Be(i) {
3635
3631
  }
3636
3632
  return e;
3637
3633
  }
3638
- function qr(i) {
3634
+ function Dr(i) {
3639
3635
  const { binFirstOrLastIndex: e, data: t, x: a, timeIntervalInfo: n } = i, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = t[e][a];
3640
3636
  let l = e;
3641
- const u = Be({
3637
+ const u = ve({
3642
3638
  date: c,
3643
3639
  unit: r,
3644
3640
  size: o,
@@ -3650,7 +3646,7 @@ function qr(i) {
3650
3646
  const f = l + 1 >= t.length;
3651
3647
  let m = l;
3652
3648
  f && t[m] !== void 0 && (m += 1);
3653
- const g = f ? Be({
3649
+ const g = f ? ve({
3654
3650
  date: c,
3655
3651
  unit: r,
3656
3652
  size: o,
@@ -3665,10 +3661,10 @@ function qr(i) {
3665
3661
  sliceEndIndex: m
3666
3662
  };
3667
3663
  }
3668
- function Er(i) {
3664
+ function Or(i) {
3669
3665
  const { binFirstOrLastIndex: e, data: t, x: a, timeIntervalInfo: n } = i, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = t[e][a];
3670
3666
  let l = e;
3671
- const u = Be({
3667
+ const u = ve({
3672
3668
  date: c,
3673
3669
  unit: r,
3674
3670
  size: o,
@@ -3680,7 +3676,7 @@ function Er(i) {
3680
3676
  const f = l - 1 <= 0;
3681
3677
  let m = e;
3682
3678
  return f && t[m] !== void 0 && (m -= 1), f && (l = 0), {
3683
- binStartDate: f ? Be({
3679
+ binStartDate: f ? ve({
3684
3680
  date: c,
3685
3681
  unit: r,
3686
3682
  size: o,
@@ -3693,7 +3689,7 @@ function Er(i) {
3693
3689
  last: f
3694
3690
  };
3695
3691
  }
3696
- function Vr(i) {
3692
+ function qr(i) {
3697
3693
  const { binsToRegroup: e, statisticType: t, y: a, nullPolicy: n } = i;
3698
3694
  let r;
3699
3695
  n !== re.Interpolate && (r = n === re.Zero ? 0 : null);
@@ -3717,51 +3713,51 @@ function Vr(i) {
3717
3713
  }
3718
3714
  return r;
3719
3715
  }
3720
- function Ir(i) {
3716
+ function Er(i) {
3721
3717
  const { data: e, seriesConfig: t, timeIntervalInfo: a, dateMinTimestamp: n, dateMaxTimestamp: r } = i;
3722
3718
  let s = [];
3723
3719
  const { unit: o } = a, c = a.size ?? 1, l = t[0], { x: u } = l;
3724
3720
  let d, f;
3725
3721
  if (oe(l) && (f = l.temporalBinning?.nullPolicy, d = l.temporalBinning?.timeAggregationType), c > 1 || o === j.Week || o === j.Month || o === j.Year) {
3726
3722
  const { query: m } = t[0], g = se(t), { statisticType: y } = m?.outStatistics?.[0] ?? zt;
3727
- let h = !1, x = d === G.End ? e.length - 1 : 0;
3723
+ let p = !1, C = d === G.End ? e.length - 1 : 0;
3728
3724
  const F = {
3729
- binFirstOrLastIndex: x,
3725
+ binFirstOrLastIndex: C,
3730
3726
  data: e,
3731
3727
  x: u,
3732
3728
  timeIntervalInfo: a
3733
3729
  };
3734
- for (; !h; ) {
3735
- let C = {};
3730
+ for (; !p; ) {
3731
+ let x = {};
3736
3732
  const { binStartDate: B, binEndDate: N, last: v, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === G.End ? (
3737
3733
  // When grouping from the end we'll start from the last date and move backward to create the bins
3738
- Er(F)
3734
+ Or(F)
3739
3735
  ) : (
3740
3736
  // When grouping from the start we'll start from the first date and move forward to create the bins
3741
- qr(F)
3737
+ Dr(F)
3742
3738
  );
3743
- if (h = v, C = d === G.End ? C = e[L - 1] : C = e[x], N > r && B < r || B < n && N > n || B >= n && N <= r) {
3739
+ if (p = v, x = d === G.End ? x = e[L - 1] : x = e[C], N > r && B < r || B < n && N > n || B >= n && N <= r) {
3744
3740
  const D = e.slice(w, L).filter((q) => !(b.dateBinModel in q));
3745
3741
  g.forEach((q) => {
3746
- C[q] = Vr({ binsToRegroup: D, statisticType: y, y: q, nullPolicy: f });
3742
+ x[q] = qr({ binsToRegroup: D, statisticType: y, y: q, nullPolicy: f });
3747
3743
  });
3748
- const R = D.map((q) => q[xe]).filter((q) => q !== void 0), M = Qa(R);
3749
- M !== void 0 && (C[xe] = M), C[u] = B, C[b.xAxisField] = B, C[b.dateBinningRange] = [B, N], delete C[b.dateBinModel], s.push(C);
3744
+ const R = D.map((q) => q[Ce]).filter((q) => q !== void 0), M = Wa(R);
3745
+ M !== void 0 && (x[Ce] = M), x[u] = B, x[b.xAxisField] = B, x[b.dateBinningRange] = [B, N], delete x[b.dateBinModel], s.push(x);
3750
3746
  } else v && d !== G.End && s.length > 0 && (s[s.length - 1][b.dateBinningRange][1] = s[s.length - 1][b.dateBinningRange][1] + 1);
3751
- x = T, F.binFirstOrLastIndex = T;
3747
+ C = T, F.binFirstOrLastIndex = T;
3752
3748
  }
3753
3749
  d === G.End && (s = s.reverse());
3754
3750
  } else c === 1 ? s = e.map((m, g) => {
3755
3751
  const y = m[u];
3756
- let h = e[g + 1]?.[u];
3757
- return h = typeof h == "number" ? h - 1 : Be({
3752
+ let p = e[g + 1]?.[u];
3753
+ return p = typeof p == "number" ? p - 1 : ve({
3758
3754
  date: y,
3759
3755
  unit: o,
3760
3756
  size: c,
3761
3757
  nextOrPrevious: "next"
3762
3758
  }), {
3763
3759
  ...m,
3764
- [b.dateBinningRange]: [y, h]
3760
+ [b.dateBinningRange]: [y, p]
3765
3761
  };
3766
3762
  }) : s = e;
3767
3763
  return s;
@@ -3806,7 +3802,7 @@ function Pi(i) {
3806
3802
  {}
3807
3803
  );
3808
3804
  }
3809
- function $r(i) {
3805
+ function Vr(i) {
3810
3806
  const {
3811
3807
  dateMaxTimestamp: e,
3812
3808
  numberOfFinalBinsWithinDataRange: t,
@@ -3821,42 +3817,42 @@ function $r(i) {
3821
3817
  c === j.Week && (g *= 7);
3822
3818
  const y = Pi(r);
3823
3819
  if (u === G.End) {
3824
- let h = n[0][l];
3825
- for (let x = 0; x < g; x += 1)
3826
- h = Be({
3827
- date: h,
3820
+ let p = n[0][l];
3821
+ for (let C = 0; C < g; C += 1)
3822
+ p = ve({
3823
+ date: p,
3828
3824
  unit: c,
3829
3825
  size: 1,
3830
3826
  nextOrPrevious: "previous"
3831
3827
  }), n.push({
3832
3828
  ...y,
3833
- [l]: h,
3834
- [b.xAxisField]: h
3829
+ [l]: p,
3830
+ [b.xAxisField]: p
3835
3831
  });
3836
3832
  g > 0 && (d = n[n.length - 1][l]);
3837
3833
  } else {
3838
- let h = n[n.length - 1][l];
3839
- for (let x = 0; x < g; x += 1)
3840
- h = Be({
3841
- date: h,
3834
+ let p = n[n.length - 1][l];
3835
+ for (let C = 0; C < g; C += 1)
3836
+ p = ve({
3837
+ date: p,
3842
3838
  unit: c,
3843
3839
  size: 1,
3844
3840
  nextOrPrevious: "next"
3845
3841
  }), n.push({
3846
3842
  ...y,
3847
- [l]: h,
3848
- [b.xAxisField]: h
3843
+ [l]: p,
3844
+ [b.xAxisField]: p
3849
3845
  });
3850
3846
  f = n[n.length - 1][l];
3851
3847
  }
3852
3848
  }
3853
3849
  return { newDateMin: d, newDateMax: f };
3854
3850
  }
3855
- function Rr(i) {
3851
+ function Ir(i) {
3856
3852
  const { numberOfSingleBinsWithinDataRange: e, dataLength: t, unit: a } = i;
3857
3853
  return Ti(t, a) >= e;
3858
3854
  }
3859
- async function kr(i) {
3855
+ async function $r(i) {
3860
3856
  const { queryObject: e, queryConfig: t, x: a } = i, n = `MIN_${a}`, r = `MAX_${a}`, s = `COUNT_${a}`, o = {
3861
3857
  ...t,
3862
3858
  outStatistics: [
@@ -3886,7 +3882,7 @@ async function kr(i) {
3886
3882
  const d = c.get(s);
3887
3883
  return typeof l == "string" && (l = new Date(l).valueOf()), typeof u == "string" && (u = new Date(u).valueOf()), { dateRange: { dateMinTimestamp: l, dateMaxTimestamp: u }, numberOfFeatures: d };
3888
3884
  }
3889
- function jr(i) {
3885
+ function Rr(i) {
3890
3886
  const {
3891
3887
  newDateMin: e,
3892
3888
  newDateMax: t,
@@ -3896,19 +3892,19 @@ function jr(i) {
3896
3892
  initialNumberOfBins: s,
3897
3893
  timeIntervalInfo: o
3898
3894
  } = i, { unit: c } = o, l = n;
3899
- if (!Rr({
3895
+ if (!Ir({
3900
3896
  numberOfSingleBinsWithinDataRange: r,
3901
3897
  dataLength: s,
3902
3898
  unit: c
3903
3899
  })) {
3904
3900
  const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = Pi(a);
3905
- let y = f === G.End ? t : e, h = f === G.End ? n.length - 1 : 0;
3906
- for (; h < n.length && (f === G.End && y > e || f !== G.End && y < t); )
3907
- y !== n[h][d] ? l.push({
3901
+ let y = f === G.End ? t : e, p = f === G.End ? n.length - 1 : 0;
3902
+ for (; p < n.length && (f === G.End && y > e || f !== G.End && y < t); )
3903
+ y !== n[p][d] ? l.push({
3908
3904
  ...m,
3909
3905
  [d]: y,
3910
3906
  [b.xAxisField]: y
3911
- }) : h = f === G.End ? h - 1 : h + 1, y = Be({
3907
+ }) : p = f === G.End ? p - 1 : p + 1, y = ve({
3912
3908
  date: y,
3913
3909
  unit: c === j.Month || c === j.Year ? j.Day : c,
3914
3910
  size: 1,
@@ -3917,7 +3913,7 @@ function jr(i) {
3917
3913
  }
3918
3914
  return l;
3919
3915
  }
3920
- function Wr(i) {
3916
+ function kr(i) {
3921
3917
  const { data: e, seriesConfig: t, dateMinTimestamp: a, dateMaxTimestamp: n } = i, r = e;
3922
3918
  if (t[0].temporalBinning?.trimIncompleteTimeInterval !== !1) {
3923
3919
  const { timeAggregationType: s } = t[0].temporalBinning ?? {}, o = e[0]?.[b.dateBinningRange]?.[0], c = e[e.length - 1]?.[b.dateBinningRange]?.[1];
@@ -3934,10 +3930,10 @@ function Wr(i) {
3934
3930
  }
3935
3931
  return r;
3936
3932
  }
3937
- function Qr(i) {
3933
+ function jr(i) {
3938
3934
  const { groupByFieldsForStatistics: e, dateField: t, queryStartDate: a, queryEndDate: n, y: r, binIndex: s, lastBin: o } = i;
3939
- let c = e === "" ? Le.groupByCaseBegin : e;
3940
- return c = de(ua, {
3935
+ let c = e === "" ? Me.groupByCaseBegin : e;
3936
+ return c = de(da, {
3941
3937
  groupByFieldsForStatistics: c,
3942
3938
  dateField: t,
3943
3939
  startDate: `${a}`,
@@ -3948,7 +3944,7 @@ function Qr(i) {
3948
3944
  // we use <= to catch the last bin's value, < otherwise
3949
3945
  }), c;
3950
3946
  }
3951
- function* Hr(i) {
3947
+ function* Wr(i) {
3952
3948
  const { queryObject: e, seriesConfig: t, queryConfig: a, completeData: n } = i;
3953
3949
  for (let r = 0; r < t.length; r += 1) {
3954
3950
  const s = t[r], { query: o, x: c, y: l } = s, d = [
@@ -3959,20 +3955,20 @@ function* Hr(i) {
3959
3955
  statisticParameters: { value: 0.5 }
3960
3956
  }
3961
3957
  ];
3962
- let f = Le.groupByCaseBegin;
3958
+ let f = Me.groupByCaseBegin;
3963
3959
  for (let g = 0; g < n.length; g += 1) {
3964
- const y = n[g], [h, x] = y[b.dateBinningRange], F = Ve(h), C = Ve(x);
3965
- f = Qr({
3960
+ const y = n[g], [p, C] = y[b.dateBinningRange], F = Ve(p), x = Ve(C);
3961
+ f = jr({
3966
3962
  groupByFieldsForStatistics: f,
3967
3963
  queryStartDate: F,
3968
- queryEndDate: C,
3964
+ queryEndDate: x,
3969
3965
  dateField: c,
3970
3966
  y: [l].flat()[0],
3971
3967
  binIndex: g,
3972
3968
  lastBin: g === n.length - 1
3973
3969
  });
3974
3970
  }
3975
- f = `${f} ${Le.groupByCaseEnd}`;
3971
+ f = `${f} ${Me.groupByCaseEnd}`;
3976
3972
  const m = {
3977
3973
  ...a,
3978
3974
  groupByFieldsForStatistics: [f],
@@ -3986,10 +3982,10 @@ function* Hr(i) {
3986
3982
  });
3987
3983
  }
3988
3984
  }
3989
- async function zr(i) {
3985
+ async function Qr(i) {
3990
3986
  const { queryObject: e, data: t, seriesConfig: a, queryConfig: n } = i, r = t, { statisticType: s } = a[0].query?.outStatistics?.[0] ?? zt;
3991
3987
  if (s === P.ContinuousPercentile && r.length > 0) {
3992
- const o = Hr({
3988
+ const o = Wr({
3993
3989
  queryObject: e,
3994
3990
  completeData: r,
3995
3991
  seriesConfig: a,
@@ -4011,11 +4007,11 @@ async function zr(i) {
4011
4007
  }
4012
4008
  return r;
4013
4009
  }
4014
- async function Gr(i) {
4015
- const { chartConfig: e, queryResults: t, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = i, l = ca(r), d = (await Ne(c)).find((x) => x.name === r)?.type, f = [], m = e.series[0], g = m.query?.outStatistics?.[0]?.statisticType, y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, h = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
4016
- return t.forEach((x, F) => {
4017
- if (!(y && (F === 0 && h === G.End || F === t.length - 1 && h === G.Start))) {
4018
- const { attributes: B, stackedAttributes: N } = x;
4010
+ async function Hr(i) {
4011
+ const { chartConfig: e, queryResults: t, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = i, l = ua(r), d = (await Te(c)).find((C) => C.name === r)?.type, f = [], m = e.series[0], g = m.query?.outStatistics?.[0]?.statisticType, y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
4012
+ return t.forEach((C, F) => {
4013
+ if (!(y && (F === 0 && p === G.End || F === t.length - 1 && p === G.Start))) {
4014
+ const { attributes: B, stackedAttributes: N } = C;
4019
4015
  let v = B[l.lowerBoundaryAlias], T = B[l.upperBoundaryAlias];
4020
4016
  const w = v, L = T, D = (M, q) => {
4021
4017
  let A = M;
@@ -4055,7 +4051,7 @@ async function Gr(i) {
4055
4051
  }
4056
4052
  }) : R(M, s);
4057
4053
  const { featureExtent: q, featureExtentKey: A } = Li({
4058
- feature: x,
4054
+ feature: C,
4059
4055
  splitByField: n
4060
4056
  });
4061
4057
  q && (M[A] = q), f.push(M);
@@ -4063,7 +4059,7 @@ async function Gr(i) {
4063
4059
  }
4064
4060
  }), f;
4065
4061
  }
4066
- async function Ur(i) {
4062
+ async function zr(i) {
4067
4063
  const { queryObject: e, queryResults: t, x: a, queryConfig: n, seriesConfig: r, dateRange: s, timeIntervalInfo: o } = i;
4068
4064
  let c = t;
4069
4065
  const { dateMinTimestamp: l, dateMaxTimestamp: u } = s;
@@ -4077,7 +4073,7 @@ async function Ur(i) {
4077
4073
  dateMinTimestamp: l,
4078
4074
  dateMaxTimestamp: u,
4079
4075
  timeIntervalInfo: o
4080
- }), { newDateMin: g, newDateMax: y } = $r({
4076
+ }), { newDateMin: g, newDateMax: y } = Vr({
4081
4077
  dateMaxTimestamp: u,
4082
4078
  data: c,
4083
4079
  numberOfFinalBinsWithinDataRange: f,
@@ -4085,7 +4081,7 @@ async function Ur(i) {
4085
4081
  seriesConfig: r,
4086
4082
  timeIntervalInfo: o
4087
4083
  });
4088
- c = jr({
4084
+ c = Rr({
4089
4085
  newDateMin: g,
4090
4086
  newDateMax: y,
4091
4087
  seriesConfig: r,
@@ -4096,40 +4092,40 @@ async function Ur(i) {
4096
4092
  }), Ge({
4097
4093
  arrayToSort: c,
4098
4094
  sortingField: a
4099
- }), c = Ir({
4095
+ }), c = Er({
4100
4096
  data: c,
4101
4097
  seriesConfig: r,
4102
4098
  dateMinTimestamp: l,
4103
4099
  dateMaxTimestamp: u,
4104
4100
  timeIntervalInfo: o
4105
- }), c = Wr({
4101
+ }), c = kr({
4106
4102
  data: c,
4107
4103
  seriesConfig: r,
4108
4104
  dateMinTimestamp: l,
4109
4105
  dateMaxTimestamp: u
4110
- }), c = await zr({ queryObject: e, data: c, seriesConfig: r, queryConfig: n });
4106
+ }), c = await Qr({ queryObject: e, data: c, seriesConfig: r, queryConfig: n });
4111
4107
  }
4112
4108
  }
4113
4109
  return c;
4114
4110
  }
4115
- function _r(i) {
4111
+ function Gr(i) {
4116
4112
  return Math.floor(Math.min(Math.max(8, Math.sqrt(i ?? 8)), 128) + 0.5);
4117
4113
  }
4118
- function Yr(i) {
4114
+ function Ur(i) {
4119
4115
  const { dateRange: e, numberOfFeatures: t } = i;
4120
4116
  let a, n, { dateMinTimestamp: r, dateMaxTimestamp: s } = e;
4121
4117
  if (r && s) {
4122
4118
  typeof r == "string" && (r = new Date(r).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
4123
- const o = _r(t), c = (s - r) / o, l = It.findIndex((x) => x.threshold > c), u = It[l], { unitMs: d, preferredIntervalSize: f } = u;
4119
+ const o = Gr(t), c = (s - r) / o, l = It.findIndex((C) => C.threshold > c), u = It[l], { unitMs: d, preferredIntervalSize: f } = u;
4124
4120
  ({ unit: a } = u);
4125
4121
  const m = c / d, g = f.findIndex(
4126
- (x) => x >= m
4127
- ), y = f[g], h = g === 0 ? f[0] : f[g - 1];
4128
- n = y - m < m - h ? y : h;
4122
+ (C) => C >= m
4123
+ ), y = f[g], p = g === 0 ? f[0] : f[g - 1];
4124
+ n = y - m < m - p ? y : p;
4129
4125
  }
4130
4126
  return { size: n, unit: a };
4131
4127
  }
4132
- function Kr(i) {
4128
+ function _r(i) {
4133
4129
  const { series: e, isTimeBinningSeries: t, setTimeBinningInfoWhenNotProvided: a } = i;
4134
4130
  let n = !1;
4135
4131
  if (oe(e) && t) {
@@ -4138,7 +4134,7 @@ function Kr(i) {
4138
4134
  }
4139
4135
  return n;
4140
4136
  }
4141
- function Jr(i) {
4137
+ function Yr(i) {
4142
4138
  const e = [];
4143
4139
  for (let t = 1; t <= 6; t += 1) {
4144
4140
  const a = i[`EXPR_${t}`] ?? i[`Expr${t}`] ?? i[`expr${t}`] ?? i[`EXPR${t}`];
@@ -4158,10 +4154,10 @@ function Li(i) {
4158
4154
  let n;
4159
4155
  e.aggregateGeometries && "Extent" in e.aggregateGeometries ? n = e.aggregateGeometries.Extent : { extent: n } = e.aggregateGeometries ?? e.geometry ?? {};
4160
4156
  const r = n?.toJSON();
4161
- let s = xe;
4162
- return r !== void 0 && t !== void 0 && a !== void 0 && a === p.BarAndLineSplitBy && (s = e.attributes[t] !== void 0 ? `${xe}_${e.attributes[t]}` : xe), { featureExtent: r, featureExtentKey: s };
4157
+ let s = Ce;
4158
+ return r !== void 0 && t !== void 0 && a !== void 0 && a === h.BarAndLineSplitBy && (s = e.attributes[t] !== void 0 ? `${Ce}_${e.attributes[t]}` : Ce), { featureExtent: r, featureExtentKey: s };
4163
4159
  }
4164
- function Xr(i) {
4160
+ function Kr(i) {
4165
4161
  const { input: e, x: t, splitByField: a } = i;
4166
4162
  return e.reduce((r, s) => (a !== void 0 && a !== t && !(b.technicalFieldSplitByField in s) && delete s[a], Object.assign(r, s)), {});
4167
4163
  }
@@ -4170,12 +4166,12 @@ function Lt(i) {
4170
4166
  let n = e;
4171
4167
  return e !== void 0 && e.length > 0 && (n = [...zi(
4172
4168
  e,
4173
- (s) => Xr({ input: s, x: t, splitByField: a }),
4169
+ (s) => Kr({ input: s, x: t, splitByField: a }),
4174
4170
  (s) => s[t]
4175
4171
  // the field used to regroup the stats (ex: 'Year' category)
4176
4172
  ).values()]), n;
4177
4173
  }
4178
- function Zr(i, e) {
4174
+ function Jr(i, e) {
4179
4175
  const t = i, a = W(e);
4180
4176
  if (a !== S.PieSeries && a !== S.BoxPlotSeries) {
4181
4177
  const n = se(e), r = e[0].y;
@@ -4195,14 +4191,14 @@ function Zr(i, e) {
4195
4191
  }
4196
4192
  return t;
4197
4193
  }
4198
- function es(i, e) {
4194
+ function Xr(i, e) {
4199
4195
  const t = e, a = se(i), n = a.length === 1;
4200
4196
  return a.forEach((r) => {
4201
4197
  const s = je(n ? void 0 : r), o = t[s[V.FirstQuartile]], c = t[s[V.ThirdQuartile]];
4202
4198
  Number.isFinite(o) && Number.isFinite(c) && c >= o && (t[s[V.IQR]] = c - o);
4203
4199
  }), t;
4204
4200
  }
4205
- function ts(i, e) {
4201
+ function Zr(i, e) {
4206
4202
  const t = e.series[0], a = i;
4207
4203
  if (t.type === S.HeatSeries) {
4208
4204
  const { x: n, y: r } = t;
@@ -4217,7 +4213,7 @@ function Mt(i, e) {
4217
4213
  t && (i[t] === void 0 && (i[t] = i[t.toUpperCase()] !== void 0 ? i[t.toUpperCase()] : i[t.toLowerCase()]), i[t] !== void 0 ? (t !== t.toUpperCase() && delete i[t.toUpperCase()], t !== t.toLowerCase() && delete i[t.toLowerCase()]) : delete i[t]);
4218
4214
  });
4219
4215
  }
4220
- function is(i, e) {
4216
+ function es(i, e) {
4221
4217
  const t = Array.from(
4222
4218
  new Set(
4223
4219
  e.flatMap((a) => a.query?.outStatistics?.map((n) => n.outStatisticFieldName))
@@ -4225,7 +4221,7 @@ function is(i, e) {
4225
4221
  );
4226
4222
  t.push(Y.outStatistics.outStatisticFieldName), Mt(i, t);
4227
4223
  }
4228
- function as(i, e) {
4224
+ function ts(i, e) {
4229
4225
  let t = { ...i };
4230
4226
  return i !== void 0 && e[0] !== void 0 && (t = Object.keys(i).reduce((a, n) => {
4231
4227
  const r = e.find(
@@ -4234,14 +4230,14 @@ function as(i, e) {
4234
4230
  return r !== void 0 && i[n] !== void 0 && r !== n ? a[r] = i[n] : a[n] = i[n], a;
4235
4231
  }, {})), t;
4236
4232
  }
4237
- function ns(i) {
4233
+ function is(i) {
4238
4234
  const { dataItem: e, splitByField: t, y: a } = i;
4239
4235
  if (e !== void 0 && !ee(t) && !ee(a)) {
4240
4236
  const n = e[t], r = `${a}_${n?.toString()}`;
4241
4237
  e[r] = e[a], delete e[a];
4242
4238
  }
4243
4239
  }
4244
- function rs(i, e) {
4240
+ function as(i, e) {
4245
4241
  Object.keys(i).forEach((a) => {
4246
4242
  if (a.startsWith(`${e}_`)) {
4247
4243
  const n = a.slice(e.length + 1);
@@ -4249,46 +4245,46 @@ function rs(i, e) {
4249
4245
  }
4250
4246
  });
4251
4247
  }
4252
- function ss(i, e) {
4248
+ function ns(i, e) {
4253
4249
  let t = 1;
4254
4250
  switch (i) {
4255
- case p.BarAndLineFromFields:
4256
- case p.PieFromFields:
4251
+ case h.BarAndLineFromFields:
4252
+ case h.PieFromFields:
4257
4253
  t = e.series[0].query?.outStatistics?.length ?? 1;
4258
4254
  break;
4259
- case p.BoxPlotMultiFields:
4260
- case p.BoxPlotMultiFieldsAndSplitBy:
4255
+ case h.BoxPlotMultiFields:
4256
+ case h.BoxPlotMultiFieldsAndSplitBy:
4261
4257
  t = e.series[0].y.length;
4262
4258
  break;
4263
- case p.BarAndLineNoAggregation:
4264
- case p.BoxPlotMonoField:
4265
- case p.BoxPlotMonoFieldAndCategory:
4266
- case p.BoxPlotMultiFieldsAndCategory:
4267
- case p.BoxPlotMonoFieldAndSplitBy:
4268
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
4269
- case p.PieFromCategory:
4270
- case p.BarAndLineSplitByNoAggregation:
4271
- case p.PieNoAggregation:
4272
- case p.BarAndLineSplitBy:
4273
- case p.BarAndLineMonoField:
4274
- case p.BarAndLineMultiFields:
4275
- case p.NonSpecific:
4259
+ case h.BarAndLineNoAggregation:
4260
+ case h.BoxPlotMonoField:
4261
+ case h.BoxPlotMonoFieldAndCategory:
4262
+ case h.BoxPlotMultiFieldsAndCategory:
4263
+ case h.BoxPlotMonoFieldAndSplitBy:
4264
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
4265
+ case h.PieFromCategory:
4266
+ case h.BarAndLineSplitByNoAggregation:
4267
+ case h.PieNoAggregation:
4268
+ case h.BarAndLineSplitBy:
4269
+ case h.BarAndLineMonoField:
4270
+ case h.BarAndLineMultiFields:
4271
+ case h.NonSpecific:
4276
4272
  }
4277
4273
  return t;
4278
4274
  }
4279
- function os(i) {
4275
+ function rs(i) {
4280
4276
  const { attributes: e, showMean: t, chartSubType: a } = i;
4281
- t && (a === p.BoxPlotMonoFieldAndSplitBy || a === p.BoxPlotMultiFieldsAndSplitBy || a === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
4277
+ t && (a === h.BoxPlotMonoFieldAndSplitBy || a === h.BoxPlotMultiFieldsAndSplitBy || a === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
4282
4278
  }
4283
- function ls(i) {
4279
+ function ss(i) {
4284
4280
  const { queryResponse: e, chartConfig: t, maxCategoryCount: a } = i, n = E(t.series);
4285
4281
  return a && Number.isFinite(a) && a < e.length && Ni.includes(n) ? e.slice(0, a) : e;
4286
4282
  }
4287
- function cs(i) {
4283
+ function os(i) {
4288
4284
  const { attributes: e, uniqueCategoryList: t, maxCategoryCount: a, x: n, chartSubType: r } = i;
4289
4285
  let s = !1;
4290
4286
  if (n && a && Number.isFinite(a) && !Ni.includes(r))
4291
- if ((r === p.BarAndLineFromFields || r === p.PieFromFields) && Object.keys(e).length > a)
4287
+ if ((r === h.BarAndLineFromFields || r === h.PieFromFields) && Object.keys(e).length > a)
4292
4288
  Object.keys(e).filter((o) => o !== P.EnvelopeAggregate).forEach((o, c) => {
4293
4289
  c >= a && delete e[o];
4294
4290
  });
@@ -4312,33 +4308,33 @@ function Mi(i) {
4312
4308
  showMean: u,
4313
4309
  chartLimits: d,
4314
4310
  fieldList: f
4315
- } = i, { series: m } = t, g = E(m), y = W(m), { x: h } = m[0], x = "y" in m[0] ? m[0].y : void 0, F = m[0].query?.outStatistics ?? [], { originalCategoryValue: C, originalDateValue: B, typeOrDomainFieldName: N, typeOrDomainIdValue: v } = b, T = [];
4311
+ } = i, { series: m } = t, g = E(m), y = W(m), { x: p } = m[0], C = "y" in m[0] ? m[0].y : void 0, F = m[0].query?.outStatistics ?? [], { originalCategoryValue: x, originalDateValue: B, typeOrDomainFieldName: N, typeOrDomainIdValue: v } = b, T = [];
4316
4312
  let w = 0;
4317
- const L = /* @__PURE__ */ new Set(), { maxCategoryCount: D } = Re(d), R = ls({ queryResponse: e, chartConfig: t, maxCategoryCount: D });
4313
+ const L = /* @__PURE__ */ new Set(), { maxCategoryCount: D } = Re(d), R = ss({ queryResponse: e, chartConfig: t, maxCategoryCount: D });
4318
4314
  for (let M = 0; R[M] && M < R.length && !(l !== void 0 && w >= l); M += 1) {
4319
- w += ss(g, t);
4315
+ w += ns(g, t);
4320
4316
  const q = R[M];
4321
4317
  let A = { ...q.attributes };
4322
- if (cs({ attributes: A, uniqueCategoryList: L, maxCategoryCount: D, x: h, chartSubType: g }))
4318
+ if (os({ attributes: A, uniqueCategoryList: L, maxCategoryCount: D, x: p, chartSubType: g }))
4323
4319
  continue;
4324
- is(A, m), g === p.PieFromFields || g === p.BarAndLineFromFields ? A = as(A, F) : typeof x == "string" && g === p.BarAndLineSplitByNoAggregation ? ns({ dataItem: A, splitByField: n, y: x }) : x && (g === p.BoxPlotMonoField || g === p.BoxPlotMonoFieldAndCategory || g === p.BoxPlotMonoFieldAndSplitBy || g === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && rs(
4320
+ es(A, m), g === h.PieFromFields || g === h.BarAndLineFromFields ? A = ts(A, F) : typeof C == "string" && g === h.BarAndLineSplitByNoAggregation ? is({ dataItem: A, splitByField: n, y: C }) : C && (g === h.BoxPlotMonoField || g === h.BoxPlotMonoFieldAndCategory || g === h.BoxPlotMonoFieldAndSplitBy || g === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && as(
4325
4321
  A,
4326
- typeof x == "string" ? x : x[0]
4327
- ), os({ attributes: A, showMean: u, chartSubType: g });
4328
- let O = A[h];
4329
- O === null && m[0]?.query?.fetchNullValues === !0 && g !== p.PieFromFields && (A[C] = null, O = b.nullValue), s && typeof O == "string" ? O = new Date(O).valueOf() : o && (O = Jr(A));
4322
+ typeof C == "string" ? C : C[0]
4323
+ ), rs({ attributes: A, showMean: u, chartSubType: g });
4324
+ let O = A[p];
4325
+ O === null && m[0]?.query?.fetchNullValues === !0 && g !== h.PieFromFields && (A[x] = null, O = b.nullValue), s && typeof O == "string" ? O = new Date(O).valueOf() : o && (O = Yr(A));
4330
4326
  const { outStatisticFieldName: H } = Y.outStatistics ?? {}, { featureExtent: X, featureExtentKey: I } = Li({ feature: q, splitByField: n, chartSubType: g });
4331
- if (X && (A[I] = X), g === p.BarAndLineSplitBy && H !== void 0) {
4327
+ if (X && (A[I] = X), g === h.BarAndLineSplitBy && H !== void 0) {
4332
4328
  const ue = A[n], te = a?.get(ue);
4333
4329
  te !== void 0 && (ue === n && (A[b.technicalFieldSplitByField] = A[te]), A[te] = A[H]), delete A[H];
4334
- } else (g === p.PieNoAggregation || g === p.BarAndLineNoAggregation || g === p.BarAndLineSplitByNoAggregation) && (s ? A[B] = O : O !== b.nullValue && (A[C] = O), $a({ isXAxis: !0, chartType: y, valueFormat: t.axes?.[0]?.valueFormat }) && (A[b.xAxisField] = `${O}-${M}`), A[Y.uniqueIdsName] = A[r]);
4335
- const Z = pa({
4330
+ } else (g === h.PieNoAggregation || g === h.BarAndLineNoAggregation || g === h.BarAndLineSplitByNoAggregation) && (s ? A[B] = O : O !== b.nullValue && (A[x] = O), Ia({ isXAxis: !0, chartType: y, valueFormat: t.axes?.[0]?.valueFormat }) && (A[b.xAxisField] = `${O}-${M}`), A[Y.uniqueIdsName] = A[r]);
4331
+ const Z = ha({
4336
4332
  subtypeInfo: c,
4337
4333
  fieldList: f,
4338
- fieldName: h,
4334
+ fieldName: p,
4339
4335
  fieldValueToMatch: O
4340
4336
  });
4341
- Z !== void 0 && Z !== O && g !== p.PieFromFields && (A[C] = Z, A[N] = h, A[v] = O), y === S.BoxPlotSeries && (A = es(m, A)), y === S.PieSeries && typeof O == "number" && (A[C] === void 0 && (A[C] = A[h]), O = `${O}`), O !== void 0 && (A[C] === void 0 && (A[C] = A[h]), A[h] = Z ?? O, A[h] === null && (A[h] = b.nullValue), A[b.xAxisField] === void 0 && (A[b.xAxisField] = A[v] ?? A[h])), A = ts(A, t), T.push(A);
4337
+ Z !== void 0 && Z !== O && g !== h.PieFromFields && (A[x] = Z, A[N] = p, A[v] = O), y === S.BoxPlotSeries && (A = Xr(m, A)), y === S.PieSeries && typeof O == "number" && (A[x] === void 0 && (A[x] = A[p]), O = `${O}`), O !== void 0 && (A[x] === void 0 && (A[x] = A[p]), A[p] = Z ?? O, A[p] === null && (A[p] = b.nullValue), A[b.xAxisField] === void 0 && (A[b.xAxisField] = A[v] ?? A[p])), A = Zr(A, t), T.push(A);
4342
4338
  }
4343
4339
  return T;
4344
4340
  }
@@ -4356,12 +4352,12 @@ async function ut(i) {
4356
4352
  usePopupTemplateFieldsInfo: u
4357
4353
  } = i, { series: d } = a, f = E(d);
4358
4354
  let m = [];
4359
- const g = f === p.BarAndLineSplitBy || f === p.BarAndLineSplitByNoAggregation ? K(d[0].query?.where) : "", y = await ye({
4355
+ const g = f === h.BarAndLineSplitBy || f === h.BarAndLineSplitByNoAggregation ? K(d[0].query?.where) : "", y = await ye({
4360
4356
  queryObject: e,
4361
4357
  queryConfig: t,
4362
4358
  featureCount: s,
4363
4359
  abortKey: r
4364
- }), h = await Ne(e, u), F = z(e).objectIdField, C = ya(h), { x: B } = d[0], N = C.includes(B), v = ni(e);
4360
+ }), p = await Te(e, u), F = z(e).objectIdField, x = pa(p), { x: B } = d[0], N = x.includes(B), v = ni(e);
4365
4361
  return m = Mi({
4366
4362
  queryResponse: y,
4367
4363
  chartConfig: a,
@@ -4371,11 +4367,11 @@ async function ut(i) {
4371
4367
  isDateField: N,
4372
4368
  isTimeBinningSeries: o,
4373
4369
  subtypeInfo: v,
4374
- fieldList: h,
4370
+ fieldList: p,
4375
4371
  resultLimit: t.num,
4376
4372
  showMean: c,
4377
4373
  chartLimits: l
4378
- }), f !== p.BarAndLineSplitByNoAggregation && f !== p.BarAndLineFromFields && (g !== "" && (m = Lt({ data: m, x: B, splitByField: g })), m = Zr(
4374
+ }), f !== h.BarAndLineSplitByNoAggregation && f !== h.BarAndLineFromFields && (g !== "" && (m = Lt({ data: m, x: B, splitByField: g })), m = Jr(
4379
4375
  m,
4380
4376
  d
4381
4377
  )), m;
@@ -4383,10 +4379,10 @@ async function ut(i) {
4383
4379
  async function wi(i) {
4384
4380
  const { chartConfig: e, queryObject: t, queryConfig: a, numberMaxOfFeaturesToFetch: n, behaviorAfterLimit: r, isGaugeByFeature: s } = i, { series: o } = e, c = E(o), { x: l } = o[0], u = o.length;
4385
4381
  let d, f;
4386
- if (c === p.BoxPlotMonoField || c === p.BoxPlotMonoFieldAndSplitBy ? (f = u, d = f) : c === p.BoxPlotMultiFields || c === p.BoxPlotMultiFieldsAndSplitBy ? (f = e.series[0].y.length, d = f) : c === p.PieFromFields || c === p.BarAndLineFromFields ? (f = o[0].query?.outStatistics?.filter(
4382
+ if (c === h.BoxPlotMonoField || c === h.BoxPlotMonoFieldAndSplitBy ? (f = u, d = f) : c === h.BoxPlotMultiFields || c === h.BoxPlotMultiFieldsAndSplitBy ? (f = e.series[0].y.length, d = f) : c === h.PieFromFields || c === h.BarAndLineFromFields ? (f = o[0].query?.outStatistics?.filter(
4387
4383
  (m) => m.statisticType !== P.EnvelopeAggregate
4388
- ).length ?? 0, d = f) : d = await ga({ queryObject: t, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
4389
- const m = c === p.BoxPlotMonoField || c === p.BoxPlotMonoFieldAndCategory || c === p.BoxPlotMonoFieldAndSplitBy;
4384
+ ).length ?? 0, d = f) : d = await ya({ queryObject: t, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
4385
+ const m = c === h.BoxPlotMonoField || c === h.BoxPlotMonoFieldAndCategory || c === h.BoxPlotMonoFieldAndSplitBy;
4390
4386
  f = Ft(c) && !m ? d * u : d;
4391
4387
  }
4392
4388
  return r === $e.RenderUpToTheLimit && f !== void 0 && n !== void 0 && n < f && (f = n, d = Math.ceil(f / u)), { categoryOrDateCount: d, elementCount: f };
@@ -4404,9 +4400,9 @@ function Ke(i) {
4404
4400
  else if (l !== void 0 && e !== void 0 && e.length > 1) {
4405
4401
  const { orderBy: u } = l;
4406
4402
  let { sortingField: d } = l;
4407
- const f = t.orderOptions?.data?.orderType === be.Category, m = l.preferLabel !== !1, g = s === p.BarAndLineFromFields || s === p.PieFromFields || s === p.BoxPlotMultiFields || s === p.BoxPlotMultiFieldsAndSplitBy, y = g || o === S.PieSeries, h = s === p.PieNoAggregation || s === p.BarAndLineNoAggregation || s === p.BarAndLineSplitByNoAggregation, x = g ? !1 : e?.length > 0 && e.some((F) => Object.hasOwn(F, b.typeOrDomainIdValue));
4408
- if (f && (!m || (o === S.LineSeries || o === S.RadarSeries) && c === S.NumberAxisFormat) && (x ? d = b.typeOrDomainIdValue : y && (d = b.originalCategoryValue)), Array.isArray(u))
4409
- za({
4403
+ const f = t.orderOptions?.data?.orderType === xe.Category, m = l.preferLabel !== !1, g = s === h.BarAndLineFromFields || s === h.PieFromFields || s === h.BoxPlotMultiFields || s === h.BoxPlotMultiFieldsAndSplitBy, y = g || o === S.PieSeries, p = s === h.PieNoAggregation || s === h.BarAndLineNoAggregation || s === h.BarAndLineSplitByNoAggregation, C = g ? !1 : e?.length > 0 && e.some((F) => Object.hasOwn(F, b.typeOrDomainIdValue));
4404
+ if (f && (!m || (o === S.LineSeries || o === S.RadarSeries) && c === S.NumberAxisFormat) && (C ? d = b.typeOrDomainIdValue : y && (d = b.originalCategoryValue)), Array.isArray(u))
4405
+ Ha({
4410
4406
  arrayToSort: e,
4411
4407
  orderBy: u,
4412
4408
  sortingField: d,
@@ -4421,7 +4417,7 @@ function Ke(i) {
4421
4417
  orderBy: u,
4422
4418
  sortingField: d,
4423
4419
  forceAscendingOrder: F,
4424
- isNonAggregated: h,
4420
+ isNonAggregated: p,
4425
4421
  sortByCategory: f,
4426
4422
  preferLabel: m,
4427
4423
  isPieOrByFieldsChart: y
@@ -4433,9 +4429,9 @@ function Ke(i) {
4433
4429
  async function Bt(i) {
4434
4430
  const { chartConfig: e, queryConfig: t, fetchFullBoxPlotData: a, options: n, queryObject: r, abortKey: s, fieldList: o } = i, c = "showMean" in e && typeof e.showMean == "boolean" ? e.showMean : !1, { chartLimits: l, usePopupTemplateFieldsInfo: u } = n ?? {}, d = n?.replaceNoValueCategoryWithZero ?? b.options.replaceNoValueCategoryWithZero, { behaviorAfterLimit: f } = l ?? {}, m = { valid: !0 };
4435
4431
  let g, y = !1;
4436
- const h = e.series, x = h[0], F = E(e.series);
4437
- if (x !== void 0 && r !== void 0) {
4438
- const C = W(h), { uniqueQuery: B, mapToStatField: N } = await ct({
4432
+ const p = e.series, C = p[0], F = E(e.series);
4433
+ if (C !== void 0 && r !== void 0) {
4434
+ const x = W(p), { uniqueQuery: B, mapToStatField: N } = await ct({
4439
4435
  chartConfig: e,
4440
4436
  queryObject: r,
4441
4437
  queryConfig: t,
@@ -4452,8 +4448,8 @@ async function Bt(i) {
4452
4448
  const w = !Number.isFinite(T);
4453
4449
  let L = w || Se({
4454
4450
  count: T ?? 0,
4455
- seriesCount: h.length,
4456
- chartType: C,
4451
+ seriesCount: p.length,
4452
+ chartType: x,
4457
4453
  chartLimits: l
4458
4454
  });
4459
4455
  if (L && (g = await ut({
@@ -4467,7 +4463,7 @@ async function Bt(i) {
4467
4463
  chartLimits: l,
4468
4464
  usePopupTemplateFieldsInfo: u,
4469
4465
  abortKey: s
4470
- }), C === S.BoxPlotSeries && (m.data = await wn({
4466
+ }), x === S.BoxPlotSeries && (m.data = await Ln({
4471
4467
  data: g,
4472
4468
  queryObject: r,
4473
4469
  fetchFullBoxPlotData: a,
@@ -4476,27 +4472,27 @@ async function Bt(i) {
4476
4472
  elementCount: T,
4477
4473
  chartLimits: l,
4478
4474
  abortKey: s
4479
- }), l?.maxBoxPlotOutlierLimit !== void 0 && (L = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !L)), w && (v = g.length, T = Ft(F) ? v * h.length : v, L = Se({
4475
+ }), l?.maxBoxPlotOutlierLimit !== void 0 && (L = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !L)), w && (v = g.length, T = Ft(F) ? v * p.length : v, L = Se({
4480
4476
  count: T,
4481
- seriesCount: h.length,
4482
- chartType: C,
4477
+ seriesCount: p.length,
4478
+ chartType: x,
4483
4479
  chartLimits: l
4484
4480
  })), L)) {
4485
- if (C === S.PieSeries) {
4486
- F === p.PieFromFields && (g = st({
4481
+ if (x === S.PieSeries) {
4482
+ F === h.PieFromFields && (g = st({
4487
4483
  dataToConvert: g[0],
4488
4484
  x: ne,
4489
4485
  y: he,
4490
4486
  fieldList: o
4491
4487
  }));
4492
4488
  let D = "";
4493
- F === p.PieFromFields ? D = he : "y" in x && typeof x.y == "string" && (D = x.y), cn(g, D) ? m.data = { dataItems: g } : Sn(m, $.PieChartMixOfNegativePositiveSlices);
4494
- } else if ((C === S.RadarSeries || C === S.BarSeries || C === S.LineSeries || C === S.ComboLineAndBarSeries) && (F === p.BarAndLineFromFields && "y" in x && typeof x.y == "string" ? g = st({
4489
+ F === h.PieFromFields ? D = he : "y" in C && typeof C.y == "string" && (D = C.y), on(g, D) ? m.data = { dataItems: g } : pn(m, $.PieChartMixOfNegativePositiveSlices);
4490
+ } else if ((x === S.RadarSeries || x === S.BarSeries || x === S.LineSeries || x === S.ComboLineAndBarSeries) && (F === h.BarAndLineFromFields && "y" in C && typeof C.y == "string" ? g = st({
4495
4491
  dataToConvert: g[0],
4496
- x: x.x,
4497
- y: x.y,
4492
+ x: C.x,
4493
+ y: C.y,
4498
4494
  fieldList: o
4499
- }) : g = await wr({
4495
+ }) : g = await Lr({
4500
4496
  queryObject: r,
4501
4497
  seriesData: g,
4502
4498
  chartConfig: e,
@@ -4504,26 +4500,26 @@ async function Bt(i) {
4504
4500
  categoryOrDateCount: v,
4505
4501
  behaviorAfterLimit: f,
4506
4502
  abortKey: s
4507
- }), T = Ft(F) ? g.length * h.length : g.length, L = Se({
4503
+ }), T = Ft(F) ? g.length * p.length : g.length, L = Se({
4508
4504
  count: T,
4509
- seriesCount: h.length,
4510
- chartType: C,
4505
+ seriesCount: p.length,
4506
+ chartType: x,
4511
4507
  chartLimits: l
4512
4508
  }), L)) {
4513
- d && (g = Dr(g, e)), Ke({ arrayToSort: g, chartConfig: e, fieldList: o }), console.log("🚀CT: ~ fetchFinishedGenericChartData / data after:", Me(g));
4509
+ d && (g = Mr(g, e)), Ke({ arrayToSort: g, chartConfig: e, fieldList: o }), console.log("🚀CT: ~ fetchFinishedGenericChartData / data after:", Fe(g));
4514
4510
  let D = {};
4515
- if (oe(x)) {
4516
- const { size: R, unit: M } = x.temporalBinning ?? {};
4511
+ if (oe(C)) {
4512
+ const { size: R, unit: M } = C.temporalBinning ?? {};
4517
4513
  R !== void 0 && M !== void 0 && (D = { size: R, unit: M });
4518
4514
  }
4519
4515
  m.data = { dataItems: g, timeIntervalInfo: D };
4520
4516
  }
4521
4517
  }
4522
- L || ot({ dataInfo: m, chartType: C, subError: { outlierLimit: y } }), m.count = T;
4518
+ L || ot({ dataInfo: m, chartType: x, subError: { outlierLimit: y } }), m.count = T;
4523
4519
  }
4524
4520
  return m;
4525
4521
  }
4526
- function us(i) {
4522
+ function ls(i) {
4527
4523
  let e;
4528
4524
  const { start: t, end: a } = ti({ field: "", unit: i, addIntervalStatement: !1 });
4529
4525
  return a && (e = Array.from({ length: a + (t === 0 ? 1 : 0) }, (n, r) => (r + (t ?? 1)).toString())), e;
@@ -4541,9 +4537,9 @@ async function Di(i) {
4541
4537
  let l;
4542
4538
  const u = e.series[0], { nullPolicy: d } = "nullPolicy" in e ? e : {};
4543
4539
  if (u.type === S.HeatSeries) {
4544
- const { x: f, y: m, query: g, yTemporalBinning: y } = u, h = g?.outStatistics?.[0]?.outStatisticFieldName ?? "";
4540
+ const { x: f, y: m, query: g, yTemporalBinning: y } = u, p = g?.outStatistics?.[0]?.outStatisticFieldName ?? "";
4545
4541
  if (mi(e)) {
4546
- const x = await fa({
4542
+ const C = await ma({
4547
4543
  chartConfig: e,
4548
4544
  queryObject: a,
4549
4545
  queryConfig: t,
@@ -4552,16 +4548,16 @@ async function Di(i) {
4552
4548
  abortKey: o
4553
4549
  });
4554
4550
  if (!Se({
4555
- count: x?.length ?? 0,
4551
+ count: C?.length ?? 0,
4556
4552
  seriesCount: 1,
4557
4553
  chartType: S.HeatSeries,
4558
4554
  chartLimits: s?.chartLimits
4559
4555
  }))
4560
4556
  ot({ dataInfo: c, chartType: S.HeatSeries });
4561
- else if (typeof x?.[0] == "object") {
4562
- const F = await Ne(a, s?.usePopupTemplateFieldsInfo), C = ni(a);
4557
+ else if (typeof C?.[0] == "object") {
4558
+ const F = await Te(a, s?.usePopupTemplateFieldsInfo), x = ni(a);
4563
4559
  l = Mi({
4564
- queryResponse: x,
4560
+ queryResponse: C,
4565
4561
  chartConfig: e,
4566
4562
  splitByField: "",
4567
4563
  fieldOID: z(a).objectIdField,
@@ -4569,7 +4565,7 @@ async function Di(i) {
4569
4565
  isTimeBinningSeries: !1,
4570
4566
  chartLimits: s?.chartLimits,
4571
4567
  resultLimit: t.num,
4572
- subtypeInfo: C,
4568
+ subtypeInfo: x,
4573
4569
  fieldList: F
4574
4570
  });
4575
4571
  const B = await yt({ queryObject: a, queryConfig: t, category: f, abortKey: o }), N = await yt({ queryObject: a, queryConfig: t, category: m, abortKey: o });
@@ -4592,21 +4588,21 @@ async function Di(i) {
4592
4588
  }
4593
4589
  }
4594
4590
  } else {
4595
- const x = await ma({
4591
+ const C = await ga({
4596
4592
  chartConfig: e,
4597
4593
  queryObject: a,
4598
4594
  queryConfig: t,
4599
4595
  errorStrings: r
4600
- }), F = y ? us(y.unit) : await yt({ queryObject: a, queryConfig: t, category: m, abortKey: o });
4601
- let C = 0;
4602
- l = x?.features.flatMap((B) => {
4596
+ }), F = y ? ls(y.unit) : await yt({ queryObject: a, queryConfig: t, category: m, abortKey: o });
4597
+ let x = 0;
4598
+ l = C?.features.flatMap((B) => {
4603
4599
  const N = [], { attributes: v, stackedAttributes: T } = B, w = [];
4604
4600
  return T?.forEach((L) => {
4605
4601
  const D = `${L[m]}`;
4606
4602
  w.push(D), N.push({
4607
4603
  [k.xField]: `${v.lowerBoundary}`,
4608
4604
  [k.yField]: D,
4609
- [k.valueField]: L[h]
4605
+ [k.valueField]: L[p]
4610
4606
  });
4611
4607
  }), n && F && w.length !== F?.length && F.filter((D) => !w.includes(D.toString())).forEach((D) => {
4612
4608
  N.push({
@@ -4614,9 +4610,9 @@ async function Di(i) {
4614
4610
  [k.yField]: D,
4615
4611
  [k.valueField]: d === re.Zero ? 0 : null
4616
4612
  });
4617
- }), C += N.length, N;
4613
+ }), x += N.length, N;
4618
4614
  }), Se({
4619
- count: C,
4615
+ count: x,
4620
4616
  seriesCount: 1,
4621
4617
  chartType: S.HeatSeries,
4622
4618
  chartLimits: s?.chartLimits
@@ -4625,7 +4621,7 @@ async function Di(i) {
4625
4621
  }
4626
4622
  return l && (c.data = { dataItems: l }), c;
4627
4623
  }
4628
- function ds(i) {
4624
+ function cs(i) {
4629
4625
  const { chartConfig: e, options: t, data: a } = i, n = e.series;
4630
4626
  let r = a;
4631
4627
  const s = fi(e, t?.chartLimits);
@@ -4656,21 +4652,21 @@ async function wt(i) {
4656
4652
  const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, binnedServerData: r, options: s } = i, { chartLimits: o, usePopupTemplateFieldsInfo: c } = s ?? {}, { behaviorAfterLimit: l } = o ?? {}, u = e.series, d = u[0], { x: f } = d, m = K(d.query?.where), g = { valid: !0 };
4657
4653
  let y;
4658
4654
  if (oe(d)) {
4659
- const { temporalBinning: h } = d;
4660
- if (a && h) {
4661
- const { unit: x, size: F } = h;
4662
- let C = 1, B = { unit: x, size: F }, N = !1;
4663
- const v = Kr({
4655
+ const { temporalBinning: p } = d;
4656
+ if (a && p) {
4657
+ const { unit: C, size: F } = p;
4658
+ let x = 1, B = { unit: C, size: F }, N = !1;
4659
+ const v = _r({
4664
4660
  series: d,
4665
4661
  isTimeBinningSeries: !0,
4666
4662
  setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided
4667
4663
  });
4668
4664
  let T = r?.timeBinningStats;
4669
- !T && (!Qe(a) || v) && (T = await kr({ queryObject: a, queryConfig: t, x: f })), v && T && T.numberOfFeatures > 0 && T.dateRange.dateMaxTimestamp !== void 0 && T.dateRange.dateMinTimestamp !== void 0 && (B = Yr(T), (await Ne(a)).find((q) => q.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
4665
+ !T && (!Qe(a) || v) && (T = await $r({ queryObject: a, queryConfig: t, x: f })), v && T && T.numberOfFeatures > 0 && T.dateRange.dateMaxTimestamp !== void 0 && T.dateRange.dateMinTimestamp !== void 0 && (B = Ur(T), (await Te(a)).find((q) => q.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
4670
4666
  j.Hour,
4671
4667
  j.Minute,
4672
4668
  j.Second
4673
- ].includes(B.unit) && (B.unit = j.Day, B.size = 1), h.size = B.size, h.unit = B.unit);
4669
+ ].includes(B.unit) && (B.unit = j.Day, B.size = 1), p.size = B.size, p.unit = B.unit);
4674
4670
  const { uniqueQuery: w, mapToStatField: L } = await ct({
4675
4671
  chartConfig: e,
4676
4672
  queryConfig: t,
@@ -4679,7 +4675,7 @@ async function wt(i) {
4679
4675
  options: s
4680
4676
  });
4681
4677
  let D = Se({
4682
- count: C ?? 0,
4678
+ count: x ?? 0,
4683
4679
  seriesCount: u.length,
4684
4680
  chartType: S.LineSeries,
4685
4681
  chartLimits: o
@@ -4691,16 +4687,16 @@ async function wt(i) {
4691
4687
  dateField: f,
4692
4688
  splitByField: m,
4693
4689
  queryConfig: w,
4694
- temporalBinning: h
4690
+ temporalBinning: p
4695
4691
  }), M = "y" in d && typeof d.y == "string" ? d.y : void 0;
4696
- if (y = await Gr({
4692
+ if (y = await Hr({
4697
4693
  chartConfig: e,
4698
4694
  queryResults: R,
4699
4695
  mapToStatField: L,
4700
4696
  splitByField: m,
4701
4697
  x: f,
4702
4698
  y: M,
4703
- nullPolicy: h.nullPolicy,
4699
+ nullPolicy: p.nullPolicy,
4704
4700
  queryObject: a
4705
4701
  }), !Se({
4706
4702
  count: y.length,
@@ -4724,17 +4720,17 @@ async function wt(i) {
4724
4720
  dateMaxTimestamp: T.dateRange.dateMaxTimestamp,
4725
4721
  timeIntervalInfo: B
4726
4722
  });
4727
- C = R * u.length, C = Ti(C, B.unit), y = r?.data ?? await ut({
4723
+ x = R * u.length, x = Ti(x, B.unit), y = r?.data ?? await ut({
4728
4724
  queryObject: a,
4729
4725
  uniqueQuery: w,
4730
4726
  chartConfig: e,
4731
4727
  mapToStatField: L,
4732
- elementCount: C,
4728
+ elementCount: x,
4733
4729
  chartLimits: o,
4734
4730
  isTimeBinningSeries: !0,
4735
4731
  usePopupTemplateFieldsInfo: c,
4736
4732
  abortKey: n
4737
- }), g.binnedServerData = { data: Me(y), timeBinningStats: T }, y = await Ur({
4733
+ }), g.binnedServerData = { data: Fe(y), timeBinningStats: T }, y = await zr({
4738
4734
  queryObject: a,
4739
4735
  queryConfig: t,
4740
4736
  queryResults: y,
@@ -4744,17 +4740,17 @@ async function wt(i) {
4744
4740
  timeIntervalInfo: B
4745
4741
  });
4746
4742
  }
4747
- da(a) && y && y?.length === Or && (N = !0), l === $e.RenderUpToTheLimit && y && (y = ds({ chartConfig: e, options: s, data: y }));
4743
+ fa(a) && y && y?.length === wr && (N = !0), l === $e.RenderUpToTheLimit && y && (y = cs({ chartConfig: e, options: s, data: y }));
4748
4744
  }
4749
- D || (g.valid = !1, g.invalidType = $.LineChartExceedsLimit), y && y.length > 0 && (y[y.length - 1][b.lastTemporalBin] = !0), g.data = { dataItems: y, timeIntervalInfo: B, serverLimitReached: N }, g.count = C;
4745
+ D || (g.valid = !1, g.invalidType = $.LineChartExceedsLimit), y && y.length > 0 && (y[y.length - 1][b.lastTemporalBin] = !0), g.data = { dataItems: y, timeIntervalInfo: B, serverLimitReached: N }, g.count = x;
4750
4746
  }
4751
4747
  }
4752
4748
  return g;
4753
4749
  }
4754
- async function fs(i) {
4750
+ async function us(i) {
4755
4751
  const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, options: r } = i, s = He(e), { setTimeBinningInfoWhenNotProvided: o, chartLimits: c, usePopupTemplateFieldsInfo: l } = r ?? {}, u = { valid: !0 };
4756
4752
  if (a !== void 0) {
4757
- const d = e.series, f = ve({
4753
+ const d = e.series, f = Ne({
4758
4754
  seriesConfig: d[0],
4759
4755
  xAxisValueFormatType: pe(e),
4760
4756
  setTimeBinningInfoWhenNotProvided: o
@@ -4782,7 +4778,7 @@ async function fs(i) {
4782
4778
  }
4783
4779
  return u;
4784
4780
  }
4785
- async function ms(i) {
4781
+ async function ds(i) {
4786
4782
  const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, options: r, errorStrings: s } = i, o = "showMean" in e ? e.showMean : !1, c = await Pt({
4787
4783
  queryObject: a,
4788
4784
  chartConfig: e,
@@ -4796,13 +4792,13 @@ async function ms(i) {
4796
4792
  function Oi(i) {
4797
4793
  return i?.[nt.defaultGroupOfSlicesId] === !0;
4798
4794
  }
4799
- function tl(i, e) {
4795
+ function Xo(i, e) {
4800
4796
  const t = i.filter(
4801
4797
  (a) => !Oi(a)
4802
4798
  );
4803
- return !Pe(t, e);
4799
+ return !Le(t, e);
4804
4800
  }
4805
- function gs(i, e) {
4801
+ function fs(i, e) {
4806
4802
  let t = i.reduce((a, n) => {
4807
4803
  if (n[nt.defaultGroupOfSlicesId] === !0) {
4808
4804
  const r = n[b.pieChart.technicalFieldGroupedSlices];
@@ -4821,37 +4817,37 @@ function gs(i, e) {
4821
4817
  seriesConfig: e.series
4822
4818
  })?.dataItems ?? [], t;
4823
4819
  }
4824
- function ys(i) {
4820
+ function ms(i) {
4825
4821
  const { stringToTruncate: e, characterLimit: t, ellipsis: a = b.chartEllipsis } = i;
4826
4822
  let n = e;
4827
4823
  return typeof t == "number" && Number.isFinite(t) && t > 0 && t < e.length && (n = e.slice(0, t), n = `${n}${a}`), n;
4828
4824
  }
4829
- function il(i, e = ":") {
4825
+ function Zo(i, e = ":") {
4830
4826
  return i ? `‏${e}` : `‎${e}`;
4831
4827
  }
4832
- function al(i) {
4828
+ function el(i) {
4833
4829
  return (t) => {
4834
4830
  let a = typeof t != "string" ? t?.toString() ?? "" : t;
4835
- return !ee(a) && a !== b.htmlEmptyContent && (a = ys({
4831
+ return !ee(a) && a !== b.htmlEmptyContent && (a = ms({
4836
4832
  stringToTruncate: a,
4837
4833
  characterLimit: i
4838
4834
  })), a;
4839
4835
  };
4840
4836
  }
4841
- function ps(i) {
4837
+ function gs(i) {
4842
4838
  const e = /[[]/gu, t = /[\]]/gu, a = /[{]/gu, n = /[}]/gu, r = /[']/gu;
4843
4839
  return i = i.replace(e, "[["), i = i.replace(t, "]]"), i = i.replace(a, "{{"), i = i.replace(n, "}}"), i = i.replace(r, "''"), i;
4844
4840
  }
4845
- function hs(i, e) {
4841
+ function ys(i, e) {
4846
4842
  let t = "";
4847
4843
  return i !== void 0 && (t = `${e === "amChartsV5" ? "fontStyle" : "font-style"}:${i};`), t;
4848
4844
  }
4849
- function Ss(i, e) {
4845
+ function ps(i, e) {
4850
4846
  let t = "";
4851
4847
  return i === !0 && (t = `${e === "amChartsV5" ? "letterSpacing" : "letter-spacing"}:1px;`), t;
4852
4848
  }
4853
- function nl(i) {
4854
- const { textSymbol: e, placeholderString: t, format: a, axisLabelsBehavior: n, defaults: r } = i, s = hs(e?.font?.style, a), o = Ss(e?.kerning, a);
4849
+ function tl(i) {
4850
+ const { textSymbol: e, placeholderString: t, format: a, axisLabelsBehavior: n, defaults: r } = i, s = ys(e?.font?.style, a), o = ps(e?.kerning, a);
4855
4851
  let c = t ?? e?.text ?? "";
4856
4852
  if (a === "html") {
4857
4853
  let { wrap: l, maxWidth: u } = r ?? {};
@@ -4859,40 +4855,40 @@ function nl(i) {
4859
4855
  const d = l === !0 && Number.isFinite(u) ? `max-width: ${u}px; word-break: break-word;` : "";
4860
4856
  c = `<p style="margin:0;${s}${o}${d}">${c}</p>`;
4861
4857
  } else
4862
- c = ps(c), (s !== "" || o !== "") && (c = `[${s}${o}]${c}[/]`);
4858
+ c = gs(c), (s !== "" || o !== "") && (c = `[${s}${o}]${c}[/]`);
4863
4859
  return c;
4864
4860
  }
4865
- function Fs(i) {
4861
+ function hs(i) {
4866
4862
  return i ? i.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
4867
4863
  }
4868
4864
  const Ee = {
4869
4865
  ChartRenderer: 1,
4870
4866
  LayerRenderer: 2
4871
4867
  };
4872
- function rl(i) {
4868
+ function il(i) {
4873
4869
  const { chartConfig: e, queryObject: t } = i;
4874
4870
  let a = !1;
4875
4871
  if (e.chartRenderer)
4876
4872
  a = !0;
4877
4873
  else {
4878
- const { series: n } = e, r = W(n), s = E(n), o = we(e), c = ve({
4874
+ const { series: n } = e, r = W(n), s = E(n), o = we(e), c = Ne({
4879
4875
  seriesConfig: o
4880
4876
  }), u = z(t)?.renderer;
4881
4877
  switch (u?.type) {
4882
4878
  case ie.Simple:
4883
- a = r === S.HistogramSeries || r === S.ScatterSeries || s === p.BarAndLineMonoField || s === p.BoxPlotMonoField || s === p.BoxPlotMultiFields || s === p.BoxPlotMonoFieldAndCategory || s === p.BarAndLineNoAggregation && n.length === 1 && !c;
4879
+ a = r === S.HistogramSeries || r === S.ScatterSeries || s === h.BarAndLineMonoField || s === h.BoxPlotMonoField || s === h.BoxPlotMultiFields || s === h.BoxPlotMonoFieldAndCategory || s === h.BarAndLineNoAggregation && n.length === 1 && !c;
4884
4880
  break;
4885
4881
  case ie.UniqueValue:
4886
4882
  {
4887
4883
  const f = u?.field, m = K(o.query?.where), { x: g } = o;
4888
- a = (s === p.BoxPlotMonoFieldAndSplitBy || s === p.BoxPlotMultiFieldsAndSplitBy || s === p.BoxPlotMonoFieldAndCategoryAndSplitBy || s === p.BarAndLineSplitByNoAggregation || s === p.BarAndLineSplitBy) && f === m || (s === p.BoxPlotMonoFieldAndCategory || s === p.PieFromCategory || s === p.BarAndLineMonoField) && f === g || s === p.BarAndLineNoAggregation || s === p.PieNoAggregation || r === S.ScatterSeries;
4884
+ a = (s === h.BoxPlotMonoFieldAndSplitBy || s === h.BoxPlotMultiFieldsAndSplitBy || s === h.BoxPlotMonoFieldAndCategoryAndSplitBy || s === h.BarAndLineSplitByNoAggregation || s === h.BarAndLineSplitBy) && f === m || (s === h.BoxPlotMonoFieldAndCategory || s === h.PieFromCategory || s === h.BarAndLineMonoField) && f === g || s === h.BarAndLineNoAggregation || s === h.PieNoAggregation || r === S.ScatterSeries;
4889
4885
  }
4890
4886
  break;
4891
4887
  case ie.PieChart:
4892
- a = s === p.PieFromFields || s === p.BarAndLineFromFields || s === p.BarAndLineMultiFields || s === p.BarAndLineMonoField || s === p.BoxPlotMonoField || s === p.BoxPlotMultiFields || s === p.BoxPlotMonoFieldAndCategory || s === p.BoxPlotMultiFieldsAndCategory;
4888
+ a = s === h.PieFromFields || s === h.BarAndLineFromFields || s === h.BarAndLineMultiFields || s === h.BarAndLineMonoField || s === h.BoxPlotMonoField || s === h.BoxPlotMultiFields || s === h.BoxPlotMonoFieldAndCategory || s === h.BoxPlotMultiFieldsAndCategory;
4893
4889
  break;
4894
4890
  case ie.ClassBreaks:
4895
- a = r === S.ScatterSeries || s === p.BarAndLineNoAggregation || s === p.PieNoAggregation;
4891
+ a = r === S.ScatterSeries || s === h.BarAndLineNoAggregation || s === h.PieNoAggregation;
4896
4892
  break;
4897
4893
  case ie.Dictionary:
4898
4894
  case ie.DotDensity:
@@ -4902,10 +4898,10 @@ function rl(i) {
4902
4898
  }
4903
4899
  return a;
4904
4900
  }
4905
- function bs(i, e) {
4906
- return Fs(i?.type) ?? e?.type;
4901
+ function Ss(i, e) {
4902
+ return hs(i?.type) ?? e?.type;
4907
4903
  }
4908
- function xs(i) {
4904
+ function Fs(i) {
4909
4905
  const e = b.rendererSymbolField;
4910
4906
  let t = e in i ? e : void 0;
4911
4907
  if (!t) {
@@ -4917,13 +4913,13 @@ function xs(i) {
4917
4913
  }
4918
4914
  return i[t]?.label;
4919
4915
  }
4920
- function Cs(i) {
4916
+ function bs(i) {
4921
4917
  return i?.type !== void 0 && (i.color !== void 0 || i.label !== void 0 || i.style !== void 0 || i.outline !== void 0);
4922
4918
  }
4923
4919
  function qi(i) {
4924
4920
  const { symbolField: e, dataItem: t, rendererSymbol: a, rendererOrigin: n } = i;
4925
4921
  let r = !1;
4926
- if (!Cs(a))
4922
+ if (!bs(a))
4927
4923
  delete t[e];
4928
4924
  else {
4929
4925
  const s = { ...a };
@@ -4931,7 +4927,7 @@ function qi(i) {
4931
4927
  }
4932
4928
  return r;
4933
4929
  }
4934
- function Bs(i) {
4930
+ function xs(i) {
4935
4931
  const { renderer: e, seriesConfig: t, chartSubType: a, dataItem: n, rendererOrigin: r } = i;
4936
4932
  let s, o = !1;
4937
4933
  const c = W(t), { outline: l, attributes: u } = e;
@@ -4941,39 +4937,39 @@ function Bs(i) {
4941
4937
  const { color: m, label: g } = d;
4942
4938
  let y;
4943
4939
  Array.isArray(m) && m?.length === 4 ? y = m : m && "toRgba" in m && (y = m.toRgba());
4944
- let h = !1, x = !0;
4940
+ let p = !1, C = !0;
4945
4941
  switch (c) {
4946
4942
  case S.BarSeries:
4947
4943
  case S.LineSeries:
4948
4944
  case S.ComboLineAndBarSeries:
4949
4945
  case S.RadarSeries:
4950
- if (a !== p.BarAndLineFromFields) {
4951
- const F = t.find((C) => C.query?.outStatistics?.[0]?.onStatisticField === f);
4946
+ if (a !== h.BarAndLineFromFields) {
4947
+ const F = t.find((x) => x.query?.outStatistics?.[0]?.onStatisticField === f);
4952
4948
  F !== void 0 && "y" in F ? f = [F.y].flat()[0] : f = "";
4953
4949
  }
4954
- h = a !== p.BarAndLineFromFields || f === n[b.originalCategoryValue];
4950
+ p = a !== h.BarAndLineFromFields || f === n[b.originalCategoryValue];
4955
4951
  break;
4956
4952
  case S.PieSeries:
4957
- h = a === p.PieFromFields && f === n[b.originalCategoryValue];
4953
+ p = a === h.PieFromFields && f === n[b.originalCategoryValue];
4958
4954
  break;
4959
4955
  case S.BoxPlotSeries:
4960
- a === p.BoxPlotMonoField || a === p.BoxPlotMonoFieldAndCategory ? h = f === t[0].y : f && (a === p.BoxPlotMultiFields || a === p.BoxPlotMultiFieldsAndCategory) && (h = t.map((C) => C.y).flat().includes(f)), x = !1;
4956
+ a === h.BoxPlotMonoField || a === h.BoxPlotMonoFieldAndCategory ? p = f === t[0].y : f && (a === h.BoxPlotMultiFields || a === h.BoxPlotMultiFieldsAndCategory) && (p = t.map((x) => x.y).flat().includes(f)), C = !1;
4961
4957
  break;
4962
4958
  }
4963
- h && y && (s = {
4959
+ p && y && (s = {
4964
4960
  type: rt.SMS,
4965
4961
  color: y,
4966
- label: x && g ? g : void 0
4962
+ label: C && g ? g : void 0
4967
4963
  }, l != null && (s.outline = l), qi({
4968
4964
  dataItem: n,
4969
- symbolField: a === p.BarAndLineFromFields || a === p.PieFromFields ? b.rendererSymbolField : `${b.rendererSymbolField}_${f}`,
4965
+ symbolField: a === h.BarAndLineFromFields || a === h.PieFromFields ? b.rendererSymbolField : `${b.rendererSymbolField}_${f}`,
4970
4966
  rendererSymbol: s,
4971
4967
  rendererOrigin: r
4972
4968
  }) && (o = !0));
4973
4969
  }
4974
4970
  ), { rendererSymbol: s, colorMatchApplied: o };
4975
4971
  }
4976
- function vs(i) {
4972
+ function Cs(i) {
4977
4973
  const { seriesConfig: e, chartSubType: t, rendererType: a } = i;
4978
4974
  let r = b.rendererSymbolField;
4979
4975
  if (a === ie.UniqueValue) {
@@ -4981,18 +4977,18 @@ function vs(i) {
4981
4977
  const s = ge({
4982
4978
  where: e.query?.where
4983
4979
  });
4984
- s === null ? r = b.nullValue : t === p.BarAndLineSplitBy && typeof e.y == "string" ? r = e.y : t === p.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? r = `${e.y}_${s}` : r = `${s}`;
4980
+ s === null ? r = b.nullValue : t === h.BarAndLineSplitBy && typeof e.y == "string" ? r = e.y : t === h.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? r = `${e.y}_${s}` : r = `${s}`;
4985
4981
  }
4986
4982
  } else if (a === ie.PieChart)
4987
4983
  switch (t) {
4988
- case p.BoxPlotMultiFields:
4984
+ case h.BoxPlotMultiFields:
4989
4985
  r = Array.isArray(e.y) ? e.y.flat() : e.y;
4990
4986
  break;
4991
- case p.BarAndLineMonoField:
4992
- case p.BarAndLineMultiFields:
4993
- case p.BoxPlotMonoField:
4994
- case p.BoxPlotMonoFieldAndCategory:
4995
- case p.BoxPlotMultiFieldsAndCategory:
4987
+ case h.BarAndLineMonoField:
4988
+ case h.BarAndLineMultiFields:
4989
+ case h.BoxPlotMonoField:
4990
+ case h.BoxPlotMonoFieldAndCategory:
4991
+ case h.BoxPlotMultiFieldsAndCategory:
4996
4992
  r = e.y;
4997
4993
  break;
4998
4994
  }
@@ -5000,14 +4996,14 @@ function vs(i) {
5000
4996
  }
5001
4997
  function Ei(i) {
5002
4998
  const { seriesConfig: e, chartSubType: t, rendererType: a, dataItem: n } = i;
5003
- let r = vs({
4999
+ let r = Cs({
5004
5000
  seriesConfig: e,
5005
5001
  chartSubType: t,
5006
5002
  rendererType: a
5007
5003
  });
5008
5004
  return r instanceof Array && e.type === S.BoxPlotSeries && a === ie.PieChart && n !== void 0 && (r = r.find((s) => s === n[Jt]) ?? r[0]), r = r !== b.rendererSymbolField ? `${b.rendererSymbolField}_${r.toString()}` : r, r;
5009
5005
  }
5010
- function Ns(i) {
5006
+ function Bs(i) {
5011
5007
  const { chartRenderer: e, queryObject: t } = i, a = e !== void 0 ? {
5012
5008
  // 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
5013
5009
  // eslint-disable-next-line @typescript-eslint/no-misused-spread
@@ -5018,7 +5014,7 @@ function Ns(i) {
5018
5014
  layer: a
5019
5015
  });
5020
5016
  }
5021
- async function Ts(i) {
5017
+ async function vs(i) {
5022
5018
  const {
5023
5019
  seriesConfig: e,
5024
5020
  dataItem: t,
@@ -5033,7 +5029,7 @@ async function Ts(i) {
5033
5029
  } = i;
5034
5030
  let d, f = !1;
5035
5031
  if (n === ie.PieChart) {
5036
- const m = Bs({
5032
+ const m = xs({
5037
5033
  renderer: a,
5038
5034
  seriesConfig: e,
5039
5035
  chartSubType: s,
@@ -5045,32 +5041,32 @@ async function Ts(i) {
5045
5041
  const { x: m } = e[0], g = /* @__PURE__ */ new Map();
5046
5042
  o && o.trim() !== "" ? e.forEach((y) => {
5047
5043
  if (y.type === S.BarSeries || y.type === S.LineSeries || y.type === S.BoxPlotSeries || y.type === S.RadarSeries) {
5048
- const h = Ei({
5044
+ const p = Ei({
5049
5045
  seriesConfig: y,
5050
5046
  chartSubType: s,
5051
5047
  rendererType: n,
5052
5048
  dataItem: t
5053
- }), x = ge({
5049
+ }), C = ge({
5054
5050
  where: y.query?.where,
5055
5051
  normalize: !0,
5056
5052
  keepSurroundingQuotes: !1,
5057
5053
  escape: !1
5058
5054
  });
5059
- g.set(h, {
5055
+ g.set(p, {
5060
5056
  ...t,
5061
- [o]: x
5057
+ [o]: C
5062
5058
  });
5063
5059
  }
5064
5060
  }) : g.set(b.rendererSymbolField, {
5065
5061
  ...t,
5066
- [m]: Ha(t)
5062
+ [m]: Qa(t)
5067
5063
  });
5068
5064
  try {
5069
- const y = Array.from(g.entries()), h = c.clone();
5070
- h.layer = c.layer;
5071
- const x = a?.uniqueValueInfos;
5065
+ const y = Array.from(g.entries()), p = c.clone();
5066
+ p.layer = c.layer;
5067
+ const C = a?.uniqueValueInfos;
5072
5068
  for (let F = 0; F < y.length; F += 1) {
5073
- const [C, B] = y[F];
5069
+ const [x, B] = y[F];
5074
5070
  if (Ht({
5075
5071
  mode: "encode",
5076
5072
  x: m,
@@ -5078,13 +5074,13 @@ async function Ts(i) {
5078
5074
  attributes: B
5079
5075
  }), l && l.length > 0 && Object.keys(B).forEach((v) => {
5080
5076
  l.includes(v) || delete B[v];
5081
- }), h.attributes = B, u?.has(JSON.stringify(B)))
5077
+ }), p.attributes = B, u?.has(JSON.stringify(B)))
5082
5078
  d = u.get(JSON.stringify(B));
5083
5079
  else {
5084
- if (d = (await gt.getDisplayedSymbol(h))?.toJSON(), d != null) {
5085
- d.color === void 0 && (d.color = (await gt.getDisplayedColor(h))?.toJSON());
5086
- const v = await gt.getLegendLabel(h);
5087
- v != null && v !== "" && (d.label = v, d.uniqueValue = x?.find((T) => T.label === v)?.value ?? void 0);
5080
+ if (d = (await gt.getDisplayedSymbol(p))?.toJSON(), d != null) {
5081
+ d.color === void 0 && (d.color = (await gt.getDisplayedColor(p))?.toJSON());
5082
+ const v = await gt.getLegendLabel(p);
5083
+ v != null && v !== "" && (d.label = v, d.uniqueValue = C?.find((T) => T.label === v)?.value ?? void 0);
5088
5084
  }
5089
5085
  u?.set(JSON.stringify(B), d);
5090
5086
  }
@@ -5095,7 +5091,7 @@ async function Ts(i) {
5095
5091
  attributes: t
5096
5092
  }), qi({
5097
5093
  dataItem: t,
5098
- symbolField: C,
5094
+ symbolField: x,
5099
5095
  rendererSymbol: d,
5100
5096
  rendererOrigin: r
5101
5097
  }) && (f = !0);
@@ -5105,7 +5101,7 @@ async function Ts(i) {
5105
5101
  }
5106
5102
  return { rendererSymbol: d, colorMatchApplied: f };
5107
5103
  }
5108
- function As(i) {
5104
+ function Ns(i) {
5109
5105
  const e = i;
5110
5106
  return i?.type === "uniqueValue" && (i.uniqueValueInfos = i.uniqueValueInfos.map((t) => {
5111
5107
  const a = t.value === null ? b.nullValue : t.value;
@@ -5118,26 +5114,26 @@ function Ht(i) {
5118
5114
  t[r] === (n === "encode" ? null : b.nullValue) && (t[r] = n === "encode" ? b.nullValue : null);
5119
5115
  });
5120
5116
  }
5121
- async function sl(i) {
5117
+ async function al(i) {
5122
5118
  const { data: e, queryObject: t, chartConfig: a, allowColorMatch: n } = i;
5123
5119
  let r = !1, s = [];
5124
5120
  if (n) {
5125
- const { series: o, chartRenderer: c } = a, l = As(c), u = l ? Ee.ChartRenderer : Ee.LayerRenderer, d = t ? z(t) : void 0, f = l ?? d?.renderer;
5121
+ const { series: o, chartRenderer: c } = a, l = Ns(c), u = l ? Ee.ChartRenderer : Ee.LayerRenderer, d = t ? z(t) : void 0, f = l ?? d?.renderer;
5126
5122
  let m;
5127
- d && u === Ee.LayerRenderer ? s = await Zt(d) : u === Ee.ChartRenderer && (s = Ms(f));
5128
- const g = bs(l, d?.renderer), y = Ns({
5123
+ d && u === Ee.LayerRenderer ? s = await Zt(d) : u === Ee.ChartRenderer && (s = Ps(f));
5124
+ const g = Ss(l, d?.renderer), y = Bs({
5129
5125
  chartRenderer: c,
5130
5126
  queryObject: t
5131
- }), h = E(o), x = we(a), F = K(x.query?.where);
5127
+ }), p = E(o), C = we(a), F = K(C.query?.where);
5132
5128
  m = /* @__PURE__ */ new Map();
5133
- for (let C = 0; C < e.length; C += 1) {
5134
- const B = e[C], N = await Ts({
5129
+ for (let x = 0; x < e.length; x += 1) {
5130
+ const B = e[x], N = await vs({
5135
5131
  seriesConfig: a.series,
5136
5132
  dataItem: B,
5137
5133
  renderer: f,
5138
5134
  rendererType: g,
5139
5135
  rendererOrigin: u,
5140
- chartSubType: h,
5136
+ chartSubType: p,
5141
5137
  splitByField: F,
5142
5138
  graphicTemplate: y,
5143
5139
  mapAttributesToSymbol: m,
@@ -5148,7 +5144,7 @@ async function sl(i) {
5148
5144
  }
5149
5145
  return { dataItems: e, colorMatchApplied: r, rendererFieldNames: s };
5150
5146
  }
5151
- function Ps(i) {
5147
+ function Ts(i) {
5152
5148
  const { dataItem: e, seriesConfig: t, chartSubType: a, colorMatch: n, rendererType: r } = i;
5153
5149
  let s;
5154
5150
  if (n && e !== void 0) {
@@ -5162,7 +5158,7 @@ function Ps(i) {
5162
5158
  }
5163
5159
  return s;
5164
5160
  }
5165
- function ol(i) {
5161
+ function nl(i) {
5166
5162
  const { seriesSymbol: e, rendererSymbol: t, colorIndex: a, preferSeriesSymbolOverRendererSymbol: n } = i;
5167
5163
  let r = t?.color ?? e.color;
5168
5164
  n && (r = e.color ?? t?.color), r = r ?? Ut({ colorIndex: a, opacity: ri });
@@ -5177,19 +5173,19 @@ function ol(i) {
5177
5173
  color: t?.outline?.color ?? s.outline?.color ?? t?.color
5178
5174
  }), s;
5179
5175
  }
5180
- function Ls(i) {
5176
+ function As(i) {
5181
5177
  let e = [];
5182
5178
  return i && (e = i.series.flatMap((t) => t.query?.outStatistics?.map((a) => a.onStatisticField)).filter((t) => t !== void 0), e.length === 0 && (e = se(i.series))), e;
5183
5179
  }
5184
- function ll(i, e) {
5180
+ function rl(i, e) {
5185
5181
  let t = !1;
5186
5182
  if (i && e && e.length > 0 && Gt(i)) {
5187
- const n = ja(i), r = we(i);
5188
- n ? t = Ls(i).some((o) => e.includes(o)) : t = e.includes(r.x);
5183
+ const n = ka(i), r = we(i);
5184
+ n ? t = As(i).some((o) => e.includes(o)) : t = e.includes(r.x);
5189
5185
  }
5190
5186
  return t;
5191
5187
  }
5192
- function Ms(i) {
5188
+ function Ps(i) {
5193
5189
  let e = [];
5194
5190
  if (i && "type" in i && typeof i.type == "string")
5195
5191
  switch (i.type) {
@@ -5205,71 +5201,71 @@ function Ms(i) {
5205
5201
  }
5206
5202
  return e;
5207
5203
  }
5208
- function cl(i, e) {
5204
+ function sl(i, e) {
5209
5205
  let t;
5210
5206
  return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = i)), t;
5211
5207
  }
5212
- function ul(i, e) {
5208
+ function ol(i, e) {
5213
5209
  let t;
5214
5210
  return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = i)), t;
5215
5211
  }
5216
- function dl(i) {
5212
+ function ll(i) {
5217
5213
  let e;
5218
5214
  return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
5219
5215
  }
5220
- function fl(i, e) {
5221
- return e != null || Pa(i);
5216
+ function cl(i, e) {
5217
+ return e != null || Aa(i);
5222
5218
  }
5223
- async function ws(i) {
5219
+ async function Ls(i) {
5224
5220
  const { queryObject: e, chartConfig: t, options: a, splitByField: n } = i;
5225
5221
  let r = [];
5226
- const s = t.series[0], o = await Aa(t, e), c = ii({
5222
+ const s = t.series[0], o = ii({
5227
5223
  queryObject: e,
5228
- chartConfig: o,
5224
+ chartConfig: t,
5229
5225
  runtimeDataFilters: a?.runtimeDataFilters,
5230
5226
  ignoreViewExtent: a?.ignoreViewExtent
5231
5227
  });
5232
- if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Y.outStatistics.outStatisticFieldName), oe(s) && ve({
5233
- xAxisValueFormatType: pe(o),
5228
+ if (o.outStatistics?.[0]?.outStatisticFieldName && (o.outStatistics[0].outStatisticFieldName = Y.outStatistics.outStatisticFieldName), oe(s) && Ne({
5229
+ xAxisValueFormatType: pe(t),
5234
5230
  setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided,
5235
5231
  seriesConfig: s
5236
5232
  }) && Qe(e)) {
5237
- const { temporalBinning: l, x: u } = s, d = await ai({
5233
+ const { temporalBinning: c, x: l } = s, u = await ai({
5238
5234
  queryObject: e,
5239
- dateField: u,
5235
+ dateField: l,
5240
5236
  splitByField: n,
5241
- queryConfig: c,
5242
- temporalBinning: l
5237
+ queryConfig: o,
5238
+ temporalBinning: c
5243
5239
  });
5244
5240
  r = Array.from(
5245
5241
  new Set(
5246
- d.flatMap((f) => {
5247
- const { stackedAttributes: m } = f;
5248
- let g = [];
5249
- return m && (g = m.map((y) => y[n]).filter((y) => y !== void 0)), g;
5242
+ u.flatMap((d) => {
5243
+ const { stackedAttributes: f } = d;
5244
+ let m = [];
5245
+ return f && (m = f.map((g) => g[n]).filter((g) => g !== void 0)), m;
5250
5246
  })
5251
5247
  ).values()
5252
5248
  );
5253
5249
  } else {
5254
- const { uniqueQuery: l } = await ct({
5255
- chartConfig: o,
5250
+ const { uniqueQuery: c } = await ct({
5251
+ chartConfig: t,
5256
5252
  queryObject: e,
5257
- queryConfig: c,
5253
+ queryConfig: o,
5258
5254
  options: a
5259
- }), u = await ye({
5255
+ }), l = await ye({
5260
5256
  queryObject: e,
5261
- queryConfig: l,
5257
+ queryConfig: c,
5262
5258
  featureCount: 1
5263
5259
  });
5264
5260
  r = Array.from(
5265
5261
  new Set(
5266
- u.map((d) => d.attributes[n]).filter((d) => d !== void 0)
5262
+ l.map((u) => u.attributes[n]).filter((u) => u !== void 0)
5267
5263
  ).values()
5268
5264
  );
5269
5265
  }
5270
5266
  return r;
5271
5267
  }
5272
- function Ds(i, e) {
5268
+ function Ms(i, e) {
5273
5269
  const t = /* @__PURE__ */ new Map();
5274
5270
  return i.series.forEach((a) => {
5275
5271
  let n = ge({
@@ -5289,7 +5285,7 @@ function Ds(i, e) {
5289
5285
  ]);
5290
5286
  }), t;
5291
5287
  }
5292
- function Os(i) {
5288
+ function ws(i) {
5293
5289
  const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = i, n = /* @__PURE__ */ new Map();
5294
5290
  return Array.from(t.keys()).forEach((r) => {
5295
5291
  const s = t.get(r) ?? [];
@@ -5299,7 +5295,7 @@ function Os(i) {
5299
5295
  }), n.set(r, o);
5300
5296
  }), n;
5301
5297
  }
5302
- function qs(i) {
5298
+ function Ds(i) {
5303
5299
  const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: n } = i, r = JSON.parse(
5304
5300
  JSON.stringify({
5305
5301
  ...e.series[0],
@@ -5316,138 +5312,131 @@ function qs(i) {
5316
5312
  }
5317
5313
  return r;
5318
5314
  }
5319
- async function ml(i, e, t) {
5320
- const { updateSplitBySeries: a } = i, { seriesTemplate: n } = a ?? {};
5321
- if (a !== void 0 && e !== void 0 && (e.series.length > 0 || n !== void 0) && a.addMissingSeries) {
5322
- const r = e.series.length === 0;
5323
- e.series.length === 0 && n !== void 0 && e.series.push(n);
5324
- const s = E(e.series);
5325
- if (s === p.BoxPlotMonoFieldAndSplitBy || s === p.BoxPlotMultiFieldsAndSplitBy || s === p.BoxPlotMonoFieldAndCategoryAndSplitBy || s === p.BarAndLineSplitBy || s === p.BarAndLineSplitByNoAggregation) {
5326
- const o = await ha({
5327
- chartConfig: e,
5328
- layer: i.layer,
5329
- view: i.view
5315
+ async function ul(i) {
5316
+ const { component: e, config: t, options: a, queryObject: n } = i, { updateSplitBySeries: r } = e, { seriesTemplate: s } = r ?? {};
5317
+ if (r !== void 0 && t !== void 0 && (t.series.length > 0 || s !== void 0) && r.addMissingSeries) {
5318
+ const o = t.series.length === 0;
5319
+ t.series.length === 0 && s !== void 0 && t.series.push(s);
5320
+ const c = E(t.series);
5321
+ if ((c === h.BoxPlotMonoFieldAndSplitBy || c === h.BoxPlotMultiFieldsAndSplitBy || c === h.BoxPlotMonoFieldAndCategoryAndSplitBy || c === h.BarAndLineSplitBy || c === h.BarAndLineSplitByNoAggregation) && n !== void 0) {
5322
+ const l = K(t.series[0]?.query?.where), u = z(n);
5323
+ await u.load();
5324
+ const d = u.getField(l)?.toJSON(), f = We(d), m = await Ls({
5325
+ queryObject: n,
5326
+ chartConfig: t,
5327
+ splitByField: l,
5328
+ options: a
5330
5329
  });
5331
- if (o !== void 0) {
5332
- const c = K(e.series[0]?.query?.where), l = z(o);
5333
- await l.load();
5334
- const u = l.getField(c)?.toJSON(), d = We(u), f = await ws({
5335
- queryObject: o,
5336
- chartConfig: e,
5337
- splitByField: c,
5338
- options: t
5330
+ if (m.length > 0) {
5331
+ const g = Ms(t, f), y = ws({
5332
+ allValues: m,
5333
+ configUniqueValuesPerSeriesType: g,
5334
+ initialConfigWasEmpty: o
5335
+ });
5336
+ Array.from(y.keys()).forEach((p) => {
5337
+ (y.get(p) ?? []).forEach((F) => {
5338
+ t.series.push(
5339
+ Ds({
5340
+ chartConfig: t,
5341
+ seriesTemplate: s,
5342
+ missingValue: F,
5343
+ splitByField: l
5344
+ })
5345
+ );
5346
+ }), o && t.series.shift();
5339
5347
  });
5340
- if (f.length > 0) {
5341
- const m = Ds(e, d), g = Os({
5342
- allValues: f,
5343
- configUniqueValuesPerSeriesType: m,
5344
- initialConfigWasEmpty: r
5345
- });
5346
- Array.from(g.keys()).forEach((y) => {
5347
- (g.get(y) ?? []).forEach((x) => {
5348
- e.series.push(
5349
- qs({
5350
- chartConfig: e,
5351
- seriesTemplate: n,
5352
- missingValue: x,
5353
- splitByField: c
5354
- })
5355
- );
5356
- }), r && e.series.shift();
5357
- });
5358
- }
5359
5348
  }
5360
5349
  }
5361
5350
  }
5362
5351
  }
5363
5352
  export {
5364
- el as $,
5365
- Xo as A,
5366
- Zo as B,
5353
+ Jo as $,
5354
+ Yo as A,
5355
+ Ko as B,
5367
5356
  si as C,
5368
- Nr as D,
5369
- pr as E,
5357
+ Br as D,
5358
+ gr as E,
5370
5359
  Lt as F,
5371
- yo as G,
5372
- ys as H,
5373
- La as I,
5374
- fo as J,
5375
- Oo as K,
5376
- ko as L,
5377
- Jo as M,
5360
+ fo as G,
5361
+ ms as H,
5362
+ Pa as I,
5363
+ lo as J,
5364
+ Mo as K,
5365
+ Io as L,
5366
+ _o as M,
5378
5367
  jt as N,
5379
- lo as O,
5380
- uo as P,
5368
+ ro as O,
5369
+ oo as P,
5381
5370
  fe as Q,
5382
5371
  Ee as R,
5383
- Lo as S,
5384
- jo as T,
5385
- hn as U,
5386
- al as V,
5387
- Ya as W,
5372
+ To as S,
5373
+ $o as T,
5374
+ yn as U,
5375
+ el as V,
5376
+ _a as W,
5388
5377
  pe as X,
5389
- Ko as Y,
5390
- qo as Z,
5391
- Yo as _,
5392
- nl as a,
5393
- sl as a0,
5394
- No as a1,
5395
- Po as a2,
5396
- mo as a3,
5397
- Go as a4,
5398
- Co as a5,
5399
- $o as a6,
5400
- Ro as a7,
5401
- po as a8,
5402
- Ho as a9,
5403
- zo as aa,
5404
- Eo as ab,
5405
- Uo as ac,
5406
- ho as ad,
5407
- So as ae,
5408
- co as af,
5409
- _o as ag,
5410
- Fo as ah,
5378
+ Uo as Y,
5379
+ wo as Z,
5380
+ Go as _,
5381
+ tl as a,
5382
+ al as a0,
5383
+ Co as a1,
5384
+ No as a2,
5385
+ co as a3,
5386
+ Qo as a4,
5387
+ Fo as a5,
5388
+ Eo as a6,
5389
+ Vo as a7,
5390
+ mo as a8,
5391
+ jo as a9,
5392
+ Wo as aa,
5393
+ Do as ab,
5394
+ Ho as ac,
5395
+ go as ad,
5396
+ yo as ae,
5397
+ so as af,
5398
+ zo as ag,
5399
+ po as ah,
5411
5400
  Ft as ai,
5412
- $a as aj,
5401
+ Ia as aj,
5413
5402
  ci as ak,
5414
- To as al,
5415
- tl as am,
5416
- Vo as an,
5417
- Io as ao,
5418
- Wo as ap,
5419
- Qo as aq,
5420
- Bo as ar,
5421
- xo as as,
5422
- bo as at,
5423
- go as au,
5424
- ml as av,
5425
- fl as aw,
5426
- cl as ax,
5427
- ul as ay,
5403
+ Bo as al,
5404
+ Xo as am,
5405
+ Oo as an,
5406
+ qo as ao,
5407
+ Ro as ap,
5408
+ ko as aq,
5409
+ bo as ar,
5410
+ So as as,
5411
+ ho as at,
5412
+ uo as au,
5413
+ ul as av,
5414
+ cl as aw,
5415
+ sl as ax,
5416
+ ol as ay,
5428
5417
  ui as b,
5429
- oo as c,
5430
- il as d,
5431
- vo as e,
5418
+ no as c,
5419
+ Zo as d,
5420
+ xo as e,
5432
5421
  He as f,
5433
5422
  ze as g,
5434
- Ha as h,
5423
+ Qa as h,
5435
5424
  Oi as i,
5436
- ps as j,
5437
- ll as k,
5438
- Ae as l,
5439
- ol as m,
5440
- Ao as n,
5425
+ gs as j,
5426
+ rl as k,
5427
+ Pe as l,
5428
+ nl as m,
5429
+ vo as n,
5441
5430
  J as o,
5442
- Ps as p,
5443
- Do as q,
5444
- dl as r,
5431
+ Ts as p,
5432
+ Lo as q,
5433
+ ll as r,
5445
5434
  Ke as s,
5446
- Mo as t,
5447
- Ns as u,
5448
- bs as v,
5449
- rl as w,
5450
- Ts as x,
5451
- wo as y,
5452
- Wa as z
5435
+ Ao as t,
5436
+ Bs as u,
5437
+ Ss as v,
5438
+ il as w,
5439
+ vs as x,
5440
+ Po as y,
5441
+ ja as z
5453
5442
  };