@arcgis/charts-components 5.0.0-next.53 → 5.0.0-next.55

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 (302) hide show
  1. package/dist/cdn/{667ZUKDG.js → 257LSZLN.js} +2 -2
  2. package/dist/cdn/{Y32VQJRS.js → 2PWLFSXJ.js} +2 -2
  3. package/dist/cdn/{CLG5MOV4.js → 2WCMZQGI.js} +2 -2
  4. package/dist/cdn/{4ZSK7F5K.js → 32G6ANUF.js} +2 -2
  5. package/dist/cdn/{S25EKTDK.js → 3H2FNZD4.js} +2 -2
  6. package/dist/cdn/{OSNNEH4D.js → 3LM3DA7M.js} +2 -2
  7. package/dist/cdn/{P2SJIRS5.js → 44VZENBU.js} +2 -2
  8. package/dist/cdn/{UOM7XXHF.js → 477CZSF4.js} +2 -2
  9. package/dist/cdn/{LOXTSCDL.js → 4BJIGK7A.js} +2 -2
  10. package/dist/cdn/{JQARI4LU.js → 4G7ZACXB.js} +2 -2
  11. package/dist/cdn/{HRLQAVZY.js → 4K2WCYAF.js} +2 -2
  12. package/dist/cdn/{2GLCYT4A.js → 4POCFQ5M.js} +2 -2
  13. package/dist/cdn/{YLNH74LS.js → 4QQLNRYM.js} +2 -2
  14. package/dist/cdn/{I3GREGWK.js → 4S7F2JHY.js} +2 -2
  15. package/dist/cdn/{46SGMHRK.js → 54EKRVOG.js} +2 -2
  16. package/dist/cdn/{6OLATD3E.js → 57K7INJC.js} +1 -1
  17. package/dist/cdn/{7QYX3NID.js → 5H635XRT.js} +1 -1
  18. package/dist/cdn/{WNXRUPPO.js → 5T32REWC.js} +2 -2
  19. package/dist/cdn/{KYTQG7QD.js → 66P5KLQT.js} +2 -2
  20. package/dist/cdn/{ASQFN3P7.js → 67M4CIR7.js} +2 -2
  21. package/dist/cdn/{ESOTNKEA.js → 6B4FPCPB.js} +2 -2
  22. package/dist/cdn/{IDFRUCOW.js → 6DNC7UMP.js} +2 -2
  23. package/dist/cdn/{GUO7YXDR.js → 6ER6AZOG.js} +2 -2
  24. package/dist/cdn/{JHIFJWP3.js → 6JFRQWNW.js} +2 -2
  25. package/dist/cdn/{ZS33RT6R.js → 6MBRJJE7.js} +2 -2
  26. package/dist/cdn/{HC7BSBQM.js → 6NBF3L6C.js} +2 -2
  27. package/dist/cdn/{TWI5FHTD.js → 6RGY3F3G.js} +2 -2
  28. package/dist/cdn/{VRIVNPS3.js → 72X2NKZ4.js} +2 -2
  29. package/dist/cdn/{MOSMBZVF.js → 77MH4W23.js} +2 -2
  30. package/dist/cdn/{WYIKRWNB.js → 7AP2D4HH.js} +2 -2
  31. package/dist/cdn/{NYYYYDVS.js → 7XBYRPQ6.js} +2 -2
  32. package/dist/cdn/{OYYHDUAV.js → A27P4WSK.js} +2 -2
  33. package/dist/cdn/{6A5ADDA7.js → ADIOEHQL.js} +1 -1
  34. package/dist/cdn/{556RM2HS.js → AGO4MJXN.js} +2 -2
  35. package/dist/cdn/{ES2ZDO57.js → AIQMLQEV.js} +2 -2
  36. package/dist/cdn/{SUPQAXXT.js → ANRH4RBS.js} +2 -2
  37. package/dist/cdn/{WKNULV5Q.js → ANZ7MGA7.js} +2 -2
  38. package/dist/cdn/{JBQ4FYUC.js → AP4WDCAV.js} +2 -2
  39. package/dist/cdn/{DMKVFD2K.js → APFKTA4F.js} +2 -2
  40. package/dist/cdn/{6KIPXDES.js → ASX7NYY5.js} +2 -2
  41. package/dist/cdn/{RUZA3LOU.js → B3MQ7WPI.js} +2 -2
  42. package/dist/cdn/{3XVWSIMV.js → B43YRDGY.js} +2 -2
  43. package/dist/cdn/{OVITXBR5.js → B5YAGUGS.js} +2 -2
  44. package/dist/cdn/{UURXDFYO.js → BHE5GSRW.js} +2 -2
  45. package/dist/cdn/{HQ4YDUBL.js → BSGHCYWG.js} +2 -2
  46. package/dist/cdn/{7CAEOELW.js → C3MBLSND.js} +2 -2
  47. package/dist/cdn/{X4ORTVSR.js → C3VT46OU.js} +2 -2
  48. package/dist/cdn/{H4SVCKNS.js → CAX5GA5X.js} +2 -2
  49. package/dist/cdn/{QOIXRFGH.js → CFZZSH6T.js} +2 -2
  50. package/dist/cdn/{JTUUGWB3.js → CHI4YECN.js} +2 -2
  51. package/dist/cdn/{AL2FMIPY.js → CIIACJC6.js} +2 -2
  52. package/dist/cdn/{RSDUCZTJ.js → CIYHGZUO.js} +2 -2
  53. package/dist/cdn/{LKAPJTOG.js → CJCOXSDW.js} +2 -2
  54. package/dist/cdn/{YG6QMAG3.js → COYUG6GB.js} +2 -2
  55. package/dist/cdn/{AZ5G6IJV.js → D3Y2IHFP.js} +2 -2
  56. package/dist/cdn/{IHGA27IJ.js → D6XQPFCG.js} +2 -2
  57. package/dist/cdn/{X57F5GLL.js → DHXBZQRO.js} +2 -2
  58. package/dist/cdn/{PZ3FWVAY.js → DRZZFZOJ.js} +2 -2
  59. package/dist/cdn/{KUUOANRI.js → DTYOUZLW.js} +2 -2
  60. package/dist/cdn/{DALKBULT.js → EADZE43G.js} +1 -1
  61. package/dist/cdn/{4SP5XK6I.js → EG7BXBGC.js} +2 -2
  62. package/dist/cdn/{5MUM7KON.js → EHYB4EMW.js} +2 -2
  63. package/dist/cdn/{LKIVCC6M.js → EHZ4BMKG.js} +2 -2
  64. package/dist/cdn/{XC64VHVS.js → EJBNADVH.js} +2 -2
  65. package/dist/cdn/{DXNBRTBB.js → EVHODUB2.js} +2 -2
  66. package/dist/cdn/{CKXI42AF.js → EYKWPUHL.js} +2 -2
  67. package/dist/cdn/{6H2JE7JK.js → EYMFN3X7.js} +2 -2
  68. package/dist/cdn/{L7FMUQRV.js → F5I5DHQZ.js} +2 -2
  69. package/dist/cdn/{FHHDE2M2.js → F65KYUVM.js} +2 -2
  70. package/dist/cdn/{XB7XUYRB.js → FK5O57G3.js} +1 -1
  71. package/dist/cdn/{FO35PFUU.js → G5AJVECZ.js} +2 -2
  72. package/dist/cdn/{JTJTGG2E.js → GAJVFIOY.js} +2 -2
  73. package/dist/cdn/GTW3RVNS.js +4 -0
  74. package/dist/cdn/{JBKTD2BL.js → GVWAXMWV.js} +2 -2
  75. package/dist/cdn/{3E7N77BW.js → GWI5HBPN.js} +2 -2
  76. package/dist/cdn/{UT3A4ZJC.js → HB4YQVGP.js} +2 -2
  77. package/dist/cdn/{A35PIA2J.js → HEQNZTWX.js} +2 -2
  78. package/dist/cdn/{3L4GPMFP.js → HG2WCLYG.js} +2 -2
  79. package/dist/cdn/{IXBFZD2J.js → HN5SF65Q.js} +2 -2
  80. package/dist/cdn/{SAR2JYEQ.js → IBUXGJ5J.js} +2 -2
  81. package/dist/cdn/{GYZNKHSZ.js → ICIHQULZ.js} +2 -2
  82. package/dist/cdn/{GVK3EJPW.js → IDNXYDYV.js} +4 -4
  83. package/dist/cdn/{AG6LTZHV.js → IRZTM4G3.js} +2 -2
  84. package/dist/cdn/{5N5C7DKP.js → ITCWEBSJ.js} +1 -1
  85. package/dist/cdn/{GYG54VKW.js → JG37RG2G.js} +2 -2
  86. package/dist/cdn/{W3COIX6T.js → JKGDIJPG.js} +2 -2
  87. package/dist/cdn/{YKWXE4GN.js → JOUBEOSO.js} +2 -2
  88. package/dist/cdn/{5GBKOX65.js → JYEFHN7Z.js} +2 -2
  89. package/dist/cdn/{YUCCGT43.js → K26YWXLD.js} +2 -2
  90. package/dist/cdn/{3PIZXUG3.js → K6MS3E2R.js} +2 -2
  91. package/dist/cdn/{CP3KJSL2.js → KBCPRU4Z.js} +2 -2
  92. package/dist/cdn/{RXJJWENO.js → KPJVVECD.js} +2 -2
  93. package/dist/cdn/{L4DW72EP.js → KSPNWRSV.js} +2 -2
  94. package/dist/cdn/{QLDSQ5SE.js → KZFIELFC.js} +2 -2
  95. package/dist/cdn/{YGDD5LIX.js → L35RNBSH.js} +2 -2
  96. package/dist/cdn/{PLCJMVJA.js → L7OI5OIK.js} +2 -2
  97. package/dist/cdn/LLWPAR7D.js +4 -0
  98. package/dist/cdn/{LIURMSOT.js → LT5TDMRZ.js} +2 -2
  99. package/dist/cdn/{Q6BVWC65.js → M5RKT3WV.js} +2 -2
  100. package/dist/cdn/{JUHK3HPP.js → M7LJQ66J.js} +2 -2
  101. package/dist/cdn/{OVPFAZYL.js → M7RBZN6X.js} +2 -2
  102. package/dist/cdn/{SH4427MT.js → MFPL4X5O.js} +2 -2
  103. package/dist/cdn/{DUL42XKF.js → MPAXXSKV.js} +2 -2
  104. package/dist/cdn/{2JDHERCD.js → N2BWJ2K5.js} +2 -2
  105. package/dist/cdn/{7PVEGYFL.js → N2ECFCRZ.js} +2 -2
  106. package/dist/cdn/{CMHBZFT5.js → N3S5PSVC.js} +2 -2
  107. package/dist/cdn/{OSK3YMZH.js → NBBJZLJB.js} +2 -2
  108. package/dist/cdn/{5R234A2A.js → NBTAUO6U.js} +2 -2
  109. package/dist/cdn/{DZ2CFN6U.js → NBY2NQNN.js} +2 -2
  110. package/dist/cdn/{G5Y42E6G.js → NPS3T573.js} +2 -2
  111. package/dist/cdn/{4N7DHGMM.js → NWF6QSYC.js} +2 -2
  112. package/dist/cdn/{BG2ELZHD.js → O64TQJJM.js} +2 -2
  113. package/dist/cdn/{2IOCTKMQ.js → OA2G467U.js} +2 -2
  114. package/dist/cdn/{TUZ5QHO6.js → OOIPCAOB.js} +2 -2
  115. package/dist/cdn/{ATODSF4O.js → OWJJJKZP.js} +2 -2
  116. package/dist/cdn/{N62FLX7R.js → P4ZT6D6Z.js} +2 -2
  117. package/dist/cdn/{PK6CHSAR.js → PB3MDLA7.js} +22 -22
  118. package/dist/cdn/{NWUDV6HP.js → PFOQUD3B.js} +2 -2
  119. package/dist/cdn/{TWAL6Y7B.js → PHAPAII7.js} +2 -2
  120. package/dist/cdn/{CQDC3PO6.js → PLO7SE4J.js} +2 -2
  121. package/dist/cdn/{7Z5LET4Y.js → PSBVJK4Z.js} +2 -2
  122. package/dist/cdn/{ILNEQOAX.js → PUOUHCTY.js} +2 -2
  123. package/dist/cdn/{T4UBFII4.js → PZUTQPPY.js} +2 -2
  124. package/dist/cdn/{QUJYXLVB.js → QAJJU7QP.js} +2 -2
  125. package/dist/cdn/{EWHCIRYF.js → QBL3UPZR.js} +2 -2
  126. package/dist/cdn/{F7YYAMUU.js → QLZNCYOZ.js} +2 -2
  127. package/dist/cdn/{CKCN3JHH.js → QPFLS3AQ.js} +1 -1
  128. package/dist/cdn/{Y3A3TWK7.js → QUXJ57OF.js} +2 -2
  129. package/dist/cdn/{HSWLCEUB.js → QY7LSE3N.js} +2 -2
  130. package/dist/cdn/{KAZFE6FS.js → R3C6P3RC.js} +2 -2
  131. package/dist/cdn/{5ZLF7JQZ.js → R3LWLMP6.js} +2 -2
  132. package/dist/cdn/{UR3AVAN7.js → RDCZFADG.js} +2 -2
  133. package/dist/cdn/{CZZSM6ZJ.js → RFVZAQDL.js} +2 -2
  134. package/dist/cdn/{JLOZBX7U.js → RKHPJ7AF.js} +2 -2
  135. package/dist/cdn/{4OBS6CEJ.js → RTMMET4E.js} +2 -2
  136. package/dist/cdn/{VQYIB2EB.js → RYJ7A7YX.js} +2 -2
  137. package/dist/cdn/{Z67YNT7U.js → RZG52PS7.js} +2 -2
  138. package/dist/cdn/{7M3J3WZS.js → SJEH3N3W.js} +1 -1
  139. package/dist/cdn/SPWGHAH2.js +4 -0
  140. package/dist/cdn/{CQWZIIG7.js → SRAQE5W2.js} +2 -2
  141. package/dist/cdn/{KQOE3JLD.js → SSPZVCMP.js} +2 -2
  142. package/dist/cdn/{GZ7P5V6E.js → TCQK2O2S.js} +2 -2
  143. package/dist/cdn/{J2MAFP55.js → TGDYAMSU.js} +2 -2
  144. package/dist/cdn/{GYMISDI2.js → TN2UUSQU.js} +2 -2
  145. package/dist/cdn/{LIWPG4AG.js → TRWBAFGR.js} +2 -2
  146. package/dist/cdn/{TAHOEKTQ.js → TXFFQY7I.js} +2 -2
  147. package/dist/cdn/{NNHNPVPO.js → U4CL64JW.js} +2 -2
  148. package/dist/cdn/{2JK7N3BH.js → UANEXLMS.js} +2 -2
  149. package/dist/cdn/{475H3RS3.js → UIKNVLZD.js} +2 -2
  150. package/dist/cdn/{F4I637ID.js → UNWSFPLH.js} +2 -2
  151. package/dist/cdn/{6CHHLGF6.js → UQJY6IZ5.js} +2 -2
  152. package/dist/cdn/{LJZ2DQIE.js → US2LTQ7F.js} +2 -2
  153. package/dist/cdn/{YPVB7IJL.js → UXEBRSXH.js} +2 -2
  154. package/dist/cdn/{2PHYJELF.js → UZ6YBHKR.js} +2 -2
  155. package/dist/cdn/{Q4PONE7B.js → V62HTJ6V.js} +2 -2
  156. package/dist/cdn/{22XV76FC.js → VDCPP4ES.js} +2 -2
  157. package/dist/cdn/{KAFVVLGB.js → VE5GYXRJ.js} +2 -2
  158. package/dist/cdn/{BYGY7YHS.js → VEAB34K6.js} +2 -2
  159. package/dist/cdn/{Z5GCTUOD.js → VIAOAJZA.js} +2 -2
  160. package/dist/cdn/{HGMBFB6Z.js → VJ4PNOB6.js} +2 -2
  161. package/dist/cdn/{BNPIOXKL.js → VWITDFAD.js} +2 -2
  162. package/dist/cdn/{K3EIIQ4F.js → VYGEXPQ5.js} +2 -2
  163. package/dist/cdn/{22XKXG4D.js → W2WTR2CG.js} +10 -10
  164. package/dist/cdn/{YTPQ2Z6Q.js → W6RFHQ5M.js} +2 -2
  165. package/dist/cdn/{5GBNQRJ3.js → WJVEO5EL.js} +1 -1
  166. package/dist/cdn/{GOMY2IJY.js → X3TVW4PH.js} +2 -2
  167. package/dist/cdn/{2IW5JBCK.js → X5DME67X.js} +2 -2
  168. package/dist/cdn/{JWL3SQAO.js → XLIN2VZC.js} +2 -2
  169. package/dist/cdn/{7CVXID5S.js → XMFSPVCS.js} +2 -2
  170. package/dist/cdn/{PXGIDPE6.js → XRY2WFGO.js} +2 -2
  171. package/dist/cdn/{FIZFQTAQ.js → Y3DVEVAY.js} +2 -2
  172. package/dist/cdn/{CX62EGIU.js → Y533MDJH.js} +2 -2
  173. package/dist/cdn/{53VWWVCC.js → YFCS7VLQ.js} +2 -2
  174. package/dist/cdn/{Q2XOAXLO.js → YG6SI4VJ.js} +2 -2
  175. package/dist/cdn/{L3LNQPT5.js → YQXWHCNZ.js} +2 -2
  176. package/dist/cdn/{PWNIKZ5G.js → YVBPSJ5D.js} +2 -2
  177. package/dist/cdn/{MXF3EMAW.js → ZFMQ4TU7.js} +2 -2
  178. package/dist/cdn/{4647LLWJ.js → ZGGJWLX5.js} +2 -2
  179. package/dist/cdn/{MM422GVU.js → ZGZ24HVQ.js} +2 -2
  180. package/dist/cdn/{UBHQ3YR3.js → ZWI7YKTT.js} +2 -2
  181. package/dist/cdn/index.js +2 -2
  182. package/dist/chart-rendering/common/data/utils/summarize-data/index.d.ts +37 -1
  183. package/dist/chart-rendering/next/chart-library-elements/axes/index.d.ts +2 -0
  184. package/dist/chart-rendering/next/chart-library-elements/series/bar-chart/index.d.ts +3 -0
  185. package/dist/chart-rendering/next/chart-library-elements/series/index.d.ts +4 -0
  186. package/dist/chart-rendering/next/chart-library-elements/series/interfaces.d.ts +1 -0
  187. package/dist/chart-rendering/next/chart-library-elements/series/line-chart/index.d.ts +1 -0
  188. package/dist/chart-rendering/next/chart-library-elements/series/radar-chart/index.d.ts +1 -0
  189. package/dist/chart-rendering/next/interfaces.d.ts +1 -0
  190. package/dist/chunks/action-bar-utils.js +13 -13
  191. package/dist/chunks/axis-model-wrapper.js +1 -1
  192. package/dist/chunks/bar-chart-model.js +4 -4
  193. package/dist/chunks/bar-chart-series.js +1 -1
  194. package/dist/chunks/baseline-stacking.js +15 -15
  195. package/dist/chunks/bg_BG.js +1 -1
  196. package/dist/chunks/bg_BG2.js +1 -1
  197. package/dist/chunks/box-plot-data.js +15 -15
  198. package/dist/chunks/box-plot-model.js +4 -4
  199. package/dist/chunks/chart-ui-utils.js +1 -1
  200. package/dist/chunks/chart-ui-utils2.js +20 -20
  201. package/dist/chunks/combo-bar-line-chart-model.js +5 -5
  202. package/dist/chunks/common.js +1 -1
  203. package/dist/chunks/config-update.js +17 -17
  204. package/dist/chunks/data.js +36 -36
  205. package/dist/chunks/default.js +1 -1
  206. package/dist/chunks/gauge-model.js +12 -12
  207. package/dist/chunks/heat-chart-model.js +78 -51
  208. package/dist/chunks/histogram-data.js +4 -4
  209. package/dist/chunks/histogram-model.js +2 -2
  210. package/dist/chunks/index.js +1553 -1513
  211. package/dist/chunks/index2.js +12 -12
  212. package/dist/chunks/index3.js +1 -1
  213. package/dist/chunks/index4.js +1 -1
  214. package/dist/chunks/interfaces.js +1 -1
  215. package/dist/chunks/line-chart-model.js +2 -2
  216. package/dist/chunks/model-with-baseline-stacking.js +1 -1
  217. package/dist/chunks/model-with-data-labels.js +7 -7
  218. package/dist/chunks/model-with-multi-axes.js +25 -25
  219. package/dist/chunks/model-with-rotation.js +4 -4
  220. package/dist/chunks/pie-chart-data.js +17 -17
  221. package/dist/chunks/pie-chart-model.js +10 -10
  222. package/dist/chunks/popover-ui-utils.js +1 -1
  223. package/dist/chunks/radar-chart-model.js +2 -2
  224. package/dist/chunks/resource.js +1 -1
  225. package/dist/chunks/rest-js-object-literals.js +1 -1
  226. package/dist/chunks/runtime.js +1 -1
  227. package/dist/chunks/scatterplot-model.js +8 -8
  228. package/dist/chunks/serial-chart-data.js +88 -88
  229. package/dist/chunks/serial-chart-model.js +20 -20
  230. package/dist/chunks/series-types.js +1 -1
  231. package/dist/chunks/series.js +4 -4
  232. package/dist/chunks/sk_SK.js +1 -1
  233. package/dist/chunks/store.js +1 -1
  234. package/dist/chunks/type-guards.js +1 -1
  235. package/dist/chunks/useT9n.js +1 -1
  236. package/dist/chunks/web-component-utils.js +51 -51
  237. package/dist/components/arcgis-chart/customElement.js +6007 -5965
  238. package/dist/components/arcgis-charts-action-bar/customElement.js +2 -2
  239. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  240. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  241. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
  242. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +10 -10
  243. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +4 -4
  244. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +7 -7
  245. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
  246. package/dist/components/arcgis-charts-config-box-plot/customElement.js +2 -2
  247. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +2 -2
  248. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +2 -2
  249. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
  250. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +2 -2
  251. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  252. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  253. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  254. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  255. package/dist/components/arcgis-charts-config-create-flow/customElement.js +6 -6
  256. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  257. package/dist/components/arcgis-charts-config-font-style/customElement.js +2 -2
  258. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  259. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  260. package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
  261. package/dist/components/arcgis-charts-config-guide/customElement.js +14 -14
  262. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  263. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  264. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  265. package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
  266. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +16 -16
  267. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +2 -2
  268. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  269. package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
  270. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
  271. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +4 -4
  272. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
  273. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +5 -5
  274. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
  275. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  276. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +2 -2
  277. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +5 -5
  278. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
  279. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +2 -2
  280. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +2 -2
  281. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
  282. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +2 -2
  283. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +2 -2
  284. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  285. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  286. package/dist/docs/api.json +2 -2
  287. package/dist/docs/docs.json +2 -2
  288. package/dist/docs/web-types.json +1 -1
  289. package/dist/index.js +224 -222
  290. package/dist/json-schema/index.d.ts +5 -0
  291. package/dist/loader.js +1 -1
  292. package/dist/model/heat-chart-model/heat-chart-model.d.ts +14 -1
  293. package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +11 -0
  294. package/dist/model.js +1 -1
  295. package/dist/spec/web-chart.d.ts +6 -1
  296. package/dist/utils/chart-config/converter/index.d.ts +3 -3
  297. package/dist/utils/chart-config/utils/index.d.ts +15 -1
  298. package/dist/utils/data/interfaces.d.ts +1 -0
  299. package/package.json +3 -3
  300. package/dist/cdn/GPVFP2NK.js +0 -4
  301. package/dist/cdn/R73WOWO3.js +0 -4
  302. package/dist/cdn/SGR43NIV.js +0 -4
@@ -1,25 +1,25 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.53 */
4
- import{A as Ye,B as Rr,a as la,f as Mr,i as Lo,j as dr,l as Do,o as On,q as Se,r as cr,s as ua,t as qr,u as ge,v as Pe,w as xe}from"./7QYX3NID.js";import{a as qo,b as An,c as Nt,d as mt}from"./5N5C7DKP.js";import{a as g,b as j,c as He,e as $i,f as Dt,h as We,i as da,j as No,k as H,l as Kt,n as ft,o as $e,p as Bo,q as ur,s as $o,t as Mo,v as at,w as X}from"./6A5ADDA7.js";import{F as It}from"./6OLATD3E.js";import{b as J,d as Eo}from"./XB7XUYRB.js";export default $arcgis.t(([Hs,en,Qs,pm,hm,fm,Vu,mm,ym,Wu,gm,Zs,bm,vm,xi,{substitute:qe},Zd,Sm,Jd,wm])=>{var Ho=J((qx,Nn)=>{function Th(t,e){var r=e&&e.cache?e.cache:Dh,a=e&&e.serializer?e.serializer:Lh,i=e&&e.strategy?e.strategy:Oh;return i(t,{cache:r,serializer:a})}function Ph(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Uo(t,e,r,a){var i=Ph(a)?a:r(a),n=e.get(i);return typeof n>"u"&&(n=t.call(this,a),e.set(i,n)),n}function Go(t,e,r){var a=Array.prototype.slice.call(arguments,3),i=r(a),n=e.get(i);return typeof n>"u"&&(n=t.apply(this,a),e.set(i,n)),n}function Dn(t,e,r,a,i){return r.bind(e,t,a,i)}function Oh(t,e){var r=t.length===1?Uo:Go;return Dn(t,this,r,e.cache.create(),e.serializer)}function Ah(t,e){var r=Go;return Dn(t,this,r,e.cache.create(),e.serializer)}function Eh(t,e){var r=Uo;return Dn(t,this,r,e.cache.create(),e.serializer)}function Lh(){return JSON.stringify(arguments)}function ga(){this.cache=Object.create(null)}ga.prototype.has=function(t){return t in this.cache};ga.prototype.get=function(t){return this.cache[t]};ga.prototype.set=function(t,e){this.cache[t]=e};var Dh={create:function(){return new ga}};Nn.exports=Th;Nn.exports.strategies={variadic:Ah,monadic:Eh}});var Zo=J((ba,Qo)=>{(function(t,e){typeof ba=="object"&&typeof Qo<"u"?e(ba):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(ba,function(t){"use strict";function e(){for(var I=arguments.length,w=Array(I),T=0;T<I;T++)w[T]=arguments[T];if(w.length>1){w[0]=w[0].slice(0,-1);for(var D=w.length-1,B=1;B<D;++B)w[B]=w[B].slice(1,-1);return w[D]=w[D].slice(1),w.join("")}else return w[0]}function r(I){return"(?:"+I+")"}function a(I){return I===void 0?"undefined":I===null?"null":Object.prototype.toString.call(I).split(" ").pop().split("]").shift().toLowerCase()}function i(I){return I.toUpperCase()}function n(I){return I!=null?I instanceof Array?I:typeof I.length!="number"||I.split||I.setInterval||I.call?[I]:Array.prototype.slice.call(I):[]}function s(I,w){var T=I;if(w)for(var D in w)T[D]=w[D];return T}function o(I){var w="[A-Za-z]",T="[\\x0D]",D="[0-9]",B="[\\x22]",W=e(D,"[A-Fa-f]"),ee="[\\x0A]",de="[\\x20]",fe=r(r("%[EFef]"+W+"%"+W+W+"%"+W+W)+"|"+r("%[89A-Fa-f]"+W+"%"+W+W)+"|"+r("%"+W+W)),_e="[\\:\\/\\?\\#\\[\\]\\@]",se="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Le=e(_e,se),Ve=I?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Te=I?"[\\uE000-\\uF8FF]":"[]",ue=e(w,D,"[\\-\\.\\_\\~]",Ve),De=r(w+e(w,D,"[\\+\\-\\.]")+"*"),be=r(r(fe+"|"+e(ue,se,"[\\:]"))+"*"),Nr=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("[1-9]"+D)+"|"+D),pt=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("0?[1-9]"+D)+"|0?0?"+D),xt=r(pt+"\\."+pt+"\\."+pt+"\\."+pt),ve=r(W+"{1,4}"),ht=r(r(ve+"\\:"+ve)+"|"+xt),Ct=r(r(ve+"\\:")+"{6}"+ht),zt=r("\\:\\:"+r(ve+"\\:")+"{5}"+ht),Br=r(r(ve)+"?\\:\\:"+r(ve+"\\:")+"{4}"+ht),Qt=r(r(r(ve+"\\:")+"{0,1}"+ve)+"?\\:\\:"+r(ve+"\\:")+"{3}"+ht),Ei=r(r(r(ve+"\\:")+"{0,2}"+ve)+"?\\:\\:"+r(ve+"\\:")+"{2}"+ht),na=r(r(r(ve+"\\:")+"{0,3}"+ve)+"?\\:\\:"+ve+"\\:"+ht),sa=r(r(r(ve+"\\:")+"{0,4}"+ve)+"?\\:\\:"+ht),ei=r(r(r(ve+"\\:")+"{0,5}"+ve)+"?\\:\\:"+ve),ti=r(r(r(ve+"\\:")+"{0,6}"+ve)+"?\\:\\:"),Zt=r([Ct,zt,Br,Qt,Ei,na,sa,ei,ti].join("|")),ri=r(r(ue+"|"+fe)+"+"),Tn=r(Zt+"\\%25"+ri),$r=r(Zt+r("\\%25|\\%(?!"+W+"{2})")+ri),ph=r("[vV]"+W+"+\\."+e(ue,se,"[\\:]")+"+"),hh=r("\\["+r($r+"|"+Zt+"|"+ph)+"\\]"),To=r(r(fe+"|"+e(ue,se))+"*"),Li=r(hh+"|"+xt+"(?!"+To+")|"+To),Di=r(D+"*"),Po=r(r(be+"@")+"?"+Li+r("\\:"+Di)+"?"),Ni=r(fe+"|"+e(ue,se,"[\\:\\@]")),fh=r(Ni+"*"),Oo=r(Ni+"+"),mh=r(r(fe+"|"+e(ue,se,"[\\@]"))+"+"),Jt=r(r("\\/"+fh)+"*"),ii=r("\\/"+r(Oo+Jt)+"?"),Pn=r(mh+Jt),oa=r(Oo+Jt),ai="(?!"+Ni+")",Xw=r(Jt+"|"+ii+"|"+Pn+"|"+oa+"|"+ai),ni=r(r(Ni+"|"+e("[\\/\\?]",Te))+"*"),Bi=r(r(Ni+"|[\\/\\?]")+"*"),Ao=r(r("\\/\\/"+Po+Jt)+"|"+ii+"|"+oa+"|"+ai),yh=r(De+"\\:"+Ao+r("\\?"+ni)+"?"+r("\\#"+Bi)+"?"),gh=r(r("\\/\\/"+Po+Jt)+"|"+ii+"|"+Pn+"|"+ai),bh=r(gh+r("\\?"+ni)+"?"+r("\\#"+Bi)+"?"),ex=r(yh+"|"+bh),tx=r(De+"\\:"+Ao+r("\\?"+ni)+"?"),rx="^("+De+")\\:"+r(r("\\/\\/("+r("("+be+")@")+"?("+Li+")"+r("\\:("+Di+")")+"?)")+"?("+Jt+"|"+ii+"|"+oa+"|"+ai+")")+r("\\?("+ni+")")+"?"+r("\\#("+Bi+")")+"?$",ix="^(){0}"+r(r("\\/\\/("+r("("+be+")@")+"?("+Li+")"+r("\\:("+Di+")")+"?)")+"?("+Jt+"|"+ii+"|"+Pn+"|"+ai+")")+r("\\?("+ni+")")+"?"+r("\\#("+Bi+")")+"?$",ax="^("+De+")\\:"+r(r("\\/\\/("+r("("+be+")@")+"?("+Li+")"+r("\\:("+Di+")")+"?)")+"?("+Jt+"|"+ii+"|"+oa+"|"+ai+")")+r("\\?("+ni+")")+"?$",nx="^"+r("\\#("+Bi+")")+"?$",sx="^"+r("("+be+")@")+"?("+Li+")"+r("\\:("+Di+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",w,D,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",ue,se),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",ue,se),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",ue,se),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",ue,se),"g"),NOT_QUERY:new RegExp(e("[^\\%]",ue,se,"[\\:\\@\\/\\?]",Te),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",ue,se,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",ue,se),"g"),UNRESERVED:new RegExp(ue,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",ue,Le),"g"),PCT_ENCODED:new RegExp(fe,"g"),IPV4ADDRESS:new RegExp("^("+xt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Zt+")"+r(r("\\%25|\\%(?!"+W+"{2})")+"("+ri+")")+"?\\]?$")}}var l=o(!1),d=o(!0),u=function(){function I(w,T){var D=[],B=!0,W=!1,ee=void 0;try{for(var de=w[Symbol.iterator](),fe;!(B=(fe=de.next()).done)&&(D.push(fe.value),!(T&&D.length===T));B=!0);}catch(_e){W=!0,ee=_e}finally{try{!B&&de.return&&de.return()}finally{if(W)throw ee}}return D}return function(w,T){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return I(w,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(I){if(Array.isArray(I)){for(var w=0,T=Array(I.length);w<I.length;w++)T[w]=I[w];return T}else return Array.from(I)},h=2147483647,p=36,f=1,m=26,y=38,b=700,v=72,S=128,C="-",F=/^xn--/,A=/[^\0-\x7E]/,$=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=p-f,N=Math.floor,M=String.fromCharCode;function R(I){throw new RangeError(E[I])}function q(I,w){for(var T=[],D=I.length;D--;)T[D]=w(I[D]);return T}function L(I,w){var T=I.split("@"),D="";T.length>1&&(D=T[0]+"@",I=T[1]),I=I.replace($,".");var B=I.split("."),W=q(B,w).join(".");return D+W}function k(I){for(var w=[],T=0,D=I.length;T<D;){var B=I.charCodeAt(T++);if(B>=55296&&B<=56319&&T<D){var W=I.charCodeAt(T++);(W&64512)==56320?w.push(((B&1023)<<10)+(W&1023)+65536):(w.push(B),T--)}else w.push(B)}return w}var V=function(w){return String.fromCodePoint.apply(String,c(w))},Q=function(w){return w-48<10?w-22:w-65<26?w-65:w-97<26?w-97:p},Z=function(w,T){return w+22+75*(w<26)-((T!=0)<<5)},G=function(w,T,D){var B=0;for(w=D?N(w/b):w>>1,w+=N(w/T);w>P*m>>1;B+=p)w=N(w/P);return N(B+(P+1)*w/(w+y))},z=function(w){var T=[],D=w.length,B=0,W=S,ee=v,de=w.lastIndexOf(C);de<0&&(de=0);for(var fe=0;fe<de;++fe)w.charCodeAt(fe)>=128&&R("not-basic"),T.push(w.charCodeAt(fe));for(var _e=de>0?de+1:0;_e<D;){for(var se=B,Le=1,Ve=p;;Ve+=p){_e>=D&&R("invalid-input");var Te=Q(w.charCodeAt(_e++));(Te>=p||Te>N((h-B)/Le))&&R("overflow"),B+=Te*Le;var ue=Ve<=ee?f:Ve>=ee+m?m:Ve-ee;if(Te<ue)break;var De=p-ue;Le>N(h/De)&&R("overflow"),Le*=De}var be=T.length+1;ee=G(B-se,be,se==0),N(B/be)>h-W&&R("overflow"),W+=N(B/be),B%=be,T.splice(B++,0,W)}return String.fromCodePoint.apply(String,T)},ie=function(w){var T=[];w=k(w);var D=w.length,B=S,W=0,ee=v,de=!0,fe=!1,_e=void 0;try{for(var se=w[Symbol.iterator](),Le;!(de=(Le=se.next()).done);de=!0){var Ve=Le.value;Ve<128&&T.push(M(Ve))}}catch($r){fe=!0,_e=$r}finally{try{!de&&se.return&&se.return()}finally{if(fe)throw _e}}var Te=T.length,ue=Te;for(Te&&T.push(C);ue<D;){var De=h,be=!0,Nr=!1,pt=void 0;try{for(var xt=w[Symbol.iterator](),ve;!(be=(ve=xt.next()).done);be=!0){var ht=ve.value;ht>=B&&ht<De&&(De=ht)}}catch($r){Nr=!0,pt=$r}finally{try{!be&&xt.return&&xt.return()}finally{if(Nr)throw pt}}var Ct=ue+1;De-B>N((h-W)/Ct)&&R("overflow"),W+=(De-B)*Ct,B=De;var zt=!0,Br=!1,Qt=void 0;try{for(var Ei=w[Symbol.iterator](),na;!(zt=(na=Ei.next()).done);zt=!0){var sa=na.value;if(sa<B&&++W>h&&R("overflow"),sa==B){for(var ei=W,ti=p;;ti+=p){var Zt=ti<=ee?f:ti>=ee+m?m:ti-ee;if(ei<Zt)break;var ri=ei-Zt,Tn=p-Zt;T.push(M(Z(Zt+ri%Tn,0))),ei=N(ri/Tn)}T.push(M(Z(ei,0))),ee=G(W,Ct,ue==Te),W=0,++ue}}}catch($r){Br=!0,Qt=$r}finally{try{!zt&&Ei.return&&Ei.return()}finally{if(Br)throw Qt}}++W,++B}return T.join("")},Ae=function(w){return L(w,function(T){return F.test(T)?z(T.slice(4).toLowerCase()):T})},Ee=function(w){return L(w,function(T){return A.test(T)?"xn--"+ie(T):T})},te={version:"2.1.0",ucs2:{decode:k,encode:V},decode:z,encode:ie,toASCII:Ee,toUnicode:Ae},Ce={};function Be(I){var w=I.charCodeAt(0),T=void 0;return w<16?T="%0"+w.toString(16).toUpperCase():w<128?T="%"+w.toString(16).toUpperCase():w<2048?T="%"+(w>>6|192).toString(16).toUpperCase()+"%"+(w&63|128).toString(16).toUpperCase():T="%"+(w>>12|224).toString(16).toUpperCase()+"%"+(w>>6&63|128).toString(16).toUpperCase()+"%"+(w&63|128).toString(16).toUpperCase(),T}function je(I){for(var w="",T=0,D=I.length;T<D;){var B=parseInt(I.substr(T+1,2),16);if(B<128)w+=String.fromCharCode(B),T+=3;else if(B>=194&&B<224){if(D-T>=6){var W=parseInt(I.substr(T+4,2),16);w+=String.fromCharCode((B&31)<<6|W&63)}else w+=I.substr(T,6);T+=6}else if(B>=224){if(D-T>=9){var ee=parseInt(I.substr(T+4,2),16),de=parseInt(I.substr(T+7,2),16);w+=String.fromCharCode((B&15)<<12|(ee&63)<<6|de&63)}else w+=I.substr(T,9);T+=9}else w+=I.substr(T,3),T+=3}return w}function ut(I,w){function T(D){var B=je(D);return B.match(w.UNRESERVED)?B:D}return I.scheme&&(I.scheme=String(I.scheme).replace(w.PCT_ENCODED,T).toLowerCase().replace(w.NOT_SCHEME,"")),I.userinfo!==void 0&&(I.userinfo=String(I.userinfo).replace(w.PCT_ENCODED,T).replace(w.NOT_USERINFO,Be).replace(w.PCT_ENCODED,i)),I.host!==void 0&&(I.host=String(I.host).replace(w.PCT_ENCODED,T).toLowerCase().replace(w.NOT_HOST,Be).replace(w.PCT_ENCODED,i)),I.path!==void 0&&(I.path=String(I.path).replace(w.PCT_ENCODED,T).replace(I.scheme?w.NOT_PATH:w.NOT_PATH_NOSCHEME,Be).replace(w.PCT_ENCODED,i)),I.query!==void 0&&(I.query=String(I.query).replace(w.PCT_ENCODED,T).replace(w.NOT_QUERY,Be).replace(w.PCT_ENCODED,i)),I.fragment!==void 0&&(I.fragment=String(I.fragment).replace(w.PCT_ENCODED,T).replace(w.NOT_FRAGMENT,Be).replace(w.PCT_ENCODED,i)),I}function rt(I){return I.replace(/^0*(.*)/,"$1")||"0"}function Ie(I,w){var T=I.match(w.IPV4ADDRESS)||[],D=u(T,2),B=D[1];return B?B.split(".").map(rt).join("."):I}function Fe(I,w){var T=I.match(w.IPV6ADDRESS)||[],D=u(T,3),B=D[1],W=D[2];if(B){for(var ee=B.toLowerCase().split("::").reverse(),de=u(ee,2),fe=de[0],_e=de[1],se=_e?_e.split(":").map(rt):[],Le=fe.split(":").map(rt),Ve=w.IPV4ADDRESS.test(Le[Le.length-1]),Te=Ve?7:8,ue=Le.length-Te,De=Array(Te),be=0;be<Te;++be)De[be]=se[be]||Le[ue+be]||"";Ve&&(De[Te-1]=Ie(De[Te-1],w));var Nr=De.reduce(function(Ct,zt,Br){if(!zt||zt==="0"){var Qt=Ct[Ct.length-1];Qt&&Qt.index+Qt.length===Br?Qt.length++:Ct.push({index:Br,length:1})}return Ct},[]),pt=Nr.sort(function(Ct,zt){return zt.length-Ct.length})[0],xt=void 0;if(pt&&pt.length>1){var ve=De.slice(0,pt.index),ht=De.slice(pt.index+pt.length);xt=ve.join(":")+"::"+ht.join(":")}else xt=De.join(":");return W&&(xt+="%"+W),xt}else return I}var Er=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Ke="".match(/(){0}/)[1]===void 0;function pe(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T={},D=w.iri!==!1?d:l;w.reference==="suffix"&&(I=(w.scheme?w.scheme+":":"")+"//"+I);var B=I.match(Er);if(B){Ke?(T.scheme=B[1],T.userinfo=B[3],T.host=B[4],T.port=parseInt(B[5],10),T.path=B[6]||"",T.query=B[7],T.fragment=B[8],isNaN(T.port)&&(T.port=B[5])):(T.scheme=B[1]||void 0,T.userinfo=I.indexOf("@")!==-1?B[3]:void 0,T.host=I.indexOf("//")!==-1?B[4]:void 0,T.port=parseInt(B[5],10),T.path=B[6]||"",T.query=I.indexOf("?")!==-1?B[7]:void 0,T.fragment=I.indexOf("#")!==-1?B[8]:void 0,isNaN(T.port)&&(T.port=I.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?B[4]:void 0)),T.host&&(T.host=Fe(Ie(T.host,D),D)),T.scheme===void 0&&T.userinfo===void 0&&T.host===void 0&&T.port===void 0&&!T.path&&T.query===void 0?T.reference="same-document":T.scheme===void 0?T.reference="relative":T.fragment===void 0?T.reference="absolute":T.reference="uri",w.reference&&w.reference!=="suffix"&&w.reference!==T.reference&&(T.error=T.error||"URI is not a "+w.reference+" reference.");var W=Ce[(w.scheme||T.scheme||"").toLowerCase()];if(!w.unicodeSupport&&(!W||!W.unicodeSupport)){if(T.host&&(w.domainHost||W&&W.domainHost))try{T.host=te.toASCII(T.host.replace(D.PCT_ENCODED,je).toLowerCase())}catch(ee){T.error=T.error||"Host's domain name can not be converted to ASCII via punycode: "+ee}ut(T,l)}else ut(T,D);W&&W.parse&&W.parse(T,w)}else T.error=T.error||"URI can not be parsed.";return T}function lr(I,w){var T=w.iri!==!1?d:l,D=[];return I.userinfo!==void 0&&(D.push(I.userinfo),D.push("@")),I.host!==void 0&&D.push(Fe(Ie(String(I.host),T),T).replace(T.IPV6ADDRESS,function(B,W,ee){return"["+W+(ee?"%25"+ee:"")+"]"})),(typeof I.port=="number"||typeof I.port=="string")&&(D.push(":"),D.push(String(I.port))),D.length?D.join(""):void 0}var Ht=/^\.\.?\//,Lr=/^\/\.(\/|$)/,Dr=/^\/\.\.(\/|$)/,Je=/^\/?(?:.|\n)*?(?=\/|$)/;function wt(I){for(var w=[];I.length;)if(I.match(Ht))I=I.replace(Ht,"");else if(I.match(Lr))I=I.replace(Lr,"/");else if(I.match(Dr))I=I.replace(Dr,"/"),w.pop();else if(I==="."||I==="..")I="";else{var T=I.match(Je);if(T){var D=T[0];I=I.slice(D.length),w.push(D)}else throw new Error("Unexpected dot segment condition")}return w.join("")}function it(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=w.iri?d:l,D=[],B=Ce[(w.scheme||I.scheme||"").toLowerCase()];if(B&&B.serialize&&B.serialize(I,w),I.host&&!T.IPV6ADDRESS.test(I.host)){if(w.domainHost||B&&B.domainHost)try{I.host=w.iri?te.toUnicode(I.host):te.toASCII(I.host.replace(T.PCT_ENCODED,je).toLowerCase())}catch(de){I.error=I.error||"Host's domain name can not be converted to "+(w.iri?"Unicode":"ASCII")+" via punycode: "+de}}ut(I,T),w.reference!=="suffix"&&I.scheme&&(D.push(I.scheme),D.push(":"));var W=lr(I,w);if(W!==void 0&&(w.reference!=="suffix"&&D.push("//"),D.push(W),I.path&&I.path.charAt(0)!=="/"&&D.push("/")),I.path!==void 0){var ee=I.path;!w.absolutePath&&(!B||!B.absolutePath)&&(ee=wt(ee)),W===void 0&&(ee=ee.replace(/^\/\//,"/%2F")),D.push(ee)}return I.query!==void 0&&(D.push("?"),D.push(I.query)),I.fragment!==void 0&&(D.push("#"),D.push(I.fragment)),D.join("")}function et(I,w){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments[3],B={};return D||(I=pe(it(I,T),T),w=pe(it(w,T),T)),T=T||{},!T.tolerant&&w.scheme?(B.scheme=w.scheme,B.userinfo=w.userinfo,B.host=w.host,B.port=w.port,B.path=wt(w.path||""),B.query=w.query):(w.userinfo!==void 0||w.host!==void 0||w.port!==void 0?(B.userinfo=w.userinfo,B.host=w.host,B.port=w.port,B.path=wt(w.path||""),B.query=w.query):(w.path?(w.path.charAt(0)==="/"?B.path=wt(w.path):((I.userinfo!==void 0||I.host!==void 0||I.port!==void 0)&&!I.path?B.path="/"+w.path:I.path?B.path=I.path.slice(0,I.path.lastIndexOf("/")+1)+w.path:B.path=w.path,B.path=wt(B.path)),B.query=w.query):(B.path=I.path,w.query!==void 0?B.query=w.query:B.query=I.query),B.userinfo=I.userinfo,B.host=I.host,B.port=I.port),B.scheme=I.scheme),B.fragment=w.fragment,B}function Vt(I,w,T){var D=s({scheme:"null"},T);return it(et(pe(I,D),pe(w,D),D,!0),D)}function ct(I,w){return typeof I=="string"?I=it(pe(I,w),w):a(I)==="object"&&(I=pe(it(I,w),w)),I}function aa(I,w,T){return typeof I=="string"?I=it(pe(I,T),T):a(I)==="object"&&(I=it(I,T)),typeof w=="string"?w=it(pe(w,T),T):a(w)==="object"&&(w=it(w,T)),I===w}function In(I,w){return I&&I.toString().replace(!w||!w.iri?l.ESCAPE:d.ESCAPE,Be)}function Lt(I,w){return I&&I.toString().replace(!w||!w.iri?l.PCT_ENCODED:d.PCT_ENCODED,je)}var Oi={scheme:"http",domainHost:!0,parse:function(w,T){return w.host||(w.error=w.error||"HTTP URIs must have a host."),w},serialize:function(w,T){var D=String(w.scheme).toLowerCase()==="https";return(w.port===(D?443:80)||w.port==="")&&(w.port=void 0),w.path||(w.path="/"),w}},bo={scheme:"https",domainHost:Oi.domainHost,parse:Oi.parse,serialize:Oi.serialize};function vo(I){return typeof I.secure=="boolean"?I.secure:String(I.scheme).toLowerCase()==="wss"}var Ai={scheme:"ws",domainHost:!0,parse:function(w,T){var D=w;return D.secure=vo(D),D.resourceName=(D.path||"/")+(D.query?"?"+D.query:""),D.path=void 0,D.query=void 0,D},serialize:function(w,T){if((w.port===(vo(w)?443:80)||w.port==="")&&(w.port=void 0),typeof w.secure=="boolean"&&(w.scheme=w.secure?"wss":"ws",w.secure=void 0),w.resourceName){var D=w.resourceName.split("?"),B=u(D,2),W=B[0],ee=B[1];w.path=W&&W!=="/"?W:void 0,w.query=ee,w.resourceName=void 0}return w.fragment=void 0,w}},So={scheme:"wss",domainHost:Ai.domainHost,parse:Ai.parse,serialize:Ai.serialize},eh={},th=!0,wo="[A-Za-z0-9\\-\\.\\_\\~"+(th?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Wt="[0-9A-Fa-f]",rh=r(r("%[EFef]"+Wt+"%"+Wt+Wt+"%"+Wt+Wt)+"|"+r("%[89A-Fa-f]"+Wt+"%"+Wt+Wt)+"|"+r("%"+Wt+Wt)),ih="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ah="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",nh=e(ah,'[\\"\\\\]'),sh="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",oh=new RegExp(wo,"g"),Xr=new RegExp(rh,"g"),lh=new RegExp(e("[^]",ih,"[\\.]",'[\\"]',nh),"g"),xo=new RegExp(e("[^]",wo,sh),"g"),dh=xo;function Fn(I){var w=je(I);return w.match(oh)?w:I}var Co={scheme:"mailto",parse:function(w,T){var D=w,B=D.to=D.path?D.path.split(","):[];if(D.path=void 0,D.query){for(var W=!1,ee={},de=D.query.split("&"),fe=0,_e=de.length;fe<_e;++fe){var se=de[fe].split("=");switch(se[0]){case"to":for(var Le=se[1].split(","),Ve=0,Te=Le.length;Ve<Te;++Ve)B.push(Le[Ve]);break;case"subject":D.subject=Lt(se[1],T);break;case"body":D.body=Lt(se[1],T);break;default:W=!0,ee[Lt(se[0],T)]=Lt(se[1],T);break}}W&&(D.headers=ee)}D.query=void 0;for(var ue=0,De=B.length;ue<De;++ue){var be=B[ue].split("@");if(be[0]=Lt(be[0]),T.unicodeSupport)be[1]=Lt(be[1],T).toLowerCase();else try{be[1]=te.toASCII(Lt(be[1],T).toLowerCase())}catch(Nr){D.error=D.error||"Email address's domain name can not be converted to ASCII via punycode: "+Nr}B[ue]=be.join("@")}return D},serialize:function(w,T){var D=w,B=n(w.to);if(B){for(var W=0,ee=B.length;W<ee;++W){var de=String(B[W]),fe=de.lastIndexOf("@"),_e=de.slice(0,fe).replace(Xr,Fn).replace(Xr,i).replace(lh,Be),se=de.slice(fe+1);try{se=T.iri?te.toUnicode(se):te.toASCII(Lt(se,T).toLowerCase())}catch(ue){D.error=D.error||"Email address's domain name can not be converted to "+(T.iri?"Unicode":"ASCII")+" via punycode: "+ue}B[W]=_e+"@"+se}D.path=B.join(",")}var Le=w.headers=w.headers||{};w.subject&&(Le.subject=w.subject),w.body&&(Le.body=w.body);var Ve=[];for(var Te in Le)Le[Te]!==eh[Te]&&Ve.push(Te.replace(Xr,Fn).replace(Xr,i).replace(xo,Be)+"="+Le[Te].replace(Xr,Fn).replace(Xr,i).replace(dh,Be));return Ve.length&&(D.query=Ve.join("&")),D}},uh=/^([^\:]+)\:(.*)/,Io={scheme:"urn",parse:function(w,T){var D=w.path&&w.path.match(uh),B=w;if(D){var W=T.scheme||B.scheme||"urn",ee=D[1].toLowerCase(),de=D[2],fe=W+":"+(T.nid||ee),_e=Ce[fe];B.nid=ee,B.nss=de,B.path=void 0,_e&&(B=_e.parse(B,T))}else B.error=B.error||"URN can not be parsed.";return B},serialize:function(w,T){var D=T.scheme||w.scheme||"urn",B=w.nid,W=D+":"+(T.nid||B),ee=Ce[W];ee&&(w=ee.serialize(w,T));var de=w,fe=w.nss;return de.path=(B||T.nid)+":"+fe,de}},ch=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Fo={scheme:"urn:uuid",parse:function(w,T){var D=w;return D.uuid=D.nss,D.nss=void 0,!T.tolerant&&(!D.uuid||!D.uuid.match(ch))&&(D.error=D.error||"UUID is not valid."),D},serialize:function(w,T){var D=w;return D.nss=(w.uuid||"").toLowerCase(),D}};Ce[Oi.scheme]=Oi,Ce[bo.scheme]=bo,Ce[Ai.scheme]=Ai,Ce[So.scheme]=So,Ce[Co.scheme]=Co,Ce[Io.scheme]=Io,Ce[Fo.scheme]=Fo,t.SCHEMES=Ce,t.pctEncChar=Be,t.pctDecChars=je,t.parse=pe,t.removeDotSegments=wt,t.serialize=it,t.resolveComponents=et,t.resolve=Vt,t.normalize=ct,t.equal=aa,t.escapeComponent=In,t.unescapeComponent=Lt,Object.defineProperty(t,"__esModule",{value:!0})})});var va=J((Rx,Jo)=>{"use strict";Jo.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var a,i,n;if(Array.isArray(e)){if(a=e.length,a!=r.length)return!1;for(i=a;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(n=Object.keys(e),a=n.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=a;i--!==0;){var s=n[i];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}});var Yo=J((kx,Ko)=>{"use strict";Ko.exports=function(e){for(var r=0,a=e.length,i=0,n;i<a;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<a&&(n=e.charCodeAt(i),(n&64512)==56320&&i++);return r}});var kr=J((jx,tl)=>{"use strict";tl.exports={copy:Nh,checkDataType:Bn,checkDataTypes:Bh,coerceToTypes:$h,toHash:Mn,getProperty:qn,escapeQuotes:Rn,equal:va(),ucs2length:Yo(),varOccurences:Rh,varReplace:kh,schemaHasRules:jh,schemaHasRulesExcept:_h,schemaUnknownRules:Vh,toQuotedString:$n,getPathExpr:Wh,getPath:zh,getData:Hh,unescapeFragment:Qh,unescapeJsonPointer:jn,escapeFragment:Zh,escapeJsonPointer:kn};function Nh(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function Bn(t,e,r,a){var i=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(t){case"null":return e+i+"null";case"array":return s+"Array.isArray("+e+")";case"object":return"("+s+e+n+"typeof "+e+i+'"object"'+n+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+i+'"number"'+n+o+"("+e+" % 1)"+n+e+i+e+(r?n+s+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+i+'"'+t+'"'+(r?n+s+"isFinite("+e+")":"")+")";default:return"typeof "+e+i+'"'+t+'"'}}function Bh(t,e,r){switch(t.length){case 1:return Bn(t[0],e,r,!0);default:var a="",i=Mn(t);i.array&&i.object&&(a=i.null?"(":"(!"+e+" || ",a+="typeof "+e+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var n in i)a+=(a?" && ":"")+Bn(n,e,r,!0);return a}}var Xo=Mn(["string","number","integer","boolean","null"]);function $h(t,e){if(Array.isArray(e)){for(var r=[],a=0;a<e.length;a++){var i=e[a];(Xo[i]||t==="array"&&i==="array")&&(r[r.length]=i)}if(r.length)return r}else{if(Xo[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Mn(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var Mh=/^[a-z$_][a-z$_0-9]*$/i,qh=/'|\\/g;function qn(t){return typeof t=="number"?"["+t+"]":Mh.test(t)?"."+t:"['"+Rn(t)+"']"}function Rn(t){return t.replace(qh,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Rh(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function kh(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function jh(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function _h(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var a in t)if(a!=r&&e[a])return!0}function Vh(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function $n(t){return"'"+Rn(t)+"'"}function Wh(t,e,r,a){var i=r?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return el(t,i)}function zh(t,e,r){var a=$n(r?"/"+kn(e):qn(e));return el(t,a)}var Uh=/^\/(?:[^~]|~0|~1)*$/,Gh=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Hh(t,e,r){var a,i,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!Uh.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,n="rootData"}else{if(s=t.match(Gh),!s)throw new Error("Invalid JSON-pointer: "+t);if(a=+s[1],i=s[2],i=="#"){if(a>=e)throw new Error("Cannot access property/index "+a+" levels up, current level is "+e);return r[e-a]}if(a>e)throw new Error("Cannot access data "+a+" levels up, current level is "+e);if(n="data"+(e-a||""),!i)return n}for(var o=n,l=i.split("/"),d=0;d<l.length;d++){var u=l[d];u&&(n+=qn(jn(u)),o+=" && "+n)}return o}function el(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function Qh(t){return jn(decodeURIComponent(t))}function Zh(t){return encodeURIComponent(kn(t))}function kn(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function jn(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var _n=J((_x,rl)=>{"use strict";var Jh=kr();rl.exports=Kh;function Kh(t){Jh.copy(t,this)}});var al=J((Vx,il)=>{"use strict";var pr=il.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var a=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Sa(e,a,i,t,"",t)};pr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};pr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};pr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};pr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Sa(t,e,r,a,i,n,s,o,l,d){if(a&&typeof a=="object"&&!Array.isArray(a)){e(a,i,n,s,o,l,d);for(var u in a){var c=a[u];if(Array.isArray(c)){if(u in pr.arrayKeywords)for(var h=0;h<c.length;h++)Sa(t,e,r,c[h],i+"/"+u+"/"+h,n,i,u,a,h)}else if(u in pr.propsKeywords){if(c&&typeof c=="object")for(var p in c)Sa(t,e,r,c[p],i+"/"+u+"/"+Yh(p),n,i,u,a,p)}else(u in pr.keywords||t.allKeys&&!(u in pr.skipKeywords))&&Sa(t,e,r,c,i+"/"+u,n,i,u,a)}r(a,i,n,s,o,l,d)}}function Yh(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ta=J((Wx,ll)=>{"use strict";var Mi=Zo(),nl=va(),Ia=kr(),wa=_n(),Xh=al();ll.exports=fr;fr.normalizeId=hr;fr.fullPath=xa;fr.url=Ca;fr.ids=nf;fr.inlineRef=Vn;fr.schema=Fa;function fr(t,e,r){var a=this._refs[r];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return fr.call(this,t,e,a);if(a=a||this._schemas[r],a instanceof wa)return Vn(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var i=Fa.call(this,e,r),n,s,o;return i&&(n=i.schema,e=i.root,o=i.baseId),n instanceof wa?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=Vn(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function Fa(t,e){var r=Mi.parse(e),a=ol(r),i=xa(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==i){var n=hr(a),s=this._refs[n];if(typeof s=="string")return ef.call(this,t,s,r);if(s instanceof wa)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof wa){if(s.validate||this._compile(s),n==hr(e))return{schema:s,root:t,baseId:i};t=s}else return;if(!t.schema)return;i=xa(this._getId(t.schema))}return sl.call(this,r,i,t.schema,t)}function ef(t,e,r){var a=Fa.call(this,t,e);if(a){var i=a.schema,n=a.baseId;t=a.root;var s=this._getId(i);return s&&(n=Ca(n,s)),sl.call(this,r,n,i,t)}}var tf=Ia.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function sl(t,e,r,a){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var i=t.fragment.split("/"),n=1;n<i.length;n++){var s=i[n];if(s){if(s=Ia.unescapeFragment(s),r=r[s],r===void 0)break;var o;if(!tf[s]&&(o=this._getId(r),o&&(e=Ca(e,o)),r.$ref)){var l=Ca(e,r.$ref),d=Fa.call(this,a,l);d&&(r=d.schema,a=d.root,e=d.baseId)}}}if(r!==void 0&&r!==a.schema)return{schema:r,root:a,baseId:e}}}var rf=Ia.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Vn(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Wn(t);if(e)return zn(t)<=e}function Wn(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!Wn(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!Wn(e)))return!1;return!0}function zn(t){var e=0,r;if(Array.isArray(t)){for(var a=0;a<t.length;a++)if(r=t[a],typeof r=="object"&&(e+=zn(r)),e==1/0)return 1/0}else for(var i in t){if(i=="$ref")return 1/0;if(rf[i])e++;else if(r=t[i],typeof r=="object"&&(e+=zn(r)+1),e==1/0)return 1/0}return e}function xa(t,e){e!==!1&&(t=hr(t));var r=Mi.parse(t);return ol(r)}function ol(t){return Mi.serialize(t).split("#")[0]+"#"}var af=/#\/?$/;function hr(t){return t?t.replace(af,""):""}function Ca(t,e){return e=hr(e),Mi.resolve(t,e)}function nf(t){var e=hr(this._getId(t)),r={"":e},a={"":xa(e,!1)},i={},n=this;return Xh(t,{allKeys:!0},function(s,o,l,d,u,c,h){if(o!==""){var p=n._getId(s),f=r[d],m=a[d]+"/"+u;if(h!==void 0&&(m+="/"+(typeof h=="number"?h:Ia.escapeFragment(h))),typeof p=="string"){p=f=hr(f?Mi.resolve(f,p):p);var y=n._refs[p];if(typeof y=="string"&&(y=n._refs[y]),y&&y.schema){if(!nl(s,y.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=hr(m))if(p[0]=="#"){if(i[p]&&!nl(s,i[p]))throw new Error('id "'+p+'" resolves to more than one schema');i[p]=s}else n._refs[p]=m}r[o]=f,a[o]=m}}),i}});var Pa=J((zx,ul)=>{"use strict";var Un=Ta();ul.exports={Validation:dl(sf),MissingRef:dl(Gn)};function sf(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}Gn.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function Gn(t,e,r){this.message=r||Gn.message(t,e),this.missingRef=Un.url(t,e),this.missingSchema=Un.normalizeId(Un.fullPath(this.missingRef))}function dl(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Hn=J((Ux,cl)=>{"use strict";cl.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,a=e.cmp&&function(n){return function(s){return function(o,l){var d={key:o,value:s[o]},u={key:l,value:s[l]};return n(d,u)}}}(e.cmp),i=[];return function n(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var o,l;if(Array.isArray(s)){for(l="[",o=0;o<s.length;o++)o&&(l+=","),l+=n(s[o])||"null";return l+"]"}if(s===null)return"null";if(i.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var d=i.push(s)-1,u=Object.keys(s).sort(a&&a(s));for(l="",o=0;o<u.length;o++){var c=u[o],h=n(s[c]);h&&(l&&(l+=","),l+=JSON.stringify(c)+":"+h)}return i.splice(d,1),"{"+l+"}"}}(t)}});var Qn=J((Gx,pl)=>{"use strict";pl.exports=function(e,r,a){var i="",n=e.schema.$async===!0,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var d="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(d);else throw new Error(d)}}if(e.isTop&&(i+=" var validate = ",n&&(e.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(i+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(s||e.schema.$ref)){var r="false schema",u=e.level,c=e.dataLevel,h=e.schema[r],p=e.schemaPath+e.util.getProperty(r),f=e.errSchemaPath+"/"+r,F=!e.opts.allErrors,E,m="data"+(c||""),C="valid"+u;if(e.schema===!1){e.isTop?F=!0:i+=" var "+C+" = false; ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(E||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+C+" = true; ";return e.isTop&&(i+=" }; return validate; "),i}if(e.isTop){var v=e.isTop,u=e.level=0,c=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var S="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,c=e.dataLevel,m="data"+(c||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");i+=" var errs_"+u+" = errors;"}var C="valid"+u,F=!e.opts.allErrors,A="",$="",E,P=e.schema.type,N=Array.isArray(P);if(P&&e.opts.nullable&&e.schema.nullable===!0&&(N?P.indexOf("null")==-1&&(P=P.concat("null")):P!="null"&&(P=[P,"null"],N=!0)),N&&P.length==1&&(P=P[0],N=!1),e.schema.$ref&&s){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(s=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(i+=" "+e.RULES.all.$comment.code(e,"$comment")),P){if(e.opts.coerceTypes)var M=e.util.coerceToTypes(e.opts.coerceTypes,P);var R=e.RULES.types[P];if(M||N||R===!0||R&&!Je(R)){var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",p=e.schemaPath+".type",f=e.errSchemaPath+"/type",q=N?"checkDataTypes":"checkDataType";if(i+=" if ("+e.util[q](P,m,e.opts.strictNumbers,!0)+") { ",M){var L="dataType"+u,k="coerced"+u;i+=" var "+L+" = typeof "+m+"; var "+k+" = undefined; ",e.opts.coerceTypes=="array"&&(i+=" if ("+L+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+L+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+k+" = "+m+"; } "),i+=" if ("+k+" !== undefined) ; ";var V=M;if(V)for(var Q,Z=-1,G=V.length-1;Z<G;)Q=V[Z+=1],Q=="string"?i+=" else if ("+L+" == 'number' || "+L+" == 'boolean') "+k+" = '' + "+m+"; else if ("+m+" === null) "+k+" = ''; ":Q=="number"||Q=="integer"?(i+=" else if ("+L+" == 'boolean' || "+m+" === null || ("+L+" == 'string' && "+m+" && "+m+" == +"+m+" ",Q=="integer"&&(i+=" && !("+m+" % 1)"),i+=")) "+k+" = +"+m+"; "):Q=="boolean"?i+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+k+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+k+" = true; ":Q=="null"?i+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+k+" = null; ":e.opts.coerceTypes=="array"&&Q=="array"&&(i+=" else if ("+L+" == 'string' || "+L+" == 'number' || "+L+" == 'boolean' || "+m+" == null) "+k+" = ["+m+"]; ");i+=" else { ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(E||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",N?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",N?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+k+" !== undefined) { ";var z=c?"data"+(c-1||""):"parentData",ie=c?e.dataPathArr[c]:"parentDataProperty";i+=" "+m+" = "+k+"; ",c||(i+="if ("+z+" !== undefined)"),i+=" "+z+"["+ie+"] = "+k+"; } "}else{var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(E||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",N?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",N?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(e.schema.$ref&&!s)i+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",F&&(i+=" } if (errors === ",v?i+="0":i+="errs_"+u,i+=") { ",$+="}");else{var Ae=e.RULES;if(Ae){for(var R,Ee=-1,te=Ae.length-1;Ee<te;)if(R=Ae[Ee+=1],Je(R)){if(R.type&&(i+=" if ("+e.util.checkDataType(R.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(R.type=="object"&&e.schema.properties){var h=e.schema.properties,Ce=Object.keys(h),Be=Ce;if(Be)for(var je,ut=-1,rt=Be.length-1;ut<rt;){je=Be[ut+=1];var Ie=h[je];if(Ie.default!==void 0){var Fe=m+e.util.getProperty(je);if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+Fe;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+Fe+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+Fe+" === null || "+Fe+" === '' "),i+=" ) "+Fe+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Ie.default)+" ":i+=" "+JSON.stringify(Ie.default)+" ",i+="; "}}}else if(R.type=="array"&&Array.isArray(e.schema.items)){var Er=e.schema.items;if(Er){for(var Ie,Z=-1,Ke=Er.length-1;Z<Ke;)if(Ie=Er[Z+=1],Ie.default!==void 0){var Fe=m+"["+Z+"]";if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+Fe;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+Fe+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+Fe+" === null || "+Fe+" === '' "),i+=" ) "+Fe+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Ie.default)+" ":i+=" "+JSON.stringify(Ie.default)+" ",i+="; "}}}}var pe=R.rules;if(pe){for(var lr,Ht=-1,Lr=pe.length-1;Ht<Lr;)if(lr=pe[Ht+=1],wt(lr)){var Dr=lr.code(e,lr.keyword,R.type);Dr&&(i+=" "+Dr+" ",F&&(A+="}"))}}if(F&&(i+=" "+A+" ",A=""),R.type&&(i+=" } ",P&&P===R.type&&!M)){i+=" else { ";var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(E||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",N?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",N?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}F&&(i+=" if (errors === ",v?i+="0":i+="errs_"+u,i+=") { ",$+="}")}}}F&&(i+=" "+$+" "),v?(n?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+C+" = errors === errs_"+u+";";function Je(et){for(var Vt=et.rules,ct=0;ct<Vt.length;ct++)if(wt(Vt[ct]))return!0}function wt(et){return e.schema[et.keyword]!==void 0||et.implements&&it(et)}function it(et){for(var Vt=et.implements,ct=0;ct<Vt.length;ct++)if(e.schema[Vt[ct]]!==void 0)return!0}return i}});var gl=J((Hx,yl)=>{"use strict";var Oa=Ta(),Ea=kr(),fl=Pa(),of=Hn(),hl=Qn(),lf=Ea.ucs2length,df=va(),uf=fl.Validation;yl.exports=Zn;function Zn(t,e,r,a){var i=this,n=this._opts,s=[void 0],o={},l=[],d={},u=[],c={},h=[];e=e||{schema:t,refVal:s,refs:o};var p=cf.call(this,t,e,a),f=this._compilations[p.index];if(p.compiling)return f.callValidate=S;var m=this._formats,y=this.RULES;try{var b=C(t,e,r,a);f.validate=b;var v=f.callValidate;return v&&(v.schema=b.schema,v.errors=null,v.refs=b.refs,v.refVal=b.refVal,v.root=b.root,v.$async=b.$async,n.sourceCode&&(v.source=b.source)),b}finally{pf.call(this,t,e,a)}function S(){var q=f.validate,L=q.apply(this,arguments);return S.errors=q.errors,L}function C(q,L,k,V){var Q=!L||L&&L.schema==q;if(L.schema!=e.schema)return Zn.call(i,q,L,k,V);var Z=q.$async===!0,G=hl({isTop:!0,schema:q,isRoot:Q,baseId:V,root:L,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:fl.MissingRef,RULES:y,validate:hl,util:Ea,resolve:Oa,resolveRef:F,usePattern:N,useDefault:M,useCustomRule:R,opts:n,formats:m,logger:i.logger,self:i});G=Aa(s,mf)+Aa(l,hf)+Aa(u,ff)+Aa(h,yf)+G,n.processCode&&(G=n.processCode(G,q));var z;try{var ie=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",G);z=ie(i,y,m,e,s,u,h,df,lf,uf),s[0]=z}catch(Ae){throw i.logger.error("Error compiling schema, function code:",G),Ae}return z.schema=q,z.errors=null,z.refs=o,z.refVal=s,z.root=Q?z:L,Z&&(z.$async=!0),n.sourceCode===!0&&(z.source={code:G,patterns:l,defaults:u}),z}function F(q,L,k){L=Oa.url(q,L);var V=o[L],Q,Z;if(V!==void 0)return Q=s[V],Z="refVal["+V+"]",P(Q,Z);if(!k&&e.refs){var G=e.refs[L];if(G!==void 0)return Q=e.refVal[G],Z=A(L,Q),P(Q,Z)}Z=A(L);var z=Oa.call(i,C,e,L);if(z===void 0){var ie=r&&r[L];ie&&(z=Oa.inlineRef(ie,n.inlineRefs)?ie:Zn.call(i,ie,e,r,q))}if(z===void 0)$(L);else return E(L,z),P(z,Z)}function A(q,L){var k=s.length;return s[k]=L,o[q]=k,"refVal"+k}function $(q){delete o[q]}function E(q,L){var k=o[q];s[k]=L}function P(q,L){return typeof q=="object"||typeof q=="boolean"?{code:L,schema:q,inline:!0}:{code:L,$async:q&&!!q.$async}}function N(q){var L=d[q];return L===void 0&&(L=d[q]=l.length,l[L]=q),"pattern"+L}function M(q){switch(typeof q){case"boolean":case"number":return""+q;case"string":return Ea.toQuotedString(q);case"object":if(q===null)return"null";var L=of(q),k=c[L];return k===void 0&&(k=c[L]=u.length,u[k]=q),"default"+k}}function R(q,L,k,V){if(i._opts.validateSchema!==!1){var Q=q.definition.dependencies;if(Q&&!Q.every(function(Be){return Object.prototype.hasOwnProperty.call(k,Be)}))throw new Error("parent schema must have all required keywords: "+Q.join(","));var Z=q.definition.validateSchema;if(Z){var G=Z(L);if(!G){var z="keyword schema is invalid: "+i.errorsText(Z.errors);if(i._opts.validateSchema=="log")i.logger.error(z);else throw new Error(z)}}}var ie=q.definition.compile,Ae=q.definition.inline,Ee=q.definition.macro,te;if(ie)te=ie.call(i,L,k,V);else if(Ee)te=Ee.call(i,L,k,V),n.validateSchema!==!1&&i.validateSchema(te,!0);else if(Ae)te=Ae.call(i,V,q.keyword,L,k);else if(te=q.definition.validate,!te)return;if(te===void 0)throw new Error('custom keyword "'+q.keyword+'"failed to compile');var Ce=h.length;return h[Ce]=te,{code:"customRule"+Ce,validate:te}}}function cf(t,e,r){var a=ml.call(this,t,e,r);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:t,root:e,baseId:r},{index:a,compiling:!1})}function pf(t,e,r){var a=ml.call(this,t,e,r);a>=0&&this._compilations.splice(a,1)}function ml(t,e,r){for(var a=0;a<this._compilations.length;a++){var i=this._compilations[a];if(i.schema==t&&i.root==e&&i.baseId==r)return a}return-1}function hf(t,e){return"var pattern"+t+" = new RegExp("+Ea.toQuotedString(e[t])+");"}function ff(t){return"var default"+t+" = defaults["+t+"];"}function mf(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function yf(t){return"var customRule"+t+" = customRules["+t+"];"}function Aa(t,e){if(!t.length)return"";for(var r="",a=0;a<t.length;a++)r+=e(a,t);return r}});var vl=J((Qx,bl)=>{"use strict";var La=bl.exports=function(){this._cache={}};La.prototype.put=function(e,r){this._cache[e]=r};La.prototype.get=function(e){return this._cache[e]};La.prototype.del=function(e){delete this._cache[e]};La.prototype.clear=function(){this._cache={}}});var Ll=J((Zx,El)=>{"use strict";var gf=kr(),bf=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,vf=[0,31,28,31,30,31,30,31,31,30,31,30,31],Sf=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Sl=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,wf=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,xf=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,wl=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,xl=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Cl=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Il=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Fl=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Tl=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;El.exports=Da;function Da(t){return t=t=="full"?"full":"fast",gf.copy(Da[t])}Da.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":wl,url:xl,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Sl,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Al,uuid:Cl,"json-pointer":Il,"json-pointer-uri-fragment":Fl,"relative-json-pointer":Tl};Da.full={date:Pl,time:Ol,"date-time":Ff,uri:Pf,"uri-reference":xf,"uri-template":wl,url:xl,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Sl,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Al,uuid:Cl,"json-pointer":Il,"json-pointer-uri-fragment":Fl,"relative-json-pointer":Tl};function Cf(t){return t%4===0&&(t%100!==0||t%400===0)}function Pl(t){var e=t.match(bf);if(!e)return!1;var r=+e[1],a=+e[2],i=+e[3];return a>=1&&a<=12&&i>=1&&i<=(a==2&&Cf(r)?29:vf[a])}function Ol(t,e){var r=t.match(Sf);if(!r)return!1;var a=r[1],i=r[2],n=r[3],s=r[5];return(a<=23&&i<=59&&n<=59||a==23&&i==59&&n==60)&&(!e||s)}var If=/t|\s/i;function Ff(t){var e=t.split(If);return e.length==2&&Pl(e[0])&&Ol(e[1],!0)}var Tf=/\/|:/;function Pf(t){return Tf.test(t)&&wf.test(t)}var Of=/[^\\]\\Z/;function Al(t){if(Of.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Nl=J((Jx,Dl)=>{"use strict";Dl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.errSchemaPath+"/"+r,d=!e.opts.allErrors,u="data"+(s||""),c="valid"+n,h,p;if(o=="#"||o=="#/")e.isRoot?(h=e.async,p="validate"):(h=e.root.schema.$async===!0,p="root.refVal[0]");else{var f=e.resolveRef(e.baseId,o,e.isRoot);if(f===void 0){var m=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(m);var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&d?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(i+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),d&&(i+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,m)}else if(f.inline){var v=e.util.copy(e);v.level++;var S="valid"+v.level;v.schema=f.schema,v.schemaPath="",v.errSchemaPath=o;var C=e.validate(v).replace(/validate\.schema/g,f.code);i+=" "+C+" ",d&&(i+=" if ("+S+") { ")}else h=f.$async===!0||e.async&&f.$async!==!1,p=f.code}if(p){var y=y||[];y.push(i),i="",e.opts.passContext?i+=" "+p+".call(this, ":i+=" "+p+"( ",i+=" "+u+", (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var F=s?"data"+(s-1||""):"parentData",A=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+F+" , "+A+", rootData) ";var $=i;if(i=y.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(i+=" var "+c+"; "),i+=" try { await "+$+"; ",d&&(i+=" "+c+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",d&&(i+=" "+c+" = false; "),i+=" } ",d&&(i+=" if ("+c+") { ")}else i+=" if (!"+$+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",d&&(i+=" else { ")}return i}});var $l=J((Kx,Bl)=>{"use strict";Bl.exports=function(e,r,a){var i=" ",n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),o=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,d=e.util.copy(e),u="";d.level++;var c="valid"+d.level,h=d.baseId,p=!0,f=n;if(f)for(var m,y=-1,b=f.length-1;y<b;)m=f[y+=1],(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(p=!1,d.schema=m,d.schemaPath=s+"["+y+"]",d.errSchemaPath=o+"/"+y,i+=" "+e.validate(d)+" ",d.baseId=h,l&&(i+=" if ("+c+") { ",u+="}"));return l&&(p?i+=" if (true) { ":i+=" "+u.slice(0,-1)+" "),i}});var ql=J((Yx,Ml)=>{"use strict";Ml.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b=o.every(function(E){return e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===!1:e.util.schemaHasRules(E,e.RULES.all)});if(b){var v=f.baseId;i+=" var "+p+" = errors; var "+h+" = false; ";var S=e.compositeRule;e.compositeRule=f.compositeRule=!0;var C=o;if(C)for(var F,A=-1,$=C.length-1;A<$;)F=C[A+=1],f.schema=F,f.schemaPath=l+"["+A+"]",f.errSchemaPath=d+"/"+A,i+=" "+e.validate(f)+" ",f.baseId=v,i+=" "+h+" = "+h+" || "+y+"; if (!"+h+") { ",m+="}";e.compositeRule=f.compositeRule=S,i+=" "+m+" if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else u&&(i+=" if (true) { ");return i}});var kl=J((Xx,Rl)=>{"use strict";Rl.exports=function(e,r,a){var i=" ",n=e.schema[r],s=e.errSchemaPath+"/"+r,o=!e.opts.allErrors,l=e.util.toQuotedString(n);return e.opts.$comment===!0?i+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(i+=" self._opts.$comment("+l+", "+e.util.toQuotedString(s)+", validate.root.schema);"),i}});var _l=J((eC,jl)=>{"use strict";jl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o,p||(i+=" var schema"+n+" = validate.schema"+l+";"),i+="var "+h+" = equal("+c+", schema"+n+"); if (!"+h+") { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var y=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",u&&(i+=" else { "),i}});var Wl=J((tC,Vl)=>{"use strict";Vl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b="i"+n,v=f.dataLevel=e.dataLevel+1,S="data"+v,C=e.baseId,F=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(i+="var "+p+" = errors;var "+h+";",F){var A=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" var "+y+" = false; for (var "+b+" = 0; "+b+" < "+c+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var $=c+"["+b+"]";f.dataPathArr[v]=b;var E=e.validate(f);f.baseId=C,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,$)+" ":i+=" var "+S+" = "+$+"; "+E+" ",i+=" if ("+y+") break; } ",e.compositeRule=f.compositeRule=A,i+=" "+m+" if (!"+y+") {"}else i+=" if ("+c+".length == 0) {";var P=P||[];P.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var N=i;return i=P.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+N+"]); ":i+=" validate.errors = ["+N+"]; return false; ":i+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",F&&(i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(i+=" } "),i}});var Ul=J((rC,zl)=>{"use strict";zl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level,y={},b={},v=e.opts.ownProperties;for(A in o)if(A!="__proto__"){var S=o[A],C=Array.isArray(S)?b:y;C[A]=S}i+="var "+h+" = errors;";var F=e.errorPath;i+="var missing"+n+";";for(var A in b)if(C=b[A],C.length){if(i+=" if ( "+c+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "),u){i+=" && ( ";var $=C;if($)for(var E,P=-1,N=$.length-1;P<N;){E=$[P+=1],P&&(i+=" || ");var M=e.util.getProperty(E),R=c+M;i+=" ( ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(E)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?E:M)+") ) "}i+=")) { ";var q="missing"+n,L="' + "+q+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(F,q,!0):F+" + "+q);var k=k||[];k.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+L+"', depsCount: "+C.length+", deps: '"+e.util.escapeQuotes(C.length==1?C[0]:C.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",C.length==1?i+="property "+e.util.escapeQuotes(C[0]):i+="properties "+e.util.escapeQuotes(C.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var V=i;i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var Q=C;if(Q)for(var E,Z=-1,G=Q.length-1;Z<G;){E=Q[Z+=1];var M=e.util.getProperty(E),L=e.util.escapeQuotes(E),R=c+M;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(F,E,e.opts.jsonPointers)),i+=" if ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(E)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+L+"', depsCount: "+C.length+", deps: '"+e.util.escapeQuotes(C.length==1?C[0]:C.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",C.length==1?i+="property "+e.util.escapeQuotes(C[0]):i+="properties "+e.util.escapeQuotes(C.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",u&&(f+="}",i+=" else { ")}e.errorPath=F;var z=p.baseId;for(var A in y){var S=y[A];(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))&&(i+=" "+m+" = true; if ( "+c+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "),i+=") { ",p.schema=S,p.schemaPath=l+e.util.getProperty(A),p.errSchemaPath=d+"/"+e.util.escapeFragment(A),i+=" "+e.validate(p)+" ",p.baseId=z,i+=" } ",u&&(i+=" if ("+m+") { ",f+="}"))}return u&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var Hl=J((iC,Gl)=>{"use strict";Gl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o;var m="i"+n,y="schema"+n;p||(i+=" var "+y+" = validate.schema"+l+";"),i+="var "+h+";",p&&(i+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),i+=""+h+" = false;for (var "+m+"=0; "+m+"<"+y+".length; "+m+"++) if (equal("+c+", "+y+"["+m+"])) { "+h+" = true; break; }",p&&(i+=" } "),i+=" if (!"+h+") { ";var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var v=i;return i=b.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",u&&(i+=" else { "),i}});var Zl=J((aC,Ql)=>{"use strict";Ql.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||"");if(e.opts.format===!1)return u&&(i+=" if (true) { "),i;var h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=e.opts.unknownFormats,m=Array.isArray(f);if(h){var y="format"+n,b="isObject"+n,v="formatType"+n;i+=" var "+y+" = formats["+p+"]; var "+b+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+v+" = "+b+" && "+y+".type || 'string'; if ("+b+") { ",e.async&&(i+=" var async"+n+" = "+y+".async; "),i+=" "+y+" = "+y+".validate; } if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" (",f!="ignore"&&(i+=" ("+p+" && !"+y+" ",m&&(i+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),i+=") || "),i+=" ("+y+" && "+v+" == '"+a+"' && !(typeof "+y+" == 'function' ? ",e.async?i+=" (async"+n+" ? await "+y+"("+c+") : "+y+"("+c+")) ":i+=" "+y+"("+c+") ",i+=" : "+y+".test("+c+"))))) {"}else{var y=e.formats[o];if(!y){if(f=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(i+=" if (true) { "),i;if(m&&f.indexOf(o)>=0)return u&&(i+=" if (true) { "),i;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var b=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,v=b&&y.type||"string";if(b){var S=y.async===!0;y=y.validate}if(v!=a)return u&&(i+=" if (true) { "),i;if(S){if(!e.async)throw new Error("async format in sync schema");var C="formats"+e.util.getProperty(o)+".validate";i+=" if (!(await "+C+"("+c+"))) { "}else{i+=" if (! ";var C="formats"+e.util.getProperty(o);b&&(C+=".validate"),typeof y=="function"?i+=" "+C+"("+c+") ":i+=" "+C+".test("+c+") ",i+=") { "}}var F=F||[];F.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",h?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match format "`,h?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var A=i;return i=F.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}});var Kl=J((nC,Jl)=>{"use strict";Jl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e);f.level++;var m="valid"+f.level,y=e.schema.then,b=e.schema.else,v=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),S=b!==void 0&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all)),C=f.baseId;if(v||S){var F;f.createErrors=!1,f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" var "+p+" = errors; var "+h+" = true; ";var A=e.compositeRule;e.compositeRule=f.compositeRule=!0,i+=" "+e.validate(f)+" ",f.baseId=C,f.createErrors=!0,i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=f.compositeRule=A,v?(i+=" if ("+m+") { ",f.schema=e.schema.then,f.schemaPath=e.schemaPath+".then",f.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(f)+" ",f.baseId=C,i+=" "+h+" = "+m+"; ",v&&S?(F="ifClause"+n,i+=" var "+F+" = 'then'; "):F="'then'",i+=" } ",S&&(i+=" else { ")):i+=" if (!"+m+") { ",S&&(f.schema=e.schema.else,f.schemaPath=e.schemaPath+".else",f.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(f)+" ",f.baseId=C,i+=" "+h+" = "+m+"; ",v&&S?(F="ifClause"+n,i+=" var "+F+" = 'else'; "):F="'else'",i+=" } "),i+=" if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+F+" } ",e.opts.messages!==!1&&(i+=` , message: 'should match "' + `+F+` + '" schema' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i}});var Xl=J((sC,Yl)=>{"use strict";Yl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b="i"+n,v=f.dataLevel=e.dataLevel+1,S="data"+v,C=e.baseId;if(i+="var "+p+" = errors;var "+h+";",Array.isArray(o)){var F=e.schema.additionalItems;if(F===!1){i+=" "+h+" = "+c+".length <= "+o.length+"; ";var A=d;d=e.errSchemaPath+"/additionalItems",i+=" if (!"+h+") { ";var $=$||[];$.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var E=i;i=$.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+E+"]); ":i+=" validate.errors = ["+E+"]; return false; ":i+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",d=A,u&&(m+="}",i+=" else { ")}var P=o;if(P){for(var N,M=-1,R=P.length-1;M<R;)if(N=P[M+=1],e.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:e.util.schemaHasRules(N,e.RULES.all)){i+=" "+y+" = true; if ("+c+".length > "+M+") { ";var q=c+"["+M+"]";f.schema=N,f.schemaPath=l+"["+M+"]",f.errSchemaPath=d+"/"+M,f.errorPath=e.util.getPathExpr(e.errorPath,M,e.opts.jsonPointers,!0),f.dataPathArr[v]=M;var L=e.validate(f);f.baseId=C,e.util.varOccurences(L,S)<2?i+=" "+e.util.varReplace(L,S,q)+" ":i+=" var "+S+" = "+q+"; "+L+" ",i+=" } ",u&&(i+=" if ("+y+") { ",m+="}")}}if(typeof F=="object"&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all))){f.schema=F,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+y+" = true; if ("+c+".length > "+o.length+") { for (var "+b+" = "+o.length+"; "+b+" < "+c+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var q=c+"["+b+"]";f.dataPathArr[v]=b;var L=e.validate(f);f.baseId=C,e.util.varOccurences(L,S)<2?i+=" "+e.util.varReplace(L,S,q)+" ":i+=" var "+S+" = "+q+"; "+L+" ",u&&(i+=" if (!"+y+") break; "),i+=" } } ",u&&(i+=" if ("+y+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" for (var "+b+" = 0; "+b+" < "+c+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var q=c+"["+b+"]";f.dataPathArr[v]=b;var L=e.validate(f);f.baseId=C,e.util.varOccurences(L,S)<2?i+=" "+e.util.varReplace(L,S,q)+" ":i+=" var "+S+" = "+q+"; "+L+" ",u&&(i+=" if (!"+y+") break; "),i+=" }"}return u&&(i+=" "+m+" if ("+p+" == errors) {"),i}});var Jn=J((oC,ed)=>{"use strict";ed.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,C,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=r=="maximum",m=f?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[m],b=e.opts.$data&&y&&y.$data,v=f?"<":">",S=f?">":"<",C=void 0;if(!(h||typeof o=="number"||o===void 0))throw new Error(r+" must be number");if(!(b||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(m+" must be number or boolean");if(b){var F=e.util.getData(y.$data,s,e.dataPathArr),A="exclusive"+n,$="exclType"+n,E="exclIsNumber"+n,P="op"+n,N="' + "+P+" + '";i+=" var schemaExcl"+n+" = "+F+"; ",F="schemaExcl"+n,i+=" var "+A+"; var "+$+" = typeof "+F+"; if ("+$+" != 'boolean' && "+$+" != 'undefined' && "+$+" != 'number') { ";var C=m,M=M||[];M.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(C||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var R=i;i=M.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+$+" == 'number' ? ( ("+A+" = "+p+" === undefined || "+F+" "+v+"= "+p+") ? "+c+" "+S+"= "+F+" : "+c+" "+S+" "+p+" ) : ( ("+A+" = "+F+" === true) ? "+c+" "+S+"= "+p+" : "+c+" "+S+" "+p+" ) || "+c+" !== "+c+") { var op"+n+" = "+A+" ? '"+v+"' : '"+v+"='; ",o===void 0&&(C=m,d=e.errSchemaPath+"/"+m,p=F,h=b)}else{var E=typeof y=="number",N=v;if(E&&h){var P="'"+N+"'";i+=" if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" ( "+p+" === undefined || "+y+" "+v+"= "+p+" ? "+c+" "+S+"= "+y+" : "+c+" "+S+" "+p+" ) || "+c+" !== "+c+") { "}else{E&&o===void 0?(A=!0,C=m,d=e.errSchemaPath+"/"+m,p=y,S+="="):(E&&(p=Math[f?"min":"max"](y,o)),y===(E?p:!0)?(A=!0,C=m,d=e.errSchemaPath+"/"+m,S+="="):(A=!1,N+="="));var P="'"+N+"'";i+=" if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+c+" "+S+" "+p+" || "+c+" !== "+c+") { "}}C=C||r;var M=M||[];M.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(C||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+P+", limit: "+p+", exclusive: "+A+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+N+" ",h?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var R=i;return i=M.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}});var Kn=J((lC,td)=>{"use strict";td.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxItems"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+c+".length "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxItems"?i+="more":i+="fewer",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var b=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var Yn=J((dC,rd)=>{"use strict";rd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxLength"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?i+=" "+c+".length ":i+=" ucs2length("+c+") ",i+=" "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be ",r=="maxLength"?i+="longer":i+="shorter",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var b=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var Xn=J((uC,id)=>{"use strict";id.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxProperties"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" Object.keys("+c+").length "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxProperties"?i+="more":i+="fewer",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var b=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var nd=J((cC,ad)=>{"use strict";ad.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");i+="var division"+n+";if (",h&&(i+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),i+=" (division"+n+" = "+c+" / "+p+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+n+" !== parseInt(division"+n+") ",i+=" ) ",h&&(i+=" ) "),i+=" ) { ";var f=f||[];f.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",h?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var m=i;return i=f.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var od=J((pC,sd)=>{"use strict";sd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="errs__"+n,p=e.util.copy(e);p.level++;var f="valid"+p.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d,i+=" var "+h+" = errors; ";var m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var y;p.opts.allErrors&&(y=p.opts.allErrors,p.opts.allErrors=!1),i+=" "+e.validate(p)+" ",p.createErrors=!0,y&&(p.opts.allErrors=y),e.compositeRule=p.compositeRule=m,i+=" if ("+f+") { ";var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var v=i;i=b.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ");return i}});var dd=J((hC,ld)=>{"use strict";ld.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b=f.baseId,v="prevValid"+n,S="passingSchemas"+n;i+="var "+p+" = errors , "+v+" = false , "+h+" = false , "+S+" = null; ";var C=e.compositeRule;e.compositeRule=f.compositeRule=!0;var F=o;if(F)for(var A,$=-1,E=F.length-1;$<E;)A=F[$+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(f.schema=A,f.schemaPath=l+"["+$+"]",f.errSchemaPath=d+"/"+$,i+=" "+e.validate(f)+" ",f.baseId=b):i+=" var "+y+" = true; ",$&&(i+=" if ("+y+" && "+v+") { "+h+" = false; "+S+" = ["+S+", "+$+"]; } else { ",m+="}"),i+=" if ("+y+") { "+h+" = "+v+" = true; "+S+" = "+$+"; }";return e.compositeRule=f.compositeRule=C,i+=""+m+"if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+S+" } ",e.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(i+=" } "),i}});var cd=J((fC,ud)=>{"use strict";ud.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=h?"(new RegExp("+p+"))":e.usePattern(o);i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" !"+f+".test("+c+") ) { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",h?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,h?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var y=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var hd=J((mC,pd)=>{"use strict";pd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level,y="key"+n,b="idx"+n,v=p.dataLevel=e.dataLevel+1,S="data"+v,C="dataProperties"+n,F=Object.keys(o||{}).filter(Z),A=e.schema.patternProperties||{},$=Object.keys(A).filter(Z),E=e.schema.additionalProperties,P=F.length||$.length,N=E===!1,M=typeof E=="object"&&Object.keys(E).length,R=e.opts.removeAdditional,q=N||M||R,L=e.opts.ownProperties,k=e.baseId,V=e.schema.required;if(V&&!(e.opts.$data&&V.$data)&&V.length<e.opts.loopRequired)var Q=e.util.toHash(V);function Z(Lt){return Lt!=="__proto__"}if(i+="var "+h+" = errors;var "+m+" = true;",L&&(i+=" var "+C+" = undefined;"),q){if(L?i+=" "+C+" = "+C+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+C+".length; "+b+"++) { var "+y+" = "+C+"["+b+"]; ":i+=" for (var "+y+" in "+c+") { ",P){if(i+=" var isAdditional"+n+" = !(false ",F.length)if(F.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var G=F;if(G)for(var z,ie=-1,Ae=G.length-1;ie<Ae;)z=G[ie+=1],i+=" || "+y+" == "+e.util.toQuotedString(z)+" "}if($.length){var Ee=$;if(Ee)for(var te,Ce=-1,Be=Ee.length-1;Ce<Be;)te=Ee[Ce+=1],i+=" || "+e.usePattern(te)+".test("+y+") "}i+=" ); if (isAdditional"+n+") { "}if(R=="all")i+=" delete "+c+"["+y+"]; ";else{var je=e.errorPath,ut="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),N)if(R)i+=" delete "+c+"["+y+"]; ";else{i+=" "+m+" = false; ";var rt=d;d=e.errSchemaPath+"/additionalProperties";var Ie=Ie||[];Ie.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+ut+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Fe=i;i=Ie.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Fe+"]); ":i+=" validate.errors = ["+Fe+"]; return false; ":i+=" var err = "+Fe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=rt,u&&(i+=" break; ")}else if(M)if(R=="failing"){i+=" var "+h+" = errors; ";var Er=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=E,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Ke=c+"["+y+"]";p.dataPathArr[v]=y;var pe=e.validate(p);p.baseId=k,e.util.varOccurences(pe,S)<2?i+=" "+e.util.varReplace(pe,S,Ke)+" ":i+=" var "+S+" = "+Ke+"; "+pe+" ",i+=" if (!"+m+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+y+"]; } ",e.compositeRule=p.compositeRule=Er}else{p.schema=E,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Ke=c+"["+y+"]";p.dataPathArr[v]=y;var pe=e.validate(p);p.baseId=k,e.util.varOccurences(pe,S)<2?i+=" "+e.util.varReplace(pe,S,Ke)+" ":i+=" var "+S+" = "+Ke+"; "+pe+" ",u&&(i+=" if (!"+m+") break; ")}e.errorPath=je}P&&(i+=" } "),i+=" } ",u&&(i+=" if ("+m+") { ",f+="}")}var lr=e.opts.useDefaults&&!e.compositeRule;if(F.length){var Ht=F;if(Ht)for(var z,Lr=-1,Dr=Ht.length-1;Lr<Dr;){z=Ht[Lr+=1];var Je=o[z];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){var wt=e.util.getProperty(z),Ke=c+wt,it=lr&&Je.default!==void 0;p.schema=Je,p.schemaPath=l+wt,p.errSchemaPath=d+"/"+e.util.escapeFragment(z),p.errorPath=e.util.getPath(e.errorPath,z,e.opts.jsonPointers),p.dataPathArr[v]=e.util.toQuotedString(z);var pe=e.validate(p);if(p.baseId=k,e.util.varOccurences(pe,S)<2){pe=e.util.varReplace(pe,S,Ke);var et=Ke}else{var et=S;i+=" var "+S+" = "+Ke+"; "}if(it)i+=" "+pe+" ";else{if(Q&&Q[z]){i+=" if ( "+et+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+m+" = false; ";var je=e.errorPath,rt=d,Vt=e.util.escapeQuotes(z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(je,z,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Ie=Ie||[];Ie.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+Vt+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+Vt+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Fe=i;i=Ie.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Fe+"]); ":i+=" validate.errors = ["+Fe+"]; return false; ":i+=" var err = "+Fe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=rt,e.errorPath=je,i+=" } else { "}else u?(i+=" if ( "+et+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+m+" = true; } else { "):(i+=" if ("+et+" !== undefined ",L&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=" ) { ");i+=" "+pe+" } "}}u&&(i+=" if ("+m+") { ",f+="}")}}if($.length){var ct=$;if(ct)for(var te,aa=-1,In=ct.length-1;aa<In;){te=ct[aa+=1];var Je=A[te];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){p.schema=Je,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(te),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(te),L?i+=" "+C+" = "+C+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+C+".length; "+b+"++) { var "+y+" = "+C+"["+b+"]; ":i+=" for (var "+y+" in "+c+") { ",i+=" if ("+e.usePattern(te)+".test("+y+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Ke=c+"["+y+"]";p.dataPathArr[v]=y;var pe=e.validate(p);p.baseId=k,e.util.varOccurences(pe,S)<2?i+=" "+e.util.varReplace(pe,S,Ke)+" ":i+=" var "+S+" = "+Ke+"; "+pe+" ",u&&(i+=" if (!"+m+") break; "),i+=" } ",u&&(i+=" else "+m+" = true; "),i+=" } ",u&&(i+=" if ("+m+") { ",f+="}")}}}return u&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var md=J((yC,fd)=>{"use strict";fd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level;if(i+="var "+h+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d;var y="key"+n,b="idx"+n,v="i"+n,S="' + "+y+" + '",C=p.dataLevel=e.dataLevel+1,F="data"+C,A="dataProperties"+n,$=e.opts.ownProperties,E=e.baseId;$&&(i+=" var "+A+" = undefined; "),$?i+=" "+A+" = "+A+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+A+".length; "+b+"++) { var "+y+" = "+A+"["+b+"]; ":i+=" for (var "+y+" in "+c+") { ",i+=" var startErrs"+n+" = errors; ";var P=y,N=e.compositeRule;e.compositeRule=p.compositeRule=!0;var M=e.validate(p);p.baseId=E,e.util.varOccurences(M,F)<2?i+=" "+e.util.varReplace(M,F,P)+" ":i+=" var "+F+" = "+P+"; "+M+" ",e.compositeRule=p.compositeRule=N,i+=" if (!"+m+") { for (var "+v+"=startErrs"+n+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+S+"' } ",e.opts.messages!==!1&&(i+=" , message: 'property name \\'"+S+"\\' is invalid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),u&&(i+=" break; "),i+=" } }"}return u&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var gd=J((gC,yd)=>{"use strict";yd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o;var m="schema"+n;if(!p)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],b=o;if(b)for(var v,S=-1,C=b.length-1;S<C;){v=b[S+=1];var F=e.schema.properties[v];F&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all))||(y[y.length]=v)}}else var y=o;if(p||y.length){var A=e.errorPath,$=p||y.length>=e.opts.loopRequired,E=e.opts.ownProperties;if(u)if(i+=" var missing"+n+"; ",$){p||(i+=" var "+m+" = validate.schema"+l+"; ");var P="i"+n,N="schema"+n+"["+P+"]",M="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,N,e.opts.jsonPointers)),i+=" var "+h+" = true; ",p&&(i+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),i+=" for (var "+P+" = 0; "+P+" < "+m+".length; "+P+"++) { "+h+" = "+c+"["+m+"["+P+"]] !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", "+m+"["+P+"]) "),i+="; if (!"+h+") break; } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+M+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var q=i;i=R.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+q+"]); ":i+=" validate.errors = ["+q+"]; return false; ":i+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var L=y;if(L)for(var k,P=-1,V=L.length-1;P<V;){k=L[P+=1],P&&(i+=" || ");var Q=e.util.getProperty(k),Z=c+Q;i+=" ( ( "+Z+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(k)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:Q)+") ) "}i+=") { ";var N="missing"+n,M="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,N,!0):A+" + "+N);var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+M+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var q=i;i=R.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+q+"]); ":i+=" validate.errors = ["+q+"]; return false; ":i+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if($){p||(i+=" var "+m+" = validate.schema"+l+"; ");var P="i"+n,N="schema"+n+"["+P+"]",M="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,N,e.opts.jsonPointers)),p&&(i+=" if ("+m+" && !Array.isArray("+m+")) { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+M+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+m+" !== undefined) { "),i+=" for (var "+P+" = 0; "+P+" < "+m+".length; "+P+"++) { if ("+c+"["+m+"["+P+"]] === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+m+"["+P+"]) "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+M+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(i+=" } ")}else{var G=y;if(G)for(var k,z=-1,ie=G.length-1;z<ie;){k=G[z+=1];var Q=e.util.getProperty(k),M=e.util.escapeQuotes(k),Z=c+Q;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,k,e.opts.jsonPointers)),i+=" if ( "+Z+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(k)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+M+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=A}else u&&(i+=" if (true) {");return i}});var vd=J((bC,bd)=>{"use strict";bd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;if(p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o,(o||p)&&e.opts.uniqueItems!==!1){p&&(i+=" var "+h+"; if ("+f+" === false || "+f+" === undefined) "+h+" = true; else if (typeof "+f+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+c+".length , "+h+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,y=Array.isArray(m);if(!m||m=="object"||m=="array"||y&&(m.indexOf("object")>=0||m.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+h+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var b="checkDataType"+(y?"s":"");i+=" if ("+e.util[b](m,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",p?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var S=i;i=v.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i}});var wd=J((vC,Sd)=>{"use strict";Sd.exports={$ref:Nl(),allOf:$l(),anyOf:ql(),$comment:kl(),const:_l(),contains:Wl(),dependencies:Ul(),enum:Hl(),format:Zl(),if:Kl(),items:Xl(),maximum:Jn(),minimum:Jn(),maxItems:Kn(),minItems:Kn(),maxLength:Yn(),minLength:Yn(),maxProperties:Xn(),minProperties:Xn(),multipleOf:nd(),not:od(),oneOf:dd(),pattern:cd(),properties:hd(),propertyNames:md(),required:gd(),uniqueItems:vd(),validate:Qn()}});var Id=J((SC,Cd)=>{"use strict";var xd=wd(),es=kr().toHash;Cd.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return e.all=es(r),e.types=es(i),e.forEach(function(n){n.rules=n.rules.map(function(s){var o;if(typeof s=="object"){var l=Object.keys(s)[0];o=s[l],s=l,o.forEach(function(u){r.push(u),e.all[u]=!0})}r.push(s);var d=e.all[s]={keyword:s,code:xd[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:xd.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=es(r.concat(a)),e.custom={},e}});var Pd=J((wC,Td)=>{"use strict";var Fd=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Td.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var a=e[r].split("/"),i=t,n;for(n=1;n<a.length;n++)i=i[a[n]];for(n=0;n<Fd.length;n++){var s=Fd[n],o=i[s];o&&(i[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var Ed=J((xC,Ad)=>{"use strict";var Af=Pa().MissingRef;Ad.exports=Od;function Od(t,e,r){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var i=n(t).then(function(){var o=a._addSchema(t,void 0,e);return o.validate||s(o)});return r&&i.then(function(o){r(null,o)},r),i;function n(o){var l=o.$schema;return l&&!a.getSchema(l)?Od.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof Af)return l(d);throw d}function l(d){var u=d.missingSchema;if(p(u))throw new Error("Schema "+u+" is loaded but "+d.missingRef+" cannot be resolved");var c=a._loadingSchemas[u];return c||(c=a._loadingSchemas[u]=a._opts.loadSchema(u),c.then(h,h)),c.then(function(f){if(!p(u))return n(f).then(function(){p(u)||a.addSchema(f,u,void 0,e)})}).then(function(){return s(o)});function h(){delete a._loadingSchemas[u]}function p(f){return a._refs[f]||a._schemas[f]}}}}});var Dd=J((CC,Ld)=>{"use strict";Ld.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c,h="data"+(s||""),p="valid"+n,f="errs__"+n,m=e.opts.$data&&o&&o.$data,y;m?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",y="schema"+n):y=o;var b=this,v="definition"+n,S=b.definition,C="",F,A,$,E,P;if(m&&S.$data){P="keywordValidate"+n;var N=S.validateSchema;i+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+P+" = "+v+".validate;"}else{if(E=e.useCustomRule(b,o,e.schema,e),!E)return;y="validate.schema"+l,P=E.code,F=S.compile,A=S.inline,$=S.macro}var M=P+".errors",R="i"+n,q="ruleErr"+n,L=S.async;if(L&&!e.async)throw new Error("async keyword in sync schema");if(A||$||(i+=""+M+" = null;"),i+="var "+f+" = errors;var "+p+";",m&&S.$data&&(C+="}",i+=" if ("+y+" === undefined) { "+p+" = true; } else { ",N&&(C+="}",i+=" "+p+" = "+v+".validateSchema("+y+"); if ("+p+") { ")),A)S.statements?i+=" "+E.validate+" ":i+=" "+p+" = "+E.validate+"; ";else if($){var k=e.util.copy(e),C="";k.level++;var V="valid"+k.level;k.schema=E.validate,k.schemaPath="";var Q=e.compositeRule;e.compositeRule=k.compositeRule=!0;var Z=e.validate(k).replace(/validate\.schema/g,P);e.compositeRule=k.compositeRule=Q,i+=" "+Z}else{var G=G||[];G.push(i),i="",i+=" "+P+".call( ",e.opts.passContext?i+="this":i+="self",F||S.schema===!1?i+=" , "+h+" ":i+=" , "+y+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var z=s?"data"+(s-1||""):"parentData",ie=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+z+" , "+ie+" , rootData ) ";var Ae=i;i=G.pop(),S.errors===!1?(i+=" "+p+" = ",L&&(i+="await "),i+=""+Ae+"; "):L?(M="customErrors"+n,i+=" var "+M+" = null; try { "+p+" = await "+Ae+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+M+" = e.errors; else throw e; } "):i+=" "+M+" = null; "+p+" = "+Ae+"; "}if(S.modifying&&(i+=" if ("+z+") "+h+" = "+z+"["+ie+"];"),i+=""+C,S.valid)u&&(i+=" if (true) { ");else{i+=" if ( ",S.valid===void 0?(i+=" !",$?i+=""+V:i+=""+p):i+=" "+!S.valid+" ",i+=") { ",c=b.keyword;var G=G||[];G.push(i),i="";var G=G||[];G.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+b.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+b.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var Ee=i;i=G.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Ee+"]); ":i+=" validate.errors = ["+Ee+"]; return false; ":i+=" var err = "+Ee+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var te=i;i=G.pop(),A?S.errors?S.errors!="full"&&(i+=" for (var "+R+"="+f+"; "+R+"<errors; "+R+"++) { var "+q+" = vErrors["+R+"]; if ("+q+".dataPath === undefined) "+q+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+q+".schemaPath === undefined) { "+q+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+q+".schema = "+y+"; "+q+".data = "+h+"; "),i+=" } "):S.errors===!1?i+=" "+te+" ":(i+=" if ("+f+" == errors) { "+te+" } else { for (var "+R+"="+f+"; "+R+"<errors; "+R+"++) { var "+q+" = vErrors["+R+"]; if ("+q+".dataPath === undefined) "+q+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+q+".schemaPath === undefined) { "+q+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+q+".schema = "+y+"; "+q+".data = "+h+"; "),i+=" } } "):$?(i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+b.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+b.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):S.errors===!1?i+=" "+te+" ":(i+=" if (Array.isArray("+M+")) { if (vErrors === null) vErrors = "+M+"; else vErrors = vErrors.concat("+M+"); errors = vErrors.length; for (var "+R+"="+f+"; "+R+"<errors; "+R+"++) { var "+q+" = vErrors["+R+"]; if ("+q+".dataPath === undefined) "+q+".dataPath = (dataPath || '') + "+e.errorPath+"; "+q+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(i+=" "+q+".schema = "+y+"; "+q+".data = "+h+"; "),i+=" } } else { "+te+" } "),i+=" } ",u&&(i+=" else { ")}return i}});var ts=J((IC,Ef)=>{Ef.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var $d=J((FC,Bd)=>{"use strict";var Nd=ts();Bd.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Nd.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Nd.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var qd=J((TC,Md)=>{"use strict";var Lf=/^[a-z_$][a-z0-9_$-]*$/i,Df=Dd(),Nf=$d();Md.exports={add:Bf,get:$f,remove:Mf,validate:rs};function Bf(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Lf.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var i=0;i<a.length;i++)s(t,a[i],e);else s(t,a,e);var n=e.metaSchema;n&&(e.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(n,!0))}r.keywords[t]=r.all[t]=!0;function s(o,l,d){for(var u,c=0;c<r.length;c++){var h=r[c];if(h.type==l){u=h;break}}u||(u={type:l,rules:[]},r.push(u));var p={keyword:o,definition:d,custom:!0,code:Df,implements:d.implements};u.rules.push(p),r.custom[o]=p}return this}function $f(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function Mf(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var a=e[r].rules,i=0;i<a.length;i++)if(a[i].keyword==t){a.splice(i,1);break}return this}function rs(t,e){rs.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Nf,!0);if(r(t))return!0;if(rs.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var Rd=J((PC,qf)=>{qf.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Qd=J((OC,Hd)=>{"use strict";var jd=gl(),jr=Ta(),Rf=vl(),_d=_n(),kf=Hn(),jf=Ll(),_f=Id(),Vd=Pd(),Wd=kr();Hd.exports=Me;Me.prototype.validate=Wf;Me.prototype.compile=zf;Me.prototype.addSchema=Uf;Me.prototype.addMetaSchema=Gf;Me.prototype.validateSchema=Hf;Me.prototype.getSchema=Zf;Me.prototype.removeSchema=Kf;Me.prototype.addFormat=nm;Me.prototype.errorsText=am;Me.prototype._addSchema=Yf;Me.prototype._compile=Xf;Me.prototype.compileAsync=Ed();var $a=qd();Me.prototype.addKeyword=$a.add;Me.prototype.getKeyword=$a.get;Me.prototype.removeKeyword=$a.remove;Me.prototype.validateKeyword=$a.validate;var zd=Pa();Me.ValidationError=zd.Validation;Me.MissingRefError=zd.MissingRef;Me.$dataMetaSchema=Vd;var Ba="http://json-schema.org/draft-07/schema",kd=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Vf=["/properties"];function Me(t){if(!(this instanceof Me))return new Me(t);t=this._opts=Wd.copy(t)||{},cm(this),this._schemas={},this._refs={},this._fragments={},this._formats=jf(t.format),this._cache=t.cache||new Rf,this._loadingSchemas={},this._compilations=[],this.RULES=_f(),this._getId=em(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=kf),this._metaOpts=um(this),t.formats&&lm(this),t.keywords&&dm(this),sm(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),om(this)}function Wf(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var a=this._addSchema(t);r=a.validate||this._compile(a)}var i=r(e);return r.$async!==!0&&(this.errors=r.errors),i}function zf(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function Uf(t,e,r,a){if(Array.isArray(t)){for(var i=0;i<t.length;i++)this.addSchema(t[i],void 0,r,a);return this}var n=this._getId(t);if(n!==void 0&&typeof n!="string")throw new Error("schema id must be string");return e=jr.normalizeId(e||n),Gd(this,e),this._schemas[e]=this._addSchema(t,r,a,!0),this}function Gf(t,e,r){return this.addSchema(t,e,r,!0),this}function Hf(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||Qf(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(r,t);if(!a&&e){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return a}function Qf(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(Ba)?Ba:void 0,t._opts.defaultMeta}function Zf(t){var e=Ud(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return Jf(this,t)}}function Jf(t,e){var r=jr.schema.call(t,{schema:{}},e);if(r){var a=r.schema,i=r.root,n=r.baseId,s=jd.call(t,a,i,void 0,n);return t._fragments[e]=new _d({ref:e,fragment:!0,schema:a,root:i,baseId:n,validate:s}),s}}function Ud(t,e){return e=jr.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function Kf(t){if(t instanceof RegExp)return Na(this,this._schemas,t),Na(this,this._refs,t),this;switch(typeof t){case"undefined":return Na(this,this._schemas),Na(this,this._refs),this._cache.clear(),this;case"string":var e=Ud(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,a=r?r(t):t;this._cache.del(a);var i=this._getId(t);i&&(i=jr.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function Na(t,e,r){for(var a in e){var i=e[a];!i.meta&&(!r||r.test(a))&&(t._cache.del(i.cacheKey),delete e[a])}}function Yf(t,e,r,a){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,n=i?i(t):t,s=this._cache.get(n);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var o=jr.normalizeId(this._getId(t));o&&a&&Gd(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==jr.normalizeId(t.$schema))&&this.validateSchema(t,!0);var u=jr.ids.call(this,t),c=new _d({id:o,schema:t,localRefs:u,cacheKey:n,meta:r});return o[0]!="#"&&a&&(this._refs[o]=c),this._cache.put(n,c),l&&d&&this.validateSchema(t,!0),c}function Xf(t,e){if(t.compiling)return t.validate=i,i.schema=t.schema,i.errors=null,i.root=e||i,t.schema.$async===!0&&(i.$async=!0),i;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var a;try{a=jd.call(this,t.schema,e,t.localRefs)}catch(n){throw delete t.validate,n}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=a,t.refs=a.refs,t.refVal=a.refVal,t.root=a.root,a;function i(){var n=t.validate,s=n.apply(this,arguments);return i.errors=n.errors,s}}function em(t){switch(t.schemaId){case"auto":return im;case"id":return tm;default:return rm}}function tm(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function rm(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function im(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function am(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,a=e.dataVar===void 0?"data":e.dataVar,i="",n=0;n<t.length;n++){var s=t[n];s&&(i+=a+s.dataPath+" "+s.message+r)}return i.slice(0,-r.length)}function nm(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function sm(t){var e;if(t._opts.$data&&(e=Rd(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=ts();t._opts.$data&&(r=Vd(r,Vf)),t.addMetaSchema(r,Ba,!0),t._refs["http://json-schema.org/schema"]=Ba}}function om(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function lm(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function dm(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function Gd(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function um(t){for(var e=Wd.copy(t._opts),r=0;r<kd.length;r++)delete e[kd[r]];return e}function cm(t){var e=t._opts.logger;if(e===!1)t.logger={log:is,warn:is,error:is};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function is(){}});function Ro(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var a=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,n=new Array(i);++a<i;)n[a]=t+a*r;return n}function si(t,e){let r,a;if(e===void 0)for(let i of t)i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)));else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r===void 0?n>=n&&(r=a=n):(r>n&&(r=n),a<n&&(a=n)))}return[r,a]}var ca=class extends Map{constructor(e,r=wh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[a,i]of e)this.set(a,i)}get(e){return super.get(ko(this,e))}has(e){return super.has(ko(this,e))}set(e,r){return super.set(vh(this,e),r)}delete(e){return super.delete(Sh(this,e))}};function ko({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):r}function vh({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function Sh({_intern:t,_key:e},r){let a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function wh(t){return t!==null&&typeof t=="object"?t.valueOf():t}function En(t){return t}function Ln(t,e,...r){return xh(t,En,e,r)}function xh(t,e,r,a){return function i(n,s){if(s>=a.length)return r(n);let o=new ca,l=a[s++],d=-1;for(let u of n){let c=l(u,++d,n),h=o.get(c);h?h.push(u):o.set(c,[u])}for(let[u,c]of o)o.set(u,i(c,s));return e(o)}(t,0)}function pa(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function ha(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function fa(t,e){let r=0,a=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++r,a+=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(n=+n)>=n&&(++r,a+=n)}if(r)return a/r}function ma(t,e){let r=0;if(e===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let i of t)(i=+e(i,++a,t))&&(r+=i)}return r}function jo(t){var e,r,a=t.length;if(a===1)e=0,r=t[0][1];else{for(var i=0,n=0,s=0,o=0,l,d,u,c=0;c<a;c++)l=t[c],d=l[0],u=l[1],i+=d,n+=u,s+=d*d,o+=d*u;e=(a*o-i*n)/(a*s-i*i),r=n/a-e*i/a}return{m:e,b:r}}function _o(t){return function(e){return t.b+t.m*e}}function Vo(t,e){if(t.length<2)return 1;for(var r=0,a=0;a<t.length;a++)r+=t[a][1];for(var i=r/t.length,n=0,s=0;s<t.length;s++)n+=Math.pow(i-t[s][1],2);for(var o=0,l=0;l<t.length;l++)o+=Math.pow(t[l][1]-e(t[l][0]),2);return 1-o/n}var Wo=function(){this.totalCount=0,this.data={}};Wo.prototype.train=function(e,r){this.data[r]||(this.data[r]={});for(var a in e){var i=e[a];this.data[r][a]===void 0&&(this.data[r][a]={}),this.data[r][a][i]===void 0&&(this.data[r][a][i]=0),this.data[r][a][i]++}this.totalCount++};Wo.prototype.score=function(e){var r={},a;for(var i in e){var n=e[i];for(a in this.data)r[a]={},this.data[a][i]?r[a][i+"_"+n]=(this.data[a][i][n]||0)/this.totalCount:r[a][i+"_"+n]=0}var s={};for(a in r){s[a]=0;for(var o in r[a])s[a]+=r[a][o]}return s};var zo=function(){this.weights=[],this.bias=0};zo.prototype.predict=function(e){if(e.length!==this.weights.length)return null;for(var r=0,a=0;a<this.weights.length;a++)r+=this.weights[a]*e[a];return r+=this.bias,r>0?1:0};zo.prototype.train=function(e,r){if(r!==0&&r!==1)return null;e.length!==this.weights.length&&(this.weights=e,this.bias=1);var a=this.predict(e);if(typeof a=="number"&&a!==r){for(var i=r-a,n=0;n<this.weights.length;n++)this.weights[n]+=i*e[n];this.bias+=i}return this};var Nx=607/128,Bx=Math.log(Math.sqrt(2*Math.PI));var $x=Math.sqrt(2*Math.PI);var Ch=Math.sqrt(2*Math.PI);function Ih(t){for(var e=t,r=t,a=1;a<15;a++)r*=t*t/(2*a+1),e+=r;return Math.round((.5+e/Ch*Math.exp(-t*t/2))*1e4)/1e4}var Fh=[];for(ya=0;ya<=3.09;ya+=.01)Fh.push(Ih(ya));var ya;var zu=Eo(Ho(),1);var Uu=Eo(Qd(),1);var ar="24.5.0",nt="arcgis_charts_pie_from_fields_name",qt="arcgis_charts_pie_from_fields_value",xm="arcgis_charts_bar_line_from_fields_name",Cm="arcgis_charts_bar_line_from_fields_value",Xt={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},rr=class extends Error{},vs=class extends rr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},Ss=class extends rr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},ws=class extends rr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Sr=class extends rr{},tn=class extends rr{constructor(e){super(`Invalid unit ${e}`)}},Qe=class extends rr{},Ut=class extends rr{constructor(){super("Zone is an abstract class")}},_="numeric",Rt="short",bt="long",rn={year:_,month:_,day:_},Gu={year:_,month:Rt,day:_},Im={year:_,month:Rt,day:_,weekday:Rt},Hu={year:_,month:bt,day:_},Qu={year:_,month:bt,day:_,weekday:bt},Zu={hour:_,minute:_},Ju={hour:_,minute:_,second:_},Ku={hour:_,minute:_,second:_,timeZoneName:Rt},Yu={hour:_,minute:_,second:_,timeZoneName:bt},Xu={hour:_,minute:_,hourCycle:"h23"},ec={hour:_,minute:_,second:_,hourCycle:"h23"},tc={hour:_,minute:_,second:_,hourCycle:"h23",timeZoneName:Rt},rc={hour:_,minute:_,second:_,hourCycle:"h23",timeZoneName:bt},ic={year:_,month:_,day:_,hour:_,minute:_},ac={year:_,month:_,day:_,hour:_,minute:_,second:_},nc={year:_,month:Rt,day:_,hour:_,minute:_},sc={year:_,month:Rt,day:_,hour:_,minute:_,second:_},Fm={year:_,month:Rt,day:_,weekday:Rt,hour:_,minute:_},oc={year:_,month:bt,day:_,hour:_,minute:_,timeZoneName:Rt},lc={year:_,month:bt,day:_,hour:_,minute:_,second:_,timeZoneName:Rt},dc={year:_,month:bt,day:_,weekday:bt,hour:_,minute:_,timeZoneName:bt},uc={year:_,month:bt,day:_,weekday:bt,hour:_,minute:_,second:_,timeZoneName:bt},Gr=class{get type(){throw new Ut}get name(){throw new Ut}get ianaName(){return this.name}get isUniversal(){throw new Ut}offsetName(e,r){throw new Ut}formatOffset(e,r){throw new Ut}offset(e){throw new Ut}equals(e){throw new Ut}get isValid(){throw new Ut}},as=null,an=class t extends Gr{static get instance(){return as===null&&(as=new t),as}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return wc(e,r,a)}formatOffset(e,r){return _i(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},xs=new Map;function Tm(t){let e=xs.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),xs.set(t,e)),e}var Pm={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Om(t,e){let r=t.format(e).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,n,s,o,l,d,u]=a;return[s,i,n,o,l,d,u]}function Am(t,e){let r=t.formatToParts(e),a=[];for(let i=0;i<r.length;i++){let{type:n,value:s}=r[i],o=Pm[n];n==="era"?a[o]=s:K(o)||(a[o]=parseInt(s,10))}return a}var ns=new Map,Cr=class t extends Gr{static create(e){let r=ns.get(e);return r===void 0&&ns.set(e,r=new t(e)),r}static resetCache(){ns.clear(),xs.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return wc(e,r,a,this.name)}formatOffset(e,r){return _i(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let a=Tm(this.name),[i,n,s,o,l,d,u]=a.formatToParts?Am(a,r):Om(a,r);o==="BC"&&(i=-Math.abs(i)+1);let c=fn({year:i,month:n,day:s,hour:l===24?0:l,minute:d,second:u,millisecond:0}),h=+r,p=h%1e3;return h-=p>=0?p:1e3+p,(c-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},Kd={};function Em(t,e={}){let r=JSON.stringify([t,e]),a=Kd[r];return a||(a=new Intl.ListFormat(t,e),Kd[r]=a),a}var Cs=new Map;function Is(t,e={}){let r=JSON.stringify([t,e]),a=Cs.get(r);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),Cs.set(r,a)),a}var Fs=new Map;function Lm(t,e={}){let r=JSON.stringify([t,e]),a=Fs.get(r);return a===void 0&&(a=new Intl.NumberFormat(t,e),Fs.set(r,a)),a}var Ts=new Map;function Dm(t,e={}){let{base:r,...a}=e,i=JSON.stringify([t,a]),n=Ts.get(i);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),Ts.set(i,n)),n}var Ha=null;function Nm(){return Ha||(Ha=new Intl.DateTimeFormat().resolvedOptions().locale,Ha)}var Ps=new Map;function cc(t){let e=Ps.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Ps.set(t,e)),e}var Os=new Map;function Bm(t){let e=Os.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...pc,...e}),Os.set(t,e)}return e}function $m(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let a,i;try{a=Is(t).resolvedOptions(),i=t}catch{let o=t.substring(0,r);a=Is(o).resolvedOptions(),i=o}let{numberingSystem:n,calendar:s}=a;return[i,n,s]}}function Mm(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function qm(t){let e=[];for(let r=1;r<=12;r++){let a=ne.utc(2009,r,1);e.push(t(a))}return e}function Rm(t){let e=[];for(let r=1;r<=7;r++){let a=ne.utc(2016,11,13+r);e.push(t(a))}return e}function Ma(t,e,r,a){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):a(e)}function km(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||cc(t.locale).numberingSystem==="latn"}var As=class{constructor(e,r,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:i,floor:n,...s}=a;if(!r||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=Lm(e,o)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):eo(e,3);return ze(r,this.padTo)}}},Es=class{constructor(e,r,a){this.opts=a,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&Cr.create(o).valid?(i=o,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||i,this.dtf=Is(r,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:a}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Ls=class{constructor(e,r,a){this.opts={style:"long",...a},!r&&vc()&&(this.rtf=Dm(e,a))}format(e,r){return this.rtf?this.rtf.format(e,r):sy(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},pc={firstDay:1,minimalDays:4,weekend:[6,7]},we=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,a,i,n=!1){let s=e||Oe.defaultLocale,o=s||(n?"en-US":Nm()),l=r||Oe.defaultNumberingSystem,d=a||Oe.defaultOutputCalendar,u=Bs(i)||Oe.defaultWeekSettings;return new t(o,l,d,u,s)}static resetCache(){Ha=null,Cs.clear(),Fs.clear(),Ts.clear(),Ps.clear(),Os.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:a,weekSettings:i}={}){return t.create(e,r,a,i)}constructor(e,r,a,i,n){let[s,o,l]=$m(e);this.locale=s,this.numberingSystem=r||o||null,this.outputCalendar=a||l||null,this.weekSettings=i,this.intl=Mm(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=km(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Bs(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return Ma(this,e,Ic,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");r&=!a;let i=r?{month:e,day:"numeric"}:{month:e},n=r?"format":"standalone";if(!this.monthsCache[n][e]){let s=a?o=>this.dtFormatter(o,i).format():o=>this.extract(o,i,"month");this.monthsCache[n][e]=qm(s)}return this.monthsCache[n][e]})}weekdays(e,r=!1){return Ma(this,e,Pc,()=>{let a=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=Rm(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return Ma(this,void 0,()=>Oc,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ne.utc(2016,11,13,9),ne.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Ma(this,e,Ac,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[ne.utc(-40,1,1),ne.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,r,a){let i=this.dtFormatter(e,r),n=i.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new As(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Es(e,this.intl,r)}relFormatter(e={}){return new Ls(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Em(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||cc(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Sc()?Bm(this.locale):pc}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},ss=null,Ot=class t extends Gr{static get utcInstance(){return ss===null&&(ss=new t(0)),ss}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(mn(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${_i(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${_i(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return _i(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},Ds=class extends Gr{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function vr(t,e){if(K(t)||t===null)return e;if(t instanceof Gr)return t;if(Um(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?an.instance:r==="utc"||r==="gmt"?Ot.utcInstance:Ot.parseSpecifier(r)||Cr.create(t)}else return wr(t)?Ot.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ds(t)}var Js={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Yd={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},jm=Js.hanidec.replace(/[\[|\]]/g,"").split("");function _m(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let a=t.charCodeAt(r);if(t[r].search(Js.hanidec)!==-1)e+=jm.indexOf(t[r]);else for(let i in Yd){let[n,s]=Yd[i];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var Ns=new Map;function Vm(){Ns.clear()}function Bt({numberingSystem:t},e=""){let r=t||"latn",a=Ns.get(r);a===void 0&&(a=new Map,Ns.set(r,a));let i=a.get(e);return i===void 0&&(i=new RegExp(`${Js[r]}${e}`),a.set(e,i)),i}var Xd=()=>Date.now(),eu="system",tu=null,ru=null,iu=null,au=60,nu,su=null,Oe=class{static get now(){return Xd}static set now(e){Xd=e}static set defaultZone(e){eu=e}static get defaultZone(){return vr(eu,an.instance)}static get defaultLocale(){return tu}static set defaultLocale(e){tu=e}static get defaultNumberingSystem(){return ru}static set defaultNumberingSystem(e){ru=e}static get defaultOutputCalendar(){return iu}static set defaultOutputCalendar(e){iu=e}static get defaultWeekSettings(){return su}static set defaultWeekSettings(e){su=Bs(e)}static get twoDigitCutoffYear(){return au}static set twoDigitCutoffYear(e){au=e%100}static get throwOnInvalid(){return nu}static set throwOnInvalid(e){nu=e}static resetCaches(){we.resetCache(),Cr.resetCache(),ne.resetCache(),Vm()}},gt=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},hc=[0,31,59,90,120,151,181,212,243,273,304,334],fc=[0,31,60,91,121,152,182,213,244,274,305,335];function Tt(t,e){return new gt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Ks(t,e,r){let a=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let i=a.getUTCDay();return i===0?7:i}function mc(t,e,r){return r+(Ki(t)?fc:hc)[e-1]}function yc(t,e){let r=Ki(t)?fc:hc,a=r.findIndex(n=>n<e),i=e-r[a];return{month:a+1,day:i}}function Ys(t,e){return(t-e+7)%7+1}function nn(t,e=4,r=1){let{year:a,month:i,day:n}=t,s=mc(a,i,n),o=Ys(Ks(a,i,n),r),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=Vi(d,e,r)):l>Vi(a,e,r)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...yn(t)}}function ou(t,e=4,r=1){let{weekYear:a,weekNumber:i,weekday:n}=t,s=Ys(Ks(a,1,e),r),o=fi(a),l=i*7+n-s-7+e,d;l<1?(d=a-1,l+=fi(d)):l>o?(d=a+1,l-=fi(a)):d=a;let{month:u,day:c}=yc(d,l);return{year:d,month:u,day:c,...yn(t)}}function os(t){let{year:e,month:r,day:a}=t,i=mc(e,r,a);return{year:e,ordinal:i,...yn(t)}}function lu(t){let{year:e,ordinal:r}=t,{month:a,day:i}=yc(e,r);return{year:e,month:a,day:i,...yn(t)}}function du(t,e){if(!K(t.localWeekday)||!K(t.localWeekNumber)||!K(t.localWeekYear)){if(!K(t.weekday)||!K(t.weekNumber)||!K(t.weekYear))throw new Sr("Cannot mix locale-based week fields with ISO-based week fields");return K(t.localWeekday)||(t.weekday=t.localWeekday),K(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),K(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Wm(t,e=4,r=1){let a=hn(t.weekYear),i=Pt(t.weekNumber,1,Vi(t.weekYear,e,r)),n=Pt(t.weekday,1,7);return a?i?n?!1:Tt("weekday",t.weekday):Tt("week",t.weekNumber):Tt("weekYear",t.weekYear)}function zm(t){let e=hn(t.year),r=Pt(t.ordinal,1,fi(t.year));return e?r?!1:Tt("ordinal",t.ordinal):Tt("year",t.year)}function gc(t){let e=hn(t.year),r=Pt(t.month,1,12),a=Pt(t.day,1,sn(t.year,t.month));return e?r?a?!1:Tt("day",t.day):Tt("month",t.month):Tt("year",t.year)}function bc(t){let{hour:e,minute:r,second:a,millisecond:i}=t,n=Pt(e,0,23)||e===24&&r===0&&a===0&&i===0,s=Pt(r,0,59),o=Pt(a,0,59),l=Pt(i,0,999);return n?s?o?l?!1:Tt("millisecond",i):Tt("second",a):Tt("minute",r):Tt("hour",e)}function K(t){return typeof t>"u"}function wr(t){return typeof t=="number"}function hn(t){return typeof t=="number"&&t%1===0}function Um(t){return typeof t=="string"}function Gm(t){return Object.prototype.toString.call(t)==="[object Date]"}function vc(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Sc(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Hm(t){return Array.isArray(t)?t:[t]}function uu(t,e,r){if(t.length!==0)return t.reduce((a,i)=>{let n=[e(i),i];return a&&r(a[0],n[0])===a[0]?a:n},null)[1]}function Qm(t,e){return e.reduce((r,a)=>(r[a]=t[a],r),{})}function bi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Bs(t){if(t==null)return null;if(typeof t!="object")throw new Qe("Week settings must be an object");if(!Pt(t.firstDay,1,7)||!Pt(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Pt(e,1,7)))throw new Qe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Pt(t,e,r){return hn(t)&&t>=e&&t<=r}function Zm(t,e){return t-e*Math.floor(t/e)}function ze(t,e=2){let r=t<0,a;return r?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function gr(t){if(!(K(t)||t===null||t===""))return parseInt(t,10)}function _r(t){if(!(K(t)||t===null||t===""))return parseFloat(t)}function Xs(t){if(!(K(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function eo(t,e,r="round"){let a=10**e;switch(r){case"expand":return t>0?Math.ceil(t*a)/a:Math.floor(t*a)/a;case"trunc":return Math.trunc(t*a)/a;case"round":return Math.round(t*a)/a;case"floor":return Math.floor(t*a)/a;case"ceil":return Math.ceil(t*a)/a;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function Ki(t){return t%4===0&&(t%100!==0||t%400===0)}function fi(t){return Ki(t)?366:365}function sn(t,e){let r=Zm(e-1,12)+1,a=t+(e-r)/12;return r===2?Ki(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function fn(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function cu(t,e,r){return-Ys(Ks(t,1,e),r)+e-1}function Vi(t,e=4,r=1){let a=cu(t,e,r),i=cu(t+1,e,r);return(fi(t)-a+i)/7}function $s(t){return t>99?t:t>Oe.twoDigitCutoffYear?1900+t:2e3+t}function wc(t,e,r,a=null){let i=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(n.timeZone=a);let s={timeZoneName:e,...n},o=new Intl.DateTimeFormat(r,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function mn(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let a=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-a:a;return r*60+i}function xc(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Qe(`Invalid unit value ${t}`);return e}function on(t,e){let r={};for(let a in t)if(bi(t,a)){let i=t[a];if(i==null)continue;r[e(a)]=xc(i)}return r}function _i(t,e){let r=Math.trunc(Math.abs(t/60)),a=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${ze(r,2)}:${ze(a,2)}`;case"narrow":return`${i}${r}${a>0?`:${a}`:""}`;case"techie":return`${i}${ze(r,2)}${ze(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function yn(t){return Qm(t,["hour","minute","second","millisecond"])}var Jm=["January","February","March","April","May","June","July","August","September","October","November","December"],Cc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Km=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ic(t){switch(t){case"narrow":return[...Km];case"short":return[...Cc];case"long":return[...Jm];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Fc=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Tc=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ym=["M","T","W","T","F","S","S"];function Pc(t){switch(t){case"narrow":return[...Ym];case"short":return[...Tc];case"long":return[...Fc];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Oc=["AM","PM"],Xm=["Before Christ","Anno Domini"],ey=["BC","AD"],ty=["B","A"];function Ac(t){switch(t){case"narrow":return[...ty];case"short":return[...ey];case"long":return[...Xm];default:return null}}function ry(t){return Oc[t.hour<12?0:1]}function iy(t,e){return Pc(e)[t.weekday-1]}function ay(t,e){return Ic(e)[t.month-1]}function ny(t,e){return Ac(e)[t.year<0?0:1]}function sy(t,e,r="always",a=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&n){let c=t==="days";switch(e){case 1:return c?"tomorrow":`next ${i[t][0]}`;case-1:return c?"yesterday":`last ${i[t][0]}`;case 0:return c?"today":`this ${i[t][0]}`}}let s=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,d=i[t],u=a?l?d[1]:d[2]||d[1]:l?i[t][0]:t;return s?`${o} ${u} ago`:`in ${o} ${u}`}function pu(t,e){let r="";for(let a of t)a.literal?r+=a.val:r+=e(a.val);return r}var oy={D:rn,DD:Gu,DDD:Hu,DDDD:Qu,t:Zu,tt:Ju,ttt:Ku,tttt:Yu,T:Xu,TT:ec,TTT:tc,TTTT:rc,f:ic,ff:nc,fff:oc,ffff:dc,F:ac,FF:sc,FFF:lc,FFFF:uc},yt=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,a="",i=!1,n=[];for(let s=0;s<e.length;s++){let o=e.charAt(s);o==="'"?((a.length>0||i)&&n.push({literal:i||/^\s+$/.test(a),val:a===""?"'":a}),r=null,a="",i=!i):i||o===r?a+=o:(a.length>0&&n.push({literal:/^\s+$/.test(a),val:a}),a=o,r=o)}return a.length>0&&n.push({literal:i||/^\s+$/.test(a),val:a}),n}static macroTokenToFormatOpts(e){return oy[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,a=void 0){if(this.opts.forceSimple)return ze(e,r);let i={...this.opts};return r>0&&(i.padTo=r),a&&(i.signDisplay=a),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){let a=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(p,f)=>this.loc.extract(e,p,f),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",o=()=>a?ry(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,f)=>a?ay(e,p):n(f?{month:p}:{month:p,day:"numeric"},"month"),d=(p,f)=>a?iy(e,p):n(f?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{let f=t.macroTokenToFormatOpts(p);return f?this.formatWithSystemDefault(e,f):p},c=p=>a?ny(e,p):n({era:p},"era"),h=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return i?n({day:"numeric"},"day"):this.num(e.day);case"dd":return i?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?n({month:"numeric"},"month"):this.num(e.month);case"MM":return i?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?n({year:"numeric"},"year"):this.num(e.year);case"yy":return i?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(p)}};return pu(t.parseFormat(r),h)}formatDurationFromString(e,r){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,i=u=>{switch(u[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},n=(u,c)=>h=>{let p=i(h);if(p){let f=c.isNegativeDuration&&p!==c.largestUnit?a:1,m;return this.opts.signMode==="negativeLargestOnly"&&p!==c.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(u.get(p)*f,h.length,m)}else return h},s=t.parseFormat(r),o=s.reduce((u,{literal:c,val:h})=>c?u:u.concat(h),[]),l=e.shiftTo(...o.map(i).filter(u=>u)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return pu(s,n(l,d))}},Ec=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ci(...t){let e=t.reduce((r,a)=>r+a.source,"");return RegExp(`^${e}$`)}function Ii(...t){return e=>t.reduce(([r,a,i],n)=>{let[s,o,l]=n(e,i);return[{...r,...s},o||a,l]},[{},null,1]).slice(0,2)}function Fi(t,...e){if(t==null)return[null,null];for(let[r,a]of e){let i=r.exec(t);if(i)return a(i)}return[null,null]}function Lc(...t){return(e,r)=>{let a={},i;for(i=0;i<t.length;i++)a[t[i]]=gr(e[r+i]);return[a,null,r+i]}}var Dc=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,ly=`(?:${Dc.source}?(?:\\[(${Ec.source})\\])?)?`,to=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Nc=RegExp(`${to.source}${ly}`),ro=RegExp(`(?:[Tt]${Nc.source})?`),dy=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,uy=/(\d{4})-?W(\d\d)(?:-?(\d))?/,cy=/(\d{4})-?(\d{3})/,py=Lc("weekYear","weekNumber","weekDay"),hy=Lc("year","ordinal"),fy=/(\d{4})-(\d\d)-(\d\d)/,Bc=RegExp(`${to.source} ?(?:${Dc.source}|(${Ec.source}))?`),my=RegExp(`(?: ${Bc.source})?`);function mi(t,e,r){let a=t[e];return K(a)?r:gr(a)}function yy(t,e){return[{year:mi(t,e),month:mi(t,e+1,1),day:mi(t,e+2,1)},null,e+3]}function Ti(t,e){return[{hours:mi(t,e,0),minutes:mi(t,e+1,0),seconds:mi(t,e+2,0),milliseconds:Xs(t[e+3])},null,e+4]}function Yi(t,e){let r=!t[e]&&!t[e+1],a=mn(t[e+1],t[e+2]),i=r?null:Ot.instance(a);return[{},i,e+3]}function Xi(t,e){let r=t[e]?Cr.create(t[e]):null;return[{},r,e+1]}var gy=RegExp(`^T?${to.source}$`),by=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function vy(t){let[e,r,a,i,n,s,o,l,d]=t,u=e[0]==="-",c=l&&l[0]==="-",h=(p,f=!1)=>p!==void 0&&(f||p&&u)?-p:p;return[{years:h(_r(r)),months:h(_r(a)),weeks:h(_r(i)),days:h(_r(n)),hours:h(_r(s)),minutes:h(_r(o)),seconds:h(_r(l),l==="-0"),milliseconds:h(Xs(d),c)}]}var Sy={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function io(t,e,r,a,i,n,s){let o={year:e.length===2?$s(gr(e)):gr(e),month:Cc.indexOf(r)+1,day:gr(a),hour:gr(i),minute:gr(n)};return s&&(o.second=gr(s)),t&&(o.weekday=t.length>3?Fc.indexOf(t)+1:Tc.indexOf(t)+1),o}var wy=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function xy(t){let[,e,r,a,i,n,s,o,l,d,u,c]=t,h=io(e,i,a,r,n,s,o),p;return l?p=Sy[l]:d?p=0:p=mn(u,c),[h,new Ot(p)]}function Cy(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Iy=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Fy=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ty=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function hu(t){let[,e,r,a,i,n,s,o]=t;return[io(e,i,a,r,n,s,o),Ot.utcInstance]}function Py(t){let[,e,r,a,i,n,s,o]=t;return[io(e,o,r,a,i,n,s),Ot.utcInstance]}var Oy=Ci(dy,ro),Ay=Ci(uy,ro),Ey=Ci(cy,ro),Ly=Ci(Nc),$c=Ii(yy,Ti,Yi,Xi),Dy=Ii(py,Ti,Yi,Xi),Ny=Ii(hy,Ti,Yi,Xi),By=Ii(Ti,Yi,Xi);function $y(t){return Fi(t,[Oy,$c],[Ay,Dy],[Ey,Ny],[Ly,By])}function My(t){return Fi(Cy(t),[wy,xy])}function qy(t){return Fi(t,[Iy,hu],[Fy,hu],[Ty,Py])}function Ry(t){return Fi(t,[by,vy])}var ky=Ii(Ti);function jy(t){return Fi(t,[gy,ky])}var _y=Ci(fy,my),Vy=Ci(Bc),Wy=Ii(Ti,Yi,Xi);function zy(t){return Fi(t,[_y,$c],[Vy,Wy])}var fu="Invalid Duration",Mc={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Uy={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Mc},Ft=146097/400,oi=146097/4800,Gy={years:{quarters:4,months:12,weeks:Ft/7,days:Ft,hours:Ft*24,minutes:Ft*24*60,seconds:Ft*24*60*60,milliseconds:Ft*24*60*60*1e3},quarters:{months:3,weeks:Ft/28,days:Ft/4,hours:Ft*24/4,minutes:Ft*24*60/4,seconds:Ft*24*60*60/4,milliseconds:Ft*24*60*60*1e3/4},months:{weeks:oi/7,days:oi,hours:oi*24,minutes:oi*24*60,seconds:oi*24*60*60,milliseconds:oi*24*60*60*1e3},...Mc},zr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Hy=zr.slice(0).reverse();function Yt(t,e,r=!1){let a={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ze(a)}function qc(t,e){let r=e.milliseconds??0;for(let a of Hy.slice(1))e[a]&&(r+=e[a]*t[a].milliseconds);return r}function mu(t,e){let r=qc(t,e)<0?-1:1;zr.reduceRight((a,i)=>{if(K(e[i]))return a;if(a){let n=e[a]*r,s=t[i][a],o=Math.floor(n/s);e[i]+=o*r,e[a]-=o*s*r}return i},null),zr.reduce((a,i)=>{if(K(e[i]))return a;if(a){let n=e[a]%1;e[a]-=n,e[i]+=n*t[a][i]}return i},null)}function yu(t){let e={};for(let[r,a]of Object.entries(t))a!==0&&(e[r]=a);return e}var Ze=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,a=r?Gy:Uy;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||we.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Qe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:on(e,t.normalizeUnit),loc:we.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(wr(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Qe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[a]=Ry(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[a]=jy(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Duration is invalid");let a=e instanceof gt?e:new gt(e,r);if(Oe.throwOnInvalid)throw new ws(a);return new t({invalid:a})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new tn(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let a={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?yt.create(this.loc,a).formatDurationFromString(this,e):fu}toHuman(e={}){if(!this.isValid)return fu;let r=e.showZeros!==!1,a=zr.map(i=>{let n=this.values[i];return K(n)||n===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(n)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=eo(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ne.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?qc(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),a={};for(let i of zr)(bi(r.values,i)||bi(this.values,i))&&(a[i]=r.get(i)+this.get(i));return Yt(this,{values:a},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let a of Object.keys(this.values))r[a]=xc(e(this.values[a],a));return Yt(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...on(e,t.normalizeUnit)};return Yt(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:a,matrix:i}={}){let n={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:a};return Yt(this,n)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return mu(this.matrix,e),Yt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=yu(this.normalize().shiftToAll().toObject());return Yt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},a={},i=this.toObject(),n;for(let s of zr)if(e.indexOf(s)>=0){n=s;let o=0;for(let d in a)o+=this.matrix[d][s]*a[d],a[d]=0;wr(i[s])&&(o+=i[s]);let l=Math.trunc(o);r[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else wr(i[s])&&(a[s]=i[s]);for(let s in a)a[s]!==0&&(r[n]+=s===n?a[s]:a[s]/this.matrix[n][s]);return mu(this.matrix,r),Yt(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Yt(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=yu(this.values);return Yt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(a,i){return a===void 0||a===0?i===void 0||i===0:a===i}for(let a of zr)if(!r(this.values[a],e.values[a]))return!1;return!0}},li="Invalid Interval";function Qy(t,e){return!t||!t.isValid?yi.invalid("missing or invalid start"):!e||!e.isValid?yi.invalid("missing or invalid end"):e<t?yi.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var yi=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Interval is invalid");let a=e instanceof gt?e:new gt(e,r);if(Oe.throwOnInvalid)throw new Ss(a);return new t({invalid:a})}static fromDateTimes(e,r){let a=qi(e),i=qi(r);return Qy(a,i)??new t({start:a,end:i})}static after(e,r){let a=Ze.fromDurationLike(r),i=qi(e);return t.fromDateTimes(i,i.plus(a))}static before(e,r){let a=Ze.fromDurationLike(r),i=qi(e);return t.fromDateTimes(i.minus(a),i)}static fromISO(e,r){let[a,i]=(e||"").split("/",2);if(a&&i){let n,s;try{n=ne.fromISO(a,r),s=n.isValid}catch{s=!1}let o,l;try{o=ne.fromISO(i,r),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Ze.fromISO(i,r);if(d.isValid)return t.after(n,d)}else if(l){let d=Ze.fromISO(a,r);if(d.isValid)return t.before(o,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let a=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:a.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(a,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(qi).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:i}=this,n=0;for(;i<this.e;){let s=r[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(i,o)),i=o,n+=1}return a}splitBy(e){let r=Ze.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:a}=this,i=1,n,s=[];for(;a<this.e;){let o=this.start.plus(r.mapUnits(l=>l*i));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return r>=a?null:t.fromDateTimes(r,a)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,a)}static merge(e){let[r,a]=e.sort((i,n)=>i.s-n.s).reduce(([i,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[i,n.union(s)]:[i.concat([n]),s]:[i,s],[[],null]);return a&&r.push(a),r}static xor(e){let r=null,a=0,i=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?r=l.time:(r&&+r!=+l.time&&i.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:li}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=rn,r={}){return this.isValid?yt.create(this.s.loc.clone(r),e).formatInterval(this):li}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:li}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:li}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:li}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:li}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Ze.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},pi=class{static hasDST(e=Oe.defaultZone){let r=ne.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Cr.isValidZone(e)}static normalizeZone(e){return vr(e,Oe.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||we.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||we.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||we.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||we.create(r,a,n)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||we.create(r,a,n)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||we.create(r,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||we.create(r,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return we.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return we.create(r,null,"gregory").eras(e)}static features(){return{relative:vc(),localeWeek:Sc()}}};function gu(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=r(e)-r(t);return Math.floor(Ze.fromMillis(a).as("days"))}function Zy(t,e,r){let a=[["years",(l,d)=>d.year-l.year],["quarters",(l,d)=>d.quarter-l.quarter+(d.year-l.year)*4],["months",(l,d)=>d.month-l.month+(d.year-l.year)*12],["weeks",(l,d)=>{let u=gu(l,d);return(u-u%7)/7}],["days",gu]],i={},n=t,s,o;for(let[l,d]of a)r.indexOf(l)>=0&&(s=l,i[l]=d(t,e),o=n.plus(i),o>e?(i[l]--,t=n.plus(i),t>e&&(o=t,i[l]--,t=n.plus(i))):t=o);return[t,i,o,s]}function Jy(t,e,r,a){let[i,n,s,o]=Zy(t,e,r),l=e-i,d=r.filter(c=>["hours","minutes","seconds","milliseconds"].indexOf(c)>=0);d.length===0&&(s<e&&(s=i.plus({[o]:1})),s!==i&&(n[o]=(n[o]||0)+l/(s-i)));let u=Ze.fromObject(n,a);return d.length>0?Ze.fromMillis(l,a).shiftTo(...d).plus(u):u}var Ky="missing Intl.DateTimeFormat.formatToParts support";function he(t,e=r=>r){return{regex:t,deser:([r])=>e(_m(r))}}var Yy="\xA0",Rc=`[ ${Yy}]`,kc=new RegExp(Rc,"g");function Xy(t){return t.replace(/\./g,"\\.?").replace(kc,Rc)}function bu(t){return t.replace(/\./g,"").replace(kc," ").toLowerCase()}function $t(t,e){return t===null?null:{regex:RegExp(t.map(Xy).join("|")),deser:([r])=>t.findIndex(a=>bu(r)===bu(a))+e}}function vu(t,e){return{regex:t,deser:([,r,a])=>mn(r,a),groups:e}}function qa(t){return{regex:t,deser:([e])=>e}}function eg(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function tg(t,e){let r=Bt(e),a=Bt(e,"{2}"),i=Bt(e,"{3}"),n=Bt(e,"{4}"),s=Bt(e,"{6}"),o=Bt(e,"{1,2}"),l=Bt(e,"{1,3}"),d=Bt(e,"{1,6}"),u=Bt(e,"{1,9}"),c=Bt(e,"{2,4}"),h=Bt(e,"{4,6}"),p=m=>({regex:RegExp(eg(m.val)),deser:([y])=>y,literal:!0}),f=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return $t(e.eras("short"),0);case"GG":return $t(e.eras("long"),0);case"y":return he(d);case"yy":return he(c,$s);case"yyyy":return he(n);case"yyyyy":return he(h);case"yyyyyy":return he(s);case"M":return he(o);case"MM":return he(a);case"MMM":return $t(e.months("short",!0),1);case"MMMM":return $t(e.months("long",!0),1);case"L":return he(o);case"LL":return he(a);case"LLL":return $t(e.months("short",!1),1);case"LLLL":return $t(e.months("long",!1),1);case"d":return he(o);case"dd":return he(a);case"o":return he(l);case"ooo":return he(i);case"HH":return he(a);case"H":return he(o);case"hh":return he(a);case"h":return he(o);case"mm":return he(a);case"m":return he(o);case"q":return he(o);case"qq":return he(a);case"s":return he(o);case"ss":return he(a);case"S":return he(l);case"SSS":return he(i);case"u":return qa(u);case"uu":return qa(o);case"uuu":return he(r);case"a":return $t(e.meridiems(),0);case"kkkk":return he(n);case"kk":return he(c,$s);case"W":return he(o);case"WW":return he(a);case"E":case"c":return he(r);case"EEE":return $t(e.weekdays("short",!1),1);case"EEEE":return $t(e.weekdays("long",!1),1);case"ccc":return $t(e.weekdays("short",!0),1);case"cccc":return $t(e.weekdays("long",!0),1);case"Z":case"ZZ":return vu(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return vu(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return qa(/[a-z_+-/]{1,256}?/i);case" ":return qa(/[^\S\n\r]/);default:return p(m)}})(t)||{invalidReason:Ky};return f.token=t,f}var rg={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function ig(t,e,r){let{type:a,value:i}=t;if(a==="literal"){let l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}let n=e[a],s=a;a==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let o=rg[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function ag(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function ng(t,e,r){let a=t.match(e);if(a){let i={},n=1;for(let s in r)if(bi(r,s)){let o=r[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(i[o.token.val[0]]=o.deser(a.slice(n,n+l))),n+=l}return[a,i]}else return[a,{}]}function sg(t){let e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,a;return K(t.z)||(r=Cr.create(t.z)),K(t.Z)||(r||(r=new Ot(t.Z)),a=t.Z),K(t.q)||(t.M=(t.q-1)*3+1),K(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),K(t.u)||(t.S=Xs(t.u)),[Object.keys(t).reduce((i,n)=>{let s=e(n);return s&&(i[s]=t[n]),i},{}),r,a]}var ls=null;function og(){return ls||(ls=ne.fromMillis(1555555555555)),ls}function lg(t,e){if(t.literal)return t;let r=yt.macroTokenToFormatOpts(t.val),a=Vc(r,e);return a==null||a.includes(void 0)?t:a}function jc(t,e){return Array.prototype.concat(...t.map(r=>lg(r,e)))}var ln=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=jc(yt.parseFormat(r),e),this.units=this.tokens.map(a=>tg(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,i]=ag(this.units);this.regex=RegExp(a,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,a]=ng(e,this.regex,this.handlers),[i,n,s]=a?sg(a):[null,null,void 0];if(bi(a,"a")&&bi(a,"H"))throw new Sr("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:a,result:i,zone:n,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function _c(t,e,r){return new ln(t,r).explainFromTokens(e)}function dg(t,e,r){let{result:a,zone:i,specificOffset:n,invalidReason:s}=_c(t,e,r);return[a,i,n,s]}function Vc(t,e){if(!t)return null;let r=yt.create(e,t).dtFormatter(og()),a=r.formatToParts(),i=r.resolvedOptions();return a.map(n=>ig(n,t,i))}var ds="Invalid DateTime",Su=864e13;function ki(t){return new gt("unsupported zone",`the zone "${t.name}" is not supported`)}function us(t){return t.weekData===null&&(t.weekData=nn(t.c)),t.weekData}function cs(t){return t.localWeekData===null&&(t.localWeekData=nn(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Vr(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ne({...r,...e,old:r})}function Wc(t,e,r){let a=t-e*60*1e3,i=r.offset(a);if(e===i)return[a,e];a-=(i-e)*60*1e3;let n=r.offset(a);return i===n?[a,i]:[t-Math.min(i,n)*60*1e3,Math.max(i,n)]}function Ra(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Qa(t,e,r){return Wc(fn(t),e,r)}function wu(t,e){let r=t.o,a=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:a,month:i,day:Math.min(t.c.day,sn(a,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Ze.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=fn(n),[l,d]=Wc(o,r,t.zone);return s!==0&&(l+=s,d=t.zone.offset(l)),{ts:l,o:d}}function di(t,e,r,a,i,n){let{setZone:s,zone:o}=r;if(t&&Object.keys(t).length!==0||e){let l=e||o,d=ne.fromObject(t,{...r,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ne.invalid(new gt("unparsable",`the input "${i}" can't be parsed as ${a}`))}function ka(t,e,r=!0){return t.isValid?yt.create(we.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ps(t,e,r){let a=t.c.year>9999||t.c.year<0,i="";if(a&&t.c.year>=0&&(i+="+"),i+=ze(t.c.year,a?6:4),r==="year")return i;if(e){if(i+="-",i+=ze(t.c.month),r==="month")return i;i+="-"}else if(i+=ze(t.c.month),r==="month")return i;return i+=ze(t.c.day),i}function xu(t,e,r,a,i,n,s){let o=!r||t.c.millisecond!==0||t.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=ze(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=ze(t.c.minute),s==="minute")break;o&&(l+=":",l+=ze(t.c.second))}else{if(l+=ze(t.c.minute),s==="minute")break;o&&(l+=ze(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=ze(t.c.millisecond,3))}return i&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=ze(Math.trunc(-t.o/60)),l+=":",l+=ze(Math.trunc(-t.o%60))):(l+="+",l+=ze(Math.trunc(t.o/60)),l+=":",l+=ze(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var zc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ug={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},cg={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Za=["year","month","day","hour","minute","second","millisecond"],pg=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],hg=["year","ordinal","hour","minute","second","millisecond"];function Ja(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new tn(t);return e}function Cu(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ja(t)}}function fg(t){if(ji===void 0&&(ji=Oe.now()),t.type!=="iana")return t.offset(ji);let e=t.name,r=Ms.get(e);return r===void 0&&(r=t.offset(ji),Ms.set(e,r)),r}function Iu(t,e){let r=vr(e.zone,Oe.defaultZone);if(!r.isValid)return ne.invalid(ki(r));let a=we.fromObject(e),i,n;if(K(t.year))i=Oe.now();else{for(let l of Za)K(t[l])&&(t[l]=zc[l]);let s=gc(t)||bc(t);if(s)return ne.invalid(s);let o=fg(r);[i,n]=Qa(t,o,r)}return new ne({ts:i,zone:r,loc:a,o:n})}function Fu(t,e,r){let a=K(r.round)?!0:r.round,i=K(r.rounding)?"trunc":r.rounding,n=(o,l)=>(o=eo(o,a||r.calendary?0:2,r.calendary?"round":i),e.loc.clone(r).relFormatter(r).format(o,l)),s=o=>r.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(r.unit)return n(s(r.unit),r.unit);for(let o of r.units){let l=s(o);if(Math.abs(l)>=1)return n(l,o)}return n(t>e?-0:0,r.units[r.units.length-1])}function Tu(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var ji,Ms=new Map,ne=class t{constructor(e){let r=e.zone||Oe.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new gt("invalid input"):null)||(r.isValid?null:ki(r));this.ts=K(e.ts)?Oe.now():e.ts;let i=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,n]=[e.old.c,e.old.o];else{let s=wr(e.o)&&!e.old?e.o:r.offset(this.ts);i=Ra(this.ts,s),a=Number.isNaN(i.year)?new gt("invalid input"):null,i=a?null:i,n=a?null:s}this._zone=r,this.loc=e.loc||we.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=i,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Tu(arguments),[a,i,n,s,o,l,d]=r;return Iu({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,r]=Tu(arguments),[a,i,n,s,o,l,d]=r;return e.zone=Ot.utcInstance,Iu({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,r={}){let a=Gm(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let i=vr(r.zone,Oe.defaultZone);return i.isValid?new t({ts:a,zone:i,loc:we.fromObject(r)}):t.invalid(ki(i))}static fromMillis(e,r={}){if(wr(e))return e<-Su||e>Su?t.invalid("Timestamp out of range"):new t({ts:e,zone:vr(r.zone,Oe.defaultZone),loc:we.fromObject(r)});throw new Qe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(wr(e))return new t({ts:e*1e3,zone:vr(r.zone,Oe.defaultZone),loc:we.fromObject(r)});throw new Qe("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let a=vr(r.zone,Oe.defaultZone);if(!a.isValid)return t.invalid(ki(a));let i=we.fromObject(r),n=on(e,Cu),{minDaysInFirstWeek:s,startOfWeek:o}=du(n,i),l=Oe.now(),d=K(r.specificOffset)?a.offset(l):r.specificOffset,u=!K(n.ordinal),c=!K(n.year),h=!K(n.month)||!K(n.day),p=c||h,f=n.weekYear||n.weekNumber;if((p||u)&&f)throw new Sr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new Sr("Can't mix ordinal dates with month/day");let m=f||n.weekday&&!p,y,b,v=Ra(l,d);m?(y=pg,b=ug,v=nn(v,s,o)):u?(y=hg,b=cg,v=os(v)):(y=Za,b=zc);let S=!1;for(let N of y){let M=n[N];K(M)?S?n[N]=b[N]:n[N]=v[N]:S=!0}let C=m?Wm(n,s,o):u?zm(n):gc(n),F=C||bc(n);if(F)return t.invalid(F);let A=m?ou(n,s,o):u?lu(n):n,[$,E]=Qa(A,d,a),P=new t({ts:$,zone:a,o:E,loc:i});return n.weekday&&p&&e.weekday!==P.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${P.toISO()}`):P.isValid?P:t.invalid(P.invalid)}static fromISO(e,r={}){let[a,i]=$y(e);return di(a,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[a,i]=My(e);return di(a,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[a,i]=qy(e);return di(a,i,r,"HTTP",r)}static fromFormat(e,r,a={}){if(K(e)||K(r))throw new Qe("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:n=null}=a,s=we.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0}),[o,l,d,u]=dg(s,e,r);return u?t.invalid(u):di(o,l,a,`format ${r}`,e,d)}static fromString(e,r,a={}){return t.fromFormat(e,r,a)}static fromSQL(e,r={}){let[a,i]=zy(e);return di(a,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the DateTime is invalid");let a=e instanceof gt?e:new gt(e,r);if(Oe.throwOnInvalid)throw new vs(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let a=Vc(e,we.fromObject(r));return a?a.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return jc(yt.parseFormat(e),we.fromObject(r)).map(a=>a.val).join("")}static resetCache(){ji=void 0,Ms.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?us(this).weekYear:NaN}get weekNumber(){return this.isValid?us(this).weekNumber:NaN}get weekday(){return this.isValid?us(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?cs(this).weekday:NaN}get localWeekNumber(){return this.isValid?cs(this).weekNumber:NaN}get localWeekYear(){return this.isValid?cs(this).weekYear:NaN}get ordinal(){return this.isValid?os(this.c).ordinal:NaN}get monthShort(){return this.isValid?pi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?pi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?pi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?pi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,a=fn(this.c),i=this.zone.offset(a-e),n=this.zone.offset(a+e),s=this.zone.offset(a-i*r),o=this.zone.offset(a-n*r);if(s===o)return[this];let l=a-s*r,d=a-o*r,u=Ra(l,s),c=Ra(d,o);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[Vr(this,{ts:l}),Vr(this,{ts:d})]:[this]}get isInLeapYear(){return Ki(this.year)}get daysInMonth(){return sn(this.year,this.month)}get daysInYear(){return this.isValid?fi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Vi(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Vi(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:a,calendar:i}=yt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:a,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(Ot.instance(e),r)}toLocal(){return this.setZone(Oe.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:a=!1}={}){if(e=vr(e,Oe.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||a){let n=e.offset(this.ts),s=this.toObject();[i]=Qa(s,n,e)}return Vr(this,{ts:i,zone:e})}else return t.invalid(ki(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:a}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:a});return Vr(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=on(e,Cu),{minDaysInFirstWeek:a,startOfWeek:i}=du(r,this.loc),n=!K(r.weekYear)||!K(r.weekNumber)||!K(r.weekday),s=!K(r.ordinal),o=!K(r.year),l=!K(r.month)||!K(r.day),d=o||l,u=r.weekYear||r.weekNumber;if((d||s)&&u)throw new Sr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Sr("Can't mix ordinal dates with month/day");let c;n?c=ou({...nn(this.c,a,i),...r},a,i):K(r.ordinal)?(c={...this.toObject(),...r},K(r.day)&&(c.day=Math.min(sn(c.year,c.month),c.day))):c=lu({...os(this.c),...r});let[h,p]=Qa(c,this.o,this.zone);return Vr(this,{ts:h,o:p})}plus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e);return Vr(this,wu(this,r))}minus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e).negate();return Vr(this,wu(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let a={},i=Ze.normalizeUnit(e);switch(i){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(i==="weeks")if(r){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(i==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?yt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):ds}toLocaleString(e=rn,r={}){return this.isValid?yt.create(this.loc.clone(r),e).formatDateTime(this):ds}toLocaleParts(e={}){return this.isValid?yt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:a=!1,includeOffset:i=!0,extendedZone:n=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=Ja(s);let o=e==="extended",l=ps(this,o,s);return Za.indexOf(s)>=3&&(l+="T"),l+=xu(this,o,r,a,i,n,s),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?ps(this,e==="extended",Ja(r)):null}toISOWeekDate(){return ka(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:a=!0,includePrefix:i=!1,extendedZone:n=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=Ja(o),(i&&Za.indexOf(o)>=3?"T":"")+xu(this,s==="extended",r,e,a,n,o)):null}toRFC2822(){return ka(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ka(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ps(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:a=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(a&&(i+=" "),r?i+="z":e&&(i+="ZZ")),ka(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ds}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",a={}){if(!this.isValid||!e.isValid)return Ze.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=Hm(r).map(Ze.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=Jy(o,l,n,i);return s?d.negate():d}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?yi.fromDateTimes(this,e):this}hasSame(e,r,a){if(!this.isValid)return!1;let i=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(r,a)<=i&&i<=n.endOf(r,a)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),a=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(i=e.unit,n=void 0),Fu(r,this.plus(a),{...e,numeric:"always",units:i,unit:n})}toRelativeCalendar(e={}){return this.isValid?Fu(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Qe("min requires all arguments be DateTimes");return uu(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Qe("max requires all arguments be DateTimes");return uu(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,a={}){let{locale:i=null,numberingSystem:n=null}=a,s=we.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});return _c(s,e,r)}static fromStringExplain(e,r,a={}){return t.fromFormatExplain(e,r,a)}static buildFormatParser(e,r={}){let{locale:a=null,numberingSystem:i=null}=r,n=we.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return new ln(n,e)}static fromFormatParser(e,r,a={}){if(K(e)||K(r))throw new Qe("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:n=null}=a,s=we.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});if(!s.equals(r.locale))throw new Qe(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:u}=r.explainFromTokens(e);return u?t.invalid(u):di(o,l,a,`format ${r.format}`,e,d)}static get DATE_SHORT(){return rn}static get DATE_MED(){return Gu}static get DATE_MED_WITH_WEEKDAY(){return Im}static get DATE_FULL(){return Hu}static get DATE_HUGE(){return Qu}static get TIME_SIMPLE(){return Zu}static get TIME_WITH_SECONDS(){return Ju}static get TIME_WITH_SHORT_OFFSET(){return Ku}static get TIME_WITH_LONG_OFFSET(){return Yu}static get TIME_24_SIMPLE(){return Xu}static get TIME_24_WITH_SECONDS(){return ec}static get TIME_24_WITH_SHORT_OFFSET(){return tc}static get TIME_24_WITH_LONG_OFFSET(){return rc}static get DATETIME_SHORT(){return ic}static get DATETIME_SHORT_WITH_SECONDS(){return ac}static get DATETIME_MED(){return nc}static get DATETIME_MED_WITH_SECONDS(){return sc}static get DATETIME_MED_WITH_WEEKDAY(){return Fm}static get DATETIME_FULL(){return oc}static get DATETIME_FULL_WITH_SECONDS(){return lc}static get DATETIME_HUGE(){return dc}static get DATETIME_HUGE_WITH_SECONDS(){return uc}};function qi(t){if(ne.isDateTime(t))return t;if(t&&t.valueOf&&wr(t.valueOf()))return ne.fromJSDate(t);if(t&&typeof t=="object")return ne.fromObject(t);throw new Qe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Pu={Count:"count",Start:"minValue",End:"maxValue"};function mg(t,e){let r=e.errors[t];throw new lt(e.modalHeaders.error,r??e.errors.simpleError)}function nr(t){return t.axes?.[0]?.valueFormat?.type}function YC(t){return t.intlOptions}function st(t){return t?.type===g.NumberAxisFormat}function XC(t){return st(t)&&t.intlOptions?.style==="percent"}function Gt(t){return t?.type===g.CategoryAxisFormat}function Ur(t){return t?.type===g.DateAxisFormat}function e1(t){let{oldConfig:e,newConfig:r,rotationChanged:a}=t;return a?[!0,!0]:[e.horizontalAxisLabelsBehavior!==r.horizontalAxisLabelsBehavior,e.verticalAxisLabelsBehavior!==r.verticalAxisLabelsBehavior]}function yg(t){return st(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||st(t[2].valueFormat))}function gg(t){return st(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||st(t[2].valueFormat))}function bg(t){return(Gt(t?.[0]?.valueFormat)||Ur(t?.[0]?.valueFormat))&&st(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||st(t[2].valueFormat))}function vg(t){return Gt(t?.[0]?.valueFormat)&&Gt(t?.[1]?.valueFormat)||Ur(t?.[0]?.valueFormat)&&Gt(t?.[1]?.valueFormat)||Ur(t?.[0]?.valueFormat)&&Ur(t?.[1]?.valueFormat)}function Sg(t){return(Gt(t?.[0]?.valueFormat)||Ur(t?.[0]?.valueFormat))&&st(t?.[1]?.valueFormat)}function wg(t){return st(t?.[0]?.valueFormat)&&st(t?.[1]?.valueFormat)}function xg(t){return st(t?.[0]?.valueFormat)&&st(t?.[1]?.valueFormat)}function Cg(t){return st(t?.[0]?.valueFormat)}function t1(t){let{chartType:e,axesConfig:r,errorStrings:a}=t,i,n;switch(e){case g.GaugeSeries:i=Cg,n="invalidValueFormatForGauge";break;case g.ScatterSeries:i=wg,n="invalidValueFormatForScatterplot";break;case g.HistogramSeries:i=xg,n="invalidValueFormatForHistogram";break;case g.LineSeries:i=yg,n="invalidValueFormatForLineChart";break;case g.BarSeries:i=gg,n="invalidValueFormatForBarChart";break;case g.ComboLineAndBarSeries:i=Sg,n="invalidValueFormatForComboBarLineChart";break;case g.BoxPlotSeries:i=bg,n="invalidValueFormatForBoxPlot";break;case g.HeatSeries:i=vg,n="invalidValueFormatForHeatChart";break}i!==void 0&&n!==void 0&&(i(r)||mg(n,a))}function Ig(t){let{isXAxis:e,chartType:r,valueFormat:a,isAxisForHistogramOverlaySeries:i}=t;return e&&(Gt(a)||r===g.HistogramSeries&&!i||r===g.BarSeries&&st(a))}function r1(t){let{chartConfig:e,isSecondValueAxis:r,seriesIds:a}=t,i=a;return e.axes?.length===3&&(i=e.series.map(n=>{let s="";return(a===void 0||a.includes(n.id))&&(r===!0&&"assignToSecondValueAxis"in n&&n.assignToSecondValueAxis===!0||r!==!0&&(!("assignToSecondValueAxis"in n)||n.assignToSecondValueAxis!==!0))&&({id:s}=n),s}).filter(n=>n!=="")),i}var Fg={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},i1={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},Tr={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},re={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},Tg=32,xr="arcgis_charts_features_extent",ke={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:da.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds"},Uc=["EXPR_1","Expr1","expr1","EXPR1"],a1=1,ot=.7,Pg=25,Gc=[156,156,156,255],Og=[156,156,156,255],n1=cr.Solid,s1=2,Wi={defaultGroupOfSlicesId:"arcgis_charts_group_of_slices",sliceIdPrefix:"arcgis-charts-slice-id",undefinedSliceId:"arcgis-charts-slice-id-undefined",nullSliceId:"arcgis-charts-slice-id-null",emptySliceId:"arcgis-charts-slice-id-empty"},Pi="arcgis_charts_box_plot_category",ae={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},Ag=[[31,120,180,255],[166,206,227,255],[51,160,44,255],[178,223,138,255],[227,26,28,255],[251,154,153,255],[255,127,0,255],[253,191,111,255],[106,61,154,255],[202,178,214,255]],Eg=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]];function At(t){let{colorIndex:e,opacity:r,histogramOverlays:a}=t,i=Math.max(0,e??0),n=[...a===!0?Eg:Ag],[s,o,l,d]=n[i%n.length],u=r!==void 0?r*255:d;return[s,o,l,u]}function Hc(t){return[0,0,0,(t??ot)*255]}function o1(){return{type:g.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:xe.SLS,style:cr.Dot,color:[211,211,211,255],width:1}}}function gn(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function ye(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case re.ChartTitle:e.size=18;break;case re.AxisTitle:e.size=14;break;case re.LegendText:e.size=12;break;case re.LegendTitle:e.size=13;break;case re.DescriptionText:e.size=11;break}return e}function Qc(t="",e=ye(),r){let a=ge.Center;return(r===re.DataLabels||r===re.GuideLabel)&&(a=void 0),{type:xe.TS,color:Hc(),text:t,font:e,horizontalAlignment:a}}function le(t){let{text:e,visible:r,font:a,type:i}=t??{text:"",visible:!0,font:ye()};return{type:g.Text,visible:r,content:Qc(e,a,i)}}function ea(t){let e=t?.useRandomColor??!1,r=t?.useRampColor,a=t?.width??1,i=t?.isHistogramOverlay,n=t?.color??Hc(1);return e?n=gn():r!==void 0&&(i===!0?n=At({colorIndex:r.colorIndex,histogramOverlays:i}):n=At({colorIndex:r.colorIndex})),t?.opacity!==void 0&&(n[3]=t.opacity),{type:xe.SLS,style:cr.Solid,color:n,width:a}}function Lg(){return{type:g.CategoryAxisFormat,characterLimit:11}}function l1(){return{type:g.DateAxisFormat,intlOptions:{}}}function qs(){return{type:g.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function d1(){return{type:g.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function u1(){return{type:g.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function hs(t="Category Axis"){let e=le({text:t,visible:!0,font:ye(re.AxisTitle)});e.content.horizontalAlignment=ge.Center,e.content.verticalAlignment=Pe.Middle;let r=le({text:t,visible:!0,font:ye(re.AxisLabels)});return{type:g.Axis,visible:!0,title:e,labels:r,valueFormat:Lg(),lineSymbol:ea({color:Gc})}}function Ka(t="Value Axis"){let e=le({text:t,visible:!0,font:ye(re.AxisTitle)}),r=le({text:t,visible:!0,font:ye(re.AxisLabels)});return e.content.verticalAlignment=Pe.Middle,e.content.horizontalAlignment=ge.Center,{type:g.Axis,visible:!0,title:e,labels:r,valueFormat:qs(),lineSymbol:ea({color:Gc})}}function Pr(){return{type:g.Legend,visible:!0,title:le({text:"",visible:!0,font:ye(re.LegendTitle)}),body:Qc("",ye(re.LegendText)),position:$i.Right,maxHeight:Number.NaN}}function ja(t){return{type:g.Overlay,visible:!0,created:!1,symbol:ea({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function Or(){return[255,255,255,255]}function sr(t){return t.utilsStrings.chartType.chart}function or(){return`Chart ${Date.now()}`}function c1(t,e=!1){return{type:xe.SFS,style:qr.Solid,color:e?gn(ot):At({colorIndex:t??0,opacity:ot})}}function Dg(t=0){return{type:xe.SMS,style:ua.Circle,color:At({colorIndex:t,opacity:ot}),size:5}}function Ng(t){return{type:xe.SLS,style:cr.Solid,color:At({colorIndex:t,opacity:ot}),width:2}}function Bg(t=!1){return{type:xe.SMS,style:ua.Circle,color:t?gn(ot):At({colorIndex:0,opacity:ot}),size:7}}function p1(){return{type:g.SizePolicy,field:"",scaleType:Mo.Linear,minSize:5,maxSize:30}}function $g(t=!1){return{type:g.Overlays,trendLine:{type:g.Overlay,created:!1,visible:!0,symbol:{type:xe.SLS,style:cr.Solid,color:t?gn():At({colorIndex:1}),width:2}}}}function Mg(t){let e=t??"ObjectID";return{type:g.HeatSeries,id:g.HeatSeries,name:g.HeatSeries,y:"",x:"",dataLabels:le({text:"",visible:!1,font:ye(re.DataLabels)}),query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:"coutnt_objectt_id"}]}}}function qg(){return{type:g.ScatterSeries,id:g.ScatterSeries,name:g.ScatterSeries,x:"",y:"",markerSymbol:Bg(),overlays:$g(),dataLabels:le({text:"",visible:!1,font:ye(re.DataLabels)})}}function Zr(t,e){let r=[],a=t.xAxis,i=t.utilsStrings.statistics.count,n,s,o=ea({opacity:Pg});switch(e===g.HeatSeries?s=hs(i):(s=Ka(i),s.grid=o),e){case g.BarSeries:case g.HeatSeries:{n=hs(a);break}case g.ScatterSeries:{n=Ka(a),n.grid=o;break}case g.RadarSeries:case g.LineSeries:case g.HistogramSeries:{n=Ka(a);break}case g.BoxPlotSeries:{n=hs("");break}}return n!==void 0&&r.push(n,s),r}function Rg(){return{type:g.GaugeNeedle,symbol:{type:xe.SFS,color:[0,0,0,200]}}}function kg(t){let e=[],r=t.xAxis,a=Ka(r);return a.needle=Rg(),e.push(a),e}function jg(t){let e=t.commonStrings,r=t.objectIDField??"ObjectID",a=`${j.Count}_${r}_0`.toUpperCase(),i=e.countSeries;return{type:g.LineSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:Ng(t.seriesIndex),markerSymbol:Dg(t.seriesIndex),dataLabels:le({text:"",visible:!1,font:ye(re.DataLabels)}),temporalBinning:{unit:H.Day,size:0,timeAggregationType:$e.Start,trimIncompleteTimeInterval:!0,nullPolicy:ft.Interpolate}}}function h1(t){return{...jg(t),type:g.RadarSeries}}function _g(t){return{type:xe.SFS,style:qr.Solid,color:At({colorIndex:t,opacity:ot})}}function f1(t){let e=t.objectIDField??"ObjectID",r=t.commonStrings,a=`${j.Count}_${e}_0`.toUpperCase(),i=r.countSeries;return{type:g.BarSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:_g(t.seriesIndex),dataLabels:le({text:"",visible:!1,font:ye(re.DataLabels),type:re.DataLabels})}}function m1(t,e){let r=t.countSeries;return{name:r,type:g.BoxPlotSeries,id:r,fillSymbol:{type:xe.SFS,style:qr.Solid,color:At({colorIndex:e,opacity:ot})},query:{},x:Pi,y:""}}function Vg(){return{type:g.PieTick,visible:!0,lineSymbol:ea({width:1,color:Og})}}function Wg(){return{type:xe.SFS,style:qr.Solid}}function y1(t,e){let r=`${j.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:g.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:r}],groupByFieldsForStatistics:[]},x:"",y:r,fillSymbol:Wg(),dataLabels:le({text:"",visible:!1,font:ye(re.DataLabels),type:re.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...qs(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...qs(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:Vg()}}function g1(t){let e=t.objectIDField??"ObjectID",r=`${j.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:g.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:r}]},x:""}}function zi(){return!1}function b1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,rotated:zi(),orderOptions:{data:{orderType:at.Category,orderBy:We.Ascending}},title:le({text:sr(t),visible:!0,font:ye(re.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:ye(re.DescriptionText)}),background:Or(),axes:Zr(t,g.BarSeries),series:[],legend:Pr()}}function v1(t,e=or()){return{version:ar,type:g.Chart,id:e,rotated:zi(),colorMatch:!0,orderOptions:{data:{orderType:at.Category,orderBy:We.Ascending}},title:le({text:sr(t),visible:!0,font:ye(re.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:ye(re.DescriptionText)}),background:Or(),series:[],legend:Pr(),axes:Zr(t,g.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function S1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,rotated:zi(),orderOptions:{data:{orderType:at.Category,orderBy:We.Ascending}},title:le({text:sr(t),visible:!0,font:ye(re.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:ye(re.DescriptionText)}),background:Or(),axes:Zr(t,g.LineSeries),series:[],legend:Pr()}}function w1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:at.Category,orderBy:We.Ascending}},title:le({text:sr(t),visible:!0,font:ye(re.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:ye(re.DescriptionText)}),background:Or(),axes:Zr(t,g.RadarSeries),series:[],legend:Pr()}}function x1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:at.YValue,orderBy:We.Descending}},title:le({text:sr(t),visible:!0,font:ye(re.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:ye(re.DescriptionText)}),background:Or(),series:[],legend:{...Pr(),displayNumericValue:!1,displayPercentage:!0}}}function C1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,title:le({text:sr(t),visible:!0,font:ye(re.ChartTitle)}),series:[],axes:kg(t)}}function I1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,title:le({text:sr(t),visible:!0,font:ye(re.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:ye(re.DescriptionText)}),background:Or(),axes:Zr(t,g.ScatterSeries),series:[qg()],legend:Pr()}}function F1(t,e){return{version:ar,type:g.Chart,id:or(),title:le({text:sr(t),visible:!0,font:ye(re.ChartTitle)}),background:Or(),axes:Zr(t,g.HeatSeries),series:[Mg(e)],legend:{...Pr(),position:$i.Bottom}}}function zg(){return{type:g.Overlays,mean:ja(1),median:ja(2),standardDeviation:ja(3),comparisonDistribution:ja(4)}}function Ug(){return{type:xe.SFS,style:qr.Solid,color:At({colorIndex:0,opacity:ot})}}function Gg(){return{type:g.HistogramSeries,id:g.HistogramSeries,name:g.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:zg(),dataTransformationType:He.None,fillSymbol:Ug(),dataLabels:le({text:"",visible:!1,font:ye(re.DataLabels)})}}function T1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,title:le({text:sr(t),visible:!0,font:ye(re.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:ye(re.DescriptionText)}),background:Or(),axes:Zr(t,g.HistogramSeries),series:[Gg()],legend:Pr()}}var fs={behaviorAfterLimit:Tr.Reject,maxCategoryCount:Number.NaN,maxBarChartSeriesCount:100,maxBarUniqueSeriesCountTotal:1e4,maxBarTwoSeriesCountPerSeries:1e3,maxBarTwoSeriesCountTotal:2e3,maxBarThreePlusSeriesCountPerSeries:100,maxBarThreePlusSeriesCountTotal:2e3,maxScatterPointsBeforeAggregation:1e4,maxScatterPointsAfterAggregation:1e4,maxLineChartSeriesCount:100,maxLineUniqueSeriesCountTotal:1e4,maxLineTwoSeriesCountPerSeries:5e3,maxLineTwoSeriesCountTotal:1e4,maxLineThreePlusSeriesCountPerSeries:1e3,maxLineThreePlusSeriesCountTotal:1e4,maxPieChartSliceCountTotal:300,maxGaugeByFeaturesLimit:50,maxBoxPlotSeriesCount:100,maxBoxUniqueSeriesCountTotal:1e4,maxBoxTwoSeriesCountPerSeries:1e3,maxBoxTwoSeriesCountTotal:2e3,maxBoxThreePlusSeriesCountPerSeries:100,maxBoxThreePlusSeriesCountTotal:2e3,maxBoxPlotOutlierLimit:1e4,maxHeatChartCellLimit:1e4};function Jr(t){let e={...fs};return t!==void 0&&Object.keys(fs).forEach(r=>{let a=r;e[a]=t[a]??fs[a]}),e}function ta(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:200}}function P1(t,e){let r;switch(t){case j.Average:{r=e.utilsStrings.statistics.mean;break}case j.ContinuousPercentile:{r=e.utilsStrings.statistics.median;break}case j.Sum:{r=e.utilsStrings.statistics.sum;break}case j.Minimum:{r=e.utilsStrings.statistics.minimum;break}case j.Maximum:{r=e.utilsStrings.statistics.maximum;break}case j.Variance:{r=e.utilsStrings.statistics.variance;break}case j.DiscretePercentile:{r=e.utilsStrings.statistics.discretePercentile;break}case j.NoAggregation:{r=e.utilsStrings.statistics.noAggregation;break}case j.Count:default:{r=e.utilsStrings.statistics.count;break}}return r}function O1(t,e){let r;switch(t){case $e.End:{r=e.timeAggregationTypes.end;break}case $e.Start:{r=e.timeAggregationTypes.start;break}default:r="";break}return r}function Hg(){return Dt.Side}function A1(t){return t.utilsStrings.notAvailable}var Qg=0,Zg="_arcgis_charts_outliers",Jg="_arcgis_charts_z_score",E1=[210,210,210,255*ot],L1=" percentage ",ms=[150,150,150,255],O={aria:{defaultChartItemRole:"figure"},title:{marginBottom:8,wrap:!0},subtitle:{marginBottom:10,wrap:!0},rotated:!1,legendProperties:{legendLabels:{marginLeft:5,marginRight:5,truncate:!1,applyOnClones:!0,wrap:!0,maxWidth:200},valueLabels:{wrap:!0,maxWidth:200},legendTitle:{wrap:!0,maxWidth:220,marginLeft:10,marginRight:10,marginTop:10},legendMarkersSize:14,legendLabelReducedOpacity:.5,rectangleMarkerRadius:3,roundedMarkerRadius:12,legendPaddingRightWithScrollbarVisible:10,maxHeight:100,marginTop:2,marginBottom:2,marginLeft:0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,position:$i.Right},footer:{wrap:!0,horizontalCenter:ge.Center,verticalCenter:Pe.Middle,align:ge.Center},axisLabel:{rotation:0,align:ge.Center,horizontalCenter:ge.Center,verticalCenter:Pe.Top,dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:ge.Left,verticalCenter:Pe.Bottom,dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:ge.Center,verticalCenter:Pe.Middle,dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:ge.Center,valign:Pe.Middle,rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:ge.Center,valign:Pe.Middle,rotation:270,wrap:!0},titleLabel:{align:ge.Center,wrap:!0},subtitleLabel:{align:ge.Center,wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:ge.Right,align:ge.Right,verticalCenter:Pe.Middle,wrap:!0},horizontalLineGuideLabels:{horizontalCenter:ge.Right,align:ge.Right,verticalCenter:Pe.Top,wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:ge.Center,verticalCenter:Pe.Top,valign:Pe.Top},verticalLineGuideLabels:{horizontalCenter:ge.Right,verticalCenter:Pe.Bottom,valign:Pe.Top,wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:xe.SLS,style:cr.Dash,color:[0,0,0,102],width:1},horizontalLineVisible:!1,verticalLineVisible:!1},gauge:{innerRadius:80,radius:80,startAngle:-180,endAngle:180,innerLabelToInnerChartRatio:.5,axisLabelToInnerChartRatio:.13,innerLabelAutoMinFontSize:14,innerLabelAutoMaxFontSize:100,axisLabelAutoMinFontSize:14,axisLabelAutoMaxFontSize:40,gaugeMinGridDistance:1,axisMinimum:0,axisMaximum:100,numberOfLabelIntervals:5,numberOfTicksBetweenTwoLabels:4,maximumNumberOfLabelIntervals:24,paddingTop:10,paddingBottom:10,paddingRight:5,paddingLeft:5},gaugeTicksLength:7,gaugeInnerLabel:{horizontalCenter:ge.Center,verticalCenter:Pe.Middle},gaugeNeedle:{startWidth:10,endWidth:1,innerRadius:25,displayPin:!1},gaugeFirstLabelId:"arcgis_charts_gauge_first_label",gaugeLastLabelId:"arcgis_charts_gauge_last_label",headerContainer:{layout:"vertical",width:"100%",paddingBottom:5},footerContainer:{layout:"vertical",width:"100%",paddingTop:5,paddingBottom:15},paddingMinSize:0,marginMinSize:0,chartPaddingMinSize:7,chartPaddingRightWhenLegendNotOnRight:15,chartAndLegendContainer:{paddingTop:0},chartContainer:{paddingBottom:0,paddingTop:15},chartContainerPaddingTopWhenRotated:5,dataLabelInitialize:{strokeWidth:0,applyOnClones:!0},dataLabel:{align:ge.Center,horizontalCenter:ge.Center,valign:Pe.Bottom,verticalCenter:Pe.Top,dy:-3},dataLabelRotated:{align:ge.Right,horizontalCenter:ge.Right,valign:Pe.Middle,verticalCenter:Pe.Middle,dx:2},dataLabelStackedRotated:{align:ge.Center,horizontalCenter:ge.Center,valign:Pe.Middle,verticalCenter:Pe.Middle},dataLabelStackedNonRotated:{align:ge.Center,horizontalCenter:ge.Center,valign:Pe.Middle,verticalCenter:Pe.Middle},dataLabelNegative:{paddingTop:5,paddingRight:5},rotatedChartPadding:{paddingTop:2,paddingRight:2},scatterplotSeries:{strokeOpacity:0,r2:Number.NaN,trendLinePoints:[{},{}]},histogramSeries:{normalDistribNumberOfPoints:100},lineSeries:{strokeWidth:2,lineSmoothed:!1,lineSmoothedKind:No.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:Dt.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:5,markerStyle:ua.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,defaultStatParameterValue:.5,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:Qg,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:Wi.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:xe.SFS,color:[210,210,210,255*ot]}},defaultPadding:0,alignDataLabels:!1,ticksOpacity:1,minimumSize:20,technicalFieldSliceId:"arcgis_charts_slice_id",technicalFieldSlicePercent:"arcgis_charts_slice_percent",technicalFieldGroupedSlices:"arcgis_charts_grouped_slices"},pieSliceCustomLabelName:"customLabel",yAxisLabelMaxWidth:100,xAxisLabelMaxWidth:75,axisLabelPadding:1.5,categoryAxisLabelPadding:3,seriesSort:We.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],lightTextColor:[255,255,255,255],darkTextColor:[0,0,0,255],grayColor:ms,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderBackground:[255,255,255,230],loaderSpinnerColor:[0,122,194,255],loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",markerTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalDateValue:"arcgis_charts_original_date_value",typeOrDomainFieldName:"arcgis_charts_type_domain_field_name",typeOrDomainIdValue:"arcgis_charts_type_domain_id_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_axis_field",nullValue:"arcgis_charts_null",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:xe.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:xe.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:Fg.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_arcgis_charts_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",options:{hideEmptySeries:!0,replaceNoValueCategoryWithZero:!0,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",symbol:{type:xe.SFS,color:ms,outline:{type:xe.SLS,style:cr.Solid,color:ms,width:1}}}},Zc={...O,chartPadding:5,footerContainer:{...O.footerContainer,paddingTop:0,paddingBottom:0},headerContainer:{...O.headerContainer,paddingBottom:0},chartContainer:{...O.chartContainer},dataLabel:{...O.dataLabel,verticalCenter:"bottom"},scrollbarPadding:12,zIndexes:{guide:100,scatterplotTrendLine:2,bulletMarkers:1},verticalSurfaceGuideLabels:{wrap:!0},verticalLineGuideLabels:{wrap:!0,rotation:90},horizontalSurfaceGuideLabels:{wrap:!0},horizontalLineGuideLabels:{wrap:!0},overlayId:{scatterplotTrendLine:"arcgis_charts_scatter_plot_trendline",histogramMean:"arcgis_charts_histogram_mean",histogramMedian:"arcgis_charts_histogram_median",histogramStdDev:"arcgis_charts_histogram_std_dev",histogramNormalDistribution:"arcgis_charts_histogram_normal_distribution"},axisLabelSpacing:{verticalAxisLabelSidePadding:8,horizontalAxisLabelPaddingTop:6},legendPadding:20,heatChart:{gradientHeatRules:{minColor:[255,255,200,255],maxColor:[255,0,0,255],outsideRangeLowerColor:[250,250,250,255],outsideRangeUpperColor:[0,0,255,255]},legend:{position:$i.Bottom,chartPadding:40,legendPadding:20,size:20},emptyCells:{symbol:{type:xe.SFS,style:qr.Solid,color:O.grayColor},text:"null"}},heatChartLabelPadding:{paddingTop:2},heatChartFirstDayOfWeek:7,pieChartDataLabel:{minWidth:30}};function Kg(t){let{stringToTruncate:e,characterLimit:r,ellipsis:a=O.chartEllipsis}=t,i=e;return typeof r=="number"&&Number.isFinite(r)&&r>0&&r<e.length&&(i=e.slice(0,r),i=`${i}${a}`),i}function D1(t,e=":"){return t?`\u200F${e}`:`\u200E${e}`}function N1(t){return e=>{let r=typeof e!="string"?e?.toString()??"":e;return!Re(r)&&r!==O.htmlEmptyContent&&(r=Kg({stringToTruncate:r,characterLimit:t})),r}}function Yg(t){let e=/[[]/gu,r=/[\]]/gu,a=/[{]/gu,i=/[}]/gu,n=/[']/gu;return t=t.replace(e,"[["),t=t.replace(r,"]]"),t=t.replace(a,"{{"),t=t.replace(i,"}}"),t=t.replace(n,"''"),t}function Xg(t,e){let r="";return t!==void 0&&(r=`${e==="amChartsV5"?"fontStyle":"font-style"}:${t};`),r}function eb(t,e){let r="";return t===!0&&(r=`${e==="amChartsV5"?"letterSpacing":"letter-spacing"}:1px;`),r}function B1(t){let{textSymbol:e,placeholderString:r,format:a,axisLabelsBehavior:i,defaults:n}=t,s=Xg(e?.font?.style,a),o=eb(e?.kerning,a),l=r??e?.text??"";if(a==="html"){let{wrap:d,maxWidth:u}=n??{};i===Bo.Wrap&&(d=!0,u=u??O.xAxisLabelMaxWidth);let c=d===!0&&Number.isFinite(u)?`max-width: ${u}px; word-break: break-word;`:"";l=`<p style="margin:0;${s}${o}${c}">${l}</p>`}else l=Yg(l),(s!==""||o!=="")&&(l=`[${s}${o}]${l}[/]`);return l}function tb(t){return t?t.replace(/[A-Z]/gu,e=>`-${e.toLowerCase()}`):void 0}function rb(t,e){return t[0].dataTransformationType!==e[0].dataTransformationType}function ib(t,e){return t[0].binCount!==e[0].binCount}function $1(t,e){let r=!0,a=X(t?.series),i=X(e?.series);return a!==i&&(r=a===g.ComboLineAndBarSeries&&(i===g.BarSeries||i===g.LineSeries)||i===g.ComboLineAndBarSeries&&(a===g.BarSeries||a===g.LineSeries)||a===g.BarSeries&&i===g.LineSeries||a===g.LineSeries&&i===g.BarSeries),r}function Rs(t,e){return t!==void 0&&e!==void 0&&e>0}function M1(t){let{chartConfig:e,queryObject:r,chartData:a}=t,i=[],n=Y(e.series),s=mp(e),o=ce(r),l=e.chartRenderer??o?.renderer?.toJSON();return i=e.series.map((d,u)=>{let c=X([d]),h;return(c===g.BarSeries||c===g.LineSeries||c===g.RadarSeries)&&(d.type===g.BarSeries?h=d.fillSymbol?.color:(d.type===g.RadarSeries||d.type===g.LineSeries)&&(h=d.lineSymbol?.color),s?h=fb({dataItem:a[0],seriesConfig:d,chartSubType:n,colorMatch:s,rendererType:l?.type})?.color:h===void 0&&(h=At({colorIndex:u}))),h}).filter(d=>d!==void 0),i}function ks(t){return t!==x.PieNoAggregation&&t!==x.BarAndLineNoAggregation&&t!==x.BarAndLineSplitByNoAggregation}function ab(t){let e=Y(t.series);return e===x.BarAndLineFromFields||e===x.PieFromFields||e===x.BoxPlotMonoField||e===x.BoxPlotMultiFields||e===x.BoxPlotMonoFieldAndSplitBy||e===x.BoxPlotMultiFieldsAndSplitBy}function Ui(t){return t&&"showMean"in t&&typeof t.showMean=="boolean"?t.showMean:!1}function nb(t){return t&&"showOutliers"in t&&typeof t.showOutliers=="boolean"?t.showOutliers:void 0}function q1(){return`{name} {${O.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`}var hi={ChartRenderer:1,LayerRenderer:2};function R1(t){let{chartConfig:e,queryObject:r}=t,a=!1;if(e.chartRenderer)a=!0;else{let{series:i}=e,n=X(i),s=Y(i),o=Ar(e),l=Yr({seriesConfig:o}),d=ce(r)?.renderer;switch(d?.type){case Ye.Simple:a=n===g.HistogramSeries||n===g.ScatterSeries||s===x.BarAndLineMonoField||s===x.BoxPlotMonoField||s===x.BoxPlotMultiFields||s===x.BoxPlotMonoFieldAndCategory||s===x.BarAndLineNoAggregation&&i.length===1&&!l;break;case Ye.UniqueValue:{let u=d?.field,c=Xe(o.query?.where),{x:h}=o;a=(s===x.BoxPlotMonoFieldAndSplitBy||s===x.BoxPlotMultiFieldsAndSplitBy||s===x.BoxPlotMonoFieldAndCategoryAndSplitBy||s===x.BarAndLineSplitByNoAggregation||s===x.BarAndLineSplitBy)&&u===c||(s===x.BoxPlotMonoFieldAndCategory||s===x.PieFromCategory||s===x.BarAndLineMonoField)&&u===h||s===x.BarAndLineNoAggregation||s===x.PieNoAggregation||n===g.ScatterSeries}break;case Ye.PieChart:a=s===x.PieFromFields||s===x.BarAndLineFromFields||s===x.BarAndLineMultiFields||s===x.BarAndLineMonoField||s===x.BoxPlotMonoField||s===x.BoxPlotMultiFields||s===x.BoxPlotMonoFieldAndCategory||s===x.BoxPlotMultiFieldsAndCategory;break;case Ye.ClassBreaks:a=n===g.HeatSeries||n===g.ScatterSeries||s===x.BarAndLineNoAggregation||s===x.PieNoAggregation;break;case Ye.Dictionary:case Ye.DotDensity:case Ye.Heatmap:break}}return a}function sb(t,e){return tb(t?.type)??e?.type}function ob(t){let e=O.rendererSymbolField,r=e in t?e:void 0;if(!r){let a=t[O.originalCategoryValue];r=Object.keys(t).find(i=>{let n=t[i];return i.includes(e)&&n?.label&&n?.uniqueValue===a}),r||(r=Object.keys(t).find(i=>i.includes(e))??"")}return t[r]?.label}function lb(t){return t?.type!==void 0&&(t.color!==void 0||t.label!==void 0||t.style!==void 0||t.outline!==void 0)}function Jc(t){let{symbolField:e,dataItem:r,rendererSymbol:a,rendererOrigin:i}=t,n=!1;if(!lb(a))delete r[e];else{let s={...a};s.color!==void 0&&i===hi.LayerRenderer&&(s.color[3]=ot*255),i===hi.LayerRenderer&&(delete s.style,delete s.outline,delete s.label),r[e]=s,n=!0}return n}function db(t){let{renderer:e,seriesConfig:r,chartSubType:a,dataItem:i,rendererOrigin:n}=t,s,o=!1,l=X(r),{outline:d,attributes:u}=e;return u.forEach(c=>{let{field:h}=c,{color:p,label:f}=c,m;Array.isArray(p)&&p?.length===4?m=p:p&&"toRgba"in p&&(m=p.toRgba());let y=!1,b=!0;switch(l){case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:case g.RadarSeries:if(a!==x.BarAndLineFromFields){let v=r.find(S=>S.query?.outStatistics?.[0]?.onStatisticField===h);v!==void 0&&"y"in v?h=[v.y].flat()[0]:h=""}y=a!==x.BarAndLineFromFields||h===i[O.originalCategoryValue];break;case g.PieSeries:y=a===x.PieFromFields&&h===i[O.originalCategoryValue];break;case g.BoxPlotSeries:a===x.BoxPlotMonoField||a===x.BoxPlotMonoFieldAndCategory?y=h===r[0].y:h&&(a===x.BoxPlotMultiFields||a===x.BoxPlotMultiFieldsAndCategory)&&(y=r.map(v=>v.y).flat().includes(h)),b=!1;break}y&&m&&(s={type:xe.SMS,color:m,label:b&&f?f:void 0},d!=null&&(s.outline=d),Jc({dataItem:i,symbolField:a===x.BarAndLineFromFields||a===x.PieFromFields?O.rendererSymbolField:`${O.rendererSymbolField}_${h}`,rendererSymbol:s,rendererOrigin:n})&&(o=!0))}),{rendererSymbol:s,colorMatchApplied:o}}function ub(t){let{seriesConfig:e,chartSubType:r,rendererType:a}=t,i=O.rendererSymbolField;if(a===Ye.UniqueValue){if(gp(r)){let n=dt({where:e.query?.where,keepSurroundingQuotes:!1,escape:!1});n===null?i=O.nullValue:r===x.BarAndLineSplitBy&&typeof e.y=="string"?i=e.y:r===x.BarAndLineSplitByNoAggregation&&typeof e.y=="string"?i=`${e.y}_${n}`:i=`${n}`}}else if(a===Ye.PieChart)switch(r){case x.BoxPlotMultiFields:i=Array.isArray(e.y)?e.y.flat():e.y;break;case x.BarAndLineMonoField:case x.BarAndLineMultiFields:case x.BoxPlotMonoField:case x.BoxPlotMonoFieldAndCategory:case x.BoxPlotMultiFieldsAndCategory:i=e.y;break}return i}function Kc(t){let{seriesConfig:e,chartSubType:r,rendererType:a,dataItem:i}=t,n=ub({seriesConfig:e,chartSubType:r,rendererType:a});return n instanceof Array&&e.type===g.BoxPlotSeries&&a===Ye.PieChart&&i!==void 0&&(n=n.find(s=>s===i[Pi])??n[0]),n=n!==O.rendererSymbolField?`${O.rendererSymbolField}_${n.toString()}`:n,n}function cb(t){let{chartRenderer:e,queryObject:r}=t,a=e!==void 0?{...ce(r),renderer:Zs.fromJSON(e)}:ce(r);return new vm({layer:a})}async function pb(t){let{seriesConfig:e,dataItem:r,renderer:a,rendererType:i,rendererOrigin:n,chartSubType:s,splitByField:o,graphicTemplate:l,rendererFieldNames:d,mapAttributesToSymbol:u}=t,c,h=!1;if(i===Ye.PieChart){let p=db({renderer:a,seriesConfig:e,chartSubType:s,dataItem:r,rendererOrigin:n});c=p.rendererSymbol,h=p.colorMatchApplied}else if(!kp(r)){let{x:p}=e[0],f=new Map;o&&o.trim()!==""?e.forEach(m=>{if(m.type===g.BarSeries||m.type===g.LineSeries||m.type===g.BoxPlotSeries||m.type===g.RadarSeries){let y=Kc({seriesConfig:m,chartSubType:s,rendererType:i,dataItem:r}),b=dt({where:m.query?.where,normalize:!0,keepSurroundingQuotes:!1,escape:!1});f.set(y,{...r,[o]:b})}}):e[0].type===g.HeatSeries&&i===Ye.ClassBreaks?f.set(O.rendererSymbolField,{[ae.valueField]:r[ae.valueField]}):f.set(O.rendererSymbolField,{...r,[p]:bb(r)});try{let m=Array.from(f.entries()),y=l.clone();y.layer=l.layer;let b=a?.uniqueValueInfos;for(let v=0;v<m.length;v+=1){let[S,C]=m[v];if(Ou({mode:"encode",x:p,splitByField:o,attributes:C}),d&&d.length>0&&Object.keys(C).forEach(F=>{d.includes(F)||delete C[F]}),y.attributes=C,u?.has(JSON.stringify(C)))c=u.get(JSON.stringify(C));else{if(c=(await xi.getDisplayedSymbol(y))?.toJSON(),c!=null){c.color===void 0&&(c.color=(await xi.getDisplayedColor(y))?.toJSON());let F=await xi.getLegendLabel(y);F!=null&&F!==""&&(c.label=F,c.uniqueValue=b?.find(A=>A.label===F)?.value??void 0)}u?.set(JSON.stringify(C),c)}Ou({mode:"revert",x:p,splitByField:o,attributes:r}),Jc({dataItem:r,symbolField:S,rendererSymbol:c,rendererOrigin:n})&&(h=!0)}}catch{}}return{rendererSymbol:c,colorMatchApplied:h}}function hb(t){let e=t;return t?.type==="uniqueValue"&&(t.uniqueValueInfos=t.uniqueValueInfos.map(r=>{let a=r.value===null?O.nullValue:r.value;return{...r,value:a}})),e}function Ou(t){let{splitByField:e,attributes:r,x:a,mode:i}=t;[a,e??""].forEach(n=>{r[n]===(i==="encode"?null:O.nullValue)&&(r[n]=i==="encode"?O.nullValue:null)})}async function k1(t){let{data:e,queryObject:r,chartConfig:a,allowColorMatch:i}=t,n=!1,s=[];if(i){let{series:o,chartRenderer:l}=a,d=hb(l),u=d?hi.ChartRenderer:hi.LayerRenderer,c=r?ce(r):void 0,h=d??c?.renderer,p;c&&u===hi.LayerRenderer?s=await Qp(c):u===hi.ChartRenderer&&(s=yb(h));let f=sb(d,c?.renderer),m=cb({chartRenderer:l,queryObject:r}),y=Y(o),b=Ar(a),v=Xe(b.query?.where);p=new Map;for(let S=0;S<e.length;S+=1){let C=e[S],F=await pb({seriesConfig:a.series,dataItem:C,renderer:h,rendererType:f,rendererOrigin:u,chartSubType:y,splitByField:v,graphicTemplate:m,mapAttributesToSymbol:p,rendererFieldNames:s});n=n||F.colorMatchApplied}}return{dataItems:e,colorMatchApplied:n,rendererFieldNames:s}}function fb(t){let{dataItem:e,seriesConfig:r,chartSubType:a,colorMatch:i,rendererType:n}=t,s;if(i&&e!==void 0){let o=Kc({seriesConfig:r,chartSubType:a,rendererType:n,dataItem:e});s=e[o]}return s}function j1(t){let{seriesSymbol:e,rendererSymbol:r,colorIndex:a}=t,i=r?.color??e.color;i=i??At({colorIndex:a,opacity:ot});let n={...e,color:i};return r?.type===e.type&&r.style!==void 0&&(n.style=r.style),n.type!==xe.SLS&&(n.outline={type:xe.SLS,style:r?.outline?.style??n.outline?.style,width:r?.outline?.width??n.outline?.width,color:r?.outline?.color??n.outline?.color??r?.color}),n}function mb(t){let e=[];return t&&(e=t.series.flatMap(r=>r.query?.outStatistics?.map(a=>a.onStatisticField)).filter(r=>r!==void 0),e.length===0&&(e=tt(t.series))),e}function _1(t,e){let r=!1;if(t&&e&&e.length>0&&mp(t)){let a=ab(t),i=Ar(t);a?r=mb(t).some(n=>e.includes(n)):r=e.includes(i.x)}return r}function yb(t){let e=[];if(t&&"type"in t&&typeof t.type=="string")switch(t.type){case"uniqueValue":"field1"in t&&typeof t.field1=="string"&&(e=[t.field1]);break;case"classBreaks":"field"in t&&typeof t.field=="string"&&(e=[t.field]);break;case"pieChart":"attributes"in t&&Array.isArray(t.attributes)&&(e=t.attributes.map(r=>r.field));break}return e}function gb(t){let e;return t?.[0]!==void 0&&(e=t.reduce((r,a)=>({...r,xmin:Math.min(r.xmin,a.xmin),xmax:Math.max(r.xmax,a.xmax),ymin:Math.min(r.ymin,a.ymin),ymax:Math.max(r.ymax,a.ymax)}),t[0])),e}function Gi(t){let{value:e,dataContext:r,specificField:a,preferLabel:i,keepNullValues:n=!1,useRendererLabel:s=!1,config:o}=t,l=e,{originalCategoryValue:d,originalDateValue:u,typeOrDomainIdValue:c}=O;if(r!==void 0){let h=s?ob(r):void 0;a!==void 0&&r[a]!==void 0?l=r[a]:h!==void 0?l=h:i===!1&&r[c]!==void 0?l=r[c]:r[u]!==void 0?l=r[u]:r[d]!==void 0?l=r[d]:r[nt]!==void 0&&(l=r[nt]),!n&&l===null&&(l="null",o?.series?.[0].type===g.BarSeries&&(l=o.series?.[0]?.nullCategory?.text??Zc.nullCategory?.text??l))}return l}function bb(t){return t?.[O.typeOrDomainIdValue]!==void 0?t?.[O.typeOrDomainIdValue]:t?.[O.originalCategoryValue]}function Hi(t){let{arrayToSort:e,orderBy:r,sortingField:a,forceAscendingOrder:i,isNonAggregated:n,sortByCategory:s,preferLabel:o,isPieOrByFieldsChart:l}=t;if(e!==void 0&&e.length>1){let d=r===We.Descending&&i!==!0;e.sort((u,c)=>{let h=0,p=u[a];s===!0&&!l&&(p=Gi({value:`${u[a]?.toString()}`,dataContext:u,preferLabel:o}));let f=c[a];return s===!0&&!l&&(f=Gi({value:`${c[a]?.toString()}`,dataContext:c,preferLabel:o})),n===!0&&d&&s===!0&&(p=Number.isNaN(Number.parseFloat(`${p?.toString()}`))?p:Number.parseFloat(p),f=Number.isNaN(Number.parseFloat(`${f?.toString()}`))?f:Number.parseFloat(f)),s===!0&&(u[O.originalCategoryValue]===null||p===null)||u[Wi.defaultGroupOfSlicesId]===!0?h=1:s===!0&&(c[O.originalCategoryValue]===null||f===null)||c[Wi.defaultGroupOfSlicesId]===!0?h=-1:typeof p=="string"&&typeof f=="string"?(h=p.localeCompare(f,void 0,{numeric:!0}),d&&(h*=-1)):p===void 0?h=d?-1:1:f===void 0?h=d?1:-1:p!==null&&f!==null&&(p>f?h=d?-1:1:p<f&&(h=d?1:-1)),h})}}function vb(t){let{arrayToSort:e,orderBy:r,sortingField:a,fieldList:i,isByFieldsChart:n,preferLabel:s}=t;e!==void 0&&e.length>1&&!Re(a)&&r!==void 0&&r.length>0&&e.sort((o,l)=>{let d=o[a];s&&n&&typeof d=="string"&&(d=Ws(i,d));let u=r.indexOf(d?.toString()??"");u===-1&&(u=r.length);let c=l[a];s&&n&&typeof c=="string"&&(c=Ws(i,c));let h=r.indexOf(c?.toString()??"");return h===-1&&(h=r.length),u-h})}function Sb(t,e){let r=t;if(e?.[0]!==void 0&&Y(e)===x.PieFromFields){let{x:a,y:i}=e[0];(la(t)?r:r.dataItems).forEach(n=>(nt in n&&a!==nt&&(n[a]=n[a]!==void 0?n[a]:n[nt],delete n[nt]),qt in n&&i!==qt&&(n[i]=n[i]!==void 0?n[i]:n[qt],delete n[qt]),n))}return r}function wb(t,e){let r=X(e),a=t,i=e?.[0];if((r===g.PieSeries||r===g.BoxPlotSeries||r===g.LineSeries||r===g.RadarSeries||r===g.BarSeries||r===g.ComboLineAndBarSeries)&&i!==void 0){let n=la(t),s=n?t:t.dataItems;if(t!==void 0){let{originalCategoryValue:o,originalDateValue:l,xAxisField:d,typeOrDomainIdValue:u}=O,{x:c}=i;s=s.map(h=>{let p=h[c];h[u]!==void 0?p=h[u]:h[l]!==void 0?p=h[l]:h[o]!==void 0&&(p=h[o]);let f={...h,[c]:p};return delete f[l],delete f[u],delete f[o],delete f[d],f}),n?a=s:"dataItems"in a&&(a.dataItems=s)}}return a}function Au(t){let e={...t};delete e[O.technicalSortingFieldBySum],delete e[O.technicalSortingFieldByPercent],delete e[O.pieChart.technicalFieldSlicePercent],delete e[O.pieChart.technicalFieldGroupedSlices],delete e[O.typeOrDomainFieldName],delete e[O.lastTemporalBin],delete e[O.originalServerBinningRange],delete e[O.technicalFieldSplitByField],delete e[ke.uniqueIdsName],Object.keys(e).filter(a=>a.includes(O.rendererSymbolField)).forEach(a=>delete e[a]);let r=vn(e);return r.isInItem&&delete e[r.expr??""],e}function xb(t,e){let r=t,a=X(e),i=Zp(r);if(i!==void 0)switch(a){case g.ComboLineAndBarSeries:case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.PieSeries:{i=i.map(Au),r={dataItems:i};let{timeIntervalInfo:n,serverLimitReached:s}=t??{};Lo(n)||(r.timeIntervalInfo=n),s!==void 0&&(r.serverLimitReached=s)}break;case g.ScatterSeries:r={...r,dataItems:i.map(Au)};break}return r}function Yc(t){let{data:e,seriesConfig:r}=t,a=Mr(e);return a!==void 0&&(a=wb(a,r),a=xb(a,r),a=Sb(a,r)),a}function Xc(t){let{statsMap:e,dataContext:r,chartLimits:a}=t,i=!1;if(e!==void 0){let{maxScatterPointsBeforeAggregation:n}=Jr(a),{queryNumberOfFeatures:s}=O.scatterplotAggregationFields;i=(e.get(s)??Number.NaN)>=n}else r!==void 0&&(i=O.scatterplotAggregationFields.dataContextXMinField in r);return i}function Cb(t){let e=!0,r=X(t.series);if(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries){let a=Y(t.series);e=a!==x.BarAndLineNoAggregation&&a!==x.BarAndLineSplitByNoAggregation}return e}function Ib(t){return Y(t.series)!==x.PieNoAggregation}function Fb(t){let{dataContext:e,chartConfig:r,chartLimits:a}=t,i=!0;if(r!==void 0)switch(X(r.series)){case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:i=Cb(r);break;case g.ScatterSeries:i=Xc({dataContext:e,chartLimits:a});break;case g.PieSeries:i=Ib(r);break}return i}function Tb(t,e){let r=t;switch(e){case He.Log:r=`log(${t})`;break;case He.Sqrt:r=`power(CAST(${t} AS FLOAT),0.5)`;break}return r}function vi(t){let e=new Date(t).valueOf();return Number.isNaN(e)||(e=new Intl.DateTimeFormat("en-US",O.dateFormatUTC).format(t).replace(",","")),e}function dn(t){let{dataToConvert:e,x:r,y:a,fieldList:i}=t,n=[];if(e){let s=e[xr];Object.entries(e).forEach(([o])=>{if(o!==""&&o!==xr&&o in e){let l={[r]:Ws(i,o),[a]:e[o],[O.xAxisField]:o,[O.originalCategoryValue]:o};s!==void 0&&(l[xr]=s),e[`${O.rendererSymbolField}_${o}`]!==void 0&&(l[O.rendererSymbolField]=e[`${O.rendererSymbolField}_${o}`]),n.push(l)}})}return n}function Pb(t,e){let r=!0;if(t!==void 0&&t.length>1&&!Re(e)){let a=0,i=0,n=0;t.forEach(s=>{let o=s[e];!Tv(o)||o===0?n+=1:o>0?a+=1:i+=1}),r=n===t.length||a>=0&&i===0||a===0&&i>=0}return r}function _a(t){let{countTotal:e,countPerSeries:r,numberOfSeries:a}=t,i,n=[];return typeof e=="number"&&Number.isFinite(e)&&n.push(e),typeof r=="number"&&Number.isFinite(r)&&n.push(r*a),n.length>0&&(i=Math.min(...n)),i}function ep(t,e){let r,{maxBarChartSeriesCount:a,maxBarUniqueSeriesCountTotal:i,maxBarTwoSeriesCountPerSeries:n,maxBarTwoSeriesCountTotal:s,maxBarThreePlusSeriesCountPerSeries:o,maxBarThreePlusSeriesCountTotal:l,maxLineChartSeriesCount:d,maxLineUniqueSeriesCountTotal:u,maxLineTwoSeriesCountPerSeries:c,maxLineTwoSeriesCountTotal:h,maxLineThreePlusSeriesCountPerSeries:p,maxLineThreePlusSeriesCountTotal:f,maxPieChartSliceCountTotal:m,maxGaugeByFeaturesLimit:y}=Jr(e),b=X(t.series),v=t.series.length===0?1:t.series.length,S=Y(t.series);switch(b){case g.ComboLineAndBarSeries:case g.BarSeries:v<=a&&(v===1?r=i:v===2?r=_a({countTotal:s,countPerSeries:n,numberOfSeries:v}):v>2&&(r=_a({countTotal:l,countPerSeries:o,numberOfSeries:v})));break;case g.LineSeries:v<=d&&(v===1?r=u:v===2?r=_a({countTotal:h,countPerSeries:c,numberOfSeries:v}):v>2&&(r=_a({countTotal:f,countPerSeries:p,numberOfSeries:v})));break;case g.PieSeries:r=m;break;case g.GaugeSeries:r=y;break;case g.ScatterSeries:case g.HistogramSeries:case g.BoxPlotSeries:}return(S===x.BarAndLineNoAggregation||S===x.BarAndLineMultiFields)&&r!==void 0&&(r=Math.ceil(r/v)),r}function Eu(t,e){let r=t;if(Number.isFinite(t)){let{factor:a,offset:i}=e??{};Number.isFinite(a)&&(r*=a),Number.isFinite(i)&&(r+=i)}return r}function Ob(t){let e=!1;if(t!==void 0){let r=t.replace(" ",""),a=/^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u,i=/^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;e=a.test(r)||i.test(r)}return e}function V1(t){let e;if(Ob(t)){let r=/%(\d{1,3}(.\d+)?)$/u,a=/(\d{1,3}(.\d+)?)%$/u,i=t.replace(" ",""),n=r.exec(i)?.[1]??a.exec(i)?.[1];n!==void 0&&(e=Number(n))}return e}var U={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"};var un=function(){return un=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},un.apply(this,arguments)},js={exports:{}},Ne={},_s={exports:{}},Kr={};function tp(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function Ab(t,e,r){}function Eb(t,e,r){}var Lb=/javascript\s*\:/img;function Db(t,e){return Lb.test(e)?"":e}Kr.whiteList=tp();Kr.getDefaultWhiteList=tp;Kr.onAttr=Ab;Kr.onIgnoreAttr=Eb;Kr.safeAttrValue=Db;var Nb={indexOf:function(t,e){var r,a;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var a,i;if(Array.prototype.forEach)return t.forEach(e,r);for(a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Ri=Nb;function Bb(t,e){t=Ri.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,a=!1,i=0,n=0,s="";function o(){if(!a){var u=Ri.trim(t.slice(i,n)),c=u.indexOf(":");if(c!==-1){var h=Ri.trim(u.slice(0,c)),p=Ri.trim(u.slice(c+1));if(h){var f=e(i,s.length,h,p,u);f&&(s+=f+"; ")}}}i=n+1}for(;n<r;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,i=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
5
- `&&o()}return Ri.trim(s)}var $b=Bb,Va=Kr,Mb=$b;function Lu(t){return t==null}function qb(t){var e={};for(var r in t)e[r]=t[r];return e}function rp(t){t=qb(t||{}),t.whiteList=t.whiteList||Va.whiteList,t.onAttr=t.onAttr||Va.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Va.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Va.safeAttrValue,this.options=t}rp.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,a=r.whiteList,i=r.onAttr,n=r.onIgnoreAttr,s=r.safeAttrValue,o=Mb(t,function(l,d,u,c,h){var p=a[u],f=!1;if(p===!0?f=p:typeof p=="function"?f=p(c):p instanceof RegExp&&(f=p.test(c)),f!==!0&&(f=!1),c=s(u,c),!!c){var m={position:d,sourcePosition:l,source:h,isWhite:f};if(f){var y=i(u,c,m);return Lu(y)?u+":"+c:y}else{var y=n(u,c,m);if(!Lu(y))return y}}});return o};var Rb=rp;(function(t,e){var r=Kr,a=Rb;function i(s,o){var l=new a(o);return l.process(s)}e=t.exports=i,e.FilterCSS=a;for(var n in r)e[n]=r[n]})(_s,_s.exports);var ao=_s.exports,no={indexOf:function(t,e){var r,a;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var a,i;if(Array.prototype.forEach)return t.forEach(e,r);for(a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,r=e.exec(t);return r?r.index:-1}},kb=ao.FilterCSS,jb=ao.getDefaultWhiteList,cn=no;function ip(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var ap=new kb;function _b(t,e,r){}function Vb(t,e,r){}function Wb(t,e,r){}function zb(t,e,r){}function np(t){return t.replace(Gb,"&lt;").replace(Hb,"&gt;")}function Ub(t,e,r,a){if(r=cp(r),e==="href"||e==="src"){if(r=cn.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(e==="background"){if(Wa.lastIndex=0,Wa.test(r))return""}else if(e==="style"){if(Du.lastIndex=0,Du.test(r)||(Nu.lastIndex=0,Nu.test(r)&&(Wa.lastIndex=0,Wa.test(r))))return"";a!==!1&&(a=a||ap,r=a.process(r))}return r=pp(r),r}var Gb=/</g,Hb=/>/g,Qb=/"/g,Zb=/&quot;/g,Jb=/&#([a-zA-Z0-9]*);?/gim,Kb=/&colon;?/gim,Yb=/&newline;?/gim,Wa=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Du=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Nu=/u\s*r\s*l\s*\(.*/gi;function sp(t){return t.replace(Qb,"&quot;")}function op(t){return t.replace(Zb,'"')}function lp(t){return t.replace(Jb,function(e,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function dp(t){return t.replace(Kb,":").replace(Yb," ")}function up(t){for(var e="",r=0,a=t.length;r<a;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return cn.trim(e)}function cp(t){return t=op(t),t=lp(t),t=dp(t),t=up(t),t}function pp(t){return t=sp(t),t=np(t),t}function Xb(){return""}function ev(t,e){typeof e!="function"&&(e=function(){});var r=!Array.isArray(t);function a(s){return r?!0:cn.indexOf(t,s)!==-1}var i=[],n=!1;return{onIgnoreTag:function(s,o,l){if(a(s))if(l.isClosing){var d="[/removed]",u=l.position+d.length;return i.push([n!==!1?n:l.position,u]),n=!1,d}else return n||(n=l.position),"[removed]";else return e(s,o,l)},remove:function(s){var o="",l=0;return cn.forEach(i,function(d){o+=s.slice(l,d[0]),l=d[1]}),o+=s.slice(l),o}}}function tv(t){for(var e="",r=0;r<t.length;){var a=t.indexOf("<!--",r);if(a===-1){e+=t.slice(r);break}e+=t.slice(r,a);var i=t.indexOf("-->",a);if(i===-1)break;r=i+3}return e}function rv(t){var e=t.split("");return e=e.filter(function(r){var a=r.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),e.join("")}Ne.whiteList=ip();Ne.getDefaultWhiteList=ip;Ne.onTag=_b;Ne.onIgnoreTag=Vb;Ne.onTagAttr=Wb;Ne.onIgnoreTagAttr=zb;Ne.safeAttrValue=Ub;Ne.escapeHtml=np;Ne.escapeQuote=sp;Ne.unescapeQuote=op;Ne.escapeHtmlEntities=lp;Ne.escapeDangerHtml5Entities=dp;Ne.clearNonPrintableCharacter=up;Ne.friendlyAttrValue=cp;Ne.escapeAttrValue=pp;Ne.onIgnoreTagStripAll=Xb;Ne.StripTagBody=ev;Ne.stripCommentTag=tv;Ne.stripBlankChar=rv;Ne.cssFilter=ap;Ne.getDefaultCSSWhiteList=jb;var bn={},br=no;function iv(t){var e=br.spaceIndex(t),r;return e===-1?r=t.slice(1,-1):r=t.slice(1,e+1),r=br.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function av(t){return t.slice(0,2)==="</"}function nv(t,e,r){var a="",i=0,n=!1,s=!1,o=0,l=t.length,d="",u="";e:for(o=0;o<l;o++){var c=t.charAt(o);if(n===!1){if(c==="<"){n=o;continue}}else if(s===!1){if(c==="<"){a+=r(t.slice(i,o)),n=o,i=o;continue}if(c===">"){a+=r(t.slice(i,n)),u=t.slice(n,o+1),d=iv(u),a+=e(n,a.length,d,u,av(u)),i=o+1,n=!1;continue}if(c==='"'||c==="'")for(var h=1,p=t.charAt(o-h);p.trim()===""||p==="=";){if(p==="="){s=c;continue e}p=t.charAt(o-++h)}}else if(c===s){s=!1;continue}}return i<t.length&&(a+=r(t.substr(i))),a}var sv=/[^a-zA-Z0-9\\_:.-]/gim;function ov(t,e){var r=0,a=0,i=[],n=!1,s=t.length;function o(h,p){if(h=br.trim(h),h=h.replace(sv,"").toLowerCase(),!(h.length<1)){var f=e(h,p||"");f&&i.push(f)}}for(var l=0;l<s;l++){var d=t.charAt(l),u,c;if(n===!1&&d==="="){n=t.slice(r,l),r=l+1,a=t.charAt(r)==='"'||t.charAt(r)==="'"?r:dv(t,l+1);continue}if(n!==!1&&l===a){if(c=t.indexOf(d,l+1),c===-1)break;u=br.trim(t.slice(a+1,c)),o(n,u),n=!1,l=c,r=l+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),n===!1)if(c=lv(t,l),c===-1){u=br.trim(t.slice(r,l)),o(u),n=!1,r=l+1;continue}else{l=c-1;continue}else if(c=uv(t,l-1),c===-1){u=br.trim(t.slice(r,l)),u=Bu(u),o(n,u),n=!1,r=l+1;continue}else continue}return r<t.length&&(n===!1?o(t.slice(r)):o(n,Bu(br.trim(t.slice(r))))),br.trim(i.join(" "))}function lv(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="="?e:-1}}function dv(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="'"||r==='"'?e:-1}}function uv(t,e){for(;e>0;e--){var r=t[e];if(r!==" ")return r==="="?e:-1}}function cv(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function Bu(t){return cv(t)?t.substr(1,t.length-2):t}bn.parseTag=nv;bn.parseAttr=ov;var pv=ao.FilterCSS,Mt=Ne,hp=bn,hv=hp.parseTag,fv=hp.parseAttr,Ya=no;function za(t){return t==null}function mv(t){var e=Ya.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=Ya.trim(t.slice(e+1,-1));var r=t[t.length-1]==="/";return r&&(t=Ya.trim(t.slice(0,-1))),{html:t,closing:r}}function yv(t){var e={};for(var r in t)e[r]=t[r];return e}function gv(t){var e={};for(var r in t)Array.isArray(t[r])?e[r.toLowerCase()]=t[r].map(function(a){return a.toLowerCase()}):e[r.toLowerCase()]=t[r];return e}function fp(t){t=yv(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=Mt.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=gv(t.whiteList||t.allowList):t.whiteList=Mt.whiteList,t.onTag=t.onTag||Mt.onTag,t.onTagAttr=t.onTagAttr||Mt.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||Mt.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||Mt.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||Mt.safeAttrValue,t.escapeHtml=t.escapeHtml||Mt.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new pv(t.css))}fp.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,a=r.whiteList,i=r.onTag,n=r.onIgnoreTag,s=r.onTagAttr,o=r.onIgnoreTagAttr,l=r.safeAttrValue,d=r.escapeHtml,u=e.cssFilter;r.stripBlankChar&&(t=Mt.stripBlankChar(t)),r.allowCommentTag||(t=Mt.stripCommentTag(t));var c=!1;r.stripIgnoreTagBody&&(c=Mt.StripTagBody(r.stripIgnoreTagBody,n),n=c.onIgnoreTag);var h=hv(t,function(p,f,m,y,b){var v={sourcePosition:p,position:f,isClosing:b,isWhite:Object.prototype.hasOwnProperty.call(a,m)},S=i(m,y,v);if(!za(S))return S;if(v.isWhite){if(v.isClosing)return"</"+m+">";var C=mv(y),F=a[m],A=fv(C.html,function($,E){var P=Ya.indexOf(F,$)!==-1,N=s(m,$,E,P);return za(N)?P?(E=l(m,$,E,u),E?$+'="'+E+'"':$):(N=o(m,$,E,P),za(N)?void 0:N):N});return y="<"+m,A&&(y+=" "+A),C.closing&&(y+=" /"),y+=">",y}else return S=n(m,y,v),za(S)?d(y):S},d);return c&&(h=c.remove(h)),h};var bv=fp;(function(t,e){var r=Ne,a=bn,i=bv;function n(o,l){var d=new i(l);return d.process(o)}e=t.exports=n,e.filterXSS=n,e.FilterXSS=i,function(){for(var o in r)e[o]=r[o];for(var l in a)e[l]=a[l]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=t.exports)})(js,js.exports);var ui=js.exports,vv=function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Sv=function(){function t(e,r){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=un(un({},ui.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(n,s,o,l){return n==="a"&&s==="href"||(n==="img"||n==="source")&&s==="src"?a.sanitizeUrl(o):ui.safeAttrValue(n,s,o,l)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;e&&!r?i=e:e&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(e).forEach(function(n){if(n==="whiteList")i.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,e.whiteList||{}]);else if(n==="css"){var s=e.css.whiteList;s!=null&&e.css instanceof Object&&Object.keys(s).forEach(function(o){return i.css.whiteList[o]=s[o]})}else i[n]=e[n]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new ui.FilterXSS(i)}return t.prototype.sanitize=function(e,r){switch(r===void 0&&(r={}),typeof e){case"number":return isNaN(e)||!isFinite(e)?null:e;case"boolean":return e;case"string":return this._xssFilter.process(e);case"object":return this._iterateOverObject(e,r);default:return r.allowUndefined&&typeof e>"u"?void 0:null}},t.prototype.sanitizeUrl=function(e,r){var a=(r??{}).isProtocolRequired,i=a===void 0?!0:a,n=this._trim(e.substring(0,e.indexOf(":"))),s=e==="/",o=/^#/.test(e),l=n&&this.allowedProtocols.indexOf(n.toLowerCase())>-1;return s||o||l?ui.escapeAttrValue(e):!n&&!i?ui.escapeAttrValue("https://".concat(e)):""},t.prototype.sanitizeHTMLAttribute=function(e,r,a,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(e,r,a,i):ui.safeAttrValue(e,r,a,i)},t.prototype.validate=function(e,r){r===void 0&&(r={});var a=this.sanitize(e,r);return{isValid:e===a,sanitized:a}},t.prototype.encodeHTML=function(e){var r=this;return String(e).replace(/[&<>"'\/]/g,function(a){return r._entityMap[a]})},t.prototype.encodeAttrValue=function(e){var r=/^[a-zA-Z0-9]$/;return String(e).replace(/[\x00-\xFF]/g,function(a,i){return r.test(a)?a:"&#x".concat(Number(e.charCodeAt(i)).toString(16),";")})},t.prototype._extendObjectOfArrays=function(e){var r={};return e.forEach(function(a){Object.keys(a).forEach(function(i){Array.isArray(a[i])&&Array.isArray(r[i])?r[i]=r[i].concat(a[i]):r[i]=a[i]})}),r},t.prototype._iterateOverObject=function(e,r){var a=this;r===void 0&&(r={});try{var i=!1,n=void 0;if(Array.isArray(e))n=e.reduce(function(o,l){var d=a.validate(l,r);return d.isValid?o.concat([l]):(i=!0,o.concat([d.sanitized]))},[]);else if(vv(e)){var s=Object.keys(e);n=s.reduce(function(o,l){var d=e[l],u=a.validate(d,r);return u.isValid?o[l]=d:(i=!0,o[l]=u.sanitized),o},{})}else return r.allowUndefined&&typeof e>"u"?void 0:null;return i?n:e}catch{return null}},t.prototype._trim=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},t}(),x={NonSpecific:"nonSpecific",BarAndLineNoAggregation:"barAndLineNoAggregation",BarAndLineMonoField:"barAndLineMonoField",BarAndLineMultiFields:"barAndLineMultiFields",BarAndLineFromFields:"barAndLineFromFields",BarAndLineSplitBy:"barAndLineSplitBy",BarAndLineSplitByNoAggregation:"barAndLineSplitByNoAggregation",PieNoAggregation:"pieNoAggregation",PieFromCategory:"pieFromCategory",PieFromFields:"pieFromFields",BoxPlotMonoField:"boxPlotMonoField",BoxPlotMultiFields:"boxPlotMultiFields",BoxPlotMonoFieldAndCategory:"boxPlotMonoFieldAndCategory",BoxPlotMultiFieldsAndCategory:"boxPlotMultiFieldsAndCategory",BoxPlotMonoFieldAndSplitBy:"boxPlotMonoFieldAndSplitBy",BoxPlotMultiFieldsAndSplitBy:"boxPlotMultiFieldsAndSplitBy",BoxPlotMonoFieldAndCategoryAndSplitBy:"boxPlotMonoFieldAndCategoryAndSplitBy"},W1={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function mp(t){return t?.colorMatch??!1}function $u(t){let e=zi();if(t!==void 0){let r=X(t.series);(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries||r===g.BoxPlotSeries)&&(e=t.rotated??zi())}return e}function z1(t){return t?.map(e=>e.type)??[]}function so(t){let e=t?.stackedType;if(e===void 0&&t!==void 0){let r=X(t.series);(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries||r===g.RadarSeries)&&(e=Hg())}return e}function wv(t){let e=t;return e=e.replace(/'/gu,"''"),e=e.replace(/[/\\"|[\]\\]/gu,"\\$&"),e}function xv(t){let e=!1;if(typeof t!="number"){let r=new Intl.Segmenter;e=Array.from(r.segment(t),a=>a.segment).some(a=>a.charCodeAt(0)>255)}return e}function Vs(t){let e=t,r="";t.startsWith("'")&&t.endsWith("'")&&(e=t.slice(1,-1),r="'"),e=e.replace(/'/gu,"''");let a="";return xv(e)&&(a="N"),`${a}${r}${e}${r}`}function yp(t){let{value:e,keepSurroundingQuotes:r,escape:a}=t,i=e?.trim();if(!Re(i)){let n="";i.startsWith("'")&&i.endsWith("'")&&(i=i.slice(1,-1),r&&(n="'")),a!==!1&&(i=wv(i)),i=`${n}${i}${n}`}return i}function er(t){let{count:e,seriesCount:r,chartType:a,chartLimits:i}=t,{behaviorAfterLimit:n}=i??{},s=!0;if(n!==Tr.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:d,maxBarTwoSeriesCountTotal:u,maxBarThreePlusSeriesCountPerSeries:c,maxBarThreePlusSeriesCountTotal:h,maxLineChartSeriesCount:p,maxLineUniqueSeriesCountTotal:f,maxLineTwoSeriesCountPerSeries:m,maxLineTwoSeriesCountTotal:y,maxLineThreePlusSeriesCountPerSeries:b,maxLineThreePlusSeriesCountTotal:v,maxPieChartSliceCountTotal:S,maxGaugeByFeaturesLimit:C,maxBoxPlotSeriesCount:F,maxBoxUniqueSeriesCountTotal:A,maxBoxTwoSeriesCountTotal:$,maxBoxTwoSeriesCountPerSeries:E,maxBoxThreePlusSeriesCountTotal:P,maxBoxThreePlusSeriesCountPerSeries:N,maxHeatChartCellLimit:M}=Jr(i);switch(a){case g.BarSeries:case g.ComboLineAndBarSeries:{let R=e/r;r<=o?r===0?s=!0:r===1?s=e<=l:r===2?s=e<=u&&R<=d:r>2&&(s=e<=h&&R<=c):s=!1}break;case g.LineSeries:case g.RadarSeries:{let R=e/r;r<=p?r===0?s=!0:r===1?s=e<=f:r===2?s=e<=y&&R<=m:r>2&&(s=e<=v&&R<=b):s=!1}break;case g.PieSeries:s=e<=S;break;case g.BoxPlotSeries:{let R=e/r;r<=F?r===0?s=!0:r===1?s=e<=A:r===2?s=e<=$&&R<=E:r>2&&(s=e<=P&&R<=N):s=!1}break;case g.HeatSeries:s=e<=M;break;case g.GaugeSeries:s=e<=C;break}}return s}function Ws(t=[],e){let r=t.find(a=>a.name===e)?.alias;return r!==""?r??e:e}function U1(t=[],e){let r=t.find(a=>a.alias===e)?.name;return r!==""?r??e:e}function G1(t){let e=!1;switch(X(t)){case g.HeatSeries:case g.PieSeries:e=!0;break;case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.ComboLineAndBarSeries:case g.BoxPlotSeries:e=t.length>1;break;case g.HistogramSeries:case g.ScatterSeries:{let r=t[0];e=r.overlays!==void 0&&Object.values(r.overlays).some(a=>a.created===!0);break}}return e}function Cv(t){let e=!0;return X(t.series)===g.ScatterSeries&&(e=t.series.length===1),e}function Iv(t){let e=!0;return X(t.series)===g.HistogramSeries&&(e=t.series.length<=1&&t.series[0].type===g.HistogramSeries&&(!("dataTransformationType"in t.series[0])||t.series[0].dataTransformationType!==void 0&&Object.values(He).includes(t.series[0].dataTransformationType))),e}function Fv(t){let e=!0;return X(t.series)===g.PieSeries&&(e=t.series.length<=1),e}function H1(t,e){let r=X(e?.series),a=r!==void 0&&t.includes(r);if(a&&e!==void 0)switch(r){case g.HistogramSeries:a=Iv(e);break;case g.ScatterSeries:a=Cv(e);break;case g.PieSeries:a=Fv(e);break}return a}function Re(t){return t==null||typeof t=="string"&&t.trim()===""}function Xa(t,e){let r=e.find(a=>a in t);return{isInItem:r!==void 0,expr:r}}function vn(t){return Xa(t,Uc)}function Q1(t,e){let r;switch(t){case H.Second:r=e.seconds??"";break;case H.Minute:r=e.minutes??"";break;case H.Hour:r=e.hours??"";break;case H.Day:r=e.days??"";break;case H.Week:r=e.weeks??"";break;case H.Month:r=e.months??"";break;case H.Year:r=e.years??"";break;default:r="";break}return r}function Z1(t){let e;switch(t){case Xt.Mean:e=1;break;case Xt.Median:e=2;break;case Xt.StdDev:e=3;break;case Xt.Normal:default:e=0;break}return e}function J1(t,e){if(e!==void 0){let{seriesId:r,overlayType:a,visible:i}=t.detail,n;switch(a){case Xt.Mean:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.mean);break;case Xt.Median:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.median);break;case Xt.StdDev:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.standardDeviation);break;case Xt.Normal:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.comparisonDistribution);break;case Xt.Trendline:e.series[0].type===g.ScatterSeries&&(n=e.series[0].overlays?.trendLine);break;default:n=e.series.find(s=>s.id===r);break}n!==void 0&&(n.visible=i)}}function K1(t){return new Sv().sanitize(t)}function Tv(t){return t!=null&&!Number.isNaN(t)&&Number.isFinite(t)}function Y1(t,e){let r={fieldToSort:""};if(!Re(t)){let a=t.trim(),i=a.split(" ").at(-1)?.toUpperCase();i===We.Ascending||i===We.Descending?r={fieldToSort:a.substring(0,a.lastIndexOf(" ")),orderBy:i}:(r={fieldToSort:a},e!==!1&&(r.orderBy=We.Ascending))}return r}function gp(t){return t===x.BarAndLineSplitBy||t===x.BarAndLineSplitByNoAggregation||t===x.BoxPlotMonoFieldAndSplitBy||t===x.BoxPlotMultiFieldsAndSplitBy||t===x.BoxPlotMonoFieldAndCategoryAndSplitBy}function X1(t){return t?.selectionOIDs===void 0||t.selectionOIDs.length===0}function eI(t={arrayA:[],arrayB:[],getKey:e=>e}){let{arrayA:e,arrayB:r,getKey:a}=t;if(r.length===0||e.length===0)return e;let i=new Map;r.forEach((l,d)=>{let u=a(l);i.set(u,d)});let n=[],s=[];e.forEach((l,d)=>{let u=a(l);i.has(u)&&(n.push(d),s.push(l))}),s.sort((l,d)=>{let u=a(l),c=a(d);return i.get(u)-i.get(c)});let o=[...e];return n.forEach((l,d)=>{o[l]=s[d]}),o}function tI(t){return X(t.series)!==g.BoxPlotSeries?O.xAxisField:t.series[0].x}function rI(t){let e=so(t);return e===Dt.Stacked||e===Dt.Stacked100}function Pv(t){let e=Y(t.series),r;if(t.orderOptions?.data!==void 0){let a=t.orderOptions?.data?.orderType??at.Category,i=t.orderOptions?.data?.orderBy;if(a===at.Category)a=t.series[0].x;else{a===at.Mean?a=U.Average:a===at.Median&&(a=U.Median);let n=e===x.BoxPlotMultiFieldsAndCategory&&typeof t.series[0].y=="string"?t.series[0].y:void 0,s=Xe(t.series[0].query?.where),o=dt({where:t.series[0].query?.where});a=Ue({key:a,y:n,chartSubType:e,splitBy:s,splitByValue:o}),Array.isArray(i)&&(i=We.Ascending)}r={sortingField:a,orderBy:i??We.Ascending,preferLabel:t.orderOptions.data.preferLabel??!0}}return r}function Ov(t){let e;if(!bp(t)&&t.series?.length>0&&t.orderOptions?.data?.orderType===at.Category){let r;Gt(t.axes?.[0]?.valueFormat)?r=ae.xField:Gt(t.axes?.[1]?.valueFormat)&&(r=ae.yField),r&&(e={sortingField:r,orderBy:t.orderOptions?.data?.orderBy??We.Ascending})}return e}function Av(t){let e=t.series[0],{x:r,y:a}=e,i=Y(t.series)===x.PieFromFields,n=Y(t.series)===x.BarAndLineFromFields,s,o="",l;if(t.orderOptions?.data!==void 0){if(o=t.orderOptions?.data?.orderType??at.Category,l=t.orderOptions?.data?.orderBy,o===at.Category?o=i?nt:r:o=i?qt:[a].flat()[0],o!==void 0&&o!==""){let d=so(t);if(X(t.series)!==g.PieSeries&&o!==r&&t.series?.length>1)switch(d){case Dt.Stacked:o=O.technicalSortingFieldBySum;break;case Dt.Stacked100:o=O.technicalSortingFieldByPercent;break;case Dt.Side:typeof a=="string"&&(o=a);break}s={sortingField:o,orderBy:l??We.Ascending,preferLabel:t.orderOptions.data.preferLabel??!0}}}else(n||i)&&t.series[0].query?.outStatistics&&(l=t.series[0].query.outStatistics.map(d=>d.onStatisticField),l?.length>1&&(s={sortingField:Zc.originalCategoryValue,orderBy:l,preferLabel:!1}));return s}function zs(t){let e,r=X(t.series);if(r===g.HeatSeries)e=Ov(t);else if(t.series?.length>0)switch(r){case g.BoxPlotSeries:e=Pv(t);break;case g.LineSeries:case g.BarSeries:case g.RadarSeries:case g.PieSeries:e=Av(t);break}return e}function iI(t){let{oldConfig:e,newConfig:r,dataWasUpdated:a}=t,i=Y(r.series),n=!1,s=!1;if(i!==x.BoxPlotMonoField&&i!==x.BoxPlotMonoFieldAndSplitBy&&r.orderOptions?.data!==void 0){let o=zs(e),l=zs(r);s=e.orderOptions?.data?.orderType!==r.orderOptions?.data?.orderType||o?.sortingField!==l?.sortingField||o?.orderBy!==l?.orderBy||(o?.preferLabel??!0)!==(l?.preferLabel??!0),n=s||a}return n}function aI(t,e){let r=[],a=new Map,i=new Map;return t.forEach((n,s)=>i.set(n.id,s)),e.forEach((n,s)=>{let o=i.get(n.id);if(o!==void 0){let l=new Set;for(;a.has(o)&&!l.has(o);)l.add(o),o=a.get(o)??o;o!==s&&(r.push([o,s]),a.set(s,o))}}),r}function Ev(t){let e={...t};return t.showMean===!0&&(e.series=[e.series[0]],e.series[0].query?.where!==void 0&&delete e.series[0].query.where),e}function bp(t){let e=!1;return t&&(e=t.series[0].type===g.HeatSeries&&Gt(t.axes?.[0]?.valueFormat)&&Gt(t.axes?.[1]?.valueFormat)),e}function pn(t){let{dataInfo:e,chartType:r,subError:a}=t;switch(e.valid=!1,r){case g.BarSeries:case g.ComboLineAndBarSeries:e.invalidType=oe.BarElementExceedsLimit;break;case g.LineSeries:e.invalidType=oe.LineChartExceedsLimit;break;case g.PieSeries:e.invalidType=oe.PieChartExceedsLimit;break;case g.GaugeSeries:e.invalidType=oe.GaugeExceedsLimit;break;case g.BoxPlotSeries:a?.outlierLimit===!0?e.invalidType=oe.BoxPlotOutliersExceedsLimit:e.invalidType=oe.BoxPlotExceedsLimit;break;case g.HeatSeries:e.invalidType=oe.HeatChartExceedsLimit;break}}function Lv(t,e){t.valid=!1,t.invalidType=e}function nI(t){let{invalidType:e,chartLimits:r,elementCount:a,seriesCount:i,queryObject:n,filterBySelection:s,formatLocale:o=Xp(document.documentElement),isTemporalChart:l,errorStrings:d}=t,u=d.errors.defaultInvalidChart,c,h=new Intl.NumberFormat(o),p=Jr(r),{maxCategoryCount:f}=p,m=d.modalHeaders.invalidChart;switch(e){case oe.BarElementExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxBarChartSeriesCount?i===1?(v=d.errors.uniqueSeriesBarCountCannotExceedLimit,y=p.maxBarUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBarCountCannotExceedLimit,y=p.maxBarTwoSeriesCountTotal,b=p.maxBarTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusSeriesBarCountCannotExceedLimit,y=p.maxBarThreePlusSeriesCountTotal,b=p.maxBarThreePlusSeriesCountPerSeries):(v=d.errors.barSeriesCountCannotExceedLimit,b=p.maxBarChartSeriesCount));let S=h.format(y),C=h.format(b),F=a!==void 0?h.format(a):"";u=qe(v,{totalLimit:S,seriesLimit:C,elementCount:F}),c={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b};break}case oe.LineChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxLineChartSeriesCount?i===1?(v=l?d.errors.uniqueTemporalSeriesLineCountCannotExceedLimit:d.errors.uniqueSeriesLineCountCannotExceedLimit,y=p.maxLineUniqueSeriesCountTotal):i===2?(v=l?d.errors.twoTemporalSeriesLineCountCannotExceedLimit:d.errors.twoSeriesLineCountCannotExceedLimit,y=p.maxLineTwoSeriesCountTotal,b=p.maxLineTwoSeriesCountPerSeries):i>2&&(v=l?d.errors.threePlusTemporalSeriesLineCountCannotExceedLimit:d.errors.threePlusSeriesLineCountCannotExceedLimit,y=p.maxLineThreePlusSeriesCountTotal,b=p.maxLineThreePlusSeriesCountPerSeries):(v=d.errors.lineSeriesCountCannotExceedLimit,b=p.maxLineChartSeriesCount));let S=h.format(y),C=h.format(b),F=a!==void 0?h.format(a):"";u=qe(v,{elementCount:F,seriesLimit:C,totalLimit:S}),c={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b}}break;case oe.BoxPlotExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxBoxPlotSeriesCount?i===1?(v=d.errors.uniqueSeriesBoxCountCannotExceedLimit,y=p.maxBoxUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBoxCountCannotExceedLimit,y=p.maxBoxTwoSeriesCountTotal,b=p.maxBoxTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusBoxLineCountCannotExceedLimit,y=p.maxBoxThreePlusSeriesCountTotal,b=p.maxBoxThreePlusSeriesCountPerSeries):(v=d.errors.boxSeriesCountCannotExceedLimit,b=p.maxBoxPlotSeriesCount));let S=h.format(y),C=h.format(b),F=a!==void 0?h.format(a):"";u=qe(v,{elementCount:F,seriesLimit:C,totalLimit:S}),c={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b}}break;case oe.BoxPlotOutliersExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.boxSeriesOutlierCannotExceedLimit,b=p.maxBoxPlotOutlierLimit,v=h.format(b);u=qe(y,{totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:b}}break;case oe.HeatChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.heatChartCannotExceedLimit,b=p.maxHeatChartCellLimit,v=h.format(b),S=a!==void 0?h.format(a):"";u=qe(y,{featureCount:S,totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:b}}break;case oe.PieChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.pieChartSlicesCannotExceedLimit,b=p.maxPieChartSliceCountTotal,v=h.format(b),S=a!==void 0?h.format(a):"";u=qe(y,{sliceCount:S,totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:b}}break;case oe.GaugeExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.gaugeCannotExceedLimit,b=p.maxGaugeByFeaturesLimit,v=h.format(b),S=a!==void 0?h.format(a):"";u=qe(y,{featureCount:S,totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:b}}break;case oe.PieChartMixOfNegativePositiveSlices:m=d.modalHeaders.cannotCombineNegativeAndPositiveSlices,u=d.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;break;case oe.NegativeValueInSqrtCalculation:m=d.modalHeaders.invalidData,u=d.errors.negativeValueInDataForSqrtTransformation;break;case oe.NegativeValueInLogCalculation:m=d.modalHeaders.invalidData,u=d.errors.negativeValueInDataForLogTransformation;break;case oe.HistogramEmptyField:s===!0?(m=d.modalHeaders.noDataAvailable,u=d.errors.noDataFBSMessage):Qr(n)?(m=d.modalHeaders.noDataAvailable,u=d.errors.noDataFBEMessage):(m=d.modalHeaders.invalidChart,u=d.errors.histogramEmptyField);break;case oe.EmptyDataSet:m=d.modalHeaders.noDataAvailable,s===!0?u=d.errors.noDataFBSMessage:Qr(n)?u=d.errors.noDataFBEMessage:u=d.errors.noDataMessage;break;case oe.NegativeValueInXAxisLogScale:u=d.errors.logarithmicXAxisNotPossible;break;case oe.NegativeValueInYAxisLogScale:u=d.errors.logarithmicYAxisNotPossible;break;case oe.BadData:}if(u===d.errors.defaultInvalidChart&&(e===oe.BarElementExceedsLimit||e===oe.LineChartExceedsLimit||e===oe.HeatChartExceedsLimit||e===oe.PieChartExceedsLimit||e===oe.GaugeExceedsLimit||e===oe.BoxPlotExceedsLimit)&&typeof a=="number"&&typeof i=="number"&&a/i>f){let y=a/i;u=qe(d.errors.categoryCountCannotExceedLimit,{categoryCount:h.format(y),maxCategoryCount:h.format(f)})}return{keyword:e??oe.BadData,header:m,message:u,params:c}}function Si(t,e){return`${e}_${t}`}function Us(t){let{value:e,mean:r,stdDev:a}=t;return(e-r)/a}function oo(t){let{dataItem:e,chartSubType:r,y:a,splitByValue:i,meanPerField:n,stdDevPerField:s}=t,o=e,l={chartSubType:r,y:a,splitByValue:i},d=Ue({...l,key:U.Average}),u=Ue({...l,key:U.StandardDeviation}),c=n??Number(e[d]),h=s??Number(e[u]);return Number.isFinite(c)&&Number.isFinite(h)&&Object.values(U).forEach(p=>{let f=Ue({key:p,y:a,chartSubType:r,splitByValue:i}),m=e[f];if(m!=null){let y=Number(m);if(Number.isFinite(y)){l={...l,key:p,showOutliers:!1,standardizeValues:!0};let b=Ue(l);if(o[b]=Us({mean:c,stdDev:h,value:y}),p===U.Min||p===U.Max){l={...l,key:p,showOutliers:!0,standardizeValues:!0},b=Ue(l),l={...l,standardizeValues:!1,splitByValue:i};let v=Ue(l);y=Number(e[v]),Number.isFinite(y)&&(o[b]=Us({mean:c,stdDev:h,value:y}))}}}}),o}function Dv(t){let{data:e,yList:r,calculateZScore:a=!1}=t,i=e[0],n=new Map;return r.forEach(s=>{let o={};Object.keys(i).forEach(l=>{l.startsWith(s)?o[l.replace(`${s}_`,"")]=i[l]:l.includes(O.rendererSymbolField)&&(o[l]=i[l]),o[O.boxPlot.boxPlotCategory]=s,a&&(o=oo({dataItem:o,chartSubType:x.BoxPlotMultiFields}))}),n.set(s,o)}),Array.from(n.values())}function Nv(t){let{data:e,splitByField:r,y:a}=t,i={[O.boxPlot.boxPlotCategory]:a};return e.forEach(n=>{let s=n[r];s!==void 0&&Object.keys(n).forEach(o=>{o===O.rendererSymbolField?i[`${o}_${s?.toString()}`]=n[o]:o===O.boxPlot.boxPlotMeanLineMarkerId?i[o]=n[o]:i[`${s?.toString()}_${o}`]=n[o]})}),[i]}function Bv(t){let{splitByField:e,data:r,yList:a,calculateZScore:i=!1,meanAndStdDevPerField:n}=t,s=new Map;return r.forEach(o=>{let l=o[e];a.forEach(d=>{let u={[O.boxPlot.boxPlotCategory]:d};Object.entries(o).forEach(([c,h])=>{c.startsWith(`${d}_`)?u[`${l}_${c.replace(`${d}_`,"")}`]=h:c.includes(O.rendererSymbolField)?u[`${c}_${l}`]=h:c===O.boxPlot.boxPlotMeanLineMarkerId&&(u[c]=o[c])}),i&&(u=oo({dataItem:u,chartSubType:x.BoxPlotMultiFieldsAndSplitBy,splitByValue:l,meanPerField:n?.[Si(d,j.Average)],stdDevPerField:n?.[Si(d,j.StandardDeviation)]})),s.set(d,{...s.get(d)??{},...u})})}),Array.from(s.values())}function $v(t){let{data:e,yList:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,n=e;return a&&n.forEach(s=>{r.forEach(o=>{oo({dataItem:s,chartSubType:x.BoxPlotMultiFieldsAndCategory,y:o,meanPerField:i?.[Si(o,j.Average)],stdDevPerField:i?.[Si(o,j.StandardDeviation)]})})}),n}function Mv(t){let{splitByField:e,x:r,data:a}=t,i=new Map;return a.forEach(n=>{let s=n[r],o={[r]:s},l=n[e];Object.entries(n).forEach(([d,u])=>{if(d.includes(O.rendererSymbolField))o[`${O.rendererSymbolField}_${l?.toString()}`]=u;else if(d===O.boxPlot.boxPlotMeanLineMarkerId)o[d]=n[d];else if(d!==e&&d!==r){let c=d!==O.xAxisField&&d!==O.originalCategoryValue&&d!==O.typeOrDomainIdValue&&d!==O.typeOrDomainFieldName?`${l?.toString()}_${d}`:d;o[c]=u}}),i.set(s,{...i.get(s)??{},...o})}),Array.from(i.values())}function qv(t,e){let{series:r}=t,a=r[0],{y:i}=a,n=Y(t.series),s={y:n===x.BoxPlotMultiFieldsAndCategory?i:void 0,chartSubType:n},o=t.series.map(l=>{let d=dt({where:l.query?.where,normalize:!1,escape:!0});return d!==null&&`${d}`.startsWith("'")&&`${d}`.endsWith("'")&&(d=d.substring(1,d.length-1)),d});o.length===0&&o.push(" "),e.forEach(l=>{o.forEach(d=>{s.splitByValue=d;let u=Ue({...s,key:U.Min,showOutliers:!0}),c=Ue({...s,key:U.Min,showOutliers:!1}),h=Ue({...s,key:U.Max,showOutliers:!0}),p=Ue({...s,key:U.Max,showOutliers:!1});l[h]===void 0&&l[p]!==void 0&&(l[h]=l[p]),l[u]===void 0&&l[c]!==void 0&&(l[u]=l[c])})})}function Rv(t,e){let r,a,i=t[e[U.IQR]],n=t[e[U.FirstQuartile]],s=t[e[U.ThirdQuartile]];return Number.isFinite(i)&&Number.isFinite(n)&&Number.isFinite(s)&&(r=n-i*1.5,a=s+i*1.5),{outlierMinThreshold:r,outlierMaxThreshold:a}}function Mu(t){let{yField:e,xField:r,xValue:a,splitByField:i,splitByValue:n,outlierMaxThreshold:s,outlierMinThreshold:o,target:l}=t,d;if(r!==void 0&&a!==void 0){let h=typeof a!="string"?a:`'${Vs(a)}'`;d=`${r}=${h.toString()}`}let u;if(i!==void 0&&n!==void 0){let h=typeof n!="string"?n:`'${Vs(n)}'`;u=`${i}=${h.toString()}`}let c;return l==="outliers"&&o!==s?c=`(${e}<${o} OR ${e}>${s})`:l==="alternativeData"&&(o===s?c=`(${e}=${o})`:c=`(${e}>=${o} AND ${e}<=${s})`),[d,u,c].filter(h=>h!==void 0).join(" AND ")}function vp(t){let{data:e,yField:r,x:a,chartSubType:i,splitByField:n}=t,s=i===x.BoxPlotMonoField||i===x.BoxPlotMonoFieldAndCategory||i===x.BoxPlotMonoFieldAndSplitBy||i===x.BoxPlotMonoFieldAndCategoryAndSplitBy?void 0:r,o=gi(s),l=[],d=[],{maxOperandsPerWhereClause:u}=ta(),c=[],h=[],p=1;return e.forEach((f,m)=>{let{outlierMinThreshold:y,outlierMaxThreshold:b}=Rv(f,o);if(typeof y=="number"&&typeof b=="number"){let v={yField:r,outlierMinThreshold:y,outlierMaxThreshold:b};(i===x.BoxPlotMonoFieldAndCategory||i===x.BoxPlotMultiFieldsAndCategory||i===x.BoxPlotMonoFieldAndCategoryAndSplitBy)&&a!==void 0&&a in f&&(v.xField=a,v.xValue=Gi({value:f[a],dataContext:f,keepNullValues:!0,specificField:O.typeOrDomainIdValue})),(i===x.BoxPlotMonoFieldAndSplitBy||i===x.BoxPlotMultiFieldsAndSplitBy||i===x.BoxPlotMonoFieldAndCategoryAndSplitBy)&&n!==void 0&&n in f&&(v.splitByField=n,v.splitByValue=f[n]),c.push(Mu({...v,target:"outliers"})),h.push(Mu({...v,target:"alternativeData"})),(p%u===0||m===e.length-1)&&(l.push(me(c,"OR")),d.push(me(h,"OR")),c=[],h=[])}p+=1}),{outliersFilterBatches:l,dataWithoutOutliersFilterBatches:d}}function kv(t){let{data:e,outlierDataItem:r,chartSubType:a,x:i,y:n,meanAndStdDevPerField:s,splitByField:o}=t,l=s?.[Si(n,j.Average)],d=s?.[Si(n,j.StandardDeviation)];if(l===void 0&&d===void 0)switch(a){case x.BoxPlotMultiFields:{let u=gi(n),c=e[0];l=Number(c[u[U.Average]]),d=Number(c[u[U.StandardDeviation]]);break}case x.BoxPlotMultiFieldsAndCategory:{let u=e.find(c=>c[i]===r[i]);if(u!==void 0){let c=gi(n);l=Number(u[c[U.Average]]),d=Number(u[c[U.StandardDeviation]])}break}case x.BoxPlotMultiFieldsAndSplitBy:{let u=e.find(c=>c[o]===r[o]);if(u!==void 0){let c=gi(n);l=Number(u[c[U.Average]]),d=Number(u[c[U.StandardDeviation]])}break}}return{mean:l,stdDev:d}}async function jv(t){let{seriesConfig:e,data:r,uniqueQuery:a,queryObject:i,meanAndStdDevPerField:n,abortKey:s}=t,o=Y(e),l=e[0],{x:d}=l,u=Xe(l.query?.where),c=ce(i),h=tt(e),p=[];for(let y=0;y<h.length;y+=1){let b=h[y],{outliersFilterBatches:v}=vp({data:r,yField:b,x:d,chartSubType:o,splitByField:u});for(let S=0;S<v.length;S+=1){let C=v[S];if(C!==""){let F=[];d!==O.boxPlot.boxPlotCategory&&F.push(d),F.push(b),u!==""&&F.push(u),F.push(c.objectIdField);let A={...a,where:me([a.where,C]),groupByFieldsForStatistics:void 0,outStatistics:void 0,orderByFields:void 0,num:void 0,outFields:F};p.push(Et({queryObject:i,queryConfig:A,featureCount:1,abortKey:s}))}}}let f=await Promise.all(p),m=new Map;for(let y=0;y<f.length;y+=1){let b=f[y],v=h[y];b.forEach(S=>{let C={...S.attributes};if(C[v]!==void 0){d===O.boxPlot.boxPlotCategory&&(C[O.boxPlot.boxPlotCategory]=v);let F={key:U.Outlier,chartSubType:o};switch(o){case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMultiFieldsAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:F={...F,splitByValue:C[u]};break;case x.BoxPlotMultiFieldsAndCategory:F={...F,y:v};break}let A=Ue(F),$=C[v];C[A]=$;let E=`${C[d]}-${C[u]}-${$}`,P=m.get(E);if(C[ke.uniqueIdsName]=[...P?.[ke.uniqueIdsName]??[],C[c.objectIdField]],delete C[c.objectIdField],Jp(o)){let N=Ue({...F,standardizeValues:!0}),{mean:M,stdDev:R}=kv({data:r,outlierDataItem:C,chartSubType:o,x:d,y:v,splitByField:u,meanAndStdDevPerField:n});M!==void 0&&R!==void 0&&(C[N]=Us({value:$,mean:M,stdDev:R}))}delete C[v],C[O.boxPlot.boxPlotOutlierId]=!0,m.set(E,C)}})}return Array.from(m.values())}async function _v(t){let{data:e,queryObject:r,uniqueQuery:a,elementCount:i,chartConfig:n,chartLimits:s,abortKey:o}=t,l=[],{series:d,showMean:u}=n,c=Cn({showMean:u,seriesConfig:d}),h=Y(d),p=Ar(n),{x:f}=p,m=Xe(p.query?.where),y=[];for(let v=0;v<c.length;v+=1){let S=c[v],{dataWithoutOutliersFilterBatches:C}=vp({data:e,yField:S,x:f,chartSubType:h,splitByField:m});for(let F=0;F<C.length;F+=1){let A=C[F],$={...a,where:me([a.where,A])};$.outStatistics!==void 0&&($.outStatistics=$.outStatistics?.filter(E=>(E.statisticType===j.Minimum||E.statisticType===j.Maximum)&&E.onStatisticField===S).map(E=>({...E,outStatisticFieldName:`${E.outStatisticFieldName}${O.boxPlot.boxPlotOutliersSuffix}`}))),y.push(Sn({queryObject:r,uniqueQuery:$,chartConfig:n,elementCount:i,isTimeBinningSeries:!1,showMean:u,chartLimits:s,abortKey:o}))}}let b=await Promise.all(y);for(let v=0;v<b.length;v+=1)l.push(...b[v]);return h!==x.BoxPlotMonoFieldAndCategoryAndSplitBy&&(l=Qi({data:l,x:m!==void 0&&m!==""?m:f})),l}async function Vv(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,abortKey:i}=t,n,{series:s,showMean:o}=a,l=Y(s);if(l===x.BoxPlotMultiFieldsAndCategory||l===x.BoxPlotMultiFieldsAndSplitBy){let d=Cn({showMean:o,seriesConfig:s}),u={...r};delete u.outStatistics,delete u.groupByFieldsForStatistics,delete u.orderByFields;let c=[];for(let p=0;p<d.length;p+=1){let f=d[p];c.push({statisticType:j.Average,onStatisticField:f,outStatisticFieldName:`${j.Average}_${f}`},{statisticType:j.StandardDeviation,onStatisticField:f,outStatisticFieldName:`${j.StandardDeviation}_${f}`})}u.outStatistics=c;let h=await Et({queryObject:e,queryConfig:u,featureCount:1,abortKey:i});h.length>0&&(n=h[0].attributes)}return n}function Wv(t){let{data:e,additionalData:r,chartConfig:a}=t,i=a.series[0],{x:n}=i,s=Xe(i.query?.where);return e.map(o=>{let l=o,d=r.find(u=>u[n]===o[n]&&(s===""?!0:u[s]===o[s]));return d!==void 0&&(l={...o,...d}),l})}function Sp(t){let{chartConfig:e,data:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,{series:n,showMean:s}=e,o=Ar(e),l=Y(e.series),{x:d}=o,u=Cn({showMean:s,seriesConfig:n}),c=r;if((o.type===g.LineSeries||o.type===g.BoxPlotSeries)&&r?.[0]!==void 0){let h=Xe(o.query?.where);switch(l){case x.BoxPlotMonoField:c[0][O.boxPlot.boxPlotCategory]=u[0];break;case x.BoxPlotMultiFields:c=Dv({data:r,yList:u,calculateZScore:a});break;case x.BoxPlotMonoFieldAndSplitBy:c=Nv({data:r,splitByField:h,y:u[0]});break;case x.BoxPlotMultiFieldsAndSplitBy:c=Bv({splitByField:h,data:r,yList:u,meanAndStdDevPerField:i,calculateZScore:a});break;case x.BoxPlotMultiFieldsAndCategory:c=$v({data:r,yList:u,meanAndStdDevPerField:i,calculateZScore:a});break;case x.BoxPlotMonoFieldAndCategoryAndSplitBy:c=Mv({splitByField:h,x:d,data:r});break;case x.BoxPlotMonoFieldAndCategory:}}return qv(e,c),c}async function zv(t){let{data:e,queryObject:r,uniqueQuery:a,fetchFullBoxPlotData:i,chartConfig:n,elementCount:s,chartLimits:o,abortKey:l}=t,d=e,u=[];if(d!==void 0){let{series:c}=n,h=await Vv({queryObject:r,uniqueQuery:a,chartConfig:n,abortKey:l});if(i!==!1){u=await jv({queryObject:r,uniqueQuery:a,seriesConfig:c,data:d,abortKey:l});let p=await _v({queryObject:r,uniqueQuery:a,elementCount:s,data:e,chartConfig:n,chartLimits:o,abortKey:l});d=Wv({data:d,additionalData:p,chartConfig:n})}d=Sp({chartConfig:n,data:d,meanAndStdDevPerField:h,calculateZScore:!0})}return{dataItems:d,outliers:u}}function wp(t){let{outTimeZone:e=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:r="UTC",runsOnClientQueryEngine:a}=t,i="",n=ne.now().setZone(e),s=n.offset/60,o=r?n.setZone(r).offset/60:0,l=s-o;return l!==0&&(a?i=`${l>0?"+":"-"}1*INTERVAL '${Math.abs(l)}' HOUR `:i=l>0?`+INTERVAL '${Math.abs(l)}:00:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(l)-1}:59:59' HOUR TO SECOND`),i}function Uv(t,e){let r=wp({}),a=`EXTRACT(YEAR FROM ${t} ${r})`,i=`EXTRACT(MONTH FROM ${t} ${r})`,n=`EXTRACT(DAY FROM ${t} ${r})`,s=`EXTRACT(HOUR FROM ${t} ${r})`,o=`EXTRACT(MINUTE FROM ${t} ${r})`,l=`EXTRACT(SECOND FROM ${t} ${r})`,d=[];switch(e){case H.Second:d=[a,i,n,s,o,l];break;case H.Minute:d=[a,i,n,s,o];break;case H.Hour:d=[a,i,n,s];break;case H.Day:case H.Week:case H.Month:case H.Year:d=[a,i,n];break}return d}function Gv(t){let{whereValue:e,outStatistics:r,y:a}=t,i=ke.outStatistics.outStatisticFieldName??"";return r?.outStatisticFieldName!==void 0?i=r.outStatisticFieldName:r?.onStatisticField!==void 0&&r.statisticType!==void 0?i=`${r.statisticType}_${r.onStatisticField}_${e}`:a!==void 0&&(i=[a].flat()[0]),i}function Hv(t){let e=new Map;for(let r=0;r<t.length;r+=1){let a=t[r],i=a.query?.where;if(i!==void 0&&"y"in a){let n=dt({where:i,normalize:!0,escape:!1});if(n!==""){let s=Gv({whereValue:n,outStatistics:a.query?.outStatistics?.[0],y:a.y});a.y=s,e.set(n,s)}}}return e}function Qv(t){let{uniqueQuery:e,splitByField:r,x:a}=t,i=[...e.groupByFieldsForStatistics??[],a,r].filter(n=>n!==void 0&&n.trim()!==""&&n!==Pi);e.groupByFieldsForStatistics=Array.from(new Set(i))}function Zv(t){return t.statisticType===j.ContinuousPercentile||t.statisticType===j.DiscretePercentile}function Jv(t){let{uniqueQuery:e,y:r,useGenericOutStatFieldName:a,queryObject:i,chartSubType:n,isTimeBinningSeries:s,returnFeaturesExtent:o,splitByField:l}=t,d=ke.outStatistics;if(e.outStatistics?.[0]!==void 0){n!==x.PieFromFields&&n!==x.BarAndLineFromFields&&(e.outStatistics[0].outStatisticFieldName=a?d.outStatisticFieldName:[r].flat()[0]);let{outStatistics:u}=e;for(let c=0;c<u.length;c+=1){let h=e.outStatistics[c];h!==void 0&&Zv(h)&&(s&&!Zi(i)?(u[c].statisticType=j.Count,delete u[c].statisticParameters):u[c]={...u[c],statisticParameters:u[c].statisticParameters??{value:O.defaultStatParameterValue}})}}else if(i!==void 0){let{objectIdField:u}=ce(i);e.outStatistics=[{statisticType:d.statisticType,onStatisticField:u,outStatisticFieldName:a?d.outStatisticFieldName:[r].flat()[0]}]}o===!0&&(!s||Re(l))&&e.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"})}function Kv(t){let{chartConfig:e,fetchFullBoxPlotData:r}=t,{series:a}=e,i=Ui(e),n=[{statisticType:j.Average,suffix:U.Average}];r===!0&&(n=[...n,{statisticType:j.Minimum,suffix:U.Min},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.25},suffix:U.FirstQuartile},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.5},suffix:U.Median},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.75},suffix:U.ThirdQuartile},{statisticType:j.Maximum,suffix:U.Max},{statisticType:j.StandardDeviation,suffix:U.StandardDeviation}]);let s=new Set;return i&&"y"in a[0]?[a[0].y].flat().forEach(o=>s.add(o)):a.forEach(o=>{"y"in o&&[o.y].flat().forEach(l=>s.add(l))}),[...s].flatMap(o=>n.map(l=>{let d={onStatisticField:o,statisticType:l.statisticType,outStatisticFieldName:`${o}_${l.suffix}`};return l.statisticType===j.ContinuousPercentile&&(d.statisticParameters=l.statisticParameters),d}))}function Yv(t,e){for(let r=1;r<e.length;r+=1){let a={...e[r].query?.outStatistics?.[0]};a!==void 0&&t.outStatistics!==void 0&&t.outStatistics.push(a)}}function Xv(t){let{uniqueQuery:e,x:r,splitByField:a,unit:i,chartSubType:n,objectIdField:s}=t;if(i!==void 0){let o=Uv(r,i);e.orderByFields=o,e.groupByFieldsForStatistics=o,n===x.BarAndLineSplitBy&&!Re(a)?e.groupByFieldsForStatistics.push(a):n===x.BarAndLineNoAggregation&&(e.groupByFieldsForStatistics.push(s),e.outStatistics=[{onStatisticField:s,outStatisticFieldName:`COUNT_${s}`,statisticType:j.Count}])}}function xp(t){let{chartConfig:e,options:r,uniqueQuery:a}=t;if(r?.chartLimits?.behaviorAfterLimit===Tr.RenderUpToTheLimit){let i=ep(e,r?.chartLimits);if(i!==void 0){let n=Y(e.series);if(n===x.PieFromFields||n===x.BarAndLineFromFields){if(a.outStatistics?.[0]!==void 0){let s=(d,u)=>d.statisticType===j.EnvelopeAggregate===u,o=a.outStatistics.filter(d=>s(d,!0)),l=a.outStatistics.filter(d=>s(d,!1));l.splice(i),a.outStatistics=[...l,...o]}}else a.num=i}}}async function lo(t){let{chartConfig:e,queryConfig:r,options:a,queryObject:i,timeIntervalInfo:n,fetchFullBoxPlotData:s}=t,{setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l}=a??{},d=e.series,u=Y(d),c=Ar(e),{query:h,x:p}=c,f="y"in c?c.y:void 0,m=Yr({xAxisValueFormatType:nr(e),setTimeBinningInfoWhenNotProvided:o,seriesConfig:c}),y=new Map,b=!1,v=!1,S=!1,C=!1,F=!1,A={};if(h!==void 0){A=Mr(h);let k=Xe(h.where),V="";switch(r.fetchNullValues!==!0&&(p!==O.boxPlot.boxPlotCategory&&(V=`${p} IS NOT NULL`),k.trim()!==""&&k!==p&&!tr(h.where)&&(V=me([V,`${k} IS NOT NULL`]))),u){case x.BarAndLineSplitBy:{y=Hv(d),C=!0,b=!0,v=!0;break}case x.BarAndLineMultiFields:Yv(A,d),v=!0;break;case x.PieFromFields:case x.BarAndLineFromFields:V="",S=!0,v=!0;break;case x.BarAndLineMonoField:case x.PieFromCategory:v=!0;break;case x.BoxPlotMonoField:case x.BoxPlotMultiFields:S=!0,F=!0;break;case x.BoxPlotMonoFieldAndCategory:case x.BoxPlotMultiFieldsAndCategory:case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:case x.BoxPlotMultiFieldsAndSplitBy:{F=!0,C=!0,S=!0;break}case x.PieNoAggregation:case x.BarAndLineNoAggregation:case x.BarAndLineSplitByNoAggregation:}if(v&&Jv({uniqueQuery:A,y:f,useGenericOutStatFieldName:b,queryObject:i,chartSubType:u,isTimeBinningSeries:m,returnFeaturesExtent:l,splitByField:k}),C&&Qv({uniqueQuery:A,splitByField:k,x:p}),F&&(A.outStatistics=Kv({chartConfig:e,fetchFullBoxPlotData:s})),S?delete A.orderByFields:r.orderByFields!==void 0&&(A.orderByFields=r.orderByFields.filter(Q=>{let Z=Q.split(" ");return!Re(Z[0])})),m&&kt(d[0])){let Q=ce(i),{objectIdField:Z}=Q;(await St(i)).find(G=>G.name===p)?.type!==Se.DateOnly&&Xv({uniqueQuery:A,x:p,splitByField:Xe(h.where),unit:n?.unit??d[0].temporalBinning?.unit,chartSubType:u,objectIdField:Z})}A.where=V}xp({chartConfig:e,options:a,uniqueQuery:A});let{gdbVersion:$,geometry:E,distance:P,units:N,timeExtent:M,where:R,objectIds:q,spatialRelationship:L}=r;return $!==void 0&&(A.gdbVersion=$),E!==void 0&&(A.geometry=E),P!==void 0&&(A.distance=P),N!==void 0&&(A.units=N),M!==void 0&&(A.timeExtent=M),q!==void 0&&(A.objectIds=q),L!==void 0&&(A.spatialRelationship=L),R!==void 0&&(A.where=me([A.where,R])),{uniqueQuery:A,mapToStatField:y}}async function e0(t){let{queryObject:e,queryConfig:r,chartConfig:a,abortKey:i}=t,n=a.series[0],{x:s,valueConversion:o}=n,l=go(a),d=await Et({queryObject:e,queryConfig:r,featureCount:r.num??1,abortKey:i}),u=[{[s]:null}];if(l)u=d.map(c=>{co(c.attributes,s);let h=Eu(c.attributes[s],o);return{...c.attributes,[s]:h}});else if(d.length>0){let c=d[0].attributes[s]??d[0].attributes[s.toUpperCase()]??d[0].attributes[s.toLowerCase()];c=Eu(c,o),u=[{[s]:c}]}return u}async function t0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:n}=t,{chartLimits:s}=i??{},o={valid:!0};if(e!==void 0){let{behaviorAfterLimit:l,maxGaugeByFeaturesLimit:d}=s??{},u=go(r),c=!0,h;if(u&&(h=(await qp({chartConfig:r,queryObject:e,queryConfig:a,behaviorAfterLimit:l,numberMaxOfFeaturesToFetch:d,isGaugeByFeature:u})).elementCount,i?.chartLimits?.behaviorAfterLimit!==Tr.RenderUpToTheLimit&&(c=er({count:h??0,seriesCount:r.series.length,chartType:g.GaugeSeries,chartLimits:s})),i&&(Number.isFinite(d)||Number.isFinite(h)))){let p=Math.min(d??Number.NaN,h??Number.NaN);Number.isFinite(p)&&(i.chartLimits={...s,maxGaugeByFeaturesLimit:p}),xp({chartConfig:r,options:i,uniqueQuery:a})}if(Number.isNaN(c)||c){let p=await e0({queryObject:e,chartConfig:r,queryConfig:a,abortKey:n});o.data={dataItems:p},o.count=p.length}else o.count=h,pn({dataInfo:o,chartType:g.GaugeSeries})}return o}async function sI(t){let{queryObject:e,chartConfig:r,queryConfig:a}=t,{minimumFromField:i,maximumFromField:n}=r.axes[0],s=[],o="",l="";i!==void 0&&(typeof i=="string"?(o=`${j.Minimum}_${i}`,s.push({statisticType:j.Minimum,onStatisticField:i,outStatisticFieldName:o})):(o=`${i.statisticType}_${i.onStatisticField}`,s.push({...i,outStatisticFieldName:o}))),n!==void 0&&(typeof n=="string"?(l=`${j.Maximum}_${n}`,s.push({statisticType:j.Maximum,onStatisticField:n,outStatisticFieldName:l})):(l=`${n.statisticType}_${n.onStatisticField}`,s.push({...n,outStatisticFieldName:l})));let d={...a,outStatistics:s,orderByFields:void 0,groupByFieldsForStatistics:void 0,returnDistinctValues:void 0,fetchNullValues:void 0,num:void 0},u=await ia({queryObject:e,queryConfig:d}),c=u.get(o),h=u.get(l);return{minimumFromData:c,maximumFromData:h}}function r0(t=He.None,e){return t===He.None||t===He.Log&&e>0||t===He.Sqrt&&e>=0}function Cp(t,e){let r={valid:!1};return e===!0?r.invalidType=oe.HistogramEmptyField:t===He.Log?r.invalidType=oe.NegativeValueInLogCalculation:t===He.Sqrt&&(r.invalidType=oe.NegativeValueInSqrtCalculation),r}function i0(t,e){let r=t;switch(e){case He.Log:r=Math.log(t);break;case He.Sqrt:r=Math.sqrt(t);break}return r}function a0(t){let e=t,r=t.toString().split(".");if(r[1]!==void 0){let a=10**-r[1].length;e=t-a}return e}function Ip(t){let e="field";switch(t){case He.Log:e="natural-log";break;case He.Sqrt:e="square-root";break;case He.None:}return e}async function n0(t){let{queryObject:e,fieldName:r,queryConfig:a,abortKey:i}=t,n=ce(e),{objectIdField:s}=n,o=`${j.Count}_${s}`,l=`${j.Count}_${r}`,d=`${j.Minimum}_${r}`,u=`${j.Maximum}_${r}`,c={...a,outStatistics:[{statisticType:j.Count,onStatisticField:s,outStatisticFieldName:o},{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:l},{statisticType:j.Minimum,onStatisticField:r,outStatisticFieldName:d},{statisticType:j.Maximum,onStatisticField:r,outStatisticFieldName:u}]},h=await ia({queryObject:e,queryConfig:c,abortKey:i}),p=h.get(o)??Number.NaN,f=h.get(l)??Number.NaN,m=h.get(d)??Number.NaN,y=h.get(u)??Number.NaN;return{countExcludingNulls:f,countIncludingNulls:p,min:m,max:y}}async function s0(t){let{queryConfig:e,chartConfig:r,queryObject:a,abortKey:i}=t,n=r.series[0],{x:s,dataTransformationType:o}=n,l=[],{countIncludingNulls:d,countExcludingNulls:u,min:c,max:h}=await n0({queryObject:a,queryConfig:e,fieldName:s,abortKey:i}),p=r0(o,c),f=u<2||c===h,m={...e};return m.where=me([m.where,`${s} is not null`]),{rawData:l,dataCompatibleWithTransformation:p,dataCountIncompatible:f,countExcludingNulls:u,countIncludingNulls:d}}function o0(t){let e={...t};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}function l0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,queryConfig:n}=t,{x:s,dataTransformationType:o}=e,l={layer:r,view:i,field:s,sqlWhere:tr(n.where)?void 0:n.where,useFeaturesInView:a};return o!==He.None&&(l={...l,normalizationType:Ip(o)}),l}function d0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,minValue:n,maxValue:s,queryConfig:o}=t,{x:l,binCount:d,dataTransformationType:u}=e,c={layer:r,view:i,field:l,minValue:n,maxValue:s,numBins:d??Tg,classificationMethod:"equal-interval",sqlWhere:tr(o.where)?void 0:o.where,useFeaturesInView:a};return u!==He.None&&(c={...c,normalizationType:Ip(u)}),c}function u0(t,e){let r=Number.NaN;return t!==void 0&&e!==void 0&&(r=t-e),r}async function c0(t){let{chartConfig:e,queryConfig:r,queryObject:a,countExcludingNulls:i,countIncludingNulls:n,options:s,errorStrings:o}=t,l=e.series[0],{dataTransformationType:d}=l,u={valid:!0};if(a!==void 0){let c=ce(a),h=wn(r?.geometry)?.extent?.toJSON()!==void 0,p=s?.view,f=l0({seriesConfig:l,layer:c,view:p,useFeaturesInView:h,queryConfig:r}),m;if(p!==void 0&&(m=new Zd({geometry:p.extent}),p.extent!==void 0&&fo(c))){let{distance:E,units:P}=r;E!==void 0&&(m.distance=E),P!==void 0&&(m.units=P)}if(r.timeExtent){let E={start:r.timeExtent[0],end:r.timeExtent[1]};m===void 0?m=new Zd({timeExtent:E}):m.timeExtent=E}f.filter=m;let y;f.outStatisticTypes={exclude:["median"]};try{y=await Jd(f)}catch(E){throw new lt(vt.QueryFeaturesError,o.errors.queryError,E)}f.outStatisticTypes={include:["median"]};try{let E=await Jd(f);E?.median&&(y.median=E.median)}catch{}y=o0(y);let{avg:b,count:v,stddev:S,min:C,max:F,sum:A,median:$}=y;if(v===0)u={...Cp(d)};else{let E=d0({seriesConfig:l,layer:c,view:p,useFeaturesInView:h,minValue:a0(C),maxValue:F,valueExpression:f.valueExpression,queryConfig:r});E.filter=m;let P;try{P=await Sm(E)}catch(M){throw new lt(vt.QueryFeaturesError,o.errors.queryError,M)}let N=u0(n,i);u.data={mean:b,stddev:S,min:C,max:F,median:Number($),bins:P?.bins,count:i,nulls:N,sum:A??void 0},u.data.bins.length>0&&(u.data.bins[u.data.bins.length-1].isLastBin=!0)}}return u}async function Fp(t){let{chartConfig:e,queryConfig:r,queryObject:a,options:i,abortKey:n,errorStrings:s}=t,{series:o}=e,l=o[0],{rawData:d,dataCompatibleWithTransformation:u,dataCountIncompatible:c,countIncludingNulls:h,countExcludingNulls:p}=await s0({queryObject:a,chartConfig:e,queryConfig:r,abortKey:n}),f={valid:!0};return!u||c?f=Cp(l.dataTransformationType,c):f=await c0({chartConfig:e,queryObject:a,queryConfig:r,countIncludingNulls:h,countExcludingNulls:p,options:i,errorStrings:s}),f}async function p0(t){let{queryObject:e,queryConfig:r,chartConfig:a,x:i}=t,{series:n}=a,{dataTransformationType:s}=n[0],o={...r,orderByFields:[i],outFields:[i]};return{valid:!0,data:{dataItems:(await Et({queryObject:e,queryConfig:o})).map(l=>({[i]:i0(l.attributes[i],s)}))}}}var Hr={groupByCaseBegin:"CASE",groupByOutKeyword:"OUT",groupByCaseEnd:"ELSE 'OUT' END"},h0="{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";async function f0(t){let{chartConfig:e,queryObject:r,queryConfig:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,{dataContextCountDistinctX:l,dataContextCountDistinctY:d}=O.scatterplotAggregationFields,u={...a,outStatistics:[{statisticType:j.Count,outStatisticFieldName:l,onStatisticField:s},{statisticType:j.Count,outStatisticFieldName:d,onStatisticField:o}],returnDistinctValues:!0};return await ia({queryObject:r,queryConfig:u,abortKey:i})}async function m0(t){let{statsMap:e,chartConfig:r,queryObject:a,options:i,queryConfig:n,abortKey:s}=t,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:u,dataContextCountDistinctX:c,dataContextCountDistinctY:h}=O.scatterplotAggregationFields,p,f,m,y,b,v=e.get(o),S=e.get(l),C=e.get(d),F=e.get(u);if(v!=null&&C!==void 0&&C!==null&&S!==void 0&&S!==null&&F!==void 0&&F!==null&&!Number.isNaN(v+S+C+F)){let{maxScatterPointsAfterAggregation:A}=Jr(i?.chartLimits),$=Math.floor(Math.sqrt(A)),E=await f0({queryObject:a,chartConfig:r,queryConfig:n,abortKey:s});m=Math.min(E.get(h)??Number.NaN,$),y=Math.min(E.get(c)??Number.NaN,$),b=y*m,p=S===v?0:(S-v)/(y-1),f=F===C?0:(F-C)/(m-1),e.set(O.scatterplotAggregationFields.xStep,p),e.set(O.scatterplotAggregationFields.yStep,f),e.set(O.scatterplotAggregationFields.rowCount,m),e.set(O.scatterplotAggregationFields.columnCount,y),e.set(O.scatterplotAggregationFields.realGridSize,b)}}function y0(t){let{groupByFieldsForStatistics:e,x:r,y:a,xValue:i,yValue:n,xStep:s,yStep:o,endOfRow:l,endOfColumn:d}=t,u=e===""?Hr.groupByCaseBegin:e;return u=qe(h0,{groupByFieldsForStatistics:u,x:r,y:a,xValue:`${i}`,yValue:`${n}`,xValuePlusStep:`${i+(d?0:s)}`,yValuePlusStep:`${n+(l?0:o)}`,xMinOperand:d?"=":">=",yMinOperand:l?"=":">=",xMaxOperand:d?"=":"<",yMaxOperand:l?"=":"<"}),u}async function g0(t){let{chartConfig:e,queryConfig:r,queryObject:a,xMin:i,xMax:n,yMin:s,yMax:o,abortKey:l}=t,d=e.series[0],{x:u,y:c}=d,h={...r};return h.where=me([h.where,`${u}>=${i}`,`${u}<=${n}`]),u!==c&&(h.where=me([h.where,`${c}>=${s}`,`${c}<=${o}`])),await Et({queryObject:a,queryConfig:h,noBatch:!0,featureCount:1,abortKey:l})}async function b0(t){let{statsMap:e,chartConfig:r,queryObject:a,queryConfig:i,useQueryAttributeBins:n,errorStrings:s,abortKey:o}=t,l=r.series[0],{x:d,y:u}=l,{dataContextXMinField:c,dataContextXMaxField:h,dataContextYMinField:p,dataContextYMaxField:f,queryNumberOfFeatures:m,queryNumberOfAggregatedFeatures:y}=O.scatterplotAggregationFields,b,v=e?.get(c)??Number.NaN,S=e?.get(h)??Number.NaN,C=e?.get(m)??Number.NaN,F=e?.get(p)??v,A=e?.get(f)??S;if(v!=null&&F!==void 0&&F!==null&&S!==void 0&&S!==null&&A!==void 0&&A!==null&&!Number.isNaN(v+S+F+A)){let $=ce(a),{objectIdField:E}=$,P=e?.get(O.scatterplotAggregationFields.xStep),N=e?.get(O.scatterplotAggregationFields.yStep),M=e?.get(O.scatterplotAggregationFields.realGridSize),R=e?.get(O.scatterplotAggregationFields.rowCount),q=e?.get(O.scatterplotAggregationFields.columnCount),L=new Map,k=await St(a);if(k?.forEach(V=>{wi(V)&&L.set(V.name,{onStatisticField:V.name,outStatisticFieldName:V.name,statisticType:j.Maximum})}),(k.filter(V=>l?.additionalTooltipFields?.includes(V.name))??[])?.forEach(V=>{wi(V)||L.set(V.name,{onStatisticField:V.name,outStatisticFieldName:V.name,statisticType:j.Maximum})}),(await Qp($)).forEach(V=>{L.set(V,{onStatisticField:V,outStatisticFieldName:V,statisticType:j.Maximum})}),L.set(E,{onStatisticField:E,outStatisticFieldName:y,statisticType:j.Count}).set(d,{onStatisticField:d,outStatisticFieldName:d,statisticType:j.Maximum}).set(u,{onStatisticField:u,outStatisticFieldName:u,statisticType:j.Maximum}),P!==void 0&&N!==void 0){if(n){let V={...i,outStatistics:[...L.values()]};b=await kS({queryObject:a,queryConfig:V,xStep:P,xMin:v,xMax:S,x:d,y:u,yStep:N,errorStrings:s})}else if(R!==void 0&&q!==void 0){let V=0,{maxScatterCellsPerQuery:Q,maxScatterCellsPerQueryForStandard:Z}=ta(),G=await ow($)?Z:Q,z=[],ie=!0,Ae=v,Ee=F,te="",Ce=1,Be=1,je=Number.MAX_SAFE_INTEGER,ut=Number.MIN_SAFE_INTEGER,rt=Number.MAX_SAFE_INTEGER,Ie=Number.MIN_SAFE_INTEGER;for(;Be<=q&&ie;){for(Ee=F,Ce=1;Ce<=R&&ie;){if(te=y0({groupByFieldsForStatistics:te,x:d,y:u,xValue:Ae,yValue:Ee,xStep:P,yStep:N,endOfRow:Ce===R,endOfColumn:Be===q}),Ae<je&&(je=Ae),Ae+P>ut&&(ut=Ae+P),Ee<rt&&(rt=Ee),Ee+P>Ie&&(Ie=Ee+N),V+=1,V%G===0||V===M||V===C){te=`${te} ${Hr.groupByCaseEnd}`;let Fe={...i,groupByFieldsForStatistics:[te],outStatistics:[...L.values()]};z.push(g0({chartConfig:r,queryConfig:Fe,queryObject:a,xMin:je,xMax:ut,yMin:rt,yMax:Ie,abortKey:o})),je=Number.MAX_SAFE_INTEGER,ut=Number.MIN_SAFE_INTEGER,rt=Number.MAX_SAFE_INTEGER,Ie=Number.MIN_SAFE_INTEGER,te="",V===M&&(ie=!1)}Ee+=N,Ce+=1}Ae+=P,Be+=1}b=(await Promise.all(z)).flat()}}}return b}var v0={dataFormat:"json",outputFormat:"json",typeKey:"analyticType",typeValue:"LinRegR2",fieldValue:"onAnalyticField",slopePropertyList:["Slope","SLOPE","slope"],interceptPropertyList:["Intercept","INTERCEPT","intercept"],r2PropertyList:["R2","r2"]};async function S0(t){let{queryObject:e}=t,r=!1,a=LS(e),i=ce(e),n=Ge(i);if(a&&n.url!==void 0&&n.url!==null){let s=`${n.url}/${n.layerId}?f=json`;try{let o=(await en(s)).data,l=o?.advancedQueryCapabilities?.supportsQueryAnalytic===!0,d=o?.sqlParserVersion===void 0||n.version!=null&&n.version>=10.91;r=l&&d}catch{}}return r}function w0(t){let{x:e,y:r,trendlineXToY:a,data:i}=t,[n,s]=i?si(i,o=>o[e]):[Number.NaN,Number.NaN];return[{[e]:n??Number.NaN,[r]:a(n??Number.NaN)},{[e]:s??Number.NaN,[r]:a(s??Number.NaN)}]}function x0(t){let{data:e,x:r,y:a}=t,i=[];return e!==void 0&&(i=e.filter(n=>Number.isFinite(n[r])&&Number.isFinite(n[a])).map(n=>[n[r],n[a]])),i}async function C0(t){let{statsMap:e,queryObject:r,chartConfig:a,queryConfig:i}=t,n=a.series[0],{x:s,y:o}=n,l=Number.NaN,d=[{[s]:Number.NaN,[o]:Number.NaN},{[s]:Number.NaN,[o]:Number.NaN}],{dataFormat:u,outputFormat:c,typeKey:h,typeValue:p,fieldValue:f,slopePropertyList:m,interceptPropertyList:y,r2PropertyList:b}=v0,v=`[{"${h}": "${p}", "${f}":"${s},${o}"}]`,S=await MS({queryObject:r,queryConfig:i,outputFormat:c,dataFormat:u,outAnalytics:v});if(S!==void 0){let C=Number.NaN,F=Number.NaN,{expr:A}=Xa(S,m),{expr:$}=Xa(S,y),{expr:E}=Xa(S,b);A!==void 0&&Number.isFinite(S[A])&&(C=S[A]),$!==void 0&&Number.isFinite(S[$])&&(F=S[$]),E!==void 0&&Number.isFinite(S[E])&&(l=S[E]);let{dataContextXMinField:P,dataContextXMaxField:N,dataContextYMinField:M,dataContextYMaxField:R}=O.scatterplotAggregationFields,q=e.get(P)??Number.NaN,L=e.get(N)??Number.NaN,k=e.get(M)??Number.NaN,V=e.get(R)??Number.NaN,Q=(L-q)/100,Z=q-Q,G=Number.NaN;for(;!(G>=k&&G<=V)&&Z<=L;)Z+=Q,G=C*Z+F;let z=L+Q,ie=Number.NaN;for(;!(ie>=k&&ie<=V)&&z>=q;)z-=Q,ie=C*z+F;d=[{[s]:Z,[o]:G},{[s]:z,[o]:ie}]}return{r2:l,trendLinePoints:d}}function Tp(t){let{data:e,chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s,trendLinePoints:o}=O.scatterplotSeries,l=x0({data:e,x:i,y:n});if(l!==void 0){let d=jo(l),u=_o(d);s=d.m===0?0:Vo(l,u),o=w0({x:i,y:n,trendlineXToY:u,data:e})}return{r2:s,trendLinePoints:o}}async function I0(t){let e=await S0(t),{chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s}=O.scatterplotSeries,o=[{[i]:Number.NaN,[n]:Number.NaN},{[i]:Number.NaN,[n]:Number.NaN}],l={r2:s,trendLinePoints:o},d=!1;if(e)try{l=await C0(t)}catch{d=!0}return(!e||d)&&(l=Tp(t)),l}async function F0(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,l=new Map,{dataContextXMinField:d,dataContextXMaxField:u,dataContextYMinField:c,dataContextYMaxField:h,queryNumberOfFeatures:p}=O.scatterplotAggregationFields,{objectIdField:f}=ce(a),m=[{statisticType:j.Count,onStatisticField:f,outStatisticFieldName:p},{statisticType:j.Minimum,outStatisticFieldName:d,onStatisticField:s},{statisticType:j.Maximum,outStatisticFieldName:u,onStatisticField:s}];s!==o&&m.push({statisticType:j.Minimum,outStatisticFieldName:c,onStatisticField:o},{statisticType:j.Maximum,outStatisticFieldName:h,onStatisticField:o});let y={...r};return y.outStatistics=m,l=await ia({queryObject:a,queryConfig:y,abortKey:i}),s===o&&(l.set(c,l.get(d)??Number.NaN),l.set(h,l.get(u)??Number.NaN)),l}function Ua(t){let{value:e,valueMin:r,valueMax:a}=t;return e===r||e===a?e:Math.random()*(a-r)+r}function T0(t){let{useQueryAttributeBins:e,graphic:r,x:a,y:i,yStep:n}=t,{groupByOutKeyword:s}=Hr,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:u}=O.scatterplotAggregationFields,c=[];if(e&&"stackedAttributes"in r&&r.stackedAttributes){let h=_p(a,i),p=r.attributes[h.lowerBoundaryAlias],f=r.attributes[h.upperBoundaryAlias];r.stackedAttributes.forEach(m=>{let y=m[h.stackAlias],b;typeof y=="number"&&typeof n=="number"&&(y*=n),typeof y=="number"&&typeof n=="number"&&(b=y+n);let v=m[a],S=m[i];typeof y=="number"&&typeof b=="number"&&typeof v=="number"&&typeof S=="number"&&c.push({...m,[a]:Ua({value:v,valueMin:p,valueMax:f}),[i]:Ua({value:S,valueMin:y,valueMax:b}),[o]:Math.min(p,f),[l]:Math.max(p,f),[d]:y,[u]:b})})}else{let{expr:h,isInItem:p}=vn(r.attributes);if(p&&h&&r.attributes[h]!==s){let[f,m,y,b]=r.attributes[h].split("|");f=Math.min(f,m),m=Math.max(f,m),y=Math.min(y,b),b=Math.max(y,b);let v={...r.attributes,[o]:f,[l]:m,[d]:y,[u]:b};v[a]=Ua({value:v[a],valueMin:f,valueMax:m}),v[i]=Ua({value:v[i],valueMin:y,valueMax:b}),c=[v]}}return c}function P0(t){let{chartConfig:e,rawData:r,isAggregationMode:a,yStep:i,useQueryAttributeBins:n}=t,s=e.series[0],{x:o,y:l}=s,d=(Array.isArray(r)?r:r?.features)?.flatMap(u=>{let c=[{...u.attributes}];return co(c[0],[o,l]),a?c=T0({useQueryAttributeBins:n,graphic:u,x:o,y:l,yStep:i}):c[0][ke.uniqueIdsName]=u.getObjectId(),c});return d=d?.filter(u=>{let{expr:c}=vn(u);return Number.isFinite(u[o])&&Number.isFinite(u[l])&&(c===void 0||u[c]!==Hr.groupByOutKeyword)}),d??[]}async function O0(t){let{queryObject:e,queryConfig:r,chartConfig:a,featureCount:i,abortKey:n}=t,s=a.series[0],{x:o,y:l}=s,d=ce(e),u=[],c=((await St(e))?.filter(m=>wi(m)&&m.name!==o&&m.name!==l)??[]).map(m=>m.name)??[],h=s?.additionalTooltipFields??[],p=Array.from(new Set([o,l,d.objectIdField,...c,...h]));if(!Ge(d).isTable){let{rendererField:m,rendererNormalizationField:y}=ew(d?.renderer??void 0);Re(m)||p.push(m),Re(y)||p.push(y)}let f={...r,orderByFields:[`${o} ${We.Ascending}`],outFields:p};return u=await Et({queryObject:e,queryConfig:f,featureCount:i,abortKey:n}),u}async function A0(t){let e,{chartConfig:r,queryConfig:a,queryObject:i,statsMap:n,numberOfFeatures:s,isAggregationMode:o,useQueryAttributeBins:l,errorStrings:d,abortKey:u}=t,c=r.series[0],{x:h,y:p}=c;if(!Number.isNaN(s)&&s>0){let f={...a};f.where=me([f.where,`${h} IS NOT NULL`,`${p} IS NOT NULL`]),o?e=await b0({chartConfig:r,queryObject:i,queryConfig:f,statsMap:n,useQueryAttributeBins:l,errorStrings:d,abortKey:u}):e=await O0({queryObject:i,chartConfig:r,queryConfig:f,featureCount:s,abortKey:u})}return e}async function Pp(t){let{chartConfig:e,queryConfig:r,queryObject:a,sortData:i,calculateTrendLine:n,options:s,abortKey:o}=t,l=await F0({chartConfig:e,queryConfig:r,queryObject:a,abortKey:o}),{queryNumberOfFeatures:d,yStep:u}=O.scatterplotAggregationFields,{maxScatterPointsBeforeAggregation:c}=Jr(s?.chartLimits),h=l?.get(d)??Number.NaN,p=h>=c,f=NS(a);p&&await m0({statsMap:l,chartConfig:e,queryObject:a,options:s,queryConfig:r,abortKey:o});let m=await A0({...t,statsMap:l,numberOfFeatures:h,isAggregationMode:p,useQueryAttributeBins:f}),y=P0({chartConfig:e,rawData:m,isAggregationMode:p,yStep:l.get(u),useQueryAttributeBins:f});i!==!1&&Hi({arrayToSort:y,sortingField:e.series[0].x,orderBy:We.Ascending});let{r2:b,trendLinePoints:v}=n!==!1?await I0({data:y,statsMap:l,queryConfig:r,options:s,queryObject:a,chartConfig:e}):O.scatterplotSeries;return{dataItems:y,r2:b,trendLinePoints:v,aggregated:p}}function E0(t){let{itemsA:e,itemsB:r,isPieFromFields:a,x:i,y:n,outStatisticFieldName:s}=t,o=Mr(e),l=Mr(r),d=!1;if(o===void 0&&l!==void 0||o!==void 0&&l===void 0)d=!0;else if(!a){let u=[O.originalCategoryValue,O.originalDateValue,O.xAxisField,O.technicalSortingFieldBySum,O.technicalSortingFieldByPercent,O.pieChart.technicalFieldSlicePercent,O.pieChart.technicalFieldGroupedSlices,O.pieChart.technicalFieldSliceId,O.typeOrDomainFieldName,O.typeOrDomainIdValue,O.originalServerBinningRange,O.lastTemporalBin,O.technicalFieldSplitByField,ke.uniqueIdsName,ae.valueField,...Uc],c=(m,y)=>{let b=y[O.typeOrDomainFieldName];typeof b=="string"&&y[b]!==void 0&&(y[b]=y[O.typeOrDomainIdValue]),i&&y[ae.xField]!==void 0&&(y[i]=y[ae.xField],delete y[ae.xField]),n&&y[ae.yField]!==void 0&&(y[n]=y[ae.yField],delete y[ae.yField]),s&&y[ae.valueField]!==void 0&&(y[s]=y[ae.valueField],delete y[ae.valueField]);let v={};return Object.keys(y).forEach(S=>{!u.includes(S)&&!S.includes(O.rendererSymbolField)&&(v[S]=y[S])}),m.push(v),m},h=(m,y)=>JSON.stringify(m).localeCompare(JSON.stringify(y)),p=o?.reduce(c,[])?.sort(h),f=l?.reduce(c,[])?.sort(h);p&&f&&i&&p.length!==f.length&&(p=Qi({data:p,x:i}),f=Qi({data:f,x:i})),d=p?.length!==f?.length||!dr(p,f)}return d}function L0(t){let{chartConfig:e,currentSelectionDataItems:r,options:a}=t,{selectionData:i}=a??{},n=[];if(e!==void 0){let s=e.series,o=Y(s),{selectionItems:l}=i??{};if(l!==void 0&&E0({itemsA:l,itemsB:r,isPieFromFields:Y(e.series)===x.PieFromFields,x:e.series[0].x,y:"y"in e.series[0]?e.series[0].y.toString():void 0,outStatisticFieldName:e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName})?n=l:n=r??[],s.length>1&&o!==x.BarAndLineNoAggregation&&o!==x.BarAndLineSplitByNoAggregation){let d=Xe(s[0].query?.where);n=Qi({data:n,x:s[0].x,splitByField:d})}ra({arrayToSort:n,chartConfig:e})}return n??[]}function Ir(t,e){let r="";if(t.trim()!==""&&e!==void 0)if(e===null)r=`${t} IS NULL`;else{let a=typeof e!="number"?"'":"";r=`${t}=${a}${e.toString()}${a}`}return r}function D0(t){let{dataContext:e,xAxisField:r,yAxisField:a,options:i}=t,n="",{dataContextXMinField:s,dataContextXMaxField:o,dataContextYMinField:l,dataContextYMaxField:d}=O.scatterplotAggregationFields;if(Xc({dataContext:e,chartLimits:i?.chartLimits})){let{[s]:u,[o]:c}=e,h=r!==a?e[l]:u,p=r!==a?e[d]:c;if(!Number.isNaN(u)&&!Number.isNaN(c)&&!Number.isNaN(h)&&!Number.isNaN(p)){let f=[];u===c?f.push(`${r}=${u?.toString()}`):(f.push(`${r}>=${u?.toString()}`),f.push(`${r}<=${c?.toString()}`)),h===p?f.push(`${a}=${h?.toString()}`):(f.push(`${a}>=${h?.toString()}`),f.push(`${a}<=${p?.toString()}`)),n=me(f)}}else n=me([ir({where:Ir(r,e[r])}),a!==void 0?ir({where:Ir(a,e[a])}):""]);return n}function Op(t,e){let r="",a=e[O.originalServerBinningRange]??e[O.dateBinningRange];if(la(a)&&a.length===2){let[i,n]=a;typeof i=="number"&&typeof n=="number"&&Number.isFinite(i)&&Number.isFinite(n)&&(i=vi(i),n=vi(n));let s=e[O.lastTemporalBin]===!0?"<=":"<";r=`${t}>='${i}' AND ${t}${s}'${n}'`}return r}function Ap(t,e){let r="";if(Number.isFinite(t)){let a=1/10**O.queryMaxFloatPrecision;r=`${e}>=${t-a} AND ${e}<=${t+a}`}return r}function Ep(t){let{xAxisField:e,yAxisField:r,splitBy:a,dataContext:i,xAxisFieldType:n,chartConfig:s}=t,o="";if(e!==void 0&&e!==O.boxPlot.boxPlotCategory){let u=Gi({value:i[e],dataContext:i,keepNullValues:!0,specificField:O.typeOrDomainIdValue});n===Se.Double?o=Ap(u,e):(Ur(s.axes?.[0].valueFormat)&&(u=vi(u)),o=ir({where:Ir(e,u),normalize:!1,escape:!0}))}let l=ir({where:a??"",normalize:!1,escape:!0}),d="";if(nb(s)===!0){let u=Y(s.series)===x.BoxPlotMultiFieldsAndCategory?r:void 0,c=Ue({key:U.Min,showOutliers:!0,splitBy:a,y:u}),h=Ue({key:U.Max,showOutliers:!0,splitBy:a,y:u}),p=e===O.boxPlot.boxPlotCategory?i[e]:r;if(!Re(p)){let f=i[c],m=i[h];Number.isFinite(f)&&Number.isFinite(m)&&(d=`${p?.toString()}>=${f?.toString()} AND ${p?.toString()}<=${m?.toString()}`)}}return me([o,l,d])}function N0(t){let{xAxisField:e,splitBy:r,dataContext:a,xAxisFieldType:i,chartConfig:n}=t,s="";if(O.dateBinningRange in a)s=Op(e,a);else if(Y(n.series)!==x.BarAndLineFromFields){let l=Gi({value:a[e],dataContext:a,keepNullValues:!0,specificField:O.typeOrDomainIdValue});i===Se.Double?s=Ap(l,e):(Ur(n.axes?.[0].valueFormat)&&(l=vi(l)),s=ir({where:Ir(e,l),normalize:!1,escape:!0}))}let o=ir({where:r??"",normalize:!1,escape:!0});return me([s,o])}function B0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i=O.typeOrDomainIdValue in r?r[O.typeOrDomainIdValue]:r[O.originalCategoryValue];return i===void 0&&(i=r[e]),Y(a.series)===x.PieFromFields?"":ir({where:Ir(e,i),normalize:!1,escape:!0})}function qu(t){let{field:e,fieldType:r,fieldValue:a,unit:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l,{expression:d}=mo({field:e,fieldType:r,unit:i,addIntervalStatement:!0,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o});return d&&(l=`${d}=${a}`),l}function $0(t){let{xAxisFieldType:e,yAxisFieldType:r,dataContext:a,chartConfig:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l=i.series[0],d="";if(l.type===g.HeatSeries){let u,c,h=a[ae.xField],p=a[ae.yField],f=i.axes?.[0]?.valueFormat?.type,m=i.axes?.[1]?.valueFormat?.type;f===g.CategoryAxisFormat?u=ir({where:Ir(l.x,h),normalize:!1,escape:!0}):u=qu({field:l.x,fieldType:e,fieldValue:h,unit:l.xTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),m===g.CategoryAxisFormat?c=ir({where:Ir(l.y,p),normalize:!1,escape:!0}):c=qu({field:l.y,fieldType:r,fieldValue:p,unit:l.yTemporalBinning?.unit}),u&&(d=me([d,u])),c&&(d=me([d,c]))}return d}function M0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i="",n=a.series[0],{minValue:s,maxValue:o}=r;if(Number.isFinite(s)&&Number.isFinite(o)&&n.type===g.HistogramSeries){let l=Tb(e,n.dataTransformationType),d=r.isLastBin?"<=":"<";i=me([`${l}>=${s?.toString()}`,`${l}${d}${o?.toString()}`])}return i}function oI(t){let{chartConfig:e}=t,r=X(e.series),a="";switch(r){case g.ScatterSeries:a=D0(t);break;case g.HeatSeries:a=$0(t);break;case g.RadarSeries:case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:a=N0(t);break;case g.BoxPlotSeries:a=Ep(t);break;case g.HistogramSeries:a=M0(t);break;case g.PieSeries:a=B0(t);break}return a}async function q0(t){let{numberOfQueries:e,selectionOIDs:r,chartConfig:a,queryConfig:i,options:n,errorStrings:s,queryObject:o}=t,{setTimeBinningInfoWhenNotProvided:l}=n??{},{series:d}=a,u=X(d),c=[],{maxOIDsPerSelectionQuery:h}=ta();for(let p=0;p<e;p+=1){let f=p*h,m=(p+1)*h-1,y=r.slice(f===0?0:f-1,m),b={...i};switch(b.objectIds=y,u){case g.HeatSeries:c.push(Rp({completeHeatChartDataset:!1,chartConfig:a,queryConfig:b,queryObject:o,errorStrings:s,options:n}));break;case g.PieSeries:case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.ComboLineAndBarSeries:if(Yr({xAxisValueFormatType:nr(a),setTimeBinningInfoWhenNotProvided:l,seriesConfig:d[0]})){let v=a;"temporalBinning"in v.series[0]&&v.series[0].temporalBinning&&(v.series[0].temporalBinning.trimIncompleteTimeInterval=!1,Zi(o)&&(delete v.series[0].temporalBinning.start,delete v.series[0].temporalBinning.end)),c.push(po({chartConfig:v,queryConfig:b,queryObject:o,options:n}))}else c.push(TS({queryObject:o,chartConfig:a,options:n,queryConfig:b}));break;case g.BoxPlotSeries:c.push(PS({queryObject:o,chartConfig:a,options:n,errorStrings:s,queryConfig:b}));break;case g.ScatterSeries:c.push(Pp({queryObject:o,chartConfig:a,queryConfig:b,options:n,errorStrings:s,sortData:!1,calculateTrendLine:!1}));break;case g.HistogramSeries:c.push(p0({queryObject:o,queryConfig:b,chartConfig:a,x:d[0].x}));break}}return await Promise.all(c)}function R0(t){let{dataFetchingResults:e,numberOfQueries:r,series:a}=t,i=X(a),n=Y(a),s=[],o=new Map;for(let l=0;l<r;l+=1){let d=e[l];if(d!==void 0){let u;if(i===g.ScatterSeries)u=d.dataItems;else if("data"in d&&d.data){let c=d.data;"dataItems"in c&&(u=c.dataItems),"outliers"in c&&c.outliers&&s.push(...c.outliers),"meanLines"in c&&c.meanLines&&s.push(...c.meanLines)}if(u)if(a[0].type===g.HeatSeries)r>0&&u.forEach(c=>{o.set(`${c[ae.xField]}-${c[ae.yField]}`,c)});else if(a[0].type===g.ScatterSeries){let{x:c,y:h}=a[0];s.push(...u.map(p=>({[c]:p[c],[h]:p[h]})))}else d.valid&&(n===x.PieFromFields?s=dn({dataToConvert:u[0],x:nt,y:qt}):n===x.BarAndLineFromFields?s=dn({dataToConvert:u[0],x:a[0].x,y:a[0].y}):s.push(...u))}}return o.size>0&&(s=Array.from(o.values())),s}async function k0(t){let{chartConfig:e,queryConfig:r,chartData:a,currentSelectionOIDs:i,dataWasUpdated:n,queryObject:s,options:o,errorStrings:l}=t,{series:d}=e,{selectionData:u,viewExtentUpdated:c,returnSelectionOIDs:h,chartLimits:p}=o??{},{selectionItems:f,selectionOIDs:m}=u??{},y,b=X(d),v=b!==g.HistogramSeries&&b!==g.HeatSeries&&f!==void 0&&f.length>0&&!(d[0].x in f[0])&&!(nt in f[0])&&!(O.boxPlot.boxPlotCategory in f[0]);if(c!==!0&&h!==!1&&m!==void 0&&m.length>0&&(n===!0||v||m.length!==i?.length||!dr(m,i))){let S=Zp(a);if(S!==void 0&&!Fb({dataContext:S[0],chartConfig:e,chartLimits:p}))y=S.filter(C=>{let F=C[ke.uniqueIdsName];return typeof F=="number"||typeof F=="string"?m?.includes(F):!1});else if(m?.[0]!==void 0&&r!==void 0){let{maxOIDsPerSelectionQuery:C}=ta(),F=Math.ceil(m.length/C),A=await q0({numberOfQueries:F,selectionOIDs:m,queryConfig:r,queryObject:s,options:o,errorStrings:l,chartConfig:e});y=R0({dataFetchingResults:A,numberOfQueries:F,series:d})}}return y}function*j0(t){let{filterList:e,queryObject:r,queryConfig:a}=t;for(let i=0;i<e.length;i+=1){let n={...a};n.where=me([n.where,e[i]]),yield VS({queryObject:r,queryConfig:n,uniqueFeature:!0})}}async function lI(t){let{whereList:e,queryObject:r,queryFilter:a,queryConfig:i}=t,n=[];if(e.length>0){let s=ta().maxElementsPerSelectionQuery,o=[],l=Math.ceil(e.length/s);for(let u=0;u<l;u+=1){let c=u*s,h=(u+1)*s,p=e.slice(c===0?0:c-1,h),f=me(p,"OR");f=me([a,f]),o.push(f)}let d=j0({filterList:o,queryObject:r,queryConfig:i});n=(await Promise.all(d)).flat(),n=Array.from(new Set(n))}return n}async function _0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,options:n,errorStrings:s,abortKey:o}=t,l=Y(a.series),d={valid:!0,data:{dataItems:[]}};if(i!==void 0&&i.length>0){let u=Ar(a),{x:c}=u,h="y"in u?u.y:"",p;e!==void 0&&(p=(await St(e)).find(S=>S.name===c)?.type);let f=[],m=i.reduce((S,C)=>{let F=[];if(ke.uniqueIdsName in C)f.push(C[ke.uniqueIdsName]);else{switch(l){case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMultiFieldsAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:{let E=Xe(u.query?.where??""),P=`_${U.Average}`;Object.keys(C).forEach(N=>{if(N.includes(P)){let M=N.replace(P,"");M.trim()!==""&&F.push(Ir(E,M))}});break}}let A=[h].flat(),$=A.length===1?A[0]:"";if(l===x.BoxPlotMultiFieldsAndCategory){let E=`_${U.FirstQuartile}`,P=Object.keys(C).find(N=>N.includes(E));P!==void 0&&($=P.replace(E,""))}F.length===0&&F.push(""),F.forEach(E=>{let P=Ep({chartConfig:a,xAxisField:c,yAxisField:$,splitBy:E,dataContext:C,xAxisFieldType:p});S.push(P)})}return S},[]),y=ce(e);if(y!==void 0&&f.length>0){let{objectIdField:S}=y;m.push(`${S} IN (${f.join(",")})`)}let b=m.join(" OR "),v={...r};v.where=me([v.where,b]),d=await uo({queryObject:e,chartConfig:a,queryConfig:v,options:n,errorStrings:s,abortKey:o})}return d}async function V0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,abortKey:u}=t,{series:c}=a,h=X(c),p=nr(a),f={valid:!0},m;s?m=await k0({chartConfig:a,queryConfig:r,chartData:o,currentSelectionOIDs:n,dataWasUpdated:!0,queryObject:e,options:l,errorStrings:d})??[]:m=L0({chartConfig:a,currentSelectionDataItems:i,options:l});let y=!1;switch(h){case g.HeatSeries:f.data={dataItems:m};break;case g.PieSeries:if(Y(a.series)===x.PieFromFields){let{x:b,y:v}=a.series[0],S=Mr(m);S.forEach(C=>{b in C&&(C[nt]=C[b],delete C[b]),v in C&&(C[qt]=C[v],delete C[v])}),f.data={dataItems:S}}else f.data={dataItems:m};f.count=m.length,y=!0;break;case g.BoxPlotSeries:f=await _0(t);break;case g.BarSeries:case g.ComboLineAndBarSeries:case g.RadarSeries:case g.LineSeries:if(m.length===0||!Yr({xAxisValueFormatType:p,setTimeBinningInfoWhenNotProvided:l?.setTimeBinningInfoWhenNotProvided,seriesConfig:c[0]}))f.data={dataItems:m},f.count=m.length*c.length,y=!0;else{let b={...r};if(i!==void 0&&i.length>0){let v=i.map(C=>Op(c[0].x,C)),S=me(v,"OR");b.where=me([b.where,S])}f=await po({queryObject:e,queryConfig:b,chartConfig:a,options:l})}break;case g.HistogramSeries:{if(m.length===0)f.data={mean:Number.NaN,median:Number.NaN,stddev:Number.NaN,max:Number.NaN,min:Number.NaN,bins:[]},f.count=0;else{let{x:b}=c[0],v=m.map((F,A)=>{let{minValue:$,maxValue:E}=F,P=A===m.length-1?"<=":"<";return`${b} >= ${$} AND ${b} ${P} ${E}`}),S=me(v,"OR"),C={...r};C.where=me([C.where,S]),f=await Fp({queryObject:e,chartConfig:a,queryConfig:C,options:l,errorStrings:d,abortKey:u})}break}case g.ScatterSeries:{if(m.length===0){let{r2:b,trendLinePoints:v}=O.scatterplotSeries;f.data={dataItems:[],r2:b,trendLinePoints:v,count:0},f.count=0}else{let{r2:b,trendLinePoints:v}=Tp({data:m,chartConfig:a});f.data={dataItems:m,r2:b,trendLinePoints:v},f.count=m.length}break}}return y&&f.data!==void 0&&ra({arrayToSort:"dataItems"in f.data?f.data.dataItems:f.data,chartConfig:a}),f}async function uo(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s}=t,o={valid:!0},l=Ui(r),d=await Gs({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!l,options:i,chartConfig:r,abortKey:s});if(!l)o=d;else{let u={dataItems:[]};u.meanLines=d.data.dataItems;let c=Ev(r),h=(await Gs({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!0,options:i,chartConfig:c,abortKey:s})).data;u.dataItems=h.dataItems,u.outliers=h.outliers,o.data=u}return o}async function W0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,{series:d}=r,{filterBySelection:u}=i??{},c=X(d),h={valid:!0};if(u===!0)h=await V0(t);else switch(c){case g.HeatSeries:h=await Rp(t);break;case g.BoxPlotSeries:h=await uo(t);break;case g.BarSeries:case g.ComboLineAndBarSeries:case g.PieSeries:case g.RadarSeries:case g.LineSeries:{let p={queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,fieldList:o,preFetchedQueryResponse:l};Yr({xAxisValueFormatType:nr(r),setTimeBinningInfoWhenNotProvided:i?.setTimeBinningInfoWhenNotProvided,seriesConfig:d[0]})?h=await po(p):h=await Gs(p);break}case g.ScatterSeries:h.data=await Pp({queryObject:e,queryConfig:a,options:i,chartConfig:r,errorStrings:n,abortKey:s});break;case g.HistogramSeries:h=await Fp({queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,errorStrings:n});break;case g.GaugeSeries:h=await t0({queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:s});break}return h}async function dI(t){let{queryObject:e,chartConfig:r,abortKey:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,fieldList:u,preFetchedQueryResponse:c}=t,h={valid:!0},p=uw({queryObject:e,chartConfig:r,runtimeDataFilters:l?.runtimeDataFilters,ignoreViewExtent:l?.ignoreViewExtent});return WS(a),h=await W0({chartConfig:r,queryObject:e,queryConfig:p,fullDatasetBeforeFBS:o,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,options:l,abortKey:a,errorStrings:d,fieldList:u,preFetchedQueryResponse:c}),h.queryConfig=p,h}function z0(t,e,r){let a=new Map;for(let i=0;i<t.length;i+=1)a.set(t[i],{[r]:t[i]});for(let i=0;i<e.length;i+=1){let n=e[i][r];(typeof n=="string"||typeof n=="number")&&a.set(n,e[i])}return[...a.values()]}async function U0(t){let{seriesData:e,chartConfig:r,queryConfig:a,queryObject:i,categoryOrDateCount:n,behaviorAfterLimit:s,abortKey:o}=t,{series:l}=r,d=e,u=Y(l),c=nr(r);if(s!==Tr.RenderUpToTheLimit&&i!==void 0&&n!==void 0&&n>e.length&&u!==x.BarAndLineFromFields&&u!==x.BarAndLineNoAggregation&&u!==x.PieNoAggregation&&c===g.CategoryAxisFormat){let{x:h}=l[0],p={...a,returnDistinctValues:!0,outFields:[h]};delete p.outStatistics,delete p.orderByFields,delete p.groupByFieldsForStatistics;let f=(await Et({queryObject:i,queryConfig:p,featureCount:n,abortKey:o})).map(m=>m.attributes[h]).filter(m=>m!=null);f.length>e.length&&(d=z0(f,e,h))}return d}function G0(t,e){let r=t,{series:a}=e;if(nr(e)===g.CategoryAxisFormat&&a[0].query?.outStatistics?.[0].statisticType===j.Count){let i=a.reduce((n,s)=>{let o=s.query?.outStatistics?.[0].outStatisticFieldName??[s.y].flat()[0];return n[o]=0,n},{});for(let n=0;n<t.length;n+=1)t[n]={...i,...t[n]}}return r}var Lp=[x.BarAndLineMonoField,x.BarAndLineMultiFields,x.PieNoAggregation,x.PieFromCategory,x.BoxPlotMonoFieldAndCategory,x.BoxPlotMultiFieldsAndCategory,x.BoxPlotMonoFieldAndCategoryAndSplitBy],H0=8e3;function Dp(t,e){let r=t;return e===H.Week?r/=7:e===H.Month?r/=30:e===H.Year&&(r/=365),r=Math.ceil(r),r}function Fr(t){let{date:e,unit:r,nextOrPrevious:a,size:i}=t;if(i!==void 0&&Number.isFinite(i)){let n=a==="next"?i:-i;switch(r){case H.Second:return ne.fromMillis(e).plus({seconds:n}).valueOf();case H.Minute:return ne.fromMillis(e).plus({minutes:n}).valueOf();case H.Hour:return ne.fromMillis(e).plus({hours:n}).valueOf();case H.Week:case H.Day:return ne.fromMillis(e).plus({days:n}).valueOf();case H.Month:return ne.fromMillis(e).plus({months:n}).valueOf();case H.Year:return ne.fromMillis(e).plus({years:n}).valueOf()}}return e}function Q0(t){let{binFirstOrLastIndex:e,data:r,x:a,timeIntervalInfo:i}=t,{unit:n,size:s}=i,o=n===H.Week?(s??1)*7:s,l=r[e][a],d=e,u=Fr({date:l,unit:n,size:o,nextOrPrevious:"next"}),c=r[d][a];for(;d+1<r.length&&c<u;)d+=1,c=r[d]?.[a];let h=d+1>=r.length,p=d;h&&r[p]!==void 0&&(p+=1);let f=h?Fr({date:l,unit:n,size:o,nextOrPrevious:"next"}):r[d][a];return{binStartDate:l,binEndDate:f,last:h,nextBinFirstOrLastIndex:d,sliceStartIndex:e,sliceEndIndex:p}}function Z0(t){let{binFirstOrLastIndex:e,data:r,x:a,timeIntervalInfo:i}=t,{unit:n,size:s}=i,o=n===H.Week?(s??1)*7:s,l=r[e][a],d=e,u=Fr({date:l,unit:n,size:o,nextOrPrevious:"previous"}),c=r[d][a];for(;d-1>=0&&c>u;)d-=1,c=r[d]?.[a];let h=d-1<=0,p=e;return h&&r[p]!==void 0&&(p-=1),h&&(d=0),{binStartDate:h?Fr({date:l,unit:n,size:o,nextOrPrevious:"previous"}):r[d][a],binEndDate:l,nextBinFirstOrLastIndex:d,sliceStartIndex:d,sliceEndIndex:p,last:h}}function J0(t){let{binsToRegroup:e,statisticType:r,y:a,nullPolicy:i}=t,n;i!==ft.Interpolate&&(n=i===ft.Zero?0:null);let s=e.filter(o=>Number.isFinite(o[a]));if(s.length>0)switch(r){case j.Count:case j.Sum:n=ma(s,o=>o[a]);break;case j.Minimum:n=ha(s,o=>o[a]);break;case j.Maximum:n=pa(s,o=>o[a]);break;case j.Average:n=fa(s,o=>o[a]);break;case j.ContinuousPercentile:}return n}function K0(t){let{data:e,seriesConfig:r,timeIntervalInfo:a,dateMinTimestamp:i,dateMaxTimestamp:n}=t,s=[],{unit:o}=a,l=a.size??1,d=r[0],{x:u}=d,c,h;if(kt(d)&&(h=d.temporalBinning?.nullPolicy,c=d.temporalBinning?.timeAggregationType),l>1||o===H.Week||o===H.Month||o===H.Year){let{query:p}=r[0],f=tt(r),{statisticType:m}=p?.outStatistics?.[0]??da,y=!1,b=c===$e.End?e.length-1:0,v={binFirstOrLastIndex:b,data:e,x:u,timeIntervalInfo:a};for(;!y;){let S={},{binStartDate:C,binEndDate:F,last:A,nextBinFirstOrLastIndex:$,sliceStartIndex:E,sliceEndIndex:P}=c===$e.End?Z0(v):Q0(v);if(y=A,S=c===$e.End?S=e[P-1]:S=e[b],F>n&&C<n||C<i&&F>i||C>=i&&F<=n){let N=e.slice(E,P).filter(q=>!(O.dateBinModel in q));f.forEach(q=>{S[q]=J0({binsToRegroup:N,statisticType:m,y:q,nullPolicy:h})});let M=N.map(q=>q[xr]).filter(q=>q!==void 0),R=gb(M);R!==void 0&&(S[xr]=R),S[u]=C,S[O.xAxisField]=C,S[O.dateBinningRange]=[C,F],delete S[O.dateBinModel],s.push(S)}else A&&c!==$e.End&&s.length>0&&(s[s.length-1][O.dateBinningRange][1]=s[s.length-1][O.dateBinningRange][1]+1);b=$,v.binFirstOrLastIndex=$}c===$e.End&&(s=s.reverse())}else l===1?s=e.map((p,f)=>{let m=p[u],y=e[f+1]?.[u];return y=typeof y=="number"?y-1:Fr({date:m,unit:o,size:l,nextOrPrevious:"next"}),{...p,[O.dateBinningRange]:[m,y]}}):s=e;return s}function Np(t){let{dateMinTimestamp:e,dateMaxTimestamp:r,timeIntervalInfo:a}=t,{size:i,unit:n}=a,s=0,o=0;if(i!==void 0&&Number.isFinite(i)&&Number.isFinite(e)&&Number.isFinite(r)){let l=-1,d=ne.fromMillis(e),u=ne.fromMillis(r);switch(n){case H.Second:l=u.diff(d,"seconds").get("seconds");break;case H.Minute:l=u.diff(d,"minutes").get("minutes");break;case H.Hour:l=u.diff(d,"hours").get("hours");break;case H.Day:case H.Month:case H.Year:l=u.diff(d,"days").get("days");break;case H.Week:l=u.diff(d,"weeks").get("weeks");break}Number.isFinite(l)&&(o=Math.ceil(l)+1,s=i===1?o:Math.ceil(o/i))}return{numberOfFinalBinsWithinDataRange:s,numberOfSingleBinsWithinDataRange:o}}function Bp(t){let e=t[0].temporalBinning?.nullPolicy;return t.reduce((r,a)=>{r[O.dateBinModel]=void 0;let i=a.query?.outStatistics?.[0].outStatisticFieldName??[a.y].flat()[0];return e!==ft.Interpolate&&(r[i]=e===ft.Zero?0:null),r},{})}function Y0(t){let{dateMaxTimestamp:e,numberOfFinalBinsWithinDataRange:r,numberOfSingleBinsWithinDataRange:a,data:i,seriesConfig:n,timeIntervalInfo:s}=t,{size:o,unit:l}=s,{x:d}=n[0],u=n[0].temporalBinning?.timeAggregationType,c=i[0][d],h=e;if(o!==void 0&&Number.isFinite(o)&&a/r!==o){let p=Math.ceil(a/r)*r-a;l===H.Week&&(p*=7);let f=Bp(n);if(u===$e.End){let m=i[0][d];for(let y=0;y<p;y+=1)m=Fr({date:m,unit:l,size:1,nextOrPrevious:"previous"}),i.push({...f,[d]:m,[O.xAxisField]:m});p>0&&(c=i[i.length-1][d])}else{let m=i[i.length-1][d];for(let y=0;y<p;y+=1)m=Fr({date:m,unit:l,size:1,nextOrPrevious:"next"}),i.push({...f,[d]:m,[O.xAxisField]:m});h=i[i.length-1][d]}}return{newDateMin:c,newDateMax:h}}function X0(t){let{numberOfSingleBinsWithinDataRange:e,dataLength:r,unit:a}=t;return Dp(r,a)>=e}async function eS(t){let{queryObject:e,queryConfig:r,x:a}=t,i=`MIN_${a}`,n=`MAX_${a}`,s=`COUNT_${a}`,o={...r,outStatistics:[{statisticType:j.Minimum,onStatisticField:a,outStatisticFieldName:i},{statisticType:j.Maximum,onStatisticField:a,outStatisticFieldName:n},{statisticType:j.Count,onStatisticField:a,outStatisticFieldName:s}]};delete o.groupByFieldsForStatistics,delete o.orderByFields;let l=await ia({queryObject:e,queryConfig:o}),d=l.get(i),u=l.get(n),c=l.get(s);return typeof d=="string"&&(d=new Date(d).valueOf()),typeof u=="string"&&(u=new Date(u).valueOf()),{dateRange:{dateMinTimestamp:d,dateMaxTimestamp:u},numberOfFeatures:c}}function tS(t){let{newDateMin:e,newDateMax:r,seriesConfig:a,data:i,numberOfSingleBinsWithinDataRange:n,initialNumberOfBins:s,timeIntervalInfo:o}=t,{unit:l}=o,d=i;if(!X0({numberOfSingleBinsWithinDataRange:n,dataLength:s,unit:l})){let{x:u}=a[0],c=a[0].temporalBinning?.timeAggregationType,h=Bp(a),p=c===$e.End?r:e,f=c===$e.End?i.length-1:0;for(;f<i.length&&(c===$e.End&&p>e||c!==$e.End&&p<r);)p!==i[f][u]?d.push({...h,[u]:p,[O.xAxisField]:p}):f=c===$e.End?f-1:f+1,p=Fr({date:p,unit:l===H.Month||l===H.Year?H.Day:l,size:1,nextOrPrevious:c===$e.End?"previous":"next"})}return d}function rS(t){let{data:e,seriesConfig:r,dateMinTimestamp:a,dateMaxTimestamp:i}=t,n=e;if(r[0].temporalBinning?.trimIncompleteTimeInterval!==!1){let{timeAggregationType:s}=r[0].temporalBinning??{},o=e[0]?.[O.dateBinningRange]?.[0],l=e[e.length-1]?.[O.dateBinningRange]?.[1];if(s===$e.End?o<a:l>i)if(s===$e.End){let d=o;for(;d<a&&e.length>0;)e.shift(),e.length>0&&(d=e[0][O.dateBinningRange]?.[0])}else{let d=l;for(;d>i&&e.length>0;)e.pop(),e.length>0&&(d=e[e.length-1][O.dateBinningRange]?.[1])}}return n}function iS(t){let{groupByFieldsForStatistics:e,dateField:r,queryStartDate:a,queryEndDate:i,y:n,binIndex:s,lastBin:o}=t,l=e===""?Hr.groupByCaseBegin:e;return l=qe(Jw,{groupByFieldsForStatistics:l,dateField:r,startDate:`${a}`,endDate:`${i}`,y:[n].flat()[0],binIndex:`${s}`,endDateOperand:o?"<=":"<"}),l}function*aS(t){let{queryObject:e,seriesConfig:r,queryConfig:a,completeData:i}=t;for(let n=0;n<r.length;n+=1){let s=r[n],{query:o,x:l,y:d}=s,u=[{onStatisticField:o?.outStatistics?.[0]?.onStatisticField??"",outStatisticFieldName:j.ContinuousPercentile,statisticType:j.ContinuousPercentile,statisticParameters:{value:.5}}],c=Hr.groupByCaseBegin;for(let p=0;p<i.length;p+=1){let f=i[p],[m,y]=f[O.dateBinningRange],b=vi(m),v=vi(y);c=iS({groupByFieldsForStatistics:c,queryStartDate:b,queryEndDate:v,dateField:l,y:[d].flat()[0],binIndex:p,lastBin:p===i.length-1})}c=`${c} ${Hr.groupByCaseEnd}`;let h={...a,groupByFieldsForStatistics:[c],outStatistics:u,orderByFields:void 0};yield Et({queryObject:e,queryConfig:h,noBatch:!0})}}async function nS(t){let{queryObject:e,data:r,seriesConfig:a,queryConfig:i}=t,n=r,{statisticType:s}=a[0].query?.outStatistics?.[0]??da;if(s===j.ContinuousPercentile&&n.length>0){let o=aS({queryObject:e,completeData:n,seriesConfig:a,queryConfig:i}),l=(await Promise.all(o)).flat();if(l.length>0){let{isInItem:d,expr:u}=vn(l[0].attributes);d&&l.forEach(c=>{let h=c.attributes[`${u}`];if(h!==void 0){let[p,f]=h.split("|");if(f!==void 0){let m=c.attributes[j.ContinuousPercentile];n[f][`${p}`]=m}}})}}return n}async function sS(t){let{chartConfig:e,queryResults:r,mapToStatField:a,splitByField:i,x:n,y:s,nullPolicy:o,queryObject:l}=t,d=Wp(n),u=(await St(l)).find(m=>m.name===n)?.type,c=[],h=e.series[0],p="temporalBinning"in h?h.temporalBinning?.trimIncompleteTimeInterval:!1,f="temporalBinning"in h?h.temporalBinning?.timeAggregationType:!1;return r.forEach((m,y)=>{if(!(p&&(y===0&&f===$e.End||y===r.length-1&&f===$e.Start))){let{attributes:b,stackedAttributes:v}=m,S=b[d.lowerBoundaryAlias],C=b[d.upperBoundaryAlias],F=S,A=C,$=(P,N)=>{let M=P;if(N===Se.DateOnly&&(typeof P=="string"&&P.length===10||typeof P=="number"))if(typeof P=="string"){let R=P.split("-");R.length===3&&(M=ne.local(Number(R[0]),Number(R[1]),Number(R[2])).valueOf())}else M=new Date(P),M=new Date(M.valueOf()+M.getTimezoneOffset()*6e4),M=ne.local(M.getFullYear(),M.getMonth()+1,M.getDate()).valueOf();else typeof P=="string"&&["+","-"].forEach(R=>{R&&P.lastIndexOf(R)===P.length-6&&(M=new Date(P.slice(0,P.lastIndexOf(R))).valueOf())});return M};S=$(S,u),C=$(C,u);let E=(P,N)=>{if(N)switch(!0){case(o===ft.Zero&&(P[N]===void 0||P[N]===null)):P[N]=0;break;case o===ft.Null:break;case(o===ft.Interpolate&&(P[N]===void 0||P[N]===null)):delete P[N];break}};if(typeof S=="number"&&typeof C=="number"){let P={...b};P[O.originalServerBinningRange]=[F,A],P[n]=S,P[O.xAxisField]=S,P[O.dateBinningRange]=[S,C],delete P[d.lowerBoundaryAlias],delete P[d.upperBoundaryAlias],v&&i&&!Re(i)&&a?v.forEach(R=>{let q=R[i];if(q===null||typeof q=="string"||typeof q=="number"){let L=a?.get(q);L!==void 0&&(P[L]=R[ke.outStatistics?.outStatisticFieldName??""],E(P,L))}}):E(P,s);let{featureExtent:N,featureExtentKey:M}=$p({feature:m,splitByField:i});N&&(P[M]=N),c.push(P)}}}),c}async function oS(t){let{queryObject:e,queryResults:r,x:a,queryConfig:i,seriesConfig:n,dateRange:s,timeIntervalInfo:o}=t,l=r,{dateMinTimestamp:d,dateMaxTimestamp:u}=s;if(d&&u){let c=r.length;if(Hi({arrayToSort:l,sortingField:a}),c>1){let{numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:p}=Np({dateMinTimestamp:d,dateMaxTimestamp:u,timeIntervalInfo:o}),{newDateMin:f,newDateMax:m}=Y0({dateMaxTimestamp:u,data:l,numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:p,seriesConfig:n,timeIntervalInfo:o});l=tS({newDateMin:f,newDateMax:m,seriesConfig:n,data:l,initialNumberOfBins:c,numberOfSingleBinsWithinDataRange:p,timeIntervalInfo:o}),Hi({arrayToSort:l,sortingField:a}),l=K0({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:u,timeIntervalInfo:o}),l=rS({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:u}),l=await nS({queryObject:e,data:l,seriesConfig:n,queryConfig:i})}}return l}function lS(t){return Math.floor(Math.min(Math.max(8,Math.sqrt(t??8)),128)+.5)}function dS(t){let{dateRange:e,numberOfFeatures:r}=t,a,i,{dateMinTimestamp:n,dateMaxTimestamp:s}=e;if(n&&s){typeof n=="string"&&(n=new Date(n).valueOf()),typeof s=="string"&&(s=new Date(s).valueOf());let o=lS(r),l=(s-n)/o,d=_u.findIndex(b=>b.threshold>l),u=_u[d],{unitMs:c,preferredIntervalSize:h}=u;({unit:a}=u);let p=l/c,f=h.findIndex(b=>b>=p),m=h[f],y=f===0?h[0]:h[f-1];i=m-p<p-y?m:y}return{size:i,unit:a}}function uS(t){let{series:e,isTimeBinningSeries:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(kt(e)&&r){let{unit:n,size:s}=e.temporalBinning??{};i=!Rs(n,s)&&a===!0}return i}function cS(t){let e=[];for(let r=1;r<=6;r+=1){let a=t[`EXPR_${r}`]??t[`Expr${r}`]??t[`expr${r}`]??t[`EXPR${r}`];a!==null&&e.push(a)}return ne.local(Number(e[0]??1969),Number(e[1]??1),Number(e[2]??1),Number(e[3]??0),Number(e[4]??0),Number(e[5]??0)).valueOf()}function $p(t){let{feature:e,splitByField:r,chartSubType:a}=t,i;e.aggregateGeometries&&"Extent"in e.aggregateGeometries?i=e.aggregateGeometries.Extent:{extent:i}=e.aggregateGeometries??e.geometry??{};let n=i?.toJSON(),s=xr;return n!==void 0&&r!==void 0&&a!==void 0&&a===x.BarAndLineSplitBy&&(s=e.attributes[r]!==void 0?`${xr}_${e.attributes[r]}`:xr),{featureExtent:n,featureExtentKey:s}}function pS(t){let{input:e,x:r,splitByField:a}=t;return e.reduce((i,n)=>(a!==void 0&&a!==r&&!(O.technicalFieldSplitByField in n)&&delete n[a],Object.assign(i,n)),{})}function Qi(t){let{data:e,x:r,splitByField:a}=t,i=e;return e!==void 0&&e.length>0&&(i=[...Ln(e,n=>pS({input:n,x:r,splitByField:a}),n=>n[r]).values()]),i}function hS(t,e){let r=t,a=X(e);if(a!==g.PieSeries&&a!==g.BoxPlotSeries){let i=tt(e),n=e[0].y;t.forEach(s=>{let o=0;if(i.forEach(l=>{let d=s[l];Number.isFinite(d)&&(o+=d)}),s[O.technicalSortingFieldBySum]=o,Number.isFinite(o)&&o>0){let l=s[n];if(Number.isFinite(l)){let d=l/o;s[O.technicalSortingFieldByPercent]=d}}})}return r}function fS(t,e){let r=e,a=tt(t),i=a.length===1;return a.forEach(n=>{let s=gi(i?void 0:n),o=r[s[U.FirstQuartile]],l=r[s[U.ThirdQuartile]];Number.isFinite(o)&&Number.isFinite(l)&&l>=o&&(r[s[U.IQR]]=l-o)}),r}function mS(t,e){let r=e.series[0],a=t;if(r.type===g.HeatSeries){let{x:i,y:n}=r;a[ae.xField]=a[i]?.toString(),delete a[i],a[ae.yField]=a[n]?.toString(),delete a[n];let s=r.query?.outStatistics?.[0]?.outStatisticFieldName;s&&(a[ae.valueField]=a[s],delete a[s])}return a}function co(t,e){[e].flat().forEach(r=>{r&&(t[r]===void 0&&(t[r]=t[r.toUpperCase()]!==void 0?t[r.toUpperCase()]:t[r.toLowerCase()]),t[r]!==void 0?(r!==r.toUpperCase()&&delete t[r.toUpperCase()],r!==r.toLowerCase()&&delete t[r.toLowerCase()]):delete t[r])})}function yS(t,e){let r=Array.from(new Set(e.flatMap(a=>a.query?.outStatistics?.map(i=>i.outStatisticFieldName))));r.push(ke.outStatistics.outStatisticFieldName),co(t,r)}function gS(t,e){let r={...t};return t!==void 0&&e[0]!==void 0&&(r=Object.keys(t).reduce((a,i)=>{let n=e.find(s=>s.outStatisticFieldName?.toLowerCase()===i.toLowerCase())?.onStatisticField;return n!==void 0&&t[i]!==void 0&&n!==i?a[n]=t[i]:a[i]=t[i],a},{})),r}function bS(t){let{dataItem:e,splitByField:r,y:a,fieldOID:i}=t;if(e!==void 0&&!Re(r)&&!Re(a)){let n=e[r],s=`${a}_${n?.toString()}`;e[s]=e[a],a!==i&&delete e[a]}}function vS(t,e){Object.keys(t).forEach(r=>{if(r.startsWith(`${e}_`)){let a=r.slice(e.length+1);t[a]=t[r],delete t[r]}})}function SS(t,e){let r=1;switch(t){case x.BarAndLineFromFields:case x.PieFromFields:r=e.series[0].query?.outStatistics?.length??1;break;case x.BoxPlotMultiFields:case x.BoxPlotMultiFieldsAndSplitBy:r=e.series[0].y.length;break;case x.BarAndLineNoAggregation:case x.BoxPlotMonoField:case x.BoxPlotMonoFieldAndCategory:case x.BoxPlotMultiFieldsAndCategory:case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:case x.PieFromCategory:case x.BarAndLineSplitByNoAggregation:case x.PieNoAggregation:case x.BarAndLineSplitBy:case x.BarAndLineMonoField:case x.BarAndLineMultiFields:case x.NonSpecific:}return r}function wS(t){let{attributes:e,showMean:r,chartSubType:a}=t;r&&(a===x.BoxPlotMonoFieldAndSplitBy||a===x.BoxPlotMultiFieldsAndSplitBy||a===x.BoxPlotMonoFieldAndCategoryAndSplitBy)&&(e[O.boxPlot.boxPlotMeanLineMarkerId]=!0)}function xS(t){let{queryResponse:e,chartConfig:r,maxCategoryCount:a}=t,i=Y(r.series);return a&&Number.isFinite(a)&&a<e.length&&Lp.includes(i)?e.slice(0,a):e}function CS(t){let{attributes:e,uniqueCategoryList:r,maxCategoryCount:a,x:i,chartSubType:n}=t,s=!1;if(i&&a&&Number.isFinite(a)&&!Lp.includes(n))if((n===x.BarAndLineFromFields||n===x.PieFromFields)&&Object.keys(e).length>a)Object.keys(e).filter(o=>o!==j.EnvelopeAggregate).forEach((o,l)=>{l>=a&&delete e[o]});else{let o=e[i];o!==void 0&&(r.size===a&&!r.has(o)?s=!0:r.add(o))}return s}function Mp(t){let{queryResponse:e,chartConfig:r,mapToStatField:a,splitByField:i,isDateField:n,isTimeBinningSeries:s,subtypeInfo:o,resultLimit:l,showMean:d,chartLimits:u,fieldList:c}=t,{series:h}=r,p=Y(h),f=X(h),{x:m}=h[0],y="y"in h[0]?h[0].y:void 0,b=h[0].query?.outStatistics??[],{originalCategoryValue:v,originalDateValue:S,typeOrDomainFieldName:C,typeOrDomainIdValue:F}=O,A=rw(c),$=[],E=0,P=new Set,{maxCategoryCount:N}=Jr(u),M=xS({queryResponse:e,chartConfig:r,maxCategoryCount:N});for(let R=0;M[R]&&R<M.length&&!(l!==void 0&&E>=l);R+=1){E+=SS(p,r);let q=M[R],L={...q.attributes};if(CS({attributes:L,uniqueCategoryList:P,maxCategoryCount:N,x:m,chartSubType:p}))continue;yS(L,h),p===x.PieFromFields||p===x.BarAndLineFromFields?L=gS(L,b):typeof y=="string"&&p===x.BarAndLineSplitByNoAggregation?bS({dataItem:L,splitByField:i,y,fieldOID:A}):y&&(p===x.BoxPlotMonoField||p===x.BoxPlotMonoFieldAndCategory||p===x.BoxPlotMonoFieldAndSplitBy||p===x.BoxPlotMonoFieldAndCategoryAndSplitBy)&&vS(L,typeof y=="string"?y:y[0]),wS({attributes:L,showMean:d,chartSubType:p});let k=L[m];k===null&&h[0]?.query?.fetchNullValues===!0&&p!==x.PieFromFields&&(L[v]=null,k=O.nullValue),n&&typeof k=="string"?k=new Date(k).valueOf():s&&(k=cS(L));let{outStatisticFieldName:V}=ke.outStatistics??{},{featureExtent:Q,featureExtentKey:Z}=$p({feature:q,splitByField:i,chartSubType:p});if(Q&&(L[Z]=Q),p===x.BarAndLineSplitBy&&V!==void 0){let z=L[i],ie=a?.get(z);ie!==void 0&&(z===i&&(L[O.technicalFieldSplitByField]=L[ie]),L[ie]=L[V]),delete L[V]}else(p===x.PieNoAggregation||p===x.BarAndLineNoAggregation||p===x.BarAndLineSplitByNoAggregation)&&(n?L[S]=k:k!==O.nullValue&&(L[v]=k),Ig({isXAxis:!0,chartType:f,valueFormat:r.axes?.[0]?.valueFormat})&&(L[O.xAxisField]=`${k}-${R}`),L[ke.uniqueIdsName]=q.getObjectId());let G=nw({subtypeInfo:o,fieldList:c,fieldName:m,fieldValueToMatch:k});G!==void 0&&G!==k&&p!==x.PieFromFields&&(L[v]=G,L[C]=m,L[F]=k),f===g.BoxPlotSeries&&(L=fS(h,L)),f===g.PieSeries&&typeof k=="number"&&(L[v]===void 0&&(L[v]=L[m]),k=`${k}`),k!==void 0&&(L[v]===void 0&&(L[v]=L[m]),L[m]=G??k,L[m]===null&&(L[m]=O.nullValue),L[O.xAxisField]===void 0&&(L[O.xAxisField]=L[F]??L[m])),L=mS(L,r),$.push(L)}return $}async function Sn(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,mapToStatField:i,abortKey:n,elementCount:s,isTimeBinningSeries:o,showMean:l,chartLimits:d,usePopupTemplateFieldsInfo:u,preFetchedQueryResponse:c}=t,{series:h}=a,p=Y(h),f=[],m=p===x.BarAndLineSplitBy||p===x.BarAndLineSplitByNoAggregation?Xe(h[0].query?.where):"",y=c??await Et({queryObject:e,queryConfig:r,featureCount:s,abortKey:n}),b=await St(e,u),v=iw(b),{x:S}=h[0],C=v.includes(S),F=Hp(e);return f=Mp({queryResponse:y,chartConfig:a,mapToStatField:i,splitByField:m,isDateField:C,isTimeBinningSeries:o,subtypeInfo:F,fieldList:b,resultLimit:r.num,showMean:l,chartLimits:d}),p!==x.BarAndLineSplitByNoAggregation&&p!==x.BarAndLineFromFields&&(m!==""&&(f=Qi({data:f,x:S,splitByField:m})),f=hS(f,h)),f}async function qp(t){let{chartConfig:e,queryObject:r,queryConfig:a,numberMaxOfFeaturesToFetch:i,behaviorAfterLimit:n,isGaugeByFeature:s}=t,{series:o}=e,l=Y(o),{x:d}=o[0],u=o.length,c,h;if(l===x.BoxPlotMonoField||l===x.BoxPlotMonoFieldAndSplitBy?(h=u,c=h):l===x.BoxPlotMultiFields||l===x.BoxPlotMultiFieldsAndSplitBy?(h=e.series[0].y.length,c=h):l===x.PieFromFields||l===x.BarAndLineFromFields?(h=o[0].query?.outStatistics?.filter(p=>p.statisticType!==j.EnvelopeAggregate).length??0,c=h):c=await jS({queryObject:r,x:d,chartSubType:l,queryConfig:a,isGaugeByFeature:s}),c!==void 0){let p=l===x.BoxPlotMonoField||l===x.BoxPlotMonoFieldAndCategory||l===x.BoxPlotMonoFieldAndSplitBy;h=ks(l)&&!p?c*u:c}return n===Tr.RenderUpToTheLimit&&h!==void 0&&i!==void 0&&i<h&&(h=i,c=Math.ceil(h/u)),{categoryOrDateCount:c,elementCount:h}}function ra(t){let{arrayToSort:e,chartConfig:r,fieldList:a,isTimeBinningSeries:i}=t;if(i!==!0){let{series:n}=r,s=Y(n),o=X(n),l=nr(r),d=zs(r);if(o===g.HeatSeries)d!==void 0&&Hi({arrayToSort:e,orderBy:d.orderBy,sortingField:d.sortingField});else if(d!==void 0&&e!==void 0&&e.length>1){let{orderBy:u}=d,{sortingField:c}=d,h=r.orderOptions?.data?.orderType===at.Category,p=d.preferLabel!==!1,f=s===x.BarAndLineFromFields||s===x.PieFromFields||s===x.BoxPlotMultiFields||s===x.BoxPlotMultiFieldsAndSplitBy,m=f||o===g.PieSeries,y=s===x.PieNoAggregation||s===x.BarAndLineNoAggregation||s===x.BarAndLineSplitByNoAggregation,b=f?!1:e?.length>0&&e.some(v=>Object.hasOwn(v,O.typeOrDomainIdValue));if(h&&(!p||(o===g.LineSeries||o===g.RadarSeries)&&l===g.NumberAxisFormat)&&(b?c=O.typeOrDomainIdValue:m&&(c=O.originalCategoryValue)),Array.isArray(u))vb({arrayToSort:e,orderBy:u,sortingField:c,fieldList:a,isByFieldsChart:f,preferLabel:p});else{let v=l===g.DateAxisFormat&&h;Hi({arrayToSort:e,orderBy:u,sortingField:c,forceAscendingOrder:v,isNonAggregated:y,sortByCategory:h,preferLabel:p,isPieOrByFieldsChart:m})}}}}async function Gs(t){let{chartConfig:e,queryConfig:r,fetchFullBoxPlotData:a,options:i,queryObject:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,d="showMean"in e&&typeof e.showMean=="boolean"?e.showMean:!1,{chartLimits:u,usePopupTemplateFieldsInfo:c}=i??{},h=i?.replaceNoValueCategoryWithZero??O.options.replaceNoValueCategoryWithZero,{behaviorAfterLimit:p}=u??{},f={valid:!0},m,y=!1,b=e.series,v=b[0],S=Y(e.series);if(v!==void 0&&n!==void 0){let C=X(b),{uniqueQuery:F,mapToStatField:A}=await lo({chartConfig:e,queryObject:n,queryConfig:r,fetchFullBoxPlotData:a,options:i}),{categoryOrDateCount:$,elementCount:E}=await qp({chartConfig:e,queryObject:n,queryConfig:r,behaviorAfterLimit:p,numberMaxOfFeaturesToFetch:F.num}),P=!Number.isFinite(E),N=P||er({count:E??0,seriesCount:b.length,chartType:C,chartLimits:u});if(N&&(m=await Sn({queryObject:n,uniqueQuery:F,chartConfig:e,preFetchedQueryResponse:l,mapToStatField:A,elementCount:E,isTimeBinningSeries:!1,showMean:d,chartLimits:u,usePopupTemplateFieldsInfo:c,abortKey:s}),C===g.BoxPlotSeries&&(f.data=await zv({data:m,queryObject:n,fetchFullBoxPlotData:a,uniqueQuery:F,chartConfig:e,elementCount:E,chartLimits:u,abortKey:s}),u?.maxBoxPlotOutlierLimit!==void 0&&(N=(f.data.outliers??[]).length<=u.maxBoxPlotOutlierLimit,y=!N)),P&&($=m.length,E=ks(S)?$*b.length:$,N=er({count:E,seriesCount:b.length,chartType:C,chartLimits:u})),N)){if(C===g.PieSeries){S===x.PieFromFields&&(m=dn({dataToConvert:m[0],x:nt,y:qt,fieldList:o}));let M="";S===x.PieFromFields?M=qt:"y"in v&&typeof v.y=="string"&&(M=v.y),Pb(m,M)?f.data={dataItems:m}:Lv(f,oe.PieChartMixOfNegativePositiveSlices)}else if((C===g.RadarSeries||C===g.BarSeries||C===g.LineSeries||C===g.ComboLineAndBarSeries)&&(S===x.BarAndLineFromFields&&"y"in v&&typeof v.y=="string"?m=dn({dataToConvert:m[0],x:v.x,y:v.y,fieldList:o}):m=await U0({queryObject:n,seriesData:m,chartConfig:e,queryConfig:r,categoryOrDateCount:$,behaviorAfterLimit:p,abortKey:s}),E=ks(S)?m.length*b.length:m.length,N=er({count:E,seriesCount:b.length,chartType:C,chartLimits:u}),N)){h&&(m=G0(m,e)),ra({arrayToSort:m,chartConfig:e,fieldList:o});let M={};if(kt(v)){let{size:R,unit:q}=v.temporalBinning??{};R!==void 0&&q!==void 0&&(M={size:R,unit:q})}f.data={dataItems:m,timeIntervalInfo:M}}}N||pn({dataInfo:f,chartType:C,subError:{outlierLimit:y}}),f.count=E}return f}function IS(t){let e,{start:r,end:a}=mo({field:"",unit:t,addIntervalStatement:!1});return a&&(e=Array.from({length:a+(r===0?1:0)},(i,n)=>(n+(r??1)).toString())),e}async function Rp(t){let{chartConfig:e,queryConfig:r,queryObject:a,completeHeatChartDataset:i=!0,errorStrings:n,options:s,abortKey:o}=t,l={valid:!0},d,u=e.series[0],{nullPolicy:c}="nullPolicy"in e?e:{};if(u.type===g.HeatSeries){let{x:h,y:p,query:f,yTemporalBinning:m}=u,y=f?.outStatistics?.[0]?.outStatisticFieldName??"";if(bp(e)){let b=await RS({chartConfig:e,queryObject:a,queryConfig:r,returnFeaturesExtent:s?.returnFeaturesExtent,errorStrings:n,abortKey:o});if(!er({count:b?.length??0,seriesCount:1,chartType:g.HeatSeries,chartLimits:s?.chartLimits}))pn({dataInfo:l,chartType:g.HeatSeries});else if(typeof b?.[0]=="object"){let v=await St(a,s?.usePopupTemplateFieldsInfo),S=Hp(a);d=Mp({queryResponse:b,chartConfig:e,splitByField:"",isDateField:!1,isTimeBinningSeries:!1,chartLimits:s?.chartLimits,resultLimit:r.num,subtypeInfo:S,fieldList:v});let C=await bs({queryObject:a,queryConfig:r,category:h,abortKey:o}),F=await bs({queryObject:a,queryConfig:r,category:p,abortKey:o});if(d.length!==C?.length*F?.length){let A=C.flatMap($=>F.map(E=>({[ae.xField]:$,[ae.yField]:E,[ae.valueField]:c===ft.Zero?0:null})));d=[...d,...A.filter($=>!d.some(E=>`${E[ae.xField]}${E[ae.yField]}`==`${$[ae.xField]}${$[ae.yField]}`))]}}}else{let b=await qS({chartConfig:e,queryObject:a,queryConfig:r,errorStrings:n}),v=m?IS(m.unit):await bs({queryObject:a,queryConfig:r,category:p,abortKey:o}),S=0;d=b?.features.flatMap(C=>{let F=[],{attributes:A,stackedAttributes:$}=C,E=[];return $?.forEach(P=>{let N=`${P[p]}`;E.push(N),F.push({[ae.xField]:`${A.lowerBoundary}`,[ae.yField]:N,[ae.valueField]:P[y]})}),i&&v&&E.length!==v?.length&&v.filter(P=>!E.includes(P.toString())).forEach(P=>{F.push({[ae.xField]:`${A.lowerBoundary}`,[ae.yField]:P,[ae.valueField]:c===ft.Zero?0:null})}),S+=F.length,F}),er({count:S,seriesCount:1,chartType:g.HeatSeries,chartLimits:s?.chartLimits})?d&&ra({arrayToSort:d,chartConfig:e}):pn({dataInfo:l,chartType:g.HeatSeries})}}return d&&(l.data={dataItems:d}),l}function FS(t){let{chartConfig:e,options:r,data:a}=t,i=e.series,n=a,s=ep(e,r?.chartLimits);if(s!==void 0){let o=tt(i);if(o.length===1)n=a.filter(l=>Number.isFinite(l[o[0]])).slice(0,s);else if(a.length*o.length>s){let l=[],d=0,u=0;for(;d<=s&&u<a.length;){let c=a[u];if(l.push(c),d+=o.filter(h=>Number.isFinite(c[h])).length,d>s){let h=d-s,p=o.length-1;for(;h!==0&&p>=0;){let f=o[p];Number.isFinite(c[f])&&(delete c[f],h-=1),p-=1}}u+=1}n=l}}return n}async function po(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,preFetchedQueryResponse:s}=t,{chartLimits:o,usePopupTemplateFieldsInfo:l}=n??{},{behaviorAfterLimit:d}=o??{},u=e.series,c=u[0],{x:h}=c,p=Xe(c.query?.where),f={valid:!0},m;if(kt(c)){let{temporalBinning:y}=c;if(a&&y){let{unit:b,size:v}=y,S=1,C={unit:b,size:v},F=!1,A=uS({series:c,isTimeBinningSeries:!0,setTimeBinningInfoWhenNotProvided:n?.setTimeBinningInfoWhenNotProvided}),$=!Zi(a)||A?await eS({queryObject:a,queryConfig:r,x:h}):void 0;A&&$&&$.numberOfFeatures>0&&$.dateRange.dateMaxTimestamp!==void 0&&$.dateRange.dateMinTimestamp!==void 0&&(C=dS($),(await St(a)).find(M=>M.name===h)?.type===Se.DateOnly&&C.unit!==void 0&&[H.Hour,H.Minute,H.Second].includes(C.unit)&&(C.unit=H.Day,C.size=1),y.size=C.size,y.unit=C.unit);let{uniqueQuery:E,mapToStatField:P}=await lo({chartConfig:e,queryConfig:r,queryObject:a,timeIntervalInfo:C,options:n}),N=er({count:S??0,seriesCount:u.length,chartType:g.LineSeries,chartLimits:o});if(N){if(Zi(a)){let M=s?.[0]instanceof wm?s:await zS({queryObject:a,dateField:h,splitByField:p,queryConfig:E,temporalBinning:y}),R="y"in c&&typeof c.y=="string"?c.y:void 0;if(m=await sS({chartConfig:e,queryResults:M,mapToStatField:P,splitByField:p,x:h,y:R,nullPolicy:y.nullPolicy,queryObject:a}),!er({count:m.length,seriesCount:u.length,chartType:g.LineSeries,chartLimits:o})){let q=tt(u),L=m.filter(k=>q.some(V=>V in k&&Number.isFinite(k[V]))).length;er({count:L,seriesCount:u.length,chartType:g.LineSeries,chartLimits:o})||(N=!1)}}else if($?.dateRange.dateMinTimestamp&&$.dateRange.dateMaxTimestamp){let{numberOfFinalBinsWithinDataRange:M}=Np({dateMinTimestamp:$.dateRange.dateMinTimestamp,dateMaxTimestamp:$.dateRange.dateMaxTimestamp,timeIntervalInfo:C});S=M*u.length,S=Dp(S,C.unit),m=await Sn({queryObject:a,uniqueQuery:E,chartConfig:e,mapToStatField:P,elementCount:S,chartLimits:o,isTimeBinningSeries:!0,usePopupTemplateFieldsInfo:l,abortKey:i}),m=await oS({queryObject:a,queryConfig:r,queryResults:m,x:h,seriesConfig:u,dateRange:$.dateRange,timeIntervalInfo:C})}jp(a)&&m&&m?.length===H0&&(F=!0),d===Tr.RenderUpToTheLimit&&m&&(m=FS({chartConfig:e,options:n,data:m}))}N||(f.valid=!1,f.invalidType=oe.LineChartExceedsLimit),m&&m.length>0&&(m[m.length-1][O.lastTemporalBin]=!0),f.data={dataItems:m,timeIntervalInfo:C,serverLimitReached:F},f.count=S}}return f}async function TS(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n}=t,s=Ui(e),{setTimeBinningInfoWhenNotProvided:o,chartLimits:l,usePopupTemplateFieldsInfo:d}=n??{},u={valid:!0};if(a!==void 0){let c=e.series,h=Yr({seriesConfig:c[0],xAxisValueFormatType:nr(e),setTimeBinningInfoWhenNotProvided:o}),{uniqueQuery:p,mapToStatField:f}=await lo({chartConfig:e,queryObject:a,queryConfig:r,fetchFullBoxPlotData:!s,options:n}),m=await Sn({queryObject:a,uniqueQuery:p,elementCount:1,chartConfig:e,mapToStatField:f,isTimeBinningSeries:h,showMean:s,chartLimits:l,usePopupTemplateFieldsInfo:d,abortKey:i});X(e.series)===g.BoxPlotSeries&&(m=Sp({chartConfig:e,data:m,calculateZScore:!1})),u.data={dataItems:m}}return u}async function PS(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,errorStrings:s}=t,o="showMean"in e?e.showMean:!1,l=await uo({queryObject:a,chartConfig:e,queryConfig:r,options:n,errorStrings:s,abortKey:i});return o&&l.data&&"dataItems"in l.data&&"meanLines"in l.data&&l.data.meanLines&&(l.data.dataItems=[...l.data.dataItems,...l.data.meanLines]),l}function kp(t){return t?.[Wi.defaultGroupOfSlicesId]===!0}function uI(t,e){let r=t.filter(a=>!kp(a));return!dr(r,e)}function OS(t,e){let r=t.reduce((a,i)=>{if(i[Wi.defaultGroupOfSlicesId]===!0){let n=i[O.pieChart.technicalFieldGroupedSlices];n!==void 0&&n.forEach(s=>{a.push(s)})}else a.push(i);return a},[]);return ra({arrayToSort:r,chartConfig:e}),r=Yc({data:{dataItems:r},seriesConfig:e.series})?.dataItems??[],r}var jt={DataProcessComplete:"arcgisChartsJSDataProcessComplete",DataFetchComplete:"arcgisChartsJSDataFetchComplete",LegendItemVisibilityChange:"arcgisChartsJSLegendItemVisibilityChange",UpdateComplete:"arcgisChartsJSUpdateComplete",RenderingComplete:"arcgisChartsJSRenderingComplete",SeriesColorsChange:"arcgisChartsJSSeriesColorChange",AxesMinMaxChange:"arcgisChartsJSAxesMinMaxChange",SelectionComplete:"arcgisChartsJSSelectionComplete",TooManySelectedElements:"arcgisChartsJSTooManySelectedElements",BadDataWarningRaise:"arcgisChartsJSBadDataWarningRaise",SeriesOrder:"arcgisChartsJSSeriesOrder"};function _t(t){return{detail:t,composed:!0,cancelable:!0,bubbles:!0}}function cI(t){let{data:e,seriesConfig:r,htmlContainer:a}=t;if(a&&e){let i=Yc({data:e,seriesConfig:r});a.dispatchEvent(new window.CustomEvent(jt.DataProcessComplete,_t(i)))}}function pI(t){let{data:e,chartConfig:r,htmlContainer:a}=t;if(a&&e){let i={...e};X(r.series)===g.PieSeries&&"dataItems"in i&&(i.dataItems=OS(i.dataItems,r)),a.dispatchEvent(new window.CustomEvent(jt.DataFetchComplete,_t(i)))}}function hI(t,e){e&&e.dispatchEvent(new window.CustomEvent(jt.LegendItemVisibilityChange,_t(t)))}function fI(t,e){e&&e.dispatchEvent(new window.CustomEvent(jt.UpdateComplete,_t(t)))}function mI(t){t&&t.dispatchEvent(new window.CustomEvent(jt.RenderingComplete,_t()))}function yI(t){let{data:e,htmlContainer:r}=t;r&&r.dispatchEvent(new window.CustomEvent(jt.SelectionComplete,_t(e)))}function gI(t){t&&t.dispatchEvent(new window.CustomEvent(jt.TooManySelectedElements,_t()))}function bI(t){let{data:e,htmlContainer:r,chartId:a,colorMatchApplied:i}=t;r&&r.dispatchEvent(new window.CustomEvent(jt.SeriesColorsChange,_t({chartId:a,data:e,colorMatchApplied:i})))}function vI(t,e){e&&e.dispatchEvent(new window.CustomEvent(jt.AxesMinMaxChange,_t(t)))}function SI(t,e){e&&e.dispatchEvent(new window.CustomEvent(jt.BadDataWarningRaise,_t(t)))}function AS(t){let{data:e,htmlContainer:r}=t;r&&e&&r.dispatchEvent(new window.CustomEvent(jt.SeriesOrder,_t(e)))}var lt=class extends Error{constructor(e,r,a){super(r),this.name=e,this.details=a}},vt={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound"};function wI(t){return t!==void 0&&(!("url"in t)||!t.url)}function Qr(t){return t!==void 0&&"layer"in t}function jp(t){return t!==void 0&&"type"in t&&t.type==="feature"}function ES(t){return t!==void 0&&"type"in t&&t.type==="subtype-group"}function ho(t){return t!==void 0&&"type"in t&&t.type==="subtype-sublayer"}function LS(t){return jp(t)||ho(t)}function Ge(t){return ho(t)?t.parent:t}function fo(t){return t.capabilities?.query?.supportsDistance||Ge(t).sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function DS(t,e){return t.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&t.capabilities?.queryAttributeBins?.supportsStackBy&&!Qr(e)}function Zi(t,e){return t!==void 0&&(Qr(t)||"capabilities"in t&&t.capabilities?.queryAttributeBins?.supportsDate===!0&&(Re(e)||t.capabilities?.queryAttributeBins?.supportsStackBy))}function NS(t){let e=!1,r=Ge(ce(t)).sourceJSON;if(r){let a=r.queryBinsCapabilities?.supportsFixedIntervalBin,i=r.queryBinsCapabilities?.supportedStatisticTypes,n=[j.Maximum,j.Count].every(s=>i?.includes(s.toUpperCase())||i?.includes(s.toLowerCase()));e=a&&n}return e}function xI(t){let e;return Qr(t)?e=t.layer:e=t,e}function ce(t){let e;return Qr(t)?e=t.layer:e=t,e}function BS(t){let e=!1,r=Ge(t).sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],a=t.capabilities?.query.supportedSpatialAggregationStatistics??{};return e=r.includes("EnvelopeAggregate")||"envelope"in a&&a.envelope===!0,e}function CI(t){let{chartConfig:e,queryObject:r}=t,a,i=ce(r);return i&&(a={id:i.id,layerType:"ArcGISFeatureLayer"},i.url&&(a.url=i.url)),{...e,iLayer:a}}var Ji=new Map;function $S(t){let e;switch(t){case Rr.Feet:e="esriSRUnit_Foot";break;case Rr.Miles:e="esriSRUnit_StatuteMile";break;case Rr.NauticalMiles:e="esriSRUnit_NauticalMile";break;case Rr.USNauticalMiles:e="esriSRUnit_USNauticalMile";break;case Rr.Meters:e="esriSRUnit_Meter";break;case Rr.Kilometers:e="esriSRUnit_Kilometer";break}return e}async function MS(t){let{queryObject:e,queryConfig:r,outputFormat:a,dataFormat:i,outAnalytics:n}=t,{where:s,geometry:o,distance:l,units:d,timeExtent:u}=r,c,h=ce(e),p=Ge(h),f={query:{where:me([s,p.definitionExpression])}},m=wn(o)?.extent?.toJSON();if(m!==void 0){let b=$S(d),{xmin:v,ymin:S,xmax:C,ymax:F}=m;f.query={...f.query,geometryType:"esriGeometryEnvelope",geometry:`${v},${S},${C},${F}`,distance:l,units:b,inSR:o?.spatialReference?.wkid}}u&&(f.query.time=`${u[0]},${u[1]}`);let y=`${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${i}&outAnalytics=${n}`;try{c=(await en(y,f)).data?.features?.[0]?.attributes}catch(b){let v=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings;throw new lt(vt.QueryFeaturesError,v.errors.queryError,b)}return c}function _p(t,e){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`,stackAlias:`charts_stack_alias_${e}`}}async function qS(t){let{chartConfig:e,queryObject:r,queryConfig:a,errorStrings:i}=t,n,s=ce(r),o=DS(s,r);if(o&&r&&"queryAttributeBins"in r&&e.series[0].type===g.HeatSeries){let{x:l,y:d,xTemporalBinning:u,yTemporalBinning:c}=e.series[0],{outTimeZone:h,firstDayOfWeek:p}=e,f=await KS({queryObject:r,queryConfig:a,x:l,y:d,xTemporalBinning:u,yTemporalBinning:c,outTimeZone:h,firstDayOfWeek:p});try{n=await r.queryAttributeBins(f)}catch(m){throw new lt(vt.QueryFeaturesError,i.errors.queryError,m)}}if(!o)throw new lt(vt.QueryFeaturesError,i.errors.queryBinsNotSupported,i.errors.queryBinsNotSupported);return n}async function RS(t){let{chartConfig:e,queryObject:r,queryConfig:a,returnFeaturesExtent:i,errorStrings:n,abortKey:s}=t,o=e.series[0],l;if(o.type===g.HeatSeries){let{x:d,y:u}=o;a.groupByFieldsForStatistics=[d],d!==u&&a.groupByFieldsForStatistics.push(u),a&&i===!0&&!a.outStatistics?.some(c=>c.statisticType===j.EnvelopeAggregate)&&a.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"});try{l=await Et({queryObject:r,queryConfig:a,abortKey:s})}catch(c){throw new lt(vt.QueryFeaturesError,n.errors.queryError,c)}}return l}async function kS(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l,errorStrings:d}=t,u;if(e&&"queryAttributeBins"in e&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(i)&&Number.isFinite(n)&&a>0&&l>0){let c=YS({queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l});try{u=await e.queryAttributeBins(c)}catch(h){throw new lt(vt.QueryFeaturesError,d.errors.queryError,h)}}return u}async function jS(t){let{queryConfig:e,x:r,queryObject:a,chartSubType:i,isGaugeByFeature:n}=t,s=ce(a),o;if(a!==void 0){let l=s.objectIdField,{where:d,gdbVersion:u,timeExtent:c,geometry:h,distance:p,units:f}=e,m=HS(c),y=wn(h),b=Ge(s),v=me([d,b.definitionExpression]),S={returnDistinctValues:!0,outFields:n===!0||i===x.PieNoAggregation||i===x.BarAndLineNoAggregation||i===x.BarAndLineSplitByNoAggregation?[l]:[r],where:v,gdbVersion:u??b.gdbVersion,timeExtent:m??b.timeExtent,geometry:y};zp(S)&&(S.cacheHint=!0),S.geometry!==void 0&&fo(s)&&(p!==void 0&&(S.distance=p),f!==void 0&&(S.units=f));try{o=await a.queryFeatureCount(S)}catch{o=Number.NaN}}return o}async function ia(t){let{queryObject:e,queryConfig:r,abortKey:a}=t,{outStatistics:i}=r,n=new Map;if(e!==void 0&&i!==void 0&&i.length>0){let s=i.map(u=>{let{statisticType:c,onStatisticField:h,outStatisticFieldName:p}=u;return{statisticType:c,onStatisticField:h,outStatisticFieldName:p?.toUpperCase()}});r.outStatistics=s,delete r.num,delete r.orderByFields;let o=Gp({queryObject:e,queryConfig:r}),l;try{l=await e.queryFeatures(o,{signal:a!==void 0?Ji.get(a)?.signal:void 0})}catch(u){if(!Hs.isAbortError(u)){let c=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings;throw new lt(vt.QueryFeaturesError,c.errors.queryError,u)}}let d=l?.features?.[0]?.attributes;d!==void 0&&i.forEach(u=>{let{outStatisticFieldName:c}=u;if(c!==void 0){let h=d[c.toLowerCase()]??d[c.toUpperCase()]??d[c];h!==void 0&&n.set(c,h)}})}return n}async function Vp(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:i}=t,n=[],s=ce(e);if(e!==void 0){let o=XS(s),l=Gp({queryObject:e,queryConfig:r,maxRecordCountFactor:o});try{a===!0?"queryObjectIds"in e?n=await e.queryObjectIds(l):(l.outFields=[s.objectIdField],n=(await e.queryFeatures(l,{signal:i!==void 0?Ji.get(i)?.signal:void 0})).features.map(d=>d.getObjectId())):n=(await e.queryFeatures(l,{signal:i!==void 0?Ji.get(i)?.signal:void 0})).features}catch(d){if(!Hs.isAbortError(d)){let u=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings;throw new lt(vt.QueryFeaturesError,u.errors.queryError,d)}}}return n}async function _S(t){let e=[],{featureCount:r,maxRecords:a,queryConfig:i}=t,n=[],s=0,o=i?.start??0;for(;s<ke.maxParallelRequests&&o<r;){let l={...t};l.queryConfig={...i,start:o,num:Math.min(a,r-o)},e.push(Vp(l)),o+=a,s+=1}return n=(await Promise.all(e)).flat(),n}async function Et(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,featureCount:i,noBatch:n,abortKey:s}=t,o=[],l=ce(e);if(e!==void 0){let d=i??1,u=Up(l);if(n!==!0&&d>u&&l.capabilities?.query.supportsPagination){let c=0,h=0,p=Math.ceil(d/u),f=Math.ceil(p/ke.maxParallelRequests),m=[];for(;h<f;){c=h*ke.maxParallelRequests*u;let y=_S({queryConfig:{...r,start:c},queryObject:e,maxRecords:u,featureCount:d,returnUniqueIdsOnly:a,abortKey:s});m.push(y),h+=1}o=(await Promise.all(m)).flat()}else(Number.isNaN(d)||d>=0)&&(o=await Vp({queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:s}))}return o}async function VS(t){let{queryObject:e,queryConfig:r,uniqueFeature:a,abortKey:i}=t,n={...r,returnDistinctValues:!0};return await Et({queryObject:e,abortKey:i,queryConfig:n,returnUniqueIdsOnly:!0,featureCount:a===!0?1:void 0})}function WS(t){if(t!==void 0){let e=Ji.get(t);e!==void 0&&e.abort(),Ji.set(t,new AbortController)}}function Wp(t){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`}}async function zS(t){let{queryObject:e,dateField:r,splitByField:a,queryConfig:i,temporalBinning:n}=t,s=[],o;if(n){let{unit:l}=n;try{if(l){let d=Ge(ce(e));if(o=Zi(d,a),o&&e&&"queryAttributeBins"in e){let u=await JS({queryObject:e,queryConfig:i,temporalBinning:n,dateField:r,splitByField:a});s=(await e.queryAttributeBins(u)).features}}}catch(d){let u=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings;throw new lt(vt.QueryFeaturesError,u.errors.queryError,d)}}if(o===!1){let l=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings;throw new lt(vt.QueryFeaturesError,l.errors.queryBinsNotSupported,l.errors.queryBinsNotSupported)}return s}function zp(t){let e=!t.geometry||t.geometry.type==="extent",r=(t.where??"").toUpperCase(),a=!r.includes("CURRENT_TIMESTAMP")&&!r.includes("CURRENT_DATE")&&!r.includes("CURRENT_TIME");return e&&a}function Up(t){let e=Ge(t)?.sourceJSON,r=e?.maxRecordCount??ke.maxRecords;return e?.advancedQueryCapabilities?.supportsMaxRecordCountFactor&&e?.maxRecordCount!==void 0&&(r=e.maxRecordCount*ke.maxRecordCountFactor),r}function me(t,e){let r,a=Array.from(new Set(t)).filter(i=>i!=null&&i!==""&&!tr(i));return a.sort((i,n)=>n.length-i.length),a.length===1?[r]=a:a?.forEach(i=>{i!==void 0&&(Re(r)?r=`(${i})`:r?.includes(`(${i})`)||(r=`${r} ${e??"AND"} (${i})`))}),r??"1=1"}function US(t,e){let r=e;if(t!==void 0){let a=ce(t),i=Ge(a).timeExtent;i?.start!=null&&i?.end!=null&&(r=[i.start.valueOf(),i.end.valueOf()])}return r}function GS(t){let{queryObject:e,defaultGeometry:r,ignoreViewExtent:a}=t,i=r;if(!a&&Qr(e)){let n=e.view.extent,{xmin:s,xmax:o,ymin:l,ymax:d,zmin:u,zmax:c,spatialReference:h}=n;i={xmin:s,ymin:l,zmin:u,xmax:o,ymax:d,zmax:c,spatialReference:h}}return i}function HS(t){let e;return t!==void 0&&(e=new Vu({start:new Date(t[0]),end:new Date(t[1])})),e}function wn(t){let e;return t!==void 0&&(e=Qs.fromJSON(t)),e}function QS(t){return t===void 0?["*"]:Array.from(new Set(t))}function xn(t){let{queryObject:e,queryConfig:r,queryType:a}=t,{where:i,outStatistics:n,geometry:s,distance:o,units:l,timeExtent:d,returnDistinctValues:u}=r??{},c=a==="Query"?new hm({}):new pm({}),h=ce(e),p=Ge(h),f;a==="AttributeBinsQuery"&&r?.objectIds?.[0]!==void 0&&(f=`${h.objectIdField} IN (${r.objectIds.join(",")})`);let m=[i,p.definitionExpression,f];if(c.where=me(m),c.returnDistinctValues=u??!1,n!==void 0){let v=BS(h);c.outStatistics=n.filter(S=>S.statisticType!==j.EnvelopeAggregate||v).map(S=>fm.fromJSON(S))}let y=wn(s);y!==void 0&&(c.geometry=y,r?.spatialRelationship&&(c.spatialRelationship=r.spatialRelationship),fo(h)&&(o!==void 0&&(c.distance=o),l!==void 0&&(c.units=l)));let b;return d&&(b=new Vu({start:d?.[0],end:d?.[1]})),b!==void 0?c.timeExtent=b:p.timeExtent!==void 0&&(c.timeExtent=p.timeExtent),zp(c)&&(c.cacheHint=!0),c}function ZS(t){let e;switch(t){case $e.Start:e="first";break;case $e.End:e="last";break}return e}async function JS(t){let{queryObject:e,queryConfig:r,temporalBinning:a,dateField:i,splitByField:n}=t,s=ce(e),o=(await St(e)).find(b=>b.name===i)?.type,l=xn({queryObject:e,queryConfig:r,queryType:"AttributeBinsQuery"}),{unit:d,size:u,timeAggregationType:c,start:h,end:p,offset:f,outTimeZone:m}=a,y=Wp(i);if(l.lowerBoundaryAlias=y.lowerBoundaryAlias,l.upperBoundaryAlias=y.upperBoundaryAlias,o!==Se.DateOnly&&(l.outTimeZone=m??Intl.DateTimeFormat().resolvedOptions().timeZone),l.binParameters={type:"date",field:i,interval:{unit:d,value:u},start:h,end:p,offset:f?{unit:f.unit,value:f.size}:null},l.binParameters.type==="date"&&(s.capabilities?.queryAttributeBins?.supportsSnapToData&&(l.binParameters.snapToData=ZS(c)),s.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(l.binParameters.returnFullIntervalBin=!0)),!Re(n)){let b=Ge(s).fields.find(v=>v.name===n)?.type;(!b||b==="string"||b==="integer"||b==="small-integer"||b==="big-integer"||b==="double")&&(l.binParameters.stackBy={type:"field",value:n,valueType:b==="string"?"string":"integer"})}return l}function mo(t){let{field:e,fieldType:r,unit:a,outTimeZone:i,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o}=t,l,d,u=1,c=1;switch(a){case Kt.MinuteOfDay:r!==Se.DateOnly&&(d="MINUTE",u=0,c=59);break;case Kt.HourOfDay:r!==Se.DateOnly&&(d="HOUR",u=0,c=23);break;case Kt.DayOfWeek:d="DOW",c=7;break;case Kt.DayOfMonth:d="DAY",c=31;break;case Kt.DayOfYear:d="DOY",c=366;break;case Kt.WeekOfYear:d="WEEK",c=53;break;case Kt.MonthOfYear:d="MONTH",c=12;break;case Kt.QuarterOfYear:d="QUARTER",c=4;break}if(d){let h=o?` ${wp({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:i})}`:"";l=`EXTRACT (${d} FROM ${e}${h})`}return{expression:l,start:u,end:c}}function Ru(t){let{temporalBinning:e,xOrY:r,xOrYFieldType:a,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,{unit:l}=e??{},d,u,c,h;return a===Se.Date||a===Se.DateOnly||a===Se.TimestampOffset?{expression:u,start:c,end:h}=mo({field:r,fieldType:a,unit:l,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}):d=r,{field:d,expression:u,start:c,end:h}}async function KS(t){let{queryObject:e,queryConfig:r,x:a,y:i,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,outTimeZone:l}=t,d=await St(e),u=d.find(S=>S.name===a)?.type,c=d.find(S=>S.name===i)?.type,h=xn({queryObject:e,queryConfig:r,queryType:"AttributeBinsQuery"});h.binParameters={type:"fixed-interval",interval:1},u!==Se.DateOnly&&(h.outTimeZone=l??Intl.DateTimeFormat().resolvedOptions().timeZone),o!==void 0&&(h.binParameters.firstDayOfWeek=o);let p=Ru({temporalBinning:n,xOrY:a,xOrYFieldType:u,addIntervalStatement:!1}),{field:f,expression:m,start:y,end:b}=p;f?h.binParameters.field=f:m&&(h.binParameters.expression=m,h.binParameters.expressionValueType="integer",h.binParameters.type==="fixed-interval"&&(y!==void 0&&(h.binParameters.start=y),b!==void 0&&(h.binParameters.end=b)));let v=Ru({temporalBinning:s,xOrY:i,xOrYFieldType:c,addIntervalStatement:!1});return v.field?h.binParameters.stackBy={type:"field",value:v.field}:v.expression&&(h.binParameters.stackBy={type:"expression",value:v.expression,valueType:"integer",alias:i}),h}function YS(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l}=t,d=xn({queryObject:e,queryConfig:r,queryType:"AttributeBinsQuery"}),u=_p(s,o);return d.lowerBoundaryAlias=u.lowerBoundaryAlias,d.upperBoundaryAlias=u.upperBoundaryAlias,d.binParameters={type:"fixed-interval",field:s,interval:a,start:i,end:n,stackBy:{value:`FLOOR(${o} / ${l})`,type:"expression",alias:u.stackAlias,valueType:"integer"}},d}function Gp(t){let{queryObject:e,queryConfig:r,maxRecordCountFactor:a}=t,{groupByFieldsForStatistics:i,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:d}=r??{},u=xn({queryObject:e,queryConfig:r,queryType:"Query"});u.returnGeometry=!1;let c=ce(e),h=Ge(c);return u.outFields=QS(d),u.groupByFieldsForStatistics=i??u.groupByFieldsForStatistics,u.orderByFields=n??[],u.objectIds=r?.objectIds,a!==void 0&&(u.maxRecordCountFactor=a),s!==void 0&&s!==""?u.gdbVersion=s:h.gdbVersion!==void 0&&h.gdbVersion!==""&&(u.gdbVersion=h.gdbVersion),l!==void 0&&(u.num=l),o!==void 0&&(u.start=o,u.num=u.num??Up(c)),u}function XS(t){return Ge(t)?.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?ke.maxRecordCountFactor:void 0}function ew(t){let e,r,a;return t!==void 0&&(e=t.type,(e===Ye.UniqueValue||e===Ye.ClassBreaks)&&(r=t.field??void 0,e===Ye.ClassBreaks&&(a=t.normalizationField??void 0))),{rendererType:e,rendererField:r,rendererNormalizationField:a}}var tw=(0,zu.default)(async t=>{let e=t.featureCollection,r,a;if(e?.layers?.[0]!==void 0){let s=e.layers[0];r=s.featureSet,a=s.layerDefinition}else a=t.layerDefinition;let i={};if(r!==void 0){if(i.source=bm.fromJSON(r).features,a?.fields!==void 0&&(i.fields=a.fields.map(s=>ym.fromJSON(s))),a?.objectIdField!==void 0&&(i.objectIdField=a.objectIdField),a?.geometryType!==void 0){let s=Qs.fromJSON({geometryType:a.geometryType});s?.type!==void 0&&s?.type!=="extent"&&(i.geometryType=s.type)}a?.spatialReference!==void 0&&(i.spatialReference=a.spatialReference)}else i.id=t.id,a?.id!==void 0&&(i.layerId=a.id),t.url!==void 0&&(i.url=t.url),t.itemId!==void 0&&a?.id!==void 0&&(i.portalItem={id:t.itemId});if(a!==void 0){let s=a.drawingInfo;s?.renderer!==void 0&&(i.renderer=Zs.fromJSON(s.renderer))}let n=new mm(i);return await n.load(),n});async function II(t){let{layer:e,view:r,chartConfig:a,filterByExtent:i}=t,n;if(e!==void 0){let s=ce(e),o=Ge(s);if(i&&r!==void 0&&!o.isTable){o.outFields=["*"];let l=u=>"highlight"in u,d=await r.whenLayerView(o);l(d)&&(n=d)}else n=e}else"iLayer"in a&&a.iLayer&&(n=await tw(a.iLayer));return n}async function St(t,e){let r=ce(t),a=[];if(r!==void 0){await r.load();let i=e===!0&&r?.popupTemplate?.fieldInfos!==void 0;a=r.fields.map(n=>{let s=n.toJSON();if(i){let o=r.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===n.name.toLowerCase())?.label;o!==void 0&&o!==n.name&&(s.alias=o)}return s})}return a}function yo(t,e=[]){return e.find(r=>r.name===t)}function rw(t){return t?.find(e=>e.type===Se.OID)?.name??""}function wi(t){return[Se.Single,Se.Double,Se.SmallInteger,Se.Integer,Se.BigInteger].includes(t.type)}function FI(t){return t.type===Se.Date}function TI(t){return[Se.SmallInteger,Se.Integer,Se.BigInteger].includes(t.type)}function iw(t){return t.filter(e=>e.type===Se.Date||e.type===Se.DateOnly||e.type===Se.TimestampOffset).map(e=>e.name)}function PI(t){return t.filter(e=>wi(e)).map(e=>e.name)}function aw(t){let{subtypeInfo:e,fieldName:r,fieldValueToMatch:a}=t,i,n=s=>`${s.id}`==`${a}`;return e?.subtypeField===r&&e.subtypes?i=e.subtypes.find(n)?.name:e?.typeIdField===r&&e.types&&(i=e.types.find(n)?.name),i}function ku(t,e){let r=[],a=ES(t)?t.subtypes:t[e];return a?.[0]!==void 0&&a.forEach(i=>{let{name:n,domains:s}=i,o="id"in i?i.id:void 0;!o&&"code"in i&&(o=i.code);let l=Object.entries(s??{}),d=[],u=l?.filter(([c,h])=>h?.type==="coded-value")?.map(([c,h])=>{let p={fieldName:c,name:n,codedValues:d};if(h&&"codedValues"in h){let f=h.codedValues.map(({code:m,name:y})=>({name:y,code:m}));p={fieldName:c,name:h.name,codedValues:f}}return p});r.push({id:o??"",name:n,domains:u})}),r.length===0?void 0:r}function Hp(t){let e;if(t!==void 0){let r=ce(t);if(!ho(r)&&!Re(r?.typeIdField)){let a=ku(r,"types");a!==void 0&&(e={typeIdField:r.typeIdField??void 0,types:a})}if(!Re(r?.subtypeField)){let a=Ge(r),i=ku(a,"subtypes");i!==void 0&&(e={...e,subtypeField:a.subtypeField??void 0,subtypes:i})}}return e}function nw(t){let{fieldName:e,fieldValueToMatch:r,subtypeInfo:a,fieldList:i}=t,n;if((typeof r!="string"||!Re(r))&&!Re(e)&&(n=aw({subtypeInfo:a,fieldName:e,fieldValueToMatch:r}),n===void 0)){let s=yo(e,i);if(a?.types!==void 0){let o=a?.types;for(let l of o){let d=l.domains?.filter(u=>u.fieldName===s?.name)??[];for(let u of d)if(n=u?.codedValues?.find(c=>`${c.code}`===r)?.name,n!==void 0)break;if(n!==void 0)break}}n===void 0&&s?.domain!==void 0&&s.domain.type==="codedValue"&&(n=s.domain.codedValues?.find(o=>`${o.code}`==`${r}`)?.name)}return n}async function Qp(t){let e=[];return!Ge(t).isTable&&t.fieldsIndex&&(e=await Wu.getRendererFields(t.renderer,t.fieldsIndex)),e}function sw(t){let e="/rest/services",r=t.toLowerCase(),a=r.indexOf(e);return r=a>-1?t.substring(0,a):t,`${r}/rest/info`}async function ow(t){let e=!0,r=".arcgis.com/",a=t.url,i=a?.includes(r);if(a&&i&&Ge(t).sourceJSON.serviceItemId!==void 0){let n=sw(a);try{let s=(await en(n,{query:{f:"json"}})).data;if(s.owningTenant!==void 0&&s.owningSystemUrl!==void 0){let o=`${s.owningSystemUrl}/sharing/rest/portals/${s.owningTenant}`,l=(await en(o,{authMode:"auto",query:{f:"json"}})).data,d=new gm({sourceJSON:l});await d.load(),e=d?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return e}async function lw(t){let{queryObject:e,fieldToMatch:r,returnUndefinedIfNotFound:a}=t,i=await St(e),n=dw(i,r),s=a?"":r;return n?.name??s}function dw(t,e){let r=t.find(a=>e===a.name);return r||(r=t.find(a=>e.toUpperCase()===a.name.toUpperCase())),r}async function OI(t){let{fieldsList:e,queryObject:r,returnUndefinedIfNotFound:a}=t,i=e;return i!==void 0&&(i=await Promise.all(i.map(async n=>await lw({queryObject:r,fieldToMatch:n,returnUndefinedIfNotFound:a})))),i}function uw(t){let{queryObject:e,chartConfig:r,runtimeDataFilters:a,ignoreViewExtent:i}=t,{series:n,dataFilters:s}=r,{where:o,gdbVersion:l,timeExtent:d,geometry:u,distance:c,units:h,objectIds:p,spatialRelationship:f}=s??{},{where:m,gdbVersion:y,timeExtent:b,geometry:v,distance:S,units:C,objectIds:F,spatialRelationship:A}=a??{},$=n[0],{query:E}=$,{where:P}=E??{},N=Y(n),M={...E};return M.where=me([o,m]),N!==x.BarAndLineSplitBy&&N!==x.BoxPlotMonoFieldAndSplitBy&&N!==x.BoxPlotMonoFieldAndCategoryAndSplitBy&&N!==x.BoxPlotMultiFieldsAndSplitBy&&N!==x.BarAndLineSplitByNoAggregation&&(M.where=me([M.where,P])),r.orderOptions?.orderByFields!==void 0&&(M.orderByFields=r.orderOptions.orderByFields),M.gdbVersion=y??l,M.timeExtent=US(e,b??d),M.geometry=GS({queryObject:e,defaultGeometry:v??u,ignoreViewExtent:i}),M.distance=S??c,M.units=C??h,M.objectIds=F??p,M.spatialRelationship=A??f,E?.outStatistics?.[0]?.statisticType===j.Count&&(M.returnDistinctValues=E?.returnDistinctValues??!1),M}var cw=t=>{let e;if("portalItem"in t){let r=t.portalItem?.id;typeof r=="string"&&(e=r)}return e};function AI(t){let{view:e,portalItemId:r}=t,a;if(e&&r){let i=Array.from(e.map?.allLayers??[]).find(n=>cw(n)===r);i&&(a=i)}return a}var Wr=["1.0.0","1.0.1","2.0.0","3.0.0","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2","3.10.0","3.11.0","4.0.0","4.0.1","5.0.0","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","7.0.0","7.1.0","7.1.1","7.2.0","7.2.1","7.3.1","7.4.0","7.4.1","7.5.0","7.5.1","7.6.0","8.0.0","8.0.1","9.0.0","9.1.0","9.2.0","9.3.0","9.4.0","9.5.0","9.6.0","9.6.1","9.7.0","10.0.0","11.0.0","12.0.0","13.0.0","14.0.0","14.0.1","15.0.0","16.0.0","16.1.0","16.1.1","17.0.0","17.1.0","17.2.0","17.2.1","18.0.0","18.1.0","18.1.1","18.1.2","18.1.3","19.0.0","20.0.0","20.1.0","20.2.0","21.0.0","21.1.0","22.0.0","23.0.0","23.1.0","23.2.0","23.3.0","24.0.0","24.1.0","24.2.0","24.3.0","24.4.0","24.5.0"],pw="1.0.0",hw="unrecognized.version",fw=[g.LineSeries,g.BarSeries,g.ComboLineAndBarSeries,g.RadarSeries];function ys(t,e){let r=0;if(t!==e){let a=t.split("."),i=e.split(".");for(let n=0;n<a.length;n+=1){let s=Number.parseInt(a[n],10),o=Number.parseInt(i[n],10);if(s>o||Number.isNaN(o)){r=1;break}if(s<o){r=-1;break}}}return r}function mw(t){return t!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t):!1}function yw(t){let e=ur.Same,r=[];if(mw(t)&&t!==void 0){Wr.sort(ys);let a=ys(t,Wr[Wr.length-1]);if(a===1?e=ur.Newer:a===-1&&(e=ur.Older),e===ur.Newer||e===ur.Same)r.push(t);else{for(let i=Wr.length-2;i>=0;i-=1)if(ys(t,Wr[i])>=0){r=Wr.slice(i,Wr.length);break}r.length===0&&r.push(pw)}}else e=ur.Unrecognized,r.push(hw);return{versionStatus:e,versions:r}}function Ar(t){let{series:e}=t,r=("showMean"in t?t.showMean:!1)===!0?e.find(a=>a.type===g.LineSeries):e[0];return r??=e[0],r}function EI(t,e){let r=t!==null?t.toString():null,a=e!=null?e.toString():null;return a!==null&&a!==r?xe.SFS:xe.SLS}function Xe(t,e){let r="";return t!==void 0&&t.includes("=")&&(r=e!==!1?yp({value:t.split("=")[0]}):t.split("=")[0].trim()),r}function dt(t){let{where:e,normalize:r,keepSurroundingQuotes:a,escape:i}=t,n="";return e!==void 0&&e.includes("=")&&(n=e.split("=").slice(1).join("=").trim(),n==="null"?n=null:n.trim()!==""&&!Number.isNaN(Number(n))?n=Number(n):r===!1?i===!0&&(n=Vs(n)):n=yp({value:n,keepSurroundingQuotes:a,escape:i})),n}function tr(t){let e=!1;if(t===void 0||t==="")e=!0;else if(t.includes("=")){let r=Xe(t,!1),a=dt({where:t,normalize:!1});e=r===`${a}`}return e}function ir(t){let{where:e,normalize:r,escape:a}=t,i=r===void 0?!0:r,n=Xe(e),s=dt({where:e,normalize:i,keepSurroundingQuotes:!0,escape:a}),o=e;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function gw(t){let e=x.PieFromCategory;return t[0].query?.outStatistics===void 0?e=x.PieNoAggregation:t[0].query?.groupByFieldsForStatistics===void 0&&(e=x.PieFromFields),e}function bw(t){let e=x.BarAndLineMonoField,r=t[0].query?.where;return t[0].query?.groupByFieldsForStatistics===void 0&&(t[0].query?.outStatistics??[]).length>0?e=x.BarAndLineFromFields:r===void 0&&t[0].query?.outStatistics===void 0?e=x.BarAndLineNoAggregation:tr(r)?t.length>1&&(e=x.BarAndLineMultiFields):e=t[0].query?.outStatistics===void 0?x.BarAndLineSplitByNoAggregation:x.BarAndLineSplitBy,e}function vw(t){let e=x.BoxPlotMonoField,r=t.length===1,a=t.find(o=>o.type===g.LineSeries)??t[0],{x:i}=a,n="y"in a?a.y:"",s=a.query?.where;switch(i){case Pi:typeof n=="object"&&n.length>1?tr(s)?r&&(e=x.BoxPlotMultiFields):e=x.BoxPlotMultiFieldsAndSplitBy:r?e=x.BoxPlotMonoField:tr(s)||(e=x.BoxPlotMonoFieldAndSplitBy);break;default:r?e=x.BoxPlotMonoFieldAndCategory:tr(s)?e=x.BoxPlotMultiFieldsAndCategory:e=x.BoxPlotMonoFieldAndCategoryAndSplitBy;break}return e}function Y(t){let e=x.NonSpecific;if(t?.[0]!==void 0)switch(X(t)){case g.PieSeries:e=gw(t);break;case g.RadarSeries:case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:e=bw(t);break;case g.BoxPlotSeries:e=vw(t);break}return e}function Yr(t){let{seriesConfig:e,xAxisValueFormatType:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(kt(e)&&e.binTemporalData!==!1&&r===g.DateAxisFormat){let n=Y([e]);if(e.temporalBinning&&n!==x.BarAndLineNoAggregation&&n!==x.BarAndLineSplitByNoAggregation){let{unit:s,size:o}=e.temporalBinning;i=a===!0||o!==void 0&&o>0&&s!==void 0}}return i}function kt(t){return fw.includes(t.type)}function Sw(t){let{previousConfig:e,newConfig:r,behaviorAfterLimit:a}=t,i=e.series,n=r.series,s=!1,o=!1;(a===Tr.RenderUpToTheLimit||e.orderOptions?.data===void 0||r.orderOptions?.data===void 0)&&(o=!dr(e.orderOptions?.orderByFields,r.orderOptions?.orderByFields));let l=On(i.map(u=>u.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]),d=On(n.map(u=>u.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]);return s=!dr(l,d),s||o}function ww(t,e){return JSON.stringify(t.dataFilters)!==JSON.stringify(e.dataFilters)}function xw(t,e){let r=!1;if(e[0].x!==t[0].x)r=!0;else{let a=X(t);if(a!==g.HistogramSeries&&a!==g.GaugeSeries){let i=tt(t).sort(),n=tt(e).sort();r=JSON.stringify(i)!==JSON.stringify(n)}}return r}function Cw(t,e){return(t??!1)!==(e?.filterBySelection??!1)}function Iw(t,e){return kt(t.series[0])&&kt(e.series[0])&&(t.series[0].binTemporalData??O.binTemporalData)!==(e.series[0].binTemporalData??O.binTemporalData)}function Fw(t,e){let r=t.axes?.[0].valueFormat.type,a=e.axes?.[0].valueFormat.type,i=Y(e.series),n=i===x.BarAndLineNoAggregation||i===x.BarAndLineSplitByNoAggregation,s=r===g.DateAxisFormat&&a===g.NumberAxisFormat,o=r===g.NumberAxisFormat&&a===g.DateAxisFormat;return r!==a&&(n||s||o)}function Tw(t){let{previousSeries:e,newConfig:r,previousTimeIntervalInfo:a,setTimeBinningInfoWhenNotProvided:i}=t,n=r.series?.[0],s=!1,o=!1,l=!1;if(kt(n)&&Yr({seriesConfig:n,xAxisValueFormatType:nr(r),setTimeBinningInfoWhenNotProvided:i})){let d=e[0];s=JSON.stringify(d.temporalBinning)!==JSON.stringify(n.temporalBinning),o=a?.unit!==n.temporalBinning?.unit,l=i===!0&&(n.temporalBinning?.size??0)<=0}return{timeBinningChanged:s,timeIntervalUnitChanged:o,newTimeBinningWillBeCalculated:l}}function ju(t,e){return e.length!==t.length}function Pw(t,e){return Ui(t)!==Ui(e)}function Ow(t,e){return JSON.stringify(t.series[0]?.valueConversion)!==JSON.stringify(e.series[0]?.valueConversion)}function Aw(t,e){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??ft.Null)!==(e.nullPolicy??ft.Null)}function Ew(t){let{previousConfig:e,newConfig:r,fieldList:a}=t,i=e.series[0],n=r.series[0],s=!1;if(i.type===g.ScatterSeries&&n.type===g.ScatterSeries&&a&&a.length>0){let o=new Set(i.additionalTooltipFields||[]),l=new Set(n.additionalTooltipFields||[]);if(!dr(o,l)){let d=Array.from(l).filter(u=>!o.has(u));d.length>0&&(s=a?.some(u=>d.includes(u.name)&&!wi(u)))}}return s}function LI(t,e){return(t.colorMatch??!1)!==(e.colorMatch??!1)}function DI(t,e){return(t.legend?.visible??!1)!==(e.legend?.visible??!1)||JSON.stringify(t.legend?.body)!==JSON.stringify(e.legend?.body)}function NI(t,e){return JSON.stringify(t.series[0]?.gradientRules)!==JSON.stringify(e.series[0]?.gradientRules)}function BI(t){let{oldConfig:e,newConfig:r}=t,a=!1,i=e.series[0],n=r.series[0],s=X(e.series),o=X(r.series);if(s===g.PieSeries&&o===g.PieSeries){let{slices:l,sliceGrouping:d}=i,{slices:u,sliceGrouping:c}=n,h=l?.map(y=>({sliceId:y.sliceId,label:y.label})),p=u?.map(y=>({sliceId:y.sliceId,label:y.label})),f=d?.label,m=c?.label;a=JSON.stringify(h)!==JSON.stringify(p)||JSON.stringify(f)!==JSON.stringify(m)}return a}function Lw(t){let{previousSelectionOIDs:e,options:r}=t,a=!1;return r?.filterBySelection===!0&&(a=e?.length!==r?.selectionData?.selectionOIDs?.length||!dr(e,r?.selectionData?.selectionOIDs)),a}function $I(t,e){return t?.length!==e?.length||t?.some((r,a)=>{let i=dt({where:r?.query?.where}),n=dt({where:e?.[a]?.query?.where});return i!==n})}function MI(t,e){let r=tt(t),a=tt(e);return JSON.stringify(r)!==JSON.stringify(a)}function qI(t,e){let r,a,i,n;return kt(t.series[0])&&(r=t.series[0].temporalBinning?.unit,i=t.series[0].temporalBinning?.size),kt(e.series[0])&&(a=e.series[0].temporalBinning?.unit,n=e.series[0].temporalBinning?.size),Rs(r,i)&&!Rs(a,n)}function RI(t,e){return t.axes?.length===3&&e.axes?.length===2||t.axes?.length===2&&e.axes?.length===3}function kI(t,e){return JSON.stringify(t.series.map(r=>r.assignToSecondValueAxis??!1))!==JSON.stringify(e.series.map(r=>r.assignToSecondValueAxis??!1))}function jI(t,e){let r=t.axes?.map(i=>i?.guides?.map(n=>n?.above===!0)),a=e.axes?.map(i=>i?.guides?.map(n=>n?.above===!0));return JSON.stringify(r)!==JSON.stringify(a)}function _I(t,e){return $u(t)!==$u(e)}function VI(t,e){return(t.showOutliers??O.boxPlot.boxPlotOutliersVisibility)!==(e.showOutliers??O.boxPlot.boxPlotOutliersVisibility)}function WI(t,e){return(t.standardizeValues??O.boxPlot.boxPlotStandardizeValuesVisibility)!==(e.standardizeValues??O.boxPlot.boxPlotStandardizeValuesVisibility)}function zI(t,e){return JSON.stringify(t.chartRenderer)!==JSON.stringify(e.chartRenderer)}function UI(t,e){let r=t.axes?.[0].valueFormat.type===g.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0,a=e.axes?.[0].valueFormat.type===g.DateAxisFormat?e.axes[0].valueFormat.intlOptions.timeZone:void 0;return r!==a}function GI(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===g.ScatterSeries&&i.type===g.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=JSON.stringify(n)!==JSON.stringify(s)}return r}function HI(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===g.ScatterSeries&&i.type===g.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=n===void 0&&s!==void 0||n!==void 0&&s===void 0||n?.field!==s?.field}return r}function QI(t){let{previousConfig:e,newConfig:r,options:a,previousFilterBySelection:i,previousTimeIntervalInfo:n,previousSelectionOIDs:s,fieldList:o}=t,{series:l}=r,{series:d}=e,u=X(l),c=!1,h=!1,p=!1,f={common:{queryChanged:!1,xOrYChanged:!1,numberOfSeriesChanged:!1,configFiltersChanged:!1,filterBySelectionChanged:!1,dataForFilterBySelectionChanged:!1,binTemporalDataChanged:!1,timeBinningChanged:!1,timeIntervalUnitChanged:!1,newTimeBinningWillBeCalculated:!1,valueFormatChangeRequiresNewData:!1},histogram:{dataPropsChanged:!1},gauge:{valueConversionChanged:!1},boxPlot:{showMeanChanged:!1},heatChart:{binningChanged:!1},scatterPlot:{tooltipFieldsChanged:!1}};switch(f.common.queryChanged=Sw({previousConfig:e,newConfig:r,behaviorAfterLimit:a?.chartLimits?.behaviorAfterLimit}),f.common.configFiltersChanged=ww(e,r),f.common.xOrYChanged=xw(d,l),f.common.filterBySelectionChanged=Cw(i,a),f.common.dataForFilterBySelectionChanged=Lw({previousSelectionOIDs:s,options:a}),f.common.binTemporalDataChanged=Iw(e,r),f.common.valueFormatChangeRequiresNewData=Fw(e,r),f.common={...f.common,...Tw({previousSeries:d,newConfig:r,previousTimeIntervalInfo:n,setTimeBinningInfoWhenNotProvided:a?.setTimeBinningInfoWhenNotProvided})},h=Object.values(f.common).some(m=>m),u){case g.HistogramSeries:f.histogram.dataPropsChanged=ib(d,l)||rb(d,l);break;case g.LineSeries:case g.BarSeries:case g.ComboLineAndBarSeries:f.common.numberOfSeriesChanged=ju(d,l);break;case g.BoxPlotSeries:f.common.numberOfSeriesChanged=ju(d,l),f.boxPlot.showMeanChanged=Pw(e,r);break;case g.GaugeSeries:f.gauge.valueConversionChanged=Ow(e,r);break;case g.HeatSeries:f.heatChart.binningChanged=Aw(e,r);break;case g.ScatterSeries:f.scatterPlot.tooltipFieldsChanged=Ew({previousConfig:e,newConfig:r,fieldList:o});break}return(f.gauge.valueConversionChanged||f.histogram.dataPropsChanged||f.common.numberOfSeriesChanged||f.common.binTemporalDataChanged||f.boxPlot.showMeanChanged||f.heatChart.binningChanged||f.scatterPlot.tooltipFieldsChanged)&&(p=!0),c=h||p,{dataUpdateNeeded:c,dataUpdateDetails:f}}function Dw(t,e){return t.series.map(r=>r.name).join()!==e.series.map(r=>r.name).join()}function Nw(t,e){let r=t.orderOptions?.series,a=e.orderOptions?.series,i=(r?.orderBy??We.Ascending)!==(a?.orderBy??We.Ascending),n=(r?.preferLabel??!0)!==(a?.preferLabel??!0);return i||n}function ZI(t,e){return Nw(t,e)||Dw(t,e)}function JI(t,e){let r=Mr(t);if(r&&r.series.length>1){let{preferLabel:a,orderBy:i}=r.orderOptions?.series??{};if(i!==void 0){let n;if(a===!1){let s=Y(r.series);n=gp(s)?"splitByValue":"name"}else n="name";r.series.sort((s,o)=>{let l,d;n==="splitByValue"?(l=dt({where:s.query?.where})??"",d=dt({where:o.query?.where})??""):(l=s.name,d=o.name);let[u,c]=i.toUpperCase()===We.Descending?[d,l]:[l,d];return typeof u=="string"&&typeof c=="string"?u.localeCompare(c):Number(u)-Number(c)})}}return AS({data:r?.series.map(a=>a.id),htmlContainer:e}),r}function gi(t){let e=t===void 0||t==="";return{[U.Average]:`${e?"":`${t}_`}${U.Average}`,[U.Min]:`${e?"":`${t}_`}${U.Min}`,[U.Max]:`${e?"":`${t}_`}${U.Max}`,[U.FirstQuartile]:`${e?"":`${t}_`}${U.FirstQuartile}`,[U.Median]:`${e?"":`${t}_`}${U.Median}`,[U.ThirdQuartile]:`${e?"":`${t}_`}${U.ThirdQuartile}`,[U.IQR]:`${e?"":`${t}_`}${U.IQR}`,[U.Outlier]:`${e?"":`${t}_`}${U.Outlier}`,[U.StandardDeviation]:`${e?"":`${t}_`}${U.StandardDeviation}`}}function go(t){return"subType"in t&&t.subType===$o.FeatureGauge}function Zp(t){let e;return t!==void 0&&("bins"in t?e=t.bins:"dataItems"in t&&(e=t.dataItems)),e}function Jp(t){return t===x.BoxPlotMultiFields||t===x.BoxPlotMultiFieldsAndCategory||t===x.BoxPlotMultiFieldsAndSplitBy}function Ue(t){let{key:e,y:r,chartSubType:a,splitBy:i,splitByValue:n,showOutliers:s,standardizeValues:o}=t,l=n,d=gi(r)[e];return s===!0&&(e===U.Min||e===U.Max)&&(d=`${d}${Zg}`),o===!0&&(Jp(a)||e===U.Outlier)&&(d=`${d}${Jg}`),(n===void 0||`${n}`.trim()==="")&&(l=dt({where:i,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(d=`${l}${d!==""?`_${d}`:""}`),d}function gs(t){let{dataItem:e,y:r,splitBy:a,showOutliers:i}=t,n=Ue({key:U.FirstQuartile,y:r,splitBy:a,showOutliers:i}),s=Ue({key:U.ThirdQuartile,y:r,splitBy:a,showOutliers:i});return Number.isFinite(e[n])||Number.isFinite(e[s])}function Bw(t){let{configSeries:e,boxPlotDataItem:r,yList:a,showOutliers:i}=t,n=Y(e),s=!1;switch(n){case x.BoxPlotMonoField:case x.BoxPlotMultiFields:case x.BoxPlotMonoFieldAndCategory:s=gs({dataItem:r,showOutliers:i});break;case x.BoxPlotMultiFieldsAndCategory:s=a.some(o=>gs({dataItem:r,y:o,showOutliers:i}));break;case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMultiFieldsAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:s=e.some(o=>gs({dataItem:r,splitBy:o.query?.where,showOutliers:i}));break;default:s=!1;break}return s}function Kp(t){return t.map(e=>e.id).filter(e=>e!==void 0)}function tt(t,e){let r=[],a=e??Kp(t),i=Y(t);return r=t.filter(n=>a.includes(n.id)).map(n=>{let s="y"in n?n.y:void 0;return s!==void 0&&i===x.BarAndLineSplitByNoAggregation&&(s=`${s.toString()}_${dt({where:n.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),s}).filter(n=>n!==void 0),Array.from(new Set(r.flat()))}function Cn(t){let{seriesConfig:e,filteredSeriesIds:r,showMean:a}=t,i=[];if(a===!0){let n=e.find(s=>s.type===g.BoxPlotSeries);n!==void 0&&"y"in n&&(i=[n.y].flat())}else i=tt(e,r);return i}function yr(t,e){return t===null&&e===!0||Number.isFinite(t)}function $w(t){let{dataItem:e,x:r,y:a,nullAsValid:i=!1}=t;return e[r]!==void 0&&(typeof e[r]!="number"||Number.isFinite(e[r]))&&yr(e[a],i)}function KI(t){let{chartConfig:e,nullAsValid:r=!1,dataSet:a}=t,i=!0;if(e!==void 0){let n=X(e.series);if(a===void 0||a.length===0)i=!0;else{let s=tt(e.series);i=!a.some(o=>{let l=!1;switch(n){case g.HistogramSeries:{let d=o;l=yr(d.minValue,r)&&yr(d.maxValue,r)}break;case g.ScatterSeries:{let d=o,{x:u,y:c}=e.series[0];l=yr(d[u],r)&&yr(d[c],r)}break;case g.ComboLineAndBarSeries:case g.RadarSeries:case g.LineSeries:case g.BarSeries:{let d=o,{x:u}=e.series[0];l=s.some(c=>$w({dataItem:d,x:u,y:c,nullAsValid:r}));break}case g.BoxPlotSeries:{let d=e.series,{showOutliers:u}=e;l=Bw({configSeries:d,boxPlotDataItem:o,yList:s,showOutliers:u});break}case g.PieSeries:{let d=o,{x:u,y:c}=e.series[0];Y(e.series)===x.PieFromFields&&(u=nt,c=qt);let h=d[c];l=d[u]!==void 0&&d[u]!==null&&!Do(h)&&yr(Number(h),r)}break;case g.GaugeSeries:{let{x:d}=e.series[0];l=yr(o[d],r)}break;case g.HeatSeries:l=a.some(d=>yr(d[ae.valueField],r));break}return l})}}return i}function Mw(t,e){let r=new Map,a=e??Kp(t);return t.forEach(i=>{if(a.includes(i.id)&&"y"in i){let n=r.get(i.type)??[];n.push(i.y),r.set(i.type,n)}}),r}function qw(t){let{seriesConfig:e,filteredSeriesIds:r,filteredData:a}=t,i=Mw(e,r),n=e.find(d=>d.type===g.LineSeries||d.type===g.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,l=!1;return a.forEach(d=>{i.forEach(u=>{if(n){let c=0,h=0,p=!1,f=!1;for(let m=0;m<u.length;m+=1){let y=d[u[m]];Number.isFinite(y)&&(y<0?(h+=y,f=!0,l=!0):(c+=y,p=!0))}s=p?Math.max(s,c):Number.NaN,o=f?Math.min(o,h):Number.NaN}else{let c=0;for(let h=0;h<u.length;h+=1){let p=d[u[h]];c+=p,s=Math.max(s,c),o=Math.min(o,c)}}})}),{stackedMinY:o,stackedMaxY:s,dataHasNegativeValues:l}}function Rw(t){let{dataItem:e,...r}=t,a=Ue({key:U.Min,...r}),i=Ue({key:U.Max,...r}),n=e[a],s=e[i];return{min:n,max:s}}function YI(t){let e=Number.NaN,r=Number.NaN,a,i,{chartConfig:n,chartData:s,filteredSeriesIds:o}=t,{series:l}=n;if(l?.length>0){let{x:d}=l[0],u=s.filter(h=>h[d]!==null);[a,i]=si(u,h=>h[d]),n.axes?.[1]?.valueFormat.type===g.DateAxisFormat&&a!==void 0&&i!==void 0&&([a,i]=[new Date(a).valueOf(),new Date(i).valueOf()]);let c=X(n.series);if(c===g.HistogramSeries&&s.length>0){let h=s[0]?.[Pu.Start],p=s[s.length-1]?.[Pu.End];a=typeof h=="number"?h:a,i=typeof p=="number"?p:i}else if(c===g.BoxPlotSeries){e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;let h=tt(l,o),p=Y(l),f="standardizeValues"in n?n.standardizeValues===!0:void 0,m=n.series.map(y=>y.visible!==!1?dt({where:y.query?.where}):"");m.length===0&&m.push(" "),u.forEach(y=>{h.forEach(b=>{let v=p===x.BoxPlotMultiFieldsAndCategory?b:void 0;m.forEach(S=>{let{min:C,max:F}=Rw({y:v,splitByValue:S,chartSubType:p,showOutliers:!1,standardizeValues:f,dataItem:y});C!=null&&C<e&&(e=C),F!=null&&F>r&&(r=F)})})})}else switch(so(n)){case Dt.Stacked100:{e=Number.NaN,r=Number.NaN;break}case Dt.Stacked:{let{stackedMinY:h,stackedMaxY:p}=qw({seriesConfig:l,filteredData:u,filteredSeriesIds:o});e=h,r=p;break}case Dt.Side:default:{e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,tt(l,o).forEach(h=>{let[p,f]=si(u,m=>m[h]);p!==void 0&&p<e&&(e=p),f!==void 0&&f>r&&(r=f)});break}}}return{minY:e,maxY:r,minX:a,maxX:i}}var ci={$schema:"http://json-schema.org/draft-07/schema#",definitions:{ValueConversion:{type:"object",properties:{factor:{type:"number",description:"A numeric value multiplying the value to convert"},offset:{type:"number",description:"A numeric offset to apply to the value to convert"}},description:"Stores information regarding a numeric conversion",title:"ValueConversion"},WebChartAxisScrollBar:{type:"object",properties:{visible:{type:"boolean",description:"Scrollbar visibility",default:!1},width:{type:"number",description:"Scrollbar width in pixels"},color:{$ref:"#/definitions/Color",description:"Scrollbar color"},gripSize:{type:"number",description:"Grip size in pixels"},margin:{type:"number",description:"Margin between the scrollbar and the series container in pixels"}},description:"Describes the properties of an axis scrollbar",title:"WebChartAxisScrollBar"},Color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,title:"Color"},WebChartTextSymbol:{type:"object",properties:{xoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container width.`},yoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container height.`},angle:{type:"number",description:"Rotation of the label"},style:{type:"string",description:"Label style"},type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],description:"Represents a text symbol.",title:"WebChartTextSymbol"},'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>':{$ref:"#/definitions/Pick%3CITextSymbol%2CExclude%3C(%22type%22%7C%22color%22%7C%22backgroundColor%22%7C%22borderLineSize%22%7C%22borderLineColor%22%7C%22haloSize%22%7C%22haloColor%22%7C%22verticalAlignment%22%7C%22horizontalAlignment%22%7C%22rightToLeft%22%7C%22kerning%22%7C%22font%22%7C%22text%22%7C%22angle%22%7C%22xoffset%22%7C%22yoffset%22%7C%22style%22%7Cstring)%2C(%22angle%22%7C%22style%22%7C%22xoffset%22%7C%22yoffset%22)%3E%3E",title:'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>'},'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>':{type:"object",properties:{type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>'},IFont:{type:"object",properties:{family:{type:"string"},size:{type:"number"},style:{type:"string",enum:["italic","normal","oblique"]},weight:{type:"string",enum:["bold","bolder","lighter","normal"]},decoration:{type:"string",enum:["line-through","none","underline"]}},title:"IFont"},WebChartText:{type:"object",properties:{type:{type:"string",const:"chartText",description:'Represents a unique string identifier for the ChartText object. For ChartText object, it is "chartText".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling info and text content. Details on **esriTS** are [here](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm)."}},required:["type","content"],description:"Stores info on how some text is rendered on the chart and whether it is visible or not.",title:"WebChartText"},WebChartCursorCrosshair:{type:"object",properties:{type:{type:"string",const:"cursorCrosshair",description:"Represents a unique string identifier for the chart cursor's crosshair."},style:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the chart cursor's crosshair should be rendered."},verticalLineVisible:{type:"boolean",description:"Indicates whether the vertical crosshair line should be displayed",default:!1},horizontalLineVisible:{type:"boolean",description:"Indicates whether the horizontal crosshair line should be displayed",default:!1}},required:["type"],description:"JSON representation of the cursor's crosshair for a chart.",title:"WebChartCursorCrosshair"},ISimpleLineSymbol:{type:"object",properties:{type:{type:"string",const:"esriSLS"},style:{$ref:"#/definitions/SimpleLineSymbolStyle"},color:{$ref:"#/definitions/Color"},width:{type:"number"}},required:["type"],title:"ISimpleLineSymbol"},ISymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"}},required:["type"],title:"ISymbol"},SymbolType:{type:"string",enum:["esriPFS","esriPMS","esriSFS","esriSLS","esriSMS","esriTS"],title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1}},required:["type"],description:"JSON representation of the Chart's legend box",title:"WebChartLegend"},WebChartLegendPositions:{type:"string",enum:["left","right","top","bottom"],title:"WebChartLegendPositions"},WebChartNullCategory:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use for the null category. If none is provided, the default `null` text will be used."},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied.",default:"1 - symbol.outline.width"}},title:"WebChartNullCategory"},ISimpleFillSymbol:{type:"object",properties:{type:{type:"string",const:"esriSFS"},style:{$ref:"#/definitions/SimpleFillSymbolStyle"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleFillSymbol"},SimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"SimpleFillSymbolStyle"},WebChartPieChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1},displayCategory:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed in the legend.",default:!0},displayNumericValue:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},displayPercentage:{type:"boolean",description:"Indicates whether the percentage to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},labelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200},valueLabelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for the Pie chart",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:'Represents a unique string identifier for the ChartOverlay object. For ChartOverlay object, it is "chartOverlay".'},created:{type:"boolean",description:"Determines whether the overlay is created under the hood. It may or may not be visible.",default:!1},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},symbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied."}},required:["type"],description:"JSON representation of the chart's overlays like trendline scatter plot, and median in histogram",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "number". It can help us to differentiate numerical (value) axis from other types of axes viz., date-time axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.NumberFormatOptions",description:"Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications."}},required:["type","intlOptions"],description:"Defines how the numerical(value) axis data should be formatted.",title:"NumberFormatOptions"},"Intl.NumberFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["lookup","best fit"]},style:{$ref:"#/definitions/Intl.NumberFormatOptionsStyle"},currency:{type:"string"},currencyDisplay:{$ref:"#/definitions/Intl.NumberFormatOptionsCurrencyDisplay"},useGrouping:{$ref:"#/definitions/Intl.NumberFormatOptionsUseGrouping"},minimumIntegerDigits:{type:"number"},minimumFractionDigits:{type:"number"},maximumFractionDigits:{type:"number"},minimumSignificantDigits:{type:"number"},maximumSignificantDigits:{type:"number"}},title:"Intl.NumberFormatOptions"},"Intl.NumberFormatOptionsStyle":{title:"Intl.NumberFormatOptionsStyle"},"Intl.NumberFormatOptionsCurrencyDisplay":{title:"Intl.NumberFormatOptionsCurrencyDisplay"},"Intl.NumberFormatOptionsUseGrouping":{type:"boolean",title:"Intl.NumberFormatOptionsUseGrouping"},WebChartDateTimeUnitFormatOptions:{type:"object",properties:{year:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},month:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},day:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},hour:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},minute:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},second:{$ref:"#/definitions/Intl.DateTimeFormatOptions"}},description:'Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis. For instance: "year": { year: "numeric" } "month": { month: "numeric" } "day": { day: "2-digit" } "hour": { day: "numeric" } "minute": { minute: "numeric" } "second": { second: "numeric" } Reference: https://tc39.es/ecma402/#sec-datetimeformat-abstracts',title:"WebChartDateTimeUnitFormatOptions"},"Intl.DateTimeFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["best fit","lookup"]},weekday:{type:"string",enum:["long","short","narrow"]},era:{type:"string",enum:["long","short","narrow"]},year:{type:"string",enum:["numeric","2-digit"]},month:{type:"string",enum:["numeric","2-digit","long","short","narrow"]},day:{type:"string",enum:["numeric","2-digit"]},hour:{type:"string",enum:["numeric","2-digit"]},minute:{type:"string",enum:["numeric","2-digit"]},second:{type:"string",enum:["numeric","2-digit"]},timeZoneName:{type:"string",enum:["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},formatMatcher:{type:"string",enum:["best fit","basic"]},hour12:{type:"boolean"},timeZone:{type:"string"}},title:"Intl.DateTimeFormatOptions"},DateTimeFormatOptions:{type:"object",properties:{type:{type:"string",const:"date",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "date". It can help us to differentiate date-time axis from other types of axes viz., numeric (value) axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.DateTimeFormatOptions",description:"Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications."},formatPerDateTimeUnit:{$ref:"#/definitions/WebChartDateTimeUnitFormatOptions",description:"Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`."}},required:["type","intlOptions"],description:"Defines how the DateTime axis data should be formatted.",title:"DateTimeFormatOptions"},CategoryFormatOptions:{type:"object",properties:{type:{type:"string",const:"category",description:'Represents a unique string identifier for the CategoryFormatOptions object. For CategoryFormatOptions object, it is "category". It can help us to differentiate category axis from other types of axes, viz., date-time axis and numeric (value) axis.'},characterLimit:{type:["number","null"],description:"Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done.",minimum:1,multipleOf:1}},required:["type"],description:"Defines how the category axis data (Categories) should be formatted.",title:"CategoryFormatOptions"},WebChartGuide:{type:"object",properties:{type:{type:"string",const:"chartGuide",description:'Represents a unique string identifier for the Guide object. For Guide class, it is "chartGuide".'},start:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should begin."},end:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should end. If it is not specified, we get a line guide, otherwise we get a fill/rectangular guide."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered. Line guide requires [esriSLS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format, and fill guide requires [esriSFS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the Chart Authoring UI to differentiate between different guides."},label:{$ref:"#/definitions/WebChartTextSymbol",description:"Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **esriTS** format."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},above:{type:"boolean",description:"Determines whether the guide should be rendered on top of (overlapping) the series or under the series.",default:!1},tooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).",default:!1}},required:["type","start","style","name"],description:"JSON representation of the chart's guide object. Can be used to represent both line and fill guides.",title:"WebChartGuide"},WebChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:"The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.",minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."}},required:["type","valueFormat","labels"],description:"JSON representation of the chart's axis object",title:"WebChartAxis"},TimeIntervalInfo:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},title:"TimeIntervalInfo"},WebChartTemporalBinningUnits:{type:"string",enum:["seconds","minutes","hours","days","weeks","months","quarters","years"],description:"The temporal binning units",title:"WebChartTemporalBinningUnits"},WebChartGaugeAxisTick:{type:"object",properties:{type:{type:"string",const:"gaugeAxisTick",description:'Represents a unique string identifier for the GaugeAxisTick object. For WebChartGaugeAxisTick object, it is "gaugeAxisTick".'},visible:{type:"boolean",description:"Determines the visibility of the axis ticks.",default:!0}},required:["type"],description:"JSON representation of the gauge axis ticks. Currently only used by WebChartGaugeAxis.",title:"WebChartGaugeAxisTick"},WebChartNeedle:{type:"object",properties:{type:{type:"string",const:"gaugeNeedle",description:'Represents a unique string identifier for the ChartNeedle object. For WebChartNeedle object, it is "gaugeNeedle".'},visible:{type:"boolean",description:"Hides or shows the needle.",default:!0},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the needle should be rendered"},startWidth:{type:["number","null"],description:"Represents the needle's thickness at the bottom (chart's center), in px",minimum:1,default:10},endWidth:{type:["number","null"],description:"Represents the needle's thickness at the top, in px",minimum:1,default:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in the middle of the chart. Can be visualized when guides are displayed.",minimum:0,maximum:100,default:25},displayPin:{type:"boolean",description:"Hides or shows the needle's pin (centroid circle)",default:!1}},required:["type"],description:"JSON representation of a gauge needle.",title:"WebChartNeedle"},WebChartGaugeAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:"The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.",minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."},innerLabel:{$ref:"#/definitions/WebChartText",description:"Specifies how the axis' inner label needs to be displayed"},needle:{$ref:"#/definitions/WebChartNeedle",description:"Specifies how the axis' needle needs to be displayed"},ticks:{$ref:"#/definitions/WebChartGaugeAxisTick",description:"Specifies how the axis' ticks need to be displayed"},labelsIncrement:{type:"number",description:"If a label has a value being a multiple of that property, it will be displayed. Otherwise it will be hidden.\n\nIf the property is `undefined` or 0, the chart will be displayed with 6 axis labels distributed evenly along the axis min and max.\n\nIf the property has a value that results in more than a set limit of axis labels (25 as defined in `ChartDefaults.gauge.maximumNumberOfLabelIntervals`) this property value will be ignored and the chart will be displayed with only axis min/max with 4 ticks in between.",default:"undefined"},onlyShowFirstAndLastLabels:{type:"boolean",description:"Specifies if only the first and last labels need to be displayed. If set to `true` all the other labels will be hidden. Their visibility still depends on the axis labels visibility (WebChartAxis.labels.visible).",default:!1},minimumValueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines how to convert the axis minimum"},maximumValueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines how to convert the axis maximum"},minimumFromField:{anyOf:[{$ref:"#/definitions/IStatisticDefinition"},{type:"string"}],description:"If used with a gauge by feature:\n- `minimumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis minimum value If used with a statistic gauge:\n- If `minimumFromField` is set to a field name (string), the minimum from that field is mapped to the axis minimum value\n- If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis minimum value When `minimumFromField` is not provided or when it leads to an invalid value, the `minimum` value from the axis config, if provided, or the default value of 0, in that order, will be used."},maximumFromField:{anyOf:[{$ref:"#/definitions/IStatisticDefinition"},{type:"string"}],description:"If used with a gauge by feature:\n- `maximumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis maximum value If used with a statistic gauge:\n- If `maximumFromField` is set to a field name (string), the maximum from that field is mapped to the axis maximum value\n- If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis maximum value When `maximumFromField` is not provided or when it leads to an invalid value, the `maximum` value from the axis config, if provided, or the default value of 0, in that order, will be used."}},required:["labels","type","valueFormat"],description:"JSON representation of the gauge chart's axis object. Inherits from the WebChartAxis properties.",title:"WebChartGaugeAxis"},IStatisticDefinition:{type:"object",properties:{statisticType:{type:"string",enum:["avg","centroid-aggregate","convex-hull-aggregate","count","envelope-aggregate","max","min","percentile-continuous","percentile-discrete","stddev","sum","var"],description:"Statistical operation to perform (count, sum, min, max, avg, stddev, var, percentile_cont, percentile_disc, EnvelopeAggregate, CentroidAggregate, ConvexHullAggregate)."},statisticParameters:{type:"object",properties:{value:{type:"number"},orderBy:{type:"string",enum:["asc","desc"]}},required:["value"],description:"Parameters to be used along with statisticType. Currently, only applicable for percentile-continuous (continuous percentile) and percentile-discrete (discrete percentile)."},onStatisticField:{type:"string",description:"Field on which to perform the statistical operation."},outStatisticFieldName:{type:"string",description:"Field name for the returned statistic field. If outStatisticFieldName is empty or missing, the server will assign one. A valid field name can only contain alphanumeric characters and an underscore. If the outStatisticFieldName is a reserved keyword of the underlying DBMS, the operation can fail. Try specifying an alternative outStatisticFieldName."}},required:["statisticType","onStatisticField"],title:"IStatisticDefinition"},WebChartRadarChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:"The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.",minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."},labelsOrientation:{$ref:"#/definitions/WebChartRadarChartAxisLabelsOrientation",description:"Defines the labels orientation",default:"WebChartRadarChartAxisLabelsOrientation.Circular"}},required:["labels","type","valueFormat"],description:"JSON representation of the radar chart's axis object.",title:"WebChartRadarChartAxis"},WebChartRadarChartAxisLabelsOrientation:{type:"string",enum:["radial","circular","horizontal"],description:"Labels orientation for radar chart axes.",title:"WebChartRadarChartAxisLabelsOrientation"},WebChartQuery:{type:"object",properties:{outFields:{type:"array",items:{type:"string"},description:"Attribute fields to include in the FeatureSet. Will have an effect on chart with no aggregation."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."},groupByFieldsForStatistics:{type:"array",items:{type:"string"},description:"An array of fields which determine how the base data is grouped. Only one **groupBy** Field is supported, but ArcGIS JSAPI [supports multiple groupBy fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#groupByFieldsForStatistics). While splitting by multiple group-by fields is possible, it is not being done because of the number of series it will give rise to (equal to the length of the Cartesian product set) possibly making the visualization hard to interpret.",maxItems:1},outStatistics:{type:"array",items:{$ref:"#/definitions/IStatisticDefinition"},description:"Represents an array of statistics definitions which dictate how a particular field should be aggregated. Refer to [JSAPI Statistics Definition class](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-StatisticDefinition.html) for more info."},orderByFields:{type:"array",items:{type:"string"},description:"Represents the sorting order of the output result. More info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending."},gdbVersion:{type:"string",description:"Specifies the geodatabase version to display for feature service queries."},geometry:{anyOf:[{$ref:"#/definitions/IEnvelope"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IPoint"},{$ref:"#/definitions/IPolygon"},{$ref:"#/definitions/IPolygonWithCurves"},{$ref:"#/definitions/IPolyline"}],description:"The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties `distance` and `units`."},spatialRelationship:{description:"For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry."},distance:{type:"number",description:"Specifies a search distance for the `geometry`. To be associated with the `units` property. For compatible layers only."},units:{$ref:"#/definitions/RESTUnits",description:"The unit for calculating the buffer distance when `distance` and `geometry` are provided. If not specified, the unit is derived from the geometry spatial reference."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A time extent ([timestamp, timestamp]) for a temporal query against time-aware layers."},start:{type:"number",description:"The zero-based index indicating where to begin retrieving features."},num:{type:"number",description:"The number of features to retrieve."},returnDistinctValues:{type:"boolean",description:"If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.",default:!1},fetchNullValues:{type:"boolean",description:"Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.",default:!1},objectIds:{type:"array",items:{type:["number","string"]},description:"An array of objectIds or uniqueIds of the features to be filtered."}},description:"Chart query object inspired by [JSAPI Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html) class.",title:"WebChartQuery"},IEnvelope:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},xmin:{type:"number"},xmax:{type:"number"},ymin:{type:"number"},ymax:{type:"number"},zmin:{type:"number"},zmax:{type:"number"},mmin:{type:"number"},mmax:{type:"number"}},required:["xmin","xmax","ymin","ymax"],description:"An envelope is a rectangle defined by a range of values for each coordinate and attribute.",title:"IEnvelope"},IGeometry:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"}},description:'a building block for discrete geometries\n\n`IGeometry` can also be imported from the following packages:\n\n```js import { IGeometry } from "@esri/arcgis-rest-feature-layer"; ```',title:"IGeometry"},ISpatialReference:{type:"object",properties:{wkid:{type:["number","null"]},latestWkid:{type:"number"},vcsWkid:{type:"number"},latestVcsWkid:{type:"number"},wkt:{type:["string","null"]},latestWkt:{type:"string"}},description:'Spatial reference systems define mathematical transformations and coordinate systems for displaying spatial information in 2D and 3D.\n\n`ISpatialReference` can also be imported from the following packages:\n\n```js import { ISpatialReference } from "@esri/arcgis-rest-geocoding"; import { ISpatialReference } from "@esri/arcgis-rest-routing"; import { ISpatialReference } from "@esri/arcgis-rest-service-admin"; import { ISpatialReference } from "@esri/arcgis-rest-feature-layer"; ```',title:"ISpatialReference"},IExtent:{type:"object",properties:{xmin:{type:"number"},ymin:{type:"number"},zmin:{type:"number"},xmax:{type:"number"},ymax:{type:"number"},zmax:{type:"number"},spatialReference:{$ref:"#/definitions/ISpatialReference"}},required:["xmin","ymin","xmax","ymax"],description:'Extents are used to define rectangles and bounding boxes.\n\n`IExtent` can also be imported from the following packages:\n\n```js import { IExtent } from "@esri/arcgis-rest-geocoding"; import { IExtent } from "@esri/arcgis-rest-service-admin"; import { IExtent } from "@esri/arcgis-rest-feature-layer"; ```',title:"IExtent"},IPoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y"],description:'A simple point geometry, with spatial reference defined.\n\n`IPoint` can also be imported from the following packages:\n\n```js import { IPoint } from "@esri/arcgis-rest-routing"; import { IPoint } from "@esri/arcgis-rest-geocoding"; ```',title:"IPoint"},IHasZM:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"}},description:'`IHasZM` can also be imported from the following packages:\n\n```js import { IHasZM } from "@esri/arcgis-rest-feature-layer"; ```',title:"IHasZM"},IPolygon:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},rings:{type:"array",items:{type:"array",items:{$ref:"#/definitions/Position"}}}},required:["rings"],title:"IPolygon"},Position:{anyOf:[{$ref:"#/definitions/Position2D"},{type:"array",items:{type:"number"},minItems:4,maxItems:4},{type:"array",items:{type:"number"},minItems:3,maxItems:3}],title:"Position"},Position2D:{type:"array",items:{type:"number"},minItems:2,maxItems:2,title:"Position2D"},IPolygonWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curveRings:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curveRings"],title:"IPolygonWithCurves"},JsonCurve:{anyOf:[{$ref:"#/definitions/IArc"},{$ref:"#/definitions/IBezierCurve"},{$ref:"#/definitions/ICircularArc"},{$ref:"#/definitions/IOldCircularArc"}],title:"JsonCurve"},IArc:{type:"object",properties:{a:{type:"array",minItems:7,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{type:"number"},{type:"number"},{type:"number"},{type:"number"},{type:"number"}],maxItems:7}},required:["a"],description:"an arc can be represented as a JSON curve object",title:"IArc"},IBezierCurve:{type:"object",properties:{b:{type:"array",minItems:3,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{$ref:"#/definitions/Position2D"}],maxItems:3}},required:["b"],description:"a bezier curve can be represented as a JSON curve object",title:"IBezierCurve"},ICircularArc:{type:"object",properties:{c:{type:"array",minItems:2,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"}],maxItems:2}},required:["c"],description:"a circular arc can be represented as a JSON curve object",title:"ICircularArc"},IOldCircularArc:{type:"object",properties:{a:{type:"array",minItems:4,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{type:"number"},{type:"number"}],maxItems:4}},required:["a"],title:"IOldCircularArc"},IPolyline:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},paths:{type:"array",items:{type:"array",items:{$ref:"#/definitions/Position"}}}},required:["paths"],title:"IPolyline"},RESTUnits:{type:"string",enum:["feet","miles","nautical-miles","us-nautical-miles","meters","kilometers"],title:"RESTUnits"},WebChartSeriesQuery:{$ref:"#/definitions/Omit%3CWebChartQuery%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22num%22%7C%22objectIds%22%7C%22orderByFields%22%7C%22spatialRelationship%22%7C%22start%22%7C%22timeExtent%22%7C%22units%22)%3E",description:"Subset of the WebChartQuery, used at the series level",title:"WebChartSeriesQuery"},'Omit<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>':{$ref:"#/definitions/Pick%3CWebChartQuery%2CExclude%3C(%22outFields%22%7C%22where%22%7C%22groupByFieldsForStatistics%22%7C%22outStatistics%22%7C%22orderByFields%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22spatialRelationship%22%7C%22distance%22%7C%22units%22%7C%22timeExtent%22%7C%22start%22%7C%22num%22%7C%22returnDistinctValues%22%7C%22fetchNullValues%22%7C%22objectIds%22%7Cstring)%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22num%22%7C%22objectIds%22%7C%22orderByFields%22%7C%22spatialRelationship%22%7C%22start%22%7C%22timeExtent%22%7C%22units%22)%3E%3E",title:'Omit<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>'},'Pick<WebChartQuery,Exclude<("outFields"|"where"|"groupByFieldsForStatistics"|"outStatistics"|"orderByFields"|"gdbVersion"|"geometry"|"spatialRelationship"|"distance"|"units"|"timeExtent"|"start"|"num"|"returnDistinctValues"|"fetchNullValues"|"objectIds"|string),("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>>':{type:"object",properties:{outFields:{type:"array",items:{type:"string"},description:"Attribute fields to include in the FeatureSet. Will have an effect on chart with no aggregation."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."},groupByFieldsForStatistics:{type:"array",items:{type:"string"},description:"An array of fields which determine how the base data is grouped. Only one **groupBy** Field is supported, but ArcGIS JSAPI [supports multiple groupBy fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#groupByFieldsForStatistics). While splitting by multiple group-by fields is possible, it is not being done because of the number of series it will give rise to (equal to the length of the Cartesian product set) possibly making the visualization hard to interpret.",maxItems:1},outStatistics:{type:"array",items:{$ref:"#/definitions/IStatisticDefinition"},description:"Represents an array of statistics definitions which dictate how a particular field should be aggregated. Refer to [JSAPI Statistics Definition class](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-StatisticDefinition.html) for more info."},returnDistinctValues:{type:"boolean",description:"If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.",default:!1},fetchNullValues:{type:"boolean",description:"Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.",default:!1}},title:'Pick<WebChartQuery,Exclude<("outFields"|"where"|"groupByFieldsForStatistics"|"outStatistics"|"orderByFields"|"gdbVersion"|"geometry"|"spatialRelationship"|"distance"|"units"|"timeExtent"|"start"|"num"|"returnDistinctValues"|"fetchNullValues"|"objectIds"|string),("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>>'},WebChartDataFilters:{$ref:"#/definitions/Pick%3CWebChartQuery%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22objectIds%22%7C%22spatialRelationship%22%7C%22timeExtent%22%7C%22units%22%7C%22where%22)%3E",description:"JSON representation of filters applied to the data",title:"WebChartDataFilters"},'Pick<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"objectIds"|"spatialRelationship"|"timeExtent"|"units"|"where")>':{type:"object",properties:{distance:{type:"number",description:"Specifies a search distance for the `geometry`. To be associated with the `units` property. For compatible layers only."},gdbVersion:{type:"string",description:"Specifies the geodatabase version to display for feature service queries."},geometry:{anyOf:[{$ref:"#/definitions/IEnvelope"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IPoint"},{$ref:"#/definitions/IPolygon"},{$ref:"#/definitions/IPolygonWithCurves"},{$ref:"#/definitions/IPolyline"}],description:"The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties `distance` and `units`."},objectIds:{type:"array",items:{type:["number","string"]},description:"An array of objectIds or uniqueIds of the features to be filtered."},spatialRelationship:{description:"For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A time extent ([timestamp, timestamp]) for a temporal query against time-aware layers."},units:{$ref:"#/definitions/RESTUnits",description:"The unit for calculating the buffer distance when `distance` and `geometry` are provided. If not specified, the unit is derived from the geometry spatial reference."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."}},title:'Pick<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"objectIds"|"spatialRelationship"|"timeExtent"|"units"|"where")>'},WebChartSeries:{type:"object",properties:{type:{type:"string"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1}},required:["type","id","name","x"],description:"JSON representation of the chart's series object. All other series extends this interface.",title:"WebChartSeries"},WebChartCalendarDatePartsBinning:{type:"object",properties:{trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart. Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval. Setting `true` indicates to trim these incomplete intervals. Setting `false` does not trim incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date. Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},unit:{$ref:"#/definitions/WebChartCalendarDatePartsUnits",description:"Represents the unit to use to bin the data."}},required:["unit"],title:"WebChartCalendarDatePartsBinning"},WebChartTemporalBinningBase:{type:"object",properties:{trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart. Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval. Setting `true` indicates to trim these incomplete intervals. Setting `false` does not trim incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date. Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results Current limitation: this is applied only when the provided layer supports the `queryBins` operation."}},description:"Describes the basic properties available for a temporal binning",title:"WebChartTemporalBinningBase"},WebChartCalendarDatePartsUnits:{type:"string",enum:["dayOfMonth","dayOfWeek","dayOfYear","hourOfDay","monthOfYear","minuteOfDay","weekOfYear","quarterOfYear"],description:"Represents the units that can be used for calendar-based date parts binning.",title:"WebChartCalendarDatePartsUnits"},WebChartTemporalBinning:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. 7 as Sunday for a USA user, 1 as Monday for a French one). Current limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series\n- `null` and `zero` for bar series",default:"null"},trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart. Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval. Setting `true` indicates to trim these incomplete intervals. Setting `false` does not trim incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date. Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},unit:{$ref:"#/definitions/WebChartTemporalBinningUnits",description:'The unit of time to use to bin the temporal data. Current limitation: the "quarters" unit is only supported if the provided layer supports the `queryBins` operation.'},size:{type:"number",description:"The span of time that will be binned or aggregated together. Works in coordination with `unit`."},timeAggregationType:{$ref:"#/definitions/WebChartTimeAggregationTypes",description:"The time interval alignment type. Valid options include `equalIntervalsFromStartTime` and `equalIntervalsFromEndTime`. When specific the binning will start at the first or last date of the dataset.",default:"equalIntervalsFromStartTime"}},description:"Describes the properties available for a temporal binning for a bar or line",title:"WebChartTemporalBinning"},WebChartTemporalBinningExtras:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. 7 as Sunday for a USA user, 1 as Monday for a French one). Current limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series\n- `null` and `zero` for bar series",default:"null"}},description:"Describes the extra properties available for a temporal series and for the heat chart",title:"WebChartTemporalBinningExtras"},WebChartNullPolicyTypes:{type:"string",enum:["null","zero","interpolate"],description:"Represents the different types of null policy that can be applied to a chart using the time binning feature.",title:"WebChartNullPolicyTypes"},WebChartTimeAggregationTypes:{type:"string",enum:["equalIntervalsFromStartTime","equalIntervalsFromEndTime"],description:"Represents the different types of time aggregation that can be applied to a chart using the time binning feature.",title:"WebChartTimeAggregationTypes"},WebChartTemporalSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."}},description:"Describes the properties related to a temporal series",title:"WebChartTemporalSeries"},WebChartBarChartSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"barSeries",description:'Represents a unique string identifier for the BarChartSeries object. For BarSeries object, it is "barSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the columns/bars should be rendered"},hideOversizedStackedLabels:{type:"boolean",description:"When true or undefined (default), the labels displayed within a small stacked column are hidden to avoid cluttering. When false, all the data labels are displayed.",default:!0},hideOversizedSideBySideLabels:{type:"boolean",description:"When true, the labels displayed within a small column for sideBySide bar series are hidden to avoid cluttering. When false or undefined (default), all the data labels are displayed.",default:!1},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:"Specifies how to display the category with null value Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color."}},required:["id","name","type","x","y"],description:"[Bar chart](https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/charts/bar-chart.htm) shows the categorical distribution of String/DateTime data.",title:"WebChartBarChartSeries"},HistogramOverlays:{type:"object",properties:{type:{type:"string",const:"chartOverlays",description:'Represents a unique string identifier for the HistogramOverlays object. For HistogramOverlays object, it is "chartOverlays".'},mean:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the mean overlay for histogram. If not provided, the mean overlay is not displayed."},median:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the median overlay for histogram. If not provided, the median overlay is not displayed."},standardDeviation:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the standard deviation overlay for histogram. If not provided, the standard deviation overlay is not displayed."},comparisonDistribution:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the comparison distribution overlay for histogram. If not provided, the comparison distribution overlay is not displayed."}},required:["type"],description:"Object containing Histogram overlays",title:"HistogramOverlays"},WebChartHistogramSeries:{type:"object",properties:{type:{type:"string",const:"histogramSeries",description:'Represents a unique string identifier for the HistogramSeries object. For BarSeries object, it is "histogramSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},binCount:{type:["number","null"],description:"Bin count must be a positive integer.",minimum:1,multipleOf:1,default:32},overlays:{$ref:"#/definitions/HistogramOverlays",description:"Specifies the chart overlays. Histogram supports 4 overlays: **mean**, **median**, **standardDeviation** and **comparisonDistribution**. The overlays won't show if the property is not defined."},dataTransformationType:{$ref:"#/definitions/WebChartDataTransformations",description:"Specifies how the data should be transformed (e.g. square root, log, etc.) before binning."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the columns/bars should be rendered"}},required:["id","name","type","x"],description:"[Histogram](https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/charts/histogram.htm) shows the numerical(frequency) distribution of a numerical field.",title:"WebChartHistogramSeries"},WebChartDataTransformations:{type:"string",enum:["none","logarithmic","squareRoot"],title:"WebChartDataTransformations"},ScatterplotOverlays:{type:"object",properties:{type:{type:"string",const:"chartOverlays",description:'Represents a unique string identifier for the ScatterplotOverlays object. For ScatterplotOverlays object, it is "chartOverlays".'},trendLine:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the trendline overlay for scatter plot. The trendline won't show if the property is not defined."}},required:["type"],description:"Object containing Scatter Plot overlays",title:"ScatterplotOverlays"},SizePolicy:{type:"object",properties:{type:{type:"string",const:"sizeScale",description:'Represents a unique string identifier for the sizePolicy object. For sizePolicy object, it is "sizeScale".'},scaleType:{$ref:"#/definitions/SizePolicyScaleTypes",description:"The type of scale to apply to the markers (linear or logarithmic)",default:"SizePolicyScaleTypes.Linear"},field:{type:"string",description:"The field which determines the markers size"},minSize:{type:"number",description:"The minimum marker size",default:5,multipleOf:1},maxSize:{type:"number",description:"The maximum marker size",default:30,multipleOf:1}},required:["type","field"],title:"SizePolicy"},SizePolicyScaleTypes:{type:"string",enum:["linear","logarithmic"],description:"Represents the types of scales that can be applied to the size policy. Use by bubble charts (scatterplot).",title:"SizePolicyScaleTypes"},WebChartScatterplotSeries:{type:"object",properties:{type:{type:"string",const:"scatterSeries",description:'Represents a unique string identifier for the ScatterSeries object. For ScatterSeries object, it is "scatterSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:'Specifies how each data point in the scatter plot should be rendered. The type is `"esriSMS"` and it is adopted from the [REST API Types](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm#GUID-C8D40B32-5F4B-45EB-8048-6D5A8763E13B).'},overlays:{$ref:"#/definitions/ScatterplotOverlays",description:"Specifies all the chart overlays. The scatter plot implements only 1 overlay, **trendLine**. The overlays won't show if the property is not defined."},sizePolicy:{$ref:"#/definitions/SizePolicy",description:"Specifies rules to use the scatter plot as bubble plot, by changing dynamically the markers size according to a specific field value"},additionalTooltipFields:{type:"array",items:{type:"string"},description:"Specifies the additional numeric fields in the tooltip."}},required:["id","name","type","x","y"],description:"[Scatter plot](https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/charts/scatter-plot.htm) shows the relationship between two numerical fields.",title:"WebChartScatterplotSeries"},ISimpleMarkerSymbol:{type:"object",properties:{type:{type:"string",const:"esriSMS"},style:{$ref:"#/definitions/SimpleMarkerSymbolStyle"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},size:{type:"number"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleMarkerSymbol"},IMarkerSymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},required:["type"],title:"IMarkerSymbol"},SimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSTriangle","esriSMSX"],title:"SimpleMarkerSymbolStyle"},WebChartPieChartTick:{type:"object",properties:{type:{type:"string",const:"pieTick",description:'Represents a unique string identifier for the WebChartPieChartTick object. For PieTick object, it is "pieTick".'},visible:{type:"boolean",description:"Determines the visibility of the tick. Assigning the `true` value will only be considered when the data labels are visible (`series.dataLabels.visible`) and when the data label associated to the tick is outside of the chart (`series.dataLabelsOffset` > 0)."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the pie chart ticks should be rendered"}},required:["type"],description:"JSON representation of the pie ticks.",title:"WebChartPieChartTick"},WebChartPieChartSlice:{type:"object",properties:{sliceId:{type:"string",description:"A unique string used identify the slice of a pie chart."},originalLabel:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"The slice's original label."},label:{type:"string",description:"Custom label for the slice. For grouped slice, the default value is `Other`. For regular slice, it will be either the category or field name."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the slice should be rendered. If not provided, the slice will be styled with default values."}},required:["sliceId"],description:"JSON representation of the pie slices",title:"WebChartPieChartSlice"},WebChartPieChartGroupSlice:{type:"object",properties:{sliceId:{type:"string",description:"A unique string used identify the slice of a pie chart."},originalLabel:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"The slice's original label."},label:{type:"string",description:"Custom label for the slice. For grouped slice, the default value is `Other`. For regular slice, it will be either the category or field name."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the slice should be rendered. If not provided, the slice will be styled with default values."},percentageThreshold:{type:"number",description:"Slices that have a percent value equal or lesser to this threshold are grouped into a unique slice"},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the grouped slice data labels should be rendered. If the property is not set the `series.dataLabels` will be used instead."}},required:["percentageThreshold","sliceId"],description:"JSON representation of the pie grouped slice",title:"WebChartPieChartGroupSlice"},WebChartPieChartSeries:{type:"object",properties:{type:{type:"string",const:"pieSeries",description:'Represents a unique string identifier for the PieSeries object. For PieSeries object, it is "pieSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.",minimum:0,maximum:100,default:50},startAngle:{type:["number","null"],default:-90},endAngle:{type:["number","null"],default:270},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the slices should be rendered"},displayCategoryOnDataLabel:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed on its data label. This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!0},displayNumericValueOnDataLabel:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed on its data label. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`. This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!0},displayPercentageOnDataLabel:{type:"boolean",description:"Indicates whether the percentage associated to a slice is to be displayed on its data label. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)` This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!1},displayCategoryOnTooltip:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed on its tooltip. This property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},displayNumericValueOnTooltip:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed on its tooltip. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)` This property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},displayPercentageOnTooltip:{type:"boolean",description:"Indicates whether the percentage associated to a slice is to be displayed on its tooltip. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)` This property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},numericValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Specifies how the numerical values should be formatted (applied to label, tooltip and legend). Can be overridden for the tooltips by series.dataTooltipValueFormat."},percentValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Specifies how the percent values should be formatted (applied to label, tooltip and legend) Can be overridden for the tooltips by series.dataTooltipPercentFormat."},valuePrefix:{type:"string",description:"Adds a prefix to all the values displayed on the pie chart: data labels, tooltips and legend"},valueSuffix:{type:"string",description:"Adds a suffix to all the values displayed on the pie chart: data labels, tooltips and legend"},percentagePrefix:{type:"string",description:"Adds a prefix to all the percentages displayed on the pie chart: data labels, tooltips and legend"},percentageSuffix:{type:"string",description:"Adds a suffix to all the percentages displayed on the pie chart: data labels, tooltips and legend"},dataLabelsCharacterLimit:{type:["number","null"],description:'If set, the category on the data label is truncated to display only `characterLimit` characters, and an ellipsis ("...") is added to the end of the label. This does not affect the value and percentage part of the labels. Does not apply to tooltips and legend labels.',default:"undefined",minimum:1,multipleOf:1},ticks:{$ref:"#/definitions/WebChartPieChartTick",description:"Specifies how to render the ticks shown on each slide. Ticks will be displayed with default values if not provided."},dataLabelsInside:{type:"boolean",description:`Whether to place the data labels inside the pie slices. When set to \`true\` the following properties will be ignored:
3
+ v5.0.0-next.55 */
4
+ import{A as Ye,B as Rr,a as la,f as Mr,i as Lo,j as dr,l as Do,o as On,q as ve,r as cr,s as ua,t as qr,u as ye,v as Pe,w as we}from"./5H635XRT.js";import{a as qo,b as An,c as Nt,d as yt}from"./ITCWEBSJ.js";import{a as g,b as j,c as He,e as Bi,f as mt,h as We,i as da,j as No,k as H,l as Kt,n as at,o as Be,p as $o,q as ur,s as Bo,t as Mo,v as nt,w as X}from"./ADIOEHQL.js";import{F as Ft}from"./57K7INJC.js";import{b as J,d as Eo}from"./FK5O57G3.js";export default $arcgis.t(([Hs,en,Qs,pm,hm,fm,Vu,mm,ym,Wu,gm,Zs,bm,vm,xi,{substitute:qe},Zd,Sm,Jd,wm])=>{var Ho=J((_x,Nn)=>{function Th(t,e){var r=e&&e.cache?e.cache:Dh,a=e&&e.serializer?e.serializer:Lh,i=e&&e.strategy?e.strategy:Oh;return i(t,{cache:r,serializer:a})}function Ph(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Uo(t,e,r,a){var i=Ph(a)?a:r(a),n=e.get(i);return typeof n>"u"&&(n=t.call(this,a),e.set(i,n)),n}function Go(t,e,r){var a=Array.prototype.slice.call(arguments,3),i=r(a),n=e.get(i);return typeof n>"u"&&(n=t.apply(this,a),e.set(i,n)),n}function Dn(t,e,r,a,i){return r.bind(e,t,a,i)}function Oh(t,e){var r=t.length===1?Uo:Go;return Dn(t,this,r,e.cache.create(),e.serializer)}function Ah(t,e){var r=Go;return Dn(t,this,r,e.cache.create(),e.serializer)}function Eh(t,e){var r=Uo;return Dn(t,this,r,e.cache.create(),e.serializer)}function Lh(){return JSON.stringify(arguments)}function ga(){this.cache=Object.create(null)}ga.prototype.has=function(t){return t in this.cache};ga.prototype.get=function(t){return this.cache[t]};ga.prototype.set=function(t,e){this.cache[t]=e};var Dh={create:function(){return new ga}};Nn.exports=Th;Nn.exports.strategies={variadic:Ah,monadic:Eh}});var Zo=J((ba,Qo)=>{(function(t,e){typeof ba=="object"&&typeof Qo<"u"?e(ba):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(ba,function(t){"use strict";function e(){for(var I=arguments.length,w=Array(I),F=0;F<I;F++)w[F]=arguments[F];if(w.length>1){w[0]=w[0].slice(0,-1);for(var D=w.length-1,$=1;$<D;++$)w[$]=w[$].slice(1,-1);return w[D]=w[D].slice(1),w.join("")}else return w[0]}function r(I){return"(?:"+I+")"}function a(I){return I===void 0?"undefined":I===null?"null":Object.prototype.toString.call(I).split(" ").pop().split("]").shift().toLowerCase()}function i(I){return I.toUpperCase()}function n(I){return I!=null?I instanceof Array?I:typeof I.length!="number"||I.split||I.setInterval||I.call?[I]:Array.prototype.slice.call(I):[]}function s(I,w){var F=I;if(w)for(var D in w)F[D]=w[D];return F}function o(I){var w="[A-Za-z]",F="[\\x0D]",D="[0-9]",$="[\\x22]",W=e(D,"[A-Fa-f]"),ee="[\\x0A]",le="[\\x20]",he=r(r("%[EFef]"+W+"%"+W+W+"%"+W+W)+"|"+r("%[89A-Fa-f]"+W+"%"+W+W)+"|"+r("%"+W+W)),_e="[\\:\\/\\?\\#\\[\\]\\@]",ne="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Le=e(_e,ne),Ve=I?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Te=I?"[\\uE000-\\uF8FF]":"[]",de=e(w,D,"[\\-\\.\\_\\~]",Ve),De=r(w+e(w,D,"[\\+\\-\\.]")+"*"),ge=r(r(he+"|"+e(de,ne,"[\\:]"))+"*"),Nr=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("[1-9]"+D)+"|"+D),ht=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("0?[1-9]"+D)+"|0?0?"+D),Ct=r(ht+"\\."+ht+"\\."+ht+"\\."+ht),be=r(W+"{1,4}"),ft=r(r(be+"\\:"+be)+"|"+Ct),It=r(r(be+"\\:")+"{6}"+ft),zt=r("\\:\\:"+r(be+"\\:")+"{5}"+ft),$r=r(r(be)+"?\\:\\:"+r(be+"\\:")+"{4}"+ft),Qt=r(r(r(be+"\\:")+"{0,1}"+be)+"?\\:\\:"+r(be+"\\:")+"{3}"+ft),Ei=r(r(r(be+"\\:")+"{0,2}"+be)+"?\\:\\:"+r(be+"\\:")+"{2}"+ft),na=r(r(r(be+"\\:")+"{0,3}"+be)+"?\\:\\:"+be+"\\:"+ft),sa=r(r(r(be+"\\:")+"{0,4}"+be)+"?\\:\\:"+ft),ei=r(r(r(be+"\\:")+"{0,5}"+be)+"?\\:\\:"+be),ti=r(r(r(be+"\\:")+"{0,6}"+be)+"?\\:\\:"),Zt=r([It,zt,$r,Qt,Ei,na,sa,ei,ti].join("|")),ri=r(r(de+"|"+he)+"+"),Tn=r(Zt+"\\%25"+ri),Br=r(Zt+r("\\%25|\\%(?!"+W+"{2})")+ri),ph=r("[vV]"+W+"+\\."+e(de,ne,"[\\:]")+"+"),hh=r("\\["+r(Br+"|"+Zt+"|"+ph)+"\\]"),To=r(r(he+"|"+e(de,ne))+"*"),Li=r(hh+"|"+Ct+"(?!"+To+")|"+To),Di=r(D+"*"),Po=r(r(ge+"@")+"?"+Li+r("\\:"+Di)+"?"),Ni=r(he+"|"+e(de,ne,"[\\:\\@]")),fh=r(Ni+"*"),Oo=r(Ni+"+"),mh=r(r(he+"|"+e(de,ne,"[\\@]"))+"+"),Jt=r(r("\\/"+fh)+"*"),ii=r("\\/"+r(Oo+Jt)+"?"),Pn=r(mh+Jt),oa=r(Oo+Jt),ai="(?!"+Ni+")",ix=r(Jt+"|"+ii+"|"+Pn+"|"+oa+"|"+ai),ni=r(r(Ni+"|"+e("[\\/\\?]",Te))+"*"),$i=r(r(Ni+"|[\\/\\?]")+"*"),Ao=r(r("\\/\\/"+Po+Jt)+"|"+ii+"|"+oa+"|"+ai),yh=r(De+"\\:"+Ao+r("\\?"+ni)+"?"+r("\\#"+$i)+"?"),gh=r(r("\\/\\/"+Po+Jt)+"|"+ii+"|"+Pn+"|"+ai),bh=r(gh+r("\\?"+ni)+"?"+r("\\#"+$i)+"?"),ax=r(yh+"|"+bh),nx=r(De+"\\:"+Ao+r("\\?"+ni)+"?"),sx="^("+De+")\\:"+r(r("\\/\\/("+r("("+ge+")@")+"?("+Li+")"+r("\\:("+Di+")")+"?)")+"?("+Jt+"|"+ii+"|"+oa+"|"+ai+")")+r("\\?("+ni+")")+"?"+r("\\#("+$i+")")+"?$",ox="^(){0}"+r(r("\\/\\/("+r("("+ge+")@")+"?("+Li+")"+r("\\:("+Di+")")+"?)")+"?("+Jt+"|"+ii+"|"+Pn+"|"+ai+")")+r("\\?("+ni+")")+"?"+r("\\#("+$i+")")+"?$",lx="^("+De+")\\:"+r(r("\\/\\/("+r("("+ge+")@")+"?("+Li+")"+r("\\:("+Di+")")+"?)")+"?("+Jt+"|"+ii+"|"+oa+"|"+ai+")")+r("\\?("+ni+")")+"?$",dx="^"+r("\\#("+$i+")")+"?$",ux="^"+r("("+ge+")@")+"?("+Li+")"+r("\\:("+Di+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",w,D,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",de,ne),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",de,ne),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",de,ne),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",de,ne),"g"),NOT_QUERY:new RegExp(e("[^\\%]",de,ne,"[\\:\\@\\/\\?]",Te),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",de,ne,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",de,ne),"g"),UNRESERVED:new RegExp(de,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",de,Le),"g"),PCT_ENCODED:new RegExp(he,"g"),IPV4ADDRESS:new RegExp("^("+Ct+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Zt+")"+r(r("\\%25|\\%(?!"+W+"{2})")+"("+ri+")")+"?\\]?$")}}var l=o(!1),d=o(!0),u=function(){function I(w,F){var D=[],$=!0,W=!1,ee=void 0;try{for(var le=w[Symbol.iterator](),he;!($=(he=le.next()).done)&&(D.push(he.value),!(F&&D.length===F));$=!0);}catch(_e){W=!0,ee=_e}finally{try{!$&&le.return&&le.return()}finally{if(W)throw ee}}return D}return function(w,F){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return I(w,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(I){if(Array.isArray(I)){for(var w=0,F=Array(I.length);w<I.length;w++)F[w]=I[w];return F}else return Array.from(I)},h=2147483647,p=36,f=1,m=26,y=38,b=700,v=72,S=128,C="-",T=/^xn--/,A=/[^\0-\x7E]/,q=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=p-f,N=Math.floor,B=String.fromCharCode;function R(I){throw new RangeError(L[I])}function M(I,w){for(var F=[],D=I.length;D--;)F[D]=w(I[D]);return F}function E(I,w){var F=I.split("@"),D="";F.length>1&&(D=F[0]+"@",I=F[1]),I=I.replace(q,".");var $=I.split("."),W=M($,w).join(".");return D+W}function k(I){for(var w=[],F=0,D=I.length;F<D;){var $=I.charCodeAt(F++);if($>=55296&&$<=56319&&F<D){var W=I.charCodeAt(F++);(W&64512)==56320?w.push((($&1023)<<10)+(W&1023)+65536):(w.push($),F--)}else w.push($)}return w}var V=function(w){return String.fromCodePoint.apply(String,c(w))},Q=function(w){return w-48<10?w-22:w-65<26?w-65:w-97<26?w-97:p},Z=function(w,F){return w+22+75*(w<26)-((F!=0)<<5)},G=function(w,F,D){var $=0;for(w=D?N(w/b):w>>1,w+=N(w/F);w>P*m>>1;$+=p)w=N(w/P);return N($+(P+1)*w/(w+y))},z=function(w){var F=[],D=w.length,$=0,W=S,ee=v,le=w.lastIndexOf(C);le<0&&(le=0);for(var he=0;he<le;++he)w.charCodeAt(he)>=128&&R("not-basic"),F.push(w.charCodeAt(he));for(var _e=le>0?le+1:0;_e<D;){for(var ne=$,Le=1,Ve=p;;Ve+=p){_e>=D&&R("invalid-input");var Te=Q(w.charCodeAt(_e++));(Te>=p||Te>N((h-$)/Le))&&R("overflow"),$+=Te*Le;var de=Ve<=ee?f:Ve>=ee+m?m:Ve-ee;if(Te<de)break;var De=p-de;Le>N(h/De)&&R("overflow"),Le*=De}var ge=F.length+1;ee=G($-ne,ge,ne==0),N($/ge)>h-W&&R("overflow"),W+=N($/ge),$%=ge,F.splice($++,0,W)}return String.fromCodePoint.apply(String,F)},ie=function(w){var F=[];w=k(w);var D=w.length,$=S,W=0,ee=v,le=!0,he=!1,_e=void 0;try{for(var ne=w[Symbol.iterator](),Le;!(le=(Le=ne.next()).done);le=!0){var Ve=Le.value;Ve<128&&F.push(B(Ve))}}catch(Br){he=!0,_e=Br}finally{try{!le&&ne.return&&ne.return()}finally{if(he)throw _e}}var Te=F.length,de=Te;for(Te&&F.push(C);de<D;){var De=h,ge=!0,Nr=!1,ht=void 0;try{for(var Ct=w[Symbol.iterator](),be;!(ge=(be=Ct.next()).done);ge=!0){var ft=be.value;ft>=$&&ft<De&&(De=ft)}}catch(Br){Nr=!0,ht=Br}finally{try{!ge&&Ct.return&&Ct.return()}finally{if(Nr)throw ht}}var It=de+1;De-$>N((h-W)/It)&&R("overflow"),W+=(De-$)*It,$=De;var zt=!0,$r=!1,Qt=void 0;try{for(var Ei=w[Symbol.iterator](),na;!(zt=(na=Ei.next()).done);zt=!0){var sa=na.value;if(sa<$&&++W>h&&R("overflow"),sa==$){for(var ei=W,ti=p;;ti+=p){var Zt=ti<=ee?f:ti>=ee+m?m:ti-ee;if(ei<Zt)break;var ri=ei-Zt,Tn=p-Zt;F.push(B(Z(Zt+ri%Tn,0))),ei=N(ri/Tn)}F.push(B(Z(ei,0))),ee=G(W,It,de==Te),W=0,++de}}}catch(Br){$r=!0,Qt=Br}finally{try{!zt&&Ei.return&&Ei.return()}finally{if($r)throw Qt}}++W,++$}return F.join("")},Ae=function(w){return E(w,function(F){return T.test(F)?z(F.slice(4).toLowerCase()):F})},Ee=function(w){return E(w,function(F){return A.test(F)?"xn--"+ie(F):F})},te={version:"2.1.0",ucs2:{decode:k,encode:V},decode:z,encode:ie,toASCII:Ee,toUnicode:Ae},xe={};function $e(I){var w=I.charCodeAt(0),F=void 0;return w<16?F="%0"+w.toString(16).toUpperCase():w<128?F="%"+w.toString(16).toUpperCase():w<2048?F="%"+(w>>6|192).toString(16).toUpperCase()+"%"+(w&63|128).toString(16).toUpperCase():F="%"+(w>>12|224).toString(16).toUpperCase()+"%"+(w>>6&63|128).toString(16).toUpperCase()+"%"+(w&63|128).toString(16).toUpperCase(),F}function je(I){for(var w="",F=0,D=I.length;F<D;){var $=parseInt(I.substr(F+1,2),16);if($<128)w+=String.fromCharCode($),F+=3;else if($>=194&&$<224){if(D-F>=6){var W=parseInt(I.substr(F+4,2),16);w+=String.fromCharCode(($&31)<<6|W&63)}else w+=I.substr(F,6);F+=6}else if($>=224){if(D-F>=9){var ee=parseInt(I.substr(F+4,2),16),le=parseInt(I.substr(F+7,2),16);w+=String.fromCharCode(($&15)<<12|(ee&63)<<6|le&63)}else w+=I.substr(F,9);F+=9}else w+=I.substr(F,3),F+=3}return w}function ct(I,w){function F(D){var $=je(D);return $.match(w.UNRESERVED)?$:D}return I.scheme&&(I.scheme=String(I.scheme).replace(w.PCT_ENCODED,F).toLowerCase().replace(w.NOT_SCHEME,"")),I.userinfo!==void 0&&(I.userinfo=String(I.userinfo).replace(w.PCT_ENCODED,F).replace(w.NOT_USERINFO,$e).replace(w.PCT_ENCODED,i)),I.host!==void 0&&(I.host=String(I.host).replace(w.PCT_ENCODED,F).toLowerCase().replace(w.NOT_HOST,$e).replace(w.PCT_ENCODED,i)),I.path!==void 0&&(I.path=String(I.path).replace(w.PCT_ENCODED,F).replace(I.scheme?w.NOT_PATH:w.NOT_PATH_NOSCHEME,$e).replace(w.PCT_ENCODED,i)),I.query!==void 0&&(I.query=String(I.query).replace(w.PCT_ENCODED,F).replace(w.NOT_QUERY,$e).replace(w.PCT_ENCODED,i)),I.fragment!==void 0&&(I.fragment=String(I.fragment).replace(w.PCT_ENCODED,F).replace(w.NOT_FRAGMENT,$e).replace(w.PCT_ENCODED,i)),I}function rt(I){return I.replace(/^0*(.*)/,"$1")||"0"}function Ce(I,w){var F=I.match(w.IPV4ADDRESS)||[],D=u(F,2),$=D[1];return $?$.split(".").map(rt).join("."):I}function Fe(I,w){var F=I.match(w.IPV6ADDRESS)||[],D=u(F,3),$=D[1],W=D[2];if($){for(var ee=$.toLowerCase().split("::").reverse(),le=u(ee,2),he=le[0],_e=le[1],ne=_e?_e.split(":").map(rt):[],Le=he.split(":").map(rt),Ve=w.IPV4ADDRESS.test(Le[Le.length-1]),Te=Ve?7:8,de=Le.length-Te,De=Array(Te),ge=0;ge<Te;++ge)De[ge]=ne[ge]||Le[de+ge]||"";Ve&&(De[Te-1]=Ce(De[Te-1],w));var Nr=De.reduce(function(It,zt,$r){if(!zt||zt==="0"){var Qt=It[It.length-1];Qt&&Qt.index+Qt.length===$r?Qt.length++:It.push({index:$r,length:1})}return It},[]),ht=Nr.sort(function(It,zt){return zt.length-It.length})[0],Ct=void 0;if(ht&&ht.length>1){var be=De.slice(0,ht.index),ft=De.slice(ht.index+ht.length);Ct=be.join(":")+"::"+ft.join(":")}else Ct=De.join(":");return W&&(Ct+="%"+W),Ct}else return I}var Er=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Ke="".match(/(){0}/)[1]===void 0;function ce(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F={},D=w.iri!==!1?d:l;w.reference==="suffix"&&(I=(w.scheme?w.scheme+":":"")+"//"+I);var $=I.match(Er);if($){Ke?(F.scheme=$[1],F.userinfo=$[3],F.host=$[4],F.port=parseInt($[5],10),F.path=$[6]||"",F.query=$[7],F.fragment=$[8],isNaN(F.port)&&(F.port=$[5])):(F.scheme=$[1]||void 0,F.userinfo=I.indexOf("@")!==-1?$[3]:void 0,F.host=I.indexOf("//")!==-1?$[4]:void 0,F.port=parseInt($[5],10),F.path=$[6]||"",F.query=I.indexOf("?")!==-1?$[7]:void 0,F.fragment=I.indexOf("#")!==-1?$[8]:void 0,isNaN(F.port)&&(F.port=I.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?$[4]:void 0)),F.host&&(F.host=Fe(Ce(F.host,D),D)),F.scheme===void 0&&F.userinfo===void 0&&F.host===void 0&&F.port===void 0&&!F.path&&F.query===void 0?F.reference="same-document":F.scheme===void 0?F.reference="relative":F.fragment===void 0?F.reference="absolute":F.reference="uri",w.reference&&w.reference!=="suffix"&&w.reference!==F.reference&&(F.error=F.error||"URI is not a "+w.reference+" reference.");var W=xe[(w.scheme||F.scheme||"").toLowerCase()];if(!w.unicodeSupport&&(!W||!W.unicodeSupport)){if(F.host&&(w.domainHost||W&&W.domainHost))try{F.host=te.toASCII(F.host.replace(D.PCT_ENCODED,je).toLowerCase())}catch(ee){F.error=F.error||"Host's domain name can not be converted to ASCII via punycode: "+ee}ct(F,l)}else ct(F,D);W&&W.parse&&W.parse(F,w)}else F.error=F.error||"URI can not be parsed.";return F}function lr(I,w){var F=w.iri!==!1?d:l,D=[];return I.userinfo!==void 0&&(D.push(I.userinfo),D.push("@")),I.host!==void 0&&D.push(Fe(Ce(String(I.host),F),F).replace(F.IPV6ADDRESS,function($,W,ee){return"["+W+(ee?"%25"+ee:"")+"]"})),(typeof I.port=="number"||typeof I.port=="string")&&(D.push(":"),D.push(String(I.port))),D.length?D.join(""):void 0}var Ht=/^\.\.?\//,Lr=/^\/\.(\/|$)/,Dr=/^\/\.\.(\/|$)/,Je=/^\/?(?:.|\n)*?(?=\/|$)/;function xt(I){for(var w=[];I.length;)if(I.match(Ht))I=I.replace(Ht,"");else if(I.match(Lr))I=I.replace(Lr,"/");else if(I.match(Dr))I=I.replace(Dr,"/"),w.pop();else if(I==="."||I==="..")I="";else{var F=I.match(Je);if(F){var D=F[0];I=I.slice(D.length),w.push(D)}else throw new Error("Unexpected dot segment condition")}return w.join("")}function it(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=w.iri?d:l,D=[],$=xe[(w.scheme||I.scheme||"").toLowerCase()];if($&&$.serialize&&$.serialize(I,w),I.host&&!F.IPV6ADDRESS.test(I.host)){if(w.domainHost||$&&$.domainHost)try{I.host=w.iri?te.toUnicode(I.host):te.toASCII(I.host.replace(F.PCT_ENCODED,je).toLowerCase())}catch(le){I.error=I.error||"Host's domain name can not be converted to "+(w.iri?"Unicode":"ASCII")+" via punycode: "+le}}ct(I,F),w.reference!=="suffix"&&I.scheme&&(D.push(I.scheme),D.push(":"));var W=lr(I,w);if(W!==void 0&&(w.reference!=="suffix"&&D.push("//"),D.push(W),I.path&&I.path.charAt(0)!=="/"&&D.push("/")),I.path!==void 0){var ee=I.path;!w.absolutePath&&(!$||!$.absolutePath)&&(ee=xt(ee)),W===void 0&&(ee=ee.replace(/^\/\//,"/%2F")),D.push(ee)}return I.query!==void 0&&(D.push("?"),D.push(I.query)),I.fragment!==void 0&&(D.push("#"),D.push(I.fragment)),D.join("")}function et(I,w){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments[3],$={};return D||(I=ce(it(I,F),F),w=ce(it(w,F),F)),F=F||{},!F.tolerant&&w.scheme?($.scheme=w.scheme,$.userinfo=w.userinfo,$.host=w.host,$.port=w.port,$.path=xt(w.path||""),$.query=w.query):(w.userinfo!==void 0||w.host!==void 0||w.port!==void 0?($.userinfo=w.userinfo,$.host=w.host,$.port=w.port,$.path=xt(w.path||""),$.query=w.query):(w.path?(w.path.charAt(0)==="/"?$.path=xt(w.path):((I.userinfo!==void 0||I.host!==void 0||I.port!==void 0)&&!I.path?$.path="/"+w.path:I.path?$.path=I.path.slice(0,I.path.lastIndexOf("/")+1)+w.path:$.path=w.path,$.path=xt($.path)),$.query=w.query):($.path=I.path,w.query!==void 0?$.query=w.query:$.query=I.query),$.userinfo=I.userinfo,$.host=I.host,$.port=I.port),$.scheme=I.scheme),$.fragment=w.fragment,$}function Vt(I,w,F){var D=s({scheme:"null"},F);return it(et(ce(I,D),ce(w,D),D,!0),D)}function pt(I,w){return typeof I=="string"?I=it(ce(I,w),w):a(I)==="object"&&(I=ce(it(I,w),w)),I}function aa(I,w,F){return typeof I=="string"?I=it(ce(I,F),F):a(I)==="object"&&(I=it(I,F)),typeof w=="string"?w=it(ce(w,F),F):a(w)==="object"&&(w=it(w,F)),I===w}function In(I,w){return I&&I.toString().replace(!w||!w.iri?l.ESCAPE:d.ESCAPE,$e)}function Dt(I,w){return I&&I.toString().replace(!w||!w.iri?l.PCT_ENCODED:d.PCT_ENCODED,je)}var Oi={scheme:"http",domainHost:!0,parse:function(w,F){return w.host||(w.error=w.error||"HTTP URIs must have a host."),w},serialize:function(w,F){var D=String(w.scheme).toLowerCase()==="https";return(w.port===(D?443:80)||w.port==="")&&(w.port=void 0),w.path||(w.path="/"),w}},bo={scheme:"https",domainHost:Oi.domainHost,parse:Oi.parse,serialize:Oi.serialize};function vo(I){return typeof I.secure=="boolean"?I.secure:String(I.scheme).toLowerCase()==="wss"}var Ai={scheme:"ws",domainHost:!0,parse:function(w,F){var D=w;return D.secure=vo(D),D.resourceName=(D.path||"/")+(D.query?"?"+D.query:""),D.path=void 0,D.query=void 0,D},serialize:function(w,F){if((w.port===(vo(w)?443:80)||w.port==="")&&(w.port=void 0),typeof w.secure=="boolean"&&(w.scheme=w.secure?"wss":"ws",w.secure=void 0),w.resourceName){var D=w.resourceName.split("?"),$=u(D,2),W=$[0],ee=$[1];w.path=W&&W!=="/"?W:void 0,w.query=ee,w.resourceName=void 0}return w.fragment=void 0,w}},So={scheme:"wss",domainHost:Ai.domainHost,parse:Ai.parse,serialize:Ai.serialize},eh={},th=!0,wo="[A-Za-z0-9\\-\\.\\_\\~"+(th?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Wt="[0-9A-Fa-f]",rh=r(r("%[EFef]"+Wt+"%"+Wt+Wt+"%"+Wt+Wt)+"|"+r("%[89A-Fa-f]"+Wt+"%"+Wt+Wt)+"|"+r("%"+Wt+Wt)),ih="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ah="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",nh=e(ah,'[\\"\\\\]'),sh="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",oh=new RegExp(wo,"g"),Xr=new RegExp(rh,"g"),lh=new RegExp(e("[^]",ih,"[\\.]",'[\\"]',nh),"g"),xo=new RegExp(e("[^]",wo,sh),"g"),dh=xo;function Fn(I){var w=je(I);return w.match(oh)?w:I}var Co={scheme:"mailto",parse:function(w,F){var D=w,$=D.to=D.path?D.path.split(","):[];if(D.path=void 0,D.query){for(var W=!1,ee={},le=D.query.split("&"),he=0,_e=le.length;he<_e;++he){var ne=le[he].split("=");switch(ne[0]){case"to":for(var Le=ne[1].split(","),Ve=0,Te=Le.length;Ve<Te;++Ve)$.push(Le[Ve]);break;case"subject":D.subject=Dt(ne[1],F);break;case"body":D.body=Dt(ne[1],F);break;default:W=!0,ee[Dt(ne[0],F)]=Dt(ne[1],F);break}}W&&(D.headers=ee)}D.query=void 0;for(var de=0,De=$.length;de<De;++de){var ge=$[de].split("@");if(ge[0]=Dt(ge[0]),F.unicodeSupport)ge[1]=Dt(ge[1],F).toLowerCase();else try{ge[1]=te.toASCII(Dt(ge[1],F).toLowerCase())}catch(Nr){D.error=D.error||"Email address's domain name can not be converted to ASCII via punycode: "+Nr}$[de]=ge.join("@")}return D},serialize:function(w,F){var D=w,$=n(w.to);if($){for(var W=0,ee=$.length;W<ee;++W){var le=String($[W]),he=le.lastIndexOf("@"),_e=le.slice(0,he).replace(Xr,Fn).replace(Xr,i).replace(lh,$e),ne=le.slice(he+1);try{ne=F.iri?te.toUnicode(ne):te.toASCII(Dt(ne,F).toLowerCase())}catch(de){D.error=D.error||"Email address's domain name can not be converted to "+(F.iri?"Unicode":"ASCII")+" via punycode: "+de}$[W]=_e+"@"+ne}D.path=$.join(",")}var Le=w.headers=w.headers||{};w.subject&&(Le.subject=w.subject),w.body&&(Le.body=w.body);var Ve=[];for(var Te in Le)Le[Te]!==eh[Te]&&Ve.push(Te.replace(Xr,Fn).replace(Xr,i).replace(xo,$e)+"="+Le[Te].replace(Xr,Fn).replace(Xr,i).replace(dh,$e));return Ve.length&&(D.query=Ve.join("&")),D}},uh=/^([^\:]+)\:(.*)/,Io={scheme:"urn",parse:function(w,F){var D=w.path&&w.path.match(uh),$=w;if(D){var W=F.scheme||$.scheme||"urn",ee=D[1].toLowerCase(),le=D[2],he=W+":"+(F.nid||ee),_e=xe[he];$.nid=ee,$.nss=le,$.path=void 0,_e&&($=_e.parse($,F))}else $.error=$.error||"URN can not be parsed.";return $},serialize:function(w,F){var D=F.scheme||w.scheme||"urn",$=w.nid,W=D+":"+(F.nid||$),ee=xe[W];ee&&(w=ee.serialize(w,F));var le=w,he=w.nss;return le.path=($||F.nid)+":"+he,le}},ch=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Fo={scheme:"urn:uuid",parse:function(w,F){var D=w;return D.uuid=D.nss,D.nss=void 0,!F.tolerant&&(!D.uuid||!D.uuid.match(ch))&&(D.error=D.error||"UUID is not valid."),D},serialize:function(w,F){var D=w;return D.nss=(w.uuid||"").toLowerCase(),D}};xe[Oi.scheme]=Oi,xe[bo.scheme]=bo,xe[Ai.scheme]=Ai,xe[So.scheme]=So,xe[Co.scheme]=Co,xe[Io.scheme]=Io,xe[Fo.scheme]=Fo,t.SCHEMES=xe,t.pctEncChar=$e,t.pctDecChars=je,t.parse=ce,t.removeDotSegments=xt,t.serialize=it,t.resolveComponents=et,t.resolve=Vt,t.normalize=pt,t.equal=aa,t.escapeComponent=In,t.unescapeComponent=Dt,Object.defineProperty(t,"__esModule",{value:!0})})});var va=J((Vx,Jo)=>{"use strict";Jo.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var a,i,n;if(Array.isArray(e)){if(a=e.length,a!=r.length)return!1;for(i=a;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(n=Object.keys(e),a=n.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=a;i--!==0;){var s=n[i];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}});var Yo=J((Wx,Ko)=>{"use strict";Ko.exports=function(e){for(var r=0,a=e.length,i=0,n;i<a;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<a&&(n=e.charCodeAt(i),(n&64512)==56320&&i++);return r}});var kr=J((zx,tl)=>{"use strict";tl.exports={copy:Nh,checkDataType:$n,checkDataTypes:$h,coerceToTypes:Bh,toHash:Mn,getProperty:qn,escapeQuotes:Rn,equal:va(),ucs2length:Yo(),varOccurences:Rh,varReplace:kh,schemaHasRules:jh,schemaHasRulesExcept:_h,schemaUnknownRules:Vh,toQuotedString:Bn,getPathExpr:Wh,getPath:zh,getData:Hh,unescapeFragment:Qh,unescapeJsonPointer:jn,escapeFragment:Zh,escapeJsonPointer:kn};function Nh(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function $n(t,e,r,a){var i=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(t){case"null":return e+i+"null";case"array":return s+"Array.isArray("+e+")";case"object":return"("+s+e+n+"typeof "+e+i+'"object"'+n+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+i+'"number"'+n+o+"("+e+" % 1)"+n+e+i+e+(r?n+s+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+i+'"'+t+'"'+(r?n+s+"isFinite("+e+")":"")+")";default:return"typeof "+e+i+'"'+t+'"'}}function $h(t,e,r){switch(t.length){case 1:return $n(t[0],e,r,!0);default:var a="",i=Mn(t);i.array&&i.object&&(a=i.null?"(":"(!"+e+" || ",a+="typeof "+e+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var n in i)a+=(a?" && ":"")+$n(n,e,r,!0);return a}}var Xo=Mn(["string","number","integer","boolean","null"]);function Bh(t,e){if(Array.isArray(e)){for(var r=[],a=0;a<e.length;a++){var i=e[a];(Xo[i]||t==="array"&&i==="array")&&(r[r.length]=i)}if(r.length)return r}else{if(Xo[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Mn(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var Mh=/^[a-z$_][a-z$_0-9]*$/i,qh=/'|\\/g;function qn(t){return typeof t=="number"?"["+t+"]":Mh.test(t)?"."+t:"['"+Rn(t)+"']"}function Rn(t){return t.replace(qh,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Rh(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function kh(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function jh(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function _h(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var a in t)if(a!=r&&e[a])return!0}function Vh(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function Bn(t){return"'"+Rn(t)+"'"}function Wh(t,e,r,a){var i=r?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return el(t,i)}function zh(t,e,r){var a=Bn(r?"/"+kn(e):qn(e));return el(t,a)}var Uh=/^\/(?:[^~]|~0|~1)*$/,Gh=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Hh(t,e,r){var a,i,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!Uh.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,n="rootData"}else{if(s=t.match(Gh),!s)throw new Error("Invalid JSON-pointer: "+t);if(a=+s[1],i=s[2],i=="#"){if(a>=e)throw new Error("Cannot access property/index "+a+" levels up, current level is "+e);return r[e-a]}if(a>e)throw new Error("Cannot access data "+a+" levels up, current level is "+e);if(n="data"+(e-a||""),!i)return n}for(var o=n,l=i.split("/"),d=0;d<l.length;d++){var u=l[d];u&&(n+=qn(jn(u)),o+=" && "+n)}return o}function el(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function Qh(t){return jn(decodeURIComponent(t))}function Zh(t){return encodeURIComponent(kn(t))}function kn(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function jn(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var _n=J((Ux,rl)=>{"use strict";var Jh=kr();rl.exports=Kh;function Kh(t){Jh.copy(t,this)}});var al=J((Gx,il)=>{"use strict";var pr=il.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var a=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Sa(e,a,i,t,"",t)};pr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};pr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};pr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};pr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Sa(t,e,r,a,i,n,s,o,l,d){if(a&&typeof a=="object"&&!Array.isArray(a)){e(a,i,n,s,o,l,d);for(var u in a){var c=a[u];if(Array.isArray(c)){if(u in pr.arrayKeywords)for(var h=0;h<c.length;h++)Sa(t,e,r,c[h],i+"/"+u+"/"+h,n,i,u,a,h)}else if(u in pr.propsKeywords){if(c&&typeof c=="object")for(var p in c)Sa(t,e,r,c[p],i+"/"+u+"/"+Yh(p),n,i,u,a,p)}else(u in pr.keywords||t.allKeys&&!(u in pr.skipKeywords))&&Sa(t,e,r,c,i+"/"+u,n,i,u,a)}r(a,i,n,s,o,l,d)}}function Yh(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ta=J((Hx,ll)=>{"use strict";var Mi=Zo(),nl=va(),Ia=kr(),wa=_n(),Xh=al();ll.exports=fr;fr.normalizeId=hr;fr.fullPath=xa;fr.url=Ca;fr.ids=nf;fr.inlineRef=Vn;fr.schema=Fa;function fr(t,e,r){var a=this._refs[r];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return fr.call(this,t,e,a);if(a=a||this._schemas[r],a instanceof wa)return Vn(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var i=Fa.call(this,e,r),n,s,o;return i&&(n=i.schema,e=i.root,o=i.baseId),n instanceof wa?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=Vn(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function Fa(t,e){var r=Mi.parse(e),a=ol(r),i=xa(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==i){var n=hr(a),s=this._refs[n];if(typeof s=="string")return ef.call(this,t,s,r);if(s instanceof wa)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof wa){if(s.validate||this._compile(s),n==hr(e))return{schema:s,root:t,baseId:i};t=s}else return;if(!t.schema)return;i=xa(this._getId(t.schema))}return sl.call(this,r,i,t.schema,t)}function ef(t,e,r){var a=Fa.call(this,t,e);if(a){var i=a.schema,n=a.baseId;t=a.root;var s=this._getId(i);return s&&(n=Ca(n,s)),sl.call(this,r,n,i,t)}}var tf=Ia.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function sl(t,e,r,a){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var i=t.fragment.split("/"),n=1;n<i.length;n++){var s=i[n];if(s){if(s=Ia.unescapeFragment(s),r=r[s],r===void 0)break;var o;if(!tf[s]&&(o=this._getId(r),o&&(e=Ca(e,o)),r.$ref)){var l=Ca(e,r.$ref),d=Fa.call(this,a,l);d&&(r=d.schema,a=d.root,e=d.baseId)}}}if(r!==void 0&&r!==a.schema)return{schema:r,root:a,baseId:e}}}var rf=Ia.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Vn(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Wn(t);if(e)return zn(t)<=e}function Wn(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!Wn(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!Wn(e)))return!1;return!0}function zn(t){var e=0,r;if(Array.isArray(t)){for(var a=0;a<t.length;a++)if(r=t[a],typeof r=="object"&&(e+=zn(r)),e==1/0)return 1/0}else for(var i in t){if(i=="$ref")return 1/0;if(rf[i])e++;else if(r=t[i],typeof r=="object"&&(e+=zn(r)+1),e==1/0)return 1/0}return e}function xa(t,e){e!==!1&&(t=hr(t));var r=Mi.parse(t);return ol(r)}function ol(t){return Mi.serialize(t).split("#")[0]+"#"}var af=/#\/?$/;function hr(t){return t?t.replace(af,""):""}function Ca(t,e){return e=hr(e),Mi.resolve(t,e)}function nf(t){var e=hr(this._getId(t)),r={"":e},a={"":xa(e,!1)},i={},n=this;return Xh(t,{allKeys:!0},function(s,o,l,d,u,c,h){if(o!==""){var p=n._getId(s),f=r[d],m=a[d]+"/"+u;if(h!==void 0&&(m+="/"+(typeof h=="number"?h:Ia.escapeFragment(h))),typeof p=="string"){p=f=hr(f?Mi.resolve(f,p):p);var y=n._refs[p];if(typeof y=="string"&&(y=n._refs[y]),y&&y.schema){if(!nl(s,y.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=hr(m))if(p[0]=="#"){if(i[p]&&!nl(s,i[p]))throw new Error('id "'+p+'" resolves to more than one schema');i[p]=s}else n._refs[p]=m}r[o]=f,a[o]=m}}),i}});var Pa=J((Qx,ul)=>{"use strict";var Un=Ta();ul.exports={Validation:dl(sf),MissingRef:dl(Gn)};function sf(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}Gn.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function Gn(t,e,r){this.message=r||Gn.message(t,e),this.missingRef=Un.url(t,e),this.missingSchema=Un.normalizeId(Un.fullPath(this.missingRef))}function dl(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Hn=J((Zx,cl)=>{"use strict";cl.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,a=e.cmp&&function(n){return function(s){return function(o,l){var d={key:o,value:s[o]},u={key:l,value:s[l]};return n(d,u)}}}(e.cmp),i=[];return function n(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var o,l;if(Array.isArray(s)){for(l="[",o=0;o<s.length;o++)o&&(l+=","),l+=n(s[o])||"null";return l+"]"}if(s===null)return"null";if(i.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var d=i.push(s)-1,u=Object.keys(s).sort(a&&a(s));for(l="",o=0;o<u.length;o++){var c=u[o],h=n(s[c]);h&&(l&&(l+=","),l+=JSON.stringify(c)+":"+h)}return i.splice(d,1),"{"+l+"}"}}(t)}});var Qn=J((Jx,pl)=>{"use strict";pl.exports=function(e,r,a){var i="",n=e.schema.$async===!0,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var d="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(d);else throw new Error(d)}}if(e.isTop&&(i+=" var validate = ",n&&(e.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(i+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(s||e.schema.$ref)){var r="false schema",u=e.level,c=e.dataLevel,h=e.schema[r],p=e.schemaPath+e.util.getProperty(r),f=e.errSchemaPath+"/"+r,T=!e.opts.allErrors,L,m="data"+(c||""),C="valid"+u;if(e.schema===!1){e.isTop?T=!0:i+=" var "+C+" = false; ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&T?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+C+" = true; ";return e.isTop&&(i+=" }; return validate; "),i}if(e.isTop){var v=e.isTop,u=e.level=0,c=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var S="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,c=e.dataLevel,m="data"+(c||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");i+=" var errs_"+u+" = errors;"}var C="valid"+u,T=!e.opts.allErrors,A="",q="",L,P=e.schema.type,N=Array.isArray(P);if(P&&e.opts.nullable&&e.schema.nullable===!0&&(N?P.indexOf("null")==-1&&(P=P.concat("null")):P!="null"&&(P=[P,"null"],N=!0)),N&&P.length==1&&(P=P[0],N=!1),e.schema.$ref&&s){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(s=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(i+=" "+e.RULES.all.$comment.code(e,"$comment")),P){if(e.opts.coerceTypes)var B=e.util.coerceToTypes(e.opts.coerceTypes,P);var R=e.RULES.types[P];if(B||N||R===!0||R&&!Je(R)){var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",p=e.schemaPath+".type",f=e.errSchemaPath+"/type",M=N?"checkDataTypes":"checkDataType";if(i+=" if ("+e.util[M](P,m,e.opts.strictNumbers,!0)+") { ",B){var E="dataType"+u,k="coerced"+u;i+=" var "+E+" = typeof "+m+"; var "+k+" = undefined; ",e.opts.coerceTypes=="array"&&(i+=" if ("+E+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+E+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+k+" = "+m+"; } "),i+=" if ("+k+" !== undefined) ; ";var V=B;if(V)for(var Q,Z=-1,G=V.length-1;Z<G;)Q=V[Z+=1],Q=="string"?i+=" else if ("+E+" == 'number' || "+E+" == 'boolean') "+k+" = '' + "+m+"; else if ("+m+" === null) "+k+" = ''; ":Q=="number"||Q=="integer"?(i+=" else if ("+E+" == 'boolean' || "+m+" === null || ("+E+" == 'string' && "+m+" && "+m+" == +"+m+" ",Q=="integer"&&(i+=" && !("+m+" % 1)"),i+=")) "+k+" = +"+m+"; "):Q=="boolean"?i+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+k+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+k+" = true; ":Q=="null"?i+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+k+" = null; ":e.opts.coerceTypes=="array"&&Q=="array"&&(i+=" else if ("+E+" == 'string' || "+E+" == 'number' || "+E+" == 'boolean' || "+m+" == null) "+k+" = ["+m+"]; ");i+=" else { ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",N?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",N?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&T?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+k+" !== undefined) { ";var z=c?"data"+(c-1||""):"parentData",ie=c?e.dataPathArr[c]:"parentDataProperty";i+=" "+m+" = "+k+"; ",c||(i+="if ("+z+" !== undefined)"),i+=" "+z+"["+ie+"] = "+k+"; } "}else{var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",N?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",N?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&T?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(e.schema.$ref&&!s)i+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",T&&(i+=" } if (errors === ",v?i+="0":i+="errs_"+u,i+=") { ",q+="}");else{var Ae=e.RULES;if(Ae){for(var R,Ee=-1,te=Ae.length-1;Ee<te;)if(R=Ae[Ee+=1],Je(R)){if(R.type&&(i+=" if ("+e.util.checkDataType(R.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(R.type=="object"&&e.schema.properties){var h=e.schema.properties,xe=Object.keys(h),$e=xe;if($e)for(var je,ct=-1,rt=$e.length-1;ct<rt;){je=$e[ct+=1];var Ce=h[je];if(Ce.default!==void 0){var Fe=m+e.util.getProperty(je);if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+Fe;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+Fe+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+Fe+" === null || "+Fe+" === '' "),i+=" ) "+Fe+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Ce.default)+" ":i+=" "+JSON.stringify(Ce.default)+" ",i+="; "}}}else if(R.type=="array"&&Array.isArray(e.schema.items)){var Er=e.schema.items;if(Er){for(var Ce,Z=-1,Ke=Er.length-1;Z<Ke;)if(Ce=Er[Z+=1],Ce.default!==void 0){var Fe=m+"["+Z+"]";if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+Fe;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+Fe+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+Fe+" === null || "+Fe+" === '' "),i+=" ) "+Fe+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Ce.default)+" ":i+=" "+JSON.stringify(Ce.default)+" ",i+="; "}}}}var ce=R.rules;if(ce){for(var lr,Ht=-1,Lr=ce.length-1;Ht<Lr;)if(lr=ce[Ht+=1],xt(lr)){var Dr=lr.code(e,lr.keyword,R.type);Dr&&(i+=" "+Dr+" ",T&&(A+="}"))}}if(T&&(i+=" "+A+" ",A=""),R.type&&(i+=" } ",P&&P===R.type&&!B)){i+=" else { ";var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",N?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",N?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&T?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}T&&(i+=" if (errors === ",v?i+="0":i+="errs_"+u,i+=") { ",q+="}")}}}T&&(i+=" "+q+" "),v?(n?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+C+" = errors === errs_"+u+";";function Je(et){for(var Vt=et.rules,pt=0;pt<Vt.length;pt++)if(xt(Vt[pt]))return!0}function xt(et){return e.schema[et.keyword]!==void 0||et.implements&&it(et)}function it(et){for(var Vt=et.implements,pt=0;pt<Vt.length;pt++)if(e.schema[Vt[pt]]!==void 0)return!0}return i}});var gl=J((Kx,yl)=>{"use strict";var Oa=Ta(),Ea=kr(),fl=Pa(),of=Hn(),hl=Qn(),lf=Ea.ucs2length,df=va(),uf=fl.Validation;yl.exports=Zn;function Zn(t,e,r,a){var i=this,n=this._opts,s=[void 0],o={},l=[],d={},u=[],c={},h=[];e=e||{schema:t,refVal:s,refs:o};var p=cf.call(this,t,e,a),f=this._compilations[p.index];if(p.compiling)return f.callValidate=S;var m=this._formats,y=this.RULES;try{var b=C(t,e,r,a);f.validate=b;var v=f.callValidate;return v&&(v.schema=b.schema,v.errors=null,v.refs=b.refs,v.refVal=b.refVal,v.root=b.root,v.$async=b.$async,n.sourceCode&&(v.source=b.source)),b}finally{pf.call(this,t,e,a)}function S(){var M=f.validate,E=M.apply(this,arguments);return S.errors=M.errors,E}function C(M,E,k,V){var Q=!E||E&&E.schema==M;if(E.schema!=e.schema)return Zn.call(i,M,E,k,V);var Z=M.$async===!0,G=hl({isTop:!0,schema:M,isRoot:Q,baseId:V,root:E,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:fl.MissingRef,RULES:y,validate:hl,util:Ea,resolve:Oa,resolveRef:T,usePattern:N,useDefault:B,useCustomRule:R,opts:n,formats:m,logger:i.logger,self:i});G=Aa(s,mf)+Aa(l,hf)+Aa(u,ff)+Aa(h,yf)+G,n.processCode&&(G=n.processCode(G,M));var z;try{var ie=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",G);z=ie(i,y,m,e,s,u,h,df,lf,uf),s[0]=z}catch(Ae){throw i.logger.error("Error compiling schema, function code:",G),Ae}return z.schema=M,z.errors=null,z.refs=o,z.refVal=s,z.root=Q?z:E,Z&&(z.$async=!0),n.sourceCode===!0&&(z.source={code:G,patterns:l,defaults:u}),z}function T(M,E,k){E=Oa.url(M,E);var V=o[E],Q,Z;if(V!==void 0)return Q=s[V],Z="refVal["+V+"]",P(Q,Z);if(!k&&e.refs){var G=e.refs[E];if(G!==void 0)return Q=e.refVal[G],Z=A(E,Q),P(Q,Z)}Z=A(E);var z=Oa.call(i,C,e,E);if(z===void 0){var ie=r&&r[E];ie&&(z=Oa.inlineRef(ie,n.inlineRefs)?ie:Zn.call(i,ie,e,r,M))}if(z===void 0)q(E);else return L(E,z),P(z,Z)}function A(M,E){var k=s.length;return s[k]=E,o[M]=k,"refVal"+k}function q(M){delete o[M]}function L(M,E){var k=o[M];s[k]=E}function P(M,E){return typeof M=="object"||typeof M=="boolean"?{code:E,schema:M,inline:!0}:{code:E,$async:M&&!!M.$async}}function N(M){var E=d[M];return E===void 0&&(E=d[M]=l.length,l[E]=M),"pattern"+E}function B(M){switch(typeof M){case"boolean":case"number":return""+M;case"string":return Ea.toQuotedString(M);case"object":if(M===null)return"null";var E=of(M),k=c[E];return k===void 0&&(k=c[E]=u.length,u[k]=M),"default"+k}}function R(M,E,k,V){if(i._opts.validateSchema!==!1){var Q=M.definition.dependencies;if(Q&&!Q.every(function($e){return Object.prototype.hasOwnProperty.call(k,$e)}))throw new Error("parent schema must have all required keywords: "+Q.join(","));var Z=M.definition.validateSchema;if(Z){var G=Z(E);if(!G){var z="keyword schema is invalid: "+i.errorsText(Z.errors);if(i._opts.validateSchema=="log")i.logger.error(z);else throw new Error(z)}}}var ie=M.definition.compile,Ae=M.definition.inline,Ee=M.definition.macro,te;if(ie)te=ie.call(i,E,k,V);else if(Ee)te=Ee.call(i,E,k,V),n.validateSchema!==!1&&i.validateSchema(te,!0);else if(Ae)te=Ae.call(i,V,M.keyword,E,k);else if(te=M.definition.validate,!te)return;if(te===void 0)throw new Error('custom keyword "'+M.keyword+'"failed to compile');var xe=h.length;return h[xe]=te,{code:"customRule"+xe,validate:te}}}function cf(t,e,r){var a=ml.call(this,t,e,r);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:t,root:e,baseId:r},{index:a,compiling:!1})}function pf(t,e,r){var a=ml.call(this,t,e,r);a>=0&&this._compilations.splice(a,1)}function ml(t,e,r){for(var a=0;a<this._compilations.length;a++){var i=this._compilations[a];if(i.schema==t&&i.root==e&&i.baseId==r)return a}return-1}function hf(t,e){return"var pattern"+t+" = new RegExp("+Ea.toQuotedString(e[t])+");"}function ff(t){return"var default"+t+" = defaults["+t+"];"}function mf(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function yf(t){return"var customRule"+t+" = customRules["+t+"];"}function Aa(t,e){if(!t.length)return"";for(var r="",a=0;a<t.length;a++)r+=e(a,t);return r}});var vl=J((Yx,bl)=>{"use strict";var La=bl.exports=function(){this._cache={}};La.prototype.put=function(e,r){this._cache[e]=r};La.prototype.get=function(e){return this._cache[e]};La.prototype.del=function(e){delete this._cache[e]};La.prototype.clear=function(){this._cache={}}});var Ll=J((Xx,El)=>{"use strict";var gf=kr(),bf=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,vf=[0,31,28,31,30,31,30,31,31,30,31,30,31],Sf=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Sl=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,wf=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,xf=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,wl=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,xl=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Cl=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Il=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Fl=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Tl=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;El.exports=Da;function Da(t){return t=t=="full"?"full":"fast",gf.copy(Da[t])}Da.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":wl,url:xl,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Sl,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Al,uuid:Cl,"json-pointer":Il,"json-pointer-uri-fragment":Fl,"relative-json-pointer":Tl};Da.full={date:Pl,time:Ol,"date-time":Ff,uri:Pf,"uri-reference":xf,"uri-template":wl,url:xl,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Sl,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Al,uuid:Cl,"json-pointer":Il,"json-pointer-uri-fragment":Fl,"relative-json-pointer":Tl};function Cf(t){return t%4===0&&(t%100!==0||t%400===0)}function Pl(t){var e=t.match(bf);if(!e)return!1;var r=+e[1],a=+e[2],i=+e[3];return a>=1&&a<=12&&i>=1&&i<=(a==2&&Cf(r)?29:vf[a])}function Ol(t,e){var r=t.match(Sf);if(!r)return!1;var a=r[1],i=r[2],n=r[3],s=r[5];return(a<=23&&i<=59&&n<=59||a==23&&i==59&&n==60)&&(!e||s)}var If=/t|\s/i;function Ff(t){var e=t.split(If);return e.length==2&&Pl(e[0])&&Ol(e[1],!0)}var Tf=/\/|:/;function Pf(t){return Tf.test(t)&&wf.test(t)}var Of=/[^\\]\\Z/;function Al(t){if(Of.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Nl=J((eC,Dl)=>{"use strict";Dl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.errSchemaPath+"/"+r,d=!e.opts.allErrors,u="data"+(s||""),c="valid"+n,h,p;if(o=="#"||o=="#/")e.isRoot?(h=e.async,p="validate"):(h=e.root.schema.$async===!0,p="root.refVal[0]");else{var f=e.resolveRef(e.baseId,o,e.isRoot);if(f===void 0){var m=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(m);var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&d?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(i+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),d&&(i+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,m)}else if(f.inline){var v=e.util.copy(e);v.level++;var S="valid"+v.level;v.schema=f.schema,v.schemaPath="",v.errSchemaPath=o;var C=e.validate(v).replace(/validate\.schema/g,f.code);i+=" "+C+" ",d&&(i+=" if ("+S+") { ")}else h=f.$async===!0||e.async&&f.$async!==!1,p=f.code}if(p){var y=y||[];y.push(i),i="",e.opts.passContext?i+=" "+p+".call(this, ":i+=" "+p+"( ",i+=" "+u+", (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var T=s?"data"+(s-1||""):"parentData",A=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+T+" , "+A+", rootData) ";var q=i;if(i=y.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(i+=" var "+c+"; "),i+=" try { await "+q+"; ",d&&(i+=" "+c+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",d&&(i+=" "+c+" = false; "),i+=" } ",d&&(i+=" if ("+c+") { ")}else i+=" if (!"+q+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",d&&(i+=" else { ")}return i}});var Bl=J((tC,$l)=>{"use strict";$l.exports=function(e,r,a){var i=" ",n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),o=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,d=e.util.copy(e),u="";d.level++;var c="valid"+d.level,h=d.baseId,p=!0,f=n;if(f)for(var m,y=-1,b=f.length-1;y<b;)m=f[y+=1],(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(p=!1,d.schema=m,d.schemaPath=s+"["+y+"]",d.errSchemaPath=o+"/"+y,i+=" "+e.validate(d)+" ",d.baseId=h,l&&(i+=" if ("+c+") { ",u+="}"));return l&&(p?i+=" if (true) { ":i+=" "+u.slice(0,-1)+" "),i}});var ql=J((rC,Ml)=>{"use strict";Ml.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b=o.every(function(L){return e.opts.strictKeywords?typeof L=="object"&&Object.keys(L).length>0||L===!1:e.util.schemaHasRules(L,e.RULES.all)});if(b){var v=f.baseId;i+=" var "+p+" = errors; var "+h+" = false; ";var S=e.compositeRule;e.compositeRule=f.compositeRule=!0;var C=o;if(C)for(var T,A=-1,q=C.length-1;A<q;)T=C[A+=1],f.schema=T,f.schemaPath=l+"["+A+"]",f.errSchemaPath=d+"/"+A,i+=" "+e.validate(f)+" ",f.baseId=v,i+=" "+h+" = "+h+" || "+y+"; if (!"+h+") { ",m+="}";e.compositeRule=f.compositeRule=S,i+=" "+m+" if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else u&&(i+=" if (true) { ");return i}});var kl=J((iC,Rl)=>{"use strict";Rl.exports=function(e,r,a){var i=" ",n=e.schema[r],s=e.errSchemaPath+"/"+r,o=!e.opts.allErrors,l=e.util.toQuotedString(n);return e.opts.$comment===!0?i+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(i+=" self._opts.$comment("+l+", "+e.util.toQuotedString(s)+", validate.root.schema);"),i}});var _l=J((aC,jl)=>{"use strict";jl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o,p||(i+=" var schema"+n+" = validate.schema"+l+";"),i+="var "+h+" = equal("+c+", schema"+n+"); if (!"+h+") { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var y=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",u&&(i+=" else { "),i}});var Wl=J((nC,Vl)=>{"use strict";Vl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b="i"+n,v=f.dataLevel=e.dataLevel+1,S="data"+v,C=e.baseId,T=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(i+="var "+p+" = errors;var "+h+";",T){var A=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" var "+y+" = false; for (var "+b+" = 0; "+b+" < "+c+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var q=c+"["+b+"]";f.dataPathArr[v]=b;var L=e.validate(f);f.baseId=C,e.util.varOccurences(L,S)<2?i+=" "+e.util.varReplace(L,S,q)+" ":i+=" var "+S+" = "+q+"; "+L+" ",i+=" if ("+y+") break; } ",e.compositeRule=f.compositeRule=A,i+=" "+m+" if (!"+y+") {"}else i+=" if ("+c+".length == 0) {";var P=P||[];P.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var N=i;return i=P.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+N+"]); ":i+=" validate.errors = ["+N+"]; return false; ":i+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",T&&(i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(i+=" } "),i}});var Ul=J((sC,zl)=>{"use strict";zl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level,y={},b={},v=e.opts.ownProperties;for(A in o)if(A!="__proto__"){var S=o[A],C=Array.isArray(S)?b:y;C[A]=S}i+="var "+h+" = errors;";var T=e.errorPath;i+="var missing"+n+";";for(var A in b)if(C=b[A],C.length){if(i+=" if ( "+c+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "),u){i+=" && ( ";var q=C;if(q)for(var L,P=-1,N=q.length-1;P<N;){L=q[P+=1],P&&(i+=" || ");var B=e.util.getProperty(L),R=c+B;i+=" ( ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(L)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?L:B)+") ) "}i+=")) { ";var M="missing"+n,E="' + "+M+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(T,M,!0):T+" + "+M);var k=k||[];k.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+E+"', depsCount: "+C.length+", deps: '"+e.util.escapeQuotes(C.length==1?C[0]:C.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",C.length==1?i+="property "+e.util.escapeQuotes(C[0]):i+="properties "+e.util.escapeQuotes(C.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var V=i;i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var Q=C;if(Q)for(var L,Z=-1,G=Q.length-1;Z<G;){L=Q[Z+=1];var B=e.util.getProperty(L),E=e.util.escapeQuotes(L),R=c+B;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(T,L,e.opts.jsonPointers)),i+=" if ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(L)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+E+"', depsCount: "+C.length+", deps: '"+e.util.escapeQuotes(C.length==1?C[0]:C.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",C.length==1?i+="property "+e.util.escapeQuotes(C[0]):i+="properties "+e.util.escapeQuotes(C.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",u&&(f+="}",i+=" else { ")}e.errorPath=T;var z=p.baseId;for(var A in y){var S=y[A];(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))&&(i+=" "+m+" = true; if ( "+c+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "),i+=") { ",p.schema=S,p.schemaPath=l+e.util.getProperty(A),p.errSchemaPath=d+"/"+e.util.escapeFragment(A),i+=" "+e.validate(p)+" ",p.baseId=z,i+=" } ",u&&(i+=" if ("+m+") { ",f+="}"))}return u&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var Hl=J((oC,Gl)=>{"use strict";Gl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o;var m="i"+n,y="schema"+n;p||(i+=" var "+y+" = validate.schema"+l+";"),i+="var "+h+";",p&&(i+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),i+=""+h+" = false;for (var "+m+"=0; "+m+"<"+y+".length; "+m+"++) if (equal("+c+", "+y+"["+m+"])) { "+h+" = true; break; }",p&&(i+=" } "),i+=" if (!"+h+") { ";var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var v=i;return i=b.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",u&&(i+=" else { "),i}});var Zl=J((lC,Ql)=>{"use strict";Ql.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||"");if(e.opts.format===!1)return u&&(i+=" if (true) { "),i;var h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=e.opts.unknownFormats,m=Array.isArray(f);if(h){var y="format"+n,b="isObject"+n,v="formatType"+n;i+=" var "+y+" = formats["+p+"]; var "+b+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+v+" = "+b+" && "+y+".type || 'string'; if ("+b+") { ",e.async&&(i+=" var async"+n+" = "+y+".async; "),i+=" "+y+" = "+y+".validate; } if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" (",f!="ignore"&&(i+=" ("+p+" && !"+y+" ",m&&(i+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),i+=") || "),i+=" ("+y+" && "+v+" == '"+a+"' && !(typeof "+y+" == 'function' ? ",e.async?i+=" (async"+n+" ? await "+y+"("+c+") : "+y+"("+c+")) ":i+=" "+y+"("+c+") ",i+=" : "+y+".test("+c+"))))) {"}else{var y=e.formats[o];if(!y){if(f=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(i+=" if (true) { "),i;if(m&&f.indexOf(o)>=0)return u&&(i+=" if (true) { "),i;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var b=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,v=b&&y.type||"string";if(b){var S=y.async===!0;y=y.validate}if(v!=a)return u&&(i+=" if (true) { "),i;if(S){if(!e.async)throw new Error("async format in sync schema");var C="formats"+e.util.getProperty(o)+".validate";i+=" if (!(await "+C+"("+c+"))) { "}else{i+=" if (! ";var C="formats"+e.util.getProperty(o);b&&(C+=".validate"),typeof y=="function"?i+=" "+C+"("+c+") ":i+=" "+C+".test("+c+") ",i+=") { "}}var T=T||[];T.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",h?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match format "`,h?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var A=i;return i=T.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}});var Kl=J((dC,Jl)=>{"use strict";Jl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e);f.level++;var m="valid"+f.level,y=e.schema.then,b=e.schema.else,v=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),S=b!==void 0&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all)),C=f.baseId;if(v||S){var T;f.createErrors=!1,f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" var "+p+" = errors; var "+h+" = true; ";var A=e.compositeRule;e.compositeRule=f.compositeRule=!0,i+=" "+e.validate(f)+" ",f.baseId=C,f.createErrors=!0,i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=f.compositeRule=A,v?(i+=" if ("+m+") { ",f.schema=e.schema.then,f.schemaPath=e.schemaPath+".then",f.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(f)+" ",f.baseId=C,i+=" "+h+" = "+m+"; ",v&&S?(T="ifClause"+n,i+=" var "+T+" = 'then'; "):T="'then'",i+=" } ",S&&(i+=" else { ")):i+=" if (!"+m+") { ",S&&(f.schema=e.schema.else,f.schemaPath=e.schemaPath+".else",f.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(f)+" ",f.baseId=C,i+=" "+h+" = "+m+"; ",v&&S?(T="ifClause"+n,i+=" var "+T+" = 'else'; "):T="'else'",i+=" } "),i+=" if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+T+" } ",e.opts.messages!==!1&&(i+=` , message: 'should match "' + `+T+` + '" schema' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i}});var Xl=J((uC,Yl)=>{"use strict";Yl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b="i"+n,v=f.dataLevel=e.dataLevel+1,S="data"+v,C=e.baseId;if(i+="var "+p+" = errors;var "+h+";",Array.isArray(o)){var T=e.schema.additionalItems;if(T===!1){i+=" "+h+" = "+c+".length <= "+o.length+"; ";var A=d;d=e.errSchemaPath+"/additionalItems",i+=" if (!"+h+") { ";var q=q||[];q.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var L=i;i=q.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+L+"]); ":i+=" validate.errors = ["+L+"]; return false; ":i+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",d=A,u&&(m+="}",i+=" else { ")}var P=o;if(P){for(var N,B=-1,R=P.length-1;B<R;)if(N=P[B+=1],e.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:e.util.schemaHasRules(N,e.RULES.all)){i+=" "+y+" = true; if ("+c+".length > "+B+") { ";var M=c+"["+B+"]";f.schema=N,f.schemaPath=l+"["+B+"]",f.errSchemaPath=d+"/"+B,f.errorPath=e.util.getPathExpr(e.errorPath,B,e.opts.jsonPointers,!0),f.dataPathArr[v]=B;var E=e.validate(f);f.baseId=C,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,M)+" ":i+=" var "+S+" = "+M+"; "+E+" ",i+=" } ",u&&(i+=" if ("+y+") { ",m+="}")}}if(typeof T=="object"&&(e.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all))){f.schema=T,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+y+" = true; if ("+c+".length > "+o.length+") { for (var "+b+" = "+o.length+"; "+b+" < "+c+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var M=c+"["+b+"]";f.dataPathArr[v]=b;var E=e.validate(f);f.baseId=C,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,M)+" ":i+=" var "+S+" = "+M+"; "+E+" ",u&&(i+=" if (!"+y+") break; "),i+=" } } ",u&&(i+=" if ("+y+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" for (var "+b+" = 0; "+b+" < "+c+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var M=c+"["+b+"]";f.dataPathArr[v]=b;var E=e.validate(f);f.baseId=C,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,M)+" ":i+=" var "+S+" = "+M+"; "+E+" ",u&&(i+=" if (!"+y+") break; "),i+=" }"}return u&&(i+=" "+m+" if ("+p+" == errors) {"),i}});var Jn=J((cC,ed)=>{"use strict";ed.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,C,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=r=="maximum",m=f?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[m],b=e.opts.$data&&y&&y.$data,v=f?"<":">",S=f?">":"<",C=void 0;if(!(h||typeof o=="number"||o===void 0))throw new Error(r+" must be number");if(!(b||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(m+" must be number or boolean");if(b){var T=e.util.getData(y.$data,s,e.dataPathArr),A="exclusive"+n,q="exclType"+n,L="exclIsNumber"+n,P="op"+n,N="' + "+P+" + '";i+=" var schemaExcl"+n+" = "+T+"; ",T="schemaExcl"+n,i+=" var "+A+"; var "+q+" = typeof "+T+"; if ("+q+" != 'boolean' && "+q+" != 'undefined' && "+q+" != 'number') { ";var C=m,B=B||[];B.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(C||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var R=i;i=B.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+q+" == 'number' ? ( ("+A+" = "+p+" === undefined || "+T+" "+v+"= "+p+") ? "+c+" "+S+"= "+T+" : "+c+" "+S+" "+p+" ) : ( ("+A+" = "+T+" === true) ? "+c+" "+S+"= "+p+" : "+c+" "+S+" "+p+" ) || "+c+" !== "+c+") { var op"+n+" = "+A+" ? '"+v+"' : '"+v+"='; ",o===void 0&&(C=m,d=e.errSchemaPath+"/"+m,p=T,h=b)}else{var L=typeof y=="number",N=v;if(L&&h){var P="'"+N+"'";i+=" if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" ( "+p+" === undefined || "+y+" "+v+"= "+p+" ? "+c+" "+S+"= "+y+" : "+c+" "+S+" "+p+" ) || "+c+" !== "+c+") { "}else{L&&o===void 0?(A=!0,C=m,d=e.errSchemaPath+"/"+m,p=y,S+="="):(L&&(p=Math[f?"min":"max"](y,o)),y===(L?p:!0)?(A=!0,C=m,d=e.errSchemaPath+"/"+m,S+="="):(A=!1,N+="="));var P="'"+N+"'";i+=" if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+c+" "+S+" "+p+" || "+c+" !== "+c+") { "}}C=C||r;var B=B||[];B.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(C||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+P+", limit: "+p+", exclusive: "+A+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+N+" ",h?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var R=i;return i=B.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}});var Kn=J((pC,td)=>{"use strict";td.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxItems"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+c+".length "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxItems"?i+="more":i+="fewer",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var b=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var Yn=J((hC,rd)=>{"use strict";rd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxLength"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?i+=" "+c+".length ":i+=" ucs2length("+c+") ",i+=" "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be ",r=="maxLength"?i+="longer":i+="shorter",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var b=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var Xn=J((fC,id)=>{"use strict";id.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxProperties"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" Object.keys("+c+").length "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxProperties"?i+="more":i+="fewer",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var b=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var nd=J((mC,ad)=>{"use strict";ad.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");i+="var division"+n+";if (",h&&(i+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),i+=" (division"+n+" = "+c+" / "+p+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+n+" !== parseInt(division"+n+") ",i+=" ) ",h&&(i+=" ) "),i+=" ) { ";var f=f||[];f.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",h?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var m=i;return i=f.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var od=J((yC,sd)=>{"use strict";sd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="errs__"+n,p=e.util.copy(e);p.level++;var f="valid"+p.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d,i+=" var "+h+" = errors; ";var m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var y;p.opts.allErrors&&(y=p.opts.allErrors,p.opts.allErrors=!1),i+=" "+e.validate(p)+" ",p.createErrors=!0,y&&(p.opts.allErrors=y),e.compositeRule=p.compositeRule=m,i+=" if ("+f+") { ";var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var v=i;i=b.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ");return i}});var dd=J((gC,ld)=>{"use strict";ld.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b=f.baseId,v="prevValid"+n,S="passingSchemas"+n;i+="var "+p+" = errors , "+v+" = false , "+h+" = false , "+S+" = null; ";var C=e.compositeRule;e.compositeRule=f.compositeRule=!0;var T=o;if(T)for(var A,q=-1,L=T.length-1;q<L;)A=T[q+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(f.schema=A,f.schemaPath=l+"["+q+"]",f.errSchemaPath=d+"/"+q,i+=" "+e.validate(f)+" ",f.baseId=b):i+=" var "+y+" = true; ",q&&(i+=" if ("+y+" && "+v+") { "+h+" = false; "+S+" = ["+S+", "+q+"]; } else { ",m+="}"),i+=" if ("+y+") { "+h+" = "+v+" = true; "+S+" = "+q+"; }";return e.compositeRule=f.compositeRule=C,i+=""+m+"if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+S+" } ",e.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(i+=" } "),i}});var cd=J((bC,ud)=>{"use strict";ud.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=h?"(new RegExp("+p+"))":e.usePattern(o);i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" !"+f+".test("+c+") ) { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",h?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,h?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var y=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var hd=J((vC,pd)=>{"use strict";pd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level,y="key"+n,b="idx"+n,v=p.dataLevel=e.dataLevel+1,S="data"+v,C="dataProperties"+n,T=Object.keys(o||{}).filter(Z),A=e.schema.patternProperties||{},q=Object.keys(A).filter(Z),L=e.schema.additionalProperties,P=T.length||q.length,N=L===!1,B=typeof L=="object"&&Object.keys(L).length,R=e.opts.removeAdditional,M=N||B||R,E=e.opts.ownProperties,k=e.baseId,V=e.schema.required;if(V&&!(e.opts.$data&&V.$data)&&V.length<e.opts.loopRequired)var Q=e.util.toHash(V);function Z(Dt){return Dt!=="__proto__"}if(i+="var "+h+" = errors;var "+m+" = true;",E&&(i+=" var "+C+" = undefined;"),M){if(E?i+=" "+C+" = "+C+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+C+".length; "+b+"++) { var "+y+" = "+C+"["+b+"]; ":i+=" for (var "+y+" in "+c+") { ",P){if(i+=" var isAdditional"+n+" = !(false ",T.length)if(T.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var G=T;if(G)for(var z,ie=-1,Ae=G.length-1;ie<Ae;)z=G[ie+=1],i+=" || "+y+" == "+e.util.toQuotedString(z)+" "}if(q.length){var Ee=q;if(Ee)for(var te,xe=-1,$e=Ee.length-1;xe<$e;)te=Ee[xe+=1],i+=" || "+e.usePattern(te)+".test("+y+") "}i+=" ); if (isAdditional"+n+") { "}if(R=="all")i+=" delete "+c+"["+y+"]; ";else{var je=e.errorPath,ct="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),N)if(R)i+=" delete "+c+"["+y+"]; ";else{i+=" "+m+" = false; ";var rt=d;d=e.errSchemaPath+"/additionalProperties";var Ce=Ce||[];Ce.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+ct+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Fe=i;i=Ce.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Fe+"]); ":i+=" validate.errors = ["+Fe+"]; return false; ":i+=" var err = "+Fe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=rt,u&&(i+=" break; ")}else if(B)if(R=="failing"){i+=" var "+h+" = errors; ";var Er=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Ke=c+"["+y+"]";p.dataPathArr[v]=y;var ce=e.validate(p);p.baseId=k,e.util.varOccurences(ce,S)<2?i+=" "+e.util.varReplace(ce,S,Ke)+" ":i+=" var "+S+" = "+Ke+"; "+ce+" ",i+=" if (!"+m+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+y+"]; } ",e.compositeRule=p.compositeRule=Er}else{p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Ke=c+"["+y+"]";p.dataPathArr[v]=y;var ce=e.validate(p);p.baseId=k,e.util.varOccurences(ce,S)<2?i+=" "+e.util.varReplace(ce,S,Ke)+" ":i+=" var "+S+" = "+Ke+"; "+ce+" ",u&&(i+=" if (!"+m+") break; ")}e.errorPath=je}P&&(i+=" } "),i+=" } ",u&&(i+=" if ("+m+") { ",f+="}")}var lr=e.opts.useDefaults&&!e.compositeRule;if(T.length){var Ht=T;if(Ht)for(var z,Lr=-1,Dr=Ht.length-1;Lr<Dr;){z=Ht[Lr+=1];var Je=o[z];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){var xt=e.util.getProperty(z),Ke=c+xt,it=lr&&Je.default!==void 0;p.schema=Je,p.schemaPath=l+xt,p.errSchemaPath=d+"/"+e.util.escapeFragment(z),p.errorPath=e.util.getPath(e.errorPath,z,e.opts.jsonPointers),p.dataPathArr[v]=e.util.toQuotedString(z);var ce=e.validate(p);if(p.baseId=k,e.util.varOccurences(ce,S)<2){ce=e.util.varReplace(ce,S,Ke);var et=Ke}else{var et=S;i+=" var "+S+" = "+Ke+"; "}if(it)i+=" "+ce+" ";else{if(Q&&Q[z]){i+=" if ( "+et+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+m+" = false; ";var je=e.errorPath,rt=d,Vt=e.util.escapeQuotes(z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(je,z,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Ce=Ce||[];Ce.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+Vt+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+Vt+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Fe=i;i=Ce.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Fe+"]); ":i+=" validate.errors = ["+Fe+"]; return false; ":i+=" var err = "+Fe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=rt,e.errorPath=je,i+=" } else { "}else u?(i+=" if ( "+et+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+m+" = true; } else { "):(i+=" if ("+et+" !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=" ) { ");i+=" "+ce+" } "}}u&&(i+=" if ("+m+") { ",f+="}")}}if(q.length){var pt=q;if(pt)for(var te,aa=-1,In=pt.length-1;aa<In;){te=pt[aa+=1];var Je=A[te];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){p.schema=Je,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(te),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(te),E?i+=" "+C+" = "+C+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+C+".length; "+b+"++) { var "+y+" = "+C+"["+b+"]; ":i+=" for (var "+y+" in "+c+") { ",i+=" if ("+e.usePattern(te)+".test("+y+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Ke=c+"["+y+"]";p.dataPathArr[v]=y;var ce=e.validate(p);p.baseId=k,e.util.varOccurences(ce,S)<2?i+=" "+e.util.varReplace(ce,S,Ke)+" ":i+=" var "+S+" = "+Ke+"; "+ce+" ",u&&(i+=" if (!"+m+") break; "),i+=" } ",u&&(i+=" else "+m+" = true; "),i+=" } ",u&&(i+=" if ("+m+") { ",f+="}")}}}return u&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var md=J((SC,fd)=>{"use strict";fd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level;if(i+="var "+h+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d;var y="key"+n,b="idx"+n,v="i"+n,S="' + "+y+" + '",C=p.dataLevel=e.dataLevel+1,T="data"+C,A="dataProperties"+n,q=e.opts.ownProperties,L=e.baseId;q&&(i+=" var "+A+" = undefined; "),q?i+=" "+A+" = "+A+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+A+".length; "+b+"++) { var "+y+" = "+A+"["+b+"]; ":i+=" for (var "+y+" in "+c+") { ",i+=" var startErrs"+n+" = errors; ";var P=y,N=e.compositeRule;e.compositeRule=p.compositeRule=!0;var B=e.validate(p);p.baseId=L,e.util.varOccurences(B,T)<2?i+=" "+e.util.varReplace(B,T,P)+" ":i+=" var "+T+" = "+P+"; "+B+" ",e.compositeRule=p.compositeRule=N,i+=" if (!"+m+") { for (var "+v+"=startErrs"+n+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+S+"' } ",e.opts.messages!==!1&&(i+=" , message: 'property name \\'"+S+"\\' is invalid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),u&&(i+=" break; "),i+=" } }"}return u&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var gd=J((wC,yd)=>{"use strict";yd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o;var m="schema"+n;if(!p)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],b=o;if(b)for(var v,S=-1,C=b.length-1;S<C;){v=b[S+=1];var T=e.schema.properties[v];T&&(e.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all))||(y[y.length]=v)}}else var y=o;if(p||y.length){var A=e.errorPath,q=p||y.length>=e.opts.loopRequired,L=e.opts.ownProperties;if(u)if(i+=" var missing"+n+"; ",q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var P="i"+n,N="schema"+n+"["+P+"]",B="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,N,e.opts.jsonPointers)),i+=" var "+h+" = true; ",p&&(i+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),i+=" for (var "+P+" = 0; "+P+" < "+m+".length; "+P+"++) { "+h+" = "+c+"["+m+"["+P+"]] !== undefined ",L&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", "+m+"["+P+"]) "),i+="; if (!"+h+") break; } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+B+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+B+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var M=i;i=R.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+M+"]); ":i+=" validate.errors = ["+M+"]; return false; ":i+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var E=y;if(E)for(var k,P=-1,V=E.length-1;P<V;){k=E[P+=1],P&&(i+=" || ");var Q=e.util.getProperty(k),Z=c+Q;i+=" ( ( "+Z+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(k)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:Q)+") ) "}i+=") { ";var N="missing"+n,B="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,N,!0):A+" + "+N);var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+B+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+B+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var M=i;i=R.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+M+"]); ":i+=" validate.errors = ["+M+"]; return false; ":i+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var P="i"+n,N="schema"+n+"["+P+"]",B="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,N,e.opts.jsonPointers)),p&&(i+=" if ("+m+" && !Array.isArray("+m+")) { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+B+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+B+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+m+" !== undefined) { "),i+=" for (var "+P+" = 0; "+P+" < "+m+".length; "+P+"++) { if ("+c+"["+m+"["+P+"]] === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+m+"["+P+"]) "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+B+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+B+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(i+=" } ")}else{var G=y;if(G)for(var k,z=-1,ie=G.length-1;z<ie;){k=G[z+=1];var Q=e.util.getProperty(k),B=e.util.escapeQuotes(k),Z=c+Q;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,k,e.opts.jsonPointers)),i+=" if ( "+Z+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(k)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+B+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+B+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=A}else u&&(i+=" if (true) {");return i}});var vd=J((xC,bd)=>{"use strict";bd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;if(p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o,(o||p)&&e.opts.uniqueItems!==!1){p&&(i+=" var "+h+"; if ("+f+" === false || "+f+" === undefined) "+h+" = true; else if (typeof "+f+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+c+".length , "+h+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,y=Array.isArray(m);if(!m||m=="object"||m=="array"||y&&(m.indexOf("object")>=0||m.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+h+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var b="checkDataType"+(y?"s":"");i+=" if ("+e.util[b](m,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",p?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var S=i;i=v.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i}});var wd=J((CC,Sd)=>{"use strict";Sd.exports={$ref:Nl(),allOf:Bl(),anyOf:ql(),$comment:kl(),const:_l(),contains:Wl(),dependencies:Ul(),enum:Hl(),format:Zl(),if:Kl(),items:Xl(),maximum:Jn(),minimum:Jn(),maxItems:Kn(),minItems:Kn(),maxLength:Yn(),minLength:Yn(),maxProperties:Xn(),minProperties:Xn(),multipleOf:nd(),not:od(),oneOf:dd(),pattern:cd(),properties:hd(),propertyNames:md(),required:gd(),uniqueItems:vd(),validate:Qn()}});var Id=J((IC,Cd)=>{"use strict";var xd=wd(),es=kr().toHash;Cd.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return e.all=es(r),e.types=es(i),e.forEach(function(n){n.rules=n.rules.map(function(s){var o;if(typeof s=="object"){var l=Object.keys(s)[0];o=s[l],s=l,o.forEach(function(u){r.push(u),e.all[u]=!0})}r.push(s);var d=e.all[s]={keyword:s,code:xd[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:xd.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=es(r.concat(a)),e.custom={},e}});var Pd=J((FC,Td)=>{"use strict";var Fd=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Td.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var a=e[r].split("/"),i=t,n;for(n=1;n<a.length;n++)i=i[a[n]];for(n=0;n<Fd.length;n++){var s=Fd[n],o=i[s];o&&(i[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var Ed=J((TC,Ad)=>{"use strict";var Af=Pa().MissingRef;Ad.exports=Od;function Od(t,e,r){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var i=n(t).then(function(){var o=a._addSchema(t,void 0,e);return o.validate||s(o)});return r&&i.then(function(o){r(null,o)},r),i;function n(o){var l=o.$schema;return l&&!a.getSchema(l)?Od.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof Af)return l(d);throw d}function l(d){var u=d.missingSchema;if(p(u))throw new Error("Schema "+u+" is loaded but "+d.missingRef+" cannot be resolved");var c=a._loadingSchemas[u];return c||(c=a._loadingSchemas[u]=a._opts.loadSchema(u),c.then(h,h)),c.then(function(f){if(!p(u))return n(f).then(function(){p(u)||a.addSchema(f,u,void 0,e)})}).then(function(){return s(o)});function h(){delete a._loadingSchemas[u]}function p(f){return a._refs[f]||a._schemas[f]}}}}});var Dd=J((PC,Ld)=>{"use strict";Ld.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c,h="data"+(s||""),p="valid"+n,f="errs__"+n,m=e.opts.$data&&o&&o.$data,y;m?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",y="schema"+n):y=o;var b=this,v="definition"+n,S=b.definition,C="",T,A,q,L,P;if(m&&S.$data){P="keywordValidate"+n;var N=S.validateSchema;i+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+P+" = "+v+".validate;"}else{if(L=e.useCustomRule(b,o,e.schema,e),!L)return;y="validate.schema"+l,P=L.code,T=S.compile,A=S.inline,q=S.macro}var B=P+".errors",R="i"+n,M="ruleErr"+n,E=S.async;if(E&&!e.async)throw new Error("async keyword in sync schema");if(A||q||(i+=""+B+" = null;"),i+="var "+f+" = errors;var "+p+";",m&&S.$data&&(C+="}",i+=" if ("+y+" === undefined) { "+p+" = true; } else { ",N&&(C+="}",i+=" "+p+" = "+v+".validateSchema("+y+"); if ("+p+") { ")),A)S.statements?i+=" "+L.validate+" ":i+=" "+p+" = "+L.validate+"; ";else if(q){var k=e.util.copy(e),C="";k.level++;var V="valid"+k.level;k.schema=L.validate,k.schemaPath="";var Q=e.compositeRule;e.compositeRule=k.compositeRule=!0;var Z=e.validate(k).replace(/validate\.schema/g,P);e.compositeRule=k.compositeRule=Q,i+=" "+Z}else{var G=G||[];G.push(i),i="",i+=" "+P+".call( ",e.opts.passContext?i+="this":i+="self",T||S.schema===!1?i+=" , "+h+" ":i+=" , "+y+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var z=s?"data"+(s-1||""):"parentData",ie=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+z+" , "+ie+" , rootData ) ";var Ae=i;i=G.pop(),S.errors===!1?(i+=" "+p+" = ",E&&(i+="await "),i+=""+Ae+"; "):E?(B="customErrors"+n,i+=" var "+B+" = null; try { "+p+" = await "+Ae+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+B+" = e.errors; else throw e; } "):i+=" "+B+" = null; "+p+" = "+Ae+"; "}if(S.modifying&&(i+=" if ("+z+") "+h+" = "+z+"["+ie+"];"),i+=""+C,S.valid)u&&(i+=" if (true) { ");else{i+=" if ( ",S.valid===void 0?(i+=" !",q?i+=""+V:i+=""+p):i+=" "+!S.valid+" ",i+=") { ",c=b.keyword;var G=G||[];G.push(i),i="";var G=G||[];G.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+b.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+b.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var Ee=i;i=G.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Ee+"]); ":i+=" validate.errors = ["+Ee+"]; return false; ":i+=" var err = "+Ee+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var te=i;i=G.pop(),A?S.errors?S.errors!="full"&&(i+=" for (var "+R+"="+f+"; "+R+"<errors; "+R+"++) { var "+M+" = vErrors["+R+"]; if ("+M+".dataPath === undefined) "+M+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+M+".schemaPath === undefined) { "+M+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+M+".schema = "+y+"; "+M+".data = "+h+"; "),i+=" } "):S.errors===!1?i+=" "+te+" ":(i+=" if ("+f+" == errors) { "+te+" } else { for (var "+R+"="+f+"; "+R+"<errors; "+R+"++) { var "+M+" = vErrors["+R+"]; if ("+M+".dataPath === undefined) "+M+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+M+".schemaPath === undefined) { "+M+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+M+".schema = "+y+"; "+M+".data = "+h+"; "),i+=" } } "):q?(i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+b.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+b.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):S.errors===!1?i+=" "+te+" ":(i+=" if (Array.isArray("+B+")) { if (vErrors === null) vErrors = "+B+"; else vErrors = vErrors.concat("+B+"); errors = vErrors.length; for (var "+R+"="+f+"; "+R+"<errors; "+R+"++) { var "+M+" = vErrors["+R+"]; if ("+M+".dataPath === undefined) "+M+".dataPath = (dataPath || '') + "+e.errorPath+"; "+M+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(i+=" "+M+".schema = "+y+"; "+M+".data = "+h+"; "),i+=" } } else { "+te+" } "),i+=" } ",u&&(i+=" else { ")}return i}});var ts=J((OC,Ef)=>{Ef.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Bd=J((AC,$d)=>{"use strict";var Nd=ts();$d.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Nd.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Nd.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var qd=J((EC,Md)=>{"use strict";var Lf=/^[a-z_$][a-z0-9_$-]*$/i,Df=Dd(),Nf=Bd();Md.exports={add:$f,get:Bf,remove:Mf,validate:rs};function $f(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Lf.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var i=0;i<a.length;i++)s(t,a[i],e);else s(t,a,e);var n=e.metaSchema;n&&(e.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(n,!0))}r.keywords[t]=r.all[t]=!0;function s(o,l,d){for(var u,c=0;c<r.length;c++){var h=r[c];if(h.type==l){u=h;break}}u||(u={type:l,rules:[]},r.push(u));var p={keyword:o,definition:d,custom:!0,code:Df,implements:d.implements};u.rules.push(p),r.custom[o]=p}return this}function Bf(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function Mf(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var a=e[r].rules,i=0;i<a.length;i++)if(a[i].keyword==t){a.splice(i,1);break}return this}function rs(t,e){rs.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Nf,!0);if(r(t))return!0;if(rs.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var Rd=J((LC,qf)=>{qf.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Qd=J((DC,Hd)=>{"use strict";var jd=gl(),jr=Ta(),Rf=vl(),_d=_n(),kf=Hn(),jf=Ll(),_f=Id(),Vd=Pd(),Wd=kr();Hd.exports=Me;Me.prototype.validate=Wf;Me.prototype.compile=zf;Me.prototype.addSchema=Uf;Me.prototype.addMetaSchema=Gf;Me.prototype.validateSchema=Hf;Me.prototype.getSchema=Zf;Me.prototype.removeSchema=Kf;Me.prototype.addFormat=nm;Me.prototype.errorsText=am;Me.prototype._addSchema=Yf;Me.prototype._compile=Xf;Me.prototype.compileAsync=Ed();var Ba=qd();Me.prototype.addKeyword=Ba.add;Me.prototype.getKeyword=Ba.get;Me.prototype.removeKeyword=Ba.remove;Me.prototype.validateKeyword=Ba.validate;var zd=Pa();Me.ValidationError=zd.Validation;Me.MissingRefError=zd.MissingRef;Me.$dataMetaSchema=Vd;var $a="http://json-schema.org/draft-07/schema",kd=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Vf=["/properties"];function Me(t){if(!(this instanceof Me))return new Me(t);t=this._opts=Wd.copy(t)||{},cm(this),this._schemas={},this._refs={},this._fragments={},this._formats=jf(t.format),this._cache=t.cache||new Rf,this._loadingSchemas={},this._compilations=[],this.RULES=_f(),this._getId=em(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=kf),this._metaOpts=um(this),t.formats&&lm(this),t.keywords&&dm(this),sm(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),om(this)}function Wf(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var a=this._addSchema(t);r=a.validate||this._compile(a)}var i=r(e);return r.$async!==!0&&(this.errors=r.errors),i}function zf(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function Uf(t,e,r,a){if(Array.isArray(t)){for(var i=0;i<t.length;i++)this.addSchema(t[i],void 0,r,a);return this}var n=this._getId(t);if(n!==void 0&&typeof n!="string")throw new Error("schema id must be string");return e=jr.normalizeId(e||n),Gd(this,e),this._schemas[e]=this._addSchema(t,r,a,!0),this}function Gf(t,e,r){return this.addSchema(t,e,r,!0),this}function Hf(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||Qf(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(r,t);if(!a&&e){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return a}function Qf(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema($a)?$a:void 0,t._opts.defaultMeta}function Zf(t){var e=Ud(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return Jf(this,t)}}function Jf(t,e){var r=jr.schema.call(t,{schema:{}},e);if(r){var a=r.schema,i=r.root,n=r.baseId,s=jd.call(t,a,i,void 0,n);return t._fragments[e]=new _d({ref:e,fragment:!0,schema:a,root:i,baseId:n,validate:s}),s}}function Ud(t,e){return e=jr.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function Kf(t){if(t instanceof RegExp)return Na(this,this._schemas,t),Na(this,this._refs,t),this;switch(typeof t){case"undefined":return Na(this,this._schemas),Na(this,this._refs),this._cache.clear(),this;case"string":var e=Ud(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,a=r?r(t):t;this._cache.del(a);var i=this._getId(t);i&&(i=jr.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function Na(t,e,r){for(var a in e){var i=e[a];!i.meta&&(!r||r.test(a))&&(t._cache.del(i.cacheKey),delete e[a])}}function Yf(t,e,r,a){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,n=i?i(t):t,s=this._cache.get(n);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var o=jr.normalizeId(this._getId(t));o&&a&&Gd(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==jr.normalizeId(t.$schema))&&this.validateSchema(t,!0);var u=jr.ids.call(this,t),c=new _d({id:o,schema:t,localRefs:u,cacheKey:n,meta:r});return o[0]!="#"&&a&&(this._refs[o]=c),this._cache.put(n,c),l&&d&&this.validateSchema(t,!0),c}function Xf(t,e){if(t.compiling)return t.validate=i,i.schema=t.schema,i.errors=null,i.root=e||i,t.schema.$async===!0&&(i.$async=!0),i;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var a;try{a=jd.call(this,t.schema,e,t.localRefs)}catch(n){throw delete t.validate,n}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=a,t.refs=a.refs,t.refVal=a.refVal,t.root=a.root,a;function i(){var n=t.validate,s=n.apply(this,arguments);return i.errors=n.errors,s}}function em(t){switch(t.schemaId){case"auto":return im;case"id":return tm;default:return rm}}function tm(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function rm(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function im(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function am(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,a=e.dataVar===void 0?"data":e.dataVar,i="",n=0;n<t.length;n++){var s=t[n];s&&(i+=a+s.dataPath+" "+s.message+r)}return i.slice(0,-r.length)}function nm(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function sm(t){var e;if(t._opts.$data&&(e=Rd(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=ts();t._opts.$data&&(r=Vd(r,Vf)),t.addMetaSchema(r,$a,!0),t._refs["http://json-schema.org/schema"]=$a}}function om(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function lm(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function dm(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function Gd(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function um(t){for(var e=Wd.copy(t._opts),r=0;r<kd.length;r++)delete e[kd[r]];return e}function cm(t){var e=t._opts.logger;if(e===!1)t.logger={log:is,warn:is,error:is};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function is(){}});function Ro(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var a=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,n=new Array(i);++a<i;)n[a]=t+a*r;return n}function si(t,e){let r,a;if(e===void 0)for(let i of t)i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)));else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r===void 0?n>=n&&(r=a=n):(r>n&&(r=n),a<n&&(a=n)))}return[r,a]}var ca=class extends Map{constructor(e,r=wh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[a,i]of e)this.set(a,i)}get(e){return super.get(ko(this,e))}has(e){return super.has(ko(this,e))}set(e,r){return super.set(vh(this,e),r)}delete(e){return super.delete(Sh(this,e))}};function ko({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):r}function vh({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function Sh({_intern:t,_key:e},r){let a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function wh(t){return t!==null&&typeof t=="object"?t.valueOf():t}function En(t){return t}function Ln(t,e,...r){return xh(t,En,e,r)}function xh(t,e,r,a){return function i(n,s){if(s>=a.length)return r(n);let o=new ca,l=a[s++],d=-1;for(let u of n){let c=l(u,++d,n),h=o.get(c);h?h.push(u):o.set(c,[u])}for(let[u,c]of o)o.set(u,i(c,s));return e(o)}(t,0)}function pa(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function ha(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function fa(t,e){let r=0,a=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++r,a+=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(n=+n)>=n&&(++r,a+=n)}if(r)return a/r}function ma(t,e){let r=0;if(e===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let i of t)(i=+e(i,++a,t))&&(r+=i)}return r}function jo(t){var e,r,a=t.length;if(a===1)e=0,r=t[0][1];else{for(var i=0,n=0,s=0,o=0,l,d,u,c=0;c<a;c++)l=t[c],d=l[0],u=l[1],i+=d,n+=u,s+=d*d,o+=d*u;e=(a*o-i*n)/(a*s-i*i),r=n/a-e*i/a}return{m:e,b:r}}function _o(t){return function(e){return t.b+t.m*e}}function Vo(t,e){if(t.length<2)return 1;for(var r=0,a=0;a<t.length;a++)r+=t[a][1];for(var i=r/t.length,n=0,s=0;s<t.length;s++)n+=Math.pow(i-t[s][1],2);for(var o=0,l=0;l<t.length;l++)o+=Math.pow(t[l][1]-e(t[l][0]),2);return 1-o/n}var Wo=function(){this.totalCount=0,this.data={}};Wo.prototype.train=function(e,r){this.data[r]||(this.data[r]={});for(var a in e){var i=e[a];this.data[r][a]===void 0&&(this.data[r][a]={}),this.data[r][a][i]===void 0&&(this.data[r][a][i]=0),this.data[r][a][i]++}this.totalCount++};Wo.prototype.score=function(e){var r={},a;for(var i in e){var n=e[i];for(a in this.data)r[a]={},this.data[a][i]?r[a][i+"_"+n]=(this.data[a][i][n]||0)/this.totalCount:r[a][i+"_"+n]=0}var s={};for(a in r){s[a]=0;for(var o in r[a])s[a]+=r[a][o]}return s};var zo=function(){this.weights=[],this.bias=0};zo.prototype.predict=function(e){if(e.length!==this.weights.length)return null;for(var r=0,a=0;a<this.weights.length;a++)r+=this.weights[a]*e[a];return r+=this.bias,r>0?1:0};zo.prototype.train=function(e,r){if(r!==0&&r!==1)return null;e.length!==this.weights.length&&(this.weights=e,this.bias=1);var a=this.predict(e);if(typeof a=="number"&&a!==r){for(var i=r-a,n=0;n<this.weights.length;n++)this.weights[n]+=i*e[n];this.bias+=i}return this};var qx=607/128,Rx=Math.log(Math.sqrt(2*Math.PI));var kx=Math.sqrt(2*Math.PI);var Ch=Math.sqrt(2*Math.PI);function Ih(t){for(var e=t,r=t,a=1;a<15;a++)r*=t*t/(2*a+1),e+=r;return Math.round((.5+e/Ch*Math.exp(-t*t/2))*1e4)/1e4}var Fh=[];for(ya=0;ya<=3.09;ya+=.01)Fh.push(Ih(ya));var ya;var zu=Eo(Ho(),1);var Uu=Eo(Qd(),1);var ar="24.6.0",st="arcgis_charts_pie_from_fields_name",qt="arcgis_charts_pie_from_fields_value",xm="arcgis_charts_bar_line_from_fields_name",Cm="arcgis_charts_bar_line_from_fields_value",Xt={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},rr=class extends Error{},vs=class extends rr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},Ss=class extends rr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},ws=class extends rr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Sr=class extends rr{},tn=class extends rr{constructor(e){super(`Invalid unit ${e}`)}},Qe=class extends rr{},Ut=class extends rr{constructor(){super("Zone is an abstract class")}},_="numeric",Rt="short",vt="long",rn={year:_,month:_,day:_},Gu={year:_,month:Rt,day:_},Im={year:_,month:Rt,day:_,weekday:Rt},Hu={year:_,month:vt,day:_},Qu={year:_,month:vt,day:_,weekday:vt},Zu={hour:_,minute:_},Ju={hour:_,minute:_,second:_},Ku={hour:_,minute:_,second:_,timeZoneName:Rt},Yu={hour:_,minute:_,second:_,timeZoneName:vt},Xu={hour:_,minute:_,hourCycle:"h23"},ec={hour:_,minute:_,second:_,hourCycle:"h23"},tc={hour:_,minute:_,second:_,hourCycle:"h23",timeZoneName:Rt},rc={hour:_,minute:_,second:_,hourCycle:"h23",timeZoneName:vt},ic={year:_,month:_,day:_,hour:_,minute:_},ac={year:_,month:_,day:_,hour:_,minute:_,second:_},nc={year:_,month:Rt,day:_,hour:_,minute:_},sc={year:_,month:Rt,day:_,hour:_,minute:_,second:_},Fm={year:_,month:Rt,day:_,weekday:Rt,hour:_,minute:_},oc={year:_,month:vt,day:_,hour:_,minute:_,timeZoneName:Rt},lc={year:_,month:vt,day:_,hour:_,minute:_,second:_,timeZoneName:Rt},dc={year:_,month:vt,day:_,weekday:vt,hour:_,minute:_,timeZoneName:vt},uc={year:_,month:vt,day:_,weekday:vt,hour:_,minute:_,second:_,timeZoneName:vt},Gr=class{get type(){throw new Ut}get name(){throw new Ut}get ianaName(){return this.name}get isUniversal(){throw new Ut}offsetName(e,r){throw new Ut}formatOffset(e,r){throw new Ut}offset(e){throw new Ut}equals(e){throw new Ut}get isValid(){throw new Ut}},as=null,an=class t extends Gr{static get instance(){return as===null&&(as=new t),as}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return wc(e,r,a)}formatOffset(e,r){return _i(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},xs=new Map;function Tm(t){let e=xs.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),xs.set(t,e)),e}var Pm={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Om(t,e){let r=t.format(e).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,n,s,o,l,d,u]=a;return[s,i,n,o,l,d,u]}function Am(t,e){let r=t.formatToParts(e),a=[];for(let i=0;i<r.length;i++){let{type:n,value:s}=r[i],o=Pm[n];n==="era"?a[o]=s:K(o)||(a[o]=parseInt(s,10))}return a}var ns=new Map,Cr=class t extends Gr{static create(e){let r=ns.get(e);return r===void 0&&ns.set(e,r=new t(e)),r}static resetCache(){ns.clear(),xs.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return wc(e,r,a,this.name)}formatOffset(e,r){return _i(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let a=Tm(this.name),[i,n,s,o,l,d,u]=a.formatToParts?Am(a,r):Om(a,r);o==="BC"&&(i=-Math.abs(i)+1);let c=fn({year:i,month:n,day:s,hour:l===24?0:l,minute:d,second:u,millisecond:0}),h=+r,p=h%1e3;return h-=p>=0?p:1e3+p,(c-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},Kd={};function Em(t,e={}){let r=JSON.stringify([t,e]),a=Kd[r];return a||(a=new Intl.ListFormat(t,e),Kd[r]=a),a}var Cs=new Map;function Is(t,e={}){let r=JSON.stringify([t,e]),a=Cs.get(r);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),Cs.set(r,a)),a}var Fs=new Map;function Lm(t,e={}){let r=JSON.stringify([t,e]),a=Fs.get(r);return a===void 0&&(a=new Intl.NumberFormat(t,e),Fs.set(r,a)),a}var Ts=new Map;function Dm(t,e={}){let{base:r,...a}=e,i=JSON.stringify([t,a]),n=Ts.get(i);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),Ts.set(i,n)),n}var Ha=null;function Nm(){return Ha||(Ha=new Intl.DateTimeFormat().resolvedOptions().locale,Ha)}var Ps=new Map;function cc(t){let e=Ps.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Ps.set(t,e)),e}var Os=new Map;function $m(t){let e=Os.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...pc,...e}),Os.set(t,e)}return e}function Bm(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let a,i;try{a=Is(t).resolvedOptions(),i=t}catch{let o=t.substring(0,r);a=Is(o).resolvedOptions(),i=o}let{numberingSystem:n,calendar:s}=a;return[i,n,s]}}function Mm(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function qm(t){let e=[];for(let r=1;r<=12;r++){let a=ae.utc(2009,r,1);e.push(t(a))}return e}function Rm(t){let e=[];for(let r=1;r<=7;r++){let a=ae.utc(2016,11,13+r);e.push(t(a))}return e}function Ma(t,e,r,a){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):a(e)}function km(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||cc(t.locale).numberingSystem==="latn"}var As=class{constructor(e,r,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:i,floor:n,...s}=a;if(!r||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=Lm(e,o)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):eo(e,3);return ze(r,this.padTo)}}},Es=class{constructor(e,r,a){this.opts=a,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&Cr.create(o).valid?(i=o,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||i,this.dtf=Is(r,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:a}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Ls=class{constructor(e,r,a){this.opts={style:"long",...a},!r&&vc()&&(this.rtf=Dm(e,a))}format(e,r){return this.rtf?this.rtf.format(e,r):sy(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},pc={firstDay:1,minimalDays:4,weekend:[6,7]},Se=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,a,i,n=!1){let s=e||Oe.defaultLocale,o=s||(n?"en-US":Nm()),l=r||Oe.defaultNumberingSystem,d=a||Oe.defaultOutputCalendar,u=$s(i)||Oe.defaultWeekSettings;return new t(o,l,d,u,s)}static resetCache(){Ha=null,Cs.clear(),Fs.clear(),Ts.clear(),Ps.clear(),Os.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:a,weekSettings:i}={}){return t.create(e,r,a,i)}constructor(e,r,a,i,n){let[s,o,l]=Bm(e);this.locale=s,this.numberingSystem=r||o||null,this.outputCalendar=a||l||null,this.weekSettings=i,this.intl=Mm(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=km(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,$s(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return Ma(this,e,Ic,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");r&=!a;let i=r?{month:e,day:"numeric"}:{month:e},n=r?"format":"standalone";if(!this.monthsCache[n][e]){let s=a?o=>this.dtFormatter(o,i).format():o=>this.extract(o,i,"month");this.monthsCache[n][e]=qm(s)}return this.monthsCache[n][e]})}weekdays(e,r=!1){return Ma(this,e,Pc,()=>{let a=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=Rm(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return Ma(this,void 0,()=>Oc,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ae.utc(2016,11,13,9),ae.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Ma(this,e,Ac,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[ae.utc(-40,1,1),ae.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,r,a){let i=this.dtFormatter(e,r),n=i.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new As(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Es(e,this.intl,r)}relFormatter(e={}){return new Ls(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Em(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||cc(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Sc()?$m(this.locale):pc}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},ss=null,At=class t extends Gr{static get utcInstance(){return ss===null&&(ss=new t(0)),ss}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(mn(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${_i(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${_i(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return _i(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},Ds=class extends Gr{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function vr(t,e){if(K(t)||t===null)return e;if(t instanceof Gr)return t;if(Um(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?an.instance:r==="utc"||r==="gmt"?At.utcInstance:At.parseSpecifier(r)||Cr.create(t)}else return wr(t)?At.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ds(t)}var Js={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Yd={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},jm=Js.hanidec.replace(/[\[|\]]/g,"").split("");function _m(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let a=t.charCodeAt(r);if(t[r].search(Js.hanidec)!==-1)e+=jm.indexOf(t[r]);else for(let i in Yd){let[n,s]=Yd[i];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var Ns=new Map;function Vm(){Ns.clear()}function $t({numberingSystem:t},e=""){let r=t||"latn",a=Ns.get(r);a===void 0&&(a=new Map,Ns.set(r,a));let i=a.get(e);return i===void 0&&(i=new RegExp(`${Js[r]}${e}`),a.set(e,i)),i}var Xd=()=>Date.now(),eu="system",tu=null,ru=null,iu=null,au=60,nu,su=null,Oe=class{static get now(){return Xd}static set now(e){Xd=e}static set defaultZone(e){eu=e}static get defaultZone(){return vr(eu,an.instance)}static get defaultLocale(){return tu}static set defaultLocale(e){tu=e}static get defaultNumberingSystem(){return ru}static set defaultNumberingSystem(e){ru=e}static get defaultOutputCalendar(){return iu}static set defaultOutputCalendar(e){iu=e}static get defaultWeekSettings(){return su}static set defaultWeekSettings(e){su=$s(e)}static get twoDigitCutoffYear(){return au}static set twoDigitCutoffYear(e){au=e%100}static get throwOnInvalid(){return nu}static set throwOnInvalid(e){nu=e}static resetCaches(){Se.resetCache(),Cr.resetCache(),ae.resetCache(),Vm()}},bt=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},hc=[0,31,59,90,120,151,181,212,243,273,304,334],fc=[0,31,60,91,121,152,182,213,244,274,305,335];function Pt(t,e){return new bt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Ks(t,e,r){let a=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let i=a.getUTCDay();return i===0?7:i}function mc(t,e,r){return r+(Ki(t)?fc:hc)[e-1]}function yc(t,e){let r=Ki(t)?fc:hc,a=r.findIndex(n=>n<e),i=e-r[a];return{month:a+1,day:i}}function Ys(t,e){return(t-e+7)%7+1}function nn(t,e=4,r=1){let{year:a,month:i,day:n}=t,s=mc(a,i,n),o=Ys(Ks(a,i,n),r),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=Vi(d,e,r)):l>Vi(a,e,r)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...yn(t)}}function ou(t,e=4,r=1){let{weekYear:a,weekNumber:i,weekday:n}=t,s=Ys(Ks(a,1,e),r),o=fi(a),l=i*7+n-s-7+e,d;l<1?(d=a-1,l+=fi(d)):l>o?(d=a+1,l-=fi(a)):d=a;let{month:u,day:c}=yc(d,l);return{year:d,month:u,day:c,...yn(t)}}function os(t){let{year:e,month:r,day:a}=t,i=mc(e,r,a);return{year:e,ordinal:i,...yn(t)}}function lu(t){let{year:e,ordinal:r}=t,{month:a,day:i}=yc(e,r);return{year:e,month:a,day:i,...yn(t)}}function du(t,e){if(!K(t.localWeekday)||!K(t.localWeekNumber)||!K(t.localWeekYear)){if(!K(t.weekday)||!K(t.weekNumber)||!K(t.weekYear))throw new Sr("Cannot mix locale-based week fields with ISO-based week fields");return K(t.localWeekday)||(t.weekday=t.localWeekday),K(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),K(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Wm(t,e=4,r=1){let a=hn(t.weekYear),i=Ot(t.weekNumber,1,Vi(t.weekYear,e,r)),n=Ot(t.weekday,1,7);return a?i?n?!1:Pt("weekday",t.weekday):Pt("week",t.weekNumber):Pt("weekYear",t.weekYear)}function zm(t){let e=hn(t.year),r=Ot(t.ordinal,1,fi(t.year));return e?r?!1:Pt("ordinal",t.ordinal):Pt("year",t.year)}function gc(t){let e=hn(t.year),r=Ot(t.month,1,12),a=Ot(t.day,1,sn(t.year,t.month));return e?r?a?!1:Pt("day",t.day):Pt("month",t.month):Pt("year",t.year)}function bc(t){let{hour:e,minute:r,second:a,millisecond:i}=t,n=Ot(e,0,23)||e===24&&r===0&&a===0&&i===0,s=Ot(r,0,59),o=Ot(a,0,59),l=Ot(i,0,999);return n?s?o?l?!1:Pt("millisecond",i):Pt("second",a):Pt("minute",r):Pt("hour",e)}function K(t){return typeof t>"u"}function wr(t){return typeof t=="number"}function hn(t){return typeof t=="number"&&t%1===0}function Um(t){return typeof t=="string"}function Gm(t){return Object.prototype.toString.call(t)==="[object Date]"}function vc(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Sc(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Hm(t){return Array.isArray(t)?t:[t]}function uu(t,e,r){if(t.length!==0)return t.reduce((a,i)=>{let n=[e(i),i];return a&&r(a[0],n[0])===a[0]?a:n},null)[1]}function Qm(t,e){return e.reduce((r,a)=>(r[a]=t[a],r),{})}function bi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function $s(t){if(t==null)return null;if(typeof t!="object")throw new Qe("Week settings must be an object");if(!Ot(t.firstDay,1,7)||!Ot(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Ot(e,1,7)))throw new Qe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Ot(t,e,r){return hn(t)&&t>=e&&t<=r}function Zm(t,e){return t-e*Math.floor(t/e)}function ze(t,e=2){let r=t<0,a;return r?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function gr(t){if(!(K(t)||t===null||t===""))return parseInt(t,10)}function _r(t){if(!(K(t)||t===null||t===""))return parseFloat(t)}function Xs(t){if(!(K(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function eo(t,e,r="round"){let a=10**e;switch(r){case"expand":return t>0?Math.ceil(t*a)/a:Math.floor(t*a)/a;case"trunc":return Math.trunc(t*a)/a;case"round":return Math.round(t*a)/a;case"floor":return Math.floor(t*a)/a;case"ceil":return Math.ceil(t*a)/a;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function Ki(t){return t%4===0&&(t%100!==0||t%400===0)}function fi(t){return Ki(t)?366:365}function sn(t,e){let r=Zm(e-1,12)+1,a=t+(e-r)/12;return r===2?Ki(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function fn(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function cu(t,e,r){return-Ys(Ks(t,1,e),r)+e-1}function Vi(t,e=4,r=1){let a=cu(t,e,r),i=cu(t+1,e,r);return(fi(t)-a+i)/7}function Bs(t){return t>99?t:t>Oe.twoDigitCutoffYear?1900+t:2e3+t}function wc(t,e,r,a=null){let i=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(n.timeZone=a);let s={timeZoneName:e,...n},o=new Intl.DateTimeFormat(r,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function mn(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let a=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-a:a;return r*60+i}function xc(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Qe(`Invalid unit value ${t}`);return e}function on(t,e){let r={};for(let a in t)if(bi(t,a)){let i=t[a];if(i==null)continue;r[e(a)]=xc(i)}return r}function _i(t,e){let r=Math.trunc(Math.abs(t/60)),a=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${ze(r,2)}:${ze(a,2)}`;case"narrow":return`${i}${r}${a>0?`:${a}`:""}`;case"techie":return`${i}${ze(r,2)}${ze(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function yn(t){return Qm(t,["hour","minute","second","millisecond"])}var Jm=["January","February","March","April","May","June","July","August","September","October","November","December"],Cc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Km=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ic(t){switch(t){case"narrow":return[...Km];case"short":return[...Cc];case"long":return[...Jm];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Fc=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Tc=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ym=["M","T","W","T","F","S","S"];function Pc(t){switch(t){case"narrow":return[...Ym];case"short":return[...Tc];case"long":return[...Fc];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Oc=["AM","PM"],Xm=["Before Christ","Anno Domini"],ey=["BC","AD"],ty=["B","A"];function Ac(t){switch(t){case"narrow":return[...ty];case"short":return[...ey];case"long":return[...Xm];default:return null}}function ry(t){return Oc[t.hour<12?0:1]}function iy(t,e){return Pc(e)[t.weekday-1]}function ay(t,e){return Ic(e)[t.month-1]}function ny(t,e){return Ac(e)[t.year<0?0:1]}function sy(t,e,r="always",a=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&n){let c=t==="days";switch(e){case 1:return c?"tomorrow":`next ${i[t][0]}`;case-1:return c?"yesterday":`last ${i[t][0]}`;case 0:return c?"today":`this ${i[t][0]}`}}let s=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,d=i[t],u=a?l?d[1]:d[2]||d[1]:l?i[t][0]:t;return s?`${o} ${u} ago`:`in ${o} ${u}`}function pu(t,e){let r="";for(let a of t)a.literal?r+=a.val:r+=e(a.val);return r}var oy={D:rn,DD:Gu,DDD:Hu,DDDD:Qu,t:Zu,tt:Ju,ttt:Ku,tttt:Yu,T:Xu,TT:ec,TTT:tc,TTTT:rc,f:ic,ff:nc,fff:oc,ffff:dc,F:ac,FF:sc,FFF:lc,FFFF:uc},gt=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,a="",i=!1,n=[];for(let s=0;s<e.length;s++){let o=e.charAt(s);o==="'"?((a.length>0||i)&&n.push({literal:i||/^\s+$/.test(a),val:a===""?"'":a}),r=null,a="",i=!i):i||o===r?a+=o:(a.length>0&&n.push({literal:/^\s+$/.test(a),val:a}),a=o,r=o)}return a.length>0&&n.push({literal:i||/^\s+$/.test(a),val:a}),n}static macroTokenToFormatOpts(e){return oy[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,a=void 0){if(this.opts.forceSimple)return ze(e,r);let i={...this.opts};return r>0&&(i.padTo=r),a&&(i.signDisplay=a),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){let a=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(p,f)=>this.loc.extract(e,p,f),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",o=()=>a?ry(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,f)=>a?ay(e,p):n(f?{month:p}:{month:p,day:"numeric"},"month"),d=(p,f)=>a?iy(e,p):n(f?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{let f=t.macroTokenToFormatOpts(p);return f?this.formatWithSystemDefault(e,f):p},c=p=>a?ny(e,p):n({era:p},"era"),h=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return i?n({day:"numeric"},"day"):this.num(e.day);case"dd":return i?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?n({month:"numeric"},"month"):this.num(e.month);case"MM":return i?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?n({year:"numeric"},"year"):this.num(e.year);case"yy":return i?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(p)}};return pu(t.parseFormat(r),h)}formatDurationFromString(e,r){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,i=u=>{switch(u[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},n=(u,c)=>h=>{let p=i(h);if(p){let f=c.isNegativeDuration&&p!==c.largestUnit?a:1,m;return this.opts.signMode==="negativeLargestOnly"&&p!==c.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(u.get(p)*f,h.length,m)}else return h},s=t.parseFormat(r),o=s.reduce((u,{literal:c,val:h})=>c?u:u.concat(h),[]),l=e.shiftTo(...o.map(i).filter(u=>u)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return pu(s,n(l,d))}},Ec=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ci(...t){let e=t.reduce((r,a)=>r+a.source,"");return RegExp(`^${e}$`)}function Ii(...t){return e=>t.reduce(([r,a,i],n)=>{let[s,o,l]=n(e,i);return[{...r,...s},o||a,l]},[{},null,1]).slice(0,2)}function Fi(t,...e){if(t==null)return[null,null];for(let[r,a]of e){let i=r.exec(t);if(i)return a(i)}return[null,null]}function Lc(...t){return(e,r)=>{let a={},i;for(i=0;i<t.length;i++)a[t[i]]=gr(e[r+i]);return[a,null,r+i]}}var Dc=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,ly=`(?:${Dc.source}?(?:\\[(${Ec.source})\\])?)?`,to=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Nc=RegExp(`${to.source}${ly}`),ro=RegExp(`(?:[Tt]${Nc.source})?`),dy=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,uy=/(\d{4})-?W(\d\d)(?:-?(\d))?/,cy=/(\d{4})-?(\d{3})/,py=Lc("weekYear","weekNumber","weekDay"),hy=Lc("year","ordinal"),fy=/(\d{4})-(\d\d)-(\d\d)/,$c=RegExp(`${to.source} ?(?:${Dc.source}|(${Ec.source}))?`),my=RegExp(`(?: ${$c.source})?`);function mi(t,e,r){let a=t[e];return K(a)?r:gr(a)}function yy(t,e){return[{year:mi(t,e),month:mi(t,e+1,1),day:mi(t,e+2,1)},null,e+3]}function Ti(t,e){return[{hours:mi(t,e,0),minutes:mi(t,e+1,0),seconds:mi(t,e+2,0),milliseconds:Xs(t[e+3])},null,e+4]}function Yi(t,e){let r=!t[e]&&!t[e+1],a=mn(t[e+1],t[e+2]),i=r?null:At.instance(a);return[{},i,e+3]}function Xi(t,e){let r=t[e]?Cr.create(t[e]):null;return[{},r,e+1]}var gy=RegExp(`^T?${to.source}$`),by=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function vy(t){let[e,r,a,i,n,s,o,l,d]=t,u=e[0]==="-",c=l&&l[0]==="-",h=(p,f=!1)=>p!==void 0&&(f||p&&u)?-p:p;return[{years:h(_r(r)),months:h(_r(a)),weeks:h(_r(i)),days:h(_r(n)),hours:h(_r(s)),minutes:h(_r(o)),seconds:h(_r(l),l==="-0"),milliseconds:h(Xs(d),c)}]}var Sy={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function io(t,e,r,a,i,n,s){let o={year:e.length===2?Bs(gr(e)):gr(e),month:Cc.indexOf(r)+1,day:gr(a),hour:gr(i),minute:gr(n)};return s&&(o.second=gr(s)),t&&(o.weekday=t.length>3?Fc.indexOf(t)+1:Tc.indexOf(t)+1),o}var wy=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function xy(t){let[,e,r,a,i,n,s,o,l,d,u,c]=t,h=io(e,i,a,r,n,s,o),p;return l?p=Sy[l]:d?p=0:p=mn(u,c),[h,new At(p)]}function Cy(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Iy=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Fy=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ty=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function hu(t){let[,e,r,a,i,n,s,o]=t;return[io(e,i,a,r,n,s,o),At.utcInstance]}function Py(t){let[,e,r,a,i,n,s,o]=t;return[io(e,o,r,a,i,n,s),At.utcInstance]}var Oy=Ci(dy,ro),Ay=Ci(uy,ro),Ey=Ci(cy,ro),Ly=Ci(Nc),Bc=Ii(yy,Ti,Yi,Xi),Dy=Ii(py,Ti,Yi,Xi),Ny=Ii(hy,Ti,Yi,Xi),$y=Ii(Ti,Yi,Xi);function By(t){return Fi(t,[Oy,Bc],[Ay,Dy],[Ey,Ny],[Ly,$y])}function My(t){return Fi(Cy(t),[wy,xy])}function qy(t){return Fi(t,[Iy,hu],[Fy,hu],[Ty,Py])}function Ry(t){return Fi(t,[by,vy])}var ky=Ii(Ti);function jy(t){return Fi(t,[gy,ky])}var _y=Ci(fy,my),Vy=Ci($c),Wy=Ii(Ti,Yi,Xi);function zy(t){return Fi(t,[_y,Bc],[Vy,Wy])}var fu="Invalid Duration",Mc={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Uy={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Mc},Tt=146097/400,oi=146097/4800,Gy={years:{quarters:4,months:12,weeks:Tt/7,days:Tt,hours:Tt*24,minutes:Tt*24*60,seconds:Tt*24*60*60,milliseconds:Tt*24*60*60*1e3},quarters:{months:3,weeks:Tt/28,days:Tt/4,hours:Tt*24/4,minutes:Tt*24*60/4,seconds:Tt*24*60*60/4,milliseconds:Tt*24*60*60*1e3/4},months:{weeks:oi/7,days:oi,hours:oi*24,minutes:oi*24*60,seconds:oi*24*60*60,milliseconds:oi*24*60*60*1e3},...Mc},zr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Hy=zr.slice(0).reverse();function Yt(t,e,r=!1){let a={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ze(a)}function qc(t,e){let r=e.milliseconds??0;for(let a of Hy.slice(1))e[a]&&(r+=e[a]*t[a].milliseconds);return r}function mu(t,e){let r=qc(t,e)<0?-1:1;zr.reduceRight((a,i)=>{if(K(e[i]))return a;if(a){let n=e[a]*r,s=t[i][a],o=Math.floor(n/s);e[i]+=o*r,e[a]-=o*s*r}return i},null),zr.reduce((a,i)=>{if(K(e[i]))return a;if(a){let n=e[a]%1;e[a]-=n,e[i]+=n*t[a][i]}return i},null)}function yu(t){let e={};for(let[r,a]of Object.entries(t))a!==0&&(e[r]=a);return e}var Ze=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,a=r?Gy:Uy;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||Se.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Qe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:on(e,t.normalizeUnit),loc:Se.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(wr(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Qe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[a]=Ry(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[a]=jy(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Duration is invalid");let a=e instanceof bt?e:new bt(e,r);if(Oe.throwOnInvalid)throw new ws(a);return new t({invalid:a})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new tn(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let a={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?gt.create(this.loc,a).formatDurationFromString(this,e):fu}toHuman(e={}){if(!this.isValid)return fu;let r=e.showZeros!==!1,a=zr.map(i=>{let n=this.values[i];return K(n)||n===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(n)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=eo(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ae.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?qc(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),a={};for(let i of zr)(bi(r.values,i)||bi(this.values,i))&&(a[i]=r.get(i)+this.get(i));return Yt(this,{values:a},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let a of Object.keys(this.values))r[a]=xc(e(this.values[a],a));return Yt(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...on(e,t.normalizeUnit)};return Yt(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:a,matrix:i}={}){let n={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:a};return Yt(this,n)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return mu(this.matrix,e),Yt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=yu(this.normalize().shiftToAll().toObject());return Yt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},a={},i=this.toObject(),n;for(let s of zr)if(e.indexOf(s)>=0){n=s;let o=0;for(let d in a)o+=this.matrix[d][s]*a[d],a[d]=0;wr(i[s])&&(o+=i[s]);let l=Math.trunc(o);r[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else wr(i[s])&&(a[s]=i[s]);for(let s in a)a[s]!==0&&(r[n]+=s===n?a[s]:a[s]/this.matrix[n][s]);return mu(this.matrix,r),Yt(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Yt(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=yu(this.values);return Yt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(a,i){return a===void 0||a===0?i===void 0||i===0:a===i}for(let a of zr)if(!r(this.values[a],e.values[a]))return!1;return!0}},li="Invalid Interval";function Qy(t,e){return!t||!t.isValid?yi.invalid("missing or invalid start"):!e||!e.isValid?yi.invalid("missing or invalid end"):e<t?yi.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var yi=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Interval is invalid");let a=e instanceof bt?e:new bt(e,r);if(Oe.throwOnInvalid)throw new Ss(a);return new t({invalid:a})}static fromDateTimes(e,r){let a=qi(e),i=qi(r);return Qy(a,i)??new t({start:a,end:i})}static after(e,r){let a=Ze.fromDurationLike(r),i=qi(e);return t.fromDateTimes(i,i.plus(a))}static before(e,r){let a=Ze.fromDurationLike(r),i=qi(e);return t.fromDateTimes(i.minus(a),i)}static fromISO(e,r){let[a,i]=(e||"").split("/",2);if(a&&i){let n,s;try{n=ae.fromISO(a,r),s=n.isValid}catch{s=!1}let o,l;try{o=ae.fromISO(i,r),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Ze.fromISO(i,r);if(d.isValid)return t.after(n,d)}else if(l){let d=Ze.fromISO(a,r);if(d.isValid)return t.before(o,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let a=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:a.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(a,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(qi).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:i}=this,n=0;for(;i<this.e;){let s=r[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(i,o)),i=o,n+=1}return a}splitBy(e){let r=Ze.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:a}=this,i=1,n,s=[];for(;a<this.e;){let o=this.start.plus(r.mapUnits(l=>l*i));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return r>=a?null:t.fromDateTimes(r,a)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,a)}static merge(e){let[r,a]=e.sort((i,n)=>i.s-n.s).reduce(([i,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[i,n.union(s)]:[i.concat([n]),s]:[i,s],[[],null]);return a&&r.push(a),r}static xor(e){let r=null,a=0,i=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?r=l.time:(r&&+r!=+l.time&&i.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:li}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=rn,r={}){return this.isValid?gt.create(this.s.loc.clone(r),e).formatInterval(this):li}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:li}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:li}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:li}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:li}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Ze.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},pi=class{static hasDST(e=Oe.defaultZone){let r=ae.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Cr.isValidZone(e)}static normalizeZone(e){return vr(e,Oe.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||Se.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||Se.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||Se.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||Se.create(r,a,n)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||Se.create(r,a,n)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||Se.create(r,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||Se.create(r,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Se.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return Se.create(r,null,"gregory").eras(e)}static features(){return{relative:vc(),localeWeek:Sc()}}};function gu(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=r(e)-r(t);return Math.floor(Ze.fromMillis(a).as("days"))}function Zy(t,e,r){let a=[["years",(l,d)=>d.year-l.year],["quarters",(l,d)=>d.quarter-l.quarter+(d.year-l.year)*4],["months",(l,d)=>d.month-l.month+(d.year-l.year)*12],["weeks",(l,d)=>{let u=gu(l,d);return(u-u%7)/7}],["days",gu]],i={},n=t,s,o;for(let[l,d]of a)r.indexOf(l)>=0&&(s=l,i[l]=d(t,e),o=n.plus(i),o>e?(i[l]--,t=n.plus(i),t>e&&(o=t,i[l]--,t=n.plus(i))):t=o);return[t,i,o,s]}function Jy(t,e,r,a){let[i,n,s,o]=Zy(t,e,r),l=e-i,d=r.filter(c=>["hours","minutes","seconds","milliseconds"].indexOf(c)>=0);d.length===0&&(s<e&&(s=i.plus({[o]:1})),s!==i&&(n[o]=(n[o]||0)+l/(s-i)));let u=Ze.fromObject(n,a);return d.length>0?Ze.fromMillis(l,a).shiftTo(...d).plus(u):u}var Ky="missing Intl.DateTimeFormat.formatToParts support";function pe(t,e=r=>r){return{regex:t,deser:([r])=>e(_m(r))}}var Yy="\xA0",Rc=`[ ${Yy}]`,kc=new RegExp(Rc,"g");function Xy(t){return t.replace(/\./g,"\\.?").replace(kc,Rc)}function bu(t){return t.replace(/\./g,"").replace(kc," ").toLowerCase()}function Bt(t,e){return t===null?null:{regex:RegExp(t.map(Xy).join("|")),deser:([r])=>t.findIndex(a=>bu(r)===bu(a))+e}}function vu(t,e){return{regex:t,deser:([,r,a])=>mn(r,a),groups:e}}function qa(t){return{regex:t,deser:([e])=>e}}function eg(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function tg(t,e){let r=$t(e),a=$t(e,"{2}"),i=$t(e,"{3}"),n=$t(e,"{4}"),s=$t(e,"{6}"),o=$t(e,"{1,2}"),l=$t(e,"{1,3}"),d=$t(e,"{1,6}"),u=$t(e,"{1,9}"),c=$t(e,"{2,4}"),h=$t(e,"{4,6}"),p=m=>({regex:RegExp(eg(m.val)),deser:([y])=>y,literal:!0}),f=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return Bt(e.eras("short"),0);case"GG":return Bt(e.eras("long"),0);case"y":return pe(d);case"yy":return pe(c,Bs);case"yyyy":return pe(n);case"yyyyy":return pe(h);case"yyyyyy":return pe(s);case"M":return pe(o);case"MM":return pe(a);case"MMM":return Bt(e.months("short",!0),1);case"MMMM":return Bt(e.months("long",!0),1);case"L":return pe(o);case"LL":return pe(a);case"LLL":return Bt(e.months("short",!1),1);case"LLLL":return Bt(e.months("long",!1),1);case"d":return pe(o);case"dd":return pe(a);case"o":return pe(l);case"ooo":return pe(i);case"HH":return pe(a);case"H":return pe(o);case"hh":return pe(a);case"h":return pe(o);case"mm":return pe(a);case"m":return pe(o);case"q":return pe(o);case"qq":return pe(a);case"s":return pe(o);case"ss":return pe(a);case"S":return pe(l);case"SSS":return pe(i);case"u":return qa(u);case"uu":return qa(o);case"uuu":return pe(r);case"a":return Bt(e.meridiems(),0);case"kkkk":return pe(n);case"kk":return pe(c,Bs);case"W":return pe(o);case"WW":return pe(a);case"E":case"c":return pe(r);case"EEE":return Bt(e.weekdays("short",!1),1);case"EEEE":return Bt(e.weekdays("long",!1),1);case"ccc":return Bt(e.weekdays("short",!0),1);case"cccc":return Bt(e.weekdays("long",!0),1);case"Z":case"ZZ":return vu(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return vu(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return qa(/[a-z_+-/]{1,256}?/i);case" ":return qa(/[^\S\n\r]/);default:return p(m)}})(t)||{invalidReason:Ky};return f.token=t,f}var rg={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function ig(t,e,r){let{type:a,value:i}=t;if(a==="literal"){let l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}let n=e[a],s=a;a==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let o=rg[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function ag(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function ng(t,e,r){let a=t.match(e);if(a){let i={},n=1;for(let s in r)if(bi(r,s)){let o=r[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(i[o.token.val[0]]=o.deser(a.slice(n,n+l))),n+=l}return[a,i]}else return[a,{}]}function sg(t){let e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,a;return K(t.z)||(r=Cr.create(t.z)),K(t.Z)||(r||(r=new At(t.Z)),a=t.Z),K(t.q)||(t.M=(t.q-1)*3+1),K(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),K(t.u)||(t.S=Xs(t.u)),[Object.keys(t).reduce((i,n)=>{let s=e(n);return s&&(i[s]=t[n]),i},{}),r,a]}var ls=null;function og(){return ls||(ls=ae.fromMillis(1555555555555)),ls}function lg(t,e){if(t.literal)return t;let r=gt.macroTokenToFormatOpts(t.val),a=Vc(r,e);return a==null||a.includes(void 0)?t:a}function jc(t,e){return Array.prototype.concat(...t.map(r=>lg(r,e)))}var ln=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=jc(gt.parseFormat(r),e),this.units=this.tokens.map(a=>tg(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,i]=ag(this.units);this.regex=RegExp(a,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,a]=ng(e,this.regex,this.handlers),[i,n,s]=a?sg(a):[null,null,void 0];if(bi(a,"a")&&bi(a,"H"))throw new Sr("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:a,result:i,zone:n,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function _c(t,e,r){return new ln(t,r).explainFromTokens(e)}function dg(t,e,r){let{result:a,zone:i,specificOffset:n,invalidReason:s}=_c(t,e,r);return[a,i,n,s]}function Vc(t,e){if(!t)return null;let r=gt.create(e,t).dtFormatter(og()),a=r.formatToParts(),i=r.resolvedOptions();return a.map(n=>ig(n,t,i))}var ds="Invalid DateTime",Su=864e13;function ki(t){return new bt("unsupported zone",`the zone "${t.name}" is not supported`)}function us(t){return t.weekData===null&&(t.weekData=nn(t.c)),t.weekData}function cs(t){return t.localWeekData===null&&(t.localWeekData=nn(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Vr(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ae({...r,...e,old:r})}function Wc(t,e,r){let a=t-e*60*1e3,i=r.offset(a);if(e===i)return[a,e];a-=(i-e)*60*1e3;let n=r.offset(a);return i===n?[a,i]:[t-Math.min(i,n)*60*1e3,Math.max(i,n)]}function Ra(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Qa(t,e,r){return Wc(fn(t),e,r)}function wu(t,e){let r=t.o,a=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:a,month:i,day:Math.min(t.c.day,sn(a,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Ze.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=fn(n),[l,d]=Wc(o,r,t.zone);return s!==0&&(l+=s,d=t.zone.offset(l)),{ts:l,o:d}}function di(t,e,r,a,i,n){let{setZone:s,zone:o}=r;if(t&&Object.keys(t).length!==0||e){let l=e||o,d=ae.fromObject(t,{...r,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ae.invalid(new bt("unparsable",`the input "${i}" can't be parsed as ${a}`))}function ka(t,e,r=!0){return t.isValid?gt.create(Se.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ps(t,e,r){let a=t.c.year>9999||t.c.year<0,i="";if(a&&t.c.year>=0&&(i+="+"),i+=ze(t.c.year,a?6:4),r==="year")return i;if(e){if(i+="-",i+=ze(t.c.month),r==="month")return i;i+="-"}else if(i+=ze(t.c.month),r==="month")return i;return i+=ze(t.c.day),i}function xu(t,e,r,a,i,n,s){let o=!r||t.c.millisecond!==0||t.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=ze(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=ze(t.c.minute),s==="minute")break;o&&(l+=":",l+=ze(t.c.second))}else{if(l+=ze(t.c.minute),s==="minute")break;o&&(l+=ze(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=ze(t.c.millisecond,3))}return i&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=ze(Math.trunc(-t.o/60)),l+=":",l+=ze(Math.trunc(-t.o%60))):(l+="+",l+=ze(Math.trunc(t.o/60)),l+=":",l+=ze(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var zc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ug={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},cg={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Za=["year","month","day","hour","minute","second","millisecond"],pg=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],hg=["year","ordinal","hour","minute","second","millisecond"];function Ja(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new tn(t);return e}function Cu(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ja(t)}}function fg(t){if(ji===void 0&&(ji=Oe.now()),t.type!=="iana")return t.offset(ji);let e=t.name,r=Ms.get(e);return r===void 0&&(r=t.offset(ji),Ms.set(e,r)),r}function Iu(t,e){let r=vr(e.zone,Oe.defaultZone);if(!r.isValid)return ae.invalid(ki(r));let a=Se.fromObject(e),i,n;if(K(t.year))i=Oe.now();else{for(let l of Za)K(t[l])&&(t[l]=zc[l]);let s=gc(t)||bc(t);if(s)return ae.invalid(s);let o=fg(r);[i,n]=Qa(t,o,r)}return new ae({ts:i,zone:r,loc:a,o:n})}function Fu(t,e,r){let a=K(r.round)?!0:r.round,i=K(r.rounding)?"trunc":r.rounding,n=(o,l)=>(o=eo(o,a||r.calendary?0:2,r.calendary?"round":i),e.loc.clone(r).relFormatter(r).format(o,l)),s=o=>r.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(r.unit)return n(s(r.unit),r.unit);for(let o of r.units){let l=s(o);if(Math.abs(l)>=1)return n(l,o)}return n(t>e?-0:0,r.units[r.units.length-1])}function Tu(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var ji,Ms=new Map,ae=class t{constructor(e){let r=e.zone||Oe.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new bt("invalid input"):null)||(r.isValid?null:ki(r));this.ts=K(e.ts)?Oe.now():e.ts;let i=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,n]=[e.old.c,e.old.o];else{let s=wr(e.o)&&!e.old?e.o:r.offset(this.ts);i=Ra(this.ts,s),a=Number.isNaN(i.year)?new bt("invalid input"):null,i=a?null:i,n=a?null:s}this._zone=r,this.loc=e.loc||Se.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=i,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Tu(arguments),[a,i,n,s,o,l,d]=r;return Iu({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,r]=Tu(arguments),[a,i,n,s,o,l,d]=r;return e.zone=At.utcInstance,Iu({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,r={}){let a=Gm(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let i=vr(r.zone,Oe.defaultZone);return i.isValid?new t({ts:a,zone:i,loc:Se.fromObject(r)}):t.invalid(ki(i))}static fromMillis(e,r={}){if(wr(e))return e<-Su||e>Su?t.invalid("Timestamp out of range"):new t({ts:e,zone:vr(r.zone,Oe.defaultZone),loc:Se.fromObject(r)});throw new Qe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(wr(e))return new t({ts:e*1e3,zone:vr(r.zone,Oe.defaultZone),loc:Se.fromObject(r)});throw new Qe("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let a=vr(r.zone,Oe.defaultZone);if(!a.isValid)return t.invalid(ki(a));let i=Se.fromObject(r),n=on(e,Cu),{minDaysInFirstWeek:s,startOfWeek:o}=du(n,i),l=Oe.now(),d=K(r.specificOffset)?a.offset(l):r.specificOffset,u=!K(n.ordinal),c=!K(n.year),h=!K(n.month)||!K(n.day),p=c||h,f=n.weekYear||n.weekNumber;if((p||u)&&f)throw new Sr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new Sr("Can't mix ordinal dates with month/day");let m=f||n.weekday&&!p,y,b,v=Ra(l,d);m?(y=pg,b=ug,v=nn(v,s,o)):u?(y=hg,b=cg,v=os(v)):(y=Za,b=zc);let S=!1;for(let N of y){let B=n[N];K(B)?S?n[N]=b[N]:n[N]=v[N]:S=!0}let C=m?Wm(n,s,o):u?zm(n):gc(n),T=C||bc(n);if(T)return t.invalid(T);let A=m?ou(n,s,o):u?lu(n):n,[q,L]=Qa(A,d,a),P=new t({ts:q,zone:a,o:L,loc:i});return n.weekday&&p&&e.weekday!==P.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${P.toISO()}`):P.isValid?P:t.invalid(P.invalid)}static fromISO(e,r={}){let[a,i]=By(e);return di(a,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[a,i]=My(e);return di(a,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[a,i]=qy(e);return di(a,i,r,"HTTP",r)}static fromFormat(e,r,a={}){if(K(e)||K(r))throw new Qe("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:n=null}=a,s=Se.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0}),[o,l,d,u]=dg(s,e,r);return u?t.invalid(u):di(o,l,a,`format ${r}`,e,d)}static fromString(e,r,a={}){return t.fromFormat(e,r,a)}static fromSQL(e,r={}){let[a,i]=zy(e);return di(a,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the DateTime is invalid");let a=e instanceof bt?e:new bt(e,r);if(Oe.throwOnInvalid)throw new vs(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let a=Vc(e,Se.fromObject(r));return a?a.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return jc(gt.parseFormat(e),Se.fromObject(r)).map(a=>a.val).join("")}static resetCache(){ji=void 0,Ms.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?us(this).weekYear:NaN}get weekNumber(){return this.isValid?us(this).weekNumber:NaN}get weekday(){return this.isValid?us(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?cs(this).weekday:NaN}get localWeekNumber(){return this.isValid?cs(this).weekNumber:NaN}get localWeekYear(){return this.isValid?cs(this).weekYear:NaN}get ordinal(){return this.isValid?os(this.c).ordinal:NaN}get monthShort(){return this.isValid?pi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?pi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?pi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?pi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,a=fn(this.c),i=this.zone.offset(a-e),n=this.zone.offset(a+e),s=this.zone.offset(a-i*r),o=this.zone.offset(a-n*r);if(s===o)return[this];let l=a-s*r,d=a-o*r,u=Ra(l,s),c=Ra(d,o);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[Vr(this,{ts:l}),Vr(this,{ts:d})]:[this]}get isInLeapYear(){return Ki(this.year)}get daysInMonth(){return sn(this.year,this.month)}get daysInYear(){return this.isValid?fi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Vi(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Vi(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:a,calendar:i}=gt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:a,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(At.instance(e),r)}toLocal(){return this.setZone(Oe.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:a=!1}={}){if(e=vr(e,Oe.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||a){let n=e.offset(this.ts),s=this.toObject();[i]=Qa(s,n,e)}return Vr(this,{ts:i,zone:e})}else return t.invalid(ki(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:a}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:a});return Vr(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=on(e,Cu),{minDaysInFirstWeek:a,startOfWeek:i}=du(r,this.loc),n=!K(r.weekYear)||!K(r.weekNumber)||!K(r.weekday),s=!K(r.ordinal),o=!K(r.year),l=!K(r.month)||!K(r.day),d=o||l,u=r.weekYear||r.weekNumber;if((d||s)&&u)throw new Sr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Sr("Can't mix ordinal dates with month/day");let c;n?c=ou({...nn(this.c,a,i),...r},a,i):K(r.ordinal)?(c={...this.toObject(),...r},K(r.day)&&(c.day=Math.min(sn(c.year,c.month),c.day))):c=lu({...os(this.c),...r});let[h,p]=Qa(c,this.o,this.zone);return Vr(this,{ts:h,o:p})}plus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e);return Vr(this,wu(this,r))}minus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e).negate();return Vr(this,wu(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let a={},i=Ze.normalizeUnit(e);switch(i){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(i==="weeks")if(r){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(i==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?gt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):ds}toLocaleString(e=rn,r={}){return this.isValid?gt.create(this.loc.clone(r),e).formatDateTime(this):ds}toLocaleParts(e={}){return this.isValid?gt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:a=!1,includeOffset:i=!0,extendedZone:n=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=Ja(s);let o=e==="extended",l=ps(this,o,s);return Za.indexOf(s)>=3&&(l+="T"),l+=xu(this,o,r,a,i,n,s),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?ps(this,e==="extended",Ja(r)):null}toISOWeekDate(){return ka(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:a=!0,includePrefix:i=!1,extendedZone:n=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=Ja(o),(i&&Za.indexOf(o)>=3?"T":"")+xu(this,s==="extended",r,e,a,n,o)):null}toRFC2822(){return ka(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ka(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ps(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:a=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(a&&(i+=" "),r?i+="z":e&&(i+="ZZ")),ka(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ds}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",a={}){if(!this.isValid||!e.isValid)return Ze.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=Hm(r).map(Ze.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=Jy(o,l,n,i);return s?d.negate():d}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?yi.fromDateTimes(this,e):this}hasSame(e,r,a){if(!this.isValid)return!1;let i=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(r,a)<=i&&i<=n.endOf(r,a)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),a=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(i=e.unit,n=void 0),Fu(r,this.plus(a),{...e,numeric:"always",units:i,unit:n})}toRelativeCalendar(e={}){return this.isValid?Fu(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Qe("min requires all arguments be DateTimes");return uu(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Qe("max requires all arguments be DateTimes");return uu(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,a={}){let{locale:i=null,numberingSystem:n=null}=a,s=Se.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});return _c(s,e,r)}static fromStringExplain(e,r,a={}){return t.fromFormatExplain(e,r,a)}static buildFormatParser(e,r={}){let{locale:a=null,numberingSystem:i=null}=r,n=Se.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return new ln(n,e)}static fromFormatParser(e,r,a={}){if(K(e)||K(r))throw new Qe("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:n=null}=a,s=Se.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});if(!s.equals(r.locale))throw new Qe(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:u}=r.explainFromTokens(e);return u?t.invalid(u):di(o,l,a,`format ${r.format}`,e,d)}static get DATE_SHORT(){return rn}static get DATE_MED(){return Gu}static get DATE_MED_WITH_WEEKDAY(){return Im}static get DATE_FULL(){return Hu}static get DATE_HUGE(){return Qu}static get TIME_SIMPLE(){return Zu}static get TIME_WITH_SECONDS(){return Ju}static get TIME_WITH_SHORT_OFFSET(){return Ku}static get TIME_WITH_LONG_OFFSET(){return Yu}static get TIME_24_SIMPLE(){return Xu}static get TIME_24_WITH_SECONDS(){return ec}static get TIME_24_WITH_SHORT_OFFSET(){return tc}static get TIME_24_WITH_LONG_OFFSET(){return rc}static get DATETIME_SHORT(){return ic}static get DATETIME_SHORT_WITH_SECONDS(){return ac}static get DATETIME_MED(){return nc}static get DATETIME_MED_WITH_SECONDS(){return sc}static get DATETIME_MED_WITH_WEEKDAY(){return Fm}static get DATETIME_FULL(){return oc}static get DATETIME_FULL_WITH_SECONDS(){return lc}static get DATETIME_HUGE(){return dc}static get DATETIME_HUGE_WITH_SECONDS(){return uc}};function qi(t){if(ae.isDateTime(t))return t;if(t&&t.valueOf&&wr(t.valueOf()))return ae.fromJSDate(t);if(t&&typeof t=="object")return ae.fromObject(t);throw new Qe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Pu={Count:"count",Start:"minValue",End:"maxValue"};function mg(t,e){let r=e.errors[t];throw new dt(e.modalHeaders.error,r??e.errors.simpleError)}function nr(t){return t.axes?.[0]?.valueFormat?.type}function r1(t){return t.intlOptions}function ot(t){return t?.type===g.NumberAxisFormat}function i1(t){return ot(t)&&t.intlOptions?.style==="percent"}function Gt(t){return t?.type===g.CategoryAxisFormat}function Ur(t){return t?.type===g.DateAxisFormat}function a1(t){let{oldConfig:e,newConfig:r,rotationChanged:a}=t;return a?[!0,!0]:[e.horizontalAxisLabelsBehavior!==r.horizontalAxisLabelsBehavior,e.verticalAxisLabelsBehavior!==r.verticalAxisLabelsBehavior]}function yg(t){return ot(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||ot(t[2].valueFormat))}function gg(t){return ot(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||ot(t[2].valueFormat))}function bg(t){return(Gt(t?.[0]?.valueFormat)||Ur(t?.[0]?.valueFormat))&&ot(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||ot(t[2].valueFormat))}function vg(t){return Gt(t?.[0]?.valueFormat)&&Gt(t?.[1]?.valueFormat)||Ur(t?.[0]?.valueFormat)&&Gt(t?.[1]?.valueFormat)||Ur(t?.[0]?.valueFormat)&&Ur(t?.[1]?.valueFormat)}function Sg(t){return(Gt(t?.[0]?.valueFormat)||Ur(t?.[0]?.valueFormat))&&ot(t?.[1]?.valueFormat)}function wg(t){return ot(t?.[0]?.valueFormat)&&ot(t?.[1]?.valueFormat)}function xg(t){return ot(t?.[0]?.valueFormat)&&ot(t?.[1]?.valueFormat)}function Cg(t){return ot(t?.[0]?.valueFormat)}function n1(t){let{chartType:e,axesConfig:r,errorStrings:a}=t,i,n;switch(e){case g.GaugeSeries:i=Cg,n="invalidValueFormatForGauge";break;case g.ScatterSeries:i=wg,n="invalidValueFormatForScatterplot";break;case g.HistogramSeries:i=xg,n="invalidValueFormatForHistogram";break;case g.LineSeries:i=yg,n="invalidValueFormatForLineChart";break;case g.BarSeries:i=gg,n="invalidValueFormatForBarChart";break;case g.ComboLineAndBarSeries:i=Sg,n="invalidValueFormatForComboBarLineChart";break;case g.BoxPlotSeries:i=bg,n="invalidValueFormatForBoxPlot";break;case g.HeatSeries:i=vg,n="invalidValueFormatForHeatChart";break}i!==void 0&&n!==void 0&&(i(r)||mg(n,a))}function Ig(t){let{isXAxis:e,chartType:r,valueFormat:a,isAxisForHistogramOverlaySeries:i}=t;return e&&(Gt(a)||r===g.HistogramSeries&&!i||r===g.BarSeries&&ot(a))}function s1(t){let{chartConfig:e,isSecondValueAxis:r,seriesIds:a}=t,i=a;return e.axes?.length===3&&(i=e.series.map(n=>{let s="";return(a===void 0||a.includes(n.id))&&(r===!0&&"assignToSecondValueAxis"in n&&n.assignToSecondValueAxis===!0||r!==!0&&(!("assignToSecondValueAxis"in n)||n.assignToSecondValueAxis!==!0))&&({id:s}=n),s}).filter(n=>n!=="")),i}var Fg={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},o1={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},Tr={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},re={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},Tg=32,xr="arcgis_charts_features_extent",ke={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:da.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds"},Uc=["EXPR_1","Expr1","expr1","EXPR1"],l1=1,lt=.7,Pg=25,Gc=[156,156,156,255],Og=[156,156,156,255],d1=cr.Solid,u1=2,Wi={defaultGroupOfSlicesId:"arcgis_charts_group_of_slices",sliceIdPrefix:"arcgis-charts-slice-id",undefinedSliceId:"arcgis-charts-slice-id-undefined",nullSliceId:"arcgis-charts-slice-id-null",emptySliceId:"arcgis-charts-slice-id-empty"},Pi="arcgis_charts_box_plot_category",Ie={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},Ag=[[31,120,180,255],[166,206,227,255],[51,160,44,255],[178,223,138,255],[227,26,28,255],[251,154,153,255],[255,127,0,255],[253,191,111,255],[106,61,154,255],[202,178,214,255]],Eg=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]];function Et(t){let{colorIndex:e,opacity:r,histogramOverlays:a}=t,i=Math.max(0,e??0),n=[...a===!0?Eg:Ag],[s,o,l,d]=n[i%n.length],u=r!==void 0?r*255:d;return[s,o,l,u]}function Hc(t){return[0,0,0,(t??lt)*255]}function c1(){return{type:g.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:we.SLS,style:cr.Dot,color:[211,211,211,255],width:1}}}function gn(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function me(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case re.ChartTitle:e.size=18;break;case re.AxisTitle:e.size=14;break;case re.LegendText:e.size=12;break;case re.LegendTitle:e.size=13;break;case re.DescriptionText:e.size=11;break}return e}function Qc(t="",e=me(),r){let a=ye.Center;return(r===re.DataLabels||r===re.GuideLabel)&&(a=void 0),{type:we.TS,color:Hc(),text:t,font:e,horizontalAlignment:a}}function oe(t){let{text:e,visible:r,font:a,type:i}=t??{text:"",visible:!0,font:me()};return{type:g.Text,visible:r,content:Qc(e,a,i)}}function ea(t){let e=t?.useRandomColor??!1,r=t?.useRampColor,a=t?.width??1,i=t?.isHistogramOverlay,n=t?.color??Hc(1);return e?n=gn():r!==void 0&&(i===!0?n=Et({colorIndex:r.colorIndex,histogramOverlays:i}):n=Et({colorIndex:r.colorIndex})),t?.opacity!==void 0&&(n[3]=t.opacity),{type:we.SLS,style:cr.Solid,color:n,width:a}}function Lg(){return{type:g.CategoryAxisFormat,characterLimit:11}}function p1(){return{type:g.DateAxisFormat,intlOptions:{}}}function qs(){return{type:g.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function h1(){return{type:g.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function f1(){return{type:g.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function hs(t="Category Axis"){let e=oe({text:t,visible:!0,font:me(re.AxisTitle)});e.content.horizontalAlignment=ye.Center,e.content.verticalAlignment=Pe.Middle;let r=oe({text:t,visible:!0,font:me(re.AxisLabels)});return{type:g.Axis,visible:!0,title:e,labels:r,valueFormat:Lg(),lineSymbol:ea({color:Gc})}}function Ka(t="Value Axis"){let e=oe({text:t,visible:!0,font:me(re.AxisTitle)}),r=oe({text:t,visible:!0,font:me(re.AxisLabels)});return e.content.verticalAlignment=Pe.Middle,e.content.horizontalAlignment=ye.Center,{type:g.Axis,visible:!0,title:e,labels:r,valueFormat:qs(),lineSymbol:ea({color:Gc})}}function Pr(){return{type:g.Legend,visible:!0,title:oe({text:"",visible:!0,font:me(re.LegendTitle)}),body:Qc("",me(re.LegendText)),position:Bi.Right,maxHeight:Number.NaN}}function ja(t){return{type:g.Overlay,visible:!0,created:!1,symbol:ea({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function Or(){return[255,255,255,255]}function sr(t){return t.utilsStrings.chartType.chart}function or(){return`Chart ${Date.now()}`}function m1(t,e=!1){return{type:we.SFS,style:qr.Solid,color:e?gn(lt):Et({colorIndex:t??0,opacity:lt})}}function Dg(t=0){return{type:we.SMS,style:ua.Circle,color:Et({colorIndex:t,opacity:lt}),size:5}}function Ng(t){return{type:we.SLS,style:cr.Solid,color:Et({colorIndex:t,opacity:lt}),width:2}}function $g(t=!1){return{type:we.SMS,style:ua.Circle,color:t?gn(lt):Et({colorIndex:0,opacity:lt}),size:7}}function y1(){return{type:g.SizePolicy,field:"",scaleType:Mo.Linear,minSize:5,maxSize:30}}function Bg(t=!1){return{type:g.Overlays,trendLine:{type:g.Overlay,created:!1,visible:!0,symbol:{type:we.SLS,style:cr.Solid,color:t?gn():Et({colorIndex:1}),width:2}}}}function Mg(t){let e=t??"ObjectID";return{type:g.HeatSeries,id:g.HeatSeries,name:g.HeatSeries,y:"",x:"",dataLabels:oe({text:"",visible:!1,font:me(re.DataLabels)}),query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:"coutnt_objectt_id"}]}}}function qg(){return{type:g.ScatterSeries,id:g.ScatterSeries,name:g.ScatterSeries,x:"",y:"",markerSymbol:$g(),overlays:Bg(),dataLabels:oe({text:"",visible:!1,font:me(re.DataLabels)})}}function Zr(t,e){let r=[],a=t.xAxis,i=t.utilsStrings.statistics.count,n,s,o=ea({opacity:Pg});switch(e===g.HeatSeries?s=hs(i):(s=Ka(i),s.grid=o),e){case g.BarSeries:case g.HeatSeries:{n=hs(a);break}case g.ScatterSeries:{n=Ka(a),n.grid=o;break}case g.RadarSeries:case g.LineSeries:case g.HistogramSeries:{n=Ka(a);break}case g.BoxPlotSeries:{n=hs("");break}}return n!==void 0&&r.push(n,s),r}function Rg(){return{type:g.GaugeNeedle,symbol:{type:we.SFS,color:[0,0,0,200]}}}function kg(t){let e=[],r=t.xAxis,a=Ka(r);return a.needle=Rg(),e.push(a),e}function jg(t){let e=t.commonStrings,r=t.objectIDField??"ObjectID",a=`${j.Count}_${r}_0`.toUpperCase(),i=e.countSeries;return{type:g.LineSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:Ng(t.seriesIndex),markerSymbol:Dg(t.seriesIndex),dataLabels:oe({text:"",visible:!1,font:me(re.DataLabels)}),temporalBinning:{unit:H.Day,size:0,timeAggregationType:Be.Start,trimIncompleteTimeInterval:!0,nullPolicy:at.Interpolate}}}function g1(t){return{...jg(t),type:g.RadarSeries}}function _g(t){return{type:we.SFS,style:qr.Solid,color:Et({colorIndex:t,opacity:lt})}}function b1(t){let e=t.objectIDField??"ObjectID",r=t.commonStrings,a=`${j.Count}_${e}_0`.toUpperCase(),i=r.countSeries;return{type:g.BarSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:_g(t.seriesIndex),dataLabels:oe({text:"",visible:!1,font:me(re.DataLabels),type:re.DataLabels})}}function v1(t,e){let r=t.countSeries;return{name:r,type:g.BoxPlotSeries,id:r,fillSymbol:{type:we.SFS,style:qr.Solid,color:Et({colorIndex:e,opacity:lt})},query:{},x:Pi,y:""}}function Vg(){return{type:g.PieTick,visible:!0,lineSymbol:ea({width:1,color:Og})}}function Wg(){return{type:we.SFS,style:qr.Solid}}function S1(t,e){let r=`${j.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:g.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:r}],groupByFieldsForStatistics:[]},x:"",y:r,fillSymbol:Wg(),dataLabels:oe({text:"",visible:!1,font:me(re.DataLabels),type:re.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...qs(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...qs(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:Vg()}}function w1(t){let e=t.objectIDField??"ObjectID",r=`${j.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:g.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:r}]},x:""}}function zi(){return!1}function x1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,rotated:zi(),orderOptions:{data:{orderType:nt.Category,orderBy:We.Ascending}},title:oe({text:sr(t),visible:!0,font:me(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:me(re.DescriptionText)}),background:Or(),axes:Zr(t,g.BarSeries),series:[],legend:Pr()}}function C1(t,e=or()){return{version:ar,type:g.Chart,id:e,rotated:zi(),colorMatch:!0,orderOptions:{data:{orderType:nt.Category,orderBy:We.Ascending}},title:oe({text:sr(t),visible:!0,font:me(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:me(re.DescriptionText)}),background:Or(),series:[],legend:Pr(),axes:Zr(t,g.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function I1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,rotated:zi(),orderOptions:{data:{orderType:nt.Category,orderBy:We.Ascending}},title:oe({text:sr(t),visible:!0,font:me(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:me(re.DescriptionText)}),background:Or(),axes:Zr(t,g.LineSeries),series:[],legend:Pr()}}function F1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:nt.Category,orderBy:We.Ascending}},title:oe({text:sr(t),visible:!0,font:me(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:me(re.DescriptionText)}),background:Or(),axes:Zr(t,g.RadarSeries),series:[],legend:Pr()}}function T1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:nt.YValue,orderBy:We.Descending}},title:oe({text:sr(t),visible:!0,font:me(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:me(re.DescriptionText)}),background:Or(),series:[],legend:{...Pr(),displayNumericValue:!1,displayPercentage:!0}}}function P1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,title:oe({text:sr(t),visible:!0,font:me(re.ChartTitle)}),series:[],axes:kg(t)}}function O1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,title:oe({text:sr(t),visible:!0,font:me(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:me(re.DescriptionText)}),background:Or(),axes:Zr(t,g.ScatterSeries),series:[qg()],legend:Pr()}}function A1(t,e){return{version:ar,type:g.Chart,id:or(),title:oe({text:sr(t),visible:!0,font:me(re.ChartTitle)}),background:Or(),axes:Zr(t,g.HeatSeries),series:[Mg(e)],legend:{...Pr(),position:Bi.Bottom}}}function zg(){return{type:g.Overlays,mean:ja(1),median:ja(2),standardDeviation:ja(3),comparisonDistribution:ja(4)}}function Ug(){return{type:we.SFS,style:qr.Solid,color:Et({colorIndex:0,opacity:lt})}}function Gg(){return{type:g.HistogramSeries,id:g.HistogramSeries,name:g.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:zg(),dataTransformationType:He.None,fillSymbol:Ug(),dataLabels:oe({text:"",visible:!1,font:me(re.DataLabels)})}}function E1(t,e=or()){return{version:ar,type:g.Chart,id:e,colorMatch:!0,title:oe({text:sr(t),visible:!0,font:me(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:me(re.DescriptionText)}),background:Or(),axes:Zr(t,g.HistogramSeries),series:[Gg()],legend:Pr()}}var fs={behaviorAfterLimit:Tr.Reject,maxCategoryCount:Number.NaN,maxBarChartSeriesCount:100,maxBarUniqueSeriesCountTotal:1e4,maxBarTwoSeriesCountPerSeries:1e3,maxBarTwoSeriesCountTotal:2e3,maxBarThreePlusSeriesCountPerSeries:100,maxBarThreePlusSeriesCountTotal:2e3,maxScatterPointsBeforeAggregation:1e4,maxScatterPointsAfterAggregation:1e4,maxLineChartSeriesCount:100,maxLineUniqueSeriesCountTotal:1e4,maxLineTwoSeriesCountPerSeries:5e3,maxLineTwoSeriesCountTotal:1e4,maxLineThreePlusSeriesCountPerSeries:1e3,maxLineThreePlusSeriesCountTotal:1e4,maxPieChartSliceCountTotal:300,maxGaugeByFeaturesLimit:50,maxBoxPlotSeriesCount:100,maxBoxUniqueSeriesCountTotal:1e4,maxBoxTwoSeriesCountPerSeries:1e3,maxBoxTwoSeriesCountTotal:2e3,maxBoxThreePlusSeriesCountPerSeries:100,maxBoxThreePlusSeriesCountTotal:2e3,maxBoxPlotOutlierLimit:1e4,maxHeatChartCellLimit:1e4};function Jr(t){let e={...fs};return t!==void 0&&Object.keys(fs).forEach(r=>{let a=r;e[a]=t[a]??fs[a]}),e}function ta(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:200}}function L1(t,e){let r;switch(t){case j.Average:{r=e.utilsStrings.statistics.mean;break}case j.ContinuousPercentile:{r=e.utilsStrings.statistics.median;break}case j.Sum:{r=e.utilsStrings.statistics.sum;break}case j.Minimum:{r=e.utilsStrings.statistics.minimum;break}case j.Maximum:{r=e.utilsStrings.statistics.maximum;break}case j.Variance:{r=e.utilsStrings.statistics.variance;break}case j.DiscretePercentile:{r=e.utilsStrings.statistics.discretePercentile;break}case j.NoAggregation:{r=e.utilsStrings.statistics.noAggregation;break}case j.Count:default:{r=e.utilsStrings.statistics.count;break}}return r}function D1(t,e){let r;switch(t){case Be.End:{r=e.timeAggregationTypes.end;break}case Be.Start:{r=e.timeAggregationTypes.start;break}default:r="";break}return r}function Hg(){return mt.Side}function N1(t){return t.utilsStrings.notAvailable}var Qg=0,Zg="_arcgis_charts_outliers",Jg="_arcgis_charts_z_score",$1=[210,210,210,255*lt],B1=" percentage ",ms=[150,150,150,255],O={aria:{defaultChartItemRole:"figure"},title:{marginBottom:8,wrap:!0},subtitle:{marginBottom:10,wrap:!0},rotated:!1,legendProperties:{legendLabels:{marginLeft:5,marginRight:5,truncate:!1,applyOnClones:!0,wrap:!0,maxWidth:200},valueLabels:{wrap:!0,maxWidth:200},legendTitle:{wrap:!0,maxWidth:220,marginLeft:10,marginRight:10,marginTop:10},legendMarkersSize:14,legendLabelReducedOpacity:.5,rectangleMarkerRadius:3,roundedMarkerRadius:12,legendPaddingRightWithScrollbarVisible:10,maxHeight:100,marginTop:2,marginBottom:2,marginLeft:0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,position:Bi.Right},footer:{wrap:!0,horizontalCenter:ye.Center,verticalCenter:Pe.Middle,align:ye.Center},axisLabel:{rotation:0,align:ye.Center,horizontalCenter:ye.Center,verticalCenter:Pe.Top,dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:ye.Left,verticalCenter:Pe.Bottom,dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:ye.Center,verticalCenter:Pe.Middle,dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:ye.Center,valign:Pe.Middle,rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:ye.Center,valign:Pe.Middle,rotation:270,wrap:!0},titleLabel:{align:ye.Center,wrap:!0},subtitleLabel:{align:ye.Center,wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:ye.Right,align:ye.Right,verticalCenter:Pe.Middle,wrap:!0},horizontalLineGuideLabels:{horizontalCenter:ye.Right,align:ye.Right,verticalCenter:Pe.Top,wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:ye.Center,verticalCenter:Pe.Top,valign:Pe.Top},verticalLineGuideLabels:{horizontalCenter:ye.Right,verticalCenter:Pe.Bottom,valign:Pe.Top,wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:we.SLS,style:cr.Dash,color:[0,0,0,102],width:1},horizontalLineVisible:!1,verticalLineVisible:!1},gauge:{innerRadius:80,radius:80,startAngle:-180,endAngle:180,innerLabelToInnerChartRatio:.5,axisLabelToInnerChartRatio:.13,innerLabelAutoMinFontSize:14,innerLabelAutoMaxFontSize:100,axisLabelAutoMinFontSize:14,axisLabelAutoMaxFontSize:40,gaugeMinGridDistance:1,axisMinimum:0,axisMaximum:100,numberOfLabelIntervals:5,numberOfTicksBetweenTwoLabels:4,maximumNumberOfLabelIntervals:24,paddingTop:10,paddingBottom:10,paddingRight:5,paddingLeft:5},gaugeTicksLength:7,gaugeInnerLabel:{horizontalCenter:ye.Center,verticalCenter:Pe.Middle},gaugeNeedle:{startWidth:10,endWidth:1,innerRadius:25,displayPin:!1},gaugeFirstLabelId:"arcgis_charts_gauge_first_label",gaugeLastLabelId:"arcgis_charts_gauge_last_label",headerContainer:{layout:"vertical",width:"100%",paddingBottom:5},footerContainer:{layout:"vertical",width:"100%",paddingTop:5,paddingBottom:15},paddingMinSize:0,marginMinSize:0,chartPaddingMinSize:7,chartPaddingRightWhenLegendNotOnRight:15,chartAndLegendContainer:{paddingTop:0},chartContainer:{paddingBottom:0,paddingTop:15},chartContainerPaddingTopWhenRotated:5,dataLabelInitialize:{strokeWidth:0,applyOnClones:!0},dataLabel:{align:ye.Center,horizontalCenter:ye.Center,valign:Pe.Bottom,verticalCenter:Pe.Top,dy:-3},dataLabelRotated:{align:ye.Right,horizontalCenter:ye.Right,valign:Pe.Middle,verticalCenter:Pe.Middle,dx:2},dataLabelStackedRotated:{align:ye.Center,horizontalCenter:ye.Center,valign:Pe.Middle,verticalCenter:Pe.Middle},dataLabelStackedNonRotated:{align:ye.Center,horizontalCenter:ye.Center,valign:Pe.Middle,verticalCenter:Pe.Middle},dataLabelNegative:{paddingTop:5,paddingRight:5},rotatedChartPadding:{paddingTop:2,paddingRight:2},scatterplotSeries:{strokeOpacity:0,r2:Number.NaN,trendLinePoints:[{},{}]},histogramSeries:{normalDistribNumberOfPoints:100},lineSeries:{strokeWidth:2,lineSmoothed:!1,lineSmoothedKind:No.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:mt.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:5,markerStyle:ua.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,defaultStatParameterValue:.5,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:Qg,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:Wi.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:we.SFS,color:[210,210,210,255*lt]}},defaultPadding:0,alignDataLabels:!1,ticksOpacity:1,minimumSize:20,technicalFieldSliceId:"arcgis_charts_slice_id",technicalFieldSlicePercent:"arcgis_charts_slice_percent",technicalFieldGroupedSlices:"arcgis_charts_grouped_slices"},pieSliceCustomLabelName:"customLabel",yAxisLabelMaxWidth:100,xAxisLabelMaxWidth:75,axisLabelPadding:1.5,categoryAxisLabelPadding:3,seriesSort:We.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],lightTextColor:[255,255,255,255],darkTextColor:[0,0,0,255],grayColor:ms,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderBackground:[255,255,255,230],loaderSpinnerColor:[0,122,194,255],loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",markerTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalDateValue:"arcgis_charts_original_date_value",typeOrDomainFieldName:"arcgis_charts_type_domain_field_name",typeOrDomainIdValue:"arcgis_charts_type_domain_id_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_axis_field",nullValue:"arcgis_charts_null",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:we.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:we.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:Fg.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_arcgis_charts_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",options:{hideEmptySeries:!0,replaceNoValueCategoryWithZero:!0,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",symbol:{type:we.SFS,color:ms,outline:{type:we.SLS,style:cr.Solid,color:ms,width:1}}}},Zc={...O,chartPadding:5,footerContainer:{...O.footerContainer,paddingTop:0,paddingBottom:0},headerContainer:{...O.headerContainer,paddingBottom:0},chartContainer:{...O.chartContainer},dataLabel:{...O.dataLabel,verticalCenter:"bottom"},scrollbarPadding:12,zIndexes:{guide:100,scatterplotTrendLine:2,bulletMarkers:1},verticalSurfaceGuideLabels:{wrap:!0},verticalLineGuideLabels:{wrap:!0,rotation:90},horizontalSurfaceGuideLabels:{wrap:!0},horizontalLineGuideLabels:{wrap:!0},overlayId:{scatterplotTrendLine:"arcgis_charts_scatter_plot_trendline",histogramMean:"arcgis_charts_histogram_mean",histogramMedian:"arcgis_charts_histogram_median",histogramStdDev:"arcgis_charts_histogram_std_dev",histogramNormalDistribution:"arcgis_charts_histogram_normal_distribution"},axisLabelSpacing:{verticalAxisLabelSidePadding:8,horizontalAxisLabelPaddingTop:6},legendPadding:20,heatChart:{gradientHeatRules:{minColor:[255,255,200,255],maxColor:[255,0,0,255],outsideRangeLowerColor:[250,250,250,255],outsideRangeUpperColor:[0,0,255,255]},legend:{position:Bi.Bottom,chartPadding:40,legendPadding:20,size:20},emptyCells:{symbol:{type:we.SFS,style:qr.Solid,color:O.grayColor},text:"null"}},heatChartLabelPadding:{paddingTop:2},heatChartFirstDayOfWeek:7,pieChartDataLabel:{minWidth:30}};function Kg(t){let{stringToTruncate:e,characterLimit:r,ellipsis:a=O.chartEllipsis}=t,i=e;return typeof r=="number"&&Number.isFinite(r)&&r>0&&r<e.length&&(i=e.slice(0,r),i=`${i}${a}`),i}function M1(t,e=":"){return t?`\u200F${e}`:`\u200E${e}`}function q1(t){return e=>{let r=typeof e!="string"?e?.toString()??"":e;return!Re(r)&&r!==O.htmlEmptyContent&&(r=Kg({stringToTruncate:r,characterLimit:t})),r}}function Yg(t){let e=/[[]/gu,r=/[\]]/gu,a=/[{]/gu,i=/[}]/gu,n=/[']/gu;return t=t.replace(e,"[["),t=t.replace(r,"]]"),t=t.replace(a,"{{"),t=t.replace(i,"}}"),t=t.replace(n,"''"),t}function Xg(t,e){let r="";return t!==void 0&&(r=`${e==="amChartsV5"?"fontStyle":"font-style"}:${t};`),r}function eb(t,e){let r="";return t===!0&&(r=`${e==="amChartsV5"?"letterSpacing":"letter-spacing"}:1px;`),r}function R1(t){let{textSymbol:e,placeholderString:r,format:a,axisLabelsBehavior:i,defaults:n}=t,s=Xg(e?.font?.style,a),o=eb(e?.kerning,a),l=r??e?.text??"";if(a==="html"){let{wrap:d,maxWidth:u}=n??{};i===$o.Wrap&&(d=!0,u=u??O.xAxisLabelMaxWidth);let c=d===!0&&Number.isFinite(u)?`max-width: ${u}px; word-break: break-word;`:"";l=`<p style="margin:0;${s}${o}${c}">${l}</p>`}else l=Yg(l),(s!==""||o!=="")&&(l=`[${s}${o}]${l}[/]`);return l}function tb(t){return t?t.replace(/[A-Z]/gu,e=>`-${e.toLowerCase()}`):void 0}function rb(t,e){return t[0].dataTransformationType!==e[0].dataTransformationType}function ib(t,e){return t[0].binCount!==e[0].binCount}function k1(t,e){let r=!0,a=X(t?.series),i=X(e?.series);return a!==i&&(r=a===g.ComboLineAndBarSeries&&(i===g.BarSeries||i===g.LineSeries)||i===g.ComboLineAndBarSeries&&(a===g.BarSeries||a===g.LineSeries)||a===g.BarSeries&&i===g.LineSeries||a===g.LineSeries&&i===g.BarSeries),r}function Rs(t,e){return t!==void 0&&e!==void 0&&e>0}function j1(t){let{chartConfig:e,queryObject:r,chartData:a}=t,i=[],n=Y(e.series),s=mp(e),o=ue(r),l=e.chartRenderer??o?.renderer?.toJSON();return i=e.series.map((d,u)=>{let c=X([d]),h;return(c===g.BarSeries||c===g.LineSeries||c===g.RadarSeries)&&(d.type===g.BarSeries?h=d.fillSymbol?.color:(d.type===g.RadarSeries||d.type===g.LineSeries)&&(h=d.lineSymbol?.color),s?h=fb({dataItem:a[0],seriesConfig:d,chartSubType:n,colorMatch:s,rendererType:l?.type})?.color:h===void 0&&(h=Et({colorIndex:u}))),h}).filter(d=>d!==void 0),i}function ks(t){return t!==x.PieNoAggregation&&t!==x.BarAndLineNoAggregation&&t!==x.BarAndLineSplitByNoAggregation}function ab(t){let e=Y(t.series);return e===x.BarAndLineFromFields||e===x.PieFromFields||e===x.BoxPlotMonoField||e===x.BoxPlotMultiFields||e===x.BoxPlotMonoFieldAndSplitBy||e===x.BoxPlotMultiFieldsAndSplitBy}function Ui(t){return t&&"showMean"in t&&typeof t.showMean=="boolean"?t.showMean:!1}function nb(t){return t&&"showOutliers"in t&&typeof t.showOutliers=="boolean"?t.showOutliers:void 0}function _1(){return`{name} {${O.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`}var hi={ChartRenderer:1,LayerRenderer:2};function V1(t){let{chartConfig:e,queryObject:r}=t,a=!1;if(e.chartRenderer)a=!0;else{let{series:i}=e,n=X(i),s=Y(i),o=Ar(e),l=Yr({seriesConfig:o}),d=ue(r)?.renderer;switch(d?.type){case Ye.Simple:a=n===g.HistogramSeries||n===g.ScatterSeries||s===x.BarAndLineMonoField||s===x.BoxPlotMonoField||s===x.BoxPlotMultiFields||s===x.BoxPlotMonoFieldAndCategory||s===x.BarAndLineNoAggregation&&i.length===1&&!l;break;case Ye.UniqueValue:{let u=d?.field,c=Xe(o.query?.where),{x:h}=o;a=(s===x.BoxPlotMonoFieldAndSplitBy||s===x.BoxPlotMultiFieldsAndSplitBy||s===x.BoxPlotMonoFieldAndCategoryAndSplitBy||s===x.BarAndLineSplitByNoAggregation||s===x.BarAndLineSplitBy)&&u===c||(s===x.BoxPlotMonoFieldAndCategory||s===x.PieFromCategory||s===x.BarAndLineMonoField)&&u===h||s===x.BarAndLineNoAggregation||s===x.PieNoAggregation||n===g.ScatterSeries}break;case Ye.PieChart:a=s===x.PieFromFields||s===x.BarAndLineFromFields||s===x.BarAndLineMultiFields||s===x.BarAndLineMonoField||s===x.BoxPlotMonoField||s===x.BoxPlotMultiFields||s===x.BoxPlotMonoFieldAndCategory||s===x.BoxPlotMultiFieldsAndCategory;break;case Ye.ClassBreaks:a=n===g.HeatSeries||n===g.ScatterSeries||s===x.BarAndLineNoAggregation||s===x.PieNoAggregation;break;case Ye.Dictionary:case Ye.DotDensity:case Ye.Heatmap:break}}return a}function sb(t,e){return tb(t?.type)??e?.type}function ob(t){let e=O.rendererSymbolField,r=e in t?e:void 0;if(!r){let a=t[O.originalCategoryValue];r=Object.keys(t).find(i=>{let n=t[i];return i.includes(e)&&n?.label&&n?.uniqueValue===a}),r||(r=Object.keys(t).find(i=>i.includes(e))??"")}return t[r]?.label}function lb(t){return t?.type!==void 0&&(t.color!==void 0||t.label!==void 0||t.style!==void 0||t.outline!==void 0)}function Jc(t){let{symbolField:e,dataItem:r,rendererSymbol:a,rendererOrigin:i}=t,n=!1;if(!lb(a))delete r[e];else{let s={...a};s.color!==void 0&&i===hi.LayerRenderer&&(s.color[3]=lt*255),i===hi.LayerRenderer&&(delete s.style,delete s.outline,delete s.label),r[e]=s,n=!0}return n}function db(t){let{renderer:e,seriesConfig:r,chartSubType:a,dataItem:i,rendererOrigin:n}=t,s,o=!1,l=X(r),{outline:d,attributes:u}=e;return u.forEach(c=>{let{field:h}=c,{color:p,label:f}=c,m;Array.isArray(p)&&p?.length===4?m=p:p&&"toRgba"in p&&(m=p.toRgba());let y=!1,b=!0;switch(l){case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:case g.RadarSeries:if(a!==x.BarAndLineFromFields){let v=r.find(S=>S.query?.outStatistics?.[0]?.onStatisticField===h);v!==void 0&&"y"in v?h=[v.y].flat()[0]:h=""}y=a!==x.BarAndLineFromFields||h===i[O.originalCategoryValue];break;case g.PieSeries:y=a===x.PieFromFields&&h===i[O.originalCategoryValue];break;case g.BoxPlotSeries:a===x.BoxPlotMonoField||a===x.BoxPlotMonoFieldAndCategory?y=h===r[0].y:h&&(a===x.BoxPlotMultiFields||a===x.BoxPlotMultiFieldsAndCategory)&&(y=r.map(v=>v.y).flat().includes(h)),b=!1;break}y&&m&&(s={type:we.SMS,color:m,label:b&&f?f:void 0},d!=null&&(s.outline=d),Jc({dataItem:i,symbolField:a===x.BarAndLineFromFields||a===x.PieFromFields?O.rendererSymbolField:`${O.rendererSymbolField}_${h}`,rendererSymbol:s,rendererOrigin:n})&&(o=!0))}),{rendererSymbol:s,colorMatchApplied:o}}function ub(t){let{seriesConfig:e,chartSubType:r,rendererType:a}=t,i=O.rendererSymbolField;if(a===Ye.UniqueValue){if(gp(r)){let n=ut({where:e.query?.where,keepSurroundingQuotes:!1,escape:!1});n===null?i=O.nullValue:r===x.BarAndLineSplitBy&&typeof e.y=="string"?i=e.y:r===x.BarAndLineSplitByNoAggregation&&typeof e.y=="string"?i=`${e.y}_${n}`:i=`${n}`}}else if(a===Ye.PieChart)switch(r){case x.BoxPlotMultiFields:i=Array.isArray(e.y)?e.y.flat():e.y;break;case x.BarAndLineMonoField:case x.BarAndLineMultiFields:case x.BoxPlotMonoField:case x.BoxPlotMonoFieldAndCategory:case x.BoxPlotMultiFieldsAndCategory:i=e.y;break}return i}function Kc(t){let{seriesConfig:e,chartSubType:r,rendererType:a,dataItem:i}=t,n=ub({seriesConfig:e,chartSubType:r,rendererType:a});return n instanceof Array&&e.type===g.BoxPlotSeries&&a===Ye.PieChart&&i!==void 0&&(n=n.find(s=>s===i[Pi])??n[0]),n=n!==O.rendererSymbolField?`${O.rendererSymbolField}_${n.toString()}`:n,n}function cb(t){let{chartRenderer:e,queryObject:r}=t,a=e!==void 0?{...ue(r),renderer:Zs.fromJSON(e)}:ue(r);return new vm({layer:a})}async function pb(t){let{seriesConfig:e,dataItem:r,renderer:a,rendererType:i,rendererOrigin:n,chartSubType:s,splitByField:o,graphicTemplate:l,rendererFieldNames:d,mapAttributesToSymbol:u}=t,c,h=!1;if(i===Ye.PieChart){let p=db({renderer:a,seriesConfig:e,chartSubType:s,dataItem:r,rendererOrigin:n});c=p.rendererSymbol,h=p.colorMatchApplied}else if(!kp(r)){let{x:p}=e[0],f=new Map;o&&o.trim()!==""?e.forEach(m=>{if(m.type===g.BarSeries||m.type===g.LineSeries||m.type===g.BoxPlotSeries||m.type===g.RadarSeries){let y=Kc({seriesConfig:m,chartSubType:s,rendererType:i,dataItem:r}),b=ut({where:m.query?.where,normalize:!0,keepSurroundingQuotes:!1,escape:!1});f.set(y,{...r,[o]:b})}}):e[0].type===g.HeatSeries&&i===Ye.ClassBreaks?f.set(O.rendererSymbolField,{[Ie.valueField]:r[Ie.valueField]}):f.set(O.rendererSymbolField,{...r,[p]:bb(r)});try{let m=Array.from(f.entries()),y=l.clone();y.layer=l.layer;let b=a?.uniqueValueInfos;for(let v=0;v<m.length;v+=1){let[S,C]=m[v];if(Ou({mode:"encode",x:p,splitByField:o,attributes:C}),d&&d.length>0&&Object.keys(C).forEach(T=>{d.includes(T)||delete C[T]}),y.attributes=C,u?.has(JSON.stringify(C)))c=u.get(JSON.stringify(C));else{if(c=(await xi.getDisplayedSymbol(y))?.toJSON(),c!=null){c.color===void 0&&(c.color=(await xi.getDisplayedColor(y))?.toJSON());let T=await xi.getLegendLabel(y);T!=null&&T!==""&&(c.label=T,c.uniqueValue=b?.find(A=>A.label===T)?.value??void 0)}u?.set(JSON.stringify(C),c)}Ou({mode:"revert",x:p,splitByField:o,attributes:r}),Jc({dataItem:r,symbolField:S,rendererSymbol:c,rendererOrigin:n})&&(h=!0)}}catch{}}return{rendererSymbol:c,colorMatchApplied:h}}function hb(t){let e=t;return t?.type==="uniqueValue"&&(t.uniqueValueInfos=t.uniqueValueInfos.map(r=>{let a=r.value===null?O.nullValue:r.value;return{...r,value:a}})),e}function Ou(t){let{splitByField:e,attributes:r,x:a,mode:i}=t;[a,e??""].forEach(n=>{r[n]===(i==="encode"?null:O.nullValue)&&(r[n]=i==="encode"?O.nullValue:null)})}async function W1(t){let{data:e,queryObject:r,chartConfig:a,allowColorMatch:i}=t,n=!1,s=[];if(i){let{series:o,chartRenderer:l}=a,d=hb(l),u=d?hi.ChartRenderer:hi.LayerRenderer,c=r?ue(r):void 0,h=d??c?.renderer,p;c&&u===hi.LayerRenderer?s=await Qp(c):u===hi.ChartRenderer&&(s=yb(h));let f=sb(d,c?.renderer),m=cb({chartRenderer:l,queryObject:r}),y=Y(o),b=Ar(a),v=Xe(b.query?.where);p=new Map;for(let S=0;S<e.length;S+=1){let C=e[S],T=await pb({seriesConfig:a.series,dataItem:C,renderer:h,rendererType:f,rendererOrigin:u,chartSubType:y,splitByField:v,graphicTemplate:m,mapAttributesToSymbol:p,rendererFieldNames:s});n=n||T.colorMatchApplied}}return{dataItems:e,colorMatchApplied:n,rendererFieldNames:s}}function fb(t){let{dataItem:e,seriesConfig:r,chartSubType:a,colorMatch:i,rendererType:n}=t,s;if(i&&e!==void 0){let o=Kc({seriesConfig:r,chartSubType:a,rendererType:n,dataItem:e});s=e[o]}return s}function z1(t){let{seriesSymbol:e,rendererSymbol:r,colorIndex:a}=t,i=r?.color??e.color;i=i??Et({colorIndex:a,opacity:lt});let n={...e,color:i};return r?.type===e.type&&r.style!==void 0&&(n.style=r.style),n.type!==we.SLS&&(n.outline={type:we.SLS,style:r?.outline?.style??n.outline?.style,width:r?.outline?.width??n.outline?.width,color:r?.outline?.color??n.outline?.color??r?.color}),n}function mb(t){let e=[];return t&&(e=t.series.flatMap(r=>r.query?.outStatistics?.map(a=>a.onStatisticField)).filter(r=>r!==void 0),e.length===0&&(e=tt(t.series))),e}function U1(t,e){let r=!1;if(t&&e&&e.length>0&&mp(t)){let a=ab(t),i=Ar(t);a?r=mb(t).some(n=>e.includes(n)):r=e.includes(i.x)}return r}function yb(t){let e=[];if(t&&"type"in t&&typeof t.type=="string")switch(t.type){case"uniqueValue":"field1"in t&&typeof t.field1=="string"&&(e=[t.field1]);break;case"classBreaks":"field"in t&&typeof t.field=="string"&&(e=[t.field]);break;case"pieChart":"attributes"in t&&Array.isArray(t.attributes)&&(e=t.attributes.map(r=>r.field));break}return e}function gb(t){let e;return t?.[0]!==void 0&&(e=t.reduce((r,a)=>({...r,xmin:Math.min(r.xmin,a.xmin),xmax:Math.max(r.xmax,a.xmax),ymin:Math.min(r.ymin,a.ymin),ymax:Math.max(r.ymax,a.ymax)}),t[0])),e}function Gi(t){let{value:e,dataContext:r,specificField:a,preferLabel:i,keepNullValues:n=!1,useRendererLabel:s=!1,config:o}=t,l=e,{originalCategoryValue:d,originalDateValue:u,typeOrDomainIdValue:c}=O;if(r!==void 0){let h=s?ob(r):void 0;a!==void 0&&r[a]!==void 0?l=r[a]:h!==void 0?l=h:i===!1&&r[c]!==void 0?l=r[c]:r[u]!==void 0?l=r[u]:r[d]!==void 0?l=r[d]:r[st]!==void 0&&(l=r[st]),!n&&l===null&&(l="null",o?.series?.[0].type===g.BarSeries&&(l=o.series?.[0]?.nullCategory?.text??Zc.nullCategory?.text??l))}return l}function bb(t){return t?.[O.typeOrDomainIdValue]!==void 0?t?.[O.typeOrDomainIdValue]:t?.[O.originalCategoryValue]}function Hi(t){let{arrayToSort:e,orderBy:r,sortingField:a,forceAscendingOrder:i,isNonAggregated:n,sortByCategory:s,preferLabel:o,isPieOrByFieldsChart:l}=t;if(e!==void 0&&e.length>1){let d=r===We.Descending&&i!==!0;e.sort((u,c)=>{let h=0,p=u[a];s===!0&&!l&&(p=Gi({value:`${u[a]?.toString()}`,dataContext:u,preferLabel:o}));let f=c[a];return s===!0&&!l&&(f=Gi({value:`${c[a]?.toString()}`,dataContext:c,preferLabel:o})),n===!0&&d&&s===!0&&(p=Number.isNaN(Number.parseFloat(`${p?.toString()}`))?p:Number.parseFloat(p),f=Number.isNaN(Number.parseFloat(`${f?.toString()}`))?f:Number.parseFloat(f)),s===!0&&(u[O.originalCategoryValue]===null||p===null)||u[Wi.defaultGroupOfSlicesId]===!0?h=1:s===!0&&(c[O.originalCategoryValue]===null||f===null)||c[Wi.defaultGroupOfSlicesId]===!0?h=-1:typeof p=="string"&&typeof f=="string"?(h=p.localeCompare(f,void 0,{numeric:!0}),d&&(h*=-1)):p===void 0?h=d?-1:1:f===void 0?h=d?1:-1:p!==null&&f!==null&&(p>f?h=d?-1:1:p<f&&(h=d?1:-1)),h})}}function vb(t){let{arrayToSort:e,orderBy:r,sortingField:a,fieldList:i,isByFieldsChart:n,preferLabel:s}=t;e!==void 0&&e.length>1&&!Re(a)&&r!==void 0&&r.length>0&&e.sort((o,l)=>{let d=o[a];s&&n&&typeof d=="string"&&(d=Ws(i,d));let u=r.indexOf(d?.toString()??"");u===-1&&(u=r.length);let c=l[a];s&&n&&typeof c=="string"&&(c=Ws(i,c));let h=r.indexOf(c?.toString()??"");return h===-1&&(h=r.length),u-h})}function Sb(t,e){let r=t;if(e?.[0]!==void 0&&Y(e)===x.PieFromFields){let{x:a,y:i}=e[0];(la(t)?r:r.dataItems).forEach(n=>(st in n&&a!==st&&(n[a]=n[a]!==void 0?n[a]:n[st],delete n[st]),qt in n&&i!==qt&&(n[i]=n[i]!==void 0?n[i]:n[qt],delete n[qt]),n))}return r}function wb(t,e){let r=X(e),a=t,i=e?.[0];if((r===g.PieSeries||r===g.BoxPlotSeries||r===g.LineSeries||r===g.RadarSeries||r===g.BarSeries||r===g.ComboLineAndBarSeries)&&i!==void 0){let n=la(t),s=n?t:t.dataItems;if(t!==void 0){let{originalCategoryValue:o,originalDateValue:l,xAxisField:d,typeOrDomainIdValue:u}=O,{x:c}=i;s=s.map(h=>{let p=h[c];h[u]!==void 0?p=h[u]:h[l]!==void 0?p=h[l]:h[o]!==void 0&&(p=h[o]);let f={...h,[c]:p};return delete f[l],delete f[u],delete f[o],delete f[d],f}),n?a=s:"dataItems"in a&&(a.dataItems=s)}}return a}function Au(t){let e={...t};delete e[O.technicalSortingFieldBySum],delete e[O.technicalSortingFieldByPercent],delete e[O.pieChart.technicalFieldSlicePercent],delete e[O.pieChart.technicalFieldGroupedSlices],delete e[O.typeOrDomainFieldName],delete e[O.lastTemporalBin],delete e[O.originalServerBinningRange],delete e[O.technicalFieldSplitByField],delete e[ke.uniqueIdsName],Object.keys(e).filter(a=>a.includes(O.rendererSymbolField)).forEach(a=>delete e[a]);let r=vn(e);return r.isInItem&&delete e[r.expr??""],e}function xb(t,e){let r=t,a=X(e),i=Zp(r);if(i!==void 0)switch(a){case g.ComboLineAndBarSeries:case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.PieSeries:{i=i.map(Au),r={dataItems:i};let{timeIntervalInfo:n,serverLimitReached:s}=t??{};Lo(n)||(r.timeIntervalInfo=n),s!==void 0&&(r.serverLimitReached=s)}break;case g.ScatterSeries:r={...r,dataItems:i.map(Au)};break}return r}function Yc(t){let{data:e,seriesConfig:r}=t,a=Mr(e);return a!==void 0&&(a=wb(a,r),a=xb(a,r),a=Sb(a,r)),a}function Xc(t){let{statsMap:e,dataContext:r,chartLimits:a}=t,i=!1;if(e!==void 0){let{maxScatterPointsBeforeAggregation:n}=Jr(a),{queryNumberOfFeatures:s}=O.scatterplotAggregationFields;i=(e.get(s)??Number.NaN)>=n}else r!==void 0&&(i=O.scatterplotAggregationFields.dataContextXMinField in r);return i}function Cb(t){let e=!0,r=X(t.series);if(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries){let a=Y(t.series);e=a!==x.BarAndLineNoAggregation&&a!==x.BarAndLineSplitByNoAggregation}return e}function Ib(t){return Y(t.series)!==x.PieNoAggregation}function Fb(t){let{dataContext:e,chartConfig:r,chartLimits:a}=t,i=!0;if(r!==void 0)switch(X(r.series)){case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:i=Cb(r);break;case g.ScatterSeries:i=Xc({dataContext:e,chartLimits:a});break;case g.PieSeries:i=Ib(r);break}return i}function Tb(t,e){let r=t;switch(e){case He.Log:r=`log(${t})`;break;case He.Sqrt:r=`power(CAST(${t} AS FLOAT),0.5)`;break}return r}function vi(t){let e=new Date(t).valueOf();return Number.isNaN(e)||(e=new Intl.DateTimeFormat("en-US",O.dateFormatUTC).format(t).replace(",","")),e}function dn(t){let{dataToConvert:e,x:r,y:a,fieldList:i}=t,n=[];if(e){let s=e[xr];Object.entries(e).forEach(([o])=>{if(o!==""&&o!==xr&&o in e){let l={[r]:Ws(i,o),[a]:e[o],[O.xAxisField]:o,[O.originalCategoryValue]:o};s!==void 0&&(l[xr]=s),e[`${O.rendererSymbolField}_${o}`]!==void 0&&(l[O.rendererSymbolField]=e[`${O.rendererSymbolField}_${o}`]),n.push(l)}})}return n}function Pb(t,e){let r=!0;if(t!==void 0&&t.length>1&&!Re(e)){let a=0,i=0,n=0;t.forEach(s=>{let o=s[e];!Tv(o)||o===0?n+=1:o>0?a+=1:i+=1}),r=n===t.length||a>=0&&i===0||a===0&&i>=0}return r}function _a(t){let{countTotal:e,countPerSeries:r,numberOfSeries:a}=t,i,n=[];return typeof e=="number"&&Number.isFinite(e)&&n.push(e),typeof r=="number"&&Number.isFinite(r)&&n.push(r*a),n.length>0&&(i=Math.min(...n)),i}function ep(t,e){let r,{maxBarChartSeriesCount:a,maxBarUniqueSeriesCountTotal:i,maxBarTwoSeriesCountPerSeries:n,maxBarTwoSeriesCountTotal:s,maxBarThreePlusSeriesCountPerSeries:o,maxBarThreePlusSeriesCountTotal:l,maxLineChartSeriesCount:d,maxLineUniqueSeriesCountTotal:u,maxLineTwoSeriesCountPerSeries:c,maxLineTwoSeriesCountTotal:h,maxLineThreePlusSeriesCountPerSeries:p,maxLineThreePlusSeriesCountTotal:f,maxPieChartSliceCountTotal:m,maxGaugeByFeaturesLimit:y}=Jr(e),b=X(t.series),v=t.series.length===0?1:t.series.length,S=Y(t.series);switch(b){case g.ComboLineAndBarSeries:case g.BarSeries:v<=a&&(v===1?r=i:v===2?r=_a({countTotal:s,countPerSeries:n,numberOfSeries:v}):v>2&&(r=_a({countTotal:l,countPerSeries:o,numberOfSeries:v})));break;case g.LineSeries:v<=d&&(v===1?r=u:v===2?r=_a({countTotal:h,countPerSeries:c,numberOfSeries:v}):v>2&&(r=_a({countTotal:f,countPerSeries:p,numberOfSeries:v})));break;case g.PieSeries:r=m;break;case g.GaugeSeries:r=y;break;case g.ScatterSeries:case g.HistogramSeries:case g.BoxPlotSeries:}return(S===x.BarAndLineNoAggregation||S===x.BarAndLineMultiFields)&&r!==void 0&&(r=Math.ceil(r/v)),r}function Eu(t,e){let r=t;if(Number.isFinite(t)){let{factor:a,offset:i}=e??{};Number.isFinite(a)&&(r*=a),Number.isFinite(i)&&(r+=i)}return r}function Ob(t){let e=!1;if(t!==void 0){let r=t.replace(" ",""),a=/^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u,i=/^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;e=a.test(r)||i.test(r)}return e}function G1(t){let e;if(Ob(t)){let r=/%(\d{1,3}(.\d+)?)$/u,a=/(\d{1,3}(.\d+)?)%$/u,i=t.replace(" ",""),n=r.exec(i)?.[1]??a.exec(i)?.[1];n!==void 0&&(e=Number(n))}return e}var U={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"};var un=function(){return un=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},un.apply(this,arguments)},js={exports:{}},Ne={},_s={exports:{}},Kr={};function tp(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function Ab(t,e,r){}function Eb(t,e,r){}var Lb=/javascript\s*\:/img;function Db(t,e){return Lb.test(e)?"":e}Kr.whiteList=tp();Kr.getDefaultWhiteList=tp;Kr.onAttr=Ab;Kr.onIgnoreAttr=Eb;Kr.safeAttrValue=Db;var Nb={indexOf:function(t,e){var r,a;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var a,i;if(Array.prototype.forEach)return t.forEach(e,r);for(a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Ri=Nb;function $b(t,e){t=Ri.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,a=!1,i=0,n=0,s="";function o(){if(!a){var u=Ri.trim(t.slice(i,n)),c=u.indexOf(":");if(c!==-1){var h=Ri.trim(u.slice(0,c)),p=Ri.trim(u.slice(c+1));if(h){var f=e(i,s.length,h,p,u);f&&(s+=f+"; ")}}}i=n+1}for(;n<r;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,i=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
5
+ `&&o()}return Ri.trim(s)}var Bb=$b,Va=Kr,Mb=Bb;function Lu(t){return t==null}function qb(t){var e={};for(var r in t)e[r]=t[r];return e}function rp(t){t=qb(t||{}),t.whiteList=t.whiteList||Va.whiteList,t.onAttr=t.onAttr||Va.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Va.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Va.safeAttrValue,this.options=t}rp.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,a=r.whiteList,i=r.onAttr,n=r.onIgnoreAttr,s=r.safeAttrValue,o=Mb(t,function(l,d,u,c,h){var p=a[u],f=!1;if(p===!0?f=p:typeof p=="function"?f=p(c):p instanceof RegExp&&(f=p.test(c)),f!==!0&&(f=!1),c=s(u,c),!!c){var m={position:d,sourcePosition:l,source:h,isWhite:f};if(f){var y=i(u,c,m);return Lu(y)?u+":"+c:y}else{var y=n(u,c,m);if(!Lu(y))return y}}});return o};var Rb=rp;(function(t,e){var r=Kr,a=Rb;function i(s,o){var l=new a(o);return l.process(s)}e=t.exports=i,e.FilterCSS=a;for(var n in r)e[n]=r[n]})(_s,_s.exports);var ao=_s.exports,no={indexOf:function(t,e){var r,a;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var a,i;if(Array.prototype.forEach)return t.forEach(e,r);for(a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,r=e.exec(t);return r?r.index:-1}},kb=ao.FilterCSS,jb=ao.getDefaultWhiteList,cn=no;function ip(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var ap=new kb;function _b(t,e,r){}function Vb(t,e,r){}function Wb(t,e,r){}function zb(t,e,r){}function np(t){return t.replace(Gb,"&lt;").replace(Hb,"&gt;")}function Ub(t,e,r,a){if(r=cp(r),e==="href"||e==="src"){if(r=cn.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(e==="background"){if(Wa.lastIndex=0,Wa.test(r))return""}else if(e==="style"){if(Du.lastIndex=0,Du.test(r)||(Nu.lastIndex=0,Nu.test(r)&&(Wa.lastIndex=0,Wa.test(r))))return"";a!==!1&&(a=a||ap,r=a.process(r))}return r=pp(r),r}var Gb=/</g,Hb=/>/g,Qb=/"/g,Zb=/&quot;/g,Jb=/&#([a-zA-Z0-9]*);?/gim,Kb=/&colon;?/gim,Yb=/&newline;?/gim,Wa=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Du=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Nu=/u\s*r\s*l\s*\(.*/gi;function sp(t){return t.replace(Qb,"&quot;")}function op(t){return t.replace(Zb,'"')}function lp(t){return t.replace(Jb,function(e,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function dp(t){return t.replace(Kb,":").replace(Yb," ")}function up(t){for(var e="",r=0,a=t.length;r<a;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return cn.trim(e)}function cp(t){return t=op(t),t=lp(t),t=dp(t),t=up(t),t}function pp(t){return t=sp(t),t=np(t),t}function Xb(){return""}function ev(t,e){typeof e!="function"&&(e=function(){});var r=!Array.isArray(t);function a(s){return r?!0:cn.indexOf(t,s)!==-1}var i=[],n=!1;return{onIgnoreTag:function(s,o,l){if(a(s))if(l.isClosing){var d="[/removed]",u=l.position+d.length;return i.push([n!==!1?n:l.position,u]),n=!1,d}else return n||(n=l.position),"[removed]";else return e(s,o,l)},remove:function(s){var o="",l=0;return cn.forEach(i,function(d){o+=s.slice(l,d[0]),l=d[1]}),o+=s.slice(l),o}}}function tv(t){for(var e="",r=0;r<t.length;){var a=t.indexOf("<!--",r);if(a===-1){e+=t.slice(r);break}e+=t.slice(r,a);var i=t.indexOf("-->",a);if(i===-1)break;r=i+3}return e}function rv(t){var e=t.split("");return e=e.filter(function(r){var a=r.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),e.join("")}Ne.whiteList=ip();Ne.getDefaultWhiteList=ip;Ne.onTag=_b;Ne.onIgnoreTag=Vb;Ne.onTagAttr=Wb;Ne.onIgnoreTagAttr=zb;Ne.safeAttrValue=Ub;Ne.escapeHtml=np;Ne.escapeQuote=sp;Ne.unescapeQuote=op;Ne.escapeHtmlEntities=lp;Ne.escapeDangerHtml5Entities=dp;Ne.clearNonPrintableCharacter=up;Ne.friendlyAttrValue=cp;Ne.escapeAttrValue=pp;Ne.onIgnoreTagStripAll=Xb;Ne.StripTagBody=ev;Ne.stripCommentTag=tv;Ne.stripBlankChar=rv;Ne.cssFilter=ap;Ne.getDefaultCSSWhiteList=jb;var bn={},br=no;function iv(t){var e=br.spaceIndex(t),r;return e===-1?r=t.slice(1,-1):r=t.slice(1,e+1),r=br.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function av(t){return t.slice(0,2)==="</"}function nv(t,e,r){var a="",i=0,n=!1,s=!1,o=0,l=t.length,d="",u="";e:for(o=0;o<l;o++){var c=t.charAt(o);if(n===!1){if(c==="<"){n=o;continue}}else if(s===!1){if(c==="<"){a+=r(t.slice(i,o)),n=o,i=o;continue}if(c===">"){a+=r(t.slice(i,n)),u=t.slice(n,o+1),d=iv(u),a+=e(n,a.length,d,u,av(u)),i=o+1,n=!1;continue}if(c==='"'||c==="'")for(var h=1,p=t.charAt(o-h);p.trim()===""||p==="=";){if(p==="="){s=c;continue e}p=t.charAt(o-++h)}}else if(c===s){s=!1;continue}}return i<t.length&&(a+=r(t.substr(i))),a}var sv=/[^a-zA-Z0-9\\_:.-]/gim;function ov(t,e){var r=0,a=0,i=[],n=!1,s=t.length;function o(h,p){if(h=br.trim(h),h=h.replace(sv,"").toLowerCase(),!(h.length<1)){var f=e(h,p||"");f&&i.push(f)}}for(var l=0;l<s;l++){var d=t.charAt(l),u,c;if(n===!1&&d==="="){n=t.slice(r,l),r=l+1,a=t.charAt(r)==='"'||t.charAt(r)==="'"?r:dv(t,l+1);continue}if(n!==!1&&l===a){if(c=t.indexOf(d,l+1),c===-1)break;u=br.trim(t.slice(a+1,c)),o(n,u),n=!1,l=c,r=l+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),n===!1)if(c=lv(t,l),c===-1){u=br.trim(t.slice(r,l)),o(u),n=!1,r=l+1;continue}else{l=c-1;continue}else if(c=uv(t,l-1),c===-1){u=br.trim(t.slice(r,l)),u=$u(u),o(n,u),n=!1,r=l+1;continue}else continue}return r<t.length&&(n===!1?o(t.slice(r)):o(n,$u(br.trim(t.slice(r))))),br.trim(i.join(" "))}function lv(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="="?e:-1}}function dv(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="'"||r==='"'?e:-1}}function uv(t,e){for(;e>0;e--){var r=t[e];if(r!==" ")return r==="="?e:-1}}function cv(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function $u(t){return cv(t)?t.substr(1,t.length-2):t}bn.parseTag=nv;bn.parseAttr=ov;var pv=ao.FilterCSS,Mt=Ne,hp=bn,hv=hp.parseTag,fv=hp.parseAttr,Ya=no;function za(t){return t==null}function mv(t){var e=Ya.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=Ya.trim(t.slice(e+1,-1));var r=t[t.length-1]==="/";return r&&(t=Ya.trim(t.slice(0,-1))),{html:t,closing:r}}function yv(t){var e={};for(var r in t)e[r]=t[r];return e}function gv(t){var e={};for(var r in t)Array.isArray(t[r])?e[r.toLowerCase()]=t[r].map(function(a){return a.toLowerCase()}):e[r.toLowerCase()]=t[r];return e}function fp(t){t=yv(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=Mt.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=gv(t.whiteList||t.allowList):t.whiteList=Mt.whiteList,t.onTag=t.onTag||Mt.onTag,t.onTagAttr=t.onTagAttr||Mt.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||Mt.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||Mt.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||Mt.safeAttrValue,t.escapeHtml=t.escapeHtml||Mt.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new pv(t.css))}fp.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,a=r.whiteList,i=r.onTag,n=r.onIgnoreTag,s=r.onTagAttr,o=r.onIgnoreTagAttr,l=r.safeAttrValue,d=r.escapeHtml,u=e.cssFilter;r.stripBlankChar&&(t=Mt.stripBlankChar(t)),r.allowCommentTag||(t=Mt.stripCommentTag(t));var c=!1;r.stripIgnoreTagBody&&(c=Mt.StripTagBody(r.stripIgnoreTagBody,n),n=c.onIgnoreTag);var h=hv(t,function(p,f,m,y,b){var v={sourcePosition:p,position:f,isClosing:b,isWhite:Object.prototype.hasOwnProperty.call(a,m)},S=i(m,y,v);if(!za(S))return S;if(v.isWhite){if(v.isClosing)return"</"+m+">";var C=mv(y),T=a[m],A=fv(C.html,function(q,L){var P=Ya.indexOf(T,q)!==-1,N=s(m,q,L,P);return za(N)?P?(L=l(m,q,L,u),L?q+'="'+L+'"':q):(N=o(m,q,L,P),za(N)?void 0:N):N});return y="<"+m,A&&(y+=" "+A),C.closing&&(y+=" /"),y+=">",y}else return S=n(m,y,v),za(S)?d(y):S},d);return c&&(h=c.remove(h)),h};var bv=fp;(function(t,e){var r=Ne,a=bn,i=bv;function n(o,l){var d=new i(l);return d.process(o)}e=t.exports=n,e.filterXSS=n,e.FilterXSS=i,function(){for(var o in r)e[o]=r[o];for(var l in a)e[l]=a[l]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=t.exports)})(js,js.exports);var ui=js.exports,vv=function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Sv=function(){function t(e,r){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=un(un({},ui.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(n,s,o,l){return n==="a"&&s==="href"||(n==="img"||n==="source")&&s==="src"?a.sanitizeUrl(o):ui.safeAttrValue(n,s,o,l)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;e&&!r?i=e:e&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(e).forEach(function(n){if(n==="whiteList")i.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,e.whiteList||{}]);else if(n==="css"){var s=e.css.whiteList;s!=null&&e.css instanceof Object&&Object.keys(s).forEach(function(o){return i.css.whiteList[o]=s[o]})}else i[n]=e[n]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new ui.FilterXSS(i)}return t.prototype.sanitize=function(e,r){switch(r===void 0&&(r={}),typeof e){case"number":return isNaN(e)||!isFinite(e)?null:e;case"boolean":return e;case"string":return this._xssFilter.process(e);case"object":return this._iterateOverObject(e,r);default:return r.allowUndefined&&typeof e>"u"?void 0:null}},t.prototype.sanitizeUrl=function(e,r){var a=(r??{}).isProtocolRequired,i=a===void 0?!0:a,n=this._trim(e.substring(0,e.indexOf(":"))),s=e==="/",o=/^#/.test(e),l=n&&this.allowedProtocols.indexOf(n.toLowerCase())>-1;return s||o||l?ui.escapeAttrValue(e):!n&&!i?ui.escapeAttrValue("https://".concat(e)):""},t.prototype.sanitizeHTMLAttribute=function(e,r,a,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(e,r,a,i):ui.safeAttrValue(e,r,a,i)},t.prototype.validate=function(e,r){r===void 0&&(r={});var a=this.sanitize(e,r);return{isValid:e===a,sanitized:a}},t.prototype.encodeHTML=function(e){var r=this;return String(e).replace(/[&<>"'\/]/g,function(a){return r._entityMap[a]})},t.prototype.encodeAttrValue=function(e){var r=/^[a-zA-Z0-9]$/;return String(e).replace(/[\x00-\xFF]/g,function(a,i){return r.test(a)?a:"&#x".concat(Number(e.charCodeAt(i)).toString(16),";")})},t.prototype._extendObjectOfArrays=function(e){var r={};return e.forEach(function(a){Object.keys(a).forEach(function(i){Array.isArray(a[i])&&Array.isArray(r[i])?r[i]=r[i].concat(a[i]):r[i]=a[i]})}),r},t.prototype._iterateOverObject=function(e,r){var a=this;r===void 0&&(r={});try{var i=!1,n=void 0;if(Array.isArray(e))n=e.reduce(function(o,l){var d=a.validate(l,r);return d.isValid?o.concat([l]):(i=!0,o.concat([d.sanitized]))},[]);else if(vv(e)){var s=Object.keys(e);n=s.reduce(function(o,l){var d=e[l],u=a.validate(d,r);return u.isValid?o[l]=d:(i=!0,o[l]=u.sanitized),o},{})}else return r.allowUndefined&&typeof e>"u"?void 0:null;return i?n:e}catch{return null}},t.prototype._trim=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},t}(),x={NonSpecific:"nonSpecific",BarAndLineNoAggregation:"barAndLineNoAggregation",BarAndLineMonoField:"barAndLineMonoField",BarAndLineMultiFields:"barAndLineMultiFields",BarAndLineFromFields:"barAndLineFromFields",BarAndLineSplitBy:"barAndLineSplitBy",BarAndLineSplitByNoAggregation:"barAndLineSplitByNoAggregation",PieNoAggregation:"pieNoAggregation",PieFromCategory:"pieFromCategory",PieFromFields:"pieFromFields",BoxPlotMonoField:"boxPlotMonoField",BoxPlotMultiFields:"boxPlotMultiFields",BoxPlotMonoFieldAndCategory:"boxPlotMonoFieldAndCategory",BoxPlotMultiFieldsAndCategory:"boxPlotMultiFieldsAndCategory",BoxPlotMonoFieldAndSplitBy:"boxPlotMonoFieldAndSplitBy",BoxPlotMultiFieldsAndSplitBy:"boxPlotMultiFieldsAndSplitBy",BoxPlotMonoFieldAndCategoryAndSplitBy:"boxPlotMonoFieldAndCategoryAndSplitBy"},H1={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function mp(t){return t?.colorMatch??!1}function Bu(t){let e=zi();if(t!==void 0){let r=X(t.series);(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries||r===g.BoxPlotSeries)&&(e=t.rotated??zi())}return e}function Q1(t){return t?.map(e=>e.type)??[]}function so(t){let e=t?.stackedType;if(e===void 0&&t!==void 0){let r=X(t.series);(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries||r===g.RadarSeries)&&(e=Hg())}return e}function wv(t){let e=t;return e=e.replace(/'/gu,"''"),e=e.replace(/[/\\"|[\]\\]/gu,"\\$&"),e}function xv(t){let e=!1;if(typeof t!="number"){let r=new Intl.Segmenter;e=Array.from(r.segment(t),a=>a.segment).some(a=>a.charCodeAt(0)>255)}return e}function Vs(t){let e=t,r="";t.startsWith("'")&&t.endsWith("'")&&(e=t.slice(1,-1),r="'"),e=e.replace(/'/gu,"''");let a="";return xv(e)&&(a="N"),`${a}${r}${e}${r}`}function yp(t){let{value:e,keepSurroundingQuotes:r,escape:a}=t,i=e?.trim();if(!Re(i)){let n="";i.startsWith("'")&&i.endsWith("'")&&(i=i.slice(1,-1),r&&(n="'")),a!==!1&&(i=wv(i)),i=`${n}${i}${n}`}return i}function er(t){let{count:e,seriesCount:r,chartType:a,chartLimits:i}=t,{behaviorAfterLimit:n}=i??{},s=!0;if(n!==Tr.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:d,maxBarTwoSeriesCountTotal:u,maxBarThreePlusSeriesCountPerSeries:c,maxBarThreePlusSeriesCountTotal:h,maxLineChartSeriesCount:p,maxLineUniqueSeriesCountTotal:f,maxLineTwoSeriesCountPerSeries:m,maxLineTwoSeriesCountTotal:y,maxLineThreePlusSeriesCountPerSeries:b,maxLineThreePlusSeriesCountTotal:v,maxPieChartSliceCountTotal:S,maxGaugeByFeaturesLimit:C,maxBoxPlotSeriesCount:T,maxBoxUniqueSeriesCountTotal:A,maxBoxTwoSeriesCountTotal:q,maxBoxTwoSeriesCountPerSeries:L,maxBoxThreePlusSeriesCountTotal:P,maxBoxThreePlusSeriesCountPerSeries:N,maxHeatChartCellLimit:B}=Jr(i);switch(a){case g.BarSeries:case g.ComboLineAndBarSeries:{let R=e/r;r<=o?r===0?s=!0:r===1?s=e<=l:r===2?s=e<=u&&R<=d:r>2&&(s=e<=h&&R<=c):s=!1}break;case g.LineSeries:case g.RadarSeries:{let R=e/r;r<=p?r===0?s=!0:r===1?s=e<=f:r===2?s=e<=y&&R<=m:r>2&&(s=e<=v&&R<=b):s=!1}break;case g.PieSeries:s=e<=S;break;case g.BoxPlotSeries:{let R=e/r;r<=T?r===0?s=!0:r===1?s=e<=A:r===2?s=e<=q&&R<=L:r>2&&(s=e<=P&&R<=N):s=!1}break;case g.HeatSeries:s=e<=B;break;case g.GaugeSeries:s=e<=C;break}}return s}function Ws(t=[],e){let r=t.find(a=>a.name===e)?.alias;return r!==""?r??e:e}function Z1(t=[],e){let r=t.find(a=>a.alias===e)?.name;return r!==""?r??e:e}function J1(t){let e=!1;switch(X(t)){case g.HeatSeries:case g.PieSeries:e=!0;break;case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.ComboLineAndBarSeries:case g.BoxPlotSeries:e=t.length>1;break;case g.HistogramSeries:case g.ScatterSeries:{let r=t[0];e=r.overlays!==void 0&&Object.values(r.overlays).some(a=>a.created===!0);break}}return e}function Cv(t){let e=!0;return X(t.series)===g.ScatterSeries&&(e=t.series.length===1),e}function Iv(t){let e=!0;return X(t.series)===g.HistogramSeries&&(e=t.series.length<=1&&t.series[0].type===g.HistogramSeries&&(!("dataTransformationType"in t.series[0])||t.series[0].dataTransformationType!==void 0&&Object.values(He).includes(t.series[0].dataTransformationType))),e}function Fv(t){let e=!0;return X(t.series)===g.PieSeries&&(e=t.series.length<=1),e}function K1(t,e){let r=X(e?.series),a=r!==void 0&&t.includes(r);if(a&&e!==void 0)switch(r){case g.HistogramSeries:a=Iv(e);break;case g.ScatterSeries:a=Cv(e);break;case g.PieSeries:a=Fv(e);break}return a}function Re(t){return t==null||typeof t=="string"&&t.trim()===""}function Xa(t,e){let r=e.find(a=>a in t);return{isInItem:r!==void 0,expr:r}}function vn(t){return Xa(t,Uc)}function Y1(t,e){let r;switch(t){case H.Second:r=e.seconds??"";break;case H.Minute:r=e.minutes??"";break;case H.Hour:r=e.hours??"";break;case H.Day:r=e.days??"";break;case H.Week:r=e.weeks??"";break;case H.Month:r=e.months??"";break;case H.Year:r=e.years??"";break;default:r="";break}return r}function X1(t){let e;switch(t){case Xt.Mean:e=1;break;case Xt.Median:e=2;break;case Xt.StdDev:e=3;break;case Xt.Normal:default:e=0;break}return e}function eI(t,e){if(e!==void 0){let{seriesId:r,overlayType:a,visible:i}=t.detail,n;switch(a){case Xt.Mean:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.mean);break;case Xt.Median:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.median);break;case Xt.StdDev:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.standardDeviation);break;case Xt.Normal:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.comparisonDistribution);break;case Xt.Trendline:e.series[0].type===g.ScatterSeries&&(n=e.series[0].overlays?.trendLine);break;default:n=e.series.find(s=>s.id===r);break}n!==void 0&&(n.visible=i)}}function tI(t){return new Sv().sanitize(t)}function Tv(t){return t!=null&&!Number.isNaN(t)&&Number.isFinite(t)}function rI(t,e){let r={fieldToSort:""};if(!Re(t)){let a=t.trim(),i=a.split(" ").at(-1)?.toUpperCase();i===We.Ascending||i===We.Descending?r={fieldToSort:a.substring(0,a.lastIndexOf(" ")),orderBy:i}:(r={fieldToSort:a},e!==!1&&(r.orderBy=We.Ascending))}return r}function gp(t){return t===x.BarAndLineSplitBy||t===x.BarAndLineSplitByNoAggregation||t===x.BoxPlotMonoFieldAndSplitBy||t===x.BoxPlotMultiFieldsAndSplitBy||t===x.BoxPlotMonoFieldAndCategoryAndSplitBy}function iI(t){return t?.selectionOIDs===void 0||t.selectionOIDs.length===0}function aI(t={arrayA:[],arrayB:[],getKey:e=>e}){let{arrayA:e,arrayB:r,getKey:a}=t;if(r.length===0||e.length===0)return e;let i=new Map;r.forEach((l,d)=>{let u=a(l);i.set(u,d)});let n=[],s=[];e.forEach((l,d)=>{let u=a(l);i.has(u)&&(n.push(d),s.push(l))}),s.sort((l,d)=>{let u=a(l),c=a(d);return i.get(u)-i.get(c)});let o=[...e];return n.forEach((l,d)=>{o[l]=s[d]}),o}function nI(t){return X(t.series)!==g.BoxPlotSeries?O.xAxisField:t.series[0].x}function sI(t){let e=so(t);return e===mt.Stacked||e===mt.Stacked100}function Pv(t){let e=Y(t.series),r;if(t.orderOptions?.data!==void 0){let a=t.orderOptions?.data?.orderType??nt.Category,i=t.orderOptions?.data?.orderBy;if(a===nt.Category)a=t.series[0].x;else{a===nt.Mean?a=U.Average:a===nt.Median&&(a=U.Median);let n=e===x.BoxPlotMultiFieldsAndCategory&&typeof t.series[0].y=="string"?t.series[0].y:void 0,s=Xe(t.series[0].query?.where),o=ut({where:t.series[0].query?.where});a=Ue({key:a,y:n,chartSubType:e,splitBy:s,splitByValue:o}),Array.isArray(i)&&(i=We.Ascending)}r={sortingField:a,orderBy:i??We.Ascending,preferLabel:t.orderOptions.data.preferLabel??!0}}return r}function Ov(t){let e;if(!bp(t)&&t.series?.length>0&&t.orderOptions?.data?.orderType===nt.Category){let r;Gt(t.axes?.[0]?.valueFormat)?r=Ie.xField:Gt(t.axes?.[1]?.valueFormat)&&(r=Ie.yField),r&&(e={sortingField:r,orderBy:t.orderOptions?.data?.orderBy??We.Ascending})}return e}function Av(t){let e=t.series[0],{x:r,y:a}=e,i=Y(t.series)===x.PieFromFields,n=Y(t.series)===x.BarAndLineFromFields,s,o="",l;if(t.orderOptions?.data!==void 0){if(o=t.orderOptions?.data?.orderType??nt.Category,l=t.orderOptions?.data?.orderBy,o===nt.Category?o=i?st:r:o=i?qt:[a].flat()[0],o!==void 0&&o!==""){let d=so(t);if(X(t.series)!==g.PieSeries&&o!==r&&t.series?.length>1)switch(d){case mt.Stacked:o=O.technicalSortingFieldBySum;break;case mt.Stacked100:o=O.technicalSortingFieldByPercent;break;case mt.Side:typeof a=="string"&&(o=a);break}s={sortingField:o,orderBy:l??We.Ascending,preferLabel:t.orderOptions.data.preferLabel??!0}}}else(n||i)&&t.series[0].query?.outStatistics&&(l=t.series[0].query.outStatistics.map(d=>d.onStatisticField),l?.length>1&&(s={sortingField:Zc.originalCategoryValue,orderBy:l,preferLabel:!1}));return s}function zs(t){let e,r=X(t.series);if(r===g.HeatSeries)e=Ov(t);else if(t.series?.length>0)switch(r){case g.BoxPlotSeries:e=Pv(t);break;case g.LineSeries:case g.BarSeries:case g.RadarSeries:case g.PieSeries:e=Av(t);break}return e}function oI(t){let{oldConfig:e,newConfig:r,dataWasUpdated:a}=t,i=Y(r.series),n=!1,s=!1;if(i!==x.BoxPlotMonoField&&i!==x.BoxPlotMonoFieldAndSplitBy&&r.orderOptions?.data!==void 0){let o=zs(e),l=zs(r);s=e.orderOptions?.data?.orderType!==r.orderOptions?.data?.orderType||o?.sortingField!==l?.sortingField||o?.orderBy!==l?.orderBy||(o?.preferLabel??!0)!==(l?.preferLabel??!0),n=s||a}return n}function lI(t,e){let r=[],a=new Map,i=new Map;return t.forEach((n,s)=>i.set(n.id,s)),e.forEach((n,s)=>{let o=i.get(n.id);if(o!==void 0){let l=new Set;for(;a.has(o)&&!l.has(o);)l.add(o),o=a.get(o)??o;o!==s&&(r.push([o,s]),a.set(s,o))}}),r}function Ev(t){let e={...t};return t.showMean===!0&&(e.series=[e.series[0]],e.series[0].query?.where!==void 0&&delete e.series[0].query.where),e}function bp(t){let e=!1;return t&&(e=t.series[0].type===g.HeatSeries&&Gt(t.axes?.[0]?.valueFormat)&&Gt(t.axes?.[1]?.valueFormat)),e}function pn(t){let{dataInfo:e,chartType:r,subError:a}=t;switch(e.valid=!1,r){case g.BarSeries:case g.ComboLineAndBarSeries:e.invalidType=se.BarElementExceedsLimit;break;case g.LineSeries:e.invalidType=se.LineChartExceedsLimit;break;case g.PieSeries:e.invalidType=se.PieChartExceedsLimit;break;case g.GaugeSeries:e.invalidType=se.GaugeExceedsLimit;break;case g.BoxPlotSeries:a?.outlierLimit===!0?e.invalidType=se.BoxPlotOutliersExceedsLimit:e.invalidType=se.BoxPlotExceedsLimit;break;case g.HeatSeries:e.invalidType=se.HeatChartExceedsLimit;break}}function Lv(t,e){t.valid=!1,t.invalidType=e}function dI(t){let{invalidType:e,chartLimits:r,elementCount:a,seriesCount:i,queryObject:n,filterBySelection:s,formatLocale:o=Xp(document.documentElement),isTemporalChart:l,errorStrings:d}=t,u=d.errors.defaultInvalidChart,c,h=new Intl.NumberFormat(o),p=Jr(r),{maxCategoryCount:f}=p,m=d.modalHeaders.invalidChart;switch(e){case se.BarElementExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxBarChartSeriesCount?i===1?(v=d.errors.uniqueSeriesBarCountCannotExceedLimit,y=p.maxBarUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBarCountCannotExceedLimit,y=p.maxBarTwoSeriesCountTotal,b=p.maxBarTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusSeriesBarCountCannotExceedLimit,y=p.maxBarThreePlusSeriesCountTotal,b=p.maxBarThreePlusSeriesCountPerSeries):(v=d.errors.barSeriesCountCannotExceedLimit,b=p.maxBarChartSeriesCount));let S=h.format(y),C=h.format(b),T=a!==void 0?h.format(a):"";u=qe(v,{totalLimit:S,seriesLimit:C,elementCount:T}),c={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b};break}case se.LineChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxLineChartSeriesCount?i===1?(v=l?d.errors.uniqueTemporalSeriesLineCountCannotExceedLimit:d.errors.uniqueSeriesLineCountCannotExceedLimit,y=p.maxLineUniqueSeriesCountTotal):i===2?(v=l?d.errors.twoTemporalSeriesLineCountCannotExceedLimit:d.errors.twoSeriesLineCountCannotExceedLimit,y=p.maxLineTwoSeriesCountTotal,b=p.maxLineTwoSeriesCountPerSeries):i>2&&(v=l?d.errors.threePlusTemporalSeriesLineCountCannotExceedLimit:d.errors.threePlusSeriesLineCountCannotExceedLimit,y=p.maxLineThreePlusSeriesCountTotal,b=p.maxLineThreePlusSeriesCountPerSeries):(v=d.errors.lineSeriesCountCannotExceedLimit,b=p.maxLineChartSeriesCount));let S=h.format(y),C=h.format(b),T=a!==void 0?h.format(a):"";u=qe(v,{elementCount:T,seriesLimit:C,totalLimit:S}),c={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b}}break;case se.BoxPlotExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxBoxPlotSeriesCount?i===1?(v=d.errors.uniqueSeriesBoxCountCannotExceedLimit,y=p.maxBoxUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBoxCountCannotExceedLimit,y=p.maxBoxTwoSeriesCountTotal,b=p.maxBoxTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusBoxLineCountCannotExceedLimit,y=p.maxBoxThreePlusSeriesCountTotal,b=p.maxBoxThreePlusSeriesCountPerSeries):(v=d.errors.boxSeriesCountCannotExceedLimit,b=p.maxBoxPlotSeriesCount));let S=h.format(y),C=h.format(b),T=a!==void 0?h.format(a):"";u=qe(v,{elementCount:T,seriesLimit:C,totalLimit:S}),c={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b}}break;case se.BoxPlotOutliersExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.boxSeriesOutlierCannotExceedLimit,b=p.maxBoxPlotOutlierLimit,v=h.format(b);u=qe(y,{totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:b}}break;case se.HeatChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.heatChartCannotExceedLimit,b=p.maxHeatChartCellLimit,v=h.format(b),S=a!==void 0?h.format(a):"";u=qe(y,{featureCount:S,totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:b}}break;case se.PieChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.pieChartSlicesCannotExceedLimit,b=p.maxPieChartSliceCountTotal,v=h.format(b),S=a!==void 0?h.format(a):"";u=qe(y,{sliceCount:S,totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:b}}break;case se.GaugeExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.gaugeCannotExceedLimit,b=p.maxGaugeByFeaturesLimit,v=h.format(b),S=a!==void 0?h.format(a):"";u=qe(y,{featureCount:S,totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:b}}break;case se.PieChartMixOfNegativePositiveSlices:m=d.modalHeaders.cannotCombineNegativeAndPositiveSlices,u=d.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;break;case se.NegativeValueInSqrtCalculation:m=d.modalHeaders.invalidData,u=d.errors.negativeValueInDataForSqrtTransformation;break;case se.NegativeValueInLogCalculation:m=d.modalHeaders.invalidData,u=d.errors.negativeValueInDataForLogTransformation;break;case se.HistogramEmptyField:s===!0?(m=d.modalHeaders.noDataAvailable,u=d.errors.noDataFBSMessage):Qr(n)?(m=d.modalHeaders.noDataAvailable,u=d.errors.noDataFBEMessage):(m=d.modalHeaders.invalidChart,u=d.errors.histogramEmptyField);break;case se.EmptyDataSet:m=d.modalHeaders.noDataAvailable,s===!0?u=d.errors.noDataFBSMessage:Qr(n)?u=d.errors.noDataFBEMessage:u=d.errors.noDataMessage;break;case se.NegativeValueInXAxisLogScale:u=d.errors.logarithmicXAxisNotPossible;break;case se.NegativeValueInYAxisLogScale:u=d.errors.logarithmicYAxisNotPossible;break;case se.BadData:}if(u===d.errors.defaultInvalidChart&&(e===se.BarElementExceedsLimit||e===se.LineChartExceedsLimit||e===se.HeatChartExceedsLimit||e===se.PieChartExceedsLimit||e===se.GaugeExceedsLimit||e===se.BoxPlotExceedsLimit)&&typeof a=="number"&&typeof i=="number"&&a/i>f){let y=a/i;u=qe(d.errors.categoryCountCannotExceedLimit,{categoryCount:h.format(y),maxCategoryCount:h.format(f)})}return{keyword:e??se.BadData,header:m,message:u,params:c}}function Si(t,e){return`${e}_${t}`}function Us(t){let{value:e,mean:r,stdDev:a}=t;return(e-r)/a}function oo(t){let{dataItem:e,chartSubType:r,y:a,splitByValue:i,meanPerField:n,stdDevPerField:s}=t,o=e,l={chartSubType:r,y:a,splitByValue:i},d=Ue({...l,key:U.Average}),u=Ue({...l,key:U.StandardDeviation}),c=n??Number(e[d]),h=s??Number(e[u]);return Number.isFinite(c)&&Number.isFinite(h)&&Object.values(U).forEach(p=>{let f=Ue({key:p,y:a,chartSubType:r,splitByValue:i}),m=e[f];if(m!=null){let y=Number(m);if(Number.isFinite(y)){l={...l,key:p,showOutliers:!1,standardizeValues:!0};let b=Ue(l);if(o[b]=Us({mean:c,stdDev:h,value:y}),p===U.Min||p===U.Max){l={...l,key:p,showOutliers:!0,standardizeValues:!0},b=Ue(l),l={...l,standardizeValues:!1,splitByValue:i};let v=Ue(l);y=Number(e[v]),Number.isFinite(y)&&(o[b]=Us({mean:c,stdDev:h,value:y}))}}}}),o}function Dv(t){let{data:e,yList:r,calculateZScore:a=!1}=t,i=e[0],n=new Map;return r.forEach(s=>{let o={};Object.keys(i).forEach(l=>{l.startsWith(s)?o[l.replace(`${s}_`,"")]=i[l]:l.includes(O.rendererSymbolField)&&(o[l]=i[l]),o[O.boxPlot.boxPlotCategory]=s,a&&(o=oo({dataItem:o,chartSubType:x.BoxPlotMultiFields}))}),n.set(s,o)}),Array.from(n.values())}function Nv(t){let{data:e,splitByField:r,y:a}=t,i={[O.boxPlot.boxPlotCategory]:a};return e.forEach(n=>{let s=n[r];s!==void 0&&Object.keys(n).forEach(o=>{o===O.rendererSymbolField?i[`${o}_${s?.toString()}`]=n[o]:o===O.boxPlot.boxPlotMeanLineMarkerId?i[o]=n[o]:i[`${s?.toString()}_${o}`]=n[o]})}),[i]}function $v(t){let{splitByField:e,data:r,yList:a,calculateZScore:i=!1,meanAndStdDevPerField:n}=t,s=new Map;return r.forEach(o=>{let l=o[e];a.forEach(d=>{let u={[O.boxPlot.boxPlotCategory]:d};Object.entries(o).forEach(([c,h])=>{c.startsWith(`${d}_`)?u[`${l}_${c.replace(`${d}_`,"")}`]=h:c.includes(O.rendererSymbolField)?u[`${c}_${l}`]=h:c===O.boxPlot.boxPlotMeanLineMarkerId&&(u[c]=o[c])}),i&&(u=oo({dataItem:u,chartSubType:x.BoxPlotMultiFieldsAndSplitBy,splitByValue:l,meanPerField:n?.[Si(d,j.Average)],stdDevPerField:n?.[Si(d,j.StandardDeviation)]})),s.set(d,{...s.get(d)??{},...u})})}),Array.from(s.values())}function Bv(t){let{data:e,yList:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,n=e;return a&&n.forEach(s=>{r.forEach(o=>{oo({dataItem:s,chartSubType:x.BoxPlotMultiFieldsAndCategory,y:o,meanPerField:i?.[Si(o,j.Average)],stdDevPerField:i?.[Si(o,j.StandardDeviation)]})})}),n}function Mv(t){let{splitByField:e,x:r,data:a}=t,i=new Map;return a.forEach(n=>{let s=n[r],o={[r]:s},l=n[e];Object.entries(n).forEach(([d,u])=>{if(d.includes(O.rendererSymbolField))o[`${O.rendererSymbolField}_${l?.toString()}`]=u;else if(d===O.boxPlot.boxPlotMeanLineMarkerId)o[d]=n[d];else if(d!==e&&d!==r){let c=d!==O.xAxisField&&d!==O.originalCategoryValue&&d!==O.typeOrDomainIdValue&&d!==O.typeOrDomainFieldName?`${l?.toString()}_${d}`:d;o[c]=u}}),i.set(s,{...i.get(s)??{},...o})}),Array.from(i.values())}function qv(t,e){let{series:r}=t,a=r[0],{y:i}=a,n=Y(t.series),s={y:n===x.BoxPlotMultiFieldsAndCategory?i:void 0,chartSubType:n},o=t.series.map(l=>{let d=ut({where:l.query?.where,normalize:!1,escape:!0});return d!==null&&`${d}`.startsWith("'")&&`${d}`.endsWith("'")&&(d=d.substring(1,d.length-1)),d});o.length===0&&o.push(" "),e.forEach(l=>{o.forEach(d=>{s.splitByValue=d;let u=Ue({...s,key:U.Min,showOutliers:!0}),c=Ue({...s,key:U.Min,showOutliers:!1}),h=Ue({...s,key:U.Max,showOutliers:!0}),p=Ue({...s,key:U.Max,showOutliers:!1});l[h]===void 0&&l[p]!==void 0&&(l[h]=l[p]),l[u]===void 0&&l[c]!==void 0&&(l[u]=l[c])})})}function Rv(t,e){let r,a,i=t[e[U.IQR]],n=t[e[U.FirstQuartile]],s=t[e[U.ThirdQuartile]];return Number.isFinite(i)&&Number.isFinite(n)&&Number.isFinite(s)&&(r=n-i*1.5,a=s+i*1.5),{outlierMinThreshold:r,outlierMaxThreshold:a}}function Mu(t){let{yField:e,xField:r,xValue:a,splitByField:i,splitByValue:n,outlierMaxThreshold:s,outlierMinThreshold:o,target:l}=t,d;if(r!==void 0&&a!==void 0){let h=typeof a!="string"?a:`'${Vs(a)}'`;d=`${r}=${h.toString()}`}let u;if(i!==void 0&&n!==void 0){let h=typeof n!="string"?n:`'${Vs(n)}'`;u=`${i}=${h.toString()}`}let c;return l==="outliers"&&o!==s?c=`(${e}<${o} OR ${e}>${s})`:l==="alternativeData"&&(o===s?c=`(${e}=${o})`:c=`(${e}>=${o} AND ${e}<=${s})`),[d,u,c].filter(h=>h!==void 0).join(" AND ")}function vp(t){let{data:e,yField:r,x:a,chartSubType:i,splitByField:n}=t,s=i===x.BoxPlotMonoField||i===x.BoxPlotMonoFieldAndCategory||i===x.BoxPlotMonoFieldAndSplitBy||i===x.BoxPlotMonoFieldAndCategoryAndSplitBy?void 0:r,o=gi(s),l=[],d=[],{maxOperandsPerWhereClause:u}=ta(),c=[],h=[],p=1;return e.forEach((f,m)=>{let{outlierMinThreshold:y,outlierMaxThreshold:b}=Rv(f,o);if(typeof y=="number"&&typeof b=="number"){let v={yField:r,outlierMinThreshold:y,outlierMaxThreshold:b};(i===x.BoxPlotMonoFieldAndCategory||i===x.BoxPlotMultiFieldsAndCategory||i===x.BoxPlotMonoFieldAndCategoryAndSplitBy)&&a!==void 0&&a in f&&(v.xField=a,v.xValue=Gi({value:f[a],dataContext:f,keepNullValues:!0,specificField:O.typeOrDomainIdValue})),(i===x.BoxPlotMonoFieldAndSplitBy||i===x.BoxPlotMultiFieldsAndSplitBy||i===x.BoxPlotMonoFieldAndCategoryAndSplitBy)&&n!==void 0&&n in f&&(v.splitByField=n,v.splitByValue=f[n]),c.push(Mu({...v,target:"outliers"})),h.push(Mu({...v,target:"alternativeData"})),(p%u===0||m===e.length-1)&&(l.push(fe(c,"OR")),d.push(fe(h,"OR")),c=[],h=[])}p+=1}),{outliersFilterBatches:l,dataWithoutOutliersFilterBatches:d}}function kv(t){let{data:e,outlierDataItem:r,chartSubType:a,x:i,y:n,meanAndStdDevPerField:s,splitByField:o}=t,l=s?.[Si(n,j.Average)],d=s?.[Si(n,j.StandardDeviation)];if(l===void 0&&d===void 0)switch(a){case x.BoxPlotMultiFields:{let u=gi(n),c=e[0];l=Number(c[u[U.Average]]),d=Number(c[u[U.StandardDeviation]]);break}case x.BoxPlotMultiFieldsAndCategory:{let u=e.find(c=>c[i]===r[i]);if(u!==void 0){let c=gi(n);l=Number(u[c[U.Average]]),d=Number(u[c[U.StandardDeviation]])}break}case x.BoxPlotMultiFieldsAndSplitBy:{let u=e.find(c=>c[o]===r[o]);if(u!==void 0){let c=gi(n);l=Number(u[c[U.Average]]),d=Number(u[c[U.StandardDeviation]])}break}}return{mean:l,stdDev:d}}async function jv(t){let{seriesConfig:e,data:r,uniqueQuery:a,queryObject:i,meanAndStdDevPerField:n,abortKey:s}=t,o=Y(e),l=e[0],{x:d}=l,u=Xe(l.query?.where),c=ue(i),h=tt(e),p=[];for(let y=0;y<h.length;y+=1){let b=h[y],{outliersFilterBatches:v}=vp({data:r,yField:b,x:d,chartSubType:o,splitByField:u});for(let S=0;S<v.length;S+=1){let C=v[S];if(C!==""){let T=[];d!==O.boxPlot.boxPlotCategory&&T.push(d),T.push(b),u!==""&&T.push(u),T.push(c.objectIdField);let A={...a,where:fe([a.where,C]),groupByFieldsForStatistics:void 0,outStatistics:void 0,orderByFields:void 0,num:void 0,outFields:T};p.push(Lt({queryObject:i,queryConfig:A,featureCount:1,abortKey:s}))}}}let f=await Promise.all(p),m=new Map;for(let y=0;y<f.length;y+=1){let b=f[y],v=h[y];b.forEach(S=>{let C={...S.attributes};if(C[v]!==void 0){d===O.boxPlot.boxPlotCategory&&(C[O.boxPlot.boxPlotCategory]=v);let T={key:U.Outlier,chartSubType:o};switch(o){case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMultiFieldsAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:T={...T,splitByValue:C[u]};break;case x.BoxPlotMultiFieldsAndCategory:T={...T,y:v};break}let A=Ue(T),q=C[v];C[A]=q;let L=`${C[d]}-${C[u]}-${q}`,P=m.get(L);if(C[ke.uniqueIdsName]=[...P?.[ke.uniqueIdsName]??[],C[c.objectIdField]],delete C[c.objectIdField],Jp(o)){let N=Ue({...T,standardizeValues:!0}),{mean:B,stdDev:R}=kv({data:r,outlierDataItem:C,chartSubType:o,x:d,y:v,splitByField:u,meanAndStdDevPerField:n});B!==void 0&&R!==void 0&&(C[N]=Us({value:q,mean:B,stdDev:R}))}delete C[v],C[O.boxPlot.boxPlotOutlierId]=!0,m.set(L,C)}})}return Array.from(m.values())}async function _v(t){let{data:e,queryObject:r,uniqueQuery:a,elementCount:i,chartConfig:n,chartLimits:s,abortKey:o}=t,l=[],{series:d,showMean:u}=n,c=Cn({showMean:u,seriesConfig:d}),h=Y(d),p=Ar(n),{x:f}=p,m=Xe(p.query?.where),y=[];for(let v=0;v<c.length;v+=1){let S=c[v],{dataWithoutOutliersFilterBatches:C}=vp({data:e,yField:S,x:f,chartSubType:h,splitByField:m});for(let T=0;T<C.length;T+=1){let A=C[T],q={...a,where:fe([a.where,A])};q.outStatistics!==void 0&&(q.outStatistics=q.outStatistics?.filter(L=>(L.statisticType===j.Minimum||L.statisticType===j.Maximum)&&L.onStatisticField===S).map(L=>({...L,outStatisticFieldName:`${L.outStatisticFieldName}${O.boxPlot.boxPlotOutliersSuffix}`}))),y.push(Sn({queryObject:r,uniqueQuery:q,chartConfig:n,elementCount:i,isTimeBinningSeries:!1,showMean:u,chartLimits:s,abortKey:o}))}}let b=await Promise.all(y);for(let v=0;v<b.length;v+=1)l.push(...b[v]);return h!==x.BoxPlotMonoFieldAndCategoryAndSplitBy&&(l=Qi({data:l,x:m!==void 0&&m!==""?m:f})),l}async function Vv(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,abortKey:i}=t,n,{series:s,showMean:o}=a,l=Y(s);if(l===x.BoxPlotMultiFieldsAndCategory||l===x.BoxPlotMultiFieldsAndSplitBy){let d=Cn({showMean:o,seriesConfig:s}),u={...r};delete u.outStatistics,delete u.groupByFieldsForStatistics,delete u.orderByFields;let c=[];for(let p=0;p<d.length;p+=1){let f=d[p];c.push({statisticType:j.Average,onStatisticField:f,outStatisticFieldName:`${j.Average}_${f}`},{statisticType:j.StandardDeviation,onStatisticField:f,outStatisticFieldName:`${j.StandardDeviation}_${f}`})}u.outStatistics=c;let h=await Lt({queryObject:e,queryConfig:u,featureCount:1,abortKey:i});h.length>0&&(n=h[0].attributes)}return n}function Wv(t){let{data:e,additionalData:r,chartConfig:a}=t,i=a.series[0],{x:n}=i,s=Xe(i.query?.where);return e.map(o=>{let l=o,d=r.find(u=>u[n]===o[n]&&(s===""?!0:u[s]===o[s]));return d!==void 0&&(l={...o,...d}),l})}function Sp(t){let{chartConfig:e,data:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,{series:n,showMean:s}=e,o=Ar(e),l=Y(e.series),{x:d}=o,u=Cn({showMean:s,seriesConfig:n}),c=r;if((o.type===g.LineSeries||o.type===g.BoxPlotSeries)&&r?.[0]!==void 0){let h=Xe(o.query?.where);switch(l){case x.BoxPlotMonoField:c[0][O.boxPlot.boxPlotCategory]=u[0];break;case x.BoxPlotMultiFields:c=Dv({data:r,yList:u,calculateZScore:a});break;case x.BoxPlotMonoFieldAndSplitBy:c=Nv({data:r,splitByField:h,y:u[0]});break;case x.BoxPlotMultiFieldsAndSplitBy:c=$v({splitByField:h,data:r,yList:u,meanAndStdDevPerField:i,calculateZScore:a});break;case x.BoxPlotMultiFieldsAndCategory:c=Bv({data:r,yList:u,meanAndStdDevPerField:i,calculateZScore:a});break;case x.BoxPlotMonoFieldAndCategoryAndSplitBy:c=Mv({splitByField:h,x:d,data:r});break;case x.BoxPlotMonoFieldAndCategory:}}return qv(e,c),c}async function zv(t){let{data:e,queryObject:r,uniqueQuery:a,fetchFullBoxPlotData:i,chartConfig:n,elementCount:s,chartLimits:o,abortKey:l}=t,d=e,u=[];if(d!==void 0){let{series:c}=n,h=await Vv({queryObject:r,uniqueQuery:a,chartConfig:n,abortKey:l});if(i!==!1){u=await jv({queryObject:r,uniqueQuery:a,seriesConfig:c,data:d,abortKey:l});let p=await _v({queryObject:r,uniqueQuery:a,elementCount:s,data:e,chartConfig:n,chartLimits:o,abortKey:l});d=Wv({data:d,additionalData:p,chartConfig:n})}d=Sp({chartConfig:n,data:d,meanAndStdDevPerField:h,calculateZScore:!0})}return{dataItems:d,outliers:u}}function wp(t){let{outTimeZone:e=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:r="UTC",runsOnClientQueryEngine:a}=t,i="",n=ae.now().setZone(e),s=n.offset/60,o=r?n.setZone(r).offset/60:0,l=s-o;return l!==0&&(a?i=`${l>0?"+":"-"}1*INTERVAL '${Math.abs(l)}' HOUR `:i=l>0?`+INTERVAL '${Math.abs(l)}:00:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(l)-1}:59:59' HOUR TO SECOND`),i}function Uv(t,e){let r=wp({}),a=`EXTRACT(YEAR FROM ${t} ${r})`,i=`EXTRACT(MONTH FROM ${t} ${r})`,n=`EXTRACT(DAY FROM ${t} ${r})`,s=`EXTRACT(HOUR FROM ${t} ${r})`,o=`EXTRACT(MINUTE FROM ${t} ${r})`,l=`EXTRACT(SECOND FROM ${t} ${r})`,d=[];switch(e){case H.Second:d=[a,i,n,s,o,l];break;case H.Minute:d=[a,i,n,s,o];break;case H.Hour:d=[a,i,n,s];break;case H.Day:case H.Week:case H.Month:case H.Year:d=[a,i,n];break}return d}function Gv(t){let{whereValue:e,outStatistics:r,y:a}=t,i=ke.outStatistics.outStatisticFieldName??"";return r?.outStatisticFieldName!==void 0?i=r.outStatisticFieldName:r?.onStatisticField!==void 0&&r.statisticType!==void 0?i=`${r.statisticType}_${r.onStatisticField}_${e}`:a!==void 0&&(i=[a].flat()[0]),i}function Hv(t){let e=new Map;for(let r=0;r<t.length;r+=1){let a=t[r],i=a.query?.where;if(i!==void 0&&"y"in a){let n=ut({where:i,normalize:!0,escape:!1});if(n!==""){let s=Gv({whereValue:n,outStatistics:a.query?.outStatistics?.[0],y:a.y});a.y=s,e.set(n,s)}}}return e}function Qv(t){let{uniqueQuery:e,splitByField:r,x:a}=t,i=[...e.groupByFieldsForStatistics??[],a,r].filter(n=>n!==void 0&&n.trim()!==""&&n!==Pi);e.groupByFieldsForStatistics=Array.from(new Set(i))}function Zv(t){return t.statisticType===j.ContinuousPercentile||t.statisticType===j.DiscretePercentile}function Jv(t){let{uniqueQuery:e,y:r,useGenericOutStatFieldName:a,queryObject:i,chartSubType:n,isTimeBinningSeries:s,returnFeaturesExtent:o,splitByField:l}=t,d=ke.outStatistics;if(e.outStatistics?.[0]!==void 0){n!==x.PieFromFields&&n!==x.BarAndLineFromFields&&(e.outStatistics[0].outStatisticFieldName=a?d.outStatisticFieldName:[r].flat()[0]);let{outStatistics:u}=e;for(let c=0;c<u.length;c+=1){let h=e.outStatistics[c];h!==void 0&&Zv(h)&&(s&&!Zi(i)?(u[c].statisticType=j.Count,delete u[c].statisticParameters):u[c]={...u[c],statisticParameters:u[c].statisticParameters??{value:O.defaultStatParameterValue}})}}else if(i!==void 0){let{objectIdField:u}=ue(i);e.outStatistics=[{statisticType:d.statisticType,onStatisticField:u,outStatisticFieldName:a?d.outStatisticFieldName:[r].flat()[0]}]}o===!0&&(!s||Re(l))&&e.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"})}function Kv(t){let{chartConfig:e,fetchFullBoxPlotData:r}=t,{series:a}=e,i=Ui(e),n=[{statisticType:j.Average,suffix:U.Average}];r===!0&&(n=[...n,{statisticType:j.Minimum,suffix:U.Min},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.25},suffix:U.FirstQuartile},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.5},suffix:U.Median},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.75},suffix:U.ThirdQuartile},{statisticType:j.Maximum,suffix:U.Max},{statisticType:j.StandardDeviation,suffix:U.StandardDeviation}]);let s=new Set;return i&&"y"in a[0]?[a[0].y].flat().forEach(o=>s.add(o)):a.forEach(o=>{"y"in o&&[o.y].flat().forEach(l=>s.add(l))}),[...s].flatMap(o=>n.map(l=>{let d={onStatisticField:o,statisticType:l.statisticType,outStatisticFieldName:`${o}_${l.suffix}`};return l.statisticType===j.ContinuousPercentile&&(d.statisticParameters=l.statisticParameters),d}))}function Yv(t,e){for(let r=1;r<e.length;r+=1){let a={...e[r].query?.outStatistics?.[0]};a!==void 0&&t.outStatistics!==void 0&&t.outStatistics.push(a)}}function Xv(t){let{uniqueQuery:e,x:r,splitByField:a,unit:i,chartSubType:n,objectIdField:s}=t;if(i!==void 0){let o=Uv(r,i);e.orderByFields=o,e.groupByFieldsForStatistics=o,n===x.BarAndLineSplitBy&&!Re(a)?e.groupByFieldsForStatistics.push(a):n===x.BarAndLineNoAggregation&&(e.groupByFieldsForStatistics.push(s),e.outStatistics=[{onStatisticField:s,outStatisticFieldName:`COUNT_${s}`,statisticType:j.Count}])}}function xp(t){let{chartConfig:e,options:r,uniqueQuery:a}=t;if(r?.chartLimits?.behaviorAfterLimit===Tr.RenderUpToTheLimit){let i=ep(e,r?.chartLimits);if(i!==void 0){let n=Y(e.series);if(n===x.PieFromFields||n===x.BarAndLineFromFields){if(a.outStatistics?.[0]!==void 0){let s=(d,u)=>d.statisticType===j.EnvelopeAggregate===u,o=a.outStatistics.filter(d=>s(d,!0)),l=a.outStatistics.filter(d=>s(d,!1));l.splice(i),a.outStatistics=[...l,...o]}}else a.num=i}}}async function lo(t){let{chartConfig:e,queryConfig:r,options:a,queryObject:i,timeIntervalInfo:n,fetchFullBoxPlotData:s}=t,{setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l}=a??{},d=e.series,u=Y(d),c=Ar(e),{query:h,x:p}=c,f="y"in c?c.y:void 0,m=Yr({xAxisValueFormatType:nr(e),setTimeBinningInfoWhenNotProvided:o,seriesConfig:c}),y=new Map,b=!1,v=!1,S=!1,C=!1,T=!1,A={};if(h!==void 0){A=Mr(h);let k=Xe(h.where),V="";switch(r.fetchNullValues!==!0&&(p!==O.boxPlot.boxPlotCategory&&(V=`${p} IS NOT NULL`),k.trim()!==""&&k!==p&&!tr(h.where)&&(V=fe([V,`${k} IS NOT NULL`]))),u){case x.BarAndLineSplitBy:{y=Hv(d),C=!0,b=!0,v=!0;break}case x.BarAndLineMultiFields:Yv(A,d),v=!0;break;case x.PieFromFields:case x.BarAndLineFromFields:V="",S=!0,v=!0;break;case x.BarAndLineMonoField:case x.PieFromCategory:v=!0;break;case x.BoxPlotMonoField:case x.BoxPlotMultiFields:S=!0,T=!0;break;case x.BoxPlotMonoFieldAndCategory:case x.BoxPlotMultiFieldsAndCategory:case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:case x.BoxPlotMultiFieldsAndSplitBy:{T=!0,C=!0,S=!0;break}case x.PieNoAggregation:case x.BarAndLineNoAggregation:case x.BarAndLineSplitByNoAggregation:}if(v&&Jv({uniqueQuery:A,y:f,useGenericOutStatFieldName:b,queryObject:i,chartSubType:u,isTimeBinningSeries:m,returnFeaturesExtent:l,splitByField:k}),C&&Qv({uniqueQuery:A,splitByField:k,x:p}),T&&(A.outStatistics=Kv({chartConfig:e,fetchFullBoxPlotData:s})),S?delete A.orderByFields:r.orderByFields!==void 0&&(A.orderByFields=r.orderByFields.filter(Q=>{let Z=Q.split(" ");return!Re(Z[0])})),m&&kt(d[0])){let Q=ue(i),{objectIdField:Z}=Q;(await wt(i)).find(G=>G.name===p)?.type!==ve.DateOnly&&Xv({uniqueQuery:A,x:p,splitByField:Xe(h.where),unit:n?.unit??d[0].temporalBinning?.unit,chartSubType:u,objectIdField:Z})}A.where=V}xp({chartConfig:e,options:a,uniqueQuery:A});let{gdbVersion:q,geometry:L,distance:P,units:N,timeExtent:B,where:R,objectIds:M,spatialRelationship:E}=r;return q!==void 0&&(A.gdbVersion=q),L!==void 0&&(A.geometry=L),P!==void 0&&(A.distance=P),N!==void 0&&(A.units=N),B!==void 0&&(A.timeExtent=B),M!==void 0&&(A.objectIds=M),E!==void 0&&(A.spatialRelationship=E),R!==void 0&&(A.where=fe([A.where,R])),{uniqueQuery:A,mapToStatField:y}}async function e0(t){let{queryObject:e,queryConfig:r,chartConfig:a,abortKey:i}=t,n=a.series[0],{x:s,valueConversion:o}=n,l=go(a),d=await Lt({queryObject:e,queryConfig:r,featureCount:r.num??1,abortKey:i}),u=[{[s]:null}];if(l)u=d.map(c=>{co(c.attributes,s);let h=Eu(c.attributes[s],o);return{...c.attributes,[s]:h}});else if(d.length>0){let c=d[0].attributes[s]??d[0].attributes[s.toUpperCase()]??d[0].attributes[s.toLowerCase()];c=Eu(c,o),u=[{[s]:c}]}return u}async function t0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:n}=t,{chartLimits:s}=i??{},o={valid:!0};if(e!==void 0){let{behaviorAfterLimit:l,maxGaugeByFeaturesLimit:d}=s??{},u=go(r),c=!0,h;if(u&&(h=(await qp({chartConfig:r,queryObject:e,queryConfig:a,behaviorAfterLimit:l,numberMaxOfFeaturesToFetch:d,isGaugeByFeature:u})).elementCount,i?.chartLimits?.behaviorAfterLimit!==Tr.RenderUpToTheLimit&&(c=er({count:h??0,seriesCount:r.series.length,chartType:g.GaugeSeries,chartLimits:s})),i&&(Number.isFinite(d)||Number.isFinite(h)))){let p=Math.min(d??Number.NaN,h??Number.NaN);Number.isFinite(p)&&(i.chartLimits={...s,maxGaugeByFeaturesLimit:p}),xp({chartConfig:r,options:i,uniqueQuery:a})}if(Number.isNaN(c)||c){let p=await e0({queryObject:e,chartConfig:r,queryConfig:a,abortKey:n});o.data={dataItems:p},o.count=p.length}else o.count=h,pn({dataInfo:o,chartType:g.GaugeSeries})}return o}async function uI(t){let{queryObject:e,chartConfig:r,queryConfig:a}=t,{minimumFromField:i,maximumFromField:n}=r.axes[0],s=[],o="",l="";i!==void 0&&(typeof i=="string"?(o=`${j.Minimum}_${i}`,s.push({statisticType:j.Minimum,onStatisticField:i,outStatisticFieldName:o})):(o=`${i.statisticType}_${i.onStatisticField}`,s.push({...i,outStatisticFieldName:o}))),n!==void 0&&(typeof n=="string"?(l=`${j.Maximum}_${n}`,s.push({statisticType:j.Maximum,onStatisticField:n,outStatisticFieldName:l})):(l=`${n.statisticType}_${n.onStatisticField}`,s.push({...n,outStatisticFieldName:l})));let d={...a,outStatistics:s,orderByFields:void 0,groupByFieldsForStatistics:void 0,returnDistinctValues:void 0,fetchNullValues:void 0,num:void 0},u=await ia({queryObject:e,queryConfig:d}),c=u.get(o),h=u.get(l);return{minimumFromData:c,maximumFromData:h}}function r0(t=He.None,e){return t===He.None||t===He.Log&&e>0||t===He.Sqrt&&e>=0}function Cp(t,e){let r={valid:!1};return e===!0?r.invalidType=se.HistogramEmptyField:t===He.Log?r.invalidType=se.NegativeValueInLogCalculation:t===He.Sqrt&&(r.invalidType=se.NegativeValueInSqrtCalculation),r}function i0(t,e){let r=t;switch(e){case He.Log:r=Math.log(t);break;case He.Sqrt:r=Math.sqrt(t);break}return r}function a0(t){let e=t,r=t.toString().split(".");if(r[1]!==void 0){let a=10**-r[1].length;e=t-a}return e}function Ip(t){let e="field";switch(t){case He.Log:e="natural-log";break;case He.Sqrt:e="square-root";break;case He.None:}return e}async function n0(t){let{queryObject:e,fieldName:r,queryConfig:a,abortKey:i}=t,n=ue(e),{objectIdField:s}=n,o=`${j.Count}_${s}`,l=`${j.Count}_${r}`,d=`${j.Minimum}_${r}`,u=`${j.Maximum}_${r}`,c={...a,outStatistics:[{statisticType:j.Count,onStatisticField:s,outStatisticFieldName:o},{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:l},{statisticType:j.Minimum,onStatisticField:r,outStatisticFieldName:d},{statisticType:j.Maximum,onStatisticField:r,outStatisticFieldName:u}]},h=await ia({queryObject:e,queryConfig:c,abortKey:i}),p=h.get(o)??Number.NaN,f=h.get(l)??Number.NaN,m=h.get(d)??Number.NaN,y=h.get(u)??Number.NaN;return{countExcludingNulls:f,countIncludingNulls:p,min:m,max:y}}async function s0(t){let{queryConfig:e,chartConfig:r,queryObject:a,abortKey:i}=t,n=r.series[0],{x:s,dataTransformationType:o}=n,l=[],{countIncludingNulls:d,countExcludingNulls:u,min:c,max:h}=await n0({queryObject:a,queryConfig:e,fieldName:s,abortKey:i}),p=r0(o,c),f=u<2||c===h,m={...e};return m.where=fe([m.where,`${s} is not null`]),{rawData:l,dataCompatibleWithTransformation:p,dataCountIncompatible:f,countExcludingNulls:u,countIncludingNulls:d}}function o0(t){let e={...t};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}function l0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,queryConfig:n}=t,{x:s,dataTransformationType:o}=e,l={layer:r,view:i,field:s,sqlWhere:tr(n.where)?void 0:n.where,useFeaturesInView:a};return o!==He.None&&(l={...l,normalizationType:Ip(o)}),l}function d0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,minValue:n,maxValue:s,queryConfig:o}=t,{x:l,binCount:d,dataTransformationType:u}=e,c={layer:r,view:i,field:l,minValue:n,maxValue:s,numBins:d??Tg,classificationMethod:"equal-interval",sqlWhere:tr(o.where)?void 0:o.where,useFeaturesInView:a};return u!==He.None&&(c={...c,normalizationType:Ip(u)}),c}function u0(t,e){let r=Number.NaN;return t!==void 0&&e!==void 0&&(r=t-e),r}async function c0(t){let{chartConfig:e,queryConfig:r,queryObject:a,countExcludingNulls:i,countIncludingNulls:n,options:s,errorStrings:o}=t,l=e.series[0],{dataTransformationType:d}=l,u={valid:!0};if(a!==void 0){let c=ue(a),h=wn(r?.geometry)?.extent?.toJSON()!==void 0,p=s?.view,f=l0({seriesConfig:l,layer:c,view:p,useFeaturesInView:h,queryConfig:r}),m;if(p!==void 0&&(m=new Zd({geometry:p.extent}),p.extent!==void 0&&fo(c))){let{distance:L,units:P}=r;L!==void 0&&(m.distance=L),P!==void 0&&(m.units=P)}if(r.timeExtent){let L={start:r.timeExtent[0],end:r.timeExtent[1]};m===void 0?m=new Zd({timeExtent:L}):m.timeExtent=L}f.filter=m;let y;f.outStatisticTypes={exclude:["median"]};try{y=await Jd(f)}catch(L){throw new dt(St.QueryFeaturesError,o.errors.queryError,L)}f.outStatisticTypes={include:["median"]};try{let L=await Jd(f);L?.median&&(y.median=L.median)}catch{}y=o0(y);let{avg:b,count:v,stddev:S,min:C,max:T,sum:A,median:q}=y;if(v===0)u={...Cp(d)};else{let L=d0({seriesConfig:l,layer:c,view:p,useFeaturesInView:h,minValue:a0(C),maxValue:T,valueExpression:f.valueExpression,queryConfig:r});L.filter=m;let P;try{P=await Sm(L)}catch(B){throw new dt(St.QueryFeaturesError,o.errors.queryError,B)}let N=u0(n,i);u.data={mean:b,stddev:S,min:C,max:T,median:Number(q),bins:P?.bins,count:i,nulls:N,sum:A??void 0},u.data.bins.length>0&&(u.data.bins[u.data.bins.length-1].isLastBin=!0)}}return u}async function Fp(t){let{chartConfig:e,queryConfig:r,queryObject:a,options:i,abortKey:n,errorStrings:s}=t,{series:o}=e,l=o[0],{rawData:d,dataCompatibleWithTransformation:u,dataCountIncompatible:c,countIncludingNulls:h,countExcludingNulls:p}=await s0({queryObject:a,chartConfig:e,queryConfig:r,abortKey:n}),f={valid:!0};return!u||c?f=Cp(l.dataTransformationType,c):f=await c0({chartConfig:e,queryObject:a,queryConfig:r,countIncludingNulls:h,countExcludingNulls:p,options:i,errorStrings:s}),f}async function p0(t){let{queryObject:e,queryConfig:r,chartConfig:a,x:i}=t,{series:n}=a,{dataTransformationType:s}=n[0],o={...r,orderByFields:[i],outFields:[i]};return{valid:!0,data:{dataItems:(await Lt({queryObject:e,queryConfig:o})).map(l=>({[i]:i0(l.attributes[i],s)}))}}}var Hr={groupByCaseBegin:"CASE",groupByOutKeyword:"OUT",groupByCaseEnd:"ELSE 'OUT' END"},h0="{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";async function f0(t){let{chartConfig:e,queryObject:r,queryConfig:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,{dataContextCountDistinctX:l,dataContextCountDistinctY:d}=O.scatterplotAggregationFields,u={...a,outStatistics:[{statisticType:j.Count,outStatisticFieldName:l,onStatisticField:s},{statisticType:j.Count,outStatisticFieldName:d,onStatisticField:o}],returnDistinctValues:!0};return await ia({queryObject:r,queryConfig:u,abortKey:i})}async function m0(t){let{statsMap:e,chartConfig:r,queryObject:a,options:i,queryConfig:n,abortKey:s}=t,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:u,dataContextCountDistinctX:c,dataContextCountDistinctY:h}=O.scatterplotAggregationFields,p,f,m,y,b,v=e.get(o),S=e.get(l),C=e.get(d),T=e.get(u);if(v!=null&&C!==void 0&&C!==null&&S!==void 0&&S!==null&&T!==void 0&&T!==null&&!Number.isNaN(v+S+C+T)){let{maxScatterPointsAfterAggregation:A}=Jr(i?.chartLimits),q=Math.floor(Math.sqrt(A)),L=await f0({queryObject:a,chartConfig:r,queryConfig:n,abortKey:s});m=Math.min(L.get(h)??Number.NaN,q),y=Math.min(L.get(c)??Number.NaN,q),b=y*m,p=S===v?0:(S-v)/(y-1),f=T===C?0:(T-C)/(m-1),e.set(O.scatterplotAggregationFields.xStep,p),e.set(O.scatterplotAggregationFields.yStep,f),e.set(O.scatterplotAggregationFields.rowCount,m),e.set(O.scatterplotAggregationFields.columnCount,y),e.set(O.scatterplotAggregationFields.realGridSize,b)}}function y0(t){let{groupByFieldsForStatistics:e,x:r,y:a,xValue:i,yValue:n,xStep:s,yStep:o,endOfRow:l,endOfColumn:d}=t,u=e===""?Hr.groupByCaseBegin:e;return u=qe(h0,{groupByFieldsForStatistics:u,x:r,y:a,xValue:`${i}`,yValue:`${n}`,xValuePlusStep:`${i+(d?0:s)}`,yValuePlusStep:`${n+(l?0:o)}`,xMinOperand:d?"=":">=",yMinOperand:l?"=":">=",xMaxOperand:d?"=":"<",yMaxOperand:l?"=":"<"}),u}async function g0(t){let{chartConfig:e,queryConfig:r,queryObject:a,xMin:i,xMax:n,yMin:s,yMax:o,abortKey:l}=t,d=e.series[0],{x:u,y:c}=d,h={...r};return h.where=fe([h.where,`${u}>=${i}`,`${u}<=${n}`]),u!==c&&(h.where=fe([h.where,`${c}>=${s}`,`${c}<=${o}`])),await Lt({queryObject:a,queryConfig:h,noBatch:!0,featureCount:1,abortKey:l})}async function b0(t){let{statsMap:e,chartConfig:r,queryObject:a,queryConfig:i,useQueryAttributeBins:n,errorStrings:s,abortKey:o}=t,l=r.series[0],{x:d,y:u}=l,{dataContextXMinField:c,dataContextXMaxField:h,dataContextYMinField:p,dataContextYMaxField:f,queryNumberOfFeatures:m,queryNumberOfAggregatedFeatures:y}=O.scatterplotAggregationFields,b,v=e?.get(c)??Number.NaN,S=e?.get(h)??Number.NaN,C=e?.get(m)??Number.NaN,T=e?.get(p)??v,A=e?.get(f)??S;if(v!=null&&T!==void 0&&T!==null&&S!==void 0&&S!==null&&A!==void 0&&A!==null&&!Number.isNaN(v+S+T+A)){let q=ue(a),{objectIdField:L}=q,P=e?.get(O.scatterplotAggregationFields.xStep),N=e?.get(O.scatterplotAggregationFields.yStep),B=e?.get(O.scatterplotAggregationFields.realGridSize),R=e?.get(O.scatterplotAggregationFields.rowCount),M=e?.get(O.scatterplotAggregationFields.columnCount),E=new Map,k=await wt(a);if(k?.forEach(V=>{wi(V)&&E.set(V.name,{onStatisticField:V.name,outStatisticFieldName:V.name,statisticType:j.Maximum})}),(k.filter(V=>l?.additionalTooltipFields?.includes(V.name))??[])?.forEach(V=>{wi(V)||E.set(V.name,{onStatisticField:V.name,outStatisticFieldName:V.name,statisticType:j.Maximum})}),(await Qp(q)).forEach(V=>{E.set(V,{onStatisticField:V,outStatisticFieldName:V,statisticType:j.Maximum})}),E.set(L,{onStatisticField:L,outStatisticFieldName:y,statisticType:j.Count}).set(d,{onStatisticField:d,outStatisticFieldName:d,statisticType:j.Maximum}).set(u,{onStatisticField:u,outStatisticFieldName:u,statisticType:j.Maximum}),P!==void 0&&N!==void 0){if(n){let V={...i,outStatistics:[...E.values()]};b=await VS({queryObject:a,queryConfig:V,xStep:P,xMin:v,xMax:S,x:d,y:u,yStep:N,errorStrings:s})}else if(R!==void 0&&M!==void 0){let V=0,{maxScatterCellsPerQuery:Q,maxScatterCellsPerQueryForStandard:Z}=ta(),G=await uw(q)?Z:Q,z=[],ie=!0,Ae=v,Ee=T,te="",xe=1,$e=1,je=Number.MAX_SAFE_INTEGER,ct=Number.MIN_SAFE_INTEGER,rt=Number.MAX_SAFE_INTEGER,Ce=Number.MIN_SAFE_INTEGER;for(;$e<=M&&ie;){for(Ee=T,xe=1;xe<=R&&ie;){if(te=y0({groupByFieldsForStatistics:te,x:d,y:u,xValue:Ae,yValue:Ee,xStep:P,yStep:N,endOfRow:xe===R,endOfColumn:$e===M}),Ae<je&&(je=Ae),Ae+P>ct&&(ct=Ae+P),Ee<rt&&(rt=Ee),Ee+P>Ce&&(Ce=Ee+N),V+=1,V%G===0||V===B||V===C){te=`${te} ${Hr.groupByCaseEnd}`;let Fe={...i,groupByFieldsForStatistics:[te],outStatistics:[...E.values()]};z.push(g0({chartConfig:r,queryConfig:Fe,queryObject:a,xMin:je,xMax:ct,yMin:rt,yMax:Ce,abortKey:o})),je=Number.MAX_SAFE_INTEGER,ct=Number.MIN_SAFE_INTEGER,rt=Number.MAX_SAFE_INTEGER,Ce=Number.MIN_SAFE_INTEGER,te="",V===B&&(ie=!1)}Ee+=N,xe+=1}Ae+=P,$e+=1}b=(await Promise.all(z)).flat()}}}return b}var v0={dataFormat:"json",outputFormat:"json",typeKey:"analyticType",typeValue:"LinRegR2",fieldValue:"onAnalyticField",slopePropertyList:["Slope","SLOPE","slope"],interceptPropertyList:["Intercept","INTERCEPT","intercept"],r2PropertyList:["R2","r2"]};async function S0(t){let{queryObject:e}=t,r=!1,a=$S(e),i=ue(e),n=Ge(i);if(a&&n.url!==void 0&&n.url!==null){let s=`${n.url}/${n.layerId}?f=json`;try{let o=(await en(s)).data,l=o?.advancedQueryCapabilities?.supportsQueryAnalytic===!0,d=o?.sqlParserVersion===void 0||n.version!=null&&n.version>=10.91;r=l&&d}catch{}}return r}function w0(t){let{x:e,y:r,trendlineXToY:a,data:i}=t,[n,s]=i?si(i,o=>o[e]):[Number.NaN,Number.NaN];return[{[e]:n??Number.NaN,[r]:a(n??Number.NaN)},{[e]:s??Number.NaN,[r]:a(s??Number.NaN)}]}function x0(t){let{data:e,x:r,y:a}=t,i=[];return e!==void 0&&(i=e.filter(n=>Number.isFinite(n[r])&&Number.isFinite(n[a])).map(n=>[n[r],n[a]])),i}async function C0(t){let{statsMap:e,queryObject:r,chartConfig:a,queryConfig:i}=t,n=a.series[0],{x:s,y:o}=n,l=Number.NaN,d=[{[s]:Number.NaN,[o]:Number.NaN},{[s]:Number.NaN,[o]:Number.NaN}],{dataFormat:u,outputFormat:c,typeKey:h,typeValue:p,fieldValue:f,slopePropertyList:m,interceptPropertyList:y,r2PropertyList:b}=v0,v=`[{"${h}": "${p}", "${f}":"${s},${o}"}]`,S=await kS({queryObject:r,queryConfig:i,outputFormat:c,dataFormat:u,outAnalytics:v});if(S!==void 0){let C=Number.NaN,T=Number.NaN,{expr:A}=Xa(S,m),{expr:q}=Xa(S,y),{expr:L}=Xa(S,b);A!==void 0&&Number.isFinite(S[A])&&(C=S[A]),q!==void 0&&Number.isFinite(S[q])&&(T=S[q]),L!==void 0&&Number.isFinite(S[L])&&(l=S[L]);let{dataContextXMinField:P,dataContextXMaxField:N,dataContextYMinField:B,dataContextYMaxField:R}=O.scatterplotAggregationFields,M=e.get(P)??Number.NaN,E=e.get(N)??Number.NaN,k=e.get(B)??Number.NaN,V=e.get(R)??Number.NaN,Q=(E-M)/100,Z=M-Q,G=Number.NaN;for(;!(G>=k&&G<=V)&&Z<=E;)Z+=Q,G=C*Z+T;let z=E+Q,ie=Number.NaN;for(;!(ie>=k&&ie<=V)&&z>=M;)z-=Q,ie=C*z+T;d=[{[s]:Z,[o]:G},{[s]:z,[o]:ie}]}return{r2:l,trendLinePoints:d}}function Tp(t){let{data:e,chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s,trendLinePoints:o}=O.scatterplotSeries,l=x0({data:e,x:i,y:n});if(l!==void 0){let d=jo(l),u=_o(d);s=d.m===0?0:Vo(l,u),o=w0({x:i,y:n,trendlineXToY:u,data:e})}return{r2:s,trendLinePoints:o}}async function I0(t){let e=await S0(t),{chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s}=O.scatterplotSeries,o=[{[i]:Number.NaN,[n]:Number.NaN},{[i]:Number.NaN,[n]:Number.NaN}],l={r2:s,trendLinePoints:o},d=!1;if(e)try{l=await C0(t)}catch{d=!0}return(!e||d)&&(l=Tp(t)),l}async function F0(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,l=new Map,{dataContextXMinField:d,dataContextXMaxField:u,dataContextYMinField:c,dataContextYMaxField:h,queryNumberOfFeatures:p}=O.scatterplotAggregationFields,{objectIdField:f}=ue(a),m=[{statisticType:j.Count,onStatisticField:f,outStatisticFieldName:p},{statisticType:j.Minimum,outStatisticFieldName:d,onStatisticField:s},{statisticType:j.Maximum,outStatisticFieldName:u,onStatisticField:s}];s!==o&&m.push({statisticType:j.Minimum,outStatisticFieldName:c,onStatisticField:o},{statisticType:j.Maximum,outStatisticFieldName:h,onStatisticField:o});let y={...r};return y.outStatistics=m,l=await ia({queryObject:a,queryConfig:y,abortKey:i}),s===o&&(l.set(c,l.get(d)??Number.NaN),l.set(h,l.get(u)??Number.NaN)),l}function Ua(t){let{value:e,valueMin:r,valueMax:a}=t;return e===r||e===a?e:Math.random()*(a-r)+r}function T0(t){let{useQueryAttributeBins:e,graphic:r,x:a,y:i,yStep:n}=t,{groupByOutKeyword:s}=Hr,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:u}=O.scatterplotAggregationFields,c=[];if(e&&"stackedAttributes"in r&&r.stackedAttributes){let h=_p(a,i),p=r.attributes[h.lowerBoundaryAlias],f=r.attributes[h.upperBoundaryAlias];r.stackedAttributes.forEach(m=>{let y=m[h.stackAlias],b;typeof y=="number"&&typeof n=="number"&&(y*=n),typeof y=="number"&&typeof n=="number"&&(b=y+n);let v=m[a],S=m[i];typeof y=="number"&&typeof b=="number"&&typeof v=="number"&&typeof S=="number"&&c.push({...m,[a]:Ua({value:v,valueMin:p,valueMax:f}),[i]:Ua({value:S,valueMin:y,valueMax:b}),[o]:Math.min(p,f),[l]:Math.max(p,f),[d]:y,[u]:b})})}else{let{expr:h,isInItem:p}=vn(r.attributes);if(p&&h&&r.attributes[h]!==s){let[f,m,y,b]=r.attributes[h].split("|");f=Math.min(f,m),m=Math.max(f,m),y=Math.min(y,b),b=Math.max(y,b);let v={...r.attributes,[o]:f,[l]:m,[d]:y,[u]:b};v[a]=Ua({value:v[a],valueMin:f,valueMax:m}),v[i]=Ua({value:v[i],valueMin:y,valueMax:b}),c=[v]}}return c}function P0(t){let{chartConfig:e,rawData:r,isAggregationMode:a,yStep:i,useQueryAttributeBins:n}=t,s=e.series[0],{x:o,y:l}=s,d=(Array.isArray(r)?r:r?.features)?.flatMap(u=>{let c=[{...u.attributes}];return co(c[0],[o,l]),a?c=T0({useQueryAttributeBins:n,graphic:u,x:o,y:l,yStep:i}):c[0][ke.uniqueIdsName]=u.getObjectId(),c});return d=d?.filter(u=>{let{expr:c}=vn(u);return Number.isFinite(u[o])&&Number.isFinite(u[l])&&(c===void 0||u[c]!==Hr.groupByOutKeyword)}),d??[]}async function O0(t){let{queryObject:e,queryConfig:r,chartConfig:a,featureCount:i,abortKey:n}=t,s=a.series[0],{x:o,y:l}=s,d=ue(e),u=[],c=((await wt(e))?.filter(m=>wi(m)&&m.name!==o&&m.name!==l)??[]).map(m=>m.name)??[],h=s?.additionalTooltipFields??[],p=Array.from(new Set([o,l,d.objectIdField,...c,...h]));if(!Ge(d).isTable){let{rendererField:m,rendererNormalizationField:y}=iw(d?.renderer??void 0);Re(m)||p.push(m),Re(y)||p.push(y)}let f={...r,orderByFields:[`${o} ${We.Ascending}`],outFields:p};return u=await Lt({queryObject:e,queryConfig:f,featureCount:i,abortKey:n}),u}async function A0(t){let e,{chartConfig:r,queryConfig:a,queryObject:i,statsMap:n,numberOfFeatures:s,isAggregationMode:o,useQueryAttributeBins:l,errorStrings:d,abortKey:u}=t,c=r.series[0],{x:h,y:p}=c;if(!Number.isNaN(s)&&s>0){let f={...a};f.where=fe([f.where,`${h} IS NOT NULL`,`${p} IS NOT NULL`]),o?e=await b0({chartConfig:r,queryObject:i,queryConfig:f,statsMap:n,useQueryAttributeBins:l,errorStrings:d,abortKey:u}):e=await O0({queryObject:i,chartConfig:r,queryConfig:f,featureCount:s,abortKey:u})}return e}async function Pp(t){let{chartConfig:e,queryConfig:r,queryObject:a,sortData:i,calculateTrendLine:n,options:s,abortKey:o}=t,l=await F0({chartConfig:e,queryConfig:r,queryObject:a,abortKey:o}),{queryNumberOfFeatures:d,yStep:u}=O.scatterplotAggregationFields,{maxScatterPointsBeforeAggregation:c}=Jr(s?.chartLimits),h=l?.get(d)??Number.NaN,p=h>=c,f=MS(a);p&&await m0({statsMap:l,chartConfig:e,queryObject:a,options:s,queryConfig:r,abortKey:o});let m=await A0({...t,statsMap:l,numberOfFeatures:h,isAggregationMode:p,useQueryAttributeBins:f}),y=P0({chartConfig:e,rawData:m,isAggregationMode:p,yStep:l.get(u),useQueryAttributeBins:f});i!==!1&&Hi({arrayToSort:y,sortingField:e.series[0].x,orderBy:We.Ascending});let{r2:b,trendLinePoints:v}=n!==!1?await I0({data:y,statsMap:l,queryConfig:r,options:s,queryObject:a,chartConfig:e}):O.scatterplotSeries;return{dataItems:y,r2:b,trendLinePoints:v,aggregated:p}}function E0(t){let{itemsA:e,itemsB:r,isPieFromFields:a,x:i,y:n,outStatisticFieldName:s}=t,o=Mr(e),l=Mr(r),d=!1;if(o===void 0&&l!==void 0||o!==void 0&&l===void 0)d=!0;else if(!a){let u=[O.originalCategoryValue,O.originalDateValue,O.xAxisField,O.technicalSortingFieldBySum,O.technicalSortingFieldByPercent,O.pieChart.technicalFieldSlicePercent,O.pieChart.technicalFieldGroupedSlices,O.pieChart.technicalFieldSliceId,O.typeOrDomainFieldName,O.typeOrDomainIdValue,O.originalServerBinningRange,O.lastTemporalBin,O.technicalFieldSplitByField,ke.uniqueIdsName,Ie.valueField,...Uc],c=(m,y)=>{let b=y[O.typeOrDomainFieldName];typeof b=="string"&&y[b]!==void 0&&(y[b]=y[O.typeOrDomainIdValue]),i&&y[Ie.xField]!==void 0&&(y[i]=y[Ie.xField],delete y[Ie.xField]),n&&y[Ie.yField]!==void 0&&(y[n]=y[Ie.yField],delete y[Ie.yField]),s&&y[Ie.valueField]!==void 0&&(y[s]=y[Ie.valueField],delete y[Ie.valueField]);let v={};return Object.keys(y).forEach(S=>{!u.includes(S)&&!S.includes(O.rendererSymbolField)&&(v[S]=y[S])}),m.push(v),m},h=(m,y)=>JSON.stringify(m).localeCompare(JSON.stringify(y)),p=o?.reduce(c,[])?.sort(h),f=l?.reduce(c,[])?.sort(h);p&&f&&i&&p.length!==f.length&&(p=Qi({data:p,x:i}),f=Qi({data:f,x:i})),d=p?.length!==f?.length||!dr(p,f)}return d}function L0(t){let{chartConfig:e,currentSelectionDataItems:r,options:a}=t,{selectionData:i}=a??{},n=[];if(e!==void 0){let s=e.series,o=Y(s),{selectionItems:l}=i??{};if(l!==void 0&&E0({itemsA:l,itemsB:r,isPieFromFields:Y(e.series)===x.PieFromFields,x:e.series[0].x,y:"y"in e.series[0]?e.series[0].y.toString():void 0,outStatisticFieldName:e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName})?n=l:n=r??[],s.length>1&&o!==x.BarAndLineNoAggregation&&o!==x.BarAndLineSplitByNoAggregation){let d=Xe(s[0].query?.where);n=Qi({data:n,x:s[0].x,splitByField:d})}ra({arrayToSort:n,chartConfig:e})}return n??[]}function Ir(t,e){let r="";if(t.trim()!==""&&e!==void 0)if(e===null)r=`${t} IS NULL`;else{let a=typeof e!="number"?"'":"";r=`${t}=${a}${e.toString()}${a}`}return r}function D0(t){let{dataContext:e,xAxisField:r,yAxisField:a,options:i}=t,n="",{dataContextXMinField:s,dataContextXMaxField:o,dataContextYMinField:l,dataContextYMaxField:d}=O.scatterplotAggregationFields;if(Xc({dataContext:e,chartLimits:i?.chartLimits})){let{[s]:u,[o]:c}=e,h=r!==a?e[l]:u,p=r!==a?e[d]:c;if(!Number.isNaN(u)&&!Number.isNaN(c)&&!Number.isNaN(h)&&!Number.isNaN(p)){let f=[];u===c?f.push(`${r}=${u?.toString()}`):(f.push(`${r}>=${u?.toString()}`),f.push(`${r}<=${c?.toString()}`)),h===p?f.push(`${a}=${h?.toString()}`):(f.push(`${a}>=${h?.toString()}`),f.push(`${a}<=${p?.toString()}`)),n=fe(f)}}else n=fe([ir({where:Ir(r,e[r])}),a!==void 0?ir({where:Ir(a,e[a])}):""]);return n}function Op(t,e){let r="",a=e[O.originalServerBinningRange]??e[O.dateBinningRange];if(la(a)&&a.length===2){let[i,n]=a;typeof i=="number"&&typeof n=="number"&&Number.isFinite(i)&&Number.isFinite(n)&&(i=vi(i),n=vi(n));let s=e[O.lastTemporalBin]===!0?"<=":"<";r=`${t}>='${i}' AND ${t}${s}'${n}'`}return r}function Ap(t,e){let r="";if(Number.isFinite(t)){let a=1/10**O.queryMaxFloatPrecision;r=`${e}>=${t-a} AND ${e}<=${t+a}`}return r}function Ep(t){let{xAxisField:e,yAxisField:r,splitBy:a,dataContext:i,xAxisFieldType:n,chartConfig:s}=t,o="";if(e!==void 0&&e!==O.boxPlot.boxPlotCategory){let u=Gi({value:i[e],dataContext:i,keepNullValues:!0,specificField:O.typeOrDomainIdValue});n===ve.Double?o=Ap(u,e):(Ur(s.axes?.[0].valueFormat)&&(u=vi(u)),o=ir({where:Ir(e,u),normalize:!1,escape:!0}))}let l=ir({where:a??"",normalize:!1,escape:!0}),d="";if(nb(s)===!0){let u=Y(s.series)===x.BoxPlotMultiFieldsAndCategory?r:void 0,c=Ue({key:U.Min,showOutliers:!0,splitBy:a,y:u}),h=Ue({key:U.Max,showOutliers:!0,splitBy:a,y:u}),p=e===O.boxPlot.boxPlotCategory?i[e]:r;if(!Re(p)){let f=i[c],m=i[h];Number.isFinite(f)&&Number.isFinite(m)&&(d=`${p?.toString()}>=${f?.toString()} AND ${p?.toString()}<=${m?.toString()}`)}}return fe([o,l,d])}function N0(t){let{xAxisField:e,splitBy:r,dataContext:a,xAxisFieldType:i,chartConfig:n}=t,s="";if(O.dateBinningRange in a)s=Op(e,a);else if(Y(n.series)!==x.BarAndLineFromFields){let l=Gi({value:a[e],dataContext:a,keepNullValues:!0,specificField:O.typeOrDomainIdValue});i===ve.Double?s=Ap(l,e):(Ur(n.axes?.[0].valueFormat)&&(l=vi(l)),s=ir({where:Ir(e,l),normalize:!1,escape:!0}))}let o=ir({where:r??"",normalize:!1,escape:!0});return fe([s,o])}function $0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i=O.typeOrDomainIdValue in r?r[O.typeOrDomainIdValue]:r[O.originalCategoryValue];return i===void 0&&(i=r[e]),Y(a.series)===x.PieFromFields?"":ir({where:Ir(e,i),normalize:!1,escape:!0})}function qu(t){let{field:e,fieldType:r,fieldValue:a,unit:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l,{expression:d}=mo({field:e,fieldType:r,unit:i,addIntervalStatement:!0,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o});return d&&(l=`${d}=${a}`),l}function B0(t){let{xAxisFieldType:e,yAxisFieldType:r,dataContext:a,chartConfig:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l=i.series[0],d="";if(l.type===g.HeatSeries){let u,c,h=a[Ie.xField],p=a[Ie.yField],f=i.axes?.[0]?.valueFormat?.type,m=i.axes?.[1]?.valueFormat?.type;f===g.CategoryAxisFormat?u=ir({where:Ir(l.x,h),normalize:!1,escape:!0}):u=qu({field:l.x,fieldType:e,fieldValue:h,unit:l.xTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),m===g.CategoryAxisFormat?c=ir({where:Ir(l.y,p),normalize:!1,escape:!0}):c=qu({field:l.y,fieldType:r,fieldValue:p,unit:l.yTemporalBinning?.unit}),u&&(d=fe([d,u])),c&&(d=fe([d,c]))}return d}function M0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i="",n=a.series[0],{minValue:s,maxValue:o}=r;if(Number.isFinite(s)&&Number.isFinite(o)&&n.type===g.HistogramSeries){let l=Tb(e,n.dataTransformationType),d=r.isLastBin?"<=":"<";i=fe([`${l}>=${s?.toString()}`,`${l}${d}${o?.toString()}`])}return i}function cI(t){let{chartConfig:e}=t,r=X(e.series),a="";switch(r){case g.ScatterSeries:a=D0(t);break;case g.HeatSeries:a=B0(t);break;case g.RadarSeries:case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:a=N0(t);break;case g.BoxPlotSeries:a=Ep(t);break;case g.HistogramSeries:a=M0(t);break;case g.PieSeries:a=$0(t);break}return a}async function q0(t){let{numberOfQueries:e,selectionOIDs:r,chartConfig:a,queryConfig:i,options:n,errorStrings:s,queryObject:o}=t,{setTimeBinningInfoWhenNotProvided:l}=n??{},{series:d}=a,u=X(d),c=[],{maxOIDsPerSelectionQuery:h}=ta();for(let p=0;p<e;p+=1){let f=p*h,m=(p+1)*h-1,y=r.slice(f===0?0:f-1,m),b={...i};switch(b.objectIds=y,u){case g.HeatSeries:c.push(Rp({completeHeatChartDataset:!1,chartConfig:a,queryConfig:b,queryObject:o,errorStrings:s,options:n}));break;case g.PieSeries:case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.ComboLineAndBarSeries:if(Yr({xAxisValueFormatType:nr(a),setTimeBinningInfoWhenNotProvided:l,seriesConfig:d[0]})){let v=a;"temporalBinning"in v.series[0]&&v.series[0].temporalBinning&&(v.series[0].temporalBinning.trimIncompleteTimeInterval=!1,Zi(o)&&(delete v.series[0].temporalBinning.start,delete v.series[0].temporalBinning.end)),c.push(po({chartConfig:v,queryConfig:b,queryObject:o,options:n}))}else c.push(AS({queryObject:o,chartConfig:a,options:n,queryConfig:b}));break;case g.BoxPlotSeries:c.push(ES({queryObject:o,chartConfig:a,options:n,errorStrings:s,queryConfig:b}));break;case g.ScatterSeries:c.push(Pp({queryObject:o,chartConfig:a,queryConfig:b,options:n,errorStrings:s,sortData:!1,calculateTrendLine:!1}));break;case g.HistogramSeries:c.push(p0({queryObject:o,queryConfig:b,chartConfig:a,x:d[0].x}));break}}return await Promise.all(c)}function R0(t){let{dataFetchingResults:e,numberOfQueries:r,series:a}=t,i=X(a),n=Y(a),s=[],o=new Map;for(let l=0;l<r;l+=1){let d=e[l];if(d!==void 0){let u;if(i===g.ScatterSeries)u=d.dataItems;else if("data"in d&&d.data){let c=d.data;"dataItems"in c&&(u=c.dataItems),"outliers"in c&&c.outliers&&s.push(...c.outliers),"meanLines"in c&&c.meanLines&&s.push(...c.meanLines)}if(u)if(a[0].type===g.HeatSeries)r>0&&u.forEach(c=>{o.set(`${c[Ie.xField]}-${c[Ie.yField]}`,c)});else if(a[0].type===g.ScatterSeries){let{x:c,y:h}=a[0];s.push(...u.map(p=>({[c]:p[c],[h]:p[h]})))}else d.valid&&(n===x.PieFromFields?s=dn({dataToConvert:u[0],x:st,y:qt}):n===x.BarAndLineFromFields?s=dn({dataToConvert:u[0],x:a[0].x,y:a[0].y}):s.push(...u))}}return o.size>0&&(s=Array.from(o.values())),s}async function k0(t){let{chartConfig:e,queryConfig:r,chartData:a,currentSelectionOIDs:i,dataWasUpdated:n,queryObject:s,options:o,errorStrings:l}=t,{series:d}=e,{selectionData:u,viewExtentUpdated:c,returnSelectionOIDs:h,chartLimits:p}=o??{},{selectionItems:f,selectionOIDs:m}=u??{},y,b=X(d),v=b!==g.HistogramSeries&&b!==g.HeatSeries&&f!==void 0&&f.length>0&&!(d[0].x in f[0])&&!(st in f[0])&&!(O.boxPlot.boxPlotCategory in f[0]);if(c!==!0&&h!==!1&&m!==void 0&&m.length>0&&(n===!0||v||m.length!==i?.length||!dr(m,i))){let S=Zp(a);if(S!==void 0&&!Fb({dataContext:S[0],chartConfig:e,chartLimits:p}))y=S.filter(C=>{let T=C[ke.uniqueIdsName];return typeof T=="number"||typeof T=="string"?m?.includes(T):!1});else if(m?.[0]!==void 0&&r!==void 0){let{maxOIDsPerSelectionQuery:C}=ta(),T=Math.ceil(m.length/C),A=await q0({numberOfQueries:T,selectionOIDs:m,queryConfig:r,queryObject:s,options:o,errorStrings:l,chartConfig:e});y=R0({dataFetchingResults:A,numberOfQueries:T,series:d})}}return y}function*j0(t){let{filterList:e,queryObject:r,queryConfig:a}=t;for(let i=0;i<e.length;i+=1){let n={...a};n.where=fe([n.where,e[i]]),yield US({queryObject:r,queryConfig:n,uniqueFeature:!0})}}async function pI(t){let{whereList:e,queryObject:r,queryFilter:a,queryConfig:i}=t,n=[];if(e.length>0){let s=ta().maxElementsPerSelectionQuery,o=[],l=Math.ceil(e.length/s);for(let u=0;u<l;u+=1){let c=u*s,h=(u+1)*s,p=e.slice(c===0?0:c-1,h),f=fe(p,"OR");f=fe([a,f]),o.push(f)}let d=j0({filterList:o,queryObject:r,queryConfig:i});n=(await Promise.all(d)).flat(),n=Array.from(new Set(n))}return n}async function _0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,options:n,errorStrings:s,abortKey:o}=t,l=Y(a.series),d={valid:!0,data:{dataItems:[]}};if(i!==void 0&&i.length>0){let u=Ar(a),{x:c}=u,h="y"in u?u.y:"",p;e!==void 0&&(p=(await wt(e)).find(S=>S.name===c)?.type);let f=[],m=i.reduce((S,C)=>{let T=[];if(ke.uniqueIdsName in C)f.push(C[ke.uniqueIdsName]);else{switch(l){case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMultiFieldsAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:{let L=Xe(u.query?.where??""),P=`_${U.Average}`;Object.keys(C).forEach(N=>{if(N.includes(P)){let B=N.replace(P,"");B.trim()!==""&&T.push(Ir(L,B))}});break}}let A=[h].flat(),q=A.length===1?A[0]:"";if(l===x.BoxPlotMultiFieldsAndCategory){let L=`_${U.FirstQuartile}`,P=Object.keys(C).find(N=>N.includes(L));P!==void 0&&(q=P.replace(L,""))}T.length===0&&T.push(""),T.forEach(L=>{let P=Ep({chartConfig:a,xAxisField:c,yAxisField:q,splitBy:L,dataContext:C,xAxisFieldType:p});S.push(P)})}return S},[]),y=ue(e);if(y!==void 0&&f.length>0){let{objectIdField:S}=y;m.push(`${S} IN (${f.join(",")})`)}let b=m.join(" OR "),v={...r};v.where=fe([v.where,b]),d=await uo({queryObject:e,chartConfig:a,queryConfig:v,options:n,errorStrings:s,abortKey:o})}return d}async function V0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,abortKey:u}=t,{series:c}=a,h=X(c),p=nr(a),f={valid:!0},m;s?m=await k0({chartConfig:a,queryConfig:r,chartData:o,currentSelectionOIDs:n,dataWasUpdated:!0,queryObject:e,options:l,errorStrings:d})??[]:m=L0({chartConfig:a,currentSelectionDataItems:i,options:l});let y=!1;switch(h){case g.HeatSeries:f.data={dataItems:m};break;case g.PieSeries:if(Y(a.series)===x.PieFromFields){let{x:b,y:v}=a.series[0],S=Mr(m);S.forEach(C=>{b in C&&(C[st]=C[b],delete C[b]),v in C&&(C[qt]=C[v],delete C[v])}),f.data={dataItems:S}}else f.data={dataItems:m};f.count=m.length,y=!0;break;case g.BoxPlotSeries:f=await _0(t);break;case g.BarSeries:case g.ComboLineAndBarSeries:case g.RadarSeries:case g.LineSeries:if(m.length===0||!Yr({xAxisValueFormatType:p,setTimeBinningInfoWhenNotProvided:l?.setTimeBinningInfoWhenNotProvided,seriesConfig:c[0]}))f.data={dataItems:m},f.count=m.length*c.length,y=!0;else{let b={...r};if(i!==void 0&&i.length>0){let v=i.map(C=>Op(c[0].x,C)),S=fe(v,"OR");b.where=fe([b.where,S])}f=await po({queryObject:e,queryConfig:b,chartConfig:a,options:l})}break;case g.HistogramSeries:{if(m.length===0)f.data={mean:Number.NaN,median:Number.NaN,stddev:Number.NaN,max:Number.NaN,min:Number.NaN,bins:[]},f.count=0;else{let{x:b}=c[0],v=m.map((T,A)=>{let{minValue:q,maxValue:L}=T,P=A===m.length-1?"<=":"<";return`${b} >= ${q} AND ${b} ${P} ${L}`}),S=fe(v,"OR"),C={...r};C.where=fe([C.where,S]),f=await Fp({queryObject:e,chartConfig:a,queryConfig:C,options:l,errorStrings:d,abortKey:u})}break}case g.ScatterSeries:{if(m.length===0){let{r2:b,trendLinePoints:v}=O.scatterplotSeries;f.data={dataItems:[],r2:b,trendLinePoints:v,count:0},f.count=0}else{let{r2:b,trendLinePoints:v}=Tp({data:m,chartConfig:a});f.data={dataItems:m,r2:b,trendLinePoints:v},f.count=m.length}break}}return y&&f.data!==void 0&&ra({arrayToSort:"dataItems"in f.data?f.data.dataItems:f.data,chartConfig:a}),f}async function uo(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s}=t,o={valid:!0},l=Ui(r),d=await Gs({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!l,options:i,chartConfig:r,abortKey:s});if(!l)o=d;else{let u={dataItems:[]};u.meanLines=d.data.dataItems;let c=Ev(r),h=(await Gs({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!0,options:i,chartConfig:c,abortKey:s})).data;u.dataItems=h.dataItems,u.outliers=h.outliers,o.data=u}return o}async function W0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,{series:d}=r,{filterBySelection:u}=i??{},c=X(d),h={valid:!0};if(u===!0)h=await V0(t);else switch(c){case g.HeatSeries:h=await Rp(t);break;case g.BoxPlotSeries:h=await uo(t);break;case g.BarSeries:case g.ComboLineAndBarSeries:case g.PieSeries:case g.RadarSeries:case g.LineSeries:{let p={queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,fieldList:o,preFetchedQueryResponse:l};Yr({xAxisValueFormatType:nr(r),setTimeBinningInfoWhenNotProvided:i?.setTimeBinningInfoWhenNotProvided,seriesConfig:d[0]})?h=await po(p):h=await Gs(p);break}case g.ScatterSeries:h.data=await Pp({queryObject:e,queryConfig:a,options:i,chartConfig:r,errorStrings:n,abortKey:s});break;case g.HistogramSeries:h=await Fp({queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,errorStrings:n});break;case g.GaugeSeries:h=await t0({queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:s});break}return h}async function hI(t){let{queryObject:e,chartConfig:r,abortKey:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,fieldList:u,preFetchedQueryResponse:c}=t,h={valid:!0},p=hw({queryObject:e,chartConfig:r,runtimeDataFilters:l?.runtimeDataFilters,ignoreViewExtent:l?.ignoreViewExtent});return GS(a),h=await W0({chartConfig:r,queryObject:e,queryConfig:p,fullDatasetBeforeFBS:o,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,options:l,abortKey:a,errorStrings:d,fieldList:u,preFetchedQueryResponse:c}),h.queryConfig=p,h}function z0(t,e,r){let a=new Map;for(let i=0;i<t.length;i+=1)a.set(t[i],{[r]:t[i]});for(let i=0;i<e.length;i+=1){let n=e[i][r];(typeof n=="string"||typeof n=="number")&&a.set(n,e[i])}return[...a.values()]}async function U0(t){let{seriesData:e,chartConfig:r,queryConfig:a,queryObject:i,categoryOrDateCount:n,behaviorAfterLimit:s,abortKey:o}=t,{series:l}=r,d=e,u=Y(l),c=nr(r);if(s!==Tr.RenderUpToTheLimit&&i!==void 0&&n!==void 0&&n>e.length&&u!==x.BarAndLineFromFields&&u!==x.BarAndLineNoAggregation&&u!==x.PieNoAggregation&&c===g.CategoryAxisFormat){let{x:h}=l[0],p={...a,returnDistinctValues:!0,outFields:[h]};delete p.outStatistics,delete p.orderByFields,delete p.groupByFieldsForStatistics;let f=(await Lt({queryObject:i,queryConfig:p,featureCount:n,abortKey:o})).map(m=>m.attributes[h]).filter(m=>m!=null);f.length>e.length&&(d=z0(f,e,h))}return d}function G0(t,e){let r=t,{series:a}=e;if(nr(e)===g.CategoryAxisFormat&&a[0].query?.outStatistics?.[0].statisticType===j.Count){let i=a.reduce((n,s)=>{let o=s.query?.outStatistics?.[0].outStatisticFieldName??[s.y].flat()[0];return n[o]=0,n},{});for(let n=0;n<t.length;n+=1)t[n]={...i,...t[n]}}return r}var Lp=[x.BarAndLineMonoField,x.BarAndLineMultiFields,x.PieNoAggregation,x.PieFromCategory,x.BoxPlotMonoFieldAndCategory,x.BoxPlotMultiFieldsAndCategory,x.BoxPlotMonoFieldAndCategoryAndSplitBy],H0=8e3;function Dp(t,e){let r=t;return e===H.Week?r/=7:e===H.Month?r/=30:e===H.Year&&(r/=365),r=Math.ceil(r),r}function Fr(t){let{date:e,unit:r,nextOrPrevious:a,size:i}=t;if(i!==void 0&&Number.isFinite(i)){let n=a==="next"?i:-i;switch(r){case H.Second:return ae.fromMillis(e).plus({seconds:n}).valueOf();case H.Minute:return ae.fromMillis(e).plus({minutes:n}).valueOf();case H.Hour:return ae.fromMillis(e).plus({hours:n}).valueOf();case H.Week:case H.Day:return ae.fromMillis(e).plus({days:n}).valueOf();case H.Month:return ae.fromMillis(e).plus({months:n}).valueOf();case H.Year:return ae.fromMillis(e).plus({years:n}).valueOf()}}return e}function Q0(t){let{binFirstOrLastIndex:e,data:r,x:a,timeIntervalInfo:i}=t,{unit:n,size:s}=i,o=n===H.Week?(s??1)*7:s,l=r[e][a],d=e,u=Fr({date:l,unit:n,size:o,nextOrPrevious:"next"}),c=r[d][a];for(;d+1<r.length&&c<u;)d+=1,c=r[d]?.[a];let h=d+1>=r.length,p=d;h&&r[p]!==void 0&&(p+=1);let f=h?Fr({date:l,unit:n,size:o,nextOrPrevious:"next"}):r[d][a];return{binStartDate:l,binEndDate:f,last:h,nextBinFirstOrLastIndex:d,sliceStartIndex:e,sliceEndIndex:p}}function Z0(t){let{binFirstOrLastIndex:e,data:r,x:a,timeIntervalInfo:i}=t,{unit:n,size:s}=i,o=n===H.Week?(s??1)*7:s,l=r[e][a],d=e,u=Fr({date:l,unit:n,size:o,nextOrPrevious:"previous"}),c=r[d][a];for(;d-1>=0&&c>u;)d-=1,c=r[d]?.[a];let h=d-1<=0,p=e;return h&&r[p]!==void 0&&(p-=1),h&&(d=0),{binStartDate:h?Fr({date:l,unit:n,size:o,nextOrPrevious:"previous"}):r[d][a],binEndDate:l,nextBinFirstOrLastIndex:d,sliceStartIndex:d,sliceEndIndex:p,last:h}}function J0(t){let{binsToRegroup:e,statisticType:r,y:a,nullPolicy:i}=t,n;i!==at.Interpolate&&(n=i===at.Zero?0:null);let s=e.filter(o=>Number.isFinite(o[a]));if(s.length>0)switch(r){case j.Count:case j.Sum:n=ma(s,o=>o[a]);break;case j.Minimum:n=ha(s,o=>o[a]);break;case j.Maximum:n=pa(s,o=>o[a]);break;case j.Average:n=fa(s,o=>o[a]);break;case j.ContinuousPercentile:}return n}function K0(t){let{data:e,seriesConfig:r,timeIntervalInfo:a,dateMinTimestamp:i,dateMaxTimestamp:n}=t,s=[],{unit:o}=a,l=a.size??1,d=r[0],{x:u}=d,c,h;if(kt(d)&&(h=d.temporalBinning?.nullPolicy,c=d.temporalBinning?.timeAggregationType),l>1||o===H.Week||o===H.Month||o===H.Year){let{query:p}=r[0],f=tt(r),{statisticType:m}=p?.outStatistics?.[0]??da,y=!1,b=c===Be.End?e.length-1:0,v={binFirstOrLastIndex:b,data:e,x:u,timeIntervalInfo:a};for(;!y;){let S={},{binStartDate:C,binEndDate:T,last:A,nextBinFirstOrLastIndex:q,sliceStartIndex:L,sliceEndIndex:P}=c===Be.End?Z0(v):Q0(v);if(y=A,S=c===Be.End?S=e[P-1]:S=e[b],T>n&&C<n||C<i&&T>i||C>=i&&T<=n){let N=e.slice(L,P).filter(M=>!(O.dateBinModel in M));f.forEach(M=>{S[M]=J0({binsToRegroup:N,statisticType:m,y:M,nullPolicy:h})});let B=N.map(M=>M[xr]).filter(M=>M!==void 0),R=gb(B);R!==void 0&&(S[xr]=R),S[u]=C,S[O.xAxisField]=C,S[O.dateBinningRange]=[C,T],delete S[O.dateBinModel],s.push(S)}else A&&c!==Be.End&&s.length>0&&(s[s.length-1][O.dateBinningRange][1]=s[s.length-1][O.dateBinningRange][1]+1);b=q,v.binFirstOrLastIndex=q}c===Be.End&&(s=s.reverse())}else l===1?s=e.map((p,f)=>{let m=p[u],y=e[f+1]?.[u];return y=typeof y=="number"?y-1:Fr({date:m,unit:o,size:l,nextOrPrevious:"next"}),{...p,[O.dateBinningRange]:[m,y]}}):s=e;return s}function Np(t){let{dateMinTimestamp:e,dateMaxTimestamp:r,timeIntervalInfo:a}=t,{size:i,unit:n}=a,s=0,o=0;if(i!==void 0&&Number.isFinite(i)&&Number.isFinite(e)&&Number.isFinite(r)){let l=-1,d=ae.fromMillis(e),u=ae.fromMillis(r);switch(n){case H.Second:l=u.diff(d,"seconds").get("seconds");break;case H.Minute:l=u.diff(d,"minutes").get("minutes");break;case H.Hour:l=u.diff(d,"hours").get("hours");break;case H.Day:case H.Month:case H.Year:l=u.diff(d,"days").get("days");break;case H.Week:l=u.diff(d,"weeks").get("weeks");break}Number.isFinite(l)&&(o=Math.ceil(l)+1,s=i===1?o:Math.ceil(o/i))}return{numberOfFinalBinsWithinDataRange:s,numberOfSingleBinsWithinDataRange:o}}function $p(t){let e=t[0].temporalBinning?.nullPolicy;return t.reduce((r,a)=>{r[O.dateBinModel]=void 0;let i=a.query?.outStatistics?.[0].outStatisticFieldName??[a.y].flat()[0];return e!==at.Interpolate&&(r[i]=e===at.Zero?0:null),r},{})}function Y0(t){let{dateMaxTimestamp:e,numberOfFinalBinsWithinDataRange:r,numberOfSingleBinsWithinDataRange:a,data:i,seriesConfig:n,timeIntervalInfo:s}=t,{size:o,unit:l}=s,{x:d}=n[0],u=n[0].temporalBinning?.timeAggregationType,c=i[0][d],h=e;if(o!==void 0&&Number.isFinite(o)&&a/r!==o){let p=Math.ceil(a/r)*r-a;l===H.Week&&(p*=7);let f=$p(n);if(u===Be.End){let m=i[0][d];for(let y=0;y<p;y+=1)m=Fr({date:m,unit:l,size:1,nextOrPrevious:"previous"}),i.push({...f,[d]:m,[O.xAxisField]:m});p>0&&(c=i[i.length-1][d])}else{let m=i[i.length-1][d];for(let y=0;y<p;y+=1)m=Fr({date:m,unit:l,size:1,nextOrPrevious:"next"}),i.push({...f,[d]:m,[O.xAxisField]:m});h=i[i.length-1][d]}}return{newDateMin:c,newDateMax:h}}function X0(t){let{numberOfSingleBinsWithinDataRange:e,dataLength:r,unit:a}=t;return Dp(r,a)>=e}async function eS(t){let{queryObject:e,queryConfig:r,x:a}=t,i=`MIN_${a}`,n=`MAX_${a}`,s=`COUNT_${a}`,o={...r,outStatistics:[{statisticType:j.Minimum,onStatisticField:a,outStatisticFieldName:i},{statisticType:j.Maximum,onStatisticField:a,outStatisticFieldName:n},{statisticType:j.Count,onStatisticField:a,outStatisticFieldName:s}]};delete o.groupByFieldsForStatistics,delete o.orderByFields;let l=await ia({queryObject:e,queryConfig:o}),d=l.get(i),u=l.get(n),c=l.get(s);return typeof d=="string"&&(d=new Date(d).valueOf()),typeof u=="string"&&(u=new Date(u).valueOf()),{dateRange:{dateMinTimestamp:d,dateMaxTimestamp:u},numberOfFeatures:c}}function tS(t){let{newDateMin:e,newDateMax:r,seriesConfig:a,data:i,numberOfSingleBinsWithinDataRange:n,initialNumberOfBins:s,timeIntervalInfo:o}=t,{unit:l}=o,d=i;if(!X0({numberOfSingleBinsWithinDataRange:n,dataLength:s,unit:l})){let{x:u}=a[0],c=a[0].temporalBinning?.timeAggregationType,h=$p(a),p=c===Be.End?r:e,f=c===Be.End?i.length-1:0;for(;f<i.length&&(c===Be.End&&p>e||c!==Be.End&&p<r);)p!==i[f][u]?d.push({...h,[u]:p,[O.xAxisField]:p}):f=c===Be.End?f-1:f+1,p=Fr({date:p,unit:l===H.Month||l===H.Year?H.Day:l,size:1,nextOrPrevious:c===Be.End?"previous":"next"})}return d}function rS(t){let{data:e,seriesConfig:r,dateMinTimestamp:a,dateMaxTimestamp:i}=t,n=e;if(r[0].temporalBinning?.trimIncompleteTimeInterval!==!1){let{timeAggregationType:s}=r[0].temporalBinning??{},o=e[0]?.[O.dateBinningRange]?.[0],l=e[e.length-1]?.[O.dateBinningRange]?.[1];if(s===Be.End?o<a:l>i)if(s===Be.End){let d=o;for(;d<a&&e.length>0;)e.shift(),e.length>0&&(d=e[0][O.dateBinningRange]?.[0])}else{let d=l;for(;d>i&&e.length>0;)e.pop(),e.length>0&&(d=e[e.length-1][O.dateBinningRange]?.[1])}}return n}function iS(t){let{groupByFieldsForStatistics:e,dateField:r,queryStartDate:a,queryEndDate:i,y:n,binIndex:s,lastBin:o}=t,l=e===""?Hr.groupByCaseBegin:e;return l=qe(ex,{groupByFieldsForStatistics:l,dateField:r,startDate:`${a}`,endDate:`${i}`,y:[n].flat()[0],binIndex:`${s}`,endDateOperand:o?"<=":"<"}),l}function*aS(t){let{queryObject:e,seriesConfig:r,queryConfig:a,completeData:i}=t;for(let n=0;n<r.length;n+=1){let s=r[n],{query:o,x:l,y:d}=s,u=[{onStatisticField:o?.outStatistics?.[0]?.onStatisticField??"",outStatisticFieldName:j.ContinuousPercentile,statisticType:j.ContinuousPercentile,statisticParameters:{value:.5}}],c=Hr.groupByCaseBegin;for(let p=0;p<i.length;p+=1){let f=i[p],[m,y]=f[O.dateBinningRange],b=vi(m),v=vi(y);c=iS({groupByFieldsForStatistics:c,queryStartDate:b,queryEndDate:v,dateField:l,y:[d].flat()[0],binIndex:p,lastBin:p===i.length-1})}c=`${c} ${Hr.groupByCaseEnd}`;let h={...a,groupByFieldsForStatistics:[c],outStatistics:u,orderByFields:void 0};yield Lt({queryObject:e,queryConfig:h,noBatch:!0})}}async function nS(t){let{queryObject:e,data:r,seriesConfig:a,queryConfig:i}=t,n=r,{statisticType:s}=a[0].query?.outStatistics?.[0]??da;if(s===j.ContinuousPercentile&&n.length>0){let o=aS({queryObject:e,completeData:n,seriesConfig:a,queryConfig:i}),l=(await Promise.all(o)).flat();if(l.length>0){let{isInItem:d,expr:u}=vn(l[0].attributes);d&&l.forEach(c=>{let h=c.attributes[`${u}`];if(h!==void 0){let[p,f]=h.split("|");if(f!==void 0){let m=c.attributes[j.ContinuousPercentile];n[f][`${p}`]=m}}})}}return n}async function sS(t){let{chartConfig:e,queryResults:r,mapToStatField:a,splitByField:i,x:n,y:s,nullPolicy:o,queryObject:l}=t,d=Wp(n),u=(await wt(l)).find(m=>m.name===n)?.type,c=[],h=e.series[0],p="temporalBinning"in h?h.temporalBinning?.trimIncompleteTimeInterval:!1,f="temporalBinning"in h?h.temporalBinning?.timeAggregationType:!1;return r.forEach((m,y)=>{if(!(p&&(y===0&&f===Be.End||y===r.length-1&&f===Be.Start))){let{attributes:b,stackedAttributes:v}=m,S=b[d.lowerBoundaryAlias],C=b[d.upperBoundaryAlias],T=S,A=C,q=(P,N)=>{let B=P;if(N===ve.DateOnly&&(typeof P=="string"&&P.length===10||typeof P=="number"))if(typeof P=="string"){let R=P.split("-");R.length===3&&(B=ae.local(Number(R[0]),Number(R[1]),Number(R[2])).valueOf())}else B=new Date(P),B=new Date(B.valueOf()+B.getTimezoneOffset()*6e4),B=ae.local(B.getFullYear(),B.getMonth()+1,B.getDate()).valueOf();else typeof P=="string"&&["+","-"].forEach(R=>{R&&P.lastIndexOf(R)===P.length-6&&(B=new Date(P.slice(0,P.lastIndexOf(R))).valueOf())});return B};S=q(S,u),C=q(C,u);let L=(P,N)=>{if(N)switch(!0){case(o===at.Zero&&(P[N]===void 0||P[N]===null)):P[N]=0;break;case o===at.Null:break;case(o===at.Interpolate&&(P[N]===void 0||P[N]===null)):delete P[N];break}};if(typeof S=="number"&&typeof C=="number"){let P={...b};P[O.originalServerBinningRange]=[T,A],P[n]=S,P[O.xAxisField]=S,P[O.dateBinningRange]=[S,C],delete P[d.lowerBoundaryAlias],delete P[d.upperBoundaryAlias],v&&i&&!Re(i)&&a?v.forEach(R=>{let M=R[i];if(M===null||typeof M=="string"||typeof M=="number"){let E=a?.get(M);E!==void 0&&(P[E]=R[ke.outStatistics?.outStatisticFieldName??""],L(P,E))}}):L(P,s);let{featureExtent:N,featureExtentKey:B}=Bp({feature:m,splitByField:i});N&&(P[B]=N),c.push(P)}}}),c}async function oS(t){let{queryObject:e,queryResults:r,x:a,queryConfig:i,seriesConfig:n,dateRange:s,timeIntervalInfo:o}=t,l=r,{dateMinTimestamp:d,dateMaxTimestamp:u}=s;if(d&&u){let c=r.length;if(Hi({arrayToSort:l,sortingField:a}),c>1){let{numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:p}=Np({dateMinTimestamp:d,dateMaxTimestamp:u,timeIntervalInfo:o}),{newDateMin:f,newDateMax:m}=Y0({dateMaxTimestamp:u,data:l,numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:p,seriesConfig:n,timeIntervalInfo:o});l=tS({newDateMin:f,newDateMax:m,seriesConfig:n,data:l,initialNumberOfBins:c,numberOfSingleBinsWithinDataRange:p,timeIntervalInfo:o}),Hi({arrayToSort:l,sortingField:a}),l=K0({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:u,timeIntervalInfo:o}),l=rS({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:u}),l=await nS({queryObject:e,data:l,seriesConfig:n,queryConfig:i})}}return l}function lS(t){return Math.floor(Math.min(Math.max(8,Math.sqrt(t??8)),128)+.5)}function dS(t){let{dateRange:e,numberOfFeatures:r}=t,a,i,{dateMinTimestamp:n,dateMaxTimestamp:s}=e;if(n&&s){typeof n=="string"&&(n=new Date(n).valueOf()),typeof s=="string"&&(s=new Date(s).valueOf());let o=lS(r),l=(s-n)/o,d=_u.findIndex(b=>b.threshold>l),u=_u[d],{unitMs:c,preferredIntervalSize:h}=u;({unit:a}=u);let p=l/c,f=h.findIndex(b=>b>=p),m=h[f],y=f===0?h[0]:h[f-1];i=m-p<p-y?m:y}return{size:i,unit:a}}function uS(t){let{series:e,isTimeBinningSeries:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(kt(e)&&r){let{unit:n,size:s}=e.temporalBinning??{};i=!Rs(n,s)&&a===!0}return i}function cS(t){let e=[];for(let r=1;r<=6;r+=1){let a=t[`EXPR_${r}`]??t[`Expr${r}`]??t[`expr${r}`]??t[`EXPR${r}`];a!==null&&e.push(a)}return ae.local(Number(e[0]??1969),Number(e[1]??1),Number(e[2]??1),Number(e[3]??0),Number(e[4]??0),Number(e[5]??0)).valueOf()}function Bp(t){let{feature:e,splitByField:r,chartSubType:a}=t,i;e.aggregateGeometries&&"Extent"in e.aggregateGeometries?i=e.aggregateGeometries.Extent:{extent:i}=e.aggregateGeometries??e.geometry??{};let n=i?.toJSON(),s=xr;return n!==void 0&&r!==void 0&&a!==void 0&&a===x.BarAndLineSplitBy&&(s=e.attributes[r]!==void 0?`${xr}_${e.attributes[r]}`:xr),{featureExtent:n,featureExtentKey:s}}function pS(t){let{input:e,x:r,splitByField:a}=t;return e.reduce((i,n)=>(a!==void 0&&a!==r&&!(O.technicalFieldSplitByField in n)&&delete n[a],Object.assign(i,n)),{})}function Qi(t){let{data:e,x:r,splitByField:a}=t,i=e;return e!==void 0&&e.length>0&&(i=[...Ln(e,n=>pS({input:n,x:r,splitByField:a}),n=>n[r]).values()]),i}function hS(t,e){let r=t,a=X(e);if(a!==g.PieSeries&&a!==g.BoxPlotSeries){let i=tt(e),n=e[0].y;t.forEach(s=>{let o=0;if(i.forEach(l=>{let d=s[l];Number.isFinite(d)&&(o+=d)}),s[O.technicalSortingFieldBySum]=o,Number.isFinite(o)&&o>0){let l=s[n];if(Number.isFinite(l)){let d=l/o;s[O.technicalSortingFieldByPercent]=d}}})}return r}function fS(t,e){let r=e,a=tt(t),i=a.length===1;return a.forEach(n=>{let s=gi(i?void 0:n),o=r[s[U.FirstQuartile]],l=r[s[U.ThirdQuartile]];Number.isFinite(o)&&Number.isFinite(l)&&l>=o&&(r[s[U.IQR]]=l-o)}),r}function mS(t,e){let r=e.series[0],a=t;if(r.type===g.HeatSeries){let{x:i,y:n}=r;a[Ie.xField]=a[i]?.toString(),delete a[i],a[Ie.yField]=a[n]?.toString(),delete a[n];let s=r.query?.outStatistics?.[0]?.outStatisticFieldName;s&&(a[Ie.valueField]=a[s],delete a[s])}return a}function co(t,e){[e].flat().forEach(r=>{r&&(t[r]===void 0&&(t[r]=t[r.toUpperCase()]!==void 0?t[r.toUpperCase()]:t[r.toLowerCase()]),t[r]!==void 0?(r!==r.toUpperCase()&&delete t[r.toUpperCase()],r!==r.toLowerCase()&&delete t[r.toLowerCase()]):delete t[r])})}function yS(t,e){let r=Array.from(new Set(e.flatMap(a=>a.query?.outStatistics?.map(i=>i.outStatisticFieldName))));r.push(ke.outStatistics.outStatisticFieldName),co(t,r)}function gS(t,e){let r={...t};return t!==void 0&&e[0]!==void 0&&(r=Object.keys(t).reduce((a,i)=>{let n=e.find(s=>s.outStatisticFieldName?.toLowerCase()===i.toLowerCase())?.onStatisticField;return n!==void 0&&t[i]!==void 0&&n!==i?a[n]=t[i]:a[i]=t[i],a},{})),r}function bS(t){let{dataItem:e,splitByField:r,y:a,fieldOID:i}=t;if(e!==void 0&&!Re(r)&&!Re(a)){let n=e[r],s=`${a}_${n?.toString()}`;e[s]=e[a],a!==i&&delete e[a]}}function vS(t,e){Object.keys(t).forEach(r=>{if(r.startsWith(`${e}_`)){let a=r.slice(e.length+1);t[a]=t[r],delete t[r]}})}function SS(t,e){let r=1;switch(t){case x.BarAndLineFromFields:case x.PieFromFields:r=e.series[0].query?.outStatistics?.length??1;break;case x.BoxPlotMultiFields:case x.BoxPlotMultiFieldsAndSplitBy:r=e.series[0].y.length;break;case x.BarAndLineNoAggregation:case x.BoxPlotMonoField:case x.BoxPlotMonoFieldAndCategory:case x.BoxPlotMultiFieldsAndCategory:case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:case x.PieFromCategory:case x.BarAndLineSplitByNoAggregation:case x.PieNoAggregation:case x.BarAndLineSplitBy:case x.BarAndLineMonoField:case x.BarAndLineMultiFields:case x.NonSpecific:}return r}function wS(t){let{attributes:e,showMean:r,chartSubType:a}=t;r&&(a===x.BoxPlotMonoFieldAndSplitBy||a===x.BoxPlotMultiFieldsAndSplitBy||a===x.BoxPlotMonoFieldAndCategoryAndSplitBy)&&(e[O.boxPlot.boxPlotMeanLineMarkerId]=!0)}function xS(t){let{queryResponse:e,chartConfig:r,maxCategoryCount:a}=t,i=Y(r.series);return a&&Number.isFinite(a)&&a<e.length&&Lp.includes(i)?e.slice(0,a):e}function CS(t){let{attributes:e,uniqueCategoryList:r,maxCategoryCount:a,x:i,chartSubType:n}=t,s=!1;if(i&&a&&Number.isFinite(a)&&!Lp.includes(n))if((n===x.BarAndLineFromFields||n===x.PieFromFields)&&Object.keys(e).length>a)Object.keys(e).filter(o=>o!==j.EnvelopeAggregate).forEach((o,l)=>{l>=a&&delete e[o]});else{let o=e[i];o!==void 0&&(r.size===a&&!r.has(o)?s=!0:r.add(o))}return s}function Mp(t){let{queryResponse:e,chartConfig:r,mapToStatField:a,splitByField:i,isDateField:n,isTimeBinningSeries:s,subtypeInfo:o,resultLimit:l,showMean:d,chartLimits:u,fieldList:c}=t,{series:h}=r,p=Y(h),f=X(h),{x:m}=h[0],y="y"in h[0]?h[0].y:void 0,b=h[0].query?.outStatistics??[],{originalCategoryValue:v,originalDateValue:S,typeOrDomainFieldName:C,typeOrDomainIdValue:T}=O,A=nw(c),q=[],L=0,P=new Set,{maxCategoryCount:N}=Jr(u),B=xS({queryResponse:e,chartConfig:r,maxCategoryCount:N});for(let R=0;B[R]&&R<B.length&&!(l!==void 0&&L>=l);R+=1){L+=SS(p,r);let M=B[R],E={...M.attributes};if(CS({attributes:E,uniqueCategoryList:P,maxCategoryCount:N,x:m,chartSubType:p}))continue;yS(E,h),p===x.PieFromFields||p===x.BarAndLineFromFields?E=gS(E,b):typeof y=="string"&&p===x.BarAndLineSplitByNoAggregation?bS({dataItem:E,splitByField:i,y,fieldOID:A}):y&&(p===x.BoxPlotMonoField||p===x.BoxPlotMonoFieldAndCategory||p===x.BoxPlotMonoFieldAndSplitBy||p===x.BoxPlotMonoFieldAndCategoryAndSplitBy)&&vS(E,typeof y=="string"?y:y[0]),wS({attributes:E,showMean:d,chartSubType:p});let k=E[m];k===null&&h[0]?.query?.fetchNullValues===!0&&p!==x.PieFromFields&&(E[v]=null,k=O.nullValue),n&&typeof k=="string"?k=new Date(k).valueOf():s&&(k=cS(E));let{outStatisticFieldName:V}=ke.outStatistics??{},{featureExtent:Q,featureExtentKey:Z}=Bp({feature:M,splitByField:i,chartSubType:p});if(Q&&(E[Z]=Q),p===x.BarAndLineSplitBy&&V!==void 0){let z=E[i],ie=a?.get(z);ie!==void 0&&(z===i&&(E[O.technicalFieldSplitByField]=E[ie]),E[ie]=E[V]),delete E[V]}else(p===x.PieNoAggregation||p===x.BarAndLineNoAggregation||p===x.BarAndLineSplitByNoAggregation)&&(n?E[S]=k:k!==O.nullValue&&(E[v]=k),Ig({isXAxis:!0,chartType:f,valueFormat:r.axes?.[0]?.valueFormat})&&(E[O.xAxisField]=`${k}-${R}`),E[ke.uniqueIdsName]=M.getObjectId());let G=lw({subtypeInfo:o,fieldList:c,fieldName:m,fieldValueToMatch:k});G!==void 0&&G!==k&&p!==x.PieFromFields&&(E[v]=G,E[C]=m,E[T]=k),f===g.BoxPlotSeries&&(E=fS(h,E)),f===g.PieSeries&&typeof k=="number"&&(E[v]===void 0&&(E[v]=E[m]),k=`${k}`),k!==void 0&&(E[v]===void 0&&(E[v]=E[m]),E[m]=G??k,E[m]===null&&(E[m]=O.nullValue),E[O.xAxisField]===void 0&&(E[O.xAxisField]=E[T]??E[m])),E=mS(E,r),q.push(E)}return q}async function Sn(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,mapToStatField:i,abortKey:n,elementCount:s,isTimeBinningSeries:o,showMean:l,chartLimits:d,usePopupTemplateFieldsInfo:u,preFetchedQueryResponse:c}=t,{series:h}=a,p=Y(h),f=[],m=p===x.BarAndLineSplitBy||p===x.BarAndLineSplitByNoAggregation?Xe(h[0].query?.where):"",y=c??await Lt({queryObject:e,queryConfig:r,featureCount:s,abortKey:n}),b=await wt(e,u),v=sw(b),{x:S}=h[0],C=v.includes(S),T=Hp(e);return f=Mp({queryResponse:y,chartConfig:a,mapToStatField:i,splitByField:m,isDateField:C,isTimeBinningSeries:o,subtypeInfo:T,fieldList:b,resultLimit:r.num,showMean:l,chartLimits:d}),p!==x.BarAndLineSplitByNoAggregation&&p!==x.BarAndLineFromFields&&(m!==""&&(f=Qi({data:f,x:S,splitByField:m})),f=hS(f,h)),f}async function qp(t){let{chartConfig:e,queryObject:r,queryConfig:a,numberMaxOfFeaturesToFetch:i,behaviorAfterLimit:n,isGaugeByFeature:s}=t,{series:o}=e,l=Y(o),{x:d}=o[0],u=o.length,c,h;if(l===x.BoxPlotMonoField||l===x.BoxPlotMonoFieldAndSplitBy?(h=u,c=h):l===x.BoxPlotMultiFields||l===x.BoxPlotMultiFieldsAndSplitBy?(h=e.series[0].y.length,c=h):l===x.PieFromFields||l===x.BarAndLineFromFields?(h=o[0].query?.outStatistics?.filter(p=>p.statisticType!==j.EnvelopeAggregate).length??0,c=h):c=await WS({queryObject:r,x:d,chartSubType:l,queryConfig:a,isGaugeByFeature:s}),c!==void 0){let p=l===x.BoxPlotMonoField||l===x.BoxPlotMonoFieldAndCategory||l===x.BoxPlotMonoFieldAndSplitBy;h=ks(l)&&!p?c*u:c}return n===Tr.RenderUpToTheLimit&&h!==void 0&&i!==void 0&&i<h&&(h=i,c=Math.ceil(h/u)),{categoryOrDateCount:c,elementCount:h}}function ra(t){let{arrayToSort:e,chartConfig:r,fieldList:a,isTimeBinningSeries:i}=t;if(i!==!0){let{series:n}=r,s=Y(n),o=X(n),l=nr(r),d=zs(r);if(o===g.HeatSeries)d!==void 0&&Hi({arrayToSort:e,orderBy:d.orderBy,sortingField:d.sortingField});else if(d!==void 0&&e!==void 0&&e.length>1){let{orderBy:u}=d,{sortingField:c}=d,h=r.orderOptions?.data?.orderType===nt.Category,p=d.preferLabel!==!1,f=s===x.BarAndLineFromFields||s===x.PieFromFields||s===x.BoxPlotMultiFields||s===x.BoxPlotMultiFieldsAndSplitBy,m=f||o===g.PieSeries,y=s===x.PieNoAggregation||s===x.BarAndLineNoAggregation||s===x.BarAndLineSplitByNoAggregation,b=f?!1:e?.length>0&&e.some(v=>Object.hasOwn(v,O.typeOrDomainIdValue));if(h&&(!p||(o===g.LineSeries||o===g.RadarSeries)&&l===g.NumberAxisFormat)&&(b?c=O.typeOrDomainIdValue:m&&(c=O.originalCategoryValue)),Array.isArray(u))vb({arrayToSort:e,orderBy:u,sortingField:c,fieldList:a,isByFieldsChart:f,preferLabel:p});else{let v=l===g.DateAxisFormat&&h;Hi({arrayToSort:e,orderBy:u,sortingField:c,forceAscendingOrder:v,isNonAggregated:y,sortByCategory:h,preferLabel:p,isPieOrByFieldsChart:m})}}}}async function Gs(t){let{chartConfig:e,queryConfig:r,fetchFullBoxPlotData:a,options:i,queryObject:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,d="showMean"in e&&typeof e.showMean=="boolean"?e.showMean:!1,{chartLimits:u,usePopupTemplateFieldsInfo:c}=i??{},h=i?.replaceNoValueCategoryWithZero??O.options.replaceNoValueCategoryWithZero,{behaviorAfterLimit:p}=u??{},f={valid:!0},m,y=!1,b=e.series,v=b[0],S=Y(e.series);if(v!==void 0&&n!==void 0){let C=X(b),{uniqueQuery:T,mapToStatField:A}=await lo({chartConfig:e,queryObject:n,queryConfig:r,fetchFullBoxPlotData:a,options:i}),{categoryOrDateCount:q,elementCount:L}=await qp({chartConfig:e,queryObject:n,queryConfig:r,behaviorAfterLimit:p,numberMaxOfFeaturesToFetch:T.num}),P=!Number.isFinite(L),N=P||er({count:L??0,seriesCount:b.length,chartType:C,chartLimits:u});if(N&&(m=await Sn({queryObject:n,uniqueQuery:T,chartConfig:e,preFetchedQueryResponse:l,mapToStatField:A,elementCount:L,isTimeBinningSeries:!1,showMean:d,chartLimits:u,usePopupTemplateFieldsInfo:c,abortKey:s}),C===g.BoxPlotSeries&&(f.data=await zv({data:m,queryObject:n,fetchFullBoxPlotData:a,uniqueQuery:T,chartConfig:e,elementCount:L,chartLimits:u,abortKey:s}),u?.maxBoxPlotOutlierLimit!==void 0&&(N=(f.data.outliers??[]).length<=u.maxBoxPlotOutlierLimit,y=!N)),P&&(q=m.length,L=ks(S)?q*b.length:q,N=er({count:L,seriesCount:b.length,chartType:C,chartLimits:u})),N)){if(C===g.PieSeries){S===x.PieFromFields&&(m=dn({dataToConvert:m[0],x:st,y:qt,fieldList:o}));let B="";S===x.PieFromFields?B=qt:"y"in v&&typeof v.y=="string"&&(B=v.y),Pb(m,B)?f.data={dataItems:m}:Lv(f,se.PieChartMixOfNegativePositiveSlices)}else if((C===g.RadarSeries||C===g.BarSeries||C===g.LineSeries||C===g.ComboLineAndBarSeries)&&(S===x.BarAndLineFromFields&&"y"in v&&typeof v.y=="string"?m=dn({dataToConvert:m[0],x:v.x,y:v.y,fieldList:o}):m=await U0({queryObject:n,seriesData:m,chartConfig:e,queryConfig:r,categoryOrDateCount:q,behaviorAfterLimit:p,abortKey:s}),L=ks(S)?m.length*b.length:m.length,N=er({count:L,seriesCount:b.length,chartType:C,chartLimits:u}),N)){h&&(m=G0(m,e)),ra({arrayToSort:m,chartConfig:e,fieldList:o});let B={};if(kt(v)){let{size:R,unit:M}=v.temporalBinning??{};R!==void 0&&M!==void 0&&(B={size:R,unit:M})}f.data={dataItems:m,timeIntervalInfo:B}}}N||pn({dataInfo:f,chartType:C,subError:{outlierLimit:y}}),f.count=L}return f}function IS(t){let e,{start:r,end:a}=mo({field:"",unit:t,addIntervalStatement:!1});return a&&(e=Array.from({length:a+(r===0?1:0)},(i,n)=>(n+(r??1)).toString())),e}function FS(t){return t.hideEmptyRowsAndColumns===!0&&(t.nullPolicy!==at.Zero||t.series[0].query?.outStatistics?.[0].statisticType===j.Count)}function TS(t){let{dataItems:e,valueField:r,valueToUse:a,xField:i,yField:n}=t,s=new Set(e.filter(l=>l[r]!==a).map(l=>l[i])),o=new Set(e.filter(l=>l[r]!==a).map(l=>l[n]));return e.filter(l=>s.has(l[i])&&o.has(l[n]))}function PS(t){let{dataItems:e,xUniqueValues:r,yUniqueValues:a,xField:i,yField:n,valueField:s,valueToUse:o}=t,l=new Set,d=new Set,u=new Set;for(let h of e){let p=String(h[i]),f=String(h[n]);l.add(`${p}|${f}`),d.add(p),u.add(f)}let c=[];for(let h of r){let p=String(h);for(let f of a){let m=String(f);!l.has(`${p}|${m}`)&&d.has(p)&&u.has(m)&&c.push({[i]:h,[n]:f,[s]:o})}}return c}async function Rp(t){let{chartConfig:e,queryConfig:r,queryObject:a,completeHeatChartDataset:i=!0,errorStrings:n,options:s,abortKey:o}=t,l={valid:!0},d,u=e.series[0],{nullPolicy:c}="nullPolicy"in e?e:{};if(u.type===g.HeatSeries){let{x:h,y:p,query:f,yTemporalBinning:m}=u,y=f?.outStatistics?.[0]?.outStatisticFieldName??"",b=FS(e),v=Ie.xField,S=Ie.yField,C=Ie.valueField,T=c===at.Zero?0:null;if(bp(e)){let A=await _S({chartConfig:e,queryObject:a,queryConfig:r,returnFeaturesExtent:s?.returnFeaturesExtent,errorStrings:n,abortKey:o});if(!er({count:A?.length??0,seriesCount:1,chartType:g.HeatSeries,chartLimits:s?.chartLimits}))pn({dataInfo:l,chartType:g.HeatSeries});else if(typeof A?.[0]=="object"){let q=await wt(a,s?.usePopupTemplateFieldsInfo),L=Hp(a);d=Mp({queryResponse:A,chartConfig:e,splitByField:"",isDateField:!1,isTimeBinningSeries:!1,chartLimits:s?.chartLimits,resultLimit:r.num,subtypeInfo:L,fieldList:q});let P=await bs({queryObject:a,queryConfig:r,category:h,abortKey:o}),N=await bs({queryObject:a,queryConfig:r,category:p,abortKey:o});d.length!==P?.length*N?.length&&(b&&(d=TS({dataItems:d,valueField:C,valueToUse:T,xField:v,yField:S})),d=[...d,...PS({dataItems:d,xUniqueValues:P,yUniqueValues:N,xField:v,yField:S,valueField:C,valueToUse:T})])}}else{let A=await jS({chartConfig:e,queryObject:a,queryConfig:r,errorStrings:n}),q=m?IS(m.unit):await bs({queryObject:a,queryConfig:r,category:p,abortKey:o}),L=0;d=A?.features.flatMap(P=>{let N=[],{attributes:B,stackedAttributes:R}=P,M=[];if(R?.forEach(E=>{let k=`${E[p]}`;M.push(k),N.push({[v]:`${B.lowerBoundary}`,[S]:k,[C]:E[y]})}),i&&q&&M.length!==q?.length){let E=q.filter(k=>!M.includes(k.toString()));b&&(E.length!==q.length||M.length===0)||E.forEach(k=>{N.push({[v]:`${B.lowerBoundary}`,[S]:k,[C]:c===at.Zero?0:null})})}return L+=N.length,N}),er({count:L,seriesCount:1,chartType:g.HeatSeries,chartLimits:s?.chartLimits})?d&&ra({arrayToSort:d,chartConfig:e}):pn({dataInfo:l,chartType:g.HeatSeries})}}return d&&(l.data={dataItems:d}),l}function OS(t){let{chartConfig:e,options:r,data:a}=t,i=e.series,n=a,s=ep(e,r?.chartLimits);if(s!==void 0){let o=tt(i);if(o.length===1)n=a.filter(l=>Number.isFinite(l[o[0]])).slice(0,s);else if(a.length*o.length>s){let l=[],d=0,u=0;for(;d<=s&&u<a.length;){let c=a[u];if(l.push(c),d+=o.filter(h=>Number.isFinite(c[h])).length,d>s){let h=d-s,p=o.length-1;for(;h!==0&&p>=0;){let f=o[p];Number.isFinite(c[f])&&(delete c[f],h-=1),p-=1}}u+=1}n=l}}return n}async function po(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,preFetchedQueryResponse:s}=t,{chartLimits:o,usePopupTemplateFieldsInfo:l}=n??{},{behaviorAfterLimit:d}=o??{},u=e.series,c=u[0],{x:h}=c,p=Xe(c.query?.where),f={valid:!0},m;if(kt(c)){let{temporalBinning:y}=c;if(a&&y){let{unit:b,size:v}=y,S=1,C={unit:b,size:v},T=!1,A=uS({series:c,isTimeBinningSeries:!0,setTimeBinningInfoWhenNotProvided:n?.setTimeBinningInfoWhenNotProvided}),q=!Zi(a)||A?await eS({queryObject:a,queryConfig:r,x:h}):void 0;A&&q&&q.numberOfFeatures>0&&q.dateRange.dateMaxTimestamp!==void 0&&q.dateRange.dateMinTimestamp!==void 0&&(C=dS(q),(await wt(a)).find(B=>B.name===h)?.type===ve.DateOnly&&C.unit!==void 0&&[H.Hour,H.Minute,H.Second].includes(C.unit)&&(C.unit=H.Day,C.size=1),y.size=C.size,y.unit=C.unit);let{uniqueQuery:L,mapToStatField:P}=await lo({chartConfig:e,queryConfig:r,queryObject:a,timeIntervalInfo:C,options:n}),N=er({count:S??0,seriesCount:u.length,chartType:g.LineSeries,chartLimits:o});if(N){if(Zi(a)){let B=s?.[0]instanceof wm?s:await HS({queryObject:a,dateField:h,splitByField:p,queryConfig:L,temporalBinning:y}),R="y"in c&&typeof c.y=="string"?c.y:void 0;if(m=await sS({chartConfig:e,queryResults:B,mapToStatField:P,splitByField:p,x:h,y:R,nullPolicy:y.nullPolicy,queryObject:a}),!er({count:m.length,seriesCount:u.length,chartType:g.LineSeries,chartLimits:o})){let M=tt(u),E=m.filter(k=>M.some(V=>V in k&&Number.isFinite(k[V]))).length;er({count:E,seriesCount:u.length,chartType:g.LineSeries,chartLimits:o})||(N=!1)}}else if(q?.dateRange.dateMinTimestamp&&q.dateRange.dateMaxTimestamp){let{numberOfFinalBinsWithinDataRange:B}=Np({dateMinTimestamp:q.dateRange.dateMinTimestamp,dateMaxTimestamp:q.dateRange.dateMaxTimestamp,timeIntervalInfo:C});S=B*u.length,S=Dp(S,C.unit),m=await Sn({queryObject:a,uniqueQuery:L,chartConfig:e,mapToStatField:P,elementCount:S,chartLimits:o,isTimeBinningSeries:!0,usePopupTemplateFieldsInfo:l,abortKey:i}),m=await oS({queryObject:a,queryConfig:r,queryResults:m,x:h,seriesConfig:u,dateRange:q.dateRange,timeIntervalInfo:C})}jp(a)&&m&&m?.length===H0&&(T=!0),d===Tr.RenderUpToTheLimit&&m&&(m=OS({chartConfig:e,options:n,data:m}))}N||(f.valid=!1,f.invalidType=se.LineChartExceedsLimit),m&&m.length>0&&(m[m.length-1][O.lastTemporalBin]=!0),f.data={dataItems:m,timeIntervalInfo:C,serverLimitReached:T},f.count=S}}return f}async function AS(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n}=t,s=Ui(e),{setTimeBinningInfoWhenNotProvided:o,chartLimits:l,usePopupTemplateFieldsInfo:d}=n??{},u={valid:!0};if(a!==void 0){let c=e.series,h=Yr({seriesConfig:c[0],xAxisValueFormatType:nr(e),setTimeBinningInfoWhenNotProvided:o}),{uniqueQuery:p,mapToStatField:f}=await lo({chartConfig:e,queryObject:a,queryConfig:r,fetchFullBoxPlotData:!s,options:n}),m=await Sn({queryObject:a,uniqueQuery:p,elementCount:1,chartConfig:e,mapToStatField:f,isTimeBinningSeries:h,showMean:s,chartLimits:l,usePopupTemplateFieldsInfo:d,abortKey:i});X(e.series)===g.BoxPlotSeries&&(m=Sp({chartConfig:e,data:m,calculateZScore:!1})),u.data={dataItems:m}}return u}async function ES(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,errorStrings:s}=t,o="showMean"in e?e.showMean:!1,l=await uo({queryObject:a,chartConfig:e,queryConfig:r,options:n,errorStrings:s,abortKey:i});return o&&l.data&&"dataItems"in l.data&&"meanLines"in l.data&&l.data.meanLines&&(l.data.dataItems=[...l.data.dataItems,...l.data.meanLines]),l}function kp(t){return t?.[Wi.defaultGroupOfSlicesId]===!0}function fI(t,e){let r=t.filter(a=>!kp(a));return!dr(r,e)}function LS(t,e){let r=t.reduce((a,i)=>{if(i[Wi.defaultGroupOfSlicesId]===!0){let n=i[O.pieChart.technicalFieldGroupedSlices];n!==void 0&&n.forEach(s=>{a.push(s)})}else a.push(i);return a},[]);return ra({arrayToSort:r,chartConfig:e}),r=Yc({data:{dataItems:r},seriesConfig:e.series})?.dataItems??[],r}var jt={DataProcessComplete:"arcgisChartsJSDataProcessComplete",DataFetchComplete:"arcgisChartsJSDataFetchComplete",LegendItemVisibilityChange:"arcgisChartsJSLegendItemVisibilityChange",UpdateComplete:"arcgisChartsJSUpdateComplete",RenderingComplete:"arcgisChartsJSRenderingComplete",SeriesColorsChange:"arcgisChartsJSSeriesColorChange",AxesMinMaxChange:"arcgisChartsJSAxesMinMaxChange",SelectionComplete:"arcgisChartsJSSelectionComplete",TooManySelectedElements:"arcgisChartsJSTooManySelectedElements",BadDataWarningRaise:"arcgisChartsJSBadDataWarningRaise",SeriesOrder:"arcgisChartsJSSeriesOrder"};function _t(t){return{detail:t,composed:!0,cancelable:!0,bubbles:!0}}function mI(t){let{data:e,seriesConfig:r,htmlContainer:a}=t;if(a&&e){let i=Yc({data:e,seriesConfig:r});a.dispatchEvent(new window.CustomEvent(jt.DataProcessComplete,_t(i)))}}function yI(t){let{data:e,chartConfig:r,htmlContainer:a}=t;if(a&&e){let i={...e};X(r.series)===g.PieSeries&&"dataItems"in i&&(i.dataItems=LS(i.dataItems,r)),a.dispatchEvent(new window.CustomEvent(jt.DataFetchComplete,_t(i)))}}function gI(t,e){e&&e.dispatchEvent(new window.CustomEvent(jt.LegendItemVisibilityChange,_t(t)))}function bI(t,e){e&&e.dispatchEvent(new window.CustomEvent(jt.UpdateComplete,_t(t)))}function vI(t){t&&t.dispatchEvent(new window.CustomEvent(jt.RenderingComplete,_t()))}function SI(t){let{data:e,htmlContainer:r}=t;r&&r.dispatchEvent(new window.CustomEvent(jt.SelectionComplete,_t(e)))}function wI(t){t&&t.dispatchEvent(new window.CustomEvent(jt.TooManySelectedElements,_t()))}function xI(t){let{data:e,htmlContainer:r,chartId:a,colorMatchApplied:i}=t;r&&r.dispatchEvent(new window.CustomEvent(jt.SeriesColorsChange,_t({chartId:a,data:e,colorMatchApplied:i})))}function CI(t,e){e&&e.dispatchEvent(new window.CustomEvent(jt.AxesMinMaxChange,_t(t)))}function II(t,e){e&&e.dispatchEvent(new window.CustomEvent(jt.BadDataWarningRaise,_t(t)))}function DS(t){let{data:e,htmlContainer:r}=t;r&&e&&r.dispatchEvent(new window.CustomEvent(jt.SeriesOrder,_t(e)))}var dt=class extends Error{constructor(e,r,a){super(r),this.name=e,this.details=a}},St={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound"};function FI(t){return t!==void 0&&(!("url"in t)||!t.url)}function Qr(t){return t!==void 0&&"layer"in t}function jp(t){return t!==void 0&&"type"in t&&t.type==="feature"}function NS(t){return t!==void 0&&"type"in t&&t.type==="subtype-group"}function ho(t){return t!==void 0&&"type"in t&&t.type==="subtype-sublayer"}function $S(t){return jp(t)||ho(t)}function Ge(t){return ho(t)?t.parent:t}function fo(t){return t.capabilities?.query?.supportsDistance||Ge(t).sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function BS(t,e){return t.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&t.capabilities?.queryAttributeBins?.supportsStackBy&&!Qr(e)}function Zi(t,e){return t!==void 0&&(Qr(t)||"capabilities"in t&&t.capabilities?.queryAttributeBins?.supportsDate===!0&&(Re(e)||t.capabilities?.queryAttributeBins?.supportsStackBy))}function MS(t){let e=!1,r=Ge(ue(t)).sourceJSON;if(r){let a=r.queryBinsCapabilities?.supportsFixedIntervalBin,i=r.queryBinsCapabilities?.supportedStatisticTypes,n=[j.Maximum,j.Count].every(s=>i?.includes(s.toUpperCase())||i?.includes(s.toLowerCase()));e=a&&n}return e}function TI(t){let e;return Qr(t)?e=t.layer:e=t,e}function ue(t){let e;return Qr(t)?e=t.layer:e=t,e}function qS(t){let e=!1,r=Ge(t).sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],a=t.capabilities?.query.supportedSpatialAggregationStatistics??{};return e=r.includes("EnvelopeAggregate")||"envelope"in a&&a.envelope===!0,e}function PI(t){let{chartConfig:e,queryObject:r}=t,a,i=ue(r);return i&&(a={id:i.id,layerType:"ArcGISFeatureLayer"},i.url&&(a.url=i.url)),{...e,iLayer:a}}var Ji=new Map;function RS(t){let e;switch(t){case Rr.Feet:e="esriSRUnit_Foot";break;case Rr.Miles:e="esriSRUnit_StatuteMile";break;case Rr.NauticalMiles:e="esriSRUnit_NauticalMile";break;case Rr.USNauticalMiles:e="esriSRUnit_USNauticalMile";break;case Rr.Meters:e="esriSRUnit_Meter";break;case Rr.Kilometers:e="esriSRUnit_Kilometer";break}return e}async function kS(t){let{queryObject:e,queryConfig:r,outputFormat:a,dataFormat:i,outAnalytics:n}=t,{where:s,geometry:o,distance:l,units:d,timeExtent:u}=r,c,h=ue(e),p=Ge(h),f={query:{where:fe([s,p.definitionExpression])}},m=wn(o)?.extent?.toJSON();if(m!==void 0){let b=RS(d),{xmin:v,ymin:S,xmax:C,ymax:T}=m;f.query={...f.query,geometryType:"esriGeometryEnvelope",geometry:`${v},${S},${C},${T}`,distance:l,units:b,inSR:o?.spatialReference?.wkid}}u&&(f.query.time=`${u[0]},${u[1]}`);let y=`${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${i}&outAnalytics=${n}`;try{c=(await en(y,f)).data?.features?.[0]?.attributes}catch(b){let v=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(St.QueryFeaturesError,v.errors.queryError,b)}return c}function _p(t,e){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`,stackAlias:`charts_stack_alias_${e}`}}async function jS(t){let{chartConfig:e,queryObject:r,queryConfig:a,errorStrings:i}=t,n,s=ue(r),o=BS(s,r);if(o&&r&&"queryAttributeBins"in r&&e.series[0].type===g.HeatSeries){let{x:l,y:d,xTemporalBinning:u,yTemporalBinning:c}=e.series[0],{outTimeZone:h,firstDayOfWeek:p}=e,f=await ew({queryObject:r,queryConfig:a,x:l,y:d,xTemporalBinning:u,yTemporalBinning:c,outTimeZone:h,firstDayOfWeek:p});try{n=await r.queryAttributeBins(f)}catch(m){throw new dt(St.QueryFeaturesError,i.errors.queryError,m)}}if(!o)throw new dt(St.QueryFeaturesError,i.errors.queryBinsNotSupported,i.errors.queryBinsNotSupported);return n}async function _S(t){let{chartConfig:e,queryObject:r,queryConfig:a,returnFeaturesExtent:i,errorStrings:n,abortKey:s}=t,o=e.series[0],l;if(o.type===g.HeatSeries){let{x:d,y:u}=o;a.groupByFieldsForStatistics=[d],d!==u&&a.groupByFieldsForStatistics.push(u),a&&i===!0&&!a.outStatistics?.some(c=>c.statisticType===j.EnvelopeAggregate)&&a.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"});try{l=await Lt({queryObject:r,queryConfig:a,abortKey:s})}catch(c){throw new dt(St.QueryFeaturesError,n.errors.queryError,c)}}return l}async function VS(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l,errorStrings:d}=t,u;if(e&&"queryAttributeBins"in e&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(i)&&Number.isFinite(n)&&a>0&&l>0){let c=tw({queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l});try{u=await e.queryAttributeBins(c)}catch(h){throw new dt(St.QueryFeaturesError,d.errors.queryError,h)}}return u}async function WS(t){let{queryConfig:e,x:r,queryObject:a,chartSubType:i,isGaugeByFeature:n}=t,s=ue(a),o;if(a!==void 0){let l=s.objectIdField,{where:d,gdbVersion:u,timeExtent:c,geometry:h,distance:p,units:f}=e,m=JS(c),y=wn(h),b=Ge(s),v=fe([d,b.definitionExpression]),S={returnDistinctValues:!0,outFields:n===!0||i===x.PieNoAggregation||i===x.BarAndLineNoAggregation||i===x.BarAndLineSplitByNoAggregation?[l]:[r],where:v,gdbVersion:u??b.gdbVersion,timeExtent:m??b.timeExtent,geometry:y};zp(S)&&(S.cacheHint=!0),S.geometry!==void 0&&fo(s)&&(p!==void 0&&(S.distance=p),f!==void 0&&(S.units=f));try{o=await a.queryFeatureCount(S)}catch{o=Number.NaN}}return o}async function ia(t){let{queryObject:e,queryConfig:r,abortKey:a}=t,{outStatistics:i}=r,n=new Map;if(e!==void 0&&i!==void 0&&i.length>0){let s=i.map(u=>{let{statisticType:c,onStatisticField:h,outStatisticFieldName:p}=u;return{statisticType:c,onStatisticField:h,outStatisticFieldName:p?.toUpperCase()}});r.outStatistics=s,delete r.num,delete r.orderByFields;let o=Gp({queryObject:e,queryConfig:r}),l;try{l=await e.queryFeatures(o,{signal:a!==void 0?Ji.get(a)?.signal:void 0})}catch(u){if(!Hs.isAbortError(u)){let c=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(St.QueryFeaturesError,c.errors.queryError,u)}}let d=l?.features?.[0]?.attributes;d!==void 0&&i.forEach(u=>{let{outStatisticFieldName:c}=u;if(c!==void 0){let h=d[c.toLowerCase()]??d[c.toUpperCase()]??d[c];h!==void 0&&n.set(c,h)}})}return n}async function Vp(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:i}=t,n=[],s=ue(e);if(e!==void 0){let o=rw(s),l=Gp({queryObject:e,queryConfig:r,maxRecordCountFactor:o});try{a===!0?"queryObjectIds"in e?n=await e.queryObjectIds(l):(l.outFields=[s.objectIdField],n=(await e.queryFeatures(l,{signal:i!==void 0?Ji.get(i)?.signal:void 0})).features.map(d=>d.getObjectId())):n=(await e.queryFeatures(l,{signal:i!==void 0?Ji.get(i)?.signal:void 0})).features}catch(d){if(!Hs.isAbortError(d)){let u=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(St.QueryFeaturesError,u.errors.queryError,d)}}}return n}async function zS(t){let e=[],{featureCount:r,maxRecords:a,queryConfig:i}=t,n=[],s=0,o=i?.start??0;for(;s<ke.maxParallelRequests&&o<r;){let l={...t};l.queryConfig={...i,start:o,num:Math.min(a,r-o)},e.push(Vp(l)),o+=a,s+=1}return n=(await Promise.all(e)).flat(),n}async function Lt(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,featureCount:i,noBatch:n,abortKey:s}=t,o=[],l=ue(e);if(e!==void 0){let d=i??1,u=Up(l);if(n!==!0&&d>u&&l.capabilities?.query.supportsPagination){let c=0,h=0,p=Math.ceil(d/u),f=Math.ceil(p/ke.maxParallelRequests),m=[];for(;h<f;){c=h*ke.maxParallelRequests*u;let y=zS({queryConfig:{...r,start:c},queryObject:e,maxRecords:u,featureCount:d,returnUniqueIdsOnly:a,abortKey:s});m.push(y),h+=1}o=(await Promise.all(m)).flat()}else(Number.isNaN(d)||d>=0)&&(o=await Vp({queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:s}))}return o}async function US(t){let{queryObject:e,queryConfig:r,uniqueFeature:a,abortKey:i}=t,n={...r,returnDistinctValues:!0};return await Lt({queryObject:e,abortKey:i,queryConfig:n,returnUniqueIdsOnly:!0,featureCount:a===!0?1:void 0})}function GS(t){if(t!==void 0){let e=Ji.get(t);e!==void 0&&e.abort(),Ji.set(t,new AbortController)}}function Wp(t){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`}}async function HS(t){let{queryObject:e,dateField:r,splitByField:a,queryConfig:i,temporalBinning:n}=t,s=[],o;if(n){let{unit:l}=n;try{if(l){let d=Ge(ue(e));if(o=Zi(d,a),o&&e&&"queryAttributeBins"in e){let u=await XS({queryObject:e,queryConfig:i,temporalBinning:n,dateField:r,splitByField:a});s=(await e.queryAttributeBins(u)).features}}}catch(d){let u=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(St.QueryFeaturesError,u.errors.queryError,d)}}if(o===!1){let l=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(St.QueryFeaturesError,l.errors.queryBinsNotSupported,l.errors.queryBinsNotSupported)}return s}function zp(t){let e=!t.geometry||t.geometry.type==="extent",r=(t.where??"").toUpperCase(),a=!r.includes("CURRENT_TIMESTAMP")&&!r.includes("CURRENT_DATE")&&!r.includes("CURRENT_TIME");return e&&a}function Up(t){let e=Ge(t)?.sourceJSON,r=e?.maxRecordCount??ke.maxRecords;return e?.advancedQueryCapabilities?.supportsMaxRecordCountFactor&&e?.maxRecordCount!==void 0&&(r=e.maxRecordCount*ke.maxRecordCountFactor),r}function fe(t,e){let r,a=Array.from(new Set(t)).filter(i=>i!=null&&i!==""&&!tr(i));return a.sort((i,n)=>n.length-i.length),a.length===1?[r]=a:a?.forEach(i=>{i!==void 0&&(Re(r)?r=`(${i})`:r?.includes(`(${i})`)||(r=`${r} ${e??"AND"} (${i})`))}),r??"1=1"}function QS(t,e){let r=e;if(t!==void 0){let a=ue(t),i=Ge(a).timeExtent;i?.start!=null&&i?.end!=null&&(r=[i.start.valueOf(),i.end.valueOf()])}return r}function ZS(t){let{queryObject:e,defaultGeometry:r,ignoreViewExtent:a}=t,i=r;if(!a&&Qr(e)){let n=e.view.extent,{xmin:s,xmax:o,ymin:l,ymax:d,zmin:u,zmax:c,spatialReference:h}=n;i={xmin:s,ymin:l,zmin:u,xmax:o,ymax:d,zmax:c,spatialReference:h}}return i}function JS(t){let e;return t!==void 0&&(e=new Vu({start:new Date(t[0]),end:new Date(t[1])})),e}function wn(t){let e;return t!==void 0&&(e=Qs.fromJSON(t)),e}function KS(t){return t===void 0?["*"]:Array.from(new Set(t))}function xn(t){let{queryObject:e,queryConfig:r,queryType:a}=t,{where:i,outStatistics:n,geometry:s,distance:o,units:l,timeExtent:d,returnDistinctValues:u}=r??{},c=a==="Query"?new hm({}):new pm({}),h=ue(e),p=Ge(h),f;a==="AttributeBinsQuery"&&r?.objectIds?.[0]!==void 0&&(f=`${h.objectIdField} IN (${r.objectIds.join(",")})`);let m=[i,p.definitionExpression,f];if(c.where=fe(m),c.returnDistinctValues=u??!1,n!==void 0){let v=qS(h);c.outStatistics=n.filter(S=>S.statisticType!==j.EnvelopeAggregate||v).map(S=>fm.fromJSON(S))}let y=wn(s);y!==void 0&&(c.geometry=y,r?.spatialRelationship&&(c.spatialRelationship=r.spatialRelationship),fo(h)&&(o!==void 0&&(c.distance=o),l!==void 0&&(c.units=l)));let b;return d&&(b=new Vu({start:d?.[0],end:d?.[1]})),b!==void 0?c.timeExtent=b:p.timeExtent!==void 0&&(c.timeExtent=p.timeExtent),zp(c)&&(c.cacheHint=!0),c}function YS(t){let e;switch(t){case Be.Start:e="first";break;case Be.End:e="last";break}return e}async function XS(t){let{queryObject:e,queryConfig:r,temporalBinning:a,dateField:i,splitByField:n}=t,s=ue(e),o=(await wt(e)).find(b=>b.name===i)?.type,l=xn({queryObject:e,queryConfig:r,queryType:"AttributeBinsQuery"}),{unit:d,size:u,timeAggregationType:c,start:h,end:p,offset:f,outTimeZone:m}=a,y=Wp(i);if(l.lowerBoundaryAlias=y.lowerBoundaryAlias,l.upperBoundaryAlias=y.upperBoundaryAlias,o!==ve.DateOnly&&(l.outTimeZone=m??Intl.DateTimeFormat().resolvedOptions().timeZone),l.binParameters={type:"date",field:i,interval:{unit:d,value:u},start:h,end:p,offset:f?{unit:f.unit,value:f.size}:null},l.binParameters.type==="date"&&(s.capabilities?.queryAttributeBins?.supportsSnapToData&&(l.binParameters.snapToData=YS(c)),s.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(l.binParameters.returnFullIntervalBin=!0)),!Re(n)){let b=Ge(s).fields.find(v=>v.name===n)?.type;(!b||b==="string"||b==="integer"||b==="small-integer"||b==="big-integer"||b==="double")&&(l.binParameters.stackBy={type:"field",value:n,valueType:b==="string"?"string":"integer"})}return l}function mo(t){let{field:e,fieldType:r,unit:a,outTimeZone:i,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o}=t,l,d,u=1,c=1;switch(a){case Kt.MinuteOfDay:r!==ve.DateOnly&&(d="MINUTE",u=0,c=59);break;case Kt.HourOfDay:r!==ve.DateOnly&&(d="HOUR",u=0,c=23);break;case Kt.DayOfWeek:d="DOW",c=7;break;case Kt.DayOfMonth:d="DAY",c=31;break;case Kt.DayOfYear:d="DOY",c=366;break;case Kt.WeekOfYear:d="WEEK",c=53;break;case Kt.MonthOfYear:d="MONTH",c=12;break;case Kt.QuarterOfYear:d="QUARTER",c=4;break}if(d){let h=o?` ${wp({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:i})}`:"";l=`EXTRACT (${d} FROM ${e}${h})`}return{expression:l,start:u,end:c}}function Ru(t){let{temporalBinning:e,xOrY:r,xOrYFieldType:a,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,{unit:l}=e??{},d,u,c,h;return a===ve.Date||a===ve.DateOnly||a===ve.TimestampOffset?{expression:u,start:c,end:h}=mo({field:r,fieldType:a,unit:l,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}):d=r,{field:d,expression:u,start:c,end:h}}async function ew(t){let{queryObject:e,queryConfig:r,x:a,y:i,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,outTimeZone:l}=t,d=await wt(e),u=d.find(S=>S.name===a)?.type,c=d.find(S=>S.name===i)?.type,h=xn({queryObject:e,queryConfig:r,queryType:"AttributeBinsQuery"});h.binParameters={type:"fixed-interval",interval:1},u!==ve.DateOnly&&(h.outTimeZone=l??Intl.DateTimeFormat().resolvedOptions().timeZone),o!==void 0&&(h.binParameters.firstDayOfWeek=o);let p=Ru({temporalBinning:n,xOrY:a,xOrYFieldType:u,addIntervalStatement:!1}),{field:f,expression:m,start:y,end:b}=p;f?h.binParameters.field=f:m&&(h.binParameters.expression=m,h.binParameters.expressionValueType="integer",h.binParameters.type==="fixed-interval"&&(y!==void 0&&(h.binParameters.start=y),b!==void 0&&(h.binParameters.end=b)));let v=Ru({temporalBinning:s,xOrY:i,xOrYFieldType:c,addIntervalStatement:!1});return v.field?h.binParameters.stackBy={type:"field",value:v.field}:v.expression&&(h.binParameters.stackBy={type:"expression",value:v.expression,valueType:"integer",alias:i}),h}function tw(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l}=t,d=xn({queryObject:e,queryConfig:r,queryType:"AttributeBinsQuery"}),u=_p(s,o);return d.lowerBoundaryAlias=u.lowerBoundaryAlias,d.upperBoundaryAlias=u.upperBoundaryAlias,d.binParameters={type:"fixed-interval",field:s,interval:a,start:i,end:n,stackBy:{value:`FLOOR(${o} / ${l})`,type:"expression",alias:u.stackAlias,valueType:"integer"}},d}function Gp(t){let{queryObject:e,queryConfig:r,maxRecordCountFactor:a}=t,{groupByFieldsForStatistics:i,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:d}=r??{},u=xn({queryObject:e,queryConfig:r,queryType:"Query"});u.returnGeometry=!1;let c=ue(e),h=Ge(c);return u.outFields=KS(d),u.groupByFieldsForStatistics=i??u.groupByFieldsForStatistics,u.orderByFields=n??[],u.objectIds=r?.objectIds,a!==void 0&&(u.maxRecordCountFactor=a),s!==void 0&&s!==""?u.gdbVersion=s:h.gdbVersion!==void 0&&h.gdbVersion!==""&&(u.gdbVersion=h.gdbVersion),l!==void 0&&(u.num=l),o!==void 0&&(u.start=o,u.num=u.num??Up(c)),u}function rw(t){return Ge(t)?.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?ke.maxRecordCountFactor:void 0}function iw(t){let e,r,a;return t!==void 0&&(e=t.type,(e===Ye.UniqueValue||e===Ye.ClassBreaks)&&(r=t.field??void 0,e===Ye.ClassBreaks&&(a=t.normalizationField??void 0))),{rendererType:e,rendererField:r,rendererNormalizationField:a}}var aw=(0,zu.default)(async t=>{let e=t.featureCollection,r,a;if(e?.layers?.[0]!==void 0){let s=e.layers[0];r=s.featureSet,a=s.layerDefinition}else a=t.layerDefinition;let i={};if(r!==void 0){if(i.source=bm.fromJSON(r).features,a?.fields!==void 0&&(i.fields=a.fields.map(s=>ym.fromJSON(s))),a?.objectIdField!==void 0&&(i.objectIdField=a.objectIdField),a?.geometryType!==void 0){let s=Qs.fromJSON({geometryType:a.geometryType});s?.type!==void 0&&s?.type!=="extent"&&(i.geometryType=s.type)}a?.spatialReference!==void 0&&(i.spatialReference=a.spatialReference)}else i.id=t.id,a?.id!==void 0&&(i.layerId=a.id),t.url!==void 0&&(i.url=t.url),t.itemId!==void 0&&a?.id!==void 0&&(i.portalItem={id:t.itemId});if(a!==void 0){let s=a.drawingInfo;s?.renderer!==void 0&&(i.renderer=Zs.fromJSON(s.renderer))}let n=new mm(i);return await n.load(),n});async function OI(t){let{layer:e,view:r,chartConfig:a,filterByExtent:i}=t,n;if(e!==void 0){let s=ue(e),o=Ge(s);if(i&&r!==void 0&&!o.isTable){o.outFields=["*"];let l=u=>"highlight"in u,d=await r.whenLayerView(o);l(d)&&(n=d)}else n=e}else"iLayer"in a&&a.iLayer&&(n=await aw(a.iLayer));return n}async function wt(t,e){let r=ue(t),a=[];if(r!==void 0){await r.load();let i=e===!0&&r?.popupTemplate?.fieldInfos!==void 0;a=r.fields.map(n=>{let s=n.toJSON();if(i){let o=r.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===n.name.toLowerCase())?.label;o!==void 0&&o!==n.name&&(s.alias=o)}return s})}return a}function yo(t,e=[]){return e.find(r=>r.name===t)}function nw(t){return t?.find(e=>e.type===ve.OID)?.name??""}function wi(t){return[ve.Single,ve.Double,ve.SmallInteger,ve.Integer,ve.BigInteger].includes(t.type)}function AI(t){return t.type===ve.Date}function EI(t){return[ve.SmallInteger,ve.Integer,ve.BigInteger].includes(t.type)}function sw(t){return t.filter(e=>e.type===ve.Date||e.type===ve.DateOnly||e.type===ve.TimestampOffset).map(e=>e.name)}function LI(t){return t.filter(e=>wi(e)).map(e=>e.name)}function ow(t){let{subtypeInfo:e,fieldName:r,fieldValueToMatch:a}=t,i,n=s=>`${s.id}`==`${a}`;return e?.subtypeField===r&&e.subtypes?i=e.subtypes.find(n)?.name:e?.typeIdField===r&&e.types&&(i=e.types.find(n)?.name),i}function ku(t,e){let r=[],a=NS(t)?t.subtypes:t[e];return a?.[0]!==void 0&&a.forEach(i=>{let{name:n,domains:s}=i,o="id"in i?i.id:void 0;!o&&"code"in i&&(o=i.code);let l=Object.entries(s??{}),d=[],u=l?.filter(([c,h])=>h?.type==="coded-value")?.map(([c,h])=>{let p={fieldName:c,name:n,codedValues:d};if(h&&"codedValues"in h){let f=h.codedValues.map(({code:m,name:y})=>({name:y,code:m}));p={fieldName:c,name:h.name,codedValues:f}}return p});r.push({id:o??"",name:n,domains:u})}),r.length===0?void 0:r}function Hp(t){let e;if(t!==void 0){let r=ue(t);if(!ho(r)&&!Re(r?.typeIdField)){let a=ku(r,"types");a!==void 0&&(e={typeIdField:r.typeIdField??void 0,types:a})}if(!Re(r?.subtypeField)){let a=Ge(r),i=ku(a,"subtypes");i!==void 0&&(e={...e,subtypeField:a.subtypeField??void 0,subtypes:i})}}return e}function lw(t){let{fieldName:e,fieldValueToMatch:r,subtypeInfo:a,fieldList:i}=t,n;if((typeof r!="string"||!Re(r))&&!Re(e)&&(n=ow({subtypeInfo:a,fieldName:e,fieldValueToMatch:r}),n===void 0)){let s=yo(e,i);if(a?.types!==void 0){let o=a?.types;for(let l of o){let d=l.domains?.filter(u=>u.fieldName===s?.name)??[];for(let u of d)if(n=u?.codedValues?.find(c=>`${c.code}`===r)?.name,n!==void 0)break;if(n!==void 0)break}}n===void 0&&s?.domain!==void 0&&s.domain.type==="codedValue"&&(n=s.domain.codedValues?.find(o=>`${o.code}`==`${r}`)?.name)}return n}async function Qp(t){let e=[];return!Ge(t).isTable&&t.fieldsIndex&&(e=await Wu.getRendererFields(t.renderer,t.fieldsIndex)),e}function dw(t){let e="/rest/services",r=t.toLowerCase(),a=r.indexOf(e);return r=a>-1?t.substring(0,a):t,`${r}/rest/info`}async function uw(t){let e=!0,r=".arcgis.com/",a=t.url,i=a?.includes(r);if(a&&i&&Ge(t).sourceJSON.serviceItemId!==void 0){let n=dw(a);try{let s=(await en(n,{query:{f:"json"}})).data;if(s.owningTenant!==void 0&&s.owningSystemUrl!==void 0){let o=`${s.owningSystemUrl}/sharing/rest/portals/${s.owningTenant}`,l=(await en(o,{authMode:"auto",query:{f:"json"}})).data,d=new gm({sourceJSON:l});await d.load(),e=d?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return e}async function cw(t){let{queryObject:e,fieldToMatch:r,returnUndefinedIfNotFound:a}=t,i=await wt(e),n=pw(i,r),s=a?"":r;return n?.name??s}function pw(t,e){let r=t.find(a=>e===a.name);return r||(r=t.find(a=>e.toUpperCase()===a.name.toUpperCase())),r}async function DI(t){let{fieldsList:e,queryObject:r,returnUndefinedIfNotFound:a}=t,i=e;return i!==void 0&&(i=await Promise.all(i.map(async n=>await cw({queryObject:r,fieldToMatch:n,returnUndefinedIfNotFound:a})))),i}function hw(t){let{queryObject:e,chartConfig:r,runtimeDataFilters:a,ignoreViewExtent:i}=t,{series:n,dataFilters:s}=r,{where:o,gdbVersion:l,timeExtent:d,geometry:u,distance:c,units:h,objectIds:p,spatialRelationship:f}=s??{},{where:m,gdbVersion:y,timeExtent:b,geometry:v,distance:S,units:C,objectIds:T,spatialRelationship:A}=a??{},q=n[0],{query:L}=q,{where:P}=L??{},N=Y(n),B={...L};return B.where=fe([o,m]),N!==x.BarAndLineSplitBy&&N!==x.BoxPlotMonoFieldAndSplitBy&&N!==x.BoxPlotMonoFieldAndCategoryAndSplitBy&&N!==x.BoxPlotMultiFieldsAndSplitBy&&N!==x.BarAndLineSplitByNoAggregation&&(B.where=fe([B.where,P])),r.orderOptions?.orderByFields!==void 0&&(B.orderByFields=r.orderOptions.orderByFields),B.gdbVersion=y??l,B.timeExtent=QS(e,b??d),B.geometry=ZS({queryObject:e,defaultGeometry:v??u,ignoreViewExtent:i}),B.distance=S??c,B.units=C??h,B.objectIds=T??p,B.spatialRelationship=A??f,L?.outStatistics?.[0]?.statisticType===j.Count&&(B.returnDistinctValues=L?.returnDistinctValues??!1),B}var fw=t=>{let e;if("portalItem"in t){let r=t.portalItem?.id;typeof r=="string"&&(e=r)}return e};function NI(t){let{view:e,portalItemId:r}=t,a;if(e&&r){let i=Array.from(e.map?.allLayers??[]).find(n=>fw(n)===r);i&&(a=i)}return a}var Wr=["1.0.0","1.0.1","2.0.0","3.0.0","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2","3.10.0","3.11.0","4.0.0","4.0.1","5.0.0","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","7.0.0","7.1.0","7.1.1","7.2.0","7.2.1","7.3.1","7.4.0","7.4.1","7.5.0","7.5.1","7.6.0","8.0.0","8.0.1","9.0.0","9.1.0","9.2.0","9.3.0","9.4.0","9.5.0","9.6.0","9.6.1","9.7.0","10.0.0","11.0.0","12.0.0","13.0.0","14.0.0","14.0.1","15.0.0","16.0.0","16.1.0","16.1.1","17.0.0","17.1.0","17.2.0","17.2.1","18.0.0","18.1.0","18.1.1","18.1.2","18.1.3","19.0.0","20.0.0","20.1.0","20.2.0","21.0.0","21.1.0","22.0.0","23.0.0","23.1.0","23.2.0","23.3.0","24.0.0","24.1.0","24.2.0","24.3.0","24.4.0","24.5.0","24.6.0"],mw="1.0.0",yw="unrecognized.version",gw=[g.LineSeries,g.BarSeries,g.ComboLineAndBarSeries,g.RadarSeries];function ys(t,e){let r=0;if(t!==e){let a=t.split("."),i=e.split(".");for(let n=0;n<a.length;n+=1){let s=Number.parseInt(a[n],10),o=Number.parseInt(i[n],10);if(s>o||Number.isNaN(o)){r=1;break}if(s<o){r=-1;break}}}return r}function bw(t){return t!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t):!1}function vw(t){let e=ur.Same,r=[];if(bw(t)&&t!==void 0){Wr.sort(ys);let a=ys(t,Wr[Wr.length-1]);if(a===1?e=ur.Newer:a===-1&&(e=ur.Older),e===ur.Newer||e===ur.Same)r.push(t);else{for(let i=Wr.length-2;i>=0;i-=1)if(ys(t,Wr[i])>=0){r=Wr.slice(i,Wr.length);break}r.length===0&&r.push(mw)}}else e=ur.Unrecognized,r.push(yw);return{versionStatus:e,versions:r}}function Ar(t){let{series:e}=t,r=("showMean"in t?t.showMean:!1)===!0?e.find(a=>a.type===g.LineSeries):e[0];return r??=e[0],r}function $I(t,e){let r=t!==null?t.toString():null,a=e!=null?e.toString():null;return a!==null&&a!==r?we.SFS:we.SLS}function Xe(t,e){let r="";return t!==void 0&&t.includes("=")&&(r=e!==!1?yp({value:t.split("=")[0]}):t.split("=")[0].trim()),r}function ut(t){let{where:e,normalize:r,keepSurroundingQuotes:a,escape:i}=t,n="";return e!==void 0&&e.includes("=")&&(n=e.split("=").slice(1).join("=").trim(),n==="null"?n=null:n.trim()!==""&&!Number.isNaN(Number(n))?n=Number(n):r===!1?i===!0&&(n=Vs(n)):n=yp({value:n,keepSurroundingQuotes:a,escape:i})),n}function tr(t){let e=!1;if(t===void 0||t==="")e=!0;else if(t.includes("=")){let r=Xe(t,!1),a=ut({where:t,normalize:!1});e=r===`${a}`}return e}function ir(t){let{where:e,normalize:r,escape:a}=t,i=r===void 0?!0:r,n=Xe(e),s=ut({where:e,normalize:i,keepSurroundingQuotes:!0,escape:a}),o=e;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function Sw(t){let e=x.PieFromCategory;return t[0].query?.outStatistics===void 0?e=x.PieNoAggregation:t[0].query?.groupByFieldsForStatistics===void 0&&(e=x.PieFromFields),e}function ww(t){let e=x.BarAndLineMonoField,r=t[0].query?.where;return t[0].query?.groupByFieldsForStatistics===void 0&&(t[0].query?.outStatistics??[]).length>0?e=x.BarAndLineFromFields:r===void 0&&t[0].query?.outStatistics===void 0?e=x.BarAndLineNoAggregation:tr(r)?t.length>1&&(e=x.BarAndLineMultiFields):e=t[0].query?.outStatistics===void 0?x.BarAndLineSplitByNoAggregation:x.BarAndLineSplitBy,e}function xw(t){let e=x.BoxPlotMonoField,r=t.length===1,a=t.find(o=>o.type===g.LineSeries)??t[0],{x:i}=a,n="y"in a?a.y:"",s=a.query?.where;switch(i){case Pi:typeof n=="object"&&n.length>1?tr(s)?r&&(e=x.BoxPlotMultiFields):e=x.BoxPlotMultiFieldsAndSplitBy:r?e=x.BoxPlotMonoField:tr(s)||(e=x.BoxPlotMonoFieldAndSplitBy);break;default:r?e=x.BoxPlotMonoFieldAndCategory:tr(s)?e=x.BoxPlotMultiFieldsAndCategory:e=x.BoxPlotMonoFieldAndCategoryAndSplitBy;break}return e}function Y(t){let e=x.NonSpecific;if(t?.[0]!==void 0)switch(X(t)){case g.PieSeries:e=Sw(t);break;case g.RadarSeries:case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:e=ww(t);break;case g.BoxPlotSeries:e=xw(t);break}return e}function Yr(t){let{seriesConfig:e,xAxisValueFormatType:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(kt(e)&&e.binTemporalData!==!1&&r===g.DateAxisFormat){let n=Y([e]);if(e.temporalBinning&&n!==x.BarAndLineNoAggregation&&n!==x.BarAndLineSplitByNoAggregation){let{unit:s,size:o}=e.temporalBinning;i=a===!0||o!==void 0&&o>0&&s!==void 0}}return i}function kt(t){return gw.includes(t.type)}function Cw(t){let{previousConfig:e,newConfig:r,behaviorAfterLimit:a}=t,i=e.series,n=r.series,s=!1,o=!1;(a===Tr.RenderUpToTheLimit||e.orderOptions?.data===void 0||r.orderOptions?.data===void 0)&&(o=!dr(e.orderOptions?.orderByFields,r.orderOptions?.orderByFields));let l=On(i.map(u=>u.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]),d=On(n.map(u=>u.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]);return s=!dr(l,d),s||o}function Iw(t,e){return JSON.stringify(t.dataFilters)!==JSON.stringify(e.dataFilters)}function Fw(t,e){let r=!1;if(e[0].x!==t[0].x)r=!0;else{let a=X(t);if(a!==g.HistogramSeries&&a!==g.GaugeSeries){let i=tt(t).sort(),n=tt(e).sort();r=JSON.stringify(i)!==JSON.stringify(n)}}return r}function Tw(t,e){return(t??!1)!==(e?.filterBySelection??!1)}function Pw(t,e){return kt(t.series[0])&&kt(e.series[0])&&(t.series[0].binTemporalData??O.binTemporalData)!==(e.series[0].binTemporalData??O.binTemporalData)}function Ow(t,e){let r=t.axes?.[0].valueFormat.type,a=e.axes?.[0].valueFormat.type,i=Y(e.series),n=i===x.BarAndLineNoAggregation||i===x.BarAndLineSplitByNoAggregation,s=r===g.DateAxisFormat&&a===g.NumberAxisFormat,o=r===g.NumberAxisFormat&&a===g.DateAxisFormat;return r!==a&&(n||s||o)}function Aw(t){let{previousSeries:e,newConfig:r,previousTimeIntervalInfo:a,setTimeBinningInfoWhenNotProvided:i}=t,n=r.series?.[0],s=!1,o=!1,l=!1;if(kt(n)&&Yr({seriesConfig:n,xAxisValueFormatType:nr(r),setTimeBinningInfoWhenNotProvided:i})){let d=e[0];s=JSON.stringify(d.temporalBinning)!==JSON.stringify(n.temporalBinning),o=a?.unit!==n.temporalBinning?.unit,l=i===!0&&(n.temporalBinning?.size??0)<=0}return{timeBinningChanged:s,timeIntervalUnitChanged:o,newTimeBinningWillBeCalculated:l}}function ju(t,e){return e.length!==t.length}function Ew(t,e){return Ui(t)!==Ui(e)}function Lw(t,e){return JSON.stringify(t.series[0]?.valueConversion)!==JSON.stringify(e.series[0]?.valueConversion)}function Dw(t,e){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??at.Null)!==(e.nullPolicy??at.Null)}function Nw(t,e){return(t.hideEmptyRowsAndColumns??!1)!==(e.hideEmptyRowsAndColumns??!1)}function $w(t){let{previousConfig:e,newConfig:r,fieldList:a}=t,i=e.series[0],n=r.series[0],s=!1;if(i.type===g.ScatterSeries&&n.type===g.ScatterSeries&&a&&a.length>0){let o=new Set(i.additionalTooltipFields||[]),l=new Set(n.additionalTooltipFields||[]);if(!dr(o,l)){let d=Array.from(l).filter(u=>!o.has(u));d.length>0&&(s=a?.some(u=>d.includes(u.name)&&!wi(u)))}}return s}function BI(t,e){return(t.colorMatch??!1)!==(e.colorMatch??!1)}function MI(t,e){return(t.stackedType??mt.Side)!==(e.stackedType??mt.Side)}function qI(t,e){return(t.legend?.visible??!1)!==(e.legend?.visible??!1)||JSON.stringify(t.legend?.body)!==JSON.stringify(e.legend?.body)}function RI(t,e){return JSON.stringify(t.series[0]?.gradientRules)!==JSON.stringify(e.series[0]?.gradientRules)}function kI(t){let{oldConfig:e,newConfig:r}=t,a=!1,i=e.series[0],n=r.series[0],s=X(e.series),o=X(r.series);if(s===g.PieSeries&&o===g.PieSeries){let{slices:l,sliceGrouping:d}=i,{slices:u,sliceGrouping:c}=n,h=l?.map(y=>({sliceId:y.sliceId,label:y.label})),p=u?.map(y=>({sliceId:y.sliceId,label:y.label})),f=d?.label,m=c?.label;a=JSON.stringify(h)!==JSON.stringify(p)||JSON.stringify(f)!==JSON.stringify(m)}return a}function Bw(t){let{previousSelectionOIDs:e,options:r}=t,a=!1;return r?.filterBySelection===!0&&(a=e?.length!==r?.selectionData?.selectionOIDs?.length||!dr(e,r?.selectionData?.selectionOIDs)),a}function jI(t,e){return t?.length!==e?.length||t?.some((r,a)=>{let i=ut({where:r?.query?.where}),n=ut({where:e?.[a]?.query?.where});return i!==n})}function _I(t,e){let r=tt(t),a=tt(e);return JSON.stringify(r)!==JSON.stringify(a)}function VI(t,e){let r,a,i,n;return kt(t.series[0])&&(r=t.series[0].temporalBinning?.unit,i=t.series[0].temporalBinning?.size),kt(e.series[0])&&(a=e.series[0].temporalBinning?.unit,n=e.series[0].temporalBinning?.size),Rs(r,i)&&!Rs(a,n)}function WI(t,e){return t.axes?.length===3&&e.axes?.length===2||t.axes?.length===2&&e.axes?.length===3}function zI(t,e){return JSON.stringify(t.series.map(r=>r.assignToSecondValueAxis??!1))!==JSON.stringify(e.series.map(r=>r.assignToSecondValueAxis??!1))}function UI(t,e){let r=t.axes?.map(i=>i?.guides?.map(n=>n?.above===!0)),a=e.axes?.map(i=>i?.guides?.map(n=>n?.above===!0));return JSON.stringify(r)!==JSON.stringify(a)}function GI(t,e){return Bu(t)!==Bu(e)}function HI(t,e){return(t.showOutliers??O.boxPlot.boxPlotOutliersVisibility)!==(e.showOutliers??O.boxPlot.boxPlotOutliersVisibility)}function QI(t,e){return(t.standardizeValues??O.boxPlot.boxPlotStandardizeValuesVisibility)!==(e.standardizeValues??O.boxPlot.boxPlotStandardizeValuesVisibility)}function ZI(t,e){return JSON.stringify(t.chartRenderer)!==JSON.stringify(e.chartRenderer)}function JI(t,e){let r=t.axes?.[0].valueFormat.type===g.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0,a=e.axes?.[0].valueFormat.type===g.DateAxisFormat?e.axes[0].valueFormat.intlOptions.timeZone:void 0;return r!==a}function KI(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===g.ScatterSeries&&i.type===g.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=JSON.stringify(n)!==JSON.stringify(s)}return r}function YI(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===g.ScatterSeries&&i.type===g.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=n===void 0&&s!==void 0||n!==void 0&&s===void 0||n?.field!==s?.field}return r}function XI(t){let{previousConfig:e,newConfig:r,options:a,previousFilterBySelection:i,previousTimeIntervalInfo:n,previousSelectionOIDs:s,fieldList:o}=t,{series:l}=r,{series:d}=e,u=X(l),c=!1,h=!1,p=!1,f={common:{queryChanged:!1,xOrYChanged:!1,numberOfSeriesChanged:!1,configFiltersChanged:!1,filterBySelectionChanged:!1,dataForFilterBySelectionChanged:!1,binTemporalDataChanged:!1,timeBinningChanged:!1,timeIntervalUnitChanged:!1,newTimeBinningWillBeCalculated:!1,valueFormatChangeRequiresNewData:!1},histogram:{dataPropsChanged:!1},gauge:{valueConversionChanged:!1},boxPlot:{showMeanChanged:!1},heatChart:{binningChanged:!1,hideEmptyRowsAndColumnsChanged:!1},scatterPlot:{tooltipFieldsChanged:!1}};switch(f.common.queryChanged=Cw({previousConfig:e,newConfig:r,behaviorAfterLimit:a?.chartLimits?.behaviorAfterLimit}),f.common.configFiltersChanged=Iw(e,r),f.common.xOrYChanged=Fw(d,l),f.common.filterBySelectionChanged=Tw(i,a),f.common.dataForFilterBySelectionChanged=Bw({previousSelectionOIDs:s,options:a}),f.common.binTemporalDataChanged=Pw(e,r),f.common.valueFormatChangeRequiresNewData=Ow(e,r),f.common={...f.common,...Aw({previousSeries:d,newConfig:r,previousTimeIntervalInfo:n,setTimeBinningInfoWhenNotProvided:a?.setTimeBinningInfoWhenNotProvided})},h=Object.values(f.common).some(m=>m),u){case g.HistogramSeries:f.histogram.dataPropsChanged=ib(d,l)||rb(d,l);break;case g.LineSeries:case g.BarSeries:case g.ComboLineAndBarSeries:f.common.numberOfSeriesChanged=ju(d,l);break;case g.BoxPlotSeries:f.common.numberOfSeriesChanged=ju(d,l),f.boxPlot.showMeanChanged=Ew(e,r);break;case g.GaugeSeries:f.gauge.valueConversionChanged=Lw(e,r);break;case g.HeatSeries:f.heatChart.binningChanged=Dw(e,r),f.heatChart.hideEmptyRowsAndColumnsChanged=Nw(e,r);break;case g.ScatterSeries:f.scatterPlot.tooltipFieldsChanged=$w({previousConfig:e,newConfig:r,fieldList:o});break}return(f.gauge.valueConversionChanged||f.histogram.dataPropsChanged||f.common.numberOfSeriesChanged||f.common.binTemporalDataChanged||f.boxPlot.showMeanChanged||f.heatChart.binningChanged||f.heatChart.hideEmptyRowsAndColumnsChanged||f.scatterPlot.tooltipFieldsChanged)&&(p=!0),c=h||p,{dataUpdateNeeded:c,dataUpdateDetails:f}}function Mw(t,e){return t.series.map(r=>r.name).join()!==e.series.map(r=>r.name).join()}function qw(t,e){let r=t.orderOptions?.series,a=e.orderOptions?.series,i=(r?.orderBy??We.Ascending)!==(a?.orderBy??We.Ascending),n=(r?.preferLabel??!0)!==(a?.preferLabel??!0);return i||n}function eF(t,e){return qw(t,e)||Mw(t,e)}function tF(t,e){let r=Mr(t);if(r&&r.series.length>1){let{preferLabel:a,orderBy:i}=r.orderOptions?.series??{};if(i!==void 0){let n;if(a===!1){let s=Y(r.series);n=gp(s)?"splitByValue":"name"}else n="name";r.series.sort((s,o)=>{let l,d;n==="splitByValue"?(l=ut({where:s.query?.where})??"",d=ut({where:o.query?.where})??""):(l=s.name,d=o.name);let[u,c]=i.toUpperCase()===We.Descending?[d,l]:[l,d];return typeof u=="string"&&typeof c=="string"?u.localeCompare(c):Number(u)-Number(c)})}}return DS({data:r?.series.map(a=>a.id),htmlContainer:e}),r}function gi(t){let e=t===void 0||t==="";return{[U.Average]:`${e?"":`${t}_`}${U.Average}`,[U.Min]:`${e?"":`${t}_`}${U.Min}`,[U.Max]:`${e?"":`${t}_`}${U.Max}`,[U.FirstQuartile]:`${e?"":`${t}_`}${U.FirstQuartile}`,[U.Median]:`${e?"":`${t}_`}${U.Median}`,[U.ThirdQuartile]:`${e?"":`${t}_`}${U.ThirdQuartile}`,[U.IQR]:`${e?"":`${t}_`}${U.IQR}`,[U.Outlier]:`${e?"":`${t}_`}${U.Outlier}`,[U.StandardDeviation]:`${e?"":`${t}_`}${U.StandardDeviation}`}}function go(t){return"subType"in t&&t.subType===Bo.FeatureGauge}function Zp(t){let e;return t!==void 0&&("bins"in t?e=t.bins:"dataItems"in t&&(e=t.dataItems)),e}function Jp(t){return t===x.BoxPlotMultiFields||t===x.BoxPlotMultiFieldsAndCategory||t===x.BoxPlotMultiFieldsAndSplitBy}function Ue(t){let{key:e,y:r,chartSubType:a,splitBy:i,splitByValue:n,showOutliers:s,standardizeValues:o}=t,l=n,d=gi(r)[e];return s===!0&&(e===U.Min||e===U.Max)&&(d=`${d}${Zg}`),o===!0&&(Jp(a)||e===U.Outlier)&&(d=`${d}${Jg}`),(n===void 0||`${n}`.trim()==="")&&(l=ut({where:i,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(d=`${l}${d!==""?`_${d}`:""}`),d}function gs(t){let{dataItem:e,y:r,splitBy:a,showOutliers:i}=t,n=Ue({key:U.FirstQuartile,y:r,splitBy:a,showOutliers:i}),s=Ue({key:U.ThirdQuartile,y:r,splitBy:a,showOutliers:i});return Number.isFinite(e[n])||Number.isFinite(e[s])}function Rw(t){let{configSeries:e,boxPlotDataItem:r,yList:a,showOutliers:i}=t,n=Y(e),s=!1;switch(n){case x.BoxPlotMonoField:case x.BoxPlotMultiFields:case x.BoxPlotMonoFieldAndCategory:s=gs({dataItem:r,showOutliers:i});break;case x.BoxPlotMultiFieldsAndCategory:s=a.some(o=>gs({dataItem:r,y:o,showOutliers:i}));break;case x.BoxPlotMonoFieldAndSplitBy:case x.BoxPlotMultiFieldsAndSplitBy:case x.BoxPlotMonoFieldAndCategoryAndSplitBy:s=e.some(o=>gs({dataItem:r,splitBy:o.query?.where,showOutliers:i}));break;default:s=!1;break}return s}function Kp(t){return t.map(e=>e.id).filter(e=>e!==void 0)}function tt(t,e){let r=[],a=e??Kp(t),i=Y(t);return r=t.filter(n=>a.includes(n.id)).map(n=>{let s="y"in n?n.y:void 0;return s!==void 0&&i===x.BarAndLineSplitByNoAggregation&&(s=`${s.toString()}_${ut({where:n.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),s}).filter(n=>n!==void 0),Array.from(new Set(r.flat()))}function Cn(t){let{seriesConfig:e,filteredSeriesIds:r,showMean:a}=t,i=[];if(a===!0){let n=e.find(s=>s.type===g.BoxPlotSeries);n!==void 0&&"y"in n&&(i=[n.y].flat())}else i=tt(e,r);return i}function yr(t,e){return t===null&&e===!0||Number.isFinite(t)}function kw(t){let{dataItem:e,x:r,y:a,nullAsValid:i=!1}=t;return e[r]!==void 0&&(typeof e[r]!="number"||Number.isFinite(e[r]))&&yr(e[a],i)}function rF(t){let{chartConfig:e,nullAsValid:r=!1,dataSet:a}=t,i=!0;if(e!==void 0){let n=X(e.series);if(a===void 0||a.length===0)i=!0;else{let s=tt(e.series);i=!a.some(o=>{let l=!1;switch(n){case g.HistogramSeries:{let d=o;l=yr(d.minValue,r)&&yr(d.maxValue,r)}break;case g.ScatterSeries:{let d=o,{x:u,y:c}=e.series[0];l=yr(d[u],r)&&yr(d[c],r)}break;case g.ComboLineAndBarSeries:case g.RadarSeries:case g.LineSeries:case g.BarSeries:{let d=o,{x:u}=e.series[0];l=s.some(c=>kw({dataItem:d,x:u,y:c,nullAsValid:r}));break}case g.BoxPlotSeries:{let d=e.series,{showOutliers:u}=e;l=Rw({configSeries:d,boxPlotDataItem:o,yList:s,showOutliers:u});break}case g.PieSeries:{let d=o,{x:u,y:c}=e.series[0];Y(e.series)===x.PieFromFields&&(u=st,c=qt);let h=d[c];l=d[u]!==void 0&&d[u]!==null&&!Do(h)&&yr(Number(h),r)}break;case g.GaugeSeries:{let{x:d}=e.series[0];l=yr(o[d],r)}break;case g.HeatSeries:l=a.some(d=>yr(d[Ie.valueField],r));break}return l})}}return i}function jw(t,e){let r=new Map,a=e??Kp(t);return t.forEach(i=>{if(a.includes(i.id)&&"y"in i){let n=r.get(i.type)??[];n.push(i.y),r.set(i.type,n)}}),r}function _w(t){let{seriesConfig:e,filteredSeriesIds:r,filteredData:a}=t,i=jw(e,r),n=e.find(d=>d.type===g.LineSeries||d.type===g.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,l=!1;return a.forEach(d=>{i.forEach(u=>{if(n){let c=0,h=0,p=!1,f=!1;for(let m=0;m<u.length;m+=1){let y=d[u[m]];Number.isFinite(y)&&(y<0?(h+=y,f=!0,l=!0):(c+=y,p=!0))}s=p?Math.max(s,c):Number.NaN,o=f?Math.min(o,h):Number.NaN}else{let c=0;for(let h=0;h<u.length;h+=1){let p=d[u[h]];c+=p,s=Math.max(s,c),o=Math.min(o,c)}}})}),{stackedMinY:o,stackedMaxY:s,dataHasNegativeValues:l}}function Vw(t){let{dataItem:e,...r}=t,a=Ue({key:U.Min,...r}),i=Ue({key:U.Max,...r}),n=e[a],s=e[i];return{min:n,max:s}}function iF(t){let e=Number.NaN,r=Number.NaN,a,i,{chartConfig:n,chartData:s,filteredSeriesIds:o}=t,{series:l}=n;if(l?.length>0){let{x:d}=l[0],u=s.filter(h=>h[d]!==null);[a,i]=si(u,h=>h[d]),n.axes?.[1]?.valueFormat.type===g.DateAxisFormat&&a!==void 0&&i!==void 0&&([a,i]=[new Date(a).valueOf(),new Date(i).valueOf()]);let c=X(n.series);if(c===g.HistogramSeries&&s.length>0){let h=s[0]?.[Pu.Start],p=s[s.length-1]?.[Pu.End];a=typeof h=="number"?h:a,i=typeof p=="number"?p:i}else if(c===g.BoxPlotSeries){e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;let h=tt(l,o),p=Y(l),f="standardizeValues"in n?n.standardizeValues===!0:void 0,m=n.series.map(y=>y.visible!==!1?ut({where:y.query?.where}):"");m.length===0&&m.push(" "),u.forEach(y=>{h.forEach(b=>{let v=p===x.BoxPlotMultiFieldsAndCategory?b:void 0;m.forEach(S=>{let{min:C,max:T}=Vw({y:v,splitByValue:S,chartSubType:p,showOutliers:!1,standardizeValues:f,dataItem:y});C!=null&&C<e&&(e=C),T!=null&&T>r&&(r=T)})})})}else switch(so(n)){case mt.Stacked100:{e=Number.NaN,r=Number.NaN;break}case mt.Stacked:{let{stackedMinY:h,stackedMaxY:p}=_w({seriesConfig:l,filteredData:u,filteredSeriesIds:o});e=h,r=p;break}case mt.Side:default:{e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,tt(l,o).forEach(h=>{let[p,f]=si(u,m=>m[h]);p!==void 0&&p<e&&(e=p),f!==void 0&&f>r&&(r=f)});break}}}return{minY:e,maxY:r,minX:a,maxX:i}}var ci={$schema:"http://json-schema.org/draft-07/schema#",definitions:{ValueConversion:{type:"object",properties:{factor:{type:"number",description:"A numeric value multiplying the value to convert"},offset:{type:"number",description:"A numeric offset to apply to the value to convert"}},description:"Stores information regarding a numeric conversion",title:"ValueConversion"},WebChartAxisScrollBar:{type:"object",properties:{visible:{type:"boolean",description:"Scrollbar visibility",default:!1},width:{type:"number",description:"Scrollbar width in pixels"},color:{$ref:"#/definitions/Color",description:"Scrollbar color"},gripSize:{type:"number",description:"Grip size in pixels"},margin:{type:"number",description:"Margin between the scrollbar and the series container in pixels"}},description:"Describes the properties of an axis scrollbar",title:"WebChartAxisScrollBar"},Color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,title:"Color"},WebChartTextSymbol:{type:"object",properties:{xoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container width.`},yoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container height.`},angle:{type:"number",description:"Rotation of the label"},style:{type:"string",description:"Label style"},type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],description:"Represents a text symbol.",title:"WebChartTextSymbol"},'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>':{$ref:"#/definitions/Pick%3CITextSymbol%2CExclude%3C(%22type%22%7C%22color%22%7C%22backgroundColor%22%7C%22borderLineSize%22%7C%22borderLineColor%22%7C%22haloSize%22%7C%22haloColor%22%7C%22verticalAlignment%22%7C%22horizontalAlignment%22%7C%22rightToLeft%22%7C%22kerning%22%7C%22font%22%7C%22text%22%7C%22angle%22%7C%22xoffset%22%7C%22yoffset%22%7C%22style%22%7Cstring)%2C(%22angle%22%7C%22style%22%7C%22xoffset%22%7C%22yoffset%22)%3E%3E",title:'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>'},'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>':{type:"object",properties:{type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>'},IFont:{type:"object",properties:{family:{type:"string"},size:{type:"number"},style:{type:"string",enum:["italic","normal","oblique"]},weight:{type:"string",enum:["bold","bolder","lighter","normal"]},decoration:{type:"string",enum:["line-through","none","underline"]}},title:"IFont"},WebChartText:{type:"object",properties:{type:{type:"string",const:"chartText",description:'Represents a unique string identifier for the ChartText object. For ChartText object, it is "chartText".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling info and text content. Details on **esriTS** are [here](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm)."}},required:["type","content"],description:"Stores info on how some text is rendered on the chart and whether it is visible or not.",title:"WebChartText"},WebChartCursorCrosshair:{type:"object",properties:{type:{type:"string",const:"cursorCrosshair",description:"Represents a unique string identifier for the chart cursor's crosshair."},style:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the chart cursor's crosshair should be rendered."},verticalLineVisible:{type:"boolean",description:"Indicates whether the vertical crosshair line should be displayed",default:!1},horizontalLineVisible:{type:"boolean",description:"Indicates whether the horizontal crosshair line should be displayed",default:!1}},required:["type"],description:"JSON representation of the cursor's crosshair for a chart.",title:"WebChartCursorCrosshair"},ISimpleLineSymbol:{type:"object",properties:{type:{type:"string",const:"esriSLS"},style:{$ref:"#/definitions/SimpleLineSymbolStyle"},color:{$ref:"#/definitions/Color"},width:{type:"number"}},required:["type"],title:"ISimpleLineSymbol"},ISymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"}},required:["type"],title:"ISymbol"},SymbolType:{type:"string",enum:["esriPFS","esriPMS","esriSFS","esriSLS","esriSMS","esriTS"],title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1}},required:["type"],description:"JSON representation of the Chart's legend box",title:"WebChartLegend"},WebChartLegendPositions:{type:"string",enum:["left","right","top","bottom"],title:"WebChartLegendPositions"},WebChartNullCategory:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use for the null category. If none is provided, the default `null` text will be used."},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied.",default:"1 - symbol.outline.width"}},title:"WebChartNullCategory"},ISimpleFillSymbol:{type:"object",properties:{type:{type:"string",const:"esriSFS"},style:{$ref:"#/definitions/SimpleFillSymbolStyle"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleFillSymbol"},SimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"SimpleFillSymbolStyle"},WebChartPieChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1},displayCategory:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed in the legend.",default:!0},displayNumericValue:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},displayPercentage:{type:"boolean",description:"Indicates whether the percentage to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},labelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200},valueLabelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for the Pie chart",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:'Represents a unique string identifier for the ChartOverlay object. For ChartOverlay object, it is "chartOverlay".'},created:{type:"boolean",description:"Determines whether the overlay is created under the hood. It may or may not be visible.",default:!1},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},symbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied."}},required:["type"],description:"JSON representation of the chart's overlays like trendline scatter plot, and median in histogram",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "number". It can help us to differentiate numerical (value) axis from other types of axes viz., date-time axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.NumberFormatOptions",description:"Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications."}},required:["type","intlOptions"],description:"Defines how the numerical(value) axis data should be formatted.",title:"NumberFormatOptions"},"Intl.NumberFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["lookup","best fit"]},style:{$ref:"#/definitions/Intl.NumberFormatOptionsStyle"},currency:{type:"string"},currencyDisplay:{$ref:"#/definitions/Intl.NumberFormatOptionsCurrencyDisplay"},useGrouping:{$ref:"#/definitions/Intl.NumberFormatOptionsUseGrouping"},minimumIntegerDigits:{type:"number"},minimumFractionDigits:{type:"number"},maximumFractionDigits:{type:"number"},minimumSignificantDigits:{type:"number"},maximumSignificantDigits:{type:"number"}},title:"Intl.NumberFormatOptions"},"Intl.NumberFormatOptionsStyle":{title:"Intl.NumberFormatOptionsStyle"},"Intl.NumberFormatOptionsCurrencyDisplay":{title:"Intl.NumberFormatOptionsCurrencyDisplay"},"Intl.NumberFormatOptionsUseGrouping":{type:"boolean",title:"Intl.NumberFormatOptionsUseGrouping"},WebChartDateTimeUnitFormatOptions:{type:"object",properties:{year:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},month:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},day:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},hour:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},minute:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},second:{$ref:"#/definitions/Intl.DateTimeFormatOptions"}},description:'Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis. For instance: "year": { year: "numeric" } "month": { month: "numeric" } "day": { day: "2-digit" } "hour": { day: "numeric" } "minute": { minute: "numeric" } "second": { second: "numeric" } Reference: https://tc39.es/ecma402/#sec-datetimeformat-abstracts',title:"WebChartDateTimeUnitFormatOptions"},"Intl.DateTimeFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["best fit","lookup"]},weekday:{type:"string",enum:["long","short","narrow"]},era:{type:"string",enum:["long","short","narrow"]},year:{type:"string",enum:["numeric","2-digit"]},month:{type:"string",enum:["numeric","2-digit","long","short","narrow"]},day:{type:"string",enum:["numeric","2-digit"]},hour:{type:"string",enum:["numeric","2-digit"]},minute:{type:"string",enum:["numeric","2-digit"]},second:{type:"string",enum:["numeric","2-digit"]},timeZoneName:{type:"string",enum:["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},formatMatcher:{type:"string",enum:["best fit","basic"]},hour12:{type:"boolean"},timeZone:{type:"string"}},title:"Intl.DateTimeFormatOptions"},DateTimeFormatOptions:{type:"object",properties:{type:{type:"string",const:"date",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "date". It can help us to differentiate date-time axis from other types of axes viz., numeric (value) axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.DateTimeFormatOptions",description:"Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications."},formatPerDateTimeUnit:{$ref:"#/definitions/WebChartDateTimeUnitFormatOptions",description:"Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`."}},required:["type","intlOptions"],description:"Defines how the DateTime axis data should be formatted.",title:"DateTimeFormatOptions"},CategoryFormatOptions:{type:"object",properties:{type:{type:"string",const:"category",description:'Represents a unique string identifier for the CategoryFormatOptions object. For CategoryFormatOptions object, it is "category". It can help us to differentiate category axis from other types of axes, viz., date-time axis and numeric (value) axis.'},characterLimit:{type:["number","null"],description:"Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done.",minimum:1,multipleOf:1}},required:["type"],description:"Defines how the category axis data (Categories) should be formatted.",title:"CategoryFormatOptions"},WebChartGuide:{type:"object",properties:{type:{type:"string",const:"chartGuide",description:'Represents a unique string identifier for the Guide object. For Guide class, it is "chartGuide".'},start:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should begin."},end:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should end. If it is not specified, we get a line guide, otherwise we get a fill/rectangular guide."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered. Line guide requires [esriSLS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format, and fill guide requires [esriSFS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the Chart Authoring UI to differentiate between different guides."},label:{$ref:"#/definitions/WebChartTextSymbol",description:"Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **esriTS** format."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},above:{type:"boolean",description:"Determines whether the guide should be rendered on top of (overlapping) the series or under the series.",default:!1},tooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).",default:!1}},required:["type","start","style","name"],description:"JSON representation of the chart's guide object. Can be used to represent both line and fill guides.",title:"WebChartGuide"},WebChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:"The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.",minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."}},required:["type","valueFormat","labels"],description:"JSON representation of the chart's axis object",title:"WebChartAxis"},TimeIntervalInfo:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},title:"TimeIntervalInfo"},WebChartTemporalBinningUnits:{type:"string",enum:["seconds","minutes","hours","days","weeks","months","quarters","years"],description:"The temporal binning units",title:"WebChartTemporalBinningUnits"},WebChartGaugeAxisTick:{type:"object",properties:{type:{type:"string",const:"gaugeAxisTick",description:'Represents a unique string identifier for the GaugeAxisTick object. For WebChartGaugeAxisTick object, it is "gaugeAxisTick".'},visible:{type:"boolean",description:"Determines the visibility of the axis ticks.",default:!0}},required:["type"],description:"JSON representation of the gauge axis ticks. Currently only used by WebChartGaugeAxis.",title:"WebChartGaugeAxisTick"},WebChartNeedle:{type:"object",properties:{type:{type:"string",const:"gaugeNeedle",description:'Represents a unique string identifier for the ChartNeedle object. For WebChartNeedle object, it is "gaugeNeedle".'},visible:{type:"boolean",description:"Hides or shows the needle.",default:!0},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the needle should be rendered"},startWidth:{type:["number","null"],description:"Represents the needle's thickness at the bottom (chart's center), in px",minimum:1,default:10},endWidth:{type:["number","null"],description:"Represents the needle's thickness at the top, in px",minimum:1,default:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in the middle of the chart. Can be visualized when guides are displayed.",minimum:0,maximum:100,default:25},displayPin:{type:"boolean",description:"Hides or shows the needle's pin (centroid circle)",default:!1}},required:["type"],description:"JSON representation of a gauge needle.",title:"WebChartNeedle"},WebChartGaugeAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:"The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.",minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."},innerLabel:{$ref:"#/definitions/WebChartText",description:"Specifies how the axis' inner label needs to be displayed"},needle:{$ref:"#/definitions/WebChartNeedle",description:"Specifies how the axis' needle needs to be displayed"},ticks:{$ref:"#/definitions/WebChartGaugeAxisTick",description:"Specifies how the axis' ticks need to be displayed"},labelsIncrement:{type:"number",description:"If a label has a value being a multiple of that property, it will be displayed. Otherwise it will be hidden.\n\nIf the property is `undefined` or 0, the chart will be displayed with 6 axis labels distributed evenly along the axis min and max.\n\nIf the property has a value that results in more than a set limit of axis labels (25 as defined in `ChartDefaults.gauge.maximumNumberOfLabelIntervals`) this property value will be ignored and the chart will be displayed with only axis min/max with 4 ticks in between.",default:"undefined"},onlyShowFirstAndLastLabels:{type:"boolean",description:"Specifies if only the first and last labels need to be displayed. If set to `true` all the other labels will be hidden. Their visibility still depends on the axis labels visibility (WebChartAxis.labels.visible).",default:!1},minimumValueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines how to convert the axis minimum"},maximumValueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines how to convert the axis maximum"},minimumFromField:{anyOf:[{$ref:"#/definitions/IStatisticDefinition"},{type:"string"}],description:"If used with a gauge by feature:\n- `minimumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis minimum value If used with a statistic gauge:\n- If `minimumFromField` is set to a field name (string), the minimum from that field is mapped to the axis minimum value\n- If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis minimum value When `minimumFromField` is not provided or when it leads to an invalid value, the `minimum` value from the axis config, if provided, or the default value of 0, in that order, will be used."},maximumFromField:{anyOf:[{$ref:"#/definitions/IStatisticDefinition"},{type:"string"}],description:"If used with a gauge by feature:\n- `maximumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis maximum value If used with a statistic gauge:\n- If `maximumFromField` is set to a field name (string), the maximum from that field is mapped to the axis maximum value\n- If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis maximum value When `maximumFromField` is not provided or when it leads to an invalid value, the `maximum` value from the axis config, if provided, or the default value of 0, in that order, will be used."}},required:["labels","type","valueFormat"],description:"JSON representation of the gauge chart's axis object. Inherits from the WebChartAxis properties.",title:"WebChartGaugeAxis"},IStatisticDefinition:{type:"object",properties:{statisticType:{type:"string",enum:["avg","centroid-aggregate","convex-hull-aggregate","count","envelope-aggregate","max","min","percentile-continuous","percentile-discrete","stddev","sum","var"],description:"Statistical operation to perform (count, sum, min, max, avg, stddev, var, percentile_cont, percentile_disc, EnvelopeAggregate, CentroidAggregate, ConvexHullAggregate)."},statisticParameters:{type:"object",properties:{value:{type:"number"},orderBy:{type:"string",enum:["asc","desc"]}},required:["value"],description:"Parameters to be used along with statisticType. Currently, only applicable for percentile-continuous (continuous percentile) and percentile-discrete (discrete percentile)."},onStatisticField:{type:"string",description:"Field on which to perform the statistical operation."},outStatisticFieldName:{type:"string",description:"Field name for the returned statistic field. If outStatisticFieldName is empty or missing, the server will assign one. A valid field name can only contain alphanumeric characters and an underscore. If the outStatisticFieldName is a reserved keyword of the underlying DBMS, the operation can fail. Try specifying an alternative outStatisticFieldName."}},required:["statisticType","onStatisticField"],title:"IStatisticDefinition"},WebChartRadarChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:"The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.",minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."},labelsOrientation:{$ref:"#/definitions/WebChartRadarChartAxisLabelsOrientation",description:"Defines the labels orientation",default:"WebChartRadarChartAxisLabelsOrientation.Circular"}},required:["labels","type","valueFormat"],description:"JSON representation of the radar chart's axis object.",title:"WebChartRadarChartAxis"},WebChartRadarChartAxisLabelsOrientation:{type:"string",enum:["radial","circular","horizontal"],description:"Labels orientation for radar chart axes.",title:"WebChartRadarChartAxisLabelsOrientation"},WebChartQuery:{type:"object",properties:{outFields:{type:"array",items:{type:"string"},description:"Attribute fields to include in the FeatureSet. Will have an effect on chart with no aggregation."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."},groupByFieldsForStatistics:{type:"array",items:{type:"string"},description:"An array of fields which determine how the base data is grouped. Only one **groupBy** Field is supported, but ArcGIS JSAPI [supports multiple groupBy fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#groupByFieldsForStatistics). While splitting by multiple group-by fields is possible, it is not being done because of the number of series it will give rise to (equal to the length of the Cartesian product set) possibly making the visualization hard to interpret.",maxItems:1},outStatistics:{type:"array",items:{$ref:"#/definitions/IStatisticDefinition"},description:"Represents an array of statistics definitions which dictate how a particular field should be aggregated. Refer to [JSAPI Statistics Definition class](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-StatisticDefinition.html) for more info."},orderByFields:{type:"array",items:{type:"string"},description:"Represents the sorting order of the output result. More info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending."},gdbVersion:{type:"string",description:"Specifies the geodatabase version to display for feature service queries."},geometry:{anyOf:[{$ref:"#/definitions/IEnvelope"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IPoint"},{$ref:"#/definitions/IPolygon"},{$ref:"#/definitions/IPolygonWithCurves"},{$ref:"#/definitions/IPolyline"}],description:"The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties `distance` and `units`."},spatialRelationship:{description:"For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry."},distance:{type:"number",description:"Specifies a search distance for the `geometry`. To be associated with the `units` property. For compatible layers only."},units:{$ref:"#/definitions/RESTUnits",description:"The unit for calculating the buffer distance when `distance` and `geometry` are provided. If not specified, the unit is derived from the geometry spatial reference."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A time extent ([timestamp, timestamp]) for a temporal query against time-aware layers."},start:{type:"number",description:"The zero-based index indicating where to begin retrieving features."},num:{type:"number",description:"The number of features to retrieve."},returnDistinctValues:{type:"boolean",description:"If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.",default:!1},fetchNullValues:{type:"boolean",description:"Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.",default:!1},objectIds:{type:"array",items:{type:["number","string"]},description:"An array of objectIds or uniqueIds of the features to be filtered."}},description:"Chart query object inspired by [JSAPI Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html) class.",title:"WebChartQuery"},IEnvelope:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},xmin:{type:"number"},xmax:{type:"number"},ymin:{type:"number"},ymax:{type:"number"},zmin:{type:"number"},zmax:{type:"number"},mmin:{type:"number"},mmax:{type:"number"}},required:["xmin","xmax","ymin","ymax"],description:"An envelope is a rectangle defined by a range of values for each coordinate and attribute.",title:"IEnvelope"},IGeometry:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"}},description:'a building block for discrete geometries\n\n`IGeometry` can also be imported from the following packages:\n\n```js import { IGeometry } from "@esri/arcgis-rest-feature-layer"; ```',title:"IGeometry"},ISpatialReference:{type:"object",properties:{wkid:{type:["number","null"]},latestWkid:{type:"number"},vcsWkid:{type:"number"},latestVcsWkid:{type:"number"},wkt:{type:["string","null"]},latestWkt:{type:"string"}},description:'Spatial reference systems define mathematical transformations and coordinate systems for displaying spatial information in 2D and 3D.\n\n`ISpatialReference` can also be imported from the following packages:\n\n```js import { ISpatialReference } from "@esri/arcgis-rest-geocoding"; import { ISpatialReference } from "@esri/arcgis-rest-routing"; import { ISpatialReference } from "@esri/arcgis-rest-service-admin"; import { ISpatialReference } from "@esri/arcgis-rest-feature-layer"; ```',title:"ISpatialReference"},IExtent:{type:"object",properties:{xmin:{type:"number"},ymin:{type:"number"},zmin:{type:"number"},xmax:{type:"number"},ymax:{type:"number"},zmax:{type:"number"},spatialReference:{$ref:"#/definitions/ISpatialReference"}},required:["xmin","ymin","xmax","ymax"],description:'Extents are used to define rectangles and bounding boxes.\n\n`IExtent` can also be imported from the following packages:\n\n```js import { IExtent } from "@esri/arcgis-rest-geocoding"; import { IExtent } from "@esri/arcgis-rest-service-admin"; import { IExtent } from "@esri/arcgis-rest-feature-layer"; ```',title:"IExtent"},IPoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y"],description:'A simple point geometry, with spatial reference defined.\n\n`IPoint` can also be imported from the following packages:\n\n```js import { IPoint } from "@esri/arcgis-rest-routing"; import { IPoint } from "@esri/arcgis-rest-geocoding"; ```',title:"IPoint"},IHasZM:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"}},description:'`IHasZM` can also be imported from the following packages:\n\n```js import { IHasZM } from "@esri/arcgis-rest-feature-layer"; ```',title:"IHasZM"},IPolygon:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},rings:{type:"array",items:{type:"array",items:{$ref:"#/definitions/Position"}}}},required:["rings"],title:"IPolygon"},Position:{anyOf:[{$ref:"#/definitions/Position2D"},{type:"array",items:{type:"number"},minItems:4,maxItems:4},{type:"array",items:{type:"number"},minItems:3,maxItems:3}],title:"Position"},Position2D:{type:"array",items:{type:"number"},minItems:2,maxItems:2,title:"Position2D"},IPolygonWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curveRings:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curveRings"],title:"IPolygonWithCurves"},JsonCurve:{anyOf:[{$ref:"#/definitions/IArc"},{$ref:"#/definitions/IBezierCurve"},{$ref:"#/definitions/ICircularArc"},{$ref:"#/definitions/IOldCircularArc"}],title:"JsonCurve"},IArc:{type:"object",properties:{a:{type:"array",minItems:7,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{type:"number"},{type:"number"},{type:"number"},{type:"number"},{type:"number"}],maxItems:7}},required:["a"],description:"an arc can be represented as a JSON curve object",title:"IArc"},IBezierCurve:{type:"object",properties:{b:{type:"array",minItems:3,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{$ref:"#/definitions/Position2D"}],maxItems:3}},required:["b"],description:"a bezier curve can be represented as a JSON curve object",title:"IBezierCurve"},ICircularArc:{type:"object",properties:{c:{type:"array",minItems:2,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"}],maxItems:2}},required:["c"],description:"a circular arc can be represented as a JSON curve object",title:"ICircularArc"},IOldCircularArc:{type:"object",properties:{a:{type:"array",minItems:4,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{type:"number"},{type:"number"}],maxItems:4}},required:["a"],title:"IOldCircularArc"},IPolyline:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},paths:{type:"array",items:{type:"array",items:{$ref:"#/definitions/Position"}}}},required:["paths"],title:"IPolyline"},RESTUnits:{type:"string",enum:["feet","miles","nautical-miles","us-nautical-miles","meters","kilometers"],title:"RESTUnits"},WebChartSeriesQuery:{$ref:"#/definitions/Omit%3CWebChartQuery%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22num%22%7C%22objectIds%22%7C%22orderByFields%22%7C%22spatialRelationship%22%7C%22start%22%7C%22timeExtent%22%7C%22units%22)%3E",description:"Subset of the WebChartQuery, used at the series level",title:"WebChartSeriesQuery"},'Omit<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>':{$ref:"#/definitions/Pick%3CWebChartQuery%2CExclude%3C(%22outFields%22%7C%22where%22%7C%22groupByFieldsForStatistics%22%7C%22outStatistics%22%7C%22orderByFields%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22spatialRelationship%22%7C%22distance%22%7C%22units%22%7C%22timeExtent%22%7C%22start%22%7C%22num%22%7C%22returnDistinctValues%22%7C%22fetchNullValues%22%7C%22objectIds%22%7Cstring)%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22num%22%7C%22objectIds%22%7C%22orderByFields%22%7C%22spatialRelationship%22%7C%22start%22%7C%22timeExtent%22%7C%22units%22)%3E%3E",title:'Omit<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>'},'Pick<WebChartQuery,Exclude<("outFields"|"where"|"groupByFieldsForStatistics"|"outStatistics"|"orderByFields"|"gdbVersion"|"geometry"|"spatialRelationship"|"distance"|"units"|"timeExtent"|"start"|"num"|"returnDistinctValues"|"fetchNullValues"|"objectIds"|string),("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>>':{type:"object",properties:{outFields:{type:"array",items:{type:"string"},description:"Attribute fields to include in the FeatureSet. Will have an effect on chart with no aggregation."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."},groupByFieldsForStatistics:{type:"array",items:{type:"string"},description:"An array of fields which determine how the base data is grouped. Only one **groupBy** Field is supported, but ArcGIS JSAPI [supports multiple groupBy fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#groupByFieldsForStatistics). While splitting by multiple group-by fields is possible, it is not being done because of the number of series it will give rise to (equal to the length of the Cartesian product set) possibly making the visualization hard to interpret.",maxItems:1},outStatistics:{type:"array",items:{$ref:"#/definitions/IStatisticDefinition"},description:"Represents an array of statistics definitions which dictate how a particular field should be aggregated. Refer to [JSAPI Statistics Definition class](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-StatisticDefinition.html) for more info."},returnDistinctValues:{type:"boolean",description:"If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.",default:!1},fetchNullValues:{type:"boolean",description:"Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.",default:!1}},title:'Pick<WebChartQuery,Exclude<("outFields"|"where"|"groupByFieldsForStatistics"|"outStatistics"|"orderByFields"|"gdbVersion"|"geometry"|"spatialRelationship"|"distance"|"units"|"timeExtent"|"start"|"num"|"returnDistinctValues"|"fetchNullValues"|"objectIds"|string),("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>>'},WebChartDataFilters:{$ref:"#/definitions/Pick%3CWebChartQuery%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22objectIds%22%7C%22spatialRelationship%22%7C%22timeExtent%22%7C%22units%22%7C%22where%22)%3E",description:"JSON representation of filters applied to the data",title:"WebChartDataFilters"},'Pick<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"objectIds"|"spatialRelationship"|"timeExtent"|"units"|"where")>':{type:"object",properties:{distance:{type:"number",description:"Specifies a search distance for the `geometry`. To be associated with the `units` property. For compatible layers only."},gdbVersion:{type:"string",description:"Specifies the geodatabase version to display for feature service queries."},geometry:{anyOf:[{$ref:"#/definitions/IEnvelope"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IPoint"},{$ref:"#/definitions/IPolygon"},{$ref:"#/definitions/IPolygonWithCurves"},{$ref:"#/definitions/IPolyline"}],description:"The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties `distance` and `units`."},objectIds:{type:"array",items:{type:["number","string"]},description:"An array of objectIds or uniqueIds of the features to be filtered."},spatialRelationship:{description:"For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A time extent ([timestamp, timestamp]) for a temporal query against time-aware layers."},units:{$ref:"#/definitions/RESTUnits",description:"The unit for calculating the buffer distance when `distance` and `geometry` are provided. If not specified, the unit is derived from the geometry spatial reference."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."}},title:'Pick<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"objectIds"|"spatialRelationship"|"timeExtent"|"units"|"where")>'},WebChartSeries:{type:"object",properties:{type:{type:"string"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1}},required:["type","id","name","x"],description:"JSON representation of the chart's series object. All other series extends this interface.",title:"WebChartSeries"},WebChartCalendarDatePartsBinning:{type:"object",properties:{trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart. Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval. Setting `true` indicates to trim these incomplete intervals. Setting `false` does not trim incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date. Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},unit:{$ref:"#/definitions/WebChartCalendarDatePartsUnits",description:"Represents the unit to use to bin the data."}},required:["unit"],title:"WebChartCalendarDatePartsBinning"},WebChartTemporalBinningBase:{type:"object",properties:{trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart. Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval. Setting `true` indicates to trim these incomplete intervals. Setting `false` does not trim incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date. Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results Current limitation: this is applied only when the provided layer supports the `queryBins` operation."}},description:"Describes the basic properties available for a temporal binning",title:"WebChartTemporalBinningBase"},WebChartCalendarDatePartsUnits:{type:"string",enum:["dayOfMonth","dayOfWeek","dayOfYear","hourOfDay","monthOfYear","minuteOfDay","weekOfYear","quarterOfYear"],description:"Represents the units that can be used for calendar-based date parts binning.",title:"WebChartCalendarDatePartsUnits"},WebChartTemporalBinning:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. 7 as Sunday for a USA user, 1 as Monday for a French one). Current limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series\n- `null` and `zero` for bar series",default:"null"},trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart. Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval. Setting `true` indicates to trim these incomplete intervals. Setting `false` does not trim incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date. Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},unit:{$ref:"#/definitions/WebChartTemporalBinningUnits",description:'The unit of time to use to bin the temporal data. Current limitation: the "quarters" unit is only supported if the provided layer supports the `queryBins` operation.'},size:{type:"number",description:"The span of time that will be binned or aggregated together. Works in coordination with `unit`."},timeAggregationType:{$ref:"#/definitions/WebChartTimeAggregationTypes",description:"The time interval alignment type. Valid options include `equalIntervalsFromStartTime` and `equalIntervalsFromEndTime`. When specific the binning will start at the first or last date of the dataset.",default:"equalIntervalsFromStartTime"}},description:"Describes the properties available for a temporal binning for a bar or line",title:"WebChartTemporalBinning"},WebChartTemporalBinningExtras:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. 7 as Sunday for a USA user, 1 as Monday for a French one). Current limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series\n- `null` and `zero` for bar series",default:"null"}},description:"Describes the extra properties available for a temporal series and for the heat chart",title:"WebChartTemporalBinningExtras"},WebChartNullPolicyTypes:{type:"string",enum:["null","zero","interpolate"],description:"Represents the different types of null policy that can be applied to a chart using the time binning feature.",title:"WebChartNullPolicyTypes"},WebChartTimeAggregationTypes:{type:"string",enum:["equalIntervalsFromStartTime","equalIntervalsFromEndTime"],description:"Represents the different types of time aggregation that can be applied to a chart using the time binning feature.",title:"WebChartTimeAggregationTypes"},WebChartTemporalSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."}},description:"Describes the properties related to a temporal series",title:"WebChartTemporalSeries"},WebChartBarChartSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"barSeries",description:'Represents a unique string identifier for the BarChartSeries object. For BarSeries object, it is "barSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the columns/bars should be rendered"},hideOversizedStackedLabels:{type:"boolean",description:"When true or undefined (default), the labels displayed within a small stacked column are hidden to avoid cluttering. When false, all the data labels are displayed.",default:!0},hideOversizedSideBySideLabels:{type:"boolean",description:"When true, the labels displayed within a small column for sideBySide bar series are hidden to avoid cluttering. When false or undefined (default), all the data labels are displayed.",default:!1},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:"Specifies how to display the category with null value Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color."}},required:["id","name","type","x","y"],description:"[Bar chart](https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/charts/bar-chart.htm) shows the categorical distribution of String/DateTime data.",title:"WebChartBarChartSeries"},HistogramOverlays:{type:"object",properties:{type:{type:"string",const:"chartOverlays",description:'Represents a unique string identifier for the HistogramOverlays object. For HistogramOverlays object, it is "chartOverlays".'},mean:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the mean overlay for histogram. If not provided, the mean overlay is not displayed."},median:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the median overlay for histogram. If not provided, the median overlay is not displayed."},standardDeviation:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the standard deviation overlay for histogram. If not provided, the standard deviation overlay is not displayed."},comparisonDistribution:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the comparison distribution overlay for histogram. If not provided, the comparison distribution overlay is not displayed."}},required:["type"],description:"Object containing Histogram overlays",title:"HistogramOverlays"},WebChartHistogramSeries:{type:"object",properties:{type:{type:"string",const:"histogramSeries",description:'Represents a unique string identifier for the HistogramSeries object. For BarSeries object, it is "histogramSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},binCount:{type:["number","null"],description:"Bin count must be a positive integer.",minimum:1,multipleOf:1,default:32},overlays:{$ref:"#/definitions/HistogramOverlays",description:"Specifies the chart overlays. Histogram supports 4 overlays: **mean**, **median**, **standardDeviation** and **comparisonDistribution**. The overlays won't show if the property is not defined."},dataTransformationType:{$ref:"#/definitions/WebChartDataTransformations",description:"Specifies how the data should be transformed (e.g. square root, log, etc.) before binning."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the columns/bars should be rendered"}},required:["id","name","type","x"],description:"[Histogram](https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/charts/histogram.htm) shows the numerical(frequency) distribution of a numerical field.",title:"WebChartHistogramSeries"},WebChartDataTransformations:{type:"string",enum:["none","logarithmic","squareRoot"],title:"WebChartDataTransformations"},ScatterplotOverlays:{type:"object",properties:{type:{type:"string",const:"chartOverlays",description:'Represents a unique string identifier for the ScatterplotOverlays object. For ScatterplotOverlays object, it is "chartOverlays".'},trendLine:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the trendline overlay for scatter plot. The trendline won't show if the property is not defined."}},required:["type"],description:"Object containing Scatter Plot overlays",title:"ScatterplotOverlays"},SizePolicy:{type:"object",properties:{type:{type:"string",const:"sizeScale",description:'Represents a unique string identifier for the sizePolicy object. For sizePolicy object, it is "sizeScale".'},scaleType:{$ref:"#/definitions/SizePolicyScaleTypes",description:"The type of scale to apply to the markers (linear or logarithmic)",default:"SizePolicyScaleTypes.Linear"},field:{type:"string",description:"The field which determines the markers size"},minSize:{type:"number",description:"The minimum marker size",default:5,multipleOf:1},maxSize:{type:"number",description:"The maximum marker size",default:30,multipleOf:1}},required:["type","field"],title:"SizePolicy"},SizePolicyScaleTypes:{type:"string",enum:["linear","logarithmic"],description:"Represents the types of scales that can be applied to the size policy. Use by bubble charts (scatterplot).",title:"SizePolicyScaleTypes"},WebChartScatterplotSeries:{type:"object",properties:{type:{type:"string",const:"scatterSeries",description:'Represents a unique string identifier for the ScatterSeries object. For ScatterSeries object, it is "scatterSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:'Specifies how each data point in the scatter plot should be rendered. The type is `"esriSMS"` and it is adopted from the [REST API Types](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm#GUID-C8D40B32-5F4B-45EB-8048-6D5A8763E13B).'},overlays:{$ref:"#/definitions/ScatterplotOverlays",description:"Specifies all the chart overlays. The scatter plot implements only 1 overlay, **trendLine**. The overlays won't show if the property is not defined."},sizePolicy:{$ref:"#/definitions/SizePolicy",description:"Specifies rules to use the scatter plot as bubble plot, by changing dynamically the markers size according to a specific field value"},additionalTooltipFields:{type:"array",items:{type:"string"},description:"Specifies the additional numeric fields in the tooltip."}},required:["id","name","type","x","y"],description:"[Scatter plot](https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/charts/scatter-plot.htm) shows the relationship between two numerical fields.",title:"WebChartScatterplotSeries"},ISimpleMarkerSymbol:{type:"object",properties:{type:{type:"string",const:"esriSMS"},style:{$ref:"#/definitions/SimpleMarkerSymbolStyle"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},size:{type:"number"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleMarkerSymbol"},IMarkerSymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},required:["type"],title:"IMarkerSymbol"},SimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSTriangle","esriSMSX"],title:"SimpleMarkerSymbolStyle"},WebChartPieChartTick:{type:"object",properties:{type:{type:"string",const:"pieTick",description:'Represents a unique string identifier for the WebChartPieChartTick object. For PieTick object, it is "pieTick".'},visible:{type:"boolean",description:"Determines the visibility of the tick. Assigning the `true` value will only be considered when the data labels are visible (`series.dataLabels.visible`) and when the data label associated to the tick is outside of the chart (`series.dataLabelsOffset` > 0)."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the pie chart ticks should be rendered"}},required:["type"],description:"JSON representation of the pie ticks.",title:"WebChartPieChartTick"},WebChartPieChartSlice:{type:"object",properties:{sliceId:{type:"string",description:"A unique string used identify the slice of a pie chart."},originalLabel:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"The slice's original label."},label:{type:"string",description:"Custom label for the slice. For grouped slice, the default value is `Other`. For regular slice, it will be either the category or field name."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the slice should be rendered. If not provided, the slice will be styled with default values."}},required:["sliceId"],description:"JSON representation of the pie slices",title:"WebChartPieChartSlice"},WebChartPieChartGroupSlice:{type:"object",properties:{sliceId:{type:"string",description:"A unique string used identify the slice of a pie chart."},originalLabel:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"The slice's original label."},label:{type:"string",description:"Custom label for the slice. For grouped slice, the default value is `Other`. For regular slice, it will be either the category or field name."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the slice should be rendered. If not provided, the slice will be styled with default values."},percentageThreshold:{type:"number",description:"Slices that have a percent value equal or lesser to this threshold are grouped into a unique slice"},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the grouped slice data labels should be rendered. If the property is not set the `series.dataLabels` will be used instead."}},required:["percentageThreshold","sliceId"],description:"JSON representation of the pie grouped slice",title:"WebChartPieChartGroupSlice"},WebChartPieChartSeries:{type:"object",properties:{type:{type:"string",const:"pieSeries",description:'Represents a unique string identifier for the PieSeries object. For PieSeries object, it is "pieSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.",minimum:0,maximum:100,default:50},startAngle:{type:["number","null"],default:-90},endAngle:{type:["number","null"],default:270},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the slices should be rendered"},displayCategoryOnDataLabel:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed on its data label. This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!0},displayNumericValueOnDataLabel:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed on its data label. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`. This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!0},displayPercentageOnDataLabel:{type:"boolean",description:"Indicates whether the percentage associated to a slice is to be displayed on its data label. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)` This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!1},displayCategoryOnTooltip:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed on its tooltip. This property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},displayNumericValueOnTooltip:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed on its tooltip. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)` This property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},displayPercentageOnTooltip:{type:"boolean",description:"Indicates whether the percentage associated to a slice is to be displayed on its tooltip. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)` This property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},numericValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Specifies how the numerical values should be formatted (applied to label, tooltip and legend). Can be overridden for the tooltips by series.dataTooltipValueFormat."},percentValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Specifies how the percent values should be formatted (applied to label, tooltip and legend) Can be overridden for the tooltips by series.dataTooltipPercentFormat."},valuePrefix:{type:"string",description:"Adds a prefix to all the values displayed on the pie chart: data labels, tooltips and legend"},valueSuffix:{type:"string",description:"Adds a suffix to all the values displayed on the pie chart: data labels, tooltips and legend"},percentagePrefix:{type:"string",description:"Adds a prefix to all the percentages displayed on the pie chart: data labels, tooltips and legend"},percentageSuffix:{type:"string",description:"Adds a suffix to all the percentages displayed on the pie chart: data labels, tooltips and legend"},dataLabelsCharacterLimit:{type:["number","null"],description:'If set, the category on the data label is truncated to display only `characterLimit` characters, and an ellipsis ("...") is added to the end of the label. This does not affect the value and percentage part of the labels. Does not apply to tooltips and legend labels.',default:"undefined",minimum:1,multipleOf:1},ticks:{$ref:"#/definitions/WebChartPieChartTick",description:"Specifies how to render the ticks shown on each slide. Ticks will be displayed with default values if not provided."},dataLabelsInside:{type:"boolean",description:`Whether to place the data labels inside the pie slices. When set to \`true\` the following properties will be ignored:
6
6
  - dataLabelsOffset
7
7
  - alignDataLabels
8
8
  - optimizeDataLabelsOverlapping`,default:!1},dataLabelsOffset:{type:"number",description:"Determines in pixel how far the data labels should be placed from their slice. If a negative value is provided the label will be placed inside of the chart. Ignored when `dataLabelsInside` is set to `true`.",default:10},alignDataLabels:{type:"boolean",description:"Aligns labels into columns to make them more readable and avoid them to overlap each other. Ignored when `dataLabelsInside` is set to `true`.",default:!1},optimizeDataLabelsOverlapping:{type:"boolean",description:"Optimizes the data labels rendering to avoid them to be cut off on the edges or to overlap the legend by wrapping them and adding padding to the chart. Ignored when `dataLabelsInside` is set to `true`.",default:!1},sliceGrouping:{$ref:"#/definitions/WebChartPieChartGroupSlice",description:"Specifies if and how the slices under a given percentage threshold are grouped into a unique slice"},slices:{type:"array",items:{$ref:"#/definitions/WebChartPieChartSlice"},description:`An array of WebChartPieChartSlice representing the ids, labels and styles of the pie slices.
9
9
 
10
- When this property is not defined, or when a pie slice does not have a matching slice in this array, the series' fillSymbol will be used. If the series' fillSymbol does not contain color information, colors from the color ramps will be utilized.`}},required:["id","name","type","x","y"],description:"JSON representation of the Pie Chart series",title:"WebChartPieChartSeries"},WebChartGaugeSeries:{type:"object",properties:{type:{type:"string",const:"gaugeSeries",description:'Represents a unique string identifier for the GaugeSeries object. For GaugeSeries object, it is "gaugeSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},valueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines the conversion to apply to the gauge value"},featureIndex:{type:"number",description:"Specifies the index of the feature to be rendered. This property will be ignored for a statistic gauge (indicated via `WebGaugeChart.subType` property). For feature-based gauge, if this property is not present, the first feature will be used (featureIndex = 0)"}},required:["id","name","type","x"],description:"JSON representation of the `Gauge` series",title:"WebChartGaugeSeries"},WebChartLineChartSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"lineSeries",description:'Represents a unique string identifier for the LineSeries object. For LineSeries object, it is "lineSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{anyOf:[{type:"array",items:{type:"string"}},{type:"string"}],description:"Specifies the numeric field(s) used by the series. The array type is useful when used for a box plot."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the line/line segments should be rendered"},lineSmoothed:{type:"boolean",description:"Specifies whether line segments should be smoothed.",default:!1},showArea:{type:"boolean",description:"Indicates whether line series show area.",default:!1},markerVisible:{type:"boolean",description:"Indicates whether to show or hide the markers/bullets of the line series.",default:!0},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:"Contains styling info on how the marker should be rendered"},areaColor:{$ref:"#/definitions/Color",description:"Specifies the color of the filled area for line chart. areaColor will be applied only if showArea is true, and is defaulted to the line color if not provided."},stackNegativeValuesToBaseline:{type:"boolean",description:"Specifies how negative values are treated in stacked series. If true, negative values will be stacked on the base line. If false, negative values will be stacked in relation to their previous values in the stack.",default:!0},connectLines:{type:"boolean",description:"Whether to connect the lines when there's a gap in the data. Can be overridden by the temporal data setting `nullPolicy`.",default:!0},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:"Specifies how to display the category with null value Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color."}},required:["id","name","type","x","y"],description:"JSON representation of the Line Chart series",title:"WebChartLineChartSeries"},WebChartBoxPlotSeries:{type:"object",properties:{type:{type:"string",const:"boxPlotSeries"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{anyOf:[{type:"array",items:{type:"string"}},{type:"string"}],description:"Specifies the numeric field(s) used by the box plot series.",minLength:1,minItems:1},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the box and whiskers should be rendered. The whiskers use the fillSymbol.outline."}},required:["id","name","type","x","y"],description:"JSON representation of the Box plot series",title:"WebChartBoxPlotSeries"},WebChartHeatChartGradient:{type:"object",properties:{colorList:{type:"array",items:{$ref:"#/definitions/Color"},minItems:2,maxItems:2,description:"An array of 2 colors to use for the gradient. The first color represents the minimum value, the second color represents the maximum value."},minValue:{type:"number",description:"Specifies the custom minimum value for the heat chart. If none is provided, the minimum value from the dataset will be used."},maxValue:{type:"number",description:"Specifies the custom maximum value for the heat chart. If none is provided, the maximum value from the dataset will be used."},outsideRangeLowerColor:{$ref:"#/definitions/Color",description:"Specifies the color to use for the items outside the lower range specified by minValue. If none is provided, the default color will be used.",default:"[250, 250, 250, 255] - white"},outsideRangeUpperColor:{$ref:"#/definitions/Color",description:"Specifies the color to use for the items outside the upper range specified by maxValue. If none is provided, the default color will be used.",default:"[0, 0, 255, 255] - blue"}},description:"JSON representation of the Heat chart - gradient type specific",title:"WebChartHeatChartGradient"},WebChartHeatChartSeries:{type:"object",properties:{type:{type:"string",const:"heatSeries"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},xTemporalBinning:{$ref:"#/definitions/WebChartCalendarDatePartsBinning",description:"Describes how to bin the temporal data when the x-axis field is a date."},yTemporalBinning:{$ref:"#/definitions/WebChartCalendarDatePartsBinning",description:"Describes how to bin the temporal data when the y-axis field is a date."},gridLine:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defines how the cells outline should render."},heatRulesType:{$ref:"#/definitions/WebChartHeatChartHeatRulesTypes",description:"Defines the type of rule to apply for the heat chart.",default:"WebChartHeatChartHeatRulesTypes.Gradient"},gradientRules:{$ref:"#/definitions/WebChartHeatChartGradient",description:"Specifies the details of the gradient rules for the heat chart."},emptyCells:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use by the empty cells. If none is provided, the default `null` text will be used.",default:"`null`"},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Specifies the symbol to use by the empty cells. If none is provided, the default symbol will be used."}},description:"Specifies how to display the empty cells, in terms of text and symbology."}},required:["id","name","type","x","y"],description:"JSON representation of the Heat chart series",title:"WebChartHeatChartSeries"},WebChartHeatChartHeatRulesTypes:{type:"string",enum:["gradient","renderer"],description:"Represents the different types of heat rule that can be applied to a heat chart.",title:"WebChartHeatChartHeatRulesTypes"},WebChartRadarChartSeries:{$ref:"#/definitions/WebChartLineChartSeries%3C%22radarSeries%22%3E",title:"WebChartRadarChartSeries"},'WebChartLineChartSeries<"radarSeries">':{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"radarSeries",description:'Represents a unique string identifier for the LineSeries object. For LineSeries object, it is "lineSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{anyOf:[{type:"array",items:{type:"string"}},{type:"string"}],description:"Specifies the numeric field(s) used by the series. The array type is useful when used for a box plot."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the line/line segments should be rendered"},lineSmoothed:{type:"boolean",description:"Specifies whether line segments should be smoothed.",default:!1},showArea:{type:"boolean",description:"Indicates whether line series show area.",default:!1},markerVisible:{type:"boolean",description:"Indicates whether to show or hide the markers/bullets of the line series.",default:!0},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:"Contains styling info on how the marker should be rendered"},areaColor:{$ref:"#/definitions/Color",description:"Specifies the color of the filled area for line chart. areaColor will be applied only if showArea is true, and is defaulted to the line color if not provided."},stackNegativeValuesToBaseline:{type:"boolean",description:"Specifies how negative values are treated in stacked series. If true, negative values will be stacked on the base line. If false, negative values will be stacked in relation to their previous values in the stack.",default:!0},connectLines:{type:"boolean",description:"Whether to connect the lines when there's a gap in the data. Can be overridden by the temporal data setting `nullPolicy`.",default:!0},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:"Specifies how to display the category with null value Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color."}},required:["id","name","type","x","y"],description:"JSON representation of the Line Chart series",title:'WebChartLineChartSeries<"radarSeries">'},WebChartSeriesType:{anyOf:[{$ref:"#/definitions/WebChartBarChartSeries"},{$ref:"#/definitions/WebChartBoxPlotSeries"},{$ref:"#/definitions/WebChartGaugeSeries"},{$ref:"#/definitions/WebChartHeatChartSeries"},{$ref:"#/definitions/WebChartHistogramSeries"},{$ref:"#/definitions/WebChartLineChartSeries"},{$ref:"#/definitions/WebChartPieChartSeries"},{$ref:"#/definitions/WebChartRadarChartSeries"},{$ref:"#/definitions/WebChartScatterplotSeries"}],description:"Type containing all the series types available",title:"WebChartSeriesType"},WebChart:{type:"object",properties:{version:{type:"string",const:"24.5.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartAxis"},minItems:1,maxItems:3,description:"Represents an array of **at least 1 or at most 3** Chart Axis accompanying the chart. The axes property is optional because Pie chart does not use any axis. The third axis config is used when a series `assignToSecondValueAxis` is set to `true`. Some of the axis features won't apply to the third axis (e.g. labels behaviors)."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartSeriesType"},description:"Represents an array of various chart series to be plot inside the chart. Empty array is not allowed.",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
10
+ When this property is not defined, or when a pie slice does not have a matching slice in this array, the series' fillSymbol will be used. If the series' fillSymbol does not contain color information, colors from the color ramps will be utilized.`}},required:["id","name","type","x","y"],description:"JSON representation of the Pie Chart series",title:"WebChartPieChartSeries"},WebChartGaugeSeries:{type:"object",properties:{type:{type:"string",const:"gaugeSeries",description:'Represents a unique string identifier for the GaugeSeries object. For GaugeSeries object, it is "gaugeSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},valueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines the conversion to apply to the gauge value"},featureIndex:{type:"number",description:"Specifies the index of the feature to be rendered. This property will be ignored for a statistic gauge (indicated via `WebGaugeChart.subType` property). For feature-based gauge, if this property is not present, the first feature will be used (featureIndex = 0)"}},required:["id","name","type","x"],description:"JSON representation of the `Gauge` series",title:"WebChartGaugeSeries"},WebChartLineChartSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"lineSeries",description:'Represents a unique string identifier for the LineSeries object. For LineSeries object, it is "lineSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{anyOf:[{type:"array",items:{type:"string"}},{type:"string"}],description:"Specifies the numeric field(s) used by the series. The array type is useful when used for a box plot."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the line/line segments should be rendered"},lineSmoothed:{type:"boolean",description:"Specifies whether line segments should be smoothed.",default:!1},showArea:{type:"boolean",description:"Indicates whether line series show area.",default:!1},markerVisible:{type:"boolean",description:"Indicates whether to show or hide the markers/bullets of the line series.",default:!0},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:"Contains styling info on how the marker should be rendered"},areaColor:{$ref:"#/definitions/Color",description:"Specifies the color of the filled area for line chart. areaColor will be applied only if showArea is true, and is defaulted to the line color if not provided."},stackNegativeValuesToBaseline:{type:"boolean",description:"Specifies how negative values are treated in stacked series. If true, negative values will be stacked on the base line. If false, negative values will be stacked in relation to their previous values in the stack.",default:!0},connectLines:{type:"boolean",description:"Whether to connect the lines when there's a gap in the data. Can be overridden by the temporal data setting `nullPolicy`.",default:!0},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:"Specifies how to display the category with null value Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color."}},required:["id","name","type","x","y"],description:"JSON representation of the Line Chart series",title:"WebChartLineChartSeries"},WebChartBoxPlotSeries:{type:"object",properties:{type:{type:"string",const:"boxPlotSeries"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{anyOf:[{type:"array",items:{type:"string"}},{type:"string"}],description:"Specifies the numeric field(s) used by the box plot series.",minLength:1,minItems:1},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the box and whiskers should be rendered. The whiskers use the fillSymbol.outline."}},required:["id","name","type","x","y"],description:"JSON representation of the Box plot series",title:"WebChartBoxPlotSeries"},WebChartHeatChartGradient:{type:"object",properties:{colorList:{type:"array",items:{$ref:"#/definitions/Color"},minItems:2,maxItems:2,description:"An array of 2 colors to use for the gradient. The first color represents the minimum value, the second color represents the maximum value."},minValue:{type:"number",description:"Specifies the custom minimum value for the heat chart. If none is provided, the minimum value from the dataset will be used."},maxValue:{type:"number",description:"Specifies the custom maximum value for the heat chart. If none is provided, the maximum value from the dataset will be used."},outsideRangeLowerColor:{$ref:"#/definitions/Color",description:"Specifies the color to use for the items outside the lower range specified by minValue. If none is provided, the default color will be used.",default:"[250, 250, 250, 255] - white"},outsideRangeUpperColor:{$ref:"#/definitions/Color",description:"Specifies the color to use for the items outside the upper range specified by maxValue. If none is provided, the default color will be used.",default:"[0, 0, 255, 255] - blue"}},description:"JSON representation of the Heat chart - gradient type specific",title:"WebChartHeatChartGradient"},WebChartHeatChartSeries:{type:"object",properties:{type:{type:"string",const:"heatSeries"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},xTemporalBinning:{$ref:"#/definitions/WebChartCalendarDatePartsBinning",description:"Describes how to bin the temporal data when the x-axis field is a date."},yTemporalBinning:{$ref:"#/definitions/WebChartCalendarDatePartsBinning",description:"Describes how to bin the temporal data when the y-axis field is a date."},gridLine:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defines how the cells outline should render."},heatRulesType:{$ref:"#/definitions/WebChartHeatChartHeatRulesTypes",description:"Defines the type of rule to apply for the heat chart.",default:"WebChartHeatChartHeatRulesTypes.Gradient"},gradientRules:{$ref:"#/definitions/WebChartHeatChartGradient",description:"Specifies the details of the gradient rules for the heat chart."},emptyCells:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use by the empty cells. If none is provided, the default `null` text will be used.",default:"`null`"},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Specifies the symbol to use by the empty cells. If none is provided, the default symbol will be used."}},description:"Specifies how to display the empty cells, in terms of text and symbology."}},required:["id","name","type","x","y"],description:"JSON representation of the Heat chart series",title:"WebChartHeatChartSeries"},WebChartHeatChartHeatRulesTypes:{type:"string",enum:["gradient","renderer"],description:"Represents the different types of heat rule that can be applied to a heat chart.",title:"WebChartHeatChartHeatRulesTypes"},WebChartRadarChartSeries:{$ref:"#/definitions/WebChartLineChartSeries%3C%22radarSeries%22%3E",title:"WebChartRadarChartSeries"},'WebChartLineChartSeries<"radarSeries">':{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"radarSeries",description:'Represents a unique string identifier for the LineSeries object. For LineSeries object, it is "lineSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{anyOf:[{type:"array",items:{type:"string"}},{type:"string"}],description:"Specifies the numeric field(s) used by the series. The array type is useful when used for a box plot."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the line/line segments should be rendered"},lineSmoothed:{type:"boolean",description:"Specifies whether line segments should be smoothed.",default:!1},showArea:{type:"boolean",description:"Indicates whether line series show area.",default:!1},markerVisible:{type:"boolean",description:"Indicates whether to show or hide the markers/bullets of the line series.",default:!0},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:"Contains styling info on how the marker should be rendered"},areaColor:{$ref:"#/definitions/Color",description:"Specifies the color of the filled area for line chart. areaColor will be applied only if showArea is true, and is defaulted to the line color if not provided."},stackNegativeValuesToBaseline:{type:"boolean",description:"Specifies how negative values are treated in stacked series. If true, negative values will be stacked on the base line. If false, negative values will be stacked in relation to their previous values in the stack.",default:!0},connectLines:{type:"boolean",description:"Whether to connect the lines when there's a gap in the data. Can be overridden by the temporal data setting `nullPolicy`.",default:!0},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:"Specifies how to display the category with null value Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color."}},required:["id","name","type","x","y"],description:"JSON representation of the Line Chart series",title:'WebChartLineChartSeries<"radarSeries">'},WebChartSeriesType:{anyOf:[{$ref:"#/definitions/WebChartBarChartSeries"},{$ref:"#/definitions/WebChartBoxPlotSeries"},{$ref:"#/definitions/WebChartGaugeSeries"},{$ref:"#/definitions/WebChartHeatChartSeries"},{$ref:"#/definitions/WebChartHistogramSeries"},{$ref:"#/definitions/WebChartLineChartSeries"},{$ref:"#/definitions/WebChartPieChartSeries"},{$ref:"#/definitions/WebChartRadarChartSeries"},{$ref:"#/definitions/WebChartScatterplotSeries"}],description:"Type containing all the series types available",title:"WebChartSeriesType"},WebChart:{type:"object",properties:{version:{type:"string",const:"24.6.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartAxis"},minItems:1,maxItems:3,description:"Represents an array of **at least 1 or at most 3** Chart Axis accompanying the chart. The axes property is optional because Pie chart does not use any axis. The third axis config is used when a series `assignToSecondValueAxis` is set to `true`. Some of the axis features won't apply to the third axis (e.g. labels behaviors)."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartSeriesType"},description:"Represents an array of various chart series to be plot inside the chart. Empty array is not allowed.",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
11
11
 
12
12
  Currently this property is only used for bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:"Renderer to use to style the series when the chart uses the color match mode. Considered before the layer's renderer."},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:"How series should be ordered and displayed in a multi-series chart. If not provided the series will be displayed as they are ordered in the config."},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data.\n\nIf not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied."},orderByFields:{type:"array",items:{type:"string"},description:"The orderByFields to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nMore info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending"}},description:"Chart order options (data and series)"}},required:["version","type","series"],description:"Gives a JSON representation of the Chart object.",title:"WebChart"},IFeatureLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISFeatureLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},disablePopup:{type:"boolean",const:!0,description:"Indicates whether to allow a client to ignore popups defined by the service item."},featureCollection:{description:"A featureCollection object defining a layer of features whose geometry and attributes are either stored directly within the web map or with an item. Feature Collections can be created from CSVs, shapefiles, GPX, or map notes."},featureCollectionType:{type:"string",enum:["markup","notes","route"],description:"Indicates the type of features in the feature collection. If featureCollectionType is missing, it means the feature collection is a regular single-layer or multi-layer feature collection."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mode:{type:"number",enum:[0,1,2],description:"0 is snapshot mode. 1 is on-demand mode. 2 is selection-only mode. Used with ArcGIS feature services and individual layers in ArcGIS map services."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},showLabels:{type:"boolean",const:!0,description:"Labels will display if this property is set to true and the layer also has a labelingInfo property associated with it. This property can get stored in the web map config and in the item/data."},visibleLayers:{type:"array",items:{type:"number"},description:"An array of sublayer ids that should appear visible. Used with feature layers that are based on feature collections."}},required:["id","layerType"],description:"Feature layers can be created by referencing a layer from either a map service or a feature service or by specifying a feature collection object. Use a map service if you just want to retrieve geometries and attributes from the server and symbolize them yourself. Use a feature service if you want to take advantage of symbols from the service's source map document. Also, use a feature service if you plan on doing editing with the feature layer. Feature layers honor any feature templates configured in the source map document. Feature collection objects are used to create a feature layer based on the supplied definition.",title:"IFeatureLayer"},ILayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",description:"Indicates the layer type"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."}},required:["id","layerType"],title:"ILayer"},ISupportsTime:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."}},title:"ISupportsTime"},IDefinitionEditor:{type:"object",properties:{inputs:{type:"array",items:{$ref:"#/definitions/IDefinitionInput"},description:"An array of input objects."},parameterizedExpression:{type:"string",description:"A string value representing the where clause for the interactive filter."}},description:"The definitionEditor stores interactive filters at the same level as layerDefinition.",title:"IDefinitionEditor"},IDefinitionInput:{type:"object",properties:{hint:{type:"string",description:"A string value representing a hint for the input."},parameters:{type:"array",items:{$ref:"#/definitions/IDefinitionParameter"},description:"An array of parameter objects."},prompt:{type:"string",description:"A string value representing the prompt for the input."}},title:"IDefinitionInput"},IDefinitionParameter:{type:"object",properties:{defaultValue:{type:["number","string"],description:"The default value that is automatically given if nothing is provided."},fieldName:{type:"string",description:"A string value representing the name of the field to query."},parameterId:{description:"Number given to uniquely identify the specified parameter."},type:{type:"string",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeString","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset","esriFieldTypeXML"],description:"The field type for the specified field parameter."},utcValue:{type:"number",description:"An integer value representing exact UNIX time used when defaultValue is a date string."}},title:"IDefinitionParameter"},ILayerDefinition:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"},allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. Query,Editing."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},currentVersion:{type:"number",description:"Numeric value indicating the server version of the layer."},defaultVisibility:{type:"boolean",description:"Boolean value indicating whether the layer's visibility is turned on."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},definitionExpression:{type:"string",description:"SQL-based definition expression string that narrows the data to be displayed in the layer."},description:{type:"string",description:"String value of the layer as defined in the map service."},displayField:{type:"string",description:"A string value that summarizes the feature."},drawingInfo:{description:"Contains drawing, labeling, and transparency information."},extent:{anyOf:[{$ref:"#/definitions/IExtent"},{type:"null"}],description:"An object defining the rectangular area."},editingInfo:{$ref:"#/definitions/IEditingInfo",description:"An object defining the editing info (last edit date)."},featureReduction:{description:"Feature reductions declutter the screen by hiding features that would otherwise intersect with other features on screen."},fields:{type:"array",items:{$ref:"#/definitions/IField"},description:"An array of field objects containing information about the attribute fields for the feature collection or layer."},geometryType:{$ref:"#/definitions/GeometryType",description:"A string defining the type of geometry. Possible geometry types are: esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline, esriGeometryPolygon, and esriGeometryEnvelope."},globalIdField:{type:"string",description:"The unique identifier for a feature or table row within a geodatabase."},hasAttachments:{type:"boolean",description:"Indicates whether attachments should be loaded for the layer."},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},htmlPopupType:{type:"string",enum:["esriServerHTMLPopupTypeAsHTMLText","esriServerHTMLPopupTypeAsURL","esriServerHTMLPopupTypeNone"],description:"String value indicating the HTML popup type."},id:{type:"number",description:"The identifier assigned to the layer."},isDataVersioned:{type:"boolean",description:"Boolean value indicating whether the data is versioned."},maxRecordCount:{type:"number",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},maxScale:{type:"number",description:"Represents the maximum scale at which the layer definition will be applied. This does not apply to layers of type: ArcGISMapServiceLayer, ImageServiceVectorLayer or ImageServiceLayer."},minScale:{type:"number",description:"Represents the minimum scale at which the layer definition will be applied. This does not apply to layers of type: ArcGISMapServiceLayer, ImageServiceVectorLayer or ImageServiceLayer."},name:{type:"string",description:"Contains a unique name for the layer that can be displayed in a legend."},objectIdField:{type:"string",description:"Indicates the name of the object ID field in the dataset."},overrideSymbols:{type:"boolean",description:"Dictates whether a client can support having an end user modify symbols on individual features."},rangeInfos:{description:"Indicates range information"},source:{description:"An object indicating the layerDefinition's layer source."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry."},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsAdvancedQueries:{type:"boolean",description:"Boolean value indicating whether the layer supports orderByFields in a query operation."},supportsAttachmentsByUploadId:{type:"boolean",description:"Boolean value indicating whether the layer supports uploading attachments with the Uploads operation. This can then be used in the Add Attachment and Update Attachment operations."},supportsCalculate:{type:"boolean",description:"Boolean value indicating whether the layer supports the Calculate REST operation when updating features."},supportsRollbackOnFailureParameter:{type:"boolean",description:"Boolean value indicating whether the layer supports rolling back edits made on a feature layer if some of the edits fail."},supportsStatistics:{type:"boolean",description:"Boolean value indicating whether feature layer query operations support statistical functions."},supportsValidateSql:{type:"boolean",description:"Boolean value indicating whether the validateSQL operation is supported across a feature service layer."},templates:{type:"array",items:{$ref:"#/definitions/ITemplate"},description:"A property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types."},timeInfo:{description:"The time info metadata of the layer. May be set for feature layers inside a feature collection item."},type:{type:"string",enum:["Feature Layer","Table"],description:"Indicates whether the layerDefinition applies to a Feature Layer or a Table."},typeIdField:{type:"string",description:"Contains the name of the field holding the type ID for the features."},types:{description:"Contains information about an attribute field."},visibilityField:{type:"string",description:"String value indicating the attribute field that is used to control the visibility of a feature. If applicable, when rendering a feature the client should use this field to control visibility. The field's values are 0 = do not display, 1 = display."},relationships:{type:"array",items:{}},editFieldsInfo:{type:"object",properties:{creationDateField:{type:"string"},creatorField:{type:"string"},editDateField:{type:"string"},editorField:{type:"string"}}},parentLayerId:{type:"number"},ownershipBasedAccessControlForFeatures:{type:"boolean"},syncCanReturnChanges:{type:"boolean"},archivingInfo:{type:"object",properties:{supportsQueryWithHistoricMoment:{type:"boolean"},startArchivingMoment:{type:"number"}}},supportsValidateSQL:{type:"boolean"},advancedQueryCapabilities:{type:"object",properties:{supportsPagination:{type:"boolean"},supportsTrueCurve:{type:"boolean"},supportsQueryWithDistance:{type:"boolean"},supportsReturningQueryExtent:{type:"boolean"},supportsStatistics:{type:"boolean"},supportsOrderBy:{type:"boolean"},supportsDistinct:{type:"boolean"},supportsSqlExpression:{type:"boolean"},supportsPercentileStatistics:{type:"boolean"}}},allowTrueCurvesUpdates:{type:"boolean"},onlyAllowTrueCurveUpdatesByTrueCurveClients:{type:"boolean"},supportsApplyEditsWithGlobalIds:{type:"boolean"},subtypeField:{type:"string"},indexes:{type:"array",items:{}},dateFieldsTimeReference:{type:"object",properties:{timeZone:{type:"string"},respectsDaylightSaving:{type:"boolean"}}},useStandardizedQueries:{type:"boolean"}},description:'`ILayerDefinition` can also be imported from the following packages:\n\n```js import { ILayerDefinition } from "@esri/arcgis-rest-service-admin"; import { ILayerDefinition } from "@esri/arcgis-rest-feature-layer"; ```',title:"ILayerDefinition"},IEditingInfo:{type:"object",properties:{lastEditDate:{type:"number",description:"date of last edit to the layer"}},title:"IEditingInfo"},IField:{type:"object",properties:{name:{type:"string",description:"A string defining the field name."},type:{$ref:"#/definitions/FieldType",description:"A string defining the field type."},alias:{type:"string",description:"A string defining the field alias."},domain:{$ref:"#/definitions/IDomain",description:"The domain objects if applicable."},editable:{type:"boolean",description:"A Boolean defining whether this field is editable."},exactMatch:{type:"boolean",description:"A Boolean defining whether or not the field is an exact match."},length:{type:"number",description:"A number defining how many characters are allowed in a string. field."},nullable:{type:"boolean",description:"A Boolean defining whether this field can have a null value."},defaultValue:{description:"The value written in for new records by default."}},required:["name","type"],description:'Contains information about an attribute field.\n\n`IField` can also be imported from the following packages:\n\n```js import { IField } from "@esri/arcgis-rest-feature-layer"; ```',title:"IField"},FieldType:{type:"string",enum:["esriFieldTypeBigInteger","esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeString","esriFieldTypeTimestampOffset","esriFieldTypeXML"],description:"Field type.",title:"FieldType"},IDomain:{type:"object",properties:{type:{$ref:"#/definitions/DomainType",description:"A string defining the domain type."},name:{type:"string",description:"A string defining the field name."},range:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A 2 element array defining the range of possible values."},codedValues:{type:"array",items:{$ref:"#/definitions/ICodedValue"},description:"An array of CodedValues for domains of type codedValue."},description:{type:"string",description:"Description of the domain"},mergePolicy:{type:"string",description:"Merge policy"},splitPolicy:{type:"string",description:"Split Policy"}},required:["type"],description:"Information for a field with a domain",title:"IDomain"},DomainType:{type:"string",enum:["codedValue","inherited","range"],description:"Domain types",title:"DomainType"},ICodedValue:{type:"object",properties:{name:{type:"string",description:"User-friendly name for what the code means."},code:{type:["number","string"],description:"The value stored in the feature attribute."}},required:["name","code"],description:"CodedValue type",title:"ICodedValue"},GeometryType:{type:"string",enum:["esriGeometryEnvelope","esriGeometryMultipoint","esriGeometryPoint","esriGeometryPolygon","esriGeometryPolyline"],description:'`GeometryType` can also be imported from the following packages:\n\n```js import { GeometryType } from "@esri/arcgis-rest-feature-layer"; ```',title:"GeometryType"},ITemplate:{type:"object",properties:{description:{description:"A string value containing a detailed description of the template."},drawingTool:{$ref:"#/definitions/FeatureEditTool",description:"An optional string that can define a client-side drawing tool to be used with this feature. For example, map notes used by the Online Map Viewer use this to represent the viewer's different drawing tools."},name:{type:"string",description:"A string containing a user-friendly name for the template."},prototype:{$ref:"#/definitions/IFeature",description:"A feature object representing a prototypical feature for the template."}},description:"Templates describe features that can be created in a layer. They are generally used with feature collections and editable web-based CSV layers. Templates are not used with ArcGIS feature services as these already have templates defined in the service. They are also defined as properties of the layer definition when there are no defined types. Otherwise, templates are defined as properties of the types.",title:"ITemplate"},FeatureEditTool:{type:"string",enum:["esriFeatureEditToolAutoCompletePolygon","esriFeatureEditToolCircle","esriFeatureEditToolDownArrow","esriFeatureEditToolEllipse","esriFeatureEditToolFreehand","esriFeatureEditToolLeftArrow","esriFeatureEditToolLine","esriFeatureEditToolNone","esriFeatureEditToolPoint","esriFeatureEditToolPolygon","esriFeatureEditToolRectangle","esriFeatureEditToolRightArrow","esriFeatureEditToolText","esriFeatureEditToolTriangle","esriFeatureEditToolUpArrow"],title:"FeatureEditTool"},IFeature:{type:"object",properties:{geometry:{$ref:"#/definitions/IGeometry"},attributes:{$ref:"#/definitions/Record%3Cstring%2Cany%3E"},symbol:{$ref:"#/definitions/ISymbol"}},required:["attributes"],description:'a spatial entity and its corresponding properties\n\n`IFeature` can also be imported from the following packages:\n\n```js import { IFeature } from "@esri/arcgis-rest-feature-layer"; import { IFeature } from "@esri/arcgis-rest-routing"; ```',title:"IFeature"},"Record<string,any>":{type:"object",title:"Record<string,any>"},IPopupInfo:{type:"object",properties:{description:{type:["string","null"],description:"A string that appears in the body of the popup window as a description. It is also possible to specify the description as HTML-formatted content."},expressionInfos:{type:"array",items:{$ref:"#/definitions/IPopupExpressionInfo"},description:"List of Arcade expressions added to the pop-up."},fieldInfos:{type:"array",items:{$ref:"#/definitions/IFieldInfo"},description:"Array of fieldInfo information properties. This information is provided by the service layer definition. When the description uses name/value pairs, the order of the array is how the fields display in the editable Map Viewer popup and the resulting popup. It is also possible to specify HTML-formatted content."},layerOptions:{type:"object",properties:{showNoDataRecords:{type:"boolean",description:"Indicates whether or not the NoData records should be displayed."}},required:["showNoDataRecords"],description:"Additional options that can be defined for the popup layer."},mediaInfos:{type:"array",items:{$ref:"#/definitions/IMediaInfo"},description:"Array of various mediaInfo to display. Can be of type image, piechart, barchart, columnchart, or linechart. The order given is the order in which is displays."},popupElements:{type:"array",items:{$ref:"#/definitions/IPopupElement"},description:"An array of popupElement objects that represent an ordered list of popup elements."},relatedRecordsInfo:{$ref:"#/definitions/IRelatedRecordsInfo",description:"Indicates whether to enable related records if they exist on a layer."},showAttachments:{type:"boolean",description:"Indicates whether attachments will be loaded for feature layers that have attachments."},title:{type:"string",description:"A string that appears at the top of the popup window as a title."}},description:"Defines the look and feel of popup windows when a user clicks or queries a feature.",title:"IPopupInfo"},IPopupExpressionInfo:{type:"object",properties:{expression:{type:"string",description:"The Arcade expression."},name:{type:"string",description:"Unique identifier for the expression."},returnType:{type:"string",enum:["number","string"],description:"Return type of the Arcade expression, can be number or string. Defaults to string value. Number values are assumed to be double. This can be determined by the authoring client by executing the expression using a sample feature(s), although it can be corrected by the user. Knowing the returnType allows the authoring client to present fields in relevant contexts. For example, numeric fields in numeric contexts such as charts."},title:{type:"string",description:"Title of the expression."}},description:"Arcade expression added to the pop-up.",title:"IPopupExpressionInfo"},IFieldInfo:{type:"object",properties:{fieldName:{description:"A string containing the field name as defined by the service. Anywhere that a fieldname is referenced as {field-name} in popupInfo, an Arcade expression can also be referenced as{expression/}`."},format:{$ref:"#/definitions/IFieldFormat",description:"A format object used with numerical or date fields to provide more detail about how the value should be displayed in a web map popup window."},isEditable:{type:"boolean",description:"A Boolean determining whether users can edit this field. Not applicable to Arcade expressions."},label:{type:"string",description:"A string containing the field alias. This can be overridden by the web map author. Not applicable to Arcade expressions as title is used instead."},stringFieldOption:{type:"string",enum:["richtext","textarea","textbox"],description:"A string determining what type of input box editors see when editing the field. Applies only to string fields. Not applicable to Arcade expressions."},tooltip:{type:"string",description:"A string providing an editing hint for editors of the field. Not applicable to Arcade expressions."},visible:{type:"boolean",description:"A Boolean determining whether the field is visible in the popup window."}},description:"Defines how a field in the dataset participates (or does not participate) in a popup window.",title:"IFieldInfo"},IFieldFormat:{type:"object",properties:{dateFormat:{type:"string",enum:["dayShortMonthYear","longDate","longMonthDayYear","longMonthYear","shortDate","shortDateLE","shortDateLELongTime","shortDateLELongTime24","shortDateLEShortTime","shortDateLEShortTime24","shortDateLongTime","shortDateLongTime24","shortDateShortTime","shortDateShortTime24","shortMonthYear","year"],description:"A string used with date fields to specify how the date should appear in popup windows."},digitSeparator:{type:"boolean",description:"A Boolean used with numerical fields. A value of true allows the number to have a digit (or thousands) separator when the value appears in popup windows. Depending on the locale, this separator is a decimal point or a comma. A value of false means that no separator will be used."},places:{type:"number",description:"An integer used with numerical fields to specify the number of supported decimal places that should appear in popup windows. Any places beyond this value are rounded."}},description:"The format object can be used with numerical or date fields to provide more detail about how values should be displayed in popup windows.",title:"IFieldFormat"},IMediaInfo:{type:"object",properties:{caption:{description:"A string caption describing the media."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled. If the property does not exist, it's equivalent to having a value of 0. Only applicable when type is set to image."},title:{type:["string","null"],description:"A string title for the media."},type:{type:"string",enum:["barchart","columnchart","image","linechart","piechart"],description:"A string defining the type of media."},value:{anyOf:[{$ref:"#/definitions/IMediaInfoValue"},{type:"null"}],description:"A value object containing information about how the image should be retrieved or how the chart should be constructed."}},description:"Defines an image or a chart to be displayed in a popup window.",title:"IMediaInfo"},IMediaInfoValue:{type:"object",properties:{fields:{type:"array",items:{type:"string"},description:"Used with charts. An array of strings, with each string containing the name of a field to display in the chart."},linkURL:{type:"string",description:"Used with images. A string containing a URL to be launched in a browser when a user clicks the image."},normalizeField:{type:"string",description:"Used with charts. An optional string containing the name of a field. The values of all fields in the chart will be normalized (divided) by the value of this field."},sourceURL:{type:"string",description:"Used with images. A string containing the URL to the image."},tooltipField:{type:"string",description:"String value indicating the tooltip for a chart specified from another field. This field is needed when related records are not sued. It is used for showing tooltips from another field in the same layer or related layer/table."}},description:"The value object contains information for popup windows about how images should be retrieved or charts constructed.",title:"IMediaInfoValue"},IPopupElement:{type:"object",properties:{displayType:{type:"string",enum:["list","preview"],description:"This property applies to elements of type attachments. A string value indicating how to display the attachment. Possible values are, preview, and list. If list is specified, attachments show as links."},fieldInfos:{type:"array",items:{$ref:"#/definitions/IFieldInfo"},description:"This property applies to elements of type fields. It is an array of popupInfo.fieldInfo objects representing a field/value pair displayed as a table within the popupElement. If the fieldInfos property is not provided, the popupElement will display whatever is specified directly in the popupInfo.fieldInfos property."},mediaInfos:{type:"array",items:{$ref:"#/definitions/IMediaInfo"},description:"This property applies to elements of type media. An array of popupInfo.mediaInfo objects representing an image or chart for display. If no mediaInfos property is provided, the popupElement will display whatever is specified in the popupInfo.mediaInfo property."},text:{type:"string",description:"This property applies to elements of type text. This is string value indicating the text to be displayed within the popupElement. If no text property is provided, the popupElement will display whatever is specified in the popupInfo.description property."},type:{type:"string",enum:["attachments","fields","media","text"],description:"String value indicating which elements to use."}},description:"Popup elements allow users to author popups, using multiple elements such as tabular views, string description, media (charts and images), and attachments of the attributes and control the order in which they appear. Specifically, popupElements do the following: 1) provide the ability to explicitly add a field/ value table in addition to a description, 2) allow adding multiple description elements, and 3) allow a user to author and consume elements of a popup in the order of their choosing.",title:"IPopupElement"},IRelatedRecordsInfo:{type:"object",properties:{orderByFields:{type:"array",items:{$ref:"#/definitions/IOrderByField"},description:"Array of orderByFields objects indicating the field display order for the related records and whether they should be sorted in ascending 'asc' or descending 'desc' order."},showRelatedRecords:{type:"boolean",description:"Required boolean value indicating whether to display related records. If true, client should let the user navigate to the related records. Defaults to true if the layer participates in a relationship AND the related layer/table has already been added to the map (either as an operationalLayer or as a table)."}},required:["showRelatedRecords"],description:"The sort in the popupInfo for the parent feature. This impacts the sorting order for the returned child records.",title:"IRelatedRecordsInfo"},IOrderByField:{type:"object",properties:{field:{type:"string",description:"The attribute value of the field selected that will drive the sorting of related records."},order:{type:"string",enum:["asc","desc"],description:"Set the ascending or descending sort order of the returned related records."}},description:"Object indicating the field display order for the related records and whether they should be sorted in ascending or descending order.",title:"IOrderByField"},WebChartLabelBehavior:{type:"string",enum:["hide","rotate","stagger","wrap"],description:"Represents the different types of behaviors that can applied to a chart axis.",title:"WebChartLabelBehavior"},WebChartStackedKinds:{type:"string",enum:["sideBySide","stacked","stacked100"],title:"WebChartStackedKinds"},WebChartOrderSeriesBy:{type:"object",properties:{preferLabel:{type:"boolean",description:`When the value is set to true, we want to order the split-by series based on the series' names (alias, custom label, or description).
13
13
 
14
- When the value is set to false, we want to order the split-by series based on the series' split-by values.`,default:!0},orderBy:{$ref:"#/definitions/WebChartSortOrderKinds",description:"The direction of the order.",default:"WebChartSortOrderKinds.Ascending"}},description:"Order options for split-by series.",title:"WebChartOrderSeriesBy"},WebChartSortOrderKinds:{type:"string",enum:["ASC","DESC"],title:"WebChartSortOrderKinds"},WebChartDirectionalDataOrder:{type:"object",properties:{orderType:{$ref:"#/definitions/WebChartOrderDataByTypes",description:"The type of order, eg by category, by mean, by median, or by y value."},orderBy:{$ref:"#/definitions/WebChartSortOrderKinds",description:"The direction of the order, either ascending or descending."},preferLabel:{type:"boolean",description:"Indicates whether to order data by the label or the value.\n\nFor example, when a field has domain coded values or supbtypes, setting this property to `false` will order the data by the field value. Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.",default:!0}},required:["orderType","orderBy"],description:"A data order option that the items are to be ordered either ascending or descending. It can be used for any type of order, like by category, by mean, by median, etc.",title:"WebChartDirectionalDataOrder"},WebChartOrderDataByTypes:{type:"string",enum:["arcgis-charts-y-value","arcgis-charts-mean","arcgis-charts-median","arcgis-charts-category"],description:"The types of order assocated with chart data.",title:"WebChartOrderDataByTypes"},WebChartPredefinedLabelsDataOrder:{type:"object",properties:{orderType:{type:"string",const:"arcgis-charts-category",description:"The type of order, which is by category."},orderBy:{type:"array",items:{type:"string"},description:"The predefined list of labels to order the data by.\n\nWhen the value of the `preferLabel` property is set to `false`, the `orderBy` list should be a list of coded domain values or field names; otherwise, it should be a list of domain descriptions, subtypes descriptions, or field aliases."},preferLabel:{type:"boolean",description:"Indicates whether to order data by the label or the value.\n\nFor example, when a field has domain coded values or supbtypes, setting this property to `false` will order the data by the field value. Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.\n\nWhen the value is set to `true` or undefined, the `orderBy` property should contain a list of labels like domain descriptions, subtypes descriptions, or field aliases. When the value is set to `false`, the `orderBy` property should contain a list of coded domain values or field names, in order for the data to be sorted correctly.",default:!0}},required:["orderType","orderBy"],description:"A data order option for the items to be ordered by `category` based on a predefined list of labels.",title:"WebChartPredefinedLabelsDataOrder"},WebGaugeChart:{type:"object",properties:{version:{type:"string",const:"24.5.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartGaugeAxis"},minItems:1,maxItems:1,description:"Array of one WebChartGaugeAxis"},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartSeriesType"},description:"Represents an array of various chart series to be plot inside the chart. Empty array is not allowed.",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
14
+ When the value is set to false, we want to order the split-by series based on the series' split-by values.`,default:!0},orderBy:{$ref:"#/definitions/WebChartSortOrderKinds",description:"The direction of the order.",default:"WebChartSortOrderKinds.Ascending"}},description:"Order options for split-by series.",title:"WebChartOrderSeriesBy"},WebChartSortOrderKinds:{type:"string",enum:["ASC","DESC"],title:"WebChartSortOrderKinds"},WebChartDirectionalDataOrder:{type:"object",properties:{orderType:{$ref:"#/definitions/WebChartOrderDataByTypes",description:"The type of order, eg by category, by mean, by median, or by y value."},orderBy:{$ref:"#/definitions/WebChartSortOrderKinds",description:"The direction of the order, either ascending or descending."},preferLabel:{type:"boolean",description:"Indicates whether to order data by the label or the value.\n\nFor example, when a field has domain coded values or supbtypes, setting this property to `false` will order the data by the field value. Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.",default:!0}},required:["orderType","orderBy"],description:"A data order option that the items are to be ordered either ascending or descending. It can be used for any type of order, like by category, by mean, by median, etc.",title:"WebChartDirectionalDataOrder"},WebChartOrderDataByTypes:{type:"string",enum:["arcgis-charts-y-value","arcgis-charts-mean","arcgis-charts-median","arcgis-charts-category"],description:"The types of order assocated with chart data.",title:"WebChartOrderDataByTypes"},WebChartPredefinedLabelsDataOrder:{type:"object",properties:{orderType:{type:"string",const:"arcgis-charts-category",description:"The type of order, which is by category."},orderBy:{type:"array",items:{type:"string"},description:"The predefined list of labels to order the data by.\n\nWhen the value of the `preferLabel` property is set to `false`, the `orderBy` list should be a list of coded domain values or field names; otherwise, it should be a list of domain descriptions, subtypes descriptions, or field aliases."},preferLabel:{type:"boolean",description:"Indicates whether to order data by the label or the value.\n\nFor example, when a field has domain coded values or supbtypes, setting this property to `false` will order the data by the field value. Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.\n\nWhen the value is set to `true` or undefined, the `orderBy` property should contain a list of labels like domain descriptions, subtypes descriptions, or field aliases. When the value is set to `false`, the `orderBy` property should contain a list of coded domain values or field names, in order for the data to be sorted correctly.",default:!0}},required:["orderType","orderBy"],description:"A data order option for the items to be ordered by `category` based on a predefined list of labels.",title:"WebChartPredefinedLabelsDataOrder"},WebGaugeChart:{type:"object",properties:{version:{type:"string",const:"24.6.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartGaugeAxis"},minItems:1,maxItems:1,description:"Array of one WebChartGaugeAxis"},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartSeriesType"},description:"Represents an array of various chart series to be plot inside the chart. Empty array is not allowed.",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
15
15
 
16
- Currently this property is only used for bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:"Renderer to use to style the series when the chart uses the color match mode. Considered before the layer's renderer."},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:"How series should be ordered and displayed in a multi-series chart. If not provided the series will be displayed as they are ordered in the config."},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data.\n\nIf not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied."},orderByFields:{type:"array",items:{type:"string"},description:"The orderByFields to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nMore info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending"}},description:"Chart order options (data and series)"},innerRadius:{type:["number","null"],description:"Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.",default:50},startAngle:{type:["number","null"],description:"Represents where is the chart's starting point",default:-180},endAngle:{type:["number","null"],description:"Represents where is the chart's ending point. To be related with startAngle. If endAngle-startAngle is 360 the chart will render as full circle.",default:180},subType:{$ref:"#/definitions/GaugeChartSubTypes",description:"The type of Gauge, like FeatureGauge and StatisticGauge.\n\nWhen this property is not specified, it will be defaulted to `GaugeChartSubTypes.StatisticGauge`."}},required:["axes","series","type","version"],description:"JSON representation of Gauge chart.",title:"WebGaugeChart"},GaugeChartSubTypes:{type:"string",enum:["featureGauge","statisticGauge"],description:"Represents the different types of gauge charts.",title:"GaugeChartSubTypes"},WebBoxPlot:{type:"object",properties:{version:{type:"string",const:"24.5.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartAxis"},minItems:1,maxItems:3,description:"Represents an array of **at least 1 or at most 3** Chart Axis accompanying the chart. The axes property is optional because Pie chart does not use any axis. The third axis config is used when a series `assignToSecondValueAxis` is set to `true`. Some of the axis features won't apply to the third axis (e.g. labels behaviors)."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotSeries"},{$ref:"#/definitions/WebChartLineChartSeries"}]},description:'The box plot series can be of type "boxPlotSeries" or "lineSeries".'},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
16
+ Currently this property is only used for bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:"Renderer to use to style the series when the chart uses the color match mode. Considered before the layer's renderer."},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:"How series should be ordered and displayed in a multi-series chart. If not provided the series will be displayed as they are ordered in the config."},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data.\n\nIf not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied."},orderByFields:{type:"array",items:{type:"string"},description:"The orderByFields to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nMore info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending"}},description:"Chart order options (data and series)"},innerRadius:{type:["number","null"],description:"Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.",default:50},startAngle:{type:["number","null"],description:"Represents where is the chart's starting point",default:-180},endAngle:{type:["number","null"],description:"Represents where is the chart's ending point. To be related with startAngle. If endAngle-startAngle is 360 the chart will render as full circle.",default:180},subType:{$ref:"#/definitions/GaugeChartSubTypes",description:"The type of Gauge, like FeatureGauge and StatisticGauge.\n\nWhen this property is not specified, it will be defaulted to `GaugeChartSubTypes.StatisticGauge`."}},required:["axes","series","type","version"],description:"JSON representation of Gauge chart.",title:"WebGaugeChart"},GaugeChartSubTypes:{type:"string",enum:["featureGauge","statisticGauge"],description:"Represents the different types of gauge charts.",title:"GaugeChartSubTypes"},WebBoxPlot:{type:"object",properties:{version:{type:"string",const:"24.6.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartAxis"},minItems:1,maxItems:3,description:"Represents an array of **at least 1 or at most 3** Chart Axis accompanying the chart. The axes property is optional because Pie chart does not use any axis. The third axis config is used when a series `assignToSecondValueAxis` is set to `true`. Some of the axis features won't apply to the third axis (e.g. labels behaviors)."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotSeries"},{$ref:"#/definitions/WebChartLineChartSeries"}]},description:'The box plot series can be of type "boxPlotSeries" or "lineSeries".'},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
17
17
 
18
- Currently this property is only used for bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:"Renderer to use to style the series when the chart uses the color match mode. Considered before the layer's renderer."},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:"How series should be ordered and displayed in a multi-series chart. If not provided the series will be displayed as they are ordered in the config."},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data.\n\nIf not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied."},orderByFields:{type:"array",items:{type:"string"},description:"The orderByFields to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nMore info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending"}},description:"Chart order options (data and series)"},showOutliers:{type:"boolean",description:"Whether to show the outliers on the chart"},standardizeValues:{type:"boolean",description:"Whether to standardize the values by calculating the series z-score"},showMean:{type:"boolean",description:"Whether to show the mean lines on the chart. Applies only if a split-by field is set. Additionally the chart will render with that option enabled only if the the series array contains one box plot series and N lines series.",default:!1}},required:["series","type","version"],description:"JSON representation of Gauge",title:"WebBoxPlot"},WebRadarChart:{type:"object",properties:{version:{type:"string",const:"24.5.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",minItems:2,items:[{$ref:"#/definitions/WebChartRadarChartAxis"},{$ref:"#/definitions/WebChartAxis"}],maxItems:2,description:"Array of two axes, one specific to the radar chart and the other one common to all charts"},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartRadarChartSeries"},description:"The radar chart series",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
18
+ Currently this property is only used for bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:"Renderer to use to style the series when the chart uses the color match mode. Considered before the layer's renderer."},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:"How series should be ordered and displayed in a multi-series chart. If not provided the series will be displayed as they are ordered in the config."},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data.\n\nIf not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied."},orderByFields:{type:"array",items:{type:"string"},description:"The orderByFields to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nMore info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending"}},description:"Chart order options (data and series)"},showOutliers:{type:"boolean",description:"Whether to show the outliers on the chart"},standardizeValues:{type:"boolean",description:"Whether to standardize the values by calculating the series z-score"},showMean:{type:"boolean",description:"Whether to show the mean lines on the chart. Applies only if a split-by field is set. Additionally the chart will render with that option enabled only if the the series array contains one box plot series and N lines series.",default:!1}},required:["series","type","version"],description:"JSON representation of Gauge",title:"WebBoxPlot"},WebRadarChart:{type:"object",properties:{version:{type:"string",const:"24.6.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",minItems:2,items:[{$ref:"#/definitions/WebChartRadarChartAxis"},{$ref:"#/definitions/WebChartAxis"}],maxItems:2,description:"Array of two axes, one specific to the radar chart and the other one common to all charts"},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartRadarChartSeries"},description:"The radar chart series",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
19
19
 
20
- Currently this property is only used for bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:"Renderer to use to style the series when the chart uses the color match mode. Considered before the layer's renderer."},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:"How series should be ordered and displayed in a multi-series chart. If not provided the series will be displayed as they are ordered in the config."},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data.\n\nIf not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied."},orderByFields:{type:"array",items:{type:"string"},description:"The orderByFields to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nMore info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending"}},description:"Chart order options (data and series)"}},required:["axes","series","type","version"],description:"Gives a JSON representation of the Radar Chart object.",title:"WebRadarChart"},WebHeatChart:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. 7 as Sunday for a USA user, 1 as Monday for a French one). Current limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series\n- `null` and `zero` for bar series",default:"null"},version:{type:"string",const:"24.5.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartAxis"},minItems:1,maxItems:3,description:"Represents an array of **at least 1 or at most 3** Chart Axis accompanying the chart. The axes property is optional because Pie chart does not use any axis. The third axis config is used when a series `assignToSecondValueAxis` is set to `true`. Some of the axis features won't apply to the third axis (e.g. labels behaviors)."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartHeatChartSeries"},description:"The heat chart series",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
20
+ Currently this property is only used for bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:"Renderer to use to style the series when the chart uses the color match mode. Considered before the layer's renderer."},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:"How series should be ordered and displayed in a multi-series chart. If not provided the series will be displayed as they are ordered in the config."},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data.\n\nIf not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied."},orderByFields:{type:"array",items:{type:"string"},description:"The orderByFields to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nMore info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending"}},description:"Chart order options (data and series)"}},required:["axes","series","type","version"],description:"Gives a JSON representation of the Radar Chart object.",title:"WebRadarChart"},WebHeatChart:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. 7 as Sunday for a USA user, 1 as Monday for a French one). Current limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series\n- `null` and `zero` for bar series",default:"null"},version:{type:"string",const:"24.6.0",description:"Version of the specification. Used to identify when a saved config was created."},type:{type:"string",const:"chart",description:"Represents a unique string identifier for the Chart object. For Chart object, it is **chart**."},id:{type:"string",description:"Can be used to uniquely identify a chart. The consumer app can choose whether to use it or not."},iLayer:{$ref:"#/definitions/IFeatureLayer",description:"Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component."},dataFilters:{$ref:"#/definitions/WebChartDataFilters",description:"Used to filter the chart's data while in Layer mode."},title:{$ref:"#/definitions/WebChartText",description:"Specifies heading/title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies sub-heading/subtitle of the chart."},footer:{$ref:"#/definitions/WebChartText",description:"Specifies footer of the chart"},background:{$ref:"#/definitions/Color",description:"Specifies the background color of the chart.",default:[255,255,255,255]},cursorCrosshair:{$ref:"#/definitions/WebChartCursorCrosshair",description:"Specifies cursor's crosshair information for the chart. Only for XY charts."},legend:{anyOf:[{$ref:"#/definitions/WebChartLegend"},{$ref:"#/definitions/WebChartPieChartLegend"}],description:"Specifies the Legend information for the chart."},axes:{type:"array",items:{$ref:"#/definitions/WebChartAxis"},minItems:1,maxItems:3,description:"Represents an array of **at least 1 or at most 3** Chart Axis accompanying the chart. The axes property is optional because Pie chart does not use any axis. The third axis config is used when a series `assignToSecondValueAxis` is set to `true`. Some of the axis features won't apply to the third axis (e.g. labels behaviors)."},horizontalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the horizontal axis can't display them all. The available options are: "none", "rotate", "stagger" and "wrap". For XY Chart only. Histogram can handle "none" and "rotate" only. The default value for the horizontal axis is "rotate" except for Histogram, where the default is none.`,default:"rotate"},verticalAxisLabelsBehavior:{$ref:"#/definitions/WebChartLabelBehavior",description:`Represents the way the labels should behave when the vertical axis can't display them all. For XY Chart only. The available options are: "none" and "wrap". The default value for the vertical axis is "wrap".`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartHeatChartSeries"},description:"The heat chart series",minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated. Applied to Bar, Line, and Combo Bar and Line charts.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
21
21
 
22
- Currently this property is only used for bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:"Renderer to use to style the series when the chart uses the color match mode. Considered before the layer's renderer."},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:"How series should be ordered and displayed in a multi-series chart. If not provided the series will be displayed as they are ordered in the config."},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data.\n\nIf not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied."},orderByFields:{type:"array",items:{type:"string"},description:"The orderByFields to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nMore info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending"}},description:"Chart order options (data and series)"}},required:["series","type","version"],description:"Gives a JSON representation of the Heat Chart object.",title:"WebHeatChart"},SupportedLayer:{anyOf:[{$ref:"#/definitions/__esri.FeatureLayer"},{$ref:"#/definitions/__esri.SubtypeSublayer"}],description:"Supported layer type for ArcGIS charts.",title:"SupportedLayer"},"__esri.FeatureLayer":{type:"object",properties:{useViewTime:{type:"boolean"},maxScale:{type:"number"},minScale:{type:"number"},publishingInfo:{anyOf:[{$ref:"#/definitions/__esri.PublishingInfo"},{$ref:"#/definitions/nullish"}]},persistenceEnabled:{type:"boolean"},capabilities:{anyOf:[{$ref:"#/definitions/__esri.Capabilities"},{$ref:"#/definitions/nullish"}]},copyright:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},dateFieldsTimeZone:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},datesInUnknownTimezone:{type:"boolean"},definitionExpression:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},displayField:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},editFieldsInfo:{anyOf:[{$ref:"#/definitions/__esri.EditFieldsInfo"},{$ref:"#/definitions/nullish"}]},editingInfo:{anyOf:[{$ref:"#/definitions/__esri.EditingInfo"},{$ref:"#/definitions/nullish"}]},effectiveCapabilities:{anyOf:[{$ref:"#/definitions/__esri.Capabilities"},{$ref:"#/definitions/nullish"}]},effectiveEditingEnabled:{type:"boolean"},fieldsIndex:{$ref:"#/definitions/__esri.FieldsIndex"},gdbVersion:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},geometryFieldsInfo:{anyOf:[{$ref:"#/definitions/__esri.GeometryFieldsInfo"},{$ref:"#/definitions/nullish"}]},geometryType:{anyOf:[{type:"string",const:"point"},{type:"string",const:"multipoint"},{type:"string",const:"polyline"},{type:"string",const:"polygon"},{type:"string",const:"multipatch"},{type:"string",const:"mesh"},{$ref:"#/definitions/nullish"}]},globalIdField:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},hasM:{type:"boolean"},hasZ:{type:"boolean"},isTable:{type:"boolean"},layerId:{anyOf:[{type:"number"},{$ref:"#/definitions/nullish"}]},objectIdField:{type:"string"},preferredTimeZone:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},relationships:{anyOf:[{type:"array",items:{$ref:"#/definitions/__esri.Relationship"}},{$ref:"#/definitions/nullish"}]},returnM:{anyOf:[{type:"boolean"},{$ref:"#/definitions/nullish"}]},returnZ:{anyOf:[{type:"boolean"},{$ref:"#/definitions/nullish"}]},serviceDefinitionExpression:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},serviceItemId:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},sourceJSON:{anyOf:[{},{$ref:"#/definitions/nullish"}]},subtypeField:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},subtypes:{anyOf:[{type:"array",items:{$ref:"#/definitions/__esri.Subtype"}},{$ref:"#/definitions/nullish"}]},title:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},url:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},version:{anyOf:[{type:"number"},{$ref:"#/definitions/nullish"}]},displayFilterEnabled:{type:"boolean"},displayFilterInfo:{anyOf:[{$ref:"#/definitions/__esri.DisplayFilterInfo"},{$ref:"#/definitions/nullish"}]},customParameters:{anyOf:[{},{$ref:"#/definitions/nullish"}]},blendMode:{type:"string",enum:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"]},effect:{anyOf:[{$ref:"#/definitions/__esri.Effect"},{$ref:"#/definitions/nullish"}]},apiKey:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},uid:{type:"string"},loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}},destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["apiKey","blendMode","capabilities","copyright","customParameters","dateFieldsTimeZone","datesInUnknownTimezone","declaredClass","definitionExpression","destroyed","displayField","displayFilterEnabled","displayFilterInfo","editFieldsInfo","editingInfo","effect","effectiveCapabilities","effectiveEditingEnabled","fieldsIndex","gdbVersion","geometryFieldsInfo","geometryType","globalIdField","hasM","hasZ","initialized","isTable","layerId","loadError","loadStatus","loadWarnings","maxScale","minScale","objectIdField","persistenceEnabled","preferredTimeZone","publishingInfo","relationships","returnM","returnZ","serviceDefinitionExpression","serviceItemId","sourceJSON","subtypeField","subtypes","title","uid","url","useViewTime","version"],title:"__esri.FeatureLayer"},"__esri.Layer":{type:"object",properties:{uid:{type:"string"},loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}},destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["declaredClass","destroyed","initialized","loadError","loadStatus","loadWarnings","uid"],title:"__esri.Layer"},"__esri.Accessor":{type:"object",properties:{destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["destroyed","initialized","declaredClass"],title:"__esri.Accessor"},"__esri.Loadable":{type:"object",properties:{loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}}},required:["loadError","loadStatus","loadWarnings"],title:"__esri.Loadable"},"__esri.Error":{type:"object",properties:{details:{anyOf:[{},{$ref:"#/definitions/nullish"}],description:`The details object provides additional details specific to the error, giving more information about why the error was raised.
22
+ Currently this property is only used for bar and line series.`,default:"sideBySide"},colorMatch:{type:"boolean",description:"Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.\n\nTo do so, this property needs to be set to `true`.\n\nWhen there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`, the colors from the config, and then from the color ramps will be used, in that order.",default:!1},chartRenderer:{description:"Renderer to use to style the series when the chart uses the color match mode. Considered before the layer's renderer."},orderOptions:{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:"How series should be ordered and displayed in a multi-series chart. If not provided the series will be displayed as they are ordered in the config."},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartPredefinedLabelsDataOrder"}],description:"How data for a chart should be ordered. It is recommended to use this property over its sibling `orderByFields` to order the chart data.\n\nIf not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied."},orderByFields:{type:"array",items:{type:"string"},description:"The orderByFields to be sent with the query when retrieving data for the chart. It represents the desired sorting order of the output result from the server.\n\nMore info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending"}},description:"Chart order options (data and series)"},hideEmptyRowsAndColumns:{type:"boolean",description:"Whether to hide entire rows or columns that are empty (i.e. contain no valid data).",default:!1}},required:["series","type","version"],description:"Gives a JSON representation of the Heat Chart object.",title:"WebHeatChart"},SupportedLayer:{anyOf:[{$ref:"#/definitions/__esri.FeatureLayer"},{$ref:"#/definitions/__esri.SubtypeSublayer"}],description:"Supported layer type for ArcGIS charts.",title:"SupportedLayer"},"__esri.FeatureLayer":{type:"object",properties:{useViewTime:{type:"boolean"},maxScale:{type:"number"},minScale:{type:"number"},publishingInfo:{anyOf:[{$ref:"#/definitions/__esri.PublishingInfo"},{$ref:"#/definitions/nullish"}]},persistenceEnabled:{type:"boolean"},capabilities:{anyOf:[{$ref:"#/definitions/__esri.Capabilities"},{$ref:"#/definitions/nullish"}]},copyright:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},dateFieldsTimeZone:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},datesInUnknownTimezone:{type:"boolean"},definitionExpression:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},displayField:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},editFieldsInfo:{anyOf:[{$ref:"#/definitions/__esri.EditFieldsInfo"},{$ref:"#/definitions/nullish"}]},editingInfo:{anyOf:[{$ref:"#/definitions/__esri.EditingInfo"},{$ref:"#/definitions/nullish"}]},effectiveCapabilities:{anyOf:[{$ref:"#/definitions/__esri.Capabilities"},{$ref:"#/definitions/nullish"}]},effectiveEditingEnabled:{type:"boolean"},fieldsIndex:{$ref:"#/definitions/__esri.FieldsIndex"},gdbVersion:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},geometryFieldsInfo:{anyOf:[{$ref:"#/definitions/__esri.GeometryFieldsInfo"},{$ref:"#/definitions/nullish"}]},geometryType:{anyOf:[{type:"string",const:"point"},{type:"string",const:"multipoint"},{type:"string",const:"polyline"},{type:"string",const:"polygon"},{type:"string",const:"multipatch"},{type:"string",const:"mesh"},{$ref:"#/definitions/nullish"}]},globalIdField:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},hasM:{type:"boolean"},hasZ:{type:"boolean"},isTable:{type:"boolean"},layerId:{anyOf:[{type:"number"},{$ref:"#/definitions/nullish"}]},objectIdField:{type:"string"},preferredTimeZone:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},relationships:{anyOf:[{type:"array",items:{$ref:"#/definitions/__esri.Relationship"}},{$ref:"#/definitions/nullish"}]},returnM:{anyOf:[{type:"boolean"},{$ref:"#/definitions/nullish"}]},returnZ:{anyOf:[{type:"boolean"},{$ref:"#/definitions/nullish"}]},serviceDefinitionExpression:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},serviceItemId:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},sourceJSON:{anyOf:[{},{$ref:"#/definitions/nullish"}]},subtypeField:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},subtypes:{anyOf:[{type:"array",items:{$ref:"#/definitions/__esri.Subtype"}},{$ref:"#/definitions/nullish"}]},title:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},url:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},version:{anyOf:[{type:"number"},{$ref:"#/definitions/nullish"}]},displayFilterEnabled:{type:"boolean"},displayFilterInfo:{anyOf:[{$ref:"#/definitions/__esri.DisplayFilterInfo"},{$ref:"#/definitions/nullish"}]},customParameters:{anyOf:[{},{$ref:"#/definitions/nullish"}]},blendMode:{type:"string",enum:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"]},effect:{anyOf:[{$ref:"#/definitions/__esri.Effect"},{$ref:"#/definitions/nullish"}]},apiKey:{anyOf:[{type:"string"},{$ref:"#/definitions/nullish"}]},uid:{type:"string"},loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}},destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["apiKey","blendMode","capabilities","copyright","customParameters","dateFieldsTimeZone","datesInUnknownTimezone","declaredClass","definitionExpression","destroyed","displayField","displayFilterEnabled","displayFilterInfo","editFieldsInfo","editingInfo","effect","effectiveCapabilities","effectiveEditingEnabled","fieldsIndex","gdbVersion","geometryFieldsInfo","geometryType","globalIdField","hasM","hasZ","initialized","isTable","layerId","loadError","loadStatus","loadWarnings","maxScale","minScale","objectIdField","persistenceEnabled","preferredTimeZone","publishingInfo","relationships","returnM","returnZ","serviceDefinitionExpression","serviceItemId","sourceJSON","subtypeField","subtypes","title","uid","url","useViewTime","version"],title:"__esri.FeatureLayer"},"__esri.Layer":{type:"object",properties:{uid:{type:"string"},loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}},destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["declaredClass","destroyed","initialized","loadError","loadStatus","loadWarnings","uid"],title:"__esri.Layer"},"__esri.Accessor":{type:"object",properties:{destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["destroyed","initialized","declaredClass"],title:"__esri.Accessor"},"__esri.Loadable":{type:"object",properties:{loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}}},required:["loadError","loadStatus","loadWarnings"],title:"__esri.Loadable"},"__esri.Error":{type:"object",properties:{details:{anyOf:[{},{$ref:"#/definitions/nullish"}],description:`The details object provides additional details specific to the error, giving more information about why the error was raised.
23
23
 
24
24
  {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html#details Read more... }`},message:{type:"string",description:`A message describing the details of the error.
25
25
 
@@ -39,4 +39,4 @@ Currently this property is only used for bar and line series.`,default:"sideBySi
39
39
 
40
40
  {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PublishingInfo.html#status Read more...}`},updating:{type:"boolean",description:"Indicates if the layer's status is still being updated.",default:`false
41
41
 
42
- {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PublishingInfo.html#updating Read more...}`}},required:["declaredClass","destroyed","initialized","status","updating"],title:"__esri.PublishingInfo"},"__esri.ScaleRangeLayer":{type:"object",properties:{maxScale:{type:"number"},minScale:{type:"number"}},required:["maxScale","minScale"],title:"__esri.ScaleRangeLayer"},"__esri.TemporalLayer":{type:"object",properties:{useViewTime:{type:"boolean"}},required:["useViewTime"],title:"__esri.TemporalLayer"},"__esri.TrackableLayer":{type:"object",title:"__esri.TrackableLayer"},"__esri.SubtypeSublayer":{type:"object",properties:{uid:{type:"string"},loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}},destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["declaredClass","destroyed","initialized","loadError","loadStatus","loadWarnings","uid"],title:"__esri.SubtypeSublayer"},Layer:{$ref:"#/definitions/__esri.Layer",description:"Esri Layer type",title:"Layer"},RGBObject:{type:"object",properties:{r:{type:"number"},g:{type:"number"},b:{type:"number"},a:{type:"number",default:1}},required:["r","g","b"],description:"JSON representation of the color object",title:"RGBObject"},IRendererSymbol:{type:"object",properties:{style:{type:"string"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},label:{type:"string"},uniqueValue:{type:"string"},type:{$ref:"#/definitions/SymbolType"}},required:["color","type"],title:"IRendererSymbol"},WebChartDataItemColor:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/RGBArray"},{$ref:"#/definitions/RGBObject"},{type:"string"}],title:"WebChartDataItemColor"},RGBArray:{type:"array",items:{type:"number"},minItems:3,maxItems:3,title:"RGBArray"},WebChartDataItemValue:{anyOf:[{type:"string",format:"date-time"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IRendererSymbol"},{type:"array",items:{type:"number"}},{type:"array",items:{type:"string"}},{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},{$ref:"#/definitions/WebChartDataItemColor"},{type:"boolean"},{type:"number"},{type:"string"},{type:"null"},{not:{}}],title:"WebChartDataItemValue"},WebChartDataItem:{$ref:"#/definitions/Record%3Cstring%2CWebChartDataItemValue%3E",description:"JSON representation of a typical data item",title:"WebChartDataItem"},"Record<string,WebChartDataItemValue>":{type:"object",additionalProperties:{$ref:"#/definitions/WebChartDataItemValue"},title:"Record<string,WebChartDataItemValue>"},WebChartBoxPlotDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},outliers:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},meanLines:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["dataItems"],description:"JSON representation of the processed data for a Box Plot",title:"WebChartBoxPlotDataItem"},ScatterplotTrendLineData:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2}},description:"JSON representation of the processed data for a Scatter plot trend line",title:"ScatterplotTrendLineData"},WebChartScatterplotDataItem:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2},dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},aggregated:{type:"boolean"}},required:["dataItems"],description:"JSON representation of the processed data for a Scatter plot",title:"WebChartScatterplotDataItem"},WebChartGenericDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},timeIntervalInfo:{$ref:"#/definitions/TimeIntervalInfo",description:"Time interval information, only for line charts"},serverLimitReached:{type:"boolean",description:"Indicates whether the server limit has been reached when fetching data. Currently applies only to the queries leveraging the /queryBins operation."}},required:["dataItems"],description:"JSON representation of the generic data structure for bar, line bar-line, gauge and pie chart",title:"WebChartGenericDataItem"},WebChartBin:{type:"object",properties:{count:{type:"number"},minValue:{type:"number",description:"Min value in the bin"},maxValue:{type:"number",description:"Max value in the bin"},symbol:{$ref:"#/definitions/WebChartDataItem",description:"Symbol associated with the bin."},isLastBin:{type:"boolean",description:"Whether this is the last bin."}},required:["count","minValue","maxValue"],description:"JSON representation of a Histogram bin",title:"WebChartBin"},WebChartHistogramDataItem:{type:"object",properties:{mean:{type:"number"},median:{type:"number"},stddev:{type:"number"},max:{type:"number"},min:{type:"number"},sum:{type:"number",description:"Sum of the values of all the points"},count:{type:"number",description:"Number of all the points/features in un-binned data (including only non-null entries)"},nulls:{type:"number",description:"Number of null entries in the pool of points"},bins:{type:"array",items:{$ref:"#/definitions/WebChartBin"}}},required:["mean","median","stddev","max","min","bins"],description:"JSON representation of the processed data for a Histogram",title:"WebChartHistogramDataItem"},WebChartDataTypes:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotDataItem"},{$ref:"#/definitions/WebChartGenericDataItem"},{$ref:"#/definitions/WebChartHistogramDataItem"},{$ref:"#/definitions/WebChartScatterplotDataItem"}],title:"WebChartDataTypes"},WebChartTypes:{type:"string",enum:["chart","chartText","chartOverlay","chartOverlays","chartLegend","cursorCrosshair","chartAxis","gaugeAxisTick","gaugeNeedle","category","number","date","chartGuide","scatterSeries","pieSeries","pieTick","gaugeSeries","lineSeries","barSeries","histogramSeries","boxPlotSeries","radarSeries","comboLineAndBarSeries","heatSeries","buffer","sizeScale","calendarDateParts"],title:"WebChartTypes"},WebChartStatisticType:{type:"string",enum:["count","sum","min","max","avg","stddev","var","percentile-continuous","percentile-discrete","envelope-aggregate","centroid-aggregate","convex-hull-aggregate","no_aggregation"],title:"WebChartStatisticType"},WebChartColoringPatterns:{type:"string",enum:["singleColor","colorMatch"],title:"WebChartColoringPatterns"},WebChartBoxPlotMultipleSeriesKinds:{type:"string",enum:["sideBySide","meanLines"],title:"WebChartBoxPlotMultipleSeriesKinds"},WebChartLineSmoothedKinds:{type:"string",enum:["bezier","monotoneX","monotoneY"],description:"Represents the different types of smoothing that can be applied to a line chart when the `lineSmoothed` property is set to `true`.",title:"WebChartLineSmoothedKinds"},WebChartCalendarBinningOffsetUnits:{type:"string",enum:["seconds","minutes","hours","days"],description:"The temporal binning units for the calendar based binning offset",title:"WebChartCalendarBinningOffsetUnits"},WebChartVersionStatus:{type:"string",enum:["same","newer","older","unrecognized"],title:"WebChartVersionStatus"},WebChartAxisTypes:{type:"string",enum:["value","date","category"],description:"Represents the different types of axes that can be used in a chart.",title:"WebChartAxisTypes"},RESTFieldType:{type:"string",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimestampOffset","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeString","esriFieldTypeXML"],title:"RESTFieldType"},RESTSimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"RESTSimpleLineSymbolStyle"},RESTSimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSX","esriSMSTriangle"],title:"RESTSimpleMarkerSymbolStyle"},RESTSimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"RESTSimpleFillSymbolStyle"},RESTHorizontalAlignment:{type:"string",enum:["left","right","center","justify"],title:"RESTHorizontalAlignment"},RESTVerticalAlignment:{type:"string",enum:["baseline","top","middle","bottom"],title:"RESTVerticalAlignment"},RESTSymbolType:{type:"string",enum:["esriSLS","esriSMS","esriSFS","esriPMS","esriPFS","esriTS"],title:"RESTSymbolType"},RESTFontStyle:{type:"string",enum:["italic","normal","oblique"],title:"RESTFontStyle"},RESTFontWeight:{type:"string",enum:["bold","bolder","lighter","normal"],title:"RESTFontWeight"},RESTFontDecoration:{type:"string",enum:["line-through","underline","none"],title:"RESTFontDecoration"},RESTRendererType:{type:"string",enum:["unique-value","simple","class-breaks","heatmap","dot-density","dictionary","pie-chart"],title:"RESTRendererType"},OverlayTerms:{type:"string",enum:["Mean","Median","Standard Deviation","Normal Distribution","Trendline"],title:"OverlayTerms"},CalculatedMinMaxBoundsPayload:{type:"object",properties:{isXAxis:{type:"boolean"},isSecondValueAxis:{type:"boolean"},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."}},required:["isXAxis"],description:"Represents a subset of the event payload carrying the chart's axes bounds. See event `arcgisChartsAxesMinMaxChange`.",title:"CalculatedMinMaxBoundsPayload"},ChartDeletePayload:{type:"object",properties:{chartId:{type:"string"}},required:["chartId"],description:"Represents the payload of the event sent when a chart is removed from the chart list (component arcgis-charts-config-view-charts).",title:"ChartDeletePayload"},LegendItemVisibility:{type:"object",properties:{visible:{type:"boolean"},seriesId:{type:"string"},overlayType:{$ref:"#/definitions/OverlayTerms"},sliceId:{type:"string"},sliceData:{$ref:"#/definitions/WebChartDataItem"}},required:["visible"],description:"Represents the payload of the event sent when an item is toggled in the chart's legend (slice or series).",title:"LegendItemVisibility"},IFeatureSet:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"},objectIdFieldName:{type:"string"},globalIdFieldName:{type:"string"},displayFieldName:{type:"string"},geometryType:{$ref:"#/definitions/GeometryType"},spatialReference:{$ref:"#/definitions/ISpatialReference"},fields:{type:"array",items:{$ref:"#/definitions/IField"}},features:{type:"array",items:{$ref:"#/definitions/IFeature"}},fieldAliases:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"}},required:["features"],description:'`IFeatureSet` can also be imported from the following packages:\n\n```js import { IFeatureSet } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureSet"},"Record<string,string>":{type:"object",additionalProperties:{type:"string"},title:"Record<string,string>"},ILocation:{type:"object",properties:{latitude:{type:"number"},longitude:{type:"number"},lat:{type:"number"},long:{type:"number"},z:{type:"number"}},description:'`ILocation` can also be imported from the following packages:\n\n```js import { ILocation } from "@esri/arcgis-rest-routing"; import { ILocation } from "@esri/arcgis-rest-geocoding"; ```',title:"ILocation"},IPolylineWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curvePaths:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curvePaths"],title:"IPolylineWithCurves"},ElipticArc:{$ref:"#/definitions/IArc",title:"ElipticArc"},SpatialRelationship:{type:"string",enum:["esriSpatialRelContains","esriSpatialRelCrosses","esriSpatialRelEnvelopeIntersects","esriSpatialRelIndexIntersects","esriSpatialRelIntersects","esriSpatialRelOverlaps","esriSpatialRelTouches","esriSpatialRelWithin"],description:'The spatial relationship used to compare input geometries\n\n`SpatialRelationship` can also be imported from the following packages:\n\n```js import { SpatialRelationship } from "@esri/arcgis-rest-feature-layer"; ```',title:"SpatialRelationship"},IMultipoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},points:{type:"array",items:{$ref:"#/definitions/Position"}}},required:["points"],description:"A multipoint contains an array of points.",title:"IMultipoint"},Units:{type:"string",enum:["esriSRUnit_Foot","esriSRUnit_Kilometer","esriSRUnit_Meter","esriSRUnit_NauticalMile","esriSRUnit_StatuteMile","esriSRUnit_USNauticalMile"],description:'`Units` can also be imported from the following packages:\n\n```js import { Units } from "@esri/arcgis-rest-feature-layer"; ```',title:"Units"},GroupMembership:{type:"string",enum:["admin","member","none","owner"],description:'`GroupMembership` can also be imported from the following packages:\n\n```js import { GroupMembership } from "@esri/arcgis-rest-portal"; ```',title:"GroupMembership"},IGroupAdd:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"}},required:["title","access"],description:'A [Group](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IGroupAdd` can also be imported from the following packages:\n\n```js import { IGroupAdd } from "@esri/arcgis-rest-portal"; ```',title:"IGroupAdd"},IGroup:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"},id:{type:"string"},created:{type:"number"},modified:{type:"number"},protected:{type:"boolean"},isOpenData:{type:"boolean"},isFav:{type:"boolean"},userMembership:{type:"object",properties:{username:{type:"string"},memberType:{$ref:"#/definitions/GroupMembership"},applications:{type:"number"}}},hasCategorySchema:{type:"boolean"}},required:["access","autoJoin","created","id","isFav","isInvitationOnly","isViewOnly","modified","owner","protected","tags","title"],description:'Existing Portal [Group](https://developers.arcgis.com/rest/users-groups-and-items/group.htm).\n\n`IGroup` can also be imported from the following packages:\n\n```js import { IGroup } from "@esri/arcgis-rest-portal"; ```',title:"IGroup"},IItemAdd:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}}},required:["title","type"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IItemAdd` can also be imported from the following packages:\n\n```js import { IItemAdd } from "@esri/arcgis-rest-portal"; ```',title:"IItemAdd"},IItemUpdate:{type:"object",properties:{id:{type:"string"}},required:["id"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) to be updated.\n\n`IItemUpdate` can also be imported from the following packages:\n\n```js import { IItemUpdate } from "@esri/arcgis-rest-portal"; ```',title:"IItemUpdate"},IItem:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}},id:{type:"string"},created:{type:"number"},modified:{type:"number"},numViews:{type:"number"},size:{type:"number"},protected:{type:"boolean"}},required:["created","id","modified","numViews","owner","size","tags","title","type"],description:'Existing Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/item.htm).\n\n`IItem` can also be imported from the following packages:\n\n```js import { IItem } from "@esri/arcgis-rest-portal"; ```',title:"IItem"},IFolder:{type:"object",properties:{username:{type:"string"},id:{type:"string"},title:{type:"string"},created:{type:"number"}},required:["username","id","title"],description:'Used for organizing content. See [Create Folder](https://developers.arcgis.com/rest/users-groups-and-items/create-folder.htm) for more details.\n\n`IFolder` can also be imported from the following packages:\n\n```js import { IFolder } from "@esri/arcgis-rest-portal"; ```',title:"IFolder"},IFeatureServiceDefinition:{type:"object",properties:{currentVersion:{type:"number"},serviceDescription:{type:"string"},hasVersionedData:{type:"boolean"},supportsDisconnectedEditing:{type:"boolean"},supportsReturnDeleteResults:{type:"boolean"},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},maxRecordCount:{type:"number",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsRelationshipsResource:{type:"boolean"},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. Query,Editing."},description:{type:"string",description:"String value of the layer as defined in the map service."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},advancedEditingCapabilities:{$ref:"#/definitions/Record%3Cstring%2Cboolean%3E"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry."},initialExtent:{$ref:"#/definitions/IExtent"},fullExtent:{$ref:"#/definitions/IExtent"},allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},units:{type:"string"},syncEnabled:{type:"boolean"},returnServiceEditsHaveSR:{type:"boolean"},validationSystemLayers:{type:"object",properties:{validationPointErrorlayerId:{type:"number"},validationLineErrorlayerId:{type:"number"},validationPolygonErrorlayerId:{type:"number"},validationObjectErrortableId:{type:"number"}},required:["validationPointErrorlayerId","validationLineErrorlayerId","validationPolygonErrorlayerId","validationObjectErrortableId"]},extractChangesCapabilities:{type:"object",properties:{supportsReturnIdsOnly:{type:"boolean"},supportsReturnExtentOnly:{type:"boolean"},supportsReturnAttachments:{type:"boolean"},supportsLayerQueries:{type:"boolean"},supportsSpatialFilter:{type:"boolean"},supportsReturnFeature:{type:"boolean"}},required:["supportsReturnIdsOnly","supportsReturnExtentOnly","supportsReturnAttachments","supportsLayerQueries","supportsSpatialFilter","supportsReturnFeature"]},syncCapabilities:{type:"object",properties:{supportsASync:{type:"boolean"},supportsRegisteringExistingData:{type:"boolean"},supportsSyncDirectionControl:{type:"boolean"},supportsPerLayerSync:{type:"boolean"},supportsPerReplicaSync:{type:"boolean"},supportsRollbackOnFailure:{type:"boolean"},supportedSyncDataOptions:{type:"number"}},required:["supportsASync","supportsRegisteringExistingData","supportsSyncDirectionControl","supportsPerLayerSync","supportsPerReplicaSync","supportsRollbackOnFailure","supportedSyncDataOptions"]},editorTrackingInfo:{type:"object",properties:{enableEditorTracking:{type:"boolean"},enableOwnershipAccessControl:{type:"boolean"},allowOthersToUpdate:{type:"boolean"},allowOthersToDelete:{type:"boolean"}},required:["enableEditorTracking","enableOwnershipAccessControl","allowOthersToUpdate","allowOthersToDelete"]},documentInfo:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"},layers:{type:"array",items:{$ref:"#/definitions/ILayerDefinition"}},tables:{type:"array",items:{$ref:"#/definitions/ITable"}},relationships:{type:"array",items:{type:"object",properties:{id:{type:"number"},name:{type:"string"},backwardPathLabel:{type:"string"},originLayerId:{type:"number"},originPrimaryKey:{type:"string"},forwardPathLabel:{type:"string"},destinationLayerId:{type:"number"},originForeignKey:{type:"string"},relationshipTableId:{type:"number"},destinationPrimaryKey:{type:"string"},destinationForeignKey:{type:"string"},rules:{type:"array",items:{type:"object",properties:{ruleID:{type:"number"},originSubtypeCode:{type:"number"},originMinimumCardinality:{type:"number"},originMaximumCardinality:{type:"number"},destinationSubtypeCode:{type:"number"},destinationMinimumCardinality:{type:"number"},destinationMaximumCardinality:{type:"number"}},required:["ruleID","originSubtypeCode","originMinimumCardinality","originMaximumCardinality","destinationSubtypeCode","destinationMinimumCardinality","destinationMaximumCardinality"]},minItems:1,maxItems:1},cardinality:{type:"string",enum:["esriRelCardinalityManyToMany","esriRelCardinalityOneToMany","esriRelCardinalityOneToOne"]},attributed:{type:"boolean"},composite:{type:"boolean"}},required:["id","name","backwardPathLabel","originLayerId","originPrimaryKey","forwardPathLabel","destinationLayerId","originForeignKey","relationshipTableId","destinationPrimaryKey","destinationForeignKey","rules","cardinality","attributed","composite"]},minItems:1,maxItems:1},enableZDefaults:{type:"boolean"},isLocationTrackingService:{type:"boolean"},isLocationTrackingView:{type:"boolean"},zDefault:{type:"number"}},required:["serviceDescription","hasVersionedData","supportsDisconnectedEditing","supportsReturnDeleteResults","maxRecordCount","supportedQueryFormats","supportsRelationshipsResource","capabilities","description","copyrightText","advancedEditingCapabilities","spatialReference","initialExtent","fullExtent","allowGeometryUpdates","units","syncEnabled","validationSystemLayers","extractChangesCapabilities","syncCapabilities","editorTrackingInfo","layers","tables","relationships","isLocationTrackingService","isLocationTrackingView"],description:'`IFeatureServiceDefinition` can also be imported from the following packages:\n\n```js import { IFeatureServiceDefinition } from "@esri/arcgis-rest-service-admin"; import { IFeatureServiceDefinition } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureServiceDefinition"},"Record<string,boolean>":{type:"object",additionalProperties:{type:"boolean"},title:"Record<string,boolean>"},ITable:{type:"object",properties:{name:{type:"string",description:"Table name"},capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service. Available operations include: 'Create', 'Delete', 'Query', 'Update', and 'Editing'."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Object indicating the definitionEditor used as a layer's interactive filter."},id:{type:"number",description:"Unique identifier for the table."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining a definition expression for the table."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"An object defining the content of popup windows when you query a record and the sort option for child related records."},title:{type:"string",description:"String value for the title of the table."},url:{type:"string",description:"String value indicating the URL reference of the hosted table."}},description:'Root element in the web map specifying an array of table objects.\n\n`ITable` can also be imported from the following packages:\n\n```js import { ITable } from "@esri-arcgis-rest-service-admin" ```',title:"ITable"},IServiceInfo:{type:"object",properties:{adminServiceInfo:{type:"object",properties:{name:{type:"string"},type:{type:"string"},status:{type:"string"},database:{type:"object",properties:{datasource:{type:"object",properties:{name:{type:"string"}},required:["name"]}},required:["datasource"]}},required:["name","type","status","database"]},layers:{type:"array",items:{$ref:"#/definitions/Record%3Cstring%2Cunknown%3E"}}},required:["adminServiceInfo","layers"],description:"Very generic structure representing the return value from the /arcgis/rest/admin/services/<service-name>/FeatureServer?f=json response",title:"IServiceInfo"},"Record<string,unknown>":{type:"object",additionalProperties:{},title:"Record<string,unknown>"},IViewServiceSource:{type:"object",properties:{name:{type:"string"},type:{type:"string"},url:{type:"string"},serviceItemId:{type:"string"}},required:["name","type","url","serviceItemId"],description:"Individual View Source entry",title:"IViewServiceSource"},IViewServiceSources:{type:"object",properties:{currentVersion:{type:"number"},services:{type:"array",items:{$ref:"#/definitions/IViewServiceSource"}}},required:["currentVersion","services"],description:"Response from the /sources end-point of a view service",title:"IViewServiceSources"},IServiceNameAvailable:{type:"object",properties:{available:{type:"boolean"}},required:["available"],description:"Response from the portals/Self/isServiceNameAvailable request",title:"IServiceNameAvailable"},IPictureSourced:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},title:"IPictureSourced"},IPictureFillSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPFS"},style:{type:"string"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},xscale:{type:"number"},yscale:{type:"number"}},required:["type"],title:"IPictureFillSymbol"},IPictureMarkerSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPMS"},style:{type:"string"}},required:["type"],title:"IPictureMarkerSymbol"},ITextSymbol:{type:"object",properties:{type:{type:"string",const:"esriTS"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:"ITextSymbol"},IUser:{type:"object",properties:{username:{type:"string"},fullName:{type:"string"},availableCredits:{type:"number"},assignedCredits:{type:"number"},firstName:{type:"string"},lastName:{type:"string"},preferredView:{},description:{type:"string"},email:{type:"string"},idpUsername:{type:"string"},favGroupId:{type:"string"},lastLogin:{type:"number"},mfaEnabled:{type:"boolean"},access:{type:"string"},storageUsage:{type:"number"},storageQuota:{type:"number"},orgId:{type:"string"},cOrgId:{type:"string"},role:{type:"string",enum:["org_admin","org_publisher","org_user"]},privileges:{type:"array",items:{type:"string"}},roleId:{type:"string"},level:{type:"string"},disabled:{type:"boolean"},units:{type:"string"},tags:{type:"array",items:{type:"string"}},culture:{type:"string"},region:{type:"string"},thumbnail:{type:"string"},created:{type:"number"},modified:{type:"number"},groups:{type:"array",items:{$ref:"#/definitions/IGroup"}},provider:{type:"string",enum:["arcgis","enterprise","facebook","google"]}},description:'An ArcGIS Online or Enterprise user\n\n`IUser` can also be imported from the following packages:\n\n```js import { IUser } from "@esri/arcgis-rest-auth"; import { IUser } from "@esri/arcgis-rest-portal"; ```',title:"IUser"},IPagingParams:{type:"object",properties:{start:{type:"number"},num:{type:"number"}},description:'Params for paging operations\n\n`IPagingParams` can also be imported from the following packages:\n\n```js import { IPagingParams } from "@esri/arcgis-rest-portal"; ```',title:"IPagingParams"},IPagedResponse:{type:"object",properties:{start:{type:"number"},num:{type:"number"},total:{type:"number",description:"total number of object across all pages"},nextStart:{type:"number",description:"next entry index or -1 for the last page"}},required:["total","nextStart"],description:'Paging properties for paged responses.\n\n`IPagedResponse` can also be imported from the following packages:\n\n```js import { IPagedResponse } from "@esri/arcgis-rest-portal"; ```',title:"IPagedResponse"},IWebMapBackground:{type:"object",properties:{color:{$ref:"#/definitions/Color",description:"To define the color of the background of the map (which is shown when no data is shown)."}},required:["color"],description:"Defines the appearance for the background of the map.",examples:[{background:{color:[255,255,255,255]}}],title:"IWebMapBackground"},IBookmark:{type:"object",properties:{extent:{$ref:"#/definitions/IExtent",description:"An extent object containing a spatial reference, a lower left coordinate, and an upper right coordinate defining the rectangular area of the bookmark. The spatial reference must be the same as the map spatial reference. Documentation for the envelope is in the Geometry Objects topic of the ArcGIS REST API help."},name:{type:"string",description:"A string name for the bookmark."}},required:["extent","name"],description:"Predefined bookmarks for use by the application. A bookmark is a saved map extent that allows end users to quickly navigate to a particular area of interest.",title:"IBookmark"},IMapRangeInfo:{type:"object",properties:{activeRangeName:{type:"string",description:"Active range ID that slider/picker acts upon."},currentRangeExtent:{type:"array",items:{type:"number"},description:"Current range for the active range."},fullRangeExtent:{type:"array",items:{type:"number"},description:"Full range extent for the active range to be presented in the UI."}},description:"Map range information",examples:[{mapRangeInfo:{activeRangeName:"floors",currentRangeExtent:[-2,10],fullRangeExtent:[-2,100]}}],title:"IMapRangeInfo"},IMapLocation:{type:"object",properties:{centerPoint:{$ref:"#/definitions/IPoint",description:"The center of the map specified using X/Y coordinates."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"Well-known ID (WKID) or well-known text (WKT)."}},required:["centerPoint","spatialReference"],description:"Contains location information within a presentation slide.",title:"IMapLocation"},IVisibleLayer:{type:"object",properties:{featureVisibility:{type:"array",items:{type:"array",items:{}},description:"An array of arrays."},id:{type:"number",description:"The id of the layer as listed on the operational layer."},subLayerIds:{type:"array",items:{type:"number"},description:"An array of integers."}},description:"An array of numbers indicating layer visibility.",examples:[{visibleLayer:{featureVisibility:[[1],[],[],[0]],id:"73128eb3-05ee-46a7-8c22-0c385a0b1827"}}],title:"IVisibleLayer"},IVisiblePopup:{type:"object",properties:{anchorPoint:{$ref:"#/definitions/IPoint",description:"Object with spatialReference, x, and y."},featureId:{type:"number",description:"An integer specifying the feature's id."},layerId:{type:"string",description:"A string specifying the layer id."},subLayerId:{type:"number",description:"An integer specifying the sublayer id."}},description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId.",title:"IVisiblePopup"},ISlide:{type:"object",properties:{baseMap:{$ref:"#/definitions/IBaseMap",description:"Basemaps give the web map a geographic context."},extent:{$ref:"#/definitions/IExtent",description:"The standard Esri extent object with spatialReference, xmax, xmin, ymax and ymin."},hidden:{type:"boolean",description:"Indicates whether the slide should be hidden within the presentation."},mapLocation:{$ref:"#/definitions/IMapLocation",description:"An object with a centerPoint object and sometimes a resolution."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"An array of two numbers. The first one indicates start time and the second one indicates end time."},title:{type:"string",description:"Title including text and formatting for each slide."},visibleLayers:{$ref:"#/definitions/IVisibleLayer",description:"An array of objects used to indicate layer visibility."},visiblePopup:{$ref:"#/definitions/IVisiblePopup",description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId."}},title:"ISlide"},IBaseMap:{type:"object",properties:{baseMapLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"An array of baseMapLayer objects defining the basemaps used in the web map."},title:{type:"string",description:"Required string title for the basemap that can be used in a table of contents. It takes the title of the first baseMapLayer in the array."}},required:["baseMapLayers","title"],description:"A basemap layer is a layer that provides geographic context to the map. A web map always contains a basemap. The basemap has a title and is the combination of each baseMapLayer. It is required that a baseMap be saved within the web map.",title:"IBaseMap"},IPresentation:{type:"object",properties:{displayTimeSlider:{type:"boolean",description:"Indicates whether to display the time slider (if accessible)."},showLegend:{type:"boolean",description:"Indicates whether to display a legend on all slides."},slideAdvancementInterval:{type:"number",description:"Number of seconds to show slide before proceeding to the next slide."},slides:{type:"array",items:{$ref:"#/definitions/ISlide"},description:"Array of slide objects."},useTimeExtentOfSlide:{type:"boolean",description:"Indicates whether to use the time extent (if applicable) of a slide."}},title:"IPresentation"},IWebmap:{type:"object",properties:{applicationProperties:{$ref:"#/definitions/IApplicationProperties",description:"Viewing and editing properties of the webmap"},authoringApp:{type:"string",description:"String value indicating the application which authored the webmap"},authoringAppVersion:{type:"string",description:"String value indicating the authoring App's version number"},background:{$ref:"#/definitions/IWebMapBackground",description:"Defines the appearance for the background of the map."},baseMap:{$ref:"#/definitions/IBaseMap",description:"[Required] Basemaps give the web map a geographic context"},bookmarks:{type:"array",items:{$ref:"#/definitions/IBookmark"},description:"A bookmark is a saved geographic extent that allows end users to quickly navigate to a particular area of interest"},mapRangeInfo:{$ref:"#/definitions/IMapRangeInfo",description:"Map Range Information"},operationalLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"Operational layers contain business data which are used to make thematic maps"},presentation:{description:"A presentation consists of multiple slides. Each slide has a different title, extent, basemap, layers etc"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"[Required] An object used to specify the spatial reference of the given geometry."},tables:{type:"array",items:{$ref:"#/definitions/ITable"},description:"Root element in the web map specifying an array of table objects. (optional)"},version:{type:"string",description:"[Required] Root element in the web map specifying a string value indicating the web map version."},widgets:{description:"The widgets object contains widgets that should be exposed to the user"}},required:["baseMap","spatialReference","version"],description:"The web map data lists the basemap, operational layers, and bookmarks to be used in the web map. It also contains information about popup windows and layer styling overrides to be used in the web map. A version property allows you to supply the version of the web map JSON format being used.",title:"IWebmap"},IApplicationProperties:{type:"object",properties:{editing:{anyOf:[{$ref:"#/definitions/IEditingProperties"},{type:"null"}],description:"If locationTracking is set and enabled, the Collector application will update the feature service at the defined interval with the current location of the user logged into the Collector app."},offline:{anyOf:[{$ref:"#/definitions/IOfflineInfo"},{type:"null"}],description:"Use if working with offline maps."},viewing:{anyOf:[{$ref:"#/definitions/IViewingInfo"},{type:"null"}],description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default."}},description:"The applicationProperties object is one of the objects at the top level of the JSON web map JSON schema. This is responsible for containing the viewing and editing properties of the web map. There are specific objects within this object that are applicable only to Collector and are explained within the property descriptions.",title:"IApplicationProperties"},IEditingProperties:{type:"object",properties:{locationTracking:{$ref:"#/definitions/ILocationTracking",description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application."}},required:["locationTracking"],description:"An object containing all the editing properties within the web map.",title:"IEditingProperties"},ILocationTracking:{type:"object",properties:{enabled:{type:"boolean",description:"A boolean value indicating whether or not location tracking is enabled on the webmap."},info:{$ref:"#/definitions/ILocationTrackingInfo",description:"An object of additional information specifying layer and update interval time."}},required:["enabled","info"],description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application.",title:"ILocationTracking"},ILocationTrackingInfo:{type:"object",properties:{layerId:{description:"A string value indicating the given layer id specified in the web map."},updateInterval:{description:"A numeric value indicating the time interval used to update the feature service. Default value is 300 seconds."}},required:["layerId"],description:"An object containing additional information specifying layer and update interval time used in the locationTracking object.",title:"ILocationTrackingInfo"},IOfflineInfo:{type:"object",properties:{editableLayers:{$ref:"#/definitions/IEditableLayers",description:"Object detailing the available offline editing options."},readonlyLayers:{$ref:"#/definitions/IReadOnlyLayers",description:"Object indicating what to do with attachments in read-only layers."}},required:["editableLayers","readonlyLayers"],description:"Use if working with offline maps.",title:"IOfflineInfo"},IEditableLayers:{type:"object",properties:{download:{type:"string",enum:["featuers","featuresAndAttachments","none"],description:"When editing layers, the edits are always sent to the server. This string value indicates which data is retrieved. For example, none indicates that only the schema is written since neither the features nor attachments are retrieved. For a full sync without downloading attachments, indicate features. Lastly, the default behavior is to have a full sync using featuresAndAttachments where both features and attachments are retrieved."},sync:{type:"string",enum:["syncFeaturesAndAttachments","syncFeaturesUploadAttachments","uploadFeaturesAndAttachments"],description:"This string value indicates how the data is synced."}},required:["download","sync"],description:"Object detailing the available offline editing options.",title:"IEditableLayers"},IReadOnlyLayers:{type:"object",properties:{downloadAttachments:{type:"boolean",description:"Indicates whether to include attachments with the read-only data."}},required:["downloadAttachments"],description:"Read-only layers as the features are always retrieved from the server.",title:"IReadOnlyLayers"},IViewingInfo:{type:"object",properties:{basemapGallery:{$ref:"#/definitions/IEnableable",description:"The basemap tool which will use the basemap group defined in the Portal."},measure:{$ref:"#/definitions/IEnableable",description:"Measure tool."},routing:{$ref:"#/definitions/IEnableable",description:"The route tool which will leverage the Portals defined route service."},search:{$ref:"#/definitions/ISearch",description:"An object specifying search parameters within the webmap."}},description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default.",title:"IViewingInfo"},IEnableable:{type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"],title:"IEnableable"},ISearch:{type:"object",properties:{enabled:{type:"boolean"},disablePlaceFinder:{description:"A boolean value indicating whether or not to disable the place finder."},hintText:{description:"A string value used to indicate the hint provided with the search dialog."},layers:{description:"An array of layer objects defining the styling, geometry, and attribute information for the features."}},required:["enabled"],description:"An object specifying the search parameters set within the web map.",title:"ISearch"},IRange:{type:"object",properties:{interactionMode:{type:"string",enum:["picker","slider"],description:"Indicates the mode in which the active range should be presented to the user. Must be one of the following values: slider, picker"},numberOfStops:{description:"This is used to generate the activeRangeValues if activeRangeValues are not specified."},stopInterval:{type:"number",description:"Interval in which stops should be generated."}},description:"Range object.",title:"IRange"},IWidget:{type:"object",properties:{range:{$ref:"#/definitions/IRange",description:"Active range."},timeSlider:{$ref:"#/definitions/ITimeSliderProperties",description:"Time animation is controlled by a configurable time slider. The time slider widget will act upon all the time aware layers in the map."}},description:"The widgets object contains widgets that should be exposed to the user.",title:"IWidget"},ITimeSliderProperties:{type:"object",properties:{currentTimeExtent:{type:"array",items:{type:"number"},description:"An optional array of numbers indicating the slider's start to end time extent."},endTime:{type:"number",description:"The optional end of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},numberOfStops:{type:"number",description:"Number of stops within the timeSlider widget."},startTime:{type:"number",description:"The optional start of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},thumbCount:{type:"number",description:"The default value for the thumbCount is 1."},thumbMovingRate:{type:"number",description:"Rate at which the time animation plays. Units are in milliseconds. Default is 1000."},timeStopInterval:{type:"number",description:"The interval which has been defined for the time slider."}},description:"Configurable properties used within the TimeSlider widget.",title:"ITimeSliderProperties"},ITimeSlider:{type:"object",properties:{properties:{$ref:"#/definitions/ITimeSliderProperties",description:"Configurable properties used within the TimeSlider widget."}},required:["properties"],description:"Time animation is controlled by a configurable time slider. Those configurations are saved to the web map as a timeSlider widget.",title:"ITimeSlider"},IBingLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",enum:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"],description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bingKey:{type:"string",description:"String value that unlocks the use of Bing layers in a web map."},canShareBingPublic:{type:"boolean",description:"Boolean value indicating whether the Bing key can be shared to the public."},portalUrl:{type:"string",description:"A string value representing the URL to the Portal/organization Self resource. Calls should be made to this property to retrieve the Bing key. If the key is not made accessible to the public or if canShareBingPublic is false, any web maps using Bing layers will not work."}},required:["id","layerType"],title:"IBingLayer"},IImageServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bandIds:{type:"array",items:{type:"number"},description:"An array of bandIds that are visible, can specify bands to export or rearrange band order(from image service)."},compressionQuality:{description:"Controls how much loss the image will be subjected to by the compression algorithm (from image service)."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Boolean property indicating whether to ignore popups defined by the service item."},format:{type:"string",enum:["bmp","gif","jpg","jpgpng","png","png8","png24","png32","tiff"],description:"String value representing image format."},interpolation:{type:"string",enum:["RSP_BilinearInterpolation","RSP_CubicConvolution","RSP_Majority","RSP_NearestNeighbor"],description:"The algorithm used for interpolation."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},noData:{description:"The pixel value that represents no information."},noDataInterpretation:{type:"string",enum:["esriNoDataMatchAll","esriNoDataMatchAny"],description:"A string value of interpretation of noData setting. Default is 'esriNoDataMatchAny' when noData is a number, and 'esriNoDataMatchAll' when noData is an array."},pixelType:{type:"string",enum:["C64","C128","F32","F64","S8","S16","S32","U1","U2","U4","U8","U16","U32","UNKNOWN"],description:"Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},renderingRule:{description:"Specifies the rendering rule for how the requested image should be rendered."}},required:["id","layerType"],title:"IImageServiceLayer"},IImageVectorLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceVectorLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceVectorLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{description:"Boolean property indicating whether to ignore popups defined by the service item."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},symbolTileSize:{description:"Number describing the size of the tile."}},required:["id","layerType"],title:"IImageVectorLayer"},IChildLayer:{type:"object",properties:{defaultVisibility:{description:"Default visibility of the layers in the map service."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"An object that provides interactive filters."},featureSet:{$ref:"#/definitions/IFeatureSet",description:"A featureSet object containing the geometry and attributes of the features in the layer. Used with feature collections only."},field:{type:"array",items:{$ref:"#/definitions/IField"},description:"Information about each field in a layer. Used with feature collections."},id:{type:"string",description:"A string indicating the index position of the layer in the map service or feature collection."},layerDefinition:{description:"The layerDefinition object defines the attribute schema and drawing information for the layer."},layerUrl:{description:"A string URL to a service that should be used for all queries against the layer. Used with hosted tiled map services on ArcGIS Online when there is an associated feature service that allows for queries."},maxScale:{description:"Represents the maximum scale at which the layer definition will be applied."},minScale:{description:"Represents the minimum scale at which the layer definition will be applied."},nextObjectId:{description:"Iterates within a featureset. Number objectId value is incremented +1 based on last Object ID defined for the feature in a featureset. Used with feature collections."},parentLayerId:{description:"If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the popup window content for the layer."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},subLayer:{description:"Array of numeric values indicating the layer index for layers nested directly under the parent layer."},subLayerIds:{description:"If the layer is a parent layer, it will have one or more sub layers included in an array."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."}},description:"A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service. This object also contains geographic features and their attributes when used in a feature collection.",title:"IChildLayer"},IMapServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining the styling, geometry, and attribute information for the features."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},thematicGroup:{$ref:"#/definitions/IThematicGroup",description:"(Optional) A thematicGroup object used in ArcGISMapServiceLayer layers."},visibleLayers:{type:"array",items:{type:"number"},description:"An array of sublayer ids that should appear visible. Used with map service layers that are not tiled."}},required:["id","layerType"],title:"IMapServiceLayer"},IThematicGroup:{type:"object",properties:{fieldNames:{type:"array",items:{type:"string"},description:"An array of string values indicating all the fields used within the webmap. All other fields can be disregarded and should not display in any field selection list."},layerIds:{type:"array",items:{type:"number"},description:"A zero-based array of integers indicating the layers to be used in the webmap. NOTE: All other layers should not be added to the TOC and may or may not be visible on the map as reference layers."},name:{type:"string",description:"String property indicating the name for the thematic grouping of layers."}},title:"IThematicGroup"},IDrawingInfo:{type:"object",properties:{fixedSymbols:{description:"Only used for feature collections with a renderer. The feature's symbol is defined by the layer's renderer."},labelingInfo:{description:"An object defining the properties used for labeling the layer."},renderer:{description:"An object defined which provides the symbology for the layer."},scaleSymbols:{description:"Boolean property indicating whether symbols should stay the same size in screen units as you zoom in. A value of true means the symbols stay the same size in screen units regardless of the map scale."},showLabels:{type:"boolean",description:"Defines whether labels should be shown or not. This is only valid for sublayers."},transparency:{type:"number",description:"Number value ranging between 0 (no transparency) to 100 (completely transparent)."}},title:"IDrawingInfo"},ITypeInfoDomain:{type:"object",properties:{type:{type:"string"}},required:["type"],title:"ITypeInfoDomain"},ITypeInfo:{type:"object",properties:{domains:{$ref:"#/definitions/Record%3Cstring%2CITypeInfoDomain%3E",description:"A comma-delimited series of domain objects for each domain in the type."},id:{type:["number","string"],description:"A unique string or numerical ID for the type."},name:{type:"string",description:"A user-friendly name for the type."},templates:{type:"array",items:{$ref:"#/definitions/ITemplate"},description:"Defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types."}},title:"ITypeInfo"},"Record<string,ITypeInfoDomain>":{type:"object",additionalProperties:{$ref:"#/definitions/ITypeInfoDomain"},title:"Record<string,ITypeInfoDomain>"},IOpenStreetMapLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"OpenStreetMap",description:"String indicating the layer type. Value of this property must be OpenStreetMap"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"OpenStreetMap",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."}},required:["id","layerType"],description:"Allows use of OpenStreetMap data for use in basemaps only.",title:"IOpenStreetMapLayer"},ITiledImageServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISTiledImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{type:"boolean",description:"Applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"ITiledImageServiceLayer"},IExclusionArea:{type:"object",properties:{geometry:{$ref:"#/definitions/IGeometry",description:"The geometry defining the area where no data will be fetched. Only extent is supported."},maxScale:{type:"number",description:"The zoom level where the exclusion ends."},maxZoom:{type:"number",description:"The zoom level where the exclusion ends."},minScale:{type:"number",description:"The zoom level where the exclusion starts."},minZoom:{type:"number",description:"The zoom level where the exclusion starts."}},description:"Exclusion areas define extent areas where no data will be fetched for a layer.",title:"IExclusionArea"},ITiledMapServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},displayLevels:{anyOf:[{type:"array",items:{type:"number"}},{type:"number"}],description:"NOTE: Applicable if used as a baseMapLayer. Integer value(s) indicating the display levels of the basemap layer. Only applicable for TiledMapService layers. All tiled map service layers should share the same tiling scheme. This property cannot be set via the Map Viewer UI."},exclusionAreas:{type:"array",items:{$ref:"#/definitions/IExclusionArea"},description:"NOTE: Applicable if used as a baseMapLayer. An array of exclusionArea objects defining the layer exclusions."},isReference:{description:"This property is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining a URL for queries and the popup window content."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"An ArcGIS Tiled Map Service layer displays map content from an ArcGIS Server Map service that has been cached (tiled).",title:"ITiledMapServiceLayer"},IVectorTileLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"VectorTileLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"VectorTileLayer",description:"Deprecated. User layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},styleUrl:{type:"string",description:"A url to a JSON file containing the stylesheet information used to render the layer. You may also pass an object containing the stylesheet information identical to the JSON file."}},required:["id","layerType"],description:"A vector tile layer references a set of web-accessible vector tiles and the corresponding style for how those tiles should be drawn.",title:"IVectorTileLayer"},ILod:{type:"object",properties:{level:{type:"number",description:"ID for each level."},levelValue:{type:"string",description:"String to be used when constructing URL to access a tile from this LOD."},resolution:{type:"number",description:"Resolution in map units of each pixel in a tile for each level."},scale:{type:"number",description:"Scale for each level."}},title:"ILod"},ITileInfo:{type:"object",properties:{cols:{description:"Requested tile's column."},compressionQuality:{description:"Compression quality of the tile."},dpi:{description:"The dpi of the tiling scheme."},format:{type:"string",enum:["bmp","emf","gif","jpg","lerc","mixed","pdf","png","png8","png24","png32","ps","svg","svgz"],description:"Image format of the cached tiles."},lods:{type:"array",items:{$ref:"#/definitions/ILod"},description:"An array of levels of detail that define the tiling scheme."},origin:{$ref:"#/definitions/IPoint",description:"The tiling scheme origin."},rows:{description:"Requested tile's row."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"The spatial reference of the tiling schema."}},description:"Tile information, returned from the WMTS OGC Web Service. The tileInfo will contain the spatial reference of the layer. tileInfo is the same json representation as the ArcGIS Map/Image service tileInfo except that it may contain a levelValue on the lod objects that should be used instead of the level in the templateUrl.",title:"ITileInfo"},IWebMapTileServiceInfo:{type:"object",properties:{customLayerParameters:{description:"A sequence of parameters used to append different custom parameters to a WMTS tile request. These parameters are applied to GetTile. The customLayerParameters property takes precedence if customParameters is also present."},customParameters:{description:"A sequence of parameters used to append custom parameters to all WMTS requests. These parameters are applied to GetCapabilities and GetTile. If used with the customLayerParameters property, customParameters will not take precedence."},layerIdentifier:{type:"string",description:"Identifier for the specific layer used in the WMTS service. Required input by the user."},tileMatrixSet:{description:"Tiling schema, set by the WMTS service."},url:{type:"string",description:"URL to the WMTS web service. Required input by the user."}},required:["layerIdentifier","url"],description:"Object defines and provides information about layers in a WMTSLayer service.",title:"IWebMapTileServiceInfo"},IWebTiledLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"WebTiledLayer",description:"String indicating the layer type. Value of this property must be WebTiledLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"WebTiledLayer",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},copyright:{description:"Attribution to the Web Tiled Layer provider. It is displayed in the attribution on the web map. Input required by the user when the layer is added to the web map."},fullExtent:{$ref:"#/definitions/IExtent",description:"An extent object representing the full extent envelope for the layer."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},subDomains:{description:"If subdomains are detected, they must be specified. The map viewer detects if the Web Tiled Layer has subdomains by parsing the templateURL value for {subDomain}."},templateUrl:{description:"URL to the Web Tiled Layer. Input required by the user when the layer is added to the web map. The template URL contains a parameterized URL. The URL can contain the following templated parameters: 'level', 'col', 'row', and 'subDomain'."},tileInfo:{$ref:"#/definitions/ITileInfo",description:"Contains the spatial reference and the tiling scheme of the layer. Typically retrieved from a WMTS OGC Web Service. If missing the layer must be in the WGS 1984 Web Mercator (Auxiliary Sphere) tiling scheme."},wmtsInfo:{$ref:"#/definitions/IWebMapTileServiceInfo",description:"Object containing information about the chosen WMTS service layer and tiling schema."}},required:["id","layerType"],title:"IWebTiledLayer"},ICsvLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"CSV",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"CSV",description:"Deprecated, use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},columnDelimiter:{type:"string",enum:[" ",",",";"," ","|"],description:"A string defining the character used to separate columns in a CSV file."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},locationInfo:{description:"A locationInfo object defining how location information will be retrieved from a CSV file."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"The CSV layer type references a CSV or TXT file from a publically-accessible web server. It then dynamically loads into the map at run time. The CSV layer will maintain a reference to the CSV resource.",title:"ICsvLayer"},IGeoRssLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"GeoRSS",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"GeoRSS",description:"Deprecated, please use layerType.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have lines, this property is not added to the layer JSON."},pointSymbol:{$ref:"#/definitions/IPictureMarkerSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have points, this property is not added to the layer JSON."},polygonSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have polygons, this property is not added to the layer JSON."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"IGeoRssLayer"},IKmlLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"KML",description:"String indicating the layer type."},maxScale:{description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},minScale:{description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},opacity:{description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"KML",description:"Deprecated, use layerType instead.",deprecated:"Use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},visibleFolders:{type:"array",items:{type:"number"},description:"Array of numeric IDs of folders that will be made visible."}},required:["id","layerType"],title:"IKmlLayer"},IArcGisStreamLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISStreamLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Indicates whether to ignore popups defined by the service item."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of pop-up windows when you click or query a feature."}},required:["id","layerType"],title:"IArcGisStreamLayer"}},$ref:"#/definitions/WebChart"},Yp={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},mr={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},oe={BadData:"badData",EmptyDataSet:"emptyDataSet",HistogramEmptyField:"histogramEmptyField",BarElementExceedsLimit:"barElementExceedsLimit",LineChartExceedsLimit:"lineChartExceedsLimit",BoxPlotExceedsLimit:"boxPlotExceedsLimit",BoxPlotOutliersExceedsLimit:"boxPlotOutliersExceedsLimit",HeatChartExceedsLimit:"heatChartExceedsLimit",PieChartExceedsLimit:"pieChartExceedsLimit",GaugeExceedsLimit:"gaugeExceedsLimit",PieChartMixOfNegativePositiveSlices:"PieChartMixOfNegativePositiveSlices",NegativeValueInSqrtCalculation:"negativeValueInSqrtCalculation",NegativeValueInLogCalculation:"negativeValueInLogCalculation",NegativeValueInXAxisLogScale:"negativeValueInXAxisLogScale",NegativeValueInYAxisLogScale:"negativeValueInYAxisLogScale"};function kw(t){let e=t.lastIndexOf("/");return e!==-1?t.slice(e+1):t}async function jw(t){let e=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings;return t.map(r=>{let a=r,i=r.dataPath.startsWith(".")?r.dataPath.substring(1):r.dataPath;switch(r.keyword){case mr.Required:a={...r,message:qe(e.errors.requiredProperty,{dataPath:i,missingProperty:r.params.missingProperty})};break;case mr.MinLength:a={...r,message:qe(e.errors.minLength,{dataPath:i,limit:r.params.limit.toString()})};break;case mr.MinItems:a={...r,message:qe(e.errors.minItems,{dataPath:i,limit:r.params.limit.toString()})};break;case mr.MaxItems:a={...r,message:qe(e.errors.maxItems,{dataPath:i,limit:r.params.limit.toString()})};break;case mr.Pattern:r.params.pattern==="\\w+"&&(a={...r,message:qe(e.errors.whiteSpacePattern,{dataPath:i}),params:{}});break;case mr.AdditionalProperties:a={...r,message:qe(e.errors.additionalProperty,{dataPath:i,additionalProperty:r.params.additionalProperty})};break;case mr.Enum:a={...r,message:qe(e.errors.enumValues,{dataPath:i,allowedValues:r.params.allowedValues.join(", ")})};break;case mr.AnyOf:{let n=[];r.schemaPath==="#/properties/legend/anyOf"&&(n=ci.definitions.WebChart.properties.legend.anyOf.map(s=>kw(s.$ref))),a={...r,params:n,message:qe(e.errors.anyOfValues,{dataPath:i,schemaOptions:n.join(", ")})};break}}return a})}function Ga(t,e){return{...t,$ref:`#/definitions/${e}`}}async function _w(t){let e,r=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings,a=ce(t);try{await a.load()}catch{let i=a?.url??"",n=Ge(a)?.portalItem?.id??"";e={keyword:vt.LayerLoadFailure,message:qe(r.errors.layerLoadFailure,{url:i,portalItemId:n}),params:{url:i,portalItemId:n}}}return e}function Vw(){let t=new Uu.default({allErrors:!0});return async e=>{let r=[],a=X(e?.series),i=ci;switch(a){case g.GaugeSeries:i=Ga(ci,"WebGaugeChart");break;case g.BoxPlotSeries:i=Ga(ci,"WebBoxPlot");break;case g.RadarSeries:i=Ga(ci,"WebRadarChart");break;default:i=Ga(ci,"WebChart");break}let n=t.compile(i);return n(e),n.errors!==null&&n.errors!==void 0&&(r=await jw(n.errors)),r}}var Ww=Vw();async function zw(t){let{seriesConfigs:e,queryObject:r,allowUsingObjectIdStat:a}=t,i=[],n=await St(r),s=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings;for(let o=0;o<e.length;o+=1){let l=e[o].query?.outStatistics;if(l!==void 0)for(let d=0;d<l.length;d+=1){let u=l[d],c=yo(u.onStatisticField,n);if(c&&!(c.type===Se.OID&&a||wi(c))&&u.statisticType!==j.Count){let h=`series[${o}].query.outStatistics[${d}]`;i.push({keyword:Yp.NonNumericAggregation,message:qe(s.errors.nonNumericAggregation,{dataPath:h}),dataPath:h,params:{fieldName:u.onStatisticField,fieldType:c.type,aggregationRequested:u.statisticType}})}}}return i}async function Uw(t){let e=[],r=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings;if(t!==void 0&&t.series.length>1){let a=new Set,i=0;t.series.forEach((n,s)=>{if(a.add(n.id),a.size===i){let o=`series[${s}].id`;e.push({keyword:Yp.DuplicateSeriesID,message:qe(r.errors.duplicateSeriesID,{dataPath:o,seriesID:n.id,seriesName:n.name}),dataPath:o,params:{seriesId:n.id,seriesName:n.name}})}else i+=1})}return e}function Gw(t){let e=new Set,r=Ar(t);if(r){let a=X(t.series),i=Y(t.series);a===g.GaugeSeries&&!go(t)||i===x.PieFromFields||i===x.BarAndLineFromFields||i===x.BoxPlotMonoField||i===x.BoxPlotMultiFields||i===x.BoxPlotMonoFieldAndSplitBy||i===x.BoxPlotMultiFieldsAndSplitBy||e.add(r.x);let n=a===g.ScatterSeries||a===g.BoxPlotSeries||i===x.BarAndLineNoAggregation||i===x.BarAndLineSplitByNoAggregation||i===x.PieNoAggregation,s=[Pi,nt,xm,qt,Cm,ke.outStatistics.outStatisticFieldName??""],o=[];if(a===g.BoxPlotSeries?o=Cn({showMean:t.showMean,seriesConfig:t.series}):o=t.series.map(l=>"y"in l?l.y:void 0).filter(l=>l!==void 0).flat(),n?o.forEach(l=>e.add(l)):s.push(...o),t.series.forEach(l=>{let{query:d}=l;d&&(tr(d.where)||e.add(Xe(d.where)),d.groupByFieldsForStatistics&&d.groupByFieldsForStatistics.forEach(u=>e.add(u)),d.outStatistics&&d.outStatistics.forEach(u=>e.add(u.onStatisticField)))}),a===g.GaugeSeries&&t.axes?.[0]!==void 0){let l=t.axes?.[0];l&&"minimumFromField"in l&&typeof l.minimumFromField=="string"&&e.add(l.minimumFromField),l&&"maximumFromField"in l&&typeof l.maximumFromField=="string"&&e.add(l.maximumFromField)}s.forEach(l=>{e.delete(l)})}return Array.from(e.values()).filter(a=>!Re(a))}async function Hw(t,e){let r,a=(await Nt(mt(document.documentElement).t9nLocale,It("./assets/common/t9n"),"messages.")).errorStrings,i=await St(e),n=Gw(t).filter(s=>!yo(s,i));if(n.length>0){let s=n.join(", ");r={keyword:vt.LayerFieldsNotFound,message:qe(a.errors.layerFieldsNotFound,{fieldNames:s}),params:s}}return r}async function Qw(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a}=t,i=[];if(r!==void 0){let n=await zw({seriesConfigs:e.series,queryObject:r,allowUsingObjectIdStat:a});i=i.concat(n)}return i=i.concat(await Uw(e)),i}async function Zw(t,e){let r=[];if(t!==void 0){let a=await _w(t);if(a!==void 0)r=r.concat(a);else if(e!==void 0){let i=await Hw(e,t);i!==void 0&&(r=r.concat(i))}}return r}async function XI(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a}=t,i;if(yw(e?.version).versionStatus===ur.Newer)i={valid:!0,schemaErrors:[],customErrors:[],warnings:[]};else{let n=await Ww(e),s=[],o=[];e!==void 0&&n.length===0&&(o=await Zw(r,e),o.length===0&&(s=await Qw({input:e,queryObject:r,allowUsingObjectIdStat:a}))),i={valid:n.length===0&&s.length===0&&o.length===0,schemaErrors:n,customErrors:o,warnings:s}}return i}function eF(t){let e=X(t?.series),r=!1;switch(e){case g.HistogramSeries:{r=(t?.series?.[0]?.x?.trim()?.length??0)===0;break}case g.ScatterSeries:{let a=t?.series;r=(a?.[0]?.x?.length??0)===0||(a?.[0]?.y?.length??0)===0;break}case g.PieSeries:{let a=t?.series;Y(a)===x.PieFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.length??0)===0||a?.[0]?.x===nt;break}case g.BoxPlotSeries:{let a=t?.series;r=[a?.[0]?.y].flat().length===0||a?.[0]?.y==="";break}case g.ComboLineAndBarSeries:case g.RadarSeries:case g.BarSeries:case g.LineSeries:{let a=t?.series;Y(a)===x.BarAndLineFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.trim()?.length??0)===0;break}}return r}async function bs(t){let{queryObject:e,queryConfig:r,category:a,splitByField:i,chartLimits:n,abortKey:s}=t,o=i!==void 0,l=a!==Pi?[a]:[];o&&l.push(i);let d=ce(e),u={...r,groupByFieldsForStatistics:Array.from(new Set(l)),outStatistics:[{statisticType:j.Count,onStatisticField:d.objectIdField,outStatisticFieldName:`${j.Count}_OBJECTID`}],orderByFields:void 0,num:n?.maxBarThreePlusSeriesCountTotal},c=await Et({queryObject:e,featureCount:1,queryConfig:u,abortKey:s});return Array.from(new Set(c.map(h=>h.attributes[o?i:a]))).sort((h,p)=>typeof h=="string"&&typeof p=="string"?h.localeCompare(p):Number(h)-Number(p))}var _u=[{unit:H.Second,threshold:6e4,unitMs:1e3,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:H.Minute,threshold:36e5,unitMs:1e3*60,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:H.Hour,threshold:864e5,unitMs:1e3*60*60,preferredIntervalSize:[1,2,3,4,6,8,12,24]},{unit:H.Day,threshold:6048e5,unitMs:1e3*60*60*24,preferredIntervalSize:[1,2,3,4,5,6,7]},{unit:H.Week,threshold:24192e5,unitMs:1e3*60*60*24*7,preferredIntervalSize:[1,2,3,4]},{unit:H.Month,threshold:290304e5,unitMs:1e3*60*60*24*7*4,preferredIntervalSize:[1,2,3,4,6,12]},{unit:H.Year,threshold:Number.MAX_SAFE_INTEGER,unitMs:1e3*60*60*24*7*4*12,preferredIntervalSize:[1,2,4,5,10,25,50,100]}],Jw="{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'";async function tF(t){let e=It(`assets/common/t9n/messages.${t}.json`),r=await fetch(e);if(!r.ok)throw new Error(`Failed to load t9n file: ${e}`);return await r.json()}var Kw=[...An,"ar-u-nu-latn","en-AU","en-GB","es-ES","es-MX","de-CH","de-DE","de-AT","fr-CA","it-CH","it-IT"];function rF(t){let{t9nLocale:e}=mt(t??document.documentElement),r=Xp(t??document.documentElement),a=qo(t??document.documentElement)==="rtl";return{locale:e,formatLocale:r,rtl:a}}function iF(t){let e;return t==="unknown"?e="UTC":t!==void 0&&t!=="system"&&(e=t),e}function aF(t,e){let r={year:"numeric",month:"2-digit",day:"2-digit",timeZone:e};return new Intl.DateTimeFormat("en-CA",r).format(t)}function nF(t,e){let r={hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:e};return new Intl.DateTimeFormat("en-US",r).format(t)}function sF(t,e){let[,r,,,,a]=1111.1.toLocaleString(e),i=t.replace(r,"").replace(a,".");return Number.parseFloat(i)}function Yw(t){let e=Array.from(An);return Kw.includes(t)&&!e.includes(t)}function Xp(t){let{lang:e,t9nLocale:r}=mt(t);return Yw(e)?e:r}return{a:Ro,b:ar,c:nt,d:qt,e:xm,f:Cm,g:Xt,h:ne,i:Pu,j:mg,k:nr,l:YC,m:st,n:XC,o:Gt,p:Ur,q:e1,r:t1,s:Ig,t:r1,u:Fg,v:i1,w:re,x:ke,y:a1,z:ot,A:Og,B:n1,C:s1,D:Wi,E:Pi,F:ae,G:Ag,H:At,I:Hc,J:o1,K:gn,L:ye,M:Qc,N:le,O:ea,P:Lg,Q:l1,R:qs,S:d1,T:u1,U:Pr,V:ja,W:sr,X:c1,Y:Dg,Z:Ng,_:Bg,$:p1,aa:$g,ba:Zr,ca:Rg,da:jg,ea:h1,fa:_g,ga:f1,ha:m1,ia:Vg,ja:Wg,ka:y1,la:g1,ma:zi,na:b1,oa:v1,pa:S1,qa:w1,ra:x1,sa:C1,ta:I1,ua:F1,va:zg,wa:Ug,xa:Gg,ya:T1,za:P1,Aa:O1,Ba:Hg,Ca:A1,Da:Qg,Ea:Zg,Fa:Jg,Ga:E1,Ha:L1,Ia:O,Ja:Zc,Ka:Kg,La:D1,Ma:N1,Na:Yg,Oa:B1,Pa:$1,Qa:M1,Ra:ks,Sa:Ui,Ta:nb,Ua:q1,Va:hi,Wa:R1,Xa:sb,Ya:cb,Za:pb,_a:k1,$a:fb,ab:j1,bb:_1,cb:Gi,db:bb,eb:Sb,fb:wb,gb:Au,hb:Yc,ib:Xc,jb:Fb,kb:Eu,lb:V1,mb:U,nb:x,ob:W1,pb:mp,qb:$u,rb:z1,sb:so,tb:yp,ub:er,vb:Ws,wb:U1,xb:G1,yb:H1,zb:Re,Ab:Q1,Bb:Z1,Cb:J1,Db:K1,Eb:Tv,Fb:Y1,Gb:X1,Hb:eI,Ib:tI,Jb:rI,Kb:iI,Lb:aI,Mb:Ev,Nb:nI,Ob:lo,Pb:sI,Qb:E0,Rb:oI,Sb:k0,Tb:lI,Ub:dI,Vb:Qi,Wb:ra,Xb:kp,Yb:uI,Zb:cI,_b:pI,$b:hI,ac:fI,bc:mI,cc:yI,dc:gI,ec:bI,fc:vI,gc:SI,hc:lt,ic:vt,jc:wI,kc:Qr,lc:Ge,mc:Zi,nc:xI,oc:ce,pc:CI,qc:Ji,rc:Et,sc:WS,tc:zS,uc:me,vc:tw,wc:II,xc:St,yc:rw,zc:wi,Ac:FI,Bc:TI,Cc:iw,Dc:PI,Ec:Hp,Fc:nw,Gc:lw,Hc:dw,Ic:OI,Jc:uw,Kc:AI,Lc:pw,Mc:hw,Nc:yw,Oc:Ar,Pc:EI,Qc:Xe,Rc:dt,Sc:tr,Tc:Y,Uc:Yr,Vc:kt,Wc:ww,Xc:LI,Yc:DI,Zc:NI,_c:BI,$c:$I,ad:MI,bd:qI,cd:RI,dd:kI,ed:jI,fd:_I,gd:VI,hd:WI,id:zI,jd:UI,kd:GI,ld:HI,md:QI,nd:ZI,od:JI,pd:go,qd:Zp,rd:Jp,sd:Ue,td:gs,ud:tt,vd:$w,wd:KI,xd:qw,yd:YI,zd:Yp,Ad:oe,Bd:XI,Cd:eF,Dd:bs,Ed:tF,Fd:rF,Gd:iF,Hd:aF,Id:nF,Jd:sF,Kd:Xp}},"core/promiseUtils","request","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","layers/FeatureLayer","layers/support/Field","layers/support/fieldUtils","portal/Portal","renderers/support/jsonUtils","rest/support/FeatureSet","Graphic","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic")
42
+ {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PublishingInfo.html#updating Read more...}`}},required:["declaredClass","destroyed","initialized","status","updating"],title:"__esri.PublishingInfo"},"__esri.ScaleRangeLayer":{type:"object",properties:{maxScale:{type:"number"},minScale:{type:"number"}},required:["maxScale","minScale"],title:"__esri.ScaleRangeLayer"},"__esri.TemporalLayer":{type:"object",properties:{useViewTime:{type:"boolean"}},required:["useViewTime"],title:"__esri.TemporalLayer"},"__esri.TrackableLayer":{type:"object",title:"__esri.TrackableLayer"},"__esri.SubtypeSublayer":{type:"object",properties:{uid:{type:"string"},loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}},destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["declaredClass","destroyed","initialized","loadError","loadStatus","loadWarnings","uid"],title:"__esri.SubtypeSublayer"},Layer:{$ref:"#/definitions/__esri.Layer",description:"Esri Layer type",title:"Layer"},RGBObject:{type:"object",properties:{r:{type:"number"},g:{type:"number"},b:{type:"number"},a:{type:"number",default:1}},required:["r","g","b"],description:"JSON representation of the color object",title:"RGBObject"},IRendererSymbol:{type:"object",properties:{style:{type:"string"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},label:{type:"string"},uniqueValue:{type:"string"},type:{$ref:"#/definitions/SymbolType"}},required:["color","type"],title:"IRendererSymbol"},WebChartDataItemColor:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/RGBArray"},{$ref:"#/definitions/RGBObject"},{type:"string"}],title:"WebChartDataItemColor"},RGBArray:{type:"array",items:{type:"number"},minItems:3,maxItems:3,title:"RGBArray"},WebChartDataItemValue:{anyOf:[{type:"string",format:"date-time"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IRendererSymbol"},{type:"array",items:{type:"number"}},{type:"array",items:{type:"string"}},{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},{$ref:"#/definitions/WebChartDataItemColor"},{type:"boolean"},{type:"number"},{type:"string"},{type:"null"},{not:{}}],title:"WebChartDataItemValue"},WebChartDataItem:{$ref:"#/definitions/Record%3Cstring%2CWebChartDataItemValue%3E",description:"JSON representation of a typical data item",title:"WebChartDataItem"},"Record<string,WebChartDataItemValue>":{type:"object",additionalProperties:{$ref:"#/definitions/WebChartDataItemValue"},title:"Record<string,WebChartDataItemValue>"},WebChartBoxPlotDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},outliers:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},meanLines:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["dataItems"],description:"JSON representation of the processed data for a Box Plot",title:"WebChartBoxPlotDataItem"},ScatterplotTrendLineData:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2}},description:"JSON representation of the processed data for a Scatter plot trend line",title:"ScatterplotTrendLineData"},WebChartScatterplotDataItem:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2},dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},aggregated:{type:"boolean"}},required:["dataItems"],description:"JSON representation of the processed data for a Scatter plot",title:"WebChartScatterplotDataItem"},WebChartGenericDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},timeIntervalInfo:{$ref:"#/definitions/TimeIntervalInfo",description:"Time interval information, only for line charts"},serverLimitReached:{type:"boolean",description:"Indicates whether the server limit has been reached when fetching data. Currently applies only to the queries leveraging the /queryBins operation."}},required:["dataItems"],description:"JSON representation of the generic data structure for bar, line bar-line, gauge and pie chart",title:"WebChartGenericDataItem"},WebChartBin:{type:"object",properties:{count:{type:"number"},minValue:{type:"number",description:"Min value in the bin"},maxValue:{type:"number",description:"Max value in the bin"},symbol:{$ref:"#/definitions/WebChartDataItem",description:"Symbol associated with the bin."},isLastBin:{type:"boolean",description:"Whether this is the last bin."}},required:["count","minValue","maxValue"],description:"JSON representation of a Histogram bin",title:"WebChartBin"},WebChartHistogramDataItem:{type:"object",properties:{mean:{type:"number"},median:{type:"number"},stddev:{type:"number"},max:{type:"number"},min:{type:"number"},sum:{type:"number",description:"Sum of the values of all the points"},count:{type:"number",description:"Number of all the points/features in un-binned data (including only non-null entries)"},nulls:{type:"number",description:"Number of null entries in the pool of points"},bins:{type:"array",items:{$ref:"#/definitions/WebChartBin"}}},required:["mean","median","stddev","max","min","bins"],description:"JSON representation of the processed data for a Histogram",title:"WebChartHistogramDataItem"},WebChartDataTypes:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotDataItem"},{$ref:"#/definitions/WebChartGenericDataItem"},{$ref:"#/definitions/WebChartHistogramDataItem"},{$ref:"#/definitions/WebChartScatterplotDataItem"}],title:"WebChartDataTypes"},WebChartTypes:{type:"string",enum:["chart","chartText","chartOverlay","chartOverlays","chartLegend","cursorCrosshair","chartAxis","gaugeAxisTick","gaugeNeedle","category","number","date","chartGuide","scatterSeries","pieSeries","pieTick","gaugeSeries","lineSeries","barSeries","histogramSeries","boxPlotSeries","radarSeries","comboLineAndBarSeries","heatSeries","buffer","sizeScale","calendarDateParts"],title:"WebChartTypes"},WebChartStatisticType:{type:"string",enum:["count","sum","min","max","avg","stddev","var","percentile-continuous","percentile-discrete","envelope-aggregate","centroid-aggregate","convex-hull-aggregate","no_aggregation"],title:"WebChartStatisticType"},WebChartColoringPatterns:{type:"string",enum:["singleColor","colorMatch"],title:"WebChartColoringPatterns"},WebChartBoxPlotMultipleSeriesKinds:{type:"string",enum:["sideBySide","meanLines"],title:"WebChartBoxPlotMultipleSeriesKinds"},WebChartLineSmoothedKinds:{type:"string",enum:["bezier","monotoneX","monotoneY"],description:"Represents the different types of smoothing that can be applied to a line chart when the `lineSmoothed` property is set to `true`.",title:"WebChartLineSmoothedKinds"},WebChartCalendarBinningOffsetUnits:{type:"string",enum:["seconds","minutes","hours","days"],description:"The temporal binning units for the calendar based binning offset",title:"WebChartCalendarBinningOffsetUnits"},WebChartVersionStatus:{type:"string",enum:["same","newer","older","unrecognized"],title:"WebChartVersionStatus"},WebChartAxisTypes:{type:"string",enum:["value","date","category"],description:"Represents the different types of axes that can be used in a chart.",title:"WebChartAxisTypes"},RESTFieldType:{type:"string",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimestampOffset","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeString","esriFieldTypeXML"],title:"RESTFieldType"},RESTSimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"RESTSimpleLineSymbolStyle"},RESTSimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSX","esriSMSTriangle"],title:"RESTSimpleMarkerSymbolStyle"},RESTSimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"RESTSimpleFillSymbolStyle"},RESTHorizontalAlignment:{type:"string",enum:["left","right","center","justify"],title:"RESTHorizontalAlignment"},RESTVerticalAlignment:{type:"string",enum:["baseline","top","middle","bottom"],title:"RESTVerticalAlignment"},RESTSymbolType:{type:"string",enum:["esriSLS","esriSMS","esriSFS","esriPMS","esriPFS","esriTS"],title:"RESTSymbolType"},RESTFontStyle:{type:"string",enum:["italic","normal","oblique"],title:"RESTFontStyle"},RESTFontWeight:{type:"string",enum:["bold","bolder","lighter","normal"],title:"RESTFontWeight"},RESTFontDecoration:{type:"string",enum:["line-through","underline","none"],title:"RESTFontDecoration"},RESTRendererType:{type:"string",enum:["unique-value","simple","class-breaks","heatmap","dot-density","dictionary","pie-chart"],title:"RESTRendererType"},OverlayTerms:{type:"string",enum:["Mean","Median","Standard Deviation","Normal Distribution","Trendline"],title:"OverlayTerms"},CalculatedMinMaxBoundsPayload:{type:"object",properties:{isXAxis:{type:"boolean"},isSecondValueAxis:{type:"boolean"},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."}},required:["isXAxis"],description:"Represents a subset of the event payload carrying the chart's axes bounds. See event `arcgisChartsAxesMinMaxChange`.",title:"CalculatedMinMaxBoundsPayload"},ChartDeletePayload:{type:"object",properties:{chartId:{type:"string"}},required:["chartId"],description:"Represents the payload of the event sent when a chart is removed from the chart list (component arcgis-charts-config-view-charts).",title:"ChartDeletePayload"},LegendItemVisibility:{type:"object",properties:{visible:{type:"boolean"},seriesId:{type:"string"},overlayType:{$ref:"#/definitions/OverlayTerms"},sliceId:{type:"string"},sliceData:{$ref:"#/definitions/WebChartDataItem"}},required:["visible"],description:"Represents the payload of the event sent when an item is toggled in the chart's legend (slice or series).",title:"LegendItemVisibility"},IFeatureSet:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"},objectIdFieldName:{type:"string"},globalIdFieldName:{type:"string"},displayFieldName:{type:"string"},geometryType:{$ref:"#/definitions/GeometryType"},spatialReference:{$ref:"#/definitions/ISpatialReference"},fields:{type:"array",items:{$ref:"#/definitions/IField"}},features:{type:"array",items:{$ref:"#/definitions/IFeature"}},fieldAliases:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"}},required:["features"],description:'`IFeatureSet` can also be imported from the following packages:\n\n```js import { IFeatureSet } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureSet"},"Record<string,string>":{type:"object",additionalProperties:{type:"string"},title:"Record<string,string>"},ILocation:{type:"object",properties:{latitude:{type:"number"},longitude:{type:"number"},lat:{type:"number"},long:{type:"number"},z:{type:"number"}},description:'`ILocation` can also be imported from the following packages:\n\n```js import { ILocation } from "@esri/arcgis-rest-routing"; import { ILocation } from "@esri/arcgis-rest-geocoding"; ```',title:"ILocation"},IPolylineWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curvePaths:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curvePaths"],title:"IPolylineWithCurves"},ElipticArc:{$ref:"#/definitions/IArc",title:"ElipticArc"},SpatialRelationship:{type:"string",enum:["esriSpatialRelContains","esriSpatialRelCrosses","esriSpatialRelEnvelopeIntersects","esriSpatialRelIndexIntersects","esriSpatialRelIntersects","esriSpatialRelOverlaps","esriSpatialRelTouches","esriSpatialRelWithin"],description:'The spatial relationship used to compare input geometries\n\n`SpatialRelationship` can also be imported from the following packages:\n\n```js import { SpatialRelationship } from "@esri/arcgis-rest-feature-layer"; ```',title:"SpatialRelationship"},IMultipoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},points:{type:"array",items:{$ref:"#/definitions/Position"}}},required:["points"],description:"A multipoint contains an array of points.",title:"IMultipoint"},Units:{type:"string",enum:["esriSRUnit_Foot","esriSRUnit_Kilometer","esriSRUnit_Meter","esriSRUnit_NauticalMile","esriSRUnit_StatuteMile","esriSRUnit_USNauticalMile"],description:'`Units` can also be imported from the following packages:\n\n```js import { Units } from "@esri/arcgis-rest-feature-layer"; ```',title:"Units"},GroupMembership:{type:"string",enum:["admin","member","none","owner"],description:'`GroupMembership` can also be imported from the following packages:\n\n```js import { GroupMembership } from "@esri/arcgis-rest-portal"; ```',title:"GroupMembership"},IGroupAdd:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"}},required:["title","access"],description:'A [Group](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IGroupAdd` can also be imported from the following packages:\n\n```js import { IGroupAdd } from "@esri/arcgis-rest-portal"; ```',title:"IGroupAdd"},IGroup:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"},id:{type:"string"},created:{type:"number"},modified:{type:"number"},protected:{type:"boolean"},isOpenData:{type:"boolean"},isFav:{type:"boolean"},userMembership:{type:"object",properties:{username:{type:"string"},memberType:{$ref:"#/definitions/GroupMembership"},applications:{type:"number"}}},hasCategorySchema:{type:"boolean"}},required:["access","autoJoin","created","id","isFav","isInvitationOnly","isViewOnly","modified","owner","protected","tags","title"],description:'Existing Portal [Group](https://developers.arcgis.com/rest/users-groups-and-items/group.htm).\n\n`IGroup` can also be imported from the following packages:\n\n```js import { IGroup } from "@esri/arcgis-rest-portal"; ```',title:"IGroup"},IItemAdd:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}}},required:["title","type"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IItemAdd` can also be imported from the following packages:\n\n```js import { IItemAdd } from "@esri/arcgis-rest-portal"; ```',title:"IItemAdd"},IItemUpdate:{type:"object",properties:{id:{type:"string"}},required:["id"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) to be updated.\n\n`IItemUpdate` can also be imported from the following packages:\n\n```js import { IItemUpdate } from "@esri/arcgis-rest-portal"; ```',title:"IItemUpdate"},IItem:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}},id:{type:"string"},created:{type:"number"},modified:{type:"number"},numViews:{type:"number"},size:{type:"number"},protected:{type:"boolean"}},required:["created","id","modified","numViews","owner","size","tags","title","type"],description:'Existing Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/item.htm).\n\n`IItem` can also be imported from the following packages:\n\n```js import { IItem } from "@esri/arcgis-rest-portal"; ```',title:"IItem"},IFolder:{type:"object",properties:{username:{type:"string"},id:{type:"string"},title:{type:"string"},created:{type:"number"}},required:["username","id","title"],description:'Used for organizing content. See [Create Folder](https://developers.arcgis.com/rest/users-groups-and-items/create-folder.htm) for more details.\n\n`IFolder` can also be imported from the following packages:\n\n```js import { IFolder } from "@esri/arcgis-rest-portal"; ```',title:"IFolder"},IFeatureServiceDefinition:{type:"object",properties:{currentVersion:{type:"number"},serviceDescription:{type:"string"},hasVersionedData:{type:"boolean"},supportsDisconnectedEditing:{type:"boolean"},supportsReturnDeleteResults:{type:"boolean"},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},maxRecordCount:{type:"number",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsRelationshipsResource:{type:"boolean"},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. Query,Editing."},description:{type:"string",description:"String value of the layer as defined in the map service."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},advancedEditingCapabilities:{$ref:"#/definitions/Record%3Cstring%2Cboolean%3E"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry."},initialExtent:{$ref:"#/definitions/IExtent"},fullExtent:{$ref:"#/definitions/IExtent"},allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},units:{type:"string"},syncEnabled:{type:"boolean"},returnServiceEditsHaveSR:{type:"boolean"},validationSystemLayers:{type:"object",properties:{validationPointErrorlayerId:{type:"number"},validationLineErrorlayerId:{type:"number"},validationPolygonErrorlayerId:{type:"number"},validationObjectErrortableId:{type:"number"}},required:["validationPointErrorlayerId","validationLineErrorlayerId","validationPolygonErrorlayerId","validationObjectErrortableId"]},extractChangesCapabilities:{type:"object",properties:{supportsReturnIdsOnly:{type:"boolean"},supportsReturnExtentOnly:{type:"boolean"},supportsReturnAttachments:{type:"boolean"},supportsLayerQueries:{type:"boolean"},supportsSpatialFilter:{type:"boolean"},supportsReturnFeature:{type:"boolean"}},required:["supportsReturnIdsOnly","supportsReturnExtentOnly","supportsReturnAttachments","supportsLayerQueries","supportsSpatialFilter","supportsReturnFeature"]},syncCapabilities:{type:"object",properties:{supportsASync:{type:"boolean"},supportsRegisteringExistingData:{type:"boolean"},supportsSyncDirectionControl:{type:"boolean"},supportsPerLayerSync:{type:"boolean"},supportsPerReplicaSync:{type:"boolean"},supportsRollbackOnFailure:{type:"boolean"},supportedSyncDataOptions:{type:"number"}},required:["supportsASync","supportsRegisteringExistingData","supportsSyncDirectionControl","supportsPerLayerSync","supportsPerReplicaSync","supportsRollbackOnFailure","supportedSyncDataOptions"]},editorTrackingInfo:{type:"object",properties:{enableEditorTracking:{type:"boolean"},enableOwnershipAccessControl:{type:"boolean"},allowOthersToUpdate:{type:"boolean"},allowOthersToDelete:{type:"boolean"}},required:["enableEditorTracking","enableOwnershipAccessControl","allowOthersToUpdate","allowOthersToDelete"]},documentInfo:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"},layers:{type:"array",items:{$ref:"#/definitions/ILayerDefinition"}},tables:{type:"array",items:{$ref:"#/definitions/ITable"}},relationships:{type:"array",items:{type:"object",properties:{id:{type:"number"},name:{type:"string"},backwardPathLabel:{type:"string"},originLayerId:{type:"number"},originPrimaryKey:{type:"string"},forwardPathLabel:{type:"string"},destinationLayerId:{type:"number"},originForeignKey:{type:"string"},relationshipTableId:{type:"number"},destinationPrimaryKey:{type:"string"},destinationForeignKey:{type:"string"},rules:{type:"array",items:{type:"object",properties:{ruleID:{type:"number"},originSubtypeCode:{type:"number"},originMinimumCardinality:{type:"number"},originMaximumCardinality:{type:"number"},destinationSubtypeCode:{type:"number"},destinationMinimumCardinality:{type:"number"},destinationMaximumCardinality:{type:"number"}},required:["ruleID","originSubtypeCode","originMinimumCardinality","originMaximumCardinality","destinationSubtypeCode","destinationMinimumCardinality","destinationMaximumCardinality"]},minItems:1,maxItems:1},cardinality:{type:"string",enum:["esriRelCardinalityManyToMany","esriRelCardinalityOneToMany","esriRelCardinalityOneToOne"]},attributed:{type:"boolean"},composite:{type:"boolean"}},required:["id","name","backwardPathLabel","originLayerId","originPrimaryKey","forwardPathLabel","destinationLayerId","originForeignKey","relationshipTableId","destinationPrimaryKey","destinationForeignKey","rules","cardinality","attributed","composite"]},minItems:1,maxItems:1},enableZDefaults:{type:"boolean"},isLocationTrackingService:{type:"boolean"},isLocationTrackingView:{type:"boolean"},zDefault:{type:"number"}},required:["serviceDescription","hasVersionedData","supportsDisconnectedEditing","supportsReturnDeleteResults","maxRecordCount","supportedQueryFormats","supportsRelationshipsResource","capabilities","description","copyrightText","advancedEditingCapabilities","spatialReference","initialExtent","fullExtent","allowGeometryUpdates","units","syncEnabled","validationSystemLayers","extractChangesCapabilities","syncCapabilities","editorTrackingInfo","layers","tables","relationships","isLocationTrackingService","isLocationTrackingView"],description:'`IFeatureServiceDefinition` can also be imported from the following packages:\n\n```js import { IFeatureServiceDefinition } from "@esri/arcgis-rest-service-admin"; import { IFeatureServiceDefinition } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureServiceDefinition"},"Record<string,boolean>":{type:"object",additionalProperties:{type:"boolean"},title:"Record<string,boolean>"},ITable:{type:"object",properties:{name:{type:"string",description:"Table name"},capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service. Available operations include: 'Create', 'Delete', 'Query', 'Update', and 'Editing'."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Object indicating the definitionEditor used as a layer's interactive filter."},id:{type:"number",description:"Unique identifier for the table."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining a definition expression for the table."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"An object defining the content of popup windows when you query a record and the sort option for child related records."},title:{type:"string",description:"String value for the title of the table."},url:{type:"string",description:"String value indicating the URL reference of the hosted table."}},description:'Root element in the web map specifying an array of table objects.\n\n`ITable` can also be imported from the following packages:\n\n```js import { ITable } from "@esri-arcgis-rest-service-admin" ```',title:"ITable"},IServiceInfo:{type:"object",properties:{adminServiceInfo:{type:"object",properties:{name:{type:"string"},type:{type:"string"},status:{type:"string"},database:{type:"object",properties:{datasource:{type:"object",properties:{name:{type:"string"}},required:["name"]}},required:["datasource"]}},required:["name","type","status","database"]},layers:{type:"array",items:{$ref:"#/definitions/Record%3Cstring%2Cunknown%3E"}}},required:["adminServiceInfo","layers"],description:"Very generic structure representing the return value from the /arcgis/rest/admin/services/<service-name>/FeatureServer?f=json response",title:"IServiceInfo"},"Record<string,unknown>":{type:"object",additionalProperties:{},title:"Record<string,unknown>"},IViewServiceSource:{type:"object",properties:{name:{type:"string"},type:{type:"string"},url:{type:"string"},serviceItemId:{type:"string"}},required:["name","type","url","serviceItemId"],description:"Individual View Source entry",title:"IViewServiceSource"},IViewServiceSources:{type:"object",properties:{currentVersion:{type:"number"},services:{type:"array",items:{$ref:"#/definitions/IViewServiceSource"}}},required:["currentVersion","services"],description:"Response from the /sources end-point of a view service",title:"IViewServiceSources"},IServiceNameAvailable:{type:"object",properties:{available:{type:"boolean"}},required:["available"],description:"Response from the portals/Self/isServiceNameAvailable request",title:"IServiceNameAvailable"},IPictureSourced:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},title:"IPictureSourced"},IPictureFillSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPFS"},style:{type:"string"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},xscale:{type:"number"},yscale:{type:"number"}},required:["type"],title:"IPictureFillSymbol"},IPictureMarkerSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPMS"},style:{type:"string"}},required:["type"],title:"IPictureMarkerSymbol"},ITextSymbol:{type:"object",properties:{type:{type:"string",const:"esriTS"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:"ITextSymbol"},IUser:{type:"object",properties:{username:{type:"string"},fullName:{type:"string"},availableCredits:{type:"number"},assignedCredits:{type:"number"},firstName:{type:"string"},lastName:{type:"string"},preferredView:{},description:{type:"string"},email:{type:"string"},idpUsername:{type:"string"},favGroupId:{type:"string"},lastLogin:{type:"number"},mfaEnabled:{type:"boolean"},access:{type:"string"},storageUsage:{type:"number"},storageQuota:{type:"number"},orgId:{type:"string"},cOrgId:{type:"string"},role:{type:"string",enum:["org_admin","org_publisher","org_user"]},privileges:{type:"array",items:{type:"string"}},roleId:{type:"string"},level:{type:"string"},disabled:{type:"boolean"},units:{type:"string"},tags:{type:"array",items:{type:"string"}},culture:{type:"string"},region:{type:"string"},thumbnail:{type:"string"},created:{type:"number"},modified:{type:"number"},groups:{type:"array",items:{$ref:"#/definitions/IGroup"}},provider:{type:"string",enum:["arcgis","enterprise","facebook","google"]}},description:'An ArcGIS Online or Enterprise user\n\n`IUser` can also be imported from the following packages:\n\n```js import { IUser } from "@esri/arcgis-rest-auth"; import { IUser } from "@esri/arcgis-rest-portal"; ```',title:"IUser"},IPagingParams:{type:"object",properties:{start:{type:"number"},num:{type:"number"}},description:'Params for paging operations\n\n`IPagingParams` can also be imported from the following packages:\n\n```js import { IPagingParams } from "@esri/arcgis-rest-portal"; ```',title:"IPagingParams"},IPagedResponse:{type:"object",properties:{start:{type:"number"},num:{type:"number"},total:{type:"number",description:"total number of object across all pages"},nextStart:{type:"number",description:"next entry index or -1 for the last page"}},required:["total","nextStart"],description:'Paging properties for paged responses.\n\n`IPagedResponse` can also be imported from the following packages:\n\n```js import { IPagedResponse } from "@esri/arcgis-rest-portal"; ```',title:"IPagedResponse"},IWebMapBackground:{type:"object",properties:{color:{$ref:"#/definitions/Color",description:"To define the color of the background of the map (which is shown when no data is shown)."}},required:["color"],description:"Defines the appearance for the background of the map.",examples:[{background:{color:[255,255,255,255]}}],title:"IWebMapBackground"},IBookmark:{type:"object",properties:{extent:{$ref:"#/definitions/IExtent",description:"An extent object containing a spatial reference, a lower left coordinate, and an upper right coordinate defining the rectangular area of the bookmark. The spatial reference must be the same as the map spatial reference. Documentation for the envelope is in the Geometry Objects topic of the ArcGIS REST API help."},name:{type:"string",description:"A string name for the bookmark."}},required:["extent","name"],description:"Predefined bookmarks for use by the application. A bookmark is a saved map extent that allows end users to quickly navigate to a particular area of interest.",title:"IBookmark"},IMapRangeInfo:{type:"object",properties:{activeRangeName:{type:"string",description:"Active range ID that slider/picker acts upon."},currentRangeExtent:{type:"array",items:{type:"number"},description:"Current range for the active range."},fullRangeExtent:{type:"array",items:{type:"number"},description:"Full range extent for the active range to be presented in the UI."}},description:"Map range information",examples:[{mapRangeInfo:{activeRangeName:"floors",currentRangeExtent:[-2,10],fullRangeExtent:[-2,100]}}],title:"IMapRangeInfo"},IMapLocation:{type:"object",properties:{centerPoint:{$ref:"#/definitions/IPoint",description:"The center of the map specified using X/Y coordinates."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"Well-known ID (WKID) or well-known text (WKT)."}},required:["centerPoint","spatialReference"],description:"Contains location information within a presentation slide.",title:"IMapLocation"},IVisibleLayer:{type:"object",properties:{featureVisibility:{type:"array",items:{type:"array",items:{}},description:"An array of arrays."},id:{type:"number",description:"The id of the layer as listed on the operational layer."},subLayerIds:{type:"array",items:{type:"number"},description:"An array of integers."}},description:"An array of numbers indicating layer visibility.",examples:[{visibleLayer:{featureVisibility:[[1],[],[],[0]],id:"73128eb3-05ee-46a7-8c22-0c385a0b1827"}}],title:"IVisibleLayer"},IVisiblePopup:{type:"object",properties:{anchorPoint:{$ref:"#/definitions/IPoint",description:"Object with spatialReference, x, and y."},featureId:{type:"number",description:"An integer specifying the feature's id."},layerId:{type:"string",description:"A string specifying the layer id."},subLayerId:{type:"number",description:"An integer specifying the sublayer id."}},description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId.",title:"IVisiblePopup"},ISlide:{type:"object",properties:{baseMap:{$ref:"#/definitions/IBaseMap",description:"Basemaps give the web map a geographic context."},extent:{$ref:"#/definitions/IExtent",description:"The standard Esri extent object with spatialReference, xmax, xmin, ymax and ymin."},hidden:{type:"boolean",description:"Indicates whether the slide should be hidden within the presentation."},mapLocation:{$ref:"#/definitions/IMapLocation",description:"An object with a centerPoint object and sometimes a resolution."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"An array of two numbers. The first one indicates start time and the second one indicates end time."},title:{type:"string",description:"Title including text and formatting for each slide."},visibleLayers:{$ref:"#/definitions/IVisibleLayer",description:"An array of objects used to indicate layer visibility."},visiblePopup:{$ref:"#/definitions/IVisiblePopup",description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId."}},title:"ISlide"},IBaseMap:{type:"object",properties:{baseMapLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"An array of baseMapLayer objects defining the basemaps used in the web map."},title:{type:"string",description:"Required string title for the basemap that can be used in a table of contents. It takes the title of the first baseMapLayer in the array."}},required:["baseMapLayers","title"],description:"A basemap layer is a layer that provides geographic context to the map. A web map always contains a basemap. The basemap has a title and is the combination of each baseMapLayer. It is required that a baseMap be saved within the web map.",title:"IBaseMap"},IPresentation:{type:"object",properties:{displayTimeSlider:{type:"boolean",description:"Indicates whether to display the time slider (if accessible)."},showLegend:{type:"boolean",description:"Indicates whether to display a legend on all slides."},slideAdvancementInterval:{type:"number",description:"Number of seconds to show slide before proceeding to the next slide."},slides:{type:"array",items:{$ref:"#/definitions/ISlide"},description:"Array of slide objects."},useTimeExtentOfSlide:{type:"boolean",description:"Indicates whether to use the time extent (if applicable) of a slide."}},title:"IPresentation"},IWebmap:{type:"object",properties:{applicationProperties:{$ref:"#/definitions/IApplicationProperties",description:"Viewing and editing properties of the webmap"},authoringApp:{type:"string",description:"String value indicating the application which authored the webmap"},authoringAppVersion:{type:"string",description:"String value indicating the authoring App's version number"},background:{$ref:"#/definitions/IWebMapBackground",description:"Defines the appearance for the background of the map."},baseMap:{$ref:"#/definitions/IBaseMap",description:"[Required] Basemaps give the web map a geographic context"},bookmarks:{type:"array",items:{$ref:"#/definitions/IBookmark"},description:"A bookmark is a saved geographic extent that allows end users to quickly navigate to a particular area of interest"},mapRangeInfo:{$ref:"#/definitions/IMapRangeInfo",description:"Map Range Information"},operationalLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"Operational layers contain business data which are used to make thematic maps"},presentation:{description:"A presentation consists of multiple slides. Each slide has a different title, extent, basemap, layers etc"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"[Required] An object used to specify the spatial reference of the given geometry."},tables:{type:"array",items:{$ref:"#/definitions/ITable"},description:"Root element in the web map specifying an array of table objects. (optional)"},version:{type:"string",description:"[Required] Root element in the web map specifying a string value indicating the web map version."},widgets:{description:"The widgets object contains widgets that should be exposed to the user"}},required:["baseMap","spatialReference","version"],description:"The web map data lists the basemap, operational layers, and bookmarks to be used in the web map. It also contains information about popup windows and layer styling overrides to be used in the web map. A version property allows you to supply the version of the web map JSON format being used.",title:"IWebmap"},IApplicationProperties:{type:"object",properties:{editing:{anyOf:[{$ref:"#/definitions/IEditingProperties"},{type:"null"}],description:"If locationTracking is set and enabled, the Collector application will update the feature service at the defined interval with the current location of the user logged into the Collector app."},offline:{anyOf:[{$ref:"#/definitions/IOfflineInfo"},{type:"null"}],description:"Use if working with offline maps."},viewing:{anyOf:[{$ref:"#/definitions/IViewingInfo"},{type:"null"}],description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default."}},description:"The applicationProperties object is one of the objects at the top level of the JSON web map JSON schema. This is responsible for containing the viewing and editing properties of the web map. There are specific objects within this object that are applicable only to Collector and are explained within the property descriptions.",title:"IApplicationProperties"},IEditingProperties:{type:"object",properties:{locationTracking:{$ref:"#/definitions/ILocationTracking",description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application."}},required:["locationTracking"],description:"An object containing all the editing properties within the web map.",title:"IEditingProperties"},ILocationTracking:{type:"object",properties:{enabled:{type:"boolean",description:"A boolean value indicating whether or not location tracking is enabled on the webmap."},info:{$ref:"#/definitions/ILocationTrackingInfo",description:"An object of additional information specifying layer and update interval time."}},required:["enabled","info"],description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application.",title:"ILocationTracking"},ILocationTrackingInfo:{type:"object",properties:{layerId:{description:"A string value indicating the given layer id specified in the web map."},updateInterval:{description:"A numeric value indicating the time interval used to update the feature service. Default value is 300 seconds."}},required:["layerId"],description:"An object containing additional information specifying layer and update interval time used in the locationTracking object.",title:"ILocationTrackingInfo"},IOfflineInfo:{type:"object",properties:{editableLayers:{$ref:"#/definitions/IEditableLayers",description:"Object detailing the available offline editing options."},readonlyLayers:{$ref:"#/definitions/IReadOnlyLayers",description:"Object indicating what to do with attachments in read-only layers."}},required:["editableLayers","readonlyLayers"],description:"Use if working with offline maps.",title:"IOfflineInfo"},IEditableLayers:{type:"object",properties:{download:{type:"string",enum:["featuers","featuresAndAttachments","none"],description:"When editing layers, the edits are always sent to the server. This string value indicates which data is retrieved. For example, none indicates that only the schema is written since neither the features nor attachments are retrieved. For a full sync without downloading attachments, indicate features. Lastly, the default behavior is to have a full sync using featuresAndAttachments where both features and attachments are retrieved."},sync:{type:"string",enum:["syncFeaturesAndAttachments","syncFeaturesUploadAttachments","uploadFeaturesAndAttachments"],description:"This string value indicates how the data is synced."}},required:["download","sync"],description:"Object detailing the available offline editing options.",title:"IEditableLayers"},IReadOnlyLayers:{type:"object",properties:{downloadAttachments:{type:"boolean",description:"Indicates whether to include attachments with the read-only data."}},required:["downloadAttachments"],description:"Read-only layers as the features are always retrieved from the server.",title:"IReadOnlyLayers"},IViewingInfo:{type:"object",properties:{basemapGallery:{$ref:"#/definitions/IEnableable",description:"The basemap tool which will use the basemap group defined in the Portal."},measure:{$ref:"#/definitions/IEnableable",description:"Measure tool."},routing:{$ref:"#/definitions/IEnableable",description:"The route tool which will leverage the Portals defined route service."},search:{$ref:"#/definitions/ISearch",description:"An object specifying search parameters within the webmap."}},description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default.",title:"IViewingInfo"},IEnableable:{type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"],title:"IEnableable"},ISearch:{type:"object",properties:{enabled:{type:"boolean"},disablePlaceFinder:{description:"A boolean value indicating whether or not to disable the place finder."},hintText:{description:"A string value used to indicate the hint provided with the search dialog."},layers:{description:"An array of layer objects defining the styling, geometry, and attribute information for the features."}},required:["enabled"],description:"An object specifying the search parameters set within the web map.",title:"ISearch"},IRange:{type:"object",properties:{interactionMode:{type:"string",enum:["picker","slider"],description:"Indicates the mode in which the active range should be presented to the user. Must be one of the following values: slider, picker"},numberOfStops:{description:"This is used to generate the activeRangeValues if activeRangeValues are not specified."},stopInterval:{type:"number",description:"Interval in which stops should be generated."}},description:"Range object.",title:"IRange"},IWidget:{type:"object",properties:{range:{$ref:"#/definitions/IRange",description:"Active range."},timeSlider:{$ref:"#/definitions/ITimeSliderProperties",description:"Time animation is controlled by a configurable time slider. The time slider widget will act upon all the time aware layers in the map."}},description:"The widgets object contains widgets that should be exposed to the user.",title:"IWidget"},ITimeSliderProperties:{type:"object",properties:{currentTimeExtent:{type:"array",items:{type:"number"},description:"An optional array of numbers indicating the slider's start to end time extent."},endTime:{type:"number",description:"The optional end of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},numberOfStops:{type:"number",description:"Number of stops within the timeSlider widget."},startTime:{type:"number",description:"The optional start of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},thumbCount:{type:"number",description:"The default value for the thumbCount is 1."},thumbMovingRate:{type:"number",description:"Rate at which the time animation plays. Units are in milliseconds. Default is 1000."},timeStopInterval:{type:"number",description:"The interval which has been defined for the time slider."}},description:"Configurable properties used within the TimeSlider widget.",title:"ITimeSliderProperties"},ITimeSlider:{type:"object",properties:{properties:{$ref:"#/definitions/ITimeSliderProperties",description:"Configurable properties used within the TimeSlider widget."}},required:["properties"],description:"Time animation is controlled by a configurable time slider. Those configurations are saved to the web map as a timeSlider widget.",title:"ITimeSlider"},IBingLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",enum:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"],description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bingKey:{type:"string",description:"String value that unlocks the use of Bing layers in a web map."},canShareBingPublic:{type:"boolean",description:"Boolean value indicating whether the Bing key can be shared to the public."},portalUrl:{type:"string",description:"A string value representing the URL to the Portal/organization Self resource. Calls should be made to this property to retrieve the Bing key. If the key is not made accessible to the public or if canShareBingPublic is false, any web maps using Bing layers will not work."}},required:["id","layerType"],title:"IBingLayer"},IImageServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bandIds:{type:"array",items:{type:"number"},description:"An array of bandIds that are visible, can specify bands to export or rearrange band order(from image service)."},compressionQuality:{description:"Controls how much loss the image will be subjected to by the compression algorithm (from image service)."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Boolean property indicating whether to ignore popups defined by the service item."},format:{type:"string",enum:["bmp","gif","jpg","jpgpng","png","png8","png24","png32","tiff"],description:"String value representing image format."},interpolation:{type:"string",enum:["RSP_BilinearInterpolation","RSP_CubicConvolution","RSP_Majority","RSP_NearestNeighbor"],description:"The algorithm used for interpolation."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},noData:{description:"The pixel value that represents no information."},noDataInterpretation:{type:"string",enum:["esriNoDataMatchAll","esriNoDataMatchAny"],description:"A string value of interpretation of noData setting. Default is 'esriNoDataMatchAny' when noData is a number, and 'esriNoDataMatchAll' when noData is an array."},pixelType:{type:"string",enum:["C64","C128","F32","F64","S8","S16","S32","U1","U2","U4","U8","U16","U32","UNKNOWN"],description:"Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},renderingRule:{description:"Specifies the rendering rule for how the requested image should be rendered."}},required:["id","layerType"],title:"IImageServiceLayer"},IImageVectorLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceVectorLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceVectorLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{description:"Boolean property indicating whether to ignore popups defined by the service item."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},symbolTileSize:{description:"Number describing the size of the tile."}},required:["id","layerType"],title:"IImageVectorLayer"},IChildLayer:{type:"object",properties:{defaultVisibility:{description:"Default visibility of the layers in the map service."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"An object that provides interactive filters."},featureSet:{$ref:"#/definitions/IFeatureSet",description:"A featureSet object containing the geometry and attributes of the features in the layer. Used with feature collections only."},field:{type:"array",items:{$ref:"#/definitions/IField"},description:"Information about each field in a layer. Used with feature collections."},id:{type:"string",description:"A string indicating the index position of the layer in the map service or feature collection."},layerDefinition:{description:"The layerDefinition object defines the attribute schema and drawing information for the layer."},layerUrl:{description:"A string URL to a service that should be used for all queries against the layer. Used with hosted tiled map services on ArcGIS Online when there is an associated feature service that allows for queries."},maxScale:{description:"Represents the maximum scale at which the layer definition will be applied."},minScale:{description:"Represents the minimum scale at which the layer definition will be applied."},nextObjectId:{description:"Iterates within a featureset. Number objectId value is incremented +1 based on last Object ID defined for the feature in a featureset. Used with feature collections."},parentLayerId:{description:"If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the popup window content for the layer."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},subLayer:{description:"Array of numeric values indicating the layer index for layers nested directly under the parent layer."},subLayerIds:{description:"If the layer is a parent layer, it will have one or more sub layers included in an array."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."}},description:"A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service. This object also contains geographic features and their attributes when used in a feature collection.",title:"IChildLayer"},IMapServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining the styling, geometry, and attribute information for the features."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},thematicGroup:{$ref:"#/definitions/IThematicGroup",description:"(Optional) A thematicGroup object used in ArcGISMapServiceLayer layers."},visibleLayers:{type:"array",items:{type:"number"},description:"An array of sublayer ids that should appear visible. Used with map service layers that are not tiled."}},required:["id","layerType"],title:"IMapServiceLayer"},IThematicGroup:{type:"object",properties:{fieldNames:{type:"array",items:{type:"string"},description:"An array of string values indicating all the fields used within the webmap. All other fields can be disregarded and should not display in any field selection list."},layerIds:{type:"array",items:{type:"number"},description:"A zero-based array of integers indicating the layers to be used in the webmap. NOTE: All other layers should not be added to the TOC and may or may not be visible on the map as reference layers."},name:{type:"string",description:"String property indicating the name for the thematic grouping of layers."}},title:"IThematicGroup"},IDrawingInfo:{type:"object",properties:{fixedSymbols:{description:"Only used for feature collections with a renderer. The feature's symbol is defined by the layer's renderer."},labelingInfo:{description:"An object defining the properties used for labeling the layer."},renderer:{description:"An object defined which provides the symbology for the layer."},scaleSymbols:{description:"Boolean property indicating whether symbols should stay the same size in screen units as you zoom in. A value of true means the symbols stay the same size in screen units regardless of the map scale."},showLabels:{type:"boolean",description:"Defines whether labels should be shown or not. This is only valid for sublayers."},transparency:{type:"number",description:"Number value ranging between 0 (no transparency) to 100 (completely transparent)."}},title:"IDrawingInfo"},ITypeInfoDomain:{type:"object",properties:{type:{type:"string"}},required:["type"],title:"ITypeInfoDomain"},ITypeInfo:{type:"object",properties:{domains:{$ref:"#/definitions/Record%3Cstring%2CITypeInfoDomain%3E",description:"A comma-delimited series of domain objects for each domain in the type."},id:{type:["number","string"],description:"A unique string or numerical ID for the type."},name:{type:"string",description:"A user-friendly name for the type."},templates:{type:"array",items:{$ref:"#/definitions/ITemplate"},description:"Defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types."}},title:"ITypeInfo"},"Record<string,ITypeInfoDomain>":{type:"object",additionalProperties:{$ref:"#/definitions/ITypeInfoDomain"},title:"Record<string,ITypeInfoDomain>"},IOpenStreetMapLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"OpenStreetMap",description:"String indicating the layer type. Value of this property must be OpenStreetMap"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"OpenStreetMap",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."}},required:["id","layerType"],description:"Allows use of OpenStreetMap data for use in basemaps only.",title:"IOpenStreetMapLayer"},ITiledImageServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISTiledImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{type:"boolean",description:"Applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"ITiledImageServiceLayer"},IExclusionArea:{type:"object",properties:{geometry:{$ref:"#/definitions/IGeometry",description:"The geometry defining the area where no data will be fetched. Only extent is supported."},maxScale:{type:"number",description:"The zoom level where the exclusion ends."},maxZoom:{type:"number",description:"The zoom level where the exclusion ends."},minScale:{type:"number",description:"The zoom level where the exclusion starts."},minZoom:{type:"number",description:"The zoom level where the exclusion starts."}},description:"Exclusion areas define extent areas where no data will be fetched for a layer.",title:"IExclusionArea"},ITiledMapServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},displayLevels:{anyOf:[{type:"array",items:{type:"number"}},{type:"number"}],description:"NOTE: Applicable if used as a baseMapLayer. Integer value(s) indicating the display levels of the basemap layer. Only applicable for TiledMapService layers. All tiled map service layers should share the same tiling scheme. This property cannot be set via the Map Viewer UI."},exclusionAreas:{type:"array",items:{$ref:"#/definitions/IExclusionArea"},description:"NOTE: Applicable if used as a baseMapLayer. An array of exclusionArea objects defining the layer exclusions."},isReference:{description:"This property is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining a URL for queries and the popup window content."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"An ArcGIS Tiled Map Service layer displays map content from an ArcGIS Server Map service that has been cached (tiled).",title:"ITiledMapServiceLayer"},IVectorTileLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"VectorTileLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"VectorTileLayer",description:"Deprecated. User layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},styleUrl:{type:"string",description:"A url to a JSON file containing the stylesheet information used to render the layer. You may also pass an object containing the stylesheet information identical to the JSON file."}},required:["id","layerType"],description:"A vector tile layer references a set of web-accessible vector tiles and the corresponding style for how those tiles should be drawn.",title:"IVectorTileLayer"},ILod:{type:"object",properties:{level:{type:"number",description:"ID for each level."},levelValue:{type:"string",description:"String to be used when constructing URL to access a tile from this LOD."},resolution:{type:"number",description:"Resolution in map units of each pixel in a tile for each level."},scale:{type:"number",description:"Scale for each level."}},title:"ILod"},ITileInfo:{type:"object",properties:{cols:{description:"Requested tile's column."},compressionQuality:{description:"Compression quality of the tile."},dpi:{description:"The dpi of the tiling scheme."},format:{type:"string",enum:["bmp","emf","gif","jpg","lerc","mixed","pdf","png","png8","png24","png32","ps","svg","svgz"],description:"Image format of the cached tiles."},lods:{type:"array",items:{$ref:"#/definitions/ILod"},description:"An array of levels of detail that define the tiling scheme."},origin:{$ref:"#/definitions/IPoint",description:"The tiling scheme origin."},rows:{description:"Requested tile's row."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"The spatial reference of the tiling schema."}},description:"Tile information, returned from the WMTS OGC Web Service. The tileInfo will contain the spatial reference of the layer. tileInfo is the same json representation as the ArcGIS Map/Image service tileInfo except that it may contain a levelValue on the lod objects that should be used instead of the level in the templateUrl.",title:"ITileInfo"},IWebMapTileServiceInfo:{type:"object",properties:{customLayerParameters:{description:"A sequence of parameters used to append different custom parameters to a WMTS tile request. These parameters are applied to GetTile. The customLayerParameters property takes precedence if customParameters is also present."},customParameters:{description:"A sequence of parameters used to append custom parameters to all WMTS requests. These parameters are applied to GetCapabilities and GetTile. If used with the customLayerParameters property, customParameters will not take precedence."},layerIdentifier:{type:"string",description:"Identifier for the specific layer used in the WMTS service. Required input by the user."},tileMatrixSet:{description:"Tiling schema, set by the WMTS service."},url:{type:"string",description:"URL to the WMTS web service. Required input by the user."}},required:["layerIdentifier","url"],description:"Object defines and provides information about layers in a WMTSLayer service.",title:"IWebMapTileServiceInfo"},IWebTiledLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"WebTiledLayer",description:"String indicating the layer type. Value of this property must be WebTiledLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"WebTiledLayer",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},copyright:{description:"Attribution to the Web Tiled Layer provider. It is displayed in the attribution on the web map. Input required by the user when the layer is added to the web map."},fullExtent:{$ref:"#/definitions/IExtent",description:"An extent object representing the full extent envelope for the layer."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},subDomains:{description:"If subdomains are detected, they must be specified. The map viewer detects if the Web Tiled Layer has subdomains by parsing the templateURL value for {subDomain}."},templateUrl:{description:"URL to the Web Tiled Layer. Input required by the user when the layer is added to the web map. The template URL contains a parameterized URL. The URL can contain the following templated parameters: 'level', 'col', 'row', and 'subDomain'."},tileInfo:{$ref:"#/definitions/ITileInfo",description:"Contains the spatial reference and the tiling scheme of the layer. Typically retrieved from a WMTS OGC Web Service. If missing the layer must be in the WGS 1984 Web Mercator (Auxiliary Sphere) tiling scheme."},wmtsInfo:{$ref:"#/definitions/IWebMapTileServiceInfo",description:"Object containing information about the chosen WMTS service layer and tiling schema."}},required:["id","layerType"],title:"IWebTiledLayer"},ICsvLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"CSV",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"CSV",description:"Deprecated, use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},columnDelimiter:{type:"string",enum:[" ",",",";"," ","|"],description:"A string defining the character used to separate columns in a CSV file."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},locationInfo:{description:"A locationInfo object defining how location information will be retrieved from a CSV file."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"The CSV layer type references a CSV or TXT file from a publically-accessible web server. It then dynamically loads into the map at run time. The CSV layer will maintain a reference to the CSV resource.",title:"ICsvLayer"},IGeoRssLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"GeoRSS",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"GeoRSS",description:"Deprecated, please use layerType.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have lines, this property is not added to the layer JSON."},pointSymbol:{$ref:"#/definitions/IPictureMarkerSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have points, this property is not added to the layer JSON."},polygonSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have polygons, this property is not added to the layer JSON."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"IGeoRssLayer"},IKmlLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"KML",description:"String indicating the layer type."},maxScale:{description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},minScale:{description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},opacity:{description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"KML",description:"Deprecated, use layerType instead.",deprecated:"Use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},visibleFolders:{type:"array",items:{type:"number"},description:"Array of numeric IDs of folders that will be made visible."}},required:["id","layerType"],title:"IKmlLayer"},IArcGisStreamLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISStreamLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Indicates whether to ignore popups defined by the service item."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of pop-up windows when you click or query a feature."}},required:["id","layerType"],title:"IArcGisStreamLayer"}},$ref:"#/definitions/WebChart"},Yp={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},mr={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},se={BadData:"badData",EmptyDataSet:"emptyDataSet",HistogramEmptyField:"histogramEmptyField",BarElementExceedsLimit:"barElementExceedsLimit",LineChartExceedsLimit:"lineChartExceedsLimit",BoxPlotExceedsLimit:"boxPlotExceedsLimit",BoxPlotOutliersExceedsLimit:"boxPlotOutliersExceedsLimit",HeatChartExceedsLimit:"heatChartExceedsLimit",PieChartExceedsLimit:"pieChartExceedsLimit",GaugeExceedsLimit:"gaugeExceedsLimit",PieChartMixOfNegativePositiveSlices:"PieChartMixOfNegativePositiveSlices",NegativeValueInSqrtCalculation:"negativeValueInSqrtCalculation",NegativeValueInLogCalculation:"negativeValueInLogCalculation",NegativeValueInXAxisLogScale:"negativeValueInXAxisLogScale",NegativeValueInYAxisLogScale:"negativeValueInYAxisLogScale"};function Ww(t){let e=t.lastIndexOf("/");return e!==-1?t.slice(e+1):t}async function zw(t){let e=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings;return t.map(r=>{let a=r,i=r.dataPath.startsWith(".")?r.dataPath.substring(1):r.dataPath;switch(r.keyword){case mr.Required:a={...r,message:qe(e.errors.requiredProperty,{dataPath:i,missingProperty:r.params.missingProperty})};break;case mr.MinLength:a={...r,message:qe(e.errors.minLength,{dataPath:i,limit:r.params.limit.toString()})};break;case mr.MinItems:a={...r,message:qe(e.errors.minItems,{dataPath:i,limit:r.params.limit.toString()})};break;case mr.MaxItems:a={...r,message:qe(e.errors.maxItems,{dataPath:i,limit:r.params.limit.toString()})};break;case mr.Pattern:r.params.pattern==="\\w+"&&(a={...r,message:qe(e.errors.whiteSpacePattern,{dataPath:i}),params:{}});break;case mr.AdditionalProperties:a={...r,message:qe(e.errors.additionalProperty,{dataPath:i,additionalProperty:r.params.additionalProperty})};break;case mr.Enum:a={...r,message:qe(e.errors.enumValues,{dataPath:i,allowedValues:r.params.allowedValues.join(", ")})};break;case mr.AnyOf:{let n=[];r.schemaPath==="#/properties/legend/anyOf"&&(n=ci.definitions.WebChart.properties.legend.anyOf.map(s=>Ww(s.$ref))),a={...r,params:n,message:qe(e.errors.anyOfValues,{dataPath:i,schemaOptions:n.join(", ")})};break}}return a})}function Ga(t,e){return{...t,$ref:`#/definitions/${e}`}}async function Uw(t){let e,r=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings,a=ue(t);try{await a.load()}catch{let i=a?.url??"",n=Ge(a)?.portalItem?.id??"";e={keyword:St.LayerLoadFailure,message:qe(r.errors.layerLoadFailure,{url:i,portalItemId:n}),params:{url:i,portalItemId:n}}}return e}function Gw(){let t=new Uu.default({allErrors:!0});return async e=>{let r=[],a=X(e?.series),i=ci;switch(a){case g.GaugeSeries:i=Ga(ci,"WebGaugeChart");break;case g.BoxPlotSeries:i=Ga(ci,"WebBoxPlot");break;case g.RadarSeries:i=Ga(ci,"WebRadarChart");break;default:i=Ga(ci,"WebChart");break}let n=t.compile(i);return n(e),n.errors!==null&&n.errors!==void 0&&(r=await zw(n.errors)),r}}var Hw=Gw();async function Qw(t){let{seriesConfigs:e,queryObject:r,allowUsingObjectIdStat:a}=t,i=[],n=await wt(r),s=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings;for(let o=0;o<e.length;o+=1){let l=e[o].query?.outStatistics;if(l!==void 0)for(let d=0;d<l.length;d+=1){let u=l[d],c=yo(u.onStatisticField,n);if(c&&!(c.type===ve.OID&&a||wi(c))&&u.statisticType!==j.Count){let h=`series[${o}].query.outStatistics[${d}]`;i.push({keyword:Yp.NonNumericAggregation,message:qe(s.errors.nonNumericAggregation,{dataPath:h}),dataPath:h,params:{fieldName:u.onStatisticField,fieldType:c.type,aggregationRequested:u.statisticType}})}}}return i}async function Zw(t){let e=[],r=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings;if(t!==void 0&&t.series.length>1){let a=new Set,i=0;t.series.forEach((n,s)=>{if(a.add(n.id),a.size===i){let o=`series[${s}].id`;e.push({keyword:Yp.DuplicateSeriesID,message:qe(r.errors.duplicateSeriesID,{dataPath:o,seriesID:n.id,seriesName:n.name}),dataPath:o,params:{seriesId:n.id,seriesName:n.name}})}else i+=1})}return e}function Jw(t){let e=new Set,r=Ar(t);if(r){let a=X(t.series),i=Y(t.series);a===g.GaugeSeries&&!go(t)||i===x.PieFromFields||i===x.BarAndLineFromFields||i===x.BoxPlotMonoField||i===x.BoxPlotMultiFields||i===x.BoxPlotMonoFieldAndSplitBy||i===x.BoxPlotMultiFieldsAndSplitBy||e.add(r.x);let n=a===g.ScatterSeries||a===g.BoxPlotSeries||i===x.BarAndLineNoAggregation||i===x.BarAndLineSplitByNoAggregation||i===x.PieNoAggregation,s=[Pi,st,xm,qt,Cm,ke.outStatistics.outStatisticFieldName??""],o=[];if(a===g.BoxPlotSeries?o=Cn({showMean:t.showMean,seriesConfig:t.series}):o=t.series.map(l=>"y"in l?l.y:void 0).filter(l=>l!==void 0).flat(),n?o.forEach(l=>e.add(l)):s.push(...o),t.series.forEach(l=>{let{query:d}=l;d&&(tr(d.where)||e.add(Xe(d.where)),d.groupByFieldsForStatistics&&d.groupByFieldsForStatistics.forEach(u=>e.add(u)),d.outStatistics&&d.outStatistics.forEach(u=>e.add(u.onStatisticField)))}),a===g.GaugeSeries&&t.axes?.[0]!==void 0){let l=t.axes?.[0];l&&"minimumFromField"in l&&typeof l.minimumFromField=="string"&&e.add(l.minimumFromField),l&&"maximumFromField"in l&&typeof l.maximumFromField=="string"&&e.add(l.maximumFromField)}s.forEach(l=>{e.delete(l)})}return Array.from(e.values()).filter(a=>!Re(a))}async function Kw(t,e){let r,a=(await Nt(yt(document.documentElement).t9nLocale,Ft("./assets/common/t9n"),"messages.")).errorStrings,i=await wt(e),n=Jw(t).filter(s=>!yo(s,i));if(n.length>0){let s=n.join(", ");r={keyword:St.LayerFieldsNotFound,message:qe(a.errors.layerFieldsNotFound,{fieldNames:s}),params:s}}return r}async function Yw(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a}=t,i=[];if(r!==void 0){let n=await Qw({seriesConfigs:e.series,queryObject:r,allowUsingObjectIdStat:a});i=i.concat(n)}return i=i.concat(await Zw(e)),i}async function Xw(t,e){let r=[];if(t!==void 0){let a=await Uw(t);if(a!==void 0)r=r.concat(a);else if(e!==void 0){let i=await Kw(e,t);i!==void 0&&(r=r.concat(i))}}return r}async function aF(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a}=t,i;if(vw(e?.version).versionStatus===ur.Newer)i={valid:!0,schemaErrors:[],customErrors:[],warnings:[]};else{let n=await Hw(e),s=[],o=[];e!==void 0&&n.length===0&&(o=await Xw(r,e),o.length===0&&(s=await Yw({input:e,queryObject:r,allowUsingObjectIdStat:a}))),i={valid:n.length===0&&s.length===0&&o.length===0,schemaErrors:n,customErrors:o,warnings:s}}return i}function nF(t){let e=X(t?.series),r=!1;switch(e){case g.HistogramSeries:{r=(t?.series?.[0]?.x?.trim()?.length??0)===0;break}case g.ScatterSeries:{let a=t?.series;r=(a?.[0]?.x?.length??0)===0||(a?.[0]?.y?.length??0)===0;break}case g.PieSeries:{let a=t?.series;Y(a)===x.PieFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.length??0)===0||a?.[0]?.x===st;break}case g.BoxPlotSeries:{let a=t?.series;r=[a?.[0]?.y].flat().length===0||a?.[0]?.y==="";break}case g.ComboLineAndBarSeries:case g.RadarSeries:case g.BarSeries:case g.LineSeries:{let a=t?.series;Y(a)===x.BarAndLineFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.trim()?.length??0)===0;break}}return r}async function bs(t){let{queryObject:e,queryConfig:r,category:a,splitByField:i,chartLimits:n,abortKey:s}=t,o=i!==void 0,l=a!==Pi?[a]:[];o&&l.push(i);let d=ue(e),u={...r,groupByFieldsForStatistics:Array.from(new Set(l)),outStatistics:[{statisticType:j.Count,onStatisticField:d.objectIdField,outStatisticFieldName:`${j.Count}_OBJECTID`}],orderByFields:void 0,num:n?.maxBarThreePlusSeriesCountTotal},c=await Lt({queryObject:e,featureCount:1,queryConfig:u,abortKey:s});return Array.from(new Set(c.map(h=>h.attributes[o?i:a]))).sort((h,p)=>typeof h=="string"&&typeof p=="string"?h.localeCompare(p):Number(h)-Number(p))}var _u=[{unit:H.Second,threshold:6e4,unitMs:1e3,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:H.Minute,threshold:36e5,unitMs:1e3*60,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:H.Hour,threshold:864e5,unitMs:1e3*60*60,preferredIntervalSize:[1,2,3,4,6,8,12,24]},{unit:H.Day,threshold:6048e5,unitMs:1e3*60*60*24,preferredIntervalSize:[1,2,3,4,5,6,7]},{unit:H.Week,threshold:24192e5,unitMs:1e3*60*60*24*7,preferredIntervalSize:[1,2,3,4]},{unit:H.Month,threshold:290304e5,unitMs:1e3*60*60*24*7*4,preferredIntervalSize:[1,2,3,4,6,12]},{unit:H.Year,threshold:Number.MAX_SAFE_INTEGER,unitMs:1e3*60*60*24*7*4*12,preferredIntervalSize:[1,2,4,5,10,25,50,100]}],ex="{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'";async function sF(t){let e=Ft(`assets/common/t9n/messages.${t}.json`),r=await fetch(e);if(!r.ok)throw new Error(`Failed to load t9n file: ${e}`);return await r.json()}var tx=[...An,"ar-u-nu-latn","en-AU","en-GB","es-ES","es-MX","de-CH","de-DE","de-AT","fr-CA","it-CH","it-IT"];function oF(t){let{t9nLocale:e}=yt(t??document.documentElement),r=Xp(t??document.documentElement),a=qo(t??document.documentElement)==="rtl";return{locale:e,formatLocale:r,rtl:a}}function lF(t){let e;return t==="unknown"?e="UTC":t!==void 0&&t!=="system"&&(e=t),e}function dF(t,e){let r={year:"numeric",month:"2-digit",day:"2-digit",timeZone:e};return new Intl.DateTimeFormat("en-CA",r).format(t)}function uF(t,e){let r={hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:e};return new Intl.DateTimeFormat("en-US",r).format(t)}function cF(t,e){let[,r,,,,a]=1111.1.toLocaleString(e),i=t.replace(r,"").replace(a,".");return Number.parseFloat(i)}function rx(t){let e=Array.from(An);return tx.includes(t)&&!e.includes(t)}function Xp(t){let{lang:e,t9nLocale:r}=yt(t);return rx(e)?e:r}return{a:Ro,b:ar,c:st,d:qt,e:xm,f:Cm,g:Xt,h:ae,i:Pu,j:mg,k:nr,l:r1,m:ot,n:i1,o:Gt,p:Ur,q:a1,r:n1,s:Ig,t:s1,u:Fg,v:o1,w:re,x:ke,y:l1,z:lt,A:Og,B:d1,C:u1,D:Wi,E:Pi,F:Ie,G:Ag,H:Et,I:Hc,J:c1,K:gn,L:me,M:Qc,N:oe,O:ea,P:Lg,Q:p1,R:qs,S:h1,T:f1,U:Pr,V:ja,W:sr,X:m1,Y:Dg,Z:Ng,_:$g,$:y1,aa:Bg,ba:Zr,ca:Rg,da:jg,ea:g1,fa:_g,ga:b1,ha:v1,ia:Vg,ja:Wg,ka:S1,la:w1,ma:zi,na:x1,oa:C1,pa:I1,qa:F1,ra:T1,sa:P1,ta:O1,ua:A1,va:zg,wa:Ug,xa:Gg,ya:E1,za:L1,Aa:D1,Ba:Hg,Ca:N1,Da:Qg,Ea:Zg,Fa:Jg,Ga:$1,Ha:B1,Ia:O,Ja:Zc,Ka:Kg,La:M1,Ma:q1,Na:Yg,Oa:R1,Pa:k1,Qa:j1,Ra:ks,Sa:Ui,Ta:nb,Ua:_1,Va:hi,Wa:V1,Xa:sb,Ya:cb,Za:pb,_a:W1,$a:fb,ab:z1,bb:U1,cb:Gi,db:bb,eb:Sb,fb:wb,gb:Au,hb:Yc,ib:Xc,jb:Fb,kb:Eu,lb:G1,mb:U,nb:x,ob:H1,pb:mp,qb:Bu,rb:Q1,sb:so,tb:yp,ub:er,vb:Ws,wb:Z1,xb:J1,yb:K1,zb:Re,Ab:Y1,Bb:X1,Cb:eI,Db:tI,Eb:Tv,Fb:rI,Gb:iI,Hb:aI,Ib:nI,Jb:sI,Kb:oI,Lb:lI,Mb:Ev,Nb:dI,Ob:lo,Pb:uI,Qb:E0,Rb:cI,Sb:k0,Tb:pI,Ub:hI,Vb:Qi,Wb:ra,Xb:kp,Yb:fI,Zb:mI,_b:yI,$b:gI,ac:bI,bc:vI,cc:SI,dc:wI,ec:xI,fc:CI,gc:II,hc:dt,ic:St,jc:FI,kc:Qr,lc:Ge,mc:Zi,nc:TI,oc:ue,pc:PI,qc:Ji,rc:Lt,sc:GS,tc:HS,uc:fe,vc:aw,wc:OI,xc:wt,yc:nw,zc:wi,Ac:AI,Bc:EI,Cc:sw,Dc:LI,Ec:Hp,Fc:lw,Gc:cw,Hc:pw,Ic:DI,Jc:hw,Kc:NI,Lc:mw,Mc:yw,Nc:vw,Oc:Ar,Pc:$I,Qc:Xe,Rc:ut,Sc:tr,Tc:Y,Uc:Yr,Vc:kt,Wc:Iw,Xc:Nw,Yc:BI,Zc:MI,_c:qI,$c:RI,ad:kI,bd:jI,cd:_I,dd:VI,ed:WI,fd:zI,gd:UI,hd:GI,id:HI,jd:QI,kd:ZI,ld:JI,md:KI,nd:YI,od:XI,pd:eF,qd:tF,rd:go,sd:Zp,td:Jp,ud:Ue,vd:gs,wd:tt,xd:kw,yd:rF,zd:_w,Ad:iF,Bd:Yp,Cd:se,Dd:aF,Ed:nF,Fd:bs,Gd:sF,Hd:oF,Id:lF,Jd:dF,Kd:uF,Ld:cF,Md:Xp}},"core/promiseUtils","request","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","layers/FeatureLayer","layers/support/Field","layers/support/fieldUtils","portal/Portal","renderers/support/jsonUtils","rest/support/FeatureSet","Graphic","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic")