@arcgis/charts-components 5.1.0-next.111 → 5.1.0-next.113

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 (316) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/24TOMTMP.js +2 -0
  3. package/dist/cdn/2EPXIQFD.js +2 -0
  4. package/dist/cdn/2JUO3GP2.js +2 -0
  5. package/dist/cdn/2SVBUT3V.js +2 -0
  6. package/dist/cdn/2XTQT6TW.js +2 -0
  7. package/dist/cdn/{ANMNNZTA.js → 2YI4HWFY.js} +39 -39
  8. package/dist/cdn/34WNZMJY.js +2 -0
  9. package/dist/cdn/43P4WOC4.js +2 -0
  10. package/dist/cdn/4G5JOLEP.js +2 -0
  11. package/dist/cdn/4MZJZQDO.js +2 -0
  12. package/dist/cdn/52QMEXI6.js +2 -0
  13. package/dist/cdn/5I75UYWD.js +2 -0
  14. package/dist/cdn/5M72DGYL.js +2 -0
  15. package/dist/cdn/5PG6PXDG.js +2 -0
  16. package/dist/cdn/6FGRLBTA.js +2 -0
  17. package/dist/cdn/6JNHTWDQ.js +2 -0
  18. package/dist/cdn/6YSH3ROL.js +2 -0
  19. package/dist/cdn/75Y43JLP.js +2 -0
  20. package/dist/cdn/777EBGS5.js +2 -0
  21. package/dist/cdn/7AVVBDQS.js +4 -0
  22. package/dist/cdn/7EDHTVVK.js +2 -0
  23. package/dist/cdn/7MHEEH5F.js +2 -0
  24. package/dist/cdn/7MKAC33Z.js +2 -0
  25. package/dist/cdn/7Y76VKGS.js +2 -0
  26. package/dist/cdn/AC2XSIOU.js +2 -0
  27. package/dist/cdn/AEESEH6N.js +2 -0
  28. package/dist/cdn/AYY2C4BW.js +2 -0
  29. package/dist/cdn/BH7WDRGU.js +2 -0
  30. package/dist/cdn/BZUQTY3A.js +2 -0
  31. package/dist/cdn/CMPHBGKB.js +2 -0
  32. package/dist/cdn/DDA7NVBX.js +2 -0
  33. package/dist/cdn/DMDXALHQ.js +2 -0
  34. package/dist/cdn/DX5LK7LS.js +2 -0
  35. package/dist/cdn/ERUYMQOC.js +2 -0
  36. package/dist/cdn/{CSNF7XRL.js → ESUMWLYT.js} +1 -1
  37. package/dist/cdn/EULFJ5JL.js +2 -0
  38. package/dist/cdn/EX27CNDS.js +2 -0
  39. package/dist/cdn/FIMXZMTB.js +2 -0
  40. package/dist/cdn/FYI7J2KF.js +2 -0
  41. package/dist/cdn/G42X3FFH.js +2 -0
  42. package/dist/cdn/GGZNH26O.js +2 -0
  43. package/dist/cdn/HIQSXKPT.js +3 -0
  44. package/dist/cdn/HS2WQJEO.js +2 -0
  45. package/dist/cdn/IBCUXQZ4.js +2 -0
  46. package/dist/cdn/IC4OZCXG.js +2 -0
  47. package/dist/cdn/JGD2M47O.js +2 -0
  48. package/dist/cdn/KGOERXN5.js +2 -0
  49. package/dist/cdn/{JEQDHNEJ.js → KPXH2MNB.js} +1 -1
  50. package/dist/cdn/KSBWHMXE.js +2 -0
  51. package/dist/cdn/{6KFD2LHE.js → L3ULFQN3.js} +1 -1
  52. package/dist/cdn/LKHNZDEC.js +2 -0
  53. package/dist/cdn/LXVLBS7T.js +2 -0
  54. package/dist/cdn/M5E3NFDP.js +2 -0
  55. package/dist/cdn/MKEUDI3M.js +2 -0
  56. package/dist/cdn/MKQPW6B4.js +2 -0
  57. package/dist/cdn/MVAMHZ3Q.js +2 -0
  58. package/dist/cdn/{VTJXTTAB.js → MZ2UZAFW.js} +1 -1
  59. package/dist/cdn/N265ZHHU.js +2 -0
  60. package/dist/cdn/N2S6YV3I.js +2 -0
  61. package/dist/cdn/N3EATDXE.js +2 -0
  62. package/dist/cdn/NLWP2JOG.js +2 -0
  63. package/dist/cdn/NR3BCOHU.js +3 -0
  64. package/dist/cdn/O2JEDVIA.js +2 -0
  65. package/dist/cdn/OB7IDW6S.js +2 -0
  66. package/dist/cdn/OBPCKG62.js +2 -0
  67. package/dist/cdn/OCERCT4I.js +2 -0
  68. package/dist/cdn/OFN7ED75.js +2 -0
  69. package/dist/cdn/OQSFVGUL.js +2 -0
  70. package/dist/cdn/PA3PSUQ3.js +2 -0
  71. package/dist/cdn/PYFMKPMO.js +2 -0
  72. package/dist/cdn/QRZ32JMG.js +2 -0
  73. package/dist/cdn/R3GNKVFS.js +2 -0
  74. package/dist/cdn/R3Y2F64T.js +2 -0
  75. package/dist/cdn/RBVV7JGY.js +102 -0
  76. package/dist/cdn/RSXO7AZM.js +2 -0
  77. package/dist/cdn/S32VCEG7.js +2 -0
  78. package/dist/cdn/S7ASARWB.js +2 -0
  79. package/dist/cdn/SBS4J65N.js +2 -0
  80. package/dist/cdn/SVMC3JP5.js +2 -0
  81. package/dist/cdn/SYXU6NZX.js +2 -0
  82. package/dist/cdn/T3CSQ5DU.js +2 -0
  83. package/dist/cdn/T3NJTAF3.js +2 -0
  84. package/dist/cdn/T53WJZQN.js +2 -0
  85. package/dist/cdn/TES5ZESK.js +2 -0
  86. package/dist/cdn/{XSMRKVR2.js → TJQGGNGV.js} +1 -1
  87. package/dist/cdn/TOO3T62Y.js +2 -0
  88. package/dist/cdn/U5ZB4YD6.js +2 -0
  89. package/dist/cdn/UK2A3DRS.js +2 -0
  90. package/dist/cdn/UNDCO72C.js +2 -0
  91. package/dist/cdn/UR537UXK.js +2 -0
  92. package/dist/cdn/VMAOMKFN.js +2 -0
  93. package/dist/cdn/VV7JMGHL.js +2 -0
  94. package/dist/cdn/W6CIWZSM.js +2 -0
  95. package/dist/cdn/WA5XK3HC.js +2 -0
  96. package/dist/cdn/WD4QY4YU.js +2 -0
  97. package/dist/cdn/WESXMGHU.js +2 -0
  98. package/dist/cdn/WFDVEHVL.js +2 -0
  99. package/dist/cdn/WI3CE5TT.js +2 -0
  100. package/dist/cdn/WNZ2PSFZ.js +2 -0
  101. package/dist/cdn/XLJSZ42M.js +2 -0
  102. package/dist/cdn/XM6GBBOL.js +2 -0
  103. package/dist/cdn/XOB365BI.js +2 -0
  104. package/dist/cdn/Y2AULE2F.js +2 -0
  105. package/dist/cdn/YE5ASSSN.js +2 -0
  106. package/dist/cdn/ZBLRD77K.js +2 -0
  107. package/dist/cdn/{5RMUCBSG.js → ZZRH7LXO.js} +1 -1
  108. package/dist/cdn/index.js +1 -1
  109. package/dist/chunks/axis-lines-symbol.js +12 -12
  110. package/dist/chunks/bar-chart-model.js +20 -47
  111. package/dist/chunks/bar-chart-series.js +10 -40
  112. package/dist/chunks/box-plot-data.js +132 -155
  113. package/dist/chunks/box-plot-model.js +18 -18
  114. package/dist/chunks/chart-model.js +76 -103
  115. package/dist/chunks/chart-object-literals.js +189 -0
  116. package/dist/chunks/chart-ui-utils.js +17 -16
  117. package/dist/chunks/chart-ui-utils2.js +91 -116
  118. package/dist/chunks/class-breaks.js +375 -196
  119. package/dist/chunks/combo-bar-line-chart-model.js +19 -18
  120. package/dist/chunks/data-labels-symbol.js +1 -1
  121. package/dist/chunks/data-labels-visibility.js +56 -84
  122. package/dist/chunks/data.js +82 -105
  123. package/dist/chunks/default.js +6 -7
  124. package/dist/chunks/gauge-model.js +42 -69
  125. package/dist/chunks/generate-x-axis-title.js +39 -66
  126. package/dist/chunks/heat-chart-model.js +183 -183
  127. package/dist/chunks/histogram-data.js +56 -80
  128. package/dist/chunks/histogram-model.js +24 -24
  129. package/dist/chunks/index.js +560 -21042
  130. package/dist/chunks/index2.js +8706 -596
  131. package/dist/chunks/index3.js +873 -160
  132. package/dist/chunks/index4.js +701 -76
  133. package/dist/chunks/index5.js +10794 -62
  134. package/dist/chunks/index6.js +99 -0
  135. package/dist/chunks/index7.js +66 -0
  136. package/dist/chunks/interfaces.js +31 -32
  137. package/dist/chunks/line-chart-model.js +12 -11
  138. package/dist/chunks/model-setter.js +44 -41
  139. package/dist/chunks/model-types.js +43 -0
  140. package/dist/chunks/model-with-y-guides.js +89 -116
  141. package/dist/chunks/negative-values-stacked-to-baseline.js +50 -79
  142. package/dist/chunks/pie-chart-data.js +89 -111
  143. package/dist/chunks/pie-chart-model.js +46 -70
  144. package/dist/chunks/radar-chart-model.js +35 -62
  145. package/dist/chunks/resource.js +8 -10
  146. package/dist/chunks/rotated-state.js +24 -52
  147. package/dist/chunks/scatterplot-model.js +90 -112
  148. package/dist/chunks/serial-chart-data.js +540 -530
  149. package/dist/chunks/serial-chart-model.js +90 -115
  150. package/dist/chunks/series-length.js +25 -53
  151. package/dist/chunks/series-types.js +21 -206
  152. package/dist/chunks/series.js +9 -38
  153. package/dist/chunks/time-zone.js +14 -15
  154. package/dist/chunks/type-guards.js +23 -132
  155. package/dist/chunks/type-guards2.js +100 -192
  156. package/dist/chunks/type-guards3.js +173 -0
  157. package/dist/chunks/utils.js +75 -97
  158. package/dist/chunks/utils2.js +34 -63
  159. package/dist/chunks/web-component-utils.js +85 -83
  160. package/dist/chunks/x-bounds.js +69 -95
  161. package/dist/components/arcgis-chart/customElement.js +3670 -3637
  162. package/dist/components/arcgis-charts-action-bar/customElement.js +8 -9
  163. package/dist/components/arcgis-charts-config-axis/customElement.js +10 -11
  164. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +33 -60
  165. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +47 -70
  166. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +33 -54
  167. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +37 -64
  168. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +15 -43
  169. package/dist/components/arcgis-charts-config-box-plot/customElement.js +12 -39
  170. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +87 -111
  171. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +41 -65
  172. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +13 -40
  173. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +18 -45
  174. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +17 -45
  175. package/dist/components/arcgis-charts-config-create-flow/customElement.js +47 -68
  176. package/dist/components/arcgis-charts-config-font-style/customElement.js +21 -48
  177. package/dist/components/arcgis-charts-config-format/customElement.js +55 -82
  178. package/dist/components/arcgis-charts-config-format-popover/customElement.js +12 -41
  179. package/dist/components/arcgis-charts-config-general/customElement.js +29 -55
  180. package/dist/components/arcgis-charts-config-guide/customElement.js +44 -68
  181. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +14 -43
  182. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -3
  183. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +10 -39
  184. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +29 -56
  185. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +153 -175
  186. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +56 -79
  187. package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -55
  188. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +39 -62
  189. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -50
  190. package/dist/components/arcgis-charts-config-line-chart/customElement.js +27 -54
  191. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +23 -46
  192. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +46 -69
  193. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +33 -61
  194. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +14 -42
  195. package/dist/components/arcgis-charts-config-line-style/customElement.js +9 -11
  196. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +28 -55
  197. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +24 -49
  198. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +42 -66
  199. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +38 -65
  200. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +15 -43
  201. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +31 -58
  202. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +31 -55
  203. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +16 -42
  204. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +10 -38
  205. package/dist/components/arcgis-charts-config-view-charts/customElement.js +21 -50
  206. package/dist/components/arcgis-charts-info-modal/customElement.js +17 -43
  207. package/dist/docs/api.json +1 -1
  208. package/dist/docs/docs.json +1 -1
  209. package/dist/docs/vscode.html-custom-data.json +1 -1
  210. package/dist/docs/web-types.json +1 -1
  211. package/dist/index.d.ts +57 -3
  212. package/dist/index.js +464 -459
  213. package/dist/json-schema/index.d.ts +4839 -4825
  214. package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -0
  215. package/dist/model.js +77 -39
  216. package/dist/spec/web-chart.d.ts +5 -1
  217. package/dist/utils/layer/index.d.ts +3 -1
  218. package/dist/utils/layer/utils/index.d.ts +16 -4
  219. package/package.json +3 -3
  220. package/dist/cdn/2NCZCQJQ.js +0 -2
  221. package/dist/cdn/2QWN4KMQ.js +0 -2
  222. package/dist/cdn/3HHF7GDV.js +0 -2
  223. package/dist/cdn/43EPRNLY.js +0 -2
  224. package/dist/cdn/53YROF54.js +0 -2
  225. package/dist/cdn/57M5BGHO.js +0 -2
  226. package/dist/cdn/5Y2AIQMX.js +0 -2
  227. package/dist/cdn/6CGECXEP.js +0 -2
  228. package/dist/cdn/6MDEAZCW.js +0 -2
  229. package/dist/cdn/6YLXJOBN.js +0 -2
  230. package/dist/cdn/7LE76H3V.js +0 -2
  231. package/dist/cdn/7OK6DOOJ.js +0 -2
  232. package/dist/cdn/7QJ77UCB.js +0 -2
  233. package/dist/cdn/7XCTW7TF.js +0 -2
  234. package/dist/cdn/ABPBMLW4.js +0 -4
  235. package/dist/cdn/ACBNPWST.js +0 -2
  236. package/dist/cdn/AU5NU5OU.js +0 -2
  237. package/dist/cdn/AUKWLONZ.js +0 -2
  238. package/dist/cdn/B3TAQSVG.js +0 -2
  239. package/dist/cdn/B7BDZS5Q.js +0 -2
  240. package/dist/cdn/B7OT7NHE.js +0 -2
  241. package/dist/cdn/BIW46U2E.js +0 -2
  242. package/dist/cdn/BNMVFWWL.js +0 -2
  243. package/dist/cdn/BUPTELGR.js +0 -2
  244. package/dist/cdn/C3EG6JVL.js +0 -2
  245. package/dist/cdn/CEML6AMG.js +0 -2
  246. package/dist/cdn/CSISDIV5.js +0 -2
  247. package/dist/cdn/CXSBPI44.js +0 -2
  248. package/dist/cdn/DEWZASZK.js +0 -2
  249. package/dist/cdn/FJFVBE6K.js +0 -2
  250. package/dist/cdn/FLBXUDIS.js +0 -2
  251. package/dist/cdn/FQKOG42T.js +0 -2
  252. package/dist/cdn/FTXNBE44.js +0 -2
  253. package/dist/cdn/FU6JT3UD.js +0 -2
  254. package/dist/cdn/H7SXQSDY.js +0 -2
  255. package/dist/cdn/HFHPPFTL.js +0 -2
  256. package/dist/cdn/IQ5ZYJIB.js +0 -2
  257. package/dist/cdn/IVSSNIVI.js +0 -2
  258. package/dist/cdn/J27JNN6U.js +0 -2
  259. package/dist/cdn/J5O4KJG3.js +0 -2
  260. package/dist/cdn/KJHX7M5S.js +0 -2
  261. package/dist/cdn/KKDZFW5O.js +0 -2
  262. package/dist/cdn/KRZLTTVV.js +0 -2
  263. package/dist/cdn/KUOSDD5D.js +0 -2
  264. package/dist/cdn/L767SIJD.js +0 -2
  265. package/dist/cdn/LSF52M7M.js +0 -2
  266. package/dist/cdn/LW3BORFM.js +0 -2
  267. package/dist/cdn/M3ATYECI.js +0 -2
  268. package/dist/cdn/M6BMA2X5.js +0 -2
  269. package/dist/cdn/MCSGNGSS.js +0 -2
  270. package/dist/cdn/MJEMDC6S.js +0 -2
  271. package/dist/cdn/MY2TTPFJ.js +0 -2
  272. package/dist/cdn/MZQHYO73.js +0 -2
  273. package/dist/cdn/N6ZYLQ35.js +0 -2
  274. package/dist/cdn/ODM6XDHJ.js +0 -2
  275. package/dist/cdn/PAPWPFW4.js +0 -2
  276. package/dist/cdn/PDDEFX6K.js +0 -2
  277. package/dist/cdn/PNQ6VVJK.js +0 -2
  278. package/dist/cdn/QCO44WFX.js +0 -2
  279. package/dist/cdn/QCZO6SPY.js +0 -2
  280. package/dist/cdn/QJQCXQZQ.js +0 -2
  281. package/dist/cdn/QLBJVTC3.js +0 -2
  282. package/dist/cdn/QLRYZVYC.js +0 -2
  283. package/dist/cdn/QRJS3CVV.js +0 -2
  284. package/dist/cdn/QWCMSPHD.js +0 -2
  285. package/dist/cdn/RCS3DD7Z.js +0 -104
  286. package/dist/cdn/S52W7JS7.js +0 -2
  287. package/dist/cdn/SDWC5FQU.js +0 -2
  288. package/dist/cdn/SLGQSOZB.js +0 -2
  289. package/dist/cdn/SNQFOXQP.js +0 -2
  290. package/dist/cdn/STPMMRCH.js +0 -2
  291. package/dist/cdn/SUYBENSN.js +0 -2
  292. package/dist/cdn/TAW7DR2R.js +0 -2
  293. package/dist/cdn/TUM7FWOK.js +0 -2
  294. package/dist/cdn/UFCW5HCY.js +0 -2
  295. package/dist/cdn/URPIV4FP.js +0 -2
  296. package/dist/cdn/URX6VCYJ.js +0 -2
  297. package/dist/cdn/V2LSSOBU.js +0 -2
  298. package/dist/cdn/V7JH3U65.js +0 -2
  299. package/dist/cdn/VFOLCHS4.js +0 -2
  300. package/dist/cdn/VFZ5WZJL.js +0 -2
  301. package/dist/cdn/WEAUUIMY.js +0 -2
  302. package/dist/cdn/WHL3PAOM.js +0 -2
  303. package/dist/cdn/WQRH2BWD.js +0 -2
  304. package/dist/cdn/WQRXJQDO.js +0 -2
  305. package/dist/cdn/WTIY4H4L.js +0 -2
  306. package/dist/cdn/WXEJ47F6.js +0 -2
  307. package/dist/cdn/XUAJWZRU.js +0 -2
  308. package/dist/cdn/XYTCID73.js +0 -2
  309. package/dist/cdn/Z7L63G6V.js +0 -2
  310. package/dist/cdn/ZJOBVONS.js +0 -2
  311. package/dist/cdn/ZZQFMONS.js +0 -2
  312. package/dist/chunks/setup-utils.js +0 -80
  313. package/dist/model/index.d.ts +0 -19
  314. package/dist/spec/index.d.ts +0 -8
  315. package/dist/utils/index.d.ts +0 -33
  316. /package/dist/cdn/{S5OM65RV.js → COYWSD6X.js} +0 -0
@@ -1,104 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as ha,d as ji,g as Rr,k as Bn,l as kr,n as Bo,r as $n,t as me,u as hr,v as Zt,w as Ot,x as Xe,y as be}from"./URX6VCYJ.js";import{c as Do,d as Dn,f as Mt,g as yt}from"./SEXKEROR.js";import{a as b,b as W,c as Ae,e as Vi,f as gt,h as Be,i as ma,j as $o,k as Q,l as bt,n as nt,o as qe,p as Mo,q as fr,s as qo,t as Ro,v as st,y as K}from"./KKDZFW5O.js";import{H as $t}from"./OC4AGIFL.js";import{b as Y,d as Bf}from"./QPIMTXPL.js";export default $arcgis.t(([ku,Yg,Wu,Xg,so,Li,eb,tb,{substitute:ke},oo,rb,ib,op,ab,fn,lp,{sqlLiteral:nb},sb,ob,lb,db,lo,{computeStatisticsHistograms:cb,computeRasterAttributeTable:ub,getCurrentRasterInfo:Sn,fetchPixelFeatureSet:pb},fb,hb,mb,cp,up])=>{var kd=Y((Va,Rd)=>{(function(t,e){typeof Va=="object"&&typeof Rd<"u"?e(Va):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(Va,(function(t){"use strict";function e(){for(var F=arguments.length,x=Array(F),A=0;A<F;A++)x[A]=arguments[A];if(x.length>1){x[0]=x[0].slice(0,-1);for(var M=x.length-1,q=1;q<M;++q)x[q]=x[q].slice(1,-1);return x[M]=x[M].slice(1),x.join("")}else return x[0]}function r(F){return"(?:"+F+")"}function a(F){return F===void 0?"undefined":F===null?"null":Object.prototype.toString.call(F).split(" ").pop().split("]").shift().toLowerCase()}function i(F){return F.toUpperCase()}function n(F){return F!=null?F instanceof Array?F:typeof F.length!="number"||F.split||F.setInterval||F.call?[F]:Array.prototype.slice.call(F):[]}function s(F,x){var A=F;if(x)for(var M in x)A[M]=x[M];return A}function o(F){var x="[A-Za-z]",A="[\\x0D]",M="[0-9]",q="[\\x22]",H=e(M,"[A-Fa-f]"),ee="[\\x0A]",pe="[\\x20]",ge=r(r("%[EFef]"+H+"%"+H+H+"%"+H+H)+"|"+r("%[89A-Fa-f]"+H+"%"+H+H)+"|"+r("%"+H+H)),je="[\\:\\/\\?\\#\\[\\]\\@]",le="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ne=e(je,le),Ve=F?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ee=F?"[\\uE000-\\uF8FF]":"[]",he=e(x,M,"[\\-\\.\\_\\~]",Ve),De=r(x+e(x,M,"[\\+\\-\\.]")+"*"),Se=r(r(ge+"|"+e(he,le,"[\\:]"))+"*"),$r=r(r("25[0-5]")+"|"+r("2[0-4]"+M)+"|"+r("1"+M+M)+"|"+r("[1-9]"+M)+"|"+M),ht=r(r("25[0-5]")+"|"+r("2[0-4]"+M)+"|"+r("1"+M+M)+"|"+r("0?[1-9]"+M)+"|0?0?"+M),Ft=r(ht+"\\."+ht+"\\."+ht+"\\."+ht),Ce=r(H+"{1,4}"),mt=r(r(Ce+"\\:"+Ce)+"|"+Ft),It=r(r(Ce+"\\:")+"{6}"+mt),Gt=r("\\:\\:"+r(Ce+"\\:")+"{5}"+mt),Mr=r(r(Ce)+"?\\:\\:"+r(Ce+"\\:")+"{4}"+mt),Jt=r(r(r(Ce+"\\:")+"{0,1}"+Ce)+"?\\:\\:"+r(Ce+"\\:")+"{3}"+mt),Mi=r(r(r(Ce+"\\:")+"{0,2}"+Ce)+"?\\:\\:"+r(Ce+"\\:")+"{2}"+mt),ua=r(r(r(Ce+"\\:")+"{0,3}"+Ce)+"?\\:\\:"+Ce+"\\:"+mt),pa=r(r(r(Ce+"\\:")+"{0,4}"+Ce)+"?\\:\\:"+mt),ii=r(r(r(Ce+"\\:")+"{0,5}"+Ce)+"?\\:\\:"+Ce),ai=r(r(r(Ce+"\\:")+"{0,6}"+Ce)+"?\\:\\:"),Yt=r([It,Gt,Mr,Jt,Mi,ua,pa,ii,ai].join("|")),ni=r(r(he+"|"+ge)+"+"),Ln=r(Yt+"\\%25"+ni),qr=r(Yt+r("\\%25|\\%(?!"+H+"{2})")+ni),Of=r("[vV]"+H+"+\\."+e(he,le,"[\\:]")+"+"),Af=r("\\["+r(qr+"|"+Yt+"|"+Of)+"\\]"),Po=r(r(ge+"|"+e(he,le))+"*"),qi=r(Af+"|"+Ft+"(?!"+Po+")|"+Po),Ri=r(M+"*"),Eo=r(r(Se+"@")+"?"+qi+r("\\:"+Ri)+"?"),ki=r(ge+"|"+e(he,le,"[\\:\\@]")),Pf=r(ki+"*"),Lo=r(ki+"+"),Ef=r(r(ge+"|"+e(he,le,"[\\@]"))+"+"),Xt=r(r("\\/"+Pf)+"*"),si=r("\\/"+r(Lo+Xt)+"?"),Nn=r(Ef+Xt),fa=r(Lo+Xt),oi="(?!"+ki+")",Gx=r(Xt+"|"+si+"|"+Nn+"|"+fa+"|"+oi),li=r(r(ki+"|"+e("[\\/\\?]",Ee))+"*"),Wi=r(r(ki+"|[\\/\\?]")+"*"),No=r(r("\\/\\/"+Eo+Xt)+"|"+si+"|"+fa+"|"+oi),Lf=r(De+"\\:"+No+r("\\?"+li)+"?"+r("\\#"+Wi)+"?"),Nf=r(r("\\/\\/"+Eo+Xt)+"|"+si+"|"+Nn+"|"+oi),Df=r(Nf+r("\\?"+li)+"?"+r("\\#"+Wi)+"?"),Zx=r(Lf+"|"+Df),Qx=r(De+"\\:"+No+r("\\?"+li)+"?"),Kx="^("+De+")\\:"+r(r("\\/\\/("+r("("+Se+")@")+"?("+qi+")"+r("\\:("+Ri+")")+"?)")+"?("+Xt+"|"+si+"|"+fa+"|"+oi+")")+r("\\?("+li+")")+"?"+r("\\#("+Wi+")")+"?$",Jx="^(){0}"+r(r("\\/\\/("+r("("+Se+")@")+"?("+qi+")"+r("\\:("+Ri+")")+"?)")+"?("+Xt+"|"+si+"|"+Nn+"|"+oi+")")+r("\\?("+li+")")+"?"+r("\\#("+Wi+")")+"?$",Yx="^("+De+")\\:"+r(r("\\/\\/("+r("("+Se+")@")+"?("+qi+")"+r("\\:("+Ri+")")+"?)")+"?("+Xt+"|"+si+"|"+fa+"|"+oi+")")+r("\\?("+li+")")+"?$",Xx="^"+r("\\#("+Wi+")")+"?$",eC="^"+r("("+Se+")@")+"?("+qi+")"+r("\\:("+Ri+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",x,M,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",he,le),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",he,le),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",he,le),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",he,le),"g"),NOT_QUERY:new RegExp(e("[^\\%]",he,le,"[\\:\\@\\/\\?]",Ee),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",he,le,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",he,le),"g"),UNRESERVED:new RegExp(he,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",he,Ne),"g"),PCT_ENCODED:new RegExp(ge,"g"),IPV4ADDRESS:new RegExp("^("+Ft+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Yt+")"+r(r("\\%25|\\%(?!"+H+"{2})")+"("+ni+")")+"?\\]?$")}}var l=o(!1),d=o(!0),c=(function(){function F(x,A){var M=[],q=!0,H=!1,ee=void 0;try{for(var pe=x[Symbol.iterator](),ge;!(q=(ge=pe.next()).done)&&(M.push(ge.value),!(A&&M.length===A));q=!0);}catch(je){H=!0,ee=je}finally{try{!q&&pe.return&&pe.return()}finally{if(H)throw ee}}return M}return function(x,A){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return F(x,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=function(F){if(Array.isArray(F)){for(var x=0,A=Array(F.length);x<F.length;x++)A[x]=F[x];return A}else return Array.from(F)},f=2147483647,p=36,h=1,y=26,m=38,g=700,v=72,S=128,w="-",T=/^xn--/,I=/[^\0-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=p-h,N=Math.floor,R=String.fromCharCode;function D(F){throw new RangeError(P[F])}function B(F,x){for(var A=[],M=F.length;M--;)A[M]=x(F[M]);return A}function k(F,x){var A=F.split("@"),M="";A.length>1&&(M=A[0]+"@",F=A[1]),F=F.replace(E,".");var q=F.split("."),H=B(q,x).join(".");return M+H}function $(F){for(var x=[],A=0,M=F.length;A<M;){var q=F.charCodeAt(A++);if(q>=55296&&q<=56319&&A<M){var H=F.charCodeAt(A++);(H&64512)==56320?x.push(((q&1023)<<10)+(H&1023)+65536):(x.push(q),A--)}else x.push(q)}return x}var j=function(x){return String.fromCodePoint.apply(String,u(x))},U=function(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:p},G=function(x,A){return x+22+75*(x<26)-((A!=0)<<5)},V=function(x,A,M){var q=0;for(x=M?N(x/g):x>>1,x+=N(x/A);x>O*y>>1;q+=p)x=N(x/O);return N(q+(O+1)*x/(x+m))},z=function(x){var A=[],M=x.length,q=0,H=S,ee=v,pe=x.lastIndexOf(w);pe<0&&(pe=0);for(var ge=0;ge<pe;++ge)x.charCodeAt(ge)>=128&&D("not-basic"),A.push(x.charCodeAt(ge));for(var je=pe>0?pe+1:0;je<M;){for(var le=q,Ne=1,Ve=p;;Ve+=p){je>=M&&D("invalid-input");var Ee=U(x.charCodeAt(je++));(Ee>=p||Ee>N((f-q)/Ne))&&D("overflow"),q+=Ee*Ne;var he=Ve<=ee?h:Ve>=ee+y?y:Ve-ee;if(Ee<he)break;var De=p-he;Ne>N(f/De)&&D("overflow"),Ne*=De}var Se=A.length+1;ee=V(q-le,Se,le==0),N(q/Se)>f-H&&D("overflow"),H+=N(q/Se),q%=Se,A.splice(q++,0,H)}return String.fromCodePoint.apply(String,A)},re=function(x){var A=[];x=$(x);var M=x.length,q=S,H=0,ee=v,pe=!0,ge=!1,je=void 0;try{for(var le=x[Symbol.iterator](),Ne;!(pe=(Ne=le.next()).done);pe=!0){var Ve=Ne.value;Ve<128&&A.push(R(Ve))}}catch(qr){ge=!0,je=qr}finally{try{!pe&&le.return&&le.return()}finally{if(ge)throw je}}var Ee=A.length,he=Ee;for(Ee&&A.push(w);he<M;){var De=f,Se=!0,$r=!1,ht=void 0;try{for(var Ft=x[Symbol.iterator](),Ce;!(Se=(Ce=Ft.next()).done);Se=!0){var mt=Ce.value;mt>=q&&mt<De&&(De=mt)}}catch(qr){$r=!0,ht=qr}finally{try{!Se&&Ft.return&&Ft.return()}finally{if($r)throw ht}}var It=he+1;De-q>N((f-H)/It)&&D("overflow"),H+=(De-q)*It,q=De;var Gt=!0,Mr=!1,Jt=void 0;try{for(var Mi=x[Symbol.iterator](),ua;!(Gt=(ua=Mi.next()).done);Gt=!0){var pa=ua.value;if(pa<q&&++H>f&&D("overflow"),pa==q){for(var ii=H,ai=p;;ai+=p){var Yt=ai<=ee?h:ai>=ee+y?y:ai-ee;if(ii<Yt)break;var ni=ii-Yt,Ln=p-Yt;A.push(R(G(Yt+ni%Ln,0))),ii=N(ni/Ln)}A.push(R(G(ii,0))),ee=V(H,It,he==Ee),H=0,++he}}}catch(qr){Mr=!0,Jt=qr}finally{try{!Gt&&Mi.return&&Mi.return()}finally{if(Mr)throw Jt}}++H,++q}return A.join("")},fe=function(x){return k(x,function(A){return T.test(A)?z(A.slice(4).toLowerCase()):A})},Ie=function(x){return k(x,function(A){return I.test(A)?"xn--"+re(A):A})},oe={version:"2.1.0",ucs2:{decode:$,encode:j},decode:z,encode:re,toASCII:Ie,toUnicode:fe},we={};function Fe(F){var x=F.charCodeAt(0),A=void 0;return x<16?A="%0"+x.toString(16).toUpperCase():x<128?A="%"+x.toString(16).toUpperCase():x<2048?A="%"+(x>>6|192).toString(16).toUpperCase()+"%"+(x&63|128).toString(16).toUpperCase():A="%"+(x>>12|224).toString(16).toUpperCase()+"%"+(x>>6&63|128).toString(16).toUpperCase()+"%"+(x&63|128).toString(16).toUpperCase(),A}function Me(F){for(var x="",A=0,M=F.length;A<M;){var q=parseInt(F.substr(A+1,2),16);if(q<128)x+=String.fromCharCode(q),A+=3;else if(q>=194&&q<224){if(M-A>=6){var H=parseInt(F.substr(A+4,2),16);x+=String.fromCharCode((q&31)<<6|H&63)}else x+=F.substr(A,6);A+=6}else if(q>=224){if(M-A>=9){var ee=parseInt(F.substr(A+4,2),16),pe=parseInt(F.substr(A+7,2),16);x+=String.fromCharCode((q&15)<<12|(ee&63)<<6|pe&63)}else x+=F.substr(A,9);A+=9}else x+=F.substr(A,3),A+=3}return x}function ut(F,x){function A(M){var q=Me(M);return q.match(x.UNRESERVED)?q:M}return F.scheme&&(F.scheme=String(F.scheme).replace(x.PCT_ENCODED,A).toLowerCase().replace(x.NOT_SCHEME,"")),F.userinfo!==void 0&&(F.userinfo=String(F.userinfo).replace(x.PCT_ENCODED,A).replace(x.NOT_USERINFO,Fe).replace(x.PCT_ENCODED,i)),F.host!==void 0&&(F.host=String(F.host).replace(x.PCT_ENCODED,A).toLowerCase().replace(x.NOT_HOST,Fe).replace(x.PCT_ENCODED,i)),F.path!==void 0&&(F.path=String(F.path).replace(x.PCT_ENCODED,A).replace(F.scheme?x.NOT_PATH:x.NOT_PATH_NOSCHEME,Fe).replace(x.PCT_ENCODED,i)),F.query!==void 0&&(F.query=String(F.query).replace(x.PCT_ENCODED,A).replace(x.NOT_QUERY,Fe).replace(x.PCT_ENCODED,i)),F.fragment!==void 0&&(F.fragment=String(F.fragment).replace(x.PCT_ENCODED,A).replace(x.NOT_FRAGMENT,Fe).replace(x.PCT_ENCODED,i)),F}function pt(F){return F.replace(/^0*(.*)/,"$1")||"0"}function Oe(F,x){var A=F.match(x.IPV4ADDRESS)||[],M=c(A,2),q=M[1];return q?q.split(".").map(pt).join("."):F}function xe(F,x){var A=F.match(x.IPV6ADDRESS)||[],M=c(A,3),q=M[1],H=M[2];if(q){for(var ee=q.toLowerCase().split("::").reverse(),pe=c(ee,2),ge=pe[0],je=pe[1],le=je?je.split(":").map(pt):[],Ne=ge.split(":").map(pt),Ve=x.IPV4ADDRESS.test(Ne[Ne.length-1]),Ee=Ve?7:8,he=Ne.length-Ee,De=Array(Ee),Se=0;Se<Ee;++Se)De[Se]=le[Se]||Ne[he+Se]||"";Ve&&(De[Ee-1]=Oe(De[Ee-1],x));var $r=De.reduce(function(It,Gt,Mr){if(!Gt||Gt==="0"){var Jt=It[It.length-1];Jt&&Jt.index+Jt.length===Mr?Jt.length++:It.push({index:Mr,length:1})}return It},[]),ht=$r.sort(function(It,Gt){return Gt.length-It.length})[0],Ft=void 0;if(ht&&ht.length>1){var Ce=De.slice(0,ht.index),mt=De.slice(ht.index+ht.length);Ft=Ce.join(":")+"::"+mt.join(":")}else Ft=De.join(":");return H&&(Ft+="%"+H),Ft}else return F}var Ct=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,We="".match(/(){0}/)[1]===void 0;function ue(F){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A={},M=x.iri!==!1?d:l;x.reference==="suffix"&&(F=(x.scheme?x.scheme+":":"")+"//"+F);var q=F.match(Ct);if(q){We?(A.scheme=q[1],A.userinfo=q[3],A.host=q[4],A.port=parseInt(q[5],10),A.path=q[6]||"",A.query=q[7],A.fragment=q[8],isNaN(A.port)&&(A.port=q[5])):(A.scheme=q[1]||void 0,A.userinfo=F.indexOf("@")!==-1?q[3]:void 0,A.host=F.indexOf("//")!==-1?q[4]:void 0,A.port=parseInt(q[5],10),A.path=q[6]||"",A.query=F.indexOf("?")!==-1?q[7]:void 0,A.fragment=F.indexOf("#")!==-1?q[8]:void 0,isNaN(A.port)&&(A.port=F.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?q[4]:void 0)),A.host&&(A.host=xe(Oe(A.host,M),M)),A.scheme===void 0&&A.userinfo===void 0&&A.host===void 0&&A.port===void 0&&!A.path&&A.query===void 0?A.reference="same-document":A.scheme===void 0?A.reference="relative":A.fragment===void 0?A.reference="absolute":A.reference="uri",x.reference&&x.reference!=="suffix"&&x.reference!==A.reference&&(A.error=A.error||"URI is not a "+x.reference+" reference.");var H=we[(x.scheme||A.scheme||"").toLowerCase()];if(!x.unicodeSupport&&(!H||!H.unicodeSupport)){if(A.host&&(x.domainHost||H&&H.domainHost))try{A.host=oe.toASCII(A.host.replace(M.PCT_ENCODED,Me).toLowerCase())}catch(ee){A.error=A.error||"Host's domain name can not be converted to ASCII via punycode: "+ee}ut(A,l)}else ut(A,M);H&&H.parse&&H.parse(A,x)}else A.error=A.error||"URI can not be parsed.";return A}function pr(F,x){var A=x.iri!==!1?d:l,M=[];return F.userinfo!==void 0&&(M.push(F.userinfo),M.push("@")),F.host!==void 0&&M.push(xe(Oe(String(F.host),A),A).replace(A.IPV6ADDRESS,function(q,H,ee){return"["+H+(ee?"%25"+ee:"")+"]"})),(typeof F.port=="number"||typeof F.port=="string")&&(M.push(":"),M.push(String(F.port))),M.length?M.join(""):void 0}var Kt=/^\.\.?\//,Dr=/^\/\.(\/|$)/,Br=/^\/\.\.(\/|$)/,Je=/^\/?(?:.|\n)*?(?=\/|$)/;function Tt(F){for(var x=[];F.length;)if(F.match(Kt))F=F.replace(Kt,"");else if(F.match(Dr))F=F.replace(Dr,"/");else if(F.match(Br))F=F.replace(Br,"/"),x.pop();else if(F==="."||F==="..")F="";else{var A=F.match(Je);if(A){var M=A[0];F=F.slice(M.length),x.push(M)}else throw new Error("Unexpected dot segment condition")}return x.join("")}function at(F){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=x.iri?d:l,M=[],q=we[(x.scheme||F.scheme||"").toLowerCase()];if(q&&q.serialize&&q.serialize(F,x),F.host&&!A.IPV6ADDRESS.test(F.host)){if(x.domainHost||q&&q.domainHost)try{F.host=x.iri?oe.toUnicode(F.host):oe.toASCII(F.host.replace(A.PCT_ENCODED,Me).toLowerCase())}catch(pe){F.error=F.error||"Host's domain name can not be converted to "+(x.iri?"Unicode":"ASCII")+" via punycode: "+pe}}ut(F,A),x.reference!=="suffix"&&F.scheme&&(M.push(F.scheme),M.push(":"));var H=pr(F,x);if(H!==void 0&&(x.reference!=="suffix"&&M.push("//"),M.push(H),F.path&&F.path.charAt(0)!=="/"&&M.push("/")),F.path!==void 0){var ee=F.path;!x.absolutePath&&(!q||!q.absolutePath)&&(ee=Tt(ee)),H===void 0&&(ee=ee.replace(/^\/\//,"/%2F")),M.push(ee)}return F.query!==void 0&&(M.push("?"),M.push(F.query)),F.fragment!==void 0&&(M.push("#"),M.push(F.fragment)),M.join("")}function tt(F,x){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},M=arguments[3],q={};return M||(F=ue(at(F,A),A),x=ue(at(x,A),A)),A=A||{},!A.tolerant&&x.scheme?(q.scheme=x.scheme,q.userinfo=x.userinfo,q.host=x.host,q.port=x.port,q.path=Tt(x.path||""),q.query=x.query):(x.userinfo!==void 0||x.host!==void 0||x.port!==void 0?(q.userinfo=x.userinfo,q.host=x.host,q.port=x.port,q.path=Tt(x.path||""),q.query=x.query):(x.path?(x.path.charAt(0)==="/"?q.path=Tt(x.path):((F.userinfo!==void 0||F.host!==void 0||F.port!==void 0)&&!F.path?q.path="/"+x.path:F.path?q.path=F.path.slice(0,F.path.lastIndexOf("/")+1)+x.path:q.path=x.path,q.path=Tt(q.path)),q.query=x.query):(q.path=F.path,x.query!==void 0?q.query=x.query:q.query=F.query),q.userinfo=F.userinfo,q.host=F.host,q.port=F.port),q.scheme=F.scheme),q.fragment=x.fragment,q}function Ut(F,x,A){var M=s({scheme:"null"},A);return at(tt(ue(F,M),ue(x,M),M,!0),M)}function ft(F,x){return typeof F=="string"?F=at(ue(F,x),x):a(F)==="object"&&(F=ue(at(F,x),x)),F}function ca(F,x,A){return typeof F=="string"?F=at(ue(F,A),A):a(F)==="object"&&(F=at(F,A)),typeof x=="string"?x=at(ue(x,A),A):a(x)==="object"&&(x=at(x,A)),F===x}function Pn(F,x){return F&&F.toString().replace(!x||!x.iri?l.ESCAPE:d.ESCAPE,Fe)}function Bt(F,x){return F&&F.toString().replace(!x||!x.iri?l.PCT_ENCODED:d.PCT_ENCODED,Me)}var Bi={scheme:"http",domainHost:!0,parse:function(x,A){return x.host||(x.error=x.error||"HTTP URIs must have a host."),x},serialize:function(x,A){var M=String(x.scheme).toLowerCase()==="https";return(x.port===(M?443:80)||x.port==="")&&(x.port=void 0),x.path||(x.path="/"),x}},wo={scheme:"https",domainHost:Bi.domainHost,parse:Bi.parse,serialize:Bi.serialize};function xo(F){return typeof F.secure=="boolean"?F.secure:String(F.scheme).toLowerCase()==="wss"}var $i={scheme:"ws",domainHost:!0,parse:function(x,A){var M=x;return M.secure=xo(M),M.resourceName=(M.path||"/")+(M.query?"?"+M.query:""),M.path=void 0,M.query=void 0,M},serialize:function(x,A){if((x.port===(xo(x)?443:80)||x.port==="")&&(x.port=void 0),typeof x.secure=="boolean"&&(x.scheme=x.secure?"wss":"ws",x.secure=void 0),x.resourceName){var M=x.resourceName.split("?"),q=c(M,2),H=q[0],ee=q[1];x.path=H&&H!=="/"?H:void 0,x.query=ee,x.resourceName=void 0}return x.fragment=void 0,x}},Co={scheme:"wss",domainHost:$i.domainHost,parse:$i.parse,serialize:$i.serialize},mf={},yf=!0,To="[A-Za-z0-9\\-\\.\\_\\~"+(yf?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Ht="[0-9A-Fa-f]",gf=r(r("%[EFef]"+Ht+"%"+Ht+Ht+"%"+Ht+Ht)+"|"+r("%[89A-Fa-f]"+Ht+"%"+Ht+Ht)+"|"+r("%"+Ht+Ht)),bf="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",vf="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Sf=e(vf,'[\\"\\\\]'),wf="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",xf=new RegExp(To,"g"),ri=new RegExp(gf,"g"),Cf=new RegExp(e("[^]",bf,"[\\.]",'[\\"]',Sf),"g"),Fo=new RegExp(e("[^]",To,wf),"g"),Tf=Fo;function En(F){var x=Me(F);return x.match(xf)?x:F}var Io={scheme:"mailto",parse:function(x,A){var M=x,q=M.to=M.path?M.path.split(","):[];if(M.path=void 0,M.query){for(var H=!1,ee={},pe=M.query.split("&"),ge=0,je=pe.length;ge<je;++ge){var le=pe[ge].split("=");switch(le[0]){case"to":for(var Ne=le[1].split(","),Ve=0,Ee=Ne.length;Ve<Ee;++Ve)q.push(Ne[Ve]);break;case"subject":M.subject=Bt(le[1],A);break;case"body":M.body=Bt(le[1],A);break;default:H=!0,ee[Bt(le[0],A)]=Bt(le[1],A);break}}H&&(M.headers=ee)}M.query=void 0;for(var he=0,De=q.length;he<De;++he){var Se=q[he].split("@");if(Se[0]=Bt(Se[0]),A.unicodeSupport)Se[1]=Bt(Se[1],A).toLowerCase();else try{Se[1]=oe.toASCII(Bt(Se[1],A).toLowerCase())}catch($r){M.error=M.error||"Email address's domain name can not be converted to ASCII via punycode: "+$r}q[he]=Se.join("@")}return M},serialize:function(x,A){var M=x,q=n(x.to);if(q){for(var H=0,ee=q.length;H<ee;++H){var pe=String(q[H]),ge=pe.lastIndexOf("@"),je=pe.slice(0,ge).replace(ri,En).replace(ri,i).replace(Cf,Fe),le=pe.slice(ge+1);try{le=A.iri?oe.toUnicode(le):oe.toASCII(Bt(le,A).toLowerCase())}catch(he){M.error=M.error||"Email address's domain name can not be converted to "+(A.iri?"Unicode":"ASCII")+" via punycode: "+he}q[H]=je+"@"+le}M.path=q.join(",")}var Ne=x.headers=x.headers||{};x.subject&&(Ne.subject=x.subject),x.body&&(Ne.body=x.body);var Ve=[];for(var Ee in Ne)Ne[Ee]!==mf[Ee]&&Ve.push(Ee.replace(ri,En).replace(ri,i).replace(Fo,Fe)+"="+Ne[Ee].replace(ri,En).replace(ri,i).replace(Tf,Fe));return Ve.length&&(M.query=Ve.join("&")),M}},Ff=/^([^\:]+)\:(.*)/,Oo={scheme:"urn",parse:function(x,A){var M=x.path&&x.path.match(Ff),q=x;if(M){var H=A.scheme||q.scheme||"urn",ee=M[1].toLowerCase(),pe=M[2],ge=H+":"+(A.nid||ee),je=we[ge];q.nid=ee,q.nss=pe,q.path=void 0,je&&(q=je.parse(q,A))}else q.error=q.error||"URN can not be parsed.";return q},serialize:function(x,A){var M=A.scheme||x.scheme||"urn",q=x.nid,H=M+":"+(A.nid||q),ee=we[H];ee&&(x=ee.serialize(x,A));var pe=x,ge=x.nss;return pe.path=(q||A.nid)+":"+ge,pe}},If=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ao={scheme:"urn:uuid",parse:function(x,A){var M=x;return M.uuid=M.nss,M.nss=void 0,!A.tolerant&&(!M.uuid||!M.uuid.match(If))&&(M.error=M.error||"UUID is not valid."),M},serialize:function(x,A){var M=x;return M.nss=(x.uuid||"").toLowerCase(),M}};we[Bi.scheme]=Bi,we[wo.scheme]=wo,we[$i.scheme]=$i,we[Co.scheme]=Co,we[Io.scheme]=Io,we[Oo.scheme]=Oo,we[Ao.scheme]=Ao,t.SCHEMES=we,t.pctEncChar=Fe,t.pctDecChars=Me,t.parse=ue,t.removeDotSegments=Tt,t.serialize=at,t.resolveComponents=tt,t.resolve=Ut,t.normalize=ft,t.equal=ca,t.escapeComponent=Pn,t.unescapeComponent=Bt,Object.defineProperty(t,"__esModule",{value:!0})}))});var _a=Y((oC,Wd)=>{"use strict";Wd.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 Vd=Y((lC,jd)=>{"use strict";jd.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 Ur=Y((dC,Ud)=>{"use strict";Ud.exports={copy:Sy,checkDataType:ws,checkDataTypes:wy,coerceToTypes:xy,toHash:Cs,getProperty:Ts,escapeQuotes:Fs,equal:_a(),ucs2length:Vd(),varOccurences:Fy,varReplace:Iy,schemaHasRules:Oy,schemaHasRulesExcept:Ay,schemaUnknownRules:Py,toQuotedString:xs,getPathExpr:Ey,getPath:Ly,getData:By,unescapeFragment:$y,unescapeJsonPointer:Os,escapeFragment:My,escapeJsonPointer:Is};function Sy(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function ws(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 wy(t,e,r){switch(t.length){case 1:return ws(t[0],e,r,!0);default:var a="",i=Cs(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?" && ":"")+ws(n,e,r,!0);return a}}var _d=Cs(["string","number","integer","boolean","null"]);function xy(t,e){if(Array.isArray(e)){for(var r=[],a=0;a<e.length;a++){var i=e[a];(_d[i]||t==="array"&&i==="array")&&(r[r.length]=i)}if(r.length)return r}else{if(_d[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Cs(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var Cy=/^[a-z$_][a-z$_0-9]*$/i,Ty=/'|\\/g;function Ts(t){return typeof t=="number"?"["+t+"]":Cy.test(t)?"."+t:"['"+Fs(t)+"']"}function Fs(t){return t.replace(Ty,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Fy(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function Iy(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function Oy(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function Ay(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var a in t)if(a!=r&&e[a])return!0}function Py(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function xs(t){return"'"+Fs(t)+"'"}function Ey(t,e,r,a){var i=r?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return zd(t,i)}function Ly(t,e,r){var a=xs(r?"/"+Is(e):Ts(e));return zd(t,a)}var Ny=/^\/(?:[^~]|~0|~1)*$/,Dy=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function By(t,e,r){var a,i,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!Ny.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,n="rootData"}else{if(s=t.match(Dy),!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 c=l[d];c&&(n+=Ts(Os(c)),o+=" && "+n)}return o}function zd(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function $y(t){return Os(decodeURIComponent(t))}function My(t){return encodeURIComponent(Is(t))}function Is(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Os(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var As=Y((cC,Hd)=>{"use strict";var qy=Ur();Hd.exports=Ry;function Ry(t){qy.copy(t,this)}});var Zd=Y((uC,Gd)=>{"use strict";var wr=Gd.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(){};za(e,a,i,t,"",t)};wr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};wr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};wr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};wr.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 za(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 c in a){var u=a[c];if(Array.isArray(u)){if(c in wr.arrayKeywords)for(var f=0;f<u.length;f++)za(t,e,r,u[f],i+"/"+c+"/"+f,n,i,c,a,f)}else if(c in wr.propsKeywords){if(u&&typeof u=="object")for(var p in u)za(t,e,r,u[p],i+"/"+c+"/"+ky(p),n,i,c,a,p)}else(c in wr.keywords||t.allKeys&&!(c in wr.skipKeywords))&&za(t,e,r,u,i+"/"+c,n,i,c,a)}r(a,i,n,s,o,l,d)}}function ky(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ka=Y((pC,Yd)=>{"use strict";var Xi=kd(),Qd=_a(),Za=Ur(),Ua=As(),Wy=Zd();Yd.exports=Cr;Cr.normalizeId=xr;Cr.fullPath=Ha;Cr.url=Ga;Cr.ids=Uy;Cr.inlineRef=Ps;Cr.schema=Qa;function Cr(t,e,r){var a=this._refs[r];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return Cr.call(this,t,e,a);if(a=a||this._schemas[r],a instanceof Ua)return Ps(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var i=Qa.call(this,e,r),n,s,o;return i&&(n=i.schema,e=i.root,o=i.baseId),n instanceof Ua?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=Ps(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function Qa(t,e){var r=Xi.parse(e),a=Jd(r),i=Ha(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==i){var n=xr(a),s=this._refs[n];if(typeof s=="string")return jy.call(this,t,s,r);if(s instanceof Ua)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof Ua){if(s.validate||this._compile(s),n==xr(e))return{schema:s,root:t,baseId:i};t=s}else return;if(!t.schema)return;i=Ha(this._getId(t.schema))}return Kd.call(this,r,i,t.schema,t)}function jy(t,e,r){var a=Qa.call(this,t,e);if(a){var i=a.schema,n=a.baseId;t=a.root;var s=this._getId(i);return s&&(n=Ga(n,s)),Kd.call(this,r,n,i,t)}}var Vy=Za.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Kd(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=Za.unescapeFragment(s),r=r[s],r===void 0)break;var o;if(!Vy[s]&&(o=this._getId(r),o&&(e=Ga(e,o)),r.$ref)){var l=Ga(e,r.$ref),d=Qa.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 _y=Za.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Ps(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Es(t);if(e)return Ls(t)<=e}function Es(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!Es(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!Es(e)))return!1;return!0}function Ls(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+=Ls(r)),e==1/0)return 1/0}else for(var i in t){if(i=="$ref")return 1/0;if(_y[i])e++;else if(r=t[i],typeof r=="object"&&(e+=Ls(r)+1),e==1/0)return 1/0}return e}function Ha(t,e){e!==!1&&(t=xr(t));var r=Xi.parse(t);return Jd(r)}function Jd(t){return Xi.serialize(t).split("#")[0]+"#"}var zy=/#\/?$/;function xr(t){return t?t.replace(zy,""):""}function Ga(t,e){return e=xr(e),Xi.resolve(t,e)}function Uy(t){var e=xr(this._getId(t)),r={"":e},a={"":Ha(e,!1)},i={},n=this;return Wy(t,{allKeys:!0},function(s,o,l,d,c,u,f){if(o!==""){var p=n._getId(s),h=r[d],y=a[d]+"/"+c;if(f!==void 0&&(y+="/"+(typeof f=="number"?f:Za.escapeFragment(f))),typeof p=="string"){p=h=xr(h?Xi.resolve(h,p):p);var m=n._refs[p];if(typeof m=="string"&&(m=n._refs[m]),m&&m.schema){if(!Qd(s,m.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=xr(y))if(p[0]=="#"){if(i[p]&&!Qd(s,i[p]))throw new Error('id "'+p+'" resolves to more than one schema');i[p]=s}else n._refs[p]=y}r[o]=h,a[o]=y}}),i}});var Ja=Y((fC,ec)=>{"use strict";var Ns=Ka();ec.exports={Validation:Xd(Hy),MissingRef:Xd(Ds)};function Hy(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}Ds.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function Ds(t,e,r){this.message=r||Ds.message(t,e),this.missingRef=Ns.url(t,e),this.missingSchema=Ns.normalizeId(Ns.fullPath(this.missingRef))}function Xd(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Bs=Y((hC,tc)=>{"use strict";tc.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]},c={key:l,value:s[l]};return n(d,c)}}})(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,c=Object.keys(s).sort(a&&a(s));for(l="",o=0;o<c.length;o++){var u=c[o],f=n(s[u]);f&&(l&&(l+=","),l+=JSON.stringify(u)+":"+f)}return i.splice(d,1),"{"+l+"}"}})(t)}});var $s=Y((mC,rc)=>{"use strict";rc.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",c=e.level,u=e.dataLevel,f=e.schema[r],p=e.schemaPath+e.util.getProperty(r),h=e.errSchemaPath+"/"+r,T=!e.opts.allErrors,P,y="data"+(u||""),w="valid"+c;if(e.schema===!1){e.isTop?T=!0:i+=" var "+w+" = false; ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(P||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),i+=" } "):i+=" {} ";var g=i;i=m.pop(),!e.compositeRule&&T?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; 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 "+w+" = true; ";return e.isTop&&(i+=" }; return validate; "),i}if(e.isTop){var v=e.isTop,c=e.level=0,u=e.dataLevel=0,y="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 c=e.level,u=e.dataLevel,y="data"+(u||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");i+=" var errs_"+c+" = errors;"}var w="valid"+c,T=!e.opts.allErrors,I="",E="",P,O=e.schema.type,N=Array.isArray(O);if(O&&e.opts.nullable&&e.schema.nullable===!0&&(N?O.indexOf("null")==-1&&(O=O.concat("null")):O!="null"&&(O=[O,"null"],N=!0)),N&&O.length==1&&(O=O[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")),O){if(e.opts.coerceTypes)var R=e.util.coerceToTypes(e.opts.coerceTypes,O);var D=e.RULES.types[O];if(R||N||D===!0||D&&!Je(D)){var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type",B=N?"checkDataTypes":"checkDataType";if(i+=" if ("+e.util[B](O,y,e.opts.strictNumbers,!0)+") { ",R){var k="dataType"+c,$="coerced"+c;i+=" var "+k+" = typeof "+y+"; var "+$+" = undefined; ",e.opts.coerceTypes=="array"&&(i+=" if ("+k+" == 'object' && Array.isArray("+y+") && "+y+".length == 1) { "+y+" = "+y+"[0]; "+k+" = typeof "+y+"; if ("+e.util.checkDataType(e.schema.type,y,e.opts.strictNumbers)+") "+$+" = "+y+"; } "),i+=" if ("+$+" !== undefined) ; ";var j=R;if(j)for(var U,G=-1,V=j.length-1;G<V;)U=j[G+=1],U=="string"?i+=" else if ("+k+" == 'number' || "+k+" == 'boolean') "+$+" = '' + "+y+"; else if ("+y+" === null) "+$+" = ''; ":U=="number"||U=="integer"?(i+=" else if ("+k+" == 'boolean' || "+y+" === null || ("+k+" == 'string' && "+y+" && "+y+" == +"+y+" ",U=="integer"&&(i+=" && !("+y+" % 1)"),i+=")) "+$+" = +"+y+"; "):U=="boolean"?i+=" else if ("+y+" === 'false' || "+y+" === 0 || "+y+" === null) "+$+" = false; else if ("+y+" === 'true' || "+y+" === 1) "+$+" = true; ":U=="null"?i+=" else if ("+y+" === '' || "+y+" === 0 || "+y+" === false) "+$+" = null; ":e.opts.coerceTypes=="array"&&U=="array"&&(i+=" else if ("+k+" == 'string' || "+k+" == 'number' || "+k+" == 'boolean' || "+y+" == null) "+$+" = ["+y+"]; ");i+=" else { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(P||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",N?i+=""+O.join(","):i+=""+O,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",N?i+=""+O.join(","):i+=""+O,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),i+=" } "):i+=" {} ";var g=i;i=m.pop(),!e.compositeRule&&T?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+$+" !== undefined) { ";var z=u?"data"+(u-1||""):"parentData",re=u?e.dataPathArr[u]:"parentDataProperty";i+=" "+y+" = "+$+"; ",u||(i+="if ("+z+" !== undefined)"),i+=" "+z+"["+re+"] = "+$+"; } "}else{var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(P||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",N?i+=""+O.join(","):i+=""+O,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",N?i+=""+O.join(","):i+=""+O,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),i+=" } "):i+=" {} ";var g=i;i=m.pop(),!e.compositeRule&&T?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; 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_"+c,i+=") { ",E+="}");else{var fe=e.RULES;if(fe){for(var D,Ie=-1,oe=fe.length-1;Ie<oe;)if(D=fe[Ie+=1],Je(D)){if(D.type&&(i+=" if ("+e.util.checkDataType(D.type,y,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(D.type=="object"&&e.schema.properties){var f=e.schema.properties,we=Object.keys(f),Fe=we;if(Fe)for(var Me,ut=-1,pt=Fe.length-1;ut<pt;){Me=Fe[ut+=1];var Oe=f[Me];if(Oe.default!==void 0){var xe=y+e.util.getProperty(Me);if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+xe;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+xe+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+xe+" === null || "+xe+" === '' "),i+=" ) "+xe+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Oe.default)+" ":i+=" "+JSON.stringify(Oe.default)+" ",i+="; "}}}else if(D.type=="array"&&Array.isArray(e.schema.items)){var Ct=e.schema.items;if(Ct){for(var Oe,G=-1,We=Ct.length-1;G<We;)if(Oe=Ct[G+=1],Oe.default!==void 0){var xe=y+"["+G+"]";if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+xe;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+xe+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+xe+" === null || "+xe+" === '' "),i+=" ) "+xe+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Oe.default)+" ":i+=" "+JSON.stringify(Oe.default)+" ",i+="; "}}}}var ue=D.rules;if(ue){for(var pr,Kt=-1,Dr=ue.length-1;Kt<Dr;)if(pr=ue[Kt+=1],Tt(pr)){var Br=pr.code(e,pr.keyword,D.type);Br&&(i+=" "+Br+" ",T&&(I+="}"))}}if(T&&(i+=" "+I+" ",I=""),D.type&&(i+=" } ",O&&O===D.type&&!R)){i+=" else { ";var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(P||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",N?i+=""+O.join(","):i+=""+O,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",N?i+=""+O.join(","):i+=""+O,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),i+=" } "):i+=" {} ";var g=i;i=m.pop(),!e.compositeRule&&T?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}T&&(i+=" if (errors === ",v?i+="0":i+="errs_"+c,i+=") { ",E+="}")}}}T&&(i+=" "+E+" "),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 "+w+" = errors === errs_"+c+";";function Je(tt){for(var Ut=tt.rules,ft=0;ft<Ut.length;ft++)if(Tt(Ut[ft]))return!0}function Tt(tt){return e.schema[tt.keyword]!==void 0||tt.implements&&at(tt)}function at(tt){for(var Ut=tt.implements,ft=0;ft<Ut.length;ft++)if(e.schema[Ut[ft]]!==void 0)return!0}return i}});var oc=Y((yC,sc)=>{"use strict";var Ya=Ka(),en=Ur(),ac=Ja(),Gy=Bs(),ic=$s(),Zy=en.ucs2length,Qy=_a(),Ky=ac.Validation;sc.exports=Ms;function Ms(t,e,r,a){var i=this,n=this._opts,s=[void 0],o={},l=[],d={},c=[],u={},f=[];e=e||{schema:t,refVal:s,refs:o};var p=Jy.call(this,t,e,a),h=this._compilations[p.index];if(p.compiling)return h.callValidate=S;var y=this._formats,m=this.RULES;try{var g=w(t,e,r,a);h.validate=g;var v=h.callValidate;return v&&(v.schema=g.schema,v.errors=null,v.refs=g.refs,v.refVal=g.refVal,v.root=g.root,v.$async=g.$async,n.sourceCode&&(v.source=g.source)),g}finally{Yy.call(this,t,e,a)}function S(){var B=h.validate,k=B.apply(this,arguments);return S.errors=B.errors,k}function w(B,k,$,j){var U=!k||k&&k.schema==B;if(k.schema!=e.schema)return Ms.call(i,B,k,$,j);var G=B.$async===!0,V=ic({isTop:!0,schema:B,isRoot:U,baseId:j,root:k,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:ac.MissingRef,RULES:m,validate:ic,util:en,resolve:Ya,resolveRef:T,usePattern:N,useDefault:R,useCustomRule:D,opts:n,formats:y,logger:i.logger,self:i});V=Xa(s,tg)+Xa(l,Xy)+Xa(c,eg)+Xa(f,rg)+V,n.processCode&&(V=n.processCode(V,B));var z;try{var re=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",V);z=re(i,m,y,e,s,c,f,Qy,Zy,Ky),s[0]=z}catch(fe){throw i.logger.error("Error compiling schema, function code:",V),fe}return z.schema=B,z.errors=null,z.refs=o,z.refVal=s,z.root=U?z:k,G&&(z.$async=!0),n.sourceCode===!0&&(z.source={code:V,patterns:l,defaults:c}),z}function T(B,k,$){k=Ya.url(B,k);var j=o[k],U,G;if(j!==void 0)return U=s[j],G="refVal["+j+"]",O(U,G);if(!$&&e.refs){var V=e.refs[k];if(V!==void 0)return U=e.refVal[V],G=I(k,U),O(U,G)}G=I(k);var z=Ya.call(i,w,e,k);if(z===void 0){var re=r&&r[k];re&&(z=Ya.inlineRef(re,n.inlineRefs)?re:Ms.call(i,re,e,r,B))}if(z===void 0)E(k);else return P(k,z),O(z,G)}function I(B,k){var $=s.length;return s[$]=k,o[B]=$,"refVal"+$}function E(B){delete o[B]}function P(B,k){var $=o[B];s[$]=k}function O(B,k){return typeof B=="object"||typeof B=="boolean"?{code:k,schema:B,inline:!0}:{code:k,$async:B&&!!B.$async}}function N(B){var k=d[B];return k===void 0&&(k=d[B]=l.length,l[k]=B),"pattern"+k}function R(B){switch(typeof B){case"boolean":case"number":return""+B;case"string":return en.toQuotedString(B);case"object":if(B===null)return"null";var k=Gy(B),$=u[k];return $===void 0&&($=u[k]=c.length,c[$]=B),"default"+$}}function D(B,k,$,j){if(i._opts.validateSchema!==!1){var U=B.definition.dependencies;if(U&&!U.every(function(Fe){return Object.prototype.hasOwnProperty.call($,Fe)}))throw new Error("parent schema must have all required keywords: "+U.join(","));var G=B.definition.validateSchema;if(G){var V=G(k);if(!V){var z="keyword schema is invalid: "+i.errorsText(G.errors);if(i._opts.validateSchema=="log")i.logger.error(z);else throw new Error(z)}}}var re=B.definition.compile,fe=B.definition.inline,Ie=B.definition.macro,oe;if(re)oe=re.call(i,k,$,j);else if(Ie)oe=Ie.call(i,k,$,j),n.validateSchema!==!1&&i.validateSchema(oe,!0);else if(fe)oe=fe.call(i,j,B.keyword,k,$);else if(oe=B.definition.validate,!oe)return;if(oe===void 0)throw new Error('custom keyword "'+B.keyword+'"failed to compile');var we=f.length;return f[we]=oe,{code:"customRule"+we,validate:oe}}}function Jy(t,e,r){var a=nc.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 Yy(t,e,r){var a=nc.call(this,t,e,r);a>=0&&this._compilations.splice(a,1)}function nc(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 Xy(t,e){return"var pattern"+t+" = new RegExp("+en.toQuotedString(e[t])+");"}function eg(t){return"var default"+t+" = defaults["+t+"];"}function tg(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function rg(t){return"var customRule"+t+" = customRules["+t+"];"}function Xa(t,e){if(!t.length)return"";for(var r="",a=0;a<t.length;a++)r+=e(a,t);return r}});var dc=Y((gC,lc)=>{"use strict";var tn=lc.exports=function(){this._cache={}};tn.prototype.put=function(e,r){this._cache[e]=r};tn.prototype.get=function(e){return this._cache[e]};tn.prototype.del=function(e){delete this._cache[e]};tn.prototype.clear=function(){this._cache={}}});var wc=Y((bC,Sc)=>{"use strict";var ig=Ur(),ag=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ng=[0,31,28,31,30,31,30,31,31,30,31,30,31],sg=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,cc=/^(?=.{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,og=/^(?:[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,lg=/^(?:[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,uc=/^(?:(?:[^\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,pc=/^(?:(?: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,fc=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,hc=/^(?:\/(?:[^~/]|~0|~1)*)*$/,mc=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,yc=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Sc.exports=rn;function rn(t){return t=t=="full"?"full":"fast",ig.copy(rn[t])}rn.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":uc,url:pc,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:cc,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:vc,uuid:fc,"json-pointer":hc,"json-pointer-uri-fragment":mc,"relative-json-pointer":yc};rn.full={date:gc,time:bc,"date-time":ug,uri:fg,"uri-reference":lg,"uri-template":uc,url:pc,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:cc,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:vc,uuid:fc,"json-pointer":hc,"json-pointer-uri-fragment":mc,"relative-json-pointer":yc};function dg(t){return t%4===0&&(t%100!==0||t%400===0)}function gc(t){var e=t.match(ag);if(!e)return!1;var r=+e[1],a=+e[2],i=+e[3];return a>=1&&a<=12&&i>=1&&i<=(a==2&&dg(r)?29:ng[a])}function bc(t,e){var r=t.match(sg);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 cg=/t|\s/i;function ug(t){var e=t.split(cg);return e.length==2&&gc(e[0])&&bc(e[1],!0)}var pg=/\/|:/;function fg(t){return pg.test(t)&&og.test(t)}var hg=/[^\\]\\Z/;function vc(t){if(hg.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Cc=Y((vC,xc)=>{"use strict";xc.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,c="data"+(s||""),u="valid"+n,f,p;if(o=="#"||o=="#/")e.isRoot?(f=e.async,p="validate"):(f=e.root.schema.$async===!0,p="root.refVal[0]");else{var h=e.resolveRef(e.baseId,o,e.isRoot);if(h===void 0){var y=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(y);var m=m||[];m.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: "+c+" "),i+=" } "):i+=" {} ";var g=i;i=m.pop(),!e.compositeRule&&d?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(i+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(y),d&&(i+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,y)}else if(h.inline){var v=e.util.copy(e);v.level++;var S="valid"+v.level;v.schema=h.schema,v.schemaPath="",v.errSchemaPath=o;var w=e.validate(v).replace(/validate\.schema/g,h.code);i+=" "+w+" ",d&&(i+=" if ("+S+") { ")}else f=h.$async===!0||e.async&&h.$async!==!1,p=h.code}if(p){var m=m||[];m.push(i),i="",e.opts.passContext?i+=" "+p+".call(this, ":i+=" "+p+"( ",i+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var T=s?"data"+(s-1||""):"parentData",I=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+T+" , "+I+", rootData) ";var E=i;if(i=m.pop(),f){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(i+=" var "+u+"; "),i+=" try { await "+E+"; ",d&&(i+=" "+u+" = 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+=" "+u+" = false; "),i+=" } ",d&&(i+=" if ("+u+") { ")}else i+=" if (!"+E+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",d&&(i+=" else { ")}return i}});var Fc=Y((SC,Tc)=>{"use strict";Tc.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),c="";d.level++;var u="valid"+d.level,f=d.baseId,p=!0,h=n;if(h)for(var y,m=-1,g=h.length-1;m<g;)y=h[m+=1],(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all))&&(p=!1,d.schema=y,d.schemaPath=s+"["+m+"]",d.errSchemaPath=o+"/"+m,i+=" "+e.validate(d)+" ",d.baseId=f,l&&(i+=" if ("+u+") { ",c+="}"));return l&&(p?i+=" if (true) { ":i+=" "+c.slice(0,-1)+" "),i}});var Oc=Y((wC,Ic)=>{"use strict";Ic.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,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,g=o.every(function(P){return e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all)});if(g){var v=h.baseId;i+=" var "+p+" = errors; var "+f+" = false; ";var S=e.compositeRule;e.compositeRule=h.compositeRule=!0;var w=o;if(w)for(var T,I=-1,E=w.length-1;I<E;)T=w[I+=1],h.schema=T,h.schemaPath=l+"["+I+"]",h.errSchemaPath=d+"/"+I,i+=" "+e.validate(h)+" ",h.baseId=v,i+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",y+="}";e.compositeRule=h.compositeRule=S,i+=" "+y+" if (!"+f+") { 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: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(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 c&&(i+=" if (true) { ");return i}});var Pc=Y((xC,Ac)=>{"use strict";Ac.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 Lc=Y((CC,Ec)=>{"use strict";Ec.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,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,p||(i+=" var schema"+n+" = validate.schema"+l+";"),i+="var "+f+" = equal("+u+", schema"+n+"); if (!"+f+") { ";var y=y||[];y.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: "+u+" "),i+=" } "):i+=" {} ";var m=i;return i=y.pop(),!e.compositeRule&&c?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+=" }",c&&(i+=" else { "),i}});var Dc=Y((TC,Nc)=>{"use strict";Nc.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,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,g="i"+n,v=h.dataLevel=e.dataLevel+1,S="data"+v,w=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 "+f+";",T){var I=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,i+=" var "+m+" = false; for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var E=u+"["+g+"]";h.dataPathArr[v]=g;var P=e.validate(h);h.baseId=w,e.util.varOccurences(P,S)<2?i+=" "+e.util.varReplace(P,S,E)+" ":i+=" var "+S+" = "+E+"; "+P+" ",i+=" if ("+m+") break; } ",e.compositeRule=h.compositeRule=I,i+=" "+y+" if (!"+m+") {"}else i+=" if ("+u+".length == 0) {";var O=O||[];O.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: "+u+" "),i+=" } "):i+=" {} ";var N=i;return i=O.pop(),!e.compositeRule&&c?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 $c=Y((FC,Bc)=>{"use strict";Bc.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,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var y="valid"+p.level,m={},g={},v=e.opts.ownProperties;for(I in o)if(I!="__proto__"){var S=o[I],w=Array.isArray(S)?g:m;w[I]=S}i+="var "+f+" = errors;";var T=e.errorPath;i+="var missing"+n+";";for(var I in g)if(w=g[I],w.length){if(i+=" if ( "+u+e.util.getProperty(I)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(I)+"') "),c){i+=" && ( ";var E=w;if(E)for(var P,O=-1,N=E.length-1;O<N;){P=E[O+=1],O&&(i+=" || ");var R=e.util.getProperty(P),D=u+R;i+=" ( ( "+D+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:R)+") ) "}i+=")) { ";var B="missing"+n,k="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(T,B,!0):T+" + "+B);var $=$||[];$.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(I)+"', missingProperty: '"+k+"', depsCount: "+w.length+", deps: '"+e.util.escapeQuotes(w.length==1?w[0]:w.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",w.length==1?i+="property "+e.util.escapeQuotes(w[0]):i+="properties "+e.util.escapeQuotes(w.join(", ")),i+=" when property "+e.util.escapeQuotes(I)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var j=i;i=$.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+j+"]); ":i+=" validate.errors = ["+j+"]; return false; ":i+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var U=w;if(U)for(var P,G=-1,V=U.length-1;G<V;){P=U[G+=1];var R=e.util.getProperty(P),k=e.util.escapeQuotes(P),D=u+R;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(T,P,e.opts.jsonPointers)),i+=" if ( "+D+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(I)+"', missingProperty: '"+k+"', depsCount: "+w.length+", deps: '"+e.util.escapeQuotes(w.length==1?w[0]:w.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",w.length==1?i+="property "+e.util.escapeQuotes(w[0]):i+="properties "+e.util.escapeQuotes(w.join(", ")),i+=" when property "+e.util.escapeQuotes(I)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",c&&(h+="}",i+=" else { ")}e.errorPath=T;var z=p.baseId;for(var I in m){var S=m[I];(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))&&(i+=" "+y+" = true; if ( "+u+e.util.getProperty(I)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(I)+"') "),i+=") { ",p.schema=S,p.schemaPath=l+e.util.getProperty(I),p.errSchemaPath=d+"/"+e.util.escapeFragment(I),i+=" "+e.validate(p)+" ",p.baseId=z,i+=" } ",c&&(i+=" if ("+y+") { ",h+="}"))}return c&&(i+=" "+h+" if ("+f+" == errors) {"),i}});var qc=Y((IC,Mc)=>{"use strict";Mc.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,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var y="i"+n,m="schema"+n;p||(i+=" var "+m+" = validate.schema"+l+";"),i+="var "+f+";",p&&(i+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),i+=""+f+" = false;for (var "+y+"=0; "+y+"<"+m+".length; "+y+"++) if (equal("+u+", "+m+"["+y+"])) { "+f+" = true; break; }",p&&(i+=" } "),i+=" if (!"+f+") { ";var g=g||[];g.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: "+u+" "),i+=" } "):i+=" {} ";var v=i;return i=g.pop(),!e.compositeRule&&c?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+=" }",c&&(i+=" else { "),i}});var kc=Y((OC,Rc)=>{"use strict";Rc.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,c=!e.opts.allErrors,u="data"+(s||"");if(e.opts.format===!1)return c&&(i+=" if (true) { "),i;var f=e.opts.$data&&o&&o.$data,p;f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=e.opts.unknownFormats,y=Array.isArray(h);if(f){var m="format"+n,g="isObject"+n,v="formatType"+n;i+=" var "+m+" = formats["+p+"]; var "+g+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+v+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(i+=" var async"+n+" = "+m+".async; "),i+=" "+m+" = "+m+".validate; } if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" (",h!="ignore"&&(i+=" ("+p+" && !"+m+" ",y&&(i+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),i+=") || "),i+=" ("+m+" && "+v+" == '"+a+"' && !(typeof "+m+" == 'function' ? ",e.async?i+=" (async"+n+" ? await "+m+"("+u+") : "+m+"("+u+")) ":i+=" "+m+"("+u+") ",i+=" : "+m+".test("+u+"))))) {"}else{var m=e.formats[o];if(!m){if(h=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(i+=" if (true) { "),i;if(y&&h.indexOf(o)>=0)return c&&(i+=" if (true) { "),i;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var g=typeof m=="object"&&!(m instanceof RegExp)&&m.validate,v=g&&m.type||"string";if(g){var S=m.async===!0;m=m.validate}if(v!=a)return c&&(i+=" if (true) { "),i;if(S){if(!e.async)throw new Error("async format in sync schema");var w="formats"+e.util.getProperty(o)+".validate";i+=" if (!(await "+w+"("+u+"))) { "}else{i+=" if (! ";var w="formats"+e.util.getProperty(o);g&&(w+=".validate"),typeof m=="function"?i+=" "+w+"("+u+") ":i+=" "+w+".test("+u+") ",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: ",f?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match format "`,f?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var I=i;return i=T.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+I+"]); ":i+=" validate.errors = ["+I+"]; return false; ":i+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}});var jc=Y((AC,Wc)=>{"use strict";Wc.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,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e);h.level++;var y="valid"+h.level,m=e.schema.then,g=e.schema.else,v=m!==void 0&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all)),S=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),w=h.baseId;if(v||S){var T;h.createErrors=!1,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,i+=" var "+p+" = errors; var "+f+" = true; ";var I=e.compositeRule;e.compositeRule=h.compositeRule=!0,i+=" "+e.validate(h)+" ",h.baseId=w,h.createErrors=!0,i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=I,v?(i+=" if ("+y+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(h)+" ",h.baseId=w,i+=" "+f+" = "+y+"; ",v&&S?(T="ifClause"+n,i+=" var "+T+" = 'then'; "):T="'then'",i+=" } ",S&&(i+=" else { ")):i+=" if (!"+y+") { ",S&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(h)+" ",h.baseId=w,i+=" "+f+" = "+y+"; ",v&&S?(T="ifClause"+n,i+=" var "+T+" = 'else'; "):T="'else'",i+=" } "),i+=" if (!"+f+") { 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: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",c&&(i+=" else { ")}else c&&(i+=" if (true) { ");return i}});var _c=Y((PC,Vc)=>{"use strict";Vc.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,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,g="i"+n,v=h.dataLevel=e.dataLevel+1,S="data"+v,w=e.baseId;if(i+="var "+p+" = errors;var "+f+";",Array.isArray(o)){var T=e.schema.additionalItems;if(T===!1){i+=" "+f+" = "+u+".length <= "+o.length+"; ";var I=d;d=e.errSchemaPath+"/additionalItems",i+=" if (!"+f+") { ";var E=E||[];E.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: "+u+" "),i+=" } "):i+=" {} ";var P=i;i=E.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+P+"]); ":i+=" validate.errors = ["+P+"]; return false; ":i+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",d=I,c&&(y+="}",i+=" else { ")}var O=o;if(O){for(var N,R=-1,D=O.length-1;R<D;)if(N=O[R+=1],e.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:e.util.schemaHasRules(N,e.RULES.all)){i+=" "+m+" = true; if ("+u+".length > "+R+") { ";var B=u+"["+R+"]";h.schema=N,h.schemaPath=l+"["+R+"]",h.errSchemaPath=d+"/"+R,h.errorPath=e.util.getPathExpr(e.errorPath,R,e.opts.jsonPointers,!0),h.dataPathArr[v]=R;var k=e.validate(h);h.baseId=w,e.util.varOccurences(k,S)<2?i+=" "+e.util.varReplace(k,S,B)+" ":i+=" var "+S+" = "+B+"; "+k+" ",i+=" } ",c&&(i+=" if ("+m+") { ",y+="}")}}if(typeof T=="object"&&(e.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all))){h.schema=T,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+m+" = true; if ("+u+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+u+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var B=u+"["+g+"]";h.dataPathArr[v]=g;var k=e.validate(h);h.baseId=w,e.util.varOccurences(k,S)<2?i+=" "+e.util.varReplace(k,S,B)+" ":i+=" var "+S+" = "+B+"; "+k+" ",c&&(i+=" if (!"+m+") break; "),i+=" } } ",c&&(i+=" if ("+m+") { ",y+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=l,h.errSchemaPath=d,i+=" for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var B=u+"["+g+"]";h.dataPathArr[v]=g;var k=e.validate(h);h.baseId=w,e.util.varOccurences(k,S)<2?i+=" "+e.util.varReplace(k,S,B)+" ":i+=" var "+S+" = "+B+"; "+k+" ",c&&(i+=" if (!"+m+") break; "),i+=" }"}return c&&(i+=" "+y+" if ("+p+" == errors) {"),i}});var qs=Y((EC,zc)=>{"use strict";zc.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,c=!e.opts.allErrors,w,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=r=="maximum",y=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[y],g=e.opts.$data&&m&&m.$data,v=h?"<":">",S=h?">":"<",w=void 0;if(!(f||typeof o=="number"||o===void 0))throw new Error(r+" must be number");if(!(g||m===void 0||typeof m=="number"||typeof m=="boolean"))throw new Error(y+" must be number or boolean");if(g){var T=e.util.getData(m.$data,s,e.dataPathArr),I="exclusive"+n,E="exclType"+n,P="exclIsNumber"+n,O="op"+n,N="' + "+O+" + '";i+=" var schemaExcl"+n+" = "+T+"; ",T="schemaExcl"+n,i+=" var "+I+"; var "+E+" = typeof "+T+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var w=y,R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(w||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: '"+y+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var D=i;i=R.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+E+" == 'number' ? ( ("+I+" = "+p+" === undefined || "+T+" "+v+"= "+p+") ? "+u+" "+S+"= "+T+" : "+u+" "+S+" "+p+" ) : ( ("+I+" = "+T+" === true) ? "+u+" "+S+"= "+p+" : "+u+" "+S+" "+p+" ) || "+u+" !== "+u+") { var op"+n+" = "+I+" ? '"+v+"' : '"+v+"='; ",o===void 0&&(w=y,d=e.errSchemaPath+"/"+y,p=T,f=g)}else{var P=typeof m=="number",N=v;if(P&&f){var O="'"+N+"'";i+=" if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" ( "+p+" === undefined || "+m+" "+v+"= "+p+" ? "+u+" "+S+"= "+m+" : "+u+" "+S+" "+p+" ) || "+u+" !== "+u+") { "}else{P&&o===void 0?(I=!0,w=y,d=e.errSchemaPath+"/"+y,p=m,S+="="):(P&&(p=Math[h?"min":"max"](m,o)),m===(P?p:!0)?(I=!0,w=y,d=e.errSchemaPath+"/"+y,S+="="):(I=!1,N+="="));var O="'"+N+"'";i+=" if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+u+" "+S+" "+p+" || "+u+" !== "+u+") { "}}w=w||r;var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(w||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+O+", limit: "+p+", exclusive: "+I+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+N+" ",f?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var D=i;return i=R.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}});var Rs=Y((LC,Uc)=>{"use strict";Uc.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,c=!e.opts.allErrors,y,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var h=r=="maxItems"?">":"<";i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+u+".length "+h+" "+p+") { ";var y=r,m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(y||"_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 ",f?i+="' + "+p+" + '":i+=""+o,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}});var ks=Y((NC,Hc)=>{"use strict";Hc.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,c=!e.opts.allErrors,y,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var h=r=="maxLength"?">":"<";i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?i+=" "+u+".length ":i+=" ucs2length("+u+") ",i+=" "+h+" "+p+") { ";var y=r,m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(y||"_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 ",f?i+="' + "+p+" + '":i+=""+o,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}});var Ws=Y((DC,Gc)=>{"use strict";Gc.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,c=!e.opts.allErrors,y,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var h=r=="maxProperties"?">":"<";i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" Object.keys("+u+").length "+h+" "+p+") { ";var y=r,m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(y||"_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 ",f?i+="' + "+p+" + '":i+=""+o,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}});var Qc=Y((BC,Zc)=>{"use strict";Zc.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,c=!e.opts.allErrors,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");i+="var division"+n+";if (",f&&(i+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),i+=" (division"+n+" = "+u+" / "+p+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+n+" !== parseInt(division"+n+") ",i+=" ) ",f&&(i+=" ) "),i+=" ) { ";var h=h||[];h.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 ",f?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var y=i;return i=h.pop(),!e.compositeRule&&c?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+="} ",c&&(i+=" else { "),i}});var Jc=Y(($C,Kc)=>{"use strict";Kc.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,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e);p.level++;var h="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 "+f+" = errors; ";var y=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var m;p.opts.allErrors&&(m=p.opts.allErrors,p.opts.allErrors=!1),i+=" "+e.validate(p)+" ",p.createErrors=!0,m&&(p.opts.allErrors=m),e.compositeRule=p.compositeRule=y,i+=" if ("+h+") { ";var g=g||[];g.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: "+u+" "),i+=" } "):i+=" {} ";var v=i;i=g.pop(),!e.compositeRule&&c?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 = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; 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: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(i+=" if (false) { ");return i}});var Xc=Y((MC,Yc)=>{"use strict";Yc.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,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,g=h.baseId,v="prevValid"+n,S="passingSchemas"+n;i+="var "+p+" = errors , "+v+" = false , "+f+" = false , "+S+" = null; ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0;var T=o;if(T)for(var I,E=-1,P=T.length-1;E<P;)I=T[E+=1],(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:e.util.schemaHasRules(I,e.RULES.all))?(h.schema=I,h.schemaPath=l+"["+E+"]",h.errSchemaPath=d+"/"+E,i+=" "+e.validate(h)+" ",h.baseId=g):i+=" var "+m+" = true; ",E&&(i+=" if ("+m+" && "+v+") { "+f+" = false; "+S+" = ["+S+", "+E+"]; } else { ",y+="}"),i+=" if ("+m+") { "+f+" = "+v+" = true; "+S+" = "+E+"; }";return e.compositeRule=h.compositeRule=w,i+=""+y+"if (!"+f+") { 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: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(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 tu=Y((qC,eu)=>{"use strict";eu.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,c=!e.opts.allErrors,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=f?"(new RegExp("+p+"))":e.usePattern(o);i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" !"+h+".test("+u+") ) { ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",f?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,f?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var m=i;return i=y.pop(),!e.compositeRule&&c?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+="} ",c&&(i+=" else { "),i}});var iu=Y((RC,ru)=>{"use strict";ru.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,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var y="valid"+p.level,m="key"+n,g="idx"+n,v=p.dataLevel=e.dataLevel+1,S="data"+v,w="dataProperties"+n,T=Object.keys(o||{}).filter(G),I=e.schema.patternProperties||{},E=Object.keys(I).filter(G),P=e.schema.additionalProperties,O=T.length||E.length,N=P===!1,R=typeof P=="object"&&Object.keys(P).length,D=e.opts.removeAdditional,B=N||R||D,k=e.opts.ownProperties,$=e.baseId,j=e.schema.required;if(j&&!(e.opts.$data&&j.$data)&&j.length<e.opts.loopRequired)var U=e.util.toHash(j);function G(Bt){return Bt!=="__proto__"}if(i+="var "+f+" = errors;var "+y+" = true;",k&&(i+=" var "+w+" = undefined;"),B){if(k?i+=" "+w+" = "+w+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+w+".length; "+g+"++) { var "+m+" = "+w+"["+g+"]; ":i+=" for (var "+m+" in "+u+") { ",O){if(i+=" var isAdditional"+n+" = !(false ",T.length)if(T.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+m+") ";else{var V=T;if(V)for(var z,re=-1,fe=V.length-1;re<fe;)z=V[re+=1],i+=" || "+m+" == "+e.util.toQuotedString(z)+" "}if(E.length){var Ie=E;if(Ie)for(var oe,we=-1,Fe=Ie.length-1;we<Fe;)oe=Ie[we+=1],i+=" || "+e.usePattern(oe)+".test("+m+") "}i+=" ); if (isAdditional"+n+") { "}if(D=="all")i+=" delete "+u+"["+m+"]; ";else{var Me=e.errorPath,ut="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),N)if(D)i+=" delete "+u+"["+m+"]; ";else{i+=" "+y+" = false; ";var pt=d;d=e.errSchemaPath+"/additionalProperties";var Oe=Oe||[];Oe.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: "+u+" "),i+=" } "):i+=" {} ";var xe=i;i=Oe.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+xe+"]); ":i+=" validate.errors = ["+xe+"]; return false; ":i+=" var err = "+xe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=pt,c&&(i+=" break; ")}else if(R)if(D=="failing"){i+=" var "+f+" = errors; ";var Ct=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=P,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var We=u+"["+m+"]";p.dataPathArr[v]=m;var ue=e.validate(p);p.baseId=$,e.util.varOccurences(ue,S)<2?i+=" "+e.util.varReplace(ue,S,We)+" ":i+=" var "+S+" = "+We+"; "+ue+" ",i+=" if (!"+y+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=p.compositeRule=Ct}else{p.schema=P,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var We=u+"["+m+"]";p.dataPathArr[v]=m;var ue=e.validate(p);p.baseId=$,e.util.varOccurences(ue,S)<2?i+=" "+e.util.varReplace(ue,S,We)+" ":i+=" var "+S+" = "+We+"; "+ue+" ",c&&(i+=" if (!"+y+") break; ")}e.errorPath=Me}O&&(i+=" } "),i+=" } ",c&&(i+=" if ("+y+") { ",h+="}")}var pr=e.opts.useDefaults&&!e.compositeRule;if(T.length){var Kt=T;if(Kt)for(var z,Dr=-1,Br=Kt.length-1;Dr<Br;){z=Kt[Dr+=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 Tt=e.util.getProperty(z),We=u+Tt,at=pr&&Je.default!==void 0;p.schema=Je,p.schemaPath=l+Tt,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 ue=e.validate(p);if(p.baseId=$,e.util.varOccurences(ue,S)<2){ue=e.util.varReplace(ue,S,We);var tt=We}else{var tt=S;i+=" var "+S+" = "+We+"; "}if(at)i+=" "+ue+" ";else{if(U&&U[z]){i+=" if ( "+tt+" === undefined ",k&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+y+" = false; ";var Me=e.errorPath,pt=d,Ut=e.util.escapeQuotes(z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Me,z,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Oe=Oe||[];Oe.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+Ut+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+Ut+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var xe=i;i=Oe.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+xe+"]); ":i+=" validate.errors = ["+xe+"]; return false; ":i+=" var err = "+xe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=pt,e.errorPath=Me,i+=" } else { "}else c?(i+=" if ( "+tt+" === undefined ",k&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+y+" = true; } else { "):(i+=" if ("+tt+" !== undefined ",k&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(z)+"') "),i+=" ) { ");i+=" "+ue+" } "}}c&&(i+=" if ("+y+") { ",h+="}")}}if(E.length){var ft=E;if(ft)for(var oe,ca=-1,Pn=ft.length-1;ca<Pn;){oe=ft[ca+=1];var Je=I[oe];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(oe),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),k?i+=" "+w+" = "+w+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+w+".length; "+g+"++) { var "+m+" = "+w+"["+g+"]; ":i+=" for (var "+m+" in "+u+") { ",i+=" if ("+e.usePattern(oe)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var We=u+"["+m+"]";p.dataPathArr[v]=m;var ue=e.validate(p);p.baseId=$,e.util.varOccurences(ue,S)<2?i+=" "+e.util.varReplace(ue,S,We)+" ":i+=" var "+S+" = "+We+"; "+ue+" ",c&&(i+=" if (!"+y+") break; "),i+=" } ",c&&(i+=" else "+y+" = true; "),i+=" } ",c&&(i+=" if ("+y+") { ",h+="}")}}}return c&&(i+=" "+h+" if ("+f+" == errors) {"),i}});var nu=Y((kC,au)=>{"use strict";au.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,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var y="valid"+p.level;if(i+="var "+f+" = 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 m="key"+n,g="idx"+n,v="i"+n,S="' + "+m+" + '",w=p.dataLevel=e.dataLevel+1,T="data"+w,I="dataProperties"+n,E=e.opts.ownProperties,P=e.baseId;E&&(i+=" var "+I+" = undefined; "),E?i+=" "+I+" = "+I+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+I+".length; "+g+"++) { var "+m+" = "+I+"["+g+"]; ":i+=" for (var "+m+" in "+u+") { ",i+=" var startErrs"+n+" = errors; ";var O=m,N=e.compositeRule;e.compositeRule=p.compositeRule=!0;var R=e.validate(p);p.baseId=P,e.util.varOccurences(R,T)<2?i+=" "+e.util.varReplace(R,T,O)+" ":i+=" var "+T+" = "+O+"; "+R+" ",e.compositeRule=p.compositeRule=N,i+=" if (!"+y+") { for (var "+v+"=startErrs"+n+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+m+"; } 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: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),c&&(i+=" break; "),i+=" } }"}return c&&(i+=" "+h+" if ("+f+" == errors) {"),i}});var ou=Y((WC,su)=>{"use strict";su.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,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var y="schema"+n;if(!p)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],g=o;if(g)for(var v,S=-1,w=g.length-1;S<w;){v=g[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))||(m[m.length]=v)}}else var m=o;if(p||m.length){var I=e.errorPath,E=p||m.length>=e.opts.loopRequired,P=e.opts.ownProperties;if(c)if(i+=" var missing"+n+"; ",E){p||(i+=" var "+y+" = validate.schema"+l+"; ");var O="i"+n,N="schema"+n+"["+O+"]",R="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(I,N,e.opts.jsonPointers)),i+=" var "+f+" = true; ",p&&(i+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),i+=" for (var "+O+" = 0; "+O+" < "+y+".length; "+O+"++) { "+f+" = "+u+"["+y+"["+O+"]] !== undefined ",P&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", "+y+"["+O+"]) "),i+="; if (!"+f+") break; } ",p&&(i+=" } "),i+=" if (!"+f+") { ";var D=D||[];D.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+R+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+R+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var B=i;i=D.pop(),!e.compositeRule&&c?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+=" } else { "}else{i+=" if ( ";var k=m;if(k)for(var $,O=-1,j=k.length-1;O<j;){$=k[O+=1],O&&(i+=" || ");var U=e.util.getProperty($),G=u+U;i+=" ( ( "+G+" === undefined ",P&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes($)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?$:U)+") ) "}i+=") { ";var N="missing"+n,R="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(I,N,!0):I+" + "+N);var D=D||[];D.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+R+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+R+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var B=i;i=D.pop(),!e.compositeRule&&c?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+=" } else { "}else if(E){p||(i+=" var "+y+" = validate.schema"+l+"; ");var O="i"+n,N="schema"+n+"["+O+"]",R="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(I,N,e.opts.jsonPointers)),p&&(i+=" if ("+y+" && !Array.isArray("+y+")) { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+R+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+R+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+y+" !== undefined) { "),i+=" for (var "+O+" = 0; "+O+" < "+y+".length; "+O+"++) { if ("+u+"["+y+"["+O+"]] === undefined ",P&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+y+"["+O+"]) "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+R+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+R+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(i+=" } ")}else{var V=m;if(V)for(var $,z=-1,re=V.length-1;z<re;){$=V[z+=1];var U=e.util.getProperty($),R=e.util.escapeQuotes($),G=u+U;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(I,$,e.opts.jsonPointers)),i+=" if ( "+G+" === undefined ",P&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes($)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+R+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+R+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=I}else c&&(i+=" if (true) {");return i}});var du=Y((jC,lu)=>{"use strict";lu.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,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;if(p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,(o||p)&&e.opts.uniqueItems!==!1){p&&(i+=" var "+f+"; if ("+h+" === false || "+h+" === undefined) "+f+" = true; else if (typeof "+h+" != 'boolean') "+f+" = false; else { "),i+=" var i = "+u+".length , "+f+" = true , j; if (i > 1) { ";var y=e.schema.items&&e.schema.items.type,m=Array.isArray(y);if(!y||y=="object"||y=="array"||m&&(y.indexOf("object")>=0||y.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+f+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ";var g="checkDataType"+(m?"s":"");i+=" if ("+e.util[g](y,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+f+") { ";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: "+u+" "),i+=" } "):i+=" {} ";var S=i;i=v.pop(),!e.compositeRule&&c?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+=" } ",c&&(i+=" else { ")}else c&&(i+=" if (true) { ");return i}});var uu=Y((VC,cu)=>{"use strict";cu.exports={$ref:Cc(),allOf:Fc(),anyOf:Oc(),$comment:Pc(),const:Lc(),contains:Dc(),dependencies:$c(),enum:qc(),format:kc(),if:jc(),items:_c(),maximum:qs(),minimum:qs(),maxItems:Rs(),minItems:Rs(),maxLength:ks(),minLength:ks(),maxProperties:Ws(),minProperties:Ws(),multipleOf:Qc(),not:Jc(),oneOf:Xc(),pattern:tu(),properties:iu(),propertyNames:nu(),required:ou(),uniqueItems:du(),validate:$s()}});var hu=Y((_C,fu)=>{"use strict";var pu=uu(),js=Ur().toHash;fu.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=js(r),e.types=js(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(c){r.push(c),e.all[c]=!0})}r.push(s);var d=e.all[s]={keyword:s,code:pu[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:pu.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=js(r.concat(a)),e.custom={},e}});var gu=Y((zC,yu)=>{"use strict";var mu=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];yu.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<mu.length;n++){var s=mu[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 Su=Y((UC,vu)=>{"use strict";var mg=Ja().MissingRef;vu.exports=bu;function bu(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)?bu.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof mg)return l(d);throw d}function l(d){var c=d.missingSchema;if(p(c))throw new Error("Schema "+c+" is loaded but "+d.missingRef+" cannot be resolved");var u=a._loadingSchemas[c];return u||(u=a._loadingSchemas[c]=a._opts.loadSchema(c),u.then(f,f)),u.then(function(h){if(!p(c))return n(h).then(function(){p(c)||a.addSchema(h,c,void 0,e)})}).then(function(){return s(o)});function f(){delete a._loadingSchemas[c]}function p(h){return a._refs[h]||a._schemas[h]}}}}});var xu=Y((HC,wu)=>{"use strict";wu.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,c=!e.opts.allErrors,u,f="data"+(s||""),p="valid"+n,h="errs__"+n,y=e.opts.$data&&o&&o.$data,m;y?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o;var g=this,v="definition"+n,S=g.definition,w="",T,I,E,P,O;if(y&&S.$data){O="keywordValidate"+n;var N=S.validateSchema;i+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+O+" = "+v+".validate;"}else{if(P=e.useCustomRule(g,o,e.schema,e),!P)return;m="validate.schema"+l,O=P.code,T=S.compile,I=S.inline,E=S.macro}var R=O+".errors",D="i"+n,B="ruleErr"+n,k=S.async;if(k&&!e.async)throw new Error("async keyword in sync schema");if(I||E||(i+=""+R+" = null;"),i+="var "+h+" = errors;var "+p+";",y&&S.$data&&(w+="}",i+=" if ("+m+" === undefined) { "+p+" = true; } else { ",N&&(w+="}",i+=" "+p+" = "+v+".validateSchema("+m+"); if ("+p+") { ")),I)S.statements?i+=" "+P.validate+" ":i+=" "+p+" = "+P.validate+"; ";else if(E){var $=e.util.copy(e),w="";$.level++;var j="valid"+$.level;$.schema=P.validate,$.schemaPath="";var U=e.compositeRule;e.compositeRule=$.compositeRule=!0;var G=e.validate($).replace(/validate\.schema/g,O);e.compositeRule=$.compositeRule=U,i+=" "+G}else{var V=V||[];V.push(i),i="",i+=" "+O+".call( ",e.opts.passContext?i+="this":i+="self",T||S.schema===!1?i+=" , "+f+" ":i+=" , "+m+" , "+f+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var z=s?"data"+(s-1||""):"parentData",re=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+z+" , "+re+" , rootData ) ";var fe=i;i=V.pop(),S.errors===!1?(i+=" "+p+" = ",k&&(i+="await "),i+=""+fe+"; "):k?(R="customErrors"+n,i+=" var "+R+" = null; try { "+p+" = await "+fe+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+R+" = e.errors; else throw e; } "):i+=" "+R+" = null; "+p+" = "+fe+"; "}if(S.modifying&&(i+=" if ("+z+") "+f+" = "+z+"["+re+"];"),i+=""+w,S.valid)c&&(i+=" if (true) { ");else{i+=" if ( ",S.valid===void 0?(i+=" !",E?i+=""+j:i+=""+p):i+=" "+!S.valid+" ",i+=") { ",u=g.keyword;var V=V||[];V.push(i),i="";var V=V||[];V.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+g.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var Ie=i;i=V.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+Ie+"]); ":i+=" validate.errors = ["+Ie+"]; return false; ":i+=" var err = "+Ie+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var oe=i;i=V.pop(),I?S.errors?S.errors!="full"&&(i+=" for (var "+D+"="+h+"; "+D+"<errors; "+D+"++) { var "+B+" = vErrors["+D+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+B+".schema = "+m+"; "+B+".data = "+f+"; "),i+=" } "):S.errors===!1?i+=" "+oe+" ":(i+=" if ("+h+" == errors) { "+oe+" } else { for (var "+D+"="+h+"; "+D+"<errors; "+D+"++) { var "+B+" = vErrors["+D+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+B+".schema = "+m+"; "+B+".data = "+f+"; "),i+=" } } "):E?(i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+g.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):S.errors===!1?i+=" "+oe+" ":(i+=" if (Array.isArray("+R+")) { if (vErrors === null) vErrors = "+R+"; else vErrors = vErrors.concat("+R+"); errors = vErrors.length; for (var "+D+"="+h+"; "+D+"<errors; "+D+"++) { var "+B+" = vErrors["+D+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; "+B+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(i+=" "+B+".schema = "+m+"; "+B+".data = "+f+"; "),i+=" } } else { "+oe+" } "),i+=" } ",c&&(i+=" else { ")}return i}});var Vs=Y((GC,yg)=>{yg.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 Fu=Y((ZC,Tu)=>{"use strict";var Cu=Vs();Tu.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Cu.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Cu.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 Ou=Y((QC,Iu)=>{"use strict";var gg=/^[a-z_$][a-z0-9_$-]*$/i,bg=xu(),vg=Fu();Iu.exports={add:Sg,get:wg,remove:xg,validate:_s};function Sg(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!gg.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 c,u=0;u<r.length;u++){var f=r[u];if(f.type==l){c=f;break}}c||(c={type:l,rules:[]},r.push(c));var p={keyword:o,definition:d,custom:!0,code:bg,implements:d.implements};c.rules.push(p),r.custom[o]=p}return this}function wg(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function xg(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 _s(t,e){_s.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(vg,!0);if(r(t))return!0;if(_s.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var Au=Y((KC,Cg)=>{Cg.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 Ru=Y((JC,qu)=>{"use strict";var Eu=oc(),Hr=Ka(),Tg=dc(),Lu=As(),Fg=Bs(),Ig=wc(),Og=hu(),Nu=gu(),Du=Ur();qu.exports=Re;Re.prototype.validate=Pg;Re.prototype.compile=Eg;Re.prototype.addSchema=Lg;Re.prototype.addMetaSchema=Ng;Re.prototype.validateSchema=Dg;Re.prototype.getSchema=$g;Re.prototype.removeSchema=qg;Re.prototype.addFormat=Ug;Re.prototype.errorsText=zg;Re.prototype._addSchema=Rg;Re.prototype._compile=kg;Re.prototype.compileAsync=Su();var sn=Ou();Re.prototype.addKeyword=sn.add;Re.prototype.getKeyword=sn.get;Re.prototype.removeKeyword=sn.remove;Re.prototype.validateKeyword=sn.validate;var Bu=Ja();Re.ValidationError=Bu.Validation;Re.MissingRefError=Bu.MissingRef;Re.$dataMetaSchema=Nu;var nn="http://json-schema.org/draft-07/schema",Pu=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Ag=["/properties"];function Re(t){if(!(this instanceof Re))return new Re(t);t=this._opts=Du.copy(t)||{},Jg(this),this._schemas={},this._refs={},this._fragments={},this._formats=Ig(t.format),this._cache=t.cache||new Tg,this._loadingSchemas={},this._compilations=[],this.RULES=Og(),this._getId=Wg(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=Fg),this._metaOpts=Kg(this),t.formats&&Zg(this),t.keywords&&Qg(this),Hg(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),Gg(this)}function Pg(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 Eg(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function Lg(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=Hr.normalizeId(e||n),Mu(this,e),this._schemas[e]=this._addSchema(t,r,a,!0),this}function Ng(t,e,r){return this.addSchema(t,e,r,!0),this}function Dg(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||Bg(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 Bg(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(nn)?nn:void 0,t._opts.defaultMeta}function $g(t){var e=$u(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return Mg(this,t)}}function Mg(t,e){var r=Hr.schema.call(t,{schema:{}},e);if(r){var a=r.schema,i=r.root,n=r.baseId,s=Eu.call(t,a,i,void 0,n);return t._fragments[e]=new Lu({ref:e,fragment:!0,schema:a,root:i,baseId:n,validate:s}),s}}function $u(t,e){return e=Hr.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function qg(t){if(t instanceof RegExp)return an(this,this._schemas,t),an(this,this._refs,t),this;switch(typeof t){case"undefined":return an(this,this._schemas),an(this,this._refs),this._cache.clear(),this;case"string":var e=$u(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=Hr.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function an(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 Rg(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=Hr.normalizeId(this._getId(t));o&&a&&Mu(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==Hr.normalizeId(t.$schema))&&this.validateSchema(t,!0);var c=Hr.ids.call(this,t),u=new Lu({id:o,schema:t,localRefs:c,cacheKey:n,meta:r});return o[0]!="#"&&a&&(this._refs[o]=u),this._cache.put(n,u),l&&d&&this.validateSchema(t,!0),u}function kg(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=Eu.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 Wg(t){switch(t.schemaId){case"auto":return _g;case"id":return jg;default:return Vg}}function jg(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function Vg(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function _g(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 zg(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 Ug(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function Hg(t){var e;if(t._opts.$data&&(e=Au(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=Vs();t._opts.$data&&(r=Nu(r,Ag)),t.addMetaSchema(r,nn,!0),t._refs["http://json-schema.org/schema"]=nn}}function Gg(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 Zg(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function Qg(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function Mu(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function Kg(t){for(var e=Du.copy(t._opts),r=0;r<Pu.length;r++)delete e[Pu[r]];return e}function Jg(t){var e=t._opts.logger;if(e===!1)t.logger={log:zs,warn:zs,error:zs};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 zs(){}});var tr=class extends Error{},Un=class extends tr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},Hn=class extends tr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},Gn=class extends tr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},gr=class extends tr{},Ca=class extends tr{constructor(e){super(`Invalid unit ${e}`)}},He=class extends tr{},Qt=class extends tr{constructor(){super("Zone is an abstract class")}},_="numeric",kt="short",wt="long",Ta={year:_,month:_,day:_},ml={year:_,month:kt,day:_},$f={year:_,month:kt,day:_,weekday:kt},yl={year:_,month:wt,day:_},gl={year:_,month:wt,day:_,weekday:wt},bl={hour:_,minute:_},vl={hour:_,minute:_,second:_},Sl={hour:_,minute:_,second:_,timeZoneName:kt},wl={hour:_,minute:_,second:_,timeZoneName:wt},xl={hour:_,minute:_,hourCycle:"h23"},Cl={hour:_,minute:_,second:_,hourCycle:"h23"},Tl={hour:_,minute:_,second:_,hourCycle:"h23",timeZoneName:kt},Fl={hour:_,minute:_,second:_,hourCycle:"h23",timeZoneName:wt},Il={year:_,month:_,day:_,hour:_,minute:_},Ol={year:_,month:_,day:_,hour:_,minute:_,second:_},Al={year:_,month:kt,day:_,hour:_,minute:_},Pl={year:_,month:kt,day:_,hour:_,minute:_,second:_},Mf={year:_,month:kt,day:_,weekday:kt,hour:_,minute:_},El={year:_,month:wt,day:_,hour:_,minute:_,timeZoneName:kt},Ll={year:_,month:wt,day:_,hour:_,minute:_,second:_,timeZoneName:kt},Nl={year:_,month:wt,day:_,weekday:wt,hour:_,minute:_,timeZoneName:wt},Dl={year:_,month:wt,day:_,weekday:wt,hour:_,minute:_,second:_,timeZoneName:wt},_r=class{get type(){throw new Qt}get name(){throw new Qt}get ianaName(){return this.name}get isUniversal(){throw new Qt}offsetName(e,r){throw new Qt}formatOffset(e,r){throw new Qt}offset(e){throw new Qt}equals(e){throw new Qt}get isValid(){throw new Qt}},Mn=null,Fa=class t extends _r{static get instance(){return Mn===null&&(Mn=new t),Mn}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return zl(e,r,a)}formatOffset(e,r){return Gi(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},Zn=new Map;function qf(t){let e=Zn.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"}),Zn.set(t,e)),e}var Rf={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function kf(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,c]=a;return[s,i,n,o,l,d,c]}function Wf(t,e){let r=t.formatToParts(e),a=[];for(let i=0;i<r.length;i++){let{type:n,value:s}=r[i],o=Rf[n];n==="era"?a[o]=s:J(o)||(a[o]=parseInt(s,10))}return a}var qn=new Map,vr=class t extends _r{static create(e){let r=qn.get(e);return r===void 0&&qn.set(e,r=new t(e)),r}static resetCache(){qn.clear(),Zn.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 zl(e,r,a,this.name)}formatOffset(e,r){return Gi(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let a=qf(this.name),[i,n,s,o,l,d,c]=a.formatToParts?Wf(a,r):kf(a,r);o==="BC"&&(i=-Math.abs(i)+1);let f=La({year:i,month:n,day:s,hour:l===24?0:l,minute:d,second:c,millisecond:0}),p=+r,h=p%1e3;return p-=h>=0?h:1e3+h,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},ko={};function jf(t,e={}){let r=JSON.stringify([t,e]),a=ko[r];return a||(a=new Intl.ListFormat(t,e),ko[r]=a),a}var Qn=new Map;function Kn(t,e={}){let r=JSON.stringify([t,e]),a=Qn.get(r);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),Qn.set(r,a)),a}var Jn=new Map;function Vf(t,e={}){let r=JSON.stringify([t,e]),a=Jn.get(r);return a===void 0&&(a=new Intl.NumberFormat(t,e),Jn.set(r,a)),a}var Yn=new Map;function _f(t,e={}){let{base:r,...a}=e,i=JSON.stringify([t,a]),n=Yn.get(i);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),Yn.set(i,n)),n}var zi=null;function zf(){return zi||(zi=new Intl.DateTimeFormat().resolvedOptions().locale,zi)}var Xn=new Map;function Bl(t){let e=Xn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Xn.set(t,e)),e}var es=new Map;function Uf(t){let e=es.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...$l,...e}),es.set(t,e)}return e}function Hf(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=Kn(t).resolvedOptions(),i=t}catch{let l=t.substring(0,r);a=Kn(l).resolvedOptions(),i=l}let{numberingSystem:n,calendar:s}=a;return[i,n,s]}}function Gf(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Zf(t){let e=[];for(let r=1;r<=12;r++){let a=ie.utc(2009,r,1);e.push(t(a))}return e}function Qf(t){let e=[];for(let r=1;r<=7;r++){let a=ie.utc(2016,11,13+r);e.push(t(a))}return e}function ya(t,e,r,a){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):a(e)}function Kf(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Bl(t.locale).numberingSystem==="latn"}var ts=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=Vf(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):fs(e,3);return _e(r,this.padTo)}}},rs=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&&vr.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=Kn(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()}},is=class{constructor(e,r,a){this.opts={style:"long",...a},!r&&Vl()&&(this.rtf=_f(e,a))}format(e,r){return this.rtf?this.rtf.format(e,r):gh(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},$l={firstDay:1,minimalDays:4,weekend:[6,7]},Te=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||Le.defaultLocale,o=s||(n?"en-US":zf()),l=r||Le.defaultNumberingSystem,d=a||Le.defaultOutputCalendar,c=ss(i)||Le.defaultWeekSettings;return new t(o,l,d,c,s)}static resetCache(){zi=null,Qn.clear(),Jn.clear(),Yn.clear(),Xn.clear(),es.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]=Hf(e);this.locale=s,this.numberingSystem=r||o||null,this.outputCalendar=a||l||null,this.weekSettings=i,this.intl=Gf(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=Kf(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,ss(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 ya(this,e,Gl,()=>{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]=Zf(s)}return this.monthsCache[n][e]})}weekdays(e,r=!1){return ya(this,e,Kl,()=>{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]=Qf(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return ya(this,void 0,()=>Jl,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ie.utc(2016,11,13,9),ie.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ya(this,e,Yl,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[ie.utc(-40,1,1),ie.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 ts(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new rs(e,this.intl,r)}relFormatter(e={}){return new is(this.intl,this.isEnglish(),e)}listFormatter(e={}){return jf(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Bl(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:_l()?Uf(this.locale):$l}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})`}},Rn=null,Lt=class t extends _r{static get utcInstance(){return Rn===null&&(Rn=new t(0)),Rn}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(Na(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Gi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Gi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Gi(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}},as=class extends _r{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 yr(t,e){if(J(t)||t===null)return e;if(t instanceof _r)return t;if(rh(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Fa.instance:r==="utc"||r==="gmt"?Lt.utcInstance:Lt.parseSpecifier(r)||vr.create(t)}else return br(t)?Lt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new as(t)}var ds={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"},Wo={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]},Jf=ds.hanidec.replace(/[\[|\]]/g,"").split("");function Yf(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(ds.hanidec)!==-1)e+=Jf.indexOf(t[r]);else for(let i in Wo){let[n,s]=Wo[i];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var ns=new Map;function Xf(){ns.clear()}function qt({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(`${ds[r]}${e}`),a.set(e,i)),i}var jo=()=>Date.now(),Vo="system",_o=null,zo=null,Uo=null,Ho=60,Go,Zo=null,Le=class{static get now(){return jo}static set now(e){jo=e}static set defaultZone(e){Vo=e}static get defaultZone(){return yr(Vo,Fa.instance)}static get defaultLocale(){return _o}static set defaultLocale(e){_o=e}static get defaultNumberingSystem(){return zo}static set defaultNumberingSystem(e){zo=e}static get defaultOutputCalendar(){return Uo}static set defaultOutputCalendar(e){Uo=e}static get defaultWeekSettings(){return Zo}static set defaultWeekSettings(e){Zo=ss(e)}static get twoDigitCutoffYear(){return Ho}static set twoDigitCutoffYear(e){Ho=e%100}static get throwOnInvalid(){return Go}static set throwOnInvalid(e){Go=e}static resetCaches(){Te.resetCache(),vr.resetCache(),ie.resetCache(),Xf()}},St=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},Ml=[0,31,59,90,120,151,181,212,243,273,304,334],ql=[0,31,60,91,121,152,182,213,244,274,305,335];function Pt(t,e){return new St("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function cs(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 Rl(t,e,r){return r+(Qi(t)?ql:Ml)[e-1]}function kl(t,e){let r=Qi(t)?ql:Ml,a=r.findIndex(n=>n<e),i=e-r[a];return{month:a+1,day:i}}function us(t,e){return(t-e+7)%7+1}function Ia(t,e=4,r=1){let{year:a,month:i,day:n}=t,s=Rl(a,i,n),o=us(cs(a,i,n),r),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=Zi(d,e,r)):l>Zi(a,e,r)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...Da(t)}}function Qo(t,e=4,r=1){let{weekYear:a,weekNumber:i,weekday:n}=t,s=us(cs(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:c,day:u}=kl(d,l);return{year:d,month:c,day:u,...Da(t)}}function kn(t){let{year:e,month:r,day:a}=t,i=Rl(e,r,a);return{year:e,ordinal:i,...Da(t)}}function Ko(t){let{year:e,ordinal:r}=t,{month:a,day:i}=kl(e,r);return{year:e,month:a,day:i,...Da(t)}}function Jo(t,e){if(!J(t.localWeekday)||!J(t.localWeekNumber)||!J(t.localWeekYear)){if(!J(t.weekday)||!J(t.weekNumber)||!J(t.weekYear))throw new gr("Cannot mix locale-based week fields with ISO-based week fields");return J(t.localWeekday)||(t.weekday=t.localWeekday),J(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),J(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 eh(t,e=4,r=1){let a=Ea(t.weekYear),i=Et(t.weekNumber,1,Zi(t.weekYear,e,r)),n=Et(t.weekday,1,7);return a?i?n?!1:Pt("weekday",t.weekday):Pt("week",t.weekNumber):Pt("weekYear",t.weekYear)}function th(t){let e=Ea(t.year),r=Et(t.ordinal,1,fi(t.year));return e?r?!1:Pt("ordinal",t.ordinal):Pt("year",t.year)}function Wl(t){let e=Ea(t.year),r=Et(t.month,1,12),a=Et(t.day,1,Oa(t.year,t.month));return e?r?a?!1:Pt("day",t.day):Pt("month",t.month):Pt("year",t.year)}function jl(t){let{hour:e,minute:r,second:a,millisecond:i}=t,n=Et(e,0,23)||e===24&&r===0&&a===0&&i===0,s=Et(r,0,59),o=Et(a,0,59),l=Et(i,0,999);return n?s?o?l?!1:Pt("millisecond",i):Pt("second",a):Pt("minute",r):Pt("hour",e)}function J(t){return typeof t>"u"}function br(t){return typeof t=="number"}function Ea(t){return typeof t=="number"&&t%1===0}function rh(t){return typeof t=="string"}function ih(t){return Object.prototype.toString.call(t)==="[object Date]"}function Vl(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function _l(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function ah(t){return Array.isArray(t)?t:[t]}function Yo(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 nh(t,e){return e.reduce((r,a)=>(r[a]=t[a],r),{})}function yi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ss(t){if(t==null)return null;if(typeof t!="object")throw new He("Week settings must be an object");if(!Et(t.firstDay,1,7)||!Et(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Et(e,1,7)))throw new He("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Et(t,e,r){return Ea(t)&&t>=e&&t<=r}function sh(t,e){return t-e*Math.floor(t/e)}function _e(t,e=2){let r=t<0,a;return r?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function mr(t){if(!(J(t)||t===null||t===""))return parseInt(t,10)}function Wr(t){if(!(J(t)||t===null||t===""))return parseFloat(t)}function ps(t){if(!(J(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function fs(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 Qi(t){return t%4===0&&(t%100!==0||t%400===0)}function fi(t){return Qi(t)?366:365}function Oa(t,e){let r=sh(e-1,12)+1,a=t+(e-r)/12;return r===2?Qi(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function La(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 Xo(t,e,r){return-us(cs(t,1,e),r)+e-1}function Zi(t,e=4,r=1){let a=Xo(t,e,r),i=Xo(t+1,e,r);return(fi(t)-a+i)/7}function os(t){return t>99?t:t>Le.twoDigitCutoffYear?1900+t:2e3+t}function zl(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 Na(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 Ul(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new He(`Invalid unit value ${t}`);return e}function Aa(t,e){let r={};for(let a in t)if(yi(t,a)){let i=t[a];if(i==null)continue;r[e(a)]=Ul(i)}return r}function Gi(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}${_e(r,2)}:${_e(a,2)}`;case"narrow":return`${i}${r}${a>0?`:${a}`:""}`;case"techie":return`${i}${_e(r,2)}${_e(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Da(t){return nh(t,["hour","minute","second","millisecond"])}var oh=["January","February","March","April","May","June","July","August","September","October","November","December"],Hl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],lh=["J","F","M","A","M","J","J","A","S","O","N","D"];function Gl(t){switch(t){case"narrow":return[...lh];case"short":return[...Hl];case"long":return[...oh];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 Zl=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ql=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],dh=["M","T","W","T","F","S","S"];function Kl(t){switch(t){case"narrow":return[...dh];case"short":return[...Ql];case"long":return[...Zl];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Jl=["AM","PM"],ch=["Before Christ","Anno Domini"],uh=["BC","AD"],ph=["B","A"];function Yl(t){switch(t){case"narrow":return[...ph];case"short":return[...uh];case"long":return[...ch];default:return null}}function fh(t){return Jl[t.hour<12?0:1]}function hh(t,e){return Kl(e)[t.weekday-1]}function mh(t,e){return Gl(e)[t.month-1]}function yh(t,e){return Yl(e)[t.year<0?0:1]}function gh(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 u=t==="days";switch(e){case 1:return u?"tomorrow":`next ${i[t][0]}`;case-1:return u?"yesterday":`last ${i[t][0]}`;case 0:return u?"today":`this ${i[t][0]}`}}let s=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,d=i[t],c=a?l?d[1]:d[2]||d[1]:l?i[t][0]:t;return s?`${o} ${c} ago`:`in ${o} ${c}`}function el(t,e){let r="";for(let a of t)a.literal?r+=a.val:r+=e(a.val);return r}var bh={D:Ta,DD:ml,DDD:yl,DDDD:gl,t:bl,tt:vl,ttt:Sl,tttt:wl,T:xl,TT:Cl,TTT:Tl,TTTT:Fl,f:Il,ff:Al,fff:El,ffff:Nl,F:Ol,FF:Pl,FFF:Ll,FFFF:Dl},vt=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 bh[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 _e(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,h)=>this.loc.extract(e,p,h),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",o=()=>a?fh(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,h)=>a?mh(e,p):n(h?{month:p}:{month:p,day:"numeric"},"month"),d=(p,h)=>a?hh(e,p):n(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{let h=t.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(e,h):p},u=p=>a?yh(e,p):n({era:p},"era"),f=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 u("short");case"GG":return u("long");case"GGGGG":return u("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 c(p)}};return el(t.parseFormat(r),f)}formatDurationFromString(e,r){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,i=c=>{switch(c[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=(c,u)=>f=>{let p=i(f);if(p){let h=u.isNegativeDuration&&p!==u.largestUnit?a:1,y;return this.opts.signMode==="negativeLargestOnly"&&p!==u.largestUnit?y="never":this.opts.signMode==="all"?y="always":y="auto",this.num(c.get(p)*h,f.length,y)}else return f},s=t.parseFormat(r),o=s.reduce((c,{literal:u,val:f})=>u?c:c.concat(f),[]),l=e.shiftTo(...o.map(i).filter(c=>c)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return el(s,n(l,d))}},Xl=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function gi(...t){let e=t.reduce((r,a)=>r+a.source,"");return RegExp(`^${e}$`)}function bi(...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 vi(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 ed(...t){return(e,r)=>{let a={},i;for(i=0;i<t.length;i++)a[t[i]]=mr(e[r+i]);return[a,null,r+i]}}var td=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,vh=`(?:${td.source}?(?:\\[(${Xl.source})\\])?)?`,hs=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,rd=RegExp(`${hs.source}${vh}`),ms=RegExp(`(?:[Tt]${rd.source})?`),Sh=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xh=/(\d{4})-?(\d{3})/,Ch=ed("weekYear","weekNumber","weekDay"),Th=ed("year","ordinal"),Fh=/(\d{4})-(\d\d)-(\d\d)/,id=RegExp(`${hs.source} ?(?:${td.source}|(${Xl.source}))?`),Ih=RegExp(`(?: ${id.source})?`);function hi(t,e,r){let a=t[e];return J(a)?r:mr(a)}function Oh(t,e){return[{year:hi(t,e),month:hi(t,e+1,1),day:hi(t,e+2,1)},null,e+3]}function Si(t,e){return[{hours:hi(t,e,0),minutes:hi(t,e+1,0),seconds:hi(t,e+2,0),milliseconds:ps(t[e+3])},null,e+4]}function Ki(t,e){let r=!t[e]&&!t[e+1],a=Na(t[e+1],t[e+2]),i=r?null:Lt.instance(a);return[{},i,e+3]}function Ji(t,e){let r=t[e]?vr.create(t[e]):null;return[{},r,e+1]}var Ah=RegExp(`^T?${hs.source}$`),Ph=/^-?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 Eh(t){let[e,r,a,i,n,s,o,l,d]=t,c=e[0]==="-",u=l&&l[0]==="-",f=(p,h=!1)=>p!==void 0&&(h||p&&c)?-p:p;return[{years:f(Wr(r)),months:f(Wr(a)),weeks:f(Wr(i)),days:f(Wr(n)),hours:f(Wr(s)),minutes:f(Wr(o)),seconds:f(Wr(l),l==="-0"),milliseconds:f(ps(d),u)}]}var Lh={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ys(t,e,r,a,i,n,s){let o={year:e.length===2?os(mr(e)):mr(e),month:Hl.indexOf(r)+1,day:mr(a),hour:mr(i),minute:mr(n)};return s&&(o.second=mr(s)),t&&(o.weekday=t.length>3?Zl.indexOf(t)+1:Ql.indexOf(t)+1),o}var Nh=/^(?:(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 Dh(t){let[,e,r,a,i,n,s,o,l,d,c,u]=t,f=ys(e,i,a,r,n,s,o),p;return l?p=Lh[l]:d?p=0:p=Na(c,u),[f,new Lt(p)]}function Bh(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var $h=/^(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$/,Mh=/^(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$/,qh=/^(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 tl(t){let[,e,r,a,i,n,s,o]=t;return[ys(e,i,a,r,n,s,o),Lt.utcInstance]}function Rh(t){let[,e,r,a,i,n,s,o]=t;return[ys(e,o,r,a,i,n,s),Lt.utcInstance]}var kh=gi(Sh,ms),Wh=gi(wh,ms),jh=gi(xh,ms),Vh=gi(rd),ad=bi(Oh,Si,Ki,Ji),_h=bi(Ch,Si,Ki,Ji),zh=bi(Th,Si,Ki,Ji),Uh=bi(Si,Ki,Ji);function Hh(t){return vi(t,[kh,ad],[Wh,_h],[jh,zh],[Vh,Uh])}function Gh(t){return vi(Bh(t),[Nh,Dh])}function Zh(t){return vi(t,[$h,tl],[Mh,tl],[qh,Rh])}function Qh(t){return vi(t,[Ph,Eh])}var Kh=bi(Si);function Jh(t){return vi(t,[Ah,Kh])}var Yh=gi(Fh,Ih),Xh=gi(id),em=bi(Si,Ki,Ji);function tm(t){return vi(t,[Yh,ad],[Xh,em])}var rl="Invalid Duration",nd={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},rm={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:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...nd},At=146097/400,di=146097/4800,im={years:{quarters:4,months:12,weeks:At/7,days:At,hours:At*24,minutes:At*24*60,seconds:At*24*60*60,milliseconds:At*24*60*60*1e3},quarters:{months:3,weeks:At/28,days:At/4,hours:At*24/4,minutes:At*24*60/4,seconds:At*24*60*60/4,milliseconds:At*24*60*60*1e3/4},months:{weeks:di/7,days:di,hours:di*24,minutes:di*24*60,seconds:di*24*60*60,milliseconds:di*24*60*60*1e3},...nd},Vr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],am=Vr.slice(0).reverse();function er(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 Ge(a)}function sd(t,e){let r=e.milliseconds??0;for(let a of am.slice(1))e[a]&&(r+=e[a]*t[a].milliseconds);return r}function il(t,e){let r=sd(t,e)<0?-1:1;Vr.reduceRight((a,i)=>{if(J(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),Vr.reduce((a,i)=>{if(J(e[i]))return a;if(a){let n=e[a]%1;e[a]-=n,e[i]+=n*t[a][i]}return i},null)}function al(t){let e={};for(let[r,a]of Object.entries(t))a!==0&&(e[r]=a);return e}var Ge=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,a=r?im:rm;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||Te.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 He(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:Aa(e,t.normalizeUnit),loc:Te.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(br(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new He(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[a]=Qh(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]=Jh(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 He("need to specify a reason the Duration is invalid");let a=e instanceof St?e:new St(e,r);if(Le.throwOnInvalid)throw new Gn(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 Ca(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?vt.create(this.loc,a).formatDurationFromString(this,e):rl}toHuman(e={}){if(!this.isValid)return rl;let r=e.showZeros!==!1,a=Vr.map(i=>{let n=this.values[i];return J(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+=fs(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},ie.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?sd(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 Vr)(yi(r.values,i)||yi(this.values,i))&&(a[i]=r.get(i)+this.get(i));return er(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]=Ul(e(this.values[a],a));return er(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...Aa(e,t.normalizeUnit)};return er(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:a,matrix:i}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:a};return er(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return il(this.matrix,e),er(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=al(this.normalize().shiftToAll().toObject());return er(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 Vr)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;br(i[s])&&(o+=i[s]);let l=Math.trunc(o);r[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else br(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 il(this.matrix,r),er(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 er(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=al(this.values);return er(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 Vr)if(!r(this.values[a],e.values[a]))return!1;return!0}},ci="Invalid Interval";function nm(t,e){return!t||!t.isValid?mi.invalid("missing or invalid start"):!e||!e.isValid?mi.invalid("missing or invalid end"):e<t?mi.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 mi=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 He("need to specify a reason the Interval is invalid");let a=e instanceof St?e:new St(e,r);if(Le.throwOnInvalid)throw new Hn(a);return new t({invalid:a})}static fromDateTimes(e,r){let a=_i(e),i=_i(r),n=nm(a,i);return n??new t({start:a,end:i})}static after(e,r){let a=Ge.fromDurationLike(r),i=_i(e);return t.fromDateTimes(i,i.plus(a))}static before(e,r){let a=Ge.fromDurationLike(r),i=_i(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=ie.fromISO(a,r),s=n.isValid}catch{s=!1}let o,l;try{o=ie.fromISO(i,r),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Ge.fromISO(i,r);if(d.isValid)return t.after(n,d)}else if(l){let d=Ge.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(_i).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=Ge.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()})`:ci}[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=Ta,r={}){return this.isValid?vt.create(this.s.loc.clone(r),e).formatInterval(this):ci}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ci}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ci}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ci}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:ci}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Ge.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},pi=class{static hasDST(e=Le.defaultZone){let r=ie.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return vr.isValidZone(e)}static normalizeZone(e){return yr(e,Le.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||Te.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||Te.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||Te.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||Te.create(r,a,n)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||Te.create(r,a,n)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||Te.create(r,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||Te.create(r,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Te.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return Te.create(r,null,"gregory").eras(e)}static features(){return{relative:Vl(),localeWeek:_l()}}};function nl(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=r(e)-r(t);return Math.floor(Ge.fromMillis(a).as("days"))}function sm(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 c=nl(l,d);return(c-c%7)/7}],["days",nl]],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 om(t,e,r,a){let[i,n,s,o]=sm(t,e,r),l=e-i,d=r.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);d.length===0&&(s<e&&(s=i.plus({[o]:1})),s!==i&&(n[o]=(n[o]||0)+l/(s-i)));let c=Ge.fromObject(n,a);return d.length>0?Ge.fromMillis(l,a).shiftTo(...d).plus(c):c}var lm="missing Intl.DateTimeFormat.formatToParts support";function ye(t,e=r=>r){return{regex:t,deser:([r])=>e(Yf(r))}}var dm="\xA0",od=`[ ${dm}]`,ld=new RegExp(od,"g");function cm(t){return t.replace(/\./g,"\\.?").replace(ld,od)}function sl(t){return t.replace(/\./g,"").replace(ld," ").toLowerCase()}function Rt(t,e){return t===null?null:{regex:RegExp(t.map(cm).join("|")),deser:([r])=>t.findIndex(a=>sl(r)===sl(a))+e}}function ol(t,e){return{regex:t,deser:([,r,a])=>Na(r,a),groups:e}}function ga(t){return{regex:t,deser:([e])=>e}}function um(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function pm(t,e){let r=qt(e),a=qt(e,"{2}"),i=qt(e,"{3}"),n=qt(e,"{4}"),s=qt(e,"{6}"),o=qt(e,"{1,2}"),l=qt(e,"{1,3}"),d=qt(e,"{1,6}"),c=qt(e,"{1,9}"),u=qt(e,"{2,4}"),f=qt(e,"{4,6}"),p=m=>({regex:RegExp(um(m.val)),deser:([g])=>g,literal:!0}),y=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return Rt(e.eras("short"),0);case"GG":return Rt(e.eras("long"),0);case"y":return ye(d);case"yy":return ye(u,os);case"yyyy":return ye(n);case"yyyyy":return ye(f);case"yyyyyy":return ye(s);case"M":return ye(o);case"MM":return ye(a);case"MMM":return Rt(e.months("short",!0),1);case"MMMM":return Rt(e.months("long",!0),1);case"L":return ye(o);case"LL":return ye(a);case"LLL":return Rt(e.months("short",!1),1);case"LLLL":return Rt(e.months("long",!1),1);case"d":return ye(o);case"dd":return ye(a);case"o":return ye(l);case"ooo":return ye(i);case"HH":return ye(a);case"H":return ye(o);case"hh":return ye(a);case"h":return ye(o);case"mm":return ye(a);case"m":return ye(o);case"q":return ye(o);case"qq":return ye(a);case"s":return ye(o);case"ss":return ye(a);case"S":return ye(l);case"SSS":return ye(i);case"u":return ga(c);case"uu":return ga(o);case"uuu":return ye(r);case"a":return Rt(e.meridiems(),0);case"kkkk":return ye(n);case"kk":return ye(u,os);case"W":return ye(o);case"WW":return ye(a);case"E":case"c":return ye(r);case"EEE":return Rt(e.weekdays("short",!1),1);case"EEEE":return Rt(e.weekdays("long",!1),1);case"ccc":return Rt(e.weekdays("short",!0),1);case"cccc":return Rt(e.weekdays("long",!0),1);case"Z":case"ZZ":return ol(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return ol(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ga(/[a-z_+-/]{1,256}?/i);case" ":return ga(/[^\S\n\r]/);default:return p(m)}})(t)||{invalidReason:lm};return y.token=t,y}var fm={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 hm(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=fm[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function mm(t){return[`^${t.map(r=>r.regex).reduce((r,a)=>`${r}(${a.source})`,"")}$`,t]}function ym(t,e,r){let a=t.match(e);if(a){let i={},n=1;for(let s in r)if(yi(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 gm(t){let e=n=>{switch(n){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 J(t.z)||(r=vr.create(t.z)),J(t.Z)||(r||(r=new Lt(t.Z)),a=t.Z),J(t.q)||(t.M=(t.q-1)*3+1),J(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),J(t.u)||(t.S=ps(t.u)),[Object.keys(t).reduce((n,s)=>{let o=e(s);return o&&(n[o]=t[s]),n},{}),r,a]}var Wn=null;function bm(){return Wn||(Wn=ie.fromMillis(1555555555555)),Wn}function vm(t,e){if(t.literal)return t;let r=vt.macroTokenToFormatOpts(t.val),a=ud(r,e);return a==null||a.includes(void 0)?t:a}function dd(t,e){return Array.prototype.concat(...t.map(r=>vm(r,e)))}var Pa=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=dd(vt.parseFormat(r),e),this.units=this.tokens.map(a=>pm(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,i]=mm(this.units);this.regex=RegExp(a,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,a]=ym(e,this.regex,this.handlers),[i,n,s]=a?gm(a):[null,null,void 0];if(yi(a,"a")&&yi(a,"H"))throw new gr("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 cd(t,e,r){return new Pa(t,r).explainFromTokens(e)}function Sm(t,e,r){let{result:a,zone:i,specificOffset:n,invalidReason:s}=cd(t,e,r);return[a,i,n,s]}function ud(t,e){if(!t)return null;let a=vt.create(e,t).dtFormatter(bm()),i=a.formatToParts(),n=a.resolvedOptions();return i.map(s=>hm(s,t,n))}var jn="Invalid DateTime",ll=864e13;function Ui(t){return new St("unsupported zone",`the zone "${t.name}" is not supported`)}function Vn(t){return t.weekData===null&&(t.weekData=Ia(t.c)),t.weekData}function _n(t){return t.localWeekData===null&&(t.localWeekData=Ia(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function jr(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ie({...r,...e,old:r})}function pd(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 ba(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 Sa(t,e,r){return pd(La(t),e,r)}function dl(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,Oa(a,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Ge.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=La(n),[l,d]=pd(o,r,t.zone);return s!==0&&(l+=s,d=t.zone.offset(l)),{ts:l,o:d}}function ui(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=ie.fromObject(t,{...r,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ie.invalid(new St("unparsable",`the input "${i}" can't be parsed as ${a}`))}function va(t,e,r=!0){return t.isValid?vt.create(Te.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function zn(t,e,r){let a=t.c.year>9999||t.c.year<0,i="";if(a&&t.c.year>=0&&(i+="+"),i+=_e(t.c.year,a?6:4),r==="year")return i;if(e){if(i+="-",i+=_e(t.c.month),r==="month")return i;i+="-"}else if(i+=_e(t.c.month),r==="month")return i;return i+=_e(t.c.day),i}function cl(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+=_e(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=_e(t.c.minute),s==="minute")break;o&&(l+=":",l+=_e(t.c.second))}else{if(l+=_e(t.c.minute),s==="minute")break;o&&(l+=_e(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=_e(t.c.millisecond,3))}return i&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=_e(Math.trunc(-t.o/60)),l+=":",l+=_e(Math.trunc(-t.o%60))):(l+="+",l+=_e(Math.trunc(t.o/60)),l+=":",l+=_e(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var fd={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},wm={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},xm={ordinal:1,hour:0,minute:0,second:0,millisecond:0},wa=["year","month","day","hour","minute","second","millisecond"],Cm=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Tm=["year","ordinal","hour","minute","second","millisecond"];function xa(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 Ca(t);return e}function ul(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return xa(t)}}function Fm(t){if(Hi===void 0&&(Hi=Le.now()),t.type!=="iana")return t.offset(Hi);let e=t.name,r=ls.get(e);return r===void 0&&(r=t.offset(Hi),ls.set(e,r)),r}function pl(t,e){let r=yr(e.zone,Le.defaultZone);if(!r.isValid)return ie.invalid(Ui(r));let a=Te.fromObject(e),i,n;if(J(t.year))i=Le.now();else{for(let l of wa)J(t[l])&&(t[l]=fd[l]);let s=Wl(t)||jl(t);if(s)return ie.invalid(s);let o=Fm(r);[i,n]=Sa(t,o,r)}return new ie({ts:i,zone:r,loc:a,o:n})}function fl(t,e,r){let a=J(r.round)?!0:r.round,i=J(r.rounding)?"trunc":r.rounding,n=(o,l)=>(o=fs(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 hl(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 Hi,ls=new Map,ie=class t{constructor(e){let r=e.zone||Le.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new St("invalid input"):null)||(r.isValid?null:Ui(r));this.ts=J(e.ts)?Le.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 o=br(e.o)&&!e.old?e.o:r.offset(this.ts);i=ba(this.ts,o),a=Number.isNaN(i.year)?new St("invalid input"):null,i=a?null:i,n=a?null:o}this._zone=r,this.loc=e.loc||Te.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]=hl(arguments),[a,i,n,s,o,l,d]=r;return pl({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,r]=hl(arguments),[a,i,n,s,o,l,d]=r;return e.zone=Lt.utcInstance,pl({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,r={}){let a=ih(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let i=yr(r.zone,Le.defaultZone);return i.isValid?new t({ts:a,zone:i,loc:Te.fromObject(r)}):t.invalid(Ui(i))}static fromMillis(e,r={}){if(br(e))return e<-ll||e>ll?t.invalid("Timestamp out of range"):new t({ts:e,zone:yr(r.zone,Le.defaultZone),loc:Te.fromObject(r)});throw new He(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(br(e))return new t({ts:e*1e3,zone:yr(r.zone,Le.defaultZone),loc:Te.fromObject(r)});throw new He("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let a=yr(r.zone,Le.defaultZone);if(!a.isValid)return t.invalid(Ui(a));let i=Te.fromObject(r),n=Aa(e,ul),{minDaysInFirstWeek:s,startOfWeek:o}=Jo(n,i),l=Le.now(),d=J(r.specificOffset)?a.offset(l):r.specificOffset,c=!J(n.ordinal),u=!J(n.year),f=!J(n.month)||!J(n.day),p=u||f,h=n.weekYear||n.weekNumber;if((p||c)&&h)throw new gr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&c)throw new gr("Can't mix ordinal dates with month/day");let y=h||n.weekday&&!p,m,g,v=ba(l,d);y?(m=Cm,g=wm,v=Ia(v,s,o)):c?(m=Tm,g=xm,v=kn(v)):(m=wa,g=fd);let S=!1;for(let N of m){let R=n[N];J(R)?S?n[N]=g[N]:n[N]=v[N]:S=!0}let w=y?eh(n,s,o):c?th(n):Wl(n),T=w||jl(n);if(T)return t.invalid(T);let I=y?Qo(n,s,o):c?Ko(n):n,[E,P]=Sa(I,d,a),O=new t({ts:E,zone:a,o:P,loc:i});return n.weekday&&p&&e.weekday!==O.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${O.toISO()}`):O.isValid?O:t.invalid(O.invalid)}static fromISO(e,r={}){let[a,i]=Hh(e);return ui(a,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[a,i]=Gh(e);return ui(a,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[a,i]=Zh(e);return ui(a,i,r,"HTTP",r)}static fromFormat(e,r,a={}){if(J(e)||J(r))throw new He("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:n=null}=a,s=Te.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0}),[o,l,d,c]=Sm(s,e,r);return c?t.invalid(c):ui(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]=tm(e);return ui(a,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new He("need to specify a reason the DateTime is invalid");let a=e instanceof St?e:new St(e,r);if(Le.throwOnInvalid)throw new Un(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let a=ud(e,Te.fromObject(r));return a?a.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return dd(vt.parseFormat(e),Te.fromObject(r)).map(i=>i.val).join("")}static resetCache(){Hi=void 0,ls.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?Vn(this).weekYear:NaN}get weekNumber(){return this.isValid?Vn(this).weekNumber:NaN}get weekday(){return this.isValid?Vn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?_n(this).weekday:NaN}get localWeekNumber(){return this.isValid?_n(this).weekNumber:NaN}get localWeekYear(){return this.isValid?_n(this).weekYear:NaN}get ordinal(){return this.isValid?kn(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=La(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,c=ba(l,s),u=ba(d,o);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[jr(this,{ts:l}),jr(this,{ts:d})]:[this]}get isInLeapYear(){return Qi(this.year)}get daysInMonth(){return Oa(this.year,this.month)}get daysInYear(){return this.isValid?fi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Zi(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Zi(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:a,calendar:i}=vt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:a,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(Lt.instance(e),r)}toLocal(){return this.setZone(Le.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:a=!1}={}){if(e=yr(e,Le.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]=Sa(s,n,e)}return jr(this,{ts:i,zone:e})}else return t.invalid(Ui(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:a}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:a});return jr(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=Aa(e,ul),{minDaysInFirstWeek:a,startOfWeek:i}=Jo(r,this.loc),n=!J(r.weekYear)||!J(r.weekNumber)||!J(r.weekday),s=!J(r.ordinal),o=!J(r.year),l=!J(r.month)||!J(r.day),d=o||l,c=r.weekYear||r.weekNumber;if((d||s)&&c)throw new gr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new gr("Can't mix ordinal dates with month/day");let u;n?u=Qo({...Ia(this.c,a,i),...r},a,i):J(r.ordinal)?(u={...this.toObject(),...r},J(r.day)&&(u.day=Math.min(Oa(u.year,u.month),u.day))):u=Ko({...kn(this.c),...r});let[f,p]=Sa(u,this.o,this.zone);return jr(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let r=Ge.fromDurationLike(e);return jr(this,dl(this,r))}minus(e){if(!this.isValid)return this;let r=Ge.fromDurationLike(e).negate();return jr(this,dl(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let a={},i=Ge.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?vt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):jn}toLocaleString(e=Ta,r={}){return this.isValid?vt.create(this.loc.clone(r),e).formatDateTime(this):jn}toLocaleParts(e={}){return this.isValid?vt.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=xa(s);let o=e==="extended",l=zn(this,o,s);return wa.indexOf(s)>=3&&(l+="T"),l+=cl(this,o,r,a,i,n,s),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?zn(this,e==="extended",xa(r)):null}toISOWeekDate(){return va(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=xa(o),(i&&wa.indexOf(o)>=3?"T":"")+cl(this,s==="extended",r,e,a,n,o)):null}toRFC2822(){return va(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return va(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?zn(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")),va(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():jn}[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 Ge.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=ah(r).map(Ge.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=om(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?mi.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),fl(r,this.plus(a),{...e,numeric:"always",units:i,unit:n})}toRelativeCalendar(e={}){return this.isValid?fl(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 He("min requires all arguments be DateTimes");return Yo(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new He("max requires all arguments be DateTimes");return Yo(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,a={}){let{locale:i=null,numberingSystem:n=null}=a,s=Te.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});return cd(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=Te.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return new Pa(n,e)}static fromFormatParser(e,r,a={}){if(J(e)||J(r))throw new He("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:n=null}=a,s=Te.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});if(!s.equals(r.locale))throw new He(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:c}=r.explainFromTokens(e);return c?t.invalid(c):ui(o,l,a,`format ${r.format}`,e,d)}static get DATE_SHORT(){return Ta}static get DATE_MED(){return ml}static get DATE_MED_WITH_WEEKDAY(){return $f}static get DATE_FULL(){return yl}static get DATE_HUGE(){return gl}static get TIME_SIMPLE(){return bl}static get TIME_WITH_SECONDS(){return vl}static get TIME_WITH_SHORT_OFFSET(){return Sl}static get TIME_WITH_LONG_OFFSET(){return wl}static get TIME_24_SIMPLE(){return xl}static get TIME_24_WITH_SECONDS(){return Cl}static get TIME_24_WITH_SHORT_OFFSET(){return Tl}static get TIME_24_WITH_LONG_OFFSET(){return Fl}static get DATETIME_SHORT(){return Il}static get DATETIME_SHORT_WITH_SECONDS(){return Ol}static get DATETIME_MED(){return Al}static get DATETIME_MED_WITH_SECONDS(){return Pl}static get DATETIME_MED_WITH_WEEKDAY(){return Mf}static get DATETIME_FULL(){return El}static get DATETIME_FULL_WITH_SECONDS(){return Ll}static get DATETIME_HUGE(){return Nl}static get DATETIME_HUGE_WITH_SECONDS(){return Dl}};function _i(t){if(ie.isDateTime(t))return t;if(t&&t.valueOf&&br(t.valueOf()))return ie.fromJSDate(t);if(t&&typeof t=="object")return ie.fromObject(t);throw new He(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Ra=function(){return Ra=Object.assign||function(e){for(var r,a=1,i=arguments.length;a<i;a++){r=arguments[a];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ra.apply(this,arguments)},gs={exports:{}},$e={},bs={exports:{}},zr={};function bd(){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 Im(t,e,r){}function Om(t,e,r){}var Am=/javascript\s*\:/img;function Pm(t,e){return Am.test(e)?"":e}zr.whiteList=bd();zr.getDefaultWhiteList=bd;zr.onAttr=Im;zr.onIgnoreAttr=Om;zr.safeAttrValue=Pm;var Em={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,"")}},Yi=Em;function Lm(t,e){t=Yi.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,a=!1,i=0,n=0,s="";function o(){if(!a){var c=Yi.trim(t.slice(i,n)),u=c.indexOf(":");if(u!==-1){var f=Yi.trim(c.slice(0,u)),p=Yi.trim(c.slice(u+1));if(f){var h=e(i,s.length,f,p,c);h&&(s+=h+"; ")}}}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===`
3
- `&&o()}return Yi.trim(s)}var Nm=Lm,Ba=zr,Dm=Nm;function hd(t){return t==null}function Bm(t){var e={};for(var r in t)e[r]=t[r];return e}function vd(t){t=Bm(t||{}),t.whiteList=t.whiteList||Ba.whiteList,t.onAttr=t.onAttr||Ba.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Ba.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Ba.safeAttrValue,this.options=t}vd.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=Dm(t,function(l,d,c,u,f){var p=a[c],h=!1;if(p===!0?h=p:typeof p=="function"?h=p(u):p instanceof RegExp&&(h=p.test(u)),h!==!0&&(h=!1),u=s(c,u),!!u){var y={position:d,sourcePosition:l,source:f,isWhite:h};if(h){var m=i(c,u,y);return hd(m)?c+":"+u:m}else{var m=n(c,u,y);if(!hd(m))return m}}});return o};var $m=vd;(function(t,e){var r=zr,a=$m;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]})(bs,bs.exports);var vs=bs.exports,Ss={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}},Mm=vs.FilterCSS,qm=vs.getDefaultWhiteList,ka=Ss;function Sd(){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 wd=new Mm;function Rm(t,e,r){}function km(t,e,r){}function Wm(t,e,r){}function jm(t,e,r){}function xd(t){return t.replace(_m,"&lt;").replace(zm,"&gt;")}function Vm(t,e,r,a){if(r=Ad(r),e==="href"||e==="src"){if(r=ka.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($a.lastIndex=0,$a.test(r))return""}else if(e==="style"){if(md.lastIndex=0,md.test(r)||(yd.lastIndex=0,yd.test(r)&&($a.lastIndex=0,$a.test(r))))return"";a!==!1&&(a=a||wd,r=a.process(r))}return r=Pd(r),r}var _m=/</g,zm=/>/g,Um=/"/g,Hm=/&quot;/g,Gm=/&#([a-zA-Z0-9]*);?/gim,Zm=/&colon;?/gim,Qm=/&newline;?/gim,$a=/((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,md=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,yd=/u\s*r\s*l\s*\(.*/gi;function Cd(t){return t.replace(Um,"&quot;")}function Td(t){return t.replace(Hm,'"')}function Fd(t){return t.replace(Gm,function(r,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function Id(t){return t.replace(Zm,":").replace(Qm," ")}function Od(t){for(var e="",r=0,a=t.length;r<a;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return ka.trim(e)}function Ad(t){return t=Td(t),t=Fd(t),t=Id(t),t=Od(t),t}function Pd(t){return t=Cd(t),t=xd(t),t}function Km(){return""}function Jm(t,e){typeof e!="function"&&(e=function(){});var r=!Array.isArray(t);function a(s){return r?!0:ka.indexOf(t,s)!==-1}var i=[],n=!1;return{onIgnoreTag:function(s,o,l){if(a(s))if(l.isClosing){var d="[/removed]",c=l.position+d.length;return i.push([n!==!1?n:l.position,c]),n=!1,d}else return n||(n=l.position),"[removed]";else return e(s,o,l)},remove:function(s){var o="",l=0;return ka.forEach(i,function(d){o+=s.slice(l,d[0]),l=d[1]}),o+=s.slice(l),o}}}function Ym(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 Xm(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("")}$e.whiteList=Sd();$e.getDefaultWhiteList=Sd;$e.onTag=Rm;$e.onIgnoreTag=km;$e.onTagAttr=Wm;$e.onIgnoreTagAttr=jm;$e.safeAttrValue=Vm;$e.escapeHtml=xd;$e.escapeQuote=Cd;$e.unescapeQuote=Td;$e.escapeHtmlEntities=Fd;$e.escapeDangerHtml5Entities=Id;$e.clearNonPrintableCharacter=Od;$e.friendlyAttrValue=Ad;$e.escapeAttrValue=Pd;$e.onIgnoreTagStripAll=Km;$e.StripTagBody=Jm;$e.stripCommentTag=Ym;$e.stripBlankChar=Xm;$e.cssFilter=wd;$e.getDefaultCSSWhiteList=qm;var Wa={},Sr=Ss;function ey(t){var e=Sr.spaceIndex(t),r;return e===-1?r=t.slice(1,-1):r=t.slice(1,e+1),r=Sr.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function ty(t){return t.slice(0,2)==="</"}function ry(t,e,r){var a="",i=0,n=!1,s=!1,o=0,l=t.length,d="",c="";e:for(o=0;o<l;o++){var u=t.charAt(o);if(n===!1){if(u==="<"){n=o;continue}}else if(s===!1){if(u==="<"){a+=r(t.slice(i,o)),n=o,i=o;continue}if(u===">"){a+=r(t.slice(i,n)),c=t.slice(n,o+1),d=ey(c),a+=e(n,a.length,d,c,ty(c)),i=o+1,n=!1;continue}if(u==='"'||u==="'")for(var f=1,p=t.charAt(o-f);p.trim()===""||p==="=";){if(p==="="){s=u;continue e}p=t.charAt(o-++f)}}else if(u===s){s=!1;continue}}return i<t.length&&(a+=r(t.substr(i))),a}var iy=/[^a-zA-Z0-9\\_:.-]/gim;function ay(t,e){var r=0,a=0,i=[],n=!1,s=t.length;function o(f,p){if(f=Sr.trim(f),f=f.replace(iy,"").toLowerCase(),!(f.length<1)){var h=e(f,p||"");h&&i.push(h)}}for(var l=0;l<s;l++){var d=t.charAt(l),c,u;if(n===!1&&d==="="){n=t.slice(r,l),r=l+1,a=t.charAt(r)==='"'||t.charAt(r)==="'"?r:sy(t,l+1);continue}if(n!==!1&&l===a){if(u=t.indexOf(d,l+1),u===-1)break;c=Sr.trim(t.slice(a+1,u)),o(n,c),n=!1,l=u,r=l+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),n===!1)if(u=ny(t,l),u===-1){c=Sr.trim(t.slice(r,l)),o(c),n=!1,r=l+1;continue}else{l=u-1;continue}else if(u=oy(t,l-1),u===-1){c=Sr.trim(t.slice(r,l)),c=gd(c),o(n,c),n=!1,r=l+1;continue}else continue}return r<t.length&&(n===!1?o(t.slice(r)):o(n,gd(Sr.trim(t.slice(r))))),Sr.trim(i.join(" "))}function ny(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="="?e:-1}}function sy(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="'"||r==='"'?e:-1}}function oy(t,e){for(;e>0;e--){var r=t[e];if(r!==" ")return r==="="?e:-1}}function ly(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function gd(t){return ly(t)?t.substr(1,t.length-2):t}Wa.parseTag=ry;Wa.parseAttr=ay;var dy=vs.FilterCSS,Wt=$e,Ed=Wa,cy=Ed.parseTag,uy=Ed.parseAttr,qa=Ss;function Ma(t){return t==null}function py(t){var e=qa.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=qa.trim(t.slice(e+1,-1));var r=t[t.length-1]==="/";return r&&(t=qa.trim(t.slice(0,-1))),{html:t,closing:r}}function fy(t){var e={};for(var r in t)e[r]=t[r];return e}function hy(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 Ld(t){t=fy(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=Wt.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=hy(t.whiteList||t.allowList):t.whiteList=Wt.whiteList,t.onTag=t.onTag||Wt.onTag,t.onTagAttr=t.onTagAttr||Wt.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||Wt.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||Wt.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||Wt.safeAttrValue,t.escapeHtml=t.escapeHtml||Wt.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new dy(t.css))}Ld.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,c=e.cssFilter;r.stripBlankChar&&(t=Wt.stripBlankChar(t)),r.allowCommentTag||(t=Wt.stripCommentTag(t));var u=!1;r.stripIgnoreTagBody&&(u=Wt.StripTagBody(r.stripIgnoreTagBody,n),n=u.onIgnoreTag);var f=cy(t,function(p,h,y,m,g){var v={sourcePosition:p,position:h,isClosing:g,isWhite:Object.prototype.hasOwnProperty.call(a,y)},S=i(y,m,v);if(!Ma(S))return S;if(v.isWhite){if(v.isClosing)return"</"+y+">";var w=py(m),T=a[y],I=uy(w.html,function(E,P){var O=qa.indexOf(T,E)!==-1,N=s(y,E,P,O);return Ma(N)?O?(P=l(y,E,P,c),P?E+'="'+P+'"':E):(N=o(y,E,P,O),Ma(N)?void 0:N):N});return m="<"+y,I&&(m+=" "+I),w.closing&&(m+=" /"),m+=">",m}else return S=n(y,m,v),Ma(S)?d(m):S},d);return u&&(f=u.remove(f)),f};var my=Ld;(function(t,e){var r=$e,a=Wa,i=my;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)})(gs,gs.exports);var wi=gs.exports,yy=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},Nd=(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=Ra(Ra({},wi.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):wi.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 wi.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?wi.escapeAttrValue(e):!n&&!i?wi.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):wi.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(yy(e)){var s=Object.keys(e);n=s.reduce(function(o,l){var d=e[l],c=a.validate(d,r);return c.isValid?o[l]=d:(i=!0,o[l]=c.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})();function Dd(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,c,u=0;u<a;u++)l=t[u],d=l[0],c=l[1],i+=d,n+=c,s+=d*d,o+=d*c;e=(a*o-i*n)/(a*s-i*i),r=n/a-e*i/a}return{m:e,b:r}}function Bd(t){return function(e){return t.b+t.m*e}}function $d(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 Md=function(){this.totalCount=0,this.data={}};Md.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++};Md.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 qd=function(){this.weights=[],this.bias=0};qd.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};qd.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 iC=607/128,aC=Math.log(Math.sqrt(2*Math.PI));var nC=Math.sqrt(2*Math.PI);var gy=Math.sqrt(2*Math.PI);function by(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/gy*Math.exp(-t*t/2))*1e4)/1e4}var vy=[];for(ja=0;ja<=3.09;ja+=.01)vy.push(by(ja));var ja;var dp=Bf(Ru(),1);var or="25.0.0",ot="arcgis_charts_pie_from_fields_name",jt="arcgis_charts_pie_from_fields_value",yb="arcgis_charts_bar_line_from_fields_name",gb="arcgis_charts_bar_line_from_fields_value",rr={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"};function bb(t,e){let r=e.errors[t];throw new Ze(e.modalHeaders.error,r??e.errors.simpleError)}function _t(t){return t.axes?.[0]?.valueFormat?.type}function E1(t){return t.intlOptions}function et(t){return t?.type===b.NumberAxisFormat}function L1(t){return et(t)&&t.intlOptions?.style==="percent"}function ir(t){return t?.type===b.CategoryAxisFormat}function Zr(t){return t?.type===b.DateAxisFormat}function N1(t){let{oldConfig:e,newConfig:r,rotationChanged:a}=t;return a?[!0,!0]:[e.horizontalAxisLabelsBehavior!==r.horizontalAxisLabelsBehavior,e.verticalAxisLabelsBehavior!==r.verticalAxisLabelsBehavior]}function vb(t){return et(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||et(t[2].valueFormat))}function Sb(t){return et(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||et(t[2].valueFormat))}function wb(t){return(ir(t?.[0]?.valueFormat)||Zr(t?.[0]?.valueFormat))&&et(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||et(t[2].valueFormat))}function xb(t){return ir(t?.[0]?.valueFormat)&&ir(t?.[1]?.valueFormat)||Zr(t?.[0]?.valueFormat)&&ir(t?.[1]?.valueFormat)||Zr(t?.[0]?.valueFormat)&&Zr(t?.[1]?.valueFormat)}function Cb(t){return(ir(t?.[0]?.valueFormat)||Zr(t?.[0]?.valueFormat))&&et(t?.[1]?.valueFormat)}function Tb(t){return et(t?.[0]?.valueFormat)&&et(t?.[1]?.valueFormat)}function Fb(t){return et(t?.[0]?.valueFormat)&&et(t?.[1]?.valueFormat)}function Ib(t){return et(t?.[0]?.valueFormat)}function D1(t){let{chartType:e,axesConfig:r,errorStrings:a}=t,i,n;switch(e){case b.GaugeSeries:i=Ib,n="invalidValueFormatForGauge";break;case b.ScatterSeries:i=Tb,n="invalidValueFormatForScatterplot";break;case b.HistogramSeries:i=Fb,n="invalidValueFormatForHistogram";break;case b.LineSeries:i=vb,n="invalidValueFormatForLineChart";break;case b.BarSeries:i=Sb,n="invalidValueFormatForBarChart";break;case b.ComboLineAndBarSeries:i=Cb,n="invalidValueFormatForComboBarLineChart";break;case b.BoxPlotSeries:i=wb,n="invalidValueFormatForBoxPlot";break;case b.HeatSeries:i=xb,n="invalidValueFormatForHeatChart";break}i!==void 0&&n!==void 0&&(i(r)||bb(n,a))}function Ob(t){let{isXAxis:e,chartType:r,valueFormat:a,isAxisForHistogramOverlaySeries:i}=t;return e&&(ir(a)||r===b.HistogramSeries&&!i||r===b.BarSeries&&et(a))}function Ab(t=Ae.None,e){return t===Ae.None||t===Ae.Log&&e>0||t===Ae.Sqrt&&e>=0}function pp(t,e){let r={valid:!1};return e===!0?r.invalidType=ae.HistogramEmptyField:t===Ae.Log?r.invalidType=ae.NegativeValueInLogCalculation:t===Ae.Sqrt&&(r.invalidType=ae.NegativeValueInSqrtCalculation),r}function Pb(t,e){let r=t;switch(e){case Ae.Log:r=Math.log(t);break;case Ae.Sqrt:r=Math.sqrt(t);break}return r}function Eb(t){let e=t;if(t){let r=t.toString().split(".");if(r[1]!==void 0){let a=10**-r[1].length;e=t-a}}return e}function fp(t){let e="field";switch(t){case Ae.Log:e="natural-log";break;case Ae.Sqrt:e="square-root";break;case Ae.None:}return e}async function Lb(t){let{queryObject:e,fieldName:r,queryConfig:a,errorStrings:i,abortKey:n,abortSignal:s}=t,o=se(e),{idField:l,isTraditionalTypeOID:d}=zt(o),c=d?l:"*",u=`${W.Count}_${l}`,f=`${W.Count}_${r}`,p=`${W.Minimum}_${r}`,h=`${W.Maximum}_${r}`,y={...a,outStatistics:[{statisticType:W.Count,onStatisticField:c,outStatisticFieldName:u},{statisticType:W.Count,onStatisticField:r,outStatisticFieldName:f},{statisticType:W.Minimum,onStatisticField:r,outStatisticFieldName:p},{statisticType:W.Maximum,onStatisticField:r,outStatisticFieldName:h}]},m=await la({queryObject:e,queryConfig:y,errorStrings:i,abortKey:n,abortSignal:s}),g=m.get(u)??Number.NaN,v=m.get(f)??Number.NaN,S=m.get(p)??Number.NaN,w=m.get(h)??Number.NaN;return{countExcludingNulls:v,countIncludingNulls:g,min:S,max:w}}async function Nb(t){let{queryConfig:e,chartConfig:r,queryObject:a,errorStrings:i,abortKey:n,abortSignal:s}=t,o=r.series[0],{x:l,dataTransformationType:d}=o,c=[],{countIncludingNulls:u,countExcludingNulls:f,min:p,max:h}=await Lb({queryObject:a,queryConfig:e,fieldName:l,errorStrings:i,abortKey:n,abortSignal:s}),y=Ab(d,p),m=f<2||p===h,g={...e};return g.where=Pe([g.where,`${l} is not null`]),{rawData:c,dataCompatibleWithTransformation:y,dataCountIncompatible:m,countExcludingNulls:f,countIncludingNulls:u}}function Db(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 Bb(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,queryConfig:n,abortSignal:s}=t,{x:o,dataTransformationType:l}=e,d={layer:r,view:i,field:o,sqlWhere:nr(n.where)?void 0:n.where,useFeaturesInView:a,signal:s};return l!==Ae.None&&(d={...d,normalizationType:fp(l)}),d}function $b(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,minValue:n,maxValue:s,queryConfig:o,abortSignal:l}=t,{x:d,binCount:c,dataTransformationType:u}=e,f={layer:r,view:i,field:d,minValue:n,maxValue:s,numBins:c??Wb,classificationMethod:"equal-interval",sqlWhere:nr(o.where)?void 0:o.where,useFeaturesInView:a,signal:l};return u!==Ae.None&&(f={...f,normalizationType:fp(u)}),f}function Mb(t,e){let r=Number.NaN;return t!==void 0&&e!==void 0&&(r=t-e),r}async function qb(t){let{chartConfig:e,queryConfig:r,queryObject:a,countExcludingNulls:i,countIncludingNulls:n,view:s,errorStrings:o,abortSignal:l}=t,d=e.series[0],{dataTransformationType:c}=d,u={valid:!0},f=se(a),p=Di(r?.geometry)?.extent?.toJSON()!==void 0,h=s,y=Bb({seriesConfig:d,layer:f,view:h,useFeaturesInView:p,queryConfig:r,abortSignal:l}),m;if(h!==void 0&&(m=new ku({geometry:h.extent}),h.extent!==void 0&&Mp(f))){let{distance:O,units:N}=r;O!==void 0&&(m.distance=O),N!==void 0&&(m.units=N)}if(r.timeExtent){let O={start:r.timeExtent[0],end:r.timeExtent[1]};m===void 0?m=new ku({timeExtent:O}):m.timeExtent=O}y.filter=m;let g;y.outStatisticTypes={exclude:["median"]};try{g=await Wu(y)}catch(O){throw new Ze(Ye.QueryFeaturesError,o.errors.queryError,O)}y.outStatisticTypes={include:["median"]};try{let O=await Wu(y);O?.median&&(g.median=O.median)}catch{}g=Db(g);let{avg:v,count:S,stddev:w,min:T,max:I,sum:E,median:P}=g;if(S===0)u={...pp(c)};else{let O=$b({seriesConfig:d,layer:f,view:h,useFeaturesInView:p,minValue:Eb(T),maxValue:I,valueExpression:y.valueExpression,queryConfig:r,abortSignal:l});O.filter=m;let N;try{N=await Yg(O)}catch(D){throw new Ze(Ye.QueryFeaturesError,o.errors.queryError,D)}let R=Mb(n,i);u.data={mean:v,stddev:w,min:T,max:I,median:Number(P),bins:N?.bins,count:i,nulls:R,sum:E??void 0},u.data.bins.length>0&&(u.data.bins[u.data.bins.length-1].isLastBin=!0)}return u}async function hp(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,abortSignal:n,errorStrings:s,view:o}=t,{series:l}=e,d=l[0],c;if(Ke(a))c=await Z0(t);else{let{rawData:u,dataCompatibleWithTransformation:f,dataCountIncompatible:p,countIncludingNulls:h,countExcludingNulls:y}=await Nb({queryObject:a,chartConfig:e,queryConfig:r,errorStrings:s,abortKey:i,abortSignal:n});c={valid:!0},!f||p?c=pp(d.dataTransformationType,p):c=await qb({chartConfig:e,queryObject:a,queryConfig:r,countIncludingNulls:h,countExcludingNulls:y,view:o,abortSignal:n,errorStrings:s})}return c}async function Rb(t){let{queryObject:e,queryConfig:r,chartConfig:a,x:i,errorStrings:n}=t,{series:s}=a,{dataTransformationType:o}=s[0],l={...r,orderByFields:[i],outFields:[i]};return{valid:!0,data:{dataItems:(await Dt({queryObject:e,queryConfig:l,errorStrings:n})).map(d=>({[i]:Pb(d.attributes[i],o)}))}}}var ju={Count:"count",Start:"minValue",End:"maxValue"},kb={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},B1={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},Er={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},ne={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},Wb=32,Ir="arcgis_charts_features_extent",de={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:ma.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds",heatChartLowerBoundaryAlias:"lowerBoundary5x1",heatChartUpperBoundaryAlias:"upperBoundary5x1",defaultStatParameterValue:.5},mp=["EXPR_1","Expr1","expr1","EXPR1"],$1=1,lt=.7,jb=25,yp=[156,156,156,255],Vb=[156,156,156,255],M1=hr.Solid,q1=2,hn={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"},Ni="arcgis_charts_box_plot_category",te={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},R1={min:1,max:10},_b=[[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]],k1=[[90,180,255,255],[165,220,255,255],[90,215,80,255],[165,245,150,255],[255,80,85,255],[255,170,170,255],[255,165,70,255],[255,205,130,255],[155,110,255,255],[220,195,255,255]],zb=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]],W1=[[104,104,104,255],[51,124,235,255],[175,90,255,255],[156,156,156,255]],j1=[255,255,255,255],V1=[43,43,43,255],_1=[0,122,194,255],z1=[255,255,255,255],U1=[0,0,0,255],ea=[150,150,150,178.5];function Nt(t){let{colorIndex:e,opacity:r,histogramOverlays:a}=t,i=Math.max(0,e??0),n=[...a===!0?zb:_b],[s,o,l,d]=n[i%n.length],c=r!==void 0?r*255:d;return[s,o,l,c]}function gp(t){return[0,0,0,(t??lt)*255]}function H1(){return{type:b.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:be.SLS,style:hr.Dot,color:[211,211,211,255],width:1}}}function wn(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function ve(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case ne.ChartTitle:e.size=18;break;case ne.AxisTitle:e.size=14;break;case ne.LegendText:e.size=12;break;case ne.LegendTitle:e.size=13;break;case ne.DescriptionText:e.size=11;break}return e}function bp(t="",e=ve(),r){let a="center";return(r===ne.DataLabels||r===ne.GuideLabel)&&(a=void 0),{type:be.TS,color:gp(),text:t,font:e,horizontalAlignment:a}}function ce(t){let{text:e,visible:r,font:a,type:i}=t??{text:"",visible:!0,font:ve()};return{type:b.Text,visible:r,content:bp(e,a,i)}}function oa(t){let e=t?.useRandomColor??!1,r=t?.useRampColor,a=t?.width??1,i=t?.isHistogramOverlay,n=t?.color??gp(1);return e?n=wn():r!==void 0&&(i===!0?n=Nt({colorIndex:r.colorIndex,histogramOverlays:i}):n=Nt({colorIndex:r.colorIndex})),t?.opacity!==void 0&&(n[3]=t.opacity),{type:be.SLS,style:hr.Solid,color:n,width:a}}function Ub(){return{type:b.CategoryAxisFormat,characterLimit:11}}function G1(){return{type:b.DateAxisFormat,intlOptions:{}}}function Ks(){return{type:b.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function Z1(){return{type:b.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function Q1(){return{type:b.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function Us(t="Category Axis"){let e=ce({text:t,visible:!0,font:ve(ne.AxisTitle)});e.content.horizontalAlignment="center",e.content.verticalAlignment="middle";let r=ce({text:t,visible:!0,font:ve(ne.AxisLabels)});return{type:b.Axis,visible:!0,title:e,labels:r,valueFormat:Ub(),lineSymbol:oa({color:yp})}}function un(t="Value Axis"){let e=ce({text:t,visible:!0,font:ve(ne.AxisTitle)}),r=ce({text:t,visible:!0,font:ve(ne.AxisLabels)});return e.content.verticalAlignment="middle",e.content.horizontalAlignment="center",{type:b.Axis,visible:!0,title:e,labels:r,valueFormat:Ks(),lineSymbol:oa({color:yp})}}function Lr(){return{type:b.Legend,visible:!0,title:ce({text:"",visible:!0,font:ve(ne.LegendTitle)}),body:bp("",ve(ne.LegendText)),position:Vi.Right}}function on(t){return{type:b.Overlay,visible:!0,created:!1,symbol:oa({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function Nr(){return[255,255,255,255]}function lr(t){return t.utilsStrings.chartType.chart}function dr(){return`Chart ${Date.now()}`}function K1(t,e=!1){return{type:be.SFS,style:Ot.Solid,color:e?wn(lt):Nt({colorIndex:t??0,opacity:lt})}}function Hb(t=0){return{type:be.SMS,style:Zt.Circle,color:Nt({colorIndex:t,opacity:lt}),size:4}}function Gb(t){return{type:be.SLS,style:hr.Solid,color:Nt({colorIndex:t,opacity:lt}),width:2}}function Zb(t=!1){return{type:be.SMS,style:Zt.Circle,color:t?wn(lt):Nt({colorIndex:0,opacity:lt}),size:7}}function J1(){return{type:b.SizePolicy,field:"",scaleType:Ro.Linear,minSize:5,maxSize:30}}function Qb(t=!1){return{type:b.Overlays,trendLine:{type:b.Overlay,created:!1,visible:!0,symbol:{type:be.SLS,style:hr.Solid,color:t?wn():Nt({colorIndex:1}),width:2}}}}function Kb(t,e){let r=t.countSeries;return{type:b.HeatSeries,id:r,name:r,y:"",x:"",dataLabels:ce({text:"",visible:!1,font:ve(ne.DataLabels)}),query:{outStatistics:[{statisticType:W.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:`${W.Count}_${e}_0`.toUpperCase()}],groupByFieldsForStatistics:[]},emptyCells:{symbol:{type:be.SFS,style:Ot.Solid,color:ea},text:t.utilsStrings.null}}}function Jb(){return{type:b.ScatterSeries,id:b.ScatterSeries,name:b.ScatterSeries,x:"",y:"",markerSymbol:Zb(),overlays:Qb(),dataLabels:ce({text:"",visible:!1,font:ve(ne.DataLabels)})}}function Yr(t,e){let r=[],a=t.xAxis,i=t.utilsStrings.statistics.count,n,s,o=oa({opacity:jb});switch(e===b.HeatSeries?s=Us(i):(s=un(i),s.grid=o),e){case b.BarSeries:case b.HeatSeries:{n=Us(a);break}case b.ScatterSeries:{n=un(a),n.grid=o;break}case b.RadarSeries:case b.LineSeries:case b.HistogramSeries:{n=un(a);break}case b.BoxPlotSeries:{n=Us("");break}}return n!==void 0&&r.push(n,s),r}function Yb(){return{type:b.GaugeNeedle,symbol:{type:be.SFS,color:[0,0,0,200]}}}function Y1(){return{type:be.SFS,style:Ot.Solid,color:ea}}function X1(){return{type:be.SFS,style:Ot.Solid,color:[255,205,130,255]}}function Xb(t){let e=[],r=t.xAxis,a=un(r);return a.needle=Yb(),e.push(a),e}function ev(t){let e=t.commonStrings,r=t.objectIDField??"ObjectID",a=`${W.Count}_${r}_0`.toUpperCase(),i=e.countSeries;return{type:b.LineSeries,id:i,name:i,query:{outStatistics:[{statisticType:W.Count,onStatisticField:r,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:Gb(t.seriesIndex),markerSymbol:Hb(t.seriesIndex),dataLabels:ce({text:"",visible:!1,font:ve(ne.DataLabels)}),temporalBinning:{unit:Q.Day,size:0,timeAggregationType:qe.Start,trimIncompleteTimeInterval:!0,nullPolicy:nt.Interpolate}}}function eT(t){return{...ev(t),type:b.RadarSeries}}function tv(t){return{type:be.SFS,style:Ot.Solid,color:Nt({colorIndex:t,opacity:lt})}}function tT(t){let e=t.objectIDField??"*",r=t.commonStrings,a=`${W.Count}_Y_0`.toUpperCase(),i=r.countSeries;return{type:b.BarSeries,id:i,name:i,query:{outStatistics:[{statisticType:W.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:tv(t.seriesIndex),dataLabels:ce({text:"",visible:!1,font:ve(ne.DataLabels),type:ne.DataLabels})}}function rT(t,e){let r=t.countSeries;return{name:r,type:b.BoxPlotSeries,id:r,fillSymbol:{type:be.SFS,style:Ot.Solid,color:Nt({colorIndex:e,opacity:lt})},query:{},x:Ni,y:""}}function rv(){return{type:b.PieTick,visible:!0,lineSymbol:oa({width:1,color:Vb})}}function iv(){return{type:be.SFS,style:Ot.Solid}}function iT(t,e){let r=`${W.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:b.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:W.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:r}],groupByFieldsForStatistics:[]},x:"",y:r,fillSymbol:iv(),dataLabels:ce({text:"",visible:!1,font:ve(ne.DataLabels),type:ne.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...Ks(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...Ks(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:rv()}}function aT(t){let e=t.objectIDField??"ObjectID",r=`${W.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:b.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:W.Count,onStatisticField:e,outStatisticFieldName:r}]},x:""}}function ta(){return!1}function nT(t,e=dr()){return{version:or,type:b.Chart,id:e,colorMatch:!0,rotated:ta(),orderOptions:{data:{orderType:st.Category,orderBy:Be.Ascending}},title:ce({text:lr(t),visible:!0,font:ve(ne.ChartTitle)}),subtitle:ce(),footer:ce({text:"",visible:!0,font:ve(ne.DescriptionText)}),background:Nr(),axes:Yr(t,b.BarSeries),series:[],legend:Lr()}}function sT(t,e=dr()){return{version:or,type:b.Chart,id:e,rotated:ta(),colorMatch:!0,orderOptions:{data:{orderType:st.Category,orderBy:Be.Ascending}},title:ce({text:lr(t),visible:!0,font:ve(ne.ChartTitle)}),subtitle:ce(),footer:ce({text:"",visible:!0,font:ve(ne.DescriptionText)}),background:Nr(),series:[],legend:Lr(),axes:Yr(t,b.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function oT(t,e=dr()){return{version:or,type:b.Chart,id:e,colorMatch:!0,rotated:ta(),orderOptions:{data:{orderType:st.Category,orderBy:Be.Ascending}},title:ce({text:lr(t),visible:!0,font:ve(ne.ChartTitle)}),subtitle:ce(),footer:ce({text:"",visible:!0,font:ve(ne.DescriptionText)}),background:Nr(),axes:Yr(t,b.LineSeries),series:[],legend:Lr()}}function lT(t,e=dr()){return{version:or,type:b.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:st.Category,orderBy:Be.Ascending}},title:ce({text:lr(t),visible:!0,font:ve(ne.ChartTitle)}),subtitle:ce(),footer:ce({text:"",visible:!0,font:ve(ne.DescriptionText)}),background:Nr(),axes:Yr(t,b.RadarSeries),series:[],legend:Lr()}}function dT(t,e=dr()){return{version:or,type:b.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:st.YValue,orderBy:Be.Descending}},title:ce({text:lr(t),visible:!0,font:ve(ne.ChartTitle)}),subtitle:ce(),footer:ce({text:"",visible:!0,font:ve(ne.DescriptionText)}),background:Nr(),series:[],legend:{...Lr(),displayNumericValue:!1,displayPercentage:!0}}}function cT(t,e=dr()){return{version:or,type:b.Chart,id:e,colorMatch:!0,title:ce({text:lr(t),visible:!0,font:ve(ne.ChartTitle)}),series:[],axes:Xb(t)}}function uT(t,e=dr()){return{version:or,type:b.Chart,id:e,colorMatch:!0,title:ce({text:lr(t),visible:!0,font:ve(ne.ChartTitle)}),subtitle:ce(),footer:ce({text:"",visible:!0,font:ve(ne.DescriptionText)}),background:Nr(),axes:Yr(t,b.ScatterSeries),series:[Jb()],legend:Lr()}}function pT(t,e){return{version:or,type:b.Chart,id:dr(),title:ce({text:lr(t),visible:!0,font:ve(ne.ChartTitle)}),background:Nr(),axes:Yr(t,b.HeatSeries),series:[Kb(t,e)],legend:{...Lr(),position:Vi.Bottom}}}function av(){return{type:b.Overlays,mean:on(1),median:on(2),standardDeviation:on(3),comparisonDistribution:on(4)}}function nv(){return{type:be.SFS,style:Ot.Solid,color:Nt({colorIndex:0,opacity:lt})}}function sv(){return{type:b.HistogramSeries,id:b.HistogramSeries,name:b.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:av(),dataTransformationType:Ae.None,fillSymbol:nv(),dataLabels:ce({text:"",visible:!1,font:ve(ne.DataLabels)})}}function fT(t,e=dr()){return{version:or,type:b.Chart,id:e,colorMatch:!0,title:ce({text:lr(t),visible:!0,font:ve(ne.ChartTitle)}),subtitle:ce(),footer:ce({text:"",visible:!0,font:ve(ne.DescriptionText)}),background:Nr(),axes:Yr(t,b.HistogramSeries),series:[sv()],legend:Lr()}}var Hs={behaviorAfterLimit:Er.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 Xr(t){let e={...Hs};return t!==void 0&&Object.keys(Hs).forEach(r=>{let a=r;e[a]=t[a]??Hs[a]}),e}function xn(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:50}}function hT(t,e){let r;switch(t){case W.Average:{r=e.utilsStrings.statistics.mean;break}case W.ContinuousPercentile:{r=e.utilsStrings.statistics.median;break}case W.Sum:{r=e.utilsStrings.statistics.sum;break}case W.Minimum:{r=e.utilsStrings.statistics.minimum;break}case W.Maximum:{r=e.utilsStrings.statistics.maximum;break}case W.Variance:{r=e.utilsStrings.statistics.variance;break}case W.DiscretePercentile:{r=e.utilsStrings.statistics.discretePercentile;break}case W.NoAggregation:{r=e.utilsStrings.statistics.noAggregation;break}case W.Count:default:{r=e.utilsStrings.statistics.count;break}}return r}function mT(t,e){let r;switch(t){case qe.End:{r=e.timeAggregationTypes.end;break}case qe.Start:{r=e.timeAggregationTypes.start;break}default:r="";break}return r}function ov(){return gt.Side}function yT(t){return t.utilsStrings.notAvailable}var lv=0,dv="_arcgis_charts_outliers",cv="_arcgis_charts_z_score",gT=[210,210,210,255*lt],bT=" percentage ",vT=7;var L={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:Vi.Right},footer:{wrap:!0,horizontalCenter:"center",verticalCenter:"middle",align:"center"},axisLabel:{rotation:0,align:"center",horizontalCenter:"center",verticalCenter:"top",dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:"left",verticalCenter:"bottom",dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:"center",verticalCenter:"middle",dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:"center",valign:"middle",rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:"center",valign:"middle",rotation:270,wrap:!0},titleLabel:{align:"center",wrap:!0},subtitleLabel:{align:"center",wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:"right",align:"right",verticalCenter:"middle",wrap:!0},horizontalLineGuideLabels:{horizontalCenter:"right",align:"right",verticalCenter:"top",wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:"center",verticalCenter:"top",valign:"top"},verticalLineGuideLabels:{horizontalCenter:"right",verticalCenter:"bottom",valign:"top",wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:be.SLS,style:hr.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:"center",verticalCenter:"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:"center",horizontalCenter:"center",valign:"bottom",verticalCenter:"top",dy:-3},dataLabelRotated:{align:"right",horizontalCenter:"right",valign:"middle",verticalCenter:"middle",dx:2},dataLabelStackedRotated:{align:"center",horizontalCenter:"center",valign:"middle",verticalCenter:"middle"},dataLabelStackedNonRotated:{align:"center",horizontalCenter:"center",valign:"middle",verticalCenter:"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:$o.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:gt.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:9,markerStyle:Zt.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:lv,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:hn.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:be.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:Be.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],grayColor:ea,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",guideTooltipPosition:"pointer",markerTooltipPosition:"fixed",sliceTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1,tileSize:50,diagonalTileSize:1200},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalYCategoryValue:"arcgis_charts_original_category_y_value",originalDateValue:"arcgis_charts_original_date_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:!1},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",rendererSymbolFieldForHistogram:"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:be.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:be.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:kb.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,showEmptySeries:!1,replaceNoValueCategoryWithZero:!0,hideZeroCountCategories:!1,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",symbol:{type:be.SFS,color:ea,outline:{type:be.SLS,style:hr.Solid,color:ea,width:1}}},classBreaks:{breaksCount:5}},Fi={...L,titleAndSubtitlePaddingBottom:5,chartPadding:5,footerContainer:{...L.footerContainer,paddingTop:0,paddingBottom:0},headerContainer:{...L.headerContainer,paddingBottom:18},chartContainer:{...L.chartContainer},dataLabel:{...L.dataLabel,verticalCenter:"bottom"},scrollbarPadding:12,zIndexes:{guide:100,scatterplotTrendLine:2,lineSeries:1,axisLineLayer:30},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:Vi.Bottom,chartPadding:40,legendPadding:20,width:70,bottomHeight:20,topHeight:50,titleHeight:10,titlePadding:10,minMaxLabelPadding:3},emptyCells:{symbol:{type:be.SFS,style:Ot.Solid,color:L.grayColor},text:"null"},includeLeapDay:!1},heatChartLabelPadding:{paddingTop:2},pieChartDataLabel:{minWidth:30},focusableThreshold:500,lineJoin:"round"};function uv(t){return t!==void 0&&t!==Ot.Solid&&t!==Ot.Null}function ST(t,e){let r="",a=(e??0)/2,i=0-a,n=0+a,s=0-a,o=0+a;switch(t){case Zt.Circle:r=`M ${i},0 a ${a},${a} 0 1,0 ${a*2},0 a ${a},${a} 0 1,0 ${-a*2},0`;break;case Zt.Cross:r=`M ${i},0 L ${n},0 M 0,${s} L 0,${o} E`;break;case Zt.Diamond:r=`M ${i},0 L 0,${s} L ${n},0 L 0,${o} L ${i},0 Z`;break;case Zt.Square:r=`M ${i},${o} L ${i},${s} L ${n},${s} L ${n},${o} L ${i},${o} Z`;break;case Zt.Triangle:r=`M ${i},${o} L 0,${s} L ${n},${o} L ${i},${o} Z`;break;case Zt.X:r=`M ${i},${o} L ${n},${s} M ${i},${s} L ${n},${o} E`;break}return r}function vp(t){let{stringToTruncate:e,characterLimit:r,ellipsis:a=L.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 wT(t){let{input:e,charsPerLine:r}=t,a=e;if(r>0&&e.length>r){let i=e.lastIndexOf(" ",r),n=e.lastIndexOf("-",r),s=Math.max(i,n),o=s===n&&n>0,l=s>0?s+(o?1:0):r,d=Math.min(r,l),c=e.slice(0,d).trimEnd(),u=e.slice(d).trimStart();u.length>r&&(u=vp({stringToTruncate:u,characterLimit:Math.max(1,r-1)})),a=`${c}
4
- ${u}`}return a}function xT(t,e=":"){return t?`\u200F${e}`:`\u200E${e}`}function CT(t){return e=>{let r=typeof e!="string"?e?.toString()??"":e;return!ze(r)&&r!==L.htmlEmptyContent&&(r=vp({stringToTruncate:r,characterLimit:t})),r}}function pv(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 fv(t,e){let r="";return t!==void 0&&(r=`${e==="amChartsV5"?"fontStyle":"font-style"}:${t};`),r}function hv(t,e){let r="";return t===!0&&(r=`${e==="amChartsV5"?"letterSpacing":"letter-spacing"}:1px;`),r}function TT(t){let{textSymbol:e,placeholderString:r,format:a,axisLabelsBehavior:i,defaults:n}=t,s=fv(e?.font?.style,a),o=hv(e?.kerning,a),l=r??e?.text??"";if(a==="html"){let{wrap:d,maxWidth:c}=n??{};i===Mo.Wrap&&(d=!0,c=c??L.xAxisLabelMaxWidth);let u=d===!0&&Number.isFinite(c)?`max-width: ${c}px; word-break: break-word;`:"";l=`<p style="margin:0;${s}${o}${u}">${l}</p>`}else l=pv(l),(s!==""||o!=="")&&(l=`[${s}${o}]${l}[/]`);return l}function mv(t){return t?t.replace(/[A-Z]/gu,e=>`-${e.toLowerCase()}`):void 0}function Qr(t){return K(t?.series)===b.HeatSeries}function rt(t){return K(t?.series)===b.BoxPlotSeries}function yv(t,e){return t[0].dataTransformationType!==e[0].dataTransformationType}function gv(t,e){return t[0].binCount!==e[0].binCount}function FT(t,e){let r=!0,a=K(t?.series),i=K(e?.series);return a&&a!==i&&(r=a===b.ComboLineAndBarSeries&&(i===b.BarSeries||i===b.LineSeries)||i===b.ComboLineAndBarSeries&&(a===b.BarSeries||a===b.LineSeries)||a===b.BarSeries&&i===b.LineSeries||a===b.LineSeries&&i===b.BarSeries),r}function Js(t,e){return t!==void 0&&e!==void 0&&e>0}function IT(t){let{chartConfig:e,queryObject:r,chartData:a}=t,i=[],n=X(e.series),s=Tp(e),o=se(r),l=e.chartRenderer??o?.renderer?.toJSON();return i=e.series.map((d,c)=>{let u=K([d]),f;return(u===b.BarSeries||u===b.LineSeries||u===b.RadarSeries)&&(d.type===b.BarSeries?f=d.fillSymbol?.color:(d.type===b.RadarSeries||d.type===b.LineSeries)&&(f=d.lineSymbol?.color),s?f=Ov({dataItem:a[0],seriesConfig:d,chartSubType:n,colorMatch:s,rendererType:l?.type})?.color:f===void 0&&(f=Nt({colorIndex:c}))),f}).filter(d=>d!==void 0),i}function Ys(t){return t!==C.PieNoAggregation&&t!==C.BarAndLineNoAggregation&&t!==C.BarAndLineSplitByNoAggregation}function bv(t){let e=X(t.series);return e===C.BarAndLineFromFields||e===C.PieFromFields||e===C.BoxPlotMonoField||e===C.BoxPlotMultiFields||e===C.BoxPlotMonoFieldAndSplitBy||e===C.BoxPlotMultiFieldsAndSplitBy}function Ii(t){return rt(t)?t?.showMean??!1:!1}function vv(t){return rt(t)?t?.showOutliers:void 0}function OT(){return`{name} {${L.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`}var AT=[b.BarSeries,b.BoxPlotSeries,b.LineSeries,b.PieSeries,b.HistogramSeries,b.ScatterSeries],PT=1,ET={PNG:"png"},Ci={ChartRenderer:1,LayerRenderer:2};function LT(t){let{chartConfig:e,queryObject:r}=t,a=!1;if(e.chartRenderer)a=!0;else{let{series:i}=e,n=K(i),s=X(i),o=cr(e),l=ur({seriesConfig:o,queryObject:r}),d=se(r)?.renderer;switch(d?.type){case Xe.Simple:a=n===b.HistogramSeries||n===b.ScatterSeries||s===C.BarAndLineMonoField||s===C.BoxPlotMonoField||s===C.BoxPlotMultiFields||s===C.BoxPlotMonoFieldAndCategory||s===C.BarAndLineNoAggregation&&i.length===1&&!l;break;case Xe.UniqueValue:{let c=d?.field,u=Qe(o.query?.where),{x:f}=o;a=(s===C.BoxPlotMonoFieldAndSplitBy||s===C.BoxPlotMultiFieldsAndSplitBy||s===C.BoxPlotMonoFieldAndCategoryAndSplitBy||s===C.BarAndLineSplitByNoAggregation||s===C.BarAndLineSplitBy)&&c===u||(s===C.BoxPlotMonoFieldAndCategory||s===C.PieFromCategory||s===C.BarAndLineMonoField)&&c===f||s===C.BarAndLineNoAggregation||s===C.PieNoAggregation||n===b.ScatterSeries}break;case Xe.PieChart:a=s===C.PieFromFields||s===C.BarAndLineFromFields||s===C.BarAndLineMultiFields||s===C.BarAndLineMonoField||s===C.BoxPlotMonoField||s===C.BoxPlotMultiFields||s===C.BoxPlotMonoFieldAndCategory||s===C.BoxPlotMultiFieldsAndCategory;break;case Xe.ClassBreaks:a=n===b.HeatSeries||n===b.ScatterSeries||s===C.BarAndLineNoAggregation||s===C.PieNoAggregation;break;case Xe.Dictionary:case Xe.DotDensity:case Xe.Heatmap:break}}return a}function Sv(t,e){return mv(t?.type)??e?.type}function wv(t){let e=L.rendererSymbolField,r=e in t?e:void 0;if(!r){let a=t[L.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 xv(t){return t?.type!==void 0&&(t.color!==void 0||t.label!==void 0||t.style!==void 0||t.outline!==void 0)}function Sp(t){let{symbolField:e,dataItem:r,rendererSymbol:a,rendererOrigin:i}=t,n=!1;if(!xv(a))delete r[e];else{let s={...a};s.color!==void 0&&i===Ci.LayerRenderer&&(s.color[3]=lt*255),i===Ci.LayerRenderer&&(delete s.style,delete s.outline,delete s.label),r[e]=s,n=!0}return n}function Cv(t){let{renderer:e,seriesConfig:r,chartSubType:a,dataItem:i,rendererOrigin:n}=t,s,o=!1,l=K(r),{outline:d,attributes:c}=e;return c.forEach(u=>{let{field:f}=u,{color:p,label:h}=u,y;Array.isArray(p)&&p?.length===4?y=p:p&&"toRgba"in p&&(y=p.toRgba());let m=!1,g=!0;switch(l){case b.BarSeries:case b.LineSeries:case b.ComboLineAndBarSeries:case b.RadarSeries:if(a!==C.BarAndLineFromFields){let v=r.find(S=>S.query?.outStatistics?.[0]?.onStatisticField===f);v!==void 0&&"y"in v?f=[v.y].flat()[0]:f=""}m=a!==C.BarAndLineFromFields||f===i[L.originalCategoryValue];break;case b.PieSeries:m=a===C.PieFromFields&&f===i[L.originalCategoryValue];break;case b.BoxPlotSeries:a===C.BoxPlotMonoField||a===C.BoxPlotMonoFieldAndCategory?m=f===r[0].y:f&&(a===C.BoxPlotMultiFields||a===C.BoxPlotMultiFieldsAndCategory)&&(m=r.map(v=>v.y).flat().includes(f)),g=!1;break}m&&y&&(s={type:be.SMS,color:y,label:g&&h?h:void 0},d!=null&&(s.outline=d),Sp({dataItem:i,symbolField:a===C.BarAndLineFromFields||a===C.PieFromFields?L.rendererSymbolField:`${L.rendererSymbolField}_${f}`,rendererSymbol:s,rendererOrigin:n})&&(o=!0))}),{rendererSymbol:s,colorMatchApplied:o}}function Tv(t){let{seriesConfig:e,chartSubType:r,rendererType:a}=t,i=L.rendererSymbolField;if(a===Xe.UniqueValue){if(Ip(r)){let n=dt({where:e.query?.where,keepSurroundingQuotes:!1,escape:!1});n===null?i=L.nullValue:r===C.BarAndLineSplitBy&&typeof e.y=="string"?i=e.y:r===C.BarAndLineSplitByNoAggregation&&typeof e.y=="string"?i=`${e.y}_${n}`:i=`${n}`}}else if(a===Xe.PieChart)switch(r){case C.BoxPlotMultiFields:i=Array.isArray(e.y)?e.y.flat():e.y;break;case C.BarAndLineMonoField:case C.BarAndLineMultiFields:case C.BoxPlotMonoField:case C.BoxPlotMonoFieldAndCategory:case C.BoxPlotMultiFieldsAndCategory:i=e.y;break}return i}function wp(t){let{seriesConfig:e,chartSubType:r,rendererType:a,dataItem:i}=t,n=Tv({seriesConfig:e,chartSubType:r,rendererType:a});return n instanceof Array&&e.type===b.BoxPlotSeries&&a===Xe.PieChart&&i!==void 0&&(n=n.find(s=>s===i[Ni])??n[0]),n=n!==L.rendererSymbolField?`${L.rendererSymbolField}_${n.toString()}`:n,n}function Fv(t){let{chartRenderer:e,queryObject:r}=t,a=e!==void 0?{...se(r),renderer:so.fromJSON(e)}:se(r);return new Xg({layer:a})}async function Iv(t){let{seriesConfig:e,dataItem:r,renderer:a,rendererType:i,rendererOrigin:n,chartSubType:s,splitByField:o,graphicTemplate:l,rendererFieldNames:d,mapAttributesToSymbol:c}=t,u,f=!1;if(i===Xe.PieChart){let p=Cv({renderer:a,seriesConfig:e,chartSubType:s,dataItem:r,rendererOrigin:n});u=p.rendererSymbol,f=p.colorMatchApplied}else if(r?.[hn.defaultGroupOfSlicesId]!==!0){let{x:p}=e[0],h=new Map;o&&o.trim()!==""?e.forEach(y=>{if(y.type===b.BarSeries||y.type===b.LineSeries||y.type===b.BoxPlotSeries||y.type===b.RadarSeries){let m=wp({seriesConfig:y,chartSubType:s,rendererType:i,dataItem:r}),g=dt({where:y.query?.where,normalize:!0,keepSurroundingQuotes:!1,escape:!1});h.set(m,{...r,[o]:g})}}):e[0].type===b.HeatSeries&&i===Xe.ClassBreaks?h.set(L.rendererSymbolField,{[te.valueField]:r[te.valueField]}):h.set(K(e)===b.HistogramSeries?L.rendererSymbolFieldForHistogram:L.rendererSymbolField,{...r,[p]:Lv(r)});try{let y=Array.from(h.entries()),m=l.clone();m.layer=l.layer;let g=a?.uniqueValueInfos;for(let v=0;v<y.length;v+=1){let[S,w]=y[v];if(Vu({mode:"encode",x:p,splitByField:o,attributes:w}),d&&d.length>0&&Object.keys(w).forEach(T=>{d.includes(T)||delete w[T]}),m.attributes=w,c?.has(JSON.stringify(w)))u=c.get(JSON.stringify(w));else{if(u=(await Li.getDisplayedSymbol(m))?.toJSON(),u!=null){if(u.color===void 0){let I=(await Li.getDisplayedColor(m))?.toJSON();I&&(u.color=I.length===4?I:[...I,255])}let T=await Li.getLegendLabel(m);T!=null&&T!==""&&(u.label=T,u.uniqueValue=g?.find(I=>I.label===T)?.value??void 0)}c?.set(JSON.stringify(w),u)}Vu({mode:"revert",x:p,splitByField:o,attributes:r}),Sp({dataItem:r,symbolField:S,rendererSymbol:u,rendererOrigin:n})&&(f=!0)}}catch{}}return{rendererSymbol:u,colorMatchApplied:f}}function Vu(t){let{splitByField:e,attributes:r,x:a,mode:i}=t;[a,e??""].forEach(n=>{r[n]===(i==="encode"?null:L.nullValue)&&(r[n]=i==="encode"?L.nullValue:null)})}function Ov(t){let{dataItem:e,seriesConfig:r,chartSubType:a,colorMatch:i,rendererType:n}=t,s;if(i&&e!==void 0){let o=wp({seriesConfig:r,chartSubType:a,rendererType:n,dataItem:e});s=e[o]}return s}function NT(t){let{seriesSymbol:e,rendererSymbol:r,colorIndex:a}=t,i=r?.color??e.color;i=i??Nt({colorIndex:a,opacity:lt});let n={...e,color:i},s=n.type===be.SFS&&uv(n.style);return r?.type===e.type&&r.style!==void 0&&!s&&(n.style=r.style),n.type!==be.SLS&&(n.outline={type:be.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 Av(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=it(t.series))),e}function DT(t,e){let r=!1;if(t&&e&&e.length>0&&Tp(t)){let a=bv(t),i=cr(t);a?r=Av(t).some(n=>e.includes(n)):r=e.includes(i.x)}return r}function Pv(t){let e=[];if(t&&"type"in t&&typeof t.type=="string")switch(t.type){case"uniqueValue":case"unique-value":"field1"in t&&typeof t.field1=="string"&&(e=[t.field1]);break;case"classBreaks":case"class-breaks":"field"in t&&typeof t.field=="string"&&(e=[t.field]);break;case"pieChart":case"pie-chart":"attributes"in t&&Array.isArray(t.attributes)&&(e=t.attributes.map(r=>r.field));break}return e}function Ev(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 ra(t){let{value:e,dataContext:r,specificField:a,keepNullValues:i=!1,useRendererLabel:n=!1,config:s}=t,o=e,{originalCategoryValue:l,originalDateValue:d}=L;if(r!==void 0){let c=n?wv(r):void 0;a!==void 0&&r[a]!==void 0?o=r[a]:c!==void 0?o=c:r[d]!==void 0?o=r[d]:r[l]!==void 0?o=r[l]:r[ot]!==void 0&&(o=r[ot]),!i&&o===null&&(o="null",s?.series?.[0].type===b.BarSeries&&(o=s.series?.[0]?.nullCategory?.text??Fi.nullCategory?.text??o))}return o}function Lv(t){return t?.[L.originalCategoryValue]}function ia(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===Be.Descending&&i!==!0;e.sort((c,u)=>{let f=0,p=c[a];s===!0&&!l&&(p=ra({value:`${c[a]?.toString()}`,dataContext:c,specificField:o?L.xAxisField:void 0}));let h=u[a];return s===!0&&!l&&(h=ra({value:`${u[a]?.toString()}`,dataContext:u,specificField:o?L.xAxisField:void 0})),n===!0&&d&&s===!0&&(p=Number.isNaN(Number.parseFloat(`${p?.toString()}`))?p:Number.parseFloat(p),h=Number.isNaN(Number.parseFloat(`${h?.toString()}`))?h:Number.parseFloat(h)),s===!0&&(c[L.originalCategoryValue]===null||p===null)||c[hn.defaultGroupOfSlicesId]===!0?f=1:s===!0&&(u[L.originalCategoryValue]===null||h===null)||u[hn.defaultGroupOfSlicesId]===!0?f=-1:typeof p=="string"&&typeof h=="string"?(f=p.localeCompare(h,void 0,{numeric:!0}),d&&(f*=-1)):p===void 0?f=d?-1:1:h===void 0?f=d?1:-1:p!==null&&h!==null&&(p>h?f=d?-1:1:p<h&&(f=d?1:-1)),f})}}function Nv(t){let{arrayToSort:e,orderBy:r,sortingField:a,fieldList:i,isByFieldsChart:n,preferLabel:s}=t;e!==void 0&&e.length>1&&!ze(a)&&r!==void 0&&r.length>0&&e.sort((o,l)=>{let d=o[a];s&&n&&typeof d=="string"&&(d=eo(i,d));let c=r.indexOf(d?.toString()??"");c===-1&&(c=r.length);let u=l[a];s&&n&&typeof u=="string"&&(u=eo(i,u));let f=r.indexOf(u?.toString()??"");return f===-1&&(f=r.length),c-f})}function xp(t){let{statsMap:e,dataContext:r,chartLimits:a}=t,i=!1;if(e!==void 0){let{maxScatterPointsBeforeAggregation:n}=Xr(a),{queryNumberOfFeatures:s}=L.scatterplotAggregationFields;i=(e.get(s)??Number.NaN)>=n}else r!==void 0&&(i=L.scatterplotAggregationFields.dataContextXMinField in r);return i}function Dv(t){let e=!0,r=K(t.series);if(r===b.BarSeries||r===b.LineSeries||r===b.ComboLineAndBarSeries){let a=X(t.series);e=a!==C.BarAndLineNoAggregation&&a!==C.BarAndLineSplitByNoAggregation}return e}function Bv(t){return X(t.series)!==C.PieNoAggregation}function $v(t){let{dataContext:e,chartConfig:r,chartLimits:a}=t,i=!0;if(r!==void 0)switch(K(r.series)){case b.BarSeries:case b.LineSeries:case b.ComboLineAndBarSeries:i=Dv(r);break;case b.ScatterSeries:i=xp({dataContext:e,chartLimits:a});break;case b.PieSeries:i=Bv(r);break}return i}function Mv(t,e){let r=t;switch(e){case Ae.Log:r=`log(${t})`;break;case Ae.Sqrt:r=`power(CAST(${t} AS FLOAT),0.5)`;break}return r}function Oi(t){let e=new Date(t).valueOf();return Number.isNaN(e)||(e=new Intl.DateTimeFormat("en-US",L.dateFormatUTC).format(t).replace(",","")),e}function mn(t){let{dataToConvert:e,x:r,y:a,fieldList:i}=t,n=[];if(e){let s=e[Ir];Object.entries(e).forEach(([o])=>{if(o!==""&&o!==Ir&&o in e){let l={[r]:eo(i,o),[a]:e[o],[L.xAxisField]:o,[L.originalCategoryValue]:o};s!==void 0&&(l[Ir]=s),e[`${L.rendererSymbolField}_${o}`]!==void 0&&(l[L.rendererSymbolField]=e[`${L.rendererSymbolField}_${o}`]),n.push(l)}})}return n}function qv(t,e){let r=!0;if(t!==void 0&&t.length>1&&!ze(e)){let a=0,i=0,n=0;t.forEach(s=>{let o=s[e];!Uv(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 ln(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 Cp(t,e){let r,{maxBarChartSeriesCount:a,maxBarUniqueSeriesCountTotal:i,maxBarTwoSeriesCountPerSeries:n,maxBarTwoSeriesCountTotal:s,maxBarThreePlusSeriesCountPerSeries:o,maxBarThreePlusSeriesCountTotal:l,maxLineChartSeriesCount:d,maxLineUniqueSeriesCountTotal:c,maxLineTwoSeriesCountPerSeries:u,maxLineTwoSeriesCountTotal:f,maxLineThreePlusSeriesCountPerSeries:p,maxLineThreePlusSeriesCountTotal:h,maxPieChartSliceCountTotal:y,maxGaugeByFeaturesLimit:m}=Xr(e),g=K(t.series),v=t.series.length===0?1:t.series.length,S=X(t.series);switch(g){case b.ComboLineAndBarSeries:case b.BarSeries:v<=a&&(v===1?r=i:v===2?r=ln({countTotal:s,countPerSeries:n,numberOfSeries:v}):v>2&&(r=ln({countTotal:l,countPerSeries:o,numberOfSeries:v})));break;case b.LineSeries:v<=d&&(v===1?r=c:v===2?r=ln({countTotal:f,countPerSeries:u,numberOfSeries:v}):v>2&&(r=ln({countTotal:h,countPerSeries:p,numberOfSeries:v})));break;case b.PieSeries:r=y;break;case b.GaugeSeries:r=m;break;case b.ScatterSeries:case b.HistogramSeries:case b.BoxPlotSeries:}return(S===C.BarAndLineNoAggregation||S===C.BarAndLineMultiFields)&&r!==void 0&&(r=Math.ceil(r/v)),r}function _u(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 Rv(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 BT(t){let e;if(Rv(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 Kr={groupByCaseBegin:"CASE",groupByOutKeyword:"OUT",groupByCaseEnd:"ELSE 'OUT' END"},C={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"},$T={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function Tp(t){return t?.colorMatch??!1}function zu(t){let e=ta();if(t!==void 0){let r=K(t.series);(r===b.BarSeries||r===b.LineSeries||r===b.ComboLineAndBarSeries||r===b.BoxPlotSeries)&&(e=t.rotated??ta())}return e}function MT(t){return t?.map(e=>e.type)??[]}function co(t){let e=t?.stackedType;if(e===void 0&&t!==void 0){let r=K(t.series);(r===b.BarSeries||r===b.LineSeries||r===b.ComboLineAndBarSeries||r===b.RadarSeries)&&(e=ov())}return e}function kv(t){let e=t;return e=e.replace(/'/gu,"''"),e=e.replace(/[/\\"|[\]\\]/gu,"\\$&"),e}function Wv(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 Xs(t){let e=t,r="";t.startsWith("'")&&t.endsWith("'")&&(e=t.slice(1,-1),r="'"),e=e.replace(/'/gu,"''");let a="";return Wv(e)&&(a="N"),`${a}${r}${e}${r}`}function Fp(t){let{value:e,keepSurroundingQuotes:r,escape:a}=t,i=e?.trim();if(!ze(i)){let n="";i.startsWith("'")&&i.endsWith("'")&&(i=i.slice(1,-1),r&&(n="'")),a&&(i=kv(i)),i=`${n}${i}${n}`}return i}function ar(t){let{count:e,seriesCount:r,chartType:a,chartLimits:i}=t,{behaviorAfterLimit:n}=i??{},s=!0;if(n!==Er.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:d,maxBarTwoSeriesCountTotal:c,maxBarThreePlusSeriesCountPerSeries:u,maxBarThreePlusSeriesCountTotal:f,maxLineChartSeriesCount:p,maxLineUniqueSeriesCountTotal:h,maxLineTwoSeriesCountPerSeries:y,maxLineTwoSeriesCountTotal:m,maxLineThreePlusSeriesCountPerSeries:g,maxLineThreePlusSeriesCountTotal:v,maxPieChartSliceCountTotal:S,maxGaugeByFeaturesLimit:w,maxBoxPlotSeriesCount:T,maxBoxUniqueSeriesCountTotal:I,maxBoxTwoSeriesCountTotal:E,maxBoxTwoSeriesCountPerSeries:P,maxBoxThreePlusSeriesCountTotal:O,maxBoxThreePlusSeriesCountPerSeries:N,maxHeatChartCellLimit:R}=Xr(i);switch(a){case b.BarSeries:case b.ComboLineAndBarSeries:{let D=e/r;r<=o?r===0?s=!0:r===1?s=e<=l:r===2?s=e<=c&&D<=d:r>2&&(s=e<=f&&D<=u):s=!1}break;case b.LineSeries:case b.RadarSeries:{let D=e/r;r<=p?r===0?s=!0:r===1?s=e<=h:r===2?s=e<=m&&D<=y:r>2&&(s=e<=v&&D<=g):s=!1}break;case b.PieSeries:s=e<=S;break;case b.BoxPlotSeries:{let D=e/r;r<=T?r===0?s=!0:r===1?s=e<=I:r===2?s=e<=E&&D<=P:r>2&&(s=e<=O&&D<=N):s=!1}break;case b.HeatSeries:s=e<=R;break;case b.GaugeSeries:s=e<=w;break}}return s}function eo(t=[],e){let r=t.find(a=>a.name===e)?.alias;return r!==""?r??e:e}function qT(t=[],e){let r=t.find(a=>a.alias===e)?.name;return r!==""?r??e:e}function RT(t){let e=!1;switch(K(t)){case b.HeatSeries:case b.PieSeries:e=!0;break;case b.BarSeries:case b.LineSeries:case b.RadarSeries:case b.ComboLineAndBarSeries:case b.BoxPlotSeries:e=t.length>1;break;case b.HistogramSeries:case b.ScatterSeries:{let r=t[0];e=r.overlays!==void 0&&Object.values(r.overlays).some(a=>a.created===!0);break}}return e}function jv(t){let e=!0;return K(t.series)===b.ScatterSeries&&(e=t.series.length===1),e}function Vv(t){let e=!0;return K(t.series)===b.HistogramSeries&&(e=t.series.length<=1&&t.series[0].type===b.HistogramSeries&&(!("dataTransformationType"in t.series[0])||t.series[0].dataTransformationType!==void 0&&Object.values(Ae).includes(t.series[0].dataTransformationType))),e}function _v(t){let e=!0;return K(t.series)===b.PieSeries&&(e=t.series.length<=1),e}function zv(t,e){let r=K(e?.series),a=r!==void 0&&t.includes(r);if(a&&e!==void 0)switch(r){case b.HistogramSeries:a=Vv(e);break;case b.ScatterSeries:a=jv(e);break;case b.PieSeries:a=_v(e);break}return a}function ze(t){return t==null||typeof t=="string"&&t.trim()===""}function pn(t,e){let r=e.find(a=>a in t);return{isInItem:r!==void 0,expr:r}}function Cn(t){return pn(t,mp)}function kT(t,e){let r;switch(t){case Q.Second:r=e.seconds??"";break;case Q.Minute:r=e.minutes??"";break;case Q.Hour:r=e.hours??"";break;case Q.Day:r=e.days??"";break;case Q.Week:r=e.weeks??"";break;case Q.Month:r=e.months??"";break;case Q.Year:r=e.years??"";break;default:r="";break}return r}function WT(t){let e;switch(t){case rr.Mean:e=1;break;case rr.Median:e=2;break;case rr.StdDev:e=3;break;case rr.Normal:default:e=0;break}return e}function jT(t,e){if(e!==void 0){let{seriesId:r,overlayType:a,visible:i}=t.detail,n;switch(a){case rr.Mean:e.series[0].type===b.HistogramSeries&&(n=e.series[0].overlays?.mean);break;case rr.Median:e.series[0].type===b.HistogramSeries&&(n=e.series[0].overlays?.median);break;case rr.StdDev:e.series[0].type===b.HistogramSeries&&(n=e.series[0].overlays?.standardDeviation);break;case rr.Normal:e.series[0].type===b.HistogramSeries&&(n=e.series[0].overlays?.comparisonDistribution);break;case rr.Trendline:e.series[0].type===b.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 VT(t){return new Nd().sanitize(t)}function Uv(t){return t!=null&&!Number.isNaN(t)&&Number.isFinite(t)}function Hv(t,e){let r={fieldToSort:""};if(!ze(t)){let a=t.trim(),i=a.split(" ").at(-1)?.toUpperCase();i===Be.Ascending||i===Be.Descending?r={fieldToSort:a.substring(0,a.lastIndexOf(" ")),orderBy:i}:(r={fieldToSort:a},e!==!1&&(r.orderBy=Be.Ascending))}return r}function Ip(t){return t===C.BarAndLineSplitBy||t===C.BarAndLineSplitByNoAggregation||t===C.BoxPlotMonoFieldAndSplitBy||t===C.BoxPlotMultiFieldsAndSplitBy||t===C.BoxPlotMonoFieldAndCategoryAndSplitBy}function _T(t){return t?.selectionPixelTarget?Bn(t.selectionPixelTarget.pixelRanges):t?.selectionOIDs===void 0||t.selectionOIDs.length===0}function zT(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 c=a(l);i.set(c,d)});let n=[],s=[];e.forEach((l,d)=>{let c=a(l);i.has(c)&&(n.push(d),s.push(l))}),s.sort((l,d)=>{let c=a(l),u=a(d);return i.get(c)-i.get(u)});let o=[...e];return n.forEach((l,d)=>{o[l]=s[d]}),o}function UT(t,e){return(t===C.BarAndLineNoAggregation||t===C.BarAndLineSplitByNoAggregation)&&e!==void 0?e.x:L.xAxisField}function HT(t){let{r:e,g:r,b:a,a:i=1}=t,n=Math.round((1-i)*255+i*e),s=Math.round((1-i)*255+i*r),o=Math.round((1-i)*255+i*a);return .299*n+.587*s+.114*o>128}function GT(t){return K(t.series)!==b.BoxPlotSeries?L.xAxisField:t.series[0].x}function ZT(t){let e=co(t);return e===gt.Stacked||e===gt.Stacked100}function QT(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 Gv(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 Op(t){return Qr(t)&&ir(t?.axes?.[0]?.valueFormat)&&ir(t?.axes?.[1]?.valueFormat)}function yn(t){let{dataInfo:e,chartType:r,subError:a}=t;switch(e.valid=!1,r){case b.BarSeries:case b.ComboLineAndBarSeries:e.invalidType=ae.BarElementExceedsLimit;break;case b.LineSeries:e.invalidType=ae.LineChartExceedsLimit;break;case b.PieSeries:e.invalidType=ae.PieChartExceedsLimit;break;case b.GaugeSeries:e.invalidType=ae.GaugeExceedsLimit;break;case b.BoxPlotSeries:a?.outlierLimit===!0?e.invalidType=ae.BoxPlotOutliersExceedsLimit:e.invalidType=ae.BoxPlotExceedsLimit;break;case b.HeatSeries:e.invalidType=ae.HeatChartExceedsLimit;break}}function Zv(t,e){t.valid=!1,t.invalidType=e}function KT(t){let{invalidType:e,chartLimits:r,elementCount:a,seriesCount:i,queryObject:n,filterBySelection:s,formatLocale:o=hf(document.documentElement),isTemporalChart:l,errorStrings:d}=t,c=d.errors.defaultInvalidChart,u,f=new Intl.NumberFormat(o),p=Xr(r),{maxCategoryCount:h}=p,y=d.modalHeaders.invalidChart;switch(e){case ae.BarElementExceedsLimit:{y=d.modalHeaders.tooManyFeatures;let m=Number.NaN,g=Number.NaN,v="";i!==void 0&&(i<=p.maxBarChartSeriesCount?i===1?(v=d.errors.uniqueSeriesBarCountCannotExceedLimit,m=p.maxBarUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBarCountCannotExceedLimit,m=p.maxBarTwoSeriesCountTotal,g=p.maxBarTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusSeriesBarCountCannotExceedLimit,m=p.maxBarThreePlusSeriesCountTotal,g=p.maxBarThreePlusSeriesCountPerSeries):(v=d.errors.barSeriesCountCannotExceedLimit,g=p.maxBarChartSeriesCount));let S=f.format(m),w=f.format(g),T=a!==void 0?f.format(a):"";c=ke(v,{totalLimit:S,seriesLimit:w,elementCount:T}),u={actualCount:a??Number.NaN,totalLimit:m,seriesLimit:g};break}case ae.LineChartExceedsLimit:{y=d.modalHeaders.tooManyFeatures;let m=Number.NaN,g=Number.NaN,v="";i!==void 0&&(i<=p.maxLineChartSeriesCount?i===1?(v=l?d.errors.uniqueTemporalSeriesLineCountCannotExceedLimit:d.errors.uniqueSeriesLineCountCannotExceedLimit,m=p.maxLineUniqueSeriesCountTotal):i===2?(v=l?d.errors.twoTemporalSeriesLineCountCannotExceedLimit:d.errors.twoSeriesLineCountCannotExceedLimit,m=p.maxLineTwoSeriesCountTotal,g=p.maxLineTwoSeriesCountPerSeries):i>2&&(v=l?d.errors.threePlusTemporalSeriesLineCountCannotExceedLimit:d.errors.threePlusSeriesLineCountCannotExceedLimit,m=p.maxLineThreePlusSeriesCountTotal,g=p.maxLineThreePlusSeriesCountPerSeries):(v=d.errors.lineSeriesCountCannotExceedLimit,g=p.maxLineChartSeriesCount));let S=f.format(m),w=f.format(g),T=a!==void 0?f.format(a):"";c=ke(v,{elementCount:T,seriesLimit:w,totalLimit:S}),u={actualCount:a??Number.NaN,totalLimit:m,seriesLimit:g}}break;case ae.BoxPlotExceedsLimit:{y=d.modalHeaders.tooManyFeatures;let m=Number.NaN,g=Number.NaN,v="";i!==void 0&&(i<=p.maxBoxPlotSeriesCount?i===1?(v=d.errors.uniqueSeriesBoxCountCannotExceedLimit,m=p.maxBoxUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBoxCountCannotExceedLimit,m=p.maxBoxTwoSeriesCountTotal,g=p.maxBoxTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusBoxLineCountCannotExceedLimit,m=p.maxBoxThreePlusSeriesCountTotal,g=p.maxBoxThreePlusSeriesCountPerSeries):(v=d.errors.boxSeriesCountCannotExceedLimit,g=p.maxBoxPlotSeriesCount));let S=f.format(m),w=f.format(g),T=a!==void 0?f.format(a):"";c=ke(v,{elementCount:T,seriesLimit:w,totalLimit:S}),u={actualCount:a??Number.NaN,totalLimit:m,seriesLimit:g}}break;case ae.BoxPlotOutliersExceedsLimit:{y=d.modalHeaders.tooManyFeatures;let m=d.errors.boxSeriesOutlierCannotExceedLimit,g=p.maxBoxPlotOutlierLimit,v=f.format(g);c=ke(m,{totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:g}}break;case ae.HeatChartExceedsLimit:{y=d.modalHeaders.tooManyFeatures;let m=d.errors.heatChartCannotExceedLimit,g=p.maxHeatChartCellLimit,v=f.format(g),S=a!==void 0?f.format(a):"";c=ke(m,{featureCount:S,totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:g}}break;case ae.PieChartExceedsLimit:{y=d.modalHeaders.tooManyFeatures;let m=d.errors.pieChartSlicesCannotExceedLimit,g=p.maxPieChartSliceCountTotal,v=f.format(g),S=a!==void 0?f.format(a):"";c=ke(m,{sliceCount:S,totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:g}}break;case ae.GaugeExceedsLimit:{y=d.modalHeaders.tooManyFeatures;let m=d.errors.gaugeCannotExceedLimit,g=p.maxGaugeByFeaturesLimit,v=f.format(g),S=a!==void 0?f.format(a):"";c=ke(m,{featureCount:S,totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:g}}break;case ae.PieChartMixOfNegativePositiveSlices:y=d.modalHeaders.cannotCombineNegativeAndPositiveSlices,c=d.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;break;case ae.NegativeValueInSqrtCalculation:y=d.modalHeaders.invalidData,c=d.errors.negativeValueInDataForSqrtTransformation;break;case ae.NegativeValueInLogCalculation:y=d.modalHeaders.invalidData,c=d.errors.negativeValueInDataForLogTransformation;break;case ae.HistogramEmptyField:s===!0?(y=d.modalHeaders.noDataAvailable,c=d.errors.noDataFBSMessage):Or(n)?(y=d.modalHeaders.noDataAvailable,c=d.errors.noDataFBEMessage):(y=d.modalHeaders.invalidChart,c=d.errors.histogramEmptyField);break;case ae.EmptyDataSet:y=d.modalHeaders.noDataAvailable,s===!0?c=d.errors.noDataFBSMessage:Or(n)?c=d.errors.noDataFBEMessage:c=d.errors.noDataMessage;break;case ae.NegativeValueInXAxisLogScale:c=d.errors.logarithmicXAxisNotPossible;break;case ae.NegativeValueInYAxisLogScale:c=d.errors.logarithmicYAxisNotPossible;break;case ae.BadData:}if(c===d.errors.defaultInvalidChart&&(e===ae.BarElementExceedsLimit||e===ae.LineChartExceedsLimit||e===ae.HeatChartExceedsLimit||e===ae.PieChartExceedsLimit||e===ae.GaugeExceedsLimit||e===ae.BoxPlotExceedsLimit)&&typeof a=="number"&&typeof i=="number"&&a/i>h){let m=a/i;c=ke(d.errors.categoryCountCannotExceedLimit,{categoryCount:f.format(m),maxCategoryCount:f.format(h)})}return{keyword:e??ae.BadData,header:y,message:c,params:u}}function Ai(t,e){return`${e}_${t}`}function to(t){let{value:e,mean:r,stdDev:a}=t;return(e-r)/a}function uo(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:Z.Average}),c=Ue({...l,key:Z.StandardDeviation}),u=n??Number(e[d]),f=s??Number(e[c]);return Number.isFinite(u)&&Number.isFinite(f)&&Object.values(Z).forEach(p=>{let h=Ue({key:p,y:a,chartSubType:r,splitByValue:i}),y=e[h];if(y!=null){let m=Number(y);if(Number.isFinite(m)){l={...l,key:p,showOutliers:!1,standardizeValues:!0};let g=Ue(l);if(o[g]=to({mean:u,stdDev:f,value:m}),p===Z.Min||p===Z.Max){l={...l,key:p,showOutliers:!0,standardizeValues:!0},g=Ue(l),l={...l,standardizeValues:!1,splitByValue:i};let v=Ue(l);m=Number(e[v]),Number.isFinite(m)&&(o[g]=to({mean:u,stdDev:f,value:m}))}}}}),o}function Qv(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(L.rendererSymbolField)&&(o[l]=i[l]),o[L.boxPlot.boxPlotCategory]=s,a&&(o=uo({dataItem:o,chartSubType:C.BoxPlotMultiFields}))}),n.set(s,o)}),Array.from(n.values())}function Kv(t){let{data:e,splitByField:r,y:a}=t,i={[L.boxPlot.boxPlotCategory]:a};return e.forEach(n=>{let s=n[r];s!==void 0&&Object.keys(n).forEach(o=>{o===L.rendererSymbolField?i[`${o}_${s?.toString()}`]=n[o]:o===L.boxPlot.boxPlotMeanLineMarkerId?i[o]=n[o]:i[`${s?.toString()}_${o}`]=n[o]})}),[i]}function Jv(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 c={[L.boxPlot.boxPlotCategory]:d};Object.entries(o).forEach(([u,f])=>{u.startsWith(`${d}_`)?c[`${l}_${u.replace(`${d}_`,"")}`]=f:u.includes(L.rendererSymbolField)?c[`${u}_${l}`]=f:u===L.boxPlot.boxPlotMeanLineMarkerId&&(c[u]=o[u])}),i&&(c=uo({dataItem:c,chartSubType:C.BoxPlotMultiFieldsAndSplitBy,splitByValue:l,meanPerField:n?.[Ai(d,W.Average)],stdDevPerField:n?.[Ai(d,W.StandardDeviation)]})),s.set(d,{...s.get(d)??{},...c})})}),Array.from(s.values())}function Yv(t){let{data:e,yList:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,n=e;return a&&n.forEach(s=>{r.forEach(o=>{uo({dataItem:s,chartSubType:C.BoxPlotMultiFieldsAndCategory,y:o,meanPerField:i?.[Ai(o,W.Average)],stdDevPerField:i?.[Ai(o,W.StandardDeviation)]})})}),n}function Xv(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,c])=>{if(d.includes(L.rendererSymbolField))o[`${L.rendererSymbolField}_${l?.toString()}`]=c;else if(d===L.boxPlot.boxPlotMeanLineMarkerId)o[d]=n[d];else if(d!==e&&d!==r){let u=d!==L.xAxisField&&d!==L.originalCategoryValue?`${l?.toString()}_${d}`:d;o[u]=c}}),i.set(s,{...i.get(s)??{},...o})}),Array.from(i.values())}function e0(t,e){let{series:r}=t,a=r[0],{y:i}=a,n=X(t.series),s={y:n===C.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 c=Ue({...s,key:Z.Min,showOutliers:!0}),u=Ue({...s,key:Z.Min,showOutliers:!1}),f=Ue({...s,key:Z.Max,showOutliers:!0}),p=Ue({...s,key:Z.Max,showOutliers:!1});l[f]===void 0&&l[p]!==void 0&&(l[f]=l[p]),l[c]===void 0&&l[u]!==void 0&&(l[c]=l[u])})})}function t0(t,e){let r,a,i=t[e[Z.IQR]],n=t[e[Z.FirstQuartile]],s=t[e[Z.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 Uu(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 f=typeof a!="string"?a:`'${Xs(a)}'`;d=`${r}=${f.toString()}`}let c;if(i!==void 0&&n!==void 0){let f=typeof n!="string"?n:`'${Xs(n)}'`;c=`${i}=${f.toString()}`}let u;return l==="outliers"&&o!==s?u=`(${e}<${o} OR ${e}>${s})`:l==="alternativeData"&&(o===s?u=`(${e}=${o})`:u=`(${e}>=${o} AND ${e}<=${s})`),[d,c,u].filter(f=>f!==void 0).join(" AND ")}function Ap(t){let{data:e,yField:r,x:a,chartSubType:i,splitByField:n}=t,s=i===C.BoxPlotMonoField||i===C.BoxPlotMonoFieldAndCategory||i===C.BoxPlotMonoFieldAndSplitBy||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy?void 0:r,o=Ti(s),l=[],d=[],{maxOperandsPerWhereClause:c}=xn(),u=[],f=[],p=1;return e.forEach((h,y)=>{let{outlierMinThreshold:m,outlierMaxThreshold:g}=t0(h,o);if(typeof m=="number"&&typeof g=="number"){let v={yField:r,outlierMinThreshold:m,outlierMaxThreshold:g};(i===C.BoxPlotMonoFieldAndCategory||i===C.BoxPlotMultiFieldsAndCategory||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&a!==void 0&&a in h&&(v.xField=a,v.xValue=ra({value:h[a],dataContext:h,keepNullValues:!0})),(i===C.BoxPlotMonoFieldAndSplitBy||i===C.BoxPlotMultiFieldsAndSplitBy||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&n!==void 0&&n in h&&(v.splitByField=n,v.splitByValue=h[n]),u.push(Uu({...v,target:"outliers"})),f.push(Uu({...v,target:"alternativeData"})),(p%c===0||y===e.length-1)&&(l.push(Pe(u,"OR")),d.push(Pe(f,"OR")),u=[],f=[])}p+=1}),{outliersFilterBatches:l,dataWithoutOutliersFilterBatches:d}}function r0(t){let{data:e,outlierDataItem:r,chartSubType:a,x:i,y:n,meanAndStdDevPerField:s,splitByField:o}=t,l=s?.[Ai(n,W.Average)],d=s?.[Ai(n,W.StandardDeviation)];if(l===void 0&&d===void 0)switch(a){case C.BoxPlotMultiFields:{let c=Ti(n),u=e[0];l=Number(u[c[Z.Average]]),d=Number(u[c[Z.StandardDeviation]]);break}case C.BoxPlotMultiFieldsAndCategory:{let c=e.find(u=>u[i]===r[i]);if(c!==void 0){let u=Ti(n);l=Number(c[u[Z.Average]]),d=Number(c[u[Z.StandardDeviation]])}break}case C.BoxPlotMultiFieldsAndSplitBy:{let c=e.find(u=>u[o]===r[o]);if(c!==void 0){let u=Ti(n);l=Number(c[u[Z.Average]]),d=Number(c[u[Z.StandardDeviation]])}break}}return{mean:l,stdDev:d}}async function i0(t){let{seriesConfig:e,data:r,uniqueQuery:a,queryObject:i,meanAndStdDevPerField:n,errorStrings:s,abortKey:o,abortSignal:l}=t,d=X(e),c=e[0],{x:u}=c,f=Qe(c.query?.where),p=se(i),h=zt(p).idField,y=it(e),m=[];for(let S=0;S<y.length;S+=1){let w=y[S],{outliersFilterBatches:T}=Ap({data:r,yField:w,x:u,chartSubType:d,splitByField:f});for(let I=0;I<T.length;I+=1){let E=T[I];if(E!==""){let P=[];u!==L.boxPlot.boxPlotCategory&&P.push(u),P.push(w),f!==""&&P.push(f),P.push(h);let O={...a,where:Pe([a.where,E]),groupByFieldsForStatistics:void 0,outStatistics:void 0,orderByFields:void 0,num:void 0,outFields:P};m.push(Dt({queryObject:i,queryConfig:O,featureCount:1,errorStrings:s,abortKey:o,abortSignal:l}))}}}let g=await Promise.all(m),v=new Map;for(let S=0;S<g.length;S+=1){let w=g[S],T=y[S];w.forEach(I=>{let E={...I.attributes};if(E[T]!==void 0){u===L.boxPlot.boxPlotCategory&&(E[L.boxPlot.boxPlotCategory]=T);let P={key:Z.Outlier,chartSubType:d};switch(d){case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:P={...P,splitByValue:E[f]};break;case C.BoxPlotMultiFieldsAndCategory:P={...P,y:T};break}let O=Ue(P),N=E[T];E[O]=N;let R=`${E[u]}-${E[f]}-${N}`,D=v.get(R);if(E[de.uniqueIdsName]=[...D?.[de.uniqueIdsName]??[],E[h]],delete E[h],pf(d)){let B=Ue({...P,standardizeValues:!0}),{mean:k,stdDev:$}=r0({data:r,outlierDataItem:E,chartSubType:d,x:u,y:T,splitByField:f,meanAndStdDevPerField:n});k!==void 0&&$!==void 0&&(E[B]=to({value:N,mean:k,stdDev:$}))}delete E[T],E[L.boxPlot.boxPlotOutlierId]=!0,v.set(R,E)}})}return Array.from(v.values())}async function a0(t){let{data:e,queryObject:r,uniqueQuery:a,elementCount:i,chartConfig:n,chartLimits:s,errorStrings:o,abortKey:l,abortSignal:d}=t,c=[],{series:u,showMean:f}=n,p=An({showMean:f,seriesConfig:u}),h=X(u),y=cr(n),{x:m}=y,g=Qe(y.query?.where),v=[];for(let w=0;w<p.length;w+=1){let T=p[w],{dataWithoutOutliersFilterBatches:I}=Ap({data:e,yField:T,x:m,chartSubType:h,splitByField:g});for(let E=0;E<I.length;E+=1){let P=I[E],O={...a,where:Pe([a.where,P])};O.outStatistics!==void 0&&(O.outStatistics=O.outStatistics?.filter(N=>(N.statisticType===W.Minimum||N.statisticType===W.Maximum)&&N.onStatisticField===T).map(N=>({...N,outStatisticFieldName:`${N.outStatisticFieldName}${L.boxPlot.boxPlotOutliersSuffix}`}))),v.push(On({queryObject:r,uniqueQuery:O,chartConfig:n,elementCount:i,isTimeBinningSeries:!1,showMean:f,chartLimits:s,errorStrings:o,abortKey:l,abortSignal:d}))}}let S=await Promise.all(v);for(let w=0;w<S.length;w+=1)c.push(...S[w]);return h!==C.BoxPlotMonoFieldAndCategoryAndSplitBy&&h!==C.BoxPlotMonoField&&(c=sa({data:c,x:g!==void 0&&g!==""?g:m})),c}async function n0(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,errorStrings:i,abortKey:n,abortSignal:s}=t,o,{series:l,showMean:d}=a,c=X(l);if(c===C.BoxPlotMultiFieldsAndCategory||c===C.BoxPlotMultiFieldsAndSplitBy){let u=An({showMean:d,seriesConfig:l}),f={...r};delete f.outStatistics,delete f.groupByFieldsForStatistics,delete f.orderByFields;let p=[];for(let y=0;y<u.length;y+=1){let m=u[y];p.push({statisticType:W.Average,onStatisticField:m,outStatisticFieldName:`${W.Average}_${m}`},{statisticType:W.StandardDeviation,onStatisticField:m,outStatisticFieldName:`${W.StandardDeviation}_${m}`})}f.outStatistics=p;let h=await Dt({queryObject:e,queryConfig:f,featureCount:1,errorStrings:i,abortKey:n,abortSignal:s});h.length>0&&(o=h[0].attributes)}return o}function s0(t){let{data:e,additionalData:r,chartConfig:a}=t,i=a.series[0],{x:n}=i,s=Qe(i.query?.where);return e.map(o=>{let l=o,d=r.find(c=>c[n]===o[n]&&(s===""?!0:c[s]===o[s]));return d!==void 0&&(l={...o,...d}),l})}function Pp(t){let{chartConfig:e,data:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,{series:n,showMean:s}=e,o=cr(e),l=X(e.series),{x:d}=o,c=An({showMean:s,seriesConfig:n}),u=r;if(r?.[0]!==void 0){let f=Qe(o.query?.where);switch(l){case C.BoxPlotMonoField:u[0][L.boxPlot.boxPlotCategory]=c[0];break;case C.BoxPlotMultiFields:u=Qv({data:r,yList:c,calculateZScore:a});break;case C.BoxPlotMonoFieldAndSplitBy:u=Kv({data:r,splitByField:f,y:c[0]});break;case C.BoxPlotMultiFieldsAndSplitBy:u=Jv({splitByField:f,data:r,yList:c,meanAndStdDevPerField:i,calculateZScore:a});break;case C.BoxPlotMultiFieldsAndCategory:u=Yv({data:r,yList:c,meanAndStdDevPerField:i,calculateZScore:a});break;case C.BoxPlotMonoFieldAndCategoryAndSplitBy:u=Xv({splitByField:f,x:d,data:r});break;case C.BoxPlotMonoFieldAndCategory:}}return e0(e,u),u}async function o0(t){let{data:e,queryObject:r,uniqueQuery:a,fetchFullBoxPlotData:i,chartConfig:n,elementCount:s,chartLimits:o,errorStrings:l,abortKey:d,abortSignal:c}=t,u=e,f=[];if(u!==void 0){let{series:p}=n,h=await n0({queryObject:r,uniqueQuery:a,chartConfig:n,errorStrings:l,abortKey:d,abortSignal:c});if(i!==!1){f=await i0({queryObject:r,uniqueQuery:a,seriesConfig:p,data:u,errorStrings:l,abortKey:d,abortSignal:c});let y=await a0({queryObject:r,uniqueQuery:a,elementCount:s,data:e,chartConfig:n,chartLimits:o,errorStrings:l,abortKey:d,abortSignal:c});u=s0({data:u,additionalData:y,chartConfig:n})}u=Pp({chartConfig:n,data:u,meanAndStdDevPerField:h,calculateZScore:!0})}return{dataItems:u,outliers:f}}function l0(t,e){let r=ie.now().offset/60,a=ie.now().setZone(t)??r,i=a.offset/60,n=e?a.setZone(e).offset/60:0;return i-n}function Ep(t){let{outTimeZone:e=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:r="UTC",runsOnClientQueryEngine:a}=t,i="",n=l0(e,r);if(n!==0)if(a)i=`${n>0?"+":"-"}1*INTERVAL '${Math.abs(n)}' HOUR `;else{let s=Math.abs(n%1),o=Math.round(s*60);n=Math.floor(n),i=n>0?`+INTERVAL '${Math.abs(n)}:${o!==0?o:"00"}:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(n)-(o!==0?0:1)}:${o!==0?String(o-1):"59"}:59' HOUR TO SECOND`}return i}function d0(t){let{dateFieldName:e,unit:r,runsOnClientQueryEngine:a}=t,i=Ep({runsOnClientQueryEngine:a}),n=`EXTRACT(YEAR FROM ${e} ${i})`,s=`EXTRACT(MONTH FROM ${e} ${i})`,o=`EXTRACT(DAY FROM ${e} ${i})`,l=`EXTRACT(HOUR FROM ${e} ${i})`,d=`EXTRACT(MINUTE FROM ${e} ${i})`,c=`EXTRACT(SECOND FROM ${e} ${i})`,u=[];switch(r){case Q.Second:u=[n,s,o,l,d,c];break;case Q.Minute:u=[n,s,o,l,d];break;case Q.Hour:u=[n,s,o,l];break;case Q.Day:case Q.Week:case Q.Month:case Q.Year:u=[n,s,o];break}return u}function c0(t){let{whereValue:e,outStatistics:r,y:a}=t,i=de.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 u0(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=c0({whereValue:n,outStatistics:a.query?.outStatistics?.[0],y:a.y});a.y=s,e.set(n,s)}}}return e}function p0(t){let{uniqueQuery:e,splitByField:r,x:a}=t,i=[...e.groupByFieldsForStatistics??[],a,r].filter(n=>n!==void 0&&n.trim()!==""&&n!==Ni);e.groupByFieldsForStatistics=Array.from(new Set(i))}function po(t){return t.statisticType===W.ContinuousPercentile||t.statisticType===W.DiscretePercentile}function f0(t){let{uniqueQuery:e,y:r,useGenericOutStatFieldName:a,queryObject:i,chartSubType:n,isTimeBinningSeries:s,returnFeaturesExtent:o,splitByField:l}=t,d=de.outStatistics;if(e.outStatistics?.[0]!==void 0){n!==C.PieFromFields&&n!==C.BarAndLineFromFields&&(e.outStatistics[0].outStatisticFieldName=a?d.outStatisticFieldName:[r].flat()[0]);let{outStatistics:c}=e;for(let u=0;u<c.length;u+=1){let f=c[u];f!==void 0&&po(f)&&(s&&!Pi(l,i)?(c[u].statisticType=W.Count,delete c[u].statisticParameters):c[u]={...c[u],statisticParameters:c[u].statisticParameters??{value:de.defaultStatParameterValue}})}}else{let c=se(i),{idField:u,isTraditionalTypeOID:f}=zt(c),p=f?u:"*";e.outStatistics=[{statisticType:d.statisticType,onStatisticField:p,outStatisticFieldName:a?d.outStatisticFieldName:[r].flat()[0]}]}o===!0&&(!s||ze(l))&&e.outStatistics?.push({statisticType:W.EnvelopeAggregate,onStatisticField:"1"})}function h0(t){let{chartConfig:e,fetchFullBoxPlotData:r}=t,{series:a}=e,i=Ii(e),n=[{statisticType:W.Average,suffix:Z.Average}];r===!0&&(n=[...n,{statisticType:W.Minimum,suffix:Z.Min},{statisticType:W.ContinuousPercentile,statisticParameters:{value:.25},suffix:Z.FirstQuartile},{statisticType:W.ContinuousPercentile,statisticParameters:{value:.5},suffix:Z.Median},{statisticType:W.ContinuousPercentile,statisticParameters:{value:.75},suffix:Z.ThirdQuartile},{statisticType:W.Maximum,suffix:Z.Max},{statisticType:W.StandardDeviation,suffix:Z.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===W.ContinuousPercentile&&(d.statisticParameters=l.statisticParameters),d}))}function m0(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 y0(t){let{uniqueQuery:e,x:r,splitByField:a,unit:i,chartSubType:n,objectIdFields:s,runsOnClientQueryEngine:o}=t;if(i!==void 0){let l=d0({dateFieldName:r,unit:i,runsOnClientQueryEngine:o});e.orderByFields=l,e.groupByFieldsForStatistics=l,n===C.BarAndLineSplitBy&&!ze(a)?e.groupByFieldsForStatistics.push(a):n===C.BarAndLineNoAggregation&&(e.groupByFieldsForStatistics=s,e.outStatistics=[{onStatisticField:s.length>1?"*":s[0],outStatisticFieldName:`COUNT_${s[0]}`,statisticType:W.Count}])}}function Lp(t){let{chartConfig:e,uniqueQuery:r,chartLimits:a}=t;if(a?.behaviorAfterLimit===Er.RenderUpToTheLimit){let i=Cp(e,a);if(i!==void 0){let n=X(e.series);if(n===C.PieFromFields||n===C.BarAndLineFromFields){if(r.outStatistics?.[0]!==void 0){let s=(d,c)=>d.statisticType===W.EnvelopeAggregate===c,o=r.outStatistics.filter(d=>s(d,!0)),l=r.outStatistics.filter(d=>s(d,!1));l.splice(i),r.outStatistics=[...l,...o]}}else r.num=i}}}function fo(t){let{chartConfig:e,queryConfig:r,queryObject:a,timeIntervalInfo:i,setTimeBinningInfoWhenNotProvided:n,fetchFullBoxPlotData:s,returnFeaturesExtent:o,chartLimits:l}=t,d=e.series,c=X(d),u=cr(e),{query:f,x:p}=u,h="y"in u?u.y:void 0,y=ur({xAxisValueFormatType:_t(e),setTimeBinningInfoWhenNotProvided:n,seriesConfig:u,queryObject:a}),m=new Map,g=!1,v=!1,S=!1,w=!1,T=!1,I={};if(f!==void 0){I=Rr(f);let $=Qe(f.where),j="";switch(r.fetchNullValues!==!0&&(p!==L.boxPlot.boxPlotCategory&&(j=`${p} IS NOT NULL`),$.trim()!==""&&$!==p&&!nr(f.where)&&(j=Pe([j,`${$} IS NOT NULL`]))),c){case C.BarAndLineSplitBy:{m=u0(d),w=!0,g=!0,v=!0;break}case C.BarAndLineMultiFields:m0(I,d),v=!0;break;case C.PieFromFields:case C.BarAndLineFromFields:j="",S=!0,v=!0;break;case C.BarAndLineMonoField:case C.PieFromCategory:v=!0;break;case C.BoxPlotMonoField:case C.BoxPlotMultiFields:S=!0,T=!0;break;case C.BoxPlotMonoFieldAndCategory:case C.BoxPlotMultiFieldsAndCategory:case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:{T=!0,w=!0,S=!0;break}case C.PieNoAggregation:case C.BarAndLineNoAggregation:case C.BarAndLineSplitByNoAggregation:}if(v&&f0({uniqueQuery:I,y:h,useGenericOutStatFieldName:g,queryObject:a,chartSubType:c,isTimeBinningSeries:y,returnFeaturesExtent:o,splitByField:$}),w&&p0({uniqueQuery:I,splitByField:$,x:p}),rt(e)&&T&&(I.outStatistics=h0({chartConfig:e,fetchFullBoxPlotData:s})),S?delete I.orderByFields:r.orderByFields!==void 0&&(I.orderByFields=r.orderByFields.filter(U=>{let G=U.split(" ");return!ze(G[0])})),y&&Vt(d[0])){let U=se(a),{idFields:G}=Fn(U);xt(a).find(V=>V.name===p)?.type!==me.DateOnly&&G&&y0({uniqueQuery:I,x:p,splitByField:Qe(f.where),unit:i?.unit??d[0].temporalBinning?.unit,chartSubType:c,objectIdFields:G,runsOnClientQueryEngine:Or(a)})}I.where=j}Lp({chartConfig:e,uniqueQuery:I,chartLimits:l});let{gdbVersion:E,geometry:P,distance:O,units:N,timeExtent:R,where:D,objectIds:B,spatialRelationship:k}=r;return E!==void 0&&(I.gdbVersion=E),P!==void 0&&(I.geometry=P),O!==void 0&&(I.distance=O),N!==void 0&&(I.units=N),R!==void 0&&(I.timeExtent=R),B!==void 0&&(I.objectIds=B),k!==void 0&&(I.spatialRelationship=k),D!==void 0&&(I.where=Pe([I.where,D])),{uniqueQuery:I,mapToStatField:m}}var ei={LegendItemVisibilityChange:"arcgisChartsJSLegendItemVisibilityChange",RenderingComplete:"arcgisChartsJSRenderingComplete",SeriesColorsChange:"arcgisChartsJSSeriesColorChange",AxesMinMaxChange:"arcgisChartsJSAxesMinMaxChange",SelectionComplete:"arcgisChartsJSSelectionComplete",TooManySelectedElements:"arcgisChartsJSTooManySelectedElements",SeriesOrder:"arcgisChartsJSSeriesOrder"};function ti(t){return{detail:t,composed:!0,cancelable:!0,bubbles:!0}}function JT(t,e){e&&e.dispatchEvent(new window.CustomEvent(ei.LegendItemVisibilityChange,ti(t)))}function YT(t){t&&t.dispatchEvent(new window.CustomEvent(ei.RenderingComplete,ti()))}function XT(t){let{data:e,htmlContainer:r}=t;r&&r.dispatchEvent(new window.CustomEvent(ei.SelectionComplete,ti(e)))}function eF(t){t&&t.dispatchEvent(new window.CustomEvent(ei.TooManySelectedElements,ti()))}function tF(t){let{data:e,htmlContainer:r,chartId:a,colorMatchApplied:i}=t;r&&r.dispatchEvent(new window.CustomEvent(ei.SeriesColorsChange,ti({chartId:a,data:e,colorMatchApplied:i})))}function rF(t,e){e&&e.dispatchEvent(new window.CustomEvent(ei.AxesMinMaxChange,ti(t)))}function g0(t){let{data:e,htmlContainer:r}=t;r&&e&&r.dispatchEvent(new window.CustomEvent(ei.SeriesOrder,ti(e)))}var Z={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"},Ze=class extends Error{constructor(e,r,a){super(r),this.name=e,this.details=a}},Ye={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound",LayerNotSupported:"layerNotSupported"};function Np(t){return t!==void 0&&"type"in t&&t.type==="imagery"}function Dp(t){return t!==void 0&&"type"in t&&t.type==="imagery-tile"}function b0(t){return t!==void 0&&"type"in t&&t.type==="wcs"}function v0(t){return t==="imagery"||t==="imagery-tile"||t==="wcs"}function Ke(t){return t!==void 0&&"type"in t&&v0(t.type)}function S0(t){let e=t?.iLayer?.layerType;return e==="ArcGISImageServiceLayer"||e==="ArcGISTiledImageServiceLayer"||e==="WCS"}function aa(t,e){if(Ke(t))throw new Error(e??"Raster layer is not supported by this operation.")}function iF(t){return t!==void 0&&(!("url"in t)||!t.url)}function Or(t){return t!==void 0&&"view"in t&&"layer"in t&&t.layer.type==="feature"}function Bp(t){return t!==void 0&&"type"in t&&t.type==="feature"}function $p(t){return t!==void 0&&"type"in t&&t.type==="subtype-sublayer"}function w0(t){return Bp(t)||$p(t)}function ct(t){return $p(t)?t.parent??void 0:t}function Mp(t){return t?.capabilities?.query?.supportsDistance||ct(t)?.sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function x0(t){return t?.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&t?.capabilities?.queryAttributeBins?.supportsStackBy}function aF(t){let{chartConfig:e,queryObject:r,options:a}=t,i=K(e?.series),n=Qe(e?.series[0]?.query?.where);return!(i===b.HeatSeries||e&&ur({xAxisValueFormatType:_t(e),setTimeBinningInfoWhenNotProvided:a?.setTimeBinningInfoWhenNotProvided,seriesConfig:e.series[0],queryObject:r})&&Pi(n,r))}function Pi(t,e){return e!==void 0&&(Or(e)||!Ke(e)&&"capabilities"in e&&e.capabilities?.queryAttributeBins?.supportsDate===!0&&(ze(t)||e.capabilities?.queryAttributeBins?.supportsStackBy))}function C0(t){let e=!1,r=ct(se(t))?.sourceJSON;if(r){let a=r.queryBinsCapabilities?.supportsFixedIntervalBin,i=r.queryBinsCapabilities?.supportedStatisticTypes,n=[W.Maximum,W.Count].every(s=>i?.includes(s.toUpperCase())||i?.includes(s.toLowerCase()));e=a&&n}return e}function nF(t){let e;return Or(t)?e=t.layer:e=t,e}function se(t){let e;return Or(t)?e=t.layer:e=t,e}function T0(t){let e=!1,r=ct(t)?.sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],a=t?.capabilities?.query.supportedSpatialAggregationStatistics??{};return e=r.includes("EnvelopeAggregate")||"envelope"in a&&a.envelope===!0,e}function sF(t){let{chartConfig:e,queryObject:r}=t,a;if(r){let i=se(r);Np(i)?a={id:i.id,layerType:"ArcGISImageServiceLayer"}:Dp(i)?a={id:i.id,layerType:"ArcGISTiledImageServiceLayer"}:a={id:i.id,layerType:"ArcGISFeatureLayer"},i.url&&(a.url=i.url)}return{...e,iLayer:a}}var Jr=new Map;function F0(t){let e;switch(t){case"feet":e="esriSRUnit_Foot";break;case"miles":e="esriSRUnit_StatuteMile";break;case"nautical-miles":e="esriSRUnit_NauticalMile";break;case"us-nautical-miles":e="esriSRUnit_USNauticalMile";break;case"meters":e="esriSRUnit_Meter";break;case"kilometers":e="esriSRUnit_Kilometer";break}return e}async function I0(t){let{queryObject:e,queryConfig:r,outputFormat:a,dataFormat:i,outAnalytics:n,errorStrings:s,abortSignal:o}=t,{where:l,geometry:d,distance:c,units:u,timeExtent:f}=r,p,h=se(e),y=ct(h);if(y){let m={where:Pe([l,y.definitionExpression])},g={query:m,signal:o},v=Di(d)?.extent?.toJSON();if(v!==void 0){let w=F0(u),{xmin:T,ymin:I,xmax:E,ymax:P}=v;m.geometryType="esriGeometryEnvelope",m.geometry=`${T},${I},${E},${P}`,c!==void 0&&(m.distance=c.toString()),w!==void 0&&(m.units=w,d?.spatialReference?.wkid!=null&&(m.inSR=d.spatialReference.wkid.toString()))}f&&(m.time=`${f[0]},${f[1]}`);let S=`${y.url}/${y.layerId}/queryAnalytic?f=${a}&dataFormat=${i}&outAnalytics=${n}`;try{p=(await fn(S,g)).data?.features?.[0]?.attributes}catch(w){let T=s??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings;throw new Ze(Ye.QueryFeaturesError,T.errors.queryError,w)}}return p}function qp(t,e){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`,stackAlias:`charts_stack_alias_${e}`}}async function O0(t){let{chartConfig:e,queryObject:r,queryConfig:a,view:i,syncViewTimeZone:n,errorStrings:s,abortSignal:o}=t,l,d=se(r),c=x0(d);if(c&&r&&"queryAttributeBins"in r){let{x:u,y:f,xTemporalBinning:p,yTemporalBinning:h}=e.series[0],{outTimeZone:y,firstDayOfWeek:m,includeLeapDay:g}=e,v=j0({queryObject:r,queryConfig:a,x:u,y:f,xTemporalBinning:p,yTemporalBinning:h,configTimeZone:y,firstDayOfWeek:m,includeLeapDay:g,view:i,syncViewTimeZone:n});try{l=await r.queryAttributeBins(v,{signal:o})}catch(S){throw new Ze(Ye.QueryFeaturesError,s.errors.queryError,S)}}if(!c)throw new Ze(Ye.QueryFeaturesError,s.errors.queryBinsNotSupported,s.errors.queryBinsNotSupported);return l}async function A0(t){let{chartConfig:e,queryObject:r,queryConfig:a,returnFeaturesExtent:i,errorStrings:n,abortKey:s,abortSignal:o}=t,l=e.series[0],d,{x:c,y:u}=l;a.groupByFieldsForStatistics=[c],c!==u&&a.groupByFieldsForStatistics.push(u),a&&i===!0&&!a.outStatistics?.some(f=>f.statisticType===W.EnvelopeAggregate)&&a.outStatistics?.push({statisticType:W.EnvelopeAggregate,onStatisticField:"1"});try{d=await Dt({queryObject:r,queryConfig:a,errorStrings:n,abortKey:s,abortSignal:o})}catch(f){throw new Ze(Ye.QueryFeaturesError,n.errors.queryError,f)}return d}async function P0(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l,errorStrings:d,abortSignal:c}=t,u;if(e&&"queryAttributeBins"in e&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(i)&&Number.isFinite(n)&&a>0&&l>0){let f=V0({queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l});try{u=await e.queryAttributeBins(f,{signal:c})}catch(p){throw new Ze(Ye.QueryFeaturesError,d.errors.queryError,p)}}return u}async function E0(t){let{queryConfig:e,x:r,queryObject:a,chartSubType:i,isGaugeByFeature:n,abortSignal:s}=t,o,l=se(a),{idField:d,isTraditionalTypeOID:c}=zt(l),u=mo({queryObject:a,queryConfig:e});u.outFields=n||i===C.PieNoAggregation||i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation?[c?d:"*"]:[r],u.outFields?.[0]===r&&(u.returnDistinctValues=!0);try{o=await a.queryFeatureCount(u,{signal:s})}catch{o=Number.NaN}return o}async function la(t){let{queryObject:e,queryConfig:r,abortKey:a,errorStrings:i,abortSignal:n}=t,{outStatistics:s}=r,o=new Map;if(s!==void 0&&s.length>0){let l=s.map(f=>{let{statisticType:p,onStatisticField:h,outStatisticFieldName:y}=f;return{statisticType:p,onStatisticField:h,outStatisticFieldName:y?.toUpperCase()}});r.outStatistics=l,delete r.num,delete r.orderByFields;let d=mo({queryObject:e,queryConfig:r}),c;try{c=await e.queryFeatures(d,{signal:n??(a!==void 0?Jr.get(a)?.signal:void 0)})}catch(f){if(!lo.isAbortError(f)){let p=i??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings;throw new Ze(Ye.QueryFeaturesError,p.errors.queryError,f)}}let u=c?.features?.[0]?.attributes;u!==void 0&&s.forEach(f=>{let{outStatisticFieldName:p}=f;if(p!==void 0){let h=u[p.toLowerCase()]??u[p.toUpperCase()]??u[p];h!==void 0&&o.set(p,h)}})}return o}async function Rp(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:i,errorStrings:n,abortSignal:s}=t,o=[],l=se(e),d=s||(i!==void 0?Jr.get(i)?.signal:void 0),c=_0(l),u=mo({queryObject:e,queryConfig:r,maxRecordCountFactor:c});try{if(a===!0)if("queryObjectIds"in e)o=await e.queryObjectIds(u,{signal:d});else{let{idField:f,isTraditionalTypeOID:p}=zt(l),h=p?f:"*";u.outFields=[h],o=(await e.queryFeatures(u,{signal:d})).features.map(y=>y.getObjectId())}else o=(await e.queryFeatures(u,{signal:d})).features}catch(f){if(!lo.isAbortError(f)){let p=n??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings;throw new Ze(Ye.QueryFeaturesError,p.errors.queryError,f)}}return o}async function L0(t){let e=[],{featureCount:r,maxRecords:a,queryConfig:i,abortSignal:n}=t,s=[],o=0,l=i?.start??0;for(;o<de.maxParallelRequests&&l<r;){let d={...t};d.queryConfig={...i,start:l,num:Math.min(a,r-l)},e.push(Rp({...d,abortSignal:n})),l+=a,o+=1}return s=(await Promise.all(e)).flat(),s}async function Dt(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,featureCount:i,noBatch:n,errorStrings:s,abortKey:o,abortSignal:l}=t,d=[],c=se(e),u=i??1,f=Wp(c);if(n!==!0&&u>f&&c?.capabilities?.query.supportsPagination){let p=0,h=0,y=Math.ceil(u/f),m=Math.ceil(y/de.maxParallelRequests),g=[];for(;h<m;){p=h*de.maxParallelRequests*f;let v=L0({queryConfig:{...r,start:p},queryObject:e,maxRecords:f,featureCount:u,returnUniqueIdsOnly:a,errorStrings:s,abortKey:o,abortSignal:l});g.push(v),h+=1}d=(await Promise.all(g)).flat()}else(Number.isNaN(u)||u>=0)&&(d=await Rp({queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,errorStrings:s,abortKey:o,abortSignal:l}));return d}async function oF(t){let{queryObject:e,queryConfig:r,uniqueFeature:a,errorStrings:i,abortKey:n}=t,s={...r,returnDistinctValues:!0};return await Dt({queryObject:e,abortKey:n,queryConfig:s,returnUniqueIdsOnly:!0,featureCount:a===!0?1:void 0,errorStrings:i})}function N0(t){if(t!==void 0){let e=Jr.get(t);e!==void 0&&e.abort(),Jr.set(t,new AbortController)}}function kp(t){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`}}async function D0(t){let{queryObject:e,dateField:r,splitByField:a,queryConfig:i,temporalBinning:n,axisTimeZone:s,errorStrings:o,view:l,syncViewTimeZone:d,abortSignal:c}=t,u=[],f;if(n){let{unit:p}=n;try{if(p&&(f=Pi(a,e),f&&e&&"queryAttributeBins"in e)){let h=k0({queryObject:e,queryConfig:i,temporalBinning:n,dateField:r,axisTimeZone:s,splitByField:a,view:l,syncViewTimeZone:d});u=(await e.queryAttributeBins(h,{signal:c})).features}}catch(h){let y=o??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings;throw new Ze(Ye.QueryFeaturesError,y.errors.queryError,h)}}if(f===!1){let p=o??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings;throw new Ze(Ye.QueryFeaturesError,p.errors.queryBinsNotSupported,p.errors.queryBinsNotSupported)}return u}function B0(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 Wp(t){let e=de.maxRecords;if(t&&"sourceJSON"in t&&t.sourceJSON?.maxRecordCount){let{sourceJSON:r}=t;e=r.maxRecordCount,r.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0&&(e*=de.maxRecordCountFactor)}return e}function Pe(t,e){let r,a=Array.from(new Set(t)).filter(i=>i!=null&&i!==""&&!nr(i));return a.sort((i,n)=>n.length-i.length),a.length===1?[r]=a:a?.forEach(i=>{i!==void 0&&(ze(r)?r=`(${i})`:r?.includes(`(${i})`)||(r=`${r} ${e??"AND"} (${i})`))}),r??"1=1"}function $0(t,e){let r=e;if(t!==void 0){let a=se(t),i=ct(a)?.timeExtent;i?.start!=null&&i?.end!=null&&(r=[i.start.valueOf(),i.end.valueOf()])}return r}function M0(t){let{queryObject:e,defaultGeometry:r,ignoreViewExtent:a}=t,i=r;if(!a&&Or(e)){let n=e.view.extent,{xmin:s,xmax:o,ymin:l,ymax:d,zmin:c,zmax:u}=n;i={xmin:s,ymin:l,zmin:c,xmax:o,ymax:d,zmax:u,spatialReference:n.spatialReference.toJSON()}}return i}function Di(t){let e;return t!==void 0&&(e=oo.fromJSON(t)),e}function q0(t){return t===void 0?["*"]:Array.from(new Set(t))}function Tn(t){let{queryType:e,queryObject:r,queryConfig:a,view:i,configTimeZone:n,dateField:s,useViewTimeZone:o}=t,{where:l,outStatistics:d,geometry:c,distance:u,units:f,timeExtent:p,returnDistinctValues:h}=a??{},y=se(r),m=ct(y)?.createQuery()??new ob,g,v=Fn(y).idFields;if(e==="AttributeBinsQuery"&&a?.objectIds?.[0]!==void 0&&v&&(g=`${v} IN (${a.objectIds.join(",")})`),e==="AttributeBinsQuery"&&(m=new sb(m.toJSON()),xt(r).find(w=>w.name===s)?.type!==me.DateOnly)){let w=Intl.DateTimeFormat().resolvedOptions().timeZone,T=o&&i&&"timeZone"in i?i.timeZone:void 0,I=n??T??w;I==="unknown"?I="Etc/UTC":I==="system"&&(I=w),m.outTimeZone=I}if(m.where=Pe([m.where,l,g]),"returnDistinctValues"in m&&(m.returnDistinctValues=h??!1),d!==void 0){let w=T0(y);m.outStatistics=d.filter(T=>T.statisticType!==W.EnvelopeAggregate||w).map(T=>lb.fromJSON(T))}let S=Di(c);return S!==void 0&&(m.geometry=S,a?.spatialRelationship&&(m.spatialRelationship=a.spatialRelationship),Mp(y)&&(u!==void 0&&(m.distance=u),f!==void 0&&(m.units=f))),p&&(m.timeExtent=new db({start:p?.[0],end:p?.[1]})),B0(m)&&(m.cacheHint=!0),m}function R0(t){let e;switch(t){case qe.Start:e="first";break;case qe.End:e="last";break}return e}function k0(t){let{queryObject:e,queryConfig:r,temporalBinning:a,dateField:i,splitByField:n,axisTimeZone:s,view:o,syncViewTimeZone:l}=t,{unit:d,size:c,timeAggregationType:u,start:f,end:p,offset:h,outTimeZone:y}=a,m=se(e),g=Tn({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:r,configTimeZone:y??s,view:o,dateField:i,useViewTimeZone:l??!1}),v=kp(i);if(g.lowerBoundaryAlias=v.lowerBoundaryAlias,g.upperBoundaryAlias=v.upperBoundaryAlias,g.binParameters={type:"date",field:i,interval:{unit:d,value:c},start:f,end:p,offset:h?{unit:h.unit,value:h.size}:null},g.binParameters.type==="date"&&(m?.capabilities?.queryAttributeBins?.supportsSnapToData&&(g.binParameters.snapToData=R0(u)),m?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(g.binParameters.returnFullIntervalBin=!0)),!ze(n)){let S=ct(m)?.fields.find(w=>w.name===n)?.type;(!S||S==="string"||S==="integer"||S==="small-integer"||S==="big-integer"||S==="double")&&(g.binParameters.stackBy={type:"field",value:n,valueType:S==="string"?"string":"integer"})}return g}function ho(t){let{field:e,fieldType:r,unit:a,outTimeZone:i,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o,addLeapDayExpression:l}=t,d,c,u=1,f=1;switch(a){case bt.MinuteOfDay:r!==me.DateOnly&&(c="MINUTE",u=0,f=59);break;case bt.HourOfDay:r!==me.DateOnly&&(c="HOUR",u=0,f=23);break;case bt.DayOfWeek:c="DOW",f=7;break;case bt.DayOfMonth:c="DAY",f=31;break;case bt.DayOfYear:c="DOY",f=366;break;case bt.WeekOfYear:c="WEEK",f=53;break;case bt.MonthOfYear:c="MONTH",f=12;break;case bt.QuarterOfYear:c="QUARTER",f=4;break}if(c){let p=o?` ${Ep({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:i})}`:"";d=W0({addLeapDayExpression:l,temporalKey:c,field:e,intervalStatement:p})}return{expression:d,start:u,end:f}}function W0(t){let{addLeapDayExpression:e=!1,temporalKey:r,field:a,intervalStatement:i}=t,n;return e&&a.length&&r==="DAY"?n=`CASE WHEN (EXTRACT(MONTH FROM ${a})=2 AND EXTRACT(DAY FROM ${a})=29) THEN 0 ELSE EXTRACT (${r} FROM ${a}${i}) END`:n=`EXTRACT (${r} FROM ${a}${i})`,n}function Hu(t){let{temporalBinning:e,xOrY:r,xOrYFieldType:a,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,includeLeapDay:l}=t,{unit:d}=e??{},c,u,f,p;return a===me.Date||a===me.DateOnly||a===me.TimestampOffset?{expression:u,start:f,end:p}=ho({field:r,fieldType:a,unit:d,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,addLeapDayExpression:!l}):c=r,{field:c,expression:u,start:f,end:p}}function j0(t){let{queryObject:e,queryConfig:r,x:a,y:i,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,includeLeapDay:l,configTimeZone:d,view:c,syncViewTimeZone:u}=t,f=xt(e),p=f.find(I=>I.name===a)?.type,h=f.find(I=>I.name===i)?.type,y=Tn({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:r,configTimeZone:d,view:c,dateField:a,useViewTimeZone:u??!1});y.binParameters={type:"fixed-interval",interval:1},y.lowerBoundaryAlias=de.heatChartLowerBoundaryAlias,y.upperBoundaryAlias=de.heatChartUpperBoundaryAlias,o!==void 0&&(y.binParameters.firstDayOfWeek=o);let m=Hu({temporalBinning:n,xOrY:a,xOrYFieldType:p,addIntervalStatement:!1,includeLeapDay:l}),{field:g,expression:v,start:S,end:w}=m;g?y.binParameters.field=g:v&&(y.binParameters.expression=v,y.binParameters.expressionValueType="integer",y.binParameters.type==="fixed-interval"&&(S!==void 0&&(y.binParameters.start=S),w!==void 0&&(y.binParameters.end=w)));let T=Hu({temporalBinning:s,xOrY:i,xOrYFieldType:h,addIntervalStatement:!1,includeLeapDay:l});return T.field?y.binParameters.stackBy={type:"field",value:T.field}:T.expression&&(y.binParameters.stackBy={type:"expression",value:T.expression,valueType:"integer",alias:i}),y}function V0(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l}=t,d=Tn({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:r,useViewTimeZone:!1}),c=qp(s,o);return d.lowerBoundaryAlias=c.lowerBoundaryAlias,d.upperBoundaryAlias=c.upperBoundaryAlias,d.binParameters={type:"fixed-interval",field:s,interval:a,start:i,end:n,stackBy:{value:`FLOOR(${o} / ${l})`,type:"expression",alias:c.stackAlias,valueType:"integer"}},d}function mo(t){let{queryObject:e,queryConfig:r,maxRecordCountFactor:a}=t,{groupByFieldsForStatistics:i,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:d}=r??{},c=Tn({queryType:"Query",queryObject:e,queryConfig:r,useViewTimeZone:!1});c.returnGeometry=!1;let u=se(e);return c.outFields=q0(d),c.groupByFieldsForStatistics=i??c.groupByFieldsForStatistics,c.orderByFields=n??[],c.objectIds=r?.objectIds,a!==void 0&&(c.maxRecordCountFactor=a),s!==void 0&&s!==""&&(c.gdbVersion=s),l!==void 0&&(c.num=l),o!==void 0&&(c.start=o,c.num=c.num??Wp(u)),c}function _0(t){return t&&"sourceJSON"in t&&t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?de.maxRecordCountFactor:void 0}var jp={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},Tr={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},ae={BadData:"badData",EmptyDataSet:"emptyDataSet",InvalidConfig:"invalidConfig",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"},z0=2048;function U0(t){let e;switch(t){case Ae.Log:e="log";break;case Ae.Sqrt:e="sqrt";break;case Ae.None:default:e=void 0;break}return e}async function H0(t){let{queryConfig:e,chartConfig:r,queryObject:a,abortKey:i,abortSignal:n,view:s}=t,o=r.series[0],{x:l,dataTransformationType:d,binCount:c}=o,u=se(a);if(!Ke(u))throw new Ze(Ye.LayerNotSupported);u.loaded||await u.load({signal:n});let f=await da(u,n);if(!f)throw new Error("Raster info is not available for the layer.");let p=Di(e.geometry)??u.fullExtent,h=f.bandCount===1?0:f.bandInfos.findIndex(g=>g.name===l),y,m;if(s===void 0&&(d===void 0||d===Ae.None)&&c&&Array.isArray(f.histograms)&&f.histograms.length>h&&f.histograms[h].size%c===0&&Array.isArray(f.statistics)&&f?.statistics?.length>h)y=f.histograms[h],m=f.statistics[h];else{let g,v,S;if(s)g=s.resolution,v=s.resolution,S=s.spatialReference;else{let E=z0,P=2,O=f.width,N=f.height,R=Math.max(0,Math.ceil(Math.log(Math.max(O,N)/E)/Math.log(P))),D=P**R;g=f.pixelSize.x*D,v=f.pixelSize.y*D,S=u.spatialReference}let w=new cp({x:g,y:v,spatialReference:S}),T=U0(d),I=await cb(u,{bandIds:[h],geometry:p,histogramSize:c??void 0,pixelSize:w,transformType:T},{signal:n??(i!==void 0?Jr.get(i)?.signal:void 0)});m=I.statistics[0],y=I.histograms[0]}return{histogram:y,statistics:m}}function G0(t,e){let r=[],a=(t.max-t.min)/t.size;for(let i=0;i<t.size;i++){let n=t.min+i*a;r.push({minValue:n,maxValue:n+a,count:t.counts[i]})}if(e&&t.size!==e&&t.size%e===0){let i=t.size/e,n=[];for(let s=0;s<e;s++){let o=r[s*i].minValue,l=r[(s+1)*i-1].maxValue,d=0;for(let c=0;c<i;c++)d+=r[s*i+c].count;n.push({minValue:o,maxValue:l,count:d})}return n}return r}async function Z0(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,abortSignal:n,view:s}=t;if(a===void 0)throw new Error("QueryObject is undefined!");let o,{statistics:l,histogram:d}=await H0({queryObject:a,chartConfig:e,queryConfig:r,view:s,abortKey:i,abortSignal:n});if(l&&d){let c=e.series[0].binCount??void 0,u=G0(d,c);u.length>0?o={valid:!0,count:u.length,data:{bins:u,min:l.min,max:l.max,mean:l.avg,median:l.median,stddev:l.stddev,sum:l.sum??l.avg*l.count,count:l.count}}:o={valid:!1,invalidType:ae.EmptyDataSet}}else o={valid:!1,invalidType:ae.BadData};return o}var Q0=t=>t.series[0].x;function K0(t){let{chartConfig:e,layer:r,selectionDataItems:a}=t,i=ro(r,Q0(e)),n=a.map(l=>[l.minValue,l.maxValue]).reduce((l,d,c)=>{if(c===0)l.push([...d]);else{let u=l[l.length-1];u[1]===d[0]?u[1]=d[1]:l.push([...d])}return l},[]),s=e.series[0],{dataTransformationType:o}=s;switch(o){case Ae.Log:n.forEach(l=>{l[0]=Math.exp(l[0]),l[1]=Math.exp(l[1])});break;case Ae.Sqrt:n.forEach(l=>{l[0]=l[0]*l[0],l[1]=l[1]*l[1]});break;case Ae.None:}return n.length>0?{bandId:i,pixelRanges:n}:void 0}function na(t,e){let r,a,i=e??(n=>n);for(let n of t){let s=i(n);s==null||Number.isNaN(s)||((r===void 0||s<r)&&(r=s),(a===void 0||s>a)&&(a=s))}return{min:r,max:a}}function J0(t,e){let r=0,a=0,i=e??(n=>n);for(let n of t){let s=i(n);s==null||Number.isNaN(s)||(r++,a+=s)}return r>0?a/r:void 0}function Y0(t,e){let r=0,a=e??(i=>i);for(let i of t){let n=a(i);n==null||Number.isNaN(n)||(r+=n)}return r}function lF(t,e,r=1){let a=Math.max(0,Math.ceil((e-t)/r)),i=new Array(a);for(let n=0;n<a;n++)i[n]=t+n*r;return i}var X0={dataFormat:"json",outputFormat:"json",typeKey:"analyticType",typeValue:"LinRegR2",fieldValue:"onAnalyticField",slopePropertyList:["Slope","SLOPE","slope"],interceptPropertyList:["Intercept","INTERCEPT","intercept"],r2PropertyList:["R2","r2"]};async function eS(t){let{queryObject:e,abortSignal:r}=t,a=!1;if(!Ke(e)){let i=w0(e),n=se(e),s=ct(n);if(i&&s?.url!==void 0&&s.url!==null){let o=`${s.url}/${s.layerId}?f=json`;try{let l=(await fn(o,{signal:r})).data,d=l?.advancedQueryCapabilities?.supportsQueryAnalytic===!0,c=l?.sqlParserVersion===void 0||s.version!=null&&s.version>=10.91;a=d&&c}catch{}}}return a}function tS(t){let{x:e,y:r,trendlineXToY:a,data:i}=t,{min:n,max:s}=i?na(i,o=>o[e]):{min:Number.NaN,max:Number.NaN};return[{[e]:n??Number.NaN,[r]:a(n??Number.NaN)},{[e]:s??Number.NaN,[r]:a(s??Number.NaN)}]}function rS(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 iS(t){let{statsMap:e,queryObject:r,chartConfig:a,queryConfig:i,errorStrings:n,abortSignal:s}=t,o=a.series[0],{x:l,y:d}=o;aa(r);let c=Number.NaN,u=[{[l]:Number.NaN,[d]:Number.NaN},{[l]:Number.NaN,[d]:Number.NaN}],{dataFormat:f,outputFormat:p,typeKey:h,typeValue:y,fieldValue:m,slopePropertyList:g,interceptPropertyList:v,r2PropertyList:S}=X0,w=`[{"${h}": "${y}", "${m}":"${l},${d}"}]`,T=await I0({queryObject:r,queryConfig:i,outputFormat:p,dataFormat:f,outAnalytics:w,errorStrings:n,abortSignal:s});if(T!==void 0){let I=Number.NaN,E=Number.NaN,{expr:P}=pn(T,g),{expr:O}=pn(T,v),{expr:N}=pn(T,S);P!==void 0&&Number.isFinite(T[P])&&(I=T[P]),O!==void 0&&Number.isFinite(T[O])&&(E=T[O]),N!==void 0&&Number.isFinite(T[N])&&(c=T[N]);let{dataContextXMinField:R,dataContextXMaxField:D,dataContextYMinField:B,dataContextYMaxField:k}=L.scatterplotAggregationFields,$=e.get(R)??Number.NaN,j=e.get(D)??Number.NaN,U=e.get(B)??Number.NaN,G=e.get(k)??Number.NaN,V=(j-$)/100,z=$-V,re=Number.NaN;for(;!(re>=U&&re<=G)&&z<=j;)z+=V,re=I*z+E;let fe=j+V,Ie=Number.NaN;for(;!(Ie>=U&&Ie<=G)&&fe>=$;)fe-=V,Ie=I*fe+E;u=[{[l]:z,[d]:re},{[l]:fe,[d]:Ie}]}return{r2:c,trendLinePoints:u}}function Vp(t){let{data:e,chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s,trendLinePoints:o}=L.scatterplotSeries,l=rS({data:e,x:i,y:n});if(l!==void 0){let d=Dd(l),c=Bd(d);s=d.m===0?0:$d(l,c),o=tS({x:i,y:n,trendlineXToY:c,data:e})}return{r2:s,trendLinePoints:o}}async function _p(t){let e=await eS(t),{chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s}=L.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 iS(t)}catch{d=!0}return(!e||d)&&(l=Vp(t)),l}var aS=50,nS=4194304;async function sS(t){let{layer:e,chartConfig:r,rawData:a}=t,i,n=r.series[0],{x:s,y:o}=n,{idField:l}=zt(e),d=await da(e);if(d){let c=d.bandInfos,u=c.length===1,f=u?c?.[0].name:"";i=a.map(p=>({...u&&{[s]:p.attributes?.[f],[o]:p.attributes?.[f]},...p.attributes,[de.uniqueIdsName]:p.attributes?.[l]}))}return i??[]}async function oS(t){let{queryObject:e,queryConfig:r,abortKey:a}=t;if(!e||!Ke(e))throw new Ze(Ye.LayerNotSupported);return await CS({queryObject:e,queryConfig:r,imagerySkipFactor:aS,imageryMaxPixelCount:nS,abortKey:a})}async function lS(t){let{chartConfig:e,queryConfig:r,queryObject:a,sortData:i,calculateTrendLine:n,errorStrings:s,abortKey:o}=t;if(!a)throw new Error("QueryObject is undefined!");let l=await oS({queryObject:a,queryConfig:r,abortKey:o}),d=await sS({layer:a,chartConfig:e,rawData:l});i!==!1&&ia({arrayToSort:d,sortingField:e.series[0].x,orderBy:Be.Ascending});let c=new Map,{r2:u,trendLinePoints:f}=n!==!1?await _p({data:d,statsMap:c,queryConfig:r,queryObject:a,chartConfig:e,errorStrings:s}):L.scatterplotSeries;return{dataItems:d,r2:u,trendLinePoints:f}}var dS=t=>({x:t.series[0].x,y:t.series[0].y});function cS(t){let{chartConfig:e,layer:r,selectionDataItems:a}=t,i;if(a.length>0){let{x:n,y:s}=dS(e),o=ro(r,n),l=ro(r,s);if(o!==void 0&&l!==void 0&&o!==l){let d=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;a.forEach(p=>{let h=p[n],y=p[s];typeof h=="number"&&(h<d&&(d=h),h>c&&(c=h)),typeof y=="number"&&(y<u&&(u=y),y>f&&(f=y))}),d!==Number.MAX_SAFE_INTEGER&&c!==Number.MIN_SAFE_INTEGER&&u!==Number.MAX_SAFE_INTEGER&&f!==Number.MIN_SAFE_INTEGER&&(i={xBandId:o,yBandId:l,pixelRanges:new up({xmin:d,xmax:c,ymin:u,ymax:f})})}else if(o!==void 0&&o===l){let d=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER;a.forEach(u=>{let f=u[n];typeof f=="number"&&(f<d&&(d=f),f>c&&(c=f))}),d!==Number.MAX_SAFE_INTEGER&&c!==Number.MIN_SAFE_INTEGER&&(i={bandId:o,pixelRanges:[[d,c]]})}}return i}function uS(t,e){let r=!0;if(e?.trim()){let a={};Object.entries(t).forEach(([s,o])=>{a[s.toUpperCase()]=o});let i=e.trim(),n=i.match(/^(\w+)\s+IS\s+(NOT\s+)?NULL$/iu);if(n){let[s,o,l]=n,d=a[o.toUpperCase()],c=d==null;r=l?!c:c}else{let s=i.match(/^(\w+)\s*(=|!=|<>|>|<|>=|<=)\s*(.+)$/iu);if(s){let[o,l,d,c]=s,u=l.toUpperCase();if(!(u in a))r=!1;else{let f=a[u],p=c.trim().replace(/^['"]|['"]$/gu,"");switch(typeof f=="number"?p=Number(p):typeof f=="boolean"&&(p=p.toLowerCase()==="true"),d){case"=":r=f===p;break;case"!=":case"<>":r=f!==p;break;case">":r=f>p;break;case"<":r=f<p;break;case">=":r=f>=p;break;case"<=":r=f<=p;break;default:r=!0}}}}}return r}function pS(t){let{features:e,aggregationType:r,onField:a}=t,i;if(!a)r==="count"&&(i=e.length);else switch(r){case"count":{a==="*"?i=e.length:i=e.filter(n=>n[a]!==null&&n[a]!==void 0).length;break}case"sum":{i=e.reduce((n,s)=>{let o=s[a];return n+(typeof o=="number"?o:0)},0);break}case"avg":{let n=0,s=0;e.forEach(o=>{let l=o[a];typeof l=="number"&&(n+=l,s++)}),i=s>0?n/s:0;break}case"min":{let n=e.map(s=>s[a]).filter(s=>typeof s=="number"&&s!==null&&s!==void 0);i=n.length>0?Math.min(...n):void 0;break}case"max":{let n=e.map(s=>s[a]).filter(s=>typeof s=="number"&&s!==null&&s!==void 0);i=n.length>0?Math.max(...n):void 0;break}case"percentile-continuous":{let n=[...e.map(o=>o[a]).filter(o=>typeof o=="number"&&o!==null&&o!==void 0)].sort((o,l)=>o-l),s=Math.floor(n.length/2);i=n.length%2!==0?n[s]:(n[s-1]+n[s])/2;break}}return i}function Gu(t,e){let r;return t==null&&e?r={groupKey:L.nullValue,display:L.nullValue,original:null}:r={groupKey:t,display:t,original:t},r}async function fS(t){let{layer:e,geometry:r,view:a,abortKey:i,abortSignal:n}=t;e.loaded||await e.load({signal:n});let s=await da(e,n),o=Di(r)??e.fullExtent,l=s?.attributeTable;if(!(o instanceof up&&o.equals(e.fullExtent))){let d=a?new cp({x:a.resolution,y:a.resolution,spatialReference:a.spatialReference}):void 0;l=await ub(e,{geometry:o,pixelSize:d},{signal:n??(i!==void 0?Jr.get(i)?.signal:void 0)})}return l}async function hS(t){let{chartConfig:e,queryConfig:r,queryObject:a,view:i,abortKey:n,abortSignal:s}=t,o;if(a===void 0)throw new Error("QueryObject is undefined!");let l=se(a);if(!Ke(l))throw new Ze(Ye.LayerNotSupported);let d=await fS({layer:l,geometry:r.geometry,view:i,abortKey:n,abortSignal:s}),c=d?.features;if(!d||!c)o={valid:!1,invalidType:ae.BadData};else{let u=e.series;if(!u||u.length===0||c.length===0)o={valid:!0};else{let f=r.groupByFieldsForStatistics?.[0]??"",p=u.some(m=>m.query?.fetchNullValues),h=new Map;for(let m of c){let{groupKey:g}=Gu(m.attributes[f],p);g===L.nullValue&&!p||(h.has(g)||h.set(g,[]),h.get(g).push(m.attributes))}let y=[];h.forEach(m=>{let g={},v=m[0][f],{display:S,original:w}=Gu(v,p);g[f]=S,g[L.xAxisField]=S,g[L.originalCategoryValue]=w,u.forEach(T=>{let I=T.query?.outStatistics?.[0];if(!I){let{name:D}=T;g[D]=m[0][D];return}let E=m,P=T.query?.where;P&&(E=m.filter(D=>uS(D,P)));let O=I.statisticType,N=I.onStatisticField,R=I.outStatisticFieldName;g[R]=pS({features:E,aggregationType:O,onField:N})}),y.push(g)}),o={valid:!0,data:{dataItems:y}}}}return o}async function dF(t){let{layer:e,category:r,splitByField:a}=t,i=(await da(e))?.attributeTable?.features,n=a!==void 0;return Array.from(new Set(i?.map(s=>s.attributes[n?a:r]))).sort((s,o)=>typeof s=="string"&&typeof o=="string"?s.localeCompare(o):Number(s)-Number(o))}function mS(t,e){let r=new Map;return e.forEach((a,i)=>{r.set(a,i)}),t.reduce((a,i)=>{let n=a[a.length-1];if(!n)return a.push([i,i]),a;if(i===n[1])return a;let s=r.get(i),o=r.get(n[1]);return s!==void 0&&o!==void 0&&s===o+1?(n[1]=i,a):(a.push([i,i]),a)},[])}function yS(t,e){return t?.map(({attributes:r})=>r[e]).filter(r=>r!=null).sort((r,a)=>r-a)}function gS(t){let{chartConfig:e,layer:r,selectionDataItems:a}=t,i,n=r.serviceRasterInfo?.attributeTable,s=e.series?.[0]?.x,o=n?.features,l=n?.fields?.find(({name:d})=>d.toLowerCase()==="value")?.name;if(a.length>0&&s&&o&&o.length>0&&l){let d=new Set(a.map(c=>c[L.originalCategoryValue]).filter(c=>c!==void 0));if(d.size>0){let c=new Set;o.forEach(f=>{let p=f.attributes,h=p[s];d.has(h)&&c.add(p[l])});let u=Array.from(c).sort((f,p)=>f-p);if(u.length>0){let f=yS(o,l);i={bandId:0,pixelRanges:mS(u,f)}}}}return i}var zp="PixelID",bS=[b.BarSeries,b.HistogramSeries,b.ScatterSeries];async function cF(t){let e=!1,{config:r,layer:a,abortSignal:i}=t;if(zv(bS,r))switch(K(r?.series)){case b.BarSeries:a.loaded||await a.load({signal:i}),e=!!(await da(a,i))?.attributeTable;break;case b.HistogramSeries:case b.ScatterSeries:e=!0;break}return e}async function vS(t){let{layer:e,chartConfig:r}=t,a;return Ke(e)?a=e:r?.iLayer?.layerType==="ArcGISImageServiceLayer"?a=await Hp(r.iLayer):r?.iLayer?.layerType==="ArcGISTiledImageServiceLayer"&&(a=await Gp(r.iLayer)),a}function SS(t){let e;switch(t){case"f32":e=me.Single;break;case"f64":e=me.Double;break;default:e=me.Integer;break}return e}function Up(t){if(!t.loaded)throw new Error("Raster layer must be loaded to get its ID field name");let e=Sn(t)?.attributeTable?.fields.find(r=>r.type==="oid");return e?e.name:zp}function wS(t){let{layer:e,rasterInfo:r,popupTemplateFieldInfosEnabled:a}=t;if(!e.loaded)throw new Error("Raster layer must be loaded to get its fields info");let i=r??Sn(e);if(!i)throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");let n;try{if(i.attributeTable)n=i.attributeTable.fields.map(s=>s.toJSON());else{let s=SS(i.pixelType),o=i.bandInfos.map(l=>({name:l.name,alias:l.name,type:s}));a&&e?.popupTemplate?.fieldInfos!==void 0&&o.map(l=>{let d=e.popupTemplate?.fieldInfos?.find(c=>c.fieldName?.toLowerCase()===l.name.toLowerCase())?.label;return d&&d!==l.name&&(l.alias=d),l}),n=[{name:zp,alias:"Pixel ID",type:me.OID},...o]}}catch{n=[]}return n}async function da(t,e){return t.loaded||await t.load({signal:e}),b0(t)?Sn(t)??void 0:await t.generateRasterInfo(t.rasterFunction,{signal:e})}var Hp=ji(async(t,e)=>{let r={},a=t.layerDefinition;r.definitionExpression=a?.definitionExpression,r.id=t.id,t.url!==void 0&&(r.url=t.url),t.itemId!==void 0&&t.layerDefinition?.id!==void 0&&(r.portalItem={id:t.itemId});let i=new fb(r);return await In(i,e),i},t=>JSON.stringify(t,Object.keys(t).sort())),Gp=ji(async(t,e)=>{let r={};r.id=t.id,t.url!==void 0&&(r.url=t.url),t.itemId!==void 0&&(r.portalItem={id:t.itemId});let a=new hb(r);return await In(a,e),a},t=>JSON.stringify(t,Object.keys(t).sort())),xS=ji(async(t,e)=>{let r={};r.id=t.id,t.url!==void 0&&(r.url=t.url),t.itemId!==void 0&&(r.portalItem={id:t.itemId});let a=new mb(r);return await In(a,e),a},t=>JSON.stringify(t,Object.keys(t).sort())),ro=(t,e)=>{let r=-1;if(!t.loaded)throw new Error("Raster layer must be loaded to get its band ID by name");let a=Sn(t)?.bandInfos;if(a?.length===1)r=0;else if(e&&a?.length){let i=e.toLowerCase(),n=a.findIndex(s=>s.name.toLowerCase()===i);n>-1&&(r=n)}return r},uF=t=>{let{chartConfig:e,layer:r,selectionDataItems:a}=t,i=K(e.series),n;switch(i){case b.BarSeries:n=gS({chartConfig:e,layer:r,selectionDataItems:a});break;case b.HistogramSeries:n=K0({chartConfig:e,layer:r,selectionDataItems:a});break;case b.ScatterSeries:n=cS({chartConfig:e,layer:r,selectionDataItems:a});break;default:n=void 0;break}return n};async function CS(t){let{queryObject:e,queryConfig:r,imagerySkipFactor:a,imageryMaxPixelCount:i,abortKey:n}=t,s=[];if(e!==void 0)try{let o=n&&Jr.get(n)?.signal||void 0,l=se(e);l.loaded||await In(l,o);let d={geometry:Di(r.geometry)??l.fullExtent,autoResample:!0,maxPixelCount:i,skipFactor:a},c=await pb(l,d,{signal:o});s=lp.fromJSON(c.featureSet).features}catch{s=[]}return s}function TS(t){let{queryObject:e,defaultGeometry:r,ignoreViewExtent:a,viewExtent:i}=t,n=r;if(!a&&i){let{xmin:s,xmax:o,ymin:l,ymax:d,zmin:c,zmax:u}=i;n={xmin:s,ymin:l,zmin:c,xmax:o,ymax:d,zmax:u,spatialReference:i.spatialReference.toJSON()}}else if(!n&&e.fullExtent){let{xmin:s,xmax:o,ymin:l,ymax:d,zmin:c,zmax:u}=e.fullExtent;n={xmin:s,ymin:l,zmin:c,xmax:o,ymax:d,zmax:u,spatialReference:e.fullExtent.spatialReference.toJSON()}}return n}function FS(t){let e,r,a;return t!==void 0&&(e=t.type,(e===Xe.UniqueValue||e===Xe.ClassBreaks)&&(r=t.field??void 0,e===Xe.ClassBreaks&&(a=t.normalizationField??void 0))),{rendererType:e,rendererField:r,rendererNormalizationField:a}}var Zp=ji(async(t,e)=>{let r=t.featureCollection,a,i;if(r?.layers?.[0]!==void 0){let o=r.layers[0];a=o.featureSet,i=o.layerDefinition}else i=t.layerDefinition;let n={};if(a!==void 0){if(n.source=lp.fromJSON(a).features,i?.fields!==void 0&&(n.fields=i.fields.map(o=>ib.fromJSON(o))),i?.objectIdField!==void 0&&(n.objectIdField=i.objectIdField),i?.geometryType!==void 0){let o=oo.fromJSON({geometryType:i.geometryType});o?.type!==void 0&&o?.type!=="extent"&&(n.geometryType=o.type)}i?.spatialReference!==void 0&&(n.spatialReference=i.spatialReference)}else n.id=t.id,i?.id!==void 0&&(n.layerId=i.id),t.url!==void 0&&(n.url=t.url),t.itemId!==void 0&&i?.id!==void 0&&(n.portalItem={id:t.itemId});if(i!==void 0){let o=i.drawingInfo;o?.renderer!==void 0&&(n.renderer=so.fromJSON(o.renderer))}let s=new rb(n);return await s.load({signal:e}),s},t=>JSON.stringify(t));async function pF(t,e){let r;switch(t?.layerType??""){case"ArcGISFeatureLayer":r=await Zp(t,e);break;case"ArcGISImageServiceLayer":r=await Hp(t,e);break;case"ArcGISTiledImageServiceLayer":r=await Gp(t,e);break;case"WCS":r=await xS(t,e);break;default:throw new Ze(Ye.LayerNotSupported)}return r}async function fF(t){let{layer:e,view:r,chartConfig:a,filterByViewExtent:i,abortSignal:n}=t,s=Ke(e)||S0(a),o;if(s)o=await vS(t);else{let l=se(e),d=ct(l);d!==void 0?i&&r!==void 0&&!d.isTable?(d.outFields=["*"],o=await r.whenLayerView(d)):o=e:a?.iLayer&&a.iLayer?.layerType==="ArcGISFeatureLayer"&&(o=await Zp(a.iLayer,n))}return o}function xt(t,e){let r=se(t),a=[];if(r!==void 0){let i=e===!0&&r?.popupTemplate?.fieldInfos!==void 0;Ke(r)?a=wS({layer:r,popupTemplateFieldInfosEnabled:e}):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 Qp(t,e=[]){return e.find(r=>r.name===t)}function Fn(t){let e,r=!1;if(Ke(t))e=[Up(t)];else{let a=ct(t);a&&("uniqueIdFields"in a&&a.uniqueIdFields&&a.uniqueIdFields.length>0?e=a.uniqueIdFields:(e=[a.objectIdField],r=!0))}return{idFields:e,isTraditionalTypeOID:r}}function zt(t){let e="",r=!1;if(Ke(t))e=Up(t);else if(t){let a=Fn(t);r=a.isTraditionalTypeOID,a.idFields&&(e=a.idFields[0])}return{idField:e,isTraditionalTypeOID:r}}function Ei(t){let e=[me.Single,me.Double,me.SmallInteger,me.Integer,me.BigInteger];return t!==void 0&&e.includes(t.type)}function IS(t){return t?.type===me.Date||t?.type===me.DateOnly||t?.type===me.TimestampOffset}function hF(t){return t?.type===me.String}function mF(t){return t?.type===me.TimeOnly}function yF(t){let e=[me.SmallInteger,me.Integer,me.BigInteger];return t!==void 0&&e.includes(t.type)}function OS(t){return t.filter(e=>IS(e)).map(e=>e.name)}function gF(t){return t.filter(e=>Ei(e)).map(e=>e.name)}function io(t,e){let r;if(e){let a=se(t).getFieldDomain(e);a instanceof tb&&(r=a)}return r}function ao(t,e){let r=e?.getName(t?.toString())??e?.getName(t)??e?.getName(Number(t));return r===null&&(r=void 0),r}function Zu(t){let{queryObject:e,fieldName:r,fieldValue:a}=t;return Ke(e)?void 0:ao(a,io(e,r))}async function Kp(t){let e=[];return t&&!ct(t)?.isTable&&t.fieldsIndex&&(e=await op.getRendererFields(t.renderer,t.fieldsIndex)),e}function AS(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 PS(t,e){let r=!0,a=".arcgis.com/",i=t?.url,n=i?.includes(a);if(i&&n&&ct(t)?.sourceJSON?.serviceItemId!==void 0){let s=AS(i);try{let o=(await fn(s,{query:{f:"json"},signal:e})).data;if(o.owningTenant!==void 0&&o.owningSystemUrl!==void 0){let l=`${o.owningSystemUrl}/sharing/rest/portals/${o.owningTenant}`,d=(await fn(l,{authMode:"auto",query:{f:"json"},signal:e})).data,c=new ab({sourceJSON:d});await c.load({signal:e}),r=c?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return r}function ES(t){let{queryObject:e,fieldToMatch:r,returnUndefinedIfNotFound:a}=t,i=xt(e),n=LS(i,r),s=a?"":r;return n?.name??s}function LS(t,e){let r=t.find(a=>e===a.name);return r||(r=t.find(a=>e.toUpperCase()===a.name.toUpperCase())),r}function bF(t){let{fieldsList:e,queryObject:r,returnUndefinedIfNotFound:a}=t,i=e;return i!==void 0&&(i=i.map(n=>ES({queryObject:r,fieldToMatch:n,returnUndefinedIfNotFound:a}))),i}function Jp(t){let{queryObject:e,chartConfig:r,runtimeDataFilters:a,ignoreViewExtent:i,viewExtent:n}=t,{series:s,dataFilters:o}=r,{where:l,gdbVersion:d,timeExtent:c,geometry:u,distance:f,units:p,objectIds:h,spatialRelationship:y}=o??{},{where:m,gdbVersion:g,timeExtent:v,geometry:S,distance:w,units:T,objectIds:I,spatialRelationship:E}=a??{},P=s[0],{query:O}=P,{where:N}=O??{},R=X(s),D={...O};return D.where=Pe([l,m]),R!==C.BarAndLineSplitBy&&R!==C.BoxPlotMonoFieldAndSplitBy&&R!==C.BoxPlotMonoFieldAndCategoryAndSplitBy&&R!==C.BoxPlotMultiFieldsAndSplitBy&&R!==C.BarAndLineSplitByNoAggregation&&(D.where=Pe([D.where,N])),r.orderOptions?.orderByFields!==void 0&&(D.orderByFields=r.orderOptions.orderByFields),D.gdbVersion=g??d,D.timeExtent=$0(e,v??c),D.geometry=Ke(e)?TS({queryObject:e,defaultGeometry:S??u,ignoreViewExtent:i,viewExtent:n}):M0({queryObject:e,defaultGeometry:S??u,ignoreViewExtent:i}),D.distance=w??f,D.units=T??p,D.objectIds=I??h,D.spatialRelationship=E??y,O?.outStatistics?.[0]?.statisticType===W.Count&&(D.returnDistinctValues=O?.returnDistinctValues??!1),D?.outStatistics?.forEach(B=>{po(B)&&!("statisticParameters"in B)&&(B.statisticParameters={value:de.defaultStatParameterValue})}),D}var NS=t=>{let e;if("portalItem"in t){let r=t.portalItem?.id;typeof r=="string"&&(e=r)}return e};function vF(t){let{view:e,portalItemId:r}=t,a;if(e&&r){let i=Array.from(e.map?.allLayers??[]).find(n=>NS(n)===r);i&&(a=i)}return a}async function In(t,e){await t.load({signal:e}),(Np(t)||Dp(t))&&await t.generateRasterInfo(t.rasterFunction,{signal:e})}var Gr=["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","24.7.0","24.8.0","25.0.0"],DS="1.0.0",BS="unrecognized.version",$S=[b.LineSeries,b.BarSeries,b.ComboLineAndBarSeries,b.RadarSeries];function Gs(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 MS(t){return t!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t):!1}function qS(t){let e=fr.Same,r=[];if(MS(t)&&t!==void 0){Gr.sort(Gs);let a=Gs(t,Gr[Gr.length-1]);if(a===1?e=fr.Newer:a===-1&&(e=fr.Older),e===fr.Newer||e===fr.Same)r.push(t);else{for(let i=Gr.length-2;i>=0;i-=1)if(Gs(t,Gr[i])>=0){r=Gr.slice(i,Gr.length);break}r.length===0&&r.push(DS)}}else e=fr.Unrecognized,r.push(BS);return{versionStatus:e,versions:r}}function cr(t){let{series:e}=t,r=("showMean"in t?t.showMean:!1)===!0?e.find(a=>a.type===b.LineSeries):e[0];return r??=e[0],r}function SF(t,e){let r=t!==null?t.toString():null,a=e!=null?e.toString():null;return a!==null&&a!==r?be.SFS:be.SLS}function Qe(t,e){let r="";return t?.includes("=")&&(r=e!==!1?Fp({value:t.split("=")[0],escape:!1}):t.split("=")[0].trim()),r}function dt(t){let{where:e,normalize:r,keepSurroundingQuotes:a,escape:i=!1}=t,n="";return 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&&(n=Xs(n)):n=Fp({value:n,keepSurroundingQuotes:a,escape:i})),n}function nr(t){let e=!1;if(t===void 0||t==="")e=!0;else if(t.includes("=")){let r=Qe(t,!1),a=dt({where:t,normalize:!1});e=r===`${a}`}return e}function sr(t){let{where:e,normalize:r,escape:a}=t,i=r===void 0?!0:r,n=Qe(e),s=dt({where:e,normalize:i,keepSurroundingQuotes:!0,escape:a}),o=e;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function RS(t){let e=C.PieFromCategory;return t[0].query?.outStatistics===void 0?e=C.PieNoAggregation:t[0].query?.groupByFieldsForStatistics===void 0&&(e=C.PieFromFields),e}function kS(t){let e=C.BarAndLineMonoField,r=t[0].query?.where;return t[0].query?.groupByFieldsForStatistics===void 0&&(t[0].query?.outStatistics??[]).length>0?e=C.BarAndLineFromFields:r===void 0&&t[0].query?.outStatistics===void 0?e=C.BarAndLineNoAggregation:nr(r)?t.length>1&&(e=C.BarAndLineMultiFields):e=t[0].query?.outStatistics===void 0?C.BarAndLineSplitByNoAggregation:C.BarAndLineSplitBy,e}function WS(t){let e=C.BoxPlotMonoField,r=t.length===1,a=t.find(o=>o.type===b.LineSeries)??t[0],{x:i}=a,n="y"in a?a.y:"",s=a.query?.where;return i===Ni?typeof n=="object"&&n.length>1?nr(s)?r&&(e=C.BoxPlotMultiFields):e=C.BoxPlotMultiFieldsAndSplitBy:r?e=C.BoxPlotMonoField:nr(s)||(e=C.BoxPlotMonoFieldAndSplitBy):r?e=C.BoxPlotMonoFieldAndCategory:nr(s)?e=C.BoxPlotMultiFieldsAndCategory:e=C.BoxPlotMonoFieldAndCategoryAndSplitBy,e}function X(t){let e=C.NonSpecific;if(t?.[0]!==void 0)switch(K(t)){case b.PieSeries:e=RS(t);break;case b.RadarSeries:case b.BarSeries:case b.LineSeries:case b.ComboLineAndBarSeries:e=kS(t);break;case b.BoxPlotSeries:e=WS(t);break}return e}function ur(t){let{seriesConfig:e,xAxisValueFormatType:r,setTimeBinningInfoWhenNotProvided:a,queryObject:i}=t,n=!1;if(!Ke(i)&&se(i)?.fields?.find(s=>s.name===e.x)?.type!=="time-only"&&Vt(e)&&e.binTemporalData!==!1&&r===b.DateAxisFormat){let s=X([e]);if(e.temporalBinning&&s!==C.BarAndLineNoAggregation&&s!==C.BarAndLineSplitByNoAggregation){let{unit:o,size:l}=e.temporalBinning;n=a===!0||l!==void 0&&l>0&&o!==void 0}}return n}function Vt(t){return $S.includes(t?.type)}function jS(t){let{previousConfig:e,newConfig:r,behaviorAfterLimit:a}=t,i=e.series,n=r.series,s=!1,o=!1;(a===Er.RenderUpToTheLimit||e.orderOptions?.data===void 0||r.orderOptions?.data===void 0)&&(o=!kr(e.orderOptions?.orderByFields,r.orderOptions?.orderByFields));let l=f=>{let p=f.query;return p?.outStatistics?.forEach(h=>{po(h)&&!("statisticParameters"in h)&&(h.statisticParameters={value:de.defaultStatParameterValue})}),p},d=["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"],c=$n(i.map(l),d),u=$n(n.map(l),d);return s=!kr(c,u),s||o}function VS(t,e){return JSON.stringify(t.dataFilters)!==JSON.stringify(e.dataFilters)}function _S(t,e){let r=!1;if(e.length&&t.length)if(e[0].x!==t[0].x)r=!0;else{let a=K(t);if(a!==b.HistogramSeries&&a!==b.GaugeSeries){let i=it(t).sort(),n=it(e).sort();r=JSON.stringify(i)!==JSON.stringify(n)}}return r}function zS(t,e){return(t??!1)!==(e??!1)}function US(t,e){return Vt(t.series[0])&&Vt(e.series[0])&&(t.series[0].binTemporalData??L.binTemporalData)!==(e.series[0].binTemporalData??L.binTemporalData)}function HS(t,e){let r=t.axes?.[0].valueFormat.type,a=e.axes?.[0].valueFormat.type,i=X(e.series),n=i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation,s=r===b.DateAxisFormat&&a===b.NumberAxisFormat,o=r===b.NumberAxisFormat&&a===b.DateAxisFormat;return r!==a&&(n||s||o)}function GS(t){let{previousSeries:e,newConfig:r,setTimeBinningInfoWhenNotProvided:a,queryObject:i}=t,n=r.series?.[0],s=!1,o=!1;if(n&&Vt(n)&&ur({seriesConfig:n,xAxisValueFormatType:_t(r),setTimeBinningInfoWhenNotProvided:a,queryObject:i})){let l=e[0];s=JSON.stringify(l.temporalBinning)!==JSON.stringify(n.temporalBinning),o=a===!0&&(n.temporalBinning?.size??0)<=0}return{timeBinningChanged:s,newTimeBinningWillBeCalculated:o}}function Qu(t,e){return e.length!==t.length}function ZS(t,e){return Ii(t)!==Ii(e)}function QS(t,e){return JSON.stringify(t.series[0]?.valueConversion)!==JSON.stringify(e.series[0]?.valueConversion)}function KS(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??nt.Null)!==(e.nullPolicy??nt.Null)}function JS(t,e){return(t.hideEmptyRowsAndColumns??!1)!==(e.hideEmptyRowsAndColumns??!1)}function YS(t,e){return(t.includeLeapDay??Fi.heatChart.includeLeapDay)!==(e.includeLeapDay??Fi.heatChart.includeLeapDay)}function XS(t){let{previousConfig:e,newConfig:r,fieldList:a}=t,i=e.series[0],n=r.series[0],s=!1;if(i.type===b.ScatterSeries&&n.type===b.ScatterSeries&&a&&a.length>0){let o=new Set(i.additionalTooltipFields||[]),l=new Set(n.additionalTooltipFields||[]);if(!kr(o,l)){let d=Array.from(l).filter(c=>!o.has(c));d.length>0&&(s=a?.some(c=>d.includes(c.name)&&!Ei(c)))}}return s}function wF(t,e){return(t?.colorMatch??!1)!==(e.colorMatch??!1)}function xF(t,e){return(t.stackedType??gt.Side)!==(e.stackedType??gt.Side)}function gn(t){let e={...t};return e.position===void 0&&(e.position=Fi.heatChart.legend.position),e}function CF(t,e){let r=t.legend??{type:b.Legend},a=e.legend??{type:b.Legend},i=gn(r),n=gn(a);return!kr(i,n)}function TF(t,e){let r=t.legend??{type:b.Legend},a=e.legend??{type:b.Legend},i=gn(r),n=gn(a);return i.position!==n.position}function FF(t,e){return JSON.stringify(t.series[0]?.gradientRules)!==JSON.stringify(e.series[0]?.gradientRules)}function IF(t,e){return t.series[0].heatRulesType!==e.series[0].heatRulesType}function OF(t){let{oldConfig:e,newConfig:r}=t,a=!1,i=e?.series[0],n=r.series[0],s=K(e?.series),o=K(r.series);if(s===b.PieSeries&&o===b.PieSeries){let{slices:l,sliceGrouping:d}=i,{slices:c,sliceGrouping:u}=n,f=l?.map(m=>({sliceId:m.sliceId,label:m.label})),p=c?.map(m=>({sliceId:m.sliceId,label:m.label})),h=d?.label,y=u?.label;a=JSON.stringify(f)!==JSON.stringify(p)||JSON.stringify(h)!==JSON.stringify(y)}return a}function ew(t){let{previousSelectionOIDs:e,selectionData:r,filterBySelection:a}=t,i=!1;return a===!0&&(i=e?.length!==r?.selectionOIDs?.length||!kr(e,r?.selectionOIDs)),i}function AF(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 PF(t,e){let r=it(t),a=it(e);return JSON.stringify(r)!==JSON.stringify(a)}function EF(t,e){let r,a,i,n;return Vt(t.series[0])&&(r=t.series[0].temporalBinning?.unit,i=t.series[0].temporalBinning?.size),Vt(e.series[0])&&(a=e.series[0].temporalBinning?.unit,n=e.series[0].temporalBinning?.size),Js(r,i)&&!Js(a,n)}function LF(t,e){return t.axes?.length===3&&e.axes?.length===2||t.axes?.length===2&&e.axes?.length===3}function NF(t,e){return JSON.stringify(t.series.map(r=>r.assignToSecondValueAxis??!1))!==JSON.stringify(e.series.map(r=>r.assignToSecondValueAxis??!1))}function DF(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 BF(t,e){return zu(t)!==zu(e)}function $F(t,e){return(t.showOutliers??L.boxPlot.boxPlotOutliersVisibility)!==(e.showOutliers??L.boxPlot.boxPlotOutliersVisibility)}function MF(t,e){return(t.standardizeValues??L.boxPlot.boxPlotStandardizeValuesVisibility)!==(e.standardizeValues??L.boxPlot.boxPlotStandardizeValuesVisibility)}function qF(t,e){return JSON.stringify(t?.chartRenderer)!==JSON.stringify(e?.chartRenderer)}function RF(t,e){let r=t.axes?.[0].valueFormat.type===b.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0,a=e.axes?.[0].valueFormat.type===b.DateAxisFormat?e.axes[0].valueFormat.intlOptions.timeZone:void 0;return r!==a}function kF(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===b.ScatterSeries&&i.type===b.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=JSON.stringify(n)!==JSON.stringify(s)}return r}function WF(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===b.ScatterSeries&&i.type===b.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 jF(t){let{previousConfig:e,newConfig:r,previousFilterBySelection:a,previousSelectionOIDs:i,fieldList:n,queryObject:s,filterBySelection:o,selectionData:l,setTimeBinningInfoWhenNotProvided:d,chartLimits:c}=t,{series:u}=r,{series:f}=e,p=K(u),h=!1,y=!1,m=!1,g={common:{layerChanged:!1,queryChanged:!1,xOrYChanged:!1,numberOfSeriesChanged:!1,configFiltersChanged:!1,filterBySelectionChanged:!1,dataForFilterBySelectionChanged:!1,binTemporalDataChanged:!1,timeBinningChanged:!1,newTimeBinningWillBeCalculated:!1,valueFormatChangeRequiresNewData:!1},histogram:{dataPropsChanged:!1},gauge:{valueConversionChanged:!1},boxPlot:{showMeanChanged:!1},heatChart:{binningChanged:!1,hideEmptyRowsAndColumnsChanged:!1,includeLeapDay:!1},scatterPlot:{tooltipFieldsChanged:!1}};switch(g.common.queryChanged=jS({previousConfig:e,newConfig:r,behaviorAfterLimit:c?.behaviorAfterLimit}),g.common.configFiltersChanged=VS(e,r),g.common.xOrYChanged=_S(f,u),g.common.filterBySelectionChanged=zS(a,o),g.common.dataForFilterBySelectionChanged=ew({previousSelectionOIDs:i,selectionData:l,filterBySelection:o}),g.common.binTemporalDataChanged=US(e,r),g.common.valueFormatChangeRequiresNewData=HS(e,r),g.common={...g.common,...GS({previousSeries:f,newConfig:r,setTimeBinningInfoWhenNotProvided:d,queryObject:s})},p){case b.HistogramSeries:g.histogram.dataPropsChanged=gv(f,u)||yv(f,u);break;case b.LineSeries:case b.BarSeries:case b.ComboLineAndBarSeries:g.common.numberOfSeriesChanged=Qu(f,u);break;case b.BoxPlotSeries:rt(e)&&rt(r)&&(g.common.numberOfSeriesChanged=Qu(f,u),g.boxPlot.showMeanChanged=ZS(e,r));break;case b.GaugeSeries:g.gauge.valueConversionChanged=QS(e,r);break;case b.HeatSeries:Qr(e)&&Qr(r)&&(g.heatChart.binningChanged=KS(e,r),g.heatChart.hideEmptyRowsAndColumnsChanged=JS(e,r),g.heatChart.includeLeapDay=YS(e,r));break;case b.ScatterSeries:g.scatterPlot.tooltipFieldsChanged=XS({previousConfig:e,newConfig:r,fieldList:n});break}return y=Object.values(g.common).some(v=>v),(g.gauge.valueConversionChanged||g.histogram.dataPropsChanged||g.boxPlot.showMeanChanged||g.heatChart.binningChanged||g.heatChart.hideEmptyRowsAndColumnsChanged||g.heatChart.includeLeapDay||g.scatterPlot.tooltipFieldsChanged)&&(m=!0),h=y||m,{dataUpdateNeeded:h,dataUpdateDetails:g}}function VF(t,e){let r=Rr(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=X(r.series);n=Ip(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[c,u]=i.toUpperCase()===Be.Descending?[d,l]:[l,d];return typeof c=="string"&&typeof u=="string"?c.localeCompare(u):Number(c)-Number(u)})}}return g0({data:r?.series.map(a=>a.id),htmlContainer:e}),r}function Yp(t){let e,r=t?.orderOptions?.data;return t.series?.length>0&&r?.orderType===st.MultiAxes&&(e=[],e.push({sortingField:te.xField,orderBy:r.orderByX??Be.Ascending}),e.push({sortingField:r.orderByY!==void 0?te.yField:"",orderBy:r.orderByY})),e}function tw(t){let{chartConfig:e,field:r}=t,a,i=Yp(e);return i?.length===2&&(a=r===te.xField?i[0]?.orderBy:i[1]?.orderBy),a}function rw(t){let e=X(t.series),r;if(t.orderOptions?.data!==void 0){let a=t.orderOptions?.data?.orderType??st.Category,i=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0;if(a===st.Category)a=t.series[0].x;else{a===st.Mean?a=Z.Average:a===st.Median&&(a=Z.Median);let n=e===C.BoxPlotMultiFieldsAndCategory&&typeof t.series[0].y=="string"?t.series[0].y:void 0,s=Qe(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=Be.Ascending)}r={sortingField:a,orderBy:i??Be.Ascending,preferLabel:t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel??!0:!0}}return r}function iw(t){let e=t.series[0],{x:r,y:a}=e,i=X(t.series)===C.PieFromFields,n=X(t.series)===C.BarAndLineFromFields,s,o="",l;if(t.orderOptions?.data!==void 0){let d=t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel:!0;if(o=t.orderOptions?.data?.orderType??st.Category,l=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0,o===st.Category?i?o=ot:o=d?r:Fi.originalCategoryValue:o=i?jt:[a].flat()[0],o!==void 0&&o!==""){let c=co(t);if(K(t.series)!==b.PieSeries&&o!==r&&t.series?.length>1)switch(c){case gt.Stacked:o=L.technicalSortingFieldBySum;break;case gt.Stacked100:o=L.technicalSortingFieldByPercent;break;case gt.Side:typeof a=="string"&&(o=a);break}s={sortingField:o,orderBy:l??Be.Ascending,preferLabel:d}}}else(n||i)&&t.series[0].query?.outStatistics&&(l=t.series[0].query.outStatistics.map(d=>d.onStatisticField),l?.length>1&&(s={sortingField:Fi.originalCategoryValue,orderBy:l,preferLabel:!1}));return s}function bn(t){let e,r=K(t?.series);if(t?.series&&t.series.length>0){let a;switch(r){case b.HeatSeries:Qr(t)&&(e=Yp(t));break;case b.BoxPlotSeries:rt(t)&&(a=rw(t));break;case b.LineSeries:case b.BarSeries:case b.RadarSeries:case b.PieSeries:a=iw(t);break}!e&&a&&(e=[],e.push(a))}return e}function _F(t){let{oldConfig:e,newConfig:r,dataWasUpdated:a}=t,i=K(r.series),n=X(r.series),s=!1,o=!1;if(n!==C.BoxPlotMonoField&&n!==C.BoxPlotMonoFieldAndSplitBy&&r.orderOptions?.data!==void 0){let l=bn(e),d=bn(r);if(i===b.HeatSeries){let c=l?l[0]:void 0,u=d?d[0]:void 0,f=l?l[1]:void 0,p=d?d[1]:void 0;o=e?.orderOptions?.data?.orderType!==r.orderOptions?.data?.orderType||c?.sortingField!==u?.sortingField||c?.orderBy!==u?.orderBy||f?.sortingField!==p?.sortingField||f?.orderBy!==p?.orderBy,s=o||a}else{let c=l?l[0]:void 0,u=d?d[0]:void 0;o=e?.orderOptions?.data?.orderType!==r.orderOptions?.data?.orderType||c?.sortingField!==u?.sortingField||c?.orderBy!==u?.orderBy||(c?.preferLabel??!0)!==(u?.preferLabel??!0),s=o||a}}return s}function Ku(t){let{orderBy:e,axisFormatOptions:r}=t;return e!==void 0&&r!==void 0&&(!Array.isArray(e)||r?.type===b.CategoryAxisFormat)}function Ju(t,e,r){let a=0;if(Array.isArray(r)){let i=t?.toString()??"",n=e?.toString()??"",s=r.indexOf(i),o=r.indexOf(n);s===-1&&(s=r.length),o===-1&&(o=r.length),a=s-o}else r===Be.Descending?typeof t=="string"&&typeof e=="string"?a=e.localeCompare(t,void 0,{numeric:!0}):a=(Number(e)||0)-(Number(t)||0):r===Be.Ascending&&(typeof t=="string"&&typeof e=="string"?a=t.localeCompare(e,void 0,{numeric:!0}):a=(Number(t)||0)-(Number(e)||0));return a}function aw(t){let{arrayToSort:e,chartConfig:r,dataOrderParameters:a}=t,i=a??bn(r),n,s,o=!1,l=!1,d=!1;i&&e.length>1&&([n,s]=i,o=n&&n.sortingField.length>0&&Ku({orderBy:n.orderBy,axisFormatOptions:r.axes?.[0]?.valueFormat}),l=s&&s.sortingField.length>0&&Ku({orderBy:s.orderBy,axisFormatOptions:r.axes?.[1]?.valueFormat}),d=o||l),d&&e.sort((c,u)=>{let f=0;if(o&&n?.sortingField){let p=n.orderBy;f=Ju(c[n.sortingField],u[n.sortingField],p)}if(f===0&&l&&s?.sortingField){let p=s.orderBy;f=Ju(c[s.sortingField],u[s.sortingField],p)}return f})}function nw(t,e,r){let a=0;if(Array.isArray(r)){let i=t?.toString()??"",n=e?.toString()??"",s=r.indexOf(i),o=r.indexOf(n);s===-1&&(s=r.length),o===-1&&(o=r.length),a=s-o}else r===Be.Descending?typeof t=="string"&&typeof e=="string"?a=e.localeCompare(t,void 0,{numeric:!0}):a=(Number(e)||0)-(Number(t)||0):r===Be.Ascending&&(typeof t=="string"&&typeof e=="string"?a=t.localeCompare(e,void 0,{numeric:!0}):a=(Number(t)||0)-(Number(e)||0));return a}function Yu(t){let{chartConfig:e,field:r,chartData:a}=t,i=tw({chartConfig:e,field:r}),n=Array.from(new Set(a.map(s=>r in s?s[r]:void 0)));return i&&n.length>1&&n.sort((s,o)=>nw(s,o,i)),n.map(s=>({[r]:s}))}function sw(t){let{chartConfig:e,chartData:r}=t;r.heatChartAxesData={xAxisData:Yu({chartConfig:e,field:te.xField,chartData:r.dataItems}),yAxisData:Yu({chartConfig:e,field:te.yField,chartData:r.dataItems})}}function vn(t){let{arrayToSort:e,chartConfig:r,fieldList:a,isTimeBinningSeries:i}=t;if(i!==!0&&e[0]!==void 0){let{series:n}=r,s=X(n),o=K(n),l=_t(r),d=bn(r);if(Qr(r)&&e!==void 0)aw({arrayToSort:e,chartConfig:r,dataOrderParameters:d});else if(d?.[0]!==void 0&&e!==void 0&&e.length>1){let{orderBy:c}=d[0],{sortingField:u}=d[0],f=r.orderOptions?.data?.orderType===st.Category,p=d[0].preferLabel!==!1,h=s===C.BarAndLineFromFields||s===C.PieFromFields||s===C.BoxPlotMultiFields||s===C.BoxPlotMultiFieldsAndSplitBy,y=h||o===b.PieSeries,m=s===C.PieNoAggregation||s===C.BarAndLineNoAggregation||s===C.BarAndLineSplitByNoAggregation;if(f&&y&&(!p||(o===b.LineSeries||o===b.RadarSeries)&&l===b.NumberAxisFormat)&&(u=L.originalCategoryValue),Array.isArray(c))Nv({arrayToSort:e,orderBy:c,sortingField:u,fieldList:a,isByFieldsChart:h,preferLabel:p});else{let g=l===b.DateAxisFormat&&f;ia({arrayToSort:e,orderBy:c,sortingField:u,forceAscendingOrder:g,isNonAggregated:m,sortByCategory:f,preferLabel:p,isPieOrByFieldsChart:y})}}}}function zF(t){let{alteredConfig:e,dataInfo:r,fieldList:a,options:i,queryObject:n}=t,s=So(r.data);if(s&&vn({arrayToSort:s,chartConfig:e,fieldList:a,isTimeBinningSeries:ur({seriesConfig:cr(e),xAxisValueFormatType:_t(e),setTimeBinningInfoWhenNotProvided:i?.setTimeBinningInfoWhenNotProvided,queryObject:n})}),rt(e)){let o=r?.data&&"meanLines"in r.data?r.data.meanLines:void 0;o&&vn({arrayToSort:o,chartConfig:e})}Qr(e)&&r.data&&sw({chartConfig:e,chartData:r.data})}function ow(t){return t?.type==="uniqueValue"&&(t.uniqueValueInfos=t.uniqueValueInfos.map(e=>{let r=e.value===null?L.nullValue:e.value;return{...e,value:r}})),t}async function UF(t){let{data:e,queryObject:r,chartConfig:a,allowColorMatch:i}=t,n=!1,s=[];if(i&&!Ke(r)){let{series:o,chartRenderer:l}=a,d=ow(l),c=d?Ci.ChartRenderer:Ci.LayerRenderer,u=r?se(r):void 0,f=d??u?.renderer,p;u&&c===Ci.LayerRenderer?s=await Kp(u):c===Ci.ChartRenderer&&(s=Pv(f));let h=Sv(d,u?.renderer),y=Fv({chartRenderer:l,queryObject:r}),m=K(o),g=X(o),v=cr(a),S=Qe(v.query?.where);p=new Map;for(let w=0;w<(m===b.HistogramSeries&&e.length>0?1:e.length);w+=1){let T=e[w],I=await Iv({seriesConfig:a.series,dataItem:T,renderer:f,rendererType:h,rendererOrigin:c,chartSubType:g,splitByField:S,graphicTemplate:y,mapAttributesToSymbol:p,rendererFieldNames:s});n=n||I.colorMatchApplied}}return{dataItems:e,colorMatchApplied:n,rendererFieldNames:s}}async function lw(t){let{queryObject:e,queryConfig:r,chartConfig:a,errorStrings:i,abortKey:n,abortSignal:s}=t,o=a.series[0],{x:l,valueConversion:d}=o,c=vo(a),u=await Dt({queryObject:e,queryConfig:r,featureCount:r.num??1,errorStrings:i,abortKey:n,abortSignal:s}),f=[{[l]:null}];if(c)f=u.map(p=>{go(p.attributes,l);let h=_u(p.attributes[l],d);return{...p.attributes,[l]:h}});else if(u.length>0){let p=u[0].attributes[l]??u[0].attributes[l.toUpperCase()]??u[0].attributes[l.toLowerCase()];p=_u(p,d),f=[{[l]:p}]}return f}async function dw(t){let{queryObject:e,chartConfig:r,queryConfig:a,chartLimits:i,errorStrings:n,abortKey:s,abortSignal:o}=t,l={valid:!0},{behaviorAfterLimit:d,maxGaugeByFeaturesLimit:c}=i??{},u=vo(r),f=!0,p;if(u&&(p=(await df({chartConfig:r,queryObject:e,queryConfig:a,behaviorAfterLimit:d,numberMaxOfFeaturesToFetch:c,isGaugeByFeature:u,abortSignal:o})).elementCount,i?.behaviorAfterLimit!==Er.RenderUpToTheLimit&&(f=ar({count:p??0,seriesCount:r.series.length,chartType:b.GaugeSeries,chartLimits:i})),i&&(Number.isFinite(c)||Number.isFinite(p)))){let h=Math.min(c??Number.NaN,p??Number.NaN),y=i;Number.isFinite(h)&&(y={...i,maxGaugeByFeaturesLimit:h}),Lp({chartConfig:r,chartLimits:y,uniqueQuery:a})}if(Number.isNaN(f)||f){let h=await lw({queryObject:e,chartConfig:r,queryConfig:a,errorStrings:n,abortKey:s,abortSignal:o});l.data={dataItems:h},l.count=h.length}else l.count=p,yn({dataInfo:l,chartType:b.GaugeSeries});return l}async function HF(t){let{queryObject:e,chartConfig:r,queryConfig:a,errorStrings:i}=t,{minimumFromField:n,maximumFromField:s}=r.axes[0],o=[],l="",d="";n!==void 0&&(typeof n=="string"?(l=`${W.Minimum}_${n}`,o.push({statisticType:W.Minimum,onStatisticField:n,outStatisticFieldName:l})):(l=`${n.statisticType}_${n.onStatisticField}`,o.push({...n,outStatisticFieldName:l}))),s!==void 0&&(typeof s=="string"?(d=`${W.Maximum}_${s}`,o.push({statisticType:W.Maximum,onStatisticField:s,outStatisticFieldName:d})):(d=`${s.statisticType}_${s.onStatisticField}`,o.push({...s,outStatisticFieldName:d})));let c={...a,outStatistics:o,orderByFields:void 0,groupByFieldsForStatistics:void 0,returnDistinctValues:void 0,fetchNullValues:void 0,num:void 0};aa(e);let u=await la({queryObject:e,queryConfig:c,errorStrings:i}),f=u.get(l),p=u.get(d);return{minimumFromData:f,maximumFromData:p}}function cw(t){let{itemsA:e,itemsB:r,isPieFromFields:a,x:i,y:n,outStatisticFieldName:s}=t,o=Rr(e),l=Rr(r),d=!1;if(o===void 0&&l!==void 0||o!==void 0&&l===void 0)d=!0;else if(!a){let c=[L.originalCategoryValue,L.originalYCategoryValue,L.originalDateValue,L.xAxisField,L.technicalSortingFieldBySum,L.technicalSortingFieldByPercent,L.pieChart.technicalFieldSlicePercent,L.pieChart.technicalFieldGroupedSlices,L.pieChart.technicalFieldSliceId,L.originalServerBinningRange,L.lastTemporalBin,L.technicalFieldSplitByField,de.uniqueIdsName,te.valueField,...mp],u=(y,m)=>{let g=m[L.originalCategoryValue];g!==void 0&&i&&(m[i]=g);let v=m[L.originalYCategoryValue];v!==void 0&&n&&(m[n]=v),i&&m[te.xField]!==void 0&&(m[i]=m[L.originalCategoryValue]!==void 0?m[L.originalCategoryValue]:m[te.xField],delete m[te.xField]),n&&m[te.yField]!==void 0&&(m[n]=m[L.originalYCategoryValue]!==void 0?m[L.originalYCategoryValue]:m[te.yField],delete m[te.yField]),s&&m[te.valueField]!==void 0&&(m[s]=m[te.valueField],delete m[te.valueField]);let S={};return Object.keys(m).forEach(w=>{!c.includes(w)&&!w.includes(L.rendererSymbolField)&&(S[w]=m[w])}),y.push(S),y},f=(y,m)=>JSON.stringify(y).localeCompare(JSON.stringify(m)),p=o?.reduce(u,[])?.sort(f),h=l?.reduce(u,[])?.sort(f);p&&h&&i&&p.length!==h.length&&(p=sa({data:p,x:i}),h=sa({data:h,x:i})),d=p?.length!==h?.length||!kr(p,h)}return d}function uw(t){let{chartConfig:e,currentSelectionDataItems:r,selectionData:a}=t,i=[];if(e!==void 0){let n=e.series,s=X(n),{selectionItems:o}=a??{};if(o!==void 0&&cw({itemsA:o,itemsB:r,isPieFromFields:X(e.series)===C.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})?i=o:i=r??[],n.length>1&&s!==C.BarAndLineNoAggregation&&s!==C.BarAndLineSplitByNoAggregation){let l=Qe(n[0].query?.where);i=sa({data:i,x:n[0].x,splitByField:l})}vn({arrayToSort:i,chartConfig:e})}return i??[]}function Ar(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 pw(t){let{dataContext:e,xAxisField:r,yAxisField:a,options:i}=t,n="",{dataContextXMinField:s,dataContextXMaxField:o,dataContextYMinField:l,dataContextYMaxField:d}=L.scatterplotAggregationFields;if(xp({dataContext:e,chartLimits:i?.chartLimits})){let{[s]:c,[o]:u}=e,f=r!==a?e[l]:c,p=r!==a?e[d]:u;if(!Number.isNaN(c)&&!Number.isNaN(u)&&!Number.isNaN(f)&&!Number.isNaN(p)){let h=[];c===u?h.push(`${r}=${c?.toString()}`):(h.push(`${r}>=${c?.toString()}`),h.push(`${r}<=${u?.toString()}`)),f===p?h.push(`${a}=${f?.toString()}`):(h.push(`${a}>=${f?.toString()}`),h.push(`${a}<=${p?.toString()}`)),n=Pe(h)}}else n=Pe([sr({where:Ar(r,e[r])}),a!==void 0?sr({where:Ar(a,e[a])}):""]);return n}function Xu(t){let{fieldsIndex:e,fieldName:r,inputDate:a}=t,i=e.get(r),n=e.getTimeZone(r);return nb(new Date(a),{type:"date"},{type:i,timeZone:n})}function Xp(t){let{xAxisField:e,dataContext:r,queryObject:a}=t,i="",n=r[L.originalServerBinningRange]??r[L.dateBinningRange];if(ha(n)&&n.length===2){let[s,o]=n,l=!0,d=Or(a);if(d){let c=se(a),{fieldsIndex:u}=c;s=Xu({fieldsIndex:u,fieldName:e,inputDate:s}),o=Xu({fieldsIndex:u,fieldName:e,inputDate:o})}else typeof s=="number"&&typeof o=="number"?Number.isFinite(s)&&Number.isFinite(o)?(s=Oi(s),o=Oi(o)):l=!1:typeof s=="string"&&typeof o=="string"&&(s=new Date(s).toISOString(),o=new Date(o).toISOString());if(l){let c=d?"":"'",u=r[L.lastTemporalBin]===!0?"<=":"<";i=`${e}>=${c}${s}${c} AND ${e}${u}${c}${o}${c}`}}return i}function ef(t,e){let r="";if(Number.isFinite(t)){let a=1/10**L.queryMaxFloatPrecision;r=`${e}>=${t-a} AND ${e}<=${t+a}`}return r}function tf(t){let{xAxisField:e,yAxisField:r,splitBy:a,dataContext:i,xAxisFieldType:n,chartConfig:s}=t,o="";if(e!==void 0&&e!==L.boxPlot.boxPlotCategory){let c=ra({value:i[e],dataContext:i,keepNullValues:!0});n===me.Double?o=ef(c,e):(Zr(s.axes?.[0].valueFormat)&&(c=Oi(c)),o=sr({where:Ar(e,c),normalize:!1,escape:!0}))}let l=sr({where:a??"",normalize:!1,escape:!0}),d="";if(vv(s)){let c=X(s.series)===C.BoxPlotMultiFieldsAndCategory?r:void 0,u=Ue({key:Z.Min,showOutliers:!0,splitBy:a,y:c}),f=Ue({key:Z.Max,showOutliers:!0,splitBy:a,y:c}),p=e===L.boxPlot.boxPlotCategory?i[e]:r;if(!ze(p)){let h=i[u],y=i[f];Number.isFinite(h)&&Number.isFinite(y)&&(d=`${p?.toString()}>=${h?.toString()} AND ${p?.toString()}<=${y?.toString()}`)}}return Pe([o,l,d])}function fw(t){let{xAxisField:e,splitBy:r,dataContext:a,xAxisFieldType:i,chartConfig:n,queryObject:s}=t,o="";if(L.dateBinningRange in a)o=Xp({xAxisField:e,dataContext:a,queryObject:s});else if(X(n.series)!==C.BarAndLineFromFields){let d=ra({value:a[e],dataContext:a,keepNullValues:!0});i===me.Double?o=ef(d,e):(Zr(n.axes?.[0].valueFormat)&&i!==me.TimeOnly&&(d=Oi(d)),o=sr({where:Ar(e,d),normalize:!1,escape:!0}))}let l=sr({where:r??"",normalize:!1,escape:!0});return Pe([o,l])}function hw(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i=r[L.originalCategoryValue];return i===void 0&&(i=r[e]),X(a.series)===C.PieFromFields?"":sr({where:Ar(e,i),normalize:!1,escape:!0})}function ep(t){let{field:e,fieldType:r,fieldValue:a,unit:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l,{expression:d}=ho({field:e,fieldType:r,unit:i,addIntervalStatement:!0,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o});return d&&(l=`${d}=${a}`),l}function mw(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===b.HeatSeries){let c,u,f=a[te.xField],p=a[L.originalCategoryValue],h=a[te.yField],y=a[L.originalYCategoryValue],m=i.axes?.[0]?.valueFormat?.type,g=i.axes?.[1]?.valueFormat?.type;m===b.CategoryAxisFormat?c=sr({where:Ar(l.x,p??f),normalize:!1,escape:!0}):c=ep({field:l.x,fieldType:e,fieldValue:f,unit:l.xTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),g===b.CategoryAxisFormat?u=sr({where:Ar(l.y,y??h),normalize:!1,escape:!0}):u=ep({field:l.y,fieldType:r,fieldValue:h,unit:l.yTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),c&&(d=c),u&&(d=Pe([d,u]))}return d}function yw(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===b.HistogramSeries){let l=Mv(e,n.dataTransformationType),d=r.isLastBin?"<=":"<";i=Pe([`${l}>=${s?.toString()}`,`${l}${d}${o?.toString()}`])}return i}function GF(t){let{chartConfig:e}=t,r=K(e.series),a="";switch(r){case b.ScatterSeries:a=pw(t);break;case b.HeatSeries:a=mw(t);break;case b.RadarSeries:case b.BarSeries:case b.LineSeries:case b.ComboLineAndBarSeries:a=fw(t);break;case b.BoxPlotSeries:a=tf(t);break;case b.HistogramSeries:a=yw(t);break;case b.PieSeries:a=hw(t);break}return a}async function gw(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,setTimeBinningInfoWhenNotProvided:n,returnFeaturesExtent:s,chartLimits:o,popupTemplateFieldInfosEnabled:l,hideZeroCountCategories:d,replaceNoValueCategoryWithZero:c,view:u,errorStrings:f,abortKey:p,abortSignal:h}=t,y=X(a.series),m={valid:!0,data:{dataItems:[]}};if(i!==void 0&&i.length>0){let g=cr(a),{x:v}=g,S="y"in g?g.y:"",w=xt(e).find(N=>N.name===v)?.type,T=[],I=i.reduce((N,R)=>{let D=[];if(de.uniqueIdsName in R)T.push(R[de.uniqueIdsName]);else{switch(y){case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:{let $=Qe(g.query?.where??""),j=`_${Z.Average}`;Object.keys(R).forEach(U=>{if(U.includes(j)){let G=U.replace(j,"");G.trim()!==""&&D.push(Ar($,G))}});break}}let B=[S].flat(),k=B.length===1?B[0]:"";if(y===C.BoxPlotMultiFieldsAndCategory){let $=`_${Z.FirstQuartile}`,j=Object.keys(R).find(U=>U.includes($));j!==void 0&&(k=j.replace($,""))}D.length===0&&D.push(""),D.forEach($=>{let j=tf({chartConfig:a,xAxisField:v,yAxisField:k,splitBy:$,dataContext:R,xAxisFieldType:w});N.push(j)})}return N},[]),E=se(e);if(E!==void 0&&T.length>0){let N=zt(E).idField;I.push(`${N} IN (${T.join(",")})`)}let P=I.join(" OR "),O={...r};O.where=Pe([O.where,P]),m=await yo({queryObject:e,chartConfig:a,queryConfig:O,setTimeBinningInfoWhenNotProvided:n,returnFeaturesExtent:s,chartLimits:o,popupTemplateFieldInfosEnabled:l,hideZeroCountCategories:d,replaceNoValueCategoryWithZero:c,view:u,errorStrings:f,abortKey:p,abortSignal:h})}return m}async function bw(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,dataForFilterBySelectionChanged:n,selectionData:s,setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l,chartLimits:d,popupTemplateFieldInfosEnabled:c,hideZeroCountCategories:u,replaceNoValueCategoryWithZero:f,view:p,errorStrings:h,abortKey:y,abortSignal:m}=t;aa(e);let{series:g}=a,v=K(g),S=_t(a),w={valid:!0},T=s?.selectionItems??[];n||(T=uw({chartConfig:a,currentSelectionDataItems:i,selectionData:s}));let I=!1;switch(v){case b.HeatSeries:w.data={dataItems:T};break;case b.PieSeries:if(X(a.series)===C.PieFromFields){let{x:E,y:P}=a.series[0],O=Rr(T);O.forEach(N=>{E in N&&(N[ot]=N[E],delete N[E]),P in N&&(N[jt]=N[P],delete N[P])}),w.data={dataItems:O}}else w.data={dataItems:T};w.count=T.length,I=!0;break;case b.BoxPlotSeries:rt(a)&&(w=await gw({queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l,chartLimits:d,popupTemplateFieldInfosEnabled:c,hideZeroCountCategories:u,replaceNoValueCategoryWithZero:f,view:p,errorStrings:h,abortKey:y,abortSignal:m}));break;case b.BarSeries:case b.ComboLineAndBarSeries:case b.RadarSeries:case b.LineSeries:if(T.length===0||!ur({xAxisValueFormatType:S,setTimeBinningInfoWhenNotProvided:o,seriesConfig:g[0],queryObject:e}))w.data={dataItems:T},w.count=T.length*g.length,I=!0;else{let E={...r};if(i!==void 0&&i.length>0){let P=i.map(N=>Xp({xAxisField:g[0].x,dataContext:N,queryObject:e})),O=Pe(P,"OR");E.where=Pe([E.where,O])}w=await bo({queryObject:e,queryConfig:E,chartConfig:a,errorStrings:h,setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l,chartLimits:d,popupTemplateFieldInfosEnabled:c,view:p,abortSignal:m})}break;case b.HistogramSeries:{if(T.length===0)w.data={mean:Number.NaN,median:Number.NaN,stddev:Number.NaN,max:Number.NaN,min:Number.NaN,bins:[]},w.count=0;else{let{x:E}=g[0],P=T.map((R,D)=>{let{minValue:B,maxValue:k}=R,$=D===T.length-1?"<=":"<";return`${E} >= ${B} AND ${E} ${$} ${k}`}),O=Pe(P,"OR"),N={...r};N.where=Pe([N.where,O]),w=await hp({queryObject:e,chartConfig:a,queryConfig:N,view:p,errorStrings:h,abortKey:y,abortSignal:m})}break}case b.ScatterSeries:{if(T.length===0){let{r2:E,trendLinePoints:P}=L.scatterplotSeries;w.data={dataItems:[],r2:E,trendLinePoints:P,count:0},w.count=0}else{let{r2:E,trendLinePoints:P}=Vp({data:T,chartConfig:a});w.data={dataItems:T,r2:E,trendLinePoints:P},w.count=T.length}break}}return I&&w.data!==void 0&&vn({arrayToSort:"dataItems"in w.data?w.data.dataItems:w.data,chartConfig:a}),w}async function yo(t){let{queryObject:e,chartConfig:r,queryConfig:a,errorStrings:i,abortKey:n,abortSignal:s,setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l,chartLimits:d,popupTemplateFieldInfosEnabled:c,hideZeroCountCategories:u,replaceNoValueCategoryWithZero:f,view:p}=t,h={valid:!0},y=Ii(r),m=await no({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!y,chartConfig:r,errorStrings:i,abortKey:n,abortSignal:s,setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l,chartLimits:d,popupTemplateFieldInfosEnabled:c,hideZeroCountCategories:u,replaceNoValueCategoryWithZero:f,view:p});if(!y)h=m;else{let g={dataItems:[]};g.meanLines=m.data.dataItems;let v=Gv(r),S=(await no({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!0,setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l,chartLimits:d,popupTemplateFieldInfosEnabled:c,hideZeroCountCategories:u,replaceNoValueCategoryWithZero:f,view:p,errorStrings:i,chartConfig:v,abortKey:n,abortSignal:s})).data;g.dataItems=S.dataItems,g.outliers=S.outliers,h.data=g}return h}async function vw(t){let{queryObject:e,chartConfig:r,queryConfig:a,filterBySelection:i,selectionData:n,setTimeBinningInfoWhenNotProvided:s,returnFeaturesExtent:o,chartLimits:l,popupTemplateFieldInfosEnabled:d,hideZeroCountCategories:c,replaceNoValueCategoryWithZero:u,view:f,syncViewTimeZone:p,errorStrings:h,abortKey:y,abortSignal:m,fieldList:g,currentSelectionDataItems:v,dataForFilterBySelectionChanged:S,preFetchedQueryResponse:w}=t,{series:T}=r,I=K(T),E={valid:!0};if(i)E=await bw({queryObject:e,queryConfig:a,chartConfig:r,currentSelectionDataItems:v,dataForFilterBySelectionChanged:S,selectionData:n,setTimeBinningInfoWhenNotProvided:s,returnFeaturesExtent:o,chartLimits:l,popupTemplateFieldInfosEnabled:d,hideZeroCountCategories:c,replaceNoValueCategoryWithZero:u,view:f,errorStrings:h,abortKey:y,abortSignal:m});else switch(I){case b.HeatSeries:aa(e),E=await cf({chartConfig:r,queryConfig:a,queryObject:e,errorStrings:h,returnFeaturesExtent:o,chartLimits:l,popupTemplateFieldInfosEnabled:d,view:f,syncViewTimeZone:p,abortKey:y,abortSignal:m});break;case b.BoxPlotSeries:rt(r)&&(E=await yo({queryObject:e,chartConfig:r,queryConfig:a,setTimeBinningInfoWhenNotProvided:s,returnFeaturesExtent:o,chartLimits:l,popupTemplateFieldInfosEnabled:d,hideZeroCountCategories:c,replaceNoValueCategoryWithZero:u,view:f,errorStrings:h,abortKey:y,abortSignal:m}));break;case b.BarSeries:case b.ComboLineAndBarSeries:case b.PieSeries:case b.RadarSeries:case b.LineSeries:{let P={queryObject:e,queryConfig:a,chartConfig:r,errorStrings:h,setTimeBinningInfoWhenNotProvided:s,returnFeaturesExtent:o,chartLimits:l,popupTemplateFieldInfosEnabled:d,hideZeroCountCategories:c,replaceNoValueCategoryWithZero:u,view:f,abortKey:y,abortSignal:m,fieldList:g,preFetchedQueryResponse:w};ur({xAxisValueFormatType:_t(r),setTimeBinningInfoWhenNotProvided:s,seriesConfig:T[0],queryObject:e})?E=await bo(P):E=await no(P);break}case b.ScatterSeries:E.data=await uf({queryObject:e,queryConfig:a,setTimeBinningInfoWhenNotProvided:s,returnFeaturesExtent:o,chartLimits:l,popupTemplateFieldInfosEnabled:d,hideZeroCountCategories:c,replaceNoValueCategoryWithZero:u,view:f,chartConfig:r,errorStrings:h,abortKey:y,abortSignal:m});break;case b.HistogramSeries:E=await hp({queryObject:e,queryConfig:a,chartConfig:r,view:f,abortKey:y,abortSignal:m,errorStrings:h});break;case b.GaugeSeries:aa(e),E=await dw({queryObject:e,chartConfig:r,queryConfig:a,chartLimits:l,errorStrings:h,abortKey:y,abortSignal:m});break}return E}async function ZF(t){let{queryObject:e,chartConfig:r,abortKey:a,abortSignal:i,currentSelectionDataItems:n,dataForFilterBySelectionChanged:s,runtimeDataFilters:o,ignoreViewExtent:l,filterBySelection:d,selectionData:c,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:f,chartLimits:p,popupTemplateFieldInfosEnabled:h,hideZeroCountCategories:y,replaceNoValueCategoryWithZero:m,view:g,syncViewTimeZone:v,errorStrings:S,fieldList:w,preFetchedQueryResponse:T}=t,I={valid:!0},E=Jp({queryObject:e,chartConfig:r,runtimeDataFilters:o,ignoreViewExtent:l,viewExtent:g?.extent});return N0(a),I=await vw({chartConfig:r,queryObject:e,queryConfig:E,currentSelectionDataItems:n,dataForFilterBySelectionChanged:s,filterBySelection:d,selectionData:c,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:f,chartLimits:p,popupTemplateFieldInfosEnabled:h,hideZeroCountCategories:y,replaceNoValueCategoryWithZero:m,view:g,syncViewTimeZone:v,abortKey:a,abortSignal:i,errorStrings:S,fieldList:w,preFetchedQueryResponse:T}),I.queryConfig=E,I}function Sw(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 ww(t){let{seriesData:e,chartConfig:r,queryConfig:a,queryObject:i,categoryOrDateCount:n,behaviorAfterLimit:s,errorStrings:o,abortKey:l,abortSignal:d}=t,{series:c}=r,u=e,f=X(c),p=_t(r);if(s!==Er.RenderUpToTheLimit&&n!==void 0&&n>e.length&&f!==C.BarAndLineFromFields&&f!==C.BarAndLineNoAggregation&&f!==C.PieNoAggregation&&p===b.CategoryAxisFormat){let{x:h}=c[0],y={...a,returnDistinctValues:!0,outFields:[h]};delete y.outStatistics,delete y.orderByFields,delete y.groupByFieldsForStatistics;let m=(await Dt({queryObject:i,queryConfig:y,featureCount:n,errorStrings:o,abortKey:l,abortSignal:d})).map(g=>g.attributes[h]).filter(g=>g!=null);m.length>e.length&&(u=Sw(m,e,h))}return u}function xw(t,e){let r=t,{series:a}=e;if(_t(e)===b.CategoryAxisFormat&&a[0].query?.outStatistics?.[0].statisticType===W.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 rf=[C.BarAndLineMonoField,C.BarAndLineMultiFields,C.PieNoAggregation,C.PieFromCategory,C.BoxPlotMonoFieldAndCategory,C.BoxPlotMultiFieldsAndCategory,C.BoxPlotMonoFieldAndCategoryAndSplitBy],Cw=8e3;function af(t,e){let r=t;return e===Q.Week?r/=7:e===Q.Month?r/=30:e===Q.Year&&(r/=365),r=Math.ceil(r),r}function Pr(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 Q.Second:return ie.fromMillis(e).plus({seconds:n}).valueOf();case Q.Minute:return ie.fromMillis(e).plus({minutes:n}).valueOf();case Q.Hour:return ie.fromMillis(e).plus({hours:n}).valueOf();case Q.Week:case Q.Day:return ie.fromMillis(e).plus({days:n}).valueOf();case Q.Month:return ie.fromMillis(e).plus({months:n}).valueOf();case Q.Year:return ie.fromMillis(e).plus({years:n}).valueOf()}}return e}function Tw(t){let{binFirstOrLastIndex:e,data:r,x:a,timeIntervalInfo:i}=t,{unit:n,size:s}=i,o=n===Q.Week?(s??1)*7:s,l=r[e][a],d=e,c=Pr({date:l,unit:n,size:o,nextOrPrevious:"next"}),u=r[d][a];for(;d+1<r.length&&u<c;)d+=1,u=r[d]?.[a];let f=d+1>=r.length,p=d;f&&r[p]!==void 0&&(p+=1);let h=f?Pr({date:l,unit:n,size:o,nextOrPrevious:"next"}):r[d][a];return{binStartDate:l,binEndDate:h,last:f,nextBinFirstOrLastIndex:d,sliceStartIndex:e,sliceEndIndex:p}}function Fw(t){let{binFirstOrLastIndex:e,data:r,x:a,timeIntervalInfo:i}=t,{unit:n,size:s}=i,o=n===Q.Week?(s??1)*7:s,l=r[e][a],d=e,c=Pr({date:l,unit:n,size:o,nextOrPrevious:"previous"}),u=r[d][a];for(;d-1>=0&&u>c;)d-=1,u=r[d]?.[a];let f=d-1<=0,p=e;return f&&r[p]!==void 0&&(p-=1),f&&(d=0),{binStartDate:f?Pr({date:l,unit:n,size:o,nextOrPrevious:"previous"}):r[d][a],binEndDate:l,nextBinFirstOrLastIndex:d,sliceStartIndex:d,sliceEndIndex:p,last:f}}function Iw(t){let{binsToRegroup:e,statisticType:r,y:a,nullPolicy:i}=t,n;i!==nt.Interpolate&&(n=i===nt.Zero?0:null);let s=e.filter(o=>Number.isFinite(o[a]));if(s.length>0)switch(r){case W.Count:case W.Sum:n=Y0(s,o=>o[a]);break;case W.Minimum:n=na(s,o=>o[a]).min;break;case W.Maximum:n=na(s,o=>o[a]).max;break;case W.Average:n=J0(s,o=>o[a]);break;case W.ContinuousPercentile:}return n}function Ow(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:c}=d,u,f;if(Vt(d)&&(f=d.temporalBinning?.nullPolicy,u=d.temporalBinning?.timeAggregationType),l>1||o===Q.Week||o===Q.Month||o===Q.Year){let{query:p}=r[0],h=it(r),{statisticType:y}=p?.outStatistics?.[0]??ma,m=!1,g=u===qe.End?e.length-1:0,v={binFirstOrLastIndex:g,data:e,x:c,timeIntervalInfo:a};for(;!m;){let S={},{binStartDate:w,binEndDate:T,last:I,nextBinFirstOrLastIndex:E,sliceStartIndex:P,sliceEndIndex:O}=u===qe.End?Fw(v):Tw(v);if(m=I,S=u===qe.End?S=e[O-1]:S=e[g],T>n&&w<n||w<i&&T>i||w>=i&&T<=n){let N=e.slice(P,O).filter(B=>!(L.dateBinModel in B));h.forEach(B=>{S[B]=Iw({binsToRegroup:N,statisticType:y,y:B,nullPolicy:f})});let R=N.map(B=>B[Ir]).filter(B=>B!==void 0),D=Ev(R);D!==void 0&&(S[Ir]=D),S[c]=w,S[L.xAxisField]=w,S[L.dateBinningRange]=[w,T],delete S[L.dateBinModel],s.push(S)}else I&&u!==qe.End&&s.length>0&&(s[s.length-1][L.dateBinningRange][1]=s[s.length-1][L.dateBinningRange][1]+1);g=E,v.binFirstOrLastIndex=E}u===qe.End&&(s=s.reverse())}else l===1?s=e.map((p,h)=>{let y=p[c],m=e[h+1]?.[c];return m=typeof m=="number"?m-1:Pr({date:y,unit:o,size:l,nextOrPrevious:"next"}),{...p,[L.dateBinningRange]:[y,m]}}):s=e;return s}function nf(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=ie.fromMillis(e),c=ie.fromMillis(r);switch(n){case Q.Second:l=c.diff(d,"seconds").get("seconds");break;case Q.Minute:l=c.diff(d,"minutes").get("minutes");break;case Q.Hour:l=c.diff(d,"hours").get("hours");break;case Q.Day:case Q.Month:case Q.Year:l=c.diff(d,"days").get("days");break;case Q.Week:l=c.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 sf(t){let e=t[0].temporalBinning?.nullPolicy;return t.reduce((r,a)=>{r[L.dateBinModel]=void 0;let i=a.query?.outStatistics?.[0].outStatisticFieldName??[a.y].flat()[0];return e!==nt.Interpolate&&(r[i]=e===nt.Zero?0:null),r},{})}function Aw(t){let{dateMaxTimestamp:e,numberOfFinalBinsWithinDataRange:r,numberOfSingleBinsWithinDataRange:a,data:i,seriesConfig:n,timeIntervalInfo:s}=t,{size:o,unit:l}=s,{x:d}=n[0],c=n[0].temporalBinning?.timeAggregationType,u=i[0][d],f=e;if(o!==void 0&&Number.isFinite(o)&&a/r!==o){let p=Math.ceil(a/r)*r-a;l===Q.Week&&(p*=7);let h=sf(n);if(c===qe.End){let y=i[0][d];for(let m=0;m<p;m+=1)y=Pr({date:y,unit:l,size:1,nextOrPrevious:"previous"}),i.push({...h,[d]:y,[L.xAxisField]:y});p>0&&(u=i[i.length-1][d])}else{let y=i[i.length-1][d];for(let m=0;m<p;m+=1)y=Pr({date:y,unit:l,size:1,nextOrPrevious:"next"}),i.push({...h,[d]:y,[L.xAxisField]:y});f=i[i.length-1][d]}}return{newDateMin:u,newDateMax:f}}function Pw(t){let{numberOfSingleBinsWithinDataRange:e,dataLength:r,unit:a}=t;return af(r,a)>=e}async function Ew(t){let{queryObject:e,queryConfig:r,x:a,errorStrings:i,abortSignal:n}=t,s=`MIN_${a}`,o=`MAX_${a}`,l=`COUNT_${a}`,d={...r,outStatistics:[{statisticType:W.Minimum,onStatisticField:a,outStatisticFieldName:s},{statisticType:W.Maximum,onStatisticField:a,outStatisticFieldName:o},{statisticType:W.Count,onStatisticField:a,outStatisticFieldName:l}]};delete d.groupByFieldsForStatistics,delete d.orderByFields;let c=await la({queryObject:e,queryConfig:d,errorStrings:i,abortSignal:n}),u=c.get(s),f=c.get(o),p=c.get(l);return typeof u=="string"&&(u=new Date(u).valueOf()),typeof f=="string"&&(f=new Date(f).valueOf()),{dateRange:{dateMinTimestamp:u,dateMaxTimestamp:f},numberOfFeatures:p}}function Lw(t){let{newDateMin:e,newDateMax:r,seriesConfig:a,data:i,numberOfSingleBinsWithinDataRange:n,initialNumberOfBins:s,timeIntervalInfo:o}=t,{unit:l}=o,d=i;if(!Pw({numberOfSingleBinsWithinDataRange:n,dataLength:s,unit:l})){let{x:c}=a[0],u=a[0].temporalBinning?.timeAggregationType,f=sf(a),p=u===qe.End?r:e,h=u===qe.End?i.length-1:0;for(;h<i.length&&(u===qe.End&&p>e||u!==qe.End&&p<r);)p!==i[h][c]?d.push({...f,[c]:p,[L.xAxisField]:p}):h=u===qe.End?h-1:h+1,p=Pr({date:p,unit:l===Q.Month||l===Q.Year?Q.Day:l,size:1,nextOrPrevious:u===qe.End?"previous":"next"})}return d}function Nw(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]?.[L.dateBinningRange]?.[0],l=e[e.length-1]?.[L.dateBinningRange]?.[1];if(s===qe.End?o<a:l>i)if(s===qe.End){let d=o;for(;d<a&&e.length>0;)e.shift(),e.length>0&&(d=e[0][L.dateBinningRange]?.[0])}else{let d=l;for(;d>i&&e.length>0;)e.pop(),e.length>0&&(d=e[e.length-1][L.dateBinningRange]?.[1])}}return n}function Dw(t){let{groupByFieldsForStatistics:e,dateField:r,queryStartDate:a,queryEndDate:i,y:n,binIndex:s,lastBin:o}=t,l=e===""?Kr.groupByCaseBegin:e;return l=ke(zx,{groupByFieldsForStatistics:l,dateField:r,startDate:`${a}`,endDate:`${i}`,y:[n].flat()[0],binIndex:`${s}`,endDateOperand:o?"<=":"<"}),l}function*Bw(t){let{queryObject:e,seriesConfig:r,queryConfig:a,completeData:i,errorStrings:n,abortSignal:s}=t;for(let o=0;o<r.length;o+=1){let l=r[o],{query:d,x:c,y:u}=l,f=[{onStatisticField:d?.outStatistics?.[0]?.onStatisticField??"",outStatisticFieldName:W.ContinuousPercentile,statisticType:W.ContinuousPercentile,statisticParameters:{value:.5}}],p=Kr.groupByCaseBegin;for(let y=0;y<i.length;y+=1){let m=i[y],[g,v]=m[L.dateBinningRange],S=Oi(g),w=Oi(v);p=Dw({groupByFieldsForStatistics:p,queryStartDate:S,queryEndDate:w,dateField:c,y:[u].flat()[0],binIndex:y,lastBin:y===i.length-1})}p=`${p} ${Kr.groupByCaseEnd}`;let h={...a,groupByFieldsForStatistics:[p],outStatistics:f,orderByFields:void 0};yield Dt({queryObject:e,queryConfig:h,noBatch:!0,errorStrings:n,abortSignal:s})}}async function $w(t){let{queryObject:e,data:r,seriesConfig:a,queryConfig:i,errorStrings:n,abortSignal:s}=t,o=r,{statisticType:l}=a[0].query?.outStatistics?.[0]??ma;if(l===W.ContinuousPercentile&&o.length>0){let d=Bw({queryObject:e,completeData:o,seriesConfig:a,queryConfig:i,errorStrings:n,abortSignal:s}),c=(await Promise.all(d)).flat();if(c.length>0){let{isInItem:u,expr:f}=Cn(c[0].attributes);u&&c.forEach(p=>{let h=p.attributes[`${f}`];if(h!==void 0){let[y,m]=h.split("|");if(m!==void 0){let g=p.attributes[W.ContinuousPercentile];o[m][`${y}`]=g}}})}}return o}function tp(t){let{dataItem:e,nullPolicy:r,statField:a}=t;if(a&&e[a]==null)switch(!0){case r===nt.Zero:e[a]=0;break;case r===nt.Null:e[a]=null;break;case r===nt.Interpolate:delete e[a];break}}function Mw(t){let{chartConfig:e,queryResults:r,mapToStatField:a,splitByField:i,x:n,y:s,nullPolicy:o,queryObject:l}=t,d=kp(n),c=xt(l).find(y=>y.name===n)?.type,u=[],f=e.series[0],p="temporalBinning"in f?f.temporalBinning?.trimIncompleteTimeInterval:!1,h="temporalBinning"in f?f.temporalBinning?.timeAggregationType:!1;return r.forEach((y,m)=>{if(!(p&&(m===0&&h===qe.End||m===r.length-1&&h===qe.Start))){let{attributes:g,stackedAttributes:v}=y,S=g[d.lowerBoundaryAlias],w=g[d.upperBoundaryAlias],T=S,I=w,E=(P,O)=>{let N=P;if(O===me.DateOnly&&(typeof P=="string"&&P.length===10||typeof P=="number"))if(typeof P=="string"){let R=P.split("-");R.length===3&&(N=ie.local(Number(R[0]),Number(R[1]),Number(R[2])).valueOf())}else N=new Date(P),N=new Date(N.valueOf()+N.getTimezoneOffset()*6e4),N=ie.local(N.getFullYear(),N.getMonth()+1,N.getDate()).valueOf();else typeof P=="string"&&["+","-"].forEach(R=>{R&&P.lastIndexOf(R)===P.length-6&&(N=new Date(P.slice(0,P.lastIndexOf(R))).valueOf())});return N};if(S=E(S,c),w=E(w,c),typeof S=="number"&&typeof w=="number"){let P={...g};P[L.originalServerBinningRange]=[T,I],P[n]=S,P[L.xAxisField]=S,P[L.dateBinningRange]=[S,w],delete P[d.lowerBoundaryAlias],delete P[d.upperBoundaryAlias],v&&i&&!ze(i)&&a?v.forEach(R=>{let D=R[i];if(D===null||typeof D=="string"||typeof D=="number"){let B=a?.get(D);B!==void 0&&(P[B]=R[de.outStatistics?.outStatisticFieldName??""],tp({dataItem:P,statField:B,nullPolicy:o}))}}):typeof s=="string"&&tp({dataItem:P,statField:s,nullPolicy:o});let{featureExtent:O,featureExtentKey:N}=of({feature:y,splitByField:i});O&&(P[N]=O),u.push(P)}}}),u}async function qw(t){let{queryObject:e,queryResults:r,x:a,queryConfig:i,seriesConfig:n,dateRange:s,timeIntervalInfo:o,errorStrings:l,abortSignal:d}=t,c=r,{dateMinTimestamp:u,dateMaxTimestamp:f}=s;if(u&&f){let p=r.length;if(ia({arrayToSort:c,sortingField:a}),p>1){let{numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:y}=nf({dateMinTimestamp:u,dateMaxTimestamp:f,timeIntervalInfo:o}),{newDateMin:m,newDateMax:g}=Aw({dateMaxTimestamp:f,data:c,numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:y,seriesConfig:n,timeIntervalInfo:o});c=Lw({newDateMin:m,newDateMax:g,seriesConfig:n,data:c,initialNumberOfBins:p,numberOfSingleBinsWithinDataRange:y,timeIntervalInfo:o}),ia({arrayToSort:c,sortingField:a}),c=Ow({data:c,seriesConfig:n,dateMinTimestamp:u,dateMaxTimestamp:f,timeIntervalInfo:o}),c=Nw({data:c,seriesConfig:n,dateMinTimestamp:u,dateMaxTimestamp:f}),e&&(c=await $w({queryObject:e,data:c,seriesConfig:n,queryConfig:i,errorStrings:l,abortSignal:d}))}}return c}function Rw(t){return Math.floor(Math.min(Math.max(8,Math.sqrt(t??8)),128)+.5)}function kw(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=Rw(r),l=(s-n)/o,d=sp.findIndex(g=>g.threshold>l),c=sp[d],{unitMs:u,preferredIntervalSize:f}=c;({unit:a}=c);let p=l/u,h=f.findIndex(g=>g>=p),y=f[h],m=h===0?f[0]:f[h-1];i=y-p<p-m?y:m}return{size:i,unit:a}}function Ww(t){let{series:e,isTimeBinningSeries:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(Vt(e)&&r){let{unit:n,size:s}=e.temporalBinning??{};i=!Js(n,s)&&a===!0}return i}function jw(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 ie.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 of(t){let{feature:e,splitByField:r,chartSubType:a}=t,i;if(e.aggregateGeometries&&"Extent"in e.aggregateGeometries)i=e.aggregateGeometries.Extent;else{let o=e.aggregateGeometries??e.geometry;o?.extent&&(i=o.extent)}let n=i?.toJSON(),s=Ir;return n!==void 0&&r!==void 0&&a!==void 0&&a===C.BarAndLineSplitBy&&(s=e.attributes[r]!==void 0?`${Ir}_${e.attributes[r]}`:Ir),{featureExtent:n,featureExtentKey:s}}function Vw(t){let{input:e,x:r,splitByField:a}=t;return e.reduce((i,n)=>(a!==void 0&&a!==r&&!(L.technicalFieldSplitByField in n)&&delete n[a],Object.assign(i,n)),{})}function sa(t){let{data:e,x:r,splitByField:a}=t,i=e;if(e!==void 0&&e.length>0){let n=new Map;for(let s of e){let o=s[r],l=n.get(o)??[];l.push(s),n.set(o,l)}n.size>0&&(i=Array.from(n.values(),s=>Vw({input:s,x:r,splitByField:a})))}return i}function _w(t,e){let r=t,a=K(e);if(a!==b.PieSeries&&a!==b.BoxPlotSeries){let i=it(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[L.technicalSortingFieldBySum]=o,Number.isFinite(o)&&o>0){let l=s[n];if(Number.isFinite(l)){let d=l/o;s[L.technicalSortingFieldByPercent]=d}}})}return r}function zw(t,e){let r=e,a=it(t),i=a.length===1;return a.forEach(n=>{let s=Ti(i?void 0:n),o=r[s[Z.FirstQuartile]],l=r[s[Z.ThirdQuartile]];Number.isFinite(o)&&Number.isFinite(l)&&l>=o&&(r[s[Z.IQR]]=l-o)}),r}function Uw(t,e){let r=e.series[0],a=t;if(r.type===b.HeatSeries){let{x:i,y:n}=r;a[te.xField]=a[i]?.toString(),delete a[i],a[te.yField]=a[n]?.toString(),delete a[n];let s=r.query?.outStatistics?.[0]?.outStatisticFieldName;s&&(a[te.valueField]=a[s],delete a[s])}return a}function go(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 Hw(t,e){let r=[];de.outStatistics.outStatisticFieldName&&Object.keys(t).includes(de.outStatistics.outStatisticFieldName)?r=[de.outStatistics.outStatisticFieldName]:r=Array.from(new Set(e.flatMap(a=>a.query?.outStatistics?.map(i=>i.outStatisticFieldName)))),go(t,r)}function Gw(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 Zw(t){let{dataItem:e,splitByField:r,y:a,fieldOID:i}=t;if(e!==void 0&&!ze(r)&&!ze(a)){let n=e[r],s=`${a}_${n?.toString()}`;e[s]=e[a],i&&a!==i&&delete e[a]}}function Qw(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 Kw(t,e){let r=1;switch(t){case C.BarAndLineFromFields:case C.PieFromFields:r=e.series[0].query?.outStatistics?.length??1;break;case C.BoxPlotMultiFields:case C.BoxPlotMultiFieldsAndSplitBy:r=e.series[0].y.length;break;case C.BarAndLineNoAggregation:case C.BoxPlotMonoField:case C.BoxPlotMonoFieldAndCategory:case C.BoxPlotMultiFieldsAndCategory:case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:case C.PieFromCategory:case C.BarAndLineSplitByNoAggregation:case C.PieNoAggregation:case C.BarAndLineSplitBy:case C.BarAndLineMonoField:case C.BarAndLineMultiFields:case C.NonSpecific:}return r}function Jw(t){let{attributes:e,showMean:r,chartSubType:a}=t;r&&(a===C.BoxPlotMonoFieldAndSplitBy||a===C.BoxPlotMultiFieldsAndSplitBy||a===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&(e[L.boxPlot.boxPlotMeanLineMarkerId]=!0)}function Yw(t){let{queryResponse:e,chartConfig:r,maxCategoryCount:a}=t,i=X(r.series);return a&&Number.isFinite(a)&&a<e.length&&rf.includes(i)?e.slice(0,a):e}function Xw(t){let{attributes:e,uniqueCategoryList:r,maxCategoryCount:a,x:i,chartSubType:n}=t,s=!1;if(i&&a&&Number.isFinite(a)&&!rf.includes(n))if((n===C.BarAndLineFromFields||n===C.PieFromFields)&&Object.keys(e).length>a)Object.keys(e).filter(o=>o!==W.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 ex(t){let{attributes:e,xValue:r,yValue:a,x:i,y:n,xFieldDomain:s,yFieldDomain:o,chartType:l,chartSubType:d,xAxisValueFormat:c,yAxisValueFormat:u}=t,f,p;d!==C.PieFromFields&&(s&&(typeof r=="string"||typeof r=="number")&&(f=ao(r,s)),o&&l===b.HeatSeries&&typeof n=="string"&&(typeof a=="string"||typeof a=="number")&&(p=ao(a,o)),f!==void 0&&f!==r&&(typeof f!="string"||!et(c))&&(e[L.originalCategoryValue]=e[i],e[i]=f),typeof n=="string"&&!et(u)&&p!==void 0&&p!==a&&(e[L.originalYCategoryValue]=e[n],e[n]=p))}function tx(t){let e,[r,a,i]=t.split(":");return Number.isFinite(Number(r))&&Number.isFinite(Number(a))&&Number.isFinite(Number(i))&&(e=new Date(2e3,0,1,Number(r),Number(a),Number(i)).valueOf()),e}function lf(t){let{queryObject:e,queryResponse:r,chartConfig:a,mapToStatField:i,splitByField:n,isTimeBinningSeries:s,resultLimit:o,showMean:l,chartLimits:d,fieldList:c}=t,{series:u}=a,f=X(u),p=K(u),{x:h}=u[0],y="y"in u[0]?u[0].y:void 0,m=u[0].query?.outStatistics??[],g=ir(a?.axes?.[0]?.valueFormat),{originalYCategoryValue:v,originalCategoryValue:S,originalDateValue:w}=L,T=io(e,h),I=typeof y=="string"?io(e,y):void 0,E=OS(c??[]).includes(h),P=[],O=0,N=new Set,{maxCategoryCount:R}=Xr(d),D=Yw({queryResponse:r,chartConfig:a,maxCategoryCount:R});for(let B=0;D[B]&&B<D.length&&!(o!==void 0&&O>=o);B+=1){O+=Kw(f,a);let k=D[B],$={...k.attributes};if(Xw({attributes:$,uniqueCategoryList:N,maxCategoryCount:R,x:h,chartSubType:f}))continue;if(Hw($,u),f===C.PieFromFields||f===C.BarAndLineFromFields)$=Gw($,m);else if(typeof y=="string"&&f===C.BarAndLineSplitByNoAggregation){let re=se(e),{idField:fe,isTraditionalTypeOID:Ie}=zt(re);Zw({dataItem:$,splitByField:n,y,fieldOID:Ie?fe:void 0})}else y&&(f===C.BoxPlotMonoField||f===C.BoxPlotMonoFieldAndCategory||f===C.BoxPlotMonoFieldAndSplitBy||f===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&Qw($,typeof y=="string"?y:y[0]);Jw({attributes:$,showMean:l,chartSubType:f});let j=$[h],U=typeof y=="string"?$[y]:void 0;j===null&&u[0]?.query?.fetchNullValues===!0&&f!==C.PieFromFields&&($[S]=null,j=L.nullValue),g||(E&&typeof j=="string"?j=new Date(j).valueOf():s&&(j=jw($))),typeof j=="string"&&c?.find(re=>re.name===h)?.type===me.TimeOnly&&($[S]=j,j=tx(j));let{outStatisticFieldName:G}=de.outStatistics??{},{featureExtent:V,featureExtentKey:z}=of({feature:k,splitByField:n,chartSubType:f});if(V&&($[z]=V),f===C.BarAndLineSplitBy&&G!==void 0){let re=$[n],fe=i?.get(re);fe!==void 0&&(re===n&&($[L.technicalFieldSplitByField]=$[fe]),$[fe]=$[G]),delete $[G]}else(f===C.PieNoAggregation||f===C.BarAndLineNoAggregation||f===C.BarAndLineSplitByNoAggregation)&&(E?$[w]=j:j!==L.nullValue&&($[S]=j),Ob({isXAxis:!0,chartType:p,valueFormat:a.axes?.[0]?.valueFormat})&&($[L.xAxisField]=`${j}-${B}`),$[de.uniqueIdsName]=k.getObjectId());p===b.BoxPlotSeries&&($=zw(u,$)),p===b.PieSeries&&typeof j=="number"&&($[S]===void 0&&($[S]=$[h]),j=`${j}`),j!==void 0&&($[S]===void 0&&($[S]=$[h]),$[h]===null?$[h]=p===b.HeatSeries?"null":L.nullValue:$[h]=j,ex({attributes:$,xValue:j,yValue:U,x:h,y,xFieldDomain:T,yFieldDomain:I,chartType:p,chartSubType:f,xAxisValueFormat:a.axes?.[0].valueFormat,yAxisValueFormat:a.axes?.[1]?.valueFormat}),p===b.HeatSeries&&typeof y=="string"&&$[y]===null&&($[y]="null",$[v]=null),$[L.xAxisField]===void 0&&($[L.xAxisField]=$[h])),$=Uw($,a),P.push($)}return P}async function On(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,mapToStatField:i,abortKey:n,abortSignal:s,elementCount:o,isTimeBinningSeries:l,showMean:d,chartLimits:c,popupTemplateFieldInfosEnabled:u,preFetchedQueryResponse:f,errorStrings:p}=t,{series:h}=a,y=X(h),m=[],g=y===C.BarAndLineSplitBy||y===C.BarAndLineSplitByNoAggregation?Qe(h[0].query?.where):"",v=f??await Dt({queryObject:e,queryConfig:r,featureCount:o,abortKey:n,errorStrings:p,abortSignal:s}),S=xt(e,u),{x:w}=h[0];return m=lf({queryObject:e,queryResponse:v,chartConfig:a,mapToStatField:i,splitByField:g,isTimeBinningSeries:l,fieldList:S,resultLimit:r.num,showMean:d,chartLimits:c}),y!==C.BarAndLineSplitByNoAggregation&&y!==C.BarAndLineFromFields&&(g!==""&&(m=sa({data:m,x:w,splitByField:g})),m=_w(m,h)),m}async function df(t){let{chartConfig:e,queryObject:r,queryConfig:a,numberMaxOfFeaturesToFetch:i,behaviorAfterLimit:n,isGaugeByFeature:s,abortSignal:o}=t,{series:l}=e,d=X(l),{x:c}=l[0],u=l.length,f,p;if(d===C.BoxPlotMonoField||d===C.BoxPlotMonoFieldAndSplitBy?(p=u,f=p):d===C.BoxPlotMultiFields||d===C.BoxPlotMultiFieldsAndSplitBy?(p=e.series[0].y.length,f=p):d===C.PieFromFields||d===C.BarAndLineFromFields?(p=l[0].query?.outStatistics?.filter(h=>h.statisticType!==W.EnvelopeAggregate).length??0,f=p):f=await E0({queryObject:r,x:c,chartSubType:d,queryConfig:a,isGaugeByFeature:s,abortSignal:o}),f!==void 0){let h=d===C.BoxPlotMonoField||d===C.BoxPlotMonoFieldAndCategory||d===C.BoxPlotMonoFieldAndSplitBy;p=Ys(d)&&!h?f*u:f}return n===Er.RenderUpToTheLimit&&p!==void 0&&i!==void 0&&i<p&&(p=i,f=Math.ceil(p/u)),{categoryOrDateCount:f,elementCount:p}}async function no(t){let{chartConfig:e,queryConfig:r,fetchFullBoxPlotData:a,queryObject:i,abortKey:n,fieldList:s,preFetchedQueryResponse:o,errorStrings:l,abortSignal:d,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:u,chartLimits:f,popupTemplateFieldInfosEnabled:p,hideZeroCountCategories:h}=t,y=Ii(e),m=t.replaceNoValueCategoryWithZero??L.options.replaceNoValueCategoryWithZero,g=!(h??!m),{behaviorAfterLimit:v}=f??{},S,w={valid:!0},T,I=!1,E=e.series,P=E[0],O=X(e.series);if(Ke(i))S=K(E)===b.BarSeries?await hS(t):w;else{if(P!==void 0){let N=K(E),{uniqueQuery:R,mapToStatField:D}=fo({chartConfig:e,queryObject:i,queryConfig:r,fetchFullBoxPlotData:a,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:u,chartLimits:f}),{categoryOrDateCount:B,elementCount:k}=await df({chartConfig:e,queryObject:i,queryConfig:r,behaviorAfterLimit:v,numberMaxOfFeaturesToFetch:R.num,abortSignal:d}),$=!Number.isFinite(k),j=$||ar({count:k??0,seriesCount:E.length,chartType:N,chartLimits:f});if(j&&(T=await On({queryObject:i,uniqueQuery:R,chartConfig:e,preFetchedQueryResponse:o,mapToStatField:D,elementCount:k,isTimeBinningSeries:!1,showMean:y,chartLimits:f,popupTemplateFieldInfosEnabled:p,errorStrings:l,abortKey:n,abortSignal:d}),rt(e)&&T!==void 0&&(w.data=await o0({data:T,queryObject:i,fetchFullBoxPlotData:a,uniqueQuery:R,chartConfig:e,elementCount:k,chartLimits:f,errorStrings:l,abortKey:n,abortSignal:d}),f?.maxBoxPlotOutlierLimit!==void 0&&(j=(w.data.outliers??[]).length<=f.maxBoxPlotOutlierLimit,I=!j)),$&&(B=T.length,k=Ys(O)?B*E.length:B,j=ar({count:k,seriesCount:E.length,chartType:N,chartLimits:f})),j)){if(N===b.PieSeries){O===C.PieFromFields&&(T=mn({dataToConvert:T[0],x:ot,y:jt,fieldList:s}));let U="";O===C.PieFromFields?U=jt:"y"in P&&typeof P.y=="string"&&(U=P.y),qv(T,U)?w.data={dataItems:T}:Zv(w,ae.PieChartMixOfNegativePositiveSlices)}else if((N===b.RadarSeries||N===b.BarSeries||N===b.LineSeries||N===b.ComboLineAndBarSeries)&&(O===C.BarAndLineFromFields&&"y"in P&&typeof P.y=="string"?T=mn({dataToConvert:T[0],x:P.x,y:P.y,fieldList:s}):T=await ww({queryObject:i,seriesData:T,chartConfig:e,queryConfig:r,categoryOrDateCount:B,behaviorAfterLimit:v,errorStrings:l,abortKey:n,abortSignal:d}),k=Ys(O)?T.length*E.length:T.length,j=ar({count:k,seriesCount:E.length,chartType:N,chartLimits:f}),j)){g&&(T=xw(T,e));let U={};if(Vt(P)){let{size:G,unit:V}=P.temporalBinning??{};G!==void 0&&V!==void 0&&(U={size:G,unit:V})}w.data={dataItems:T,timeIntervalInfo:U}}}j||yn({dataInfo:w,chartType:N,subError:{outlierLimit:I}}),w.count=k}S=w}return S}function rx(t){let e,{start:r,end:a}=ho({field:"",unit:t,addIntervalStatement:!1});return a&&(e=Array.from({length:a+(r===0?1:0)},(i,n)=>(n+(r??1)).toString())),e}function ix(t){return t.hideEmptyRowsAndColumns===!0&&(t.nullPolicy!==nt.Zero||t.series[0].query?.outStatistics?.[0].statisticType===W.Count)}function ax(t){let{dataItems:e,valueField:r,filterOutZero:a}=t,i=[null];a&&i.push(0);let n=new Set(e.filter(o=>!i.includes(o[r])).map(o=>o[te.xField])),s=new Set(e.filter(o=>!i.includes(o[r])).map(o=>o[te.yField]));return e.filter(o=>n.has(o[te.xField])&&s.has(o[te.yField]))}function nx(t){let{dataItems:e,xUniqueValues:r,yUniqueValues:a,valueField:i,emptyCellValue:n,x:s,y:o,queryObject:l}=t,d=[],c=new Set;for(let u of e){let f=u[L.originalCategoryValue]!==void 0?u[L.originalCategoryValue]:u[te.xField],p=u[L.originalYCategoryValue]!==void 0?u[L.originalYCategoryValue]:u[te.yField];c.add(`${f}|${p}`)}for(let u of r){let f=String(u);for(let p of a){let h=String(p);if(!c.has(`${f}|${h}`)){let y=l?Zu({queryObject:l,fieldName:s,fieldValue:f})??u:u,m=l?Zu({queryObject:l,fieldName:o,fieldValue:h})??p:p;d.push({[L.originalCategoryValue]:u===null?null:u,[L.originalYCategoryValue]:p===null?null:p,[te.xField]:u===null?"null":y,[te.yField]:p===null?"null":m,[i]:n})}}}return d}function rp(t){let{day:e,month:r,includeLeapDay:a}=t;return r===2&&e>(a?29:28)||[4,6,9,11].includes(r)&&e>30}async function cf(t){let{chartConfig:e,queryConfig:r,queryObject:a,completeHeatChartDataset:i=!0,errorStrings:n,returnFeaturesExtent:s,chartLimits:o,popupTemplateFieldInfosEnabled:l,view:d,syncViewTimeZone:c,abortKey:u,abortSignal:f}=t,p={valid:!0},h;if(Qr(e)){let{nullPolicy:y}=e,m=e.series[0],{x:g,y:v,query:S,xTemporalBinning:w,yTemporalBinning:T}=m,I=S?.outStatistics?.[0]?.outStatisticFieldName??"",E=S?.outStatistics?.[0]?.statisticType??W.Count,P=ix(e),O=te.valueField,N=y===nt.Zero?0:null;if(Op(e)){let R=await A0({chartConfig:e,queryObject:a,queryConfig:r,returnFeaturesExtent:s,errorStrings:n,abortKey:u,abortSignal:f});if(!ar({count:R?.length??0,seriesCount:1,chartType:b.HeatSeries,chartLimits:o}))yn({dataInfo:p,chartType:b.HeatSeries});else if(typeof R?.[0]=="object"){let D=xt(a,l);h=lf({queryObject:a,queryResponse:R,chartConfig:e,splitByField:"",isTimeBinningSeries:!1,chartLimits:o,resultLimit:r.num,fieldList:D});let B=await Qs({queryObject:a,queryConfig:r,category:g,errorStrings:n,abortKey:u,abortSignal:f}),k=await Qs({queryObject:a,queryConfig:r,category:v,errorStrings:n,abortKey:u,abortSignal:f});h.length!==B?.length*k?.length&&(h=[...h,...nx({dataItems:h,xUniqueValues:B,yUniqueValues:k,valueField:O,emptyCellValue:N,x:g,y:v,queryObject:a})],P&&(h=ax({dataItems:h,valueField:O,filterOutZero:E===W.Count})))}}else{let R=await O0({chartConfig:e,queryObject:a,queryConfig:r,view:d,syncViewTimeZone:c,errorStrings:n,abortSignal:f}),D=T?rx(T.unit):await Qs({queryObject:a,queryConfig:r,category:v,errorStrings:n,abortKey:u,abortSignal:f}),B=0;h=R?.features.flatMap(k=>{let $=[],{attributes:j,stackedAttributes:U}=k,G=[];if(U?.forEach(V=>{let z=`${V[v]}`;G.push(z),$.push({[te.xField]:`${j[de.heatChartLowerBoundaryAlias]}`,[te.yField]:z,[O]:V[I]})}),i&&D&&G.length!==D?.length){let V=D.filter(z=>!G.includes(z.toString()));P&&(V.length!==D.length||G.length===0)||V.forEach(z=>{Number.isFinite(Number(j[de.heatChartLowerBoundaryAlias]))&&Number.isFinite(Number(z))&&(w?.unit===bt.DayOfMonth&&T?.unit===bt.MonthOfYear&&rp({day:Number(j[de.heatChartLowerBoundaryAlias]),month:Number(z),includeLeapDay:e.includeLeapDay})||T?.unit===bt.DayOfMonth&&w?.unit===bt.MonthOfYear&&rp({day:Number(z),month:Number(j[de.heatChartLowerBoundaryAlias]),includeLeapDay:e.includeLeapDay}))||$.push({[te.xField]:`${j[de.heatChartLowerBoundaryAlias]}`,[te.yField]:z,[O]:y===nt.Zero?0:null})})}return B+=$.length,$}),ar({count:B,seriesCount:1,chartType:b.HeatSeries,chartLimits:o})||yn({dataInfo:p,chartType:b.HeatSeries})}}return h&&(p.data={dataItems:h}),p}function sx(t){let{chartConfig:e,data:r,chartLimits:a}=t,i=e.series,n=r,s=Cp(e,a);if(s!==void 0){let o=it(i);if(o.length===1)n=r.filter(l=>Number.isFinite(l[o[0]])).slice(0,s);else if(r.length*o.length>s){let l=[],d=0,c=0;for(;d<=s&&c<r.length;){let u=r[c];if(l.push(u),d+=o.filter(f=>Number.isFinite(u[f])).length,d>s){let f=d-s,p=o.length-1;for(;f!==0&&p>=0;){let h=o[p];Number.isFinite(u[h])&&(delete u[h],f-=1),p-=1}}c+=1}n=l}}return n}async function bo(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,abortSignal:n,preFetchedQueryResponse:s,errorStrings:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:d,chartLimits:c,popupTemplateFieldInfosEnabled:u,view:f,syncViewTimeZone:p}=t,{behaviorAfterLimit:h}=c??{},y=e.series,m=y[0],{x:g}=m,v=Qe(m.query?.where),S={valid:!0},w;if(Vt(m)){let{temporalBinning:T}=m;if(a&&T){let{unit:I,size:E}=T,P=1,O={unit:I,size:E},N=!1,R=Ww({series:m,isTimeBinningSeries:!0,setTimeBinningInfoWhenNotProvided:l}),D=!Pi(v,a)||R?await Ew({queryObject:a,queryConfig:r,x:g,errorStrings:o,abortSignal:n}):void 0;R&&D&&D.numberOfFeatures>0&&D.dateRange.dateMaxTimestamp!==void 0&&D.dateRange.dateMinTimestamp!==void 0&&(O=kw(D),xt(a).find(j=>j.name===g)?.type===me.DateOnly&&O.unit!==void 0&&[Q.Hour,Q.Minute,Q.Second].includes(O.unit)&&(O.unit=Q.Day,O.size=1),T.size=O.size,T.unit=O.unit);let{uniqueQuery:B,mapToStatField:k}=fo({chartConfig:e,queryConfig:r,queryObject:a,timeIntervalInfo:O,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:d,chartLimits:c}),$=ar({count:P??0,seriesCount:y.length,chartType:b.LineSeries,chartLimits:c});if($){if(Pi(v,a)){let j=e.axes?.[0].valueFormat.type===b.DateAxisFormat?e.axes[0].valueFormat.intlOptions.timeZone:void 0,U=s?.[0]instanceof eb?s:await D0({queryObject:a,dateField:g,splitByField:v,queryConfig:B,axisTimeZone:j,temporalBinning:T,errorStrings:o,view:f,syncViewTimeZone:p,abortSignal:n}),G="y"in m&&typeof m.y=="string"?m.y:void 0;if(w=Mw({chartConfig:e,queryResults:U,mapToStatField:k,splitByField:v,x:g,y:G,nullPolicy:T.nullPolicy,queryObject:a}),!ar({count:w.length,seriesCount:y.length,chartType:b.LineSeries,chartLimits:c})){let V=it(y),z=w.filter(re=>V.some(fe=>fe in re&&Number.isFinite(re[fe]))).length;ar({count:z,seriesCount:y.length,chartType:b.LineSeries,chartLimits:c})||($=!1)}}else if(D?.dateRange.dateMinTimestamp&&D.dateRange.dateMaxTimestamp){let{numberOfFinalBinsWithinDataRange:j}=nf({dateMinTimestamp:D.dateRange.dateMinTimestamp,dateMaxTimestamp:D.dateRange.dateMaxTimestamp,timeIntervalInfo:O});P=j*y.length,P=af(P,O.unit),w=await On({queryObject:a,uniqueQuery:B,chartConfig:e,mapToStatField:k,elementCount:P,chartLimits:c,isTimeBinningSeries:!0,popupTemplateFieldInfosEnabled:u,errorStrings:o,abortKey:i,abortSignal:n}),w=await qw({queryObject:a,queryConfig:r,queryResults:w,x:g,seriesConfig:y,dateRange:D.dateRange,timeIntervalInfo:O,errorStrings:o,abortSignal:n})}Bp(a)&&w&&w?.length===Cw&&(N=!0),h===Er.RenderUpToTheLimit&&w&&(w=sx({chartConfig:e,chartLimits:c,data:w}))}$||(S.valid=!1,S.invalidType=ae.LineChartExceedsLimit),w&&w.length>0&&(w[w.length-1][L.lastTemporalBin]=!0),S.data={dataItems:w,timeIntervalInfo:O,serverLimitReached:N},S.count=P}}return S}async function ox(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,setTimeBinningInfoWhenNotProvided:n,returnFeaturesExtent:s,chartLimits:o,popupTemplateFieldInfosEnabled:l,errorStrings:d}=t,c=Ii(e),u={valid:!0},f=e.series,p=ur({seriesConfig:f[0],xAxisValueFormatType:_t(e),setTimeBinningInfoWhenNotProvided:n,queryObject:a}),{uniqueQuery:h,mapToStatField:y}=fo({chartConfig:e,queryObject:a,queryConfig:r,setTimeBinningInfoWhenNotProvided:n,fetchFullBoxPlotData:!c,returnFeaturesExtent:s,chartLimits:o}),m=await On({queryObject:a,uniqueQuery:h,elementCount:1,chartConfig:e,mapToStatField:y,isTimeBinningSeries:p,showMean:c,chartLimits:o,popupTemplateFieldInfosEnabled:l,errorStrings:d,abortKey:i});return rt(e)&&(m=Pp({chartConfig:e,data:m,calculateZScore:!1})),u.data={dataItems:m},u}async function lx(t){let{chartConfig:e,queryConfig:r,queryObject:a,setTimeBinningInfoWhenNotProvided:i,returnFeaturesExtent:n,chartLimits:s,popupTemplateFieldInfosEnabled:o,hideZeroCountCategories:l,replaceNoValueCategoryWithZero:d,view:c,abortKey:u,errorStrings:f}=t,p={valid:!0};if(rt(e)){let h=rt(e)?e.showMean:!1;p=await yo({queryObject:a,chartConfig:e,queryConfig:r,setTimeBinningInfoWhenNotProvided:i,returnFeaturesExtent:n,chartLimits:s,popupTemplateFieldInfosEnabled:o,hideZeroCountCategories:l,replaceNoValueCategoryWithZero:d,view:c,errorStrings:f,abortKey:u}),h&&p.data&&"dataItems"in p.data&&"meanLines"in p.data&&p.data.meanLines&&(p.data.dataItems=[...p.data.dataItems,...p.data.meanLines])}return p}var dx="{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";async function cx(t){let{chartConfig:e,queryObject:r,queryConfig:a,errorStrings:i,abortKey:n,abortSignal:s}=t,o=e.series[0],{x:l,y:d}=o,{dataContextCountDistinctX:c,dataContextCountDistinctY:u}=L.scatterplotAggregationFields,f={...a,outStatistics:[{statisticType:W.Count,outStatisticFieldName:c,onStatisticField:l},{statisticType:W.Count,outStatisticFieldName:u,onStatisticField:d}],returnDistinctValues:!0};return await la({queryObject:r,queryConfig:f,errorStrings:i,abortKey:n,abortSignal:s})}async function ux(t){let{statsMap:e,chartConfig:r,queryObject:a,chartLimits:i,queryConfig:n,errorStrings:s,abortKey:o,abortSignal:l}=t,{dataContextXMinField:d,dataContextXMaxField:c,dataContextYMinField:u,dataContextYMaxField:f,dataContextCountDistinctX:p,dataContextCountDistinctY:h}=L.scatterplotAggregationFields,y,m,g,v,S,w=e.get(d),T=e.get(c),I=e.get(u),E=e.get(f);if(w!=null&&I!==void 0&&I!==null&&T!==void 0&&T!==null&&E!==void 0&&E!==null&&!Number.isNaN(w+T+I+E)){let{maxScatterPointsAfterAggregation:P}=Xr(i),O=Math.floor(Math.sqrt(P)),N=await cx({queryObject:a,chartConfig:r,queryConfig:n,errorStrings:s,abortKey:o,abortSignal:l});g=Math.min(N.get(h)??Number.NaN,O),v=Math.min(N.get(p)??Number.NaN,O),S=v*g,y=T===w?0:(T-w)/(v-1),m=E===I?0:(E-I)/(g-1),e.set(L.scatterplotAggregationFields.xStep,y),e.set(L.scatterplotAggregationFields.yStep,m),e.set(L.scatterplotAggregationFields.rowCount,g),e.set(L.scatterplotAggregationFields.columnCount,v),e.set(L.scatterplotAggregationFields.realGridSize,S)}}function px(t){let{groupByFieldsForStatistics:e,x:r,y:a,xValue:i,yValue:n,xStep:s,yStep:o,endOfRow:l,endOfColumn:d}=t,c=e===""?Kr.groupByCaseBegin:e;return c=ke(dx,{groupByFieldsForStatistics:c,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?"=":"<"}),c}async function fx(t){let{chartConfig:e,queryConfig:r,queryObject:a,xMin:i,xMax:n,yMin:s,yMax:o,errorStrings:l,abortKey:d,abortSignal:c}=t,u=e.series[0],{x:f,y:p}=u,h={...r};return h.where=Pe([h.where,`${f}>=${i}`,`${f}<=${n}`]),f!==p&&(h.where=Pe([h.where,`${p}>=${s}`,`${p}<=${o}`])),await Dt({queryObject:a,queryConfig:h,noBatch:!0,featureCount:1,errorStrings:l,abortKey:d,abortSignal:c})}async function hx(t){let{statsMap:e,chartConfig:r,queryObject:a,queryConfig:i,useQueryAttributeBins:n,errorStrings:s,abortKey:o,abortSignal:l}=t,d=r.series[0],{x:c,y:u}=d,{dataContextXMinField:f,dataContextXMaxField:p,dataContextYMinField:h,dataContextYMaxField:y,queryNumberOfFeatures:m,queryNumberOfAggregatedFeatures:g}=L.scatterplotAggregationFields,v,S=e?.get(f)??Number.NaN,w=e?.get(p)??Number.NaN,T=e?.get(m)??Number.NaN,I=e?.get(h)??S,E=e?.get(y)??w;if(S!=null&&I!==void 0&&I!==null&&w!==void 0&&w!==null&&E!==void 0&&E!==null&&!Number.isNaN(S+w+I+E)){let P=se(a),{idField:O,isTraditionalTypeOID:N}=zt(P),R=N?O:"*",D=e?.get(L.scatterplotAggregationFields.xStep),B=e?.get(L.scatterplotAggregationFields.yStep),k=e?.get(L.scatterplotAggregationFields.realGridSize),$=e?.get(L.scatterplotAggregationFields.rowCount),j=e?.get(L.scatterplotAggregationFields.columnCount),U=new Map,G=xt(a);if(G?.forEach(V=>{Ei(V)&&U.set(V.name,{onStatisticField:V.name,outStatisticFieldName:V.name,statisticType:W.Maximum})}),(G.filter(V=>d?.additionalTooltipFields?.includes(V.name))??[])?.forEach(V=>{Ei(V)||U.set(V.name,{onStatisticField:V.name,outStatisticFieldName:V.name,statisticType:W.Maximum})}),(await Kp(P)).forEach(V=>{U.set(V,{onStatisticField:V,outStatisticFieldName:V,statisticType:W.Maximum})}),O!==""&&U.set(O,{onStatisticField:R,outStatisticFieldName:g,statisticType:W.Count}),U.set(c,{onStatisticField:c,outStatisticFieldName:c,statisticType:W.Maximum}).set(u,{onStatisticField:u,outStatisticFieldName:u,statisticType:W.Maximum}),D!==void 0&&B!==void 0){if(n){let V={...i,outStatistics:[...U.values()]};v=await P0({queryObject:a,queryConfig:V,xStep:D,xMin:S,xMax:w,x:c,y:u,yStep:B,errorStrings:s,abortSignal:l})}else if($!==void 0&&j!==void 0){let V=0,{maxScatterCellsPerQuery:z,maxScatterCellsPerQueryForStandard:re}=xn(),fe=await PS(P,l)?re:z,Ie=[],oe=!0,we=S,Fe=I,Me="",ut=1,pt=1,Oe=Number.MAX_SAFE_INTEGER,xe=Number.MIN_SAFE_INTEGER,Ct=Number.MAX_SAFE_INTEGER,We=Number.MIN_SAFE_INTEGER;for(;pt<=j&&oe;){for(Fe=I,ut=1;ut<=$&&oe;){if(Me=px({groupByFieldsForStatistics:Me,x:c,y:u,xValue:we,yValue:Fe,xStep:D,yStep:B,endOfRow:ut===$,endOfColumn:pt===j}),we<Oe&&(Oe=we),we+D>xe&&(xe=we+D),Fe<Ct&&(Ct=Fe),Fe+D>We&&(We=Fe+B),V+=1,V%fe===0||V===k||V===T){Me=`${Me} ${Kr.groupByCaseEnd}`;let ue={...i,groupByFieldsForStatistics:[Me],outStatistics:[...U.values()]};Ie.push(fx({chartConfig:r,queryConfig:ue,queryObject:a,xMin:Oe,xMax:xe,yMin:Ct,yMax:We,errorStrings:s,abortKey:o,abortSignal:l})),Oe=Number.MAX_SAFE_INTEGER,xe=Number.MIN_SAFE_INTEGER,Ct=Number.MAX_SAFE_INTEGER,We=Number.MIN_SAFE_INTEGER,Me="",V===k&&(oe=!1)}Fe+=B,ut+=1}we+=D,pt+=1}v=(await Promise.all(Ie)).flat()}}}return v}async function mx(t){let{chartConfig:e,queryConfig:r,queryObject:a,errorStrings:i,abortKey:n,abortSignal:s}=t,o=e.series[0],{x:l,y:d}=o,c=new Map,{dataContextXMinField:u,dataContextXMaxField:f,dataContextYMinField:p,dataContextYMaxField:h,queryNumberOfFeatures:y}=L.scatterplotAggregationFields,{idField:m,isTraditionalTypeOID:g}=zt(se(a)),v=g?m:"*",S=[{statisticType:W.Count,onStatisticField:v,outStatisticFieldName:y},{statisticType:W.Minimum,outStatisticFieldName:u,onStatisticField:l},{statisticType:W.Maximum,outStatisticFieldName:f,onStatisticField:l}];l!==d&&S.push({statisticType:W.Minimum,outStatisticFieldName:p,onStatisticField:d},{statisticType:W.Maximum,outStatisticFieldName:h,onStatisticField:d});let w={...r};return w.outStatistics=S,c=await la({queryObject:a,queryConfig:w,errorStrings:i,abortKey:n,abortSignal:s}),l===d&&(c.set(p,c.get(u)??Number.NaN),c.set(h,c.get(f)??Number.NaN)),c}function dn(t){let{value:e,valueMin:r,valueMax:a}=t;return e===r||e===a?e:Math.random()*(a-r)+r}function yx(t){let{useQueryAttributeBins:e,graphic:r,x:a,y:i,yStep:n}=t,{groupByOutKeyword:s}=Kr,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:c}=L.scatterplotAggregationFields,u=[];if(e&&"stackedAttributes"in r&&r.stackedAttributes){let f=qp(a,i),p=r.attributes[f.lowerBoundaryAlias],h=r.attributes[f.upperBoundaryAlias];r.stackedAttributes.forEach(y=>{let m=y[f.stackAlias],g;typeof m=="number"&&typeof n=="number"&&(m*=n),typeof m=="number"&&typeof n=="number"&&(g=m+n);let v=y[a],S=y[i];typeof m=="number"&&typeof g=="number"&&typeof v=="number"&&typeof S=="number"&&u.push({...y,[a]:dn({value:v,valueMin:p,valueMax:h}),[i]:dn({value:S,valueMin:m,valueMax:g}),[o]:Math.min(p,h),[l]:Math.max(p,h),[d]:m,[c]:g})})}else{let{expr:f,isInItem:p}=Cn(r.attributes);if(p&&f&&r.attributes[f]!==s){let[h,y,m,g]=r.attributes[f].split("|");h=Math.min(h,y),y=Math.max(h,y),m=Math.min(m,g),g=Math.max(m,g);let v={...r.attributes,[o]:h,[l]:y,[d]:m,[c]:g};v[a]=dn({value:v[a],valueMin:h,valueMax:y}),v[i]=dn({value:v[i],valueMin:m,valueMax:g}),u=[v]}}return u}function gx(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(c=>{let u=[{...c.attributes}];return go(u[0],[o,l]),a?u=yx({useQueryAttributeBins:n,graphic:c,x:o,y:l,yStep:i}):u[0][de.uniqueIdsName]=c.getObjectId(),u});return d=d?.filter(c=>{let{expr:u}=Cn(c);return Number.isFinite(c[o])&&Number.isFinite(c[l])&&(u===void 0||c[u]!==Kr.groupByOutKeyword)}),d??[]}async function bx(t){let{queryObject:e,queryConfig:r,chartConfig:a,featureCount:i,errorStrings:n,abortKey:s,abortSignal:o}=t,l=a.series[0],{x:d,y:c}=l,u=se(e),f=[],p=xt(e),h=Fn(u).idFields,y=(p?.filter(w=>Ei(w)&&w.name!==d&&w.name!==c)??[]).map(w=>w.name)??[],m=l?.additionalTooltipFields??[],g=Array.from(new Set([d,c,...h??[],...y,...m])),v=ct(u);if(v&&!v.isTable){let{rendererField:w,rendererNormalizationField:T}=FS(u?.renderer??void 0);ze(w)||g.push(w),ze(T)||g.push(T)}let S={...r,orderByFields:[`${d} ${Be.Ascending}`],outFields:g};return f=await Dt({queryObject:e,queryConfig:S,featureCount:i,errorStrings:n,abortKey:s,abortSignal:o}),f}async function vx(t){let e,{chartConfig:r,queryConfig:a,queryObject:i,statsMap:n,numberOfFeatures:s,isAggregationMode:o,useQueryAttributeBins:l,errorStrings:d,abortKey:c,abortSignal:u}=t,f=r.series[0],{x:p,y:h}=f;if(!Number.isNaN(s)&&s>0){let y={...a};y.where=Pe([y.where,`${p} IS NOT NULL`,`${h} IS NOT NULL`]),o?e=await hx({chartConfig:r,queryObject:i,queryConfig:y,statsMap:n,useQueryAttributeBins:l,errorStrings:d,abortKey:c,abortSignal:u}):e=await bx({queryObject:i,chartConfig:r,queryConfig:y,featureCount:s,errorStrings:d,abortKey:c,abortSignal:u})}return e}async function uf(t){let{chartConfig:e,queryConfig:r,queryObject:a,sortData:i,calculateTrendLine:n,chartLimits:s,errorStrings:o,abortKey:l,abortSignal:d}=t,c;if(Ke(a))c=await lS(t);else{let u=await mx({chartConfig:e,queryConfig:r,queryObject:a,errorStrings:o,abortKey:l,abortSignal:d}),{queryNumberOfFeatures:f,yStep:p}=L.scatterplotAggregationFields,{maxScatterPointsBeforeAggregation:h}=Xr(s),y=u?.get(f)??Number.NaN,m=y>=h,g=C0(a);m&&await ux({statsMap:u,chartConfig:e,queryObject:a,chartLimits:s,queryConfig:r,errorStrings:o,abortKey:l,abortSignal:d});let v=await vx({...t,queryObject:a,statsMap:u,numberOfFeatures:y,isAggregationMode:m,useQueryAttributeBins:g}),S=gx({chartConfig:e,rawData:v,isAggregationMode:m,yStep:u.get(p),useQueryAttributeBins:g});i!==!1&&ia({arrayToSort:S,sortingField:e.series[0].x,orderBy:Be.Ascending});let{r2:w,trendLinePoints:T}=n!==!1?await _p({data:S,statsMap:u,queryConfig:r,queryObject:a,chartConfig:e,errorStrings:o,abortSignal:d}):L.scatterplotSeries;c={dataItems:S,r2:w,trendLinePoints:T,aggregated:m}}return c}function Ti(t){let e=t===void 0||t==="";return{[Z.Average]:`${e?"":`${t}_`}${Z.Average}`,[Z.Min]:`${e?"":`${t}_`}${Z.Min}`,[Z.Max]:`${e?"":`${t}_`}${Z.Max}`,[Z.FirstQuartile]:`${e?"":`${t}_`}${Z.FirstQuartile}`,[Z.Median]:`${e?"":`${t}_`}${Z.Median}`,[Z.ThirdQuartile]:`${e?"":`${t}_`}${Z.ThirdQuartile}`,[Z.IQR]:`${e?"":`${t}_`}${Z.IQR}`,[Z.Outlier]:`${e?"":`${t}_`}${Z.Outlier}`,[Z.StandardDeviation]:`${e?"":`${t}_`}${Z.StandardDeviation}`}}function vo(t){return"subType"in t&&t.subType===qo.FeatureGauge}function So(t){let e;return t!==void 0&&("bins"in t?e=t.bins:"dataItems"in t&&(e=t.dataItems)),e}function pf(t){return t===C.BoxPlotMultiFields||t===C.BoxPlotMultiFieldsAndCategory||t===C.BoxPlotMultiFieldsAndSplitBy}function Ue(t){let{key:e,y:r,chartSubType:a,splitBy:i,splitByValue:n,showOutliers:s,standardizeValues:o}=t,l=n,d=Ti(r)[e];return s===!0&&(e===Z.Min||e===Z.Max)&&(d=`${d}${dv}`),o===!0&&(pf(a)||e===Z.Outlier)&&(d=`${d}${cv}`),(n===void 0||`${n}`.trim()==="")&&(l=dt({where:i,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(d=`${l}${d!==""?`_${d}`:""}`),d}function Zs(t){let{dataItem:e,y:r,splitBy:a,showOutliers:i}=t,n=Ue({key:Z.FirstQuartile,y:r,splitBy:a,showOutliers:i}),s=Ue({key:Z.ThirdQuartile,y:r,splitBy:a,showOutliers:i});return Number.isFinite(e[n])||Number.isFinite(e[s])}function Sx(t){let{configSeries:e,boxPlotDataItem:r,yList:a,showOutliers:i}=t,n=X(e),s=!1;switch(n){case C.BoxPlotMonoField:case C.BoxPlotMultiFields:case C.BoxPlotMonoFieldAndCategory:s=Zs({dataItem:r,showOutliers:i});break;case C.BoxPlotMultiFieldsAndCategory:s=a.some(o=>Zs({dataItem:r,y:o,showOutliers:i}));break;case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:s=e.some(o=>Zs({dataItem:r,splitBy:o.query?.where,showOutliers:i}));break;default:s=!1;break}return s}function ff(t){return t.map(e=>e.id).filter(e=>e!==void 0)}function it(t,e){let r=[],a=e??ff(t),i=X(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===C.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 An(t){let{seriesConfig:e,filteredSeriesIds:r,showMean:a}=t,i=[];if(a===!0){let n=e.find(s=>s.type===b.BoxPlotSeries);n!==void 0&&"y"in n&&(i=[n.y].flat())}else i=it(e,r);return i}function Fr(t,e){return t===null&&e===!0||Number.isFinite(t)}function wx(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]))&&Fr(e[a],i)}function QF(t){let{chartConfig:e,nullAsValid:r=!1,dataSet:a}=t,i=!0;if(e!==void 0){let n=K(e.series);if(a===void 0||a.length===0)i=!0;else{let s=it(e.series);i=!a.some(o=>{let l=!1;switch(n){case b.HistogramSeries:{let d=o;l=Fr(d.minValue,r)&&Fr(d.maxValue,r)}break;case b.ScatterSeries:{let d=o,{x:c,y:u}=e.series[0];l=Fr(d[c],r)&&Fr(d[u],r)}break;case b.ComboLineAndBarSeries:case b.RadarSeries:case b.LineSeries:case b.BarSeries:{let d=o,{x:c}=e.series[0];l=s.some(u=>wx({dataItem:d,x:c,y:u,nullAsValid:r}));break}case b.BoxPlotSeries:{if(rt(e)){let d=e.series;l=Sx({configSeries:d,boxPlotDataItem:o,yList:s,showOutliers:e.showOutliers})}break}case b.PieSeries:{let d=o,{x:c,y:u}=e.series[0];X(e.series)===C.PieFromFields&&(c=ot,u=jt);let f=d[u];l=d[c]!==void 0&&d[c]!==null&&!Bo(f)&&Fr(Number(f),r)}break;case b.GaugeSeries:{let{x:d}=e.series[0];l=Fr(o[d],r)}break;case b.HeatSeries:l=a.some(d=>Fr(d[te.valueField],r));break}return l})}}return i}function xx(t,e){let r=new Map,a=e??ff(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 Cx(t){let{seriesConfig:e,filteredSeriesIds:r,filteredData:a}=t,i=xx(e,r),n=e.find(d=>d.type===b.LineSeries||d.type===b.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,l=!1;return a.forEach(d=>{i.forEach(c=>{if(n){let u=0,f=0,p=!1,h=!1;for(let y=0;y<c.length;y+=1){let m=d[c[y]];Number.isFinite(m)&&(m<0?(f+=m,h=!0,l=!0):(u+=m,p=!0))}s=p?Math.max(s,u):s,o=h?Math.min(o,f):o,p&&!h&&(o=Math.min(o,u)),!p&&h&&(s=Math.max(s,f)),p&&u<=0&&(l=!0)}else{let u=0;for(let f=0;f<c.length;f+=1){let p=d[c[f]];u+=p,s=Math.max(s,u),o=Math.min(o,u)}(s<=0||o<=0)&&(l=!0)}})}),{stackedMinY:o,stackedMaxY:s,dataHasNegativeValues:l}}function Tx(t){let{dataItem:e,...r}=t,a=Ue({key:Z.Min,...r}),i=Ue({key:Z.Max,...r}),n=e[a],s=e[i];return{min:n,max:s}}function ip(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],c=K(n.series);if(c===b.HistogramSeries&&s.length>0){let u=s[0]?.[ju.Start],f=s[s.length-1]?.[ju.End];a=typeof u=="number"?u:a,i=typeof f=="number"?f:i}else{let u=s.filter(f=>f[d]!==null);if({min:a,max:i}=na(u,f=>f[d]),n.axes?.[0]?.valueFormat.type===b.DateAxisFormat&&a!==void 0&&i!==void 0&&([a,i]=[new Date(a).valueOf(),new Date(i).valueOf()]),c===b.BoxPlotSeries){e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;let f=it(l,o),p=X(l),h="standardizeValues"in n?n.standardizeValues===!0:void 0,y=n.series.map(m=>m.visible!==!1?dt({where:m.query?.where}):"");y.length===0&&y.push(" "),u.forEach(m=>{f.forEach(g=>{let v=p===C.BoxPlotMultiFieldsAndCategory?g:void 0;y.forEach(S=>{let{min:w,max:T}=Tx({y:v,splitByValue:S,chartSubType:p,showOutliers:!1,standardizeValues:h,dataItem:m});w!=null&&w<e&&(e=w),T!=null&&T>r&&(r=T)})})})}else switch(co(n)){case gt.Stacked100:case gt.Stacked:{let{stackedMinY:f,stackedMaxY:p}=Cx({seriesConfig:l,filteredData:u,filteredSeriesIds:o});e=f,r=p;break}case gt.Side:default:{e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,it(l,o).forEach(f=>{let{min:p,max:h}=na(u,y=>y[f]);p!==void 0&&p<e&&(e=p),h!==void 0&&h>r&&(r=h)});break}}}}return{minY:e,maxY:r,minX:a,maxX:i}}function Fx(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}function Ix(t){let e=!1;if(t){let r=t.axes?.[0],a=r?.isLogarithmic===!0,i=r?.valueFormat?.type;e=(i===b.NumberAxisFormat||i===b.DateAxisFormat)&&a}return e}function ap(t,e){let r=!1;return Number.isFinite(t)&&t!==Number.MAX_SAFE_INTEGER&&Number.isFinite(e)&&e!==Number.MIN_SAFE_INTEGER&&(r=t<=0||e<=0),r}function Ox(t){let{chartConfig:e,chartData:r,axisConfigIndex:a}=t,i=!1;if(a===0){if(Ix(e)){let{minX:n,maxX:s}=ip({chartConfig:e,chartData:r});i=ap(n,s)}}else{let n=Fx({chartConfig:e,isSecondValueAxis:a===2}),{minY:s,maxY:o}=ip({chartConfig:e,chartData:r,filteredSeriesIds:n});i=ap(s,o)}return i}function KF(t){let{chartConfig:e,axisConfigIndex:r,chartData:a}=t,i=!0,n=e?.axes?.[r];return e&&a&&n?.isLogarithmic===!0&&(i=!Ox({chartConfig:e,chartData:a,axisConfigIndex:r})),i}function Ax(t,e){let r=t;if(e?.[0]!==void 0&&X(e)===C.PieFromFields){let{x:a,y:i}=e[0];(ha(t)?r:r.dataItems).forEach(n=>(ot in n&&a!==ot&&(n[a]=n[a]!==void 0?n[a]:n[ot],delete n[ot]),jt in n&&i!==jt&&(n[i]=n[i]!==void 0?n[i]:n[jt],delete n[jt]),n))}return r}function Px(t,e){let r=K(e),a=t,i=e?.[0];if((r===b.PieSeries||r===b.BoxPlotSeries||r===b.LineSeries||r===b.RadarSeries||r===b.BarSeries||r===b.HeatSeries||r===b.ComboLineAndBarSeries)&&i!==void 0){let n=ha(t),s=n?t:t.dataItems;if(t!==void 0){let{originalCategoryValue:o,originalYCategoryValue:l,originalDateValue:d,xAxisField:c}=L,u=r===b.HeatSeries?te.xField:i.x,f=r===b.HeatSeries?te.yField:void 0;s=s.map(p=>{let h=p[u];p[d]!==void 0?h=p[d]:p[o]!==void 0&&(h=p[o]);let y={...p,[u]:h};if(delete y[d],delete y[o],delete y[c],f){let m=p[f];p[l]!==void 0&&(m=p[l]),y={...y,[f]:m},delete y[l]}return y}),n?a=s:"dataItems"in a&&(a.dataItems=s)}}return a}function np(t){let e={...t};delete e[L.technicalSortingFieldBySum],delete e[L.technicalSortingFieldByPercent],delete e[L.pieChart.technicalFieldSlicePercent],delete e[L.pieChart.technicalFieldGroupedSlices],delete e[L.lastTemporalBin],delete e[L.originalServerBinningRange],delete e[L.technicalFieldSplitByField],delete e[de.uniqueIdsName],Object.keys(e).filter(a=>a.includes(L.rendererSymbolField)).forEach(a=>delete e[a]);let r=Cn(e);return r.isInItem&&delete e[r.expr??""],e}function Ex(t,e){let r=t,a=K(e),i=So(r);if(i!==void 0)switch(a){case b.ComboLineAndBarSeries:case b.BarSeries:case b.LineSeries:case b.RadarSeries:case b.PieSeries:{i=i.map(np),r={dataItems:i};let{timeIntervalInfo:n,serverLimitReached:s}=t??{};Bn(n)||(r.timeIntervalInfo=n),s!==void 0&&(r.serverLimitReached=s)}break;case b.ScatterSeries:r={...r,dataItems:i.map(np)};break}return r}var JF=(t,e)=>{let r=10**e;return Math.round(t*r)/r};function YF(t){let{data:e,seriesConfig:r}=t,a=Rr(e);return a!==void 0&&(a=Px(a,r),a=Ex(a,r),a=Ax(a,r)),a}function Lx(t){let{dataFetchingResults:e,numberOfQueries:r,series:a}=t,i=K(a),n=X(a),s=[],o=new Map;for(let l=0;l<r;l+=1){let d=e[l];if(d!==void 0){let c;if(i===b.ScatterSeries)c=d.dataItems;else if("data"in d&&d.data){let u=d.data;"dataItems"in u&&(c=u.dataItems),"outliers"in u&&u.outliers&&s.push(...u.outliers),"meanLines"in u&&u.meanLines&&s.push(...u.meanLines)}if(c)if(a[0].type===b.HeatSeries)r>0&&c.forEach(u=>{o.set(`${u[te.xField]}-${u[te.yField]}`,u)});else if(a[0].type===b.ScatterSeries){let{x:u,y:f}=a[0];s.push(...c.map(p=>({[u]:p[u],[f]:p[f]})))}else d.valid&&(n===C.PieFromFields?s=mn({dataToConvert:c[0],x:ot,y:jt}):n===C.BarAndLineFromFields?s=mn({dataToConvert:c[0],x:a[0].x,y:a[0].y}):s.push(...c))}}return o.size>0&&(s=Array.from(o.values())),s}async function Nx(t){let{numberOfQueries:e,selectionOIDs:r,chartConfig:a,queryConfig:i,errorStrings:n,queryObject:s,splitByField:o,replaceNoValueCategoryWithZero:l,hideZeroCountCategories:d,chartLimits:c,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:f,popupTemplateFieldInfosEnabled:p,view:h}=t,{series:y}=a,m=K(y),g=[],{maxOIDsPerSelectionQuery:v}=xn();for(let S=0;S<e;S+=1){let w=S*v,T=(S+1)*v-1,I=r.slice(w===0?0:w-1,T),E={...i};switch(E.objectIds=I,m){case b.HeatSeries:g.push(cf({completeHeatChartDataset:!1,chartConfig:a,queryConfig:E,queryObject:s,errorStrings:n,chartLimits:c,returnFeaturesExtent:f,popupTemplateFieldInfosEnabled:p,view:h}));break;case b.PieSeries:case b.BarSeries:case b.LineSeries:case b.RadarSeries:case b.ComboLineAndBarSeries:if(ur({xAxisValueFormatType:_t(a),setTimeBinningInfoWhenNotProvided:u,seriesConfig:y[0],queryObject:s})){let P=a;"temporalBinning"in P.series[0]&&P.series[0].temporalBinning&&(P.series[0].temporalBinning.trimIncompleteTimeInterval=!1,Pi(o,s)&&(delete P.series[0].temporalBinning.start,delete P.series[0].temporalBinning.end)),g.push(bo({chartConfig:P,queryConfig:E,queryObject:s,chartLimits:c,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:f,popupTemplateFieldInfosEnabled:p,view:h,errorStrings:n}))}else g.push(ox({queryObject:s,chartConfig:a,chartLimits:c,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:f,popupTemplateFieldInfosEnabled:p,errorStrings:n,queryConfig:E}));break;case b.BoxPlotSeries:g.push(lx({queryObject:s,chartConfig:a,replaceNoValueCategoryWithZero:l,hideZeroCountCategories:d,chartLimits:c,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:f,popupTemplateFieldInfosEnabled:p,view:h,errorStrings:n,queryConfig:E}));break;case b.ScatterSeries:g.push(uf({queryObject:s,chartConfig:a,queryConfig:E,replaceNoValueCategoryWithZero:l,hideZeroCountCategories:d,chartLimits:c,setTimeBinningInfoWhenNotProvided:u,returnFeaturesExtent:f,popupTemplateFieldInfosEnabled:p,view:h,errorStrings:n,sortData:!1,calculateTrendLine:!1}));break;case b.HistogramSeries:g.push(Rb({queryObject:s,queryConfig:E,chartConfig:a,x:y[0].x,errorStrings:n}));break}}return await Promise.all(g)}async function XF(t){let{chartConfig:e,chartData:r,dataWasUpdated:a,replaceNoValueCategoryWithZero:i,hideZeroCountCategories:n,queryObject:s,errorStrings:o,selectionIDsChanged:l,chartLimits:d,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:u,popupTemplateFieldInfosEnabled:f,view:p,viewExtentUpdated:h,runtimeDataFilters:y,ignoreViewExtent:m,returnSelectionOIDs:g,selectionData:v}=t,{series:S}=e,{selectionItems:w,selectionOIDs:T}=v??{},I,E=K(S),P=E!==b.HistogramSeries&&E!==b.HeatSeries&&w!==void 0&&w.length>0&&!(S[0].x in w[0])&&!(ot in w[0])&&!(L.boxPlot.boxPlotCategory in w[0]);if(h!==!0&&g!==!1&&T!==void 0&&T.length>0&&(a===!0||P||l)){let O=So(r),N=Jp({queryObject:s,chartConfig:e,runtimeDataFilters:y,ignoreViewExtent:m,viewExtent:p?.extent});if(O!==void 0&&!$v({dataContext:O[0],chartConfig:e,chartLimits:d}))I=O.filter(R=>{let D=R[de.uniqueIdsName];return typeof D=="number"||typeof D=="string"?T?.includes(D):!1});else if(T?.[0]!==void 0&&N!==void 0){let{maxOIDsPerSelectionQuery:R}=xn(),D=Math.ceil(T.length/R),B=Qe(e.series[0]?.query?.where),k=await Nx({numberOfQueries:D,selectionOIDs:T,queryConfig:N,queryObject:s,replaceNoValueCategoryWithZero:i,hideZeroCountCategories:n,chartLimits:d,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:u,popupTemplateFieldInfosEnabled:f,view:p,splitByField:B,errorStrings:o,chartConfig:e});I=Lx({dataFetchingResults:k,numberOfQueries:D,series:S})}}return I}var xi={$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,description:"Represents the color information (R, G, B, A).",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 such as `25%` for a value relative to the label's container width."},yoffset:{type:["number","string"],description:"Vertical offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value relative to the label's container height."},angle:{type:"number",description:"Rotation angle 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",description:"Only applicable when specified as a client-side graphic."}},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",description:"Only applicable when specified as a client-side graphic."}},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:"A unique string identifier for the `ChartText` object. This value is `chartText`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling information and text content."}},required:["type","content"],description:"Stores information 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 information 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"],deprecated:"since 5.1. Won't be replaced.",title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information 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:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: circles",default:!1}},required:["type"],description:"JSON representation of the chart's legend.",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 information 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:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information 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:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: 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` and `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` and `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 value label displaying the slice value. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for pie charts",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:"A unique string identifier for the `ChartOverlay` object. This value 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 information 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 such as the trendline in scatterplot, and the median overlay in histogram.",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:"Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `number`. It can help to differentiate numerical (value) axis from other types of axes such as 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](https://cldr.unicode.org/translation/number-currency-formats/number-and-currency-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.",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 the `NumberFormatOptions` object, it is `date`. It can help to differentiate date-time axis from other types of axes such as 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](https://cldr.unicode.org/translation/date-time/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 the `CategoryFormatOptions` object, it is `category`. It can help to differentiate category axis from other types of axes such as 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."}},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 the `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, a line guide is used, otherwise a fill/rectangular guide is used."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the charts config 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 information 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 information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information 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.
5
-
6
- **Note**: This property is not applicable to gauge charts.`,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 information on how the needle should be rendered."},startWidth:{type:["number","null"],description:"Represents the needle's thickness at the bottom (chart's center) in pixels.",minimum:1,default:10},endWidth:{type:["number","null"],description:"Represents the needle's thickness at the top in pixels.",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"},WebChartGaugeFixedProgressBands:{type:"object",properties:{type:{type:"string",const:"fixed",description:"Represents a unique string identifier for the fixed progress bands object. For `WebChartGaugeFixedProgressBands` object, it is `fixed`."},visible:{type:"boolean",description:"Determines the visibility of the fixed progress bands on the gauge chart.",default:!0},bands:{type:"object",properties:{target:{$ref:"#/definitions/ISimpleFillSymbol"},base:{$ref:"#/definitions/ISimpleFillSymbol"}},description:"Contains styling information on how the fixed progress bands should be rendered."}},required:["type"],description:`JSON representation of the fixed progress bands for gauge chart, which is a specific type of guide for gauge charts. It defines the properties of the fixed progress bands and how they should be rendered on a gauge chart.
7
-
8
- The "target" band's start value is set to the axis minimum, end value is set to the gauge value, and the color is what defined in the bands config. Similarly, the "base" band's start value is set to the gauge value, end value is set to the axis maximum, and the color is what defined in the bands config.`,title:"WebChartGaugeFixedProgressBands"},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 information 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 information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information 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.
9
-
10
- **Note**: This property is not applicable to gauge charts.`,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:"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.\n\nWith 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.\n\nWhen `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:"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.\n\nWith 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.\n\nWhen `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."},progressBands:{$ref:"#/definitions/WebChartGaugeFixedProgressBands",description:`Defines how to render the two progress bands on a gauge chart.
11
-
12
- **note**: When progressBands are used (defined and visible), the axis guides will be ignored.`}},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."},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.\n\nIf `outStatisticFieldName` is empty or missing, the server will assign one. A valid field name can only contain alphanumeric characters and an underscore. If `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 information 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 information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information 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.
13
-
14
- **Note**: This property is not applicable to gauge charts.`,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,",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."},orderByFields:{type:"array",items:{type:"string"},description:"Represents the sorting order of the output result.\n\nIt's recommended to use the `orderByFields` property of the chart's `orderOptions` object instead of this one. If both are used, the `orderByFields` property of the chart's `orderOptions` object will take precedence.\n\nThe 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:{type:"string",enum:["contains","crosses","disjoint","envelope-intersects","index-intersects","intersects","overlaps","relation","touches","within"],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's query object.",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"}},deprecated:"since 5.1. Won't be replaced.",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"],title:"IPoint"},IHasZM:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"}},deprecated:"since 5.1. Won't be replaced.",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,deprecated:"since 5.1. Won't be replaced.",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"}],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",title:"IBezierCurve"},ICircularArc:{type:"object",properties:{c:{type:"array",minItems:2,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"}],maxItems:2}},required:["c"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:`since 5.1. Use core's Query["units"] instead.`,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.\n\n**Note**: The former `orderByFields` property is replaced by the `orderOptions` property of `WebChart`.",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,",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."},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:{type:"string",enum:["contains","crosses","disjoint","envelope-intersects","index-intersects","intersects","overlaps","relation","touches","within"],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.
15
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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.\n\nIncomplete 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.\n\n`true` - trim the incomplete intervals. `false` - does not trim the incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date.\n\nCurrent 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.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},type:{type:"string",const:"calendarDateParts",description:"Represents a unique string identifier for the `CalendarDatePartsBinning` object. `For CalendarDatePartsBinning` object, it is `calendarDateParts`."},unit:{$ref:"#/definitions/WebChartCalendarDatePartsUnits",description:"Represents the unit to use to bin the data."}},required:["type","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.\n\nIncomplete 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.\n\n`true` - trim the incomplete intervals. `false` - does not trim the incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date.\n\nCurrent 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.\n\nCurrent 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.\n\nDo not set this property along with the date axis `valueFormat.intlOptions.timeZone` to prevent the data to be shifted twice.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation.",deprecated:"since 5.1. Set the `timeZone` property on the date axis `valueFormat.intlOptions` instead."},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 US, `1` as Monday for France).\n\nCurrent 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.\n\nIncomplete 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.\n\n`true` - trim the incomplete intervals. `false` - does not trim the incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date.\n\nCurrent 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.\n\nCurrent 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.\n\nCurrent 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`.\n\nWhen 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 bar charts and line charts.",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.\n\nDo not set this property along with the date axis `valueFormat.intlOptions.timeZone` to prevent the data to be shifted twice.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation.",deprecated:"since 5.1. Set the `timeZone` property on the date axis `valueFormat.intlOptions` instead."},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 US, `1` as Monday for France).\n\nCurrent 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.\n\n`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.\n\n`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.
16
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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 information on how the columns/bars should be rendered."},hideOversizedStackedLabels:{type:"boolean",description:"`true` or `undefined` - the labels displayed within a small stacked column are hidden to avoid cluttering. `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 shows the categorical distribution of `String` or `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.
17
-
18
- If not provided, the mean overlay is not displayed.`},median:{$ref:"#/definitions/WebChartOverlay",description:`Specifies the median overlay for histogram.
19
-
20
- If not provided, the median overlay is not displayed.`},standardDeviation:{$ref:"#/definitions/WebChartOverlay",description:`Specifies the standard deviation overlay for histogram.
21
-
22
- If not provided, the standard deviation overlay is not displayed.`},comparisonDistribution:{$ref:"#/definitions/WebChartOverlay",description:`Specifies the comparison distribution overlay for histogram.
23
-
24
- 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 `HistogramSeries` 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.
25
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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 information on how the columns should be rendered."}},required:["id","name","type","x"],description:"Histogram shows the 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 the `ScatterplotOverlays` object, it is `chartOverlays`."},trendLine:{$ref:"#/definitions/WebChartOverlay",description:`Specifies the trend line overlay for scatterplot.
26
-
27
- The trend line won't show if the property is not defined.`}},required:["type"],description:"Object containing scatterplot overlays.",title:"ScatterplotOverlays"},SizePolicy:{type:"object",properties:{type:{type:"string",const:"sizeScale",description:"Represents a unique string identifier for the `sizePolicy` object. For the `sizePolicy` object, it is `sizeScale`."},scaleType:{$ref:"#/definitions/SizePolicyScaleTypes",description:"The type of scale to apply to the markers (`logarithmic` or `linear`).",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 the `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.
28
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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 scatterplot should be rendered."},overlays:{$ref:"#/definitions/ScatterplotOverlays",description:"Specifies all the chart overlays. The scatterplot 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 scatterplot 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:"Scatterplot 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 the `WebChartPieChartTick` object, it is `pieTick`."},visible:{type:"boolean",description:"Determines the visibility of the tick.\n\nAssigning 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 information 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.\n\nFor 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 information 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.\n\nFor 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 information 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.\n\nIf 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 `WebChartPieChartSeries` object. For the `WebChartPieChartSeries` 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.
29
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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 information 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.\n\nIf both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`.\n\nThis 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.\n\nIf both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`\n\nThis 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.\n\nThis 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.\n\nIf both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`\n\nThis 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.\n\nIf both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`\n\nThis 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).\n\nCan 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).\n\nCan 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.\n\nDoes not affect the value or percentage displayed in labels. Not applicable to tooltips or 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.\n\nWhen set to `true` the following properties will be ignored:\n- `dataLabelsOffset`\n- `alignDataLabels`\n- `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.\n\nIgnored 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.\n\nIgnored 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.\n\nIgnored 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.\n\nWhen 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 `WebChartGaugeSeries` object. For the `WebChartGaugeSeries` 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.
30
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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.
31
-
32
- This property will be ignored for a statistic gauge (indicated via \`WebGaugeChart.subType\` property).
33
-
34
- 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"},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.
35
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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 information 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 with gradient heat rules.",title:"WebChartHeatChartGradient"},WebChartHeatChartHeatClassBreaks:{type:"object",properties:{breaksCount:{type:"number",description:"The number of class breaks to be used for the heat chart.",default:5},classificationMethod:{$ref:"#/definitions/WebChartClassBreakTypes",description:"The classification method to be used for the heat chart. `equal-interval` - divides the range of values into equal-sized intervals. `quantile` - divides the range of values into intervals that contain an equal number of features. `natural-breaks` - identifies natural groupings of values in the data by minimizing the variance within classes and maximizing the variance between classes. `manual` - allows you to manually specify the class breaks."}},description:"JSON representation of the Heat chart with class breaks heat rules.",title:"WebChartHeatChartHeatClassBreaks"},WebChartClassBreakTypes:{type:"string",enum:["equal-interval","quantile","natural-breaks","manual"],description:"Class break types for data classification in charts.",title:"WebChartClassBreakTypes"},WebChartHeatChartEmptyCell:{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:"JSON representation of the heat chart empty cell configuration.",title:"WebChartHeatChartEmptyCell"},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.
36
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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."},classBreaksRules:{$ref:"#/definitions/WebChartHeatChartHeatClassBreaks",description:"Specifies the details of the class breaks rules for the heat chart."},emptyCells:{$ref:"#/definitions/WebChartHeatChartEmptyCell",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.\n\n`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 `WebChartLineChartSeries` object. For the `WebChartLineChartSeries` 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.
37
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the line or 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 information on how the marker should be rendered."},areaColor:{$ref:"#/definitions/Color",description:"Specifies the color of the filled area for line chart.\n\n`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. `true` - negative values will be stacked on the base line. `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.
38
-
39
- 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"},WebChartLineChartSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data.\n\n`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 `WebChartLineChartSeries` object. For the `WebChartLineChartSeries` 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.
40
- **Note**: Not applicable to gauge.`,default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).\n**Note**: Not applicable to 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. 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. 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's legend."},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing information 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, _) is 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."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the line or 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 information on how the marker should be rendered."},areaColor:{$ref:"#/definitions/Color",description:"Specifies the color of the filled area for line chart.\n\n`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. `true` - negative values will be stacked on the base line. `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.
41
-
42
- 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"},WebChart:{type:"object",properties:{version:{type:"string",const:"25.0.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 `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"},{$ref:"#/definitions/IWCSLayer"}],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 title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies 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 axes accompanying the chart. 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.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it 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.
43
-
44
- For XY Chart only.`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartSeriesType"},description:`Represents an array of various chart series to be plot inside the chart.
45
-
46
- Empty array is not allowed.`,minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
47
-
48
- Only applicable to 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.
49
-
50
- 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.
51
-
52
- If not provided the series will be displayed as they are ordered in the config.`},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartMultiAxesDataOrder"},{$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. If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.\n\nThe `WebChartDirectionalDataOrder` and `WebChartPredefinedLabelsDataOrder` are applicable to all chart types except heat chart. The `WebChartMultiAxesDataOrder` is specifically used for heat chart."},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\nThe format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending.\n\nIn case both this property and its sibling `data` object are provided, the order of the chart elements are settled by the order instruction in the `data` property. This property is applicable to all chart types but heat charts."}},description:"Chart order options for data and series."}},required:["version","type","series"],description:"JSON representation of the web 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"],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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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"}},deprecated:"since 5.1. Won't be replaced.",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","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset","esriFieldTypeXML"],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"],deprecated:"since 5.1. Won't be replaced.",title:"IDomain"},DomainType:{type:"string",enum:["codedValue","inherited","range"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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.
53
-
54
- Templates are not used with ArcGIS feature services as these already have templates defined in the service.
55
-
56
- 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.`,deprecated:"since 5.1. Won't be replaced.",title:"ITemplate"},FeatureEditTool:{type:"string",enum:["esriFeatureEditToolAutoCompletePolygon","esriFeatureEditToolCircle","esriFeatureEditToolDownArrow","esriFeatureEditToolEllipse","esriFeatureEditToolFreehand","esriFeatureEditToolLeftArrow","esriFeatureEditToolLine","esriFeatureEditToolNone","esriFeatureEditToolPoint","esriFeatureEditToolPolygon","esriFeatureEditToolRectangle","esriFeatureEditToolRightArrow","esriFeatureEditToolText","esriFeatureEditToolTriangle","esriFeatureEditToolUpArrow"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",title:"IOrderByField"},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:{$ref:"#/definitions/ILayerDefinition",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"},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"},IWCSLayer:{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:"WCS",description:"String indicating the layer type. Value of this property must be WCS"},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)."},wcsInfo:{type:"object",properties:{version:{type:"string"},coverageId:{type:"string"}},required:["version","coverageId"],description:"Object that defines and provides information about coverages in a WCS service."},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","wcsInfo"],title:"IWCSLayer"},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).
57
-
58
- 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:{type:"string",enum:["arcgis-charts-category","arcgis-charts-mean","arcgis-charts-median","arcgis-charts-y-value"],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 allows the items to be ordered either ascending or descending. This option can be used for the following types of order: by category, by mean, by median, and by y value.",title:"WebChartDirectionalDataOrder"},WebChartMultiAxesDataOrder:{type:"object",properties:{orderType:{type:"string",const:"arcgis-charts-multi-axes",description:"The type of order, which is two dimensional."},orderByX:{anyOf:[{type:"array",items:{type:"string"}},{$ref:"#/definitions/WebChartSortOrderKinds"}],description:"The direction of the order for the x axis. If the axis is categorical, this can also be a predefined list of labels."},orderByY:{anyOf:[{type:"array",items:{type:"string"}},{$ref:"#/definitions/WebChartSortOrderKinds"}],description:"The direction of the order for the y axis. If the axis is categorical, this can also be a predefined list of labels."}},required:["orderType"],description:`A data order option that allows the items to be ordered on both the x- and y-axes;
59
-
60
- For each axis, the order can be either a direction (ascending or descending) for all axis types; or a predefined list of labels when the axis is categorical.`,title:"WebChartMultiAxesDataOrder"},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 that allows the items to be ordered by `category` based on a predefined list of labels.",title:"WebChartPredefinedLabelsDataOrder"},WebGaugeChart:{type:"object",properties:{version:{type:"string",const:"25.0.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 `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"},{$ref:"#/definitions/IWCSLayer"}],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 title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies 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.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it 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.
61
-
62
- For XY Chart only.`,default:"wrap"},series:{type:"array",items:{$ref:"#/definitions/WebChartSeriesType"},description:`Represents an array of various chart series to be plot inside the chart.
63
-
64
- Empty array is not allowed.`,minItems:1},rotated:{type:"boolean",description:"Specifies whether or not the chart is rotated.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
65
-
66
- Only applicable to 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.
67
-
68
- 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.
69
-
70
- If not provided the series will be displayed as they are ordered in the config.`},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartMultiAxesDataOrder"},{$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. If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.\n\nThe `WebChartDirectionalDataOrder` and `WebChartPredefinedLabelsDataOrder` are applicable to all chart types except heat chart. The `WebChartMultiAxesDataOrder` is specifically used for heat chart."},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\nThe format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending.\n\nIn case both this property and its sibling `data` object are provided, the order of the chart elements are settled by the order instruction in the `data` property. This property is applicable to all chart types but heat charts."}},description:"Chart order options for 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 a full circle.",default:180},subType:{$ref:"#/definitions/GaugeChartSubTypes",description:"The type of gauge, like `FeatureGauge` or `StatisticGauge`.\n\nWhen this property is not specified, it will be defaulted to `GaugeChartSubTypes.StatisticGauge`."}},required:["axes","series","type","version"],description:"JSON representation of the 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:"25.0.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 `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"},{$ref:"#/definitions/IWCSLayer"}],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 title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies 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 axes accompanying the chart. 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.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it 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.
71
-
72
- For XY Chart only.`,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.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
73
-
74
- Only applicable to 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.
75
-
76
- 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.
77
-
78
- If not provided the series will be displayed as they are ordered in the config.`},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartMultiAxesDataOrder"},{$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. If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.\n\nThe `WebChartDirectionalDataOrder` and `WebChartPredefinedLabelsDataOrder` are applicable to all chart types except heat chart. The `WebChartMultiAxesDataOrder` is specifically used for heat chart."},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\nThe format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending.\n\nIn case both this property and its sibling `data` object are provided, the order of the chart elements are settled by the order instruction in the `data` property. This property is applicable to all chart types but heat charts."}},description:"Chart order options for 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.
79
-
80
- 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 the box plot.",title:"WebBoxPlot"},WebRadarChart:{type:"object",properties:{version:{type:"string",const:"25.0.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 `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"},{$ref:"#/definitions/IWCSLayer"}],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 title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies 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.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it 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.
81
-
82
- For XY Chart only.`,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.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
83
-
84
- Only applicable to 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.
85
-
86
- 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.
87
-
88
- If not provided the series will be displayed as they are ordered in the config.`},data:{anyOf:[{$ref:"#/definitions/WebChartDirectionalDataOrder"},{$ref:"#/definitions/WebChartMultiAxesDataOrder"},{$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. If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.\n\nThe `WebChartDirectionalDataOrder` and `WebChartPredefinedLabelsDataOrder` are applicable to all chart types except heat chart. The `WebChartMultiAxesDataOrder` is specifically used for heat chart."},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\nThe format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending.\n\nIn case both this property and its sibling `data` object are provided, the order of the chart elements are settled by the order instruction in the `data` property. This property is applicable to all chart types but heat charts."}},description:"Chart order options for 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.\n\nDo not set this property along with the date axis `valueFormat.intlOptions.timeZone` to prevent the data to be shifted twice.\n\nCurrent limitation: this is applied only when the provided layer supports the `queryBins` operation.",deprecated:"since 5.1. Set the `timeZone` property on the date axis `valueFormat.intlOptions` instead."},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 US, `1` as Monday for France).\n\nCurrent 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:"25.0.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 `WebChart` object. For the `WebChart` object, it is `chart`."},id:{type:"string",description:"Can be used to uniquely identify a chart."},iLayer:{anyOf:[{$ref:"#/definitions/IFeatureLayer"},{$ref:"#/definitions/IImageServiceLayer"},{$ref:"#/definitions/ITiledImageServiceLayer"},{$ref:"#/definitions/IWCSLayer"}],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 title of the chart."},subtitle:{$ref:"#/definitions/WebChartText",description:"Specifies 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 axes accompanying the chart. 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.\n\nApplicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it 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.
89
-
90
- For XY Chart only.`,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.",default:!1},stackedType:{$ref:"#/definitions/WebChartStackedKinds",description:`Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
91
-
92
- Only applicable to 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.
93
-
94
- Considered before the layer's renderer.`},orderOptions:{type:"object",properties:{data:{$ref:"#/definitions/WebChartMultiAxesDataOrder",description:`How data for a chart should be ordered.
95
-
96
- If not provided, the data will be displayed as it was retrieved from the server. No additional ordering will be applied.`},series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:`How series should be ordered and displayed in a multi-series chart.
97
-
98
- If not provided the series will be displayed as they are ordered in the config.`}},description:"Chart order options for 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},viewType:{$ref:"#/definitions/WebChartHeatChartViewTypes",description:`The calendar view type for the heat chart.
99
-
100
- **NOTE**: This property is only applicable to the calendar heat chart.`},includeLeapDay:{type:"boolean",description:"Whether to include leap day (Feb. 29th) in queries.",default:!1}},required:["series","type","version"],description:"Gives a JSON representation of the heat chart object.",title:"WebHeatChart"},'Omit<(structure-1066060463-59316-61059-1066060463-59241-61060-1066060463-55346-61062-1066060463-0-64115|undefined)937098756,("data"|"orderByFields")>':{$ref:"#/definitions/Pick%3C(structure-1066060463-59316-61059-1066060463-59241-61060-1066060463-55346-61062-1066060463-0-64115%7Cundefined)937098756%2CExclude%3C(%22series%22%7C%22data%22%7C%22orderByFields%22)%2C(%22data%22%7C%22orderByFields%22)%3E%3E",title:'Omit<(structure-1066060463-59316-61059-1066060463-59241-61060-1066060463-55346-61062-1066060463-0-64115|undefined)937098756,("data"|"orderByFields")>'},'Pick<(structure-1066060463-59316-61059-1066060463-59241-61060-1066060463-55346-61062-1066060463-0-64115|undefined)937098756,Exclude<("series"|"data"|"orderByFields"),("data"|"orderByFields")>>':{type:"object",properties:{series:{$ref:"#/definitions/WebChartOrderSeriesBy",description:`How series should be ordered and displayed in a multi-series chart.
101
-
102
- If not provided the series will be displayed as they are ordered in the config.`}},additionalProperties:!1,title:'Pick<(structure-1066060463-59316-61059-1066060463-59241-61060-1066060463-55346-61062-1066060463-0-64115|undefined)937098756,Exclude<("series"|"data"|"orderByFields"),("data"|"orderByFields")>>'},WebChartHeatChartViewTypes:{type:"string",enum:["SingleCalendarView","SequentialCalendarViews"],description:"Represents the different types of views that can be applied to a heat chart.",title:"WebChartHeatChartViewTypes"},RGBObject:{type:"object",properties:{r:{type:"number",description:"Red component of the color, in the range [0, 255]."},g:{type:"number",description:"Green component of the color, in the range [0, 255]."},b:{type:"number",description:"Blue component of the color, in the range [0, 255]."},a:{type:"number",description:"Alpha component of the color.",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"},WebChartHeatChartDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},heatChartAxesData:{$ref:"#/definitions/WebHeatChartAxesData",description:"Precomputed category data for heat chart axes."}},required:["dataItems"],description:"JSON representation of the processed data for a heat chart.",title:"WebChartHeatChartDataItem"},WebHeatChartAxesData:{type:"object",properties:{xAxisData:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},yAxisData:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["xAxisData","yAxisData"],description:"JSON representation of the pre-computed category data for heat chart axes.",title:"WebHeatChartAxesData"},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 scatterplot 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 scatterplot.",title:"WebChartScatterplotDataItem"},WebChartGenericDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},timeIntervalInfo:{$ref:"#/definitions/TimeIntervalInfo",description:`Time interval information.
103
-
104
- Only applicable to bar chart, line chart.`},serverLimitReached:{type:"boolean",description:"Indicates whether the server limit has been reached when fetching data."}},required:["dataItems"],description:"JSON representation of the generic data structure for bar chart, line chart, combo bar line chart, gauge, heat chart, pie chart and radar chart.",title:"WebChartGenericDataItem"},WebChartBin:{type:"object",properties:{count:{type:"number"},minValue:{type:"number",description:"Minimum value in the bin."},maxValue:{type:"number",description:"Maximum 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/WebChartHeatChartDataItem"},{$ref:"#/definitions/WebChartHistogramDataItem"},{$ref:"#/definitions/WebChartScatterplotDataItem"}],title:"WebChartDataTypes"},WebChartTypes:{type:"string",enum:["chart","chartText","chartOverlay","chartOverlays","chartLegend","cursorCrosshair","chartAxis","gaugeAxisTick","gaugeNeedle","fixed","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"},WebChartOrderDataByTypes:{type:"string",enum:["arcgis-charts-y-value","arcgis-charts-mean","arcgis-charts-median","arcgis-charts-category","arcgis-charts-multi-axes"],description:"The types of order assocated with chart data.",title:"WebChartOrderDataByTypes"},RESTFieldType:{type:"string",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","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"],deprecated:"since 5.1. Won't be replaced.",title:"RESTHorizontalAlignment"},RESTVerticalAlignment:{type:"string",enum:["baseline","top","middle","bottom"],deprecated:"since 5.1. Won't be replaced.",title:"RESTVerticalAlignment"},RESTFontStyle:{type:"string",enum:["italic","normal","oblique"],deprecated:"since 5.1. Won't be replaced.",title:"RESTFontStyle"},RESTFontWeight:{type:"string",enum:["bold","bolder","lighter","normal"],deprecated:"since 5.1. Won't be replaced.",title:"RESTFontWeight"},RESTFontDecoration:{type:"string",enum:["line-through","underline","none"],deprecated:"since 5.1. Won't be replaced.",title:"RESTFontDecoration"},RESTRendererType:{type:"string",enum:["unique-value","simple","class-breaks","heatmap","dot-density","dictionary","pie-chart"],title:"RESTRendererType"},RESTSymbolType:{type:"string",enum:["esriSLS","esriSMS","esriSFS","esriPMS","esriPFS","esriTS"],title:"RESTSymbolType"},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.",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.",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",description:"For feature layers only."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"For feature layers only."},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"}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",title:"IPolylineWithCurves"},ElipticArc:{$ref:"#/definitions/IArc",deprecated:"since 5.1. Won't be replaced.",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"; ```',deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"; ```',deprecated:"since 5.1. Won't be replaced.",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"; ```',deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",title:"IItemAdd"},IItemUpdate:{type:"object",properties:{id:{type:"string"}},required:["id"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",title:"IItem"},IFolder:{type:"object",properties:{username:{type:"string"},id:{type:"string"},title:{type:"string"},created:{type:"number"}},required:["username","id","title"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",title:"IViewServiceSource"},IViewServiceSources:{type:"object",properties:{currentVersion:{type:"number"},services:{type:"array",items:{$ref:"#/definitions/IViewServiceSource"}}},required:["currentVersion","services"],deprecated:"since 5.1. Won't be replaced.",title:"IViewServiceSources"},IServiceNameAvailable:{type:"object",properties:{available:{type:"boolean"}},required:["available"],deprecated:"since 5.1. Won't be replaced.",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"}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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",description:"Only applicable when specified as a client-side graphic."}},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"]}},deprecated:"since 5.1. Won't be replaced.",title:"IUser"},IPagingParams:{type:"object",properties:{start:{type:"number"},num:{type:"number"}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",title:"IEditableLayers"},IReadOnlyLayers:{type:"object",properties:{downloadAttachments:{type:"boolean",description:"Indicates whether to include attachments with the read-only data."}},required:["downloadAttachments"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",title:"IViewingInfo"},IEnableable:{type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",title:"ITimeSliderProperties"},ITimeSlider:{type:"object",properties:{properties:{$ref:"#/definitions/ITimeSliderProperties",description:"Configurable properties used within the TimeSlider widget."}},required:["properties"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",title:"IBingLayer"},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"],deprecated:"since 5.1. Won't be replaced.",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."}},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"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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)."}},description:"Drawing info container for renderer, labeling etc.",title:"IDrawingInfo"},ITypeInfoDomain:{type:"object",properties:{type:{type:"string"}},required:["type"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",title:"IOpenStreetMapLayer"},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."}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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."}},deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",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"],deprecated:"since 5.1. Won't be replaced.",title:"IArcGisStreamLayer"}},$ref:"#/definitions/WebChart"};function Dx(t){let e=t.lastIndexOf("/");return e!==-1?t.slice(e+1):t}async function Bx(t,e){let r=e??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings;return t.map(a=>{let i=a,n=a.dataPath.startsWith(".")?a.dataPath.substring(1):a.dataPath;switch(a.keyword){case Tr.Required:i={...a,message:ke(r.errors.requiredProperty,{dataPath:n,missingProperty:a.params.missingProperty})};break;case Tr.MinLength:i={...a,message:ke(r.errors.minLength,{dataPath:n,limit:a.params.limit.toString()})};break;case Tr.MinItems:i={...a,message:ke(r.errors.minItems,{dataPath:n,limit:a.params.limit.toString()})};break;case Tr.MaxItems:i={...a,message:ke(r.errors.maxItems,{dataPath:n,limit:a.params.limit.toString()})};break;case Tr.Pattern:a.params.pattern==="\\w+"&&(i={...a,message:ke(r.errors.whiteSpacePattern,{dataPath:n}),params:{}});break;case Tr.AdditionalProperties:i={...a,message:ke(r.errors.additionalProperty,{dataPath:n,additionalProperty:a.params.additionalProperty})};break;case Tr.Enum:i={...a,message:ke(r.errors.enumValues,{dataPath:n,allowedValues:a.params.allowedValues.join(", ")})};break;case Tr.AnyOf:{let s=[];a.schemaPath==="#/properties/legend/anyOf"&&(s=xi.definitions.WebChart.properties.legend.anyOf.map(o=>Dx(o.$ref))),i={...a,params:s,message:ke(r.errors.anyOfValues,{dataPath:n,schemaOptions:s.join(", ")})};break}}return i})}function cn(t,e){return{...t,$ref:`#/definitions/${e}`}}async function $x(t,e){let r,a=e??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings,i=se(t);try{await i.load()}catch{let n=i?.url??"",s=ct(i)?.portalItem?.id??"";r={keyword:Ye.LayerLoadFailure,message:ke(a.errors.layerLoadFailure,{url:n,portalItemId:s}),params:{url:n,portalItemId:s}}}return r}function Mx(){let t=new dp.default({allErrors:!0});return async(e,r)=>{let a=[],i=K(e?.series),n=xi;switch(i){case b.GaugeSeries:n=cn(xi,"WebGaugeChart");break;case b.BoxPlotSeries:n=cn(xi,"WebBoxPlot");break;case b.RadarSeries:n=cn(xi,"WebRadarChart");break;default:n=cn(xi,"WebChart");break}let s=t.compile(n);return s(e),s.errors!==null&&s.errors!==void 0&&(a=await Bx(s.errors,r)),a}}var qx=Mx();async function Rx(t){let{seriesConfigs:e,queryObject:r,allowUsingObjectIdStat:a,errorStrings:i}=t,n=[],s=r?xt(r):void 0,o=i??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings;for(let l=0;l<e.length;l+=1){let d=e[l].query?.outStatistics;if(d!==void 0)for(let c=0;c<d.length;c+=1){let u=d[c],f=Qp(u.onStatisticField,s);if(f&&!(f.type===me.OID&&a||Ei(f))&&u.statisticType!==W.Count){let p=`series[${l}].query.outStatistics[${c}]`;n.push({keyword:jp.NonNumericAggregation,message:ke(o.errors.nonNumericAggregation,{dataPath:p}),dataPath:p,params:{fieldName:u.onStatisticField,fieldType:f.type,aggregationRequested:u.statisticType}})}}}return n}async function kx(t,e){let r=[],a=e??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings;if(t!==void 0&&t.series.length>1){let i=new Set,n=0;t.series.forEach((s,o)=>{if(i.add(s.id),i.size===n){let l=`series[${o}].id`;r.push({keyword:jp.DuplicateSeriesID,message:ke(a.errors.duplicateSeriesID,{dataPath:l,seriesID:s.id,seriesName:s.name}),dataPath:l,params:{seriesId:s.id,seriesName:s.name}})}else n+=1})}return r}function Wx(t){let e=new Set,r=cr(t);if(r){let a=K(t.series),i=X(t.series);a===b.GaugeSeries&&!vo(t)||i===C.PieFromFields||i===C.BarAndLineFromFields||i===C.BoxPlotMonoField||i===C.BoxPlotMultiFields||i===C.BoxPlotMonoFieldAndSplitBy||i===C.BoxPlotMultiFieldsAndSplitBy||e.add(r.x);let n=a===b.ScatterSeries||a===b.BoxPlotSeries||a===b.HeatSeries||i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation||i===C.PieNoAggregation,s=[Ni,ot,yb,jt,gb,de.outStatistics.outStatisticFieldName??""],o=[];rt(t)?o=An({showMean:t.showMean,seriesConfig:t.series}):o=t.series.map(d=>"y"in d?d.y:void 0).filter(d=>d!==void 0).flat(),n?o.forEach(d=>e.add(d)):s.push(...o),t.series.forEach(d=>{let{query:c}=d;c&&(nr(c.where)||e.add(Qe(c.where)),c.groupByFieldsForStatistics&&c.groupByFieldsForStatistics.forEach(u=>e.add(u)),c.outStatistics&&c.outStatistics.forEach(u=>e.add(u.onStatisticField)))});let l=i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation||i===C.PieNoAggregation;if(t.orderOptions?.orderByFields&&l&&t.orderOptions.orderByFields.forEach(d=>{let c=Hv(d).fieldToSort;e.add(c)}),a===b.GaugeSeries&&t.axes?.[0]!==void 0){let d=t.axes?.[0];d&&"minimumFromField"in d&&typeof d.minimumFromField=="string"&&e.add(d.minimumFromField),d&&"maximumFromField"in d&&typeof d.maximumFromField=="string"&&e.add(d.maximumFromField)}s.forEach(d=>{e.delete(d)})}return Array.from(e.values()).filter(a=>!ze(a))}async function jx(t){let{chartConfig:e,queryObject:r,errorStrings:a}=t,i,n=a??(await Mt(yt(document.documentElement).t9nLocale,$t("./assets/common/t9n"),"messages.")).errorStrings,s=xt(r),o=Wx(e).filter(l=>!Qp(l,s));if(o.length>0){let l=o.join(", ");i={keyword:Ye.LayerFieldsNotFound,message:ke(n.errors.layerFieldsNotFound,{fieldNames:l}),params:l}}return i}async function Vx(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a,errorStrings:i}=t,n=[];if(r!==void 0){let s=await Rx({seriesConfigs:e.series,queryObject:r,allowUsingObjectIdStat:a,errorStrings:i});n=n.concat(s)}return n=n.concat(await kx(e,i)),n}async function _x(t){let{queryObject:e,chartConfig:r,errorStrings:a}=t,i=[];if(e!==void 0){let n=await $x(e,a);if(n!==void 0)i=i.concat(n);else if(r!==void 0){let s=await jx({chartConfig:r,queryObject:e,errorStrings:a});s!==void 0&&(i=i.concat(s))}}return i}async function eI(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a,errorStrings:i}=t,n;if(qS(e?.version).versionStatus===fr.Newer)n={valid:!0,schemaErrors:[],customErrors:[],warnings:[]};else{let s=await qx(e,i),o=[],l=[];e!==void 0&&s.length===0&&(l=await _x({queryObject:r,chartConfig:e,errorStrings:i}),l.length===0&&(o=await Vx({input:e,queryObject:r,allowUsingObjectIdStat:a,errorStrings:i}))),n={valid:s.length===0&&o.length===0&&l.length===0,schemaErrors:s,customErrors:l,warnings:o}}return n}function tI(t){let e=K(t?.series),r=!1;switch(e){case b.HistogramSeries:case b.GaugeSeries:{r=(t?.series?.[0]?.x?.trim()?.length??0)===0;break}case b.ScatterSeries:{let a=t?.series;r=(a?.[0]?.x?.length??0)===0||(a?.[0]?.y?.length??0)===0;break}case b.PieSeries:{let a=t?.series;X(a)===C.PieFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.length??0)===0||a?.[0]?.x===ot;break}case b.BoxPlotSeries:{let a=t?.series;r=[a?.[0]?.y].flat().length===0||a?.[0]?.y==="";break}case b.ComboLineAndBarSeries:case b.RadarSeries:case b.BarSeries:case b.LineSeries:{let a=t?.series;X(a)===C.BarAndLineFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.trim()?.length??0)===0;break}case b.HeatSeries:{let a=t?.series,i=ze(a?.[0]?.x)||ze(a?.[0]?.y),n=t!==void 0&&Op(t)?!1:a?.[0]?.xTemporalBinning===void 0;r=i||n;break}}return r}async function Qs(t){let{queryObject:e,queryConfig:r,category:a,splitByField:i,chartLimits:n,errorStrings:s,abortKey:o,abortSignal:l}=t,d=i!==void 0,c=a!==Ni?[a]:[];d&&c.push(i);let u=se(e),{idField:f,isTraditionalTypeOID:p}=zt(u),h=p?f:"*",y={...r,groupByFieldsForStatistics:Array.from(new Set(c)),outStatistics:[{statisticType:W.Count,onStatisticField:h,outStatisticFieldName:`${W.Count}_OBJECTID`}],orderByFields:void 0,num:n?.maxBarThreePlusSeriesCountTotal},m=await Dt({queryObject:e,featureCount:1,queryConfig:y,errorStrings:s,abortKey:o,abortSignal:l});return Array.from(new Set(m.map(g=>g.attributes[d?i:a]))).sort((g,v)=>typeof g=="string"&&typeof v=="string"?g.localeCompare(v):Number(g)-Number(v))}var sp=[{unit:Q.Second,threshold:6e4,unitMs:1e3,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:Q.Minute,threshold:36e5,unitMs:1e3*60,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:Q.Hour,threshold:864e5,unitMs:1e3*60*60,preferredIntervalSize:[1,2,3,4,6,8,12,24]},{unit:Q.Day,threshold:6048e5,unitMs:1e3*60*60*24,preferredIntervalSize:[1,2,3,4,5,6,7]},{unit:Q.Week,threshold:24192e5,unitMs:1e3*60*60*24*7,preferredIntervalSize:[1,2,3,4]},{unit:Q.Month,threshold:290304e5,unitMs:1e3*60*60*24*7*4,preferredIntervalSize:[1,2,3,4,6,12]},{unit:Q.Year,threshold:Number.MAX_SAFE_INTEGER,unitMs:1e3*60*60*24*7*4*12,preferredIntervalSize:[1,2,4,5,10,25,50,100]}],zx="{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'",Ux=[...Dn,"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 rI(t){let{t9nLocale:e}=yt(t??document.documentElement),r=hf(t??document.documentElement),a=Do(t??document.documentElement)==="rtl";return{locale:e,formatLocale:r,rtl:a}}function iI(t){let e;return t==="unknown"?e="UTC":t!==void 0&&t!=="system"&&(e=t),e}function aI(t,e){let r={year:"numeric",month:"2-digit",day:"2-digit",timeZone:e};return new Intl.DateTimeFormat("en-CA",r).format(t)}function nI(t,e){let r={hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:e};return new Intl.DateTimeFormat("en-US",r).format(t)}function sI(t,e){let[,r,,,,a]=1111.1.toLocaleString(e),i=t.replace(r,"").replace(a,".");return Number.parseFloat(i)}function Hx(t){let e=Array.from(Dn);return Ux.includes(t)&&!e.includes(t)}function hf(t){let{lang:e,t9nLocale:r}=yt(t);return Hx(e)?e:r}return{a:ie,b:or,c:ot,d:jt,e:yb,f:gb,g:rr,h:bb,i:_t,j:E1,k:et,l:L1,m:ir,n:Zr,o:N1,p:D1,q:Ob,r:ju,s:kb,t:B1,u:ne,v:de,w:$1,x:lt,y:Vb,z:M1,A:q1,B:hn,C:Ni,D:te,E:R1,F:_b,G:k1,H:W1,I:j1,J:V1,K:_1,L:z1,M:U1,N:Nt,O:gp,P:H1,Q:wn,R:ve,S:bp,T:ce,U:oa,V:Ub,W:G1,X:Ks,Y:Z1,Z:Q1,_:Lr,$:on,aa:lr,ba:K1,ca:Hb,da:Gb,ea:Zb,fa:J1,ga:Qb,ha:Kb,ia:Yr,ja:Yb,ka:Y1,la:X1,ma:ev,na:eT,oa:tv,pa:tT,qa:rT,ra:rv,sa:iv,ta:iT,ua:aT,va:ta,wa:nT,xa:sT,ya:oT,za:lT,Aa:dT,Ba:cT,Ca:uT,Da:pT,Ea:av,Fa:nv,Ga:sv,Ha:fT,Ia:xn,Ja:hT,Ka:mT,La:ov,Ma:yT,Na:lv,Oa:dv,Pa:cv,Qa:gT,Ra:bT,Sa:vT,Ta:L,Ua:Fi,Va:uv,Wa:ST,Xa:vp,Ya:wT,Za:xT,_a:CT,$a:pv,ab:TT,bb:Qr,cb:rt,db:FT,eb:IT,fb:Ys,gb:Ii,hb:vv,ib:OT,jb:AT,kb:PT,lb:ET,mb:LT,nb:Sv,ob:Ov,pb:NT,qb:DT,rb:ra,sb:Lv,tb:xp,ub:$v,vb:_u,wb:BT,xb:C,yb:$T,zb:Tp,Ab:zu,Bb:MT,Cb:co,Db:Fp,Eb:eo,Fb:qT,Gb:RT,Hb:zv,Ib:ze,Jb:kT,Kb:WT,Lb:jT,Mb:VT,Nb:Uv,Ob:Hv,Pb:_T,Qb:zT,Rb:UT,Sb:HT,Tb:GT,Ub:ZT,Vb:QT,Wb:Gv,Xb:Op,Yb:KT,Zb:fo,_b:JT,$b:YT,ac:XT,bc:eF,cc:tF,dc:rF,ec:Z,fc:Ze,gc:Ye,hc:v0,ic:Ke,jc:S0,kc:aa,lc:iF,mc:Or,nc:ct,oc:aF,pc:Pi,qc:nF,rc:se,sc:sF,tc:Jr,uc:Dt,vc:oF,wc:N0,xc:D0,yc:Pe,zc:jp,Ac:ae,Bc:lF,Cc:dF,Dc:bS,Ec:cF,Fc:Up,Gc:da,Hc:uF,Ic:Zp,Jc:pF,Kc:fF,Lc:xt,Mc:Qp,Nc:zt,Oc:Ei,Pc:IS,Qc:hF,Rc:mF,Sc:yF,Tc:OS,Uc:gF,Vc:Zu,Wc:ES,Xc:LS,Yc:bF,Zc:Jp,_c:vF,$c:In,ad:DS,bd:BS,cd:qS,dd:cr,ed:SF,fd:Qe,gd:dt,hd:nr,id:X,jd:ur,kd:Vt,ld:VS,md:Qu,nd:JS,od:wF,pd:xF,qd:CF,rd:TF,sd:FF,td:IF,ud:OF,vd:AF,wd:PF,xd:EF,yd:LF,zd:NF,Ad:DF,Bd:BF,Cd:$F,Dd:MF,Ed:qF,Fd:RF,Gd:kF,Hd:WF,Id:jF,Jd:VF,Kd:_F,Ld:vn,Md:zF,Nd:UF,Od:HF,Pd:cw,Qd:GF,Rd:ZF,Sd:sa,Td:df,Ud:vo,Vd:So,Wd:pf,Xd:Ue,Yd:Zs,Zd:it,_d:wx,$d:QF,ae:Cx,be:ip,ce:Fx,de:KF,ee:Ax,fe:Px,ge:np,he:JF,ie:YF,je:XF,ke:eI,le:tI,me:Qs,ne:rI,oe:iI,pe:aI,qe:nI,re:sI,se:hf}},"layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","AttributeBinsGraphic","layers/support/CodedValueDomain","intl","geometry/support/jsonUtils","layers/FeatureLayer","layers/support/Field","layers/support/fieldUtils","portal/Portal","request","rest/support/FeatureSet","core/sql","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","applications/Components/imageryUtils","layers/ImageryLayer","layers/ImageryTileLayer","layers/WCSLayer","geometry/Point","geometry/Extent")