@arcgis/charts-components 4.34.0-next.154 → 4.34.0-next.155

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 (301) hide show
  1. package/dist/cdn/{UD6C2NBP.js → 267IVT2N.js} +2 -2
  2. package/dist/cdn/{53T7DQBU.js → 2KO6UHZM.js} +2 -2
  3. package/dist/cdn/{WLQFTVZI.js → 2SFKZKSU.js} +2 -2
  4. package/dist/cdn/{OZXX3HAQ.js → 2WLSFUPY.js} +2 -2
  5. package/dist/cdn/{B7XU5W3T.js → 37DUU2GU.js} +1 -1
  6. package/dist/cdn/{KEB5E3I4.js → 3DSYR3DZ.js} +1 -1
  7. package/dist/cdn/{63ZVU2MW.js → 3IS6C3GS.js} +2 -2
  8. package/dist/cdn/{JQKPTBI7.js → 3NBBOMN5.js} +2 -2
  9. package/dist/cdn/{OO36IIND.js → 3U75LCOK.js} +2 -2
  10. package/dist/cdn/{BAISYW4B.js → 3UBHI5RA.js} +2 -2
  11. package/dist/cdn/{THCMCUAO.js → 3VH5IHBD.js} +2 -2
  12. package/dist/cdn/{MTCRBWZ2.js → 4LSEX6QK.js} +2 -2
  13. package/dist/cdn/{2CLAM4AO.js → 4PSDOJ2Z.js} +2 -2
  14. package/dist/cdn/{TFBYOLII.js → 4RZPFB7E.js} +2 -2
  15. package/dist/cdn/{5XXKD5WO.js → 4TZSNJMU.js} +2 -2
  16. package/dist/cdn/{IW2ISZGK.js → 4WA27ES4.js} +2 -2
  17. package/dist/cdn/{FLLOQM2U.js → 4YLWNU6J.js} +2 -2
  18. package/dist/cdn/{LTZXJJVL.js → 544RN7IM.js} +2 -2
  19. package/dist/cdn/{BXJGT3YO.js → 5HNMZLKN.js} +2 -2
  20. package/dist/cdn/{4PJJ4FMT.js → 5ZCX2TAT.js} +2 -2
  21. package/dist/cdn/{UIQYIUMT.js → 5ZRWB362.js} +2 -2
  22. package/dist/cdn/{6GGPGGBP.js → 6HYIQ356.js} +2 -2
  23. package/dist/cdn/{V6WXFNCK.js → 6IKNC3IO.js} +2 -2
  24. package/dist/cdn/{ZC2GKXNK.js → 6JE7VOWM.js} +2 -2
  25. package/dist/cdn/{ERWQVNSY.js → 6P3GWFXJ.js} +2 -2
  26. package/dist/cdn/{NBA6DZIU.js → 6Q4KFIU7.js} +1 -1
  27. package/dist/cdn/{VRP3MVKW.js → 6QNGP53Z.js} +2 -2
  28. package/dist/cdn/{VTKBVEGF.js → 7O4ALZFT.js} +2 -2
  29. package/dist/cdn/{TFTIA2CZ.js → 7TFC5YWG.js} +2 -2
  30. package/dist/cdn/{XHCXCE3P.js → A5ZUCSLJ.js} +2 -2
  31. package/dist/cdn/{IQW2HHH4.js → ACPUEWLL.js} +2 -2
  32. package/dist/cdn/{XD7FMRQ2.js → ACZZAXXN.js} +1 -1
  33. package/dist/cdn/{ENMOOBFO.js → AFSQOB4U.js} +2 -2
  34. package/dist/cdn/{FQCOBO6E.js → AL4CMYQK.js} +2 -2
  35. package/dist/cdn/{J5MZAXWK.js → AON42HUV.js} +1 -1
  36. package/dist/cdn/{5LFO7HHH.js → AR2Z7SI3.js} +2 -2
  37. package/dist/cdn/{3MIQXV7Y.js → AZPUSFVL.js} +2 -2
  38. package/dist/cdn/{OMX6PRHS.js → B2IIWOS3.js} +2 -2
  39. package/dist/cdn/B2MQU455.js +4 -0
  40. package/dist/cdn/{WN4BTDIV.js → B3Z7BRFX.js} +2 -2
  41. package/dist/cdn/{ODDVQFJL.js → BJ22KVIX.js} +2 -2
  42. package/dist/cdn/{6VGSYADW.js → BJQFBMKO.js} +2 -2
  43. package/dist/cdn/{NCN5RBZ4.js → BK774JJR.js} +2 -2
  44. package/dist/cdn/{2EQWFXD2.js → BM77QXIT.js} +2 -2
  45. package/dist/cdn/{23OUU6PQ.js → BMDLR2U6.js} +2 -2
  46. package/dist/cdn/{54SDTWLF.js → BOQWO2NX.js} +2 -2
  47. package/dist/cdn/{PJVRONO4.js → BX4KOYV5.js} +2 -2
  48. package/dist/cdn/{B2PEANBE.js → CGF6OCWR.js} +2 -2
  49. package/dist/cdn/{OV2DS4JP.js → CKLSKOA4.js} +2 -2
  50. package/dist/cdn/{7LTEOTCW.js → CPDEXZPL.js} +2 -2
  51. package/dist/cdn/{YB42XB2E.js → CUJLSDJZ.js} +2 -2
  52. package/dist/cdn/{AVJJWAM4.js → CUKGCXAY.js} +2 -2
  53. package/dist/cdn/{J3DRDO56.js → DAPBLFK5.js} +2 -2
  54. package/dist/cdn/{MAGI2UQ4.js → DBNPUEEN.js} +2 -2
  55. package/dist/cdn/{W6WZ56C6.js → DENOV4LI.js} +2 -2
  56. package/dist/cdn/{FKF7H3DL.js → DFUQC6PB.js} +2 -2
  57. package/dist/cdn/{ODPVYOQU.js → DHC7GZWS.js} +2 -2
  58. package/dist/cdn/{SNF7SMTR.js → DQ5MS4NG.js} +2 -2
  59. package/dist/cdn/{IGHYNNVE.js → DRCOFG5K.js} +2 -2
  60. package/dist/cdn/{FABAAEZM.js → DRND3JKW.js} +2 -2
  61. package/dist/cdn/{U75N5KWR.js → DT7OW75P.js} +2 -2
  62. package/dist/cdn/{B63E6GHP.js → DX6Q4GEN.js} +2 -2
  63. package/dist/cdn/{BJVZWSBD.js → DYQDT5Q3.js} +2 -2
  64. package/dist/cdn/{T4UPE22X.js → E3HJSLHR.js} +1 -1
  65. package/dist/cdn/{RX5VLVXY.js → EDIWC5LZ.js} +2 -2
  66. package/dist/cdn/{MF3RVKJT.js → EJXMUA3T.js} +2 -2
  67. package/dist/cdn/{ZTOVJBYA.js → F4UDAYGN.js} +2 -2
  68. package/dist/cdn/{KTZWJVVA.js → FBJDFD2R.js} +2 -2
  69. package/dist/cdn/{YMCJVHZZ.js → FDOVN6FP.js} +2 -2
  70. package/dist/cdn/{JWCOL57L.js → FTQ3JM5Q.js} +2 -2
  71. package/dist/cdn/{VMXD3QXE.js → FW4NHEQW.js} +2 -2
  72. package/dist/cdn/{ZAMJAQRY.js → FYHYALGT.js} +2 -2
  73. package/dist/cdn/{GDRBSJWU.js → G5J7QWSZ.js} +2 -2
  74. package/dist/cdn/{V65MZO2U.js → GCHK3RK3.js} +2 -2
  75. package/dist/cdn/{IB35GFFS.js → GFFT7VSK.js} +2 -2
  76. package/dist/cdn/{2NTWDDLR.js → GHDCVTXI.js} +2 -2
  77. package/dist/cdn/{EB5JJGZT.js → GK5QB5HE.js} +2 -2
  78. package/dist/cdn/{NDVTQRZ3.js → GM4KABKP.js} +2 -2
  79. package/dist/cdn/{SL52CQOK.js → GOPK5EMJ.js} +2 -2
  80. package/dist/cdn/{Q6OHX2VC.js → GRRECYTK.js} +2 -2
  81. package/dist/cdn/{HE6LNS4R.js → GRUTII4K.js} +2 -2
  82. package/dist/cdn/{RLOJPHAA.js → GSBJSVBW.js} +2 -2
  83. package/dist/cdn/{QMH7RR5F.js → GT6SNVBA.js} +2 -2
  84. package/dist/cdn/{SQALKXUC.js → HGSOGLJF.js} +2 -2
  85. package/dist/cdn/{NJREI7U4.js → HIUTBFEU.js} +2 -2
  86. package/dist/cdn/{P2XVIPK6.js → HX7DCGMB.js} +2 -2
  87. package/dist/cdn/{CZSLYH6Y.js → HZCZVDUN.js} +2 -2
  88. package/dist/cdn/{SQ4UQDXC.js → I6RHQNXV.js} +2 -2
  89. package/dist/cdn/{YJO3JVT5.js → ISATR6GR.js} +2 -2
  90. package/dist/cdn/{7VZ3AUNE.js → ISW4IFHC.js} +2 -2
  91. package/dist/cdn/{ZHNFN2FC.js → IX4CN3H2.js} +2 -2
  92. package/dist/cdn/{YUSWMKZK.js → IYCBIZ7I.js} +2 -2
  93. package/dist/cdn/{JF6NKXRT.js → J24Y32UA.js} +2 -2
  94. package/dist/cdn/{CDZ7I5HY.js → J3CGA74V.js} +2 -2
  95. package/dist/cdn/{F5MQFPHQ.js → JOIDIAKC.js} +2 -2
  96. package/dist/cdn/{ND5IFIY5.js → K2H6OGTU.js} +2 -2
  97. package/dist/cdn/{BB76W3YO.js → KB5IYEIK.js} +2 -2
  98. package/dist/cdn/{FWUNPLXC.js → KI2GMJNN.js} +2 -2
  99. package/dist/cdn/{26SK6X4V.js → KVAUYGJA.js} +2 -2
  100. package/dist/cdn/{GTURT57F.js → KVJXLX3K.js} +2 -2
  101. package/dist/cdn/{S3AWAYN6.js → LCTHO7YE.js} +2 -2
  102. package/dist/cdn/{YOUEBCO5.js → LDKLYVOK.js} +2 -2
  103. package/dist/cdn/{NSJXNX4B.js → LIHCC7AL.js} +2 -2
  104. package/dist/cdn/{5Q6HTH6V.js → LKAXP4MJ.js} +2 -2
  105. package/dist/cdn/{GK667FVB.js → LOCIG4K2.js} +2 -2
  106. package/dist/cdn/{BTYW66AK.js → LQVVT7G2.js} +2 -2
  107. package/dist/cdn/{F4U2P737.js → M2ZTKEEZ.js} +1 -1
  108. package/dist/cdn/{7URRSPSK.js → M5IXMTH4.js} +2 -2
  109. package/dist/cdn/{VUNL7LOO.js → MBYAPXDT.js} +9 -9
  110. package/dist/cdn/{PFLPE5XX.js → MFH4L33Y.js} +2 -2
  111. package/dist/cdn/{YYWKG2OC.js → MTQWMKJ6.js} +2 -2
  112. package/dist/cdn/{GUSB64L3.js → NAVBIEJY.js} +2 -2
  113. package/dist/cdn/{ZYU4SDKR.js → NBYZ2O2A.js} +1 -1
  114. package/dist/cdn/{XQYPOGA2.js → NHUF2VZI.js} +2 -2
  115. package/dist/cdn/{ZEQYQ32K.js → NLA4DXNS.js} +2 -2
  116. package/dist/cdn/{SQRDVU6F.js → NVZ2RBUL.js} +2 -2
  117. package/dist/cdn/{QTGYYN4S.js → NXI77CZD.js} +2 -2
  118. package/dist/cdn/{LVSHBUMN.js → O4FY5WC6.js} +31 -31
  119. package/dist/cdn/{IOVJZXNL.js → O6AL6TPY.js} +2 -2
  120. package/dist/cdn/{4RCOVMLS.js → OAP3YV4N.js} +2 -2
  121. package/dist/cdn/{PRWQGAPP.js → OBJ2EOJE.js} +2 -2
  122. package/dist/cdn/{CJVH3KOY.js → OOQ6U57D.js} +2 -2
  123. package/dist/cdn/{MOQ473RT.js → OQRSHTBX.js} +2 -2
  124. package/dist/cdn/{665JBHE5.js → OWO72ZAW.js} +2 -2
  125. package/dist/cdn/{RVCKVJ2F.js → P2JMMU7G.js} +2 -2
  126. package/dist/cdn/{4NPRK4VA.js → P3LMSZDA.js} +2 -2
  127. package/dist/cdn/{GULFXQDC.js → PCE5MQPC.js} +2 -2
  128. package/dist/cdn/{5EQLRJFZ.js → PLWL4EPM.js} +2 -2
  129. package/dist/cdn/{AASALZ3L.js → Q5DZP3DW.js} +2 -2
  130. package/dist/cdn/{H6QPYYR2.js → QDODWVGA.js} +2 -2
  131. package/dist/cdn/{Z6PRWE6X.js → QHEURMDT.js} +2 -2
  132. package/dist/cdn/{DMLACSIY.js → QPP732W5.js} +2 -2
  133. package/dist/cdn/{AYYB5SK6.js → R3EWK5TM.js} +2 -2
  134. package/dist/cdn/{IY6ZN53W.js → RK5AO36I.js} +2 -2
  135. package/dist/cdn/{Z5K5SQHO.js → RSJVLCOQ.js} +2 -2
  136. package/dist/cdn/{C62MJWWY.js → RVM3LQBB.js} +2 -2
  137. package/dist/cdn/{37Y3PFT5.js → SGGIT3CR.js} +2 -2
  138. package/dist/cdn/{SBS52QRJ.js → SIZMQJWO.js} +2 -2
  139. package/dist/cdn/{S67THLA6.js → TDHUCXAL.js} +2 -2
  140. package/dist/cdn/{3HMWRP3Q.js → TJWMSPZJ.js} +1 -1
  141. package/dist/cdn/{V5H6HL3F.js → TKVWQINZ.js} +2 -2
  142. package/dist/cdn/{5G2UC3KX.js → TLLA6Y4V.js} +2 -2
  143. package/dist/cdn/{N46G2X56.js → TMJBMLAG.js} +1 -1
  144. package/dist/cdn/{JEEVGECM.js → TR6ZHUFR.js} +2 -2
  145. package/dist/cdn/{LLBW6QTC.js → TT5WVM2P.js} +2 -2
  146. package/dist/cdn/{HCITJ35B.js → TTMAX2Y4.js} +2 -2
  147. package/dist/cdn/{REMABXBK.js → U2T7HUJZ.js} +2 -2
  148. package/dist/cdn/{GV627CHY.js → U4I2EQ6G.js} +2 -2
  149. package/dist/cdn/{B7OR7FS3.js → UM43TNOG.js} +2 -2
  150. package/dist/cdn/{PLD2ZTP6.js → URYR2AMP.js} +2 -2
  151. package/dist/cdn/{WXNA44Q4.js → UXAOY76F.js} +2 -2
  152. package/dist/cdn/{MR2DZIXB.js → UZQOAGWY.js} +2 -2
  153. package/dist/cdn/{VZ3XRP7S.js → V4H3Z3RQ.js} +2 -2
  154. package/dist/cdn/{AOWNIAAY.js → V4WGUW3H.js} +2 -2
  155. package/dist/cdn/{RN6ULMN5.js → V6WWWQJM.js} +2 -2
  156. package/dist/cdn/{BQE3BFIS.js → VIAM4JSN.js} +2 -2
  157. package/dist/cdn/{BNHAMND3.js → VNWEFVGQ.js} +2 -2
  158. package/dist/cdn/{K3LIB3UB.js → W637WGDB.js} +2 -2
  159. package/dist/cdn/{LOJNCA7S.js → WBU2JSIX.js} +2 -2
  160. package/dist/cdn/{UAITIHD3.js → WCGVLWOA.js} +2 -2
  161. package/dist/cdn/{QCW2QOI3.js → WDB5EYHE.js} +2 -2
  162. package/dist/cdn/{YQEACRMH.js → WJEEOR4E.js} +2 -2
  163. package/dist/cdn/{XCH6IUOA.js → WN7EDNVD.js} +2 -2
  164. package/dist/cdn/{EH3RDK4E.js → WPTI7BGB.js} +2 -2
  165. package/dist/cdn/{Y2XWKHJG.js → X4BP4TMV.js} +2 -2
  166. package/dist/cdn/{XNJFH4P2.js → XGG6LLQI.js} +2 -2
  167. package/dist/cdn/{PPNXLI2H.js → XLA7NOLN.js} +2 -2
  168. package/dist/cdn/{PC2PJGNR.js → XR3GCIKU.js} +2 -2
  169. package/dist/cdn/{ZBRLCGJZ.js → Y62UUR2A.js} +2 -2
  170. package/dist/cdn/{BNCUT5TF.js → YEXHOYVS.js} +2 -2
  171. package/dist/cdn/{WUEW24UY.js → YF4JMWHR.js} +2 -2
  172. package/dist/cdn/{VNCTOYDP.js → YWGUKBKF.js} +2 -2
  173. package/dist/cdn/{TE4NERKS.js → YXBI2SUE.js} +2 -2
  174. package/dist/cdn/{VL7OAKJ6.js → YZJ3TIZI.js} +2 -2
  175. package/dist/cdn/{M43J76GV.js → Z2HXPLNY.js} +2 -2
  176. package/dist/cdn/{46NIEEHK.js → Z45PGAVU.js} +2 -2
  177. package/dist/cdn/{24637DRI.js → Z7NIOFTW.js} +2 -2
  178. package/dist/cdn/{MNRNOEGG.js → ZIVOWWE7.js} +2 -2
  179. package/dist/cdn/ZLUD2KZ3.js +4 -0
  180. package/dist/cdn/{FP5TQ3WY.js → ZNCVJBYY.js} +2 -2
  181. package/dist/cdn/{DVLSZ4VQ.js → ZR2WBAX6.js} +2 -2
  182. package/dist/cdn/{UA35EQ3D.js → ZRSCDGPV.js} +2 -2
  183. package/dist/cdn/index.js +2 -2
  184. package/dist/chart-rendering/common/config-utils/index.d.ts +11 -16
  185. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +1 -0
  186. package/dist/chart-rendering/common/series/pie-chart/index.d.ts +1 -1
  187. package/dist/chart-rendering/stable/utils/memory-storage/interfaces.d.ts +1 -0
  188. package/dist/chunks/action-bar-utils.js +1 -1
  189. package/dist/chunks/axis-model-wrapper.js +1 -1
  190. package/dist/chunks/bar-chart-model.js +1 -1
  191. package/dist/chunks/bar-chart-series.js +1 -1
  192. package/dist/chunks/baseline-stacking.js +1 -1
  193. package/dist/chunks/bg_BG.js +1 -1
  194. package/dist/chunks/bg_BG2.js +1 -1
  195. package/dist/chunks/box-plot-data.js +1 -1
  196. package/dist/chunks/box-plot-model.js +1 -1
  197. package/dist/chunks/chart-ui-utils.js +1 -1
  198. package/dist/chunks/chart-ui-utils2.js +1 -1
  199. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  200. package/dist/chunks/common.js +1 -1
  201. package/dist/chunks/config-update.js +917 -911
  202. package/dist/chunks/data.js +1 -1
  203. package/dist/chunks/default.js +1 -1
  204. package/dist/chunks/gauge-model.js +1 -1
  205. package/dist/chunks/heat-chart-model.js +116 -50
  206. package/dist/chunks/histogram-data.js +1 -1
  207. package/dist/chunks/histogram-model.js +1 -1
  208. package/dist/chunks/index.js +3 -3
  209. package/dist/chunks/index2.js +1 -1
  210. package/dist/chunks/index3.js +1 -1
  211. package/dist/chunks/index4.js +1 -1
  212. package/dist/chunks/index5.js +1 -1
  213. package/dist/chunks/interfaces.js +13 -8
  214. package/dist/chunks/interfaces2.js +1 -1
  215. package/dist/chunks/interfaces3.js +1 -1
  216. package/dist/chunks/interfaces4.js +1 -1
  217. package/dist/chunks/line-chart-model.js +1 -1
  218. package/dist/chunks/model-with-baseline-stacking.js +1 -1
  219. package/dist/chunks/model-with-data-labels.js +1 -1
  220. package/dist/chunks/model-with-multi-axes.js +1 -1
  221. package/dist/chunks/model-with-rotation.js +1 -1
  222. package/dist/chunks/pie-chart-data.js +1 -1
  223. package/dist/chunks/pie-chart-model.js +1 -1
  224. package/dist/chunks/popover-ui-utils.js +1 -1
  225. package/dist/chunks/radar-chart-model.js +1 -1
  226. package/dist/chunks/resource.js +1 -1
  227. package/dist/chunks/rest-js-object-literals.js +1 -1
  228. package/dist/chunks/runtime.js +1 -1
  229. package/dist/chunks/scatterplot-model.js +1 -1
  230. package/dist/chunks/serial-chart-model.js +1 -1
  231. package/dist/chunks/series-types.js +1 -1
  232. package/dist/chunks/series.js +1 -1
  233. package/dist/chunks/sk_SK.js +1 -1
  234. package/dist/chunks/store.js +1 -1
  235. package/dist/chunks/type-guards.js +1 -1
  236. package/dist/chunks/useT9n.js +1 -1
  237. package/dist/chunks/web-component-utils.js +1 -1
  238. package/dist/components/arcgis-chart/customElement.js +188 -184
  239. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  240. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  241. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  242. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  243. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  244. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  245. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  246. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  247. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  248. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  249. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  250. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  251. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  252. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  253. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  254. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  255. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  256. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  257. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  258. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  259. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  260. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  261. package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
  262. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  263. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  264. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  265. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  266. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  267. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  268. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  269. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  270. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  271. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  272. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  273. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  274. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  275. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
  276. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  277. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  278. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  279. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  280. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  281. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  282. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  283. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  284. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  285. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  286. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  287. package/dist/docs/api.json +2 -2
  288. package/dist/docs/docs.json +2 -2
  289. package/dist/docs/web-types.json +1 -1
  290. package/dist/index.js +1 -1
  291. package/dist/json-schema/index.d.ts +4 -0
  292. package/dist/loader.js +1 -1
  293. package/dist/model/heat-chart-model/heat-chart-model.d.ts +50 -1
  294. package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +18 -1
  295. package/dist/model.js +1 -1
  296. package/dist/spec/data-source.d.ts +5 -0
  297. package/dist/spec/web-chart.d.ts +1 -1
  298. package/dist/utils/chart-config/converter/index.d.ts +3 -3
  299. package/package.json +3 -3
  300. package/dist/cdn/HAKFEWYH.js +0 -4
  301. package/dist/cdn/R4DIM5IL.js +0 -4
@@ -1,48 +1,48 @@
1
- import { W as S, u as W, d as Vi, m as ne, b as _, g as me, t as be, e as ke, a as T, i as E, n as U, S as zt, o as Ii } from "./series-types.js";
1
+ import { W as S, d as Ii, u as W, m as ne, b as _, g as me, t as be, e as ke, a as A, i as E, n as U, S as zt, o as $i } from "./series-types.js";
2
2
  import "@arcgis/toolkit/intl";
3
- import { cloneDeep as Ie, isArray as vt, isEmpty as $i, isEqual as Pe, sortBy as Ot } from "lodash-es";
4
- import { extent as Ri, mean as ki, max as ji, min as Wi, sum as Qi, rollup as Hi } from "d3-array";
5
- import { b5 as pt, cz as p, p as V, c8 as Ut, c4 as z, a5 as Gt, B as _t, d as ae, a as he, T as Y, cl as lt, b3 as $e, H as re, r as se, 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 zi, c9 as qt, cb as Yt, N as I, k as K, F as G, a3 as j, cu as Kt, D as R, bU as Ui, I as Nt, bz as ye, bH as H, E as Gi, i as Le, z as je, cc as Et, aV as Ge, m as Tt, b9 as Ne, c0 as Qe, a2 as Jt, A as Xt, ce as Se, by as _e, bL as _i, b_ as Yi, b6 as Vt, R as Ki, bj as Zt, bw as Ji, bk as Xi, bY as Zi, bZ as ei, bs as ea, ck as mt, c2 as ta, b7 as ia, bt as aa, U as na, n as Fe, bN as ti, bA as ra, bn as ii, bB as sa, bC as oa, Q as la, P as It, bD as ai, bv as ca, bh as ni, bu as ua, bx as da, bf as fa, bi as ma, X as ri, b8 as ga } from "./interfaces.js";
3
+ import { cloneDeep as Ie, isArray as vt, isEmpty as Ri, isEqual as Pe, sortBy as Ot } from "lodash-es";
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 V, c8 as Ut, c4 as z, a5 as Gt, B as _t, d as ae, a as he, T as Y, cl as lt, b3 as $e, H as re, r as se, 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 Ui, c9 as qt, cb as Yt, N as $, k as K, F as G, a3 as j, cu as Kt, D as k, bU as Gi, I as Nt, bz as ye, bH as H, E as _i, i as Le, z as je, cc as Et, aV as Ge, m as Tt, b9 as Ne, c0 as Qe, a2 as Jt, A as Xt, ce as Se, by as _e, bL as Yi, b_ as Ki, b6 as Vt, R as Ji, bj as Zt, bw as Xi, bk as Zi, bY as ea, bZ as ei, bs as ta, ck as mt, c2 as ia, b7 as aa, bt as na, U as ra, n as Fe, bN as ti, bA as sa, bn as ii, bB as oa, bC as la, Q as ca, P as It, bD as ai, bV as ua, bv as da, bh as ni, bu as fa, bx as ma, bf as ga, bi as ya, X as ri, b8 as pa } 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";
9
9
  import "@arcgis/core/rest/support/StatisticDefinition.js";
10
10
  import "@arcgis/core/time/TimeExtent.js";
11
11
  import "@arcgis/core/core/promiseUtils.js";
12
- import ya from "@arcgis/core/request.js";
12
+ import ha from "@arcgis/core/request.js";
13
13
  import "./runtime.js";
14
14
  import "@arcgis/toolkit/dom";
15
- import { b as pa, R as rt, a as Ye, j as ie } from "./rest-js-object-literals.js";
15
+ import { b as Sa, R as rt, a as Ye, j as ie } from "./rest-js-object-literals.js";
16
16
  import { C as b } from "./interfaces4.js";
17
- import * as ha from "@arcgis/core/renderers/support/jsonUtils.js";
17
+ import * as Fa from "@arcgis/core/renderers/support/jsonUtils.js";
18
18
  import * as gt from "@arcgis/core/symbols/support/symbolUtils.js";
19
- import Sa from "@arcgis/core/Graphic.js";
19
+ import ba from "@arcgis/core/Graphic.js";
20
20
  import { u as yt } from "./index2.js";
21
21
  import { substitute as ue } from "@arcgis/core/intl.js";
22
- import { d as Fa } from "./index3.js";
22
+ import { d as xa } from "./index3.js";
23
23
  import $t from "@arcgis/core/layers/support/FeatureFilter.js";
24
- import ba from "@arcgis/core/smartMapping/statistics/histogram.js";
24
+ import Ca from "@arcgis/core/smartMapping/statistics/histogram.js";
25
25
  import Rt from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
26
- import { linearRegression as xa, linearRegressionLine as Ca, rSquared as Ba } from "simple-statistics";
27
- import { D as de, c as va } from "./index.js";
28
- import { h as Na } from "./index4.js";
26
+ import { linearRegression as Ba, linearRegressionLine as va, rSquared as Na } from "simple-statistics";
27
+ import { D as de, c as Ta } from "./index.js";
28
+ import { h as Aa } from "./index4.js";
29
29
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
30
30
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
31
- v4.34.0-next.154 */
32
- async function Ta(t, e) {
31
+ v4.34.0-next.155 */
32
+ async function Pa(t, e) {
33
33
  const i = e.errors[t];
34
34
  throw new pt(e.modalHeaders.error, i ?? e.errors.simpleError);
35
35
  }
36
36
  function pe(t) {
37
37
  return t.axes?.[0]?.valueFormat?.type;
38
38
  }
39
- function so(t) {
39
+ function lo(t) {
40
40
  return t.intlOptions;
41
41
  }
42
42
  function J(t) {
43
43
  return t?.type === S.NumberAxisFormat;
44
44
  }
45
- function oo(t) {
45
+ function co(t) {
46
46
  return J(t) && t.intlOptions?.style === "percent";
47
47
  }
48
48
  function fe(t) {
@@ -51,73 +51,73 @@ function fe(t) {
51
51
  function Ae(t) {
52
52
  return t?.type === S.DateAxisFormat;
53
53
  }
54
- function lo(t) {
54
+ function uo(t) {
55
55
  const { oldConfig: e, newConfig: i, rotationChanged: a } = t;
56
56
  return a ? [!0, !0] : [
57
57
  e.horizontalAxisLabelsBehavior !== i.horizontalAxisLabelsBehavior,
58
58
  e.verticalAxisLabelsBehavior !== i.verticalAxisLabelsBehavior
59
59
  ];
60
60
  }
61
- function Aa(t) {
61
+ function Ma(t) {
62
62
  return J(t?.[1]?.valueFormat) && (t?.[2]?.valueFormat === void 0 || J(t[2].valueFormat));
63
63
  }
64
- function Pa(t) {
64
+ function La(t) {
65
65
  return J(t?.[1]?.valueFormat) && (t?.[2]?.valueFormat === void 0 || J(t[2].valueFormat));
66
66
  }
67
- function Ma(t) {
67
+ function wa(t) {
68
68
  return (fe(t?.[0]?.valueFormat) || Ae(t?.[0]?.valueFormat)) && J(t?.[1]?.valueFormat) && (t?.[2]?.valueFormat === void 0 || J(t[2].valueFormat));
69
69
  }
70
- function La(t) {
70
+ function Da(t) {
71
71
  return fe(t?.[0]?.valueFormat) && fe(t?.[1]?.valueFormat) || Ae(t?.[0]?.valueFormat) && fe(t?.[1]?.valueFormat) || Ae(t?.[0]?.valueFormat) && Ae(t?.[1]?.valueFormat);
72
72
  }
73
- function wa(t) {
73
+ function Oa(t) {
74
74
  return (fe(t?.[0]?.valueFormat) || Ae(t?.[0]?.valueFormat)) && J(t?.[1]?.valueFormat);
75
75
  }
76
- function Da(t) {
76
+ function qa(t) {
77
77
  return J(t?.[0]?.valueFormat) && J(t?.[1]?.valueFormat);
78
78
  }
79
- function Oa(t) {
79
+ function Ea(t) {
80
80
  return J(t?.[0]?.valueFormat) && J(t?.[1]?.valueFormat);
81
81
  }
82
- function qa(t) {
82
+ function Va(t) {
83
83
  return J(t?.[0]?.valueFormat);
84
84
  }
85
- async function co(t) {
85
+ async function fo(t) {
86
86
  const { chartType: e, axesConfig: i, errorStrings: a } = t;
87
87
  let n, r;
88
88
  switch (e) {
89
89
  case S.GaugeSeries:
90
- n = qa, r = "invalidValueFormatForGauge";
90
+ n = Va, r = "invalidValueFormatForGauge";
91
91
  break;
92
92
  case S.ScatterSeries:
93
- n = Da, r = "invalidValueFormatForScatterplot";
93
+ n = qa, r = "invalidValueFormatForScatterplot";
94
94
  break;
95
95
  case S.HistogramSeries:
96
- n = Oa, r = "invalidValueFormatForHistogram";
96
+ n = Ea, r = "invalidValueFormatForHistogram";
97
97
  break;
98
98
  case S.LineSeries:
99
- n = Aa, r = "invalidValueFormatForLineChart";
99
+ n = Ma, r = "invalidValueFormatForLineChart";
100
100
  break;
101
101
  case S.BarSeries:
102
- n = Pa, r = "invalidValueFormatForBarChart";
102
+ n = La, r = "invalidValueFormatForBarChart";
103
103
  break;
104
104
  case S.ComboLineAndBarSeries:
105
- n = wa, r = "invalidValueFormatForComboBarLineChart";
105
+ n = Oa, r = "invalidValueFormatForComboBarLineChart";
106
106
  break;
107
107
  case S.BoxPlotSeries:
108
- n = Ma, r = "invalidValueFormatForBoxPlot";
108
+ n = wa, r = "invalidValueFormatForBoxPlot";
109
109
  break;
110
110
  case S.HeatSeries:
111
- n = La, r = "invalidValueFormatForHeatChart";
111
+ n = Da, r = "invalidValueFormatForHeatChart";
112
112
  break;
113
113
  }
114
- n !== void 0 && r !== void 0 && (n(i) || await Ta(r, a));
114
+ n !== void 0 && r !== void 0 && (n(i) || await Pa(r, a));
115
115
  }
116
- function Ea(t) {
116
+ function Ia(t) {
117
117
  const { isXAxis: e, chartType: i, valueFormat: a, isAxisForHistogramOverlaySeries: n } = t;
118
118
  return e && (fe(a) || i === S.HistogramSeries && !n || i === S.BarSeries && J(a));
119
119
  }
120
- function uo(t) {
120
+ function mo(t) {
121
121
  const { chartConfig: e, isSecondValueAxis: i, seriesIds: a } = t;
122
122
  let n = a;
123
123
  return e.axes?.length === 3 && (n = e.series.map((r) => {
@@ -125,53 +125,7 @@ function uo(t) {
125
125
  return (a === void 0 || a.includes(r.id)) && (i === !0 && "assignToSecondValueAxis" in r && r.assignToSecondValueAxis === !0 || i !== !0 && (!("assignToSecondValueAxis" in r) || r.assignToSecondValueAxis !== !0)) && ({ id: s } = r), s;
126
126
  }).filter((r) => r !== "")), n;
127
127
  }
128
- function Va(t, e) {
129
- return t[0].dataTransformationType !== e[0].dataTransformationType;
130
- }
131
- function Ia(t, e) {
132
- return t[0].binCount !== e[0].binCount;
133
- }
134
- function fo(t, e) {
135
- let i = !0;
136
- const a = W(t?.series), n = W(e?.series);
137
- return a !== n && (i = 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), i;
138
- }
139
- function St(t, e) {
140
- return t !== void 0 && e !== void 0 && e > 0;
141
- }
142
- function mo(t) {
143
- const { chartConfig: e, queryObject: i, chartData: a } = t;
144
- let n = [];
145
- const r = V(e.series), s = Ut(e), o = z(i), c = e.chartRenderer ?? o?.renderer?.toJSON();
146
- return n = e.series.map((l, u) => {
147
- const d = W([l]);
148
- let f;
149
- 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 = As({
150
- dataItem: a[0],
151
- seriesConfig: l,
152
- chartSubType: r,
153
- colorMatch: s,
154
- rendererType: c?.type
155
- })?.color : f === void 0 && (f = Gt({ colorIndex: u }))), f;
156
- }).filter((l) => l !== void 0), n;
157
- }
158
- function Ft(t) {
159
- return t !== p.PieNoAggregation && t !== p.BarAndLineNoAggregation && t !== p.BarAndLineSplitByNoAggregation;
160
- }
161
- function $a(t) {
162
- const e = V(t.series);
163
- return e === p.BarAndLineFromFields || e === p.PieFromFields || e === p.BoxPlotMonoField || e === p.BoxPlotMultiFields || e === p.BoxPlotMonoFieldAndSplitBy || e === p.BoxPlotMultiFieldsAndSplitBy;
164
- }
165
- function He(t) {
166
- return t && "showMean" in t && typeof t.showMean == "boolean" ? t.showMean : !1;
167
- }
168
- function Ra(t) {
169
- return t && "showOutliers" in t && typeof t.showOutliers == "boolean" ? t.showOutliers : void 0;
170
- }
171
- function go() {
172
- return `{name} {${b.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
173
- }
174
- const ka = {
128
+ const si = {
175
129
  ...b,
176
130
  chartPadding: 5,
177
131
  footerContainer: { ...b.footerContainer, paddingTop: 0, paddingBottom: 0 },
@@ -227,7 +181,7 @@ const ka = {
227
181
  // blue
228
182
  },
229
183
  legend: {
230
- position: Vi.Bottom,
184
+ position: Ii.Bottom,
231
185
  chartPadding: 40,
232
186
  legendPadding: 20,
233
187
  size: 20
@@ -235,7 +189,7 @@ const ka = {
235
189
  emptyCells: {
236
190
  symbol: {
237
191
  type: rt.SFS,
238
- style: pa.Solid,
192
+ style: Sa.Solid,
239
193
  color: b.grayColor
240
194
  },
241
195
  text: "null"
@@ -246,7 +200,53 @@ const ka = {
246
200
  },
247
201
  heatChartFirstDayOfWeek: 7
248
202
  };
203
+ function $a(t, e) {
204
+ return t[0].dataTransformationType !== e[0].dataTransformationType;
205
+ }
206
+ function Ra(t, e) {
207
+ return t[0].binCount !== e[0].binCount;
208
+ }
209
+ function go(t, e) {
210
+ let i = !0;
211
+ const a = W(t?.series), n = W(e?.series);
212
+ return a !== n && (i = 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), i;
213
+ }
214
+ function St(t, e) {
215
+ return t !== void 0 && e !== void 0 && e > 0;
216
+ }
217
+ function yo(t) {
218
+ const { chartConfig: e, queryObject: i, chartData: a } = t;
219
+ let n = [];
220
+ const r = V(e.series), s = Ut(e), o = z(i), c = e.chartRenderer ?? o?.renderer?.toJSON();
221
+ return n = e.series.map((l, u) => {
222
+ const d = W([l]);
223
+ 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 = Ms({
225
+ dataItem: a[0],
226
+ seriesConfig: l,
227
+ chartSubType: r,
228
+ colorMatch: s,
229
+ rendererType: c?.type
230
+ })?.color : f === void 0 && (f = Gt({ colorIndex: u }))), f;
231
+ }).filter((l) => l !== void 0), n;
232
+ }
233
+ function Ft(t) {
234
+ return t !== p.PieNoAggregation && t !== p.BarAndLineNoAggregation && t !== p.BarAndLineSplitByNoAggregation;
235
+ }
236
+ function ka(t) {
237
+ const e = V(t.series);
238
+ return e === p.BarAndLineFromFields || e === p.PieFromFields || e === p.BoxPlotMonoField || e === p.BoxPlotMultiFields || e === p.BoxPlotMonoFieldAndSplitBy || e === p.BoxPlotMultiFieldsAndSplitBy;
239
+ }
240
+ function He(t) {
241
+ return t && "showMean" in t && typeof t.showMean == "boolean" ? t.showMean : !1;
242
+ }
249
243
  function ja(t) {
244
+ return t && "showOutliers" in t && typeof t.showOutliers == "boolean" ? t.showOutliers : void 0;
245
+ }
246
+ function po() {
247
+ return `{name} {${b.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
248
+ }
249
+ function Wa(t) {
250
250
  let e;
251
251
  return t?.[0] !== void 0 && (e = t.reduce(
252
252
  (i, a) => ({
@@ -272,12 +272,12 @@ function ze(t) {
272
272
  let c = e;
273
273
  const { originalCategoryValue: l, originalDateValue: u, typeOrDomainIdValue: d } = b;
274
274
  if (i !== void 0) {
275
- const f = s ? bs(i) : void 0;
276
- a !== void 0 && i[a] !== void 0 ? c = i[a] : f !== void 0 ? c = f : n === !1 && i[d] !== void 0 ? c = i[d] : i[u] !== void 0 ? c = i[u] : i[l] !== void 0 ? c = i[l] : i[ae] !== void 0 && (c = i[ae]), !r && c === null && (c = "null", o?.series?.[0].type === S.BarSeries && (c = o.series?.[0]?.nullCategory?.text ?? ka.nullCategory?.text ?? c));
275
+ const f = s ? Cs(i) : void 0;
276
+ a !== void 0 && i[a] !== void 0 ? c = i[a] : f !== void 0 ? c = f : n === !1 && i[d] !== void 0 ? c = i[d] : i[u] !== void 0 ? c = i[u] : i[l] !== void 0 ? c = i[l] : i[ae] !== void 0 && (c = i[ae]), !r && c === null && (c = "null", o?.series?.[0].type === S.BarSeries && (c = o.series?.[0]?.nullCategory?.text ?? si.nullCategory?.text ?? c));
277
277
  }
278
278
  return c;
279
279
  }
280
- function Wa(t) {
280
+ function Qa(t) {
281
281
  return t?.[b.typeOrDomainIdValue] !== void 0 ? t?.[b.typeOrDomainIdValue] : t?.[b.originalCategoryValue];
282
282
  }
283
283
  function Ue(t) {
@@ -309,7 +309,7 @@ function Ue(t) {
309
309
  });
310
310
  }
311
311
  }
312
- function Qa(t) {
312
+ function Ha(t) {
313
313
  const { arrayToSort: e, orderBy: i, sortingField: a, fieldList: n, isByFieldsChart: r, preferLabel: s } = t;
314
314
  e !== void 0 && e.length > 1 && !ee(a) && i !== void 0 && i.length > 0 && e.sort((o, c) => {
315
315
  let l = o[a];
@@ -322,7 +322,7 @@ function Qa(t) {
322
322
  return f === -1 && (f = i.length), u - f;
323
323
  });
324
324
  }
325
- function si(t, e) {
325
+ function oi(t, e) {
326
326
  const i = t;
327
327
  if (e?.[0] !== void 0 && V(e) === p.PieFromFields) {
328
328
  const { x: a, y: n } = e[0];
@@ -330,7 +330,7 @@ function si(t, e) {
330
330
  }
331
331
  return i;
332
332
  }
333
- function oi(t, e) {
333
+ function li(t, e) {
334
334
  const i = W(e);
335
335
  let a = t;
336
336
  const n = e?.[0];
@@ -357,7 +357,7 @@ function bt(t) {
357
357
  const a = lt(e);
358
358
  return a.isInItem && delete e[a.expr ?? ""], e;
359
359
  }
360
- function Ha(t, e) {
360
+ function za(t, e) {
361
361
  let i = t;
362
362
  const a = W(e);
363
363
  let n = _t(i);
@@ -370,8 +370,8 @@ function Ha(t, e) {
370
370
  case S.PieSeries:
371
371
  {
372
372
  n = n.map(bt), i = { dataItems: n };
373
- const { timeIntervalInfo: r } = t ?? {};
374
- $i(r) || (i.timeIntervalInfo = r);
373
+ const { timeIntervalInfo: r, serverLimitReached: s } = t ?? {};
374
+ Ri(r) || (i.timeIntervalInfo = r), s !== void 0 && (i.serverLimitReached = s);
375
375
  }
376
376
  break;
377
377
  case S.ScatterSeries:
@@ -383,12 +383,12 @@ function Ha(t, e) {
383
383
  }
384
384
  return i;
385
385
  }
386
- function li(t) {
386
+ function ci(t) {
387
387
  const { data: e, seriesConfig: i } = t;
388
388
  let a = Ie(e);
389
- return a !== void 0 && (a = oi(a, i), a = Ha(a, i), a = si(a, i)), a;
389
+ return a !== void 0 && (a = li(a, i), a = za(a, i), a = oi(a, i)), a;
390
390
  }
391
- function ci(t) {
391
+ function ui(t) {
392
392
  const { statsMap: e, dataContext: i, chartLimits: a } = t;
393
393
  let n = !1;
394
394
  if (e !== void 0) {
@@ -397,7 +397,7 @@ function ci(t) {
397
397
  } else i !== void 0 && (n = b.scatterplotAggregationFields.dataContextXMinField in i);
398
398
  return n;
399
399
  }
400
- function za(t) {
400
+ function Ua(t) {
401
401
  let e = !0;
402
402
  const i = W(t.series);
403
403
  if (i === S.BarSeries || i === S.LineSeries || i === S.ComboLineAndBarSeries) {
@@ -406,10 +406,10 @@ function za(t) {
406
406
  }
407
407
  return e;
408
408
  }
409
- function Ua(t) {
409
+ function Ga(t) {
410
410
  return V(t.series) !== p.PieNoAggregation;
411
411
  }
412
- function Ga(t) {
412
+ function _a(t) {
413
413
  const { dataContext: e, chartConfig: i, chartLimits: a } = t;
414
414
  let n = !0;
415
415
  if (i !== void 0)
@@ -417,18 +417,18 @@ function Ga(t) {
417
417
  case S.BarSeries:
418
418
  case S.LineSeries:
419
419
  case S.ComboLineAndBarSeries:
420
- n = za(i);
420
+ n = Ua(i);
421
421
  break;
422
422
  case S.ScatterSeries:
423
- n = ci({ dataContext: e, chartLimits: a });
423
+ n = ui({ dataContext: e, chartLimits: a });
424
424
  break;
425
425
  case S.PieSeries:
426
- n = Ua(i);
426
+ n = Ga(i);
427
427
  break;
428
428
  }
429
429
  return n;
430
430
  }
431
- function _a(t, e) {
431
+ function Ya(t, e) {
432
432
  let i = t;
433
433
  switch (e) {
434
434
  case _.Log:
@@ -458,13 +458,13 @@ function st(t) {
458
458
  }
459
459
  }), r;
460
460
  }
461
- function Ya(t, e) {
461
+ function Ka(t, e) {
462
462
  return JSON.stringify(t.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
463
463
  }
464
- function Ka(t, e) {
464
+ function Ja(t, e) {
465
465
  return JSON.stringify(t.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(t.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (t.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || t.outTimeZone !== e.outTimeZone || (t.nullPolicy ?? ne.Null) !== (e.nullPolicy ?? ne.Null);
466
466
  }
467
- function Ja(t) {
467
+ function Xa(t) {
468
468
  const { oldConfig: e, newConfig: i, fieldList: a } = t, n = e.series[0], r = i.series[0];
469
469
  let s = !1;
470
470
  if (n.type === S.ScatterSeries && r.type === S.ScatterSeries && a && a.length > 0) {
@@ -476,16 +476,16 @@ function Ja(t) {
476
476
  }
477
477
  return s;
478
478
  }
479
- function yo(t, e) {
479
+ function ho(t, e) {
480
480
  return (t.colorMatch ?? !1) !== (e.colorMatch ?? !1);
481
481
  }
482
- function po(t, e) {
482
+ function So(t, e) {
483
483
  return (t.legend?.visible ?? !1) !== (e.legend?.visible ?? !1) || JSON.stringify(t.legend?.body) !== JSON.stringify(e.legend?.body);
484
484
  }
485
- function ho(t, e) {
485
+ function Fo(t, e) {
486
486
  return JSON.stringify(t.series[0]?.gradientRules) !== JSON.stringify(e.series[0]?.gradientRules);
487
487
  }
488
- function So(t) {
488
+ function bo(t) {
489
489
  const { oldConfig: e, newConfig: i } = t;
490
490
  let a = !1;
491
491
  const n = e.series[0], r = i.series[0], s = W(e.series), o = W(i.series);
@@ -504,7 +504,7 @@ function So(t) {
504
504
  function kt(t, e) {
505
505
  return e.length !== t.length;
506
506
  }
507
- function Xa(t) {
507
+ function Za(t) {
508
508
  const { oldSeries: e, newConfig: i, oldTimeIntervalInfo: a, setTimeBinningInfoWhenNotProvided: n } = t, r = i.series?.[0];
509
509
  let s = !1, o = !1, c = !1;
510
510
  if (se(r) && ve({
@@ -517,7 +517,7 @@ function Xa(t) {
517
517
  }
518
518
  return { timeBinningChanged: s, timeIntervalUnitChanged: o, newTimeBinningWillBeCalculated: c };
519
519
  }
520
- function Za(t) {
520
+ function en(t) {
521
521
  const { oldConfig: e, newConfig: i, behaviorAfterLimit: a } = t, n = e.series, r = i.series;
522
522
  let s = !1, o = !1;
523
523
  (a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !Pe(e.orderOptions?.orderByFields, i.orderOptions?.orderByFields));
@@ -530,7 +530,7 @@ function Za(t) {
530
530
  );
531
531
  return s = !Pe(c, l), s || o;
532
532
  }
533
- function en(t, e) {
533
+ function tn(t, e) {
534
534
  let i = !1;
535
535
  if (e[0].x !== t[0].x)
536
536
  i = !0;
@@ -543,38 +543,38 @@ function en(t, e) {
543
543
  }
544
544
  return i;
545
545
  }
546
- function tn(t, e) {
546
+ function an(t, e) {
547
547
  return (t ?? !1) !== (e?.filterBySelection ?? !1);
548
548
  }
549
- function ui(t) {
549
+ function di(t) {
550
550
  const { currentSelectionOIDs: e, options: i } = t;
551
551
  let a = !1;
552
552
  return i?.filterBySelection === !0 && (a = e?.length !== i?.selectionData?.selectionOIDs?.length || !Pe(e, i?.selectionData?.selectionOIDs)), a;
553
553
  }
554
- function an(t, e) {
554
+ function nn(t, e) {
555
555
  return JSON.stringify(t.dataFilters) !== JSON.stringify(e.dataFilters);
556
556
  }
557
- function nn(t, e) {
557
+ function rn(t, e) {
558
558
  return se(t.series[0]) && se(e.series[0]) && (t.series[0].binTemporalData ?? b.binTemporalData) !== (e.series[0].binTemporalData ?? b.binTemporalData);
559
559
  }
560
- function Fo(t, e) {
560
+ function xo(t, e) {
561
561
  return t?.length !== e?.length || t?.some((i, a) => {
562
562
  const n = ge({ where: i?.query?.where }), r = ge({ where: e?.[a]?.query?.where });
563
563
  return n !== r;
564
564
  });
565
565
  }
566
- function bo(t, e) {
566
+ function Co(t, e) {
567
567
  const i = re(t), a = re(e);
568
568
  return JSON.stringify(i) !== JSON.stringify(a);
569
569
  }
570
- function rn(t, e) {
570
+ function sn(t, e) {
571
571
  return He(t) !== He(e);
572
572
  }
573
- function sn(t, e) {
573
+ function on(t, e) {
574
574
  const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = V(e.series), r = n === p.BarAndLineNoAggregation || n === p.BarAndLineSplitByNoAggregation, s = i === S.DateAxisFormat && a === S.NumberAxisFormat, o = i === S.NumberAxisFormat && a === S.DateAxisFormat;
575
575
  return i !== a && (r || s || o);
576
576
  }
577
- function xo(t) {
577
+ function Bo(t) {
578
578
  const {
579
579
  forceDataUpdate: e,
580
580
  oldConfig: i,
@@ -610,19 +610,19 @@ function xo(t) {
610
610
  tooltipFieldsChanged: !1
611
611
  }
612
612
  };
613
- switch (y.common.queryChanged = Za({
613
+ switch (y.common.queryChanged = en({
614
614
  oldConfig: i,
615
615
  newConfig: a,
616
616
  behaviorAfterLimit: n?.chartLimits?.behaviorAfterLimit
617
- }), y.common.configFiltersChanged = an(i, a), y.common.xOrYChanged = en(u, l), y.common.filterBySelectionChanged = tn(r, n), y.common.dataForFilterBySelectionChanged = ui({
617
+ }), y.common.configFiltersChanged = nn(i, a), y.common.xOrYChanged = tn(u, l), y.common.filterBySelectionChanged = an(r, n), y.common.dataForFilterBySelectionChanged = di({
618
618
  currentSelectionOIDs: o,
619
619
  options: n
620
- }), y.common.binTemporalDataChanged = nn(i, a), y.common.valueFormatChangeRequiresNewData = sn(
620
+ }), y.common.binTemporalDataChanged = rn(i, a), y.common.valueFormatChangeRequiresNewData = on(
621
621
  i,
622
622
  a
623
623
  ), y.common = {
624
624
  ...y.common,
625
- ...Xa({
625
+ ...Za({
626
626
  oldSeries: u,
627
627
  newConfig: a,
628
628
  oldTimeIntervalInfo: s,
@@ -630,7 +630,7 @@ function xo(t) {
630
630
  })
631
631
  }, m = Object.values(y.common).some((h) => h), d) {
632
632
  case S.HistogramSeries:
633
- y.histogram.dataPropsChanged = Ia(u, l) || Va(u, l);
633
+ y.histogram.dataPropsChanged = Ra(u, l) || $a(u, l);
634
634
  break;
635
635
  case S.LineSeries:
636
636
  case S.BarSeries:
@@ -638,16 +638,16 @@ function xo(t) {
638
638
  y.common.numberOfSeriesChanged = kt(u, l);
639
639
  break;
640
640
  case S.BoxPlotSeries:
641
- y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged = rn(i, a);
641
+ y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged = sn(i, a);
642
642
  break;
643
643
  case S.GaugeSeries:
644
- y.gauge.valueConversionChanged = Ya(i, a);
644
+ y.gauge.valueConversionChanged = Ka(i, a);
645
645
  break;
646
646
  case S.HeatSeries:
647
- y.heatChart.binningChanged = Ka(i, a);
647
+ y.heatChart.binningChanged = Ja(i, a);
648
648
  break;
649
649
  case S.ScatterSeries:
650
- y.scatterPlot.tooltipFieldsChanged = Ja({
650
+ y.scatterPlot.tooltipFieldsChanged = Xa({
651
651
  oldConfig: i,
652
652
  newConfig: a,
653
653
  fieldList: c
@@ -656,16 +656,16 @@ function xo(t) {
656
656
  }
657
657
  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
658
  }
659
- function Co(t) {
659
+ function vo(t) {
660
660
  return t.common.timeIntervalUnitChanged || t.common.newTimeBinningWillBeCalculated || t.common.dataForFilterBySelectionChanged || t.common.filterBySelectionChanged || t.common.configFiltersChanged || t.common.numberOfSeriesChanged || t.common.queryChanged || t.common.xOrYChanged;
661
661
  }
662
- function on(t, e) {
662
+ function ln(t, e) {
663
663
  let i = !0;
664
664
  if (t !== void 0 && t.length > 1 && !ee(e)) {
665
665
  let a = 0, n = 0, r = 0;
666
666
  t.forEach((s) => {
667
667
  const o = s[e];
668
- !zi(o) || o === 0 ? r += 1 : o > 0 ? a += 1 : n += 1;
668
+ !Ui(o) || o === 0 ? r += 1 : o > 0 ? a += 1 : n += 1;
669
669
  }), i = r === t.length || a >= 0 && n === 0 || a === 0 && n >= 0;
670
670
  }
671
671
  return i;
@@ -676,7 +676,7 @@ function it(t) {
676
676
  const r = [];
677
677
  return typeof e == "number" && Number.isFinite(e) && r.push(e), typeof i == "number" && Number.isFinite(i) && r.push(i * a), r.length > 0 && (n = Math.min(...r)), n;
678
678
  }
679
- function di(t, e) {
679
+ function fi(t, e) {
680
680
  let i;
681
681
  const {
682
682
  maxBarChartSeriesCount: a,
@@ -740,7 +740,7 @@ function jt(t, e) {
740
740
  }
741
741
  return i;
742
742
  }
743
- function ln(t) {
743
+ function cn(t) {
744
744
  let e = !1;
745
745
  if (t !== void 0) {
746
746
  const i = t.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 +748,9 @@ function ln(t) {
748
748
  }
749
749
  return e;
750
750
  }
751
- function Bo(t) {
751
+ function No(t) {
752
752
  let e;
753
- if (ln(t)) {
753
+ if (cn(t)) {
754
754
  const i = /%(\d{1,3}(.\d+)?)$/u, a = /(\d{1,3}(.\d+)?)%$/u, n = t.replace(" ", ""), r = i.exec(n)?.[1] ?? a.exec(n)?.[1];
755
755
  r !== void 0 && (e = Number(r));
756
756
  }
@@ -777,45 +777,45 @@ function le(t) {
777
777
  bubbles: !0
778
778
  };
779
779
  }
780
- function vo(t) {
780
+ function To(t) {
781
781
  const { data: e, seriesConfig: i, htmlContainer: a } = t;
782
782
  if (a && e) {
783
- const n = li({ data: e, seriesConfig: i });
783
+ const n = ci({ data: e, seriesConfig: i });
784
784
  a.dispatchEvent(
785
785
  new window.CustomEvent(oe.DataProcessComplete, le(n))
786
786
  );
787
787
  }
788
788
  }
789
- function No(t) {
789
+ function Ao(t) {
790
790
  const { data: e, chartConfig: i, htmlContainer: a } = t;
791
791
  if (a && e) {
792
- const n = ms(e, i);
792
+ const n = ys(e, i);
793
793
  a.dispatchEvent(new window.CustomEvent(oe.DataFetchComplete, le(n)));
794
794
  }
795
795
  }
796
- function To(t, e) {
796
+ function Po(t, e) {
797
797
  e && e.dispatchEvent(
798
798
  new window.CustomEvent(oe.LegendItemVisibilityChange, le(t))
799
799
  );
800
800
  }
801
- function Ao(t, e) {
801
+ function Mo(t, e) {
802
802
  e && e.dispatchEvent(new window.CustomEvent(oe.UpdateComplete, le(t)));
803
803
  }
804
- function Po(t) {
804
+ function Lo(t) {
805
805
  t && t.dispatchEvent(new window.CustomEvent(oe.RenderingComplete, le()));
806
806
  }
807
- function Mo(t) {
807
+ function wo(t) {
808
808
  const { data: e, seriesConfig: i, htmlContainer: a } = t;
809
809
  if (a) {
810
810
  const n = e;
811
811
  let r = Ie(e.selectionItems);
812
- r && (r = oi(r, i), r = r.map(bt), r = si(r, i), n.selectionItems = r), a.dispatchEvent(new window.CustomEvent(oe.SelectionComplete, le(n)));
812
+ r && (r = li(r, i), r = r.map(bt), r = oi(r, i), n.selectionItems = r), a.dispatchEvent(new window.CustomEvent(oe.SelectionComplete, le(n)));
813
813
  }
814
814
  }
815
- function Lo(t) {
815
+ function Do(t) {
816
816
  t && t.dispatchEvent(new window.CustomEvent(oe.TooManySelectedElements, le()));
817
817
  }
818
- function wo(t) {
818
+ function Oo(t) {
819
819
  const { data: e, htmlContainer: i, chartId: a, colorMatchApplied: n } = t;
820
820
  i && i.dispatchEvent(
821
821
  new window.CustomEvent(
@@ -828,64 +828,64 @@ function wo(t) {
828
828
  )
829
829
  );
830
830
  }
831
- function Do(t, e) {
831
+ function qo(t, e) {
832
832
  e && e.dispatchEvent(new window.CustomEvent(oe.AxesMinMaxChange, le(t)));
833
833
  }
834
- function Oo(t, e) {
834
+ function Eo(t, e) {
835
835
  e && e.dispatchEvent(new window.CustomEvent(oe.BadDataWarningRaise, le(t)));
836
836
  }
837
- function cn(t) {
837
+ function un(t) {
838
838
  const { data: e, htmlContainer: i } = t;
839
839
  i && e && i.dispatchEvent(new window.CustomEvent(oe.SeriesOrder, le(e)));
840
840
  }
841
- function qo(t, e) {
841
+ function Vo(t, e) {
842
842
  let i, a, n, r;
843
843
  return se(t.series[0]) && (i = t.series[0].temporalBinning?.unit, n = t.series[0].temporalBinning?.size), se(e.series[0]) && (a = e.series[0].temporalBinning?.unit, r = e.series[0].temporalBinning?.size), St(i, n) && !St(a, r);
844
844
  }
845
- function Eo(t, e) {
845
+ function Io(t, e) {
846
846
  return t.axes?.length === 3 && e.axes?.length === 2 || t.axes?.length === 2 && e.axes?.length === 3;
847
847
  }
848
- function Vo(t, e) {
848
+ function $o(t, e) {
849
849
  return JSON.stringify(t.series.map((i) => i.assignToSecondValueAxis ?? !1)) !== JSON.stringify(e.series.map((i) => i.assignToSecondValueAxis ?? !1));
850
850
  }
851
- function Io(t, e) {
851
+ function Ro(t, e) {
852
852
  const i = t.axes?.map((n) => n?.guides?.map((r) => r?.above === !0)), a = e.axes?.map((n) => n?.guides?.map((r) => r?.above === !0));
853
853
  return JSON.stringify(i) !== JSON.stringify(a);
854
854
  }
855
- function $o(t, e) {
855
+ function ko(t, e) {
856
856
  return qt(t) !== qt(e);
857
857
  }
858
- function Ro(t) {
858
+ function jo(t) {
859
859
  return W(t.series) !== S.BoxPlotSeries ? b.xAxisField : t.series[0].x;
860
860
  }
861
- function ko(t) {
861
+ function Wo(t) {
862
862
  const e = Yt(t);
863
863
  return e === ke.Stacked || e === ke.Stacked100;
864
864
  }
865
- function jo(t, e) {
865
+ function Qo(t, e) {
866
866
  return (t.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? b.boxPlot.boxPlotOutliersVisibility);
867
867
  }
868
- function Wo(t, e) {
868
+ function Ho(t, e) {
869
869
  return (t.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility) !== (e.standardizeValues ?? b.boxPlot.boxPlotStandardizeValuesVisibility);
870
870
  }
871
- function Qo(t, e) {
871
+ function zo(t, e) {
872
872
  return JSON.stringify(t.chartRenderer) !== JSON.stringify(e.chartRenderer);
873
873
  }
874
- function Ho(t, e) {
874
+ function Uo(t, e) {
875
875
  const i = t.axes?.[0].valueFormat.type === S.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === S.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
876
876
  return i !== a;
877
877
  }
878
- function un(t, e) {
878
+ function dn(t, e) {
879
879
  return t.series.map((i) => i.name).join() !== e.series.map((i) => i.name).join();
880
880
  }
881
- function dn(t, e) {
881
+ function fn(t, e) {
882
882
  const i = t.orderOptions?.series, a = e.orderOptions?.series, n = (i?.orderBy ?? me.Ascending) !== (a?.orderBy ?? me.Ascending), r = (i?.preferLabel ?? !0) !== (a?.preferLabel ?? !0);
883
883
  return n || r;
884
884
  }
885
- function zo(t, e) {
886
- return dn(t, e) || un(t, e);
885
+ function Go(t, e) {
886
+ return fn(t, e) || dn(t, e);
887
887
  }
888
- function fn(t) {
888
+ function mn(t) {
889
889
  const e = V(t.series);
890
890
  let i;
891
891
  if (t.orderOptions?.data !== void 0) {
@@ -893,7 +893,7 @@ function fn(t) {
893
893
  if (a === be.Category)
894
894
  a = t.series[0].x;
895
895
  else {
896
- a === be.Mean ? a = I.Average : a === be.Median && (a = I.Median);
896
+ a === be.Mean ? a = $.Average : a === be.Median && (a = $.Median);
897
897
  const r = e === p.BoxPlotMultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = K(t.series[0].query?.where), o = ge({
898
898
  where: t.series[0].query?.where
899
899
  });
@@ -907,14 +907,15 @@ function fn(t) {
907
907
  }
908
908
  i = {
909
909
  sortingField: a,
910
- orderBy: n ?? me.Ascending
910
+ orderBy: n ?? me.Ascending,
911
+ preferLabel: t.orderOptions.data.preferLabel ?? !0
911
912
  };
912
913
  }
913
914
  return i;
914
915
  }
915
- function mn(t) {
916
+ function gn(t) {
916
917
  let e;
917
- if (!fi(t) && t.series?.length > 0 && t.orderOptions?.data?.orderType === be.Category) {
918
+ if (!mi(t) && t.series?.length > 0 && t.orderOptions?.data?.orderType === be.Category) {
918
919
  let a;
919
920
  fe(t.axes?.[0]?.valueFormat) ? a = j.xField : fe(t.axes?.[1]?.valueFormat) && (a = j.yField), a && (e = {
920
921
  sortingField: a,
@@ -923,51 +924,56 @@ function mn(t) {
923
924
  }
924
925
  return e;
925
926
  }
926
- function gn(t) {
927
- const e = t.series[0], { x: i, y: a } = e, n = V(t.series) === p.PieFromFields;
928
- let r, s = "", o;
929
- if (t.orderOptions?.data !== void 0 && (s = t.orderOptions?.data?.orderType ?? be.Category, o = t.orderOptions?.data?.orderBy, s === be.Category ? s = n ? ae : i : s = n ? he : [a].flat()[0]), s !== void 0 && s !== "") {
930
- const c = Yt(t);
931
- if (W(t.series) !== S.PieSeries && s !== i && t.series?.length > 1)
932
- switch (c) {
933
- case ke.Stacked:
934
- s = b.technicalSortingFieldBySum;
935
- break;
936
- case ke.Stacked100:
937
- s = b.technicalSortingFieldByPercent;
938
- break;
939
- case ke.Side:
940
- typeof a == "string" && (s = a);
941
- break;
942
- }
943
- r = {
944
- sortingField: s,
945
- orderBy: o ?? me.Ascending
946
- };
947
- }
948
- return r;
927
+ function yn(t) {
928
+ const e = t.series[0], { x: i, y: a } = e, n = V(t.series) === p.PieFromFields, r = V(t.series) === p.BarAndLineFromFields;
929
+ let s, o = "", c;
930
+ if (t.orderOptions?.data !== void 0) {
931
+ if (o = t.orderOptions?.data?.orderType ?? be.Category, c = t.orderOptions?.data?.orderBy, o === be.Category ? o = n ? ae : i : o = n ? he : [a].flat()[0], o !== void 0 && o !== "") {
932
+ const l = Yt(t);
933
+ if (W(t.series) !== S.PieSeries && o !== i && t.series?.length > 1)
934
+ switch (l) {
935
+ case ke.Stacked:
936
+ o = b.technicalSortingFieldBySum;
937
+ break;
938
+ case ke.Stacked100:
939
+ o = b.technicalSortingFieldByPercent;
940
+ break;
941
+ case ke.Side:
942
+ typeof a == "string" && (o = a);
943
+ break;
944
+ }
945
+ s = {
946
+ sortingField: o,
947
+ orderBy: c ?? me.Ascending,
948
+ preferLabel: t.orderOptions.data.preferLabel ?? !0
949
+ };
950
+ }
951
+ } else (r || n) && t.series[0].query?.outStatistics && (c = t.series[0].query.outStatistics.map((l) => l.onStatisticField), c?.length > 1 && (s = {
952
+ sortingField: si.originalCategoryValue,
953
+ orderBy: c,
954
+ preferLabel: !1
955
+ }));
956
+ return s;
949
957
  }
950
958
  function xt(t) {
951
959
  let e;
952
960
  const i = W(t.series);
953
961
  if (i === S.HeatSeries)
954
- e = mn(t);
955
- else if (t?.orderOptions?.data && t.series?.length > 0) {
962
+ e = gn(t);
963
+ else if (t.series?.length > 0)
956
964
  switch (i) {
957
965
  case S.BoxPlotSeries:
958
- e = fn(t);
966
+ e = mn(t);
959
967
  break;
960
968
  case S.LineSeries:
961
969
  case S.BarSeries:
962
970
  case S.PieSeries:
963
- e = gn(t);
971
+ e = yn(t);
964
972
  break;
965
973
  }
966
- e && t.orderOptions?.data?.preferLabel !== void 0 && (e.preferLabel = t.orderOptions.data.preferLabel);
967
- }
968
974
  return e;
969
975
  }
970
- function Uo(t) {
976
+ function _o(t) {
971
977
  const { oldConfig: e, newConfig: i, dataUpdateNeeded: a } = t, n = V(i.series);
972
978
  let r = !1, s = !1;
973
979
  if (n !== p.BoxPlotMonoField && n !== p.BoxPlotMonoFieldAndSplitBy && i.orderOptions?.data !== void 0) {
@@ -976,7 +982,7 @@ function Uo(t) {
976
982
  }
977
983
  return r;
978
984
  }
979
- function Go(t, e) {
985
+ function Yo(t, e) {
980
986
  const i = [], a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
981
987
  return t.forEach((r, s) => n.set(r.id, s)), e.forEach((r, s) => {
982
988
  let o = n.get(r.id);
@@ -988,7 +994,7 @@ function Go(t, e) {
988
994
  }
989
995
  }), i;
990
996
  }
991
- function _o(t, e) {
997
+ function Ko(t, e) {
992
998
  const i = Ie(t);
993
999
  if (i && i.series.length > 1) {
994
1000
  const { preferLabel: a, orderBy: n } = i.orderOptions?.series ?? {};
@@ -1007,16 +1013,16 @@ function _o(t, e) {
1007
1013
  });
1008
1014
  }
1009
1015
  }
1010
- return cn({
1016
+ return un({
1011
1017
  data: i?.series.map((a) => a.id),
1012
1018
  htmlContainer: e
1013
1019
  }), i;
1014
1020
  }
1015
- function yn(t) {
1021
+ function pn(t) {
1016
1022
  const e = { ...t };
1017
1023
  return t.showMean === !0 && (e.series = [e.series[0]], e.series[0].query?.where !== void 0 && delete e.series[0].query.where), e;
1018
1024
  }
1019
- function fi(t) {
1025
+ function mi(t) {
1020
1026
  let e = !1;
1021
1027
  return t && (e = t.series[0].type === S.HeatSeries && fe(t.axes?.[0]?.valueFormat) && fe(t.axes?.[1]?.valueFormat)), e;
1022
1028
  }
@@ -1025,29 +1031,29 @@ function ot(t) {
1025
1031
  switch (e.valid = !1, i) {
1026
1032
  case S.BarSeries:
1027
1033
  case S.ComboLineAndBarSeries:
1028
- e.invalidType = R.BarElementExceedsLimit;
1034
+ e.invalidType = k.BarElementExceedsLimit;
1029
1035
  break;
1030
1036
  case S.LineSeries:
1031
- e.invalidType = R.LineChartExceedsLimit;
1037
+ e.invalidType = k.LineChartExceedsLimit;
1032
1038
  break;
1033
1039
  case S.PieSeries:
1034
- e.invalidType = R.PieChartExceedsLimit;
1040
+ e.invalidType = k.PieChartExceedsLimit;
1035
1041
  break;
1036
1042
  case S.GaugeSeries:
1037
- e.invalidType = R.GaugeExceedsLimit;
1043
+ e.invalidType = k.GaugeExceedsLimit;
1038
1044
  break;
1039
1045
  case S.BoxPlotSeries:
1040
- a?.outlierLimit === !0 ? e.invalidType = R.BoxPlotOutliersExceedsLimit : e.invalidType = R.BoxPlotExceedsLimit;
1046
+ a?.outlierLimit === !0 ? e.invalidType = k.BoxPlotOutliersExceedsLimit : e.invalidType = k.BoxPlotExceedsLimit;
1041
1047
  break;
1042
1048
  case S.HeatSeries:
1043
- e.invalidType = R.HeatChartExceedsLimit;
1049
+ e.invalidType = k.HeatChartExceedsLimit;
1044
1050
  break;
1045
1051
  }
1046
1052
  }
1047
- function pn(t, e) {
1053
+ function hn(t, e) {
1048
1054
  t.valid = !1, t.invalidType = e;
1049
1055
  }
1050
- async function Yo(t) {
1056
+ async function Jo(t) {
1051
1057
  const {
1052
1058
  invalidType: e,
1053
1059
  chartLimits: i,
@@ -1055,7 +1061,7 @@ async function Yo(t) {
1055
1061
  seriesCount: n,
1056
1062
  queryObject: r,
1057
1063
  filterBySelection: s,
1058
- formatLocale: o = Fa(document.documentElement),
1064
+ formatLocale: o = xa(document.documentElement),
1059
1065
  isTemporalLineChart: c,
1060
1066
  errorStrings: l
1061
1067
  } = t;
@@ -1063,7 +1069,7 @@ async function Yo(t) {
1063
1069
  const f = new Intl.NumberFormat(o), m = Re(i), { maxCategoryCount: g } = m;
1064
1070
  let y = l.modalHeaders.invalidChart;
1065
1071
  switch (e) {
1066
- case R.BarElementExceedsLimit: {
1072
+ case k.BarElementExceedsLimit: {
1067
1073
  y = l.modalHeaders.tooManyFeatures;
1068
1074
  let x = Number.NaN, F = Number.NaN, C = "";
1069
1075
  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));
@@ -1079,7 +1085,7 @@ async function Yo(t) {
1079
1085
  };
1080
1086
  break;
1081
1087
  }
1082
- case R.LineChartExceedsLimit:
1088
+ case k.LineChartExceedsLimit:
1083
1089
  {
1084
1090
  y = l.modalHeaders.tooManyFeatures;
1085
1091
  let x = Number.NaN, F = Number.NaN, C = "";
@@ -1096,7 +1102,7 @@ async function Yo(t) {
1096
1102
  };
1097
1103
  }
1098
1104
  break;
1099
- case R.BoxPlotExceedsLimit:
1105
+ case k.BoxPlotExceedsLimit:
1100
1106
  {
1101
1107
  y = l.modalHeaders.tooManyFeatures;
1102
1108
  let x = Number.NaN, F = Number.NaN, C = "";
@@ -1113,7 +1119,7 @@ async function Yo(t) {
1113
1119
  };
1114
1120
  }
1115
1121
  break;
1116
- case R.BoxPlotOutliersExceedsLimit:
1122
+ case k.BoxPlotOutliersExceedsLimit:
1117
1123
  {
1118
1124
  y = l.modalHeaders.tooManyFeatures;
1119
1125
  const x = l.errors.boxSeriesOutlierCannotExceedLimit, F = m.maxBoxPlotOutlierLimit, C = f.format(F);
@@ -1122,7 +1128,7 @@ async function Yo(t) {
1122
1128
  }), d = { actualCount: a ?? Number.NaN, totalLimit: F };
1123
1129
  }
1124
1130
  break;
1125
- case R.HeatChartExceedsLimit:
1131
+ case k.HeatChartExceedsLimit:
1126
1132
  {
1127
1133
  y = l.modalHeaders.tooManyFeatures;
1128
1134
  const x = l.errors.heatChartCannotExceedLimit, F = m.maxHeatChartCellLimit, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
@@ -1135,7 +1141,7 @@ async function Yo(t) {
1135
1141
  };
1136
1142
  }
1137
1143
  break;
1138
- case R.PieChartExceedsLimit:
1144
+ case k.PieChartExceedsLimit:
1139
1145
  {
1140
1146
  y = l.modalHeaders.tooManyFeatures;
1141
1147
  const x = l.errors.pieChartSlicesCannotExceedLimit, F = m.maxPieChartSliceCountTotal, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
@@ -1148,7 +1154,7 @@ async function Yo(t) {
1148
1154
  };
1149
1155
  }
1150
1156
  break;
1151
- case R.GaugeExceedsLimit:
1157
+ case k.GaugeExceedsLimit:
1152
1158
  {
1153
1159
  y = l.modalHeaders.tooManyFeatures;
1154
1160
  const x = l.errors.gaugeCannotExceedLimit, F = m.maxGaugeByFeaturesLimit, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
@@ -1161,30 +1167,30 @@ async function Yo(t) {
1161
1167
  };
1162
1168
  }
1163
1169
  break;
1164
- case R.PieChartMixOfNegativePositiveSlices:
1170
+ case k.PieChartMixOfNegativePositiveSlices:
1165
1171
  y = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, u = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
1166
1172
  break;
1167
- case R.NegativeValueInSqrtCalculation:
1173
+ case k.NegativeValueInSqrtCalculation:
1168
1174
  y = l.modalHeaders.invalidData, u = l.errors.negativeValueInDataForSqrtTransformation;
1169
1175
  break;
1170
- case R.NegativeValueInLogCalculation:
1176
+ case k.NegativeValueInLogCalculation:
1171
1177
  y = l.modalHeaders.invalidData, u = l.errors.negativeValueInDataForLogTransformation;
1172
1178
  break;
1173
- case R.HistogramEmptyField:
1179
+ case k.HistogramEmptyField:
1174
1180
  u = l.errors.histogramEmptyField;
1175
1181
  break;
1176
- case R.EmptyDataSet:
1177
- y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage : Ui(r) ? u = l.errors.noDataFBEMessage : u = l.errors.noDataMessage;
1182
+ case k.EmptyDataSet:
1183
+ y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage : Gi(r) ? u = l.errors.noDataFBEMessage : u = l.errors.noDataMessage;
1178
1184
  break;
1179
- case R.NegativeValueInXAxisLogScale:
1185
+ case k.NegativeValueInXAxisLogScale:
1180
1186
  u = l.errors.logarithmicXAxisNotPossible;
1181
1187
  break;
1182
- case R.NegativeValueInYAxisLogScale:
1188
+ case k.NegativeValueInYAxisLogScale:
1183
1189
  u = l.errors.logarithmicYAxisNotPossible;
1184
1190
  break;
1185
- case R.BadData:
1191
+ case k.BadData:
1186
1192
  }
1187
- if (u === l.errors.defaultInvalidChart && (e === R.BarElementExceedsLimit || e === R.LineChartExceedsLimit || e === R.HeatChartExceedsLimit || e === R.PieChartExceedsLimit || e === R.GaugeExceedsLimit || e === R.BoxPlotExceedsLimit) && typeof a == "number" && typeof n == "number" && a / n > g) {
1193
+ if (u === l.errors.defaultInvalidChart && (e === k.BarElementExceedsLimit || e === k.LineChartExceedsLimit || e === k.HeatChartExceedsLimit || e === k.PieChartExceedsLimit || e === k.GaugeExceedsLimit || e === k.BoxPlotExceedsLimit) && typeof a == "number" && typeof n == "number" && a / n > g) {
1188
1194
  const x = a / n;
1189
1195
  u = ue(l.errors.categoryCountCannotExceedLimit, {
1190
1196
  categoryCount: f.format(x),
@@ -1192,7 +1198,7 @@ async function Yo(t) {
1192
1198
  });
1193
1199
  }
1194
1200
  return {
1195
- keyword: e ?? R.BadData,
1201
+ keyword: e ?? k.BadData,
1196
1202
  header: y,
1197
1203
  message: u,
1198
1204
  params: d
@@ -1214,12 +1220,12 @@ function At(t) {
1214
1220
  };
1215
1221
  const l = G({
1216
1222
  ...c,
1217
- key: I.Average
1223
+ key: $.Average
1218
1224
  }), u = G({
1219
1225
  ...c,
1220
- key: I.StandardDeviation
1226
+ key: $.StandardDeviation
1221
1227
  }), d = r ?? Number(e[l]), f = s ?? Number(e[u]);
1222
- return Number.isFinite(d) && Number.isFinite(f) && Object.values(I).forEach((m) => {
1228
+ return Number.isFinite(d) && Number.isFinite(f) && Object.values($).forEach((m) => {
1223
1229
  const g = G({
1224
1230
  key: m,
1225
1231
  y: a,
@@ -1236,7 +1242,7 @@ function At(t) {
1236
1242
  standardizeValues: !0
1237
1243
  };
1238
1244
  let x = G(c);
1239
- if (o[x] = Ct({ mean: d, stdDev: f, value: h }), m === I.Min || m === I.Max) {
1245
+ if (o[x] = Ct({ mean: d, stdDev: f, value: h }), m === $.Min || m === $.Max) {
1240
1246
  c = {
1241
1247
  ...c,
1242
1248
  key: m,
@@ -1258,7 +1264,7 @@ function At(t) {
1258
1264
  }
1259
1265
  }), o;
1260
1266
  }
1261
- function hn(t) {
1267
+ function Sn(t) {
1262
1268
  const { data: e, yList: i, calculateZScore: a = !1 } = t, n = e[0], r = /* @__PURE__ */ new Map();
1263
1269
  return i.forEach((o) => {
1264
1270
  let c = {};
@@ -1270,7 +1276,7 @@ function hn(t) {
1270
1276
  }), r.set(o, c);
1271
1277
  }), Array.from(r.values());
1272
1278
  }
1273
- function Sn(t) {
1279
+ function Fn(t) {
1274
1280
  const { data: e, splitByField: i, y: a } = t, n = {
1275
1281
  [b.boxPlot.boxPlotCategory]: a
1276
1282
  };
@@ -1281,7 +1287,7 @@ function Sn(t) {
1281
1287
  });
1282
1288
  }), [n];
1283
1289
  }
1284
- function Fn(t) {
1290
+ function bn(t) {
1285
1291
  const { splitByField: e, data: i, yList: a, calculateZScore: n = !1, meanAndStdDevPerField: r } = t, s = /* @__PURE__ */ new Map();
1286
1292
  return i.forEach((c) => {
1287
1293
  const l = c[e];
@@ -1295,8 +1301,8 @@ function Fn(t) {
1295
1301
  dataItem: d,
1296
1302
  chartSubType: p.BoxPlotMultiFieldsAndSplitBy,
1297
1303
  splitByValue: l,
1298
- meanPerField: r?.[Ve(u, T.Average)],
1299
- stdDevPerField: r?.[Ve(u, T.StandardDeviation)]
1304
+ meanPerField: r?.[Ve(u, A.Average)],
1305
+ stdDevPerField: r?.[Ve(u, A.StandardDeviation)]
1300
1306
  })), s.set(u, {
1301
1307
  ...s.get(u) ?? {},
1302
1308
  ...d
@@ -1304,7 +1310,7 @@ function Fn(t) {
1304
1310
  });
1305
1311
  }), Array.from(s.values());
1306
1312
  }
1307
- function bn(t) {
1313
+ function xn(t) {
1308
1314
  const { data: e, yList: i, calculateZScore: a = !1, meanAndStdDevPerField: n } = t, r = e;
1309
1315
  return a && r.forEach((s) => {
1310
1316
  i.forEach((o) => {
@@ -1312,13 +1318,13 @@ function bn(t) {
1312
1318
  dataItem: s,
1313
1319
  chartSubType: p.BoxPlotMultiFieldsAndCategory,
1314
1320
  y: o,
1315
- meanPerField: n?.[Ve(o, T.Average)],
1316
- stdDevPerField: n?.[Ve(o, T.StandardDeviation)]
1321
+ meanPerField: n?.[Ve(o, A.Average)],
1322
+ stdDevPerField: n?.[Ve(o, A.StandardDeviation)]
1317
1323
  });
1318
1324
  });
1319
1325
  }), r;
1320
1326
  }
1321
- function xn(t) {
1327
+ function Cn(t) {
1322
1328
  const { splitByField: e, x: i, data: a } = t, n = /* @__PURE__ */ new Map();
1323
1329
  return a.forEach((s) => {
1324
1330
  const o = s[i], c = { [i]: o }, l = s[e];
@@ -1337,7 +1343,7 @@ function xn(t) {
1337
1343
  });
1338
1344
  }), Array.from(n.values());
1339
1345
  }
1340
- function Cn(t, e) {
1346
+ function Bn(t, e) {
1341
1347
  const { series: i } = t, a = i[0], { y: n } = a, r = V(t.series), s = {
1342
1348
  y: r === p.BoxPlotMultiFieldsAndCategory ? n : void 0,
1343
1349
  chartSubType: r
@@ -1354,28 +1360,28 @@ function Cn(t, e) {
1354
1360
  s.splitByValue = l;
1355
1361
  const u = G({
1356
1362
  ...s,
1357
- key: I.Min,
1363
+ key: $.Min,
1358
1364
  showOutliers: !0
1359
1365
  }), d = G({
1360
1366
  ...s,
1361
- key: I.Min,
1367
+ key: $.Min,
1362
1368
  showOutliers: !1
1363
1369
  }), f = G({
1364
1370
  ...s,
1365
- key: I.Max,
1371
+ key: $.Max,
1366
1372
  showOutliers: !0
1367
1373
  }), m = G({
1368
1374
  ...s,
1369
- key: I.Max,
1375
+ key: $.Max,
1370
1376
  showOutliers: !1
1371
1377
  });
1372
1378
  c[f] === void 0 && c[m] !== void 0 && (c[f] = c[m]), c[u] === void 0 && c[d] !== void 0 && (c[u] = c[d]);
1373
1379
  });
1374
1380
  });
1375
1381
  }
1376
- function Bn(t, e) {
1382
+ function vn(t, e) {
1377
1383
  let i, a;
1378
- const n = t[e[I.IQR]], r = t[e[I.FirstQuartile]], s = t[e[I.ThirdQuartile]];
1384
+ const n = t[e[$.IQR]], r = t[e[$.FirstQuartile]], s = t[e[$.ThirdQuartile]];
1379
1385
  return Number.isFinite(n) && Number.isFinite(r) && Number.isFinite(s) && (i = r - n * 1.5, a = s + n * 1.5), { outlierMinThreshold: i, outlierMaxThreshold: a };
1380
1386
  }
1381
1387
  function Wt(t) {
@@ -1393,11 +1399,11 @@ function Wt(t) {
1393
1399
  let d;
1394
1400
  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 ");
1395
1401
  }
1396
- function mi(t) {
1402
+ function gi(t) {
1397
1403
  const { data: e, yField: i, x: a, chartSubType: n, splitByField: r } = t, s = n === p.BoxPlotMonoField || n === p.BoxPlotMonoFieldAndCategory || n === p.BoxPlotMonoFieldAndSplitBy || n === p.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = je(s), c = [], l = [], { maxOperandsPerWhereClause: u } = Ge();
1398
1404
  let d = [], f = [], m = 1;
1399
1405
  return e.forEach((g, y) => {
1400
- const { outlierMinThreshold: h, outlierMaxThreshold: x } = Bn(g, o);
1406
+ const { outlierMinThreshold: h, outlierMaxThreshold: x } = vn(g, o);
1401
1407
  if (typeof h == "number" && typeof x == "number") {
1402
1408
  const F = {
1403
1409
  yField: i,
@@ -1414,21 +1420,21 @@ function mi(t) {
1414
1420
  m += 1;
1415
1421
  }), { outliersFilterBatches: c, dataWithoutOutliersFilterBatches: l };
1416
1422
  }
1417
- function vn(t) {
1423
+ function Nn(t) {
1418
1424
  const { data: e, outlierDataItem: i, chartSubType: a, x: n, y: r, meanAndStdDevPerField: s, splitByField: o } = t;
1419
- let c = s?.[Ve(r, T.Average)], l = s?.[Ve(r, T.StandardDeviation)];
1425
+ let c = s?.[Ve(r, A.Average)], l = s?.[Ve(r, A.StandardDeviation)];
1420
1426
  if (c === void 0 && l === void 0)
1421
1427
  switch (a) {
1422
1428
  case p.BoxPlotMultiFields: {
1423
1429
  const u = je(r), d = e[0];
1424
- c = Number(d[u[I.Average]]), l = Number(d[u[I.StandardDeviation]]);
1430
+ c = Number(d[u[$.Average]]), l = Number(d[u[$.StandardDeviation]]);
1425
1431
  break;
1426
1432
  }
1427
1433
  case p.BoxPlotMultiFieldsAndCategory: {
1428
1434
  const u = e.find((d) => d[n] === i[n]);
1429
1435
  if (u !== void 0) {
1430
1436
  const d = je(r);
1431
- c = Number(u[d[I.Average]]), l = Number(u[d[I.StandardDeviation]]);
1437
+ c = Number(u[d[$.Average]]), l = Number(u[d[$.StandardDeviation]]);
1432
1438
  }
1433
1439
  break;
1434
1440
  }
@@ -1436,17 +1442,17 @@ function vn(t) {
1436
1442
  const u = e.find((d) => d[o] === i[o]);
1437
1443
  if (u !== void 0) {
1438
1444
  const d = je(r);
1439
- c = Number(u[d[I.Average]]), l = Number(u[d[I.StandardDeviation]]);
1445
+ c = Number(u[d[$.Average]]), l = Number(u[d[$.StandardDeviation]]);
1440
1446
  }
1441
1447
  break;
1442
1448
  }
1443
1449
  }
1444
1450
  return { mean: c, stdDev: l };
1445
1451
  }
1446
- async function Nn(t) {
1452
+ async function Tn(t) {
1447
1453
  const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: n, meanAndStdDevPerField: r, abortKey: s } = t, o = V(e), c = e[0], { x: l } = c, u = K(c.query?.where), d = z(n), f = re(e), m = [];
1448
1454
  for (let h = 0; h < f.length; h += 1) {
1449
- const x = f[h], { outliersFilterBatches: F } = mi({
1455
+ const x = f[h], { outliersFilterBatches: F } = gi({
1450
1456
  data: i,
1451
1457
  yField: x,
1452
1458
  x: l,
@@ -1487,7 +1493,7 @@ async function Nn(t) {
1487
1493
  if (B[F] !== void 0) {
1488
1494
  l === b.boxPlot.boxPlotCategory && (B[b.boxPlot.boxPlotCategory] = F);
1489
1495
  let N = {
1490
- key: I.Outlier,
1496
+ key: $.Outlier,
1491
1497
  chartSubType: o
1492
1498
  };
1493
1499
  switch (o) {
@@ -1506,17 +1512,17 @@ async function Nn(t) {
1506
1512
  };
1507
1513
  break;
1508
1514
  }
1509
- const v = G(N), P = B[F];
1510
- B[v] = P;
1511
- const D = `${B[l]}-${B[u]}-${P}`, M = y.get(D);
1515
+ const v = G(N), T = B[F];
1516
+ B[v] = T;
1517
+ const O = `${B[l]}-${B[u]}-${T}`, M = y.get(O);
1512
1518
  if (B[Y.uniqueIdsName] = [
1513
1519
  ...M?.[Y.uniqueIdsName] ?? [],
1514
1520
  B[d.objectIdField]
1515
- ], delete B[d.objectIdField], Gi(o)) {
1521
+ ], delete B[d.objectIdField], _i(o)) {
1516
1522
  const w = G({
1517
1523
  ...N,
1518
1524
  standardizeValues: !0
1519
- }), { mean: k, stdDev: L } = vn({
1525
+ }), { mean: I, stdDev: L } = Nn({
1520
1526
  data: i,
1521
1527
  outlierDataItem: B,
1522
1528
  chartSubType: o,
@@ -1525,24 +1531,24 @@ async function Nn(t) {
1525
1531
  splitByField: u,
1526
1532
  meanAndStdDevPerField: r
1527
1533
  });
1528
- k !== void 0 && L !== void 0 && (B[w] = Ct({
1529
- value: P,
1530
- mean: k,
1534
+ I !== void 0 && L !== void 0 && (B[w] = Ct({
1535
+ value: T,
1536
+ mean: I,
1531
1537
  stdDev: L
1532
1538
  }));
1533
1539
  }
1534
- delete B[F], B[b.boxPlot.boxPlotOutlierId] = !0, y.set(D, B);
1540
+ delete B[F], B[b.boxPlot.boxPlotOutlierId] = !0, y.set(O, B);
1535
1541
  }
1536
1542
  });
1537
1543
  }
1538
1544
  return Array.from(y.values());
1539
1545
  }
1540
- async function Tn(t) {
1546
+ async function An(t) {
1541
1547
  const { data: e, queryObject: i, uniqueQuery: a, elementCount: n, chartConfig: r, chartLimits: s, abortKey: o } = t;
1542
1548
  let c = [];
1543
1549
  const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = V(l), m = Le(r), { x: g } = m, y = K(m.query?.where), h = [];
1544
1550
  for (let F = 0; F < d.length; F += 1) {
1545
- const C = d[F], { dataWithoutOutliersFilterBatches: B } = mi({
1551
+ const C = d[F], { dataWithoutOutliersFilterBatches: B } = gi({
1546
1552
  data: e,
1547
1553
  yField: C,
1548
1554
  x: g,
@@ -1550,19 +1556,19 @@ async function Tn(t) {
1550
1556
  splitByField: y
1551
1557
  });
1552
1558
  for (let N = 0; N < B.length; N += 1) {
1553
- const v = B[N], P = {
1559
+ const v = B[N], T = {
1554
1560
  ...a,
1555
1561
  where: H([a.where, v])
1556
1562
  };
1557
- P.outStatistics !== void 0 && (P.outStatistics = P.outStatistics?.filter(
1558
- (D) => (D.statisticType === T.Minimum || D.statisticType === T.Maximum) && D.onStatisticField === C
1559
- ).map((D) => ({
1560
- ...D,
1561
- outStatisticFieldName: `${D.outStatisticFieldName}${b.boxPlot.boxPlotOutliersSuffix}`
1563
+ T.outStatistics !== void 0 && (T.outStatistics = T.outStatistics?.filter(
1564
+ (O) => (O.statisticType === A.Minimum || O.statisticType === A.Maximum) && O.onStatisticField === C
1565
+ ).map((O) => ({
1566
+ ...O,
1567
+ outStatisticFieldName: `${O.outStatisticFieldName}${b.boxPlot.boxPlotOutliersSuffix}`
1562
1568
  }))), h.push(
1563
1569
  ut({
1564
1570
  queryObject: i,
1565
- uniqueQuery: P,
1571
+ uniqueQuery: T,
1566
1572
  chartConfig: r,
1567
1573
  elementCount: n,
1568
1574
  isTimeBinningSeries: !1,
@@ -1581,7 +1587,7 @@ async function Tn(t) {
1581
1587
  x: y !== void 0 && y !== "" ? y : g
1582
1588
  })), c;
1583
1589
  }
1584
- async function An(t) {
1590
+ async function Pn(t) {
1585
1591
  const { queryObject: e, uniqueQuery: i, chartConfig: a, abortKey: n } = t;
1586
1592
  let r;
1587
1593
  const { series: s, showMean: o } = a, c = V(s);
@@ -1595,14 +1601,14 @@ async function An(t) {
1595
1601
  const g = l[m];
1596
1602
  d.push(
1597
1603
  {
1598
- statisticType: T.Average,
1604
+ statisticType: A.Average,
1599
1605
  onStatisticField: g,
1600
- outStatisticFieldName: `${T.Average}_${g}`
1606
+ outStatisticFieldName: `${A.Average}_${g}`
1601
1607
  },
1602
1608
  {
1603
- statisticType: T.StandardDeviation,
1609
+ statisticType: A.StandardDeviation,
1604
1610
  onStatisticField: g,
1605
- outStatisticFieldName: `${T.StandardDeviation}_${g}`
1611
+ outStatisticFieldName: `${A.StandardDeviation}_${g}`
1606
1612
  }
1607
1613
  );
1608
1614
  }
@@ -1617,7 +1623,7 @@ async function An(t) {
1617
1623
  }
1618
1624
  return r;
1619
1625
  }
1620
- function Pn(t) {
1626
+ function Mn(t) {
1621
1627
  const { data: e, additionalData: i, chartConfig: a } = t, n = a.series[0], { x: r } = n, s = K(n.query?.where);
1622
1628
  return e.map((o) => {
1623
1629
  let c = o;
@@ -1627,7 +1633,7 @@ function Pn(t) {
1627
1633
  return l !== void 0 && (c = { ...o, ...l }), c;
1628
1634
  });
1629
1635
  }
1630
- function gi(t) {
1636
+ function yi(t) {
1631
1637
  const { chartConfig: e, data: i, calculateZScore: a = !1, meanAndStdDevPerField: n } = t, { series: r, showMean: s } = e, o = Le(e), c = V(e.series), { x: l } = o, u = Nt({ showMean: s, seriesConfig: r });
1632
1638
  let d = i;
1633
1639
  if ((o.type === S.LineSeries || o.type === S.BoxPlotSeries) && i?.[0] !== void 0) {
@@ -1637,14 +1643,14 @@ function gi(t) {
1637
1643
  d[0][b.boxPlot.boxPlotCategory] = u[0];
1638
1644
  break;
1639
1645
  case p.BoxPlotMultiFields:
1640
- d = hn({
1646
+ d = Sn({
1641
1647
  data: i,
1642
1648
  yList: u,
1643
1649
  calculateZScore: a
1644
1650
  });
1645
1651
  break;
1646
1652
  case p.BoxPlotMonoFieldAndSplitBy:
1647
- d = Sn({
1653
+ d = Fn({
1648
1654
  data: i,
1649
1655
  splitByField: f,
1650
1656
  y: u[0]
@@ -1652,7 +1658,7 @@ function gi(t) {
1652
1658
  });
1653
1659
  break;
1654
1660
  case p.BoxPlotMultiFieldsAndSplitBy:
1655
- d = Fn({
1661
+ d = bn({
1656
1662
  splitByField: f,
1657
1663
  data: i,
1658
1664
  yList: u,
@@ -1661,7 +1667,7 @@ function gi(t) {
1661
1667
  });
1662
1668
  break;
1663
1669
  case p.BoxPlotMultiFieldsAndCategory:
1664
- d = bn({
1670
+ d = xn({
1665
1671
  data: i,
1666
1672
  yList: u,
1667
1673
  meanAndStdDevPerField: n,
@@ -1669,7 +1675,7 @@ function gi(t) {
1669
1675
  });
1670
1676
  break;
1671
1677
  case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
1672
- d = xn({
1678
+ d = Cn({
1673
1679
  splitByField: f,
1674
1680
  x: l,
1675
1681
  data: i
@@ -1678,27 +1684,27 @@ function gi(t) {
1678
1684
  case p.BoxPlotMonoFieldAndCategory:
1679
1685
  }
1680
1686
  }
1681
- return Cn(e, d), d;
1687
+ return Bn(e, d), d;
1682
1688
  }
1683
- async function Mn(t) {
1689
+ async function Ln(t) {
1684
1690
  const { data: e, queryObject: i, uniqueQuery: a, fetchFullBoxPlotData: n, chartConfig: r, elementCount: s, chartLimits: o, abortKey: c } = t;
1685
1691
  let l = e, u = [];
1686
1692
  if (l !== void 0) {
1687
- const { series: d } = r, f = await An({
1693
+ const { series: d } = r, f = await Pn({
1688
1694
  queryObject: i,
1689
1695
  uniqueQuery: a,
1690
1696
  chartConfig: r,
1691
1697
  abortKey: c
1692
1698
  });
1693
1699
  if (n !== !1) {
1694
- u = await Nn({
1700
+ u = await Tn({
1695
1701
  queryObject: i,
1696
1702
  uniqueQuery: a,
1697
1703
  seriesConfig: d,
1698
1704
  data: l,
1699
1705
  abortKey: c
1700
1706
  });
1701
- const m = await Tn({
1707
+ const m = await An({
1702
1708
  queryObject: i,
1703
1709
  uniqueQuery: a,
1704
1710
  elementCount: s,
@@ -1707,13 +1713,13 @@ async function Mn(t) {
1707
1713
  chartLimits: o,
1708
1714
  abortKey: c
1709
1715
  });
1710
- l = Pn({
1716
+ l = Mn({
1711
1717
  data: l,
1712
1718
  additionalData: m,
1713
1719
  chartConfig: r
1714
1720
  });
1715
1721
  }
1716
- l = gi({
1722
+ l = yi({
1717
1723
  chartConfig: r,
1718
1724
  data: l,
1719
1725
  meanAndStdDevPerField: f,
@@ -1722,12 +1728,12 @@ async function Mn(t) {
1722
1728
  }
1723
1729
  return { dataItems: l, outliers: u };
1724
1730
  }
1725
- function Ln() {
1731
+ function wn() {
1726
1732
  const t = de.now().offset / 60;
1727
1733
  return t !== 0 ? `${t > 0 ? "+" : "-"}INTERVAL '${Math.abs(t) - 1}:59:59' HOUR TO SECOND` : "";
1728
1734
  }
1729
- function wn(t, e) {
1730
- const i = Ln(), a = `EXTRACT(YEAR FROM ${t} ${i})`, n = `EXTRACT(MONTH FROM ${t} ${i})`, r = `EXTRACT(DAY FROM ${t} ${i})`, s = `EXTRACT(HOUR FROM ${t} ${i})`, o = `EXTRACT(MINUTE FROM ${t} ${i})`, c = `EXTRACT(SECOND FROM ${t} ${i})`;
1735
+ function Dn(t, e) {
1736
+ const i = wn(), a = `EXTRACT(YEAR FROM ${t} ${i})`, n = `EXTRACT(MONTH FROM ${t} ${i})`, r = `EXTRACT(DAY FROM ${t} ${i})`, s = `EXTRACT(HOUR FROM ${t} ${i})`, o = `EXTRACT(MINUTE FROM ${t} ${i})`, c = `EXTRACT(SECOND FROM ${t} ${i})`;
1731
1737
  let l = [];
1732
1738
  switch (e) {
1733
1739
  case E.Second:
@@ -1748,19 +1754,19 @@ function wn(t, e) {
1748
1754
  }
1749
1755
  return l;
1750
1756
  }
1751
- function Dn(t) {
1757
+ function On(t) {
1752
1758
  const { whereValue: e, outStatistics: i, y: a } = t;
1753
1759
  let n = Y.outStatistics.outStatisticFieldName ?? "";
1754
1760
  return i?.outStatisticFieldName !== void 0 ? n = i.outStatisticFieldName : i?.onStatisticField !== void 0 && i.statisticType !== void 0 ? n = `${i.statisticType}_${i.onStatisticField}_${e}` : a !== void 0 && (n = [a].flat()[0]), n;
1755
1761
  }
1756
- function On(t) {
1762
+ function qn(t) {
1757
1763
  const e = /* @__PURE__ */ new Map();
1758
1764
  for (let i = 0; i < t.length; i += 1) {
1759
1765
  const a = t[i], n = a.query?.where;
1760
1766
  if (n !== void 0 && "y" in a) {
1761
1767
  const r = ge({ where: n, normalize: !0, escape: !1 });
1762
1768
  if (r !== "") {
1763
- const s = Dn({
1769
+ const s = On({
1764
1770
  whereValue: r,
1765
1771
  outStatistics: a.query?.outStatistics?.[0],
1766
1772
  y: a.y
@@ -1771,16 +1777,16 @@ function On(t) {
1771
1777
  }
1772
1778
  return e;
1773
1779
  }
1774
- function qn(t) {
1780
+ function En(t) {
1775
1781
  const { uniqueQuery: e, splitByField: i, x: a } = t, n = [...e.groupByFieldsForStatistics ?? [], a, i].filter(
1776
1782
  (r) => r !== void 0 && r.trim() !== "" && r !== Jt
1777
1783
  );
1778
1784
  e.groupByFieldsForStatistics = Array.from(new Set(n));
1779
1785
  }
1780
- function En(t) {
1781
- return t.statisticType === T.ContinuousPercentile || t.statisticType === T.DiscretePercentile;
1782
- }
1783
1786
  function Vn(t) {
1787
+ return t.statisticType === A.ContinuousPercentile || t.statisticType === A.DiscretePercentile;
1788
+ }
1789
+ function In(t) {
1784
1790
  const {
1785
1791
  uniqueQuery: e,
1786
1792
  y: i,
@@ -1796,7 +1802,7 @@ function Vn(t) {
1796
1802
  const { outStatistics: u } = e;
1797
1803
  for (let d = 0; d < u.length; d += 1) {
1798
1804
  const f = e.outStatistics[d];
1799
- f !== void 0 && En(f) && (s && !Qe(n) ? (u[d].statisticType = T.Count, delete u[d].statisticParameters) : u[d] = {
1805
+ f !== void 0 && Vn(f) && (s && !Qe(n) ? (u[d].statisticType = A.Count, delete u[d].statisticParameters) : u[d] = {
1800
1806
  ...u[d],
1801
1807
  statisticParameters: u[d].statisticParameters ?? {
1802
1808
  value: b.defaultStatParameterValue
@@ -1813,33 +1819,33 @@ function Vn(t) {
1813
1819
  }
1814
1820
  ];
1815
1821
  }
1816
- o === !0 && (!s || ee(c)) && e.outStatistics?.push({ statisticType: T.EnvelopeAggregate, onStatisticField: "1" });
1822
+ o === !0 && (!s || ee(c)) && e.outStatistics?.push({ statisticType: A.EnvelopeAggregate, onStatisticField: "1" });
1817
1823
  }
1818
- function In(t) {
1824
+ function $n(t) {
1819
1825
  const { chartConfig: e, fetchFullBoxPlotData: i } = t, { series: a } = e, n = He(e);
1820
1826
  let r = [
1821
- { statisticType: T.Average, suffix: I.Average }
1827
+ { statisticType: A.Average, suffix: $.Average }
1822
1828
  ];
1823
1829
  i === !0 && (r = [
1824
1830
  ...r,
1825
- { statisticType: T.Minimum, suffix: I.Min },
1831
+ { statisticType: A.Minimum, suffix: $.Min },
1826
1832
  {
1827
- statisticType: T.ContinuousPercentile,
1833
+ statisticType: A.ContinuousPercentile,
1828
1834
  statisticParameters: { value: 0.25 },
1829
- suffix: I.FirstQuartile
1835
+ suffix: $.FirstQuartile
1830
1836
  },
1831
1837
  {
1832
- statisticType: T.ContinuousPercentile,
1838
+ statisticType: A.ContinuousPercentile,
1833
1839
  statisticParameters: { value: 0.5 },
1834
- suffix: I.Median
1840
+ suffix: $.Median
1835
1841
  },
1836
1842
  {
1837
- statisticType: T.ContinuousPercentile,
1843
+ statisticType: A.ContinuousPercentile,
1838
1844
  statisticParameters: { value: 0.75 },
1839
- suffix: I.ThirdQuartile
1845
+ suffix: $.ThirdQuartile
1840
1846
  },
1841
- { statisticType: T.Maximum, suffix: I.Max },
1842
- { statisticType: T.StandardDeviation, suffix: I.StandardDeviation }
1847
+ { statisticType: A.Maximum, suffix: $.Max },
1848
+ { statisticType: A.StandardDeviation, suffix: $.StandardDeviation }
1843
1849
  ]);
1844
1850
  const s = /* @__PURE__ */ new Set();
1845
1851
  return n && "y" in a[0] ? [a[0].y].flat().forEach((c) => s.add(c)) : a.forEach((c) => {
@@ -1851,38 +1857,38 @@ function In(t) {
1851
1857
  statisticType: l.statisticType,
1852
1858
  outStatisticFieldName: `${c}_${l.suffix}`
1853
1859
  };
1854
- return l.statisticType === T.ContinuousPercentile && (u.statisticParameters = l.statisticParameters), u;
1860
+ return l.statisticType === A.ContinuousPercentile && (u.statisticParameters = l.statisticParameters), u;
1855
1861
  })
1856
1862
  );
1857
1863
  }
1858
- function $n(t, e) {
1864
+ function Rn(t, e) {
1859
1865
  for (let i = 1; i < e.length; i += 1) {
1860
1866
  const a = { ...e[i].query?.outStatistics?.[0] };
1861
1867
  a !== void 0 && t.outStatistics !== void 0 && t.outStatistics.push(a);
1862
1868
  }
1863
1869
  }
1864
- function Rn(t) {
1870
+ function kn(t) {
1865
1871
  const { uniqueQuery: e, x: i, splitByField: a, unit: n, chartSubType: r, objectIdField: s } = t;
1866
1872
  if (n !== void 0) {
1867
- const o = wn(i, n);
1873
+ const o = Dn(i, n);
1868
1874
  e.orderByFields = o, e.groupByFieldsForStatistics = o, r === p.BarAndLineSplitBy && !ee(a) ? e.groupByFieldsForStatistics.push(a) : r === p.BarAndLineNoAggregation && (e.groupByFieldsForStatistics.push(s), e.outStatistics = [
1869
1875
  {
1870
1876
  onStatisticField: s,
1871
1877
  outStatisticFieldName: `COUNT_${s}`,
1872
- statisticType: T.Count
1878
+ statisticType: A.Count
1873
1879
  }
1874
1880
  ]);
1875
1881
  }
1876
1882
  }
1877
- function yi(t) {
1883
+ function pi(t) {
1878
1884
  const { chartConfig: e, options: i, uniqueQuery: a } = t;
1879
1885
  if (i?.chartLimits?.behaviorAfterLimit === $e.RenderUpToTheLimit) {
1880
- const n = di(e, i?.chartLimits);
1886
+ const n = fi(e, i?.chartLimits);
1881
1887
  if (n !== void 0) {
1882
1888
  const r = V(e.series);
1883
1889
  if (r === p.PieFromFields || r === p.BarAndLineFromFields) {
1884
1890
  if (a.outStatistics?.[0] !== void 0) {
1885
- const s = (l, u) => l.statisticType === T.EnvelopeAggregate === u, o = a.outStatistics.filter((l) => s(l, !0)), c = a.outStatistics.filter((l) => s(l, !1));
1891
+ const s = (l, u) => l.statisticType === A.EnvelopeAggregate === u, o = a.outStatistics.filter((l) => s(l, !0)), c = a.outStatistics.filter((l) => s(l, !1));
1886
1892
  c.splice(n), a.outStatistics = [...c, ...o];
1887
1893
  }
1888
1894
  } else
@@ -1903,11 +1909,11 @@ async function ct(t) {
1903
1909
  let Q = "";
1904
1910
  switch (i.fetchNullValues !== !0 && (m !== b.boxPlot.boxPlotCategory && (Q = `${m} IS NOT NULL`), q.trim() !== "" && q !== m && !Tt(f.where) && (Q = H([Q, `${q} IS NOT NULL`]))), u) {
1905
1911
  case p.BarAndLineSplitBy: {
1906
- h = On(l), B = !0, x = !0, F = !0;
1912
+ h = qn(l), B = !0, x = !0, F = !0;
1907
1913
  break;
1908
1914
  }
1909
1915
  case p.BarAndLineMultiFields:
1910
- $n(v, l), F = !0;
1916
+ Rn(v, l), F = !0;
1911
1917
  break;
1912
1918
  case p.PieFromFields:
1913
1919
  case p.BarAndLineFromFields:
@@ -1933,7 +1939,7 @@ async function ct(t) {
1933
1939
  case p.BarAndLineNoAggregation:
1934
1940
  case p.BarAndLineSplitByNoAggregation:
1935
1941
  }
1936
- if (F && Vn({
1942
+ if (F && In({
1937
1943
  uniqueQuery: v,
1938
1944
  y: g,
1939
1945
  useGenericOutStatFieldName: x,
@@ -1942,27 +1948,27 @@ async function ct(t) {
1942
1948
  isTimeBinningSeries: y,
1943
1949
  returnFeaturesExtent: c,
1944
1950
  splitByField: q
1945
- }), B && qn({ uniqueQuery: v, splitByField: q, x: m }), N && (v.outStatistics = In({ chartConfig: e, fetchFullBoxPlotData: s })), C ? delete v.orderByFields : i.orderByFields !== void 0 && (v.orderByFields = i.orderByFields.filter((X) => {
1946
- const $ = X.split(" ");
1947
- return !ee($[0]);
1951
+ }), B && En({ uniqueQuery: v, splitByField: q, x: m }), N && (v.outStatistics = $n({ chartConfig: e, fetchFullBoxPlotData: s })), C ? delete v.orderByFields : i.orderByFields !== void 0 && (v.orderByFields = i.orderByFields.filter((X) => {
1952
+ const R = X.split(" ");
1953
+ return !ee(R[0]);
1948
1954
  })), y && se(l[0])) {
1949
- const X = z(n), { objectIdField: $ } = X;
1950
- (await Ne(n)).find((te) => te.name === m)?.type !== Ye.DateOnly && Rn({
1955
+ const X = z(n), { objectIdField: R } = X;
1956
+ (await Ne(n)).find((te) => te.name === m)?.type !== Ye.DateOnly && kn({
1951
1957
  uniqueQuery: v,
1952
1958
  x: m,
1953
1959
  splitByField: K(f.where),
1954
1960
  unit: r?.unit ?? l[0].temporalBinning?.unit,
1955
1961
  chartSubType: u,
1956
- objectIdField: $
1962
+ objectIdField: R
1957
1963
  });
1958
1964
  }
1959
1965
  v.where = Q;
1960
1966
  }
1961
- yi({ chartConfig: e, options: a, uniqueQuery: v });
1962
- const { gdbVersion: P, geometry: D, distance: M, units: w, timeExtent: k, where: L, objectIds: O, spatialRelationship: A } = i;
1963
- return P !== void 0 && (v.gdbVersion = P), D !== void 0 && (v.geometry = D), M !== void 0 && (v.distance = M), w !== void 0 && (v.units = w), k !== void 0 && (v.timeExtent = k), O !== void 0 && (v.objectIds = O), A !== void 0 && (v.spatialRelationship = A), L !== void 0 && (v.where = H([v.where, L])), { uniqueQuery: v, mapToStatField: h };
1967
+ pi({ chartConfig: e, options: a, uniqueQuery: v });
1968
+ const { gdbVersion: T, geometry: O, distance: M, units: w, timeExtent: I, where: L, objectIds: D, spatialRelationship: P } = i;
1969
+ return T !== void 0 && (v.gdbVersion = T), O !== void 0 && (v.geometry = O), M !== void 0 && (v.distance = M), w !== void 0 && (v.units = w), I !== void 0 && (v.timeExtent = I), D !== void 0 && (v.objectIds = D), P !== void 0 && (v.spatialRelationship = P), L !== void 0 && (v.where = H([v.where, L])), { uniqueQuery: v, mapToStatField: h };
1964
1970
  }
1965
- async function kn(t) {
1971
+ async function jn(t) {
1966
1972
  const { queryObject: e, queryConfig: i, chartConfig: a, abortKey: n } = t, r = a.series[0], { x: s, valueConversion: o } = r, c = Xt(a), l = await ye({
1967
1973
  queryObject: e,
1968
1974
  queryConfig: i,
@@ -1983,12 +1989,12 @@ async function kn(t) {
1983
1989
  }
1984
1990
  return u;
1985
1991
  }
1986
- async function jn(t) {
1992
+ async function Wn(t) {
1987
1993
  const { queryObject: e, chartConfig: i, queryConfig: a, options: n, abortKey: r } = t, { chartLimits: s } = n ?? {}, o = { valid: !0 };
1988
1994
  if (e !== void 0) {
1989
1995
  const { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = s ?? {}, u = Xt(i);
1990
1996
  let d = !0, f;
1991
- if (u && (f = (await Li({
1997
+ if (u && (f = (await wi({
1992
1998
  chartConfig: i,
1993
1999
  queryObject: e,
1994
2000
  queryConfig: a,
@@ -2005,10 +2011,10 @@ async function jn(t) {
2005
2011
  Number.isFinite(m) && (n.chartLimits = {
2006
2012
  ...s,
2007
2013
  maxGaugeByFeaturesLimit: m
2008
- }), yi({ chartConfig: i, options: n, uniqueQuery: a });
2014
+ }), pi({ chartConfig: i, options: n, uniqueQuery: a });
2009
2015
  }
2010
2016
  if (Number.isNaN(d) || d) {
2011
- const m = await kn({
2017
+ const m = await jn({
2012
2018
  queryObject: e,
2013
2019
  chartConfig: i,
2014
2020
  queryConfig: a,
@@ -2023,18 +2029,18 @@ async function jn(t) {
2023
2029
  }
2024
2030
  return o;
2025
2031
  }
2026
- async function Ko(t) {
2032
+ async function Xo(t) {
2027
2033
  const { queryObject: e, chartConfig: i, queryConfig: a } = t, { minimumFromField: n, maximumFromField: r } = i.axes[0], s = [];
2028
2034
  let o = "", c = "";
2029
- n !== void 0 && (typeof n == "string" ? (o = `${T.Minimum}_${n}`, s.push({
2030
- statisticType: T.Minimum,
2035
+ n !== void 0 && (typeof n == "string" ? (o = `${A.Minimum}_${n}`, s.push({
2036
+ statisticType: A.Minimum,
2031
2037
  onStatisticField: n,
2032
2038
  outStatisticFieldName: o
2033
2039
  })) : (o = `${n.statisticType}_${n.onStatisticField}`, s.push({
2034
2040
  ...n,
2035
2041
  outStatisticFieldName: o
2036
- }))), r !== void 0 && (typeof r == "string" ? (c = `${T.Maximum}_${r}`, s.push({
2037
- statisticType: T.Maximum,
2042
+ }))), r !== void 0 && (typeof r == "string" ? (c = `${A.Maximum}_${r}`, s.push({
2043
+ statisticType: A.Maximum,
2038
2044
  onStatisticField: r,
2039
2045
  outStatisticFieldName: c
2040
2046
  })) : (c = `${r.statisticType}_${r.onStatisticField}`, s.push({
@@ -2055,14 +2061,14 @@ async function Ko(t) {
2055
2061
  }), d = u.get(o), f = u.get(c);
2056
2062
  return { minimumFromData: d, maximumFromData: f };
2057
2063
  }
2058
- function Wn(t = _.None, e) {
2064
+ function Qn(t = _.None, e) {
2059
2065
  return t === _.None || t === _.Log && e > 0 || t === _.Sqrt && e >= 0;
2060
2066
  }
2061
- function pi(t, e) {
2067
+ function hi(t, e) {
2062
2068
  const i = { valid: !1 };
2063
- return e === !0 ? i.invalidType = R.HistogramEmptyField : t === _.Log ? i.invalidType = R.NegativeValueInLogCalculation : t === _.Sqrt && (i.invalidType = R.NegativeValueInSqrtCalculation), i;
2069
+ return e === !0 ? i.invalidType = k.HistogramEmptyField : t === _.Log ? i.invalidType = k.NegativeValueInLogCalculation : t === _.Sqrt && (i.invalidType = k.NegativeValueInSqrtCalculation), i;
2064
2070
  }
2065
- function Qn(t, e) {
2071
+ function Hn(t, e) {
2066
2072
  let i = t;
2067
2073
  switch (e) {
2068
2074
  case _.Log:
@@ -2074,7 +2080,7 @@ function Qn(t, e) {
2074
2080
  }
2075
2081
  return i;
2076
2082
  }
2077
- function Hn(t) {
2083
+ function zn(t) {
2078
2084
  let e = t;
2079
2085
  const i = t.toString().split(".");
2080
2086
  if (i[1] !== void 0) {
@@ -2083,7 +2089,7 @@ function Hn(t) {
2083
2089
  }
2084
2090
  return e;
2085
2091
  }
2086
- function hi(t) {
2092
+ function Si(t) {
2087
2093
  let e = "field";
2088
2094
  switch (t) {
2089
2095
  case _.Log:
@@ -2096,27 +2102,27 @@ function hi(t) {
2096
2102
  }
2097
2103
  return e;
2098
2104
  }
2099
- async function zn(t) {
2100
- const { queryObject: e, fieldName: i, queryConfig: a, abortKey: n } = t, r = z(e), { objectIdField: s } = r, o = `${T.Count}_${s}`, c = `${T.Count}_${i}`, l = `${T.Minimum}_${i}`, u = `${T.Maximum}_${i}`, d = {
2105
+ async function Un(t) {
2106
+ const { queryObject: e, fieldName: i, queryConfig: a, abortKey: n } = t, r = z(e), { objectIdField: s } = r, o = `${A.Count}_${s}`, c = `${A.Count}_${i}`, l = `${A.Minimum}_${i}`, u = `${A.Maximum}_${i}`, d = {
2101
2107
  ...a,
2102
2108
  outStatistics: [
2103
2109
  {
2104
- statisticType: T.Count,
2110
+ statisticType: A.Count,
2105
2111
  onStatisticField: s,
2106
2112
  outStatisticFieldName: o
2107
2113
  },
2108
2114
  {
2109
- statisticType: T.Count,
2115
+ statisticType: A.Count,
2110
2116
  onStatisticField: i,
2111
2117
  outStatisticFieldName: c
2112
2118
  },
2113
2119
  {
2114
- statisticType: T.Minimum,
2120
+ statisticType: A.Minimum,
2115
2121
  onStatisticField: i,
2116
2122
  outStatisticFieldName: l
2117
2123
  },
2118
2124
  {
2119
- statisticType: T.Maximum,
2125
+ statisticType: A.Maximum,
2120
2126
  onStatisticField: i,
2121
2127
  outStatisticFieldName: u
2122
2128
  }
@@ -2128,15 +2134,15 @@ async function zn(t) {
2128
2134
  }), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN, h = f.get(u) ?? Number.NaN;
2129
2135
  return { countExcludingNulls: g, countIncludingNulls: m, min: y, max: h };
2130
2136
  }
2131
- async function Un(t) {
2137
+ async function Gn(t) {
2132
2138
  const { queryConfig: e, chartConfig: i, queryObject: a, abortKey: n } = t, r = i.series[0], { x: s, dataTransformationType: o } = r;
2133
2139
  let c = [];
2134
- const { countIncludingNulls: l, countExcludingNulls: u, min: d, max: f } = await zn({
2140
+ const { countIncludingNulls: l, countExcludingNulls: u, min: d, max: f } = await Un({
2135
2141
  queryObject: a,
2136
2142
  queryConfig: e,
2137
2143
  fieldName: s,
2138
2144
  abortKey: n
2139
- }), m = Wn(o, d), g = u < 2 || d === f, y = { ...e };
2145
+ }), m = Qn(o, d), g = u < 2 || d === f, y = { ...e };
2140
2146
  return y.where = H([y.where, `${s} is not null`]), {
2141
2147
  rawData: c,
2142
2148
  dataCompatibleWithTransformation: m,
@@ -2145,11 +2151,11 @@ async function Un(t) {
2145
2151
  countIncludingNulls: l
2146
2152
  };
2147
2153
  }
2148
- function Gn(t) {
2154
+ function _n(t) {
2149
2155
  const e = { ...t };
2150
2156
  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;
2151
2157
  }
2152
- function _n(t) {
2158
+ function Yn(t) {
2153
2159
  const { seriesConfig: e, layer: i, useFeaturesInView: a, view: n, queryConfig: r } = t, { x: s, dataTransformationType: o } = e;
2154
2160
  let c = {
2155
2161
  layer: i,
@@ -2161,10 +2167,10 @@ function _n(t) {
2161
2167
  };
2162
2168
  return o !== _.None && (c = {
2163
2169
  ...c,
2164
- normalizationType: hi(o)
2170
+ normalizationType: Si(o)
2165
2171
  }), c;
2166
2172
  }
2167
- function Yn(t) {
2173
+ function Kn(t) {
2168
2174
  const { seriesConfig: e, layer: i, useFeaturesInView: a, view: n, minValue: r, maxValue: s, queryConfig: o } = t, { x: c, binCount: l, dataTransformationType: u } = e;
2169
2175
  let d = {
2170
2176
  layer: i,
@@ -2172,7 +2178,7 @@ function Yn(t) {
2172
2178
  field: c,
2173
2179
  minValue: r,
2174
2180
  maxValue: s,
2175
- numBins: l ?? Ki,
2181
+ numBins: l ?? Ji,
2176
2182
  classificationMethod: "equal-interval",
2177
2183
  // 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)
2178
2184
  sqlWhere: Tt(o.where) ? void 0 : o.where,
@@ -2180,14 +2186,14 @@ function Yn(t) {
2180
2186
  };
2181
2187
  return u !== _.None && (d = {
2182
2188
  ...d,
2183
- normalizationType: hi(u)
2189
+ normalizationType: Si(u)
2184
2190
  }), d;
2185
2191
  }
2186
- function Kn(t, e) {
2192
+ function Jn(t, e) {
2187
2193
  let i = Number.NaN;
2188
2194
  return t !== void 0 && e !== void 0 && (i = t - e), i;
2189
2195
  }
2190
- async function Jn(t) {
2196
+ async function Xn(t) {
2191
2197
  const {
2192
2198
  chartConfig: e,
2193
2199
  queryConfig: i,
@@ -2199,7 +2205,7 @@ async function Jn(t) {
2199
2205
  } = t, c = e.series[0], { dataTransformationType: l } = c;
2200
2206
  let u = { valid: !0 };
2201
2207
  if (a !== void 0) {
2202
- const d = z(a), m = _i(i?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = _n({
2208
+ const d = z(a), m = Yi(i?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = Yn({
2203
2209
  seriesConfig: c,
2204
2210
  layer: d,
2205
2211
  view: g,
@@ -2209,7 +2215,7 @@ async function Jn(t) {
2209
2215
  let h;
2210
2216
  if (g !== void 0 && (h = new $t({
2211
2217
  geometry: g.extent
2212
- }), g.extent !== void 0 && Yi(d))) {
2218
+ }), g.extent !== void 0 && Ki(d))) {
2213
2219
  const { distance: M, units: w } = i;
2214
2220
  M !== void 0 && (h.distance = M), w !== void 0 && (h.units = w);
2215
2221
  }
@@ -2231,19 +2237,19 @@ async function Jn(t) {
2231
2237
  M?.median && (x.median = M.median);
2232
2238
  } catch {
2233
2239
  }
2234
- x = Gn(x);
2235
- const { avg: F, count: C, stddev: B, min: N, max: v, sum: P, median: D } = x;
2240
+ x = _n(x);
2241
+ const { avg: F, count: C, stddev: B, min: N, max: v, sum: T, median: O } = x;
2236
2242
  if (C === 0)
2237
2243
  u = {
2238
- ...pi(l)
2244
+ ...hi(l)
2239
2245
  };
2240
2246
  else {
2241
- const M = Yn({
2247
+ const M = Kn({
2242
2248
  seriesConfig: c,
2243
2249
  layer: d,
2244
2250
  view: g,
2245
2251
  useFeaturesInView: m,
2246
- minValue: Hn(N),
2252
+ minValue: zn(N),
2247
2253
  maxValue: v,
2248
2254
  valueExpression: y.valueExpression,
2249
2255
  queryConfig: i
@@ -2251,35 +2257,35 @@ async function Jn(t) {
2251
2257
  M.filter = h;
2252
2258
  let w;
2253
2259
  try {
2254
- w = await ba(M);
2260
+ w = await Ca(M);
2255
2261
  } catch (L) {
2256
2262
  throw new pt(Vt.QueryFeaturesError, o.errors.queryError, L);
2257
2263
  }
2258
- const k = Kn(r, n);
2264
+ const I = Jn(r, n);
2259
2265
  u.data = {
2260
2266
  mean: F,
2261
2267
  stddev: B,
2262
2268
  min: N,
2263
2269
  max: v,
2264
- median: Number(D),
2270
+ median: Number(O),
2265
2271
  bins: w?.bins,
2266
2272
  count: n,
2267
- nulls: k,
2268
- sum: P ?? void 0
2273
+ nulls: I,
2274
+ sum: T ?? void 0
2269
2275
  }, u.data.bins.length > 0 && (u.data.bins[u.data.bins.length - 1].isLastBin = !0);
2270
2276
  }
2271
2277
  }
2272
2278
  return u;
2273
2279
  }
2274
- async function Si(t) {
2275
- const { chartConfig: e, queryConfig: i, queryObject: a, options: n, abortKey: r, errorStrings: s } = t, { series: o } = e, c = o[0], { rawData: l, dataCompatibleWithTransformation: u, dataCountIncompatible: d, countIncludingNulls: f, countExcludingNulls: m } = await Un({
2280
+ async function Fi(t) {
2281
+ const { chartConfig: e, queryConfig: i, queryObject: a, options: n, abortKey: r, errorStrings: s } = t, { series: o } = e, c = o[0], { rawData: l, dataCompatibleWithTransformation: u, dataCountIncompatible: d, countIncludingNulls: f, countExcludingNulls: m } = await Gn({
2276
2282
  queryObject: a,
2277
2283
  chartConfig: e,
2278
2284
  queryConfig: i,
2279
2285
  abortKey: r
2280
2286
  });
2281
2287
  let g = { valid: !0 };
2282
- return !u || d ? g = pi(c.dataTransformationType, d) : g = await Jn({
2288
+ return !u || d ? g = hi(c.dataTransformationType, d) : g = await Xn({
2283
2289
  chartConfig: e,
2284
2290
  queryObject: a,
2285
2291
  queryConfig: i,
@@ -2289,7 +2295,7 @@ async function Si(t) {
2289
2295
  errorStrings: s
2290
2296
  }), g;
2291
2297
  }
2292
- async function Xn(t) {
2298
+ async function Zn(t) {
2293
2299
  const { queryObject: e, queryConfig: i, chartConfig: a, x: n } = t, { series: r } = a, { dataTransformationType: s } = r[0], o = {
2294
2300
  ...i,
2295
2301
  orderByFields: [n],
@@ -2301,7 +2307,7 @@ async function Xn(t) {
2301
2307
  queryObject: e,
2302
2308
  queryConfig: o
2303
2309
  })).map((u) => ({
2304
- [n]: Qn(u.attributes[n], s)
2310
+ [n]: Hn(u.attributes[n], s)
2305
2311
  })) }
2306
2312
  };
2307
2313
  }
@@ -2309,18 +2315,18 @@ const Me = {
2309
2315
  groupByCaseBegin: "CASE",
2310
2316
  groupByOutKeyword: "OUT",
2311
2317
  groupByCaseEnd: "ELSE 'OUT' END"
2312
- }, Zn = "{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";
2313
- async function er(t) {
2318
+ }, er = "{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";
2319
+ async function tr(t) {
2314
2320
  const { chartConfig: e, queryObject: i, queryConfig: a, abortKey: n } = t, r = e.series[0], { x: s, y: o } = r, { dataContextCountDistinctX: c, dataContextCountDistinctY: l } = b.scatterplotAggregationFields, u = {
2315
2321
  ...a,
2316
2322
  outStatistics: [
2317
2323
  {
2318
- statisticType: T.Count,
2324
+ statisticType: A.Count,
2319
2325
  outStatisticFieldName: c,
2320
2326
  onStatisticField: s
2321
2327
  },
2322
2328
  {
2323
- statisticType: T.Count,
2329
+ statisticType: A.Count,
2324
2330
  outStatisticFieldName: l,
2325
2331
  onStatisticField: o
2326
2332
  }
@@ -2334,7 +2340,7 @@ async function er(t) {
2334
2340
  abortKey: n
2335
2341
  });
2336
2342
  }
2337
- async function tr(t) {
2343
+ async function ir(t) {
2338
2344
  const { statsMap: e, chartConfig: i, queryObject: a, options: n, queryConfig: r, abortKey: s } = t, {
2339
2345
  dataContextXMinField: o,
2340
2346
  dataContextXMaxField: c,
@@ -2346,19 +2352,19 @@ async function tr(t) {
2346
2352
  let m, g, y, h, x;
2347
2353
  const F = e.get(o), C = e.get(c), B = e.get(l), N = e.get(u);
2348
2354
  if (F != null && B !== void 0 && B !== null && C !== void 0 && C !== null && N !== void 0 && N !== null && !Number.isNaN(F + C + B + N)) {
2349
- const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), D = Math.floor(Math.sqrt(v)), M = await er({
2355
+ const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), O = Math.floor(Math.sqrt(v)), M = await tr({
2350
2356
  queryObject: a,
2351
2357
  chartConfig: i,
2352
2358
  queryConfig: r,
2353
2359
  abortKey: s
2354
2360
  });
2355
- y = Math.min(M.get(f) ?? Number.NaN, D), h = Math.min(M.get(d) ?? Number.NaN, D), 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);
2361
+ y = Math.min(M.get(f) ?? Number.NaN, O), h = Math.min(M.get(d) ?? Number.NaN, O), 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);
2356
2362
  }
2357
2363
  }
2358
- function ir(t) {
2364
+ function ar(t) {
2359
2365
  const { groupByFieldsForStatistics: e, x: i, y: a, xValue: n, yValue: r, xStep: s, yStep: o, endOfRow: c, endOfColumn: l } = t;
2360
2366
  let u = e === "" ? Me.groupByCaseBegin : e;
2361
- return u = ue(Zn, {
2367
+ return u = ue(er, {
2362
2368
  groupByFieldsForStatistics: u,
2363
2369
  x: i,
2364
2370
  y: a,
@@ -2376,7 +2382,7 @@ function ir(t) {
2376
2382
  // we use = to catch the last value of the line, < otherwise
2377
2383
  }), u;
2378
2384
  }
2379
- async function ar(t) {
2385
+ async function nr(t) {
2380
2386
  const { chartConfig: e, queryConfig: i, queryObject: a, xMin: n, xMax: r, yMin: s, yMax: o, abortKey: c } = t, l = e.series[0], { x: u, y: d } = l, f = { ...i };
2381
2387
  return f.where = H([f.where, `${u}>=${n}`, `${u}<=${r}`]), u !== d && (f.where = H([f.where, `${d}>=${s}`, `${d}<=${o}`])), await ye({
2382
2388
  queryObject: a,
@@ -2387,7 +2393,7 @@ async function ar(t) {
2387
2393
  abortKey: c
2388
2394
  });
2389
2395
  }
2390
- async function nr(t) {
2396
+ async function rr(t) {
2391
2397
  const { statsMap: e, chartConfig: i, queryObject: a, queryConfig: n, useQueryAttributeBins: r, errorStrings: s, abortKey: o } = t, c = i.series[0], { x: l, y: u } = c, {
2392
2398
  dataContextXMinField: d,
2393
2399
  dataContextXMaxField: f,
@@ -2399,46 +2405,46 @@ async function nr(t) {
2399
2405
  let x;
2400
2406
  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;
2401
2407
  if (F != null && N !== void 0 && N !== null && C !== void 0 && C !== null && v !== void 0 && v !== null && !Number.isNaN(F + C + N + v)) {
2402
- const P = z(a), { objectIdField: D } = P, M = e?.get(b.scatterplotAggregationFields.xStep), w = e?.get(b.scatterplotAggregationFields.yStep), k = e?.get(b.scatterplotAggregationFields.realGridSize), L = e?.get(b.scatterplotAggregationFields.rowCount), O = e?.get(b.scatterplotAggregationFields.columnCount), A = /* @__PURE__ */ new Map(), q = await Ne(a);
2403
- if (q?.forEach(($) => {
2404
- We($) && A.set($.name, {
2405
- onStatisticField: $.name,
2406
- outStatisticFieldName: $.name,
2407
- statisticType: T.Maximum
2408
+ const T = z(a), { objectIdField: O } = T, M = e?.get(b.scatterplotAggregationFields.xStep), w = e?.get(b.scatterplotAggregationFields.yStep), I = e?.get(b.scatterplotAggregationFields.realGridSize), L = e?.get(b.scatterplotAggregationFields.rowCount), D = e?.get(b.scatterplotAggregationFields.columnCount), P = /* @__PURE__ */ new Map(), q = await Ne(a);
2409
+ if (q?.forEach((R) => {
2410
+ We(R) && P.set(R.name, {
2411
+ onStatisticField: R.name,
2412
+ outStatisticFieldName: R.name,
2413
+ statisticType: A.Maximum
2408
2414
  });
2409
- }), (q.filter(($) => c?.additionalTooltipFields?.includes($.name)) ?? [])?.forEach(($) => {
2410
- We($) || A.set($.name, {
2411
- onStatisticField: $.name,
2412
- outStatisticFieldName: $.name,
2413
- statisticType: T.Maximum
2415
+ }), (q.filter((R) => c?.additionalTooltipFields?.includes(R.name)) ?? [])?.forEach((R) => {
2416
+ We(R) || P.set(R.name, {
2417
+ onStatisticField: R.name,
2418
+ outStatisticFieldName: R.name,
2419
+ statisticType: A.Maximum
2414
2420
  });
2415
- }), (await Zt(P)).forEach(($) => {
2416
- A.set($, {
2417
- onStatisticField: $,
2418
- outStatisticFieldName: $,
2419
- statisticType: T.Maximum
2421
+ }), (await Zt(T)).forEach((R) => {
2422
+ P.set(R, {
2423
+ onStatisticField: R,
2424
+ outStatisticFieldName: R,
2425
+ statisticType: A.Maximum
2420
2426
  });
2421
- }), A.set(D, {
2422
- onStatisticField: D,
2427
+ }), P.set(O, {
2428
+ onStatisticField: O,
2423
2429
  outStatisticFieldName: h,
2424
- statisticType: T.Count
2430
+ statisticType: A.Count
2425
2431
  }).set(l, {
2426
2432
  onStatisticField: l,
2427
2433
  outStatisticFieldName: l,
2428
- statisticType: T.Maximum
2434
+ statisticType: A.Maximum
2429
2435
  }).set(u, {
2430
2436
  onStatisticField: u,
2431
2437
  outStatisticFieldName: u,
2432
- statisticType: T.Maximum
2438
+ statisticType: A.Maximum
2433
2439
  }), M !== void 0 && w !== void 0) {
2434
2440
  if (r) {
2435
- const $ = {
2441
+ const R = {
2436
2442
  ...n,
2437
- outStatistics: [...A.values()]
2443
+ outStatistics: [...P.values()]
2438
2444
  };
2439
- x = await Ji({
2445
+ x = await Xi({
2440
2446
  queryObject: a,
2441
- queryConfig: $,
2447
+ queryConfig: R,
2442
2448
  xStep: M,
2443
2449
  xMin: F,
2444
2450
  xMax: C,
@@ -2447,13 +2453,13 @@ async function nr(t) {
2447
2453
  yStep: w,
2448
2454
  errorStrings: s
2449
2455
  });
2450
- } else if (L !== void 0 && O !== void 0) {
2451
- let $ = 0;
2452
- const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ce } = Ge(), we = await Xi(P) ? ce : Z, Dt = [];
2456
+ } else if (L !== void 0 && D !== void 0) {
2457
+ let R = 0;
2458
+ const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ce } = Ge(), we = await Zi(T) ? ce : Z, Dt = [];
2453
2459
  let dt = !0, De = F, Te = N, Oe = "", Je = 1, ft = 1, Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER;
2454
- for (; ft <= O && dt; ) {
2460
+ for (; ft <= D && dt; ) {
2455
2461
  for (Te = N, Je = 1; Je <= L && dt; ) {
2456
- if (Oe = ir({
2462
+ if (Oe = ar({
2457
2463
  groupByFieldsForStatistics: Oe,
2458
2464
  x: l,
2459
2465
  y: u,
@@ -2462,18 +2468,18 @@ async function nr(t) {
2462
2468
  xStep: M,
2463
2469
  yStep: w,
2464
2470
  endOfRow: Je === L,
2465
- endOfColumn: ft === O
2466
- }), De < Xe && (Xe = De), De + M > Ze && (Ze = De + M), Te < et && (et = Te), Te + M > tt && (tt = Te + w), $ += 1, $ % we === 0 || $ === k || $ === B) {
2471
+ endOfColumn: ft === D
2472
+ }), De < Xe && (Xe = De), De + M > Ze && (Ze = De + M), Te < et && (et = Te), Te + M > tt && (tt = Te + w), R += 1, R % we === 0 || R === I || R === B) {
2467
2473
  Oe = `${Oe} ${Me.groupByCaseEnd}`;
2468
- const Ei = {
2474
+ const Vi = {
2469
2475
  ...n,
2470
2476
  groupByFieldsForStatistics: [Oe],
2471
- outStatistics: [...A.values()]
2477
+ outStatistics: [...P.values()]
2472
2478
  };
2473
2479
  Dt.push(
2474
- ar({
2480
+ nr({
2475
2481
  chartConfig: i,
2476
- queryConfig: Ei,
2482
+ queryConfig: Vi,
2477
2483
  queryObject: a,
2478
2484
  xMin: Xe,
2479
2485
  xMax: Ze,
@@ -2481,7 +2487,7 @@ async function nr(t) {
2481
2487
  yMax: tt,
2482
2488
  abortKey: o
2483
2489
  })
2484
- ), Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER, Oe = "", $ === k && (dt = !1);
2490
+ ), Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER, Oe = "", R === I && (dt = !1);
2485
2491
  }
2486
2492
  Te += w, Je += 1;
2487
2493
  }
@@ -2493,7 +2499,7 @@ async function nr(t) {
2493
2499
  }
2494
2500
  return x;
2495
2501
  }
2496
- const rr = {
2502
+ const sr = {
2497
2503
  dataFormat: "json",
2498
2504
  outputFormat: "json",
2499
2505
  typeKey: "analyticType",
@@ -2503,33 +2509,33 @@ const rr = {
2503
2509
  interceptPropertyList: ["Intercept", "INTERCEPT", "intercept"],
2504
2510
  r2PropertyList: ["R2", "r2"]
2505
2511
  };
2506
- async function sr(t) {
2512
+ async function or(t) {
2507
2513
  const { queryObject: e } = t;
2508
2514
  let i = !1;
2509
- const a = Zi(e), n = z(e), r = ei(n);
2515
+ const a = ea(e), n = z(e), r = ei(n);
2510
2516
  if (a && r.url !== void 0 && r.url !== null) {
2511
2517
  const s = `${r.url}/${r.layerId}?f=json`;
2512
2518
  try {
2513
- const o = (await ya(s)).data, c = o?.advancedQueryCapabilities?.supportsQueryAnalytic === !0, l = o?.sqlParserVersion === void 0 || r.version != null && r.version >= 10.91;
2519
+ const o = (await ha(s)).data, c = o?.advancedQueryCapabilities?.supportsQueryAnalytic === !0, l = o?.sqlParserVersion === void 0 || r.version != null && r.version >= 10.91;
2514
2520
  i = c && l;
2515
2521
  } catch {
2516
2522
  }
2517
2523
  }
2518
2524
  return i;
2519
2525
  }
2520
- function or(t) {
2521
- const { x: e, y: i, trendlineXToY: a, data: n } = t, [r, s] = n ? Ri(n, (c) => c[e]) : [Number.NaN, Number.NaN];
2526
+ function lr(t) {
2527
+ const { x: e, y: i, trendlineXToY: a, data: n } = t, [r, s] = n ? ki(n, (c) => c[e]) : [Number.NaN, Number.NaN];
2522
2528
  return [
2523
2529
  { [e]: r ?? Number.NaN, [i]: a(r ?? Number.NaN) },
2524
2530
  { [e]: s ?? Number.NaN, [i]: a(s ?? Number.NaN) }
2525
2531
  ];
2526
2532
  }
2527
- function lr(t) {
2533
+ function cr(t) {
2528
2534
  const { data: e, x: i, y: a } = t;
2529
2535
  let n = [];
2530
2536
  return e !== void 0 && (n = e.filter((r) => Number.isFinite(r[i]) && Number.isFinite(r[a])).map((r) => [r[i], r[a]])), n;
2531
2537
  }
2532
- async function cr(t) {
2538
+ async function ur(t) {
2533
2539
  const { statsMap: e, queryObject: i, chartConfig: a, queryConfig: n } = t, r = a.series[0], { x: s, y: o } = r;
2534
2540
  let c = Number.NaN, l = [
2535
2541
  { [s]: Number.NaN, [o]: Number.NaN },
@@ -2544,7 +2550,7 @@ async function cr(t) {
2544
2550
  slopePropertyList: y,
2545
2551
  interceptPropertyList: h,
2546
2552
  r2PropertyList: x
2547
- } = rr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await ea({
2553
+ } = sr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await ta({
2548
2554
  queryObject: i,
2549
2555
  queryConfig: n,
2550
2556
  outputFormat: d,
@@ -2553,15 +2559,15 @@ async function cr(t) {
2553
2559
  });
2554
2560
  if (C !== void 0) {
2555
2561
  let B = Number.NaN, N = Number.NaN;
2556
- const { expr: v } = mt(C, y), { expr: P } = mt(C, h), { expr: D } = mt(C, x);
2557
- v !== void 0 && Number.isFinite(C[v]) && (B = C[v]), P !== void 0 && Number.isFinite(C[P]) && (N = C[P]), D !== void 0 && Number.isFinite(C[D]) && (c = C[D]);
2558
- const { dataContextXMinField: M, dataContextXMaxField: w, dataContextYMinField: k, dataContextYMaxField: L } = b.scatterplotAggregationFields, O = e.get(M) ?? Number.NaN, A = e.get(w) ?? Number.NaN, q = e.get(k) ?? Number.NaN, Q = e.get(L) ?? Number.NaN, $ = (A - O) / 100;
2559
- let Z = O - $, ce = Number.NaN;
2560
- for (; !(ce >= q && ce <= Q) && Z <= A; )
2561
- Z += $, ce = B * Z + N;
2562
- let te = A + $, we = Number.NaN;
2563
- for (; !(we >= q && we <= Q) && te >= O; )
2564
- te -= $, we = B * te + N;
2562
+ const { expr: v } = mt(C, y), { expr: T } = mt(C, h), { expr: O } = mt(C, x);
2563
+ v !== void 0 && Number.isFinite(C[v]) && (B = C[v]), T !== void 0 && Number.isFinite(C[T]) && (N = C[T]), O !== void 0 && Number.isFinite(C[O]) && (c = C[O]);
2564
+ const { dataContextXMinField: M, dataContextXMaxField: w, dataContextYMinField: I, dataContextYMaxField: L } = b.scatterplotAggregationFields, D = e.get(M) ?? Number.NaN, P = e.get(w) ?? Number.NaN, q = e.get(I) ?? Number.NaN, Q = e.get(L) ?? Number.NaN, R = (P - D) / 100;
2565
+ let Z = D - R, ce = Number.NaN;
2566
+ for (; !(ce >= q && ce <= Q) && Z <= P; )
2567
+ Z += R, ce = B * Z + N;
2568
+ let te = P + R, we = Number.NaN;
2569
+ for (; !(we >= q && we <= Q) && te >= D; )
2570
+ te -= R, we = B * te + N;
2565
2571
  l = [
2566
2572
  { [s]: Z, [o]: ce },
2567
2573
  { [s]: te, [o]: we }
@@ -2569,31 +2575,31 @@ async function cr(t) {
2569
2575
  }
2570
2576
  return { r2: c, trendLinePoints: l };
2571
2577
  }
2572
- function Fi(t) {
2578
+ function bi(t) {
2573
2579
  const { data: e, chartConfig: i } = t, a = i.series[0], { x: n, y: r } = a;
2574
2580
  let { r2: s, trendLinePoints: o } = b.scatterplotSeries;
2575
- const c = lr({ data: e, x: n, y: r });
2581
+ const c = cr({ data: e, x: n, y: r });
2576
2582
  if (c !== void 0) {
2577
- const l = xa(c), u = Ca(l);
2578
- s = Ba(c, u), o = or({ x: n, y: r, trendlineXToY: u, data: e });
2583
+ const l = Ba(c), u = va(l);
2584
+ s = Na(c, u), o = lr({ x: n, y: r, trendlineXToY: u, data: e });
2579
2585
  }
2580
2586
  return { r2: s, trendLinePoints: o };
2581
2587
  }
2582
- async function ur(t) {
2583
- const e = await sr(t), { chartConfig: i } = t, a = i.series[0], { x: n, y: r } = a, { r2: s } = b.scatterplotSeries, o = [
2588
+ async function dr(t) {
2589
+ const e = await or(t), { chartConfig: i } = t, a = i.series[0], { x: n, y: r } = a, { r2: s } = b.scatterplotSeries, o = [
2584
2590
  { [n]: Number.NaN, [r]: Number.NaN },
2585
2591
  { [n]: Number.NaN, [r]: Number.NaN }
2586
2592
  ];
2587
2593
  let c = { r2: s, trendLinePoints: o }, l = !1;
2588
2594
  if (e)
2589
2595
  try {
2590
- c = await cr(t);
2596
+ c = await ur(t);
2591
2597
  } catch {
2592
2598
  l = !0;
2593
2599
  }
2594
- return (!e || l) && (c = Fi(t)), c;
2600
+ return (!e || l) && (c = bi(t)), c;
2595
2601
  }
2596
- async function dr(t) {
2602
+ async function fr(t) {
2597
2603
  const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n } = t, r = e.series[0], { x: s, y: o } = r;
2598
2604
  let c = /* @__PURE__ */ new Map();
2599
2605
  const {
@@ -2604,29 +2610,29 @@ async function dr(t) {
2604
2610
  queryNumberOfFeatures: m
2605
2611
  } = b.scatterplotAggregationFields, { objectIdField: g } = z(a), y = [
2606
2612
  {
2607
- statisticType: T.Count,
2613
+ statisticType: A.Count,
2608
2614
  onStatisticField: g,
2609
2615
  outStatisticFieldName: m
2610
2616
  },
2611
2617
  {
2612
- statisticType: T.Minimum,
2618
+ statisticType: A.Minimum,
2613
2619
  outStatisticFieldName: l,
2614
2620
  onStatisticField: s
2615
2621
  },
2616
2622
  {
2617
- statisticType: T.Maximum,
2623
+ statisticType: A.Maximum,
2618
2624
  outStatisticFieldName: u,
2619
2625
  onStatisticField: s
2620
2626
  }
2621
2627
  ];
2622
2628
  s !== o && y.push(
2623
2629
  {
2624
- statisticType: T.Minimum,
2630
+ statisticType: A.Minimum,
2625
2631
  outStatisticFieldName: d,
2626
2632
  onStatisticField: o
2627
2633
  },
2628
2634
  {
2629
- statisticType: T.Maximum,
2635
+ statisticType: A.Maximum,
2630
2636
  outStatisticFieldName: f,
2631
2637
  onStatisticField: o
2632
2638
  }
@@ -2642,11 +2648,11 @@ function at(t) {
2642
2648
  const { value: e, valueMin: i, valueMax: a } = t;
2643
2649
  return e === i || e === a ? e : Math.random() * (a - i) + i;
2644
2650
  }
2645
- function fr(t) {
2651
+ function mr(t) {
2646
2652
  const { useQueryAttributeBins: e, graphic: i, x: a, y: n, yStep: r } = t, { groupByOutKeyword: s } = Me, { dataContextXMinField: o, dataContextXMaxField: c, dataContextYMinField: l, dataContextYMaxField: u } = b.scatterplotAggregationFields;
2647
2653
  let d = [];
2648
2654
  if (e && "stackedAttributes" in i && i.stackedAttributes) {
2649
- const f = aa(a, n), m = i.attributes[f.lowerBoundaryAlias], g = i.attributes[f.upperBoundaryAlias];
2655
+ const f = na(a, n), m = i.attributes[f.lowerBoundaryAlias], g = i.attributes[f.upperBoundaryAlias];
2650
2656
  i.stackedAttributes.forEach((y) => {
2651
2657
  let h = y[f.stackAlias], x;
2652
2658
  typeof h == "number" && typeof r == "number" && (h *= r), typeof h == "number" && typeof r == "number" && (x = h + r);
@@ -2686,11 +2692,11 @@ function fr(t) {
2686
2692
  }
2687
2693
  return d;
2688
2694
  }
2689
- async function mr(t) {
2695
+ async function gr(t) {
2690
2696
  const { queryObject: e, chartConfig: i, rawData: a, isAggregationMode: n, yStep: r, useQueryAttributeBins: s } = t, o = i.series[0], { x: c, y: l } = o, d = z(e).objectIdField;
2691
2697
  let m = (Array.isArray(a) ? a : a?.features)?.flatMap((g) => {
2692
2698
  let y = [{ ...g.attributes }];
2693
- return Lt(y[0], [c, l]), n ? y = fr({
2699
+ return Lt(y[0], [c, l]), n ? y = mr({
2694
2700
  useQueryAttributeBins: s,
2695
2701
  graphic: g,
2696
2702
  x: c,
@@ -2703,7 +2709,7 @@ async function mr(t) {
2703
2709
  return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !== Me.groupByOutKeyword);
2704
2710
  }), m ?? [];
2705
2711
  }
2706
- async function gr(t) {
2712
+ async function yr(t) {
2707
2713
  const { queryObject: e, queryConfig: i, chartConfig: a, featureCount: n, abortKey: r } = t, s = a.series[0], { x: o, y: c } = s, l = z(e);
2708
2714
  let u = [];
2709
2715
  const f = ((await Ne(e))?.filter((h) => We(h) && h.name !== o && h.name !== c) ?? []).map(
@@ -2712,7 +2718,7 @@ async function gr(t) {
2712
2718
  /* @__PURE__ */ new Set([o, c, l.objectIdField, ...f, ...m])
2713
2719
  );
2714
2720
  if (!ei(l).isTable) {
2715
- const { rendererField: h, rendererNormalizationField: x } = ia(l?.renderer ?? void 0);
2721
+ const { rendererField: h, rendererNormalizationField: x } = aa(l?.renderer ?? void 0);
2716
2722
  ee(h) || g.push(h), ee(x) || g.push(x);
2717
2723
  }
2718
2724
  const y = {
@@ -2727,7 +2733,7 @@ async function gr(t) {
2727
2733
  abortKey: r
2728
2734
  }), u;
2729
2735
  }
2730
- async function yr(t) {
2736
+ async function pr(t) {
2731
2737
  let e;
2732
2738
  const {
2733
2739
  chartConfig: i,
@@ -2742,7 +2748,7 @@ async function yr(t) {
2742
2748
  } = t, d = i.series[0], { x: f, y: m } = d;
2743
2749
  if (!Number.isNaN(s) && s > 0) {
2744
2750
  const g = { ...a };
2745
- g.where = H([g.where, `${f} IS NOT NULL`, `${m} IS NOT NULL`]), o ? e = await nr({
2751
+ g.where = H([g.where, `${f} IS NOT NULL`, `${m} IS NOT NULL`]), o ? e = await rr({
2746
2752
  chartConfig: i,
2747
2753
  queryObject: n,
2748
2754
  queryConfig: g,
@@ -2750,7 +2756,7 @@ async function yr(t) {
2750
2756
  useQueryAttributeBins: c,
2751
2757
  errorStrings: l,
2752
2758
  abortKey: u
2753
- }) : e = await gr({
2759
+ }) : e = await yr({
2754
2760
  queryObject: n,
2755
2761
  chartConfig: i,
2756
2762
  queryConfig: g,
@@ -2760,14 +2766,14 @@ async function yr(t) {
2760
2766
  }
2761
2767
  return e;
2762
2768
  }
2763
- async function bi(t) {
2764
- const { chartConfig: e, queryConfig: i, queryObject: a, sortData: n, calculateTrendLine: r, options: s, abortKey: o } = t, c = await dr({
2769
+ async function xi(t) {
2770
+ const { chartConfig: e, queryConfig: i, queryObject: a, sortData: n, calculateTrendLine: r, options: s, abortKey: o } = t, c = await fr({
2765
2771
  chartConfig: e,
2766
2772
  queryConfig: i,
2767
2773
  queryObject: a,
2768
2774
  abortKey: o
2769
- }), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = ta(a);
2770
- m && await tr({
2775
+ }), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = ia(a);
2776
+ m && await ir({
2771
2777
  statsMap: c,
2772
2778
  chartConfig: e,
2773
2779
  queryObject: a,
@@ -2775,13 +2781,13 @@ async function bi(t) {
2775
2781
  queryConfig: i,
2776
2782
  abortKey: o
2777
2783
  });
2778
- const y = await yr({
2784
+ const y = await pr({
2779
2785
  ...t,
2780
2786
  statsMap: c,
2781
2787
  numberOfFeatures: f,
2782
2788
  isAggregationMode: m,
2783
2789
  useQueryAttributeBins: g
2784
- }), h = await mr({
2790
+ }), h = await gr({
2785
2791
  queryObject: a,
2786
2792
  chartConfig: e,
2787
2793
  rawData: y,
@@ -2794,7 +2800,7 @@ async function bi(t) {
2794
2800
  sortingField: e.series[0].x,
2795
2801
  orderBy: me.Ascending
2796
2802
  });
2797
- const { r2: x, trendLinePoints: F } = r !== !1 ? await ur({
2803
+ const { r2: x, trendLinePoints: F } = r !== !1 ? await dr({
2798
2804
  data: h,
2799
2805
  statsMap: c,
2800
2806
  queryConfig: i,
@@ -2804,7 +2810,7 @@ async function bi(t) {
2804
2810
  }) : b.scatterplotSeries;
2805
2811
  return { dataItems: h, r2: x, trendLinePoints: F, aggregated: m };
2806
2812
  }
2807
- function pr(t) {
2813
+ function hr(t) {
2808
2814
  const { itemsA: e, itemsB: i, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = t;
2809
2815
  let o = !1;
2810
2816
  if (e === void 0 && i !== void 0 || e !== void 0 && i === void 0)
@@ -2826,7 +2832,7 @@ function pr(t) {
2826
2832
  b.technicalFieldSplitByField,
2827
2833
  Y.uniqueIdsName,
2828
2834
  j.valueField,
2829
- ...na
2835
+ ...ra
2830
2836
  ], l = (m, g) => {
2831
2837
  const y = g[b.typeOrDomainFieldName];
2832
2838
  typeof y == "string" && g[y] !== void 0 && (g[y] = g[b.typeOrDomainIdValue]), n && g[j.xField] !== void 0 && (g[n] = g[j.xField], delete g[j.xField]), r && g[j.yField] !== void 0 && (g[r] = g[j.yField], delete g[j.yField]), s && g[j.valueField] !== void 0 && (g[s] = g[j.valueField], delete g[j.valueField]);
@@ -2839,12 +2845,12 @@ function pr(t) {
2839
2845
  }
2840
2846
  return o;
2841
2847
  }
2842
- function hr(t) {
2848
+ function Sr(t) {
2843
2849
  const { chartConfig: e, currentSelectionDataItems: i, options: a } = t, { selectionData: n } = a ?? {};
2844
2850
  let r = [];
2845
2851
  if (e !== void 0) {
2846
2852
  const s = e.series, o = V(s), { selectionItems: c } = n ?? {};
2847
- if (c !== void 0 && pr({
2853
+ if (c !== void 0 && hr({
2848
2854
  itemsA: c,
2849
2855
  itemsB: i,
2850
2856
  isPieFromFields: V(e.series) === p.PieFromFields,
@@ -2873,11 +2879,11 @@ function Ce(t, e) {
2873
2879
  }
2874
2880
  return i;
2875
2881
  }
2876
- function Sr(t) {
2882
+ function Fr(t) {
2877
2883
  const { dataContext: e, xAxisField: i, yAxisField: a, options: n } = t;
2878
2884
  let r = "";
2879
2885
  const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: c, dataContextYMaxField: l } = b.scatterplotAggregationFields;
2880
- if (ci({ dataContext: e, chartLimits: n?.chartLimits })) {
2886
+ if (ui({ dataContext: e, chartLimits: n?.chartLimits })) {
2881
2887
  const { [s]: u, [o]: d } = e, f = i !== a ? e[c] : u, m = i !== a ? e[l] : d;
2882
2888
  if (!Number.isNaN(u) && !Number.isNaN(d) && !Number.isNaN(f) && !Number.isNaN(m)) {
2883
2889
  const g = [];
@@ -2890,7 +2896,7 @@ function Sr(t) {
2890
2896
  ]);
2891
2897
  return r;
2892
2898
  }
2893
- function xi(t, e) {
2899
+ function Ci(t, e) {
2894
2900
  let i = "";
2895
2901
  const a = e[b.originalServerBinningRange] ?? e[b.dateBinningRange];
2896
2902
  if (vt(a) && a.length === 2) {
@@ -2901,7 +2907,7 @@ function xi(t, e) {
2901
2907
  }
2902
2908
  return i;
2903
2909
  }
2904
- function Ci(t, e) {
2910
+ function Bi(t, e) {
2905
2911
  let i = "";
2906
2912
  if (Number.isFinite(t)) {
2907
2913
  const a = 1 / 10 ** b.queryMaxFloatPrecision;
@@ -2909,7 +2915,7 @@ function Ci(t, e) {
2909
2915
  }
2910
2916
  return i;
2911
2917
  }
2912
- function Bi(t) {
2918
+ function vi(t) {
2913
2919
  const { xAxisField: e, yAxisField: i, splitBy: a, dataContext: n, xAxisFieldType: r, chartConfig: s } = t;
2914
2920
  let o = "";
2915
2921
  if (e !== void 0 && e !== b.boxPlot.boxPlotCategory) {
@@ -2919,7 +2925,7 @@ function Bi(t) {
2919
2925
  keepNullValues: !0,
2920
2926
  specificField: b.typeOrDomainIdValue
2921
2927
  });
2922
- r === Ye.Double ? o = Ci(d, e) : (Ae(s.axes?.[0].valueFormat) && (d = Ee(d)), o = Fe({
2928
+ r === Ye.Double ? o = Bi(d, e) : (Ae(s.axes?.[0].valueFormat) && (d = Ee(d)), o = Fe({
2923
2929
  where: Ce(e, d),
2924
2930
  normalize: !1,
2925
2931
  escape: !0
@@ -2927,14 +2933,14 @@ function Bi(t) {
2927
2933
  }
2928
2934
  const c = Fe({ where: a ?? "", normalize: !1, escape: !0 });
2929
2935
  let l = "";
2930
- if (Ra(s) === !0) {
2936
+ if (ja(s) === !0) {
2931
2937
  const d = V(s.series) === p.BoxPlotMultiFieldsAndCategory ? i : void 0, f = G({
2932
- key: I.Min,
2938
+ key: $.Min,
2933
2939
  showOutliers: !0,
2934
2940
  splitBy: a,
2935
2941
  y: d
2936
2942
  }), m = G({
2937
- key: I.Max,
2943
+ key: $.Max,
2938
2944
  showOutliers: !0,
2939
2945
  splitBy: a,
2940
2946
  y: d
@@ -2946,11 +2952,11 @@ function Bi(t) {
2946
2952
  }
2947
2953
  return H([o, c, l]);
2948
2954
  }
2949
- function Fr(t) {
2955
+ function br(t) {
2950
2956
  const { xAxisField: e, splitBy: i, dataContext: a, xAxisFieldType: n, chartConfig: r } = t;
2951
2957
  let s = "";
2952
2958
  if (b.dateBinningRange in a)
2953
- s = xi(e, a);
2959
+ s = Ci(e, a);
2954
2960
  else if (V(r.series) !== p.BarAndLineFromFields) {
2955
2961
  let l = ze({
2956
2962
  value: a[e],
@@ -2958,7 +2964,7 @@ function Fr(t) {
2958
2964
  keepNullValues: !0,
2959
2965
  specificField: b.typeOrDomainIdValue
2960
2966
  });
2961
- n === Ye.Double ? s = Ci(l, e) : (Ae(r.axes?.[0].valueFormat) && (l = Ee(l)), s = Fe({
2967
+ n === Ye.Double ? s = Bi(l, e) : (Ae(r.axes?.[0].valueFormat) && (l = Ee(l)), s = Fe({
2962
2968
  where: Ce(e, l),
2963
2969
  normalize: !1,
2964
2970
  escape: !0
@@ -2967,7 +2973,7 @@ function Fr(t) {
2967
2973
  const o = Fe({ where: i ?? "", normalize: !1, escape: !0 });
2968
2974
  return H([s, o]);
2969
2975
  }
2970
- function br(t) {
2976
+ function xr(t) {
2971
2977
  const { xAxisField: e, dataContext: i, chartConfig: a } = t;
2972
2978
  let n = b.typeOrDomainIdValue in i ? i[b.typeOrDomainIdValue] : i[b.originalCategoryValue];
2973
2979
  return n === void 0 && (n = i[e]), V(a.series) === p.PieFromFields ? "" : Fe({
@@ -2986,7 +2992,7 @@ function Qt(t) {
2986
2992
  });
2987
2993
  return s && (r = `${s}=${a}`), r;
2988
2994
  }
2989
- function xr(t) {
2995
+ function Cr(t) {
2990
2996
  const { xAxisFieldType: e, yAxisFieldType: i, dataContext: a, chartConfig: n } = t, r = n.series[0];
2991
2997
  let s = "";
2992
2998
  if (r.type === S.HeatSeries) {
@@ -3014,12 +3020,12 @@ function xr(t) {
3014
3020
  }
3015
3021
  return s;
3016
3022
  }
3017
- function Cr(t) {
3023
+ function Br(t) {
3018
3024
  const { xAxisField: e, dataContext: i, chartConfig: a } = t;
3019
3025
  let n = "";
3020
3026
  const r = a.series[0], { minValue: s, maxValue: o } = i;
3021
3027
  if (Number.isFinite(s) && Number.isFinite(o) && r.type === S.HistogramSeries) {
3022
- const c = _a(e, r.dataTransformationType), l = i.isLastBin ? "<=" : "<";
3028
+ const c = Ya(e, r.dataTransformationType), l = i.isLastBin ? "<=" : "<";
3023
3029
  n = H([
3024
3030
  `${c}>=${s?.toString()}`,
3025
3031
  `${c}${l}${o?.toString()}`
@@ -3027,42 +3033,42 @@ function Cr(t) {
3027
3033
  }
3028
3034
  return n;
3029
3035
  }
3030
- function Jo(t) {
3036
+ function Zo(t) {
3031
3037
  const { chartConfig: e } = t, i = W(e.series);
3032
3038
  let a = "";
3033
3039
  switch (i) {
3034
3040
  case S.ScatterSeries:
3035
- a = Sr(t);
3041
+ a = Fr(t);
3036
3042
  break;
3037
3043
  case S.HeatSeries:
3038
- a = xr(t);
3044
+ a = Cr(t);
3039
3045
  break;
3040
3046
  case S.RadarSeries:
3041
3047
  case S.BarSeries:
3042
3048
  case S.LineSeries:
3043
3049
  case S.ComboLineAndBarSeries:
3044
- a = Fr(t);
3050
+ a = br(t);
3045
3051
  break;
3046
3052
  case S.BoxPlotSeries:
3047
- a = Bi(t);
3053
+ a = vi(t);
3048
3054
  break;
3049
3055
  case S.HistogramSeries:
3050
- a = Cr(t);
3056
+ a = Br(t);
3051
3057
  break;
3052
3058
  case S.PieSeries:
3053
- a = br(t);
3059
+ a = xr(t);
3054
3060
  break;
3055
3061
  }
3056
3062
  return a;
3057
3063
  }
3058
- async function Br(t) {
3064
+ async function vr(t) {
3059
3065
  const { numberOfQueries: e, selectionOIDs: i, chartConfig: a, queryConfig: n, options: r, errorStrings: s, queryObject: o } = t, { setTimeBinningInfoWhenNotProvided: c } = r ?? {}, { series: l } = a, u = W(l), d = [], { maxOIDsPerSelectionQuery: f } = Ge();
3060
3066
  for (let g = 0; g < e; g += 1) {
3061
3067
  const y = g * f, h = (g + 1) * f - 1, x = i.slice(y === 0 ? 0 : y - 1, h), F = { ...n };
3062
3068
  switch (F.objectIds = x, u) {
3063
3069
  case S.HeatSeries:
3064
3070
  d.push(
3065
- wi({
3071
+ Di({
3066
3072
  completeHeatChartDataset: !1,
3067
3073
  // we do not want the empty bins to be added for the selection
3068
3074
  chartConfig: a,
@@ -3094,7 +3100,7 @@ async function Br(t) {
3094
3100
  );
3095
3101
  } else
3096
3102
  d.push(
3097
- ds({
3103
+ ms({
3098
3104
  queryObject: o,
3099
3105
  chartConfig: a,
3100
3106
  options: r,
@@ -3104,7 +3110,7 @@ async function Br(t) {
3104
3110
  break;
3105
3111
  case S.BoxPlotSeries:
3106
3112
  d.push(
3107
- fs({
3113
+ gs({
3108
3114
  queryObject: o,
3109
3115
  chartConfig: a,
3110
3116
  options: r,
@@ -3115,7 +3121,7 @@ async function Br(t) {
3115
3121
  break;
3116
3122
  case S.ScatterSeries:
3117
3123
  d.push(
3118
- bi({
3124
+ xi({
3119
3125
  queryObject: o,
3120
3126
  chartConfig: a,
3121
3127
  queryConfig: F,
@@ -3130,7 +3136,7 @@ async function Br(t) {
3130
3136
  break;
3131
3137
  case S.HistogramSeries:
3132
3138
  d.push(
3133
- Xn({
3139
+ Zn({
3134
3140
  queryObject: o,
3135
3141
  queryConfig: F,
3136
3142
  chartConfig: a,
@@ -3142,7 +3148,7 @@ async function Br(t) {
3142
3148
  }
3143
3149
  return await Promise.all(d);
3144
3150
  }
3145
- function vr(t) {
3151
+ function Nr(t) {
3146
3152
  const { dataFetchingResults: e, numberOfQueries: i, series: a } = t, n = W(a), r = V(a);
3147
3153
  let s = [];
3148
3154
  const o = /* @__PURE__ */ new Map();
@@ -3185,7 +3191,7 @@ function vr(t) {
3185
3191
  }
3186
3192
  return o.size > 0 && (s = Array.from(o.values())), s;
3187
3193
  }
3188
- async function Nr(t) {
3194
+ async function Tr(t) {
3189
3195
  const {
3190
3196
  chartConfig: e,
3191
3197
  queryConfig: i,
@@ -3200,13 +3206,13 @@ async function Nr(t) {
3200
3206
  const x = W(l), F = x !== S.HistogramSeries && x !== S.HeatSeries && g !== void 0 && g.length > 0 && !(l[0].x in g[0]) && !(ae in g[0]) && !(b.boxPlot.boxPlotCategory in g[0]);
3201
3207
  if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !Pe(y, n))) {
3202
3208
  const B = _t(a);
3203
- if (B !== void 0 && !Ga({ dataContext: B[0], chartConfig: e, chartLimits: m }))
3209
+ if (B !== void 0 && !_a({ dataContext: B[0], chartConfig: e, chartLimits: m }))
3204
3210
  h = B.filter((N) => {
3205
3211
  const v = N[Y.uniqueIdsName];
3206
3212
  return typeof v == "number" ? y?.includes(v) : !1;
3207
3213
  });
3208
3214
  else if (y?.[0] !== void 0 && i !== void 0) {
3209
- const { maxOIDsPerSelectionQuery: N } = Ge(), v = Math.ceil(y.length / N), P = await Br({
3215
+ const { maxOIDsPerSelectionQuery: N } = Ge(), v = Math.ceil(y.length / N), T = await vr({
3210
3216
  numberOfQueries: v,
3211
3217
  selectionOIDs: y,
3212
3218
  queryConfig: i,
@@ -3215,8 +3221,8 @@ async function Nr(t) {
3215
3221
  errorStrings: c,
3216
3222
  chartConfig: e
3217
3223
  });
3218
- h = vr({
3219
- dataFetchingResults: P,
3224
+ h = Nr({
3225
+ dataFetchingResults: T,
3220
3226
  numberOfQueries: v,
3221
3227
  series: l
3222
3228
  });
@@ -3224,18 +3230,18 @@ async function Nr(t) {
3224
3230
  }
3225
3231
  return h;
3226
3232
  }
3227
- function* Tr(t) {
3233
+ function* Ar(t) {
3228
3234
  const { filterList: e, queryObject: i, queryConfig: a } = t;
3229
3235
  for (let n = 0; n < e.length; n += 1) {
3230
3236
  const r = { ...a };
3231
- r.where = H([r.where, e[n]]), yield ra({
3237
+ r.where = H([r.where, e[n]]), yield sa({
3232
3238
  queryObject: i,
3233
3239
  queryConfig: r,
3234
3240
  uniqueFeature: !0
3235
3241
  });
3236
3242
  }
3237
3243
  }
3238
- async function Xo(t) {
3244
+ async function el(t) {
3239
3245
  const { whereList: e, queryObject: i, queryFilter: a, queryConfig: n } = t;
3240
3246
  let r = [];
3241
3247
  if (e.length > 0) {
@@ -3245,7 +3251,7 @@ async function Xo(t) {
3245
3251
  let g = H(m, "OR");
3246
3252
  g = H([a, g]), o.push(g);
3247
3253
  }
3248
- const l = Tr({
3254
+ const l = Ar({
3249
3255
  filterList: o,
3250
3256
  queryObject: i,
3251
3257
  queryConfig: n
@@ -3254,7 +3260,7 @@ async function Xo(t) {
3254
3260
  }
3255
3261
  return r;
3256
3262
  }
3257
- async function Ar(t) {
3263
+ async function Pr(t) {
3258
3264
  const { queryObject: e, queryConfig: i, chartConfig: a, currentSelectionDataItems: n, options: r, errorStrings: s, abortKey: o } = t, c = V(a.series);
3259
3265
  let l = { valid: !0, data: { dataItems: [] } };
3260
3266
  if (n !== void 0 && n.length > 0) {
@@ -3274,28 +3280,28 @@ async function Ar(t) {
3274
3280
  N = u.query?.where ?? "";
3275
3281
  const M = K(N);
3276
3282
  let w = "";
3277
- const k = `_${I.Average}`;
3283
+ const I = `_${$.Average}`;
3278
3284
  Object.keys(B).forEach((L) => {
3279
- L.includes(k) && (w = L.replace(k, ""));
3285
+ L.includes(I) && (w = L.replace(I, ""));
3280
3286
  }), w.trim() !== "" && (N = Ce(M, w));
3281
3287
  break;
3282
3288
  }
3283
3289
  }
3284
3290
  const v = [f].flat();
3285
- let P = v.length === 1 ? v[0] : "";
3291
+ let T = v.length === 1 ? v[0] : "";
3286
3292
  if (c === p.BoxPlotMultiFieldsAndCategory) {
3287
- const M = `_${I.FirstQuartile}`, w = Object.keys(B).find((k) => k.includes(M));
3288
- w !== void 0 && (P = w.replace(M, ""));
3293
+ const M = `_${$.FirstQuartile}`, w = Object.keys(B).find((I) => I.includes(M));
3294
+ w !== void 0 && (T = w.replace(M, ""));
3289
3295
  }
3290
- const D = Bi({
3296
+ const O = vi({
3291
3297
  chartConfig: a,
3292
3298
  xAxisField: d,
3293
- yAxisField: P,
3299
+ yAxisField: T,
3294
3300
  splitBy: N,
3295
3301
  dataContext: B,
3296
3302
  xAxisFieldType: m
3297
3303
  });
3298
- C.push(D);
3304
+ C.push(O);
3299
3305
  }
3300
3306
  return C;
3301
3307
  },
@@ -3317,7 +3323,7 @@ async function Ar(t) {
3317
3323
  }
3318
3324
  return l;
3319
3325
  }
3320
- async function Pr(t) {
3326
+ async function Mr(t) {
3321
3327
  const {
3322
3328
  queryObject: e,
3323
3329
  queryConfig: i,
@@ -3330,7 +3336,7 @@ async function Pr(t) {
3330
3336
  abortKey: l
3331
3337
  } = t, { series: u } = a, d = W(u), f = pe(a);
3332
3338
  let m = { valid: !0 }, g;
3333
- ui({ currentSelectionOIDs: r, options: o }) ? g = await Nr({
3339
+ di({ currentSelectionOIDs: r, options: o }) ? g = await Tr({
3334
3340
  chartConfig: a,
3335
3341
  queryConfig: i,
3336
3342
  chartData: s,
@@ -3339,7 +3345,7 @@ async function Pr(t) {
3339
3345
  queryObject: e,
3340
3346
  options: o,
3341
3347
  errorStrings: c
3342
- }) ?? [] : g = hr({ chartConfig: a, currentSelectionDataItems: n, options: o });
3348
+ }) ?? [] : g = Sr({ chartConfig: a, currentSelectionDataItems: n, options: o });
3343
3349
  let y = !1;
3344
3350
  switch (d) {
3345
3351
  case S.HeatSeries:
@@ -3356,7 +3362,7 @@ async function Pr(t) {
3356
3362
  m.count = g.length, y = !0;
3357
3363
  break;
3358
3364
  case S.BoxPlotSeries:
3359
- m = await Ar(t);
3365
+ m = await Pr(t);
3360
3366
  break;
3361
3367
  case S.BarSeries:
3362
3368
  case S.ComboLineAndBarSeries:
@@ -3372,7 +3378,7 @@ async function Pr(t) {
3372
3378
  const h = { ...i };
3373
3379
  if (n !== void 0 && n.length > 0) {
3374
3380
  const F = n.map(
3375
- (B) => xi(u[0].x, B)
3381
+ (B) => Ci(u[0].x, B)
3376
3382
  ), C = H(F, "OR");
3377
3383
  h.where = H([h.where, C]);
3378
3384
  }
@@ -3396,10 +3402,10 @@ async function Pr(t) {
3396
3402
  }, m.count = 0;
3397
3403
  else {
3398
3404
  const { x: h } = u[0], x = g.map((B, N) => {
3399
- const { minValue: v, maxValue: P } = B, D = N === g.length - 1 ? "<=" : "<";
3400
- return `${h} >= ${v} AND ${h} ${D} ${P}`;
3405
+ const { minValue: v, maxValue: T } = B, O = N === g.length - 1 ? "<=" : "<";
3406
+ return `${h} >= ${v} AND ${h} ${O} ${T}`;
3401
3407
  }), F = H(x, "OR"), C = { ...i };
3402
- C.where = H([C.where, F]), m = await Si({
3408
+ C.where = H([C.where, F]), m = await Fi({
3403
3409
  queryObject: e,
3404
3410
  chartConfig: a,
3405
3411
  queryConfig: C,
@@ -3415,7 +3421,7 @@ async function Pr(t) {
3415
3421
  const { r2: h, trendLinePoints: x } = b.scatterplotSeries;
3416
3422
  m.data = { dataItems: [], r2: h, trendLinePoints: x, count: 0 }, m.count = 0;
3417
3423
  } else {
3418
- const { r2: h, trendLinePoints: x } = Fi({
3424
+ const { r2: h, trendLinePoints: x } = bi({
3419
3425
  data: g,
3420
3426
  chartConfig: a
3421
3427
  });
@@ -3445,7 +3451,7 @@ async function Pt(t) {
3445
3451
  else {
3446
3452
  const u = { dataItems: [] };
3447
3453
  u.meanLines = l.data.dataItems;
3448
- const d = yn(i), f = (await Bt({
3454
+ const d = pn(i), f = (await Bt({
3449
3455
  queryObject: e,
3450
3456
  queryConfig: a,
3451
3457
  fetchFullBoxPlotData: !0,
@@ -3457,15 +3463,15 @@ async function Pt(t) {
3457
3463
  }
3458
3464
  return o;
3459
3465
  }
3460
- async function Mr(t) {
3466
+ async function Lr(t) {
3461
3467
  const { queryObject: e, chartConfig: i, queryConfig: a, binnedServerData: n, options: r, errorStrings: s, abortKey: o, fieldList: c } = t, { series: l } = i, { filterBySelection: u } = r ?? {}, d = W(l);
3462
3468
  let f = { valid: !0 };
3463
3469
  if (u === !0)
3464
- f = await Pr(t);
3470
+ f = await Mr(t);
3465
3471
  else
3466
3472
  switch (d) {
3467
3473
  case S.HeatSeries:
3468
- f = await wi(t);
3474
+ f = await Di(t);
3469
3475
  break;
3470
3476
  case S.BoxPlotSeries:
3471
3477
  f = await Pt(t);
@@ -3491,7 +3497,7 @@ async function Mr(t) {
3491
3497
  break;
3492
3498
  }
3493
3499
  case S.ScatterSeries:
3494
- f.data = await bi({
3500
+ f.data = await xi({
3495
3501
  queryObject: e,
3496
3502
  queryConfig: a,
3497
3503
  options: r,
@@ -3501,7 +3507,7 @@ async function Mr(t) {
3501
3507
  });
3502
3508
  break;
3503
3509
  case S.HistogramSeries:
3504
- f = await Si({
3510
+ f = await Fi({
3505
3511
  queryObject: e,
3506
3512
  queryConfig: a,
3507
3513
  chartConfig: i,
@@ -3511,7 +3517,7 @@ async function Mr(t) {
3511
3517
  });
3512
3518
  break;
3513
3519
  case S.GaugeSeries:
3514
- f = await jn({
3520
+ f = await Wn({
3515
3521
  queryObject: e,
3516
3522
  chartConfig: i,
3517
3523
  queryConfig: a,
@@ -3522,7 +3528,7 @@ async function Mr(t) {
3522
3528
  }
3523
3529
  return f;
3524
3530
  }
3525
- async function Zo(t) {
3531
+ async function tl(t) {
3526
3532
  const {
3527
3533
  queryObject: e,
3528
3534
  chartConfig: i,
@@ -3542,7 +3548,7 @@ async function Zo(t) {
3542
3548
  runtimeDataFilters: c?.runtimeDataFilters,
3543
3549
  ignoreViewExtent: c?.ignoreViewExtent
3544
3550
  });
3545
- return sa(a), d = await Mr({
3551
+ return oa(a), d = await Lr({
3546
3552
  chartConfig: i,
3547
3553
  queryObject: e,
3548
3554
  queryConfig: f,
@@ -3556,7 +3562,7 @@ async function Zo(t) {
3556
3562
  fieldList: u
3557
3563
  }), d.queryConfig = f, d;
3558
3564
  }
3559
- function Lr(t, e, i) {
3565
+ function wr(t, e, i) {
3560
3566
  const a = /* @__PURE__ */ new Map();
3561
3567
  for (let r = 0; r < t.length; r += 1)
3562
3568
  a.set(t[r], { [i]: t[r] });
@@ -3566,7 +3572,7 @@ function Lr(t, e, i) {
3566
3572
  }
3567
3573
  return [...a.values()];
3568
3574
  }
3569
- async function wr(t) {
3575
+ async function Dr(t) {
3570
3576
  const { seriesData: e, chartConfig: i, queryConfig: a, queryObject: n, categoryOrDateCount: r, behaviorAfterLimit: s, abortKey: o } = t, { series: c } = i;
3571
3577
  let l = e;
3572
3578
  const u = V(c), d = pe(i);
@@ -3583,13 +3589,13 @@ async function wr(t) {
3583
3589
  featureCount: r,
3584
3590
  abortKey: o
3585
3591
  })).map((h) => h.attributes[f]).filter((h) => h != null);
3586
- y.length > e.length && (l = Lr(y, e, f));
3592
+ y.length > e.length && (l = wr(y, e, f));
3587
3593
  }
3588
3594
  return l;
3589
3595
  }
3590
- function Dr(t, e) {
3596
+ function Or(t, e) {
3591
3597
  const i = t, { series: a } = e;
3592
- if (pe(e) === S.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === T.Count) {
3598
+ if (pe(e) === S.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === A.Count) {
3593
3599
  const n = a.reduce(
3594
3600
  (r, s) => {
3595
3601
  const o = s.query?.outStatistics?.[0].outStatisticFieldName ?? [s.y].flat()[0];
@@ -3602,7 +3608,7 @@ function Dr(t, e) {
3602
3608
  }
3603
3609
  return i;
3604
3610
  }
3605
- const vi = [
3611
+ const Ni = [
3606
3612
  p.BarAndLineMonoField,
3607
3613
  p.BarAndLineMultiFields,
3608
3614
  p.PieNoAggregation,
@@ -3610,8 +3616,8 @@ const vi = [
3610
3616
  p.BoxPlotMonoFieldAndCategory,
3611
3617
  p.BoxPlotMultiFieldsAndCategory,
3612
3618
  p.BoxPlotMonoFieldAndCategoryAndSplitBy
3613
- ];
3614
- function Ni(t, e) {
3619
+ ], qr = 8e3;
3620
+ function Ti(t, e) {
3615
3621
  let i = t;
3616
3622
  return e === E.Week ? i /= 7 : e === E.Month ? i /= 30 : e === E.Year && (i /= 365), i = Math.ceil(i), i;
3617
3623
  }
@@ -3637,7 +3643,7 @@ function Be(t) {
3637
3643
  }
3638
3644
  return e;
3639
3645
  }
3640
- function Or(t) {
3646
+ function Er(t) {
3641
3647
  const { binFirstOrLastIndex: e, data: i, x: a, timeIntervalInfo: n } = t, { unit: r, size: s } = n, o = r === E.Week ? (s ?? 1) * 7 : s, c = i[e][a];
3642
3648
  let l = e;
3643
3649
  const u = Be({
@@ -3667,7 +3673,7 @@ function Or(t) {
3667
3673
  sliceEndIndex: m
3668
3674
  };
3669
3675
  }
3670
- function qr(t) {
3676
+ function Vr(t) {
3671
3677
  const { binFirstOrLastIndex: e, data: i, x: a, timeIntervalInfo: n } = t, { unit: r, size: s } = n, o = r === E.Week ? (s ?? 1) * 7 : s, c = i[e][a];
3672
3678
  let l = e;
3673
3679
  const u = Be({
@@ -3695,31 +3701,31 @@ function qr(t) {
3695
3701
  last: f
3696
3702
  };
3697
3703
  }
3698
- function Er(t) {
3704
+ function Ir(t) {
3699
3705
  const { binsToRegroup: e, statisticType: i, y: a, nullPolicy: n } = t;
3700
3706
  let r;
3701
3707
  n !== ne.Interpolate && (r = n === ne.Zero ? 0 : null);
3702
3708
  const s = e.filter((o) => Number.isFinite(o[a]));
3703
3709
  if (s.length > 0)
3704
3710
  switch (i) {
3705
- case T.Count:
3706
- case T.Sum:
3711
+ case A.Count:
3712
+ case A.Sum:
3713
+ r = Hi(s, (o) => o[a]);
3714
+ break;
3715
+ case A.Minimum:
3707
3716
  r = Qi(s, (o) => o[a]);
3708
3717
  break;
3709
- case T.Minimum:
3718
+ case A.Maximum:
3710
3719
  r = Wi(s, (o) => o[a]);
3711
3720
  break;
3712
- case T.Maximum:
3721
+ case A.Average:
3713
3722
  r = ji(s, (o) => o[a]);
3714
3723
  break;
3715
- case T.Average:
3716
- r = ki(s, (o) => o[a]);
3717
- break;
3718
- case T.ContinuousPercentile:
3724
+ case A.ContinuousPercentile:
3719
3725
  }
3720
3726
  return r;
3721
3727
  }
3722
- function Vr(t) {
3728
+ function $r(t) {
3723
3729
  const { data: e, seriesConfig: i, timeIntervalInfo: a, dateMinTimestamp: n, dateMaxTimestamp: r } = t;
3724
3730
  let s = [];
3725
3731
  const { unit: o } = a, c = a.size ?? 1, l = i[0], { x: u } = l;
@@ -3735,22 +3741,22 @@ function Vr(t) {
3735
3741
  };
3736
3742
  for (; !h; ) {
3737
3743
  let C = {};
3738
- const { binStartDate: B, binEndDate: N, last: v, nextBinFirstOrLastIndex: P, sliceStartIndex: D, sliceEndIndex: M } = d === U.End ? (
3744
+ const { binStartDate: B, binEndDate: N, last: v, nextBinFirstOrLastIndex: T, sliceStartIndex: O, sliceEndIndex: M } = d === U.End ? (
3739
3745
  // When grouping from the end we'll start from the last date and move backward to create the bins
3740
- qr(F)
3746
+ Vr(F)
3741
3747
  ) : (
3742
3748
  // When grouping from the start we'll start from the first date and move forward to create the bins
3743
- Or(F)
3749
+ Er(F)
3744
3750
  );
3745
3751
  if (h = v, C = d === U.End ? C = e[M - 1] : C = e[x], N > r && B < r || B < n && N > n || B >= n && N <= r) {
3746
- const w = e.slice(D, M).filter((O) => !(b.dateBinModel in O));
3747
- g.forEach((O) => {
3748
- C[O] = Er({ binsToRegroup: w, statisticType: y, y: O, nullPolicy: f });
3752
+ const w = e.slice(O, M).filter((D) => !(b.dateBinModel in D));
3753
+ g.forEach((D) => {
3754
+ C[D] = Ir({ binsToRegroup: w, statisticType: y, y: D, nullPolicy: f });
3749
3755
  });
3750
- const k = w.map((O) => O[xe]).filter((O) => O !== void 0), L = ja(k);
3756
+ const I = w.map((D) => D[xe]).filter((D) => D !== void 0), L = Wa(I);
3751
3757
  L !== void 0 && (C[xe] = L), C[u] = B, C[b.xAxisField] = B, C[b.dateBinningRange] = [B, N], delete C[b.dateBinModel], s.push(C);
3752
3758
  } else v && d !== U.End && s.length > 0 && (s[s.length - 1][b.dateBinningRange][1] = s[s.length - 1][b.dateBinningRange][1] + 1);
3753
- x = P, F.binFirstOrLastIndex = P;
3759
+ x = T, F.binFirstOrLastIndex = T;
3754
3760
  }
3755
3761
  d === U.End && (s = s.reverse());
3756
3762
  } else c === 1 ? s = e.map((m, g) => {
@@ -3768,7 +3774,7 @@ function Vr(t) {
3768
3774
  }) : s = e;
3769
3775
  return s;
3770
3776
  }
3771
- function Ti(t) {
3777
+ function Ai(t) {
3772
3778
  const { dateMinTimestamp: e, dateMaxTimestamp: i, timeIntervalInfo: a } = t, { size: n, unit: r } = a;
3773
3779
  let s = 0, o = 0;
3774
3780
  if (n !== void 0 && Number.isFinite(n) && Number.isFinite(e) && Number.isFinite(i)) {
@@ -3797,7 +3803,7 @@ function Ti(t) {
3797
3803
  }
3798
3804
  return { numberOfFinalBinsWithinDataRange: s, numberOfSingleBinsWithinDataRange: o };
3799
3805
  }
3800
- function Ai(t) {
3806
+ function Pi(t) {
3801
3807
  const e = t[0].temporalBinning?.nullPolicy;
3802
3808
  return t.reduce(
3803
3809
  (a, n) => {
@@ -3808,7 +3814,7 @@ function Ai(t) {
3808
3814
  {}
3809
3815
  );
3810
3816
  }
3811
- function Ir(t) {
3817
+ function Rr(t) {
3812
3818
  const {
3813
3819
  dateMaxTimestamp: e,
3814
3820
  numberOfFinalBinsWithinDataRange: i,
@@ -3821,7 +3827,7 @@ function Ir(t) {
3821
3827
  if (o !== void 0 && Number.isFinite(o) && a / i !== o) {
3822
3828
  let g = Math.ceil(a / i) * i - a;
3823
3829
  c === E.Week && (g *= 7);
3824
- const y = Ai(r);
3830
+ const y = Pi(r);
3825
3831
  if (u === U.End) {
3826
3832
  let h = n[0][l];
3827
3833
  for (let x = 0; x < g; x += 1)
@@ -3854,26 +3860,26 @@ function Ir(t) {
3854
3860
  }
3855
3861
  return { newDateMin: d, newDateMax: f };
3856
3862
  }
3857
- function $r(t) {
3863
+ function kr(t) {
3858
3864
  const { numberOfSingleBinsWithinDataRange: e, dataLength: i, unit: a } = t;
3859
- return Ni(i, a) >= e;
3865
+ return Ti(i, a) >= e;
3860
3866
  }
3861
- async function Rr(t) {
3867
+ async function jr(t) {
3862
3868
  const { queryObject: e, queryConfig: i, x: a } = t, n = `MIN_${a}`, r = `MAX_${a}`, s = `COUNT_${a}`, o = {
3863
3869
  ...i,
3864
3870
  outStatistics: [
3865
3871
  {
3866
- statisticType: T.Minimum,
3872
+ statisticType: A.Minimum,
3867
3873
  onStatisticField: a,
3868
3874
  outStatisticFieldName: n
3869
3875
  },
3870
3876
  {
3871
- statisticType: T.Maximum,
3877
+ statisticType: A.Maximum,
3872
3878
  onStatisticField: a,
3873
3879
  outStatisticFieldName: r
3874
3880
  },
3875
3881
  {
3876
- statisticType: T.Count,
3882
+ statisticType: A.Count,
3877
3883
  onStatisticField: a,
3878
3884
  outStatisticFieldName: s
3879
3885
  }
@@ -3888,7 +3894,7 @@ async function Rr(t) {
3888
3894
  const d = c.get(s);
3889
3895
  return typeof l == "string" && (l = new Date(l).valueOf()), typeof u == "string" && (u = new Date(u).valueOf()), { dateRange: { dateMinTimestamp: l, dateMaxTimestamp: u }, numberOfFeatures: d };
3890
3896
  }
3891
- function kr(t) {
3897
+ function Wr(t) {
3892
3898
  const {
3893
3899
  newDateMin: e,
3894
3900
  newDateMax: i,
@@ -3898,12 +3904,12 @@ function kr(t) {
3898
3904
  initialNumberOfBins: s,
3899
3905
  timeIntervalInfo: o
3900
3906
  } = t, { unit: c } = o, l = n;
3901
- if (!$r({
3907
+ if (!kr({
3902
3908
  numberOfSingleBinsWithinDataRange: r,
3903
3909
  dataLength: s,
3904
3910
  unit: c
3905
3911
  })) {
3906
- const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = Ai(a);
3912
+ const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = Pi(a);
3907
3913
  let y = f === U.End ? i : e, h = f === U.End ? n.length - 1 : 0;
3908
3914
  for (; h < n.length && (f === U.End && y > e || f !== U.End && y < i); )
3909
3915
  y !== n[h][d] ? l.push({
@@ -3919,7 +3925,7 @@ function kr(t) {
3919
3925
  }
3920
3926
  return l;
3921
3927
  }
3922
- function jr(t) {
3928
+ function Qr(t) {
3923
3929
  const { data: e, seriesConfig: i, dateMinTimestamp: a, dateMaxTimestamp: n } = t, r = e;
3924
3930
  if (i[0].temporalBinning?.trimIncompleteTimeInterval !== !1) {
3925
3931
  const { timeAggregationType: s } = i[0].temporalBinning ?? {}, o = e[0]?.[b.dateBinningRange]?.[0], c = e[e.length - 1]?.[b.dateBinningRange]?.[1];
@@ -3936,10 +3942,10 @@ function jr(t) {
3936
3942
  }
3937
3943
  return r;
3938
3944
  }
3939
- function Wr(t) {
3945
+ function Hr(t) {
3940
3946
  const { groupByFieldsForStatistics: e, dateField: i, queryStartDate: a, queryEndDate: n, y: r, binIndex: s, lastBin: o } = t;
3941
3947
  let c = e === "" ? Me.groupByCaseBegin : e;
3942
- return c = ue(la, {
3948
+ return c = ue(ca, {
3943
3949
  groupByFieldsForStatistics: c,
3944
3950
  dateField: i,
3945
3951
  startDate: `${a}`,
@@ -3950,21 +3956,21 @@ function Wr(t) {
3950
3956
  // we use <= to catch the last bin's value, < otherwise
3951
3957
  }), c;
3952
3958
  }
3953
- function* Qr(t) {
3959
+ function* zr(t) {
3954
3960
  const { queryObject: e, seriesConfig: i, queryConfig: a, completeData: n } = t;
3955
3961
  for (let r = 0; r < i.length; r += 1) {
3956
3962
  const s = i[r], { query: o, x: c, y: l } = s, d = [
3957
3963
  {
3958
3964
  onStatisticField: o?.outStatistics?.[0]?.onStatisticField ?? "",
3959
- outStatisticFieldName: T.ContinuousPercentile,
3960
- statisticType: T.ContinuousPercentile,
3965
+ outStatisticFieldName: A.ContinuousPercentile,
3966
+ statisticType: A.ContinuousPercentile,
3961
3967
  statisticParameters: { value: 0.5 }
3962
3968
  }
3963
3969
  ];
3964
3970
  let f = Me.groupByCaseBegin;
3965
3971
  for (let g = 0; g < n.length; g += 1) {
3966
3972
  const y = n[g], [h, x] = y[b.dateBinningRange], F = Ee(h), C = Ee(x);
3967
- f = Wr({
3973
+ f = Hr({
3968
3974
  groupByFieldsForStatistics: f,
3969
3975
  queryStartDate: F,
3970
3976
  queryEndDate: C,
@@ -3988,10 +3994,10 @@ function* Qr(t) {
3988
3994
  });
3989
3995
  }
3990
3996
  }
3991
- async function Hr(t) {
3997
+ async function Ur(t) {
3992
3998
  const { queryObject: e, data: i, seriesConfig: a, queryConfig: n } = t, r = i, { statisticType: s } = a[0].query?.outStatistics?.[0] ?? zt;
3993
- if (s === T.ContinuousPercentile && r.length > 0) {
3994
- const o = Qr({
3999
+ if (s === A.ContinuousPercentile && r.length > 0) {
4000
+ const o = zr({
3995
4001
  queryObject: e,
3996
4002
  completeData: r,
3997
4003
  seriesConfig: a,
@@ -4004,7 +4010,7 @@ async function Hr(t) {
4004
4010
  if (f !== void 0) {
4005
4011
  const [m, g] = f.split("|");
4006
4012
  if (g !== void 0) {
4007
- const y = d.attributes[T.ContinuousPercentile];
4013
+ const y = d.attributes[A.ContinuousPercentile];
4008
4014
  r[g][`${m}`] = y;
4009
4015
  }
4010
4016
  }
@@ -4013,53 +4019,53 @@ async function Hr(t) {
4013
4019
  }
4014
4020
  return r;
4015
4021
  }
4016
- async function zr(t) {
4017
- const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = t, l = oa(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;
4022
+ async function Gr(t) {
4023
+ const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = t, l = la(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;
4018
4024
  return i.forEach((x, F) => {
4019
4025
  if (!(y && (F === 0 && h === U.End || F === i.length - 1 && h === U.Start))) {
4020
4026
  const { attributes: B, stackedAttributes: N } = x;
4021
- let v = B[l.lowerBoundaryAlias], P = B[l.upperBoundaryAlias];
4022
- const D = v, M = P, w = (L) => {
4023
- const { boundary: O, separator: A, xFieldType: q } = L;
4024
- let Q = O;
4025
- return q === Ye.DateOnly && (typeof O == "string" && O.length === 10 || typeof O == "number") ? (Q = new Date(O), Q = new Date(Q.valueOf() + Q.getTimezoneOffset() * 6e4).valueOf()) : typeof O == "string" && O.lastIndexOf(A) === O.length - 6 && (Q = new Date(O.slice(0, O.lastIndexOf(A))).valueOf()), Q;
4027
+ let v = B[l.lowerBoundaryAlias], T = B[l.upperBoundaryAlias];
4028
+ const O = v, M = T, w = (L) => {
4029
+ const { boundary: D, separator: P, xFieldType: q } = L;
4030
+ let Q = D;
4031
+ return q === Ye.DateOnly && (typeof D == "string" && D.length === 10 || typeof D == "number") ? (Q = new Date(D), Q = new Date(Q.valueOf() + Q.getTimezoneOffset() * 6e4).valueOf()) : typeof D == "string" && D.lastIndexOf(P) === D.length - 6 && (Q = new Date(D.slice(0, D.lastIndexOf(P))).valueOf()), Q;
4026
4032
  };
4027
4033
  ["+", "-"].forEach((L) => {
4028
- v = w({ boundary: v, separator: L, xFieldType: d }), P = w({ boundary: P, separator: L, xFieldType: d });
4034
+ v = w({ boundary: v, separator: L, xFieldType: d }), T = w({ boundary: T, separator: L, xFieldType: d });
4029
4035
  });
4030
- const k = (L, O) => {
4031
- if (O)
4036
+ const I = (L, D) => {
4037
+ if (D)
4032
4038
  switch (!0) {
4033
- case (o === ne.Zero && (L[O] === void 0 || L[O] === null)):
4034
- L[O] = 0;
4039
+ case (o === ne.Zero && (L[D] === void 0 || L[D] === null)):
4040
+ L[D] = 0;
4035
4041
  break;
4036
- case (o === ne.Null && L[O] === 0 && g === T.Count):
4037
- L[O] = null;
4042
+ case (o === ne.Null && L[D] === 0 && g === A.Count):
4043
+ L[D] = null;
4038
4044
  break;
4039
- case (o === ne.Interpolate && (L[O] === 0 || L[O] === void 0 || L[O] === null)):
4040
- delete L[O];
4045
+ case (o === ne.Interpolate && (L[D] === 0 || L[D] === void 0 || L[D] === null)):
4046
+ delete L[D];
4041
4047
  break;
4042
4048
  }
4043
4049
  };
4044
- if (typeof v == "number" && typeof P == "number") {
4050
+ if (typeof v == "number" && typeof T == "number") {
4045
4051
  const L = { ...B };
4046
- L[b.originalServerBinningRange] = [D, M], L[r] = v, L[b.xAxisField] = v, L[b.dateBinningRange] = [v, P], delete L[l.lowerBoundaryAlias], delete L[l.upperBoundaryAlias], N && n && !ee(n) && a ? N.forEach((q) => {
4052
+ L[b.originalServerBinningRange] = [O, M], L[r] = v, L[b.xAxisField] = v, L[b.dateBinningRange] = [v, T], delete L[l.lowerBoundaryAlias], delete L[l.upperBoundaryAlias], N && n && !ee(n) && a ? N.forEach((q) => {
4047
4053
  const Q = q[n];
4048
4054
  if (Q === null || typeof Q == "string" || typeof Q == "number") {
4049
4055
  const X = a?.get(Q);
4050
- X !== void 0 && (L[X] = q[Y.outStatistics?.outStatisticFieldName ?? ""], k(L, X));
4056
+ X !== void 0 && (L[X] = q[Y.outStatistics?.outStatisticFieldName ?? ""], I(L, X));
4051
4057
  }
4052
- }) : k(L, s);
4053
- const { featureExtent: O, featureExtentKey: A } = Pi({
4058
+ }) : I(L, s);
4059
+ const { featureExtent: D, featureExtentKey: P } = Mi({
4054
4060
  feature: x,
4055
4061
  splitByField: n
4056
4062
  });
4057
- O && (L[A] = O), f.push(L);
4063
+ D && (L[P] = D), f.push(L);
4058
4064
  }
4059
4065
  }
4060
4066
  }), f;
4061
4067
  }
4062
- async function Ur(t) {
4068
+ async function _r(t) {
4063
4069
  const { queryObject: e, queryResults: i, x: a, queryConfig: n, seriesConfig: r, dateRange: s, timeIntervalInfo: o } = t;
4064
4070
  let c = i;
4065
4071
  const { dateMinTimestamp: l, dateMaxTimestamp: u } = s;
@@ -4069,11 +4075,11 @@ async function Ur(t) {
4069
4075
  arrayToSort: c,
4070
4076
  sortingField: a
4071
4077
  }), d > 1) {
4072
- const { numberOfFinalBinsWithinDataRange: f, numberOfSingleBinsWithinDataRange: m } = Ti({
4078
+ const { numberOfFinalBinsWithinDataRange: f, numberOfSingleBinsWithinDataRange: m } = Ai({
4073
4079
  dateMinTimestamp: l,
4074
4080
  dateMaxTimestamp: u,
4075
4081
  timeIntervalInfo: o
4076
- }), { newDateMin: g, newDateMax: y } = Ir({
4082
+ }), { newDateMin: g, newDateMax: y } = Rr({
4077
4083
  dateMaxTimestamp: u,
4078
4084
  data: c,
4079
4085
  numberOfFinalBinsWithinDataRange: f,
@@ -4081,7 +4087,7 @@ async function Ur(t) {
4081
4087
  seriesConfig: r,
4082
4088
  timeIntervalInfo: o
4083
4089
  });
4084
- c = kr({
4090
+ c = Wr({
4085
4091
  newDateMin: g,
4086
4092
  newDateMax: y,
4087
4093
  seriesConfig: r,
@@ -4092,31 +4098,31 @@ async function Ur(t) {
4092
4098
  }), Ue({
4093
4099
  arrayToSort: c,
4094
4100
  sortingField: a
4095
- }), c = Vr({
4101
+ }), c = $r({
4096
4102
  data: c,
4097
4103
  seriesConfig: r,
4098
4104
  dateMinTimestamp: l,
4099
4105
  dateMaxTimestamp: u,
4100
4106
  timeIntervalInfo: o
4101
- }), c = jr({
4107
+ }), c = Qr({
4102
4108
  data: c,
4103
4109
  seriesConfig: r,
4104
4110
  dateMinTimestamp: l,
4105
4111
  dateMaxTimestamp: u
4106
- }), c = await Hr({ queryObject: e, data: c, seriesConfig: r, queryConfig: n });
4112
+ }), c = await Ur({ queryObject: e, data: c, seriesConfig: r, queryConfig: n });
4107
4113
  }
4108
4114
  }
4109
4115
  return c;
4110
4116
  }
4111
- function Gr(t) {
4117
+ function Yr(t) {
4112
4118
  return Math.floor(Math.min(Math.max(8, Math.sqrt(t ?? 8)), 128) + 0.5);
4113
4119
  }
4114
- function _r(t) {
4120
+ function Kr(t) {
4115
4121
  const { dateRange: e, numberOfFeatures: i } = t;
4116
4122
  let a, n, { dateMinTimestamp: r, dateMaxTimestamp: s } = e;
4117
4123
  if (r && s) {
4118
4124
  typeof r == "string" && (r = new Date(r).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
4119
- const o = Gr(i), c = (s - r) / o, l = It.findIndex((x) => x.threshold > c), u = It[l], { unitMs: d, preferredIntervalSize: f } = u;
4125
+ const o = Yr(i), c = (s - r) / o, l = It.findIndex((x) => x.threshold > c), u = It[l], { unitMs: d, preferredIntervalSize: f } = u;
4120
4126
  ({ unit: a } = u);
4121
4127
  const m = c / d, g = f.findIndex(
4122
4128
  (x) => x >= m
@@ -4125,7 +4131,7 @@ function _r(t) {
4125
4131
  }
4126
4132
  return { size: n, unit: a };
4127
4133
  }
4128
- function Yr(t) {
4134
+ function Jr(t) {
4129
4135
  const { series: e, isTimeBinningSeries: i, setTimeBinningInfoWhenNotProvided: a } = t;
4130
4136
  let n = !1;
4131
4137
  if (se(e) && i) {
@@ -4134,7 +4140,7 @@ function Yr(t) {
4134
4140
  }
4135
4141
  return n;
4136
4142
  }
4137
- function Kr(t) {
4143
+ function Xr(t) {
4138
4144
  const e = [];
4139
4145
  for (let i = 1; i <= 6; i += 1) {
4140
4146
  const a = t[`EXPR_${i}`] ?? t[`Expr${i}`] ?? t[`expr${i}`] ?? t[`EXPR${i}`];
@@ -4149,7 +4155,7 @@ function Kr(t) {
4149
4155
  Number(e[5] ?? 0)
4150
4156
  ).valueOf();
4151
4157
  }
4152
- function Pi(t) {
4158
+ function Mi(t) {
4153
4159
  const { feature: e, splitByField: i, chartSubType: a } = t;
4154
4160
  let n;
4155
4161
  e.aggregateGeometries && "Extent" in e.aggregateGeometries ? n = e.aggregateGeometries.Extent : { extent: n } = e.aggregateGeometries ?? e.geometry ?? {};
@@ -4157,21 +4163,21 @@ function Pi(t) {
4157
4163
  let s = xe;
4158
4164
  return r !== void 0 && i !== void 0 && a !== void 0 && a === p.BarAndLineSplitBy && (s = e.attributes[i] !== void 0 ? `${xe}_${e.attributes[i]}` : xe), { featureExtent: r, featureExtentKey: s };
4159
4165
  }
4160
- function Jr(t) {
4166
+ function Zr(t) {
4161
4167
  const { input: e, x: i, splitByField: a } = t;
4162
4168
  return e.reduce((r, s) => (a !== void 0 && a !== i && !(b.technicalFieldSplitByField in s) && delete s[a], Object.assign(r, s)), {});
4163
4169
  }
4164
4170
  function Mt(t) {
4165
4171
  const { data: e, x: i, splitByField: a } = t;
4166
4172
  let n = e;
4167
- return e !== void 0 && e.length > 0 && (n = [...Hi(
4173
+ return e !== void 0 && e.length > 0 && (n = [...zi(
4168
4174
  e,
4169
- (s) => Jr({ input: s, x: i, splitByField: a }),
4175
+ (s) => Zr({ input: s, x: i, splitByField: a }),
4170
4176
  (s) => s[i]
4171
4177
  // the field used to regroup the stats (ex: 'Year' category)
4172
4178
  ).values()]), n;
4173
4179
  }
4174
- function Xr(t, e) {
4180
+ function es(t, e) {
4175
4181
  const i = t, a = W(e);
4176
4182
  if (a !== S.PieSeries && a !== S.BoxPlotSeries) {
4177
4183
  const n = re(e), r = e[0].y;
@@ -4191,14 +4197,14 @@ function Xr(t, e) {
4191
4197
  }
4192
4198
  return i;
4193
4199
  }
4194
- function Zr(t, e) {
4200
+ function ts(t, e) {
4195
4201
  const i = e, a = re(t), n = a.length === 1;
4196
4202
  return a.forEach((r) => {
4197
- const s = je(n ? void 0 : r), o = i[s[I.FirstQuartile]], c = i[s[I.ThirdQuartile]];
4198
- Number.isFinite(o) && Number.isFinite(c) && c >= o && (i[s[I.IQR]] = c - o);
4203
+ const s = je(n ? void 0 : r), o = i[s[$.FirstQuartile]], c = i[s[$.ThirdQuartile]];
4204
+ Number.isFinite(o) && Number.isFinite(c) && c >= o && (i[s[$.IQR]] = c - o);
4199
4205
  }), i;
4200
4206
  }
4201
- function es(t, e) {
4207
+ function is(t, e) {
4202
4208
  const i = e.series[0], a = t;
4203
4209
  if (i.type === S.HeatSeries) {
4204
4210
  const { x: n, y: r } = i;
@@ -4213,7 +4219,7 @@ function Lt(t, e) {
4213
4219
  i && (t[i] === void 0 && (t[i] = t[i.toUpperCase()] !== void 0 ? t[i.toUpperCase()] : t[i.toLowerCase()]), t[i] !== void 0 ? (i !== i.toUpperCase() && delete t[i.toUpperCase()], i !== i.toLowerCase() && delete t[i.toLowerCase()]) : delete t[i]);
4214
4220
  });
4215
4221
  }
4216
- function ts(t, e) {
4222
+ function as(t, e) {
4217
4223
  const i = Array.from(
4218
4224
  new Set(
4219
4225
  e.flatMap((a) => a.query?.outStatistics?.map((n) => n.outStatisticFieldName))
@@ -4221,7 +4227,7 @@ function ts(t, e) {
4221
4227
  );
4222
4228
  i.push(Y.outStatistics.outStatisticFieldName), Lt(t, i);
4223
4229
  }
4224
- function is(t, e) {
4230
+ function ns(t, e) {
4225
4231
  let i = { ...t };
4226
4232
  return t !== void 0 && e[0] !== void 0 && (i = Object.keys(t).reduce((a, n) => {
4227
4233
  const r = e.find(
@@ -4230,14 +4236,14 @@ function is(t, e) {
4230
4236
  return r !== void 0 && t[n] !== void 0 && r !== n ? a[r] = t[n] : a[n] = t[n], a;
4231
4237
  }, {})), i;
4232
4238
  }
4233
- function as(t) {
4239
+ function rs(t) {
4234
4240
  const { dataItem: e, splitByField: i, y: a } = t;
4235
4241
  if (e !== void 0 && !ee(i) && !ee(a)) {
4236
4242
  const n = e[i], r = `${a}_${n?.toString()}`;
4237
4243
  e[r] = e[a], delete e[a];
4238
4244
  }
4239
4245
  }
4240
- function ns(t, e) {
4246
+ function ss(t, e) {
4241
4247
  Object.keys(t).forEach((a) => {
4242
4248
  if (a.startsWith(`${e}_`)) {
4243
4249
  const n = a.slice(e.length + 1);
@@ -4245,7 +4251,7 @@ function ns(t, e) {
4245
4251
  }
4246
4252
  });
4247
4253
  }
4248
- function rs(t, e) {
4254
+ function os(t, e) {
4249
4255
  let i = 1;
4250
4256
  switch (t) {
4251
4257
  case p.BarAndLineFromFields:
@@ -4272,20 +4278,20 @@ function rs(t, e) {
4272
4278
  }
4273
4279
  return i;
4274
4280
  }
4275
- function ss(t) {
4281
+ function ls(t) {
4276
4282
  const { attributes: e, showMean: i, chartSubType: a } = t;
4277
4283
  i && (a === p.BoxPlotMonoFieldAndSplitBy || a === p.BoxPlotMultiFieldsAndSplitBy || a === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
4278
4284
  }
4279
- function os(t) {
4285
+ function cs(t) {
4280
4286
  const { queryResponse: e, chartConfig: i, maxCategoryCount: a } = t, n = V(i.series);
4281
- return a && Number.isFinite(a) && a < e.length && vi.includes(n) ? e.slice(0, a) : e;
4287
+ return a && Number.isFinite(a) && a < e.length && Ni.includes(n) ? e.slice(0, a) : e;
4282
4288
  }
4283
- function ls(t) {
4289
+ function us(t) {
4284
4290
  const { attributes: e, uniqueCategoryList: i, maxCategoryCount: a, x: n, chartSubType: r } = t;
4285
4291
  let s = !1;
4286
- if (n && a && Number.isFinite(a) && !vi.includes(r))
4292
+ if (n && a && Number.isFinite(a) && !Ni.includes(r))
4287
4293
  if ((r === p.BarAndLineFromFields || r === p.PieFromFields) && Object.keys(e).length > a)
4288
- Object.keys(e).filter((o) => o !== T.EnvelopeAggregate).forEach((o, c) => {
4294
+ Object.keys(e).filter((o) => o !== A.EnvelopeAggregate).forEach((o, c) => {
4289
4295
  c >= a && delete e[o];
4290
4296
  });
4291
4297
  else {
@@ -4294,7 +4300,7 @@ function ls(t) {
4294
4300
  }
4295
4301
  return s;
4296
4302
  }
4297
- function Mi(t) {
4303
+ function Li(t) {
4298
4304
  const {
4299
4305
  queryResponse: e,
4300
4306
  chartConfig: i,
@@ -4308,35 +4314,35 @@ function Mi(t) {
4308
4314
  showMean: u,
4309
4315
  chartLimits: d,
4310
4316
  fieldList: f
4311
- } = t, { series: m } = i, g = V(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, P = [];
4312
- let D = 0;
4313
- const M = /* @__PURE__ */ new Set(), { maxCategoryCount: w } = Re(d), k = os({ queryResponse: e, chartConfig: i, maxCategoryCount: w });
4314
- for (let L = 0; k[L] && L < k.length && !(l !== void 0 && D >= l); L += 1) {
4315
- D += rs(g, i);
4316
- const O = k[L];
4317
- let A = { ...O.attributes };
4318
- if (ls({ attributes: A, uniqueCategoryList: M, maxCategoryCount: w, x: h, chartSubType: g }))
4317
+ } = t, { series: m } = i, g = V(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 = [];
4318
+ let O = 0;
4319
+ const M = /* @__PURE__ */ new Set(), { maxCategoryCount: w } = Re(d), I = cs({ queryResponse: e, chartConfig: i, maxCategoryCount: w });
4320
+ for (let L = 0; I[L] && L < I.length && !(l !== void 0 && O >= l); L += 1) {
4321
+ O += os(g, i);
4322
+ const D = I[L];
4323
+ let P = { ...D.attributes };
4324
+ if (us({ attributes: P, uniqueCategoryList: M, maxCategoryCount: w, x: h, chartSubType: g }))
4319
4325
  continue;
4320
- ts(A, m), g === p.PieFromFields || g === p.BarAndLineFromFields ? A = is(A, F) : typeof x == "string" && g === p.BarAndLineSplitByNoAggregation ? as({ dataItem: A, splitByField: n, y: x }) : x && (g === p.BoxPlotMonoField || g === p.BoxPlotMonoFieldAndCategory || g === p.BoxPlotMonoFieldAndSplitBy || g === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && ns(
4321
- A,
4326
+ as(P, m), g === p.PieFromFields || g === p.BarAndLineFromFields ? P = ns(P, F) : typeof x == "string" && g === p.BarAndLineSplitByNoAggregation ? rs({ dataItem: P, splitByField: n, y: x }) : x && (g === p.BoxPlotMonoField || g === p.BoxPlotMonoFieldAndCategory || g === p.BoxPlotMonoFieldAndSplitBy || g === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && ss(
4327
+ P,
4322
4328
  typeof x == "string" ? x : x[0]
4323
- ), ss({ attributes: A, showMean: u, chartSubType: g });
4324
- let q = A[h];
4325
- q === null && m[0]?.query?.fetchNullValues === !0 && g !== p.PieFromFields && (A[C] = null, q = b.nullValue), s && typeof q == "string" ? q = new Date(q).valueOf() : o && (q = Kr(A));
4326
- const { outStatisticFieldName: Q } = Y.outStatistics ?? {}, { featureExtent: X, featureExtentKey: $ } = Pi({ feature: O, splitByField: n, chartSubType: g });
4327
- if (X && (A[$] = X), g === p.BarAndLineSplitBy && Q !== void 0) {
4328
- const ce = A[n], te = a?.get(ce);
4329
- te !== void 0 && (ce === n && (A[b.technicalFieldSplitByField] = A[te]), A[te] = A[Q]), delete A[Q];
4330
- } else (g === p.PieNoAggregation || g === p.BarAndLineNoAggregation || g === p.BarAndLineSplitByNoAggregation) && (s ? A[B] = q : q !== b.nullValue && (A[C] = q), Ea({ isXAxis: !0, chartType: y, valueFormat: i.axes?.[0]?.valueFormat }) && (A[b.xAxisField] = `${q}-${L}`), A[Y.uniqueIdsName] = A[r]);
4331
- const Z = ma({
4329
+ ), ls({ attributes: P, showMean: u, chartSubType: g });
4330
+ let q = P[h];
4331
+ q === null && m[0]?.query?.fetchNullValues === !0 && g !== p.PieFromFields && (P[C] = null, q = b.nullValue), s && typeof q == "string" ? q = new Date(q).valueOf() : o && (q = Xr(P));
4332
+ const { outStatisticFieldName: Q } = Y.outStatistics ?? {}, { featureExtent: X, featureExtentKey: R } = Mi({ feature: D, splitByField: n, chartSubType: g });
4333
+ if (X && (P[R] = X), g === p.BarAndLineSplitBy && Q !== void 0) {
4334
+ const ce = P[n], te = a?.get(ce);
4335
+ te !== void 0 && (ce === n && (P[b.technicalFieldSplitByField] = P[te]), P[te] = P[Q]), delete P[Q];
4336
+ } else (g === p.PieNoAggregation || g === p.BarAndLineNoAggregation || g === p.BarAndLineSplitByNoAggregation) && (s ? P[B] = q : q !== b.nullValue && (P[C] = q), Ia({ isXAxis: !0, chartType: y, valueFormat: i.axes?.[0]?.valueFormat }) && (P[b.xAxisField] = `${q}-${L}`), P[Y.uniqueIdsName] = P[r]);
4337
+ const Z = ya({
4332
4338
  subtypeInfo: c,
4333
4339
  fieldList: f,
4334
4340
  fieldName: h,
4335
4341
  fieldValueToMatch: q
4336
4342
  });
4337
- Z !== void 0 && Z !== q && g !== p.PieFromFields && (A[C] = Z, A[N] = h, A[v] = q), y === S.BoxPlotSeries && (A = Zr(m, A)), y === S.PieSeries && typeof q == "number" && (A[C] === void 0 && (A[C] = A[h]), q = `${q}`), q !== void 0 && (A[C] === void 0 && (A[C] = A[h]), A[h] = Z ?? q, A[h] === null && (A[h] = b.nullValue), A[b.xAxisField] === void 0 && (A[b.xAxisField] = A[v] ?? A[h])), A = es(A, i), P.push(A);
4343
+ Z !== void 0 && Z !== q && g !== p.PieFromFields && (P[C] = Z, P[N] = h, P[v] = q), y === S.BoxPlotSeries && (P = ts(m, P)), y === S.PieSeries && typeof q == "number" && (P[C] === void 0 && (P[C] = P[h]), q = `${q}`), q !== void 0 && (P[C] === void 0 && (P[C] = P[h]), P[h] = Z ?? q, P[h] === null && (P[h] = b.nullValue), P[b.xAxisField] === void 0 && (P[b.xAxisField] = P[v] ?? P[h])), P = is(P, i), T.push(P);
4338
4344
  }
4339
- return P;
4345
+ return T;
4340
4346
  }
4341
4347
  async function ut(t) {
4342
4348
  const {
@@ -4357,8 +4363,8 @@ async function ut(t) {
4357
4363
  queryConfig: i,
4358
4364
  featureCount: s,
4359
4365
  abortKey: r
4360
- }), h = await Ne(e, u), F = z(e).objectIdField, C = fa(h), { x: B } = d[0], N = C.includes(B), v = ni(e);
4361
- return m = Mi({
4366
+ }), h = await Ne(e, u), F = z(e).objectIdField, C = ga(h), { x: B } = d[0], N = C.includes(B), v = ni(e);
4367
+ return m = Li({
4362
4368
  queryResponse: y,
4363
4369
  chartConfig: a,
4364
4370
  mapToStatField: n,
@@ -4371,17 +4377,17 @@ async function ut(t) {
4371
4377
  resultLimit: i.num,
4372
4378
  showMean: c,
4373
4379
  chartLimits: l
4374
- }), f !== p.BarAndLineSplitByNoAggregation && f !== p.BarAndLineFromFields && (g !== "" && (m = Mt({ data: m, x: B, splitByField: g })), m = Xr(
4380
+ }), f !== p.BarAndLineSplitByNoAggregation && f !== p.BarAndLineFromFields && (g !== "" && (m = Mt({ data: m, x: B, splitByField: g })), m = es(
4375
4381
  m,
4376
4382
  d
4377
4383
  )), m;
4378
4384
  }
4379
- async function Li(t) {
4385
+ async function wi(t) {
4380
4386
  const { chartConfig: e, queryObject: i, queryConfig: a, numberMaxOfFeaturesToFetch: n, behaviorAfterLimit: r, isGaugeByFeature: s } = t, { series: o } = e, c = V(o), { x: l } = o[0], u = o.length;
4381
4387
  let d, f;
4382
4388
  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(
4383
- (m) => m.statisticType !== T.EnvelopeAggregate
4384
- ).length ?? 0, d = f) : d = await da({ queryObject: i, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
4389
+ (m) => m.statisticType !== A.EnvelopeAggregate
4390
+ ).length ?? 0, d = f) : d = await ma({ queryObject: i, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
4385
4391
  const m = c === p.BoxPlotMonoField || c === p.BoxPlotMonoFieldAndCategory || c === p.BoxPlotMonoFieldAndSplitBy;
4386
4392
  f = Ft(c) && !m ? d * u : d;
4387
4393
  }
@@ -4402,7 +4408,7 @@ function Ke(t) {
4402
4408
  let { sortingField: d } = l;
4403
4409
  const f = i.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));
4404
4410
  if (f && (!m || o === S.LineSeries && c === S.NumberAxisFormat) && (x ? d = b.typeOrDomainIdValue : y && (d = b.originalCategoryValue)), Array.isArray(u))
4405
- Qa({
4411
+ Ha({
4406
4412
  arrayToSort: e,
4407
4413
  orderBy: u,
4408
4414
  sortingField: d,
@@ -4438,16 +4444,16 @@ async function Bt(t) {
4438
4444
  fetchFullBoxPlotData: a,
4439
4445
  options: n
4440
4446
  });
4441
- let { categoryOrDateCount: v, elementCount: P } = await Li({
4447
+ let { categoryOrDateCount: v, elementCount: T } = await wi({
4442
4448
  chartConfig: e,
4443
4449
  queryObject: r,
4444
4450
  queryConfig: i,
4445
4451
  behaviorAfterLimit: f,
4446
4452
  numberMaxOfFeaturesToFetch: B.num
4447
4453
  });
4448
- const D = !Number.isFinite(P);
4449
- let M = D || Se({
4450
- count: P ?? 0,
4454
+ const O = !Number.isFinite(T);
4455
+ let M = O || Se({
4456
+ count: T ?? 0,
4451
4457
  seriesCount: h.length,
4452
4458
  chartType: C,
4453
4459
  chartLimits: l
@@ -4457,23 +4463,23 @@ async function Bt(t) {
4457
4463
  uniqueQuery: B,
4458
4464
  chartConfig: e,
4459
4465
  mapToStatField: N,
4460
- elementCount: P,
4466
+ elementCount: T,
4461
4467
  isTimeBinningSeries: !1,
4462
4468
  showMean: c,
4463
4469
  chartLimits: l,
4464
4470
  usePopupTemplateFieldsInfo: u,
4465
4471
  abortKey: s
4466
- }), C === S.BoxPlotSeries && (m.data = await Mn({
4472
+ }), C === S.BoxPlotSeries && (m.data = await Ln({
4467
4473
  data: g,
4468
4474
  queryObject: r,
4469
4475
  fetchFullBoxPlotData: a,
4470
4476
  uniqueQuery: B,
4471
4477
  chartConfig: e,
4472
- elementCount: P,
4478
+ elementCount: T,
4473
4479
  chartLimits: l,
4474
4480
  abortKey: s
4475
- }), l?.maxBoxPlotOutlierLimit !== void 0 && (M = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !M)), D && (v = g.length, P = Ft(F) ? v * h.length : v, M = Se({
4476
- count: P,
4481
+ }), l?.maxBoxPlotOutlierLimit !== void 0 && (M = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !M)), O && (v = g.length, T = Ft(F) ? v * h.length : v, M = Se({
4482
+ count: T,
4477
4483
  seriesCount: h.length,
4478
4484
  chartType: C,
4479
4485
  chartLimits: l
@@ -4486,13 +4492,13 @@ async function Bt(t) {
4486
4492
  fieldList: o
4487
4493
  }));
4488
4494
  let w = "";
4489
- F === p.PieFromFields ? w = he : "y" in x && typeof x.y == "string" && (w = x.y), on(g, w) ? m.data = { dataItems: g } : pn(m, R.PieChartMixOfNegativePositiveSlices);
4495
+ F === p.PieFromFields ? w = he : "y" in x && typeof x.y == "string" && (w = x.y), ln(g, w) ? m.data = { dataItems: g } : hn(m, k.PieChartMixOfNegativePositiveSlices);
4490
4496
  } 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({
4491
4497
  dataToConvert: g[0],
4492
4498
  x: x.x,
4493
4499
  y: x.y,
4494
4500
  fieldList: o
4495
- }) : g = await wr({
4501
+ }) : g = await Dr({
4496
4502
  queryObject: r,
4497
4503
  seriesData: g,
4498
4504
  chartConfig: e,
@@ -4500,31 +4506,31 @@ async function Bt(t) {
4500
4506
  categoryOrDateCount: v,
4501
4507
  behaviorAfterLimit: f,
4502
4508
  abortKey: s
4503
- }), P = Ft(F) ? g.length * h.length : g.length, M = Se({
4504
- count: P,
4509
+ }), T = Ft(F) ? g.length * h.length : g.length, M = Se({
4510
+ count: T,
4505
4511
  seriesCount: h.length,
4506
4512
  chartType: C,
4507
4513
  chartLimits: l
4508
4514
  }), M)) {
4509
- d && (g = Dr(g, e)), Ke({ arrayToSort: g, chartConfig: e, fieldList: o });
4515
+ d && (g = Or(g, e)), Ke({ arrayToSort: g, chartConfig: e, fieldList: o });
4510
4516
  let w = {};
4511
4517
  if (se(x)) {
4512
- const { size: k, unit: L } = x.temporalBinning ?? {};
4513
- k !== void 0 && L !== void 0 && (w = { size: k, unit: L });
4518
+ const { size: I, unit: L } = x.temporalBinning ?? {};
4519
+ I !== void 0 && L !== void 0 && (w = { size: I, unit: L });
4514
4520
  }
4515
4521
  m.data = { dataItems: g, timeIntervalInfo: w };
4516
4522
  }
4517
4523
  }
4518
- M || ot({ dataInfo: m, chartType: C, subError: { outlierLimit: y } }), m.count = P;
4524
+ M || ot({ dataInfo: m, chartType: C, subError: { outlierLimit: y } }), m.count = T;
4519
4525
  }
4520
4526
  return m;
4521
4527
  }
4522
- function cs(t) {
4528
+ function ds(t) {
4523
4529
  let e;
4524
4530
  const { start: i, end: a } = ti({ field: "", unit: t });
4525
4531
  return a && (e = Array.from({ length: a + (i === 0 ? 1 : 0) }, (n, r) => (r + (i ?? 1)).toString())), e;
4526
4532
  }
4527
- async function wi(t) {
4533
+ async function Di(t) {
4528
4534
  const {
4529
4535
  chartConfig: e,
4530
4536
  queryConfig: i,
@@ -4538,8 +4544,8 @@ async function wi(t) {
4538
4544
  const u = e.series[0], { nullPolicy: d } = "nullPolicy" in e ? e : {};
4539
4545
  if (u.type === S.HeatSeries) {
4540
4546
  const { x: f, y: m, query: g, yTemporalBinning: y } = u, h = g?.outStatistics?.[0]?.outStatisticFieldName ?? "";
4541
- if (fi(e)) {
4542
- const x = await ca({
4547
+ if (mi(e)) {
4548
+ const x = await da({
4543
4549
  chartConfig: e,
4544
4550
  queryObject: a,
4545
4551
  queryConfig: i,
@@ -4556,7 +4562,7 @@ async function wi(t) {
4556
4562
  ot({ dataInfo: c, chartType: S.HeatSeries });
4557
4563
  else if (typeof x?.[0] == "object") {
4558
4564
  const F = await Ne(a, s?.usePopupTemplateFieldsInfo), C = ni(a);
4559
- l = Mi({
4565
+ l = Li({
4560
4566
  queryResponse: x,
4561
4567
  chartConfig: e,
4562
4568
  splitByField: "",
@@ -4571,40 +4577,40 @@ async function wi(t) {
4571
4577
  const B = await yt({ queryObject: a, queryConfig: i, category: f, abortKey: o }), N = await yt({ queryObject: a, queryConfig: i, category: m, abortKey: o });
4572
4578
  if (l.length !== B?.length * N?.length) {
4573
4579
  const v = B.flatMap(
4574
- (P) => N.map((D) => ({
4575
- [j.xField]: P,
4576
- [j.yField]: D,
4580
+ (T) => N.map((O) => ({
4581
+ [j.xField]: T,
4582
+ [j.yField]: O,
4577
4583
  [j.valueField]: d === ne.Zero ? 0 : null
4578
4584
  }))
4579
4585
  );
4580
4586
  l = [
4581
4587
  ...l,
4582
4588
  ...v.filter(
4583
- (P) => !l.some(
4584
- (D) => `${D[j.xField]}${D[j.yField]}` == `${P[j.xField]}${P[j.yField]}`
4589
+ (T) => !l.some(
4590
+ (O) => `${O[j.xField]}${O[j.yField]}` == `${T[j.xField]}${T[j.yField]}`
4585
4591
  )
4586
4592
  )
4587
4593
  ];
4588
4594
  }
4589
4595
  }
4590
4596
  } else {
4591
- const x = await ua({
4597
+ const x = await fa({
4592
4598
  chartConfig: e,
4593
4599
  queryObject: a,
4594
4600
  queryConfig: i,
4595
4601
  errorStrings: r
4596
- }), F = y ? cs(y.unit) : await yt({ queryObject: a, queryConfig: i, category: m, abortKey: o });
4602
+ }), F = y ? ds(y.unit) : await yt({ queryObject: a, queryConfig: i, category: m, abortKey: o });
4597
4603
  let C = 0;
4598
4604
  l = x?.features.flatMap((B) => {
4599
- const N = [], { attributes: v, stackedAttributes: P } = B, D = [];
4600
- return P?.forEach((M) => {
4605
+ const N = [], { attributes: v, stackedAttributes: T } = B, O = [];
4606
+ return T?.forEach((M) => {
4601
4607
  const w = `${M[m]}`;
4602
- D.push(w), N.push({
4608
+ O.push(w), N.push({
4603
4609
  [j.xField]: `${v.lowerBoundary}`,
4604
4610
  [j.yField]: w,
4605
4611
  [j.valueField]: M[h]
4606
4612
  });
4607
- }), n && F && D.length !== F?.length && F.filter((w) => !D.includes(w.toString())).forEach((w) => {
4613
+ }), n && F && O.length !== F?.length && F.filter((w) => !O.includes(w.toString())).forEach((w) => {
4608
4614
  N.push({
4609
4615
  [j.xField]: `${v.lowerBoundary}`,
4610
4616
  [j.yField]: w,
@@ -4621,10 +4627,10 @@ async function wi(t) {
4621
4627
  }
4622
4628
  return l && (c.data = { dataItems: l }), c;
4623
4629
  }
4624
- function us(t) {
4630
+ function fs(t) {
4625
4631
  const { chartConfig: e, options: i, data: a } = t, n = e.series;
4626
4632
  let r = a;
4627
- const s = di(e, i?.chartLimits);
4633
+ const s = fi(e, i?.chartLimits);
4628
4634
  if (s !== void 0) {
4629
4635
  const o = re(n);
4630
4636
  if (o.length === 1)
@@ -4655,47 +4661,47 @@ async function wt(t) {
4655
4661
  const { temporalBinning: h } = d;
4656
4662
  if (a && h) {
4657
4663
  const { unit: x, size: F } = h;
4658
- let C = 1, B = { unit: x, size: F };
4659
- const N = Yr({
4664
+ let C = 1, B = { unit: x, size: F }, N = !1;
4665
+ const v = Jr({
4660
4666
  series: d,
4661
4667
  isTimeBinningSeries: !0,
4662
4668
  setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided
4663
4669
  });
4664
- let v = r?.timeBinningStats;
4665
- !v && (!Qe(a) || N) && (v = await Rr({ queryObject: a, queryConfig: i, x: f })), N && v && v.numberOfFeatures > 0 && v.dateRange.dateMaxTimestamp !== void 0 && v.dateRange.dateMinTimestamp !== void 0 && (B = _r(v), (await Ne(a)).find((L) => L.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
4670
+ let T = r?.timeBinningStats;
4671
+ !T && (!Qe(a) || v) && (T = await jr({ queryObject: a, queryConfig: i, x: f })), v && T && T.numberOfFeatures > 0 && T.dateRange.dateMaxTimestamp !== void 0 && T.dateRange.dateMinTimestamp !== void 0 && (B = Kr(T), (await Ne(a)).find((D) => D.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
4666
4672
  E.Hour,
4667
4673
  E.Minute,
4668
4674
  E.Second
4669
4675
  ].includes(B.unit) && (B.unit = E.Day, B.size = 1), h.size = B.size, h.unit = B.unit);
4670
- const { uniqueQuery: P, mapToStatField: D } = await ct({
4676
+ const { uniqueQuery: O, mapToStatField: M } = await ct({
4671
4677
  chartConfig: e,
4672
4678
  queryConfig: i,
4673
4679
  queryObject: a,
4674
4680
  timeIntervalInfo: B,
4675
4681
  options: s
4676
4682
  });
4677
- let M = Se({
4683
+ let w = Se({
4678
4684
  count: C ?? 0,
4679
4685
  seriesCount: u.length,
4680
4686
  chartType: S.LineSeries,
4681
4687
  chartLimits: o
4682
4688
  });
4683
- if (M) {
4689
+ if (w) {
4684
4690
  if (Qe(a)) {
4685
- const w = await ai({
4691
+ const I = await ai({
4686
4692
  queryObject: a,
4687
4693
  dateField: f,
4688
4694
  splitByField: m,
4689
- queryConfig: P,
4695
+ queryConfig: O,
4690
4696
  temporalBinning: h
4691
- }), k = "y" in d && typeof d.y == "string" ? d.y : void 0;
4692
- if (y = await zr({
4697
+ }), L = "y" in d && typeof d.y == "string" ? d.y : void 0;
4698
+ if (y = await Gr({
4693
4699
  chartConfig: e,
4694
- queryResults: w,
4695
- mapToStatField: D,
4700
+ queryResults: I,
4701
+ mapToStatField: M,
4696
4702
  splitByField: m,
4697
4703
  x: f,
4698
- y: k,
4704
+ y: L,
4699
4705
  nullPolicy: h.nullPolicy,
4700
4706
  queryObject: a
4701
4707
  }), !Se({
@@ -4704,50 +4710,50 @@ async function wt(t) {
4704
4710
  chartType: S.LineSeries,
4705
4711
  chartLimits: o
4706
4712
  })) {
4707
- const L = re(u), O = y.filter(
4708
- (A) => L.some((q) => q in A && Number.isFinite(A[q]))
4713
+ const D = re(u), P = y.filter(
4714
+ (q) => D.some((Q) => Q in q && Number.isFinite(q[Q]))
4709
4715
  ).length;
4710
4716
  Se({
4711
- count: O,
4717
+ count: P,
4712
4718
  seriesCount: u.length,
4713
4719
  chartType: S.LineSeries,
4714
4720
  chartLimits: o
4715
- }) || (M = !1);
4721
+ }) || (w = !1);
4716
4722
  }
4717
- } else if (v?.dateRange.dateMinTimestamp && v.dateRange.dateMaxTimestamp) {
4718
- const { numberOfFinalBinsWithinDataRange: w } = Ti({
4719
- dateMinTimestamp: v.dateRange.dateMinTimestamp,
4720
- dateMaxTimestamp: v.dateRange.dateMaxTimestamp,
4723
+ } else if (T?.dateRange.dateMinTimestamp && T.dateRange.dateMaxTimestamp) {
4724
+ const { numberOfFinalBinsWithinDataRange: I } = Ai({
4725
+ dateMinTimestamp: T.dateRange.dateMinTimestamp,
4726
+ dateMaxTimestamp: T.dateRange.dateMaxTimestamp,
4721
4727
  timeIntervalInfo: B
4722
4728
  });
4723
- C = w * u.length, C = Ni(C, B.unit), y = r?.data ?? await ut({
4729
+ C = I * u.length, C = Ti(C, B.unit), y = r?.data ?? await ut({
4724
4730
  queryObject: a,
4725
- uniqueQuery: P,
4731
+ uniqueQuery: O,
4726
4732
  chartConfig: e,
4727
- mapToStatField: D,
4733
+ mapToStatField: M,
4728
4734
  elementCount: C,
4729
4735
  chartLimits: o,
4730
4736
  isTimeBinningSeries: !0,
4731
4737
  usePopupTemplateFieldsInfo: c,
4732
4738
  abortKey: n
4733
- }), g.binnedServerData = { data: Ie(y), timeBinningStats: v }, y = await Ur({
4739
+ }), g.binnedServerData = { data: Ie(y), timeBinningStats: T }, y = await _r({
4734
4740
  queryObject: a,
4735
4741
  queryConfig: i,
4736
4742
  queryResults: y,
4737
4743
  x: f,
4738
4744
  seriesConfig: u,
4739
- dateRange: v.dateRange,
4745
+ dateRange: T.dateRange,
4740
4746
  timeIntervalInfo: B
4741
4747
  });
4742
4748
  }
4743
- l === $e.RenderUpToTheLimit && y && (y = us({ chartConfig: e, options: s, data: y }));
4749
+ ua(a) && y && y?.length === qr && (N = !0), l === $e.RenderUpToTheLimit && y && (y = fs({ chartConfig: e, options: s, data: y }));
4744
4750
  }
4745
- M || (g.valid = !1, g.invalidType = R.LineChartExceedsLimit), y && y.length > 0 && (y[y.length - 1][b.lastTemporalBin] = !0), g.data = { dataItems: y, timeIntervalInfo: B }, g.count = C;
4751
+ w || (g.valid = !1, g.invalidType = k.LineChartExceedsLimit), y && y.length > 0 && (y[y.length - 1][b.lastTemporalBin] = !0), g.data = { dataItems: y, timeIntervalInfo: B, serverLimitReached: N }, g.count = C;
4746
4752
  }
4747
4753
  }
4748
4754
  return g;
4749
4755
  }
4750
- async function ds(t) {
4756
+ async function ms(t) {
4751
4757
  const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n, options: r } = t, s = He(e), { setTimeBinningInfoWhenNotProvided: o, chartLimits: c, usePopupTemplateFieldsInfo: l } = r ?? {}, u = { valid: !0 };
4752
4758
  if (a !== void 0) {
4753
4759
  const d = e.series, f = ve({
@@ -4774,11 +4780,11 @@ async function ds(t) {
4774
4780
  usePopupTemplateFieldsInfo: l,
4775
4781
  abortKey: n
4776
4782
  });
4777
- W(e.series) === S.BoxPlotSeries && (y = gi({ chartConfig: e, data: y, calculateZScore: !1 })), u.data = { dataItems: y };
4783
+ W(e.series) === S.BoxPlotSeries && (y = yi({ chartConfig: e, data: y, calculateZScore: !1 })), u.data = { dataItems: y };
4778
4784
  }
4779
4785
  return u;
4780
4786
  }
4781
- async function fs(t) {
4787
+ async function gs(t) {
4782
4788
  const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: n, options: r, errorStrings: s } = t, o = "showMean" in e ? e.showMean : !1, c = await Pt({
4783
4789
  queryObject: a,
4784
4790
  chartConfig: e,
@@ -4789,16 +4795,16 @@ async function fs(t) {
4789
4795
  });
4790
4796
  return o && c.data && "dataItems" in c.data && "meanLines" in c.data && c.data.meanLines && (c.data.dataItems = [...c.data.dataItems, ...c.data.meanLines]), c;
4791
4797
  }
4792
- function Di(t) {
4798
+ function Oi(t) {
4793
4799
  return t?.[nt.defaultGroupOfSlicesId] === !0;
4794
4800
  }
4795
- function el(t, e) {
4801
+ function il(t, e) {
4796
4802
  const i = t.filter(
4797
- (a) => !Di(a)
4803
+ (a) => !Oi(a)
4798
4804
  );
4799
4805
  return !Pe(i, e);
4800
4806
  }
4801
- function ms(t, e) {
4807
+ function ys(t, e) {
4802
4808
  let i = t.reduce((a, n) => {
4803
4809
  if (n[nt.defaultGroupOfSlicesId] === !0) {
4804
4810
  const r = n[b.pieChart.technicalFieldGroupedSlices];
@@ -4812,60 +4818,60 @@ function ms(t, e) {
4812
4818
  return Ke({
4813
4819
  arrayToSort: i,
4814
4820
  chartConfig: e
4815
- }), i = li({
4821
+ }), i = ci({
4816
4822
  data: { dataItems: i },
4817
4823
  seriesConfig: e.series
4818
4824
  })?.dataItems ?? [], i;
4819
4825
  }
4820
- function gs(t) {
4826
+ function ps(t) {
4821
4827
  const { stringToTruncate: e, characterLimit: i, ellipsis: a = b.chartEllipsis } = t;
4822
4828
  let n = e;
4823
4829
  return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (n = e.slice(0, i), n = `${n}${a}`), n;
4824
4830
  }
4825
- function tl(t, e = ":") {
4831
+ function al(t, e = ":") {
4826
4832
  return t ? `‏${e}` : `‎${e}`;
4827
4833
  }
4828
- function il(t) {
4834
+ function nl(t) {
4829
4835
  return (i) => {
4830
4836
  let a = typeof i != "string" ? i?.toString() ?? "" : i;
4831
- return !ee(a) && a !== b.htmlEmptyContent && (a = gs({
4837
+ return !ee(a) && a !== b.htmlEmptyContent && (a = ps({
4832
4838
  stringToTruncate: a,
4833
4839
  characterLimit: t
4834
4840
  })), a;
4835
4841
  };
4836
4842
  }
4837
- function ys(t) {
4843
+ function hs(t) {
4838
4844
  const e = /[[]/gu, i = /[\]]/gu, a = /[{]/gu, n = /[}]/gu, r = /[']/gu;
4839
4845
  return t = t.replace(e, "[["), t = t.replace(i, "]]"), t = t.replace(a, "{{"), t = t.replace(n, "}}"), t = t.replace(r, "''"), t;
4840
4846
  }
4841
- function ps(t, e) {
4847
+ function Ss(t, e) {
4842
4848
  let i = "";
4843
4849
  return t !== void 0 && (i = `${e === "amChartsV5" ? "fontStyle" : "font-style"}:${t};`), i;
4844
4850
  }
4845
- function hs(t, e) {
4851
+ function Fs(t, e) {
4846
4852
  let i = "";
4847
4853
  return t === !0 && (i = `${e === "amChartsV5" ? "letterSpacing" : "letter-spacing"}:1px;`), i;
4848
4854
  }
4849
- function al(t) {
4850
- const { textSymbol: e, placeholderString: i, format: a, axisLabelsBehavior: n, defaults: r } = t, s = ps(e?.font?.style, a), o = hs(e?.kerning, a);
4855
+ function rl(t) {
4856
+ const { textSymbol: e, placeholderString: i, format: a, axisLabelsBehavior: n, defaults: r } = t, s = Ss(e?.font?.style, a), o = Fs(e?.kerning, a);
4851
4857
  let c = i ?? e?.text ?? "";
4852
4858
  if (a === "html") {
4853
4859
  let { wrap: l, maxWidth: u } = r ?? {};
4854
- n === Ii.Wrap && (l = !0, u = u ?? b.xAxisLabelMaxWidth);
4860
+ n === $i.Wrap && (l = !0, u = u ?? b.xAxisLabelMaxWidth);
4855
4861
  const d = l === !0 && Number.isFinite(u) ? `max-width: ${u}px; word-break: break-word;` : "";
4856
4862
  c = `<p style="margin:0;${s}${o}${d}">${c}</p>`;
4857
4863
  } else
4858
- c = ys(c), (s !== "" || o !== "") && (c = `[${s}${o}]${c}[/]`);
4864
+ c = hs(c), (s !== "" || o !== "") && (c = `[${s}${o}]${c}[/]`);
4859
4865
  return c;
4860
4866
  }
4861
- function Ss(t) {
4867
+ function bs(t) {
4862
4868
  return t ? t.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
4863
4869
  }
4864
4870
  const qe = {
4865
4871
  ChartRenderer: 1,
4866
4872
  LayerRenderer: 2
4867
4873
  };
4868
- function nl(t) {
4874
+ function sl(t) {
4869
4875
  const { chartConfig: e, queryObject: i } = t;
4870
4876
  let a = !1;
4871
4877
  if (e.chartRenderer)
@@ -4898,10 +4904,10 @@ function nl(t) {
4898
4904
  }
4899
4905
  return a;
4900
4906
  }
4901
- function Fs(t, e) {
4902
- return Ss(t?.type) ?? e?.type;
4907
+ function xs(t, e) {
4908
+ return bs(t?.type) ?? e?.type;
4903
4909
  }
4904
- function bs(t) {
4910
+ function Cs(t) {
4905
4911
  const e = b.rendererSymbolField;
4906
4912
  let i = e in t ? e : void 0;
4907
4913
  if (!i) {
@@ -4913,13 +4919,13 @@ function bs(t) {
4913
4919
  }
4914
4920
  return t[i]?.label;
4915
4921
  }
4916
- function xs(t) {
4922
+ function Bs(t) {
4917
4923
  return t?.type !== void 0 && (t.color !== void 0 || t.label !== void 0 || t.style !== void 0 || t.outline !== void 0);
4918
4924
  }
4919
- function Oi(t) {
4925
+ function qi(t) {
4920
4926
  const { symbolField: e, dataItem: i, rendererSymbol: a, rendererOrigin: n } = t;
4921
4927
  let r = !1;
4922
- if (!xs(a))
4928
+ if (!Bs(a))
4923
4929
  delete i[e];
4924
4930
  else {
4925
4931
  const s = { ...a };
@@ -4927,7 +4933,7 @@ function Oi(t) {
4927
4933
  }
4928
4934
  return r;
4929
4935
  }
4930
- function Cs(t) {
4936
+ function vs(t) {
4931
4937
  const { renderer: e, seriesConfig: i, chartSubType: a, dataItem: n, rendererOrigin: r } = t;
4932
4938
  let s, o = !1;
4933
4939
  const c = W(i), { outline: l, attributes: u } = e;
@@ -4960,7 +4966,7 @@ function Cs(t) {
4960
4966
  type: rt.SMS,
4961
4967
  color: y,
4962
4968
  label: x && g ? g : void 0
4963
- }, l != null && (s.outline = l), Oi({
4969
+ }, l != null && (s.outline = l), qi({
4964
4970
  dataItem: n,
4965
4971
  symbolField: a === p.BarAndLineFromFields || a === p.PieFromFields ? b.rendererSymbolField : `${b.rendererSymbolField}_${f}`,
4966
4972
  rendererSymbol: s,
@@ -4969,7 +4975,7 @@ function Cs(t) {
4969
4975
  }
4970
4976
  ), { rendererSymbol: s, colorMatchApplied: o };
4971
4977
  }
4972
- function Bs(t) {
4978
+ function Ns(t) {
4973
4979
  const { seriesConfig: e, chartSubType: i, rendererType: a } = t;
4974
4980
  let r = b.rendererSymbolField;
4975
4981
  if (a === ie.UniqueValue) {
@@ -4994,27 +5000,27 @@ function Bs(t) {
4994
5000
  }
4995
5001
  return r;
4996
5002
  }
4997
- function qi(t) {
5003
+ function Ei(t) {
4998
5004
  const { seriesConfig: e, chartSubType: i, rendererType: a, dataItem: n } = t;
4999
- let r = Bs({
5005
+ let r = Ns({
5000
5006
  seriesConfig: e,
5001
5007
  chartSubType: i,
5002
5008
  rendererType: a
5003
5009
  });
5004
5010
  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;
5005
5011
  }
5006
- function vs(t) {
5012
+ function Ts(t) {
5007
5013
  const { chartRenderer: e, queryObject: i } = t, a = e !== void 0 ? {
5008
5014
  // 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
5009
5015
  // eslint-disable-next-line @typescript-eslint/no-misused-spread
5010
5016
  ...z(i),
5011
- renderer: ha.fromJSON(e)
5017
+ renderer: Fa.fromJSON(e)
5012
5018
  } : z(i);
5013
- return new Sa({
5019
+ return new ba({
5014
5020
  layer: a
5015
5021
  });
5016
5022
  }
5017
- async function Ns(t) {
5023
+ async function As(t) {
5018
5024
  const {
5019
5025
  seriesConfig: e,
5020
5026
  dataItem: i,
@@ -5029,7 +5035,7 @@ async function Ns(t) {
5029
5035
  } = t;
5030
5036
  let d, f = !1;
5031
5037
  if (n === ie.PieChart) {
5032
- const m = Cs({
5038
+ const m = vs({
5033
5039
  renderer: a,
5034
5040
  seriesConfig: e,
5035
5041
  chartSubType: s,
@@ -5037,11 +5043,11 @@ async function Ns(t) {
5037
5043
  rendererOrigin: r
5038
5044
  });
5039
5045
  d = m.rendererSymbol, f = m.colorMatchApplied;
5040
- } else if (!Di(i)) {
5046
+ } else if (!Oi(i)) {
5041
5047
  const { x: m } = e[0], g = /* @__PURE__ */ new Map();
5042
5048
  o && o.trim() !== "" ? e.forEach((y) => {
5043
5049
  if (y.type === S.BarSeries || y.type === S.LineSeries || y.type === S.BoxPlotSeries || y.type === S.RadarSeries) {
5044
- const h = qi({
5050
+ const h = Ei({
5045
5051
  seriesConfig: y,
5046
5052
  chartSubType: s,
5047
5053
  rendererType: n,
@@ -5059,7 +5065,7 @@ async function Ns(t) {
5059
5065
  }
5060
5066
  }) : g.set(b.rendererSymbolField, {
5061
5067
  ...i,
5062
- [m]: Wa(i)
5068
+ [m]: Qa(i)
5063
5069
  });
5064
5070
  try {
5065
5071
  const y = Array.from(g.entries()), h = c.clone();
@@ -5080,7 +5086,7 @@ async function Ns(t) {
5080
5086
  if (d = (await gt.getDisplayedSymbol(h))?.toJSON(), d != null) {
5081
5087
  d.color === void 0 && (d.color = (await gt.getDisplayedColor(h))?.toJSON());
5082
5088
  const v = await gt.getLegendLabel(h);
5083
- v != null && v !== "" && (d.label = v, d.uniqueValue = x?.find((P) => P.label === v)?.value ?? void 0);
5089
+ v != null && v !== "" && (d.label = v, d.uniqueValue = x?.find((T) => T.label === v)?.value ?? void 0);
5084
5090
  }
5085
5091
  u?.set(JSON.stringify(B), d);
5086
5092
  }
@@ -5089,7 +5095,7 @@ async function Ns(t) {
5089
5095
  x: m,
5090
5096
  splitByField: o,
5091
5097
  attributes: i
5092
- }), Oi({
5098
+ }), qi({
5093
5099
  dataItem: i,
5094
5100
  symbolField: C,
5095
5101
  rendererSymbol: d,
@@ -5101,7 +5107,7 @@ async function Ns(t) {
5101
5107
  }
5102
5108
  return { rendererSymbol: d, colorMatchApplied: f };
5103
5109
  }
5104
- function Ts(t) {
5110
+ function Ps(t) {
5105
5111
  const e = t;
5106
5112
  return t?.type === "uniqueValue" && (t.uniqueValueInfos = t.uniqueValueInfos.map((i) => {
5107
5113
  const a = i.value === null ? b.nullValue : i.value;
@@ -5114,20 +5120,20 @@ function Ht(t) {
5114
5120
  i[r] === (n === "encode" ? null : b.nullValue) && (i[r] = n === "encode" ? b.nullValue : null);
5115
5121
  });
5116
5122
  }
5117
- async function rl(t) {
5123
+ async function ol(t) {
5118
5124
  const { data: e, queryObject: i, chartConfig: a, allowColorMatch: n } = t;
5119
5125
  let r = !1, s = [];
5120
5126
  if (n) {
5121
- const { series: o, chartRenderer: c } = a, l = Ts(c), u = l ? qe.ChartRenderer : qe.LayerRenderer, d = i ? z(i) : void 0, f = l ?? d?.renderer;
5127
+ const { series: o, chartRenderer: c } = a, l = Ps(c), u = l ? qe.ChartRenderer : qe.LayerRenderer, d = i ? z(i) : void 0, f = l ?? d?.renderer;
5122
5128
  let m;
5123
- d && u === qe.LayerRenderer ? s = await Zt(d) : u === qe.ChartRenderer && (s = Ms(f));
5124
- const g = Fs(l, d?.renderer), y = vs({
5129
+ d && u === qe.LayerRenderer ? s = await Zt(d) : u === qe.ChartRenderer && (s = ws(f));
5130
+ const g = xs(l, d?.renderer), y = Ts({
5125
5131
  chartRenderer: c,
5126
5132
  queryObject: i
5127
5133
  }), h = V(o), x = Le(a), F = K(x.query?.where);
5128
5134
  m = /* @__PURE__ */ new Map();
5129
5135
  for (let C = 0; C < e.length; C += 1) {
5130
- const B = e[C], N = await Ns({
5136
+ const B = e[C], N = await As({
5131
5137
  seriesConfig: a.series,
5132
5138
  dataItem: B,
5133
5139
  renderer: f,
@@ -5144,11 +5150,11 @@ async function rl(t) {
5144
5150
  }
5145
5151
  return { dataItems: e, colorMatchApplied: r, rendererFieldNames: s };
5146
5152
  }
5147
- function As(t) {
5153
+ function Ms(t) {
5148
5154
  const { dataItem: e, seriesConfig: i, chartSubType: a, colorMatch: n, rendererType: r } = t;
5149
5155
  let s;
5150
5156
  if (n && e !== void 0) {
5151
- const o = qi({
5157
+ const o = Ei({
5152
5158
  seriesConfig: i,
5153
5159
  chartSubType: a,
5154
5160
  rendererType: r,
@@ -5158,7 +5164,7 @@ function As(t) {
5158
5164
  }
5159
5165
  return s;
5160
5166
  }
5161
- function sl(t) {
5167
+ function ll(t) {
5162
5168
  const { seriesSymbol: e, rendererSymbol: i, colorIndex: a, preferSeriesSymbolOverRendererSymbol: n } = t;
5163
5169
  let r = i?.color ?? e.color;
5164
5170
  n && (r = e.color ?? i?.color), r = r ?? Gt({ colorIndex: a, opacity: ri });
@@ -5173,19 +5179,19 @@ function sl(t) {
5173
5179
  color: i?.outline?.color ?? s.outline?.color ?? i?.color
5174
5180
  }), s;
5175
5181
  }
5176
- function Ps(t) {
5182
+ function Ls(t) {
5177
5183
  let e = [];
5178
5184
  return t && (e = t.series.flatMap((i) => i.query?.outStatistics?.map((a) => a.onStatisticField)).filter((i) => i !== void 0), e.length === 0 && (e = re(t.series))), e;
5179
5185
  }
5180
- function ol(t, e) {
5186
+ function cl(t, e) {
5181
5187
  let i = !1;
5182
5188
  if (t && e && e.length > 0 && Ut(t)) {
5183
- const n = $a(t), r = Le(t);
5184
- n ? i = Ps(t).some((o) => e.includes(o)) : i = e.includes(r.x);
5189
+ const n = ka(t), r = Le(t);
5190
+ n ? i = Ls(t).some((o) => e.includes(o)) : i = e.includes(r.x);
5185
5191
  }
5186
5192
  return i;
5187
5193
  }
5188
- function Ms(t) {
5194
+ function ws(t) {
5189
5195
  let e = [];
5190
5196
  if (t && "type" in t && typeof t.type == "string")
5191
5197
  switch (t.type) {
@@ -5201,25 +5207,25 @@ function Ms(t) {
5201
5207
  }
5202
5208
  return e;
5203
5209
  }
5204
- function ll(t, e) {
5210
+ function ul(t, e) {
5205
5211
  let i;
5206
5212
  return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
5207
5213
  }
5208
- function cl(t, e) {
5214
+ function dl(t, e) {
5209
5215
  let i;
5210
5216
  return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
5211
5217
  }
5212
- function ul(t) {
5218
+ function fl(t) {
5213
5219
  let e;
5214
5220
  return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
5215
5221
  }
5216
- function dl(t, e) {
5217
- return e != null || Na(t);
5222
+ function ml(t, e) {
5223
+ return e != null || Aa(t);
5218
5224
  }
5219
- async function Ls(t) {
5225
+ async function Ds(t) {
5220
5226
  const { queryObject: e, chartConfig: i, options: a, splitByField: n } = t;
5221
5227
  let r = [];
5222
- const s = i.series[0], o = await va(i, e), c = ii({
5228
+ const s = i.series[0], o = await Ta(i, e), c = ii({
5223
5229
  queryObject: e,
5224
5230
  chartConfig: o,
5225
5231
  runtimeDataFilters: a?.runtimeDataFilters,
@@ -5265,7 +5271,7 @@ async function Ls(t) {
5265
5271
  }
5266
5272
  return r;
5267
5273
  }
5268
- function ws(t, e) {
5274
+ function Os(t, e) {
5269
5275
  const i = /* @__PURE__ */ new Map();
5270
5276
  return t.series.forEach((a) => {
5271
5277
  let n = ge({
@@ -5285,7 +5291,7 @@ function ws(t, e) {
5285
5291
  ]);
5286
5292
  }), i;
5287
5293
  }
5288
- function Ds(t) {
5294
+ function qs(t) {
5289
5295
  const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: a } = t, n = /* @__PURE__ */ new Map();
5290
5296
  return Array.from(i.keys()).forEach((r) => {
5291
5297
  const s = i.get(r) ?? [];
@@ -5295,7 +5301,7 @@ function Ds(t) {
5295
5301
  }), n.set(r, o);
5296
5302
  }), n;
5297
5303
  }
5298
- function Os(t) {
5304
+ function Es(t) {
5299
5305
  const { chartConfig: e, missingValue: i, splitByField: a, seriesTemplate: n } = t, r = JSON.parse(
5300
5306
  JSON.stringify({
5301
5307
  ...e.series[0],
@@ -5312,14 +5318,14 @@ function Os(t) {
5312
5318
  }
5313
5319
  return r;
5314
5320
  }
5315
- async function fl(t, e, i) {
5321
+ async function gl(t, e, i) {
5316
5322
  const { updateSplitBySeries: a } = t, { seriesTemplate: n } = a ?? {};
5317
5323
  if (a !== void 0 && e !== void 0 && (e.series.length > 0 || n !== void 0) && a.addMissingSeries) {
5318
5324
  const r = e.series.length === 0;
5319
5325
  e.series.length === 0 && n !== void 0 && e.series.push(n);
5320
5326
  const s = V(e.series);
5321
5327
  if (s === p.BoxPlotMonoFieldAndSplitBy || s === p.BoxPlotMultiFieldsAndSplitBy || s === p.BoxPlotMonoFieldAndCategoryAndSplitBy || s === p.BarAndLineSplitBy || s === p.BarAndLineSplitByNoAggregation) {
5322
- const o = await ga({
5328
+ const o = await pa({
5323
5329
  chartConfig: e,
5324
5330
  layer: t.layer,
5325
5331
  view: t.view
@@ -5327,14 +5333,14 @@ async function fl(t, e, i) {
5327
5333
  if (o !== void 0) {
5328
5334
  const c = K(e.series[0]?.query?.where), l = z(o);
5329
5335
  await l.load();
5330
- const u = l.getField(c)?.toJSON(), d = We(u), f = await Ls({
5336
+ const u = l.getField(c)?.toJSON(), d = We(u), f = await Ds({
5331
5337
  queryObject: o,
5332
5338
  chartConfig: e,
5333
5339
  splitByField: c,
5334
5340
  options: i
5335
5341
  });
5336
5342
  if (f.length > 0) {
5337
- const m = ws(e, d), g = Ds({
5343
+ const m = Os(e, d), g = qs({
5338
5344
  allValues: f,
5339
5345
  configUniqueValuesPerSeriesType: m,
5340
5346
  initialConfigWasEmpty: r
@@ -5342,7 +5348,7 @@ async function fl(t, e, i) {
5342
5348
  Array.from(g.keys()).forEach((y) => {
5343
5349
  (g.get(y) ?? []).forEach((x) => {
5344
5350
  e.series.push(
5345
- Os({
5351
+ Es({
5346
5352
  chartConfig: e,
5347
5353
  seriesTemplate: n,
5348
5354
  missingValue: x,
@@ -5357,93 +5363,93 @@ async function fl(t, e, i) {
5357
5363
  }
5358
5364
  }
5359
5365
  export {
5360
- Zo as $,
5361
- Jo as A,
5362
- Xo as B,
5363
- ka as C,
5364
- Nr as D,
5365
- pr as E,
5366
+ tl as $,
5367
+ Zo as A,
5368
+ el as B,
5369
+ si as C,
5370
+ Tr as D,
5371
+ hr as E,
5366
5372
  Mt as F,
5367
- go as G,
5368
- gs as H,
5369
- Ta as I,
5370
- uo as J,
5371
- Do as K,
5372
- Ro as L,
5373
- Ko as M,
5373
+ po as G,
5374
+ ps as H,
5375
+ Pa as I,
5376
+ mo as J,
5377
+ qo as K,
5378
+ jo as L,
5379
+ Xo as M,
5374
5380
  jt as N,
5375
- oo as O,
5376
- co as P,
5381
+ co as O,
5382
+ fo as P,
5377
5383
  fe as Q,
5378
5384
  qe as R,
5379
- Po as S,
5380
- ko as T,
5381
- yn as U,
5382
- il as V,
5383
- Ga as W,
5385
+ Lo as S,
5386
+ Wo as T,
5387
+ pn as U,
5388
+ nl as V,
5389
+ _a as W,
5384
5390
  pe as X,
5385
- Yo as Y,
5386
- Oo as Z,
5387
- _o as _,
5388
- al as a,
5389
- rl as a0,
5390
- vo as a1,
5391
- Ao as a2,
5392
- fo as a3,
5393
- zo as a4,
5394
- xo as a5,
5395
- Io as a6,
5396
- $o as a7,
5397
- yo as a8,
5398
- Qo as a9,
5399
- Ho as aa,
5400
- qo as ab,
5401
- Uo as ac,
5402
- po as ad,
5403
- ho as ae,
5404
- lo as af,
5405
- Go as ag,
5406
- So as ah,
5391
+ Jo as Y,
5392
+ Eo as Z,
5393
+ Ko as _,
5394
+ rl as a,
5395
+ ol as a0,
5396
+ To as a1,
5397
+ Mo as a2,
5398
+ go as a3,
5399
+ Go as a4,
5400
+ Bo as a5,
5401
+ Ro as a6,
5402
+ ko as a7,
5403
+ ho as a8,
5404
+ zo as a9,
5405
+ Uo as aa,
5406
+ Vo as ab,
5407
+ _o as ac,
5408
+ So as ad,
5409
+ Fo as ae,
5410
+ uo as af,
5411
+ Yo as ag,
5412
+ bo as ah,
5407
5413
  Ft as ai,
5408
- Ea as aj,
5409
- li as ak,
5410
- No as al,
5411
- el as am,
5412
- Eo as an,
5413
- Vo as ao,
5414
- jo as ap,
5415
- Wo as aq,
5416
- Co as ar,
5417
- bo as as,
5418
- Fo as at,
5419
- mo as au,
5420
- fl as av,
5421
- dl as aw,
5422
- ll as ax,
5423
- cl as ay,
5424
- ci as b,
5425
- so as c,
5426
- tl as d,
5427
- Bo as e,
5414
+ Ia as aj,
5415
+ ci as ak,
5416
+ Ao as al,
5417
+ il as am,
5418
+ Io as an,
5419
+ $o as ao,
5420
+ Qo as ap,
5421
+ Ho as aq,
5422
+ vo as ar,
5423
+ Co as as,
5424
+ xo as at,
5425
+ yo as au,
5426
+ gl as av,
5427
+ ml as aw,
5428
+ ul as ax,
5429
+ dl as ay,
5430
+ ui as b,
5431
+ lo as c,
5432
+ al as d,
5433
+ No as e,
5428
5434
  He as f,
5429
5435
  ze as g,
5430
- Wa as h,
5431
- Di as i,
5432
- ys as j,
5433
- ol as k,
5436
+ Qa as h,
5437
+ Oi as i,
5438
+ hs as j,
5439
+ cl as k,
5434
5440
  Ae as l,
5435
- sl as m,
5436
- To as n,
5441
+ ll as m,
5442
+ Po as n,
5437
5443
  J as o,
5438
- As as p,
5439
- wo as q,
5440
- ul as r,
5444
+ Ms as p,
5445
+ Oo as q,
5446
+ fl as r,
5441
5447
  Ke as s,
5442
- Mo as t,
5443
- vs as u,
5444
- Fs as v,
5445
- nl as w,
5446
- Ns as x,
5447
- Lo as y,
5448
- Ra as z
5448
+ wo as t,
5449
+ Ts as u,
5450
+ xs as v,
5451
+ sl as w,
5452
+ As as x,
5453
+ Do as y,
5454
+ ja as z
5449
5455
  };