@arcgis/charts-components 5.0.0-next.124 → 5.0.0-next.126

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 (399) hide show
  1. package/dist/assets/styles/resources.d.ts +3 -0
  2. package/dist/cdn/{OYHNC2SA.js → 25XRK74L.js} +2 -2
  3. package/dist/cdn/{7EW6LYPG.js → 26KI2VVZ.js} +2 -2
  4. package/dist/cdn/{2D5EDHYN.js → 27UHYAD7.js} +2 -2
  5. package/dist/cdn/{3PPWCDCJ.js → 2A6TTXMX.js} +2 -2
  6. package/dist/cdn/{QNFRQUY2.js → 2AIIJ3EU.js} +2 -2
  7. package/dist/cdn/{YUS4PQGH.js → 35E2DSUF.js} +2 -2
  8. package/dist/cdn/{JI5RWIXQ.js → 3HUEAOWU.js} +2 -2
  9. package/dist/cdn/{6CTF3LVX.js → 4AWFYOB3.js} +2 -2
  10. package/dist/cdn/{6RWCW3UO.js → 4CBCYV7Y.js} +2 -2
  11. package/dist/cdn/{HVR7IPTU.js → 4IWVBMMV.js} +2 -2
  12. package/dist/cdn/{ISNET2BC.js → 4VMPZYRR.js} +2 -2
  13. package/dist/cdn/{DMHAI37D.js → 4XRFREWJ.js} +2 -2
  14. package/dist/cdn/{2YH4S6R2.js → 5EZEK2B3.js} +2 -2
  15. package/dist/cdn/{YGWW67SB.js → 5O4AS63P.js} +2 -2
  16. package/dist/cdn/{QDNHFVAT.js → 5SPR4WU7.js} +2 -2
  17. package/dist/cdn/{PXWSFT73.js → 5V4WL3KB.js} +2 -2
  18. package/dist/cdn/{VSOUQS2X.js → 5YB6JGO6.js} +2 -2
  19. package/dist/cdn/{4C222VDK.js → 5YVVRQGX.js} +2 -2
  20. package/dist/cdn/{EGZMAYNW.js → 643TZRTV.js} +2 -2
  21. package/dist/cdn/6HVKSH55.js +4 -0
  22. package/dist/cdn/{ATHPEPG3.js → 6NFJLX4R.js} +2 -2
  23. package/dist/cdn/{BGA7WGKS.js → 6PWOZ6DX.js} +2 -2
  24. package/dist/cdn/{B7CIWHRP.js → 6W2SH2IX.js} +2 -2
  25. package/dist/cdn/{QOZYNDKK.js → 74R27GEX.js} +2 -2
  26. package/dist/cdn/{SJVORS7J.js → 76MEZSBP.js} +2 -2
  27. package/dist/cdn/77JNABH4.js +4 -0
  28. package/dist/cdn/{S5ELHZKG.js → 7CRANVFJ.js} +2 -2
  29. package/dist/cdn/{LTFM5NKH.js → 7DZEHEYQ.js} +2 -2
  30. package/dist/cdn/{RUZY3A2W.js → 7E3AMLJV.js} +1 -1
  31. package/dist/cdn/{YUUP7TFJ.js → 7H276RRF.js} +1 -1
  32. package/dist/cdn/{5PC6AV3A.js → 7UVCY2XW.js} +2 -2
  33. package/dist/cdn/{6XX34RTG.js → ABRNTTB5.js} +2 -2
  34. package/dist/cdn/{FE33CRUK.js → AEVMNV6D.js} +2 -2
  35. package/dist/cdn/{GNNDUEVI.js → AFR2NZEW.js} +2 -2
  36. package/dist/cdn/{I7GCNDDT.js → AHTZFNZ4.js} +2 -2
  37. package/dist/cdn/{BM2LI7QH.js → AOLCF6PF.js} +2 -2
  38. package/dist/cdn/{YTQZKWA6.js → AZZEZCTO.js} +2 -2
  39. package/dist/cdn/{GBSVT554.js → B5NYZJPC.js} +2 -2
  40. package/dist/cdn/{3YX74DF2.js → BIMLXGQH.js} +1 -1
  41. package/dist/cdn/BSDD4JGM.js +4 -0
  42. package/dist/cdn/BUDJ5KJ4.js +4 -0
  43. package/dist/cdn/{QNMYBOGS.js → C7ZOIOKQ.js} +2 -2
  44. package/dist/cdn/{TTGW7K5G.js → CF76W6BX.js} +2 -2
  45. package/dist/cdn/{S3UD7LY2.js → CY4JRAZ2.js} +2 -2
  46. package/dist/cdn/{3X7QLZLE.js → D776AYHH.js} +2 -2
  47. package/dist/cdn/{BZPIEEDJ.js → DEGKE72A.js} +2 -2
  48. package/dist/cdn/{WKJSDXQI.js → DMUPFMGF.js} +2 -2
  49. package/dist/cdn/DOMFMDO6.js +4 -0
  50. package/dist/cdn/{YVMTYOW2.js → ELGNG2Q4.js} +2 -2
  51. package/dist/cdn/{ML67VUPG.js → ELTMKHI5.js} +2 -2
  52. package/dist/cdn/{ULU4K6SN.js → EOPCIELT.js} +2 -2
  53. package/dist/cdn/{7RH3XZWT.js → ERETYZHP.js} +2 -2
  54. package/dist/cdn/{UEM3MUED.js → ERWS266O.js} +2 -2
  55. package/dist/cdn/{V64AI4RB.js → EWSIWHZX.js} +2 -2
  56. package/dist/cdn/{655OVJFP.js → FLCOLBWB.js} +2 -2
  57. package/dist/cdn/{GR3U6ZIK.js → FNBTHB56.js} +2 -2
  58. package/dist/cdn/{RXXCTZJV.js → G2GFLPJY.js} +2 -2
  59. package/dist/cdn/{D34QFF3X.js → GBPLKUWL.js} +2 -2
  60. package/dist/cdn/GMQMQ6A7.js +4 -0
  61. package/dist/cdn/{VSNSRQWP.js → GV7LTNSB.js} +2 -2
  62. package/dist/cdn/{5VUKOFOE.js → H7BCCLBI.js} +2 -2
  63. package/dist/cdn/{VWQJJEWQ.js → HFBS6K2E.js} +2 -2
  64. package/dist/cdn/{RUEIU24U.js → HM7YEGEB.js} +2 -2
  65. package/dist/cdn/{5X46EGJ4.js → HRI7QMSC.js} +2 -2
  66. package/dist/cdn/{RSPHI4BO.js → I4NTX3Z2.js} +2 -2
  67. package/dist/cdn/{ZV37BEXJ.js → ID67GG4Z.js} +2 -2
  68. package/dist/cdn/{O2GMJWE4.js → IMG3QRKF.js} +2 -2
  69. package/dist/cdn/{JLHG2CB2.js → ITJ33NKU.js} +1 -1
  70. package/dist/cdn/{JTYNPEFS.js → IWLVXYOY.js} +2 -2
  71. package/dist/cdn/{4WWFFD7Q.js → J4AA7FRW.js} +2 -2
  72. package/dist/cdn/{SUJSBDM5.js → J7JFKQW2.js} +2 -2
  73. package/dist/cdn/{4JNZBZMT.js → JCQLF7EV.js} +2 -2
  74. package/dist/cdn/{IGM4UGTH.js → JDKSA2FX.js} +2 -2
  75. package/dist/cdn/{DWPKUBVW.js → JRSPZ6SO.js} +2 -2
  76. package/dist/cdn/{5IZCBNLA.js → JVGBT7HW.js} +2 -2
  77. package/dist/cdn/{R2YNWG73.js → JWN3NIZB.js} +2 -2
  78. package/dist/cdn/{FMALP4BH.js → KEADQABA.js} +2 -2
  79. package/dist/cdn/{TMNXZ2P2.js → KICNQRS5.js} +2 -2
  80. package/dist/cdn/{57CI5J4N.js → KNME6EGI.js} +2 -2
  81. package/dist/cdn/{WJ4LHER2.js → KOCW5WYZ.js} +2 -2
  82. package/dist/cdn/KUJSVFE4.js +4 -0
  83. package/dist/cdn/{G3HDHYLX.js → KZPAVR5Z.js} +2 -2
  84. package/dist/cdn/{QTD73XWY.js → KZY7SNZU.js} +2 -2
  85. package/dist/cdn/{XELT5Y3X.js → LAQ7APAM.js} +2 -2
  86. package/dist/cdn/{KHD7ZZ3C.js → LCKMPGM7.js} +2 -2
  87. package/dist/cdn/{FT3ZXFJE.js → LUPA3H3J.js} +2 -2
  88. package/dist/cdn/{BYMWEK3G.js → M2OM5DNU.js} +2 -2
  89. package/dist/cdn/{OMIIGK3F.js → M3HUJD7E.js} +2 -2
  90. package/dist/cdn/MCXWNKHE.js +4 -0
  91. package/dist/cdn/{3GNZ6W5K.js → MF5ZAJP4.js} +2 -2
  92. package/dist/cdn/{OLETCYC4.js → MJSWOREC.js} +2 -2
  93. package/dist/cdn/{7SRXBXPZ.js → MKNAFOVQ.js} +1 -1
  94. package/dist/cdn/{NXLS44FO.js → MN5E7EBK.js} +2 -2
  95. package/dist/cdn/{RBSOFFDG.js → MNFUQLWB.js} +2 -2
  96. package/dist/cdn/{3KHBL2HS.js → MS5H6NVL.js} +2 -2
  97. package/dist/cdn/{R6OITWD5.js → MZCCJESV.js} +2 -2
  98. package/dist/cdn/{2MS2UCMT.js → N7JRXCWF.js} +2 -2
  99. package/dist/cdn/{DJYAEAGR.js → NGOD7QYS.js} +2 -2
  100. package/dist/cdn/{FZ4SJYZ6.js → NL6TNMOY.js} +2 -2
  101. package/dist/cdn/NND3FLIE.js +4 -0
  102. package/dist/cdn/{MC3M3JDB.js → NTCZKQRC.js} +2 -2
  103. package/dist/cdn/{STA72KQH.js → OGDDMNLP.js} +2 -2
  104. package/dist/cdn/{ZPTBU5IU.js → OMQMS2VP.js} +2 -2
  105. package/dist/cdn/{IMQFKMPS.js → OQLTXWUU.js} +2 -2
  106. package/dist/cdn/{G3GVJVSG.js → OSUI5UAL.js} +2 -2
  107. package/dist/cdn/{P2EORQVS.js → OV6TE6ES.js} +2 -2
  108. package/dist/cdn/OZLDJIIO.js +4 -0
  109. package/dist/cdn/{HHH22MZL.js → P5JWGION.js} +2 -2
  110. package/dist/cdn/PAZTQIFU.js +4 -0
  111. package/dist/cdn/PGM6GEJ6.js +4 -0
  112. package/dist/cdn/{D5SH6HG6.js → PHDC7IS6.js} +2 -2
  113. package/dist/cdn/{6QNIVBNW.js → PIK4YDLO.js} +2 -2
  114. package/dist/cdn/{55FUE6UE.js → PIM7HXP7.js} +2 -2
  115. package/dist/cdn/{USGO4QRN.js → PTIDPN5X.js} +2 -2
  116. package/dist/cdn/{T4N4JEIW.js → PURVTUAP.js} +2 -2
  117. package/dist/cdn/{ZZJJZZFN.js → Q4EJXZA6.js} +2 -2
  118. package/dist/cdn/Q5UJ2NHS.js +4 -0
  119. package/dist/cdn/{KLP7IYTM.js → QIKABDKN.js} +2 -2
  120. package/dist/cdn/QLA6BHOG.js +4 -0
  121. package/dist/cdn/QMGZNANC.js +4 -0
  122. package/dist/cdn/{C7OKJYN7.js → QQUULICL.js} +2 -2
  123. package/dist/cdn/{JKVFIMBB.js → QWA2NXWE.js} +1 -1
  124. package/dist/cdn/{THVLXND3.js → QXDLE5IZ.js} +2 -2
  125. package/dist/cdn/QXMUMSJD.js +4 -0
  126. package/dist/cdn/{EZ2LYGYL.js → RCNHXERV.js} +2 -2
  127. package/dist/cdn/{M5R5MFMW.js → REQJ5VKC.js} +2 -2
  128. package/dist/cdn/{EQEQE67W.js → RK6CCTOG.js} +1 -1
  129. package/dist/cdn/{KW7WUR52.js → RM65CKH5.js} +2 -2
  130. package/dist/cdn/{GO4C26OI.js → ROPL32VZ.js} +2 -2
  131. package/dist/cdn/{RWZIWFW2.js → ROTLJPTM.js} +2 -2
  132. package/dist/cdn/{44SCILTL.js → RPIBXVWC.js} +2 -2
  133. package/dist/cdn/{AOX55UWJ.js → RXV7TMD3.js} +2 -2
  134. package/dist/cdn/{N7MCHAWE.js → RXY7BYXO.js} +2 -2
  135. package/dist/cdn/{OL36EBBK.js → RZGZRQIF.js} +2 -2
  136. package/dist/cdn/{MI7MLBEV.js → S7KXCJNQ.js} +2 -2
  137. package/dist/cdn/SAQUHIN6.js +4 -0
  138. package/dist/cdn/{YS2FXGAU.js → SK6EMQF2.js} +2 -2
  139. package/dist/cdn/{ESRJRU26.js → SKIPJVXR.js} +2 -2
  140. package/dist/cdn/{RATBUCY6.js → SLGHP6TN.js} +2 -2
  141. package/dist/cdn/{OMBNC7SB.js → SOBBK6GJ.js} +2 -2
  142. package/dist/cdn/{CX4D6GWY.js → SYCMKNIB.js} +2 -2
  143. package/dist/cdn/{GZRGFME2.js → TEP2J466.js} +2 -2
  144. package/dist/cdn/{GRRFZGXJ.js → TLV7DUO6.js} +2 -2
  145. package/dist/cdn/{KPS2S4MH.js → TNQLQVSX.js} +2 -2
  146. package/dist/cdn/{RMU2CIGT.js → TP2X6PFS.js} +2 -2
  147. package/dist/cdn/{KWCCDTNA.js → TSM7CFL5.js} +2 -2
  148. package/dist/cdn/{CZ4QFJN6.js → TWXQBB4I.js} +2 -2
  149. package/dist/cdn/{IN6PWUNI.js → U5ZB3ZOZ.js} +2 -2
  150. package/dist/cdn/{N4ZQJQAW.js → UFBER3XV.js} +2 -2
  151. package/dist/cdn/{OCKE7CUE.js → UOFAIACY.js} +2 -2
  152. package/dist/cdn/{N4SMAGEG.js → UQWXXVPP.js} +2 -2
  153. package/dist/cdn/{KS4HIDA2.js → UU5ZVLCU.js} +2 -2
  154. package/dist/cdn/VIVZZ62F.js +4 -0
  155. package/dist/cdn/{HXUD4YD5.js → VL3YMZBP.js} +2 -2
  156. package/dist/cdn/VLY2GYOK.js +4 -0
  157. package/dist/cdn/VRHSLUQS.js +4 -0
  158. package/dist/cdn/{PD4Q6GZE.js → VV3EOVSC.js} +2 -2
  159. package/dist/cdn/{V4C25BVV.js → VXUVRDZ7.js} +2 -2
  160. package/dist/cdn/{DCCED6GZ.js → W3E753E5.js} +2 -2
  161. package/dist/cdn/{RHEZNEQE.js → W6CJEKZF.js} +2 -2
  162. package/dist/cdn/{K5CBCSDB.js → W6WAGCUD.js} +2 -2
  163. package/dist/cdn/{ZOQ5F4KQ.js → WCFDKS47.js} +2 -2
  164. package/dist/cdn/{O47JQDR4.js → WD2HWPCM.js} +4 -4
  165. package/dist/cdn/{XUAJX5PS.js → WKOWQ475.js} +2 -2
  166. package/dist/cdn/{JWMIS654.js → WNAGAO6Z.js} +2 -2
  167. package/dist/cdn/{76LO3EHS.js → WU7OX373.js} +2 -2
  168. package/dist/cdn/{UX5AAEZQ.js → XB3GAQIJ.js} +2 -2
  169. package/dist/cdn/XCWR4PVE.js +4 -0
  170. package/dist/cdn/{MEKRZZV7.js → XCYWE7EO.js} +2 -2
  171. package/dist/cdn/{SC76G3QP.js → XETVTEXP.js} +2 -2
  172. package/dist/cdn/XFGSO5RQ.js +4 -0
  173. package/dist/cdn/{CNO7MVUY.js → XKI443WC.js} +2 -2
  174. package/dist/cdn/{4HCLTLQ4.js → XLGKD4VN.js} +2 -2
  175. package/dist/cdn/{ITRLHIN6.js → XSVXNSOZ.js} +2 -2
  176. package/dist/cdn/{YZZRXAD4.js → Y5HMOZRL.js} +2 -2
  177. package/dist/cdn/{HGRXTY54.js → YB3HEDVK.js} +2 -2
  178. package/dist/cdn/YIKQZM3J.js +4 -0
  179. package/dist/cdn/{NJS62ZQP.js → YKSNOZ55.js} +2 -2
  180. package/dist/cdn/Z2UL3XYG.js +4 -0
  181. package/dist/cdn/{ZTT6BCX2.js → ZELMXADS.js} +2 -2
  182. package/dist/cdn/ZIJIFME2.js +4 -0
  183. package/dist/cdn/{ZFDJUSVB.js → ZKKNEX53.js} +2 -2
  184. package/dist/cdn/{43UQ4RML.js → ZN7ILHG6.js} +2 -2
  185. package/dist/cdn/{JGPXA4KQ.js → ZNHWCDWX.js} +35 -35
  186. package/dist/cdn/{BGQBSD5V.js → ZNO4DZ3P.js} +2 -2
  187. package/dist/cdn/{C4OWDLDM.js → ZQC5FUSI.js} +2 -2
  188. package/dist/cdn/ZXQ6YK42.js +4 -0
  189. package/dist/cdn/{NWAGI43Q.js → ZZCFXZ2V.js} +2 -2
  190. package/dist/cdn/assets/common/t9n/messages.ar.json +1 -1
  191. package/dist/cdn/assets/common/t9n/messages.bg.json +1 -1
  192. package/dist/cdn/assets/common/t9n/messages.bs.json +1 -1
  193. package/dist/cdn/assets/common/t9n/messages.ca.json +1 -1
  194. package/dist/cdn/assets/common/t9n/messages.cs.json +1 -1
  195. package/dist/cdn/assets/common/t9n/messages.da.json +1 -1
  196. package/dist/cdn/assets/common/t9n/messages.de.json +1 -1
  197. package/dist/cdn/assets/common/t9n/messages.el.json +1 -1
  198. package/dist/cdn/assets/common/t9n/messages.es.json +1 -1
  199. package/dist/cdn/assets/common/t9n/messages.et.json +1 -1
  200. package/dist/cdn/assets/common/t9n/messages.fi.json +1 -1
  201. package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
  202. package/dist/cdn/assets/common/t9n/messages.he.json +1 -1
  203. package/dist/cdn/assets/common/t9n/messages.hr.json +1 -1
  204. package/dist/cdn/assets/common/t9n/messages.hu.json +1 -1
  205. package/dist/cdn/assets/common/t9n/messages.id.json +1 -1
  206. package/dist/cdn/assets/common/t9n/messages.it.json +1 -1
  207. package/dist/cdn/assets/common/t9n/messages.ja.json +1 -1
  208. package/dist/cdn/assets/common/t9n/messages.ko.json +1 -1
  209. package/dist/cdn/assets/common/t9n/messages.lt.json +1 -1
  210. package/dist/cdn/assets/common/t9n/messages.lv.json +1 -1
  211. package/dist/cdn/assets/common/t9n/messages.nl.json +1 -1
  212. package/dist/cdn/assets/common/t9n/messages.no.json +1 -1
  213. package/dist/cdn/assets/common/t9n/messages.pl.json +1 -1
  214. package/dist/cdn/assets/common/t9n/messages.pt-BR.json +1 -1
  215. package/dist/cdn/assets/common/t9n/messages.pt-PT.json +1 -1
  216. package/dist/cdn/assets/common/t9n/messages.ro.json +1 -1
  217. package/dist/cdn/assets/common/t9n/messages.ru.json +1 -1
  218. package/dist/cdn/assets/common/t9n/messages.sk.json +1 -1
  219. package/dist/cdn/assets/common/t9n/messages.sl.json +1 -1
  220. package/dist/cdn/assets/common/t9n/messages.sr.json +1 -1
  221. package/dist/cdn/assets/common/t9n/messages.sv.json +1 -1
  222. package/dist/cdn/assets/common/t9n/messages.th.json +1 -1
  223. package/dist/cdn/assets/common/t9n/messages.tr.json +1 -1
  224. package/dist/cdn/assets/common/t9n/messages.uk.json +1 -1
  225. package/dist/cdn/assets/common/t9n/messages.vi.json +1 -1
  226. package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -1
  227. package/dist/cdn/assets/common/t9n/messages.zh-HK.json +1 -1
  228. package/dist/cdn/assets/common/t9n/messages.zh-TW.json +1 -1
  229. package/dist/cdn/index.js +2 -2
  230. package/dist/cdn/main.css +1 -1
  231. package/dist/chart-rendering/common/events/index.d.ts +7 -8
  232. package/dist/chart-rendering/common/events/interfaces.d.ts +1 -0
  233. package/dist/chart-rendering/common/interfaces.d.ts +5 -1
  234. package/dist/chart-rendering/common/loading-indicator/index.d.ts +1 -1
  235. package/dist/chart-rendering/next/chart-library-elements/loading-indicator/index.d.ts +1 -22
  236. package/dist/chart-rendering/next/chart-library-elements/loading-indicator/interfaces.d.ts +0 -7
  237. package/dist/chart-rendering/next/utils/chart-modal/index.d.ts +4 -52
  238. package/dist/chart-rendering/stable/chart-library-elements/loading-indicator/index.d.ts +1 -19
  239. package/dist/chart-rendering/stable/chart-library-elements/loading-indicator/interfaces.d.ts +0 -5
  240. package/dist/chart-rendering/stable/index.d.ts +4 -1
  241. package/dist/chart-rendering/stable/interfaces.d.ts +0 -4
  242. package/dist/chart-rendering/stable/utils/error-modal/index.d.ts +2 -37
  243. package/dist/chunks/action-bar-utils.js +1 -1
  244. package/dist/chunks/axis-lines-symbol.js +1 -1
  245. package/dist/chunks/axis-model-wrapper.js +1 -1
  246. package/dist/chunks/bar-chart-model.js +1 -1
  247. package/dist/chunks/bar-chart-series.js +1 -1
  248. package/dist/chunks/bg_BG.js +1 -1
  249. package/dist/chunks/bg_BG2.js +1 -1
  250. package/dist/chunks/box-plot-data.js +1 -1
  251. package/dist/chunks/box-plot-model.js +1 -1
  252. package/dist/chunks/chart-ui-utils.js +1 -1
  253. package/dist/chunks/chart-ui-utils2.js +1 -1
  254. package/dist/chunks/class-breaks.js +1 -1
  255. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  256. package/dist/chunks/common.js +1 -1
  257. package/dist/chunks/data-labels-symbol.js +1 -1
  258. package/dist/chunks/data-labels-visibility.js +1 -1
  259. package/dist/chunks/data.js +1 -1
  260. package/dist/chunks/default.js +1 -1
  261. package/dist/chunks/gauge-model.js +1 -1
  262. package/dist/chunks/generate-x-axis-title.js +1 -1
  263. package/dist/chunks/heat-chart-model.js +2 -2
  264. package/dist/chunks/histogram-data.js +1 -1
  265. package/dist/chunks/histogram-model.js +1 -1
  266. package/dist/chunks/index.js +36 -35
  267. package/dist/chunks/index2.js +1 -1
  268. package/dist/chunks/index3.js +1 -1
  269. package/dist/chunks/index4.js +1 -1
  270. package/dist/chunks/index5.js +14 -13
  271. package/dist/chunks/interfaces.js +1 -1
  272. package/dist/chunks/line-chart-model.js +1 -1
  273. package/dist/chunks/model-setter.js +1 -1
  274. package/dist/chunks/model-with-multi-axes.js +1 -1
  275. package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
  276. package/dist/chunks/pie-chart-data.js +1 -1
  277. package/dist/chunks/pie-chart-model.js +1 -1
  278. package/dist/chunks/popover-ui-utils.js +1 -1
  279. package/dist/chunks/radar-chart-model.js +1 -1
  280. package/dist/chunks/resource.js +1 -1
  281. package/dist/chunks/rest-js-object-literals.js +1 -1
  282. package/dist/chunks/rotated-state.js +1 -1
  283. package/dist/chunks/runtime.js +1 -1
  284. package/dist/chunks/scatterplot-model.js +1 -1
  285. package/dist/chunks/serial-chart-data.js +1 -1
  286. package/dist/chunks/serial-chart-model.js +1 -1
  287. package/dist/chunks/series-types.js +1 -1
  288. package/dist/chunks/sk_SK.js +1 -1
  289. package/dist/chunks/store.js +1 -1
  290. package/dist/chunks/type-guards.js +1 -1
  291. package/dist/chunks/useT9n.js +1 -1
  292. package/dist/chunks/utils.js +1 -1
  293. package/dist/chunks/utils2.js +1 -1
  294. package/dist/chunks/web-component-utils.js +1 -1
  295. package/dist/chunks/x-axis-labels-visibility.js +1 -1
  296. package/dist/components/arcgis-chart/customElement.d.ts +12 -5
  297. package/dist/components/arcgis-chart/customElement.js +6518 -6760
  298. package/dist/components/arcgis-chart/index.d.ts +2 -0
  299. package/dist/components/arcgis-chart/index.js +2 -0
  300. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  301. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  302. package/dist/components/arcgis-charts-config-axis/customElement.js +22 -22
  303. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  304. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +19 -19
  305. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +18 -18
  306. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  307. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +15 -15
  308. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  309. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +20 -20
  310. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +30 -30
  311. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  312. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +20 -20
  313. package/dist/components/arcgis-charts-config-category-format/customElement.js +19 -19
  314. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +19 -19
  315. package/dist/components/arcgis-charts-config-color-style/customElement.js +11 -11
  316. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  317. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  318. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  319. package/dist/components/arcgis-charts-config-font-style/customElement.js +18 -18
  320. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  321. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  322. package/dist/components/arcgis-charts-config-general/customElement.js +19 -19
  323. package/dist/components/arcgis-charts-config-guide/customElement.js +35 -35
  324. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  325. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  326. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  327. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  328. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +48 -48
  329. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.d.ts +2 -2
  330. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +29 -29
  331. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  332. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +29 -29
  333. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +13 -13
  334. package/dist/components/arcgis-charts-config-info-modal/customElement.d.ts +12 -0
  335. package/dist/components/arcgis-charts-config-info-modal/customElement.js +25 -0
  336. package/dist/components/arcgis-charts-config-info-modal/index.d.ts +1 -0
  337. package/dist/components/arcgis-charts-config-info-modal/index.js +1 -0
  338. package/dist/components/arcgis-charts-config-info-modal/resource.d.ts +3 -0
  339. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  340. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  341. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +15 -15
  342. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +22 -22
  343. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  344. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +18 -18
  345. package/dist/components/arcgis-charts-config-line-style/customElement.js +11 -11
  346. package/dist/components/arcgis-charts-config-number-format/customElement.js +24 -24
  347. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  348. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  349. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +34 -34
  350. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  351. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +16 -16
  352. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  353. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +20 -20
  354. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +22 -22
  355. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +14 -14
  356. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  357. package/dist/docs/api.json +178 -26
  358. package/dist/docs/docs.json +157 -19
  359. package/dist/docs/vscode.html-custom-data.json +25 -1
  360. package/dist/docs/web-types.json +58 -2
  361. package/dist/index.d.ts +5 -0
  362. package/dist/index.js +1 -1
  363. package/dist/loader.js +2 -1
  364. package/dist/model/heat-chart-model/heat-chart-model.d.ts +1 -1
  365. package/dist/model.js +1 -1
  366. package/dist/types/lumina.d.ts +6 -0
  367. package/dist/types/preact.d.ts +7 -0
  368. package/dist/types/react.d.ts +8 -0
  369. package/dist/types/stencil.d.ts +6 -0
  370. package/dist/utils/chart-config/validator/interfaces.d.ts +1 -0
  371. package/dist/utils/components/error-modal-utils.d.ts +22 -0
  372. package/dist/utils/layer/query-parser/index.d.ts +2 -2
  373. package/dist/utils/types/index.d.ts +1 -0
  374. package/package.json +3 -3
  375. package/dist/cdn/5IQIHGWP.js +0 -4
  376. package/dist/cdn/5ZQNHXXD.js +0 -4
  377. package/dist/cdn/6HRJYONF.js +0 -4
  378. package/dist/cdn/7IJWGHYS.js +0 -4
  379. package/dist/cdn/AOKVSUIH.js +0 -4
  380. package/dist/cdn/F7NRRR3T.js +0 -4
  381. package/dist/cdn/GIZYIH77.js +0 -4
  382. package/dist/cdn/HZPY6DNK.js +0 -4
  383. package/dist/cdn/IMDCZRKX.js +0 -4
  384. package/dist/cdn/IVBO3UZX.js +0 -4
  385. package/dist/cdn/JJS3F6GU.js +0 -4
  386. package/dist/cdn/LRKUFVPM.js +0 -4
  387. package/dist/cdn/LSHWTF42.js +0 -4
  388. package/dist/cdn/O4QFRRKK.js +0 -4
  389. package/dist/cdn/OPI3SGBW.js +0 -4
  390. package/dist/cdn/OXDG56YL.js +0 -4
  391. package/dist/cdn/QT5UYLQ4.js +0 -4
  392. package/dist/cdn/QU4A7QPE.js +0 -4
  393. package/dist/cdn/R36AM327.js +0 -4
  394. package/dist/cdn/RQ6S74GA.js +0 -4
  395. package/dist/cdn/SDYHRUT5.js +0 -4
  396. package/dist/cdn/SMRIUQDY.js +0 -4
  397. package/dist/cdn/THZM3X2A.js +0 -4
  398. package/dist/cdn/UCWBWNTL.js +0 -4
  399. package/dist/cdn/V2RBEV67.js +0 -4
@@ -1,8 +1,8 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.124 */
4
- import{C as Ke,D as Vr,a as ua,g as Rr,j as ko,k as er,m as Ro,q as En,s as Te,t as hr,u as ha,v as jr,w as me,x as Oe,y as Ce}from"./7SRXBXPZ.js";import{c as qo,d as Dn,e as $t,f as mt}from"./GBSVT554.js";import{a as g,b as j,c as Ge,e as ki,f as yt,h as ze,i as pa,j as jo,k as Q,l as gt,n as at,o as Me,p as Vo,q as pr,s as Wo,t as _o,v as nt,y as Y}from"./JKVFIMBB.js";import{G as Ot}from"./3YX74DF2.js";import{b as J,d as $o}from"./YUUP7TFJ.js";export default $arcgis.t(([Sm,Js,Ii,{substitute:qe},tc,wm,rc,an,Cm,Ks,xm,Fm,Kc,Im,Tm,Pm,,Om,Am,Ys])=>{var Xo=J((ZC,$n)=>{function Bh(t,e){var r=e&&e.cache?e.cache:jh,a=e&&e.serializer?e.serializer:Rh,i=e&&e.strategy?e.strategy:$h;return i(t,{cache:r,serializer:a})}function Mh(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Ko(t,e,r,a){var i=Mh(a)?a:r(a),n=e.get(i);return typeof n>"u"&&(n=t.call(this,a),e.set(i,n)),n}function Yo(t,e,r){var a=Array.prototype.slice.call(arguments,3),i=r(a),n=e.get(i);return typeof n>"u"&&(n=t.apply(this,a),e.set(i,n)),n}function Mn(t,e,r,a,i){return r.bind(e,t,a,i)}function $h(t,e){var r=t.length===1?Ko:Yo;return Mn(t,this,r,e.cache.create(),e.serializer)}function qh(t,e){var r=Yo;return Mn(t,this,r,e.cache.create(),e.serializer)}function kh(t,e){var r=Ko;return Mn(t,this,r,e.cache.create(),e.serializer)}function Rh(){return JSON.stringify(arguments)}function Sa(){this.cache=Object.create(null)}Sa.prototype.has=function(t){return t in this.cache};Sa.prototype.get=function(t){return this.cache[t]};Sa.prototype.set=function(t,e){this.cache[t]=e};var jh={create:function(){return new Sa}};$n.exports=Bh;$n.exports.strategies={variadic:qh,monadic:kh}});var tl=J((wa,el)=>{(function(t,e){typeof wa=="object"&&typeof el<"u"?e(wa):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(wa,(function(t){"use strict";function e(){for(var F=arguments.length,w=Array(F),T=0;T<F;T++)w[T]=arguments[T];if(w.length>1){w[0]=w[0].slice(0,-1);for(var D=w.length-1,B=1;B<D;++B)w[B]=w[B].slice(1,-1);return w[D]=w[D].slice(1),w.join("")}else return w[0]}function r(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,w){var T=F;if(w)for(var D in w)T[D]=w[D];return T}function o(F){var w="[A-Za-z]",T="[\\x0D]",D="[0-9]",B="[\\x22]",_=e(D,"[A-Fa-f]"),ee="[\\x0A]",le="[\\x20]",he=r(r("%[EFef]"+_+"%"+_+_+"%"+_+_)+"|"+r("%[89A-Fa-f]"+_+"%"+_+_)+"|"+r("%"+_+_)),je="[\\:\\/\\?\\#\\[\\]\\@]",ne="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ee=e(je,ne),Ve=F?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Pe=F?"[\\uE000-\\uF8FF]":"[]",ce=e(w,D,"[\\-\\.\\_\\~]",Ve),De=r(w+e(w,D,"[\\+\\-\\.]")+"*"),ge=r(r(he+"|"+e(ce,ne,"[\\:]"))+"*"),$r=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("[1-9]"+D)+"|"+D),ht=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("0?[1-9]"+D)+"|0?0?"+D),Tt=r(ht+"\\."+ht+"\\."+ht+"\\."+ht),Se=r(_+"{1,4}"),ft=r(r(Se+"\\:"+Se)+"|"+Tt),Pt=r(r(Se+"\\:")+"{6}"+ft),Gt=r("\\:\\:"+r(Se+"\\:")+"{5}"+ft),qr=r(r(Se)+"?\\:\\:"+r(Se+"\\:")+"{4}"+ft),Kt=r(r(r(Se+"\\:")+"{0,1}"+Se)+"?\\:\\:"+r(Se+"\\:")+"{3}"+ft),Ni=r(r(r(Se+"\\:")+"{0,2}"+Se)+"?\\:\\:"+r(Se+"\\:")+"{2}"+ft),la=r(r(r(Se+"\\:")+"{0,3}"+Se)+"?\\:\\:"+Se+"\\:"+ft),da=r(r(r(Se+"\\:")+"{0,4}"+Se)+"?\\:\\:"+ft),ri=r(r(r(Se+"\\:")+"{0,5}"+Se)+"?\\:\\:"+Se),ii=r(r(r(Se+"\\:")+"{0,6}"+Se)+"?\\:\\:"),Yt=r([Pt,Gt,qr,Kt,Ni,la,da,ri,ii].join("|")),ai=r(r(ce+"|"+he)+"+"),An=r(Yt+"\\%25"+ai),kr=r(Yt+r("\\%25|\\%(?!"+_+"{2})")+ai),Sh=r("[vV]"+_+"+\\."+e(ce,ne,"[\\:]")+"+"),wh=r("\\["+r(kr+"|"+Yt+"|"+Sh)+"\\]"),Do=r(r(he+"|"+e(ce,ne))+"*"),Bi=r(wh+"|"+Tt+"(?!"+Do+")|"+Do),Mi=r(D+"*"),No=r(r(ge+"@")+"?"+Bi+r("\\:"+Mi)+"?"),$i=r(he+"|"+e(ce,ne,"[\\:\\@]")),Ch=r($i+"*"),Bo=r($i+"+"),xh=r(r(he+"|"+e(ce,ne,"[\\@]"))+"+"),Xt=r(r("\\/"+Ch)+"*"),ni=r("\\/"+r(Bo+Xt)+"?"),Ln=r(xh+Xt),ca=r(Bo+Xt),si="(?!"+$i+")",uC=r(Xt+"|"+ni+"|"+Ln+"|"+ca+"|"+si),oi=r(r($i+"|"+e("[\\/\\?]",Pe))+"*"),qi=r(r($i+"|[\\/\\?]")+"*"),Mo=r(r("\\/\\/"+No+Xt)+"|"+ni+"|"+ca+"|"+si),Fh=r(De+"\\:"+Mo+r("\\?"+oi)+"?"+r("\\#"+qi)+"?"),Ih=r(r("\\/\\/"+No+Xt)+"|"+ni+"|"+Ln+"|"+si),Th=r(Ih+r("\\?"+oi)+"?"+r("\\#"+qi)+"?"),pC=r(Fh+"|"+Th),hC=r(De+"\\:"+Mo+r("\\?"+oi)+"?"),fC="^("+De+")\\:"+r(r("\\/\\/("+r("("+ge+")@")+"?("+Bi+")"+r("\\:("+Mi+")")+"?)")+"?("+Xt+"|"+ni+"|"+ca+"|"+si+")")+r("\\?("+oi+")")+"?"+r("\\#("+qi+")")+"?$",mC="^(){0}"+r(r("\\/\\/("+r("("+ge+")@")+"?("+Bi+")"+r("\\:("+Mi+")")+"?)")+"?("+Xt+"|"+ni+"|"+Ln+"|"+si+")")+r("\\?("+oi+")")+"?"+r("\\#("+qi+")")+"?$",yC="^("+De+")\\:"+r(r("\\/\\/("+r("("+ge+")@")+"?("+Bi+")"+r("\\:("+Mi+")")+"?)")+"?("+Xt+"|"+ni+"|"+ca+"|"+si+")")+r("\\?("+oi+")")+"?$",gC="^"+r("\\#("+qi+")")+"?$",bC="^"+r("("+ge+")@")+"?("+Bi+")"+r("\\:("+Mi+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",w,D,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",ce,ne),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",ce,ne),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",ce,ne),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",ce,ne),"g"),NOT_QUERY:new RegExp(e("[^\\%]",ce,ne,"[\\:\\@\\/\\?]",Pe),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",ce,ne,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",ce,ne),"g"),UNRESERVED:new RegExp(ce,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",ce,Ee),"g"),PCT_ENCODED:new RegExp(he,"g"),IPV4ADDRESS:new RegExp("^("+Tt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Yt+")"+r(r("\\%25|\\%(?!"+_+"{2})")+"("+ai+")")+"?\\]?$")}}var l=o(!1),d=o(!0),c=(function(){function F(w,T){var D=[],B=!0,_=!1,ee=void 0;try{for(var le=w[Symbol.iterator](),he;!(B=(he=le.next()).done)&&(D.push(he.value),!(T&&D.length===T));B=!0);}catch(je){_=!0,ee=je}finally{try{!B&&le.return&&le.return()}finally{if(_)throw ee}}return D}return function(w,T){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return F(w,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=function(F){if(Array.isArray(F)){for(var w=0,T=Array(F.length);w<F.length;w++)T[w]=F[w];return T}else return Array.from(F)},h=2147483647,p=36,f=1,m=26,y=38,b=700,v=72,S=128,x="-",I=/^xn--/,A=/[^\0-\x7E]/,q=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=p-f,M=Math.floor,N=String.fromCharCode;function k(F){throw new RangeError(L[F])}function $(F,w){for(var T=[],D=F.length;D--;)T[D]=w(F[D]);return T}function E(F,w){var T=F.split("@"),D="";T.length>1&&(D=T[0]+"@",F=T[1]),F=F.replace(q,".");var B=F.split("."),_=$(B,w).join(".");return D+_}function R(F){for(var w=[],T=0,D=F.length;T<D;){var B=F.charCodeAt(T++);if(B>=55296&&B<=56319&&T<D){var _=F.charCodeAt(T++);(_&64512)==56320?w.push(((B&1023)<<10)+(_&1023)+65536):(w.push(B),T--)}else w.push(B)}return w}var z=function(w){return String.fromCodePoint.apply(String,u(w))},Z=function(w){return w-48<10?w-22:w-65<26?w-65:w-97<26?w-97:p},W=function(w,T){return w+22+75*(w<26)-((T!=0)<<5)},G=function(w,T,D){var B=0;for(w=D?M(w/b):w>>1,w+=M(w/T);w>O*m>>1;B+=p)w=M(w/O);return M(B+(O+1)*w/(w+y))},U=function(w){var T=[],D=w.length,B=0,_=S,ee=v,le=w.lastIndexOf(x);le<0&&(le=0);for(var he=0;he<le;++he)w.charCodeAt(he)>=128&&k("not-basic"),T.push(w.charCodeAt(he));for(var je=le>0?le+1:0;je<D;){for(var ne=B,Ee=1,Ve=p;;Ve+=p){je>=D&&k("invalid-input");var Pe=Z(w.charCodeAt(je++));(Pe>=p||Pe>M((h-B)/Ee))&&k("overflow"),B+=Pe*Ee;var ce=Ve<=ee?f:Ve>=ee+m?m:Ve-ee;if(Pe<ce)break;var De=p-ce;Ee>M(h/De)&&k("overflow"),Ee*=De}var ge=T.length+1;ee=G(B-ne,ge,ne==0),M(B/ge)>h-_&&k("overflow"),_+=M(B/ge),B%=ge,T.splice(B++,0,_)}return String.fromCodePoint.apply(String,T)},ie=function(w){var T=[];w=R(w);var D=w.length,B=S,_=0,ee=v,le=!0,he=!1,je=void 0;try{for(var ne=w[Symbol.iterator](),Ee;!(le=(Ee=ne.next()).done);le=!0){var Ve=Ee.value;Ve<128&&T.push(N(Ve))}}catch(kr){he=!0,je=kr}finally{try{!le&&ne.return&&ne.return()}finally{if(he)throw je}}var Pe=T.length,ce=Pe;for(Pe&&T.push(x);ce<D;){var De=h,ge=!0,$r=!1,ht=void 0;try{for(var Tt=w[Symbol.iterator](),Se;!(ge=(Se=Tt.next()).done);ge=!0){var ft=Se.value;ft>=B&&ft<De&&(De=ft)}}catch(kr){$r=!0,ht=kr}finally{try{!ge&&Tt.return&&Tt.return()}finally{if($r)throw ht}}var Pt=ce+1;De-B>M((h-_)/Pt)&&k("overflow"),_+=(De-B)*Pt,B=De;var Gt=!0,qr=!1,Kt=void 0;try{for(var Ni=w[Symbol.iterator](),la;!(Gt=(la=Ni.next()).done);Gt=!0){var da=la.value;if(da<B&&++_>h&&k("overflow"),da==B){for(var ri=_,ii=p;;ii+=p){var Yt=ii<=ee?f:ii>=ee+m?m:ii-ee;if(ri<Yt)break;var ai=ri-Yt,An=p-Yt;T.push(N(W(Yt+ai%An,0))),ri=M(ai/An)}T.push(N(W(ri,0))),ee=G(_,Pt,ce==Pe),_=0,++ce}}}catch(kr){qr=!0,Kt=kr}finally{try{!Gt&&Ni.return&&Ni.return()}finally{if(qr)throw Kt}}++_,++B}return T.join("")},ke=function(w){return E(w,function(T){return I.test(T)?U(T.slice(4).toLowerCase()):T})},_e=function(w){return E(w,function(T){return A.test(T)?"xn--"+ie(T):T})},te={version:"2.1.0",ucs2:{decode:R,encode:z},decode:U,encode:ie,toASCII:_e,toUnicode:ke},ye={};function Fe(F){var w=F.charCodeAt(0),T=void 0;return w<16?T="%0"+w.toString(16).toUpperCase():w<128?T="%"+w.toString(16).toUpperCase():w<2048?T="%"+(w>>6|192).toString(16).toUpperCase()+"%"+(w&63|128).toString(16).toUpperCase():T="%"+(w>>12|224).toString(16).toUpperCase()+"%"+(w>>6&63|128).toString(16).toUpperCase()+"%"+(w&63|128).toString(16).toUpperCase(),T}function Re(F){for(var w="",T=0,D=F.length;T<D;){var B=parseInt(F.substr(T+1,2),16);if(B<128)w+=String.fromCharCode(B),T+=3;else if(B>=194&&B<224){if(D-T>=6){var _=parseInt(F.substr(T+4,2),16);w+=String.fromCharCode((B&31)<<6|_&63)}else w+=F.substr(T,6);T+=6}else if(B>=224){if(D-T>=9){var ee=parseInt(F.substr(T+4,2),16),le=parseInt(F.substr(T+7,2),16);w+=String.fromCharCode((B&15)<<12|(ee&63)<<6|le&63)}else w+=F.substr(T,9);T+=9}else w+=F.substr(T,3),T+=3}return w}function xt(F,w){function T(D){var B=Re(D);return B.match(w.UNRESERVED)?B:D}return F.scheme&&(F.scheme=String(F.scheme).replace(w.PCT_ENCODED,T).toLowerCase().replace(w.NOT_SCHEME,"")),F.userinfo!==void 0&&(F.userinfo=String(F.userinfo).replace(w.PCT_ENCODED,T).replace(w.NOT_USERINFO,Fe).replace(w.PCT_ENCODED,i)),F.host!==void 0&&(F.host=String(F.host).replace(w.PCT_ENCODED,T).toLowerCase().replace(w.NOT_HOST,Fe).replace(w.PCT_ENCODED,i)),F.path!==void 0&&(F.path=String(F.path).replace(w.PCT_ENCODED,T).replace(F.scheme?w.NOT_PATH:w.NOT_PATH_NOSCHEME,Fe).replace(w.PCT_ENCODED,i)),F.query!==void 0&&(F.query=String(F.query).replace(w.PCT_ENCODED,T).replace(w.NOT_QUERY,Fe).replace(w.PCT_ENCODED,i)),F.fragment!==void 0&&(F.fragment=String(F.fragment).replace(w.PCT_ENCODED,T).replace(w.NOT_FRAGMENT,Fe).replace(w.PCT_ENCODED,i)),F}function rt(F){return F.replace(/^0*(.*)/,"$1")||"0"}function Ie(F,w){var T=F.match(w.IPV4ADDRESS)||[],D=c(T,2),B=D[1];return B?B.split(".").map(rt).join("."):F}function ve(F,w){var T=F.match(w.IPV6ADDRESS)||[],D=c(T,3),B=D[1],_=D[2];if(B){for(var ee=B.toLowerCase().split("::").reverse(),le=c(ee,2),he=le[0],je=le[1],ne=je?je.split(":").map(rt):[],Ee=he.split(":").map(rt),Ve=w.IPV4ADDRESS.test(Ee[Ee.length-1]),Pe=Ve?7:8,ce=Ee.length-Pe,De=Array(Pe),ge=0;ge<Pe;++ge)De[ge]=ne[ge]||Ee[ce+ge]||"";Ve&&(De[Pe-1]=Ie(De[Pe-1],w));var $r=De.reduce(function(Pt,Gt,qr){if(!Gt||Gt==="0"){var Kt=Pt[Pt.length-1];Kt&&Kt.index+Kt.length===qr?Kt.length++:Pt.push({index:qr,length:1})}return Pt},[]),ht=$r.sort(function(Pt,Gt){return Gt.length-Pt.length})[0],Tt=void 0;if(ht&&ht.length>1){var Se=De.slice(0,ht.index),ft=De.slice(ht.index+ht.length);Tt=Se.join(":")+"::"+ft.join(":")}else Tt=De.join(":");return _&&(Tt+="%"+_),Tt}else return F}var Ft=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,He="".match(/(){0}/)[1]===void 0;function ue(F){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T={},D=w.iri!==!1?d:l;w.reference==="suffix"&&(F=(w.scheme?w.scheme+":":"")+"//"+F);var B=F.match(Ft);if(B){He?(T.scheme=B[1],T.userinfo=B[3],T.host=B[4],T.port=parseInt(B[5],10),T.path=B[6]||"",T.query=B[7],T.fragment=B[8],isNaN(T.port)&&(T.port=B[5])):(T.scheme=B[1]||void 0,T.userinfo=F.indexOf("@")!==-1?B[3]:void 0,T.host=F.indexOf("//")!==-1?B[4]:void 0,T.port=parseInt(B[5],10),T.path=B[6]||"",T.query=F.indexOf("?")!==-1?B[7]:void 0,T.fragment=F.indexOf("#")!==-1?B[8]:void 0,isNaN(T.port)&&(T.port=F.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?B[4]:void 0)),T.host&&(T.host=ve(Ie(T.host,D),D)),T.scheme===void 0&&T.userinfo===void 0&&T.host===void 0&&T.port===void 0&&!T.path&&T.query===void 0?T.reference="same-document":T.scheme===void 0?T.reference="relative":T.fragment===void 0?T.reference="absolute":T.reference="uri",w.reference&&w.reference!=="suffix"&&w.reference!==T.reference&&(T.error=T.error||"URI is not a "+w.reference+" reference.");var _=ye[(w.scheme||T.scheme||"").toLowerCase()];if(!w.unicodeSupport&&(!_||!_.unicodeSupport)){if(T.host&&(w.domainHost||_&&_.domainHost))try{T.host=te.toASCII(T.host.replace(D.PCT_ENCODED,Re).toLowerCase())}catch(ee){T.error=T.error||"Host's domain name can not be converted to ASCII via punycode: "+ee}xt(T,l)}else xt(T,D);_&&_.parse&&_.parse(T,w)}else T.error=T.error||"URI can not be parsed.";return T}function ur(F,w){var T=w.iri!==!1?d:l,D=[];return F.userinfo!==void 0&&(D.push(F.userinfo),D.push("@")),F.host!==void 0&&D.push(ve(Ie(String(F.host),T),T).replace(T.IPV6ADDRESS,function(B,_,ee){return"["+_+(ee?"%25"+ee:"")+"]"})),(typeof F.port=="number"||typeof F.port=="string")&&(D.push(":"),D.push(String(F.port))),D.length?D.join(""):void 0}var Jt=/^\.\.?\//,Br=/^\/\.(\/|$)/,Mr=/^\/\.\.(\/|$)/,Je=/^\/?(?:.|\n)*?(?=\/|$)/;function It(F){for(var w=[];F.length;)if(F.match(Jt))F=F.replace(Jt,"");else if(F.match(Br))F=F.replace(Br,"/");else if(F.match(Mr))F=F.replace(Mr,"/"),w.pop();else if(F==="."||F==="..")F="";else{var T=F.match(Je);if(T){var D=T[0];F=F.slice(D.length),w.push(D)}else throw new Error("Unexpected dot segment condition")}return w.join("")}function it(F){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=w.iri?d:l,D=[],B=ye[(w.scheme||F.scheme||"").toLowerCase()];if(B&&B.serialize&&B.serialize(F,w),F.host&&!T.IPV6ADDRESS.test(F.host)){if(w.domainHost||B&&B.domainHost)try{F.host=w.iri?te.toUnicode(F.host):te.toASCII(F.host.replace(T.PCT_ENCODED,Re).toLowerCase())}catch(le){F.error=F.error||"Host's domain name can not be converted to "+(w.iri?"Unicode":"ASCII")+" via punycode: "+le}}xt(F,T),w.reference!=="suffix"&&F.scheme&&(D.push(F.scheme),D.push(":"));var _=ur(F,w);if(_!==void 0&&(w.reference!=="suffix"&&D.push("//"),D.push(_),F.path&&F.path.charAt(0)!=="/"&&D.push("/")),F.path!==void 0){var ee=F.path;!w.absolutePath&&(!B||!B.absolutePath)&&(ee=It(ee)),_===void 0&&(ee=ee.replace(/^\/\//,"/%2F")),D.push(ee)}return F.query!==void 0&&(D.push("?"),D.push(F.query)),F.fragment!==void 0&&(D.push("#"),D.push(F.fragment)),D.join("")}function et(F,w){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments[3],B={};return D||(F=ue(it(F,T),T),w=ue(it(w,T),T)),T=T||{},!T.tolerant&&w.scheme?(B.scheme=w.scheme,B.userinfo=w.userinfo,B.host=w.host,B.port=w.port,B.path=It(w.path||""),B.query=w.query):(w.userinfo!==void 0||w.host!==void 0||w.port!==void 0?(B.userinfo=w.userinfo,B.host=w.host,B.port=w.port,B.path=It(w.path||""),B.query=w.query):(w.path?(w.path.charAt(0)==="/"?B.path=It(w.path):((F.userinfo!==void 0||F.host!==void 0||F.port!==void 0)&&!F.path?B.path="/"+w.path:F.path?B.path=F.path.slice(0,F.path.lastIndexOf("/")+1)+w.path:B.path=w.path,B.path=It(B.path)),B.query=w.query):(B.path=F.path,w.query!==void 0?B.query=w.query:B.query=F.query),B.userinfo=F.userinfo,B.host=F.host,B.port=F.port),B.scheme=F.scheme),B.fragment=w.fragment,B}function Ut(F,w,T){var D=s({scheme:"null"},T);return it(et(ue(F,D),ue(w,D),D,!0),D)}function pt(F,w){return typeof F=="string"?F=it(ue(F,w),w):a(F)==="object"&&(F=ue(it(F,w),w)),F}function oa(F,w,T){return typeof F=="string"?F=it(ue(F,T),T):a(F)==="object"&&(F=it(F,T)),typeof w=="string"?w=it(ue(w,T),T):a(w)==="object"&&(w=it(w,T)),F===w}function Pn(F,w){return F&&F.toString().replace(!w||!w.iri?l.ESCAPE:d.ESCAPE,Fe)}function Mt(F,w){return F&&F.toString().replace(!w||!w.iri?l.PCT_ENCODED:d.PCT_ENCODED,Re)}var Ei={scheme:"http",domainHost:!0,parse:function(w,T){return w.host||(w.error=w.error||"HTTP URIs must have a host."),w},serialize:function(w,T){var D=String(w.scheme).toLowerCase()==="https";return(w.port===(D?443:80)||w.port==="")&&(w.port=void 0),w.path||(w.path="/"),w}},Fo={scheme:"https",domainHost:Ei.domainHost,parse:Ei.parse,serialize:Ei.serialize};function Io(F){return typeof F.secure=="boolean"?F.secure:String(F.scheme).toLowerCase()==="wss"}var Di={scheme:"ws",domainHost:!0,parse:function(w,T){var D=w;return D.secure=Io(D),D.resourceName=(D.path||"/")+(D.query?"?"+D.query:""),D.path=void 0,D.query=void 0,D},serialize:function(w,T){if((w.port===(Io(w)?443:80)||w.port==="")&&(w.port=void 0),typeof w.secure=="boolean"&&(w.scheme=w.secure?"wss":"ws",w.secure=void 0),w.resourceName){var D=w.resourceName.split("?"),B=c(D,2),_=B[0],ee=B[1];w.path=_&&_!=="/"?_:void 0,w.query=ee,w.resourceName=void 0}return w.fragment=void 0,w}},To={scheme:"wss",domainHost:Di.domainHost,parse:Di.parse,serialize:Di.serialize},lh={},dh=!0,Po="[A-Za-z0-9\\-\\.\\_\\~"+(dh?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Ht="[0-9A-Fa-f]",ch=r(r("%[EFef]"+Ht+"%"+Ht+Ht+"%"+Ht+Ht)+"|"+r("%[89A-Fa-f]"+Ht+"%"+Ht+Ht)+"|"+r("%"+Ht+Ht)),uh="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ph="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",hh=e(ph,'[\\"\\\\]'),fh="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",mh=new RegExp(Po,"g"),ti=new RegExp(ch,"g"),yh=new RegExp(e("[^]",uh,"[\\.]",'[\\"]',hh),"g"),Oo=new RegExp(e("[^]",Po,fh),"g"),gh=Oo;function On(F){var w=Re(F);return w.match(mh)?w:F}var Ao={scheme:"mailto",parse:function(w,T){var D=w,B=D.to=D.path?D.path.split(","):[];if(D.path=void 0,D.query){for(var _=!1,ee={},le=D.query.split("&"),he=0,je=le.length;he<je;++he){var ne=le[he].split("=");switch(ne[0]){case"to":for(var Ee=ne[1].split(","),Ve=0,Pe=Ee.length;Ve<Pe;++Ve)B.push(Ee[Ve]);break;case"subject":D.subject=Mt(ne[1],T);break;case"body":D.body=Mt(ne[1],T);break;default:_=!0,ee[Mt(ne[0],T)]=Mt(ne[1],T);break}}_&&(D.headers=ee)}D.query=void 0;for(var ce=0,De=B.length;ce<De;++ce){var ge=B[ce].split("@");if(ge[0]=Mt(ge[0]),T.unicodeSupport)ge[1]=Mt(ge[1],T).toLowerCase();else try{ge[1]=te.toASCII(Mt(ge[1],T).toLowerCase())}catch($r){D.error=D.error||"Email address's domain name can not be converted to ASCII via punycode: "+$r}B[ce]=ge.join("@")}return D},serialize:function(w,T){var D=w,B=n(w.to);if(B){for(var _=0,ee=B.length;_<ee;++_){var le=String(B[_]),he=le.lastIndexOf("@"),je=le.slice(0,he).replace(ti,On).replace(ti,i).replace(yh,Fe),ne=le.slice(he+1);try{ne=T.iri?te.toUnicode(ne):te.toASCII(Mt(ne,T).toLowerCase())}catch(ce){D.error=D.error||"Email address's domain name can not be converted to "+(T.iri?"Unicode":"ASCII")+" via punycode: "+ce}B[_]=je+"@"+ne}D.path=B.join(",")}var Ee=w.headers=w.headers||{};w.subject&&(Ee.subject=w.subject),w.body&&(Ee.body=w.body);var Ve=[];for(var Pe in Ee)Ee[Pe]!==lh[Pe]&&Ve.push(Pe.replace(ti,On).replace(ti,i).replace(Oo,Fe)+"="+Ee[Pe].replace(ti,On).replace(ti,i).replace(gh,Fe));return Ve.length&&(D.query=Ve.join("&")),D}},bh=/^([^\:]+)\:(.*)/,Lo={scheme:"urn",parse:function(w,T){var D=w.path&&w.path.match(bh),B=w;if(D){var _=T.scheme||B.scheme||"urn",ee=D[1].toLowerCase(),le=D[2],he=_+":"+(T.nid||ee),je=ye[he];B.nid=ee,B.nss=le,B.path=void 0,je&&(B=je.parse(B,T))}else B.error=B.error||"URN can not be parsed.";return B},serialize:function(w,T){var D=T.scheme||w.scheme||"urn",B=w.nid,_=D+":"+(T.nid||B),ee=ye[_];ee&&(w=ee.serialize(w,T));var le=w,he=w.nss;return le.path=(B||T.nid)+":"+he,le}},vh=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Eo={scheme:"urn:uuid",parse:function(w,T){var D=w;return D.uuid=D.nss,D.nss=void 0,!T.tolerant&&(!D.uuid||!D.uuid.match(vh))&&(D.error=D.error||"UUID is not valid."),D},serialize:function(w,T){var D=w;return D.nss=(w.uuid||"").toLowerCase(),D}};ye[Ei.scheme]=Ei,ye[Fo.scheme]=Fo,ye[Di.scheme]=Di,ye[To.scheme]=To,ye[Ao.scheme]=Ao,ye[Lo.scheme]=Lo,ye[Eo.scheme]=Eo,t.SCHEMES=ye,t.pctEncChar=Fe,t.pctDecChars=Re,t.parse=ue,t.removeDotSegments=It,t.serialize=it,t.resolveComponents=et,t.resolve=Ut,t.normalize=pt,t.equal=oa,t.escapeComponent=Pn,t.unescapeComponent=Mt,Object.defineProperty(t,"__esModule",{value:!0})}))});var Ca=J((JC,rl)=>{"use strict";rl.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 al=J((KC,il)=>{"use strict";il.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 Wr=J((YC,ol)=>{"use strict";ol.exports={copy:Vh,checkDataType:qn,checkDataTypes:Wh,coerceToTypes:_h,toHash:Rn,getProperty:jn,escapeQuotes:Vn,equal:Ca(),ucs2length:al(),varOccurences:Hh,varReplace:Gh,schemaHasRules:Qh,schemaHasRulesExcept:Zh,schemaUnknownRules:Jh,toQuotedString:kn,getPathExpr:Kh,getPath:Yh,getData:tf,unescapeFragment:rf,unescapeJsonPointer:_n,escapeFragment:af,escapeJsonPointer:Wn};function Vh(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function qn(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 Wh(t,e,r){switch(t.length){case 1:return qn(t[0],e,r,!0);default:var a="",i=Rn(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?" && ":"")+qn(n,e,r,!0);return a}}var nl=Rn(["string","number","integer","boolean","null"]);function _h(t,e){if(Array.isArray(e)){for(var r=[],a=0;a<e.length;a++){var i=e[a];(nl[i]||t==="array"&&i==="array")&&(r[r.length]=i)}if(r.length)return r}else{if(nl[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Rn(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var zh=/^[a-z$_][a-z$_0-9]*$/i,Uh=/'|\\/g;function jn(t){return typeof t=="number"?"["+t+"]":zh.test(t)?"."+t:"['"+Vn(t)+"']"}function Vn(t){return t.replace(Uh,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Hh(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function Gh(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function Qh(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function Zh(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var a in t)if(a!=r&&e[a])return!0}function Jh(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function kn(t){return"'"+Vn(t)+"'"}function Kh(t,e,r,a){var i=r?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return sl(t,i)}function Yh(t,e,r){var a=kn(r?"/"+Wn(e):jn(e));return sl(t,a)}var Xh=/^\/(?:[^~]|~0|~1)*$/,ef=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function tf(t,e,r){var a,i,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!Xh.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,n="rootData"}else{if(s=t.match(ef),!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+=jn(_n(c)),o+=" && "+n)}return o}function sl(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function rf(t){return _n(decodeURIComponent(t))}function af(t){return encodeURIComponent(Wn(t))}function Wn(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function _n(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var zn=J((XC,ll)=>{"use strict";var nf=Wr();ll.exports=sf;function sf(t){nf.copy(t,this)}});var cl=J((ex,dl)=>{"use strict";var fr=dl.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(){};xa(e,a,i,t,"",t)};fr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};fr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};fr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};fr.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 xa(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 fr.arrayKeywords)for(var h=0;h<u.length;h++)xa(t,e,r,u[h],i+"/"+c+"/"+h,n,i,c,a,h)}else if(c in fr.propsKeywords){if(u&&typeof u=="object")for(var p in u)xa(t,e,r,u[p],i+"/"+c+"/"+of(p),n,i,c,a,p)}else(c in fr.keywords||t.allKeys&&!(c in fr.skipKeywords))&&xa(t,e,r,u,i+"/"+c,n,i,c,a)}r(a,i,n,s,o,l,d)}}function of(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Aa=J((tx,fl)=>{"use strict";var Ri=tl(),ul=Ca(),Pa=Wr(),Fa=zn(),lf=cl();fl.exports=yr;yr.normalizeId=mr;yr.fullPath=Ia;yr.url=Ta;yr.ids=hf;yr.inlineRef=Un;yr.schema=Oa;function yr(t,e,r){var a=this._refs[r];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return yr.call(this,t,e,a);if(a=a||this._schemas[r],a instanceof Fa)return Un(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var i=Oa.call(this,e,r),n,s,o;return i&&(n=i.schema,e=i.root,o=i.baseId),n instanceof Fa?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=Un(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function Oa(t,e){var r=Ri.parse(e),a=hl(r),i=Ia(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==i){var n=mr(a),s=this._refs[n];if(typeof s=="string")return df.call(this,t,s,r);if(s instanceof Fa)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof Fa){if(s.validate||this._compile(s),n==mr(e))return{schema:s,root:t,baseId:i};t=s}else return;if(!t.schema)return;i=Ia(this._getId(t.schema))}return pl.call(this,r,i,t.schema,t)}function df(t,e,r){var a=Oa.call(this,t,e);if(a){var i=a.schema,n=a.baseId;t=a.root;var s=this._getId(i);return s&&(n=Ta(n,s)),pl.call(this,r,n,i,t)}}var cf=Pa.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function pl(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=Pa.unescapeFragment(s),r=r[s],r===void 0)break;var o;if(!cf[s]&&(o=this._getId(r),o&&(e=Ta(e,o)),r.$ref)){var l=Ta(e,r.$ref),d=Oa.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 uf=Pa.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Un(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Hn(t);if(e)return Gn(t)<=e}function Hn(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!Hn(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!Hn(e)))return!1;return!0}function Gn(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+=Gn(r)),e==1/0)return 1/0}else for(var i in t){if(i=="$ref")return 1/0;if(uf[i])e++;else if(r=t[i],typeof r=="object"&&(e+=Gn(r)+1),e==1/0)return 1/0}return e}function Ia(t,e){e!==!1&&(t=mr(t));var r=Ri.parse(t);return hl(r)}function hl(t){return Ri.serialize(t).split("#")[0]+"#"}var pf=/#\/?$/;function mr(t){return t?t.replace(pf,""):""}function Ta(t,e){return e=mr(e),Ri.resolve(t,e)}function hf(t){var e=mr(this._getId(t)),r={"":e},a={"":Ia(e,!1)},i={},n=this;return lf(t,{allKeys:!0},function(s,o,l,d,c,u,h){if(o!==""){var p=n._getId(s),f=r[d],m=a[d]+"/"+c;if(h!==void 0&&(m+="/"+(typeof h=="number"?h:Pa.escapeFragment(h))),typeof p=="string"){p=f=mr(f?Ri.resolve(f,p):p);var y=n._refs[p];if(typeof y=="string"&&(y=n._refs[y]),y&&y.schema){if(!ul(s,y.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=mr(m))if(p[0]=="#"){if(i[p]&&!ul(s,i[p]))throw new Error('id "'+p+'" resolves to more than one schema');i[p]=s}else n._refs[p]=m}r[o]=f,a[o]=m}}),i}});var La=J((rx,yl)=>{"use strict";var Qn=Aa();yl.exports={Validation:ml(ff),MissingRef:ml(Zn)};function ff(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}Zn.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function Zn(t,e,r){this.message=r||Zn.message(t,e),this.missingRef=Qn.url(t,e),this.missingSchema=Qn.normalizeId(Qn.fullPath(this.missingRef))}function ml(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Jn=J((ix,gl)=>{"use strict";gl.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],h=n(s[u]);h&&(l&&(l+=","),l+=JSON.stringify(u)+":"+h)}return i.splice(d,1),"{"+l+"}"}})(t)}});var Kn=J((ax,bl)=>{"use strict";bl.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,h=e.schema[r],p=e.schemaPath+e.util.getProperty(r),f=e.errSchemaPath+"/"+r,I=!e.opts.allErrors,L,m="data"+(u||""),x="valid"+c;if(e.schema===!1){e.isTop?I=!0:i+=" var "+x+" = false; ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&I?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+x+" = true; ";return e.isTop&&(i+=" }; return validate; "),i}if(e.isTop){var v=e.isTop,c=e.level=0,u=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var S="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var c=e.level,u=e.dataLevel,m="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 x="valid"+c,I=!e.opts.allErrors,A="",q="",L,O=e.schema.type,M=Array.isArray(O);if(O&&e.opts.nullable&&e.schema.nullable===!0&&(M?O.indexOf("null")==-1&&(O=O.concat("null")):O!="null"&&(O=[O,"null"],M=!0)),M&&O.length==1&&(O=O[0],M=!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 N=e.util.coerceToTypes(e.opts.coerceTypes,O);var k=e.RULES.types[O];if(N||M||k===!0||k&&!Je(k)){var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",p=e.schemaPath+".type",f=e.errSchemaPath+"/type",$=M?"checkDataTypes":"checkDataType";if(i+=" if ("+e.util[$](O,m,e.opts.strictNumbers,!0)+") { ",N){var E="dataType"+c,R="coerced"+c;i+=" var "+E+" = typeof "+m+"; var "+R+" = undefined; ",e.opts.coerceTypes=="array"&&(i+=" if ("+E+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+E+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+R+" = "+m+"; } "),i+=" if ("+R+" !== undefined) ; ";var z=N;if(z)for(var Z,W=-1,G=z.length-1;W<G;)Z=z[W+=1],Z=="string"?i+=" else if ("+E+" == 'number' || "+E+" == 'boolean') "+R+" = '' + "+m+"; else if ("+m+" === null) "+R+" = ''; ":Z=="number"||Z=="integer"?(i+=" else if ("+E+" == 'boolean' || "+m+" === null || ("+E+" == 'string' && "+m+" && "+m+" == +"+m+" ",Z=="integer"&&(i+=" && !("+m+" % 1)"),i+=")) "+R+" = +"+m+"; "):Z=="boolean"?i+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+R+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+R+" = true; ":Z=="null"?i+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+R+" = null; ":e.opts.coerceTypes=="array"&&Z=="array"&&(i+=" else if ("+E+" == 'string' || "+E+" == 'number' || "+E+" == 'boolean' || "+m+" == null) "+R+" = ["+m+"]; ");i+=" else { ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",M?i+=""+O.join(","):i+=""+O,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",M?i+=""+O.join(","):i+=""+O,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&I?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+R+" !== undefined) { ";var U=u?"data"+(u-1||""):"parentData",ie=u?e.dataPathArr[u]:"parentDataProperty";i+=" "+m+" = "+R+"; ",u||(i+="if ("+U+" !== undefined)"),i+=" "+U+"["+ie+"] = "+R+"; } "}else{var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",M?i+=""+O.join(","):i+=""+O,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",M?i+=""+O.join(","):i+=""+O,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&I?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(e.schema.$ref&&!s)i+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",I&&(i+=" } if (errors === ",v?i+="0":i+="errs_"+c,i+=") { ",q+="}");else{var ke=e.RULES;if(ke){for(var k,_e=-1,te=ke.length-1;_e<te;)if(k=ke[_e+=1],Je(k)){if(k.type&&(i+=" if ("+e.util.checkDataType(k.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(k.type=="object"&&e.schema.properties){var h=e.schema.properties,ye=Object.keys(h),Fe=ye;if(Fe)for(var Re,xt=-1,rt=Fe.length-1;xt<rt;){Re=Fe[xt+=1];var Ie=h[Re];if(Ie.default!==void 0){var ve=m+e.util.getProperty(Re);if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+ve;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+ve+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+ve+" === null || "+ve+" === '' "),i+=" ) "+ve+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Ie.default)+" ":i+=" "+JSON.stringify(Ie.default)+" ",i+="; "}}}else if(k.type=="array"&&Array.isArray(e.schema.items)){var Ft=e.schema.items;if(Ft){for(var Ie,W=-1,He=Ft.length-1;W<He;)if(Ie=Ft[W+=1],Ie.default!==void 0){var ve=m+"["+W+"]";if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+ve;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+ve+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+ve+" === null || "+ve+" === '' "),i+=" ) "+ve+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Ie.default)+" ":i+=" "+JSON.stringify(Ie.default)+" ",i+="; "}}}}var ue=k.rules;if(ue){for(var ur,Jt=-1,Br=ue.length-1;Jt<Br;)if(ur=ue[Jt+=1],It(ur)){var Mr=ur.code(e,ur.keyword,k.type);Mr&&(i+=" "+Mr+" ",I&&(A+="}"))}}if(I&&(i+=" "+A+" ",A=""),k.type&&(i+=" } ",O&&O===k.type&&!N)){i+=" else { ";var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",M?i+=""+O.join(","):i+=""+O,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",M?i+=""+O.join(","):i+=""+O,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&I?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+=" } "}I&&(i+=" if (errors === ",v?i+="0":i+="errs_"+c,i+=") { ",q+="}")}}}I&&(i+=" "+q+" "),v?(n?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+x+" = errors === errs_"+c+";";function Je(et){for(var Ut=et.rules,pt=0;pt<Ut.length;pt++)if(It(Ut[pt]))return!0}function It(et){return e.schema[et.keyword]!==void 0||et.implements&&it(et)}function it(et){for(var Ut=et.implements,pt=0;pt<Ut.length;pt++)if(e.schema[Ut[pt]]!==void 0)return!0}return i}});var xl=J((nx,Cl)=>{"use strict";var Ea=Aa(),Na=Wr(),Sl=La(),mf=Jn(),vl=Kn(),yf=Na.ucs2length,gf=Ca(),bf=Sl.Validation;Cl.exports=Yn;function Yn(t,e,r,a){var i=this,n=this._opts,s=[void 0],o={},l=[],d={},c=[],u={},h=[];e=e||{schema:t,refVal:s,refs:o};var p=vf.call(this,t,e,a),f=this._compilations[p.index];if(p.compiling)return f.callValidate=S;var m=this._formats,y=this.RULES;try{var b=x(t,e,r,a);f.validate=b;var v=f.callValidate;return v&&(v.schema=b.schema,v.errors=null,v.refs=b.refs,v.refVal=b.refVal,v.root=b.root,v.$async=b.$async,n.sourceCode&&(v.source=b.source)),b}finally{Sf.call(this,t,e,a)}function S(){var $=f.validate,E=$.apply(this,arguments);return S.errors=$.errors,E}function x($,E,R,z){var Z=!E||E&&E.schema==$;if(E.schema!=e.schema)return Yn.call(i,$,E,R,z);var W=$.$async===!0,G=vl({isTop:!0,schema:$,isRoot:Z,baseId:z,root:E,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Sl.MissingRef,RULES:y,validate:vl,util:Na,resolve:Ea,resolveRef:I,usePattern:M,useDefault:N,useCustomRule:k,opts:n,formats:m,logger:i.logger,self:i});G=Da(s,xf)+Da(l,wf)+Da(c,Cf)+Da(h,Ff)+G,n.processCode&&(G=n.processCode(G,$));var U;try{var ie=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",G);U=ie(i,y,m,e,s,c,h,gf,yf,bf),s[0]=U}catch(ke){throw i.logger.error("Error compiling schema, function code:",G),ke}return U.schema=$,U.errors=null,U.refs=o,U.refVal=s,U.root=Z?U:E,W&&(U.$async=!0),n.sourceCode===!0&&(U.source={code:G,patterns:l,defaults:c}),U}function I($,E,R){E=Ea.url($,E);var z=o[E],Z,W;if(z!==void 0)return Z=s[z],W="refVal["+z+"]",O(Z,W);if(!R&&e.refs){var G=e.refs[E];if(G!==void 0)return Z=e.refVal[G],W=A(E,Z),O(Z,W)}W=A(E);var U=Ea.call(i,x,e,E);if(U===void 0){var ie=r&&r[E];ie&&(U=Ea.inlineRef(ie,n.inlineRefs)?ie:Yn.call(i,ie,e,r,$))}if(U===void 0)q(E);else return L(E,U),O(U,W)}function A($,E){var R=s.length;return s[R]=E,o[$]=R,"refVal"+R}function q($){delete o[$]}function L($,E){var R=o[$];s[R]=E}function O($,E){return typeof $=="object"||typeof $=="boolean"?{code:E,schema:$,inline:!0}:{code:E,$async:$&&!!$.$async}}function M($){var E=d[$];return E===void 0&&(E=d[$]=l.length,l[E]=$),"pattern"+E}function N($){switch(typeof $){case"boolean":case"number":return""+$;case"string":return Na.toQuotedString($);case"object":if($===null)return"null";var E=mf($),R=u[E];return R===void 0&&(R=u[E]=c.length,c[R]=$),"default"+R}}function k($,E,R,z){if(i._opts.validateSchema!==!1){var Z=$.definition.dependencies;if(Z&&!Z.every(function(Fe){return Object.prototype.hasOwnProperty.call(R,Fe)}))throw new Error("parent schema must have all required keywords: "+Z.join(","));var W=$.definition.validateSchema;if(W){var G=W(E);if(!G){var U="keyword schema is invalid: "+i.errorsText(W.errors);if(i._opts.validateSchema=="log")i.logger.error(U);else throw new Error(U)}}}var ie=$.definition.compile,ke=$.definition.inline,_e=$.definition.macro,te;if(ie)te=ie.call(i,E,R,z);else if(_e)te=_e.call(i,E,R,z),n.validateSchema!==!1&&i.validateSchema(te,!0);else if(ke)te=ke.call(i,z,$.keyword,E,R);else if(te=$.definition.validate,!te)return;if(te===void 0)throw new Error('custom keyword "'+$.keyword+'"failed to compile');var ye=h.length;return h[ye]=te,{code:"customRule"+ye,validate:te}}}function vf(t,e,r){var a=wl.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 Sf(t,e,r){var a=wl.call(this,t,e,r);a>=0&&this._compilations.splice(a,1)}function wl(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 wf(t,e){return"var pattern"+t+" = new RegExp("+Na.toQuotedString(e[t])+");"}function Cf(t){return"var default"+t+" = defaults["+t+"];"}function xf(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function Ff(t){return"var customRule"+t+" = customRules["+t+"];"}function Da(t,e){if(!t.length)return"";for(var r="",a=0;a<t.length;a++)r+=e(a,t);return r}});var Il=J((sx,Fl)=>{"use strict";var Ba=Fl.exports=function(){this._cache={}};Ba.prototype.put=function(e,r){this._cache[e]=r};Ba.prototype.get=function(e){return this._cache[e]};Ba.prototype.del=function(e){delete this._cache[e]};Ba.prototype.clear=function(){this._cache={}}});var ql=J((ox,$l)=>{"use strict";var If=Wr(),Tf=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Pf=[0,31,28,31,30,31,30,31,31,30,31,30,31],Of=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Tl=/^(?=.{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,Af=/^(?:[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,Lf=/^(?:[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,Pl=/^(?:(?:[^\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,Ol=/^(?:(?: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,Al=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Ll=/^(?:\/(?:[^~/]|~0|~1)*)*$/,El=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Dl=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;$l.exports=Ma;function Ma(t){return t=t=="full"?"full":"fast",If.copy(Ma[t])}Ma.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":Pl,url:Ol,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:Tl,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:Ml,uuid:Al,"json-pointer":Ll,"json-pointer-uri-fragment":El,"relative-json-pointer":Dl};Ma.full={date:Nl,time:Bl,"date-time":Nf,uri:Mf,"uri-reference":Lf,"uri-template":Pl,url:Ol,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:Tl,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:Ml,uuid:Al,"json-pointer":Ll,"json-pointer-uri-fragment":El,"relative-json-pointer":Dl};function Ef(t){return t%4===0&&(t%100!==0||t%400===0)}function Nl(t){var e=t.match(Tf);if(!e)return!1;var r=+e[1],a=+e[2],i=+e[3];return a>=1&&a<=12&&i>=1&&i<=(a==2&&Ef(r)?29:Pf[a])}function Bl(t,e){var r=t.match(Of);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 Df=/t|\s/i;function Nf(t){var e=t.split(Df);return e.length==2&&Nl(e[0])&&Bl(e[1],!0)}var Bf=/\/|:/;function Mf(t){return Bf.test(t)&&Af.test(t)}var $f=/[^\\]\\Z/;function Ml(t){if($f.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Rl=J((lx,kl)=>{"use strict";kl.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,h,p;if(o=="#"||o=="#/")e.isRoot?(h=e.async,p="validate"):(h=e.root.schema.$async===!0,p="root.refVal[0]");else{var f=e.resolveRef(e.baseId,o,e.isRoot);if(f===void 0){var m=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(m);var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&d?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(i+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),d&&(i+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,m)}else if(f.inline){var v=e.util.copy(e);v.level++;var S="valid"+v.level;v.schema=f.schema,v.schemaPath="",v.errSchemaPath=o;var x=e.validate(v).replace(/validate\.schema/g,f.code);i+=" "+x+" ",d&&(i+=" if ("+S+") { ")}else h=f.$async===!0||e.async&&f.$async!==!1,p=f.code}if(p){var y=y||[];y.push(i),i="",e.opts.passContext?i+=" "+p+".call(this, ":i+=" "+p+"( ",i+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",A=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+I+" , "+A+", rootData) ";var q=i;if(i=y.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(i+=" var "+u+"; "),i+=" try { await "+q+"; ",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 (!"+q+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",d&&(i+=" else { ")}return i}});var Vl=J((dx,jl)=>{"use strict";jl.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,h=d.baseId,p=!0,f=n;if(f)for(var m,y=-1,b=f.length-1;y<b;)m=f[y+=1],(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(p=!1,d.schema=m,d.schemaPath=s+"["+y+"]",d.errSchemaPath=o+"/"+y,i+=" "+e.validate(d)+" ",d.baseId=h,l&&(i+=" if ("+u+") { ",c+="}"));return l&&(p?i+=" if (true) { ":i+=" "+c.slice(0,-1)+" "),i}});var _l=J((cx,Wl)=>{"use strict";Wl.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||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b=o.every(function(L){return e.opts.strictKeywords?typeof L=="object"&&Object.keys(L).length>0||L===!1:e.util.schemaHasRules(L,e.RULES.all)});if(b){var v=f.baseId;i+=" var "+p+" = errors; var "+h+" = false; ";var S=e.compositeRule;e.compositeRule=f.compositeRule=!0;var x=o;if(x)for(var I,A=-1,q=x.length-1;A<q;)I=x[A+=1],f.schema=I,f.schemaPath=l+"["+A+"]",f.errSchemaPath=d+"/"+A,i+=" "+e.validate(f)+" ",f.baseId=v,i+=" "+h+" = "+h+" || "+y+"; if (!"+h+") { ",m+="}";e.compositeRule=f.compositeRule=S,i+=" "+m+" if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+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 Ul=J((ux,zl)=>{"use strict";zl.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 Gl=J((px,Hl)=>{"use strict";Hl.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||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o,p||(i+=" var schema"+n+" = validate.schema"+l+";"),i+="var "+h+" = equal("+u+", schema"+n+"); if (!"+h+") { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var y=i;return i=m.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 Zl=J((hx,Ql)=>{"use strict";Ql.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b="i"+n,v=f.dataLevel=e.dataLevel+1,S="data"+v,x=e.baseId,I=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(i+="var "+p+" = errors;var "+h+";",I){var A=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" var "+y+" = false; for (var "+b+" = 0; "+b+" < "+u+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var q=u+"["+b+"]";f.dataPathArr[v]=b;var L=e.validate(f);f.baseId=x,e.util.varOccurences(L,S)<2?i+=" "+e.util.varReplace(L,S,q)+" ":i+=" var "+S+" = "+q+"; "+L+" ",i+=" if ("+y+") break; } ",e.compositeRule=f.compositeRule=A,i+=" "+m+" if (!"+y+") {"}else i+=" if ("+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 M=i;return i=O.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+=" } else { ",I&&(i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(i+=" } "),i}});var Kl=J((fx,Jl)=>{"use strict";Jl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level,y={},b={},v=e.opts.ownProperties;for(A in o)if(A!="__proto__"){var S=o[A],x=Array.isArray(S)?b:y;x[A]=S}i+="var "+h+" = errors;";var I=e.errorPath;i+="var missing"+n+";";for(var A in b)if(x=b[A],x.length){if(i+=" if ( "+u+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),c){i+=" && ( ";var q=x;if(q)for(var L,O=-1,M=q.length-1;O<M;){L=q[O+=1],O&&(i+=" || ");var N=e.util.getProperty(L),k=u+N;i+=" ( ( "+k+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(L)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?L:N)+") ) "}i+=")) { ";var $="missing"+n,E="' + "+$+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(I,$,!0):I+" + "+$);var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+E+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var z=i;i=R.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+z+"]); ":i+=" validate.errors = ["+z+"]; return false; ":i+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var Z=x;if(Z)for(var L,W=-1,G=Z.length-1;W<G;){L=Z[W+=1];var N=e.util.getProperty(L),E=e.util.escapeQuotes(L),k=u+N;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(I,L,e.opts.jsonPointers)),i+=" if ( "+k+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(L)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+E+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" 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&&(f+="}",i+=" else { ")}e.errorPath=I;var U=p.baseId;for(var A in y){var S=y[A];(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))&&(i+=" "+m+" = true; if ( "+u+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),i+=") { ",p.schema=S,p.schemaPath=l+e.util.getProperty(A),p.errSchemaPath=d+"/"+e.util.escapeFragment(A),i+=" "+e.validate(p)+" ",p.baseId=U,i+=" } ",c&&(i+=" if ("+m+") { ",f+="}"))}return c&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var Xl=J((mx,Yl)=>{"use strict";Yl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o;var m="i"+n,y="schema"+n;p||(i+=" var "+y+" = validate.schema"+l+";"),i+="var "+h+";",p&&(i+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),i+=""+h+" = false;for (var "+m+"=0; "+m+"<"+y+".length; "+m+"++) if (equal("+u+", "+y+"["+m+"])) { "+h+" = true; break; }",p&&(i+=" } "),i+=" if (!"+h+") { ";var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var v=i;return i=b.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 td=J((yx,ed)=>{"use strict";ed.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||"");if(e.opts.format===!1)return c&&(i+=" if (true) { "),i;var h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=e.opts.unknownFormats,m=Array.isArray(f);if(h){var y="format"+n,b="isObject"+n,v="formatType"+n;i+=" var "+y+" = formats["+p+"]; var "+b+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+v+" = "+b+" && "+y+".type || 'string'; if ("+b+") { ",e.async&&(i+=" var async"+n+" = "+y+".async; "),i+=" "+y+" = "+y+".validate; } if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" (",f!="ignore"&&(i+=" ("+p+" && !"+y+" ",m&&(i+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),i+=") || "),i+=" ("+y+" && "+v+" == '"+a+"' && !(typeof "+y+" == 'function' ? ",e.async?i+=" (async"+n+" ? await "+y+"("+u+") : "+y+"("+u+")) ":i+=" "+y+"("+u+") ",i+=" : "+y+".test("+u+"))))) {"}else{var y=e.formats[o];if(!y){if(f=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(i+=" if (true) { "),i;if(m&&f.indexOf(o)>=0)return c&&(i+=" if (true) { "),i;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var b=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,v=b&&y.type||"string";if(b){var S=y.async===!0;y=y.validate}if(v!=a)return c&&(i+=" if (true) { "),i;if(S){if(!e.async)throw new Error("async format in sync schema");var x="formats"+e.util.getProperty(o)+".validate";i+=" if (!(await "+x+"("+u+"))) { "}else{i+=" if (! ";var x="formats"+e.util.getProperty(o);b&&(x+=".validate"),typeof y=="function"?i+=" "+x+"("+u+") ":i+=" "+x+".test("+u+") ",i+=") { "}}var I=I||[];I.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",h?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match format "`,h?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var A=i;return i=I.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}});var id=J((gx,rd)=>{"use strict";rd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e);f.level++;var m="valid"+f.level,y=e.schema.then,b=e.schema.else,v=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),S=b!==void 0&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all)),x=f.baseId;if(v||S){var I;f.createErrors=!1,f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" var "+p+" = errors; var "+h+" = true; ";var A=e.compositeRule;e.compositeRule=f.compositeRule=!0,i+=" "+e.validate(f)+" ",f.baseId=x,f.createErrors=!0,i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=f.compositeRule=A,v?(i+=" if ("+m+") { ",f.schema=e.schema.then,f.schemaPath=e.schemaPath+".then",f.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(f)+" ",f.baseId=x,i+=" "+h+" = "+m+"; ",v&&S?(I="ifClause"+n,i+=" var "+I+" = 'then'; "):I="'then'",i+=" } ",S&&(i+=" else { ")):i+=" if (!"+m+") { ",S&&(f.schema=e.schema.else,f.schemaPath=e.schemaPath+".else",f.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(f)+" ",f.baseId=x,i+=" "+h+" = "+m+"; ",v&&S?(I="ifClause"+n,i+=" var "+I+" = 'else'; "):I="'else'",i+=" } "),i+=" if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+I+" } ",e.opts.messages!==!1&&(i+=` , message: 'should match "' + `+I+` + '" 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 nd=J((bx,ad)=>{"use strict";ad.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b="i"+n,v=f.dataLevel=e.dataLevel+1,S="data"+v,x=e.baseId;if(i+="var "+p+" = errors;var "+h+";",Array.isArray(o)){var I=e.schema.additionalItems;if(I===!1){i+=" "+h+" = "+u+".length <= "+o.length+"; ";var A=d;d=e.errSchemaPath+"/additionalItems",i+=" if (!"+h+") { ";var q=q||[];q.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var L=i;i=q.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+L+"]); ":i+=" validate.errors = ["+L+"]; return false; ":i+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",d=A,c&&(m+="}",i+=" else { ")}var O=o;if(O){for(var M,N=-1,k=O.length-1;N<k;)if(M=O[N+=1],e.opts.strictKeywords?typeof M=="object"&&Object.keys(M).length>0||M===!1:e.util.schemaHasRules(M,e.RULES.all)){i+=" "+y+" = true; if ("+u+".length > "+N+") { ";var $=u+"["+N+"]";f.schema=M,f.schemaPath=l+"["+N+"]",f.errSchemaPath=d+"/"+N,f.errorPath=e.util.getPathExpr(e.errorPath,N,e.opts.jsonPointers,!0),f.dataPathArr[v]=N;var E=e.validate(f);f.baseId=x,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,$)+" ":i+=" var "+S+" = "+$+"; "+E+" ",i+=" } ",c&&(i+=" if ("+y+") { ",m+="}")}}if(typeof I=="object"&&(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:e.util.schemaHasRules(I,e.RULES.all))){f.schema=I,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+y+" = true; if ("+u+".length > "+o.length+") { for (var "+b+" = "+o.length+"; "+b+" < "+u+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var $=u+"["+b+"]";f.dataPathArr[v]=b;var E=e.validate(f);f.baseId=x,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,$)+" ":i+=" var "+S+" = "+$+"; "+E+" ",c&&(i+=" if (!"+y+") break; "),i+=" } } ",c&&(i+=" if ("+y+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" for (var "+b+" = 0; "+b+" < "+u+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var $=u+"["+b+"]";f.dataPathArr[v]=b;var E=e.validate(f);f.baseId=x,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,$)+" ":i+=" var "+S+" = "+$+"; "+E+" ",c&&(i+=" if (!"+y+") break; "),i+=" }"}return c&&(i+=" "+m+" if ("+p+" == errors) {"),i}});var Xn=J((vx,sd)=>{"use strict";sd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,x,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=r=="maximum",m=f?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[m],b=e.opts.$data&&y&&y.$data,v=f?"<":">",S=f?">":"<",x=void 0;if(!(h||typeof o=="number"||o===void 0))throw new Error(r+" must be number");if(!(b||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(m+" must be number or boolean");if(b){var I=e.util.getData(y.$data,s,e.dataPathArr),A="exclusive"+n,q="exclType"+n,L="exclIsNumber"+n,O="op"+n,M="' + "+O+" + '";i+=" var schemaExcl"+n+" = "+I+"; ",I="schemaExcl"+n,i+=" var "+A+"; var "+q+" = typeof "+I+"; if ("+q+" != 'boolean' && "+q+" != 'undefined' && "+q+" != 'number') { ";var x=m,N=N||[];N.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var k=i;i=N.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+q+" == 'number' ? ( ("+A+" = "+p+" === undefined || "+I+" "+v+"= "+p+") ? "+u+" "+S+"= "+I+" : "+u+" "+S+" "+p+" ) : ( ("+A+" = "+I+" === true) ? "+u+" "+S+"= "+p+" : "+u+" "+S+" "+p+" ) || "+u+" !== "+u+") { var op"+n+" = "+A+" ? '"+v+"' : '"+v+"='; ",o===void 0&&(x=m,d=e.errSchemaPath+"/"+m,p=I,h=b)}else{var L=typeof y=="number",M=v;if(L&&h){var O="'"+M+"'";i+=" if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" ( "+p+" === undefined || "+y+" "+v+"= "+p+" ? "+u+" "+S+"= "+y+" : "+u+" "+S+" "+p+" ) || "+u+" !== "+u+") { "}else{L&&o===void 0?(A=!0,x=m,d=e.errSchemaPath+"/"+m,p=y,S+="="):(L&&(p=Math[f?"min":"max"](y,o)),y===(L?p:!0)?(A=!0,x=m,d=e.errSchemaPath+"/"+m,S+="="):(A=!1,M+="="));var O="'"+M+"'";i+=" if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+u+" "+S+" "+p+" || "+u+" !== "+u+") { "}}x=x||r;var N=N||[];N.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+O+", limit: "+p+", exclusive: "+A+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+M+" ",h?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var k=i;return i=N.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}});var es=J((Sx,od)=>{"use strict";od.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,m,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxItems"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+u+".length "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxItems"?i+="more":i+="fewer",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var b=i;return i=y.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+="} ",c&&(i+=" else { "),i}});var ts=J((wx,ld)=>{"use strict";ld.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,m,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxLength"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?i+=" "+u+".length ":i+=" ucs2length("+u+") ",i+=" "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be ",r=="maxLength"?i+="longer":i+="shorter",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var b=i;return i=y.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+="} ",c&&(i+=" else { "),i}});var rs=J((Cx,dd)=>{"use strict";dd.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,m,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxProperties"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" Object.keys("+u+").length "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxProperties"?i+="more":i+="fewer",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var b=i;return i=y.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+="} ",c&&(i+=" else { "),i}});var ud=J((xx,cd)=>{"use strict";cd.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||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");i+="var division"+n+";if (",h&&(i+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),i+=" (division"+n+" = "+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+=" ) ",h&&(i+=" ) "),i+=" ) { ";var f=f||[];f.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",h?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var m=i;return i=f.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 hd=J((Fx,pd)=>{"use strict";pd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,p=e.util.copy(e);p.level++;var f="valid"+p.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d,i+=" var "+h+" = errors; ";var m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var y;p.opts.allErrors&&(y=p.opts.allErrors,p.opts.allErrors=!1),i+=" "+e.validate(p)+" ",p.createErrors=!0,y&&(p.opts.allErrors=y),e.compositeRule=p.compositeRule=m,i+=" if ("+f+") { ";var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var v=i;i=b.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 = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(i+=" if (false) { ");return i}});var md=J((Ix,fd)=>{"use strict";fd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b=f.baseId,v="prevValid"+n,S="passingSchemas"+n;i+="var "+p+" = errors , "+v+" = false , "+h+" = false , "+S+" = null; ";var x=e.compositeRule;e.compositeRule=f.compositeRule=!0;var I=o;if(I)for(var A,q=-1,L=I.length-1;q<L;)A=I[q+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(f.schema=A,f.schemaPath=l+"["+q+"]",f.errSchemaPath=d+"/"+q,i+=" "+e.validate(f)+" ",f.baseId=b):i+=" var "+y+" = true; ",q&&(i+=" if ("+y+" && "+v+") { "+h+" = false; "+S+" = ["+S+", "+q+"]; } else { ",m+="}"),i+=" if ("+y+") { "+h+" = "+v+" = true; "+S+" = "+q+"; }";return e.compositeRule=f.compositeRule=x,i+=""+m+"if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+S+" } ",e.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+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 gd=J((Tx,yd)=>{"use strict";yd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=h?"(new RegExp("+p+"))":e.usePattern(o);i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" !"+f+".test("+u+") ) { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",h?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,h?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var y=i;return i=m.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 vd=J((Px,bd)=>{"use strict";bd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level,y="key"+n,b="idx"+n,v=p.dataLevel=e.dataLevel+1,S="data"+v,x="dataProperties"+n,I=Object.keys(o||{}).filter(W),A=e.schema.patternProperties||{},q=Object.keys(A).filter(W),L=e.schema.additionalProperties,O=I.length||q.length,M=L===!1,N=typeof L=="object"&&Object.keys(L).length,k=e.opts.removeAdditional,$=M||N||k,E=e.opts.ownProperties,R=e.baseId,z=e.schema.required;if(z&&!(e.opts.$data&&z.$data)&&z.length<e.opts.loopRequired)var Z=e.util.toHash(z);function W(Mt){return Mt!=="__proto__"}if(i+="var "+h+" = errors;var "+m+" = true;",E&&(i+=" var "+x+" = undefined;"),$){if(E?i+=" "+x+" = "+x+" || Object.keys("+u+"); for (var "+b+"=0; "+b+"<"+x+".length; "+b+"++) { var "+y+" = "+x+"["+b+"]; ":i+=" for (var "+y+" in "+u+") { ",O){if(i+=" var isAdditional"+n+" = !(false ",I.length)if(I.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var G=I;if(G)for(var U,ie=-1,ke=G.length-1;ie<ke;)U=G[ie+=1],i+=" || "+y+" == "+e.util.toQuotedString(U)+" "}if(q.length){var _e=q;if(_e)for(var te,ye=-1,Fe=_e.length-1;ye<Fe;)te=_e[ye+=1],i+=" || "+e.usePattern(te)+".test("+y+") "}i+=" ); if (isAdditional"+n+") { "}if(k=="all")i+=" delete "+u+"["+y+"]; ";else{var Re=e.errorPath,xt="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),M)if(k)i+=" delete "+u+"["+y+"]; ";else{i+=" "+m+" = false; ";var rt=d;d=e.errSchemaPath+"/additionalProperties";var Ie=Ie||[];Ie.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+xt+"' } ",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 ve=i;i=Ie.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+ve+"]); ":i+=" validate.errors = ["+ve+"]; return false; ":i+=" var err = "+ve+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=rt,c&&(i+=" break; ")}else if(N)if(k=="failing"){i+=" var "+h+" = errors; ";var Ft=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=u+"["+y+"]";p.dataPathArr[v]=y;var ue=e.validate(p);p.baseId=R,e.util.varOccurences(ue,S)<2?i+=" "+e.util.varReplace(ue,S,He)+" ":i+=" var "+S+" = "+He+"; "+ue+" ",i+=" if (!"+m+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+y+"]; } ",e.compositeRule=p.compositeRule=Ft}else{p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=u+"["+y+"]";p.dataPathArr[v]=y;var ue=e.validate(p);p.baseId=R,e.util.varOccurences(ue,S)<2?i+=" "+e.util.varReplace(ue,S,He)+" ":i+=" var "+S+" = "+He+"; "+ue+" ",c&&(i+=" if (!"+m+") break; ")}e.errorPath=Re}O&&(i+=" } "),i+=" } ",c&&(i+=" if ("+m+") { ",f+="}")}var ur=e.opts.useDefaults&&!e.compositeRule;if(I.length){var Jt=I;if(Jt)for(var U,Br=-1,Mr=Jt.length-1;Br<Mr;){U=Jt[Br+=1];var Je=o[U];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){var It=e.util.getProperty(U),He=u+It,it=ur&&Je.default!==void 0;p.schema=Je,p.schemaPath=l+It,p.errSchemaPath=d+"/"+e.util.escapeFragment(U),p.errorPath=e.util.getPath(e.errorPath,U,e.opts.jsonPointers),p.dataPathArr[v]=e.util.toQuotedString(U);var ue=e.validate(p);if(p.baseId=R,e.util.varOccurences(ue,S)<2){ue=e.util.varReplace(ue,S,He);var et=He}else{var et=S;i+=" var "+S+" = "+He+"; "}if(it)i+=" "+ue+" ";else{if(Z&&Z[U]){i+=" if ( "+et+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(U)+"') "),i+=") { "+m+" = false; ";var Re=e.errorPath,rt=d,Ut=e.util.escapeQuotes(U);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Re,U,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Ie=Ie||[];Ie.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+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 ve=i;i=Ie.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+ve+"]); ":i+=" validate.errors = ["+ve+"]; return false; ":i+=" var err = "+ve+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=rt,e.errorPath=Re,i+=" } else { "}else c?(i+=" if ( "+et+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(U)+"') "),i+=") { "+m+" = true; } else { "):(i+=" if ("+et+" !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(U)+"') "),i+=" ) { ");i+=" "+ue+" } "}}c&&(i+=" if ("+m+") { ",f+="}")}}if(q.length){var pt=q;if(pt)for(var te,oa=-1,Pn=pt.length-1;oa<Pn;){te=pt[oa+=1];var Je=A[te];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){p.schema=Je,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(te),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(te),E?i+=" "+x+" = "+x+" || Object.keys("+u+"); for (var "+b+"=0; "+b+"<"+x+".length; "+b+"++) { var "+y+" = "+x+"["+b+"]; ":i+=" for (var "+y+" in "+u+") { ",i+=" if ("+e.usePattern(te)+".test("+y+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=u+"["+y+"]";p.dataPathArr[v]=y;var ue=e.validate(p);p.baseId=R,e.util.varOccurences(ue,S)<2?i+=" "+e.util.varReplace(ue,S,He)+" ":i+=" var "+S+" = "+He+"; "+ue+" ",c&&(i+=" if (!"+m+") break; "),i+=" } ",c&&(i+=" else "+m+" = true; "),i+=" } ",c&&(i+=" if ("+m+") { ",f+="}")}}}return c&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var wd=J((Ox,Sd)=>{"use strict";Sd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level;if(i+="var "+h+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d;var y="key"+n,b="idx"+n,v="i"+n,S="' + "+y+" + '",x=p.dataLevel=e.dataLevel+1,I="data"+x,A="dataProperties"+n,q=e.opts.ownProperties,L=e.baseId;q&&(i+=" var "+A+" = undefined; "),q?i+=" "+A+" = "+A+" || Object.keys("+u+"); for (var "+b+"=0; "+b+"<"+A+".length; "+b+"++) { var "+y+" = "+A+"["+b+"]; ":i+=" for (var "+y+" in "+u+") { ",i+=" var startErrs"+n+" = errors; ";var O=y,M=e.compositeRule;e.compositeRule=p.compositeRule=!0;var N=e.validate(p);p.baseId=L,e.util.varOccurences(N,I)<2?i+=" "+e.util.varReplace(N,I,O)+" ":i+=" var "+I+" = "+O+"; "+N+" ",e.compositeRule=p.compositeRule=M,i+=" if (!"+m+") { for (var "+v+"=startErrs"+n+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+S+"' } ",e.opts.messages!==!1&&(i+=" , message: 'property name \\'"+S+"\\' is invalid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+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+=" "+f+" if ("+h+" == errors) {"),i}});var xd=J((Ax,Cd)=>{"use strict";Cd.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||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o;var m="schema"+n;if(!p)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],b=o;if(b)for(var v,S=-1,x=b.length-1;S<x;){v=b[S+=1];var I=e.schema.properties[v];I&&(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:e.util.schemaHasRules(I,e.RULES.all))||(y[y.length]=v)}}else var y=o;if(p||y.length){var A=e.errorPath,q=p||y.length>=e.opts.loopRequired,L=e.opts.ownProperties;if(c)if(i+=" var missing"+n+"; ",q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var O="i"+n,M="schema"+n+"["+O+"]",N="' + "+M+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,M,e.opts.jsonPointers)),i+=" var "+h+" = true; ",p&&(i+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),i+=" for (var "+O+" = 0; "+O+" < "+m+".length; "+O+"++) { "+h+" = "+u+"["+m+"["+O+"]] !== undefined ",L&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", "+m+"["+O+"]) "),i+="; if (!"+h+") break; } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var k=k||[];k.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var $=i;i=k.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+$+"]); ":i+=" validate.errors = ["+$+"]; return false; ":i+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var E=y;if(E)for(var R,O=-1,z=E.length-1;O<z;){R=E[O+=1],O&&(i+=" || ");var Z=e.util.getProperty(R),W=u+Z;i+=" ( ( "+W+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?R:Z)+") ) "}i+=") { ";var M="missing"+n,N="' + "+M+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,M,!0):A+" + "+M);var k=k||[];k.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var $=i;i=k.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+$+"]); ":i+=" validate.errors = ["+$+"]; return false; ":i+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var O="i"+n,M="schema"+n+"["+O+"]",N="' + "+M+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,M,e.opts.jsonPointers)),p&&(i+=" if ("+m+" && !Array.isArray("+m+")) { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",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 ("+m+" !== undefined) { "),i+=" for (var "+O+" = 0; "+O+" < "+m+".length; "+O+"++) { if ("+u+"["+m+"["+O+"]] === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+m+"["+O+"]) "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",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 G=y;if(G)for(var R,U=-1,ie=G.length-1;U<ie;){R=G[U+=1];var Z=e.util.getProperty(R),N=e.util.escapeQuotes(R),W=u+Z;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,R,e.opts.jsonPointers)),i+=" if ( "+W+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",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=A}else c&&(i+=" if (true) {");return i}});var Id=J((Lx,Fd)=>{"use strict";Fd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;if(p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o,(o||p)&&e.opts.uniqueItems!==!1){p&&(i+=" var "+h+"; if ("+f+" === false || "+f+" === undefined) "+h+" = true; else if (typeof "+f+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+u+".length , "+h+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,y=Array.isArray(m);if(!m||m=="object"||m=="array"||y&&(m.indexOf("object")>=0||m.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+h+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ";var b="checkDataType"+(y?"s":"");i+=" if ("+e.util[b](m,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",p?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+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 Pd=J((Ex,Td)=>{"use strict";Td.exports={$ref:Rl(),allOf:Vl(),anyOf:_l(),$comment:Ul(),const:Gl(),contains:Zl(),dependencies:Kl(),enum:Xl(),format:td(),if:id(),items:nd(),maximum:Xn(),minimum:Xn(),maxItems:es(),minItems:es(),maxLength:ts(),minLength:ts(),maxProperties:rs(),minProperties:rs(),multipleOf:ud(),not:hd(),oneOf:md(),pattern:gd(),properties:vd(),propertyNames:wd(),required:xd(),uniqueItems:Id(),validate:Kn()}});var Ld=J((Dx,Ad)=>{"use strict";var Od=Pd(),is=Wr().toHash;Ad.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=is(r),e.types=is(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:Od[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:Od.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=is(r.concat(a)),e.custom={},e}});var Nd=J((Nx,Dd)=>{"use strict";var Ed=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Dd.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<Ed.length;n++){var s=Ed[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 $d=J((Bx,Md)=>{"use strict";var qf=La().MissingRef;Md.exports=Bd;function Bd(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)?Bd.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof qf)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(h,h)),u.then(function(f){if(!p(c))return n(f).then(function(){p(c)||a.addSchema(f,c,void 0,e)})}).then(function(){return s(o)});function h(){delete a._loadingSchemas[c]}function p(f){return a._refs[f]||a._schemas[f]}}}}});var kd=J((Mx,qd)=>{"use strict";qd.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,h="data"+(s||""),p="valid"+n,f="errs__"+n,m=e.opts.$data&&o&&o.$data,y;m?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",y="schema"+n):y=o;var b=this,v="definition"+n,S=b.definition,x="",I,A,q,L,O;if(m&&S.$data){O="keywordValidate"+n;var M=S.validateSchema;i+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+O+" = "+v+".validate;"}else{if(L=e.useCustomRule(b,o,e.schema,e),!L)return;y="validate.schema"+l,O=L.code,I=S.compile,A=S.inline,q=S.macro}var N=O+".errors",k="i"+n,$="ruleErr"+n,E=S.async;if(E&&!e.async)throw new Error("async keyword in sync schema");if(A||q||(i+=""+N+" = null;"),i+="var "+f+" = errors;var "+p+";",m&&S.$data&&(x+="}",i+=" if ("+y+" === undefined) { "+p+" = true; } else { ",M&&(x+="}",i+=" "+p+" = "+v+".validateSchema("+y+"); if ("+p+") { ")),A)S.statements?i+=" "+L.validate+" ":i+=" "+p+" = "+L.validate+"; ";else if(q){var R=e.util.copy(e),x="";R.level++;var z="valid"+R.level;R.schema=L.validate,R.schemaPath="";var Z=e.compositeRule;e.compositeRule=R.compositeRule=!0;var W=e.validate(R).replace(/validate\.schema/g,O);e.compositeRule=R.compositeRule=Z,i+=" "+W}else{var G=G||[];G.push(i),i="",i+=" "+O+".call( ",e.opts.passContext?i+="this":i+="self",I||S.schema===!1?i+=" , "+h+" ":i+=" , "+y+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var U=s?"data"+(s-1||""):"parentData",ie=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+U+" , "+ie+" , rootData ) ";var ke=i;i=G.pop(),S.errors===!1?(i+=" "+p+" = ",E&&(i+="await "),i+=""+ke+"; "):E?(N="customErrors"+n,i+=" var "+N+" = null; try { "+p+" = await "+ke+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+N+" = e.errors; else throw e; } "):i+=" "+N+" = null; "+p+" = "+ke+"; "}if(S.modifying&&(i+=" if ("+U+") "+h+" = "+U+"["+ie+"];"),i+=""+x,S.valid)c&&(i+=" if (true) { ");else{i+=" if ( ",S.valid===void 0?(i+=" !",q?i+=""+z:i+=""+p):i+=" "+!S.valid+" ",i+=") { ",u=b.keyword;var G=G||[];G.push(i),i="";var G=G||[];G.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+b.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+b.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var _e=i;i=G.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+_e+"]); ":i+=" validate.errors = ["+_e+"]; return false; ":i+=" var err = "+_e+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var te=i;i=G.pop(),A?S.errors?S.errors!="full"&&(i+=" for (var "+k+"="+f+"; "+k+"<errors; "+k+"++) { var "+$+" = vErrors["+k+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+h+"; "),i+=" } "):S.errors===!1?i+=" "+te+" ":(i+=" if ("+f+" == errors) { "+te+" } else { for (var "+k+"="+f+"; "+k+"<errors; "+k+"++) { var "+$+" = vErrors["+k+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+h+"; "),i+=" } } "):q?(i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+b.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+b.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):S.errors===!1?i+=" "+te+" ":(i+=" if (Array.isArray("+N+")) { if (vErrors === null) vErrors = "+N+"; else vErrors = vErrors.concat("+N+"); errors = vErrors.length; for (var "+k+"="+f+"; "+k+"<errors; "+k+"++) { var "+$+" = vErrors["+k+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; "+$+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+h+"; "),i+=" } } else { "+te+" } "),i+=" } ",c&&(i+=" else { ")}return i}});var as=J(($x,kf)=>{kf.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 Vd=J((qx,jd)=>{"use strict";var Rd=as();jd.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Rd.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Rd.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 _d=J((kx,Wd)=>{"use strict";var Rf=/^[a-z_$][a-z0-9_$-]*$/i,jf=kd(),Vf=Vd();Wd.exports={add:Wf,get:_f,remove:zf,validate:ns};function Wf(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Rf.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 h=r[u];if(h.type==l){c=h;break}}c||(c={type:l,rules:[]},r.push(c));var p={keyword:o,definition:d,custom:!0,code:jf,implements:d.implements};c.rules.push(p),r.custom[o]=p}return this}function _f(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function zf(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 ns(t,e){ns.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Vf,!0);if(r(t))return!0;if(ns.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var zd=J((Rx,Uf)=>{Uf.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 ec=J((jx,Xd)=>{"use strict";var Hd=xl(),_r=Aa(),Hf=Il(),Gd=zn(),Gf=Jn(),Qf=ql(),Zf=Ld(),Qd=Nd(),Zd=Wr();Xd.exports=$e;$e.prototype.validate=Kf;$e.prototype.compile=Yf;$e.prototype.addSchema=Xf;$e.prototype.addMetaSchema=em;$e.prototype.validateSchema=tm;$e.prototype.getSchema=im;$e.prototype.removeSchema=nm;$e.prototype.addFormat=hm;$e.prototype.errorsText=pm;$e.prototype._addSchema=sm;$e.prototype._compile=om;$e.prototype.compileAsync=$d();var ka=_d();$e.prototype.addKeyword=ka.add;$e.prototype.getKeyword=ka.get;$e.prototype.removeKeyword=ka.remove;$e.prototype.validateKeyword=ka.validate;var Jd=La();$e.ValidationError=Jd.Validation;$e.MissingRefError=Jd.MissingRef;$e.$dataMetaSchema=Qd;var qa="http://json-schema.org/draft-07/schema",Ud=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Jf=["/properties"];function $e(t){if(!(this instanceof $e))return new $e(t);t=this._opts=Zd.copy(t)||{},vm(this),this._schemas={},this._refs={},this._fragments={},this._formats=Qf(t.format),this._cache=t.cache||new Hf,this._loadingSchemas={},this._compilations=[],this.RULES=Zf(),this._getId=lm(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=Gf),this._metaOpts=bm(this),t.formats&&ym(this),t.keywords&&gm(this),fm(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),mm(this)}function Kf(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 Yf(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function Xf(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=_r.normalizeId(e||n),Yd(this,e),this._schemas[e]=this._addSchema(t,r,a,!0),this}function em(t,e,r){return this.addSchema(t,e,r,!0),this}function tm(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||rm(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 rm(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(qa)?qa:void 0,t._opts.defaultMeta}function im(t){var e=Kd(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return am(this,t)}}function am(t,e){var r=_r.schema.call(t,{schema:{}},e);if(r){var a=r.schema,i=r.root,n=r.baseId,s=Hd.call(t,a,i,void 0,n);return t._fragments[e]=new Gd({ref:e,fragment:!0,schema:a,root:i,baseId:n,validate:s}),s}}function Kd(t,e){return e=_r.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function nm(t){if(t instanceof RegExp)return $a(this,this._schemas,t),$a(this,this._refs,t),this;switch(typeof t){case"undefined":return $a(this,this._schemas),$a(this,this._refs),this._cache.clear(),this;case"string":var e=Kd(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=_r.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function $a(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 sm(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=_r.normalizeId(this._getId(t));o&&a&&Yd(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==_r.normalizeId(t.$schema))&&this.validateSchema(t,!0);var c=_r.ids.call(this,t),u=new Gd({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 om(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=Hd.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 lm(t){switch(t.schemaId){case"auto":return um;case"id":return dm;default:return cm}}function dm(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function cm(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function um(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 pm(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 hm(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function fm(t){var e;if(t._opts.$data&&(e=zd(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=as();t._opts.$data&&(r=Qd(r,Jf)),t.addMetaSchema(r,qa,!0),t._refs["http://json-schema.org/schema"]=qa}}function mm(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 ym(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function gm(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function Yd(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function bm(t){for(var e=Zd.copy(t._opts),r=0;r<Ud.length;r++)delete e[Ud[r]];return e}function vm(t){var e=t._opts.logger;if(e===!1)t.logger={log:ss,warn:ss,error:ss};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 ss(){}});function zo(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var a=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,n=new Array(i);++a<i;)n[a]=t+a*r;return n}function li(t,e){let r,a;if(e===void 0)for(let i of t)i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)));else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r===void 0?n>=n&&(r=a=n):(r>n&&(r=n),a<n&&(a=n)))}return[r,a]}var fa=class extends Map{constructor(e,r=Ah){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[a,i]of e)this.set(a,i)}get(e){return super.get(Uo(this,e))}has(e){return super.has(Uo(this,e))}set(e,r){return super.set(Ph(this,e),r)}delete(e){return super.delete(Oh(this,e))}};function Uo({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):r}function Ph({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function Oh({_intern:t,_key:e},r){let a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function Ah(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Nn(t){return t}function Bn(t,e,...r){return Lh(t,Nn,e,r)}function Lh(t,e,r,a){return(function i(n,s){if(s>=a.length)return r(n);let o=new fa,l=a[s++],d=-1;for(let c of n){let u=l(c,++d,n),h=o.get(u);h?h.push(c):o.set(u,[c])}for(let[c,u]of o)o.set(c,i(u,s));return e(o)})(t,0)}function ma(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function ya(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function ga(t,e){let r=0,a=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++r,a+=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(n=+n)>=n&&(++r,a+=n)}if(r)return a/r}function ba(t,e){let r=0;if(e===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let i of t)(i=+e(i,++a,t))&&(r+=i)}return r}function Ho(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 Go(t){return function(e){return t.b+t.m*e}}function Qo(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 Zo=function(){this.totalCount=0,this.data={}};Zo.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++};Zo.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 Jo=function(){this.weights=[],this.bias=0};Jo.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};Jo.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 UC=607/128,HC=Math.log(Math.sqrt(2*Math.PI));var GC=Math.sqrt(2*Math.PI);var Eh=Math.sqrt(2*Math.PI);function Dh(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/Eh*Math.exp(-t*t/2))*1e4)/1e4}var Nh=[];for(va=0;va<=3.09;va+=.01)Nh.push(Dh(va));var va;var Yc=$o(Xo(),1);var Xc=$o(ec(),1);var or="25.0.0",st="arcgis_charts_pie_from_fields_name",jt="arcgis_charts_pie_from_fields_value",Lm="arcgis_charts_bar_line_from_fields_name",Em="arcgis_charts_bar_line_from_fields_value",rr={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},nr=class extends Error{},Cs=class extends nr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},xs=class extends nr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},Fs=class extends nr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Cr=class extends nr{},nn=class extends nr{constructor(e){super(`Invalid unit ${e}`)}},Qe=class extends nr{},Qt=class extends nr{constructor(){super("Zone is an abstract class")}},V="numeric",Vt="short",St="long",sn={year:V,month:V,day:V},eu={year:V,month:Vt,day:V},Dm={year:V,month:Vt,day:V,weekday:Vt},tu={year:V,month:St,day:V},ru={year:V,month:St,day:V,weekday:St},iu={hour:V,minute:V},au={hour:V,minute:V,second:V},nu={hour:V,minute:V,second:V,timeZoneName:Vt},su={hour:V,minute:V,second:V,timeZoneName:St},ou={hour:V,minute:V,hourCycle:"h23"},lu={hour:V,minute:V,second:V,hourCycle:"h23"},du={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:Vt},cu={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:St},uu={year:V,month:V,day:V,hour:V,minute:V},pu={year:V,month:V,day:V,hour:V,minute:V,second:V},hu={year:V,month:Vt,day:V,hour:V,minute:V},fu={year:V,month:Vt,day:V,hour:V,minute:V,second:V},Nm={year:V,month:Vt,day:V,weekday:Vt,hour:V,minute:V},mu={year:V,month:St,day:V,hour:V,minute:V,timeZoneName:Vt},yu={year:V,month:St,day:V,hour:V,minute:V,second:V,timeZoneName:Vt},gu={year:V,month:St,day:V,weekday:St,hour:V,minute:V,timeZoneName:St},bu={year:V,month:St,day:V,weekday:St,hour:V,minute:V,second:V,timeZoneName:St},Zr=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}},os=null,on=class t extends Zr{static get instance(){return os===null&&(os=new t),os}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return Au(e,r,a)}formatOffset(e,r){return zi(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},Is=new Map;function Bm(t){let e=Is.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"}),Is.set(t,e)),e}var Mm={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function $m(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 qm(t,e){let r=t.formatToParts(e),a=[];for(let i=0;i<r.length;i++){let{type:n,value:s}=r[i],o=Mm[n];n==="era"?a[o]=s:K(o)||(a[o]=parseInt(s,10))}return a}var ls=new Map,Tr=class t extends Zr{static create(e){let r=ls.get(e);return r===void 0&&ls.set(e,r=new t(e)),r}static resetCache(){ls.clear(),Is.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 Au(e,r,a,this.name)}formatOffset(e,r){return zi(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let a=Bm(this.name),[i,n,s,o,l,d,c]=a.formatToParts?qm(a,r):$m(a,r);o==="BC"&&(i=-Math.abs(i)+1);let u=vn({year:i,month:n,day:s,hour:l===24?0:l,minute:d,second:c,millisecond:0}),h=+r,p=h%1e3;return h-=p>=0?p:1e3+p,(u-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},ic={};function km(t,e={}){let r=JSON.stringify([t,e]),a=ic[r];return a||(a=new Intl.ListFormat(t,e),ic[r]=a),a}var Ts=new Map;function Ps(t,e={}){let r=JSON.stringify([t,e]),a=Ts.get(r);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),Ts.set(r,a)),a}var Os=new Map;function Rm(t,e={}){let r=JSON.stringify([t,e]),a=Os.get(r);return a===void 0&&(a=new Intl.NumberFormat(t,e),Os.set(r,a)),a}var As=new Map;function jm(t,e={}){let{base:r,...a}=e,i=JSON.stringify([t,a]),n=As.get(i);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),As.set(i,n)),n}var Ja=null;function Vm(){return Ja||(Ja=new Intl.DateTimeFormat().resolvedOptions().locale,Ja)}var Ls=new Map;function vu(t){let e=Ls.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Ls.set(t,e)),e}var Es=new Map;function Wm(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={...Su,...e}),Es.set(t,e)}return e}function _m(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let a,i;try{a=Ps(t).resolvedOptions(),i=t}catch{let o=t.substring(0,r);a=Ps(o).resolvedOptions(),i=o}let{numberingSystem:n,calendar:s}=a;return[i,n,s]}}function zm(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Um(t){let e=[];for(let r=1;r<=12;r++){let a=ae.utc(2009,r,1);e.push(t(a))}return e}function Hm(t){let e=[];for(let r=1;r<=7;r++){let a=ae.utc(2016,11,13+r);e.push(t(a))}return e}function Ra(t,e,r,a){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):a(e)}function Gm(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||vu(t.locale).numberingSystem==="latn"}var Ds=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=Rm(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):io(e,3);return We(r,this.padTo)}}},Ns=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&&Tr.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=Ps(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()}},Bs=class{constructor(e,r,a){this.opts={style:"long",...a},!r&&Pu()&&(this.rtf=jm(e,a))}format(e,r){return this.rtf?this.rtf.format(e,r):fy(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},Su={firstDay:1,minimalDays:4,weekend:[6,7]},we=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,a,i,n=!1){let s=e||Ae.defaultLocale,o=s||(n?"en-US":Vm()),l=r||Ae.defaultNumberingSystem,d=a||Ae.defaultOutputCalendar,c=qs(i)||Ae.defaultWeekSettings;return new t(o,l,d,c,s)}static resetCache(){Ja=null,Ts.clear(),Os.clear(),As.clear(),Ls.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]=_m(e);this.locale=s,this.numberingSystem=r||o||null,this.outputCalendar=a||l||null,this.weekSettings=i,this.intl=zm(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=Gm(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,qs(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 Ra(this,e,Du,()=>{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]=Um(s)}return this.monthsCache[n][e]})}weekdays(e,r=!1){return Ra(this,e,Mu,()=>{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]=Hm(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return Ra(this,void 0,()=>$u,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ae.utc(2016,11,13,9),ae.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Ra(this,e,qu,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[ae.utc(-40,1,1),ae.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,r,a){let i=this.dtFormatter(e,r),n=i.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new Ds(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Ns(e,this.intl,r)}relFormatter(e={}){return new Bs(this.intl,this.isEnglish(),e)}listFormatter(e={}){return km(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||vu(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Ou()?Wm(this.locale):Su}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})`}},ds=null,Dt=class t extends Zr{static get utcInstance(){return ds===null&&(ds=new t(0)),ds}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(Sn(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${zi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${zi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return zi(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}},Ms=class extends Zr{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 wr(t,e){if(K(t)||t===null)return e;if(t instanceof Zr)return t;if(Xm(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?on.instance:r==="utc"||r==="gmt"?Dt.utcInstance:Dt.parseSpecifier(r)||Tr.create(t)}else return xr(t)?Dt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ms(t)}var Xs={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"},ac={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]},Qm=Xs.hanidec.replace(/[\[|\]]/g,"").split("");function Zm(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(Xs.hanidec)!==-1)e+=Qm.indexOf(t[r]);else for(let i in ac){let[n,s]=ac[i];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var $s=new Map;function Jm(){$s.clear()}function qt({numberingSystem:t},e=""){let r=t||"latn",a=$s.get(r);a===void 0&&(a=new Map,$s.set(r,a));let i=a.get(e);return i===void 0&&(i=new RegExp(`${Xs[r]}${e}`),a.set(e,i)),i}var nc=()=>Date.now(),sc="system",oc=null,lc=null,dc=null,cc=60,uc,pc=null,Ae=class{static get now(){return nc}static set now(e){nc=e}static set defaultZone(e){sc=e}static get defaultZone(){return wr(sc,on.instance)}static get defaultLocale(){return oc}static set defaultLocale(e){oc=e}static get defaultNumberingSystem(){return lc}static set defaultNumberingSystem(e){lc=e}static get defaultOutputCalendar(){return dc}static set defaultOutputCalendar(e){dc=e}static get defaultWeekSettings(){return pc}static set defaultWeekSettings(e){pc=qs(e)}static get twoDigitCutoffYear(){return cc}static set twoDigitCutoffYear(e){cc=e%100}static get throwOnInvalid(){return uc}static set throwOnInvalid(e){uc=e}static resetCaches(){we.resetCache(),Tr.resetCache(),ae.resetCache(),Jm()}},vt=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},wu=[0,31,59,90,120,151,181,212,243,273,304,334],Cu=[0,31,60,91,121,152,182,213,244,274,305,335];function Lt(t,e){return new vt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function eo(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 xu(t,e,r){return r+(ea(t)?Cu:wu)[e-1]}function Fu(t,e){let r=ea(t)?Cu:wu,a=r.findIndex(n=>n<e),i=e-r[a];return{month:a+1,day:i}}function to(t,e){return(t-e+7)%7+1}function ln(t,e=4,r=1){let{year:a,month:i,day:n}=t,s=xu(a,i,n),o=to(eo(a,i,n),r),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=Ui(d,e,r)):l>Ui(a,e,r)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...wn(t)}}function hc(t,e=4,r=1){let{weekYear:a,weekNumber:i,weekday:n}=t,s=to(eo(a,1,e),r),o=yi(a),l=i*7+n-s-7+e,d;l<1?(d=a-1,l+=yi(d)):l>o?(d=a+1,l-=yi(a)):d=a;let{month:c,day:u}=Fu(d,l);return{year:d,month:c,day:u,...wn(t)}}function cs(t){let{year:e,month:r,day:a}=t,i=xu(e,r,a);return{year:e,ordinal:i,...wn(t)}}function fc(t){let{year:e,ordinal:r}=t,{month:a,day:i}=Fu(e,r);return{year:e,month:a,day:i,...wn(t)}}function mc(t,e){if(!K(t.localWeekday)||!K(t.localWeekNumber)||!K(t.localWeekYear)){if(!K(t.weekday)||!K(t.weekNumber)||!K(t.weekYear))throw new Cr("Cannot mix locale-based week fields with ISO-based week fields");return K(t.localWeekday)||(t.weekday=t.localWeekday),K(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),K(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Km(t,e=4,r=1){let a=bn(t.weekYear),i=Et(t.weekNumber,1,Ui(t.weekYear,e,r)),n=Et(t.weekday,1,7);return a?i?n?!1:Lt("weekday",t.weekday):Lt("week",t.weekNumber):Lt("weekYear",t.weekYear)}function Ym(t){let e=bn(t.year),r=Et(t.ordinal,1,yi(t.year));return e?r?!1:Lt("ordinal",t.ordinal):Lt("year",t.year)}function Iu(t){let e=bn(t.year),r=Et(t.month,1,12),a=Et(t.day,1,dn(t.year,t.month));return e?r?a?!1:Lt("day",t.day):Lt("month",t.month):Lt("year",t.year)}function Tu(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:Lt("millisecond",i):Lt("second",a):Lt("minute",r):Lt("hour",e)}function K(t){return typeof t>"u"}function xr(t){return typeof t=="number"}function bn(t){return typeof t=="number"&&t%1===0}function Xm(t){return typeof t=="string"}function ey(t){return Object.prototype.toString.call(t)==="[object Date]"}function Pu(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Ou(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function ty(t){return Array.isArray(t)?t:[t]}function yc(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 ry(t,e){return e.reduce((r,a)=>(r[a]=t[a],r),{})}function Si(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function qs(t){if(t==null)return null;if(typeof t!="object")throw new Qe("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 Qe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Et(t,e,r){return bn(t)&&t>=e&&t<=r}function iy(t,e){return t-e*Math.floor(t/e)}function We(t,e=2){let r=t<0,a;return r?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function vr(t){if(!(K(t)||t===null||t===""))return parseInt(t,10)}function zr(t){if(!(K(t)||t===null||t===""))return parseFloat(t)}function ro(t){if(!(K(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function io(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 ea(t){return t%4===0&&(t%100!==0||t%400===0)}function yi(t){return ea(t)?366:365}function dn(t,e){let r=iy(e-1,12)+1,a=t+(e-r)/12;return r===2?ea(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function vn(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 gc(t,e,r){return-to(eo(t,1,e),r)+e-1}function Ui(t,e=4,r=1){let a=gc(t,e,r),i=gc(t+1,e,r);return(yi(t)-a+i)/7}function ks(t){return t>99?t:t>Ae.twoDigitCutoffYear?1900+t:2e3+t}function Au(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 Sn(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 Lu(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Qe(`Invalid unit value ${t}`);return e}function cn(t,e){let r={};for(let a in t)if(Si(t,a)){let i=t[a];if(i==null)continue;r[e(a)]=Lu(i)}return r}function zi(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}${We(r,2)}:${We(a,2)}`;case"narrow":return`${i}${r}${a>0?`:${a}`:""}`;case"techie":return`${i}${We(r,2)}${We(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function wn(t){return ry(t,["hour","minute","second","millisecond"])}var ay=["January","February","March","April","May","June","July","August","September","October","November","December"],Eu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ny=["J","F","M","A","M","J","J","A","S","O","N","D"];function Du(t){switch(t){case"narrow":return[...ny];case"short":return[...Eu];case"long":return[...ay];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 Nu=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Bu=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sy=["M","T","W","T","F","S","S"];function Mu(t){switch(t){case"narrow":return[...sy];case"short":return[...Bu];case"long":return[...Nu];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var $u=["AM","PM"],oy=["Before Christ","Anno Domini"],ly=["BC","AD"],dy=["B","A"];function qu(t){switch(t){case"narrow":return[...dy];case"short":return[...ly];case"long":return[...oy];default:return null}}function cy(t){return $u[t.hour<12?0:1]}function uy(t,e){return Mu(e)[t.weekday-1]}function py(t,e){return Du(e)[t.month-1]}function hy(t,e){return qu(e)[t.year<0?0:1]}function fy(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 bc(t,e){let r="";for(let a of t)a.literal?r+=a.val:r+=e(a.val);return r}var my={D:sn,DD:eu,DDD:tu,DDDD:ru,t:iu,tt:au,ttt:nu,tttt:su,T:ou,TT:lu,TTT:du,TTTT:cu,f:uu,ff:hu,fff:mu,ffff:gu,F:pu,FF:fu,FFF:yu,FFFF:bu},bt=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 my[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 We(e,r);let i={...this.opts};return r>0&&(i.padTo=r),a&&(i.signDisplay=a),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){let a=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(p,f)=>this.loc.extract(e,p,f),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",o=()=>a?cy(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,f)=>a?py(e,p):n(f?{month:p}:{month:p,day:"numeric"},"month"),d=(p,f)=>a?uy(e,p):n(f?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{let f=t.macroTokenToFormatOpts(p);return f?this.formatWithSystemDefault(e,f):p},u=p=>a?hy(e,p):n({era:p},"era"),h=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return i?n({day:"numeric"},"day"):this.num(e.day);case"dd":return i?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?n({month:"numeric"},"month"):this.num(e.month);case"MM":return i?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?n({year:"numeric"},"year"):this.num(e.year);case"yy":return i?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return 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 bc(t.parseFormat(r),h)}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)=>h=>{let p=i(h);if(p){let f=u.isNegativeDuration&&p!==u.largestUnit?a:1,m;return this.opts.signMode==="negativeLargestOnly"&&p!==u.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(c.get(p)*f,h.length,m)}else return h},s=t.parseFormat(r),o=s.reduce((c,{literal:u,val:h})=>u?c:c.concat(h),[]),l=e.shiftTo(...o.map(i).filter(c=>c)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return bc(s,n(l,d))}},ku=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ti(...t){let e=t.reduce((r,a)=>r+a.source,"");return RegExp(`^${e}$`)}function Pi(...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 Oi(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 Ru(...t){return(e,r)=>{let a={},i;for(i=0;i<t.length;i++)a[t[i]]=vr(e[r+i]);return[a,null,r+i]}}var ju=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,yy=`(?:${ju.source}?(?:\\[(${ku.source})\\])?)?`,ao=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Vu=RegExp(`${ao.source}${yy}`),no=RegExp(`(?:[Tt]${Vu.source})?`),gy=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,by=/(\d{4})-?W(\d\d)(?:-?(\d))?/,vy=/(\d{4})-?(\d{3})/,Sy=Ru("weekYear","weekNumber","weekDay"),wy=Ru("year","ordinal"),Cy=/(\d{4})-(\d\d)-(\d\d)/,Wu=RegExp(`${ao.source} ?(?:${ju.source}|(${ku.source}))?`),xy=RegExp(`(?: ${Wu.source})?`);function gi(t,e,r){let a=t[e];return K(a)?r:vr(a)}function Fy(t,e){return[{year:gi(t,e),month:gi(t,e+1,1),day:gi(t,e+2,1)},null,e+3]}function Ai(t,e){return[{hours:gi(t,e,0),minutes:gi(t,e+1,0),seconds:gi(t,e+2,0),milliseconds:ro(t[e+3])},null,e+4]}function ta(t,e){let r=!t[e]&&!t[e+1],a=Sn(t[e+1],t[e+2]),i=r?null:Dt.instance(a);return[{},i,e+3]}function ra(t,e){let r=t[e]?Tr.create(t[e]):null;return[{},r,e+1]}var Iy=RegExp(`^T?${ao.source}$`),Ty=/^-?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 Py(t){let[e,r,a,i,n,s,o,l,d]=t,c=e[0]==="-",u=l&&l[0]==="-",h=(p,f=!1)=>p!==void 0&&(f||p&&c)?-p:p;return[{years:h(zr(r)),months:h(zr(a)),weeks:h(zr(i)),days:h(zr(n)),hours:h(zr(s)),minutes:h(zr(o)),seconds:h(zr(l),l==="-0"),milliseconds:h(ro(d),u)}]}var Oy={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function so(t,e,r,a,i,n,s){let o={year:e.length===2?ks(vr(e)):vr(e),month:Eu.indexOf(r)+1,day:vr(a),hour:vr(i),minute:vr(n)};return s&&(o.second=vr(s)),t&&(o.weekday=t.length>3?Nu.indexOf(t)+1:Bu.indexOf(t)+1),o}var Ay=/^(?:(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 Ly(t){let[,e,r,a,i,n,s,o,l,d,c,u]=t,h=so(e,i,a,r,n,s,o),p;return l?p=Oy[l]:d?p=0:p=Sn(c,u),[h,new Dt(p)]}function Ey(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Dy=/^(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$/,Ny=/^(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$/,By=/^(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 vc(t){let[,e,r,a,i,n,s,o]=t;return[so(e,i,a,r,n,s,o),Dt.utcInstance]}function My(t){let[,e,r,a,i,n,s,o]=t;return[so(e,o,r,a,i,n,s),Dt.utcInstance]}var $y=Ti(gy,no),qy=Ti(by,no),ky=Ti(vy,no),Ry=Ti(Vu),_u=Pi(Fy,Ai,ta,ra),jy=Pi(Sy,Ai,ta,ra),Vy=Pi(wy,Ai,ta,ra),Wy=Pi(Ai,ta,ra);function _y(t){return Oi(t,[$y,_u],[qy,jy],[ky,Vy],[Ry,Wy])}function zy(t){return Oi(Ey(t),[Ay,Ly])}function Uy(t){return Oi(t,[Dy,vc],[Ny,vc],[By,My])}function Hy(t){return Oi(t,[Ty,Py])}var Gy=Pi(Ai);function Qy(t){return Oi(t,[Iy,Gy])}var Zy=Ti(Cy,xy),Jy=Ti(Wu),Ky=Pi(Ai,ta,ra);function Yy(t){return Oi(t,[Zy,_u],[Jy,Ky])}var Sc="Invalid Duration",zu={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}},Xy={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},...zu},At=146097/400,di=146097/4800,eg={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},...zu},Gr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tg=Gr.slice(0).reverse();function tr(t,e,r=!1){let a={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ze(a)}function Uu(t,e){let r=e.milliseconds??0;for(let a of tg.slice(1))e[a]&&(r+=e[a]*t[a].milliseconds);return r}function wc(t,e){let r=Uu(t,e)<0?-1:1;Gr.reduceRight((a,i)=>{if(K(e[i]))return a;if(a){let n=e[a]*r,s=t[i][a],o=Math.floor(n/s);e[i]+=o*r,e[a]-=o*s*r}return i},null),Gr.reduce((a,i)=>{if(K(e[i]))return a;if(a){let n=e[a]%1;e[a]-=n,e[i]+=n*t[a][i]}return i},null)}function Cc(t){let e={};for(let[r,a]of Object.entries(t))a!==0&&(e[r]=a);return e}var Ze=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,a=r?eg:Xy;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||we.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Qe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:cn(e,t.normalizeUnit),loc:we.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(xr(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Qe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[a]=Hy(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]=Qy(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Duration is invalid");let a=e instanceof vt?e:new vt(e,r);if(Ae.throwOnInvalid)throw new Fs(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 nn(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?bt.create(this.loc,a).formatDurationFromString(this,e):Sc}toHuman(e={}){if(!this.isValid)return Sc;let r=e.showZeros!==!1,a=Gr.map(i=>{let n=this.values[i];return K(n)||n===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(n)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=io(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ae.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Uu(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 Gr)(Si(r.values,i)||Si(this.values,i))&&(a[i]=r.get(i)+this.get(i));return tr(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]=Lu(e(this.values[a],a));return tr(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...cn(e,t.normalizeUnit)};return tr(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:a,matrix:i}={}){let n={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:a};return tr(this,n)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return wc(this.matrix,e),tr(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=Cc(this.normalize().shiftToAll().toObject());return tr(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 Gr)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;xr(i[s])&&(o+=i[s]);let l=Math.trunc(o);r[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else xr(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 wc(this.matrix,r),tr(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 tr(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=Cc(this.values);return tr(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 Gr)if(!r(this.values[a],e.values[a]))return!1;return!0}},ci="Invalid Interval";function rg(t,e){return!t||!t.isValid?bi.invalid("missing or invalid start"):!e||!e.isValid?bi.invalid("missing or invalid end"):e<t?bi.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 bi=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Interval is invalid");let a=e instanceof vt?e:new vt(e,r);if(Ae.throwOnInvalid)throw new xs(a);return new t({invalid:a})}static fromDateTimes(e,r){let a=ji(e),i=ji(r);return rg(a,i)??new t({start:a,end:i})}static after(e,r){let a=Ze.fromDurationLike(r),i=ji(e);return t.fromDateTimes(i,i.plus(a))}static before(e,r){let a=Ze.fromDurationLike(r),i=ji(e);return t.fromDateTimes(i.minus(a),i)}static fromISO(e,r){let[a,i]=(e||"").split("/",2);if(a&&i){let n,s;try{n=ae.fromISO(a,r),s=n.isValid}catch{s=!1}let o,l;try{o=ae.fromISO(i,r),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Ze.fromISO(i,r);if(d.isValid)return t.after(n,d)}else if(l){let d=Ze.fromISO(a,r);if(d.isValid)return t.before(o,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let a=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:a.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(a,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(ji).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:i}=this,n=0;for(;i<this.e;){let s=r[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(i,o)),i=o,n+=1}return a}splitBy(e){let r=Ze.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:a}=this,i=1,n,s=[];for(;a<this.e;){let o=this.start.plus(r.mapUnits(l=>l*i));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return r>=a?null:t.fromDateTimes(r,a)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,a)}static merge(e){let[r,a]=e.sort((i,n)=>i.s-n.s).reduce(([i,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[i,n.union(s)]:[i.concat([n]),s]:[i,s],[[],null]);return a&&r.push(a),r}static xor(e){let r=null,a=0,i=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?r=l.time:(r&&+r!=+l.time&&i.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`: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=sn,r={}){return this.isValid?bt.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):Ze.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},fi=class{static hasDST(e=Ae.defaultZone){let r=ae.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Tr.isValidZone(e)}static normalizeZone(e){return wr(e,Ae.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||we.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||we.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||we.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||we.create(r,a,n)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||we.create(r,a,n)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||we.create(r,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||we.create(r,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return we.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return we.create(r,null,"gregory").eras(e)}static features(){return{relative:Pu(),localeWeek:Ou()}}};function xc(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=r(e)-r(t);return Math.floor(Ze.fromMillis(a).as("days"))}function ig(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=xc(l,d);return(c-c%7)/7}],["days",xc]],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 ag(t,e,r,a){let[i,n,s,o]=ig(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=Ze.fromObject(n,a);return d.length>0?Ze.fromMillis(l,a).shiftTo(...d).plus(c):c}var ng="missing Intl.DateTimeFormat.formatToParts support";function pe(t,e=r=>r){return{regex:t,deser:([r])=>e(Zm(r))}}var sg="\xA0",Hu=`[ ${sg}]`,Gu=new RegExp(Hu,"g");function og(t){return t.replace(/\./g,"\\.?").replace(Gu,Hu)}function Fc(t){return t.replace(/\./g,"").replace(Gu," ").toLowerCase()}function kt(t,e){return t===null?null:{regex:RegExp(t.map(og).join("|")),deser:([r])=>t.findIndex(a=>Fc(r)===Fc(a))+e}}function Ic(t,e){return{regex:t,deser:([,r,a])=>Sn(r,a),groups:e}}function ja(t){return{regex:t,deser:([e])=>e}}function lg(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function dg(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}"),h=qt(e,"{4,6}"),p=m=>({regex:RegExp(lg(m.val)),deser:([y])=>y,literal:!0}),f=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return kt(e.eras("short"),0);case"GG":return kt(e.eras("long"),0);case"y":return pe(d);case"yy":return pe(u,ks);case"yyyy":return pe(n);case"yyyyy":return pe(h);case"yyyyyy":return pe(s);case"M":return pe(o);case"MM":return pe(a);case"MMM":return kt(e.months("short",!0),1);case"MMMM":return kt(e.months("long",!0),1);case"L":return pe(o);case"LL":return pe(a);case"LLL":return kt(e.months("short",!1),1);case"LLLL":return kt(e.months("long",!1),1);case"d":return pe(o);case"dd":return pe(a);case"o":return pe(l);case"ooo":return pe(i);case"HH":return pe(a);case"H":return pe(o);case"hh":return pe(a);case"h":return pe(o);case"mm":return pe(a);case"m":return pe(o);case"q":return pe(o);case"qq":return pe(a);case"s":return pe(o);case"ss":return pe(a);case"S":return pe(l);case"SSS":return pe(i);case"u":return ja(c);case"uu":return ja(o);case"uuu":return pe(r);case"a":return kt(e.meridiems(),0);case"kkkk":return pe(n);case"kk":return pe(u,ks);case"W":return pe(o);case"WW":return pe(a);case"E":case"c":return pe(r);case"EEE":return kt(e.weekdays("short",!1),1);case"EEEE":return kt(e.weekdays("long",!1),1);case"ccc":return kt(e.weekdays("short",!0),1);case"cccc":return kt(e.weekdays("long",!0),1);case"Z":case"ZZ":return Ic(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return Ic(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ja(/[a-z_+-/]{1,256}?/i);case" ":return ja(/[^\S\n\r]/);default:return p(m)}})(t)||{invalidReason:ng};return f.token=t,f}var cg={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 ug(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=cg[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function pg(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function hg(t,e,r){let a=t.match(e);if(a){let i={},n=1;for(let s in r)if(Si(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 fg(t){let e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,a;return K(t.z)||(r=Tr.create(t.z)),K(t.Z)||(r||(r=new Dt(t.Z)),a=t.Z),K(t.q)||(t.M=(t.q-1)*3+1),K(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),K(t.u)||(t.S=ro(t.u)),[Object.keys(t).reduce((i,n)=>{let s=e(n);return s&&(i[s]=t[n]),i},{}),r,a]}var us=null;function mg(){return us||(us=ae.fromMillis(1555555555555)),us}function yg(t,e){if(t.literal)return t;let r=bt.macroTokenToFormatOpts(t.val),a=Ju(r,e);return a==null||a.includes(void 0)?t:a}function Qu(t,e){return Array.prototype.concat(...t.map(r=>yg(r,e)))}var un=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Qu(bt.parseFormat(r),e),this.units=this.tokens.map(a=>dg(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,i]=pg(this.units);this.regex=RegExp(a,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,a]=hg(e,this.regex,this.handlers),[i,n,s]=a?fg(a):[null,null,void 0];if(Si(a,"a")&&Si(a,"H"))throw new Cr("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 Zu(t,e,r){return new un(t,r).explainFromTokens(e)}function gg(t,e,r){let{result:a,zone:i,specificOffset:n,invalidReason:s}=Zu(t,e,r);return[a,i,n,s]}function Ju(t,e){if(!t)return null;let r=bt.create(e,t).dtFormatter(mg()),a=r.formatToParts(),i=r.resolvedOptions();return a.map(n=>ug(n,t,i))}var ps="Invalid DateTime",Tc=864e13;function Wi(t){return new vt("unsupported zone",`the zone "${t.name}" is not supported`)}function hs(t){return t.weekData===null&&(t.weekData=ln(t.c)),t.weekData}function fs(t){return t.localWeekData===null&&(t.localWeekData=ln(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Ur(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ae({...r,...e,old:r})}function Ku(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 Va(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 Ka(t,e,r){return Ku(vn(t),e,r)}function Pc(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,dn(a,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Ze.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=vn(n),[l,d]=Ku(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=ae.fromObject(t,{...r,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ae.invalid(new vt("unparsable",`the input "${i}" can't be parsed as ${a}`))}function Wa(t,e,r=!0){return t.isValid?bt.create(we.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ms(t,e,r){let a=t.c.year>9999||t.c.year<0,i="";if(a&&t.c.year>=0&&(i+="+"),i+=We(t.c.year,a?6:4),r==="year")return i;if(e){if(i+="-",i+=We(t.c.month),r==="month")return i;i+="-"}else if(i+=We(t.c.month),r==="month")return i;return i+=We(t.c.day),i}function Oc(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+=We(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=We(t.c.minute),s==="minute")break;o&&(l+=":",l+=We(t.c.second))}else{if(l+=We(t.c.minute),s==="minute")break;o&&(l+=We(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=We(t.c.millisecond,3))}return i&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=We(Math.trunc(-t.o/60)),l+=":",l+=We(Math.trunc(-t.o%60))):(l+="+",l+=We(Math.trunc(t.o/60)),l+=":",l+=We(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var Yu={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},bg={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},vg={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ya=["year","month","day","hour","minute","second","millisecond"],Sg=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],wg=["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 nn(t);return e}function Ac(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 Cg(t){if(_i===void 0&&(_i=Ae.now()),t.type!=="iana")return t.offset(_i);let e=t.name,r=Rs.get(e);return r===void 0&&(r=t.offset(_i),Rs.set(e,r)),r}function Lc(t,e){let r=wr(e.zone,Ae.defaultZone);if(!r.isValid)return ae.invalid(Wi(r));let a=we.fromObject(e),i,n;if(K(t.year))i=Ae.now();else{for(let l of Ya)K(t[l])&&(t[l]=Yu[l]);let s=Iu(t)||Tu(t);if(s)return ae.invalid(s);let o=Cg(r);[i,n]=Ka(t,o,r)}return new ae({ts:i,zone:r,loc:a,o:n})}function Ec(t,e,r){let a=K(r.round)?!0:r.round,i=K(r.rounding)?"trunc":r.rounding,n=(o,l)=>(o=io(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 Dc(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 _i,Rs=new Map,ae=class t{constructor(e){let r=e.zone||Ae.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new vt("invalid input"):null)||(r.isValid?null:Wi(r));this.ts=K(e.ts)?Ae.now():e.ts;let i=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,n]=[e.old.c,e.old.o];else{let s=xr(e.o)&&!e.old?e.o:r.offset(this.ts);i=Va(this.ts,s),a=Number.isNaN(i.year)?new vt("invalid input"):null,i=a?null:i,n=a?null:s}this._zone=r,this.loc=e.loc||we.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=i,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Dc(arguments),[a,i,n,s,o,l,d]=r;return Lc({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,r]=Dc(arguments),[a,i,n,s,o,l,d]=r;return e.zone=Dt.utcInstance,Lc({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,r={}){let a=ey(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let i=wr(r.zone,Ae.defaultZone);return i.isValid?new t({ts:a,zone:i,loc:we.fromObject(r)}):t.invalid(Wi(i))}static fromMillis(e,r={}){if(xr(e))return e<-Tc||e>Tc?t.invalid("Timestamp out of range"):new t({ts:e,zone:wr(r.zone,Ae.defaultZone),loc:we.fromObject(r)});throw new Qe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(xr(e))return new t({ts:e*1e3,zone:wr(r.zone,Ae.defaultZone),loc:we.fromObject(r)});throw new Qe("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let a=wr(r.zone,Ae.defaultZone);if(!a.isValid)return t.invalid(Wi(a));let i=we.fromObject(r),n=cn(e,Ac),{minDaysInFirstWeek:s,startOfWeek:o}=mc(n,i),l=Ae.now(),d=K(r.specificOffset)?a.offset(l):r.specificOffset,c=!K(n.ordinal),u=!K(n.year),h=!K(n.month)||!K(n.day),p=u||h,f=n.weekYear||n.weekNumber;if((p||c)&&f)throw new Cr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new Cr("Can't mix ordinal dates with month/day");let m=f||n.weekday&&!p,y,b,v=Va(l,d);m?(y=Sg,b=bg,v=ln(v,s,o)):c?(y=wg,b=vg,v=cs(v)):(y=Ya,b=Yu);let S=!1;for(let M of y){let N=n[M];K(N)?S?n[M]=b[M]:n[M]=v[M]:S=!0}let x=m?Km(n,s,o):c?Ym(n):Iu(n),I=x||Tu(n);if(I)return t.invalid(I);let A=m?hc(n,s,o):c?fc(n):n,[q,L]=Ka(A,d,a),O=new t({ts:q,zone:a,o:L,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]=_y(e);return ui(a,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[a,i]=zy(e);return ui(a,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[a,i]=Uy(e);return ui(a,i,r,"HTTP",r)}static fromFormat(e,r,a={}){if(K(e)||K(r))throw new Qe("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:n=null}=a,s=we.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0}),[o,l,d,c]=gg(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]=Yy(e);return ui(a,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the DateTime is invalid");let a=e instanceof vt?e:new vt(e,r);if(Ae.throwOnInvalid)throw new Cs(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let a=Ju(e,we.fromObject(r));return a?a.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return Qu(bt.parseFormat(e),we.fromObject(r)).map(a=>a.val).join("")}static resetCache(){_i=void 0,Rs.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?hs(this).weekYear:NaN}get weekNumber(){return this.isValid?hs(this).weekNumber:NaN}get weekday(){return this.isValid?hs(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?fs(this).weekday:NaN}get localWeekNumber(){return this.isValid?fs(this).weekNumber:NaN}get localWeekYear(){return this.isValid?fs(this).weekYear:NaN}get ordinal(){return this.isValid?cs(this.c).ordinal:NaN}get monthShort(){return this.isValid?fi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?fi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?fi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?fi.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=vn(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=Va(l,s),u=Va(d,o);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[Ur(this,{ts:l}),Ur(this,{ts:d})]:[this]}get isInLeapYear(){return ea(this.year)}get daysInMonth(){return dn(this.year,this.month)}get daysInYear(){return this.isValid?yi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ui(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ui(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:a,calendar:i}=bt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:a,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(Dt.instance(e),r)}toLocal(){return this.setZone(Ae.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:a=!1}={}){if(e=wr(e,Ae.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]=Ka(s,n,e)}return Ur(this,{ts:i,zone:e})}else return t.invalid(Wi(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:a}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:a});return Ur(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=cn(e,Ac),{minDaysInFirstWeek:a,startOfWeek:i}=mc(r,this.loc),n=!K(r.weekYear)||!K(r.weekNumber)||!K(r.weekday),s=!K(r.ordinal),o=!K(r.year),l=!K(r.month)||!K(r.day),d=o||l,c=r.weekYear||r.weekNumber;if((d||s)&&c)throw new Cr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Cr("Can't mix ordinal dates with month/day");let u;n?u=hc({...ln(this.c,a,i),...r},a,i):K(r.ordinal)?(u={...this.toObject(),...r},K(r.day)&&(u.day=Math.min(dn(u.year,u.month),u.day))):u=fc({...cs(this.c),...r});let[h,p]=Ka(u,this.o,this.zone);return Ur(this,{ts:h,o:p})}plus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e);return Ur(this,Pc(this,r))}minus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e).negate();return Ur(this,Pc(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let a={},i=Ze.normalizeUnit(e);switch(i){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(i==="weeks")if(r){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(i==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?bt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):ps}toLocaleString(e=sn,r={}){return this.isValid?bt.create(this.loc.clone(r),e).formatDateTime(this):ps}toLocaleParts(e={}){return this.isValid?bt.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=ms(this,o,s);return Ya.indexOf(s)>=3&&(l+="T"),l+=Oc(this,o,r,a,i,n,s),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?ms(this,e==="extended",Xa(r)):null}toISOWeekDate(){return Wa(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&&Ya.indexOf(o)>=3?"T":"")+Oc(this,s==="extended",r,e,a,n,o)):null}toRFC2822(){return Wa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Wa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ms(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")),Wa(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ps}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",a={}){if(!this.isValid||!e.isValid)return Ze.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=ty(r).map(Ze.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=ag(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?bi.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),Ec(r,this.plus(a),{...e,numeric:"always",units:i,unit:n})}toRelativeCalendar(e={}){return this.isValid?Ec(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Qe("min requires all arguments be DateTimes");return yc(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Qe("max requires all arguments be DateTimes");return yc(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,a={}){let{locale:i=null,numberingSystem:n=null}=a,s=we.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});return Zu(s,e,r)}static fromStringExplain(e,r,a={}){return t.fromFormatExplain(e,r,a)}static buildFormatParser(e,r={}){let{locale:a=null,numberingSystem:i=null}=r,n=we.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return new un(n,e)}static fromFormatParser(e,r,a={}){if(K(e)||K(r))throw new Qe("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:n=null}=a,s=we.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});if(!s.equals(r.locale))throw new Qe(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:c}=r.explainFromTokens(e);return c?t.invalid(c):ui(o,l,a,`format ${r.format}`,e,d)}static get DATE_SHORT(){return sn}static get DATE_MED(){return eu}static get DATE_MED_WITH_WEEKDAY(){return Dm}static get DATE_FULL(){return tu}static get DATE_HUGE(){return ru}static get TIME_SIMPLE(){return iu}static get TIME_WITH_SECONDS(){return au}static get TIME_WITH_SHORT_OFFSET(){return nu}static get TIME_WITH_LONG_OFFSET(){return su}static get TIME_24_SIMPLE(){return ou}static get TIME_24_WITH_SECONDS(){return lu}static get TIME_24_WITH_SHORT_OFFSET(){return du}static get TIME_24_WITH_LONG_OFFSET(){return cu}static get DATETIME_SHORT(){return uu}static get DATETIME_SHORT_WITH_SECONDS(){return pu}static get DATETIME_MED(){return hu}static get DATETIME_MED_WITH_SECONDS(){return fu}static get DATETIME_MED_WITH_WEEKDAY(){return Nm}static get DATETIME_FULL(){return mu}static get DATETIME_FULL_WITH_SECONDS(){return yu}static get DATETIME_HUGE(){return gu}static get DATETIME_HUGE_WITH_SECONDS(){return bu}};function ji(t){if(ae.isDateTime(t))return t;if(t&&t.valueOf&&xr(t.valueOf()))return ae.fromJSDate(t);if(t&&typeof t=="object")return ae.fromObject(t);throw new Qe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Nc={Count:"count",Start:"minValue",End:"maxValue"};function xg(t,e){let r=e.errors[t];throw new ct(e.modalHeaders.error,r??e.errors.simpleError)}function lr(t){return t.axes?.[0]?.valueFormat?.type}function c1(t){return t.intlOptions}function ot(t){return t?.type===g.NumberAxisFormat}function u1(t){return ot(t)&&t.intlOptions?.style==="percent"}function Fr(t){return t?.type===g.CategoryAxisFormat}function Qr(t){return t?.type===g.DateAxisFormat}function p1(t){let{oldConfig:e,newConfig:r,rotationChanged:a}=t;return a?[!0,!0]:[e.horizontalAxisLabelsBehavior!==r.horizontalAxisLabelsBehavior,e.verticalAxisLabelsBehavior!==r.verticalAxisLabelsBehavior]}function Fg(t){return ot(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||ot(t[2].valueFormat))}function Ig(t){return ot(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||ot(t[2].valueFormat))}function Tg(t){return(Fr(t?.[0]?.valueFormat)||Qr(t?.[0]?.valueFormat))&&ot(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||ot(t[2].valueFormat))}function Pg(t){return Fr(t?.[0]?.valueFormat)&&Fr(t?.[1]?.valueFormat)||Qr(t?.[0]?.valueFormat)&&Fr(t?.[1]?.valueFormat)||Qr(t?.[0]?.valueFormat)&&Qr(t?.[1]?.valueFormat)}function Og(t){return(Fr(t?.[0]?.valueFormat)||Qr(t?.[0]?.valueFormat))&&ot(t?.[1]?.valueFormat)}function Ag(t){return ot(t?.[0]?.valueFormat)&&ot(t?.[1]?.valueFormat)}function Lg(t){return ot(t?.[0]?.valueFormat)&&ot(t?.[1]?.valueFormat)}function Eg(t){return ot(t?.[0]?.valueFormat)}function h1(t){let{chartType:e,axesConfig:r,errorStrings:a}=t,i,n;switch(e){case g.GaugeSeries:i=Eg,n="invalidValueFormatForGauge";break;case g.ScatterSeries:i=Ag,n="invalidValueFormatForScatterplot";break;case g.HistogramSeries:i=Lg,n="invalidValueFormatForHistogram";break;case g.LineSeries:i=Fg,n="invalidValueFormatForLineChart";break;case g.BarSeries:i=Ig,n="invalidValueFormatForBarChart";break;case g.ComboLineAndBarSeries:i=Og,n="invalidValueFormatForComboBarLineChart";break;case g.BoxPlotSeries:i=Tg,n="invalidValueFormatForBoxPlot";break;case g.HeatSeries:i=Pg,n="invalidValueFormatForHeatChart";break}i!==void 0&&n!==void 0&&(i(r)||xg(n,a))}function Dg(t){let{isXAxis:e,chartType:r,valueFormat:a,isAxisForHistogramOverlaySeries:i}=t;return e&&(Fr(a)||r===g.HistogramSeries&&!i||r===g.BarSeries&&ot(a))}function f1(t){let{chartConfig:e,isSecondValueAxis:r,seriesIds:a}=t,i=a;return e.axes?.length===3&&(i=e.series.map(n=>{let s="";return(a===void 0||a.includes(n.id))&&(r===!0&&"assignToSecondValueAxis"in n&&n.assignToSecondValueAxis===!0||r!==!0&&(!("assignToSecondValueAxis"in n)||n.assignToSecondValueAxis!==!0))&&({id:s}=n),s}).filter(n=>n!=="")),i}var Ng={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},m1={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},Lr={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},re={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},Bg=32,Ir="arcgis_charts_features_extent",Ne={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:pa.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds"},Xu=["EXPR_1","Expr1","expr1","EXPR1"],y1=1,lt=.7,Mg=25,ep=[156,156,156,255],$g=[156,156,156,255],g1=hr.Solid,b1=2,Hi={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"},Li="arcgis_charts_box_plot_category",xe={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},qg=[[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]],v1=[[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]],kg=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]],S1=[[104,104,104,255],[51,124,235,255],[175,90,255,255],[156,156,156,255]];function Nt(t){let{colorIndex:e,opacity:r,histogramOverlays:a}=t,i=Math.max(0,e??0),n=[...a===!0?kg:qg],[s,o,l,d]=n[i%n.length],c=r!==void 0?r*255:d;return[s,o,l,c]}function tp(t){return[0,0,0,(t??lt)*255]}function w1(){return{type:g.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:Ce.SLS,style:hr.Dot,color:[211,211,211,255],width:1}}}function Cn(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function fe(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case re.ChartTitle:e.size=18;break;case re.AxisTitle:e.size=14;break;case re.LegendText:e.size=12;break;case re.LegendTitle:e.size=13;break;case re.DescriptionText:e.size=11;break}return e}function rp(t="",e=fe(),r){let a=me.Center;return(r===re.DataLabels||r===re.GuideLabel)&&(a=void 0),{type:Ce.TS,color:tp(),text:t,font:e,horizontalAlignment:a}}function oe(t){let{text:e,visible:r,font:a,type:i}=t??{text:"",visible:!0,font:fe()};return{type:g.Text,visible:r,content:rp(e,a,i)}}function ia(t){let e=t?.useRandomColor??!1,r=t?.useRampColor,a=t?.width??1,i=t?.isHistogramOverlay,n=t?.color??tp(1);return e?n=Cn():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:Ce.SLS,style:hr.Solid,color:n,width:a}}function Rg(){return{type:g.CategoryAxisFormat,characterLimit:11}}function C1(){return{type:g.DateAxisFormat,intlOptions:{}}}function js(){return{type:g.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function x1(){return{type:g.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function F1(){return{type:g.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function ys(t="Category Axis"){let e=oe({text:t,visible:!0,font:fe(re.AxisTitle)});e.content.horizontalAlignment=me.Center,e.content.verticalAlignment=Oe.Middle;let r=oe({text:t,visible:!0,font:fe(re.AxisLabels)});return{type:g.Axis,visible:!0,title:e,labels:r,valueFormat:Rg(),lineSymbol:ia({color:ep})}}function en(t="Value Axis"){let e=oe({text:t,visible:!0,font:fe(re.AxisTitle)}),r=oe({text:t,visible:!0,font:fe(re.AxisLabels)});return e.content.verticalAlignment=Oe.Middle,e.content.horizontalAlignment=me.Center,{type:g.Axis,visible:!0,title:e,labels:r,valueFormat:js(),lineSymbol:ia({color:ep})}}function Er(){return{type:g.Legend,visible:!0,title:oe({text:"",visible:!0,font:fe(re.LegendTitle)}),body:rp("",fe(re.LegendText)),position:ki.Right,maxHeight:Number.NaN}}function _a(t){return{type:g.Overlay,visible:!0,created:!1,symbol:ia({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function Dr(){return[255,255,255,255]}function dr(t){return t.utilsStrings.chartType.chart}function cr(){return`Chart ${Date.now()}`}function I1(t,e=!1){return{type:Ce.SFS,style:jr.Solid,color:e?Cn(lt):Nt({colorIndex:t??0,opacity:lt})}}function jg(t=0){return{type:Ce.SMS,style:ha.Circle,color:Nt({colorIndex:t,opacity:lt}),size:5}}function Vg(t){return{type:Ce.SLS,style:hr.Solid,color:Nt({colorIndex:t,opacity:lt}),width:2}}function Wg(t=!1){return{type:Ce.SMS,style:ha.Circle,color:t?Cn(lt):Nt({colorIndex:0,opacity:lt}),size:7}}function T1(){return{type:g.SizePolicy,field:"",scaleType:_o.Linear,minSize:5,maxSize:30}}function _g(t=!1){return{type:g.Overlays,trendLine:{type:g.Overlay,created:!1,visible:!0,symbol:{type:Ce.SLS,style:hr.Solid,color:t?Cn():Nt({colorIndex:1}),width:2}}}}function zg(t,e){let r=t.countSeries;return{type:g.HeatSeries,id:r,name:r,y:"",x:"",dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels)}),query:{outStatistics:[{statisticType:j.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:`${j.Count}_${e}_0`.toUpperCase()}],groupByFieldsForStatistics:[]}}}function Ug(){return{type:g.ScatterSeries,id:g.ScatterSeries,name:g.ScatterSeries,x:"",y:"",markerSymbol:Wg(),overlays:_g(),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels)})}}function Kr(t,e){let r=[],a=t.xAxis,i=t.utilsStrings.statistics.count,n,s,o=ia({opacity:Mg});switch(e===g.HeatSeries?s=ys(i):(s=en(i),s.grid=o),e){case g.BarSeries:case g.HeatSeries:{n=ys(a);break}case g.ScatterSeries:{n=en(a),n.grid=o;break}case g.RadarSeries:case g.LineSeries:case g.HistogramSeries:{n=en(a);break}case g.BoxPlotSeries:{n=ys("");break}}return n!==void 0&&r.push(n,s),r}function Hg(){return{type:g.GaugeNeedle,symbol:{type:Ce.SFS,color:[0,0,0,200]}}}function Gg(t){let e=[],r=t.xAxis,a=en(r);return a.needle=Hg(),e.push(a),e}function Qg(t){let e=t.commonStrings,r=t.objectIDField??"ObjectID",a=`${j.Count}_${r}_0`.toUpperCase(),i=e.countSeries;return{type:g.LineSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:Vg(t.seriesIndex),markerSymbol:jg(t.seriesIndex),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels)}),temporalBinning:{unit:Q.Day,size:0,timeAggregationType:Me.Start,trimIncompleteTimeInterval:!0,nullPolicy:at.Interpolate}}}function P1(t){return{...Qg(t),type:g.RadarSeries}}function Zg(t){return{type:Ce.SFS,style:jr.Solid,color:Nt({colorIndex:t,opacity:lt})}}function O1(t){let e=t.objectIDField??"*",r=t.commonStrings,a=`${j.Count}_Y_0`.toUpperCase(),i=r.countSeries;return{type:g.BarSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:Zg(t.seriesIndex),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels),type:re.DataLabels})}}function A1(t,e){let r=t.countSeries;return{name:r,type:g.BoxPlotSeries,id:r,fillSymbol:{type:Ce.SFS,style:jr.Solid,color:Nt({colorIndex:e,opacity:lt})},query:{},x:Li,y:""}}function Jg(){return{type:g.PieTick,visible:!0,lineSymbol:ia({width:1,color:$g})}}function Kg(){return{type:Ce.SFS,style:jr.Solid}}function L1(t,e){let r=`${j.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:g.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:r}],groupByFieldsForStatistics:[]},x:"",y:r,fillSymbol:Kg(),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels),type:re.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...js(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...js(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:Jg()}}function E1(t){let e=t.objectIDField??"ObjectID",r=`${j.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:g.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:r}]},x:""}}function Gi(){return!1}function D1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,rotated:Gi(),orderOptions:{data:{orderType:nt.Category,orderBy:ze.Ascending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.BarSeries),series:[],legend:Er()}}function N1(t,e=cr()){return{version:or,type:g.Chart,id:e,rotated:Gi(),colorMatch:!0,orderOptions:{data:{orderType:nt.Category,orderBy:ze.Ascending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),series:[],legend:Er(),axes:Kr(t,g.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function B1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,rotated:Gi(),orderOptions:{data:{orderType:nt.Category,orderBy:ze.Ascending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.LineSeries),series:[],legend:Er()}}function M1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:nt.Category,orderBy:ze.Ascending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.RadarSeries),series:[],legend:Er()}}function $1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:nt.YValue,orderBy:ze.Descending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),series:[],legend:{...Er(),displayNumericValue:!1,displayPercentage:!0}}}function q1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),series:[],axes:Gg(t)}}function k1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.ScatterSeries),series:[Ug()],legend:Er()}}function R1(t,e){return{version:or,type:g.Chart,id:cr(),title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),background:Dr(),axes:Kr(t,g.HeatSeries),series:[zg(t,e)],legend:{...Er(),position:ki.Bottom}}}function Yg(){return{type:g.Overlays,mean:_a(1),median:_a(2),standardDeviation:_a(3),comparisonDistribution:_a(4)}}function Xg(){return{type:Ce.SFS,style:jr.Solid,color:Nt({colorIndex:0,opacity:lt})}}function eb(){return{type:g.HistogramSeries,id:g.HistogramSeries,name:g.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:Yg(),dataTransformationType:Ge.None,fillSymbol:Xg(),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels)})}}function j1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.HistogramSeries),series:[eb()],legend:Er()}}var gs={behaviorAfterLimit:Lr.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 Yr(t){let e={...gs};return t!==void 0&&Object.keys(gs).forEach(r=>{let a=r;e[a]=t[a]??gs[a]}),e}function aa(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:200}}function V1(t,e){let r;switch(t){case j.Average:{r=e.utilsStrings.statistics.mean;break}case j.ContinuousPercentile:{r=e.utilsStrings.statistics.median;break}case j.Sum:{r=e.utilsStrings.statistics.sum;break}case j.Minimum:{r=e.utilsStrings.statistics.minimum;break}case j.Maximum:{r=e.utilsStrings.statistics.maximum;break}case j.Variance:{r=e.utilsStrings.statistics.variance;break}case j.DiscretePercentile:{r=e.utilsStrings.statistics.discretePercentile;break}case j.NoAggregation:{r=e.utilsStrings.statistics.noAggregation;break}case j.Count:default:{r=e.utilsStrings.statistics.count;break}}return r}function W1(t,e){let r;switch(t){case Me.End:{r=e.timeAggregationTypes.end;break}case Me.Start:{r=e.timeAggregationTypes.start;break}default:r="";break}return r}function tb(){return yt.Side}function _1(t){return t.utilsStrings.notAvailable}var rb=0,ib="_arcgis_charts_outliers",ab="_arcgis_charts_z_score",z1=[210,210,210,255*lt],U1=" percentage ",bs=[150,150,150,255],P={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:ki.Right},footer:{wrap:!0,horizontalCenter:me.Center,verticalCenter:Oe.Middle,align:me.Center},axisLabel:{rotation:0,align:me.Center,horizontalCenter:me.Center,verticalCenter:Oe.Top,dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:me.Left,verticalCenter:Oe.Bottom,dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:me.Center,verticalCenter:Oe.Middle,dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:me.Center,valign:Oe.Middle,rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:me.Center,valign:Oe.Middle,rotation:270,wrap:!0},titleLabel:{align:me.Center,wrap:!0},subtitleLabel:{align:me.Center,wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:me.Right,align:me.Right,verticalCenter:Oe.Middle,wrap:!0},horizontalLineGuideLabels:{horizontalCenter:me.Right,align:me.Right,verticalCenter:Oe.Top,wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:me.Center,verticalCenter:Oe.Top,valign:Oe.Top},verticalLineGuideLabels:{horizontalCenter:me.Right,verticalCenter:Oe.Bottom,valign:Oe.Top,wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:Ce.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:me.Center,verticalCenter:Oe.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:me.Center,horizontalCenter:me.Center,valign:Oe.Bottom,verticalCenter:Oe.Top,dy:-3},dataLabelRotated:{align:me.Right,horizontalCenter:me.Right,valign:Oe.Middle,verticalCenter:Oe.Middle,dx:2},dataLabelStackedRotated:{align:me.Center,horizontalCenter:me.Center,valign:Oe.Middle,verticalCenter:Oe.Middle},dataLabelStackedNonRotated:{align:me.Center,horizontalCenter:me.Center,valign:Oe.Middle,verticalCenter:Oe.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:jo.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:yt.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:5,markerStyle:ha.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,defaultStatParameterValue:.5,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:rb,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:Hi.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:Ce.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:ze.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],lightTextColor:[255,255,255,255],darkTextColor:[0,0,0,255],grayColor:bs,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderBackground:[255,255,255,230],loaderSpinnerColor:[0,122,194,255],loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",markerTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalYCategoryValue:"arcgis_charts_original_category_y_value",originalDateValue:"arcgis_charts_original_date_value",typeOrDomainFieldName:"arcgis_charts_type_domain_field_name",typeOrDomainIdValue:"arcgis_charts_type_domain_id_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_axis_field",nullValue:"arcgis_charts_null",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:Ce.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:Ce.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:Ng.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_arcgis_charts_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",options:{hideEmptySeries:!0,replaceNoValueCategoryWithZero:!0,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",symbol:{type:Ce.SFS,color:bs,outline:{type:Ce.SLS,style:hr.Solid,color:bs,width:1}}},classBreaks:{breaksCount:5}},Qi={...P,chartPadding:5,footerContainer:{...P.footerContainer,paddingTop:0,paddingBottom:0},headerContainer:{...P.headerContainer,paddingBottom:0},chartContainer:{...P.chartContainer},dataLabel:{...P.dataLabel,verticalCenter:"bottom"},scrollbarPadding:12,zIndexes:{guide:100,scatterplotTrendLine:2,bulletMarkers:1},verticalSurfaceGuideLabels:{wrap:!0},verticalLineGuideLabels:{wrap:!0,rotation:90},horizontalSurfaceGuideLabels:{wrap:!0},horizontalLineGuideLabels:{wrap:!0},overlayId:{scatterplotTrendLine:"arcgis_charts_scatter_plot_trendline",histogramMean:"arcgis_charts_histogram_mean",histogramMedian:"arcgis_charts_histogram_median",histogramStdDev:"arcgis_charts_histogram_std_dev",histogramNormalDistribution:"arcgis_charts_histogram_normal_distribution"},axisLabelSpacing:{verticalAxisLabelSidePadding:8,horizontalAxisLabelPaddingTop:6},legendPadding:20,heatChart:{gradientHeatRules:{minColor:[255,255,200,255],maxColor:[255,0,0,255],outsideRangeLowerColor:[250,250,250,255],outsideRangeUpperColor:[0,0,255,255]},legend:{position:ki.Bottom,chartPadding:40,legendPadding:20,width:70,bottomHeight:20,topHeight:50,titleHeight:10,titlePadding:10,gradientLabelsPadding:10},emptyCells:{symbol:{type:Ce.SFS,style:jr.Solid,color:P.grayColor},text:"null"},includeLeapDay:!1},heatChartLabelPadding:{paddingTop:2},heatChartFirstDayOfWeek:7,pieChartDataLabel:{minWidth:30},focusableThreshold:500};function nb(t){let{stringToTruncate:e,characterLimit:r,ellipsis:a=P.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 H1(t,e=":"){return t?`\u200F${e}`:`\u200E${e}`}function G1(t){return e=>{let r=typeof e!="string"?e?.toString()??"":e;return!Le(r)&&r!==P.htmlEmptyContent&&(r=nb({stringToTruncate:r,characterLimit:t})),r}}function sb(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 ob(t,e){let r="";return t!==void 0&&(r=`${e==="amChartsV5"?"fontStyle":"font-style"}:${t};`),r}function lb(t,e){let r="";return t===!0&&(r=`${e==="amChartsV5"?"letterSpacing":"letter-spacing"}:1px;`),r}function Q1(t){let{textSymbol:e,placeholderString:r,format:a,axisLabelsBehavior:i,defaults:n}=t,s=ob(e?.font?.style,a),o=lb(e?.kerning,a),l=r??e?.text??"";if(a==="html"){let{wrap:d,maxWidth:c}=n??{};i===Vo.Wrap&&(d=!0,c=c??P.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=sb(l),(s!==""||o!=="")&&(l=`[${s}${o}]${l}[/]`);return l}function db(t){return t?t.replace(/[A-Z]/gu,e=>`-${e.toLowerCase()}`):void 0}function wi(t){return Y(t?.series)===g.HeatSeries}function dt(t){return Y(t?.series)===g.BoxPlotSeries}function cb(t,e){return t[0].dataTransformationType!==e[0].dataTransformationType}function ub(t,e){return t[0].binCount!==e[0].binCount}function Z1(t,e){let r=!0,a=Y(t?.series),i=Y(e?.series);return a!==i&&(r=a===g.ComboLineAndBarSeries&&(i===g.BarSeries||i===g.LineSeries)||i===g.ComboLineAndBarSeries&&(a===g.BarSeries||a===g.LineSeries)||a===g.BarSeries&&i===g.LineSeries||a===g.LineSeries&&i===g.BarSeries),r}function Vs(t,e){return t!==void 0&&e!==void 0&&e>0}function J1(t){let{chartConfig:e,queryObject:r,chartData:a}=t,i=[],n=X(e.series),s=Cp(e),o=de(r),l=e.chartRenderer??o?.renderer?.toJSON();return i=e.series.map((d,c)=>{let u=Y([d]),h;return(u===g.BarSeries||u===g.LineSeries||u===g.RadarSeries)&&(d.type===g.BarSeries?h=d.fillSymbol?.color:(d.type===g.RadarSeries||d.type===g.LineSeries)&&(h=d.lineSymbol?.color),s?h=Cb({dataItem:a[0],seriesConfig:d,chartSubType:n,colorMatch:s,rendererType:l?.type})?.color:h===void 0&&(h=Nt({colorIndex:c}))),h}).filter(d=>d!==void 0),i}function Ws(t){return t!==C.PieNoAggregation&&t!==C.BarAndLineNoAggregation&&t!==C.BarAndLineSplitByNoAggregation}function pb(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 Zi(t){return dt(t)?t?.showMean??!1:!1}function hb(t){return dt(t)?t?.showOutliers:void 0}function K1(){return`{name} {${P.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`}var mi={ChartRenderer:1,LayerRenderer:2};function Y1(t){let{chartConfig:e,queryObject:r}=t,a=!1;if(e.chartRenderer)a=!0;else{let{series:i}=e,n=Y(i),s=X(i),o=Nr(e),l=ei({seriesConfig:o}),d=de(r)?.renderer;switch(d?.type){case Ke.Simple:a=n===g.HistogramSeries||n===g.ScatterSeries||s===C.BarAndLineMonoField||s===C.BoxPlotMonoField||s===C.BoxPlotMultiFields||s===C.BoxPlotMonoFieldAndCategory||s===C.BarAndLineNoAggregation&&i.length===1&&!l;break;case Ke.UniqueValue:{let c=d?.field,u=Ye(o.query?.where),{x:h}=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===h||s===C.BarAndLineNoAggregation||s===C.PieNoAggregation||n===g.ScatterSeries}break;case Ke.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 Ke.ClassBreaks:a=n===g.HeatSeries||n===g.ScatterSeries||s===C.BarAndLineNoAggregation||s===C.PieNoAggregation;break;case Ke.Dictionary:case Ke.DotDensity:case Ke.Heatmap:break}}return a}function fb(t,e){return db(t?.type)??e?.type}function mb(t){let e=P.rendererSymbolField,r=e in t?e:void 0;if(!r){let a=t[P.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 yb(t){return t?.type!==void 0&&(t.color!==void 0||t.label!==void 0||t.style!==void 0||t.outline!==void 0)}function ip(t){let{symbolField:e,dataItem:r,rendererSymbol:a,rendererOrigin:i}=t,n=!1;if(!yb(a))delete r[e];else{let s={...a};s.color!==void 0&&i===mi.LayerRenderer&&(s.color[3]=lt*255),i===mi.LayerRenderer&&(delete s.style,delete s.outline,delete s.label),r[e]=s,n=!0}return n}function gb(t){let{renderer:e,seriesConfig:r,chartSubType:a,dataItem:i,rendererOrigin:n}=t,s,o=!1,l=Y(r),{outline:d,attributes:c}=e;return c.forEach(u=>{let{field:h}=u,{color:p,label:f}=u,m;Array.isArray(p)&&p?.length===4?m=p:p&&"toRgba"in p&&(m=p.toRgba());let y=!1,b=!0;switch(l){case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:case g.RadarSeries:if(a!==C.BarAndLineFromFields){let v=r.find(S=>S.query?.outStatistics?.[0]?.onStatisticField===h);v!==void 0&&"y"in v?h=[v.y].flat()[0]:h=""}y=a!==C.BarAndLineFromFields||h===i[P.originalCategoryValue];break;case g.PieSeries:y=a===C.PieFromFields&&h===i[P.originalCategoryValue];break;case g.BoxPlotSeries:a===C.BoxPlotMonoField||a===C.BoxPlotMonoFieldAndCategory?y=h===r[0].y:h&&(a===C.BoxPlotMultiFields||a===C.BoxPlotMultiFieldsAndCategory)&&(y=r.map(v=>v.y).flat().includes(h)),b=!1;break}y&&m&&(s={type:Ce.SMS,color:m,label:b&&f?f:void 0},d!=null&&(s.outline=d),ip({dataItem:i,symbolField:a===C.BarAndLineFromFields||a===C.PieFromFields?P.rendererSymbolField:`${P.rendererSymbolField}_${h}`,rendererSymbol:s,rendererOrigin:n})&&(o=!0))}),{rendererSymbol:s,colorMatchApplied:o}}function bb(t){let{seriesConfig:e,chartSubType:r,rendererType:a}=t,i=P.rendererSymbolField;if(a===Ke.UniqueValue){if(Fp(r)){let n=ut({where:e.query?.where,keepSurroundingQuotes:!1,escape:!1});n===null?i=P.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===Ke.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 ap(t){let{seriesConfig:e,chartSubType:r,rendererType:a,dataItem:i}=t,n=bb({seriesConfig:e,chartSubType:r,rendererType:a});return n instanceof Array&&e.type===g.BoxPlotSeries&&a===Ke.PieChart&&i!==void 0&&(n=n.find(s=>s===i[Li])??n[0]),n=n!==P.rendererSymbolField?`${P.rendererSymbolField}_${n.toString()}`:n,n}function vb(t){let{chartRenderer:e,queryObject:r}=t,a=e!==void 0?{...de(r),renderer:Js.fromJSON(e)}:de(r);return new Sm({layer:a})}async function Sb(t){let{seriesConfig:e,dataItem:r,renderer:a,rendererType:i,rendererOrigin:n,chartSubType:s,splitByField:o,graphicTemplate:l,rendererFieldNames:d,mapAttributesToSymbol:c}=t,u,h=!1;if(i===Ke.PieChart){let p=gb({renderer:a,seriesConfig:e,chartSubType:s,dataItem:r,rendererOrigin:n});u=p.rendererSymbol,h=p.colorMatchApplied}else if(!Gp(r)){let{x:p}=e[0],f=new Map;o&&o.trim()!==""?e.forEach(m=>{if(m.type===g.BarSeries||m.type===g.LineSeries||m.type===g.BoxPlotSeries||m.type===g.RadarSeries){let y=ap({seriesConfig:m,chartSubType:s,rendererType:i,dataItem:r}),b=ut({where:m.query?.where,normalize:!0,keepSurroundingQuotes:!1,escape:!1});f.set(y,{...r,[o]:b})}}):e[0].type===g.HeatSeries&&i===Ke.ClassBreaks?f.set(P.rendererSymbolField,{[xe.valueField]:r[xe.valueField]}):f.set(P.rendererSymbolField,{...r,[p]:Tb(r)});try{let m=Array.from(f.entries()),y=l.clone();y.layer=l.layer;let b=a?.uniqueValueInfos;for(let v=0;v<m.length;v+=1){let[S,x]=m[v];if(Bc({mode:"encode",x:p,splitByField:o,attributes:x}),d&&d.length>0&&Object.keys(x).forEach(I=>{d.includes(I)||delete x[I]}),y.attributes=x,c?.has(JSON.stringify(x)))u=c.get(JSON.stringify(x));else{if(u=(await Ii.getDisplayedSymbol(y))?.toJSON(),u!=null){if(u.color===void 0){let A=(await Ii.getDisplayedColor(y))?.toJSON();A&&(u.color=A.length===4?A:[...A,255])}let I=await Ii.getLegendLabel(y);I!=null&&I!==""&&(u.label=I,u.uniqueValue=b?.find(A=>A.label===I)?.value??void 0)}c?.set(JSON.stringify(x),u)}Bc({mode:"revert",x:p,splitByField:o,attributes:r}),ip({dataItem:r,symbolField:S,rendererSymbol:u,rendererOrigin:n})&&(h=!0)}}catch{}}return{rendererSymbol:u,colorMatchApplied:h}}function wb(t){let e=t;return t?.type==="uniqueValue"&&(t.uniqueValueInfos=t.uniqueValueInfos.map(r=>{let a=r.value===null?P.nullValue:r.value;return{...r,value:a}})),e}function Bc(t){let{splitByField:e,attributes:r,x:a,mode:i}=t;[a,e??""].forEach(n=>{r[n]===(i==="encode"?null:P.nullValue)&&(r[n]=i==="encode"?P.nullValue:null)})}async function X1(t){let{data:e,queryObject:r,chartConfig:a,allowColorMatch:i}=t,n=!1,s=[];if(i){let{series:o,chartRenderer:l}=a,d=wb(l),c=d?mi.ChartRenderer:mi.LayerRenderer,u=r?de(r):void 0,h=d??u?.renderer,p;u&&c===mi.LayerRenderer?s=await rh(u):c===mi.ChartRenderer&&(s=Fb(h));let f=fb(d,u?.renderer),m=vb({chartRenderer:l,queryObject:r}),y=X(o),b=Nr(a),v=Ye(b.query?.where);p=new Map;for(let S=0;S<e.length;S+=1){let x=e[S],I=await Sb({seriesConfig:a.series,dataItem:x,renderer:h,rendererType:f,rendererOrigin:c,chartSubType:y,splitByField:v,graphicTemplate:m,mapAttributesToSymbol:p,rendererFieldNames:s});n=n||I.colorMatchApplied}}return{dataItems:e,colorMatchApplied:n,rendererFieldNames:s}}function Cb(t){let{dataItem:e,seriesConfig:r,chartSubType:a,colorMatch:i,rendererType:n}=t,s;if(i&&e!==void 0){let o=ap({seriesConfig:r,chartSubType:a,rendererType:n,dataItem:e});s=e[o]}return s}function eF(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};return r?.type===e.type&&r.style!==void 0&&(n.style=r.style),n.type!==Ce.SLS&&(n.outline={type:Ce.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 xb(t){let e=[];return t&&(e=t.series.flatMap(r=>r.query?.outStatistics?.map(a=>a.onStatisticField)).filter(r=>r!==void 0),e.length===0&&(e=tt(t.series))),e}function tF(t,e){let r=!1;if(t&&e&&e.length>0&&Cp(t)){let a=pb(t),i=Nr(t);a?r=xb(t).some(n=>e.includes(n)):r=e.includes(i.x)}return r}function Fb(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 Ib(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 Ji(t){let{value:e,dataContext:r,specificField:a,preferLabel:i,keepNullValues:n=!1,useRendererLabel:s=!1,config:o}=t,l=e,{originalCategoryValue:d,originalDateValue:c,typeOrDomainIdValue:u}=P;if(r!==void 0){let h=s?mb(r):void 0;a!==void 0&&r[a]!==void 0?l=r[a]:h!==void 0?l=h:i===!1&&r[u]!==void 0?l=r[u]:r[c]!==void 0?l=r[c]:r[d]!==void 0?l=r[d]:r[st]!==void 0&&(l=r[st]),!n&&l===null&&(l="null",o?.series?.[0].type===g.BarSeries&&(l=o.series?.[0]?.nullCategory?.text??Qi.nullCategory?.text??l))}return l}function Tb(t){return t?.[P.typeOrDomainIdValue]!==void 0?t?.[P.typeOrDomainIdValue]:t?.[P.originalCategoryValue]}function pn(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===ze.Descending&&i!==!0;e.sort((c,u)=>{let h=0,p=c[a];s===!0&&!l&&(p=Ji({value:`${c[a]?.toString()}`,dataContext:c,preferLabel:o}));let f=u[a];return s===!0&&!l&&(f=Ji({value:`${u[a]?.toString()}`,dataContext:u,preferLabel:o})),n===!0&&d&&s===!0&&(p=Number.isNaN(Number.parseFloat(`${p?.toString()}`))?p:Number.parseFloat(p),f=Number.isNaN(Number.parseFloat(`${f?.toString()}`))?f:Number.parseFloat(f)),s===!0&&(c[P.originalCategoryValue]===null||p===null)||c[Hi.defaultGroupOfSlicesId]===!0?h=1:s===!0&&(u[P.originalCategoryValue]===null||f===null)||u[Hi.defaultGroupOfSlicesId]===!0?h=-1:typeof p=="string"&&typeof f=="string"?(h=p.localeCompare(f,void 0,{numeric:!0}),d&&(h*=-1)):p===void 0?h=d?-1:1:f===void 0?h=d?1:-1:p!==null&&f!==null&&(p>f?h=d?-1:1:p<f&&(h=d?1:-1)),h})}}function Pb(t){let{arrayToSort:e,orderBy:r,sortingField:a,fieldList:i,isByFieldsChart:n,preferLabel:s}=t;e!==void 0&&e.length>1&&!Le(a)&&r!==void 0&&r.length>0&&e.sort((o,l)=>{let d=o[a];s&&n&&typeof d=="string"&&(d=Hs(i,d));let c=r.indexOf(d?.toString()??"");c===-1&&(c=r.length);let u=l[a];s&&n&&typeof u=="string"&&(u=Hs(i,u));let h=r.indexOf(u?.toString()??"");return h===-1&&(h=r.length),c-h})}function Ob(t,e){let r=t;if(e?.[0]!==void 0&&X(e)===C.PieFromFields){let{x:a,y:i}=e[0];(ua(t)?r:r.dataItems).forEach(n=>(st in n&&a!==st&&(n[a]=n[a]!==void 0?n[a]:n[st],delete n[st]),jt in n&&i!==jt&&(n[i]=n[i]!==void 0?n[i]:n[jt],delete n[jt]),n))}return r}function Ab(t,e){let r=Y(e),a=t,i=e?.[0];if((r===g.PieSeries||r===g.BoxPlotSeries||r===g.LineSeries||r===g.RadarSeries||r===g.BarSeries||r===g.HeatSeries||r===g.ComboLineAndBarSeries)&&i!==void 0){let n=ua(t),s=n?t:t.dataItems;if(t!==void 0){let{originalCategoryValue:o,originalDateValue:l,xAxisField:d,typeOrDomainIdValue:c}=P,u=r===g.HeatSeries?xe.xField:i.x;s=s.map(h=>{let p=h[u];h[c]!==void 0?p=h[c]:h[l]!==void 0?p=h[l]:h[o]!==void 0&&(p=h[o]);let f={...h,[u]:p};return delete f[l],delete f[c],delete f[o],delete f[d],f}),n?a=s:"dataItems"in a&&(a.dataItems=s)}}return a}function Mc(t){let e={...t};delete e[P.technicalSortingFieldBySum],delete e[P.technicalSortingFieldByPercent],delete e[P.pieChart.technicalFieldSlicePercent],delete e[P.pieChart.technicalFieldGroupedSlices],delete e[P.typeOrDomainFieldName],delete e[P.lastTemporalBin],delete e[P.originalServerBinningRange],delete e[P.technicalFieldSplitByField],delete e[Ne.uniqueIdsName],Object.keys(e).filter(a=>a.includes(P.rendererSymbolField)).forEach(a=>delete e[a]);let r=Fn(e);return r.isInItem&&delete e[r.expr??""],e}function Lb(t,e){let r=t,a=Y(e),i=ih(r);if(i!==void 0)switch(a){case g.ComboLineAndBarSeries:case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.PieSeries:{i=i.map(Mc),r={dataItems:i};let{timeIntervalInfo:n,serverLimitReached:s}=t??{};ko(n)||(r.timeIntervalInfo=n),s!==void 0&&(r.serverLimitReached=s)}break;case g.ScatterSeries:r={...r,dataItems:i.map(Mc)};break}return r}function np(t){let{data:e,seriesConfig:r}=t,a=Rr(e);return a!==void 0&&(a=Ab(a,r),a=Lb(a,r),a=Ob(a,r)),a}function sp(t){let{statsMap:e,dataContext:r,chartLimits:a}=t,i=!1;if(e!==void 0){let{maxScatterPointsBeforeAggregation:n}=Yr(a),{queryNumberOfFeatures:s}=P.scatterplotAggregationFields;i=(e.get(s)??Number.NaN)>=n}else r!==void 0&&(i=P.scatterplotAggregationFields.dataContextXMinField in r);return i}function Eb(t){let e=!0,r=Y(t.series);if(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries){let a=X(t.series);e=a!==C.BarAndLineNoAggregation&&a!==C.BarAndLineSplitByNoAggregation}return e}function Db(t){return X(t.series)!==C.PieNoAggregation}function Nb(t){let{dataContext:e,chartConfig:r,chartLimits:a}=t,i=!0;if(r!==void 0)switch(Y(r.series)){case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:i=Eb(r);break;case g.ScatterSeries:i=sp({dataContext:e,chartLimits:a});break;case g.PieSeries:i=Db(r);break}return i}function Bb(t,e){let r=t;switch(e){case Ge.Log:r=`log(${t})`;break;case Ge.Sqrt:r=`power(CAST(${t} AS FLOAT),0.5)`;break}return r}function Ci(t){let e=new Date(t).valueOf();return Number.isNaN(e)||(e=new Intl.DateTimeFormat("en-US",P.dateFormatUTC).format(t).replace(",","")),e}function hn(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]:Hs(i,o),[a]:e[o],[P.xAxisField]:o,[P.originalCategoryValue]:o};s!==void 0&&(l[Ir]=s),e[`${P.rendererSymbolField}_${o}`]!==void 0&&(l[P.rendererSymbolField]=e[`${P.rendererSymbolField}_${o}`]),n.push(l)}})}return n}function Mb(t,e){let r=!0;if(t!==void 0&&t.length>1&&!Le(e)){let a=0,i=0,n=0;t.forEach(s=>{let o=s[e];!Bv(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 za(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 op(t,e){let r,{maxBarChartSeriesCount:a,maxBarUniqueSeriesCountTotal:i,maxBarTwoSeriesCountPerSeries:n,maxBarTwoSeriesCountTotal:s,maxBarThreePlusSeriesCountPerSeries:o,maxBarThreePlusSeriesCountTotal:l,maxLineChartSeriesCount:d,maxLineUniqueSeriesCountTotal:c,maxLineTwoSeriesCountPerSeries:u,maxLineTwoSeriesCountTotal:h,maxLineThreePlusSeriesCountPerSeries:p,maxLineThreePlusSeriesCountTotal:f,maxPieChartSliceCountTotal:m,maxGaugeByFeaturesLimit:y}=Yr(e),b=Y(t.series),v=t.series.length===0?1:t.series.length,S=X(t.series);switch(b){case g.ComboLineAndBarSeries:case g.BarSeries:v<=a&&(v===1?r=i:v===2?r=za({countTotal:s,countPerSeries:n,numberOfSeries:v}):v>2&&(r=za({countTotal:l,countPerSeries:o,numberOfSeries:v})));break;case g.LineSeries:v<=d&&(v===1?r=c:v===2?r=za({countTotal:h,countPerSeries:u,numberOfSeries:v}):v>2&&(r=za({countTotal:f,countPerSeries:p,numberOfSeries:v})));break;case g.PieSeries:r=m;break;case g.GaugeSeries:r=y;break;case g.ScatterSeries:case g.HistogramSeries:case g.BoxPlotSeries:}return(S===C.BarAndLineNoAggregation||S===C.BarAndLineMultiFields)&&r!==void 0&&(r=Math.ceil(r/v)),r}function $c(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 $b(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 rF(t){let e;if($b(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 H={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"};var fn=function(){return fn=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},fn.apply(this,arguments)},_s={exports:{}},Be={},zs={exports:{}},Xr={};function lp(){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 qb(t,e,r){}function kb(t,e,r){}var Rb=/javascript\s*\:/img;function jb(t,e){return Rb.test(e)?"":e}Xr.whiteList=lp();Xr.getDefaultWhiteList=lp;Xr.onAttr=qb;Xr.onIgnoreAttr=kb;Xr.safeAttrValue=jb;var Vb={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,"")}},Vi=Vb;function Wb(t,e){t=Vi.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,a=!1,i=0,n=0,s="";function o(){if(!a){var c=Vi.trim(t.slice(i,n)),u=c.indexOf(":");if(u!==-1){var h=Vi.trim(c.slice(0,u)),p=Vi.trim(c.slice(u+1));if(h){var f=e(i,s.length,h,p,c);f&&(s+=f+"; ")}}}i=n+1}for(;n<r;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,i=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
5
- `&&o()}return Vi.trim(s)}var _b=Wb,Ua=Xr,zb=_b;function qc(t){return t==null}function Ub(t){var e={};for(var r in t)e[r]=t[r];return e}function dp(t){t=Ub(t||{}),t.whiteList=t.whiteList||Ua.whiteList,t.onAttr=t.onAttr||Ua.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Ua.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Ua.safeAttrValue,this.options=t}dp.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=zb(t,function(l,d,c,u,h){var p=a[c],f=!1;if(p===!0?f=p:typeof p=="function"?f=p(u):p instanceof RegExp&&(f=p.test(u)),f!==!0&&(f=!1),u=s(c,u),!!u){var m={position:d,sourcePosition:l,source:h,isWhite:f};if(f){var y=i(c,u,m);return qc(y)?c+":"+u:y}else{var y=n(c,u,m);if(!qc(y))return y}}});return o};var Hb=dp;(function(t,e){var r=Xr,a=Hb;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]})(zs,zs.exports);var oo=zs.exports,lo={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}},Gb=oo.FilterCSS,Qb=oo.getDefaultWhiteList,mn=lo;function cp(){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 up=new Gb;function Zb(t,e,r){}function Jb(t,e,r){}function Kb(t,e,r){}function Yb(t,e,r){}function pp(t){return t.replace(ev,"&lt;").replace(tv,"&gt;")}function Xb(t,e,r,a){if(r=bp(r),e==="href"||e==="src"){if(r=mn.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(Ha.lastIndex=0,Ha.test(r))return""}else if(e==="style"){if(kc.lastIndex=0,kc.test(r)||(Rc.lastIndex=0,Rc.test(r)&&(Ha.lastIndex=0,Ha.test(r))))return"";a!==!1&&(a=a||up,r=a.process(r))}return r=vp(r),r}var ev=/</g,tv=/>/g,rv=/"/g,iv=/&quot;/g,av=/&#([a-zA-Z0-9]*);?/gim,nv=/&colon;?/gim,sv=/&newline;?/gim,Ha=/((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,kc=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Rc=/u\s*r\s*l\s*\(.*/gi;function hp(t){return t.replace(rv,"&quot;")}function fp(t){return t.replace(iv,'"')}function mp(t){return t.replace(av,function(e,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function yp(t){return t.replace(nv,":").replace(sv," ")}function gp(t){for(var e="",r=0,a=t.length;r<a;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return mn.trim(e)}function bp(t){return t=fp(t),t=mp(t),t=yp(t),t=gp(t),t}function vp(t){return t=hp(t),t=pp(t),t}function ov(){return""}function lv(t,e){typeof e!="function"&&(e=function(){});var r=!Array.isArray(t);function a(s){return r?!0:mn.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 mn.forEach(i,function(d){o+=s.slice(l,d[0]),l=d[1]}),o+=s.slice(l),o}}}function dv(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 cv(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("")}Be.whiteList=cp();Be.getDefaultWhiteList=cp;Be.onTag=Zb;Be.onIgnoreTag=Jb;Be.onTagAttr=Kb;Be.onIgnoreTagAttr=Yb;Be.safeAttrValue=Xb;Be.escapeHtml=pp;Be.escapeQuote=hp;Be.unescapeQuote=fp;Be.escapeHtmlEntities=mp;Be.escapeDangerHtml5Entities=yp;Be.clearNonPrintableCharacter=gp;Be.friendlyAttrValue=bp;Be.escapeAttrValue=vp;Be.onIgnoreTagStripAll=ov;Be.StripTagBody=lv;Be.stripCommentTag=dv;Be.stripBlankChar=cv;Be.cssFilter=up;Be.getDefaultCSSWhiteList=Qb;var xn={},Sr=lo;function uv(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 pv(t){return t.slice(0,2)==="</"}function hv(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=uv(c),a+=e(n,a.length,d,c,pv(c)),i=o+1,n=!1;continue}if(u==='"'||u==="'")for(var h=1,p=t.charAt(o-h);p.trim()===""||p==="=";){if(p==="="){s=u;continue e}p=t.charAt(o-++h)}}else if(u===s){s=!1;continue}}return i<t.length&&(a+=r(t.substr(i))),a}var fv=/[^a-zA-Z0-9\\_:.-]/gim;function mv(t,e){var r=0,a=0,i=[],n=!1,s=t.length;function o(h,p){if(h=Sr.trim(h),h=h.replace(fv,"").toLowerCase(),!(h.length<1)){var f=e(h,p||"");f&&i.push(f)}}for(var l=0;l<s;l++){var d=t.charAt(l),c,u;if(n===!1&&d==="="){n=t.slice(r,l),r=l+1,a=t.charAt(r)==='"'||t.charAt(r)==="'"?r:gv(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=yv(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=bv(t,l-1),u===-1){c=Sr.trim(t.slice(r,l)),c=jc(c),o(n,c),n=!1,r=l+1;continue}else continue}return r<t.length&&(n===!1?o(t.slice(r)):o(n,jc(Sr.trim(t.slice(r))))),Sr.trim(i.join(" "))}function yv(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="="?e:-1}}function gv(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="'"||r==='"'?e:-1}}function bv(t,e){for(;e>0;e--){var r=t[e];if(r!==" ")return r==="="?e:-1}}function vv(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function jc(t){return vv(t)?t.substr(1,t.length-2):t}xn.parseTag=hv;xn.parseAttr=mv;var Sv=oo.FilterCSS,Rt=Be,Sp=xn,wv=Sp.parseTag,Cv=Sp.parseAttr,tn=lo;function Ga(t){return t==null}function xv(t){var e=tn.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=tn.trim(t.slice(e+1,-1));var r=t[t.length-1]==="/";return r&&(t=tn.trim(t.slice(0,-1))),{html:t,closing:r}}function Fv(t){var e={};for(var r in t)e[r]=t[r];return e}function Iv(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 wp(t){t=Fv(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=Rt.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=Iv(t.whiteList||t.allowList):t.whiteList=Rt.whiteList,t.onTag=t.onTag||Rt.onTag,t.onTagAttr=t.onTagAttr||Rt.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||Rt.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||Rt.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||Rt.safeAttrValue,t.escapeHtml=t.escapeHtml||Rt.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new Sv(t.css))}wp.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=Rt.stripBlankChar(t)),r.allowCommentTag||(t=Rt.stripCommentTag(t));var u=!1;r.stripIgnoreTagBody&&(u=Rt.StripTagBody(r.stripIgnoreTagBody,n),n=u.onIgnoreTag);var h=wv(t,function(p,f,m,y,b){var v={sourcePosition:p,position:f,isClosing:b,isWhite:Object.prototype.hasOwnProperty.call(a,m)},S=i(m,y,v);if(!Ga(S))return S;if(v.isWhite){if(v.isClosing)return"</"+m+">";var x=xv(y),I=a[m],A=Cv(x.html,function(q,L){var O=tn.indexOf(I,q)!==-1,M=s(m,q,L,O);return Ga(M)?O?(L=l(m,q,L,c),L?q+'="'+L+'"':q):(M=o(m,q,L,O),Ga(M)?void 0:M):M});return y="<"+m,A&&(y+=" "+A),x.closing&&(y+=" /"),y+=">",y}else return S=n(m,y,v),Ga(S)?d(y):S},d);return u&&(h=u.remove(h)),h};var Tv=wp;(function(t,e){var r=Be,a=xn,i=Tv;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)})(_s,_s.exports);var pi=_s.exports,Pv=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},Ov=(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=fn(fn({},pi.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):pi.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 pi.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?pi.escapeAttrValue(e):!n&&!i?pi.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):pi.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(Pv(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})(),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"},iF={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function Cp(t){return t?.colorMatch??!1}function Vc(t){let e=Gi();if(t!==void 0){let r=Y(t.series);(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries||r===g.BoxPlotSeries)&&(e=t.rotated??Gi())}return e}function aF(t){return t?.map(e=>e.type)??[]}function co(t){let e=t?.stackedType;if(e===void 0&&t!==void 0){let r=Y(t.series);(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries||r===g.RadarSeries)&&(e=tb())}return e}function Av(t){let e=t;return e=e.replace(/'/gu,"''"),e=e.replace(/[/\\"|[\]\\]/gu,"\\$&"),e}function Lv(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 Us(t){let e=t,r="";t.startsWith("'")&&t.endsWith("'")&&(e=t.slice(1,-1),r="'"),e=e.replace(/'/gu,"''");let a="";return Lv(e)&&(a="N"),`${a}${r}${e}${r}`}function xp(t){let{value:e,keepSurroundingQuotes:r,escape:a}=t,i=e?.trim();if(!Le(i)){let n="";i.startsWith("'")&&i.endsWith("'")&&(i=i.slice(1,-1),r&&(n="'")),a!==!1&&(i=Av(i)),i=`${n}${i}${n}`}return i}function ir(t){let{count:e,seriesCount:r,chartType:a,chartLimits:i}=t,{behaviorAfterLimit:n}=i??{},s=!0;if(n!==Lr.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:d,maxBarTwoSeriesCountTotal:c,maxBarThreePlusSeriesCountPerSeries:u,maxBarThreePlusSeriesCountTotal:h,maxLineChartSeriesCount:p,maxLineUniqueSeriesCountTotal:f,maxLineTwoSeriesCountPerSeries:m,maxLineTwoSeriesCountTotal:y,maxLineThreePlusSeriesCountPerSeries:b,maxLineThreePlusSeriesCountTotal:v,maxPieChartSliceCountTotal:S,maxGaugeByFeaturesLimit:x,maxBoxPlotSeriesCount:I,maxBoxUniqueSeriesCountTotal:A,maxBoxTwoSeriesCountTotal:q,maxBoxTwoSeriesCountPerSeries:L,maxBoxThreePlusSeriesCountTotal:O,maxBoxThreePlusSeriesCountPerSeries:M,maxHeatChartCellLimit:N}=Yr(i);switch(a){case g.BarSeries:case g.ComboLineAndBarSeries:{let k=e/r;r<=o?r===0?s=!0:r===1?s=e<=l:r===2?s=e<=c&&k<=d:r>2&&(s=e<=h&&k<=u):s=!1}break;case g.LineSeries:case g.RadarSeries:{let k=e/r;r<=p?r===0?s=!0:r===1?s=e<=f:r===2?s=e<=y&&k<=m:r>2&&(s=e<=v&&k<=b):s=!1}break;case g.PieSeries:s=e<=S;break;case g.BoxPlotSeries:{let k=e/r;r<=I?r===0?s=!0:r===1?s=e<=A:r===2?s=e<=q&&k<=L:r>2&&(s=e<=O&&k<=M):s=!1}break;case g.HeatSeries:s=e<=N;break;case g.GaugeSeries:s=e<=x;break}}return s}function Hs(t=[],e){let r=t.find(a=>a.name===e)?.alias;return r!==""?r??e:e}function nF(t=[],e){let r=t.find(a=>a.alias===e)?.name;return r!==""?r??e:e}function sF(t){let e=!1;switch(Y(t)){case g.HeatSeries:case g.PieSeries:e=!0;break;case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.ComboLineAndBarSeries:case g.BoxPlotSeries:e=t.length>1;break;case g.HistogramSeries:case g.ScatterSeries:{let r=t[0];e=r.overlays!==void 0&&Object.values(r.overlays).some(a=>a.created===!0);break}}return e}function Ev(t){let e=!0;return Y(t.series)===g.ScatterSeries&&(e=t.series.length===1),e}function Dv(t){let e=!0;return Y(t.series)===g.HistogramSeries&&(e=t.series.length<=1&&t.series[0].type===g.HistogramSeries&&(!("dataTransformationType"in t.series[0])||t.series[0].dataTransformationType!==void 0&&Object.values(Ge).includes(t.series[0].dataTransformationType))),e}function Nv(t){let e=!0;return Y(t.series)===g.PieSeries&&(e=t.series.length<=1),e}function oF(t,e){let r=Y(e?.series),a=r!==void 0&&t.includes(r);if(a&&e!==void 0)switch(r){case g.HistogramSeries:a=Dv(e);break;case g.ScatterSeries:a=Ev(e);break;case g.PieSeries:a=Nv(e);break}return a}function Le(t){return t==null||typeof t=="string"&&t.trim()===""}function rn(t,e){let r=e.find(a=>a in t);return{isInItem:r!==void 0,expr:r}}function Fn(t){return rn(t,Xu)}function lF(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 dF(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 cF(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===g.HistogramSeries&&(n=e.series[0].overlays?.mean);break;case rr.Median:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.median);break;case rr.StdDev:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.standardDeviation);break;case rr.Normal:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.comparisonDistribution);break;case rr.Trendline:e.series[0].type===g.ScatterSeries&&(n=e.series[0].overlays?.trendLine);break;default:n=e.series.find(s=>s.id===r);break}n!==void 0&&(n.visible=i)}}function uF(t){return new Ov().sanitize(t)}function Bv(t){return t!=null&&!Number.isNaN(t)&&Number.isFinite(t)}function pF(t,e){let r={fieldToSort:""};if(!Le(t)){let a=t.trim(),i=a.split(" ").at(-1)?.toUpperCase();i===ze.Ascending||i===ze.Descending?r={fieldToSort:a.substring(0,a.lastIndexOf(" ")),orderBy:i}:(r={fieldToSort:a},e!==!1&&(r.orderBy=ze.Ascending))}return r}function Fp(t){return t===C.BarAndLineSplitBy||t===C.BarAndLineSplitByNoAggregation||t===C.BoxPlotMonoFieldAndSplitBy||t===C.BoxPlotMultiFieldsAndSplitBy||t===C.BoxPlotMonoFieldAndCategoryAndSplitBy}function hF(t){return t?.selectionOIDs===void 0||t.selectionOIDs.length===0}function fF(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 mF(t){return Y(t.series)!==g.BoxPlotSeries?P.xAxisField:t.series[0].x}function yF(t){let e=co(t);return e===yt.Stacked||e===yt.Stacked100}function Mv(t){let e,r=t?.orderOptions?.data;return t.series?.length>0&&r?.orderType===nt.MultiAxes&&(e=[],e.push({sortingField:r.orderByX!==void 0?xe.xField:"",orderBy:r.orderByX}),e.push({sortingField:r.orderByY!==void 0?xe.yField:"",orderBy:r.orderByY})),e}function $v(t){let e=X(t.series),r;if(t.orderOptions?.data!==void 0){let a=t.orderOptions?.data?.orderType??nt.Category,i=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0;if(a===nt.Category)a=t.series[0].x;else{a===nt.Mean?a=H.Average:a===nt.Median&&(a=H.Median);let n=e===C.BoxPlotMultiFieldsAndCategory&&typeof t.series[0].y=="string"?t.series[0].y:void 0,s=Ye(t.series[0].query?.where),o=ut({where:t.series[0].query?.where});a=Ue({key:a,y:n,chartSubType:e,splitBy:s,splitByValue:o}),Array.isArray(i)&&(i=ze.Ascending)}r={sortingField:a,orderBy:i??ze.Ascending,preferLabel:t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel??!0:!0}}return r}function qv(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){if(o=t.orderOptions?.data?.orderType??nt.Category,l=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0,o===nt.Category?o=i?st:r:o=i?jt:[a].flat()[0],o!==void 0&&o!==""){let d=co(t);if(Y(t.series)!==g.PieSeries&&o!==r&&t.series?.length>1)switch(d){case yt.Stacked:o=P.technicalSortingFieldBySum;break;case yt.Stacked100:o=P.technicalSortingFieldByPercent;break;case yt.Side:typeof a=="string"&&(o=a);break}s={sortingField:o,orderBy:l??ze.Ascending,preferLabel:t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel:!0}}}else(n||i)&&t.series[0].query?.outStatistics&&(l=t.series[0].query.outStatistics.map(d=>d.onStatisticField),l?.length>1&&(s={sortingField:Qi.originalCategoryValue,orderBy:l,preferLabel:!1}));return s}function Gs(t){let e,r=Y(t.series);if(t.series?.length>0){let a;switch(r){case g.HeatSeries:wi(t)&&(e=Mv(t));break;case g.BoxPlotSeries:dt(t)&&(a=$v(t));break;case g.LineSeries:case g.BarSeries:case g.RadarSeries:case g.PieSeries:a=qv(t);break}!e&&a&&(e=[],e.push(a))}return e}function gF(t){let{oldConfig:e,newConfig:r,dataWasUpdated:a}=t,i=Y(r.series),n=X(r.series),s=!1,o=!1;if(n!==C.BoxPlotMonoField&&n!==C.BoxPlotMonoFieldAndSplitBy&&r.orderOptions?.data!==void 0){let l=Gs(e),d=Gs(r);if(i===g.HeatSeries){let c=l?l[0]:void 0,u=d?d[0]:void 0,h=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||h?.sortingField!==p?.sortingField||h?.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 bF(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 kv(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 Ip(t){return wi(t)&&Fr(t?.axes?.[0]?.valueFormat)&&Fr(t?.axes?.[1]?.valueFormat)}function yn(t){let{dataInfo:e,chartType:r,subError:a}=t;switch(e.valid=!1,r){case g.BarSeries:case g.ComboLineAndBarSeries:e.invalidType=se.BarElementExceedsLimit;break;case g.LineSeries:e.invalidType=se.LineChartExceedsLimit;break;case g.PieSeries:e.invalidType=se.PieChartExceedsLimit;break;case g.GaugeSeries:e.invalidType=se.GaugeExceedsLimit;break;case g.BoxPlotSeries:a?.outlierLimit===!0?e.invalidType=se.BoxPlotOutliersExceedsLimit:e.invalidType=se.BoxPlotExceedsLimit;break;case g.HeatSeries:e.invalidType=se.HeatChartExceedsLimit;break}}function Rv(t,e){t.valid=!1,t.invalidType=e}function vF(t){let{invalidType:e,chartLimits:r,elementCount:a,seriesCount:i,queryObject:n,filterBySelection:s,formatLocale:o=oh(document.documentElement),isTemporalChart:l,errorStrings:d}=t,c=d.errors.defaultInvalidChart,u,h=new Intl.NumberFormat(o),p=Yr(r),{maxCategoryCount:f}=p,m=d.modalHeaders.invalidChart;switch(e){case se.BarElementExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxBarChartSeriesCount?i===1?(v=d.errors.uniqueSeriesBarCountCannotExceedLimit,y=p.maxBarUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBarCountCannotExceedLimit,y=p.maxBarTwoSeriesCountTotal,b=p.maxBarTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusSeriesBarCountCannotExceedLimit,y=p.maxBarThreePlusSeriesCountTotal,b=p.maxBarThreePlusSeriesCountPerSeries):(v=d.errors.barSeriesCountCannotExceedLimit,b=p.maxBarChartSeriesCount));let S=h.format(y),x=h.format(b),I=a!==void 0?h.format(a):"";c=qe(v,{totalLimit:S,seriesLimit:x,elementCount:I}),u={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b};break}case se.LineChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxLineChartSeriesCount?i===1?(v=l?d.errors.uniqueTemporalSeriesLineCountCannotExceedLimit:d.errors.uniqueSeriesLineCountCannotExceedLimit,y=p.maxLineUniqueSeriesCountTotal):i===2?(v=l?d.errors.twoTemporalSeriesLineCountCannotExceedLimit:d.errors.twoSeriesLineCountCannotExceedLimit,y=p.maxLineTwoSeriesCountTotal,b=p.maxLineTwoSeriesCountPerSeries):i>2&&(v=l?d.errors.threePlusTemporalSeriesLineCountCannotExceedLimit:d.errors.threePlusSeriesLineCountCannotExceedLimit,y=p.maxLineThreePlusSeriesCountTotal,b=p.maxLineThreePlusSeriesCountPerSeries):(v=d.errors.lineSeriesCountCannotExceedLimit,b=p.maxLineChartSeriesCount));let S=h.format(y),x=h.format(b),I=a!==void 0?h.format(a):"";c=qe(v,{elementCount:I,seriesLimit:x,totalLimit:S}),u={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b}}break;case se.BoxPlotExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxBoxPlotSeriesCount?i===1?(v=d.errors.uniqueSeriesBoxCountCannotExceedLimit,y=p.maxBoxUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBoxCountCannotExceedLimit,y=p.maxBoxTwoSeriesCountTotal,b=p.maxBoxTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusBoxLineCountCannotExceedLimit,y=p.maxBoxThreePlusSeriesCountTotal,b=p.maxBoxThreePlusSeriesCountPerSeries):(v=d.errors.boxSeriesCountCannotExceedLimit,b=p.maxBoxPlotSeriesCount));let S=h.format(y),x=h.format(b),I=a!==void 0?h.format(a):"";c=qe(v,{elementCount:I,seriesLimit:x,totalLimit:S}),u={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b}}break;case se.BoxPlotOutliersExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.boxSeriesOutlierCannotExceedLimit,b=p.maxBoxPlotOutlierLimit,v=h.format(b);c=qe(y,{totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:b}}break;case se.HeatChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.heatChartCannotExceedLimit,b=p.maxHeatChartCellLimit,v=h.format(b),S=a!==void 0?h.format(a):"";c=qe(y,{featureCount:S,totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:b}}break;case se.PieChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.pieChartSlicesCannotExceedLimit,b=p.maxPieChartSliceCountTotal,v=h.format(b),S=a!==void 0?h.format(a):"";c=qe(y,{sliceCount:S,totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:b}}break;case se.GaugeExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.gaugeCannotExceedLimit,b=p.maxGaugeByFeaturesLimit,v=h.format(b),S=a!==void 0?h.format(a):"";c=qe(y,{featureCount:S,totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:b}}break;case se.PieChartMixOfNegativePositiveSlices:m=d.modalHeaders.cannotCombineNegativeAndPositiveSlices,c=d.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;break;case se.NegativeValueInSqrtCalculation:m=d.modalHeaders.invalidData,c=d.errors.negativeValueInDataForSqrtTransformation;break;case se.NegativeValueInLogCalculation:m=d.modalHeaders.invalidData,c=d.errors.negativeValueInDataForLogTransformation;break;case se.HistogramEmptyField:s===!0?(m=d.modalHeaders.noDataAvailable,c=d.errors.noDataFBSMessage):Ar(n)?(m=d.modalHeaders.noDataAvailable,c=d.errors.noDataFBEMessage):(m=d.modalHeaders.invalidChart,c=d.errors.histogramEmptyField);break;case se.EmptyDataSet:m=d.modalHeaders.noDataAvailable,s===!0?c=d.errors.noDataFBSMessage:Ar(n)?c=d.errors.noDataFBEMessage:c=d.errors.noDataMessage;break;case se.NegativeValueInXAxisLogScale:c=d.errors.logarithmicXAxisNotPossible;break;case se.NegativeValueInYAxisLogScale:c=d.errors.logarithmicYAxisNotPossible;break;case se.BadData:}if(c===d.errors.defaultInvalidChart&&(e===se.BarElementExceedsLimit||e===se.LineChartExceedsLimit||e===se.HeatChartExceedsLimit||e===se.PieChartExceedsLimit||e===se.GaugeExceedsLimit||e===se.BoxPlotExceedsLimit)&&typeof a=="number"&&typeof i=="number"&&a/i>f){let y=a/i;c=qe(d.errors.categoryCountCannotExceedLimit,{categoryCount:h.format(y),maxCategoryCount:h.format(f)})}return{keyword:e??se.BadData,header:m,message:c,params:u}}function xi(t,e){return`${e}_${t}`}function Qs(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:H.Average}),c=Ue({...l,key:H.StandardDeviation}),u=n??Number(e[d]),h=s??Number(e[c]);return Number.isFinite(u)&&Number.isFinite(h)&&Object.values(H).forEach(p=>{let f=Ue({key:p,y:a,chartSubType:r,splitByValue:i}),m=e[f];if(m!=null){let y=Number(m);if(Number.isFinite(y)){l={...l,key:p,showOutliers:!1,standardizeValues:!0};let b=Ue(l);if(o[b]=Qs({mean:u,stdDev:h,value:y}),p===H.Min||p===H.Max){l={...l,key:p,showOutliers:!0,standardizeValues:!0},b=Ue(l),l={...l,standardizeValues:!1,splitByValue:i};let v=Ue(l);y=Number(e[v]),Number.isFinite(y)&&(o[b]=Qs({mean:u,stdDev:h,value:y}))}}}}),o}function jv(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(P.rendererSymbolField)&&(o[l]=i[l]),o[P.boxPlot.boxPlotCategory]=s,a&&(o=uo({dataItem:o,chartSubType:C.BoxPlotMultiFields}))}),n.set(s,o)}),Array.from(n.values())}function Vv(t){let{data:e,splitByField:r,y:a}=t,i={[P.boxPlot.boxPlotCategory]:a};return e.forEach(n=>{let s=n[r];s!==void 0&&Object.keys(n).forEach(o=>{o===P.rendererSymbolField?i[`${o}_${s?.toString()}`]=n[o]:o===P.boxPlot.boxPlotMeanLineMarkerId?i[o]=n[o]:i[`${s?.toString()}_${o}`]=n[o]})}),[i]}function Wv(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={[P.boxPlot.boxPlotCategory]:d};Object.entries(o).forEach(([u,h])=>{u.startsWith(`${d}_`)?c[`${l}_${u.replace(`${d}_`,"")}`]=h:u.includes(P.rendererSymbolField)?c[`${u}_${l}`]=h:u===P.boxPlot.boxPlotMeanLineMarkerId&&(c[u]=o[u])}),i&&(c=uo({dataItem:c,chartSubType:C.BoxPlotMultiFieldsAndSplitBy,splitByValue:l,meanPerField:n?.[xi(d,j.Average)],stdDevPerField:n?.[xi(d,j.StandardDeviation)]})),s.set(d,{...s.get(d)??{},...c})})}),Array.from(s.values())}function _v(t){let{data:e,yList:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,n=e;return a&&n.forEach(s=>{r.forEach(o=>{uo({dataItem:s,chartSubType:C.BoxPlotMultiFieldsAndCategory,y:o,meanPerField:i?.[xi(o,j.Average)],stdDevPerField:i?.[xi(o,j.StandardDeviation)]})})}),n}function zv(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(P.rendererSymbolField))o[`${P.rendererSymbolField}_${l?.toString()}`]=c;else if(d===P.boxPlot.boxPlotMeanLineMarkerId)o[d]=n[d];else if(d!==e&&d!==r){let u=d!==P.xAxisField&&d!==P.originalCategoryValue&&d!==P.typeOrDomainIdValue&&d!==P.typeOrDomainFieldName?`${l?.toString()}_${d}`:d;o[u]=c}}),i.set(s,{...i.get(s)??{},...o})}),Array.from(i.values())}function Uv(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=ut({where:l.query?.where,normalize:!1,escape:!0});return d!==null&&`${d}`.startsWith("'")&&`${d}`.endsWith("'")&&(d=d.substring(1,d.length-1)),d});o.length===0&&o.push(" "),e.forEach(l=>{o.forEach(d=>{s.splitByValue=d;let c=Ue({...s,key:H.Min,showOutliers:!0}),u=Ue({...s,key:H.Min,showOutliers:!1}),h=Ue({...s,key:H.Max,showOutliers:!0}),p=Ue({...s,key:H.Max,showOutliers:!1});l[h]===void 0&&l[p]!==void 0&&(l[h]=l[p]),l[c]===void 0&&l[u]!==void 0&&(l[c]=l[u])})})}function Hv(t,e){let r,a,i=t[e[H.IQR]],n=t[e[H.FirstQuartile]],s=t[e[H.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 Wc(t){let{yField:e,xField:r,xValue:a,splitByField:i,splitByValue:n,outlierMaxThreshold:s,outlierMinThreshold:o,target:l}=t,d;if(r!==void 0&&a!==void 0){let h=typeof a!="string"?a:`'${Us(a)}'`;d=`${r}=${h.toString()}`}let c;if(i!==void 0&&n!==void 0){let h=typeof n!="string"?n:`'${Us(n)}'`;c=`${i}=${h.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(h=>h!==void 0).join(" AND ")}function Tp(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=vi(s),l=[],d=[],{maxOperandsPerWhereClause:c}=aa(),u=[],h=[],p=1;return e.forEach((f,m)=>{let{outlierMinThreshold:y,outlierMaxThreshold:b}=Hv(f,o);if(typeof y=="number"&&typeof b=="number"){let v={yField:r,outlierMinThreshold:y,outlierMaxThreshold:b};(i===C.BoxPlotMonoFieldAndCategory||i===C.BoxPlotMultiFieldsAndCategory||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&a!==void 0&&a in f&&(v.xField=a,v.xValue=Ji({value:f[a],dataContext:f,keepNullValues:!0,specificField:P.typeOrDomainIdValue})),(i===C.BoxPlotMonoFieldAndSplitBy||i===C.BoxPlotMultiFieldsAndSplitBy||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&n!==void 0&&n in f&&(v.splitByField=n,v.splitByValue=f[n]),u.push(Wc({...v,target:"outliers"})),h.push(Wc({...v,target:"alternativeData"})),(p%c===0||m===e.length-1)&&(l.push(be(u,"OR")),d.push(be(h,"OR")),u=[],h=[])}p+=1}),{outliersFilterBatches:l,dataWithoutOutliersFilterBatches:d}}function Gv(t){let{data:e,outlierDataItem:r,chartSubType:a,x:i,y:n,meanAndStdDevPerField:s,splitByField:o}=t,l=s?.[xi(n,j.Average)],d=s?.[xi(n,j.StandardDeviation)];if(l===void 0&&d===void 0)switch(a){case C.BoxPlotMultiFields:{let c=vi(n),u=e[0];l=Number(u[c[H.Average]]),d=Number(u[c[H.StandardDeviation]]);break}case C.BoxPlotMultiFieldsAndCategory:{let c=e.find(u=>u[i]===r[i]);if(c!==void 0){let u=vi(n);l=Number(c[u[H.Average]]),d=Number(c[u[H.StandardDeviation]])}break}case C.BoxPlotMultiFieldsAndSplitBy:{let c=e.find(u=>u[o]===r[o]);if(c!==void 0){let u=vi(n);l=Number(c[u[H.Average]]),d=Number(c[u[H.StandardDeviation]])}break}}return{mean:l,stdDev:d}}async function Qv(t){let{seriesConfig:e,data:r,uniqueQuery:a,queryObject:i,meanAndStdDevPerField:n,abortKey:s}=t,o=X(e),l=e[0],{x:d}=l,c=Ye(l.query?.where),u=de(i),h=Zt(u).idField,p=tt(e),f=[];for(let b=0;b<p.length;b+=1){let v=p[b],{outliersFilterBatches:S}=Tp({data:r,yField:v,x:d,chartSubType:o,splitByField:c});for(let x=0;x<S.length;x+=1){let I=S[x];if(I!==""){let A=[];d!==P.boxPlot.boxPlotCategory&&A.push(d),A.push(v),c!==""&&A.push(c),A.push(h);let q={...a,where:be([a.where,I]),groupByFieldsForStatistics:void 0,outStatistics:void 0,orderByFields:void 0,num:void 0,outFields:A};f.push(Bt({queryObject:i,queryConfig:q,featureCount:1,abortKey:s}))}}}let m=await Promise.all(f),y=new Map;for(let b=0;b<m.length;b+=1){let v=m[b],S=p[b];v.forEach(x=>{let I={...x.attributes};if(I[S]!==void 0){d===P.boxPlot.boxPlotCategory&&(I[P.boxPlot.boxPlotCategory]=S);let A={key:H.Outlier,chartSubType:o};switch(o){case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:A={...A,splitByValue:I[c]};break;case C.BoxPlotMultiFieldsAndCategory:A={...A,y:S};break}let q=Ue(A),L=I[S];I[q]=L;let O=`${I[d]}-${I[c]}-${L}`,M=y.get(O);if(I[Ne.uniqueIdsName]=[...M?.[Ne.uniqueIdsName]??[],I[h]],delete I[h],ah(o)){let N=Ue({...A,standardizeValues:!0}),{mean:k,stdDev:$}=Gv({data:r,outlierDataItem:I,chartSubType:o,x:d,y:S,splitByField:c,meanAndStdDevPerField:n});k!==void 0&&$!==void 0&&(I[N]=Qs({value:L,mean:k,stdDev:$}))}delete I[S],I[P.boxPlot.boxPlotOutlierId]=!0,y.set(O,I)}})}return Array.from(y.values())}async function Zv(t){let{data:e,queryObject:r,uniqueQuery:a,elementCount:i,chartConfig:n,chartLimits:s,abortKey:o}=t,l=[],{series:d,showMean:c}=n,u=Tn({showMean:c,seriesConfig:d}),h=X(d),p=Nr(n),{x:f}=p,m=Ye(p.query?.where),y=[];for(let v=0;v<u.length;v+=1){let S=u[v],{dataWithoutOutliersFilterBatches:x}=Tp({data:e,yField:S,x:f,chartSubType:h,splitByField:m});for(let I=0;I<x.length;I+=1){let A=x[I],q={...a,where:be([a.where,A])};q.outStatistics!==void 0&&(q.outStatistics=q.outStatistics?.filter(L=>(L.statisticType===j.Minimum||L.statisticType===j.Maximum)&&L.onStatisticField===S).map(L=>({...L,outStatisticFieldName:`${L.outStatisticFieldName}${P.boxPlot.boxPlotOutliersSuffix}`}))),y.push(In({queryObject:r,uniqueQuery:q,chartConfig:n,elementCount:i,isTimeBinningSeries:!1,showMean:c,chartLimits:s,abortKey:o}))}}let b=await Promise.all(y);for(let v=0;v<b.length;v+=1)l.push(...b[v]);return h!==C.BoxPlotMonoFieldAndCategoryAndSplitBy&&(l=Ki({data:l,x:m!==void 0&&m!==""?m:f})),l}async function Jv(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,abortKey:i}=t,n,{series:s,showMean:o}=a,l=X(s);if(l===C.BoxPlotMultiFieldsAndCategory||l===C.BoxPlotMultiFieldsAndSplitBy){let d=Tn({showMean:o,seriesConfig:s}),c={...r};delete c.outStatistics,delete c.groupByFieldsForStatistics,delete c.orderByFields;let u=[];for(let p=0;p<d.length;p+=1){let f=d[p];u.push({statisticType:j.Average,onStatisticField:f,outStatisticFieldName:`${j.Average}_${f}`},{statisticType:j.StandardDeviation,onStatisticField:f,outStatisticFieldName:`${j.StandardDeviation}_${f}`})}c.outStatistics=u;let h=await Bt({queryObject:e,queryConfig:c,featureCount:1,abortKey:i});h.length>0&&(n=h[0].attributes)}return n}function Kv(t){let{data:e,additionalData:r,chartConfig:a}=t,i=a.series[0],{x:n}=i,s=Ye(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=Nr(e),l=X(e.series),{x:d}=o,c=Tn({showMean:s,seriesConfig:n}),u=r;if(r?.[0]!==void 0){let h=Ye(o.query?.where);switch(l){case C.BoxPlotMonoField:u[0][P.boxPlot.boxPlotCategory]=c[0];break;case C.BoxPlotMultiFields:u=jv({data:r,yList:c,calculateZScore:a});break;case C.BoxPlotMonoFieldAndSplitBy:u=Vv({data:r,splitByField:h,y:c[0]});break;case C.BoxPlotMultiFieldsAndSplitBy:u=Wv({splitByField:h,data:r,yList:c,meanAndStdDevPerField:i,calculateZScore:a});break;case C.BoxPlotMultiFieldsAndCategory:u=_v({data:r,yList:c,meanAndStdDevPerField:i,calculateZScore:a});break;case C.BoxPlotMonoFieldAndCategoryAndSplitBy:u=zv({splitByField:h,x:d,data:r});break;case C.BoxPlotMonoFieldAndCategory:}}return Uv(e,u),u}async function Yv(t){let{data:e,queryObject:r,uniqueQuery:a,fetchFullBoxPlotData:i,chartConfig:n,elementCount:s,chartLimits:o,abortKey:l}=t,d=e,c=[];if(d!==void 0){let{series:u}=n,h=await Jv({queryObject:r,uniqueQuery:a,chartConfig:n,abortKey:l});if(i!==!1){c=await Qv({queryObject:r,uniqueQuery:a,seriesConfig:u,data:d,abortKey:l});let p=await Zv({queryObject:r,uniqueQuery:a,elementCount:s,data:e,chartConfig:n,chartLimits:o,abortKey:l});d=Kv({data:d,additionalData:p,chartConfig:n})}d=Pp({chartConfig:n,data:d,meanAndStdDevPerField:h,calculateZScore:!0})}return{dataItems:d,outliers:c}}function Op(t){let{outTimeZone:e=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:r="UTC",runsOnClientQueryEngine:a}=t,i="",n=ae.now().setZone(e),s=n.offset/60,o=r?n.setZone(r).offset/60:0,l=s-o;if(l!==0)if(a)i=`${l>0?"+":"-"}1*INTERVAL '${Math.abs(l)}' HOUR `;else{let d=Math.abs(l%1),c=Math.round(d*60);l=Math.floor(l),i=l>0?`+INTERVAL '${Math.abs(l)}:${c!==0?c:"00"}:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(l)-(c!==0?0:1)}:${c!==0?String(c-1):"59"}:59' HOUR TO SECOND`}return i}function Xv(t){let{dateFieldName:e,unit:r,runsOnClientQueryEngine:a}=t,i=Op({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 e0(t){let{whereValue:e,outStatistics:r,y:a}=t,i=Ne.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 t0(t){let e=new Map;for(let r=0;r<t.length;r+=1){let a=t[r],i=a.query?.where;if(i!==void 0&&"y"in a){let n=ut({where:i,normalize:!0,escape:!1});if(n!==""){let s=e0({whereValue:n,outStatistics:a.query?.outStatistics?.[0],y:a.y});a.y=s,e.set(n,s)}}}return e}function r0(t){let{uniqueQuery:e,splitByField:r,x:a}=t,i=[...e.groupByFieldsForStatistics??[],a,r].filter(n=>n!==void 0&&n.trim()!==""&&n!==Li);e.groupByFieldsForStatistics=Array.from(new Set(i))}function Ap(t){return t.statisticType===j.ContinuousPercentile||t.statisticType===j.DiscretePercentile}function i0(t){let{uniqueQuery:e,y:r,useGenericOutStatFieldName:a,queryObject:i,chartSubType:n,isTimeBinningSeries:s,returnFeaturesExtent:o,splitByField:l}=t,d=Ne.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 h=c[u];h!==void 0&&Ap(h)&&(s&&!Yi(i)?(c[u].statisticType=j.Count,delete c[u].statisticParameters):c[u]={...c[u],statisticParameters:c[u].statisticParameters??{value:P.defaultStatParameterValue}})}}else if(i!==void 0){let c=de(i),{idField:u,isTraditionalTypeOID:h}=Zt(c),p=h?u:"*";e.outStatistics=[{statisticType:d.statisticType,onStatisticField:p,outStatisticFieldName:a?d.outStatisticFieldName:[r].flat()[0]}]}o===!0&&(!s||Le(l))&&e.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"})}function a0(t){let{chartConfig:e,fetchFullBoxPlotData:r}=t,{series:a}=e,i=Zi(e),n=[{statisticType:j.Average,suffix:H.Average}];r===!0&&(n=[...n,{statisticType:j.Minimum,suffix:H.Min},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.25},suffix:H.FirstQuartile},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.5},suffix:H.Median},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.75},suffix:H.ThirdQuartile},{statisticType:j.Maximum,suffix:H.Max},{statisticType:j.StandardDeviation,suffix:H.StandardDeviation}]);let s=new Set;return i&&"y"in a[0]?[a[0].y].flat().forEach(o=>s.add(o)):a.forEach(o=>{"y"in o&&[o.y].flat().forEach(l=>s.add(l))}),[...s].flatMap(o=>n.map(l=>{let d={onStatisticField:o,statisticType:l.statisticType,outStatisticFieldName:`${o}_${l.suffix}`};return l.statisticType===j.ContinuousPercentile&&(d.statisticParameters=l.statisticParameters),d}))}function n0(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 s0(t){let{uniqueQuery:e,x:r,splitByField:a,unit:i,chartSubType:n,objectIdFields:s,runsOnClientQueryEngine:o}=t;if(i!==void 0){let l=Xv({dateFieldName:r,unit:i,runsOnClientQueryEngine:o});e.orderByFields=l,e.groupByFieldsForStatistics=l,n===C.BarAndLineSplitBy&&!Le(a)?e.groupByFieldsForStatistics.push(a):n===C.BarAndLineNoAggregation&&(e.groupByFieldsForStatistics=s,e.outStatistics=[{onStatisticField:s.length>1?"*":s[0],outStatisticFieldName:`COUNT_${s[0]}`,statisticType:j.Count}])}}function Lp(t){let{chartConfig:e,options:r,uniqueQuery:a}=t;if(r?.chartLimits?.behaviorAfterLimit===Lr.RenderUpToTheLimit){let i=op(e,r?.chartLimits);if(i!==void 0){let n=X(e.series);if(n===C.PieFromFields||n===C.BarAndLineFromFields){if(a.outStatistics?.[0]!==void 0){let s=(d,c)=>d.statisticType===j.EnvelopeAggregate===c,o=a.outStatistics.filter(d=>s(d,!0)),l=a.outStatistics.filter(d=>s(d,!1));l.splice(i),a.outStatistics=[...l,...o]}}else a.num=i}}}async function po(t){let{chartConfig:e,queryConfig:r,options:a,queryObject:i,timeIntervalInfo:n,fetchFullBoxPlotData:s}=t,{setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l}=a??{},d=e.series,c=X(d),u=Nr(e),{query:h,x:p}=u,f="y"in u?u.y:void 0,m=ei({xAxisValueFormatType:lr(e),setTimeBinningInfoWhenNotProvided:o,seriesConfig:u}),y=new Map,b=!1,v=!1,S=!1,x=!1,I=!1,A={};if(h!==void 0){A=Rr(h);let R=Ye(h.where),z="";switch(r.fetchNullValues!==!0&&(p!==P.boxPlot.boxPlotCategory&&(z=`${p} IS NOT NULL`),R.trim()!==""&&R!==p&&!ar(h.where)&&(z=be([z,`${R} IS NOT NULL`]))),c){case C.BarAndLineSplitBy:{y=t0(d),x=!0,b=!0,v=!0;break}case C.BarAndLineMultiFields:n0(A,d),v=!0;break;case C.PieFromFields:case C.BarAndLineFromFields:z="",S=!0,v=!0;break;case C.BarAndLineMonoField:case C.PieFromCategory:v=!0;break;case C.BoxPlotMonoField:case C.BoxPlotMultiFields:S=!0,I=!0;break;case C.BoxPlotMonoFieldAndCategory:case C.BoxPlotMultiFieldsAndCategory:case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:{I=!0,x=!0,S=!0;break}case C.PieNoAggregation:case C.BarAndLineNoAggregation:case C.BarAndLineSplitByNoAggregation:}if(v&&i0({uniqueQuery:A,y:f,useGenericOutStatFieldName:b,queryObject:i,chartSubType:c,isTimeBinningSeries:m,returnFeaturesExtent:l,splitByField:R}),x&&r0({uniqueQuery:A,splitByField:R,x:p}),dt(e)&&I&&(A.outStatistics=a0({chartConfig:e,fetchFullBoxPlotData:s})),S?delete A.orderByFields:r.orderByFields!==void 0&&(A.orderByFields=r.orderByFields.filter(Z=>{let W=Z.split(" ");return!Le(W[0])})),m&&Wt(d[0])){let Z=de(i),{idFields:W}=Co(Z);(await Ct(i)).find(G=>G.name===p)?.type!==Te.DateOnly&&W&&s0({uniqueQuery:A,x:p,splitByField:Ye(h.where),unit:n?.unit??d[0].temporalBinning?.unit,chartSubType:c,objectIdFields:W,runsOnClientQueryEngine:Ar(i)})}A.where=z}Lp({chartConfig:e,options:a,uniqueQuery:A});let{gdbVersion:q,geometry:L,distance:O,units:M,timeExtent:N,where:k,objectIds:$,spatialRelationship:E}=r;return q!==void 0&&(A.gdbVersion=q),L!==void 0&&(A.geometry=L),O!==void 0&&(A.distance=O),M!==void 0&&(A.units=M),N!==void 0&&(A.timeExtent=N),$!==void 0&&(A.objectIds=$),E!==void 0&&(A.spatialRelationship=E),k!==void 0&&(A.where=be([A.where,k])),{uniqueQuery:A,mapToStatField:y}}async function o0(t){let{queryObject:e,queryConfig:r,chartConfig:a,abortKey:i}=t,n=a.series[0],{x:s,valueConversion:o}=n,l=xo(a),d=await Bt({queryObject:e,queryConfig:r,featureCount:r.num??1,abortKey:i}),c=[{[s]:null}];if(l)c=d.map(u=>{fo(u.attributes,s);let h=$c(u.attributes[s],o);return{...u.attributes,[s]:h}});else if(d.length>0){let u=d[0].attributes[s]??d[0].attributes[s.toUpperCase()]??d[0].attributes[s.toLowerCase()];u=$c(u,o),c=[{[s]:u}]}return c}async function l0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:n}=t,{chartLimits:s}=i??{},o={valid:!0};if(e!==void 0){let{behaviorAfterLimit:l,maxGaugeByFeaturesLimit:d}=s??{},c=xo(r),u=!0,h;if(c&&(h=(await Up({chartConfig:r,queryObject:e,queryConfig:a,behaviorAfterLimit:l,numberMaxOfFeaturesToFetch:d,isGaugeByFeature:c})).elementCount,i?.chartLimits?.behaviorAfterLimit!==Lr.RenderUpToTheLimit&&(u=ir({count:h??0,seriesCount:r.series.length,chartType:g.GaugeSeries,chartLimits:s})),i&&(Number.isFinite(d)||Number.isFinite(h)))){let p=Math.min(d??Number.NaN,h??Number.NaN);Number.isFinite(p)&&(i.chartLimits={...s,maxGaugeByFeaturesLimit:p}),Lp({chartConfig:r,options:i,uniqueQuery:a})}if(Number.isNaN(u)||u){let p=await o0({queryObject:e,chartConfig:r,queryConfig:a,abortKey:n});o.data={dataItems:p},o.count=p.length}else o.count=h,yn({dataInfo:o,chartType:g.GaugeSeries})}return o}async function SF(t){let{queryObject:e,chartConfig:r,queryConfig:a}=t,{minimumFromField:i,maximumFromField:n}=r.axes[0],s=[],o="",l="";i!==void 0&&(typeof i=="string"?(o=`${j.Minimum}_${i}`,s.push({statisticType:j.Minimum,onStatisticField:i,outStatisticFieldName:o})):(o=`${i.statisticType}_${i.onStatisticField}`,s.push({...i,outStatisticFieldName:o}))),n!==void 0&&(typeof n=="string"?(l=`${j.Maximum}_${n}`,s.push({statisticType:j.Maximum,onStatisticField:n,outStatisticFieldName:l})):(l=`${n.statisticType}_${n.onStatisticField}`,s.push({...n,outStatisticFieldName:l})));let d={...a,outStatistics:s,orderByFields:void 0,groupByFieldsForStatistics:void 0,returnDistinctValues:void 0,fetchNullValues:void 0,num:void 0},c=await sa({queryObject:e,queryConfig:d}),u=c.get(o),h=c.get(l);return{minimumFromData:u,maximumFromData:h}}function d0(t=Ge.None,e){return t===Ge.None||t===Ge.Log&&e>0||t===Ge.Sqrt&&e>=0}function Ep(t,e){let r={valid:!1};return e===!0?r.invalidType=se.HistogramEmptyField:t===Ge.Log?r.invalidType=se.NegativeValueInLogCalculation:t===Ge.Sqrt&&(r.invalidType=se.NegativeValueInSqrtCalculation),r}function c0(t,e){let r=t;switch(e){case Ge.Log:r=Math.log(t);break;case Ge.Sqrt:r=Math.sqrt(t);break}return r}function u0(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 Dp(t){let e="field";switch(t){case Ge.Log:e="natural-log";break;case Ge.Sqrt:e="square-root";break;case Ge.None:}return e}async function p0(t){let{queryObject:e,fieldName:r,queryConfig:a,abortKey:i}=t,n=de(e),{idField:s,isTraditionalTypeOID:o}=Zt(n),l=o?s:"*",d=`${j.Count}_${s}`,c=`${j.Count}_${r}`,u=`${j.Minimum}_${r}`,h=`${j.Maximum}_${r}`,p={...a,outStatistics:[{statisticType:j.Count,onStatisticField:l,outStatisticFieldName:d},{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:c},{statisticType:j.Minimum,onStatisticField:r,outStatisticFieldName:u},{statisticType:j.Maximum,onStatisticField:r,outStatisticFieldName:h}]},f=await sa({queryObject:e,queryConfig:p,abortKey:i}),m=f.get(d)??Number.NaN,y=f.get(c)??Number.NaN,b=f.get(u)??Number.NaN,v=f.get(h)??Number.NaN;return{countExcludingNulls:y,countIncludingNulls:m,min:b,max:v}}async function h0(t){let{queryConfig:e,chartConfig:r,queryObject:a,abortKey:i}=t,n=r.series[0],{x:s,dataTransformationType:o}=n,l=[],{countIncludingNulls:d,countExcludingNulls:c,min:u,max:h}=await p0({queryObject:a,queryConfig:e,fieldName:s,abortKey:i}),p=d0(o,u),f=c<2||u===h,m={...e};return m.where=be([m.where,`${s} is not null`]),{rawData:l,dataCompatibleWithTransformation:p,dataCountIncompatible:f,countExcludingNulls:c,countIncludingNulls:d}}function f0(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 m0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,queryConfig:n}=t,{x:s,dataTransformationType:o}=e,l={layer:r,view:i,field:s,sqlWhere:ar(n.where)?void 0:n.where,useFeaturesInView:a};return o!==Ge.None&&(l={...l,normalizationType:Dp(o)}),l}function y0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,minValue:n,maxValue:s,queryConfig:o}=t,{x:l,binCount:d,dataTransformationType:c}=e,u={layer:r,view:i,field:l,minValue:n,maxValue:s,numBins:d??Bg,classificationMethod:"equal-interval",sqlWhere:ar(o.where)?void 0:o.where,useFeaturesInView:a};return c!==Ge.None&&(u={...u,normalizationType:Dp(c)}),u}function g0(t,e){let r=Number.NaN;return t!==void 0&&e!==void 0&&(r=t-e),r}async function b0(t){let{chartConfig:e,queryConfig:r,queryObject:a,countExcludingNulls:i,countIncludingNulls:n,options:s,errorStrings:o}=t,l=e.series[0],{dataTransformationType:d}=l,c={valid:!0};if(a!==void 0){let u=de(a),h=go(r?.geometry)?.extent?.toJSON()!==void 0,p=s?.view,f=m0({seriesConfig:l,layer:u,view:p,useFeaturesInView:h,queryConfig:r}),m;if(p!==void 0&&(m=new tc({geometry:p.extent}),p.extent!==void 0&&Zp(u))){let{distance:L,units:O}=r;L!==void 0&&(m.distance=L),O!==void 0&&(m.units=O)}if(r.timeExtent){let L={start:r.timeExtent[0],end:r.timeExtent[1]};m===void 0?m=new tc({timeExtent:L}):m.timeExtent=L}f.filter=m;let y;f.outStatisticTypes={exclude:["median"]};try{y=await rc(f)}catch(L){throw new ct(wt.QueryFeaturesError,o.errors.queryError,L)}f.outStatisticTypes={include:["median"]};try{let L=await rc(f);L?.median&&(y.median=L.median)}catch{}y=f0(y);let{avg:b,count:v,stddev:S,min:x,max:I,sum:A,median:q}=y;if(v===0)c={...Ep(d)};else{let L=y0({seriesConfig:l,layer:u,view:p,useFeaturesInView:h,minValue:u0(x),maxValue:I,valueExpression:f.valueExpression,queryConfig:r});L.filter=m;let O;try{O=await wm(L)}catch(N){throw new ct(wt.QueryFeaturesError,o.errors.queryError,N)}let M=g0(n,i);c.data={mean:b,stddev:S,min:x,max:I,median:Number(q),bins:O?.bins,count:i,nulls:M,sum:A??void 0},c.data.bins.length>0&&(c.data.bins[c.data.bins.length-1].isLastBin=!0)}}return c}async function Np(t){let{chartConfig:e,queryConfig:r,queryObject:a,options:i,abortKey:n,errorStrings:s}=t,{series:o}=e,l=o[0],{rawData:d,dataCompatibleWithTransformation:c,dataCountIncompatible:u,countIncludingNulls:h,countExcludingNulls:p}=await h0({queryObject:a,chartConfig:e,queryConfig:r,abortKey:n}),f={valid:!0};return!c||u?f=Ep(l.dataTransformationType,u):f=await b0({chartConfig:e,queryObject:a,queryConfig:r,countIncludingNulls:h,countExcludingNulls:p,options:i,errorStrings:s}),f}async function v0(t){let{queryObject:e,queryConfig:r,chartConfig:a,x:i}=t,{series:n}=a,{dataTransformationType:s}=n[0],o={...r,orderByFields:[i],outFields:[i]};return{valid:!0,data:{dataItems:(await Bt({queryObject:e,queryConfig:o})).map(l=>({[i]:c0(l.attributes[i],s)}))}}}var Jr={groupByCaseBegin:"CASE",groupByOutKeyword:"OUT",groupByCaseEnd:"ELSE 'OUT' END"},S0="{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";async function w0(t){let{chartConfig:e,queryObject:r,queryConfig:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,{dataContextCountDistinctX:l,dataContextCountDistinctY:d}=P.scatterplotAggregationFields,c={...a,outStatistics:[{statisticType:j.Count,outStatisticFieldName:l,onStatisticField:s},{statisticType:j.Count,outStatisticFieldName:d,onStatisticField:o}],returnDistinctValues:!0};return await sa({queryObject:r,queryConfig:c,abortKey:i})}async function C0(t){let{statsMap:e,chartConfig:r,queryObject:a,options:i,queryConfig:n,abortKey:s}=t,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:c,dataContextCountDistinctX:u,dataContextCountDistinctY:h}=P.scatterplotAggregationFields,p,f,m,y,b,v=e.get(o),S=e.get(l),x=e.get(d),I=e.get(c);if(v!=null&&x!==void 0&&x!==null&&S!==void 0&&S!==null&&I!==void 0&&I!==null&&!Number.isNaN(v+S+x+I)){let{maxScatterPointsAfterAggregation:A}=Yr(i?.chartLimits),q=Math.floor(Math.sqrt(A)),L=await w0({queryObject:a,chartConfig:r,queryConfig:n,abortKey:s});m=Math.min(L.get(h)??Number.NaN,q),y=Math.min(L.get(u)??Number.NaN,q),b=y*m,p=S===v?0:(S-v)/(y-1),f=I===x?0:(I-x)/(m-1),e.set(P.scatterplotAggregationFields.xStep,p),e.set(P.scatterplotAggregationFields.yStep,f),e.set(P.scatterplotAggregationFields.rowCount,m),e.set(P.scatterplotAggregationFields.columnCount,y),e.set(P.scatterplotAggregationFields.realGridSize,b)}}function x0(t){let{groupByFieldsForStatistics:e,x:r,y:a,xValue:i,yValue:n,xStep:s,yStep:o,endOfRow:l,endOfColumn:d}=t,c=e===""?Jr.groupByCaseBegin:e;return c=qe(S0,{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 F0(t){let{chartConfig:e,queryConfig:r,queryObject:a,xMin:i,xMax:n,yMin:s,yMax:o,abortKey:l}=t,d=e.series[0],{x:c,y:u}=d,h={...r};return h.where=be([h.where,`${c}>=${i}`,`${c}<=${n}`]),c!==u&&(h.where=be([h.where,`${u}>=${s}`,`${u}<=${o}`])),await Bt({queryObject:a,queryConfig:h,noBatch:!0,featureCount:1,abortKey:l})}async function I0(t){let{statsMap:e,chartConfig:r,queryObject:a,queryConfig:i,useQueryAttributeBins:n,errorStrings:s,abortKey:o}=t,l=r.series[0],{x:d,y:c}=l,{dataContextXMinField:u,dataContextXMaxField:h,dataContextYMinField:p,dataContextYMaxField:f,queryNumberOfFeatures:m,queryNumberOfAggregatedFeatures:y}=P.scatterplotAggregationFields,b,v=e?.get(u)??Number.NaN,S=e?.get(h)??Number.NaN,x=e?.get(m)??Number.NaN,I=e?.get(p)??v,A=e?.get(f)??S;if(v!=null&&I!==void 0&&I!==null&&S!==void 0&&S!==null&&A!==void 0&&A!==null&&!Number.isNaN(v+S+I+A)){let q=de(a),{idField:L,isTraditionalTypeOID:O}=Zt(q),M=O?L:"*",N=e?.get(P.scatterplotAggregationFields.xStep),k=e?.get(P.scatterplotAggregationFields.yStep),$=e?.get(P.scatterplotAggregationFields.realGridSize),E=e?.get(P.scatterplotAggregationFields.rowCount),R=e?.get(P.scatterplotAggregationFields.columnCount),z=new Map,Z=await Ct(a);if(Z?.forEach(W=>{Fi(W)&&z.set(W.name,{onStatisticField:W.name,outStatisticFieldName:W.name,statisticType:j.Maximum})}),(Z.filter(W=>l?.additionalTooltipFields?.includes(W.name))??[])?.forEach(W=>{Fi(W)||z.set(W.name,{onStatisticField:W.name,outStatisticFieldName:W.name,statisticType:j.Maximum})}),(await rh(q)).forEach(W=>{z.set(W,{onStatisticField:W,outStatisticFieldName:W,statisticType:j.Maximum})}),L!==""&&z.set(L,{onStatisticField:M,outStatisticFieldName:y,statisticType:j.Count}),z.set(d,{onStatisticField:d,outStatisticFieldName:d,statisticType:j.Maximum}).set(c,{onStatisticField:c,outStatisticFieldName:c,statisticType:j.Maximum}),N!==void 0&&k!==void 0){if(n){let W={...i,outStatistics:[...z.values()]};b=await JS({queryObject:a,queryConfig:W,xStep:N,xMin:v,xMax:S,x:d,y:c,yStep:k,errorStrings:s})}else if(E!==void 0&&R!==void 0){let W=0,{maxScatterCellsPerQuery:G,maxScatterCellsPerQueryForStandard:U}=aa(),ie=await vw(q)?U:G,ke=[],_e=!0,te=v,ye=I,Fe="",Re=1,xt=1,rt=Number.MAX_SAFE_INTEGER,Ie=Number.MIN_SAFE_INTEGER,ve=Number.MAX_SAFE_INTEGER,Ft=Number.MIN_SAFE_INTEGER;for(;xt<=R&&_e;){for(ye=I,Re=1;Re<=E&&_e;){if(Fe=x0({groupByFieldsForStatistics:Fe,x:d,y:c,xValue:te,yValue:ye,xStep:N,yStep:k,endOfRow:Re===E,endOfColumn:xt===R}),te<rt&&(rt=te),te+N>Ie&&(Ie=te+N),ye<ve&&(ve=ye),ye+N>Ft&&(Ft=ye+k),W+=1,W%ie===0||W===$||W===x){Fe=`${Fe} ${Jr.groupByCaseEnd}`;let He={...i,groupByFieldsForStatistics:[Fe],outStatistics:[...z.values()]};ke.push(F0({chartConfig:r,queryConfig:He,queryObject:a,xMin:rt,xMax:Ie,yMin:ve,yMax:Ft,abortKey:o})),rt=Number.MAX_SAFE_INTEGER,Ie=Number.MIN_SAFE_INTEGER,ve=Number.MAX_SAFE_INTEGER,Ft=Number.MIN_SAFE_INTEGER,Fe="",W===$&&(_e=!1)}ye+=k,Re+=1}te+=N,xt+=1}b=(await Promise.all(ke)).flat()}}}return b}var T0={dataFormat:"json",outputFormat:"json",typeKey:"analyticType",typeValue:"LinRegR2",fieldValue:"onAnalyticField",slopePropertyList:["Slope","SLOPE","slope"],interceptPropertyList:["Intercept","INTERCEPT","intercept"],r2PropertyList:["R2","r2"]};async function P0(t){let{queryObject:e}=t,r=!1,a=WS(e),i=de(e),n=Xe(i);if(a&&n.url!==void 0&&n.url!==null){let s=`${n.url}/${n.layerId}?f=json`;try{let o=(await an(s)).data,l=o?.advancedQueryCapabilities?.supportsQueryAnalytic===!0,d=o?.sqlParserVersion===void 0||n.version!=null&&n.version>=10.91;r=l&&d}catch{}}return r}function O0(t){let{x:e,y:r,trendlineXToY:a,data:i}=t,[n,s]=i?li(i,o=>o[e]):[Number.NaN,Number.NaN];return[{[e]:n??Number.NaN,[r]:a(n??Number.NaN)},{[e]:s??Number.NaN,[r]:a(s??Number.NaN)}]}function A0(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 L0(t){let{statsMap:e,queryObject:r,chartConfig:a,queryConfig:i}=t,n=a.series[0],{x:s,y:o}=n,l=Number.NaN,d=[{[s]:Number.NaN,[o]:Number.NaN},{[s]:Number.NaN,[o]:Number.NaN}],{dataFormat:c,outputFormat:u,typeKey:h,typeValue:p,fieldValue:f,slopePropertyList:m,interceptPropertyList:y,r2PropertyList:b}=T0,v=`[{"${h}": "${p}", "${f}":"${s},${o}"}]`,S=await GS({queryObject:r,queryConfig:i,outputFormat:u,dataFormat:c,outAnalytics:v});if(S!==void 0){let x=Number.NaN,I=Number.NaN,{expr:A}=rn(S,m),{expr:q}=rn(S,y),{expr:L}=rn(S,b);A!==void 0&&Number.isFinite(S[A])&&(x=S[A]),q!==void 0&&Number.isFinite(S[q])&&(I=S[q]),L!==void 0&&Number.isFinite(S[L])&&(l=S[L]);let{dataContextXMinField:O,dataContextXMaxField:M,dataContextYMinField:N,dataContextYMaxField:k}=P.scatterplotAggregationFields,$=e.get(O)??Number.NaN,E=e.get(M)??Number.NaN,R=e.get(N)??Number.NaN,z=e.get(k)??Number.NaN,Z=(E-$)/100,W=$-Z,G=Number.NaN;for(;!(G>=R&&G<=z)&&W<=E;)W+=Z,G=x*W+I;let U=E+Z,ie=Number.NaN;for(;!(ie>=R&&ie<=z)&&U>=$;)U-=Z,ie=x*U+I;d=[{[s]:W,[o]:G},{[s]:U,[o]:ie}]}return{r2:l,trendLinePoints:d}}function Bp(t){let{data:e,chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s,trendLinePoints:o}=P.scatterplotSeries,l=A0({data:e,x:i,y:n});if(l!==void 0){let d=Ho(l),c=Go(d);s=d.m===0?0:Qo(l,c),o=O0({x:i,y:n,trendlineXToY:c,data:e})}return{r2:s,trendLinePoints:o}}async function E0(t){let e=await P0(t),{chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s}=P.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 L0(t)}catch{d=!0}return(!e||d)&&(l=Bp(t)),l}async function D0(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,l=new Map,{dataContextXMinField:d,dataContextXMaxField:c,dataContextYMinField:u,dataContextYMaxField:h,queryNumberOfFeatures:p}=P.scatterplotAggregationFields,{idField:f,isTraditionalTypeOID:m}=Zt(de(a)),y=m?f:"*",b=[{statisticType:j.Count,onStatisticField:y,outStatisticFieldName:p},{statisticType:j.Minimum,outStatisticFieldName:d,onStatisticField:s},{statisticType:j.Maximum,outStatisticFieldName:c,onStatisticField:s}];s!==o&&b.push({statisticType:j.Minimum,outStatisticFieldName:u,onStatisticField:o},{statisticType:j.Maximum,outStatisticFieldName:h,onStatisticField:o});let v={...r};return v.outStatistics=b,l=await sa({queryObject:a,queryConfig:v,abortKey:i}),s===o&&(l.set(u,l.get(d)??Number.NaN),l.set(h,l.get(c)??Number.NaN)),l}function Qa(t){let{value:e,valueMin:r,valueMax:a}=t;return e===r||e===a?e:Math.random()*(a-r)+r}function N0(t){let{useQueryAttributeBins:e,graphic:r,x:a,y:i,yStep:n}=t,{groupByOutKeyword:s}=Jr,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:c}=P.scatterplotAggregationFields,u=[];if(e&&"stackedAttributes"in r&&r.stackedAttributes){let h=Jp(a,i),p=r.attributes[h.lowerBoundaryAlias],f=r.attributes[h.upperBoundaryAlias];r.stackedAttributes.forEach(m=>{let y=m[h.stackAlias],b;typeof y=="number"&&typeof n=="number"&&(y*=n),typeof y=="number"&&typeof n=="number"&&(b=y+n);let v=m[a],S=m[i];typeof y=="number"&&typeof b=="number"&&typeof v=="number"&&typeof S=="number"&&u.push({...m,[a]:Qa({value:v,valueMin:p,valueMax:f}),[i]:Qa({value:S,valueMin:y,valueMax:b}),[o]:Math.min(p,f),[l]:Math.max(p,f),[d]:y,[c]:b})})}else{let{expr:h,isInItem:p}=Fn(r.attributes);if(p&&h&&r.attributes[h]!==s){let[f,m,y,b]=r.attributes[h].split("|");f=Math.min(f,m),m=Math.max(f,m),y=Math.min(y,b),b=Math.max(y,b);let v={...r.attributes,[o]:f,[l]:m,[d]:y,[c]:b};v[a]=Qa({value:v[a],valueMin:f,valueMax:m}),v[i]=Qa({value:v[i],valueMin:y,valueMax:b}),u=[v]}}return u}function B0(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 fo(u[0],[o,l]),a?u=N0({useQueryAttributeBins:n,graphic:c,x:o,y:l,yStep:i}):u[0][Ne.uniqueIdsName]=c.getObjectId(),u});return d=d?.filter(c=>{let{expr:u}=Fn(c);return Number.isFinite(c[o])&&Number.isFinite(c[l])&&(u===void 0||c[u]!==Jr.groupByOutKeyword)}),d??[]}async function M0(t){let{queryObject:e,queryConfig:r,chartConfig:a,featureCount:i,abortKey:n}=t,s=a.series[0],{x:o,y:l}=s,d=de(e),c=[],u=await Ct(e),h=Co(d).idFields,p=(u?.filter(b=>Fi(b)&&b.name!==o&&b.name!==l)??[]).map(b=>b.name)??[],f=s?.additionalTooltipFields??[],m=Array.from(new Set([o,l,...h??[],...p,...f]));if(!Xe(d).isTable){let{rendererField:b,rendererNormalizationField:v}=pw(d?.renderer??void 0);Le(b)||m.push(b),Le(v)||m.push(v)}let y={...r,orderByFields:[`${o} ${ze.Ascending}`],outFields:m};return c=await Bt({queryObject:e,queryConfig:y,featureCount:i,abortKey:n}),c}async function $0(t){let e,{chartConfig:r,queryConfig:a,queryObject:i,statsMap:n,numberOfFeatures:s,isAggregationMode:o,useQueryAttributeBins:l,errorStrings:d,abortKey:c}=t,u=r.series[0],{x:h,y:p}=u;if(!Number.isNaN(s)&&s>0){let f={...a};f.where=be([f.where,`${h} IS NOT NULL`,`${p} IS NOT NULL`]),o?e=await I0({chartConfig:r,queryObject:i,queryConfig:f,statsMap:n,useQueryAttributeBins:l,errorStrings:d,abortKey:c}):e=await M0({queryObject:i,chartConfig:r,queryConfig:f,featureCount:s,abortKey:c})}return e}async function Mp(t){let{chartConfig:e,queryConfig:r,queryObject:a,sortData:i,calculateTrendLine:n,options:s,abortKey:o}=t,l=await D0({chartConfig:e,queryConfig:r,queryObject:a,abortKey:o}),{queryNumberOfFeatures:d,yStep:c}=P.scatterplotAggregationFields,{maxScatterPointsBeforeAggregation:u}=Yr(s?.chartLimits),h=l?.get(d)??Number.NaN,p=h>=u,f=zS(a);p&&await C0({statsMap:l,chartConfig:e,queryObject:a,options:s,queryConfig:r,abortKey:o});let m=await $0({...t,statsMap:l,numberOfFeatures:h,isAggregationMode:p,useQueryAttributeBins:f}),y=B0({chartConfig:e,rawData:m,isAggregationMode:p,yStep:l.get(c),useQueryAttributeBins:f});i!==!1&&pn({arrayToSort:y,sortingField:e.series[0].x,orderBy:ze.Ascending});let{r2:b,trendLinePoints:v}=n!==!1?await E0({data:y,statsMap:l,queryConfig:r,options:s,queryObject:a,chartConfig:e}):P.scatterplotSeries;return{dataItems:y,r2:b,trendLinePoints:v,aggregated:p}}function q0(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=[P.originalCategoryValue,P.originalYCategoryValue,P.originalDateValue,P.xAxisField,P.technicalSortingFieldBySum,P.technicalSortingFieldByPercent,P.pieChart.technicalFieldSlicePercent,P.pieChart.technicalFieldGroupedSlices,P.pieChart.technicalFieldSliceId,P.typeOrDomainFieldName,P.typeOrDomainIdValue,P.originalServerBinningRange,P.lastTemporalBin,P.technicalFieldSplitByField,Ne.uniqueIdsName,xe.valueField,...Xu],u=(m,y)=>{let b=y[P.typeOrDomainFieldName];typeof b=="string"&&y[b]!==void 0&&(y[b]=y[P.typeOrDomainIdValue]),i&&y[xe.xField]!==void 0&&(y[i]=y[P.originalCategoryValue]!==void 0?y[P.originalCategoryValue]:y[xe.xField],delete y[xe.xField]),n&&y[xe.yField]!==void 0&&(y[n]=y[P.originalYCategoryValue]!==void 0?y[P.originalYCategoryValue]:y[xe.yField],delete y[xe.yField]),s&&y[xe.valueField]!==void 0&&(y[s]=y[xe.valueField],delete y[xe.valueField]);let v={};return Object.keys(y).forEach(S=>{!c.includes(S)&&!S.includes(P.rendererSymbolField)&&(v[S]=y[S])}),m.push(v),m},h=(m,y)=>JSON.stringify(m).localeCompare(JSON.stringify(y)),p=o?.reduce(u,[])?.sort(h),f=l?.reduce(u,[])?.sort(h);p&&f&&i&&p.length!==f.length&&(p=Ki({data:p,x:i}),f=Ki({data:f,x:i})),d=p?.length!==f?.length||!er(p,f)}return d}function k0(t){let{chartConfig:e,currentSelectionDataItems:r,options:a}=t,{selectionData:i}=a??{},n=[];if(e!==void 0){let s=e.series,o=X(s),{selectionItems:l}=i??{};if(l!==void 0&&q0({itemsA:l,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})?n=l:n=r??[],s.length>1&&o!==C.BarAndLineNoAggregation&&o!==C.BarAndLineSplitByNoAggregation){let d=Ye(s[0].query?.where);n=Ki({data:n,x:s[0].x,splitByField:d})}na({arrayToSort:n,chartConfig:e})}return n??[]}function Pr(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 R0(t){let{dataContext:e,xAxisField:r,yAxisField:a,options:i}=t,n="",{dataContextXMinField:s,dataContextXMaxField:o,dataContextYMinField:l,dataContextYMaxField:d}=P.scatterplotAggregationFields;if(sp({dataContext:e,chartLimits:i?.chartLimits})){let{[s]:c,[o]:u}=e,h=r!==a?e[l]:c,p=r!==a?e[d]:u;if(!Number.isNaN(c)&&!Number.isNaN(u)&&!Number.isNaN(h)&&!Number.isNaN(p)){let f=[];c===u?f.push(`${r}=${c?.toString()}`):(f.push(`${r}>=${c?.toString()}`),f.push(`${r}<=${u?.toString()}`)),h===p?f.push(`${a}=${h?.toString()}`):(f.push(`${a}>=${h?.toString()}`),f.push(`${a}<=${p?.toString()}`)),n=be(f)}}else n=be([sr({where:Pr(r,e[r])}),a!==void 0?sr({where:Pr(a,e[a])}):""]);return n}function $p(t,e){let r="",a=e[P.originalServerBinningRange]??e[P.dateBinningRange];if(ua(a)&&a.length===2){let[i,n]=a;if(typeof i=="number"&&typeof n=="number"&&Number.isFinite(i)&&Number.isFinite(n)){i=Ci(i),n=Ci(n);let s=e[P.lastTemporalBin]===!0?"<=":"<";r=`${t}>='${i}' AND ${t}${s}'${n}'`}}return r}function qp(t,e){let r="";if(Number.isFinite(t)){let a=1/10**P.queryMaxFloatPrecision;r=`${e}>=${t-a} AND ${e}<=${t+a}`}return r}function kp(t){let{xAxisField:e,yAxisField:r,splitBy:a,dataContext:i,xAxisFieldType:n,chartConfig:s}=t,o="";if(e!==void 0&&e!==P.boxPlot.boxPlotCategory){let c=Ji({value:i[e],dataContext:i,keepNullValues:!0,specificField:P.typeOrDomainIdValue});n===Te.Double?o=qp(c,e):(Qr(s.axes?.[0].valueFormat)&&(c=Ci(c)),o=sr({where:Pr(e,c),normalize:!1,escape:!0}))}let l=sr({where:a??"",normalize:!1,escape:!0}),d="";if(hb(s)){let c=X(s.series)===C.BoxPlotMultiFieldsAndCategory?r:void 0,u=Ue({key:H.Min,showOutliers:!0,splitBy:a,y:c}),h=Ue({key:H.Max,showOutliers:!0,splitBy:a,y:c}),p=e===P.boxPlot.boxPlotCategory?i[e]:r;if(!Le(p)){let f=i[u],m=i[h];Number.isFinite(f)&&Number.isFinite(m)&&(d=`${p?.toString()}>=${f?.toString()} AND ${p?.toString()}<=${m?.toString()}`)}}return be([o,l,d])}function j0(t){let{xAxisField:e,splitBy:r,dataContext:a,xAxisFieldType:i,chartConfig:n}=t,s="";if(P.dateBinningRange in a)s=$p(e,a);else if(X(n.series)!==C.BarAndLineFromFields){let l=Ji({value:a[e],dataContext:a,keepNullValues:!0,specificField:P.typeOrDomainIdValue});i===Te.Double?s=qp(l,e):(Qr(n.axes?.[0].valueFormat)&&(l=Ci(l)),s=sr({where:Pr(e,l),normalize:!1,escape:!0}))}let o=sr({where:r??"",normalize:!1,escape:!0});return be([s,o])}function V0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i=P.typeOrDomainIdValue in r?r[P.typeOrDomainIdValue]:r[P.originalCategoryValue];return i===void 0&&(i=r[e]),X(a.series)===C.PieFromFields?"":sr({where:Pr(e,i),normalize:!1,escape:!0})}function _c(t){let{field:e,fieldType:r,fieldValue:a,unit:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l,{expression:d}=vo({field:e,fieldType:r,unit:i,addIntervalStatement:!0,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o});return d&&(l=`${d}=${a}`),l}function W0(t){let{xAxisFieldType:e,yAxisFieldType:r,dataContext:a,chartConfig:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l=i.series[0],d="";if(l.type===g.HeatSeries){let c,u,h=a[xe.xField],p=a[P.originalCategoryValue],f=a[xe.yField],m=a[P.originalYCategoryValue],y=i.axes?.[0]?.valueFormat?.type,b=i.axes?.[1]?.valueFormat?.type;y===g.CategoryAxisFormat?c=sr({where:Pr(l.x,p===null?p:h),normalize:!1,escape:!0}):c=_c({field:l.x,fieldType:e,fieldValue:h,unit:l.xTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),b===g.CategoryAxisFormat?u=sr({where:Pr(l.y,m===null?m:f),normalize:!1,escape:!0}):u=_c({field:l.y,fieldType:r,fieldValue:f,unit:l.yTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),c&&(d=c),u&&(d=be([d,u]))}return d}function _0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i="",n=a.series[0],{minValue:s,maxValue:o}=r;if(Number.isFinite(s)&&Number.isFinite(o)&&n.type===g.HistogramSeries){let l=Bb(e,n.dataTransformationType),d=r.isLastBin?"<=":"<";i=be([`${l}>=${s?.toString()}`,`${l}${d}${o?.toString()}`])}return i}function wF(t){let{chartConfig:e}=t,r=Y(e.series),a="";switch(r){case g.ScatterSeries:a=R0(t);break;case g.HeatSeries:a=W0(t);break;case g.RadarSeries:case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:a=j0(t);break;case g.BoxPlotSeries:a=kp(t);break;case g.HistogramSeries:a=_0(t);break;case g.PieSeries:a=V0(t);break}return a}async function z0(t){let{numberOfQueries:e,selectionOIDs:r,chartConfig:a,queryConfig:i,options:n,errorStrings:s,queryObject:o}=t,{setTimeBinningInfoWhenNotProvided:l}=n??{},{series:d}=a,c=Y(d),u=[],{maxOIDsPerSelectionQuery:h}=aa();for(let p=0;p<e;p+=1){let f=p*h,m=(p+1)*h-1,y=r.slice(f===0?0:f-1,m),b={...i};switch(b.objectIds=y,c){case g.HeatSeries:u.push(Hp({completeHeatChartDataset:!1,chartConfig:a,queryConfig:b,queryObject:o,errorStrings:s,options:n}));break;case g.PieSeries:case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.ComboLineAndBarSeries:if(ei({xAxisValueFormatType:lr(a),setTimeBinningInfoWhenNotProvided:l,seriesConfig:d[0]})){let v=a;"temporalBinning"in v.series[0]&&v.series[0].temporalBinning&&(v.series[0].temporalBinning.trimIncompleteTimeInterval=!1,Yi(o)&&(delete v.series[0].temporalBinning.start,delete v.series[0].temporalBinning.end)),u.push(mo({chartConfig:v,queryConfig:b,queryObject:o,options:n}))}else u.push(qS({queryObject:o,chartConfig:a,options:n,queryConfig:b}));break;case g.BoxPlotSeries:u.push(kS({queryObject:o,chartConfig:a,options:n,errorStrings:s,queryConfig:b}));break;case g.ScatterSeries:u.push(Mp({queryObject:o,chartConfig:a,queryConfig:b,options:n,errorStrings:s,sortData:!1,calculateTrendLine:!1}));break;case g.HistogramSeries:u.push(v0({queryObject:o,queryConfig:b,chartConfig:a,x:d[0].x}));break}}return await Promise.all(u)}function U0(t){let{dataFetchingResults:e,numberOfQueries:r,series:a}=t,i=Y(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===g.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===g.HeatSeries)r>0&&c.forEach(u=>{o.set(`${u[xe.xField]}-${u[xe.yField]}`,u)});else if(a[0].type===g.ScatterSeries){let{x:u,y:h}=a[0];s.push(...c.map(p=>({[u]:p[u],[h]:p[h]})))}else d.valid&&(n===C.PieFromFields?s=hn({dataToConvert:c[0],x:st,y:jt}):n===C.BarAndLineFromFields?s=hn({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 H0(t){let{chartConfig:e,queryConfig:r,chartData:a,currentSelectionOIDs:i,dataWasUpdated:n,queryObject:s,options:o,errorStrings:l}=t,{series:d}=e,{selectionData:c,viewExtentUpdated:u,returnSelectionOIDs:h,chartLimits:p}=o??{},{selectionItems:f,selectionOIDs:m}=c??{},y,b=Y(d),v=b!==g.HistogramSeries&&b!==g.HeatSeries&&f!==void 0&&f.length>0&&!(d[0].x in f[0])&&!(st in f[0])&&!(P.boxPlot.boxPlotCategory in f[0]);if(u!==!0&&h!==!1&&m!==void 0&&m.length>0&&(n===!0||v||m.length!==i?.length||!er(m,i))){let S=ih(a);if(S!==void 0&&!Nb({dataContext:S[0],chartConfig:e,chartLimits:p}))y=S.filter(x=>{let I=x[Ne.uniqueIdsName];return typeof I=="number"||typeof I=="string"?m?.includes(I):!1});else if(m?.[0]!==void 0&&r!==void 0){let{maxOIDsPerSelectionQuery:x}=aa(),I=Math.ceil(m.length/x),A=await z0({numberOfQueries:I,selectionOIDs:m,queryConfig:r,queryObject:s,options:o,errorStrings:l,chartConfig:e});y=U0({dataFetchingResults:A,numberOfQueries:I,series:d})}}return y}function*G0(t){let{filterList:e,queryObject:r,queryConfig:a}=t;for(let i=0;i<e.length;i+=1){let n={...a};n.where=be([n.where,e[i]]),yield XS({queryObject:r,queryConfig:n,uniqueFeature:!0})}}async function CF(t){let{whereList:e,queryObject:r,queryFilter:a,queryConfig:i}=t,n=[];if(e.length>0){let s=aa().maxElementsPerSelectionQuery,o=[],l=Math.ceil(e.length/s);for(let c=0;c<l;c+=1){let u=c*s,h=(c+1)*s,p=e.slice(u===0?0:u-1,h),f=be(p,"OR");f=be([a,f]),o.push(f)}let d=G0({filterList:o,queryObject:r,queryConfig:i});n=(await Promise.all(d)).flat(),n=Array.from(new Set(n))}return n}async function Q0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,options:n,errorStrings:s,abortKey:o}=t,l=X(a.series),d={valid:!0,data:{dataItems:[]}};if(i!==void 0&&i.length>0){let c=Nr(a),{x:u}=c,h="y"in c?c.y:"",p;e!==void 0&&(p=(await Ct(e)).find(S=>S.name===u)?.type);let f=[],m=i.reduce((S,x)=>{let I=[];if(Ne.uniqueIdsName in x)f.push(x[Ne.uniqueIdsName]);else{switch(l){case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:{let L=Ye(c.query?.where??""),O=`_${H.Average}`;Object.keys(x).forEach(M=>{if(M.includes(O)){let N=M.replace(O,"");N.trim()!==""&&I.push(Pr(L,N))}});break}}let A=[h].flat(),q=A.length===1?A[0]:"";if(l===C.BoxPlotMultiFieldsAndCategory){let L=`_${H.FirstQuartile}`,O=Object.keys(x).find(M=>M.includes(L));O!==void 0&&(q=O.replace(L,""))}I.length===0&&I.push(""),I.forEach(L=>{let O=kp({chartConfig:a,xAxisField:u,yAxisField:q,splitBy:L,dataContext:x,xAxisFieldType:p});S.push(O)})}return S},[]),y=de(e);if(y!==void 0&&f.length>0){let S=Zt(y).idField;m.push(`${S} IN (${f.join(",")})`)}let b=m.join(" OR "),v={...r};v.where=be([v.where,b]),d=await ho({queryObject:e,chartConfig:a,queryConfig:v,options:n,errorStrings:s,abortKey:o})}return d}async function Z0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,abortKey:c}=t,{series:u}=a,h=Y(u),p=lr(a),f={valid:!0},m;s?m=await H0({chartConfig:a,queryConfig:r,chartData:o,currentSelectionOIDs:n,dataWasUpdated:!0,queryObject:e,options:l,errorStrings:d})??[]:m=k0({chartConfig:a,currentSelectionDataItems:i,options:l});let y=!1;switch(h){case g.HeatSeries:f.data={dataItems:m};break;case g.PieSeries:if(X(a.series)===C.PieFromFields){let{x:b,y:v}=a.series[0],S=Rr(m);S.forEach(x=>{b in x&&(x[st]=x[b],delete x[b]),v in x&&(x[jt]=x[v],delete x[v])}),f.data={dataItems:S}}else f.data={dataItems:m};f.count=m.length,y=!0;break;case g.BoxPlotSeries:dt(a)&&(f=await Q0({...t,chartConfig:a}));break;case g.BarSeries:case g.ComboLineAndBarSeries:case g.RadarSeries:case g.LineSeries:if(m.length===0||!ei({xAxisValueFormatType:p,setTimeBinningInfoWhenNotProvided:l?.setTimeBinningInfoWhenNotProvided,seriesConfig:u[0]}))f.data={dataItems:m},f.count=m.length*u.length,y=!0;else{let b={...r};if(i!==void 0&&i.length>0){let v=i.map(x=>$p(u[0].x,x)),S=be(v,"OR");b.where=be([b.where,S])}f=await mo({queryObject:e,queryConfig:b,chartConfig:a,options:l})}break;case g.HistogramSeries:{if(m.length===0)f.data={mean:Number.NaN,median:Number.NaN,stddev:Number.NaN,max:Number.NaN,min:Number.NaN,bins:[]},f.count=0;else{let{x:b}=u[0],v=m.map((I,A)=>{let{minValue:q,maxValue:L}=I,O=A===m.length-1?"<=":"<";return`${b} >= ${q} AND ${b} ${O} ${L}`}),S=be(v,"OR"),x={...r};x.where=be([x.where,S]),f=await Np({queryObject:e,chartConfig:a,queryConfig:x,options:l,errorStrings:d,abortKey:c})}break}case g.ScatterSeries:{if(m.length===0){let{r2:b,trendLinePoints:v}=P.scatterplotSeries;f.data={dataItems:[],r2:b,trendLinePoints:v,count:0},f.count=0}else{let{r2:b,trendLinePoints:v}=Bp({data:m,chartConfig:a});f.data={dataItems:m,r2:b,trendLinePoints:v},f.count=m.length}break}}return y&&f.data!==void 0&&na({arrayToSort:"dataItems"in f.data?f.data.dataItems:f.data,chartConfig:a}),f}async function ho(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s}=t,o={valid:!0},l=Zi(r),d=await Zs({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!l,options:i,chartConfig:r,abortKey:s});if(!l)o=d;else{let c={dataItems:[]};c.meanLines=d.data.dataItems;let u=kv(r),h=(await Zs({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!0,options:i,chartConfig:u,abortKey:s})).data;c.dataItems=h.dataItems,c.outliers=h.outliers,o.data=c}return o}async function J0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,{series:d}=r,{filterBySelection:c}=i??{},u=Y(d),h={valid:!0};if(c===!0)h=await Z0(t);else switch(u){case g.HeatSeries:h=await Hp(t);break;case g.BoxPlotSeries:dt(r)&&(h=await ho({...t,chartConfig:r}));break;case g.BarSeries:case g.ComboLineAndBarSeries:case g.PieSeries:case g.RadarSeries:case g.LineSeries:{let p={queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,fieldList:o,preFetchedQueryResponse:l};ei({xAxisValueFormatType:lr(r),setTimeBinningInfoWhenNotProvided:i?.setTimeBinningInfoWhenNotProvided,seriesConfig:d[0]})?h=await mo(p):h=await Zs(p);break}case g.ScatterSeries:h.data=await Mp({queryObject:e,queryConfig:a,options:i,chartConfig:r,errorStrings:n,abortKey:s});break;case g.HistogramSeries:h=await Np({queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,errorStrings:n});break;case g.GaugeSeries:h=await l0({queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:s});break}return h}async function xF(t){let{queryObject:e,chartConfig:r,abortKey:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,fieldList:c,preFetchedQueryResponse:u}=t,h={valid:!0},p=Cw({queryObject:e,chartConfig:r,runtimeDataFilters:l?.runtimeDataFilters,ignoreViewExtent:l?.ignoreViewExtent});return ew(a),h=await J0({chartConfig:r,queryObject:e,queryConfig:p,fullDatasetBeforeFBS:o,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,options:l,abortKey:a,errorStrings:d,fieldList:c,preFetchedQueryResponse:u}),h.queryConfig=p,h}function K0(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 Y0(t){let{seriesData:e,chartConfig:r,queryConfig:a,queryObject:i,categoryOrDateCount:n,behaviorAfterLimit:s,abortKey:o}=t,{series:l}=r,d=e,c=X(l),u=lr(r);if(s!==Lr.RenderUpToTheLimit&&i!==void 0&&n!==void 0&&n>e.length&&c!==C.BarAndLineFromFields&&c!==C.BarAndLineNoAggregation&&c!==C.PieNoAggregation&&u===g.CategoryAxisFormat){let{x:h}=l[0],p={...a,returnDistinctValues:!0,outFields:[h]};delete p.outStatistics,delete p.orderByFields,delete p.groupByFieldsForStatistics;let f=(await Bt({queryObject:i,queryConfig:p,featureCount:n,abortKey:o})).map(m=>m.attributes[h]).filter(m=>m!=null);f.length>e.length&&(d=K0(f,e,h))}return d}function X0(t,e){let r=t,{series:a}=e;if(lr(e)===g.CategoryAxisFormat&&a[0].query?.outStatistics?.[0].statisticType===j.Count){let i=a.reduce((n,s)=>{let o=s.query?.outStatistics?.[0].outStatisticFieldName??[s.y].flat()[0];return n[o]=0,n},{});for(let n=0;n<t.length;n+=1)t[n]={...i,...t[n]}}return r}var Rp=[C.BarAndLineMonoField,C.BarAndLineMultiFields,C.PieNoAggregation,C.PieFromCategory,C.BoxPlotMonoFieldAndCategory,C.BoxPlotMultiFieldsAndCategory,C.BoxPlotMonoFieldAndCategoryAndSplitBy],eS=8e3;function jp(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 Or(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 ae.fromMillis(e).plus({seconds:n}).valueOf();case Q.Minute:return ae.fromMillis(e).plus({minutes:n}).valueOf();case Q.Hour:return ae.fromMillis(e).plus({hours:n}).valueOf();case Q.Week:case Q.Day:return ae.fromMillis(e).plus({days:n}).valueOf();case Q.Month:return ae.fromMillis(e).plus({months:n}).valueOf();case Q.Year:return ae.fromMillis(e).plus({years:n}).valueOf()}}return e}function tS(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=Or({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 h=d+1>=r.length,p=d;h&&r[p]!==void 0&&(p+=1);let f=h?Or({date:l,unit:n,size:o,nextOrPrevious:"next"}):r[d][a];return{binStartDate:l,binEndDate:f,last:h,nextBinFirstOrLastIndex:d,sliceStartIndex:e,sliceEndIndex:p}}function rS(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=Or({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 h=d-1<=0,p=e;return h&&r[p]!==void 0&&(p-=1),h&&(d=0),{binStartDate:h?Or({date:l,unit:n,size:o,nextOrPrevious:"previous"}):r[d][a],binEndDate:l,nextBinFirstOrLastIndex:d,sliceStartIndex:d,sliceEndIndex:p,last:h}}function iS(t){let{binsToRegroup:e,statisticType:r,y:a,nullPolicy:i}=t,n;i!==at.Interpolate&&(n=i===at.Zero?0:null);let s=e.filter(o=>Number.isFinite(o[a]));if(s.length>0)switch(r){case j.Count:case j.Sum:n=ba(s,o=>o[a]);break;case j.Minimum:n=ya(s,o=>o[a]);break;case j.Maximum:n=ma(s,o=>o[a]);break;case j.Average:n=ga(s,o=>o[a]);break;case j.ContinuousPercentile:}return n}function aS(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,h;if(Wt(d)&&(h=d.temporalBinning?.nullPolicy,u=d.temporalBinning?.timeAggregationType),l>1||o===Q.Week||o===Q.Month||o===Q.Year){let{query:p}=r[0],f=tt(r),{statisticType:m}=p?.outStatistics?.[0]??pa,y=!1,b=u===Me.End?e.length-1:0,v={binFirstOrLastIndex:b,data:e,x:c,timeIntervalInfo:a};for(;!y;){let S={},{binStartDate:x,binEndDate:I,last:A,nextBinFirstOrLastIndex:q,sliceStartIndex:L,sliceEndIndex:O}=u===Me.End?rS(v):tS(v);if(y=A,S=u===Me.End?S=e[O-1]:S=e[b],I>n&&x<n||x<i&&I>i||x>=i&&I<=n){let M=e.slice(L,O).filter($=>!(P.dateBinModel in $));f.forEach($=>{S[$]=iS({binsToRegroup:M,statisticType:m,y:$,nullPolicy:h})});let N=M.map($=>$[Ir]).filter($=>$!==void 0),k=Ib(N);k!==void 0&&(S[Ir]=k),S[c]=x,S[P.xAxisField]=x,S[P.dateBinningRange]=[x,I],delete S[P.dateBinModel],s.push(S)}else A&&u!==Me.End&&s.length>0&&(s[s.length-1][P.dateBinningRange][1]=s[s.length-1][P.dateBinningRange][1]+1);b=q,v.binFirstOrLastIndex=q}u===Me.End&&(s=s.reverse())}else l===1?s=e.map((p,f)=>{let m=p[c],y=e[f+1]?.[c];return y=typeof y=="number"?y-1:Or({date:m,unit:o,size:l,nextOrPrevious:"next"}),{...p,[P.dateBinningRange]:[m,y]}}):s=e;return s}function Vp(t){let{dateMinTimestamp:e,dateMaxTimestamp:r,timeIntervalInfo:a}=t,{size:i,unit:n}=a,s=0,o=0;if(i!==void 0&&Number.isFinite(i)&&Number.isFinite(e)&&Number.isFinite(r)){let l=-1,d=ae.fromMillis(e),c=ae.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 Wp(t){let e=t[0].temporalBinning?.nullPolicy;return t.reduce((r,a)=>{r[P.dateBinModel]=void 0;let i=a.query?.outStatistics?.[0].outStatisticFieldName??[a.y].flat()[0];return e!==at.Interpolate&&(r[i]=e===at.Zero?0:null),r},{})}function nS(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],h=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 f=Wp(n);if(c===Me.End){let m=i[0][d];for(let y=0;y<p;y+=1)m=Or({date:m,unit:l,size:1,nextOrPrevious:"previous"}),i.push({...f,[d]:m,[P.xAxisField]:m});p>0&&(u=i[i.length-1][d])}else{let m=i[i.length-1][d];for(let y=0;y<p;y+=1)m=Or({date:m,unit:l,size:1,nextOrPrevious:"next"}),i.push({...f,[d]:m,[P.xAxisField]:m});h=i[i.length-1][d]}}return{newDateMin:u,newDateMax:h}}function sS(t){let{numberOfSingleBinsWithinDataRange:e,dataLength:r,unit:a}=t;return jp(r,a)>=e}async function oS(t){let{queryObject:e,queryConfig:r,x:a}=t,i=`MIN_${a}`,n=`MAX_${a}`,s=`COUNT_${a}`,o={...r,outStatistics:[{statisticType:j.Minimum,onStatisticField:a,outStatisticFieldName:i},{statisticType:j.Maximum,onStatisticField:a,outStatisticFieldName:n},{statisticType:j.Count,onStatisticField:a,outStatisticFieldName:s}]};delete o.groupByFieldsForStatistics,delete o.orderByFields;let l=await sa({queryObject:e,queryConfig:o}),d=l.get(i),c=l.get(n),u=l.get(s);return typeof d=="string"&&(d=new Date(d).valueOf()),typeof c=="string"&&(c=new Date(c).valueOf()),{dateRange:{dateMinTimestamp:d,dateMaxTimestamp:c},numberOfFeatures:u}}function lS(t){let{newDateMin:e,newDateMax:r,seriesConfig:a,data:i,numberOfSingleBinsWithinDataRange:n,initialNumberOfBins:s,timeIntervalInfo:o}=t,{unit:l}=o,d=i;if(!sS({numberOfSingleBinsWithinDataRange:n,dataLength:s,unit:l})){let{x:c}=a[0],u=a[0].temporalBinning?.timeAggregationType,h=Wp(a),p=u===Me.End?r:e,f=u===Me.End?i.length-1:0;for(;f<i.length&&(u===Me.End&&p>e||u!==Me.End&&p<r);)p!==i[f][c]?d.push({...h,[c]:p,[P.xAxisField]:p}):f=u===Me.End?f-1:f+1,p=Or({date:p,unit:l===Q.Month||l===Q.Year?Q.Day:l,size:1,nextOrPrevious:u===Me.End?"previous":"next"})}return d}function dS(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]?.[P.dateBinningRange]?.[0],l=e[e.length-1]?.[P.dateBinningRange]?.[1];if(s===Me.End?o<a:l>i)if(s===Me.End){let d=o;for(;d<a&&e.length>0;)e.shift(),e.length>0&&(d=e[0][P.dateBinningRange]?.[0])}else{let d=l;for(;d>i&&e.length>0;)e.pop(),e.length>0&&(d=e[e.length-1][P.dateBinningRange]?.[1])}}return n}function cS(t){let{groupByFieldsForStatistics:e,dateField:r,queryStartDate:a,queryEndDate:i,y:n,binIndex:s,lastBin:o}=t,l=e===""?Jr.groupByCaseBegin:e;return l=qe(lC,{groupByFieldsForStatistics:l,dateField:r,startDate:`${a}`,endDate:`${i}`,y:[n].flat()[0],binIndex:`${s}`,endDateOperand:o?"<=":"<"}),l}function*uS(t){let{queryObject:e,seriesConfig:r,queryConfig:a,completeData:i}=t;for(let n=0;n<r.length;n+=1){let s=r[n],{query:o,x:l,y:d}=s,c=[{onStatisticField:o?.outStatistics?.[0]?.onStatisticField??"",outStatisticFieldName:j.ContinuousPercentile,statisticType:j.ContinuousPercentile,statisticParameters:{value:.5}}],u=Jr.groupByCaseBegin;for(let p=0;p<i.length;p+=1){let f=i[p],[m,y]=f[P.dateBinningRange],b=Ci(m),v=Ci(y);u=cS({groupByFieldsForStatistics:u,queryStartDate:b,queryEndDate:v,dateField:l,y:[d].flat()[0],binIndex:p,lastBin:p===i.length-1})}u=`${u} ${Jr.groupByCaseEnd}`;let h={...a,groupByFieldsForStatistics:[u],outStatistics:c,orderByFields:void 0};yield Bt({queryObject:e,queryConfig:h,noBatch:!0})}}async function pS(t){let{queryObject:e,data:r,seriesConfig:a,queryConfig:i}=t,n=r,{statisticType:s}=a[0].query?.outStatistics?.[0]??pa;if(s===j.ContinuousPercentile&&n.length>0){let o=uS({queryObject:e,completeData:n,seriesConfig:a,queryConfig:i}),l=(await Promise.all(o)).flat();if(l.length>0){let{isInItem:d,expr:c}=Fn(l[0].attributes);d&&l.forEach(u=>{let h=u.attributes[`${c}`];if(h!==void 0){let[p,f]=h.split("|");if(f!==void 0){let m=u.attributes[j.ContinuousPercentile];n[f][`${p}`]=m}}})}}return n}async function hS(t){let{chartConfig:e,queryResults:r,mapToStatField:a,splitByField:i,x:n,y:s,nullPolicy:o,queryObject:l}=t,d=Yp(n),c=(await Ct(l)).find(m=>m.name===n)?.type,u=[],h=e.series[0],p="temporalBinning"in h?h.temporalBinning?.trimIncompleteTimeInterval:!1,f="temporalBinning"in h?h.temporalBinning?.timeAggregationType:!1;return r.forEach((m,y)=>{if(!(p&&(y===0&&f===Me.End||y===r.length-1&&f===Me.Start))){let{attributes:b,stackedAttributes:v}=m,S=b[d.lowerBoundaryAlias],x=b[d.upperBoundaryAlias],I=S,A=x,q=(O,M)=>{let N=O;if(M===Te.DateOnly&&(typeof O=="string"&&O.length===10||typeof O=="number"))if(typeof O=="string"){let k=O.split("-");k.length===3&&(N=ae.local(Number(k[0]),Number(k[1]),Number(k[2])).valueOf())}else N=new Date(O),N=new Date(N.valueOf()+N.getTimezoneOffset()*6e4),N=ae.local(N.getFullYear(),N.getMonth()+1,N.getDate()).valueOf();else typeof O=="string"&&["+","-"].forEach(k=>{k&&O.lastIndexOf(k)===O.length-6&&(N=new Date(O.slice(0,O.lastIndexOf(k))).valueOf())});return N};S=q(S,c),x=q(x,c);let L=(O,M)=>{if(M)switch(!0){case(o===at.Zero&&(O[M]===void 0||O[M]===null)):O[M]=0;break;case o===at.Null:break;case(o===at.Interpolate&&(O[M]===void 0||O[M]===null)):delete O[M];break}};if(typeof S=="number"&&typeof x=="number"){let O={...b};O[P.originalServerBinningRange]=[I,A],O[n]=S,O[P.xAxisField]=S,O[P.dateBinningRange]=[S,x],delete O[d.lowerBoundaryAlias],delete O[d.upperBoundaryAlias],v&&i&&!Le(i)&&a?v.forEach(k=>{let $=k[i];if($===null||typeof $=="string"||typeof $=="number"){let E=a?.get($);E!==void 0&&(O[E]=k[Ne.outStatistics?.outStatisticFieldName??""],L(O,E))}}):L(O,s);let{featureExtent:M,featureExtentKey:N}=_p({feature:m,splitByField:i});M&&(O[N]=M),u.push(O)}}}),u}async function fS(t){let{queryObject:e,queryResults:r,x:a,queryConfig:i,seriesConfig:n,dateRange:s,timeIntervalInfo:o}=t,l=r,{dateMinTimestamp:d,dateMaxTimestamp:c}=s;if(d&&c){let u=r.length;if(pn({arrayToSort:l,sortingField:a}),u>1){let{numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:p}=Vp({dateMinTimestamp:d,dateMaxTimestamp:c,timeIntervalInfo:o}),{newDateMin:f,newDateMax:m}=nS({dateMaxTimestamp:c,data:l,numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:p,seriesConfig:n,timeIntervalInfo:o});l=lS({newDateMin:f,newDateMax:m,seriesConfig:n,data:l,initialNumberOfBins:u,numberOfSingleBinsWithinDataRange:p,timeIntervalInfo:o}),pn({arrayToSort:l,sortingField:a}),l=aS({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:c,timeIntervalInfo:o}),l=dS({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:c}),l=await pS({queryObject:e,data:l,seriesConfig:n,queryConfig:i})}}return l}function mS(t){return Math.floor(Math.min(Math.max(8,Math.sqrt(t??8)),128)+.5)}function yS(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=mS(r),l=(s-n)/o,d=Jc.findIndex(b=>b.threshold>l),c=Jc[d],{unitMs:u,preferredIntervalSize:h}=c;({unit:a}=c);let p=l/u,f=h.findIndex(b=>b>=p),m=h[f],y=f===0?h[0]:h[f-1];i=m-p<p-y?m:y}return{size:i,unit:a}}function gS(t){let{series:e,isTimeBinningSeries:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(Wt(e)&&r){let{unit:n,size:s}=e.temporalBinning??{};i=!Vs(n,s)&&a===!0}return i}function bS(t){let e=[];for(let r=1;r<=6;r+=1){let a=t[`EXPR_${r}`]??t[`Expr${r}`]??t[`expr${r}`]??t[`EXPR${r}`];a!==null&&e.push(a)}return ae.local(Number(e[0]??1969),Number(e[1]??1),Number(e[2]??1),Number(e[3]??0),Number(e[4]??0),Number(e[5]??0)).valueOf()}function _p(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 vS(t){let{input:e,x:r,splitByField:a}=t;return e.reduce((i,n)=>(a!==void 0&&a!==r&&!(P.technicalFieldSplitByField in n)&&delete n[a],Object.assign(i,n)),{})}function Ki(t){let{data:e,x:r,splitByField:a}=t,i=e;return e!==void 0&&e.length>0&&(i=[...Bn(e,n=>vS({input:n,x:r,splitByField:a}),n=>n[r]).values()]),i}function SS(t,e){let r=t,a=Y(e);if(a!==g.PieSeries&&a!==g.BoxPlotSeries){let i=tt(e),n=e[0].y;t.forEach(s=>{let o=0;if(i.forEach(l=>{let d=s[l];Number.isFinite(d)&&(o+=d)}),s[P.technicalSortingFieldBySum]=o,Number.isFinite(o)&&o>0){let l=s[n];if(Number.isFinite(l)){let d=l/o;s[P.technicalSortingFieldByPercent]=d}}})}return r}function wS(t,e){let r=e,a=tt(t),i=a.length===1;return a.forEach(n=>{let s=vi(i?void 0:n),o=r[s[H.FirstQuartile]],l=r[s[H.ThirdQuartile]];Number.isFinite(o)&&Number.isFinite(l)&&l>=o&&(r[s[H.IQR]]=l-o)}),r}function CS(t,e){let r=e.series[0],a=t;if(r.type===g.HeatSeries){let{x:i,y:n}=r;a[xe.xField]=a[i]?.toString(),delete a[i],a[xe.yField]=a[n]?.toString(),delete a[n];let s=r.query?.outStatistics?.[0]?.outStatisticFieldName;s&&(a[xe.valueField]=a[s],delete a[s])}return a}function fo(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 xS(t,e){let r=[];Ne.outStatistics.outStatisticFieldName&&Object.keys(t).includes(Ne.outStatistics.outStatisticFieldName)?r=[Ne.outStatistics.outStatisticFieldName]:r=Array.from(new Set(e.flatMap(a=>a.query?.outStatistics?.map(i=>i.outStatisticFieldName)))),fo(t,r)}function FS(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 IS(t){let{dataItem:e,splitByField:r,y:a,fieldOID:i}=t;if(e!==void 0&&!Le(r)&&!Le(a)){let n=e[r],s=`${a}_${n?.toString()}`;e[s]=e[a],i&&a!==i&&delete e[a]}}function TS(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 PS(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 OS(t){let{attributes:e,showMean:r,chartSubType:a}=t;r&&(a===C.BoxPlotMonoFieldAndSplitBy||a===C.BoxPlotMultiFieldsAndSplitBy||a===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&(e[P.boxPlot.boxPlotMeanLineMarkerId]=!0)}function AS(t){let{queryResponse:e,chartConfig:r,maxCategoryCount:a}=t,i=X(r.series);return a&&Number.isFinite(a)&&a<e.length&&Rp.includes(i)?e.slice(0,a):e}function LS(t){let{attributes:e,uniqueCategoryList:r,maxCategoryCount:a,x:i,chartSubType:n}=t,s=!1;if(i&&a&&Number.isFinite(a)&&!Rp.includes(n))if((n===C.BarAndLineFromFields||n===C.PieFromFields)&&Object.keys(e).length>a)Object.keys(e).filter(o=>o!==j.EnvelopeAggregate).forEach((o,l)=>{l>=a&&delete e[o]});else{let o=e[i];o!==void 0&&(r.size===a&&!r.has(o)?s=!0:r.add(o))}return s}function zp(t){let{queryObject:e,queryResponse:r,chartConfig:a,mapToStatField:i,splitByField:n,isDateField:s,isTimeBinningSeries:o,subtypeInfo:l,resultLimit:d,showMean:c,chartLimits:u,fieldList:h}=t,{series:p}=a,f=X(p),m=Y(p),{x:y}=p[0],b="y"in p[0]?p[0].y:void 0,v=p[0].query?.outStatistics??[],{originalCategoryValue:S,originalDateValue:x,typeOrDomainFieldName:I,typeOrDomainIdValue:A}=P,q=[],L=0,O=new Set,{maxCategoryCount:M}=Yr(u),N=AS({queryResponse:r,chartConfig:a,maxCategoryCount:M});for(let k=0;N[k]&&k<N.length&&!(d!==void 0&&L>=d);k+=1){L+=PS(f,a);let $=N[k],E={...$.attributes};if(LS({attributes:E,uniqueCategoryList:O,maxCategoryCount:M,x:y,chartSubType:f}))continue;if(xS(E,p),f===C.PieFromFields||f===C.BarAndLineFromFields)E=FS(E,v);else if(typeof b=="string"&&f===C.BarAndLineSplitByNoAggregation){let U=de(e),{idField:ie,isTraditionalTypeOID:ke}=Zt(U);IS({dataItem:E,splitByField:n,y:b,fieldOID:ke?ie:void 0})}else b&&(f===C.BoxPlotMonoField||f===C.BoxPlotMonoFieldAndCategory||f===C.BoxPlotMonoFieldAndSplitBy||f===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&TS(E,typeof b=="string"?b:b[0]);OS({attributes:E,showMean:c,chartSubType:f});let R=E[y];R===null&&p[0]?.query?.fetchNullValues===!0&&f!==C.PieFromFields&&(E[S]=null,R=P.nullValue),s&&typeof R=="string"?R=new Date(R).valueOf():o&&(R=bS(E));let{outStatisticFieldName:z}=Ne.outStatistics??{},{featureExtent:Z,featureExtentKey:W}=_p({feature:$,splitByField:n,chartSubType:f});if(Z&&(E[W]=Z),f===C.BarAndLineSplitBy&&z!==void 0){let U=E[n],ie=i?.get(U);ie!==void 0&&(U===n&&(E[P.technicalFieldSplitByField]=E[ie]),E[ie]=E[z]),delete E[z]}else(f===C.PieNoAggregation||f===C.BarAndLineNoAggregation||f===C.BarAndLineSplitByNoAggregation)&&(s?E[x]=R:R!==P.nullValue&&(E[S]=R),Dg({isXAxis:!0,chartType:m,valueFormat:a.axes?.[0]?.valueFormat})&&(E[P.xAxisField]=`${R}-${k}`),E[Ne.uniqueIdsName]=$.getObjectId());let G=gw({subtypeInfo:l,fieldList:h,fieldName:y,fieldValueToMatch:R});G!==void 0&&G!==R&&f!==C.PieFromFields&&(E[S]=G,E[I]=y,E[A]=R),m===g.BoxPlotSeries&&(E=wS(p,E)),m===g.PieSeries&&typeof R=="number"&&(E[S]===void 0&&(E[S]=E[y]),R=`${R}`),R!==void 0&&(E[S]===void 0&&(E[S]=E[y]),E[y]=G??R,E[y]===null&&(E[y]=m===g.HeatSeries?"null":P.nullValue),m===g.HeatSeries&&typeof b=="string"&&E[b]===null&&(E[b]="null",E[P.originalYCategoryValue]=null),E[P.xAxisField]===void 0&&(E[P.xAxisField]=E[A]??E[y])),E=CS(E,a),q.push(E)}return q}async function In(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,mapToStatField:i,abortKey:n,elementCount:s,isTimeBinningSeries:o,showMean:l,chartLimits:d,usePopupTemplateFieldsInfo:c,preFetchedQueryResponse:u}=t,{series:h}=a,p=X(h),f=[],m=p===C.BarAndLineSplitBy||p===C.BarAndLineSplitByNoAggregation?Ye(h[0].query?.where):"",y=u??await Bt({queryObject:e,queryConfig:r,featureCount:s,abortKey:n}),b=await Ct(e,c),v=mw(b),{x:S}=h[0],x=v.includes(S),I=th(e);return f=zp({queryObject:e,queryResponse:y,chartConfig:a,mapToStatField:i,splitByField:m,isDateField:x,isTimeBinningSeries:o,subtypeInfo:I,fieldList:b,resultLimit:r.num,showMean:l,chartLimits:d}),p!==C.BarAndLineSplitByNoAggregation&&p!==C.BarAndLineFromFields&&(m!==""&&(f=Ki({data:f,x:S,splitByField:m})),f=SS(f,h)),f}async function Up(t){let{chartConfig:e,queryObject:r,queryConfig:a,numberMaxOfFeaturesToFetch:i,behaviorAfterLimit:n,isGaugeByFeature:s}=t,{series:o}=e,l=X(o),{x:d}=o[0],c=o.length,u,h;if(l===C.BoxPlotMonoField||l===C.BoxPlotMonoFieldAndSplitBy?(h=c,u=h):l===C.BoxPlotMultiFields||l===C.BoxPlotMultiFieldsAndSplitBy?(h=e.series[0].y.length,u=h):l===C.PieFromFields||l===C.BarAndLineFromFields?(h=o[0].query?.outStatistics?.filter(p=>p.statisticType!==j.EnvelopeAggregate).length??0,u=h):u=await KS({queryObject:r,x:d,chartSubType:l,queryConfig:a,isGaugeByFeature:s}),u!==void 0){let p=l===C.BoxPlotMonoField||l===C.BoxPlotMonoFieldAndCategory||l===C.BoxPlotMonoFieldAndSplitBy;h=Ws(l)&&!p?u*c:u}return n===Lr.RenderUpToTheLimit&&h!==void 0&&i!==void 0&&i<h&&(h=i,u=Math.ceil(h/c)),{categoryOrDateCount:u,elementCount:h}}function zc(t){let{orderBy:e,axisFormatOptions:r}=t;return e!==void 0&&r!==void 0&&(!Array.isArray(e)||r?.type===g.CategoryAxisFormat)}function Uc(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===ze.Descending?typeof t=="string"&&typeof e=="string"?a=e.localeCompare(t,void 0,{numeric:!0}):a=(Number(e)||0)-(Number(t)||0):r===ze.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 ES(t){let{arrayToSort:e,chartConfig:r,dataOrderParameters:a}=t,i,n,s=!1,o=!1,l=!1;a&&a.length>=2&&e.length>1&&([i,n]=a,s=i&&i.sortingField.length>0&&zc({orderBy:i.orderBy,axisFormatOptions:r.axes?.[0]?.valueFormat}),o=n&&n.sortingField.length>0&&zc({orderBy:n.orderBy,axisFormatOptions:r.axes?.[1]?.valueFormat}),l=s||o),l&&e.sort((d,c)=>{let u=0;if(s&&i?.sortingField){let h=i.orderBy;u=Uc(d[i.sortingField],c[i.sortingField],h)}if(u===0&&o&&n?.sortingField){let h=n.orderBy;u=Uc(d[n.sortingField],c[n.sortingField],h)}return u})}function na(t){let{arrayToSort:e,chartConfig:r,fieldList:a,isTimeBinningSeries:i}=t;if(i!==!0){let{series:n}=r,s=X(n),o=Y(n),l=lr(r),d=Gs(r);if(wi(r)&&e!==void 0)ES({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],h=r.orderOptions?.data?.orderType===nt.Category,p=d[0].preferLabel!==!1,f=s===C.BarAndLineFromFields||s===C.PieFromFields||s===C.BoxPlotMultiFields||s===C.BoxPlotMultiFieldsAndSplitBy,m=f||o===g.PieSeries,y=s===C.PieNoAggregation||s===C.BarAndLineNoAggregation||s===C.BarAndLineSplitByNoAggregation,b=f?!1:e?.length>0&&e.some(v=>Object.hasOwn(v,P.typeOrDomainIdValue));if(h&&(!p||(o===g.LineSeries||o===g.RadarSeries)&&l===g.NumberAxisFormat)&&(b?u=P.typeOrDomainIdValue:m&&(u=P.originalCategoryValue)),Array.isArray(c))Pb({arrayToSort:e,orderBy:c,sortingField:u,fieldList:a,isByFieldsChart:f,preferLabel:p});else{let v=l===g.DateAxisFormat&&h;pn({arrayToSort:e,orderBy:c,sortingField:u,forceAscendingOrder:v,isNonAggregated:y,sortByCategory:h,preferLabel:p,isPieOrByFieldsChart:m})}}}}async function Zs(t){let{chartConfig:e,queryConfig:r,fetchFullBoxPlotData:a,options:i,queryObject:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,d="showMean"in e&&typeof e.showMean=="boolean"?e.showMean:!1,{chartLimits:c,usePopupTemplateFieldsInfo:u}=i??{},h=i?.replaceNoValueCategoryWithZero??P.options.replaceNoValueCategoryWithZero,{behaviorAfterLimit:p}=c??{},f={valid:!0},m,y=!1,b=e.series,v=b[0],S=X(e.series);if(v!==void 0&&n!==void 0){let x=Y(b),{uniqueQuery:I,mapToStatField:A}=await po({chartConfig:e,queryObject:n,queryConfig:r,fetchFullBoxPlotData:a,options:i}),{categoryOrDateCount:q,elementCount:L}=await Up({chartConfig:e,queryObject:n,queryConfig:r,behaviorAfterLimit:p,numberMaxOfFeaturesToFetch:I.num}),O=!Number.isFinite(L),M=O||ir({count:L??0,seriesCount:b.length,chartType:x,chartLimits:c});if(M&&(m=await In({queryObject:n,uniqueQuery:I,chartConfig:e,preFetchedQueryResponse:l,mapToStatField:A,elementCount:L,isTimeBinningSeries:!1,showMean:d,chartLimits:c,usePopupTemplateFieldsInfo:u,abortKey:s}),dt(e)&&m!==void 0&&(f.data=await Yv({data:m,queryObject:n,fetchFullBoxPlotData:a,uniqueQuery:I,chartConfig:e,elementCount:L,chartLimits:c,abortKey:s}),c?.maxBoxPlotOutlierLimit!==void 0&&(M=(f.data.outliers??[]).length<=c.maxBoxPlotOutlierLimit,y=!M)),O&&(q=m.length,L=Ws(S)?q*b.length:q,M=ir({count:L,seriesCount:b.length,chartType:x,chartLimits:c})),M)){if(x===g.PieSeries){S===C.PieFromFields&&(m=hn({dataToConvert:m[0],x:st,y:jt,fieldList:o}));let N="";S===C.PieFromFields?N=jt:"y"in v&&typeof v.y=="string"&&(N=v.y),Mb(m,N)?f.data={dataItems:m}:Rv(f,se.PieChartMixOfNegativePositiveSlices)}else if((x===g.RadarSeries||x===g.BarSeries||x===g.LineSeries||x===g.ComboLineAndBarSeries)&&(S===C.BarAndLineFromFields&&"y"in v&&typeof v.y=="string"?m=hn({dataToConvert:m[0],x:v.x,y:v.y,fieldList:o}):m=await Y0({queryObject:n,seriesData:m,chartConfig:e,queryConfig:r,categoryOrDateCount:q,behaviorAfterLimit:p,abortKey:s}),L=Ws(S)?m.length*b.length:m.length,M=ir({count:L,seriesCount:b.length,chartType:x,chartLimits:c}),M)){h&&(m=X0(m,e)),na({arrayToSort:m,chartConfig:e,fieldList:o});let N={};if(Wt(v)){let{size:k,unit:$}=v.temporalBinning??{};k!==void 0&&$!==void 0&&(N={size:k,unit:$})}f.data={dataItems:m,timeIntervalInfo:N}}}M||yn({dataInfo:f,chartType:x,subError:{outlierLimit:y}}),f.count=L}return f}function DS(t){let e,{start:r,end:a}=vo({field:"",unit:t,addIntervalStatement:!1});return a&&(e=Array.from({length:a+(r===0?1:0)},(i,n)=>(n+(r??1)).toString())),e}function NS(t){return t.hideEmptyRowsAndColumns===!0&&(t.nullPolicy!==at.Zero||t.series[0].query?.outStatistics?.[0].statisticType===j.Count)}function BS(t){let{dataItems:e,valueField:r,valueToUse:a,xField:i,yField:n}=t,s=new Set(e.filter(l=>l[r]!==a).map(l=>l[i])),o=new Set(e.filter(l=>l[r]!==a).map(l=>l[n]));return e.filter(l=>s.has(l[i])&&o.has(l[n]))}function MS(t){let{dataItems:e,xUniqueValues:r,yUniqueValues:a,xField:i,yField:n,valueField:s,valueToUse:o}=t,l=new Set,d=new Set,c=new Set;for(let h of e){let p=String(h[i]),f=String(h[n]);l.add(`${p}|${f}`),d.add(p),c.add(f)}let u=[];for(let h of r){let p=String(h);for(let f of a){let m=String(f);!l.has(`${p}|${m}`)&&d.has(p)&&c.has(m)&&u.push({[P.originalCategoryValue]:h===null?null:h,[P.originalYCategoryValue]:f===null?null:f,[i]:h===null?"null":h,[n]:f===null?"null":f,[s]:o})}}return u}function Hc(t){let{day:e,month:r}=t;return r===2&&e>29||[4,6,9,11].includes(r)&&e>30}async function Hp(t){let{chartConfig:e,queryConfig:r,queryObject:a,completeHeatChartDataset:i=!0,errorStrings:n,options:s,abortKey:o}=t,l={valid:!0},d;if(wi(e)){let{nullPolicy:c}=e,u=e.series[0],{x:h,y:p,query:f,xTemporalBinning:m,yTemporalBinning:y}=u,b=f?.outStatistics?.[0]?.outStatisticFieldName??"";r?.outStatistics?.[0]&&Ap(r.outStatistics[0])&&!("statisticParameters"in r?.outStatistics[0])&&(r.outStatistics[0].statisticParameters={value:P.defaultStatParameterValue});let v=NS(e),S=xe.xField,x=xe.yField,I=xe.valueField,A=c===at.Zero?0:null;if(Ip(e)){let q=await ZS({chartConfig:e,queryObject:a,queryConfig:r,returnFeaturesExtent:s?.returnFeaturesExtent,errorStrings:n,abortKey:o});if(!ir({count:q?.length??0,seriesCount:1,chartType:g.HeatSeries,chartLimits:s?.chartLimits}))yn({dataInfo:l,chartType:g.HeatSeries});else if(typeof q?.[0]=="object"){let L=await Ct(a,s?.usePopupTemplateFieldsInfo),O=th(a);d=zp({queryObject:a,queryResponse:q,chartConfig:e,splitByField:"",isDateField:!1,isTimeBinningSeries:!1,chartLimits:s?.chartLimits,resultLimit:r.num,subtypeInfo:O,fieldList:L});let M=await ws({queryObject:a,queryConfig:r,category:h,abortKey:o}),N=await ws({queryObject:a,queryConfig:r,category:p,abortKey:o});d.length!==M?.length*N?.length&&(v&&(d=BS({dataItems:d,valueField:I,valueToUse:A,xField:S,yField:x})),d=[...d,...MS({dataItems:d,xUniqueValues:M,yUniqueValues:N,xField:S,yField:x,valueField:I,valueToUse:A})])}}else{let q=await QS({chartConfig:e,queryObject:a,queryConfig:r,errorStrings:n}),L=y?DS(y.unit):await ws({queryObject:a,queryConfig:r,category:p,abortKey:o}),O=0;d=q?.features.flatMap(M=>{let N=[],{attributes:k,stackedAttributes:$}=M,E=[];if($?.forEach(R=>{let z=`${R[p]}`;E.push(z),N.push({[S]:`${k.lowerBoundary}`,[x]:z,[I]:R[b]})}),i&&L&&E.length!==L?.length){let R=L.filter(z=>!E.includes(z.toString()));v&&(R.length!==L.length||E.length===0)||R.forEach(z=>{Number.isFinite(Number(k.lowerBoundary))&&Number.isFinite(Number(z))&&(m?.unit===gt.DayOfMonth&&y?.unit===gt.MonthOfYear&&Hc({day:Number(k.lowerBoundary),month:Number(z)})||y?.unit===gt.DayOfMonth&&m?.unit===gt.MonthOfYear&&Hc({day:Number(z),month:Number(k.lowerBoundary)}))||N.push({[S]:`${k.lowerBoundary}`,[x]:z,[I]:c===at.Zero?0:null})})}return O+=N.length,N}),ir({count:O,seriesCount:1,chartType:g.HeatSeries,chartLimits:s?.chartLimits})||yn({dataInfo:l,chartType:g.HeatSeries})}}return d&&(na({arrayToSort:d,chartConfig:e}),l.data={dataItems:d}),l}function $S(t){let{chartConfig:e,options:r,data:a}=t,i=e.series,n=a,s=op(e,r?.chartLimits);if(s!==void 0){let o=tt(i);if(o.length===1)n=a.filter(l=>Number.isFinite(l[o[0]])).slice(0,s);else if(a.length*o.length>s){let l=[],d=0,c=0;for(;d<=s&&c<a.length;){let u=a[c];if(l.push(u),d+=o.filter(h=>Number.isFinite(u[h])).length,d>s){let h=d-s,p=o.length-1;for(;h!==0&&p>=0;){let f=o[p];Number.isFinite(u[f])&&(delete u[f],h-=1),p-=1}}c+=1}n=l}}return n}async function mo(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,preFetchedQueryResponse:s}=t,{chartLimits:o,usePopupTemplateFieldsInfo:l}=n??{},{behaviorAfterLimit:d}=o??{},c=e.series,u=c[0],{x:h}=u,p=Ye(u.query?.where),f={valid:!0},m;if(Wt(u)){let{temporalBinning:y}=u;if(a&&y){let{unit:b,size:v}=y,S=1,x={unit:b,size:v},I=!1,A=gS({series:u,isTimeBinningSeries:!0,setTimeBinningInfoWhenNotProvided:n?.setTimeBinningInfoWhenNotProvided}),q=!Yi(a)||A?await oS({queryObject:a,queryConfig:r,x:h}):void 0;A&&q&&q.numberOfFeatures>0&&q.dateRange.dateMaxTimestamp!==void 0&&q.dateRange.dateMinTimestamp!==void 0&&(x=yS(q),(await Ct(a)).find(N=>N.name===h)?.type===Te.DateOnly&&x.unit!==void 0&&[Q.Hour,Q.Minute,Q.Second].includes(x.unit)&&(x.unit=Q.Day,x.size=1),y.size=x.size,y.unit=x.unit);let{uniqueQuery:L,mapToStatField:O}=await po({chartConfig:e,queryConfig:r,queryObject:a,timeIntervalInfo:x,options:n}),M=ir({count:S??0,seriesCount:c.length,chartType:g.LineSeries,chartLimits:o});if(M){if(Yi(a)){let N=s?.[0]instanceof Cm?s:await tw({queryObject:a,dateField:h,splitByField:p,queryConfig:L,temporalBinning:y}),k="y"in u&&typeof u.y=="string"?u.y:void 0;if(m=await hS({chartConfig:e,queryResults:N,mapToStatField:O,splitByField:p,x:h,y:k,nullPolicy:y.nullPolicy,queryObject:a}),!ir({count:m.length,seriesCount:c.length,chartType:g.LineSeries,chartLimits:o})){let $=tt(c),E=m.filter(R=>$.some(z=>z in R&&Number.isFinite(R[z]))).length;ir({count:E,seriesCount:c.length,chartType:g.LineSeries,chartLimits:o})||(M=!1)}}else if(q?.dateRange.dateMinTimestamp&&q.dateRange.dateMaxTimestamp){let{numberOfFinalBinsWithinDataRange:N}=Vp({dateMinTimestamp:q.dateRange.dateMinTimestamp,dateMaxTimestamp:q.dateRange.dateMaxTimestamp,timeIntervalInfo:x});S=N*c.length,S=jp(S,x.unit),m=await In({queryObject:a,uniqueQuery:L,chartConfig:e,mapToStatField:O,elementCount:S,chartLimits:o,isTimeBinningSeries:!0,usePopupTemplateFieldsInfo:l,abortKey:i}),m=await fS({queryObject:a,queryConfig:r,queryResults:m,x:h,seriesConfig:c,dateRange:q.dateRange,timeIntervalInfo:x})}Qp(a)&&m&&m?.length===eS&&(I=!0),d===Lr.RenderUpToTheLimit&&m&&(m=$S({chartConfig:e,options:n,data:m}))}M||(f.valid=!1,f.invalidType=se.LineChartExceedsLimit),m&&m.length>0&&(m[m.length-1][P.lastTemporalBin]=!0),f.data={dataItems:m,timeIntervalInfo:x,serverLimitReached:I},f.count=S}}return f}async function qS(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n}=t,s=Zi(e),{setTimeBinningInfoWhenNotProvided:o,chartLimits:l,usePopupTemplateFieldsInfo:d}=n??{},c={valid:!0};if(a!==void 0){let u=e.series,h=ei({seriesConfig:u[0],xAxisValueFormatType:lr(e),setTimeBinningInfoWhenNotProvided:o}),{uniqueQuery:p,mapToStatField:f}=await po({chartConfig:e,queryObject:a,queryConfig:r,fetchFullBoxPlotData:!s,options:n}),m=await In({queryObject:a,uniqueQuery:p,elementCount:1,chartConfig:e,mapToStatField:f,isTimeBinningSeries:h,showMean:s,chartLimits:l,usePopupTemplateFieldsInfo:d,abortKey:i});dt(e)&&(m=Pp({chartConfig:e,data:m,calculateZScore:!1})),c.data={dataItems:m}}return c}async function kS(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,errorStrings:s}=t,o={valid:!0};if(dt(e)){let l=dt(e)?e.showMean:!1;o=await ho({queryObject:a,chartConfig:e,queryConfig:r,options:n,errorStrings:s,abortKey:i}),l&&o.data&&"dataItems"in o.data&&"meanLines"in o.data&&o.data.meanLines&&(o.data.dataItems=[...o.data.dataItems,...o.data.meanLines])}return o}function Gp(t){return t?.[Hi.defaultGroupOfSlicesId]===!0}function FF(t,e){let r=t.filter(a=>!Gp(a));return!er(r,e)}function RS(t,e){let r=t.reduce((a,i)=>{if(i[Hi.defaultGroupOfSlicesId]===!0){let n=i[P.pieChart.technicalFieldGroupedSlices];n!==void 0&&n.forEach(s=>{a.push(s)})}else a.push(i);return a},[]);return na({arrayToSort:r,chartConfig:e}),r=np({data:{dataItems:r},seriesConfig:e.series})?.dataItems??[],r}var _t={DataProcessComplete:"arcgisChartsJSDataProcessComplete",DataFetchComplete:"arcgisChartsJSDataFetchComplete",LegendItemVisibilityChange:"arcgisChartsJSLegendItemVisibilityChange",UpdateComplete:"arcgisChartsJSUpdateComplete",RenderingComplete:"arcgisChartsJSRenderingComplete",SeriesColorsChange:"arcgisChartsJSSeriesColorChange",AxesMinMaxChange:"arcgisChartsJSAxesMinMaxChange",SelectionComplete:"arcgisChartsJSSelectionComplete",TooManySelectedElements:"arcgisChartsJSTooManySelectedElements",BadDataWarningRaise:"arcgisChartsJSBadDataWarningRaise",SeriesOrder:"arcgisChartsJSSeriesOrder"};function zt(t){return{detail:t,composed:!0,cancelable:!0,bubbles:!0}}function IF(t){let{data:e,seriesConfig:r,htmlContainer:a}=t;if(a&&e){let i=np({data:e,seriesConfig:r});a.dispatchEvent(new window.CustomEvent(_t.DataProcessComplete,zt(i)))}}function TF(t){let{data:e,chartConfig:r,htmlContainer:a}=t;if(a&&e){let i={...e};Y(r.series)===g.PieSeries&&"dataItems"in i&&(i.dataItems=RS(i.dataItems,r)),a.dispatchEvent(new window.CustomEvent(_t.DataFetchComplete,zt(i)))}}function PF(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.LegendItemVisibilityChange,zt(t)))}function OF(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.UpdateComplete,zt(t)))}function AF(t){t&&t.dispatchEvent(new window.CustomEvent(_t.RenderingComplete,zt()))}function LF(t){let{data:e,htmlContainer:r}=t;r&&r.dispatchEvent(new window.CustomEvent(_t.SelectionComplete,zt(e)))}function EF(t){t&&t.dispatchEvent(new window.CustomEvent(_t.TooManySelectedElements,zt()))}function DF(t){let{data:e,htmlContainer:r,chartId:a,colorMatchApplied:i}=t;r&&r.dispatchEvent(new window.CustomEvent(_t.SeriesColorsChange,zt({chartId:a,data:e,colorMatchApplied:i})))}function NF(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.AxesMinMaxChange,zt(t)))}function BF(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.BadDataWarningRaise,zt(t)))}function jS(t){let{data:e,htmlContainer:r}=t;r&&e&&r.dispatchEvent(new window.CustomEvent(_t.SeriesOrder,zt(e)))}var ct=class extends Error{constructor(e,r,a){super(r),this.name=e,this.details=a}},wt={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound"};function MF(t){return t!==void 0&&(!("url"in t)||!t.url)}function Ar(t){return t!==void 0&&"layer"in t}function Qp(t){return t!==void 0&&"type"in t&&t.type==="feature"}function VS(t){return t!==void 0&&"type"in t&&t.type==="subtype-group"}function yo(t){return t!==void 0&&"type"in t&&t.type==="subtype-sublayer"}function WS(t){return Qp(t)||yo(t)}function Xe(t){return yo(t)?t.parent:t}function Zp(t){return t.capabilities?.query?.supportsDistance||Xe(t).sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function _S(t,e){return t.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&t.capabilities?.queryAttributeBins?.supportsStackBy&&!Ar(e)}function Yi(t,e){return t!==void 0&&(Ar(t)||"capabilities"in t&&t.capabilities?.queryAttributeBins?.supportsDate===!0&&(Le(e)||t.capabilities?.queryAttributeBins?.supportsStackBy))}function zS(t){let e=!1,r=Xe(de(t)).sourceJSON;if(r){let a=r.queryBinsCapabilities?.supportsFixedIntervalBin,i=r.queryBinsCapabilities?.supportedStatisticTypes,n=[j.Maximum,j.Count].every(s=>i?.includes(s.toUpperCase())||i?.includes(s.toLowerCase()));e=a&&n}return e}function $F(t){let e;return Ar(t)?e=t.layer:e=t,e}function de(t){let e;return Ar(t)?e=t.layer:e=t,e}function US(t){let e=!1,r=Xe(t).sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],a=t.capabilities?.query.supportedSpatialAggregationStatistics??{};return e=r.includes("EnvelopeAggregate")||"envelope"in a&&a.envelope===!0,e}function qF(t){let{chartConfig:e,queryObject:r}=t,a,i=de(r);return i&&(a={id:i.id,layerType:"ArcGISFeatureLayer"},i.url&&(a.url=i.url)),{...e,iLayer:a}}var Xi=new Map;function HS(t){let e;switch(t){case Vr.Feet:e="esriSRUnit_Foot";break;case Vr.Miles:e="esriSRUnit_StatuteMile";break;case Vr.NauticalMiles:e="esriSRUnit_NauticalMile";break;case Vr.USNauticalMiles:e="esriSRUnit_USNauticalMile";break;case Vr.Meters:e="esriSRUnit_Meter";break;case Vr.Kilometers:e="esriSRUnit_Kilometer";break}return e}async function GS(t){let{queryObject:e,queryConfig:r,outputFormat:a,dataFormat:i,outAnalytics:n}=t,{where:s,geometry:o,distance:l,units:d,timeExtent:c}=r,u,h=de(e),p=Xe(h),f={where:be([s,p.definitionExpression])},m={query:f},y=go(o)?.extent?.toJSON();if(y!==void 0){let v=HS(d),{xmin:S,ymin:x,xmax:I,ymax:A}=y;f.geometryType="esriGeometryEnvelope",f.geometry=`${S},${x},${I},${A}`,l!==void 0&&(f.distance=l.toString()),v!==void 0&&(f.units=v,o?.spatialReference?.wkid!=null&&(f.inSR=o.spatialReference.wkid.toString()))}c&&(f.time=`${c[0]},${c[1]}`);let b=`${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${i}&outAnalytics=${n}`;try{u=(await an(b,m)).data?.features?.[0]?.attributes}catch(v){let S=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,S.errors.queryError,v)}return u}function Jp(t,e){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`,stackAlias:`charts_stack_alias_${e}`}}async function QS(t){let{chartConfig:e,queryObject:r,queryConfig:a,errorStrings:i}=t,n,s=de(r),o=_S(s,r);if(o&&r&&"queryAttributeBins"in r){let{x:l,y:d,xTemporalBinning:c,yTemporalBinning:u}=e.series[0],{outTimeZone:h,firstDayOfWeek:p,includeLeapDay:f}=e,m=await dw({queryObject:r,queryConfig:a,x:l,y:d,xTemporalBinning:c,yTemporalBinning:u,outTimeZone:h,firstDayOfWeek:p,includeLeapDay:f});try{n=await r.queryAttributeBins(m)}catch(y){throw new ct(wt.QueryFeaturesError,i.errors.queryError,y)}}if(!o)throw new ct(wt.QueryFeaturesError,i.errors.queryBinsNotSupported,i.errors.queryBinsNotSupported);return n}async function ZS(t){let{chartConfig:e,queryObject:r,queryConfig:a,returnFeaturesExtent:i,errorStrings:n,abortKey:s}=t,o=e.series[0],l,{x:d,y:c}=o;a.groupByFieldsForStatistics=[d],d!==c&&a.groupByFieldsForStatistics.push(c),a&&i===!0&&!a.outStatistics?.some(u=>u.statisticType===j.EnvelopeAggregate)&&a.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"});try{l=await Bt({queryObject:r,queryConfig:a,abortKey:s})}catch(u){throw new ct(wt.QueryFeaturesError,n.errors.queryError,u)}return l}async function JS(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l,errorStrings:d}=t,c;if(e&&"queryAttributeBins"in e&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(i)&&Number.isFinite(n)&&a>0&&l>0){let u=cw({queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l});try{c=await e.queryAttributeBins(u)}catch(h){throw new ct(wt.QueryFeaturesError,d.errors.queryError,h)}}return c}async function KS(t){let{queryConfig:e,x:r,queryObject:a,chartSubType:i,isGaugeByFeature:n}=t,s;if(a!==void 0){let o=de(a),{idField:l,isTraditionalTypeOID:d}=Zt(o),c=So({queryObject:a,queryConfig:e});c.outFields=n||i===C.PieNoAggregation||i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation?[d?l:"*"]:[r];try{s=await a.queryFeatureCount(c)}catch{s=Number.NaN}}return s}async function sa(t){let{queryObject:e,queryConfig:r,abortKey:a}=t,{outStatistics:i}=r,n=new Map;if(e!==void 0&&i!==void 0&&i.length>0){let s=i.map(c=>{let{statisticType:u,onStatisticField:h,outStatisticFieldName:p}=c;return{statisticType:u,onStatisticField:h,outStatisticFieldName:p?.toUpperCase()}});r.outStatistics=s,delete r.num,delete r.orderByFields;let o=So({queryObject:e,queryConfig:r}),l;try{l=await e.queryFeatures(o,{signal:a!==void 0?Xi.get(a)?.signal:void 0})}catch(c){if(!Ys.isAbortError(c)){let u=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,u.errors.queryError,c)}}let d=l?.features?.[0]?.attributes;d!==void 0&&i.forEach(c=>{let{outStatisticFieldName:u}=c;if(u!==void 0){let h=d[u.toLowerCase()]??d[u.toUpperCase()]??d[u];h!==void 0&&n.set(u,h)}})}return n}async function Kp(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:i}=t,n=[],s=de(e);if(e!==void 0){let o=uw(s),l=So({queryObject:e,queryConfig:r,maxRecordCountFactor:o});try{if(a===!0)if("queryObjectIds"in e)n=await e.queryObjectIds(l);else{let{idField:d,isTraditionalTypeOID:c}=Zt(s),u=c?d:"*";l.outFields=[u],n=(await e.queryFeatures(l,{signal:i!==void 0?Xi.get(i)?.signal:void 0})).features.map(h=>h.getObjectId())}else n=(await e.queryFeatures(l,{signal:i!==void 0?Xi.get(i)?.signal:void 0})).features}catch(d){if(!Ys.isAbortError(d)){let c=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,c.errors.queryError,d)}}}return n}async function YS(t){let e=[],{featureCount:r,maxRecords:a,queryConfig:i}=t,n=[],s=0,o=i?.start??0;for(;s<Ne.maxParallelRequests&&o<r;){let l={...t};l.queryConfig={...i,start:o,num:Math.min(a,r-o)},e.push(Kp(l)),o+=a,s+=1}return n=(await Promise.all(e)).flat(),n}async function Bt(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,featureCount:i,noBatch:n,abortKey:s}=t,o=[],l=de(e);if(e!==void 0){let d=i??1,c=Xp(l);if(n!==!0&&d>c&&l.capabilities?.query.supportsPagination){let u=0,h=0,p=Math.ceil(d/c),f=Math.ceil(p/Ne.maxParallelRequests),m=[];for(;h<f;){u=h*Ne.maxParallelRequests*c;let y=YS({queryConfig:{...r,start:u},queryObject:e,maxRecords:c,featureCount:d,returnUniqueIdsOnly:a,abortKey:s});m.push(y),h+=1}o=(await Promise.all(m)).flat()}else(Number.isNaN(d)||d>=0)&&(o=await Kp({queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:s}))}return o}async function XS(t){let{queryObject:e,queryConfig:r,uniqueFeature:a,abortKey:i}=t,n={...r,returnDistinctValues:!0};return await Bt({queryObject:e,abortKey:i,queryConfig:n,returnUniqueIdsOnly:!0,featureCount:a===!0?1:void 0})}function ew(t){if(t!==void 0){let e=Xi.get(t);e!==void 0&&e.abort(),Xi.set(t,new AbortController)}}function Yp(t){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`}}async function tw(t){let{queryObject:e,dateField:r,splitByField:a,queryConfig:i,temporalBinning:n}=t,s=[],o;if(n){let{unit:l}=n;try{if(l){let d=Xe(de(e));if(o=Yi(d,a),o&&e&&"queryAttributeBins"in e){let c=await ow({queryObject:e,queryConfig:i,temporalBinning:n,dateField:r,splitByField:a});s=(await e.queryAttributeBins(c)).features}}}catch(d){let c=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,c.errors.queryError,d)}}if(o===!1){let l=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,l.errors.queryBinsNotSupported,l.errors.queryBinsNotSupported)}return s}function rw(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 Xp(t){let e=Ne.maxRecords;if(t&&"sourceJSON"in t&&t.sourceJSON?.maxRecordCount){let{sourceJSON:r}=t;e=r.maxRecordCount,r.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0&&(e*=Ne.maxRecordCountFactor)}return e}function be(t,e){let r,a=Array.from(new Set(t)).filter(i=>i!=null&&i!==""&&!ar(i));return a.sort((i,n)=>n.length-i.length),a.length===1?[r]=a:a?.forEach(i=>{i!==void 0&&(Le(r)?r=`(${i})`:r?.includes(`(${i})`)||(r=`${r} ${e??"AND"} (${i})`))}),r??"1=1"}function iw(t,e){let r=e;if(t!==void 0){let a=de(t),i=Xe(a).timeExtent;i?.start!=null&&i?.end!=null&&(r=[i.start.valueOf(),i.end.valueOf()])}return r}function aw(t){let{queryObject:e,defaultGeometry:r,ignoreViewExtent:a}=t,i=r;if(!a&&Ar(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 go(t){let e;return t!==void 0&&(e=Ks.fromJSON(t)),e}function nw(t){return t===void 0?["*"]:Array.from(new Set(t))}function eh(t,e){let{where:r,outStatistics:a,geometry:i,distance:n,units:s,timeExtent:o,returnDistinctValues:l}=e??{},d=de(t),c=Xe(d).createQuery();if(c.where=be([c.where,r]),"returnDistinctValues"in c&&(c.returnDistinctValues=l??!1),a!==void 0){let h=US(d);c.outStatistics=a.filter(p=>p.statisticType!==j.EnvelopeAggregate||h).map(p=>Om.fromJSON(p))}let u=go(i);return u!==void 0&&(c.geometry=u,e?.spatialRelationship&&(c.spatialRelationship=e.spatialRelationship),Zp(d)&&(n!==void 0&&(c.distance=n),s!==void 0&&(c.units=s))),o&&(c.timeExtent=new Am({start:o?.[0],end:o?.[1]})),rw(c)&&(c.cacheHint=!0),c}function bo(t,e){let r=eh(t,e);return new Pm(r.toJSON())}function sw(t){let e;switch(t){case Me.Start:e="first";break;case Me.End:e="last";break}return e}async function ow(t){let{queryObject:e,queryConfig:r,temporalBinning:a,dateField:i,splitByField:n}=t,s=de(e),o=(await Ct(e)).find(b=>b.name===i)?.type,l=bo(e,r),{unit:d,size:c,timeAggregationType:u,start:h,end:p,offset:f,outTimeZone:m}=a,y=Yp(i);if(l.lowerBoundaryAlias=y.lowerBoundaryAlias,l.upperBoundaryAlias=y.upperBoundaryAlias,o!==Te.DateOnly&&(l.outTimeZone=m??Intl.DateTimeFormat().resolvedOptions().timeZone),l.binParameters={type:"date",field:i,interval:{unit:d,value:c},start:h,end:p,offset:f?{unit:f.unit,value:f.size}:null},l.binParameters.type==="date"&&(s.capabilities?.queryAttributeBins?.supportsSnapToData&&(l.binParameters.snapToData=sw(u)),s.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(l.binParameters.returnFullIntervalBin=!0)),!Le(n)){let b=Xe(s).fields.find(v=>v.name===n)?.type;(!b||b==="string"||b==="integer"||b==="small-integer"||b==="big-integer"||b==="double")&&(l.binParameters.stackBy={type:"field",value:n,valueType:b==="string"?"string":"integer"})}return l}function vo(t){let{field:e,fieldType:r,unit:a,outTimeZone:i,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o,includeLeapDay:l}=t,d,c,u=1,h=1;switch(a){case gt.MinuteOfDay:r!==Te.DateOnly&&(c="MINUTE",u=0,h=59);break;case gt.HourOfDay:r!==Te.DateOnly&&(c="HOUR",u=0,h=23);break;case gt.DayOfWeek:c="DOW",h=7;break;case gt.DayOfMonth:c="DAY",h=31;break;case gt.DayOfYear:c="DOY",h=366;break;case gt.WeekOfYear:c="WEEK",h=53;break;case gt.MonthOfYear:c="MONTH",h=12;break;case gt.QuarterOfYear:c="QUARTER",h=4;break}if(c){let p=o?` ${Op({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:i})}`:"";d=lw({includeLeapDay:l,temporalKey:c,field:e,intervalStatement:p})}return{expression:d,start:u,end:h}}function lw(t){let{includeLeapDay:e,temporalKey:r,field:a,intervalStatement:i}=t,n;return!e&&a.length?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 Gc(t){let{temporalBinning:e,xOrY:r,xOrYFieldType:a,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,includeLeapDay:l}=t,{unit:d}=e??{},c,u,h,p;return a===Te.Date||a===Te.DateOnly||a===Te.TimestampOffset?{expression:u,start:h,end:p}=vo({field:r,fieldType:a,unit:d,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,includeLeapDay:l}):c=r,{field:c,expression:u,start:h,end:p}}async function dw(t){let{queryObject:e,queryConfig:r,x:a,y:i,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,outTimeZone:l,includeLeapDay:d}=t,c=await Ct(e),u=c.find(x=>x.name===a)?.type,h=c.find(x=>x.name===i)?.type,p=bo(e,r);p.binParameters={type:"fixed-interval",interval:1},u!==Te.DateOnly&&(p.outTimeZone=l??Intl.DateTimeFormat().resolvedOptions().timeZone),o!==void 0&&(p.binParameters.firstDayOfWeek=o);let f=Gc({temporalBinning:n,xOrY:a,xOrYFieldType:u,addIntervalStatement:!1,includeLeapDay:d}),{field:m,expression:y,start:b,end:v}=f;m?p.binParameters.field=m:y&&(p.binParameters.expression=y,p.binParameters.expressionValueType="integer",p.binParameters.type==="fixed-interval"&&(b!==void 0&&(p.binParameters.start=b),v!==void 0&&(p.binParameters.end=v)));let S=Gc({temporalBinning:s,xOrY:i,xOrYFieldType:h,addIntervalStatement:!1,includeLeapDay:d});return S.field?p.binParameters.stackBy={type:"field",value:S.field}:S.expression&&(p.binParameters.stackBy={type:"expression",value:S.expression,valueType:"integer",alias:i}),p}function cw(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l}=t,d=bo(e,r),c=Jp(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 So(t){let{queryObject:e,queryConfig:r,maxRecordCountFactor:a}=t,{groupByFieldsForStatistics:i,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:d}=r??{},c=eh(e,r);c.returnGeometry=!1;let u=de(e);return c.outFields=nw(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??Xp(u)),c}function uw(t){return t&&"sourceJSON"in t&&t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?Ne.maxRecordCountFactor:void 0}function pw(t){let e,r,a;return t!==void 0&&(e=t.type,(e===Ke.UniqueValue||e===Ke.ClassBreaks)&&(r=t.field??void 0,e===Ke.ClassBreaks&&(a=t.normalizationField??void 0))),{rendererType:e,rendererField:r,rendererNormalizationField:a}}var hw=(0,Yc.default)(async t=>{let e=t.featureCollection,r,a;if(e?.layers?.[0]!==void 0){let s=e.layers[0];r=s.featureSet,a=s.layerDefinition}else a=t.layerDefinition;let i={};if(r!==void 0){if(i.source=Tm.fromJSON(r).features,a?.fields!==void 0&&(i.fields=a.fields.map(s=>Fm.fromJSON(s))),a?.objectIdField!==void 0&&(i.objectIdField=a.objectIdField),a?.geometryType!==void 0){let s=Ks.fromJSON({geometryType:a.geometryType});s?.type!==void 0&&s?.type!=="extent"&&(i.geometryType=s.type)}a?.spatialReference!==void 0&&(i.spatialReference=a.spatialReference)}else i.id=t.id,a?.id!==void 0&&(i.layerId=a.id),t.url!==void 0&&(i.url=t.url),t.itemId!==void 0&&a?.id!==void 0&&(i.portalItem={id:t.itemId});if(a!==void 0){let s=a.drawingInfo;s?.renderer!==void 0&&(i.renderer=Js.fromJSON(s.renderer))}let n=new xm(i);return await n.load(),n});async function kF(t){let{layer:e,view:r,chartConfig:a,filterByExtent:i}=t,n;if(e!==void 0){let s=de(e),o=Xe(s);if(i&&r!==void 0&&!o.isTable){o.outFields=["*"];let l=c=>"highlight"in c,d=await r.whenLayerView(o);l(d)&&(n=d)}else n=e}else"iLayer"in a&&a.iLayer&&(n=await hw(a.iLayer));return n}async function Ct(t,e){let r=de(t),a=[];if(r!==void 0){await r.load();let i=e===!0&&r?.popupTemplate?.fieldInfos!==void 0;a=r.fields.map(n=>{let s=n.toJSON();if(i){let o=r.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===n.name.toLowerCase())?.label;o!==void 0&&o!==n.name&&(s.alias=o)}return s})}return a}function wo(t,e=[]){return e.find(r=>r.name===t)}function Co(t){let e,r=!1;if(t){let a=Xe(t);"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(t){let a=Co(t);r=a.isTraditionalTypeOID,a.idFields&&(e=a.idFields[0])}return{idField:e,isTraditionalTypeOID:r}}function Fi(t){return[Te.Single,Te.Double,Te.SmallInteger,Te.Integer,Te.BigInteger].includes(t.type)}function fw(t){return t.type===Te.Date||t.type===Te.DateOnly||t.type===Te.TimestampOffset}function RF(t){return[Te.SmallInteger,Te.Integer,Te.BigInteger].includes(t.type)}function mw(t){return t.filter(e=>fw(e)).map(e=>e.name)}function jF(t){return t.filter(e=>Fi(e)).map(e=>e.name)}function yw(t){let{subtypeInfo:e,fieldName:r,fieldValueToMatch:a}=t,i,n=s=>`${s.id}`==`${a}`;return e?.subtypeField===r&&e.subtypes?i=e.subtypes.find(n)?.name:e?.typeIdField===r&&e.types&&(i=e.types.find(n)?.name),i}function Qc(t,e){let r=[],a=VS(t)?t.subtypes:t[e];return a?.[0]!==void 0&&a.forEach(i=>{let{name:n,domains:s}=i,o="id"in i?i.id:void 0;!o&&"code"in i&&(o=i.code);let l=Object.entries(s??{}),d=[],c=l?.filter(([u,h])=>h?.type==="coded-value")?.map(([u,h])=>{let p={fieldName:u,name:n,codedValues:d};if(h&&"codedValues"in h){let f=h.codedValues.map(({code:m,name:y})=>({name:y,code:m}));p={fieldName:u,name:h.name,codedValues:f}}return p});r.push({id:o??"",name:n,domains:c})}),r.length===0?void 0:r}function th(t){let e;if(t!==void 0){let r=de(t);if(!yo(r)&&!Le(r?.typeIdField)){let a=Qc(r,"types");a!==void 0&&(e={typeIdField:r.typeIdField??void 0,types:a})}if(!Le(r?.subtypeField)){let a=Xe(r),i=Qc(a,"subtypes");i!==void 0&&(e={...e,subtypeField:a.subtypeField??void 0,subtypes:i})}}return e}function gw(t){let{fieldName:e,fieldValueToMatch:r,subtypeInfo:a,fieldList:i}=t,n;if((typeof r!="string"||!Le(r))&&!Le(e)&&(n=yw({subtypeInfo:a,fieldName:e,fieldValueToMatch:r}),n===void 0)){let s=wo(e,i);if(a?.types!==void 0){let o=a?.types;for(let l of o){let d=l.domains?.filter(c=>c.fieldName===s?.name)??[];for(let c of d)if(n=c?.codedValues?.find(u=>`${u.code}`===r)?.name,n!==void 0)break;if(n!==void 0)break}}n===void 0&&s?.domain?.type==="codedValue"&&(n=s.domain.codedValues?.find(o=>`${o.code}`==`${r}`)?.name)}return n}async function rh(t){let e=[];return!Xe(t).isTable&&t.fieldsIndex&&(e=await Kc.getRendererFields(t.renderer,t.fieldsIndex)),e}function bw(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 vw(t){let e=!0,r=".arcgis.com/",a=t.url,i=a?.includes(r);if(a&&i&&Xe(t).sourceJSON?.serviceItemId!==void 0){let n=bw(a);try{let s=(await an(n,{query:{f:"json"}})).data;if(s.owningTenant!==void 0&&s.owningSystemUrl!==void 0){let o=`${s.owningSystemUrl}/sharing/rest/portals/${s.owningTenant}`,l=(await an(o,{authMode:"auto",query:{f:"json"}})).data,d=new Im({sourceJSON:l});await d.load(),e=d?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return e}async function Sw(t){let{queryObject:e,fieldToMatch:r,returnUndefinedIfNotFound:a}=t,i=await Ct(e),n=ww(i,r),s=a?"":r;return n?.name??s}function ww(t,e){let r=t.find(a=>e===a.name);return r||(r=t.find(a=>e.toUpperCase()===a.name.toUpperCase())),r}async function VF(t){let{fieldsList:e,queryObject:r,returnUndefinedIfNotFound:a}=t,i=e;return i!==void 0&&(i=await Promise.all(i.map(async n=>await Sw({queryObject:r,fieldToMatch:n,returnUndefinedIfNotFound:a})))),i}function Cw(t){let{queryObject:e,chartConfig:r,runtimeDataFilters:a,ignoreViewExtent:i}=t,{series:n,dataFilters:s}=r,{where:o,gdbVersion:l,timeExtent:d,geometry:c,distance:u,units:h,objectIds:p,spatialRelationship:f}=s??{},{where:m,gdbVersion:y,timeExtent:b,geometry:v,distance:S,units:x,objectIds:I,spatialRelationship:A}=a??{},q=n[0],{query:L}=q,{where:O}=L??{},M=X(n),N={...L};return N.where=be([o,m]),M!==C.BarAndLineSplitBy&&M!==C.BoxPlotMonoFieldAndSplitBy&&M!==C.BoxPlotMonoFieldAndCategoryAndSplitBy&&M!==C.BoxPlotMultiFieldsAndSplitBy&&M!==C.BarAndLineSplitByNoAggregation&&(N.where=be([N.where,O])),r.orderOptions?.orderByFields!==void 0&&(N.orderByFields=r.orderOptions.orderByFields),N.gdbVersion=y??l,N.timeExtent=iw(e,b??d),N.geometry=aw({queryObject:e,defaultGeometry:v??c,ignoreViewExtent:i}),N.distance=S??u,N.units=x??h,N.objectIds=I??p,N.spatialRelationship=A??f,L?.outStatistics?.[0]?.statisticType===j.Count&&(N.returnDistinctValues=L?.returnDistinctValues??!1),N}var xw=t=>{let e;if("portalItem"in t){let r=t.portalItem?.id;typeof r=="string"&&(e=r)}return e};function WF(t){let{view:e,portalItemId:r}=t,a;if(e&&r){let i=Array.from(e.map?.allLayers??[]).find(n=>xw(n)===r);i&&(a=i)}return a}var Hr=["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"],Fw="1.0.0",Iw="unrecognized.version",Tw=[g.LineSeries,g.BarSeries,g.ComboLineAndBarSeries,g.RadarSeries];function vs(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 Pw(t){return t!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t):!1}function Ow(t){let e=pr.Same,r=[];if(Pw(t)&&t!==void 0){Hr.sort(vs);let a=vs(t,Hr[Hr.length-1]);if(a===1?e=pr.Newer:a===-1&&(e=pr.Older),e===pr.Newer||e===pr.Same)r.push(t);else{for(let i=Hr.length-2;i>=0;i-=1)if(vs(t,Hr[i])>=0){r=Hr.slice(i,Hr.length);break}r.length===0&&r.push(Fw)}}else e=pr.Unrecognized,r.push(Iw);return{versionStatus:e,versions:r}}function Nr(t){let{series:e}=t,r=("showMean"in t?t.showMean:!1)===!0?e.find(a=>a.type===g.LineSeries):e[0];return r??=e[0],r}function _F(t,e){let r=t!==null?t.toString():null,a=e!=null?e.toString():null;return a!==null&&a!==r?Ce.SFS:Ce.SLS}function Ye(t,e){let r="";return t!==void 0&&t.includes("=")&&(r=e!==!1?xp({value:t.split("=")[0]}):t.split("=")[0].trim()),r}function ut(t){let{where:e,normalize:r,keepSurroundingQuotes:a,escape:i}=t,n="";return e!==void 0&&e.includes("=")&&(n=e.split("=").slice(1).join("=").trim(),n==="null"?n=null:n.trim()!==""&&!Number.isNaN(Number(n))?n=Number(n):r===!1?i===!0&&(n=Us(n)):n=xp({value:n,keepSurroundingQuotes:a,escape:i})),n}function ar(t){let e=!1;if(t===void 0||t==="")e=!0;else if(t.includes("=")){let r=Ye(t,!1),a=ut({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=Ye(e),s=ut({where:e,normalize:i,keepSurroundingQuotes:!0,escape:a}),o=e;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function Aw(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 Lw(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:ar(r)?t.length>1&&(e=C.BarAndLineMultiFields):e=t[0].query?.outStatistics===void 0?C.BarAndLineSplitByNoAggregation:C.BarAndLineSplitBy,e}function Ew(t){let e=C.BoxPlotMonoField,r=t.length===1,a=t.find(o=>o.type===g.LineSeries)??t[0],{x:i}=a,n="y"in a?a.y:"",s=a.query?.where;switch(i){case Li:typeof n=="object"&&n.length>1?ar(s)?r&&(e=C.BoxPlotMultiFields):e=C.BoxPlotMultiFieldsAndSplitBy:r?e=C.BoxPlotMonoField:ar(s)||(e=C.BoxPlotMonoFieldAndSplitBy);break;default:r?e=C.BoxPlotMonoFieldAndCategory:ar(s)?e=C.BoxPlotMultiFieldsAndCategory:e=C.BoxPlotMonoFieldAndCategoryAndSplitBy;break}return e}function X(t){let e=C.NonSpecific;if(t?.[0]!==void 0)switch(Y(t)){case g.PieSeries:e=Aw(t);break;case g.RadarSeries:case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:e=Lw(t);break;case g.BoxPlotSeries:e=Ew(t);break}return e}function ei(t){let{seriesConfig:e,xAxisValueFormatType:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(Wt(e)&&e.binTemporalData!==!1&&r===g.DateAxisFormat){let n=X([e]);if(e.temporalBinning&&n!==C.BarAndLineNoAggregation&&n!==C.BarAndLineSplitByNoAggregation){let{unit:s,size:o}=e.temporalBinning;i=a===!0||o!==void 0&&o>0&&s!==void 0}}return i}function Wt(t){return Tw.includes(t.type)}function Dw(t){let{previousConfig:e,newConfig:r,behaviorAfterLimit:a}=t,i=e.series,n=r.series,s=!1,o=!1;(a===Lr.RenderUpToTheLimit||e.orderOptions?.data===void 0||r.orderOptions?.data===void 0)&&(o=!er(e.orderOptions?.orderByFields,r.orderOptions?.orderByFields));let l=En(i.map(c=>c.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]),d=En(n.map(c=>c.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]);return s=!er(l,d),s||o}function Nw(t,e){return JSON.stringify(t.dataFilters)!==JSON.stringify(e.dataFilters)}function Bw(t,e){let r=!1;if(e[0].x!==t[0].x)r=!0;else{let a=Y(t);if(a!==g.HistogramSeries&&a!==g.GaugeSeries){let i=tt(t).sort(),n=tt(e).sort();r=JSON.stringify(i)!==JSON.stringify(n)}}return r}function Mw(t,e){return(t??!1)!==(e?.filterBySelection??!1)}function $w(t,e){return Wt(t.series[0])&&Wt(e.series[0])&&(t.series[0].binTemporalData??P.binTemporalData)!==(e.series[0].binTemporalData??P.binTemporalData)}function qw(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===g.DateAxisFormat&&a===g.NumberAxisFormat,o=r===g.NumberAxisFormat&&a===g.DateAxisFormat;return r!==a&&(n||s||o)}function kw(t){let{previousSeries:e,newConfig:r,previousTimeIntervalInfo:a,setTimeBinningInfoWhenNotProvided:i}=t,n=r.series?.[0],s=!1,o=!1,l=!1;if(Wt(n)&&ei({seriesConfig:n,xAxisValueFormatType:lr(r),setTimeBinningInfoWhenNotProvided:i})){let d=e[0];s=JSON.stringify(d.temporalBinning)!==JSON.stringify(n.temporalBinning),o=a?.unit!==n.temporalBinning?.unit,l=i===!0&&(n.temporalBinning?.size??0)<=0}return{timeBinningChanged:s,timeIntervalUnitChanged:o,newTimeBinningWillBeCalculated:l}}function Zc(t,e){return e.length!==t.length}function Rw(t,e){return Zi(t)!==Zi(e)}function jw(t,e){return JSON.stringify(t.series[0]?.valueConversion)!==JSON.stringify(e.series[0]?.valueConversion)}function Vw(t,e){return JSON.stringify(t.series[0]?.xTemporalBinning)!==JSON.stringify(e.series[0]?.xTemporalBinning)||JSON.stringify(t.series[0]?.yTemporalBinning)!==JSON.stringify(e.series[0]?.yTemporalBinning)||(t.firstDayOfWeek??7)!==(e.firstDayOfWeek??7)||t.outTimeZone!==e.outTimeZone||(t.nullPolicy??at.Null)!==(e.nullPolicy??at.Null)}function Ww(t,e){return(t.hideEmptyRowsAndColumns??!1)!==(e.hideEmptyRowsAndColumns??!1)}function _w(t,e){return(t.includeLeapDay??Qi.heatChart.includeLeapDay)!==(e.includeLeapDay??Qi.heatChart.includeLeapDay)}function zw(t){let{previousConfig:e,newConfig:r,fieldList:a}=t,i=e.series[0],n=r.series[0],s=!1;if(i.type===g.ScatterSeries&&n.type===g.ScatterSeries&&a&&a.length>0){let o=new Set(i.additionalTooltipFields||[]),l=new Set(n.additionalTooltipFields||[]);if(!er(o,l)){let d=Array.from(l).filter(c=>!o.has(c));d.length>0&&(s=a?.some(c=>d.includes(c.name)&&!Fi(c)))}}return s}function zF(t,e){return(t.colorMatch??!1)!==(e.colorMatch??!1)}function UF(t,e){return(t.stackedType??yt.Side)!==(e.stackedType??yt.Side)}function gn(t){let e={...t};return e.position===void 0&&(e.position=Qi.heatChart.legend.position),e}function HF(t,e){let r=t.legend??{type:g.Legend},a=e.legend??{type:g.Legend},i=gn(r),n=gn(a);return!er(i,n)}function GF(t,e){let r=t.legend??{type:g.Legend},a=e.legend??{type:g.Legend},i=gn(r),n=gn(a);return i.position!==n.position}function QF(t,e){return JSON.stringify(t.series[0]?.gradientRules)!==JSON.stringify(e.series[0]?.gradientRules)}function ZF(t,e){return t.series[0].heatRulesType!==e.series[0].heatRulesType}function JF(t){let{oldConfig:e,newConfig:r}=t,a=!1,i=e.series[0],n=r.series[0],s=Y(e.series),o=Y(r.series);if(s===g.PieSeries&&o===g.PieSeries){let{slices:l,sliceGrouping:d}=i,{slices:c,sliceGrouping:u}=n,h=l?.map(y=>({sliceId:y.sliceId,label:y.label})),p=c?.map(y=>({sliceId:y.sliceId,label:y.label})),f=d?.label,m=u?.label;a=JSON.stringify(h)!==JSON.stringify(p)||JSON.stringify(f)!==JSON.stringify(m)}return a}function Uw(t){let{previousSelectionOIDs:e,options:r}=t,a=!1;return r?.filterBySelection===!0&&(a=e?.length!==r?.selectionData?.selectionOIDs?.length||!er(e,r?.selectionData?.selectionOIDs)),a}function KF(t,e){return t?.length!==e?.length||t?.some((r,a)=>{let i=ut({where:r?.query?.where}),n=ut({where:e?.[a]?.query?.where});return i!==n})}function YF(t,e){let r=tt(t),a=tt(e);return JSON.stringify(r)!==JSON.stringify(a)}function XF(t,e){let r,a,i,n;return Wt(t.series[0])&&(r=t.series[0].temporalBinning?.unit,i=t.series[0].temporalBinning?.size),Wt(e.series[0])&&(a=e.series[0].temporalBinning?.unit,n=e.series[0].temporalBinning?.size),Vs(r,i)&&!Vs(a,n)}function eI(t,e){return t.axes?.length===3&&e.axes?.length===2||t.axes?.length===2&&e.axes?.length===3}function tI(t,e){return JSON.stringify(t.series.map(r=>r.assignToSecondValueAxis??!1))!==JSON.stringify(e.series.map(r=>r.assignToSecondValueAxis??!1))}function rI(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 iI(t,e){return Vc(t)!==Vc(e)}function aI(t,e){return(t.showOutliers??P.boxPlot.boxPlotOutliersVisibility)!==(e.showOutliers??P.boxPlot.boxPlotOutliersVisibility)}function nI(t,e){return(t.standardizeValues??P.boxPlot.boxPlotStandardizeValuesVisibility)!==(e.standardizeValues??P.boxPlot.boxPlotStandardizeValuesVisibility)}function sI(t,e){return JSON.stringify(t.chartRenderer)!==JSON.stringify(e.chartRenderer)}function oI(t,e){let r=t.axes?.[0].valueFormat.type===g.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0,a=e.axes?.[0].valueFormat.type===g.DateAxisFormat?e.axes[0].valueFormat.intlOptions.timeZone:void 0;return r!==a}function lI(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===g.ScatterSeries&&i.type===g.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=JSON.stringify(n)!==JSON.stringify(s)}return r}function dI(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===g.ScatterSeries&&i.type===g.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=n===void 0&&s!==void 0||n!==void 0&&s===void 0||n?.field!==s?.field}return r}function cI(t){let{previousConfig:e,newConfig:r,options:a,previousFilterBySelection:i,previousTimeIntervalInfo:n,previousSelectionOIDs:s,fieldList:o}=t,{series:l}=r,{series:d}=e,c=Y(l),u=!1,h=!1,p=!1,f={common:{layerChanged:!1,queryChanged:!1,xOrYChanged:!1,numberOfSeriesChanged:!1,configFiltersChanged:!1,filterBySelectionChanged:!1,dataForFilterBySelectionChanged:!1,binTemporalDataChanged:!1,timeBinningChanged:!1,timeIntervalUnitChanged:!1,newTimeBinningWillBeCalculated:!1,valueFormatChangeRequiresNewData:!1},histogram:{dataPropsChanged:!1},gauge:{valueConversionChanged:!1},boxPlot:{showMeanChanged:!1},heatChart:{binningChanged:!1,hideEmptyRowsAndColumnsChanged:!1,includeLeapDay:!1},scatterPlot:{tooltipFieldsChanged:!1}};switch(f.common.queryChanged=Dw({previousConfig:e,newConfig:r,behaviorAfterLimit:a?.chartLimits?.behaviorAfterLimit}),f.common.configFiltersChanged=Nw(e,r),f.common.xOrYChanged=Bw(d,l),f.common.filterBySelectionChanged=Mw(i,a),f.common.dataForFilterBySelectionChanged=Uw({previousSelectionOIDs:s,options:a}),f.common.binTemporalDataChanged=$w(e,r),f.common.valueFormatChangeRequiresNewData=qw(e,r),f.common={...f.common,...kw({previousSeries:d,newConfig:r,previousTimeIntervalInfo:n,setTimeBinningInfoWhenNotProvided:a?.setTimeBinningInfoWhenNotProvided})},h=Object.values(f.common).some(m=>m),c){case g.HistogramSeries:f.histogram.dataPropsChanged=ub(d,l)||cb(d,l);break;case g.LineSeries:case g.BarSeries:case g.ComboLineAndBarSeries:f.common.numberOfSeriesChanged=Zc(d,l);break;case g.BoxPlotSeries:dt(e)&&dt(r)&&(f.common.numberOfSeriesChanged=Zc(d,l),f.boxPlot.showMeanChanged=Rw(e,r));break;case g.GaugeSeries:f.gauge.valueConversionChanged=jw(e,r);break;case g.HeatSeries:wi(e)&&wi(r)&&(f.heatChart.binningChanged=Vw(e,r),f.heatChart.hideEmptyRowsAndColumnsChanged=Ww(e,r),f.heatChart.includeLeapDay=_w(e,r));break;case g.ScatterSeries:f.scatterPlot.tooltipFieldsChanged=zw({previousConfig:e,newConfig:r,fieldList:o});break}return(f.gauge.valueConversionChanged||f.histogram.dataPropsChanged||f.common.numberOfSeriesChanged||f.common.binTemporalDataChanged||f.boxPlot.showMeanChanged||f.heatChart.binningChanged||f.heatChart.hideEmptyRowsAndColumnsChanged||f.heatChart.includeLeapDay||f.scatterPlot.tooltipFieldsChanged)&&(p=!0),u=h||p,{dataUpdateNeeded:u,dataUpdateDetails:f}}function uI(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=Fp(s)?"splitByValue":"name"}else n="name";r.series.sort((s,o)=>{let l,d;n==="splitByValue"?(l=ut({where:s.query?.where})??"",d=ut({where:o.query?.where})??""):(l=s.name,d=o.name);let[c,u]=i.toUpperCase()===ze.Descending?[d,l]:[l,d];return typeof c=="string"&&typeof u=="string"?c.localeCompare(u):Number(c)-Number(u)})}}return jS({data:r?.series.map(a=>a.id),htmlContainer:e}),r}function vi(t){let e=t===void 0||t==="";return{[H.Average]:`${e?"":`${t}_`}${H.Average}`,[H.Min]:`${e?"":`${t}_`}${H.Min}`,[H.Max]:`${e?"":`${t}_`}${H.Max}`,[H.FirstQuartile]:`${e?"":`${t}_`}${H.FirstQuartile}`,[H.Median]:`${e?"":`${t}_`}${H.Median}`,[H.ThirdQuartile]:`${e?"":`${t}_`}${H.ThirdQuartile}`,[H.IQR]:`${e?"":`${t}_`}${H.IQR}`,[H.Outlier]:`${e?"":`${t}_`}${H.Outlier}`,[H.StandardDeviation]:`${e?"":`${t}_`}${H.StandardDeviation}`}}function xo(t){return"subType"in t&&t.subType===Wo.FeatureGauge}function ih(t){let e;return t!==void 0&&("bins"in t?e=t.bins:"dataItems"in t&&(e=t.dataItems)),e}function ah(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=vi(r)[e];return s===!0&&(e===H.Min||e===H.Max)&&(d=`${d}${ib}`),o===!0&&(ah(a)||e===H.Outlier)&&(d=`${d}${ab}`),(n===void 0||`${n}`.trim()==="")&&(l=ut({where:i,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(d=`${l}${d!==""?`_${d}`:""}`),d}function Ss(t){let{dataItem:e,y:r,splitBy:a,showOutliers:i}=t,n=Ue({key:H.FirstQuartile,y:r,splitBy:a,showOutliers:i}),s=Ue({key:H.ThirdQuartile,y:r,splitBy:a,showOutliers:i});return Number.isFinite(e[n])||Number.isFinite(e[s])}function Hw(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=Ss({dataItem:r,showOutliers:i});break;case C.BoxPlotMultiFieldsAndCategory:s=a.some(o=>Ss({dataItem:r,y:o,showOutliers:i}));break;case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:s=e.some(o=>Ss({dataItem:r,splitBy:o.query?.where,showOutliers:i}));break;default:s=!1;break}return s}function nh(t){return t.map(e=>e.id).filter(e=>e!==void 0)}function tt(t,e){let r=[],a=e??nh(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()}_${ut({where:n.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),s}).filter(n=>n!==void 0),Array.from(new Set(r.flat()))}function Tn(t){let{seriesConfig:e,filteredSeriesIds:r,showMean:a}=t,i=[];if(a===!0){let n=e.find(s=>s.type===g.BoxPlotSeries);n!==void 0&&"y"in n&&(i=[n.y].flat())}else i=tt(e,r);return i}function br(t,e){return t===null&&e===!0||Number.isFinite(t)}function Gw(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]))&&br(e[a],i)}function pI(t){let{chartConfig:e,nullAsValid:r=!1,dataSet:a}=t,i=!0;if(e!==void 0){let n=Y(e.series);if(a===void 0||a.length===0)i=!0;else{let s=tt(e.series);i=!a.some(o=>{let l=!1;switch(n){case g.HistogramSeries:{let d=o;l=br(d.minValue,r)&&br(d.maxValue,r)}break;case g.ScatterSeries:{let d=o,{x:c,y:u}=e.series[0];l=br(d[c],r)&&br(d[u],r)}break;case g.ComboLineAndBarSeries:case g.RadarSeries:case g.LineSeries:case g.BarSeries:{let d=o,{x:c}=e.series[0];l=s.some(u=>Gw({dataItem:d,x:c,y:u,nullAsValid:r}));break}case g.BoxPlotSeries:{if(dt(e)){let d=e.series;l=Hw({configSeries:d,boxPlotDataItem:o,yList:s,showOutliers:e.showOutliers})}break}case g.PieSeries:{let d=o,{x:c,y:u}=e.series[0];X(e.series)===C.PieFromFields&&(c=st,u=jt);let h=d[u];l=d[c]!==void 0&&d[c]!==null&&!Ro(h)&&br(Number(h),r)}break;case g.GaugeSeries:{let{x:d}=e.series[0];l=br(o[d],r)}break;case g.HeatSeries:l=a.some(d=>br(d[xe.valueField],r));break}return l})}}return i}function Qw(t,e){let r=new Map,a=e??nh(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 Zw(t){let{seriesConfig:e,filteredSeriesIds:r,filteredData:a}=t,i=Qw(e,r),n=e.find(d=>d.type===g.LineSeries||d.type===g.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,l=!1;return a.forEach(d=>{i.forEach(c=>{if(n){let u=0,h=0,p=!1,f=!1;for(let m=0;m<c.length;m+=1){let y=d[c[m]];Number.isFinite(y)&&(y<0?(h+=y,f=!0,l=!0):(u+=y,p=!0))}s=p?Math.max(s,u):s,o=f?Math.min(o,h):o}else{let u=0;for(let h=0;h<c.length;h+=1){let p=d[c[h]];u+=p,s=Math.max(s,u),o=Math.min(o,u)}}})}),{stackedMinY:o,stackedMaxY:s,dataHasNegativeValues:l}}function Jw(t){let{dataItem:e,...r}=t,a=Ue({key:H.Min,...r}),i=Ue({key:H.Max,...r}),n=e[a],s=e[i];return{min:n,max:s}}function hI(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=s.filter(h=>h[d]!==null);[a,i]=li(c,h=>h[d]),n.axes?.[1]?.valueFormat.type===g.DateAxisFormat&&a!==void 0&&i!==void 0&&([a,i]=[new Date(a).valueOf(),new Date(i).valueOf()]);let u=Y(n.series);if(u===g.HistogramSeries&&s.length>0){let h=s[0]?.[Nc.Start],p=s[s.length-1]?.[Nc.End];a=typeof h=="number"?h:a,i=typeof p=="number"?p:i}else if(u===g.BoxPlotSeries){e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;let h=tt(l,o),p=X(l),f="standardizeValues"in n?n.standardizeValues===!0:void 0,m=n.series.map(y=>y.visible!==!1?ut({where:y.query?.where}):"");m.length===0&&m.push(" "),c.forEach(y=>{h.forEach(b=>{let v=p===C.BoxPlotMultiFieldsAndCategory?b:void 0;m.forEach(S=>{let{min:x,max:I}=Jw({y:v,splitByValue:S,chartSubType:p,showOutliers:!1,standardizeValues:f,dataItem:y});x!=null&&x<e&&(e=x),I!=null&&I>r&&(r=I)})})})}else switch(co(n)){case yt.Stacked100:{e=Number.NaN,r=Number.NaN;break}case yt.Stacked:{let{stackedMinY:h,stackedMaxY:p}=Zw({seriesConfig:l,filteredData:c,filteredSeriesIds:o});e=h,r=p;break}case yt.Side:default:{e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,tt(l,o).forEach(h=>{let[p,f]=li(c,m=>m[h]);p!==void 0&&p<e&&(e=p),f!==void 0&&f>r&&(r=f)});break}}}return{minY:e,maxY:r,minX:a,maxX:i}}var hi={$schema:"http://json-schema.org/draft-07/schema#",definitions:{ValueConversion:{type:"object",properties:{factor:{type:"number",description:"A numeric value multiplying the value to convert"},offset:{type:"number",description:"A numeric offset to apply to the value to convert"}},description:"Stores information regarding a numeric conversion.",title:"ValueConversion"},WebChartAxisScrollBar:{type:"object",properties:{visible:{type:"boolean",description:"Scrollbar visibility",default:!1},width:{type:"number",description:"Scrollbar width in pixels"},color:{$ref:"#/definitions/Color",description:"Scrollbar color"},gripSize:{type:"number",description:"Grip size in pixels"},margin:{type:"number",description:"Margin between the scrollbar and the series container in pixels"}},description:"Describes the properties of an axis scrollbar",title:"WebChartAxisScrollBar"},Color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,title:"Color"},WebChartTextSymbol:{type:"object",properties:{xoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container width.`},yoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container height.`},angle:{type:"number",description:"Rotation of the label"},style:{type:"string",description:"Label style"},type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],description:"Represents a text symbol.",title:"WebChartTextSymbol"},'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>':{$ref:"#/definitions/Pick%3CITextSymbol%2CExclude%3C(%22type%22%7C%22color%22%7C%22backgroundColor%22%7C%22borderLineSize%22%7C%22borderLineColor%22%7C%22haloSize%22%7C%22haloColor%22%7C%22verticalAlignment%22%7C%22horizontalAlignment%22%7C%22rightToLeft%22%7C%22kerning%22%7C%22font%22%7C%22text%22%7C%22angle%22%7C%22xoffset%22%7C%22yoffset%22%7C%22style%22%7Cstring)%2C(%22angle%22%7C%22style%22%7C%22xoffset%22%7C%22yoffset%22)%3E%3E",title:'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>'},'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>':{type:"object",properties:{type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>'},IFont:{type:"object",properties:{family:{type:"string"},size:{type:"number"},style:{type:"string",enum:["italic","normal","oblique"]},weight:{type:"string",enum:["bold","bolder","lighter","normal"]},decoration:{type:"string",enum:["line-through","none","underline"]}},title:"IFont"},WebChartText:{type:"object",properties:{type:{type:"string",const:"chartText",description:'Represents a unique string identifier for the ChartText object. For ChartText object, it is "chartText".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling info and text content. Details on **esriTS** are [here](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm)."}},required:["type","content"],description:"Stores info on how some text is rendered on the chart and whether it is visible or not.",title:"WebChartText"},WebChartCursorCrosshair:{type:"object",properties:{type:{type:"string",const:"cursorCrosshair",description:"Represents a unique string identifier for the chart cursor's crosshair."},style:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the chart cursor's crosshair should be rendered."},verticalLineVisible:{type:"boolean",description:"Indicates whether the vertical crosshair line should be displayed",default:!1},horizontalLineVisible:{type:"boolean",description:"Indicates whether the horizontal crosshair line should be displayed",default:!1}},required:["type"],description:"JSON representation of the cursor's crosshair for a chart.",title:"WebChartCursorCrosshair"},ISimpleLineSymbol:{type:"object",properties:{type:{type:"string",const:"esriSLS"},style:{$ref:"#/definitions/SimpleLineSymbolStyle"},color:{$ref:"#/definitions/Color"},width:{type:"number"}},required:["type"],title:"ISimpleLineSymbol"},ISymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"}},required:["type"],title:"ISymbol"},SymbolType:{type:"string",enum:["esriPFS","esriPMS","esriSFS","esriSLS","esriSMS","esriTS"],title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1}},required:["type"],description:"JSON representation of the Chart's legend box",title:"WebChartLegend"},WebChartLegendPositions:{type:"string",enum:["left","right","top","bottom"],title:"WebChartLegendPositions"},WebChartNullCategory:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use for the null category. If none is provided, the default `null` text will be used."},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied.",default:"1 - symbol.outline.width"}},title:"WebChartNullCategory"},ISimpleFillSymbol:{type:"object",properties:{type:{type:"string",const:"esriSFS"},style:{$ref:"#/definitions/SimpleFillSymbolStyle"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleFillSymbol"},SimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"SimpleFillSymbolStyle"},WebChartPieChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1},displayCategory:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed in the legend.",default:!0},displayNumericValue:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},displayPercentage:{type:"boolean",description:"Indicates whether the percentage to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},labelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200},valueLabelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for the Pie chart",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:'Represents a unique string identifier for the ChartOverlay object. For ChartOverlay object, it is "chartOverlay".'},created:{type:"boolean",description:"Determines whether the overlay is created under the hood. It may or may not be visible.",default:!1},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},symbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied."}},required:["type"],description:"JSON representation of the chart's overlays like trendline scatter plot, and median in histogram",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "number". It can help us to differentiate numerical (value) axis from other types of axes viz., date-time axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.NumberFormatOptions",description:"Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications."}},required:["type","intlOptions"],description:"Defines how the numerical(value) axis data should be formatted.",title:"NumberFormatOptions"},"Intl.NumberFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["lookup","best fit"]},style:{$ref:"#/definitions/Intl.NumberFormatOptionsStyle"},currency:{type:"string"},currencyDisplay:{$ref:"#/definitions/Intl.NumberFormatOptionsCurrencyDisplay"},useGrouping:{$ref:"#/definitions/Intl.NumberFormatOptionsUseGrouping"},minimumIntegerDigits:{type:"number"},minimumFractionDigits:{type:"number"},maximumFractionDigits:{type:"number"},minimumSignificantDigits:{type:"number"},maximumSignificantDigits:{type:"number"}},title:"Intl.NumberFormatOptions"},"Intl.NumberFormatOptionsStyle":{title:"Intl.NumberFormatOptionsStyle"},"Intl.NumberFormatOptionsCurrencyDisplay":{title:"Intl.NumberFormatOptionsCurrencyDisplay"},"Intl.NumberFormatOptionsUseGrouping":{type:"boolean",title:"Intl.NumberFormatOptionsUseGrouping"},WebChartDateTimeUnitFormatOptions:{type:"object",properties:{year:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},month:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},day:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},hour:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},minute:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},second:{$ref:"#/definitions/Intl.DateTimeFormatOptions"}},description:'Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis. For instance: "year": { year: "numeric" } "month": { month: "numeric" } "day": { day: "2-digit" } "hour": { day: "numeric" } "minute": { minute: "numeric" } "second": { second: "numeric" } Reference: https://tc39.es/ecma402/#sec-datetimeformat-abstracts',title:"WebChartDateTimeUnitFormatOptions"},"Intl.DateTimeFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["best fit","lookup"]},weekday:{type:"string",enum:["long","short","narrow"]},era:{type:"string",enum:["long","short","narrow"]},year:{type:"string",enum:["numeric","2-digit"]},month:{type:"string",enum:["numeric","2-digit","long","short","narrow"]},day:{type:"string",enum:["numeric","2-digit"]},hour:{type:"string",enum:["numeric","2-digit"]},minute:{type:"string",enum:["numeric","2-digit"]},second:{type:"string",enum:["numeric","2-digit"]},timeZoneName:{type:"string",enum:["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},formatMatcher:{type:"string",enum:["best fit","basic"]},hour12:{type:"boolean"},timeZone:{type:"string"}},title:"Intl.DateTimeFormatOptions"},DateTimeFormatOptions:{type:"object",properties:{type:{type:"string",const:"date",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "date". It can help us to differentiate date-time axis from other types of axes viz., numeric (value) axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.DateTimeFormatOptions",description:"Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications."},formatPerDateTimeUnit:{$ref:"#/definitions/WebChartDateTimeUnitFormatOptions",description:"Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`."}},required:["type","intlOptions"],description:"Defines how the DateTime axis data should be formatted.",title:"DateTimeFormatOptions"},CategoryFormatOptions:{type:"object",properties:{type:{type:"string",const:"category",description:'Represents a unique string identifier for the CategoryFormatOptions object. For CategoryFormatOptions object, it is "category". It can help us to differentiate category axis from other types of axes, viz., date-time axis and numeric (value) axis.'},characterLimit:{type:["number","null"],description:"Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done.",minimum:1,multipleOf:1}},required:["type"],description:"Defines how the category axis data (Categories) should be formatted.",title:"CategoryFormatOptions"},WebChartGuide:{type:"object",properties:{type:{type:"string",const:"chartGuide",description:'Represents a unique string identifier for the Guide object. For Guide class, it is "chartGuide".'},start:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should begin."},end:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should end. If it is not specified, we get a line guide, otherwise we get a fill/rectangular guide."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered. Line guide requires [esriSLS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format, and fill guide requires [esriSFS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the Chart Authoring UI to differentiate between different guides."},label:{$ref:"#/definitions/WebChartTextSymbol",description:"Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **esriTS** format."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},above:{type:"boolean",description:"Determines whether the guide should be rendered on top of (overlapping) the series or under the series.",default:!1},tooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).",default:!1}},required:["type","start","style","name"],description:"JSON representation of the chart's guide object. Can be used to represent both line and fill guides.",title:"WebChartGuide"},WebChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
3
+ v5.0.0-next.126 */
4
+ import{C as Ke,D as Vr,a as ua,g as kr,j as Ro,k as er,m as ko,q as En,s as Te,t as hr,u as ha,v as jr,w as me,x as Ae,y as Ce}from"./MKNAFOVQ.js";import{c as qo,d as Dn,e as $t,f as mt}from"./B5NYZJPC.js";import{a as g,b as j,c as Ge,e as Ri,f as yt,h as ze,i as pa,j as jo,k as Q,l as gt,n as at,o as Me,p as Vo,q as pr,s as Wo,t as _o,v as nt,y as Y}from"./QWA2NXWE.js";import{G as At}from"./BIMLXGQH.js";import{b as J,d as $o}from"./7H276RRF.js";export default $arcgis.t(([Sm,Js,Ii,{substitute:qe},tc,wm,rc,an,Cm,Ks,xm,Fm,Kc,Im,Tm,Pm,,Am,Om,Ys])=>{var Xo=J((ZC,$n)=>{function Bh(t,e){var r=e&&e.cache?e.cache:jh,a=e&&e.serializer?e.serializer:kh,i=e&&e.strategy?e.strategy:$h;return i(t,{cache:r,serializer:a})}function Mh(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Ko(t,e,r,a){var i=Mh(a)?a:r(a),n=e.get(i);return typeof n>"u"&&(n=t.call(this,a),e.set(i,n)),n}function Yo(t,e,r){var a=Array.prototype.slice.call(arguments,3),i=r(a),n=e.get(i);return typeof n>"u"&&(n=t.apply(this,a),e.set(i,n)),n}function Mn(t,e,r,a,i){return r.bind(e,t,a,i)}function $h(t,e){var r=t.length===1?Ko:Yo;return Mn(t,this,r,e.cache.create(),e.serializer)}function qh(t,e){var r=Yo;return Mn(t,this,r,e.cache.create(),e.serializer)}function Rh(t,e){var r=Ko;return Mn(t,this,r,e.cache.create(),e.serializer)}function kh(){return JSON.stringify(arguments)}function Sa(){this.cache=Object.create(null)}Sa.prototype.has=function(t){return t in this.cache};Sa.prototype.get=function(t){return this.cache[t]};Sa.prototype.set=function(t,e){this.cache[t]=e};var jh={create:function(){return new Sa}};$n.exports=Bh;$n.exports.strategies={variadic:qh,monadic:Rh}});var tl=J((wa,el)=>{(function(t,e){typeof wa=="object"&&typeof el<"u"?e(wa):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(wa,(function(t){"use strict";function e(){for(var F=arguments.length,w=Array(F),T=0;T<F;T++)w[T]=arguments[T];if(w.length>1){w[0]=w[0].slice(0,-1);for(var D=w.length-1,B=1;B<D;++B)w[B]=w[B].slice(1,-1);return w[D]=w[D].slice(1),w.join("")}else return w[0]}function r(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,w){var T=F;if(w)for(var D in w)T[D]=w[D];return T}function o(F){var w="[A-Za-z]",T="[\\x0D]",D="[0-9]",B="[\\x22]",_=e(D,"[A-Fa-f]"),ee="[\\x0A]",le="[\\x20]",he=r(r("%[EFef]"+_+"%"+_+_+"%"+_+_)+"|"+r("%[89A-Fa-f]"+_+"%"+_+_)+"|"+r("%"+_+_)),je="[\\:\\/\\?\\#\\[\\]\\@]",ne="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ee=e(je,ne),Ve=F?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Pe=F?"[\\uE000-\\uF8FF]":"[]",ce=e(w,D,"[\\-\\.\\_\\~]",Ve),De=r(w+e(w,D,"[\\+\\-\\.]")+"*"),ge=r(r(he+"|"+e(ce,ne,"[\\:]"))+"*"),$r=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("[1-9]"+D)+"|"+D),ht=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("0?[1-9]"+D)+"|0?0?"+D),Tt=r(ht+"\\."+ht+"\\."+ht+"\\."+ht),Se=r(_+"{1,4}"),ft=r(r(Se+"\\:"+Se)+"|"+Tt),Pt=r(r(Se+"\\:")+"{6}"+ft),Gt=r("\\:\\:"+r(Se+"\\:")+"{5}"+ft),qr=r(r(Se)+"?\\:\\:"+r(Se+"\\:")+"{4}"+ft),Kt=r(r(r(Se+"\\:")+"{0,1}"+Se)+"?\\:\\:"+r(Se+"\\:")+"{3}"+ft),Ni=r(r(r(Se+"\\:")+"{0,2}"+Se)+"?\\:\\:"+r(Se+"\\:")+"{2}"+ft),la=r(r(r(Se+"\\:")+"{0,3}"+Se)+"?\\:\\:"+Se+"\\:"+ft),da=r(r(r(Se+"\\:")+"{0,4}"+Se)+"?\\:\\:"+ft),ri=r(r(r(Se+"\\:")+"{0,5}"+Se)+"?\\:\\:"+Se),ii=r(r(r(Se+"\\:")+"{0,6}"+Se)+"?\\:\\:"),Yt=r([Pt,Gt,qr,Kt,Ni,la,da,ri,ii].join("|")),ai=r(r(ce+"|"+he)+"+"),On=r(Yt+"\\%25"+ai),Rr=r(Yt+r("\\%25|\\%(?!"+_+"{2})")+ai),Sh=r("[vV]"+_+"+\\."+e(ce,ne,"[\\:]")+"+"),wh=r("\\["+r(Rr+"|"+Yt+"|"+Sh)+"\\]"),Do=r(r(he+"|"+e(ce,ne))+"*"),Bi=r(wh+"|"+Tt+"(?!"+Do+")|"+Do),Mi=r(D+"*"),No=r(r(ge+"@")+"?"+Bi+r("\\:"+Mi)+"?"),$i=r(he+"|"+e(ce,ne,"[\\:\\@]")),Ch=r($i+"*"),Bo=r($i+"+"),xh=r(r(he+"|"+e(ce,ne,"[\\@]"))+"+"),Xt=r(r("\\/"+Ch)+"*"),ni=r("\\/"+r(Bo+Xt)+"?"),Ln=r(xh+Xt),ca=r(Bo+Xt),si="(?!"+$i+")",uC=r(Xt+"|"+ni+"|"+Ln+"|"+ca+"|"+si),oi=r(r($i+"|"+e("[\\/\\?]",Pe))+"*"),qi=r(r($i+"|[\\/\\?]")+"*"),Mo=r(r("\\/\\/"+No+Xt)+"|"+ni+"|"+ca+"|"+si),Fh=r(De+"\\:"+Mo+r("\\?"+oi)+"?"+r("\\#"+qi)+"?"),Ih=r(r("\\/\\/"+No+Xt)+"|"+ni+"|"+Ln+"|"+si),Th=r(Ih+r("\\?"+oi)+"?"+r("\\#"+qi)+"?"),pC=r(Fh+"|"+Th),hC=r(De+"\\:"+Mo+r("\\?"+oi)+"?"),fC="^("+De+")\\:"+r(r("\\/\\/("+r("("+ge+")@")+"?("+Bi+")"+r("\\:("+Mi+")")+"?)")+"?("+Xt+"|"+ni+"|"+ca+"|"+si+")")+r("\\?("+oi+")")+"?"+r("\\#("+qi+")")+"?$",mC="^(){0}"+r(r("\\/\\/("+r("("+ge+")@")+"?("+Bi+")"+r("\\:("+Mi+")")+"?)")+"?("+Xt+"|"+ni+"|"+Ln+"|"+si+")")+r("\\?("+oi+")")+"?"+r("\\#("+qi+")")+"?$",yC="^("+De+")\\:"+r(r("\\/\\/("+r("("+ge+")@")+"?("+Bi+")"+r("\\:("+Mi+")")+"?)")+"?("+Xt+"|"+ni+"|"+ca+"|"+si+")")+r("\\?("+oi+")")+"?$",gC="^"+r("\\#("+qi+")")+"?$",bC="^"+r("("+ge+")@")+"?("+Bi+")"+r("\\:("+Mi+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",w,D,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",ce,ne),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",ce,ne),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",ce,ne),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",ce,ne),"g"),NOT_QUERY:new RegExp(e("[^\\%]",ce,ne,"[\\:\\@\\/\\?]",Pe),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",ce,ne,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",ce,ne),"g"),UNRESERVED:new RegExp(ce,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",ce,Ee),"g"),PCT_ENCODED:new RegExp(he,"g"),IPV4ADDRESS:new RegExp("^("+Tt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Yt+")"+r(r("\\%25|\\%(?!"+_+"{2})")+"("+ai+")")+"?\\]?$")}}var l=o(!1),d=o(!0),c=(function(){function F(w,T){var D=[],B=!0,_=!1,ee=void 0;try{for(var le=w[Symbol.iterator](),he;!(B=(he=le.next()).done)&&(D.push(he.value),!(T&&D.length===T));B=!0);}catch(je){_=!0,ee=je}finally{try{!B&&le.return&&le.return()}finally{if(_)throw ee}}return D}return function(w,T){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return F(w,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=function(F){if(Array.isArray(F)){for(var w=0,T=Array(F.length);w<F.length;w++)T[w]=F[w];return T}else return Array.from(F)},h=2147483647,p=36,f=1,m=26,y=38,b=700,v=72,S=128,x="-",I=/^xn--/,O=/[^\0-\x7E]/,q=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=p-f,M=Math.floor,N=String.fromCharCode;function R(F){throw new RangeError(L[F])}function $(F,w){for(var T=[],D=F.length;D--;)T[D]=w(F[D]);return T}function E(F,w){var T=F.split("@"),D="";T.length>1&&(D=T[0]+"@",F=T[1]),F=F.replace(q,".");var B=F.split("."),_=$(B,w).join(".");return D+_}function k(F){for(var w=[],T=0,D=F.length;T<D;){var B=F.charCodeAt(T++);if(B>=55296&&B<=56319&&T<D){var _=F.charCodeAt(T++);(_&64512)==56320?w.push(((B&1023)<<10)+(_&1023)+65536):(w.push(B),T--)}else w.push(B)}return w}var z=function(w){return String.fromCodePoint.apply(String,u(w))},Z=function(w){return w-48<10?w-22:w-65<26?w-65:w-97<26?w-97:p},W=function(w,T){return w+22+75*(w<26)-((T!=0)<<5)},G=function(w,T,D){var B=0;for(w=D?M(w/b):w>>1,w+=M(w/T);w>A*m>>1;B+=p)w=M(w/A);return M(B+(A+1)*w/(w+y))},U=function(w){var T=[],D=w.length,B=0,_=S,ee=v,le=w.lastIndexOf(x);le<0&&(le=0);for(var he=0;he<le;++he)w.charCodeAt(he)>=128&&R("not-basic"),T.push(w.charCodeAt(he));for(var je=le>0?le+1:0;je<D;){for(var ne=B,Ee=1,Ve=p;;Ve+=p){je>=D&&R("invalid-input");var Pe=Z(w.charCodeAt(je++));(Pe>=p||Pe>M((h-B)/Ee))&&R("overflow"),B+=Pe*Ee;var ce=Ve<=ee?f:Ve>=ee+m?m:Ve-ee;if(Pe<ce)break;var De=p-ce;Ee>M(h/De)&&R("overflow"),Ee*=De}var ge=T.length+1;ee=G(B-ne,ge,ne==0),M(B/ge)>h-_&&R("overflow"),_+=M(B/ge),B%=ge,T.splice(B++,0,_)}return String.fromCodePoint.apply(String,T)},ie=function(w){var T=[];w=k(w);var D=w.length,B=S,_=0,ee=v,le=!0,he=!1,je=void 0;try{for(var ne=w[Symbol.iterator](),Ee;!(le=(Ee=ne.next()).done);le=!0){var Ve=Ee.value;Ve<128&&T.push(N(Ve))}}catch(Rr){he=!0,je=Rr}finally{try{!le&&ne.return&&ne.return()}finally{if(he)throw je}}var Pe=T.length,ce=Pe;for(Pe&&T.push(x);ce<D;){var De=h,ge=!0,$r=!1,ht=void 0;try{for(var Tt=w[Symbol.iterator](),Se;!(ge=(Se=Tt.next()).done);ge=!0){var ft=Se.value;ft>=B&&ft<De&&(De=ft)}}catch(Rr){$r=!0,ht=Rr}finally{try{!ge&&Tt.return&&Tt.return()}finally{if($r)throw ht}}var Pt=ce+1;De-B>M((h-_)/Pt)&&R("overflow"),_+=(De-B)*Pt,B=De;var Gt=!0,qr=!1,Kt=void 0;try{for(var Ni=w[Symbol.iterator](),la;!(Gt=(la=Ni.next()).done);Gt=!0){var da=la.value;if(da<B&&++_>h&&R("overflow"),da==B){for(var ri=_,ii=p;;ii+=p){var Yt=ii<=ee?f:ii>=ee+m?m:ii-ee;if(ri<Yt)break;var ai=ri-Yt,On=p-Yt;T.push(N(W(Yt+ai%On,0))),ri=M(ai/On)}T.push(N(W(ri,0))),ee=G(_,Pt,ce==Pe),_=0,++ce}}}catch(Rr){qr=!0,Kt=Rr}finally{try{!Gt&&Ni.return&&Ni.return()}finally{if(qr)throw Kt}}++_,++B}return T.join("")},Re=function(w){return E(w,function(T){return I.test(T)?U(T.slice(4).toLowerCase()):T})},_e=function(w){return E(w,function(T){return O.test(T)?"xn--"+ie(T):T})},te={version:"2.1.0",ucs2:{decode:k,encode:z},decode:U,encode:ie,toASCII:_e,toUnicode:Re},ye={};function Fe(F){var w=F.charCodeAt(0),T=void 0;return w<16?T="%0"+w.toString(16).toUpperCase():w<128?T="%"+w.toString(16).toUpperCase():w<2048?T="%"+(w>>6|192).toString(16).toUpperCase()+"%"+(w&63|128).toString(16).toUpperCase():T="%"+(w>>12|224).toString(16).toUpperCase()+"%"+(w>>6&63|128).toString(16).toUpperCase()+"%"+(w&63|128).toString(16).toUpperCase(),T}function ke(F){for(var w="",T=0,D=F.length;T<D;){var B=parseInt(F.substr(T+1,2),16);if(B<128)w+=String.fromCharCode(B),T+=3;else if(B>=194&&B<224){if(D-T>=6){var _=parseInt(F.substr(T+4,2),16);w+=String.fromCharCode((B&31)<<6|_&63)}else w+=F.substr(T,6);T+=6}else if(B>=224){if(D-T>=9){var ee=parseInt(F.substr(T+4,2),16),le=parseInt(F.substr(T+7,2),16);w+=String.fromCharCode((B&15)<<12|(ee&63)<<6|le&63)}else w+=F.substr(T,9);T+=9}else w+=F.substr(T,3),T+=3}return w}function xt(F,w){function T(D){var B=ke(D);return B.match(w.UNRESERVED)?B:D}return F.scheme&&(F.scheme=String(F.scheme).replace(w.PCT_ENCODED,T).toLowerCase().replace(w.NOT_SCHEME,"")),F.userinfo!==void 0&&(F.userinfo=String(F.userinfo).replace(w.PCT_ENCODED,T).replace(w.NOT_USERINFO,Fe).replace(w.PCT_ENCODED,i)),F.host!==void 0&&(F.host=String(F.host).replace(w.PCT_ENCODED,T).toLowerCase().replace(w.NOT_HOST,Fe).replace(w.PCT_ENCODED,i)),F.path!==void 0&&(F.path=String(F.path).replace(w.PCT_ENCODED,T).replace(F.scheme?w.NOT_PATH:w.NOT_PATH_NOSCHEME,Fe).replace(w.PCT_ENCODED,i)),F.query!==void 0&&(F.query=String(F.query).replace(w.PCT_ENCODED,T).replace(w.NOT_QUERY,Fe).replace(w.PCT_ENCODED,i)),F.fragment!==void 0&&(F.fragment=String(F.fragment).replace(w.PCT_ENCODED,T).replace(w.NOT_FRAGMENT,Fe).replace(w.PCT_ENCODED,i)),F}function rt(F){return F.replace(/^0*(.*)/,"$1")||"0"}function Ie(F,w){var T=F.match(w.IPV4ADDRESS)||[],D=c(T,2),B=D[1];return B?B.split(".").map(rt).join("."):F}function ve(F,w){var T=F.match(w.IPV6ADDRESS)||[],D=c(T,3),B=D[1],_=D[2];if(B){for(var ee=B.toLowerCase().split("::").reverse(),le=c(ee,2),he=le[0],je=le[1],ne=je?je.split(":").map(rt):[],Ee=he.split(":").map(rt),Ve=w.IPV4ADDRESS.test(Ee[Ee.length-1]),Pe=Ve?7:8,ce=Ee.length-Pe,De=Array(Pe),ge=0;ge<Pe;++ge)De[ge]=ne[ge]||Ee[ce+ge]||"";Ve&&(De[Pe-1]=Ie(De[Pe-1],w));var $r=De.reduce(function(Pt,Gt,qr){if(!Gt||Gt==="0"){var Kt=Pt[Pt.length-1];Kt&&Kt.index+Kt.length===qr?Kt.length++:Pt.push({index:qr,length:1})}return Pt},[]),ht=$r.sort(function(Pt,Gt){return Gt.length-Pt.length})[0],Tt=void 0;if(ht&&ht.length>1){var Se=De.slice(0,ht.index),ft=De.slice(ht.index+ht.length);Tt=Se.join(":")+"::"+ft.join(":")}else Tt=De.join(":");return _&&(Tt+="%"+_),Tt}else return F}var Ft=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,He="".match(/(){0}/)[1]===void 0;function ue(F){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T={},D=w.iri!==!1?d:l;w.reference==="suffix"&&(F=(w.scheme?w.scheme+":":"")+"//"+F);var B=F.match(Ft);if(B){He?(T.scheme=B[1],T.userinfo=B[3],T.host=B[4],T.port=parseInt(B[5],10),T.path=B[6]||"",T.query=B[7],T.fragment=B[8],isNaN(T.port)&&(T.port=B[5])):(T.scheme=B[1]||void 0,T.userinfo=F.indexOf("@")!==-1?B[3]:void 0,T.host=F.indexOf("//")!==-1?B[4]:void 0,T.port=parseInt(B[5],10),T.path=B[6]||"",T.query=F.indexOf("?")!==-1?B[7]:void 0,T.fragment=F.indexOf("#")!==-1?B[8]:void 0,isNaN(T.port)&&(T.port=F.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?B[4]:void 0)),T.host&&(T.host=ve(Ie(T.host,D),D)),T.scheme===void 0&&T.userinfo===void 0&&T.host===void 0&&T.port===void 0&&!T.path&&T.query===void 0?T.reference="same-document":T.scheme===void 0?T.reference="relative":T.fragment===void 0?T.reference="absolute":T.reference="uri",w.reference&&w.reference!=="suffix"&&w.reference!==T.reference&&(T.error=T.error||"URI is not a "+w.reference+" reference.");var _=ye[(w.scheme||T.scheme||"").toLowerCase()];if(!w.unicodeSupport&&(!_||!_.unicodeSupport)){if(T.host&&(w.domainHost||_&&_.domainHost))try{T.host=te.toASCII(T.host.replace(D.PCT_ENCODED,ke).toLowerCase())}catch(ee){T.error=T.error||"Host's domain name can not be converted to ASCII via punycode: "+ee}xt(T,l)}else xt(T,D);_&&_.parse&&_.parse(T,w)}else T.error=T.error||"URI can not be parsed.";return T}function ur(F,w){var T=w.iri!==!1?d:l,D=[];return F.userinfo!==void 0&&(D.push(F.userinfo),D.push("@")),F.host!==void 0&&D.push(ve(Ie(String(F.host),T),T).replace(T.IPV6ADDRESS,function(B,_,ee){return"["+_+(ee?"%25"+ee:"")+"]"})),(typeof F.port=="number"||typeof F.port=="string")&&(D.push(":"),D.push(String(F.port))),D.length?D.join(""):void 0}var Jt=/^\.\.?\//,Br=/^\/\.(\/|$)/,Mr=/^\/\.\.(\/|$)/,Je=/^\/?(?:.|\n)*?(?=\/|$)/;function It(F){for(var w=[];F.length;)if(F.match(Jt))F=F.replace(Jt,"");else if(F.match(Br))F=F.replace(Br,"/");else if(F.match(Mr))F=F.replace(Mr,"/"),w.pop();else if(F==="."||F==="..")F="";else{var T=F.match(Je);if(T){var D=T[0];F=F.slice(D.length),w.push(D)}else throw new Error("Unexpected dot segment condition")}return w.join("")}function it(F){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=w.iri?d:l,D=[],B=ye[(w.scheme||F.scheme||"").toLowerCase()];if(B&&B.serialize&&B.serialize(F,w),F.host&&!T.IPV6ADDRESS.test(F.host)){if(w.domainHost||B&&B.domainHost)try{F.host=w.iri?te.toUnicode(F.host):te.toASCII(F.host.replace(T.PCT_ENCODED,ke).toLowerCase())}catch(le){F.error=F.error||"Host's domain name can not be converted to "+(w.iri?"Unicode":"ASCII")+" via punycode: "+le}}xt(F,T),w.reference!=="suffix"&&F.scheme&&(D.push(F.scheme),D.push(":"));var _=ur(F,w);if(_!==void 0&&(w.reference!=="suffix"&&D.push("//"),D.push(_),F.path&&F.path.charAt(0)!=="/"&&D.push("/")),F.path!==void 0){var ee=F.path;!w.absolutePath&&(!B||!B.absolutePath)&&(ee=It(ee)),_===void 0&&(ee=ee.replace(/^\/\//,"/%2F")),D.push(ee)}return F.query!==void 0&&(D.push("?"),D.push(F.query)),F.fragment!==void 0&&(D.push("#"),D.push(F.fragment)),D.join("")}function et(F,w){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments[3],B={};return D||(F=ue(it(F,T),T),w=ue(it(w,T),T)),T=T||{},!T.tolerant&&w.scheme?(B.scheme=w.scheme,B.userinfo=w.userinfo,B.host=w.host,B.port=w.port,B.path=It(w.path||""),B.query=w.query):(w.userinfo!==void 0||w.host!==void 0||w.port!==void 0?(B.userinfo=w.userinfo,B.host=w.host,B.port=w.port,B.path=It(w.path||""),B.query=w.query):(w.path?(w.path.charAt(0)==="/"?B.path=It(w.path):((F.userinfo!==void 0||F.host!==void 0||F.port!==void 0)&&!F.path?B.path="/"+w.path:F.path?B.path=F.path.slice(0,F.path.lastIndexOf("/")+1)+w.path:B.path=w.path,B.path=It(B.path)),B.query=w.query):(B.path=F.path,w.query!==void 0?B.query=w.query:B.query=F.query),B.userinfo=F.userinfo,B.host=F.host,B.port=F.port),B.scheme=F.scheme),B.fragment=w.fragment,B}function Ut(F,w,T){var D=s({scheme:"null"},T);return it(et(ue(F,D),ue(w,D),D,!0),D)}function pt(F,w){return typeof F=="string"?F=it(ue(F,w),w):a(F)==="object"&&(F=ue(it(F,w),w)),F}function oa(F,w,T){return typeof F=="string"?F=it(ue(F,T),T):a(F)==="object"&&(F=it(F,T)),typeof w=="string"?w=it(ue(w,T),T):a(w)==="object"&&(w=it(w,T)),F===w}function Pn(F,w){return F&&F.toString().replace(!w||!w.iri?l.ESCAPE:d.ESCAPE,Fe)}function Mt(F,w){return F&&F.toString().replace(!w||!w.iri?l.PCT_ENCODED:d.PCT_ENCODED,ke)}var Ei={scheme:"http",domainHost:!0,parse:function(w,T){return w.host||(w.error=w.error||"HTTP URIs must have a host."),w},serialize:function(w,T){var D=String(w.scheme).toLowerCase()==="https";return(w.port===(D?443:80)||w.port==="")&&(w.port=void 0),w.path||(w.path="/"),w}},Fo={scheme:"https",domainHost:Ei.domainHost,parse:Ei.parse,serialize:Ei.serialize};function Io(F){return typeof F.secure=="boolean"?F.secure:String(F.scheme).toLowerCase()==="wss"}var Di={scheme:"ws",domainHost:!0,parse:function(w,T){var D=w;return D.secure=Io(D),D.resourceName=(D.path||"/")+(D.query?"?"+D.query:""),D.path=void 0,D.query=void 0,D},serialize:function(w,T){if((w.port===(Io(w)?443:80)||w.port==="")&&(w.port=void 0),typeof w.secure=="boolean"&&(w.scheme=w.secure?"wss":"ws",w.secure=void 0),w.resourceName){var D=w.resourceName.split("?"),B=c(D,2),_=B[0],ee=B[1];w.path=_&&_!=="/"?_:void 0,w.query=ee,w.resourceName=void 0}return w.fragment=void 0,w}},To={scheme:"wss",domainHost:Di.domainHost,parse:Di.parse,serialize:Di.serialize},lh={},dh=!0,Po="[A-Za-z0-9\\-\\.\\_\\~"+(dh?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Ht="[0-9A-Fa-f]",ch=r(r("%[EFef]"+Ht+"%"+Ht+Ht+"%"+Ht+Ht)+"|"+r("%[89A-Fa-f]"+Ht+"%"+Ht+Ht)+"|"+r("%"+Ht+Ht)),uh="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ph="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",hh=e(ph,'[\\"\\\\]'),fh="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",mh=new RegExp(Po,"g"),ti=new RegExp(ch,"g"),yh=new RegExp(e("[^]",uh,"[\\.]",'[\\"]',hh),"g"),Ao=new RegExp(e("[^]",Po,fh),"g"),gh=Ao;function An(F){var w=ke(F);return w.match(mh)?w:F}var Oo={scheme:"mailto",parse:function(w,T){var D=w,B=D.to=D.path?D.path.split(","):[];if(D.path=void 0,D.query){for(var _=!1,ee={},le=D.query.split("&"),he=0,je=le.length;he<je;++he){var ne=le[he].split("=");switch(ne[0]){case"to":for(var Ee=ne[1].split(","),Ve=0,Pe=Ee.length;Ve<Pe;++Ve)B.push(Ee[Ve]);break;case"subject":D.subject=Mt(ne[1],T);break;case"body":D.body=Mt(ne[1],T);break;default:_=!0,ee[Mt(ne[0],T)]=Mt(ne[1],T);break}}_&&(D.headers=ee)}D.query=void 0;for(var ce=0,De=B.length;ce<De;++ce){var ge=B[ce].split("@");if(ge[0]=Mt(ge[0]),T.unicodeSupport)ge[1]=Mt(ge[1],T).toLowerCase();else try{ge[1]=te.toASCII(Mt(ge[1],T).toLowerCase())}catch($r){D.error=D.error||"Email address's domain name can not be converted to ASCII via punycode: "+$r}B[ce]=ge.join("@")}return D},serialize:function(w,T){var D=w,B=n(w.to);if(B){for(var _=0,ee=B.length;_<ee;++_){var le=String(B[_]),he=le.lastIndexOf("@"),je=le.slice(0,he).replace(ti,An).replace(ti,i).replace(yh,Fe),ne=le.slice(he+1);try{ne=T.iri?te.toUnicode(ne):te.toASCII(Mt(ne,T).toLowerCase())}catch(ce){D.error=D.error||"Email address's domain name can not be converted to "+(T.iri?"Unicode":"ASCII")+" via punycode: "+ce}B[_]=je+"@"+ne}D.path=B.join(",")}var Ee=w.headers=w.headers||{};w.subject&&(Ee.subject=w.subject),w.body&&(Ee.body=w.body);var Ve=[];for(var Pe in Ee)Ee[Pe]!==lh[Pe]&&Ve.push(Pe.replace(ti,An).replace(ti,i).replace(Ao,Fe)+"="+Ee[Pe].replace(ti,An).replace(ti,i).replace(gh,Fe));return Ve.length&&(D.query=Ve.join("&")),D}},bh=/^([^\:]+)\:(.*)/,Lo={scheme:"urn",parse:function(w,T){var D=w.path&&w.path.match(bh),B=w;if(D){var _=T.scheme||B.scheme||"urn",ee=D[1].toLowerCase(),le=D[2],he=_+":"+(T.nid||ee),je=ye[he];B.nid=ee,B.nss=le,B.path=void 0,je&&(B=je.parse(B,T))}else B.error=B.error||"URN can not be parsed.";return B},serialize:function(w,T){var D=T.scheme||w.scheme||"urn",B=w.nid,_=D+":"+(T.nid||B),ee=ye[_];ee&&(w=ee.serialize(w,T));var le=w,he=w.nss;return le.path=(B||T.nid)+":"+he,le}},vh=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Eo={scheme:"urn:uuid",parse:function(w,T){var D=w;return D.uuid=D.nss,D.nss=void 0,!T.tolerant&&(!D.uuid||!D.uuid.match(vh))&&(D.error=D.error||"UUID is not valid."),D},serialize:function(w,T){var D=w;return D.nss=(w.uuid||"").toLowerCase(),D}};ye[Ei.scheme]=Ei,ye[Fo.scheme]=Fo,ye[Di.scheme]=Di,ye[To.scheme]=To,ye[Oo.scheme]=Oo,ye[Lo.scheme]=Lo,ye[Eo.scheme]=Eo,t.SCHEMES=ye,t.pctEncChar=Fe,t.pctDecChars=ke,t.parse=ue,t.removeDotSegments=It,t.serialize=it,t.resolveComponents=et,t.resolve=Ut,t.normalize=pt,t.equal=oa,t.escapeComponent=Pn,t.unescapeComponent=Mt,Object.defineProperty(t,"__esModule",{value:!0})}))});var Ca=J((JC,rl)=>{"use strict";rl.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 al=J((KC,il)=>{"use strict";il.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 Wr=J((YC,ol)=>{"use strict";ol.exports={copy:Vh,checkDataType:qn,checkDataTypes:Wh,coerceToTypes:_h,toHash:kn,getProperty:jn,escapeQuotes:Vn,equal:Ca(),ucs2length:al(),varOccurences:Hh,varReplace:Gh,schemaHasRules:Qh,schemaHasRulesExcept:Zh,schemaUnknownRules:Jh,toQuotedString:Rn,getPathExpr:Kh,getPath:Yh,getData:tf,unescapeFragment:rf,unescapeJsonPointer:_n,escapeFragment:af,escapeJsonPointer:Wn};function Vh(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function qn(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 Wh(t,e,r){switch(t.length){case 1:return qn(t[0],e,r,!0);default:var a="",i=kn(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?" && ":"")+qn(n,e,r,!0);return a}}var nl=kn(["string","number","integer","boolean","null"]);function _h(t,e){if(Array.isArray(e)){for(var r=[],a=0;a<e.length;a++){var i=e[a];(nl[i]||t==="array"&&i==="array")&&(r[r.length]=i)}if(r.length)return r}else{if(nl[e])return[e];if(t==="array"&&e==="array")return["array"]}}function kn(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var zh=/^[a-z$_][a-z$_0-9]*$/i,Uh=/'|\\/g;function jn(t){return typeof t=="number"?"["+t+"]":zh.test(t)?"."+t:"['"+Vn(t)+"']"}function Vn(t){return t.replace(Uh,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Hh(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function Gh(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function Qh(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function Zh(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var a in t)if(a!=r&&e[a])return!0}function Jh(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function Rn(t){return"'"+Vn(t)+"'"}function Kh(t,e,r,a){var i=r?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return sl(t,i)}function Yh(t,e,r){var a=Rn(r?"/"+Wn(e):jn(e));return sl(t,a)}var Xh=/^\/(?:[^~]|~0|~1)*$/,ef=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function tf(t,e,r){var a,i,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!Xh.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,n="rootData"}else{if(s=t.match(ef),!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+=jn(_n(c)),o+=" && "+n)}return o}function sl(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function rf(t){return _n(decodeURIComponent(t))}function af(t){return encodeURIComponent(Wn(t))}function Wn(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function _n(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var zn=J((XC,ll)=>{"use strict";var nf=Wr();ll.exports=sf;function sf(t){nf.copy(t,this)}});var cl=J((ex,dl)=>{"use strict";var fr=dl.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(){};xa(e,a,i,t,"",t)};fr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};fr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};fr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};fr.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 xa(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 fr.arrayKeywords)for(var h=0;h<u.length;h++)xa(t,e,r,u[h],i+"/"+c+"/"+h,n,i,c,a,h)}else if(c in fr.propsKeywords){if(u&&typeof u=="object")for(var p in u)xa(t,e,r,u[p],i+"/"+c+"/"+of(p),n,i,c,a,p)}else(c in fr.keywords||t.allKeys&&!(c in fr.skipKeywords))&&xa(t,e,r,u,i+"/"+c,n,i,c,a)}r(a,i,n,s,o,l,d)}}function of(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Oa=J((tx,fl)=>{"use strict";var ki=tl(),ul=Ca(),Pa=Wr(),Fa=zn(),lf=cl();fl.exports=yr;yr.normalizeId=mr;yr.fullPath=Ia;yr.url=Ta;yr.ids=hf;yr.inlineRef=Un;yr.schema=Aa;function yr(t,e,r){var a=this._refs[r];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return yr.call(this,t,e,a);if(a=a||this._schemas[r],a instanceof Fa)return Un(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var i=Aa.call(this,e,r),n,s,o;return i&&(n=i.schema,e=i.root,o=i.baseId),n instanceof Fa?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=Un(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function Aa(t,e){var r=ki.parse(e),a=hl(r),i=Ia(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==i){var n=mr(a),s=this._refs[n];if(typeof s=="string")return df.call(this,t,s,r);if(s instanceof Fa)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof Fa){if(s.validate||this._compile(s),n==mr(e))return{schema:s,root:t,baseId:i};t=s}else return;if(!t.schema)return;i=Ia(this._getId(t.schema))}return pl.call(this,r,i,t.schema,t)}function df(t,e,r){var a=Aa.call(this,t,e);if(a){var i=a.schema,n=a.baseId;t=a.root;var s=this._getId(i);return s&&(n=Ta(n,s)),pl.call(this,r,n,i,t)}}var cf=Pa.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function pl(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=Pa.unescapeFragment(s),r=r[s],r===void 0)break;var o;if(!cf[s]&&(o=this._getId(r),o&&(e=Ta(e,o)),r.$ref)){var l=Ta(e,r.$ref),d=Aa.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 uf=Pa.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Un(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Hn(t);if(e)return Gn(t)<=e}function Hn(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!Hn(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!Hn(e)))return!1;return!0}function Gn(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+=Gn(r)),e==1/0)return 1/0}else for(var i in t){if(i=="$ref")return 1/0;if(uf[i])e++;else if(r=t[i],typeof r=="object"&&(e+=Gn(r)+1),e==1/0)return 1/0}return e}function Ia(t,e){e!==!1&&(t=mr(t));var r=ki.parse(t);return hl(r)}function hl(t){return ki.serialize(t).split("#")[0]+"#"}var pf=/#\/?$/;function mr(t){return t?t.replace(pf,""):""}function Ta(t,e){return e=mr(e),ki.resolve(t,e)}function hf(t){var e=mr(this._getId(t)),r={"":e},a={"":Ia(e,!1)},i={},n=this;return lf(t,{allKeys:!0},function(s,o,l,d,c,u,h){if(o!==""){var p=n._getId(s),f=r[d],m=a[d]+"/"+c;if(h!==void 0&&(m+="/"+(typeof h=="number"?h:Pa.escapeFragment(h))),typeof p=="string"){p=f=mr(f?ki.resolve(f,p):p);var y=n._refs[p];if(typeof y=="string"&&(y=n._refs[y]),y&&y.schema){if(!ul(s,y.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=mr(m))if(p[0]=="#"){if(i[p]&&!ul(s,i[p]))throw new Error('id "'+p+'" resolves to more than one schema');i[p]=s}else n._refs[p]=m}r[o]=f,a[o]=m}}),i}});var La=J((rx,yl)=>{"use strict";var Qn=Oa();yl.exports={Validation:ml(ff),MissingRef:ml(Zn)};function ff(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}Zn.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function Zn(t,e,r){this.message=r||Zn.message(t,e),this.missingRef=Qn.url(t,e),this.missingSchema=Qn.normalizeId(Qn.fullPath(this.missingRef))}function ml(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Jn=J((ix,gl)=>{"use strict";gl.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],h=n(s[u]);h&&(l&&(l+=","),l+=JSON.stringify(u)+":"+h)}return i.splice(d,1),"{"+l+"}"}})(t)}});var Kn=J((ax,bl)=>{"use strict";bl.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,h=e.schema[r],p=e.schemaPath+e.util.getProperty(r),f=e.errSchemaPath+"/"+r,I=!e.opts.allErrors,L,m="data"+(u||""),x="valid"+c;if(e.schema===!1){e.isTop?I=!0:i+=" var "+x+" = false; ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&I?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+x+" = true; ";return e.isTop&&(i+=" }; return validate; "),i}if(e.isTop){var v=e.isTop,c=e.level=0,u=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var S="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var c=e.level,u=e.dataLevel,m="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 x="valid"+c,I=!e.opts.allErrors,O="",q="",L,A=e.schema.type,M=Array.isArray(A);if(A&&e.opts.nullable&&e.schema.nullable===!0&&(M?A.indexOf("null")==-1&&(A=A.concat("null")):A!="null"&&(A=[A,"null"],M=!0)),M&&A.length==1&&(A=A[0],M=!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")),A){if(e.opts.coerceTypes)var N=e.util.coerceToTypes(e.opts.coerceTypes,A);var R=e.RULES.types[A];if(N||M||R===!0||R&&!Je(R)){var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",p=e.schemaPath+".type",f=e.errSchemaPath+"/type",$=M?"checkDataTypes":"checkDataType";if(i+=" if ("+e.util[$](A,m,e.opts.strictNumbers,!0)+") { ",N){var E="dataType"+c,k="coerced"+c;i+=" var "+E+" = typeof "+m+"; var "+k+" = undefined; ",e.opts.coerceTypes=="array"&&(i+=" if ("+E+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+E+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+k+" = "+m+"; } "),i+=" if ("+k+" !== undefined) ; ";var z=N;if(z)for(var Z,W=-1,G=z.length-1;W<G;)Z=z[W+=1],Z=="string"?i+=" else if ("+E+" == 'number' || "+E+" == 'boolean') "+k+" = '' + "+m+"; else if ("+m+" === null) "+k+" = ''; ":Z=="number"||Z=="integer"?(i+=" else if ("+E+" == 'boolean' || "+m+" === null || ("+E+" == 'string' && "+m+" && "+m+" == +"+m+" ",Z=="integer"&&(i+=" && !("+m+" % 1)"),i+=")) "+k+" = +"+m+"; "):Z=="boolean"?i+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+k+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+k+" = true; ":Z=="null"?i+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+k+" = null; ":e.opts.coerceTypes=="array"&&Z=="array"&&(i+=" else if ("+E+" == 'string' || "+E+" == 'number' || "+E+" == 'boolean' || "+m+" == null) "+k+" = ["+m+"]; ");i+=" else { ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",M?i+=""+A.join(","):i+=""+A,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",M?i+=""+A.join(","):i+=""+A,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&I?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+k+" !== undefined) { ";var U=u?"data"+(u-1||""):"parentData",ie=u?e.dataPathArr[u]:"parentDataProperty";i+=" "+m+" = "+k+"; ",u||(i+="if ("+U+" !== undefined)"),i+=" "+U+"["+ie+"] = "+k+"; } "}else{var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",M?i+=""+A.join(","):i+=""+A,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",M?i+=""+A.join(","):i+=""+A,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&I?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(e.schema.$ref&&!s)i+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",I&&(i+=" } if (errors === ",v?i+="0":i+="errs_"+c,i+=") { ",q+="}");else{var Re=e.RULES;if(Re){for(var R,_e=-1,te=Re.length-1;_e<te;)if(R=Re[_e+=1],Je(R)){if(R.type&&(i+=" if ("+e.util.checkDataType(R.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(R.type=="object"&&e.schema.properties){var h=e.schema.properties,ye=Object.keys(h),Fe=ye;if(Fe)for(var ke,xt=-1,rt=Fe.length-1;xt<rt;){ke=Fe[xt+=1];var Ie=h[ke];if(Ie.default!==void 0){var ve=m+e.util.getProperty(ke);if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+ve;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+ve+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+ve+" === null || "+ve+" === '' "),i+=" ) "+ve+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Ie.default)+" ":i+=" "+JSON.stringify(Ie.default)+" ",i+="; "}}}else if(R.type=="array"&&Array.isArray(e.schema.items)){var Ft=e.schema.items;if(Ft){for(var Ie,W=-1,He=Ft.length-1;W<He;)if(Ie=Ft[W+=1],Ie.default!==void 0){var ve=m+"["+W+"]";if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+ve;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else i+=" if ("+ve+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+ve+" === null || "+ve+" === '' "),i+=" ) "+ve+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Ie.default)+" ":i+=" "+JSON.stringify(Ie.default)+" ",i+="; "}}}}var ue=R.rules;if(ue){for(var ur,Jt=-1,Br=ue.length-1;Jt<Br;)if(ur=ue[Jt+=1],It(ur)){var Mr=ur.code(e,ur.keyword,R.type);Mr&&(i+=" "+Mr+" ",I&&(O+="}"))}}if(I&&(i+=" "+O+" ",O=""),R.type&&(i+=" } ",A&&A===R.type&&!N)){i+=" else { ";var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",M?i+=""+A.join(","):i+=""+A,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",M?i+=""+A.join(","):i+=""+A,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&I?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+=" } "}I&&(i+=" if (errors === ",v?i+="0":i+="errs_"+c,i+=") { ",q+="}")}}}I&&(i+=" "+q+" "),v?(n?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+x+" = errors === errs_"+c+";";function Je(et){for(var Ut=et.rules,pt=0;pt<Ut.length;pt++)if(It(Ut[pt]))return!0}function It(et){return e.schema[et.keyword]!==void 0||et.implements&&it(et)}function it(et){for(var Ut=et.implements,pt=0;pt<Ut.length;pt++)if(e.schema[Ut[pt]]!==void 0)return!0}return i}});var xl=J((nx,Cl)=>{"use strict";var Ea=Oa(),Na=Wr(),Sl=La(),mf=Jn(),vl=Kn(),yf=Na.ucs2length,gf=Ca(),bf=Sl.Validation;Cl.exports=Yn;function Yn(t,e,r,a){var i=this,n=this._opts,s=[void 0],o={},l=[],d={},c=[],u={},h=[];e=e||{schema:t,refVal:s,refs:o};var p=vf.call(this,t,e,a),f=this._compilations[p.index];if(p.compiling)return f.callValidate=S;var m=this._formats,y=this.RULES;try{var b=x(t,e,r,a);f.validate=b;var v=f.callValidate;return v&&(v.schema=b.schema,v.errors=null,v.refs=b.refs,v.refVal=b.refVal,v.root=b.root,v.$async=b.$async,n.sourceCode&&(v.source=b.source)),b}finally{Sf.call(this,t,e,a)}function S(){var $=f.validate,E=$.apply(this,arguments);return S.errors=$.errors,E}function x($,E,k,z){var Z=!E||E&&E.schema==$;if(E.schema!=e.schema)return Yn.call(i,$,E,k,z);var W=$.$async===!0,G=vl({isTop:!0,schema:$,isRoot:Z,baseId:z,root:E,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Sl.MissingRef,RULES:y,validate:vl,util:Na,resolve:Ea,resolveRef:I,usePattern:M,useDefault:N,useCustomRule:R,opts:n,formats:m,logger:i.logger,self:i});G=Da(s,xf)+Da(l,wf)+Da(c,Cf)+Da(h,Ff)+G,n.processCode&&(G=n.processCode(G,$));var U;try{var ie=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",G);U=ie(i,y,m,e,s,c,h,gf,yf,bf),s[0]=U}catch(Re){throw i.logger.error("Error compiling schema, function code:",G),Re}return U.schema=$,U.errors=null,U.refs=o,U.refVal=s,U.root=Z?U:E,W&&(U.$async=!0),n.sourceCode===!0&&(U.source={code:G,patterns:l,defaults:c}),U}function I($,E,k){E=Ea.url($,E);var z=o[E],Z,W;if(z!==void 0)return Z=s[z],W="refVal["+z+"]",A(Z,W);if(!k&&e.refs){var G=e.refs[E];if(G!==void 0)return Z=e.refVal[G],W=O(E,Z),A(Z,W)}W=O(E);var U=Ea.call(i,x,e,E);if(U===void 0){var ie=r&&r[E];ie&&(U=Ea.inlineRef(ie,n.inlineRefs)?ie:Yn.call(i,ie,e,r,$))}if(U===void 0)q(E);else return L(E,U),A(U,W)}function O($,E){var k=s.length;return s[k]=E,o[$]=k,"refVal"+k}function q($){delete o[$]}function L($,E){var k=o[$];s[k]=E}function A($,E){return typeof $=="object"||typeof $=="boolean"?{code:E,schema:$,inline:!0}:{code:E,$async:$&&!!$.$async}}function M($){var E=d[$];return E===void 0&&(E=d[$]=l.length,l[E]=$),"pattern"+E}function N($){switch(typeof $){case"boolean":case"number":return""+$;case"string":return Na.toQuotedString($);case"object":if($===null)return"null";var E=mf($),k=u[E];return k===void 0&&(k=u[E]=c.length,c[k]=$),"default"+k}}function R($,E,k,z){if(i._opts.validateSchema!==!1){var Z=$.definition.dependencies;if(Z&&!Z.every(function(Fe){return Object.prototype.hasOwnProperty.call(k,Fe)}))throw new Error("parent schema must have all required keywords: "+Z.join(","));var W=$.definition.validateSchema;if(W){var G=W(E);if(!G){var U="keyword schema is invalid: "+i.errorsText(W.errors);if(i._opts.validateSchema=="log")i.logger.error(U);else throw new Error(U)}}}var ie=$.definition.compile,Re=$.definition.inline,_e=$.definition.macro,te;if(ie)te=ie.call(i,E,k,z);else if(_e)te=_e.call(i,E,k,z),n.validateSchema!==!1&&i.validateSchema(te,!0);else if(Re)te=Re.call(i,z,$.keyword,E,k);else if(te=$.definition.validate,!te)return;if(te===void 0)throw new Error('custom keyword "'+$.keyword+'"failed to compile');var ye=h.length;return h[ye]=te,{code:"customRule"+ye,validate:te}}}function vf(t,e,r){var a=wl.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 Sf(t,e,r){var a=wl.call(this,t,e,r);a>=0&&this._compilations.splice(a,1)}function wl(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 wf(t,e){return"var pattern"+t+" = new RegExp("+Na.toQuotedString(e[t])+");"}function Cf(t){return"var default"+t+" = defaults["+t+"];"}function xf(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function Ff(t){return"var customRule"+t+" = customRules["+t+"];"}function Da(t,e){if(!t.length)return"";for(var r="",a=0;a<t.length;a++)r+=e(a,t);return r}});var Il=J((sx,Fl)=>{"use strict";var Ba=Fl.exports=function(){this._cache={}};Ba.prototype.put=function(e,r){this._cache[e]=r};Ba.prototype.get=function(e){return this._cache[e]};Ba.prototype.del=function(e){delete this._cache[e]};Ba.prototype.clear=function(){this._cache={}}});var ql=J((ox,$l)=>{"use strict";var If=Wr(),Tf=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Pf=[0,31,28,31,30,31,30,31,31,30,31,30,31],Af=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Tl=/^(?=.{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,Of=/^(?:[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,Lf=/^(?:[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,Pl=/^(?:(?:[^\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,Al=/^(?:(?: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,Ol=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Ll=/^(?:\/(?:[^~/]|~0|~1)*)*$/,El=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Dl=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;$l.exports=Ma;function Ma(t){return t=t=="full"?"full":"fast",If.copy(Ma[t])}Ma.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":Pl,url:Al,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:Tl,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:Ml,uuid:Ol,"json-pointer":Ll,"json-pointer-uri-fragment":El,"relative-json-pointer":Dl};Ma.full={date:Nl,time:Bl,"date-time":Nf,uri:Mf,"uri-reference":Lf,"uri-template":Pl,url:Al,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:Tl,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:Ml,uuid:Ol,"json-pointer":Ll,"json-pointer-uri-fragment":El,"relative-json-pointer":Dl};function Ef(t){return t%4===0&&(t%100!==0||t%400===0)}function Nl(t){var e=t.match(Tf);if(!e)return!1;var r=+e[1],a=+e[2],i=+e[3];return a>=1&&a<=12&&i>=1&&i<=(a==2&&Ef(r)?29:Pf[a])}function Bl(t,e){var r=t.match(Af);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 Df=/t|\s/i;function Nf(t){var e=t.split(Df);return e.length==2&&Nl(e[0])&&Bl(e[1],!0)}var Bf=/\/|:/;function Mf(t){return Bf.test(t)&&Of.test(t)}var $f=/[^\\]\\Z/;function Ml(t){if($f.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var kl=J((lx,Rl)=>{"use strict";Rl.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,h,p;if(o=="#"||o=="#/")e.isRoot?(h=e.async,p="validate"):(h=e.root.schema.$async===!0,p="root.refVal[0]");else{var f=e.resolveRef(e.baseId,o,e.isRoot);if(f===void 0){var m=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(m);var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var b=i;i=y.pop(),!e.compositeRule&&d?e.async?i+=" throw new ValidationError(["+b+"]); ":i+=" validate.errors = ["+b+"]; return false; ":i+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(i+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),d&&(i+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,m)}else if(f.inline){var v=e.util.copy(e);v.level++;var S="valid"+v.level;v.schema=f.schema,v.schemaPath="",v.errSchemaPath=o;var x=e.validate(v).replace(/validate\.schema/g,f.code);i+=" "+x+" ",d&&(i+=" if ("+S+") { ")}else h=f.$async===!0||e.async&&f.$async!==!1,p=f.code}if(p){var y=y||[];y.push(i),i="",e.opts.passContext?i+=" "+p+".call(this, ":i+=" "+p+"( ",i+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",O=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+I+" , "+O+", rootData) ";var q=i;if(i=y.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(i+=" var "+u+"; "),i+=" try { await "+q+"; ",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 (!"+q+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",d&&(i+=" else { ")}return i}});var Vl=J((dx,jl)=>{"use strict";jl.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,h=d.baseId,p=!0,f=n;if(f)for(var m,y=-1,b=f.length-1;y<b;)m=f[y+=1],(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(p=!1,d.schema=m,d.schemaPath=s+"["+y+"]",d.errSchemaPath=o+"/"+y,i+=" "+e.validate(d)+" ",d.baseId=h,l&&(i+=" if ("+u+") { ",c+="}"));return l&&(p?i+=" if (true) { ":i+=" "+c.slice(0,-1)+" "),i}});var _l=J((cx,Wl)=>{"use strict";Wl.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||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b=o.every(function(L){return e.opts.strictKeywords?typeof L=="object"&&Object.keys(L).length>0||L===!1:e.util.schemaHasRules(L,e.RULES.all)});if(b){var v=f.baseId;i+=" var "+p+" = errors; var "+h+" = false; ";var S=e.compositeRule;e.compositeRule=f.compositeRule=!0;var x=o;if(x)for(var I,O=-1,q=x.length-1;O<q;)I=x[O+=1],f.schema=I,f.schemaPath=l+"["+O+"]",f.errSchemaPath=d+"/"+O,i+=" "+e.validate(f)+" ",f.baseId=v,i+=" "+h+" = "+h+" || "+y+"; if (!"+h+") { ",m+="}";e.compositeRule=f.compositeRule=S,i+=" "+m+" if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+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 Ul=J((ux,zl)=>{"use strict";zl.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 Gl=J((px,Hl)=>{"use strict";Hl.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||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o,p||(i+=" var schema"+n+" = validate.schema"+l+";"),i+="var "+h+" = equal("+u+", schema"+n+"); if (!"+h+") { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var y=i;return i=m.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 Zl=J((hx,Ql)=>{"use strict";Ql.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b="i"+n,v=f.dataLevel=e.dataLevel+1,S="data"+v,x=e.baseId,I=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(i+="var "+p+" = errors;var "+h+";",I){var O=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" var "+y+" = false; for (var "+b+" = 0; "+b+" < "+u+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var q=u+"["+b+"]";f.dataPathArr[v]=b;var L=e.validate(f);f.baseId=x,e.util.varOccurences(L,S)<2?i+=" "+e.util.varReplace(L,S,q)+" ":i+=" var "+S+" = "+q+"; "+L+" ",i+=" if ("+y+") break; } ",e.compositeRule=f.compositeRule=O,i+=" "+m+" if (!"+y+") {"}else i+=" if ("+u+".length == 0) {";var A=A||[];A.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 M=i;return i=A.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+=" } else { ",I&&(i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(i+=" } "),i}});var Kl=J((fx,Jl)=>{"use strict";Jl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level,y={},b={},v=e.opts.ownProperties;for(O in o)if(O!="__proto__"){var S=o[O],x=Array.isArray(S)?b:y;x[O]=S}i+="var "+h+" = errors;";var I=e.errorPath;i+="var missing"+n+";";for(var O in b)if(x=b[O],x.length){if(i+=" if ( "+u+e.util.getProperty(O)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(O)+"') "),c){i+=" && ( ";var q=x;if(q)for(var L,A=-1,M=q.length-1;A<M;){L=q[A+=1],A&&(i+=" || ");var N=e.util.getProperty(L),R=u+N;i+=" ( ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(L)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?L:N)+") ) "}i+=")) { ";var $="missing"+n,E="' + "+$+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(I,$,!0):I+" + "+$);var k=k||[];k.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(O)+"', missingProperty: '"+E+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(O)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var z=i;i=k.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+z+"]); ":i+=" validate.errors = ["+z+"]; return false; ":i+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var Z=x;if(Z)for(var L,W=-1,G=Z.length-1;W<G;){L=Z[W+=1];var N=e.util.getProperty(L),E=e.util.escapeQuotes(L),R=u+N;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(I,L,e.opts.jsonPointers)),i+=" if ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(L)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(O)+"', missingProperty: '"+E+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(O)+" 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&&(f+="}",i+=" else { ")}e.errorPath=I;var U=p.baseId;for(var O in y){var S=y[O];(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))&&(i+=" "+m+" = true; if ( "+u+e.util.getProperty(O)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(O)+"') "),i+=") { ",p.schema=S,p.schemaPath=l+e.util.getProperty(O),p.errSchemaPath=d+"/"+e.util.escapeFragment(O),i+=" "+e.validate(p)+" ",p.baseId=U,i+=" } ",c&&(i+=" if ("+m+") { ",f+="}"))}return c&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var Xl=J((mx,Yl)=>{"use strict";Yl.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o;var m="i"+n,y="schema"+n;p||(i+=" var "+y+" = validate.schema"+l+";"),i+="var "+h+";",p&&(i+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),i+=""+h+" = false;for (var "+m+"=0; "+m+"<"+y+".length; "+m+"++) if (equal("+u+", "+y+"["+m+"])) { "+h+" = true; break; }",p&&(i+=" } "),i+=" if (!"+h+") { ";var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var v=i;return i=b.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 td=J((yx,ed)=>{"use strict";ed.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||"");if(e.opts.format===!1)return c&&(i+=" if (true) { "),i;var h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=e.opts.unknownFormats,m=Array.isArray(f);if(h){var y="format"+n,b="isObject"+n,v="formatType"+n;i+=" var "+y+" = formats["+p+"]; var "+b+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+v+" = "+b+" && "+y+".type || 'string'; if ("+b+") { ",e.async&&(i+=" var async"+n+" = "+y+".async; "),i+=" "+y+" = "+y+".validate; } if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" (",f!="ignore"&&(i+=" ("+p+" && !"+y+" ",m&&(i+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),i+=") || "),i+=" ("+y+" && "+v+" == '"+a+"' && !(typeof "+y+" == 'function' ? ",e.async?i+=" (async"+n+" ? await "+y+"("+u+") : "+y+"("+u+")) ":i+=" "+y+"("+u+") ",i+=" : "+y+".test("+u+"))))) {"}else{var y=e.formats[o];if(!y){if(f=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(i+=" if (true) { "),i;if(m&&f.indexOf(o)>=0)return c&&(i+=" if (true) { "),i;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var b=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,v=b&&y.type||"string";if(b){var S=y.async===!0;y=y.validate}if(v!=a)return c&&(i+=" if (true) { "),i;if(S){if(!e.async)throw new Error("async format in sync schema");var x="formats"+e.util.getProperty(o)+".validate";i+=" if (!(await "+x+"("+u+"))) { "}else{i+=" if (! ";var x="formats"+e.util.getProperty(o);b&&(x+=".validate"),typeof y=="function"?i+=" "+x+"("+u+") ":i+=" "+x+".test("+u+") ",i+=") { "}}var I=I||[];I.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",h?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match format "`,h?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var O=i;return i=I.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}});var id=J((gx,rd)=>{"use strict";rd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e);f.level++;var m="valid"+f.level,y=e.schema.then,b=e.schema.else,v=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),S=b!==void 0&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all)),x=f.baseId;if(v||S){var I;f.createErrors=!1,f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" var "+p+" = errors; var "+h+" = true; ";var O=e.compositeRule;e.compositeRule=f.compositeRule=!0,i+=" "+e.validate(f)+" ",f.baseId=x,f.createErrors=!0,i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=f.compositeRule=O,v?(i+=" if ("+m+") { ",f.schema=e.schema.then,f.schemaPath=e.schemaPath+".then",f.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(f)+" ",f.baseId=x,i+=" "+h+" = "+m+"; ",v&&S?(I="ifClause"+n,i+=" var "+I+" = 'then'; "):I="'then'",i+=" } ",S&&(i+=" else { ")):i+=" if (!"+m+") { ",S&&(f.schema=e.schema.else,f.schemaPath=e.schemaPath+".else",f.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(f)+" ",f.baseId=x,i+=" "+h+" = "+m+"; ",v&&S?(I="ifClause"+n,i+=" var "+I+" = 'else'; "):I="'else'",i+=" } "),i+=" if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+I+" } ",e.opts.messages!==!1&&(i+=` , message: 'should match "' + `+I+` + '" 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 nd=J((bx,ad)=>{"use strict";ad.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b="i"+n,v=f.dataLevel=e.dataLevel+1,S="data"+v,x=e.baseId;if(i+="var "+p+" = errors;var "+h+";",Array.isArray(o)){var I=e.schema.additionalItems;if(I===!1){i+=" "+h+" = "+u+".length <= "+o.length+"; ";var O=d;d=e.errSchemaPath+"/additionalItems",i+=" if (!"+h+") { ";var q=q||[];q.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var L=i;i=q.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+L+"]); ":i+=" validate.errors = ["+L+"]; return false; ":i+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",d=O,c&&(m+="}",i+=" else { ")}var A=o;if(A){for(var M,N=-1,R=A.length-1;N<R;)if(M=A[N+=1],e.opts.strictKeywords?typeof M=="object"&&Object.keys(M).length>0||M===!1:e.util.schemaHasRules(M,e.RULES.all)){i+=" "+y+" = true; if ("+u+".length > "+N+") { ";var $=u+"["+N+"]";f.schema=M,f.schemaPath=l+"["+N+"]",f.errSchemaPath=d+"/"+N,f.errorPath=e.util.getPathExpr(e.errorPath,N,e.opts.jsonPointers,!0),f.dataPathArr[v]=N;var E=e.validate(f);f.baseId=x,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,$)+" ":i+=" var "+S+" = "+$+"; "+E+" ",i+=" } ",c&&(i+=" if ("+y+") { ",m+="}")}}if(typeof I=="object"&&(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:e.util.schemaHasRules(I,e.RULES.all))){f.schema=I,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+y+" = true; if ("+u+".length > "+o.length+") { for (var "+b+" = "+o.length+"; "+b+" < "+u+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var $=u+"["+b+"]";f.dataPathArr[v]=b;var E=e.validate(f);f.baseId=x,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,$)+" ":i+=" var "+S+" = "+$+"; "+E+" ",c&&(i+=" if (!"+y+") break; "),i+=" } } ",c&&(i+=" if ("+y+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=l,f.errSchemaPath=d,i+=" for (var "+b+" = 0; "+b+" < "+u+".length; "+b+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var $=u+"["+b+"]";f.dataPathArr[v]=b;var E=e.validate(f);f.baseId=x,e.util.varOccurences(E,S)<2?i+=" "+e.util.varReplace(E,S,$)+" ":i+=" var "+S+" = "+$+"; "+E+" ",c&&(i+=" if (!"+y+") break; "),i+=" }"}return c&&(i+=" "+m+" if ("+p+" == errors) {"),i}});var Xn=J((vx,sd)=>{"use strict";sd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,x,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=r=="maximum",m=f?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[m],b=e.opts.$data&&y&&y.$data,v=f?"<":">",S=f?">":"<",x=void 0;if(!(h||typeof o=="number"||o===void 0))throw new Error(r+" must be number");if(!(b||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(m+" must be number or boolean");if(b){var I=e.util.getData(y.$data,s,e.dataPathArr),O="exclusive"+n,q="exclType"+n,L="exclIsNumber"+n,A="op"+n,M="' + "+A+" + '";i+=" var schemaExcl"+n+" = "+I+"; ",I="schemaExcl"+n,i+=" var "+O+"; var "+q+" = typeof "+I+"; if ("+q+" != 'boolean' && "+q+" != 'undefined' && "+q+" != 'number') { ";var x=m,N=N||[];N.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var R=i;i=N.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+q+" == 'number' ? ( ("+O+" = "+p+" === undefined || "+I+" "+v+"= "+p+") ? "+u+" "+S+"= "+I+" : "+u+" "+S+" "+p+" ) : ( ("+O+" = "+I+" === true) ? "+u+" "+S+"= "+p+" : "+u+" "+S+" "+p+" ) || "+u+" !== "+u+") { var op"+n+" = "+O+" ? '"+v+"' : '"+v+"='; ",o===void 0&&(x=m,d=e.errSchemaPath+"/"+m,p=I,h=b)}else{var L=typeof y=="number",M=v;if(L&&h){var A="'"+M+"'";i+=" if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" ( "+p+" === undefined || "+y+" "+v+"= "+p+" ? "+u+" "+S+"= "+y+" : "+u+" "+S+" "+p+" ) || "+u+" !== "+u+") { "}else{L&&o===void 0?(O=!0,x=m,d=e.errSchemaPath+"/"+m,p=y,S+="="):(L&&(p=Math[f?"min":"max"](y,o)),y===(L?p:!0)?(O=!0,x=m,d=e.errSchemaPath+"/"+m,S+="="):(O=!1,M+="="));var A="'"+M+"'";i+=" if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+u+" "+S+" "+p+" || "+u+" !== "+u+") { "}}x=x||r;var N=N||[];N.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+A+", limit: "+p+", exclusive: "+O+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+M+" ",h?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var R=i;return i=N.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}});var es=J((Sx,od)=>{"use strict";od.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,m,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxItems"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+u+".length "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxItems"?i+="more":i+="fewer",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var b=i;return i=y.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+="} ",c&&(i+=" else { "),i}});var ts=J((wx,ld)=>{"use strict";ld.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,m,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxLength"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?i+=" "+u+".length ":i+=" ucs2length("+u+") ",i+=" "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be ",r=="maxLength"?i+="longer":i+="shorter",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var b=i;return i=y.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+="} ",c&&(i+=" else { "),i}});var rs=J((Cx,dd)=>{"use strict";dd.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,m,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");var f=r=="maxProperties"?">":"<";i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" Object.keys("+u+").length "+f+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxProperties"?i+="more":i+="fewer",i+=" than ",h?i+="' + "+p+" + '":i+=""+o,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var b=i;return i=y.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+="} ",c&&(i+=" else { "),i}});var ud=J((xx,cd)=>{"use strict";cd.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||""),h=e.opts.$data&&o&&o.$data,p;if(h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(h||typeof o=="number"))throw new Error(r+" must be number");i+="var division"+n+";if (",h&&(i+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),i+=" (division"+n+" = "+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+=" ) ",h&&(i+=" ) "),i+=" ) { ";var f=f||[];f.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",h?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var m=i;return i=f.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 hd=J((Fx,pd)=>{"use strict";pd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,p=e.util.copy(e);p.level++;var f="valid"+p.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d,i+=" var "+h+" = errors; ";var m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var y;p.opts.allErrors&&(y=p.opts.allErrors,p.opts.allErrors=!1),i+=" "+e.validate(p)+" ",p.createErrors=!0,y&&(p.opts.allErrors=y),e.compositeRule=p.compositeRule=m,i+=" if ("+f+") { ";var b=b||[];b.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var v=i;i=b.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 = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(i+=" if (false) { ");return i}});var md=J((Ix,fd)=>{"use strict";fd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p="errs__"+n,f=e.util.copy(e),m="";f.level++;var y="valid"+f.level,b=f.baseId,v="prevValid"+n,S="passingSchemas"+n;i+="var "+p+" = errors , "+v+" = false , "+h+" = false , "+S+" = null; ";var x=e.compositeRule;e.compositeRule=f.compositeRule=!0;var I=o;if(I)for(var O,q=-1,L=I.length-1;q<L;)O=I[q+=1],(e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:e.util.schemaHasRules(O,e.RULES.all))?(f.schema=O,f.schemaPath=l+"["+q+"]",f.errSchemaPath=d+"/"+q,i+=" "+e.validate(f)+" ",f.baseId=b):i+=" var "+y+" = true; ",q&&(i+=" if ("+y+" && "+v+") { "+h+" = false; "+S+" = ["+S+", "+q+"]; } else { ",m+="}"),i+=" if ("+y+") { "+h+" = "+v+" = true; "+S+" = "+q+"; }";return e.compositeRule=f.compositeRule=x,i+=""+m+"if (!"+h+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+S+" } ",e.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+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 gd=J((Tx,yd)=>{"use strict";yd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,p;h?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var f=h?"(new RegExp("+p+"))":e.usePattern(o);i+="if ( ",h&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" !"+f+".test("+u+") ) { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",h?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,h?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",h?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var y=i;return i=m.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 vd=J((Px,bd)=>{"use strict";bd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level,y="key"+n,b="idx"+n,v=p.dataLevel=e.dataLevel+1,S="data"+v,x="dataProperties"+n,I=Object.keys(o||{}).filter(W),O=e.schema.patternProperties||{},q=Object.keys(O).filter(W),L=e.schema.additionalProperties,A=I.length||q.length,M=L===!1,N=typeof L=="object"&&Object.keys(L).length,R=e.opts.removeAdditional,$=M||N||R,E=e.opts.ownProperties,k=e.baseId,z=e.schema.required;if(z&&!(e.opts.$data&&z.$data)&&z.length<e.opts.loopRequired)var Z=e.util.toHash(z);function W(Mt){return Mt!=="__proto__"}if(i+="var "+h+" = errors;var "+m+" = true;",E&&(i+=" var "+x+" = undefined;"),$){if(E?i+=" "+x+" = "+x+" || Object.keys("+u+"); for (var "+b+"=0; "+b+"<"+x+".length; "+b+"++) { var "+y+" = "+x+"["+b+"]; ":i+=" for (var "+y+" in "+u+") { ",A){if(i+=" var isAdditional"+n+" = !(false ",I.length)if(I.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var G=I;if(G)for(var U,ie=-1,Re=G.length-1;ie<Re;)U=G[ie+=1],i+=" || "+y+" == "+e.util.toQuotedString(U)+" "}if(q.length){var _e=q;if(_e)for(var te,ye=-1,Fe=_e.length-1;ye<Fe;)te=_e[ye+=1],i+=" || "+e.usePattern(te)+".test("+y+") "}i+=" ); if (isAdditional"+n+") { "}if(R=="all")i+=" delete "+u+"["+y+"]; ";else{var ke=e.errorPath,xt="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),M)if(R)i+=" delete "+u+"["+y+"]; ";else{i+=" "+m+" = false; ";var rt=d;d=e.errSchemaPath+"/additionalProperties";var Ie=Ie||[];Ie.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+xt+"' } ",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 ve=i;i=Ie.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+ve+"]); ":i+=" validate.errors = ["+ve+"]; return false; ":i+=" var err = "+ve+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=rt,c&&(i+=" break; ")}else if(N)if(R=="failing"){i+=" var "+h+" = errors; ";var Ft=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=u+"["+y+"]";p.dataPathArr[v]=y;var ue=e.validate(p);p.baseId=k,e.util.varOccurences(ue,S)<2?i+=" "+e.util.varReplace(ue,S,He)+" ":i+=" var "+S+" = "+He+"; "+ue+" ",i+=" if (!"+m+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+y+"]; } ",e.compositeRule=p.compositeRule=Ft}else{p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=u+"["+y+"]";p.dataPathArr[v]=y;var ue=e.validate(p);p.baseId=k,e.util.varOccurences(ue,S)<2?i+=" "+e.util.varReplace(ue,S,He)+" ":i+=" var "+S+" = "+He+"; "+ue+" ",c&&(i+=" if (!"+m+") break; ")}e.errorPath=ke}A&&(i+=" } "),i+=" } ",c&&(i+=" if ("+m+") { ",f+="}")}var ur=e.opts.useDefaults&&!e.compositeRule;if(I.length){var Jt=I;if(Jt)for(var U,Br=-1,Mr=Jt.length-1;Br<Mr;){U=Jt[Br+=1];var Je=o[U];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){var It=e.util.getProperty(U),He=u+It,it=ur&&Je.default!==void 0;p.schema=Je,p.schemaPath=l+It,p.errSchemaPath=d+"/"+e.util.escapeFragment(U),p.errorPath=e.util.getPath(e.errorPath,U,e.opts.jsonPointers),p.dataPathArr[v]=e.util.toQuotedString(U);var ue=e.validate(p);if(p.baseId=k,e.util.varOccurences(ue,S)<2){ue=e.util.varReplace(ue,S,He);var et=He}else{var et=S;i+=" var "+S+" = "+He+"; "}if(it)i+=" "+ue+" ";else{if(Z&&Z[U]){i+=" if ( "+et+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(U)+"') "),i+=") { "+m+" = false; ";var ke=e.errorPath,rt=d,Ut=e.util.escapeQuotes(U);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(ke,U,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Ie=Ie||[];Ie.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+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 ve=i;i=Ie.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+ve+"]); ":i+=" validate.errors = ["+ve+"]; return false; ":i+=" var err = "+ve+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=rt,e.errorPath=ke,i+=" } else { "}else c?(i+=" if ( "+et+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(U)+"') "),i+=") { "+m+" = true; } else { "):(i+=" if ("+et+" !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(U)+"') "),i+=" ) { ");i+=" "+ue+" } "}}c&&(i+=" if ("+m+") { ",f+="}")}}if(q.length){var pt=q;if(pt)for(var te,oa=-1,Pn=pt.length-1;oa<Pn;){te=pt[oa+=1];var Je=O[te];if(e.opts.strictKeywords?typeof Je=="object"&&Object.keys(Je).length>0||Je===!1:e.util.schemaHasRules(Je,e.RULES.all)){p.schema=Je,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(te),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(te),E?i+=" "+x+" = "+x+" || Object.keys("+u+"); for (var "+b+"=0; "+b+"<"+x+".length; "+b+"++) { var "+y+" = "+x+"["+b+"]; ":i+=" for (var "+y+" in "+u+") { ",i+=" if ("+e.usePattern(te)+".test("+y+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=u+"["+y+"]";p.dataPathArr[v]=y;var ue=e.validate(p);p.baseId=k,e.util.varOccurences(ue,S)<2?i+=" "+e.util.varReplace(ue,S,He)+" ":i+=" var "+S+" = "+He+"; "+ue+" ",c&&(i+=" if (!"+m+") break; "),i+=" } ",c&&(i+=" else "+m+" = true; "),i+=" } ",c&&(i+=" if ("+m+") { ",f+="}")}}}return c&&(i+=" "+f+" if ("+h+" == errors) {"),i}});var wd=J((Ax,Sd)=>{"use strict";Sd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,p=e.util.copy(e),f="";p.level++;var m="valid"+p.level;if(i+="var "+h+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d;var y="key"+n,b="idx"+n,v="i"+n,S="' + "+y+" + '",x=p.dataLevel=e.dataLevel+1,I="data"+x,O="dataProperties"+n,q=e.opts.ownProperties,L=e.baseId;q&&(i+=" var "+O+" = undefined; "),q?i+=" "+O+" = "+O+" || Object.keys("+u+"); for (var "+b+"=0; "+b+"<"+O+".length; "+b+"++) { var "+y+" = "+O+"["+b+"]; ":i+=" for (var "+y+" in "+u+") { ",i+=" var startErrs"+n+" = errors; ";var A=y,M=e.compositeRule;e.compositeRule=p.compositeRule=!0;var N=e.validate(p);p.baseId=L,e.util.varOccurences(N,I)<2?i+=" "+e.util.varReplace(N,I,A)+" ":i+=" var "+I+" = "+A+"; "+N+" ",e.compositeRule=p.compositeRule=M,i+=" if (!"+m+") { for (var "+v+"=startErrs"+n+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+S+"' } ",e.opts.messages!==!1&&(i+=" , message: 'property name \\'"+S+"\\' is invalid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+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+=" "+f+" if ("+h+" == errors) {"),i}});var xd=J((Ox,Cd)=>{"use strict";Cd.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||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o;var m="schema"+n;if(!p)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],b=o;if(b)for(var v,S=-1,x=b.length-1;S<x;){v=b[S+=1];var I=e.schema.properties[v];I&&(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:e.util.schemaHasRules(I,e.RULES.all))||(y[y.length]=v)}}else var y=o;if(p||y.length){var O=e.errorPath,q=p||y.length>=e.opts.loopRequired,L=e.opts.ownProperties;if(c)if(i+=" var missing"+n+"; ",q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var A="i"+n,M="schema"+n+"["+A+"]",N="' + "+M+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(O,M,e.opts.jsonPointers)),i+=" var "+h+" = true; ",p&&(i+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),i+=" for (var "+A+" = 0; "+A+" < "+m+".length; "+A+"++) { "+h+" = "+u+"["+m+"["+A+"]] !== undefined ",L&&(i+=" && Object.prototype.hasOwnProperty.call("+u+", "+m+"["+A+"]) "),i+="; if (!"+h+") break; } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var $=i;i=R.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+$+"]); ":i+=" validate.errors = ["+$+"]; return false; ":i+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var E=y;if(E)for(var k,A=-1,z=E.length-1;A<z;){k=E[A+=1],A&&(i+=" || ");var Z=e.util.getProperty(k),W=u+Z;i+=" ( ( "+W+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(k)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:Z)+") ) "}i+=") { ";var M="missing"+n,N="' + "+M+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(O,M,!0):O+" + "+M);var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var $=i;i=R.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+$+"]); ":i+=" validate.errors = ["+$+"]; return false; ":i+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var A="i"+n,M="schema"+n+"["+A+"]",N="' + "+M+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(O,M,e.opts.jsonPointers)),p&&(i+=" if ("+m+" && !Array.isArray("+m+")) { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",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 ("+m+" !== undefined) { "),i+=" for (var "+A+" = 0; "+A+" < "+m+".length; "+A+"++) { if ("+u+"["+m+"["+A+"]] === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+m+"["+A+"]) "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",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 G=y;if(G)for(var k,U=-1,ie=G.length-1;U<ie;){k=G[U+=1];var Z=e.util.getProperty(k),N=e.util.escapeQuotes(k),W=u+Z;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(O,k,e.opts.jsonPointers)),i+=" if ( "+W+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(k)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",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=O}else c&&(i+=" if (true) {");return i}});var Id=J((Lx,Fd)=>{"use strict";Fd.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,p=e.opts.$data&&o&&o.$data,f;if(p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",f="schema"+n):f=o,(o||p)&&e.opts.uniqueItems!==!1){p&&(i+=" var "+h+"; if ("+f+" === false || "+f+" === undefined) "+h+" = true; else if (typeof "+f+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+u+".length , "+h+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,y=Array.isArray(m);if(!m||m=="object"||m=="array"||y&&(m.indexOf("object")>=0||m.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+h+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ";var b="checkDataType"+(y?"s":"");i+=" if ("+e.util[b](m,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",p?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+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 Pd=J((Ex,Td)=>{"use strict";Td.exports={$ref:kl(),allOf:Vl(),anyOf:_l(),$comment:Ul(),const:Gl(),contains:Zl(),dependencies:Kl(),enum:Xl(),format:td(),if:id(),items:nd(),maximum:Xn(),minimum:Xn(),maxItems:es(),minItems:es(),maxLength:ts(),minLength:ts(),maxProperties:rs(),minProperties:rs(),multipleOf:ud(),not:hd(),oneOf:md(),pattern:gd(),properties:vd(),propertyNames:wd(),required:xd(),uniqueItems:Id(),validate:Kn()}});var Ld=J((Dx,Od)=>{"use strict";var Ad=Pd(),is=Wr().toHash;Od.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=is(r),e.types=is(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:Ad[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:Ad.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=is(r.concat(a)),e.custom={},e}});var Nd=J((Nx,Dd)=>{"use strict";var Ed=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Dd.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<Ed.length;n++){var s=Ed[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 $d=J((Bx,Md)=>{"use strict";var qf=La().MissingRef;Md.exports=Bd;function Bd(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)?Bd.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof qf)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(h,h)),u.then(function(f){if(!p(c))return n(f).then(function(){p(c)||a.addSchema(f,c,void 0,e)})}).then(function(){return s(o)});function h(){delete a._loadingSchemas[c]}function p(f){return a._refs[f]||a._schemas[f]}}}}});var Rd=J((Mx,qd)=>{"use strict";qd.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,h="data"+(s||""),p="valid"+n,f="errs__"+n,m=e.opts.$data&&o&&o.$data,y;m?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",y="schema"+n):y=o;var b=this,v="definition"+n,S=b.definition,x="",I,O,q,L,A;if(m&&S.$data){A="keywordValidate"+n;var M=S.validateSchema;i+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+A+" = "+v+".validate;"}else{if(L=e.useCustomRule(b,o,e.schema,e),!L)return;y="validate.schema"+l,A=L.code,I=S.compile,O=S.inline,q=S.macro}var N=A+".errors",R="i"+n,$="ruleErr"+n,E=S.async;if(E&&!e.async)throw new Error("async keyword in sync schema");if(O||q||(i+=""+N+" = null;"),i+="var "+f+" = errors;var "+p+";",m&&S.$data&&(x+="}",i+=" if ("+y+" === undefined) { "+p+" = true; } else { ",M&&(x+="}",i+=" "+p+" = "+v+".validateSchema("+y+"); if ("+p+") { ")),O)S.statements?i+=" "+L.validate+" ":i+=" "+p+" = "+L.validate+"; ";else if(q){var k=e.util.copy(e),x="";k.level++;var z="valid"+k.level;k.schema=L.validate,k.schemaPath="";var Z=e.compositeRule;e.compositeRule=k.compositeRule=!0;var W=e.validate(k).replace(/validate\.schema/g,A);e.compositeRule=k.compositeRule=Z,i+=" "+W}else{var G=G||[];G.push(i),i="",i+=" "+A+".call( ",e.opts.passContext?i+="this":i+="self",I||S.schema===!1?i+=" , "+h+" ":i+=" , "+y+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var U=s?"data"+(s-1||""):"parentData",ie=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+U+" , "+ie+" , rootData ) ";var Re=i;i=G.pop(),S.errors===!1?(i+=" "+p+" = ",E&&(i+="await "),i+=""+Re+"; "):E?(N="customErrors"+n,i+=" var "+N+" = null; try { "+p+" = await "+Re+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+N+" = e.errors; else throw e; } "):i+=" "+N+" = null; "+p+" = "+Re+"; "}if(S.modifying&&(i+=" if ("+U+") "+h+" = "+U+"["+ie+"];"),i+=""+x,S.valid)c&&(i+=" if (true) { ");else{i+=" if ( ",S.valid===void 0?(i+=" !",q?i+=""+z:i+=""+p):i+=" "+!S.valid+" ",i+=") { ",u=b.keyword;var G=G||[];G.push(i),i="";var G=G||[];G.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+b.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+b.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var _e=i;i=G.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+_e+"]); ":i+=" validate.errors = ["+_e+"]; return false; ":i+=" var err = "+_e+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var te=i;i=G.pop(),O?S.errors?S.errors!="full"&&(i+=" for (var "+R+"="+f+"; "+R+"<errors; "+R+"++) { var "+$+" = vErrors["+R+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+h+"; "),i+=" } "):S.errors===!1?i+=" "+te+" ":(i+=" if ("+f+" == errors) { "+te+" } else { for (var "+R+"="+f+"; "+R+"<errors; "+R+"++) { var "+$+" = vErrors["+R+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+h+"; "),i+=" } } "):q?(i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+b.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+b.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):S.errors===!1?i+=" "+te+" ":(i+=" if (Array.isArray("+N+")) { if (vErrors === null) vErrors = "+N+"; else vErrors = vErrors.concat("+N+"); errors = vErrors.length; for (var "+R+"="+f+"; "+R+"<errors; "+R+"++) { var "+$+" = vErrors["+R+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; "+$+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+h+"; "),i+=" } } else { "+te+" } "),i+=" } ",c&&(i+=" else { ")}return i}});var as=J(($x,Rf)=>{Rf.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 Vd=J((qx,jd)=>{"use strict";var kd=as();jd.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:kd.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:kd.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 _d=J((Rx,Wd)=>{"use strict";var kf=/^[a-z_$][a-z0-9_$-]*$/i,jf=Rd(),Vf=Vd();Wd.exports={add:Wf,get:_f,remove:zf,validate:ns};function Wf(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!kf.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 h=r[u];if(h.type==l){c=h;break}}c||(c={type:l,rules:[]},r.push(c));var p={keyword:o,definition:d,custom:!0,code:jf,implements:d.implements};c.rules.push(p),r.custom[o]=p}return this}function _f(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function zf(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 ns(t,e){ns.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Vf,!0);if(r(t))return!0;if(ns.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var zd=J((kx,Uf)=>{Uf.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 ec=J((jx,Xd)=>{"use strict";var Hd=xl(),_r=Oa(),Hf=Il(),Gd=zn(),Gf=Jn(),Qf=ql(),Zf=Ld(),Qd=Nd(),Zd=Wr();Xd.exports=$e;$e.prototype.validate=Kf;$e.prototype.compile=Yf;$e.prototype.addSchema=Xf;$e.prototype.addMetaSchema=em;$e.prototype.validateSchema=tm;$e.prototype.getSchema=im;$e.prototype.removeSchema=nm;$e.prototype.addFormat=hm;$e.prototype.errorsText=pm;$e.prototype._addSchema=sm;$e.prototype._compile=om;$e.prototype.compileAsync=$d();var Ra=_d();$e.prototype.addKeyword=Ra.add;$e.prototype.getKeyword=Ra.get;$e.prototype.removeKeyword=Ra.remove;$e.prototype.validateKeyword=Ra.validate;var Jd=La();$e.ValidationError=Jd.Validation;$e.MissingRefError=Jd.MissingRef;$e.$dataMetaSchema=Qd;var qa="http://json-schema.org/draft-07/schema",Ud=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Jf=["/properties"];function $e(t){if(!(this instanceof $e))return new $e(t);t=this._opts=Zd.copy(t)||{},vm(this),this._schemas={},this._refs={},this._fragments={},this._formats=Qf(t.format),this._cache=t.cache||new Hf,this._loadingSchemas={},this._compilations=[],this.RULES=Zf(),this._getId=lm(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=Gf),this._metaOpts=bm(this),t.formats&&ym(this),t.keywords&&gm(this),fm(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),mm(this)}function Kf(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 Yf(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function Xf(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=_r.normalizeId(e||n),Yd(this,e),this._schemas[e]=this._addSchema(t,r,a,!0),this}function em(t,e,r){return this.addSchema(t,e,r,!0),this}function tm(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||rm(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 rm(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(qa)?qa:void 0,t._opts.defaultMeta}function im(t){var e=Kd(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return am(this,t)}}function am(t,e){var r=_r.schema.call(t,{schema:{}},e);if(r){var a=r.schema,i=r.root,n=r.baseId,s=Hd.call(t,a,i,void 0,n);return t._fragments[e]=new Gd({ref:e,fragment:!0,schema:a,root:i,baseId:n,validate:s}),s}}function Kd(t,e){return e=_r.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function nm(t){if(t instanceof RegExp)return $a(this,this._schemas,t),$a(this,this._refs,t),this;switch(typeof t){case"undefined":return $a(this,this._schemas),$a(this,this._refs),this._cache.clear(),this;case"string":var e=Kd(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=_r.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function $a(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 sm(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=_r.normalizeId(this._getId(t));o&&a&&Yd(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==_r.normalizeId(t.$schema))&&this.validateSchema(t,!0);var c=_r.ids.call(this,t),u=new Gd({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 om(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=Hd.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 lm(t){switch(t.schemaId){case"auto":return um;case"id":return dm;default:return cm}}function dm(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function cm(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function um(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 pm(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 hm(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function fm(t){var e;if(t._opts.$data&&(e=zd(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=as();t._opts.$data&&(r=Qd(r,Jf)),t.addMetaSchema(r,qa,!0),t._refs["http://json-schema.org/schema"]=qa}}function mm(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 ym(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function gm(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function Yd(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function bm(t){for(var e=Zd.copy(t._opts),r=0;r<Ud.length;r++)delete e[Ud[r]];return e}function vm(t){var e=t._opts.logger;if(e===!1)t.logger={log:ss,warn:ss,error:ss};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 ss(){}});function zo(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var a=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,n=new Array(i);++a<i;)n[a]=t+a*r;return n}function li(t,e){let r,a;if(e===void 0)for(let i of t)i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)));else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r===void 0?n>=n&&(r=a=n):(r>n&&(r=n),a<n&&(a=n)))}return[r,a]}var fa=class extends Map{constructor(e,r=Oh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[a,i]of e)this.set(a,i)}get(e){return super.get(Uo(this,e))}has(e){return super.has(Uo(this,e))}set(e,r){return super.set(Ph(this,e),r)}delete(e){return super.delete(Ah(this,e))}};function Uo({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):r}function Ph({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function Ah({_intern:t,_key:e},r){let a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function Oh(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Nn(t){return t}function Bn(t,e,...r){return Lh(t,Nn,e,r)}function Lh(t,e,r,a){return(function i(n,s){if(s>=a.length)return r(n);let o=new fa,l=a[s++],d=-1;for(let c of n){let u=l(c,++d,n),h=o.get(u);h?h.push(c):o.set(u,[c])}for(let[c,u]of o)o.set(c,i(u,s));return e(o)})(t,0)}function ma(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function ya(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function ga(t,e){let r=0,a=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++r,a+=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(n=+n)>=n&&(++r,a+=n)}if(r)return a/r}function ba(t,e){let r=0;if(e===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let i of t)(i=+e(i,++a,t))&&(r+=i)}return r}function Ho(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 Go(t){return function(e){return t.b+t.m*e}}function Qo(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 Zo=function(){this.totalCount=0,this.data={}};Zo.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++};Zo.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 Jo=function(){this.weights=[],this.bias=0};Jo.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};Jo.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 UC=607/128,HC=Math.log(Math.sqrt(2*Math.PI));var GC=Math.sqrt(2*Math.PI);var Eh=Math.sqrt(2*Math.PI);function Dh(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/Eh*Math.exp(-t*t/2))*1e4)/1e4}var Nh=[];for(va=0;va<=3.09;va+=.01)Nh.push(Dh(va));var va;var Yc=$o(Xo(),1);var Xc=$o(ec(),1);var or="25.0.0",st="arcgis_charts_pie_from_fields_name",jt="arcgis_charts_pie_from_fields_value",Lm="arcgis_charts_bar_line_from_fields_name",Em="arcgis_charts_bar_line_from_fields_value",rr={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},nr=class extends Error{},Cs=class extends nr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},xs=class extends nr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},Fs=class extends nr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Cr=class extends nr{},nn=class extends nr{constructor(e){super(`Invalid unit ${e}`)}},Qe=class extends nr{},Qt=class extends nr{constructor(){super("Zone is an abstract class")}},V="numeric",Vt="short",St="long",sn={year:V,month:V,day:V},eu={year:V,month:Vt,day:V},Dm={year:V,month:Vt,day:V,weekday:Vt},tu={year:V,month:St,day:V},ru={year:V,month:St,day:V,weekday:St},iu={hour:V,minute:V},au={hour:V,minute:V,second:V},nu={hour:V,minute:V,second:V,timeZoneName:Vt},su={hour:V,minute:V,second:V,timeZoneName:St},ou={hour:V,minute:V,hourCycle:"h23"},lu={hour:V,minute:V,second:V,hourCycle:"h23"},du={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:Vt},cu={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:St},uu={year:V,month:V,day:V,hour:V,minute:V},pu={year:V,month:V,day:V,hour:V,minute:V,second:V},hu={year:V,month:Vt,day:V,hour:V,minute:V},fu={year:V,month:Vt,day:V,hour:V,minute:V,second:V},Nm={year:V,month:Vt,day:V,weekday:Vt,hour:V,minute:V},mu={year:V,month:St,day:V,hour:V,minute:V,timeZoneName:Vt},yu={year:V,month:St,day:V,hour:V,minute:V,second:V,timeZoneName:Vt},gu={year:V,month:St,day:V,weekday:St,hour:V,minute:V,timeZoneName:St},bu={year:V,month:St,day:V,weekday:St,hour:V,minute:V,second:V,timeZoneName:St},Zr=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}},os=null,on=class t extends Zr{static get instance(){return os===null&&(os=new t),os}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return Ou(e,r,a)}formatOffset(e,r){return zi(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},Is=new Map;function Bm(t){let e=Is.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"}),Is.set(t,e)),e}var Mm={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function $m(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 qm(t,e){let r=t.formatToParts(e),a=[];for(let i=0;i<r.length;i++){let{type:n,value:s}=r[i],o=Mm[n];n==="era"?a[o]=s:K(o)||(a[o]=parseInt(s,10))}return a}var ls=new Map,Tr=class t extends Zr{static create(e){let r=ls.get(e);return r===void 0&&ls.set(e,r=new t(e)),r}static resetCache(){ls.clear(),Is.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 Ou(e,r,a,this.name)}formatOffset(e,r){return zi(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let a=Bm(this.name),[i,n,s,o,l,d,c]=a.formatToParts?qm(a,r):$m(a,r);o==="BC"&&(i=-Math.abs(i)+1);let u=vn({year:i,month:n,day:s,hour:l===24?0:l,minute:d,second:c,millisecond:0}),h=+r,p=h%1e3;return h-=p>=0?p:1e3+p,(u-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},ic={};function Rm(t,e={}){let r=JSON.stringify([t,e]),a=ic[r];return a||(a=new Intl.ListFormat(t,e),ic[r]=a),a}var Ts=new Map;function Ps(t,e={}){let r=JSON.stringify([t,e]),a=Ts.get(r);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),Ts.set(r,a)),a}var As=new Map;function km(t,e={}){let r=JSON.stringify([t,e]),a=As.get(r);return a===void 0&&(a=new Intl.NumberFormat(t,e),As.set(r,a)),a}var Os=new Map;function jm(t,e={}){let{base:r,...a}=e,i=JSON.stringify([t,a]),n=Os.get(i);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),Os.set(i,n)),n}var Ja=null;function Vm(){return Ja||(Ja=new Intl.DateTimeFormat().resolvedOptions().locale,Ja)}var Ls=new Map;function vu(t){let e=Ls.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Ls.set(t,e)),e}var Es=new Map;function Wm(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={...Su,...e}),Es.set(t,e)}return e}function _m(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let a,i;try{a=Ps(t).resolvedOptions(),i=t}catch{let o=t.substring(0,r);a=Ps(o).resolvedOptions(),i=o}let{numberingSystem:n,calendar:s}=a;return[i,n,s]}}function zm(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Um(t){let e=[];for(let r=1;r<=12;r++){let a=ae.utc(2009,r,1);e.push(t(a))}return e}function Hm(t){let e=[];for(let r=1;r<=7;r++){let a=ae.utc(2016,11,13+r);e.push(t(a))}return e}function ka(t,e,r,a){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):a(e)}function Gm(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||vu(t.locale).numberingSystem==="latn"}var Ds=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=km(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):io(e,3);return We(r,this.padTo)}}},Ns=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&&Tr.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=Ps(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()}},Bs=class{constructor(e,r,a){this.opts={style:"long",...a},!r&&Pu()&&(this.rtf=jm(e,a))}format(e,r){return this.rtf?this.rtf.format(e,r):fy(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},Su={firstDay:1,minimalDays:4,weekend:[6,7]},we=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,a,i,n=!1){let s=e||Oe.defaultLocale,o=s||(n?"en-US":Vm()),l=r||Oe.defaultNumberingSystem,d=a||Oe.defaultOutputCalendar,c=qs(i)||Oe.defaultWeekSettings;return new t(o,l,d,c,s)}static resetCache(){Ja=null,Ts.clear(),As.clear(),Os.clear(),Ls.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]=_m(e);this.locale=s,this.numberingSystem=r||o||null,this.outputCalendar=a||l||null,this.weekSettings=i,this.intl=zm(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=Gm(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,qs(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 ka(this,e,Du,()=>{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]=Um(s)}return this.monthsCache[n][e]})}weekdays(e,r=!1){return ka(this,e,Mu,()=>{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]=Hm(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return ka(this,void 0,()=>$u,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ae.utc(2016,11,13,9),ae.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ka(this,e,qu,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[ae.utc(-40,1,1),ae.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,r,a){let i=this.dtFormatter(e,r),n=i.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new Ds(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Ns(e,this.intl,r)}relFormatter(e={}){return new Bs(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Rm(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||vu(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Au()?Wm(this.locale):Su}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})`}},ds=null,Dt=class t extends Zr{static get utcInstance(){return ds===null&&(ds=new t(0)),ds}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(Sn(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${zi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${zi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return zi(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}},Ms=class extends Zr{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 wr(t,e){if(K(t)||t===null)return e;if(t instanceof Zr)return t;if(Xm(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?on.instance:r==="utc"||r==="gmt"?Dt.utcInstance:Dt.parseSpecifier(r)||Tr.create(t)}else return xr(t)?Dt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ms(t)}var Xs={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"},ac={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]},Qm=Xs.hanidec.replace(/[\[|\]]/g,"").split("");function Zm(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(Xs.hanidec)!==-1)e+=Qm.indexOf(t[r]);else for(let i in ac){let[n,s]=ac[i];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var $s=new Map;function Jm(){$s.clear()}function qt({numberingSystem:t},e=""){let r=t||"latn",a=$s.get(r);a===void 0&&(a=new Map,$s.set(r,a));let i=a.get(e);return i===void 0&&(i=new RegExp(`${Xs[r]}${e}`),a.set(e,i)),i}var nc=()=>Date.now(),sc="system",oc=null,lc=null,dc=null,cc=60,uc,pc=null,Oe=class{static get now(){return nc}static set now(e){nc=e}static set defaultZone(e){sc=e}static get defaultZone(){return wr(sc,on.instance)}static get defaultLocale(){return oc}static set defaultLocale(e){oc=e}static get defaultNumberingSystem(){return lc}static set defaultNumberingSystem(e){lc=e}static get defaultOutputCalendar(){return dc}static set defaultOutputCalendar(e){dc=e}static get defaultWeekSettings(){return pc}static set defaultWeekSettings(e){pc=qs(e)}static get twoDigitCutoffYear(){return cc}static set twoDigitCutoffYear(e){cc=e%100}static get throwOnInvalid(){return uc}static set throwOnInvalid(e){uc=e}static resetCaches(){we.resetCache(),Tr.resetCache(),ae.resetCache(),Jm()}},vt=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},wu=[0,31,59,90,120,151,181,212,243,273,304,334],Cu=[0,31,60,91,121,152,182,213,244,274,305,335];function Lt(t,e){return new vt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function eo(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 xu(t,e,r){return r+(ea(t)?Cu:wu)[e-1]}function Fu(t,e){let r=ea(t)?Cu:wu,a=r.findIndex(n=>n<e),i=e-r[a];return{month:a+1,day:i}}function to(t,e){return(t-e+7)%7+1}function ln(t,e=4,r=1){let{year:a,month:i,day:n}=t,s=xu(a,i,n),o=to(eo(a,i,n),r),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=Ui(d,e,r)):l>Ui(a,e,r)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...wn(t)}}function hc(t,e=4,r=1){let{weekYear:a,weekNumber:i,weekday:n}=t,s=to(eo(a,1,e),r),o=yi(a),l=i*7+n-s-7+e,d;l<1?(d=a-1,l+=yi(d)):l>o?(d=a+1,l-=yi(a)):d=a;let{month:c,day:u}=Fu(d,l);return{year:d,month:c,day:u,...wn(t)}}function cs(t){let{year:e,month:r,day:a}=t,i=xu(e,r,a);return{year:e,ordinal:i,...wn(t)}}function fc(t){let{year:e,ordinal:r}=t,{month:a,day:i}=Fu(e,r);return{year:e,month:a,day:i,...wn(t)}}function mc(t,e){if(!K(t.localWeekday)||!K(t.localWeekNumber)||!K(t.localWeekYear)){if(!K(t.weekday)||!K(t.weekNumber)||!K(t.weekYear))throw new Cr("Cannot mix locale-based week fields with ISO-based week fields");return K(t.localWeekday)||(t.weekday=t.localWeekday),K(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),K(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Km(t,e=4,r=1){let a=bn(t.weekYear),i=Et(t.weekNumber,1,Ui(t.weekYear,e,r)),n=Et(t.weekday,1,7);return a?i?n?!1:Lt("weekday",t.weekday):Lt("week",t.weekNumber):Lt("weekYear",t.weekYear)}function Ym(t){let e=bn(t.year),r=Et(t.ordinal,1,yi(t.year));return e?r?!1:Lt("ordinal",t.ordinal):Lt("year",t.year)}function Iu(t){let e=bn(t.year),r=Et(t.month,1,12),a=Et(t.day,1,dn(t.year,t.month));return e?r?a?!1:Lt("day",t.day):Lt("month",t.month):Lt("year",t.year)}function Tu(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:Lt("millisecond",i):Lt("second",a):Lt("minute",r):Lt("hour",e)}function K(t){return typeof t>"u"}function xr(t){return typeof t=="number"}function bn(t){return typeof t=="number"&&t%1===0}function Xm(t){return typeof t=="string"}function ey(t){return Object.prototype.toString.call(t)==="[object Date]"}function Pu(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Au(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function ty(t){return Array.isArray(t)?t:[t]}function yc(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 ry(t,e){return e.reduce((r,a)=>(r[a]=t[a],r),{})}function Si(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function qs(t){if(t==null)return null;if(typeof t!="object")throw new Qe("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 Qe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Et(t,e,r){return bn(t)&&t>=e&&t<=r}function iy(t,e){return t-e*Math.floor(t/e)}function We(t,e=2){let r=t<0,a;return r?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function vr(t){if(!(K(t)||t===null||t===""))return parseInt(t,10)}function zr(t){if(!(K(t)||t===null||t===""))return parseFloat(t)}function ro(t){if(!(K(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function io(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 ea(t){return t%4===0&&(t%100!==0||t%400===0)}function yi(t){return ea(t)?366:365}function dn(t,e){let r=iy(e-1,12)+1,a=t+(e-r)/12;return r===2?ea(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function vn(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 gc(t,e,r){return-to(eo(t,1,e),r)+e-1}function Ui(t,e=4,r=1){let a=gc(t,e,r),i=gc(t+1,e,r);return(yi(t)-a+i)/7}function Rs(t){return t>99?t:t>Oe.twoDigitCutoffYear?1900+t:2e3+t}function Ou(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 Sn(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 Lu(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Qe(`Invalid unit value ${t}`);return e}function cn(t,e){let r={};for(let a in t)if(Si(t,a)){let i=t[a];if(i==null)continue;r[e(a)]=Lu(i)}return r}function zi(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}${We(r,2)}:${We(a,2)}`;case"narrow":return`${i}${r}${a>0?`:${a}`:""}`;case"techie":return`${i}${We(r,2)}${We(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function wn(t){return ry(t,["hour","minute","second","millisecond"])}var ay=["January","February","March","April","May","June","July","August","September","October","November","December"],Eu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ny=["J","F","M","A","M","J","J","A","S","O","N","D"];function Du(t){switch(t){case"narrow":return[...ny];case"short":return[...Eu];case"long":return[...ay];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 Nu=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Bu=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sy=["M","T","W","T","F","S","S"];function Mu(t){switch(t){case"narrow":return[...sy];case"short":return[...Bu];case"long":return[...Nu];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var $u=["AM","PM"],oy=["Before Christ","Anno Domini"],ly=["BC","AD"],dy=["B","A"];function qu(t){switch(t){case"narrow":return[...dy];case"short":return[...ly];case"long":return[...oy];default:return null}}function cy(t){return $u[t.hour<12?0:1]}function uy(t,e){return Mu(e)[t.weekday-1]}function py(t,e){return Du(e)[t.month-1]}function hy(t,e){return qu(e)[t.year<0?0:1]}function fy(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 bc(t,e){let r="";for(let a of t)a.literal?r+=a.val:r+=e(a.val);return r}var my={D:sn,DD:eu,DDD:tu,DDDD:ru,t:iu,tt:au,ttt:nu,tttt:su,T:ou,TT:lu,TTT:du,TTTT:cu,f:uu,ff:hu,fff:mu,ffff:gu,F:pu,FF:fu,FFF:yu,FFFF:bu},bt=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 my[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 We(e,r);let i={...this.opts};return r>0&&(i.padTo=r),a&&(i.signDisplay=a),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){let a=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(p,f)=>this.loc.extract(e,p,f),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",o=()=>a?cy(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,f)=>a?py(e,p):n(f?{month:p}:{month:p,day:"numeric"},"month"),d=(p,f)=>a?uy(e,p):n(f?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{let f=t.macroTokenToFormatOpts(p);return f?this.formatWithSystemDefault(e,f):p},u=p=>a?hy(e,p):n({era:p},"era"),h=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return i?n({day:"numeric"},"day"):this.num(e.day);case"dd":return i?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?n({month:"numeric"},"month"):this.num(e.month);case"MM":return i?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?n({year:"numeric"},"year"):this.num(e.year);case"yy":return i?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return 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 bc(t.parseFormat(r),h)}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)=>h=>{let p=i(h);if(p){let f=u.isNegativeDuration&&p!==u.largestUnit?a:1,m;return this.opts.signMode==="negativeLargestOnly"&&p!==u.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(c.get(p)*f,h.length,m)}else return h},s=t.parseFormat(r),o=s.reduce((c,{literal:u,val:h})=>u?c:c.concat(h),[]),l=e.shiftTo(...o.map(i).filter(c=>c)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return bc(s,n(l,d))}},Ru=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ti(...t){let e=t.reduce((r,a)=>r+a.source,"");return RegExp(`^${e}$`)}function Pi(...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 Ai(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 ku(...t){return(e,r)=>{let a={},i;for(i=0;i<t.length;i++)a[t[i]]=vr(e[r+i]);return[a,null,r+i]}}var ju=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,yy=`(?:${ju.source}?(?:\\[(${Ru.source})\\])?)?`,ao=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Vu=RegExp(`${ao.source}${yy}`),no=RegExp(`(?:[Tt]${Vu.source})?`),gy=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,by=/(\d{4})-?W(\d\d)(?:-?(\d))?/,vy=/(\d{4})-?(\d{3})/,Sy=ku("weekYear","weekNumber","weekDay"),wy=ku("year","ordinal"),Cy=/(\d{4})-(\d\d)-(\d\d)/,Wu=RegExp(`${ao.source} ?(?:${ju.source}|(${Ru.source}))?`),xy=RegExp(`(?: ${Wu.source})?`);function gi(t,e,r){let a=t[e];return K(a)?r:vr(a)}function Fy(t,e){return[{year:gi(t,e),month:gi(t,e+1,1),day:gi(t,e+2,1)},null,e+3]}function Oi(t,e){return[{hours:gi(t,e,0),minutes:gi(t,e+1,0),seconds:gi(t,e+2,0),milliseconds:ro(t[e+3])},null,e+4]}function ta(t,e){let r=!t[e]&&!t[e+1],a=Sn(t[e+1],t[e+2]),i=r?null:Dt.instance(a);return[{},i,e+3]}function ra(t,e){let r=t[e]?Tr.create(t[e]):null;return[{},r,e+1]}var Iy=RegExp(`^T?${ao.source}$`),Ty=/^-?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 Py(t){let[e,r,a,i,n,s,o,l,d]=t,c=e[0]==="-",u=l&&l[0]==="-",h=(p,f=!1)=>p!==void 0&&(f||p&&c)?-p:p;return[{years:h(zr(r)),months:h(zr(a)),weeks:h(zr(i)),days:h(zr(n)),hours:h(zr(s)),minutes:h(zr(o)),seconds:h(zr(l),l==="-0"),milliseconds:h(ro(d),u)}]}var Ay={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function so(t,e,r,a,i,n,s){let o={year:e.length===2?Rs(vr(e)):vr(e),month:Eu.indexOf(r)+1,day:vr(a),hour:vr(i),minute:vr(n)};return s&&(o.second=vr(s)),t&&(o.weekday=t.length>3?Nu.indexOf(t)+1:Bu.indexOf(t)+1),o}var Oy=/^(?:(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 Ly(t){let[,e,r,a,i,n,s,o,l,d,c,u]=t,h=so(e,i,a,r,n,s,o),p;return l?p=Ay[l]:d?p=0:p=Sn(c,u),[h,new Dt(p)]}function Ey(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Dy=/^(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$/,Ny=/^(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$/,By=/^(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 vc(t){let[,e,r,a,i,n,s,o]=t;return[so(e,i,a,r,n,s,o),Dt.utcInstance]}function My(t){let[,e,r,a,i,n,s,o]=t;return[so(e,o,r,a,i,n,s),Dt.utcInstance]}var $y=Ti(gy,no),qy=Ti(by,no),Ry=Ti(vy,no),ky=Ti(Vu),_u=Pi(Fy,Oi,ta,ra),jy=Pi(Sy,Oi,ta,ra),Vy=Pi(wy,Oi,ta,ra),Wy=Pi(Oi,ta,ra);function _y(t){return Ai(t,[$y,_u],[qy,jy],[Ry,Vy],[ky,Wy])}function zy(t){return Ai(Ey(t),[Oy,Ly])}function Uy(t){return Ai(t,[Dy,vc],[Ny,vc],[By,My])}function Hy(t){return Ai(t,[Ty,Py])}var Gy=Pi(Oi);function Qy(t){return Ai(t,[Iy,Gy])}var Zy=Ti(Cy,xy),Jy=Ti(Wu),Ky=Pi(Oi,ta,ra);function Yy(t){return Ai(t,[Zy,_u],[Jy,Ky])}var Sc="Invalid Duration",zu={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}},Xy={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},...zu},Ot=146097/400,di=146097/4800,eg={years:{quarters:4,months:12,weeks:Ot/7,days:Ot,hours:Ot*24,minutes:Ot*24*60,seconds:Ot*24*60*60,milliseconds:Ot*24*60*60*1e3},quarters:{months:3,weeks:Ot/28,days:Ot/4,hours:Ot*24/4,minutes:Ot*24*60/4,seconds:Ot*24*60*60/4,milliseconds:Ot*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},...zu},Gr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tg=Gr.slice(0).reverse();function tr(t,e,r=!1){let a={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ze(a)}function Uu(t,e){let r=e.milliseconds??0;for(let a of tg.slice(1))e[a]&&(r+=e[a]*t[a].milliseconds);return r}function wc(t,e){let r=Uu(t,e)<0?-1:1;Gr.reduceRight((a,i)=>{if(K(e[i]))return a;if(a){let n=e[a]*r,s=t[i][a],o=Math.floor(n/s);e[i]+=o*r,e[a]-=o*s*r}return i},null),Gr.reduce((a,i)=>{if(K(e[i]))return a;if(a){let n=e[a]%1;e[a]-=n,e[i]+=n*t[a][i]}return i},null)}function Cc(t){let e={};for(let[r,a]of Object.entries(t))a!==0&&(e[r]=a);return e}var Ze=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,a=r?eg:Xy;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||we.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Qe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:cn(e,t.normalizeUnit),loc:we.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(xr(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Qe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[a]=Hy(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]=Qy(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Duration is invalid");let a=e instanceof vt?e:new vt(e,r);if(Oe.throwOnInvalid)throw new Fs(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 nn(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?bt.create(this.loc,a).formatDurationFromString(this,e):Sc}toHuman(e={}){if(!this.isValid)return Sc;let r=e.showZeros!==!1,a=Gr.map(i=>{let n=this.values[i];return K(n)||n===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(n)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=io(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ae.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Uu(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 Gr)(Si(r.values,i)||Si(this.values,i))&&(a[i]=r.get(i)+this.get(i));return tr(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]=Lu(e(this.values[a],a));return tr(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...cn(e,t.normalizeUnit)};return tr(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:a,matrix:i}={}){let n={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:a};return tr(this,n)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return wc(this.matrix,e),tr(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=Cc(this.normalize().shiftToAll().toObject());return tr(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 Gr)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;xr(i[s])&&(o+=i[s]);let l=Math.trunc(o);r[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else xr(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 wc(this.matrix,r),tr(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 tr(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=Cc(this.values);return tr(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 Gr)if(!r(this.values[a],e.values[a]))return!1;return!0}},ci="Invalid Interval";function rg(t,e){return!t||!t.isValid?bi.invalid("missing or invalid start"):!e||!e.isValid?bi.invalid("missing or invalid end"):e<t?bi.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 bi=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Interval is invalid");let a=e instanceof vt?e:new vt(e,r);if(Oe.throwOnInvalid)throw new xs(a);return new t({invalid:a})}static fromDateTimes(e,r){let a=ji(e),i=ji(r);return rg(a,i)??new t({start:a,end:i})}static after(e,r){let a=Ze.fromDurationLike(r),i=ji(e);return t.fromDateTimes(i,i.plus(a))}static before(e,r){let a=Ze.fromDurationLike(r),i=ji(e);return t.fromDateTimes(i.minus(a),i)}static fromISO(e,r){let[a,i]=(e||"").split("/",2);if(a&&i){let n,s;try{n=ae.fromISO(a,r),s=n.isValid}catch{s=!1}let o,l;try{o=ae.fromISO(i,r),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Ze.fromISO(i,r);if(d.isValid)return t.after(n,d)}else if(l){let d=Ze.fromISO(a,r);if(d.isValid)return t.before(o,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let a=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:a.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(a,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(ji).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:i}=this,n=0;for(;i<this.e;){let s=r[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(i,o)),i=o,n+=1}return a}splitBy(e){let r=Ze.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:a}=this,i=1,n,s=[];for(;a<this.e;){let o=this.start.plus(r.mapUnits(l=>l*i));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return r>=a?null:t.fromDateTimes(r,a)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,a)}static merge(e){let[r,a]=e.sort((i,n)=>i.s-n.s).reduce(([i,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[i,n.union(s)]:[i.concat([n]),s]:[i,s],[[],null]);return a&&r.push(a),r}static xor(e){let r=null,a=0,i=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?r=l.time:(r&&+r!=+l.time&&i.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`: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=sn,r={}){return this.isValid?bt.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):Ze.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},fi=class{static hasDST(e=Oe.defaultZone){let r=ae.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Tr.isValidZone(e)}static normalizeZone(e){return wr(e,Oe.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||we.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||we.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||we.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||we.create(r,a,n)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||we.create(r,a,n)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||we.create(r,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||we.create(r,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return we.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return we.create(r,null,"gregory").eras(e)}static features(){return{relative:Pu(),localeWeek:Au()}}};function xc(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=r(e)-r(t);return Math.floor(Ze.fromMillis(a).as("days"))}function ig(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=xc(l,d);return(c-c%7)/7}],["days",xc]],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 ag(t,e,r,a){let[i,n,s,o]=ig(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=Ze.fromObject(n,a);return d.length>0?Ze.fromMillis(l,a).shiftTo(...d).plus(c):c}var ng="missing Intl.DateTimeFormat.formatToParts support";function pe(t,e=r=>r){return{regex:t,deser:([r])=>e(Zm(r))}}var sg="\xA0",Hu=`[ ${sg}]`,Gu=new RegExp(Hu,"g");function og(t){return t.replace(/\./g,"\\.?").replace(Gu,Hu)}function Fc(t){return t.replace(/\./g,"").replace(Gu," ").toLowerCase()}function Rt(t,e){return t===null?null:{regex:RegExp(t.map(og).join("|")),deser:([r])=>t.findIndex(a=>Fc(r)===Fc(a))+e}}function Ic(t,e){return{regex:t,deser:([,r,a])=>Sn(r,a),groups:e}}function ja(t){return{regex:t,deser:([e])=>e}}function lg(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function dg(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}"),h=qt(e,"{4,6}"),p=m=>({regex:RegExp(lg(m.val)),deser:([y])=>y,literal:!0}),f=(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 pe(d);case"yy":return pe(u,Rs);case"yyyy":return pe(n);case"yyyyy":return pe(h);case"yyyyyy":return pe(s);case"M":return pe(o);case"MM":return pe(a);case"MMM":return Rt(e.months("short",!0),1);case"MMMM":return Rt(e.months("long",!0),1);case"L":return pe(o);case"LL":return pe(a);case"LLL":return Rt(e.months("short",!1),1);case"LLLL":return Rt(e.months("long",!1),1);case"d":return pe(o);case"dd":return pe(a);case"o":return pe(l);case"ooo":return pe(i);case"HH":return pe(a);case"H":return pe(o);case"hh":return pe(a);case"h":return pe(o);case"mm":return pe(a);case"m":return pe(o);case"q":return pe(o);case"qq":return pe(a);case"s":return pe(o);case"ss":return pe(a);case"S":return pe(l);case"SSS":return pe(i);case"u":return ja(c);case"uu":return ja(o);case"uuu":return pe(r);case"a":return Rt(e.meridiems(),0);case"kkkk":return pe(n);case"kk":return pe(u,Rs);case"W":return pe(o);case"WW":return pe(a);case"E":case"c":return pe(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 Ic(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return Ic(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ja(/[a-z_+-/]{1,256}?/i);case" ":return ja(/[^\S\n\r]/);default:return p(m)}})(t)||{invalidReason:ng};return f.token=t,f}var cg={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 ug(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=cg[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function pg(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function hg(t,e,r){let a=t.match(e);if(a){let i={},n=1;for(let s in r)if(Si(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 fg(t){let e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,a;return K(t.z)||(r=Tr.create(t.z)),K(t.Z)||(r||(r=new Dt(t.Z)),a=t.Z),K(t.q)||(t.M=(t.q-1)*3+1),K(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),K(t.u)||(t.S=ro(t.u)),[Object.keys(t).reduce((i,n)=>{let s=e(n);return s&&(i[s]=t[n]),i},{}),r,a]}var us=null;function mg(){return us||(us=ae.fromMillis(1555555555555)),us}function yg(t,e){if(t.literal)return t;let r=bt.macroTokenToFormatOpts(t.val),a=Ju(r,e);return a==null||a.includes(void 0)?t:a}function Qu(t,e){return Array.prototype.concat(...t.map(r=>yg(r,e)))}var un=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Qu(bt.parseFormat(r),e),this.units=this.tokens.map(a=>dg(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,i]=pg(this.units);this.regex=RegExp(a,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,a]=hg(e,this.regex,this.handlers),[i,n,s]=a?fg(a):[null,null,void 0];if(Si(a,"a")&&Si(a,"H"))throw new Cr("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 Zu(t,e,r){return new un(t,r).explainFromTokens(e)}function gg(t,e,r){let{result:a,zone:i,specificOffset:n,invalidReason:s}=Zu(t,e,r);return[a,i,n,s]}function Ju(t,e){if(!t)return null;let r=bt.create(e,t).dtFormatter(mg()),a=r.formatToParts(),i=r.resolvedOptions();return a.map(n=>ug(n,t,i))}var ps="Invalid DateTime",Tc=864e13;function Wi(t){return new vt("unsupported zone",`the zone "${t.name}" is not supported`)}function hs(t){return t.weekData===null&&(t.weekData=ln(t.c)),t.weekData}function fs(t){return t.localWeekData===null&&(t.localWeekData=ln(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Ur(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ae({...r,...e,old:r})}function Ku(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 Va(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 Ka(t,e,r){return Ku(vn(t),e,r)}function Pc(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,dn(a,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Ze.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=vn(n),[l,d]=Ku(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=ae.fromObject(t,{...r,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ae.invalid(new vt("unparsable",`the input "${i}" can't be parsed as ${a}`))}function Wa(t,e,r=!0){return t.isValid?bt.create(we.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ms(t,e,r){let a=t.c.year>9999||t.c.year<0,i="";if(a&&t.c.year>=0&&(i+="+"),i+=We(t.c.year,a?6:4),r==="year")return i;if(e){if(i+="-",i+=We(t.c.month),r==="month")return i;i+="-"}else if(i+=We(t.c.month),r==="month")return i;return i+=We(t.c.day),i}function Ac(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+=We(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=We(t.c.minute),s==="minute")break;o&&(l+=":",l+=We(t.c.second))}else{if(l+=We(t.c.minute),s==="minute")break;o&&(l+=We(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=We(t.c.millisecond,3))}return i&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=We(Math.trunc(-t.o/60)),l+=":",l+=We(Math.trunc(-t.o%60))):(l+="+",l+=We(Math.trunc(t.o/60)),l+=":",l+=We(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var Yu={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},bg={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},vg={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ya=["year","month","day","hour","minute","second","millisecond"],Sg=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],wg=["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 nn(t);return e}function Oc(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 Cg(t){if(_i===void 0&&(_i=Oe.now()),t.type!=="iana")return t.offset(_i);let e=t.name,r=ks.get(e);return r===void 0&&(r=t.offset(_i),ks.set(e,r)),r}function Lc(t,e){let r=wr(e.zone,Oe.defaultZone);if(!r.isValid)return ae.invalid(Wi(r));let a=we.fromObject(e),i,n;if(K(t.year))i=Oe.now();else{for(let l of Ya)K(t[l])&&(t[l]=Yu[l]);let s=Iu(t)||Tu(t);if(s)return ae.invalid(s);let o=Cg(r);[i,n]=Ka(t,o,r)}return new ae({ts:i,zone:r,loc:a,o:n})}function Ec(t,e,r){let a=K(r.round)?!0:r.round,i=K(r.rounding)?"trunc":r.rounding,n=(o,l)=>(o=io(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 Dc(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 _i,ks=new Map,ae=class t{constructor(e){let r=e.zone||Oe.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new vt("invalid input"):null)||(r.isValid?null:Wi(r));this.ts=K(e.ts)?Oe.now():e.ts;let i=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,n]=[e.old.c,e.old.o];else{let s=xr(e.o)&&!e.old?e.o:r.offset(this.ts);i=Va(this.ts,s),a=Number.isNaN(i.year)?new vt("invalid input"):null,i=a?null:i,n=a?null:s}this._zone=r,this.loc=e.loc||we.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=i,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Dc(arguments),[a,i,n,s,o,l,d]=r;return Lc({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,r]=Dc(arguments),[a,i,n,s,o,l,d]=r;return e.zone=Dt.utcInstance,Lc({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,r={}){let a=ey(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let i=wr(r.zone,Oe.defaultZone);return i.isValid?new t({ts:a,zone:i,loc:we.fromObject(r)}):t.invalid(Wi(i))}static fromMillis(e,r={}){if(xr(e))return e<-Tc||e>Tc?t.invalid("Timestamp out of range"):new t({ts:e,zone:wr(r.zone,Oe.defaultZone),loc:we.fromObject(r)});throw new Qe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(xr(e))return new t({ts:e*1e3,zone:wr(r.zone,Oe.defaultZone),loc:we.fromObject(r)});throw new Qe("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let a=wr(r.zone,Oe.defaultZone);if(!a.isValid)return t.invalid(Wi(a));let i=we.fromObject(r),n=cn(e,Oc),{minDaysInFirstWeek:s,startOfWeek:o}=mc(n,i),l=Oe.now(),d=K(r.specificOffset)?a.offset(l):r.specificOffset,c=!K(n.ordinal),u=!K(n.year),h=!K(n.month)||!K(n.day),p=u||h,f=n.weekYear||n.weekNumber;if((p||c)&&f)throw new Cr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new Cr("Can't mix ordinal dates with month/day");let m=f||n.weekday&&!p,y,b,v=Va(l,d);m?(y=Sg,b=bg,v=ln(v,s,o)):c?(y=wg,b=vg,v=cs(v)):(y=Ya,b=Yu);let S=!1;for(let M of y){let N=n[M];K(N)?S?n[M]=b[M]:n[M]=v[M]:S=!0}let x=m?Km(n,s,o):c?Ym(n):Iu(n),I=x||Tu(n);if(I)return t.invalid(I);let O=m?hc(n,s,o):c?fc(n):n,[q,L]=Ka(O,d,a),A=new t({ts:q,zone:a,o:L,loc:i});return n.weekday&&p&&e.weekday!==A.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${A.toISO()}`):A.isValid?A:t.invalid(A.invalid)}static fromISO(e,r={}){let[a,i]=_y(e);return ui(a,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[a,i]=zy(e);return ui(a,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[a,i]=Uy(e);return ui(a,i,r,"HTTP",r)}static fromFormat(e,r,a={}){if(K(e)||K(r))throw new Qe("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:n=null}=a,s=we.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0}),[o,l,d,c]=gg(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]=Yy(e);return ui(a,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the DateTime is invalid");let a=e instanceof vt?e:new vt(e,r);if(Oe.throwOnInvalid)throw new Cs(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let a=Ju(e,we.fromObject(r));return a?a.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return Qu(bt.parseFormat(e),we.fromObject(r)).map(a=>a.val).join("")}static resetCache(){_i=void 0,ks.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?hs(this).weekYear:NaN}get weekNumber(){return this.isValid?hs(this).weekNumber:NaN}get weekday(){return this.isValid?hs(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?fs(this).weekday:NaN}get localWeekNumber(){return this.isValid?fs(this).weekNumber:NaN}get localWeekYear(){return this.isValid?fs(this).weekYear:NaN}get ordinal(){return this.isValid?cs(this.c).ordinal:NaN}get monthShort(){return this.isValid?fi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?fi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?fi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?fi.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=vn(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=Va(l,s),u=Va(d,o);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[Ur(this,{ts:l}),Ur(this,{ts:d})]:[this]}get isInLeapYear(){return ea(this.year)}get daysInMonth(){return dn(this.year,this.month)}get daysInYear(){return this.isValid?yi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ui(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ui(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:a,calendar:i}=bt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:a,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(Dt.instance(e),r)}toLocal(){return this.setZone(Oe.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:a=!1}={}){if(e=wr(e,Oe.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||a){let n=e.offset(this.ts),s=this.toObject();[i]=Ka(s,n,e)}return Ur(this,{ts:i,zone:e})}else return t.invalid(Wi(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:a}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:a});return Ur(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=cn(e,Oc),{minDaysInFirstWeek:a,startOfWeek:i}=mc(r,this.loc),n=!K(r.weekYear)||!K(r.weekNumber)||!K(r.weekday),s=!K(r.ordinal),o=!K(r.year),l=!K(r.month)||!K(r.day),d=o||l,c=r.weekYear||r.weekNumber;if((d||s)&&c)throw new Cr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Cr("Can't mix ordinal dates with month/day");let u;n?u=hc({...ln(this.c,a,i),...r},a,i):K(r.ordinal)?(u={...this.toObject(),...r},K(r.day)&&(u.day=Math.min(dn(u.year,u.month),u.day))):u=fc({...cs(this.c),...r});let[h,p]=Ka(u,this.o,this.zone);return Ur(this,{ts:h,o:p})}plus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e);return Ur(this,Pc(this,r))}minus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e).negate();return Ur(this,Pc(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let a={},i=Ze.normalizeUnit(e);switch(i){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(i==="weeks")if(r){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(i==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?bt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):ps}toLocaleString(e=sn,r={}){return this.isValid?bt.create(this.loc.clone(r),e).formatDateTime(this):ps}toLocaleParts(e={}){return this.isValid?bt.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=ms(this,o,s);return Ya.indexOf(s)>=3&&(l+="T"),l+=Ac(this,o,r,a,i,n,s),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?ms(this,e==="extended",Xa(r)):null}toISOWeekDate(){return Wa(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&&Ya.indexOf(o)>=3?"T":"")+Ac(this,s==="extended",r,e,a,n,o)):null}toRFC2822(){return Wa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Wa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ms(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")),Wa(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ps}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",a={}){if(!this.isValid||!e.isValid)return Ze.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=ty(r).map(Ze.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=ag(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?bi.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),Ec(r,this.plus(a),{...e,numeric:"always",units:i,unit:n})}toRelativeCalendar(e={}){return this.isValid?Ec(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Qe("min requires all arguments be DateTimes");return yc(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Qe("max requires all arguments be DateTimes");return yc(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,a={}){let{locale:i=null,numberingSystem:n=null}=a,s=we.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});return Zu(s,e,r)}static fromStringExplain(e,r,a={}){return t.fromFormatExplain(e,r,a)}static buildFormatParser(e,r={}){let{locale:a=null,numberingSystem:i=null}=r,n=we.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return new un(n,e)}static fromFormatParser(e,r,a={}){if(K(e)||K(r))throw new Qe("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:n=null}=a,s=we.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});if(!s.equals(r.locale))throw new Qe(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:c}=r.explainFromTokens(e);return c?t.invalid(c):ui(o,l,a,`format ${r.format}`,e,d)}static get DATE_SHORT(){return sn}static get DATE_MED(){return eu}static get DATE_MED_WITH_WEEKDAY(){return Dm}static get DATE_FULL(){return tu}static get DATE_HUGE(){return ru}static get TIME_SIMPLE(){return iu}static get TIME_WITH_SECONDS(){return au}static get TIME_WITH_SHORT_OFFSET(){return nu}static get TIME_WITH_LONG_OFFSET(){return su}static get TIME_24_SIMPLE(){return ou}static get TIME_24_WITH_SECONDS(){return lu}static get TIME_24_WITH_SHORT_OFFSET(){return du}static get TIME_24_WITH_LONG_OFFSET(){return cu}static get DATETIME_SHORT(){return uu}static get DATETIME_SHORT_WITH_SECONDS(){return pu}static get DATETIME_MED(){return hu}static get DATETIME_MED_WITH_SECONDS(){return fu}static get DATETIME_MED_WITH_WEEKDAY(){return Nm}static get DATETIME_FULL(){return mu}static get DATETIME_FULL_WITH_SECONDS(){return yu}static get DATETIME_HUGE(){return gu}static get DATETIME_HUGE_WITH_SECONDS(){return bu}};function ji(t){if(ae.isDateTime(t))return t;if(t&&t.valueOf&&xr(t.valueOf()))return ae.fromJSDate(t);if(t&&typeof t=="object")return ae.fromObject(t);throw new Qe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Nc={Count:"count",Start:"minValue",End:"maxValue"};function xg(t,e){let r=e.errors[t];throw new ct(e.modalHeaders.error,r??e.errors.simpleError)}function lr(t){return t.axes?.[0]?.valueFormat?.type}function c1(t){return t.intlOptions}function ot(t){return t?.type===g.NumberAxisFormat}function u1(t){return ot(t)&&t.intlOptions?.style==="percent"}function Fr(t){return t?.type===g.CategoryAxisFormat}function Qr(t){return t?.type===g.DateAxisFormat}function p1(t){let{oldConfig:e,newConfig:r,rotationChanged:a}=t;return a?[!0,!0]:[e.horizontalAxisLabelsBehavior!==r.horizontalAxisLabelsBehavior,e.verticalAxisLabelsBehavior!==r.verticalAxisLabelsBehavior]}function Fg(t){return ot(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||ot(t[2].valueFormat))}function Ig(t){return ot(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||ot(t[2].valueFormat))}function Tg(t){return(Fr(t?.[0]?.valueFormat)||Qr(t?.[0]?.valueFormat))&&ot(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||ot(t[2].valueFormat))}function Pg(t){return Fr(t?.[0]?.valueFormat)&&Fr(t?.[1]?.valueFormat)||Qr(t?.[0]?.valueFormat)&&Fr(t?.[1]?.valueFormat)||Qr(t?.[0]?.valueFormat)&&Qr(t?.[1]?.valueFormat)}function Ag(t){return(Fr(t?.[0]?.valueFormat)||Qr(t?.[0]?.valueFormat))&&ot(t?.[1]?.valueFormat)}function Og(t){return ot(t?.[0]?.valueFormat)&&ot(t?.[1]?.valueFormat)}function Lg(t){return ot(t?.[0]?.valueFormat)&&ot(t?.[1]?.valueFormat)}function Eg(t){return ot(t?.[0]?.valueFormat)}function h1(t){let{chartType:e,axesConfig:r,errorStrings:a}=t,i,n;switch(e){case g.GaugeSeries:i=Eg,n="invalidValueFormatForGauge";break;case g.ScatterSeries:i=Og,n="invalidValueFormatForScatterplot";break;case g.HistogramSeries:i=Lg,n="invalidValueFormatForHistogram";break;case g.LineSeries:i=Fg,n="invalidValueFormatForLineChart";break;case g.BarSeries:i=Ig,n="invalidValueFormatForBarChart";break;case g.ComboLineAndBarSeries:i=Ag,n="invalidValueFormatForComboBarLineChart";break;case g.BoxPlotSeries:i=Tg,n="invalidValueFormatForBoxPlot";break;case g.HeatSeries:i=Pg,n="invalidValueFormatForHeatChart";break}i!==void 0&&n!==void 0&&(i(r)||xg(n,a))}function Dg(t){let{isXAxis:e,chartType:r,valueFormat:a,isAxisForHistogramOverlaySeries:i}=t;return e&&(Fr(a)||r===g.HistogramSeries&&!i||r===g.BarSeries&&ot(a))}function f1(t){let{chartConfig:e,isSecondValueAxis:r,seriesIds:a}=t,i=a;return e.axes?.length===3&&(i=e.series.map(n=>{let s="";return(a===void 0||a.includes(n.id))&&(r===!0&&"assignToSecondValueAxis"in n&&n.assignToSecondValueAxis===!0||r!==!0&&(!("assignToSecondValueAxis"in n)||n.assignToSecondValueAxis!==!0))&&({id:s}=n),s}).filter(n=>n!=="")),i}var Ng={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},m1={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},Lr={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},re={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},Bg=32,Ir="arcgis_charts_features_extent",Ne={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:pa.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds"},Xu=["EXPR_1","Expr1","expr1","EXPR1"],y1=1,lt=.7,Mg=25,ep=[156,156,156,255],$g=[156,156,156,255],g1=hr.Solid,b1=2,Hi={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"},Li="arcgis_charts_box_plot_category",xe={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},qg=[[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]],v1=[[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]],Rg=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]],S1=[[104,104,104,255],[51,124,235,255],[175,90,255,255],[156,156,156,255]];function Nt(t){let{colorIndex:e,opacity:r,histogramOverlays:a}=t,i=Math.max(0,e??0),n=[...a===!0?Rg:qg],[s,o,l,d]=n[i%n.length],c=r!==void 0?r*255:d;return[s,o,l,c]}function tp(t){return[0,0,0,(t??lt)*255]}function w1(){return{type:g.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:Ce.SLS,style:hr.Dot,color:[211,211,211,255],width:1}}}function Cn(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function fe(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case re.ChartTitle:e.size=18;break;case re.AxisTitle:e.size=14;break;case re.LegendText:e.size=12;break;case re.LegendTitle:e.size=13;break;case re.DescriptionText:e.size=11;break}return e}function rp(t="",e=fe(),r){let a=me.Center;return(r===re.DataLabels||r===re.GuideLabel)&&(a=void 0),{type:Ce.TS,color:tp(),text:t,font:e,horizontalAlignment:a}}function oe(t){let{text:e,visible:r,font:a,type:i}=t??{text:"",visible:!0,font:fe()};return{type:g.Text,visible:r,content:rp(e,a,i)}}function ia(t){let e=t?.useRandomColor??!1,r=t?.useRampColor,a=t?.width??1,i=t?.isHistogramOverlay,n=t?.color??tp(1);return e?n=Cn():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:Ce.SLS,style:hr.Solid,color:n,width:a}}function kg(){return{type:g.CategoryAxisFormat,characterLimit:11}}function C1(){return{type:g.DateAxisFormat,intlOptions:{}}}function js(){return{type:g.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function x1(){return{type:g.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function F1(){return{type:g.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function ys(t="Category Axis"){let e=oe({text:t,visible:!0,font:fe(re.AxisTitle)});e.content.horizontalAlignment=me.Center,e.content.verticalAlignment=Ae.Middle;let r=oe({text:t,visible:!0,font:fe(re.AxisLabels)});return{type:g.Axis,visible:!0,title:e,labels:r,valueFormat:kg(),lineSymbol:ia({color:ep})}}function en(t="Value Axis"){let e=oe({text:t,visible:!0,font:fe(re.AxisTitle)}),r=oe({text:t,visible:!0,font:fe(re.AxisLabels)});return e.content.verticalAlignment=Ae.Middle,e.content.horizontalAlignment=me.Center,{type:g.Axis,visible:!0,title:e,labels:r,valueFormat:js(),lineSymbol:ia({color:ep})}}function Er(){return{type:g.Legend,visible:!0,title:oe({text:"",visible:!0,font:fe(re.LegendTitle)}),body:rp("",fe(re.LegendText)),position:Ri.Right,maxHeight:Number.NaN}}function _a(t){return{type:g.Overlay,visible:!0,created:!1,symbol:ia({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function Dr(){return[255,255,255,255]}function dr(t){return t.utilsStrings.chartType.chart}function cr(){return`Chart ${Date.now()}`}function I1(t,e=!1){return{type:Ce.SFS,style:jr.Solid,color:e?Cn(lt):Nt({colorIndex:t??0,opacity:lt})}}function jg(t=0){return{type:Ce.SMS,style:ha.Circle,color:Nt({colorIndex:t,opacity:lt}),size:5}}function Vg(t){return{type:Ce.SLS,style:hr.Solid,color:Nt({colorIndex:t,opacity:lt}),width:2}}function Wg(t=!1){return{type:Ce.SMS,style:ha.Circle,color:t?Cn(lt):Nt({colorIndex:0,opacity:lt}),size:7}}function T1(){return{type:g.SizePolicy,field:"",scaleType:_o.Linear,minSize:5,maxSize:30}}function _g(t=!1){return{type:g.Overlays,trendLine:{type:g.Overlay,created:!1,visible:!0,symbol:{type:Ce.SLS,style:hr.Solid,color:t?Cn():Nt({colorIndex:1}),width:2}}}}function zg(t,e){let r=t.countSeries;return{type:g.HeatSeries,id:r,name:r,y:"",x:"",dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels)}),query:{outStatistics:[{statisticType:j.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:`${j.Count}_${e}_0`.toUpperCase()}],groupByFieldsForStatistics:[]}}}function Ug(){return{type:g.ScatterSeries,id:g.ScatterSeries,name:g.ScatterSeries,x:"",y:"",markerSymbol:Wg(),overlays:_g(),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels)})}}function Kr(t,e){let r=[],a=t.xAxis,i=t.utilsStrings.statistics.count,n,s,o=ia({opacity:Mg});switch(e===g.HeatSeries?s=ys(i):(s=en(i),s.grid=o),e){case g.BarSeries:case g.HeatSeries:{n=ys(a);break}case g.ScatterSeries:{n=en(a),n.grid=o;break}case g.RadarSeries:case g.LineSeries:case g.HistogramSeries:{n=en(a);break}case g.BoxPlotSeries:{n=ys("");break}}return n!==void 0&&r.push(n,s),r}function Hg(){return{type:g.GaugeNeedle,symbol:{type:Ce.SFS,color:[0,0,0,200]}}}function Gg(t){let e=[],r=t.xAxis,a=en(r);return a.needle=Hg(),e.push(a),e}function Qg(t){let e=t.commonStrings,r=t.objectIDField??"ObjectID",a=`${j.Count}_${r}_0`.toUpperCase(),i=e.countSeries;return{type:g.LineSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:Vg(t.seriesIndex),markerSymbol:jg(t.seriesIndex),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels)}),temporalBinning:{unit:Q.Day,size:0,timeAggregationType:Me.Start,trimIncompleteTimeInterval:!0,nullPolicy:at.Interpolate}}}function P1(t){return{...Qg(t),type:g.RadarSeries}}function Zg(t){return{type:Ce.SFS,style:jr.Solid,color:Nt({colorIndex:t,opacity:lt})}}function A1(t){let e=t.objectIDField??"*",r=t.commonStrings,a=`${j.Count}_Y_0`.toUpperCase(),i=r.countSeries;return{type:g.BarSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:Zg(t.seriesIndex),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels),type:re.DataLabels})}}function O1(t,e){let r=t.countSeries;return{name:r,type:g.BoxPlotSeries,id:r,fillSymbol:{type:Ce.SFS,style:jr.Solid,color:Nt({colorIndex:e,opacity:lt})},query:{},x:Li,y:""}}function Jg(){return{type:g.PieTick,visible:!0,lineSymbol:ia({width:1,color:$g})}}function Kg(){return{type:Ce.SFS,style:jr.Solid}}function L1(t,e){let r=`${j.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:g.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:r}],groupByFieldsForStatistics:[]},x:"",y:r,fillSymbol:Kg(),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels),type:re.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...js(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...js(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:Jg()}}function E1(t){let e=t.objectIDField??"ObjectID",r=`${j.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:g.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:r}]},x:""}}function Gi(){return!1}function D1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,rotated:Gi(),orderOptions:{data:{orderType:nt.Category,orderBy:ze.Ascending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.BarSeries),series:[],legend:Er()}}function N1(t,e=cr()){return{version:or,type:g.Chart,id:e,rotated:Gi(),colorMatch:!0,orderOptions:{data:{orderType:nt.Category,orderBy:ze.Ascending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),series:[],legend:Er(),axes:Kr(t,g.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function B1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,rotated:Gi(),orderOptions:{data:{orderType:nt.Category,orderBy:ze.Ascending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.LineSeries),series:[],legend:Er()}}function M1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:nt.Category,orderBy:ze.Ascending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.RadarSeries),series:[],legend:Er()}}function $1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:nt.YValue,orderBy:ze.Descending}},title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),series:[],legend:{...Er(),displayNumericValue:!1,displayPercentage:!0}}}function q1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),series:[],axes:Gg(t)}}function R1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.ScatterSeries),series:[Ug()],legend:Er()}}function k1(t,e){return{version:or,type:g.Chart,id:cr(),title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),background:Dr(),axes:Kr(t,g.HeatSeries),series:[zg(t,e)],legend:{...Er(),position:Ri.Bottom}}}function Yg(){return{type:g.Overlays,mean:_a(1),median:_a(2),standardDeviation:_a(3),comparisonDistribution:_a(4)}}function Xg(){return{type:Ce.SFS,style:jr.Solid,color:Nt({colorIndex:0,opacity:lt})}}function eb(){return{type:g.HistogramSeries,id:g.HistogramSeries,name:g.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:Yg(),dataTransformationType:Ge.None,fillSymbol:Xg(),dataLabels:oe({text:"",visible:!1,font:fe(re.DataLabels)})}}function j1(t,e=cr()){return{version:or,type:g.Chart,id:e,colorMatch:!0,title:oe({text:dr(t),visible:!0,font:fe(re.ChartTitle)}),subtitle:oe(),footer:oe({text:"",visible:!0,font:fe(re.DescriptionText)}),background:Dr(),axes:Kr(t,g.HistogramSeries),series:[eb()],legend:Er()}}var gs={behaviorAfterLimit:Lr.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 Yr(t){let e={...gs};return t!==void 0&&Object.keys(gs).forEach(r=>{let a=r;e[a]=t[a]??gs[a]}),e}function aa(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:200}}function V1(t,e){let r;switch(t){case j.Average:{r=e.utilsStrings.statistics.mean;break}case j.ContinuousPercentile:{r=e.utilsStrings.statistics.median;break}case j.Sum:{r=e.utilsStrings.statistics.sum;break}case j.Minimum:{r=e.utilsStrings.statistics.minimum;break}case j.Maximum:{r=e.utilsStrings.statistics.maximum;break}case j.Variance:{r=e.utilsStrings.statistics.variance;break}case j.DiscretePercentile:{r=e.utilsStrings.statistics.discretePercentile;break}case j.NoAggregation:{r=e.utilsStrings.statistics.noAggregation;break}case j.Count:default:{r=e.utilsStrings.statistics.count;break}}return r}function W1(t,e){let r;switch(t){case Me.End:{r=e.timeAggregationTypes.end;break}case Me.Start:{r=e.timeAggregationTypes.start;break}default:r="";break}return r}function tb(){return yt.Side}function _1(t){return t.utilsStrings.notAvailable}var rb=0,ib="_arcgis_charts_outliers",ab="_arcgis_charts_z_score",z1=[210,210,210,255*lt],U1=" percentage ",bs=[150,150,150,255],P={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:Ri.Right},footer:{wrap:!0,horizontalCenter:me.Center,verticalCenter:Ae.Middle,align:me.Center},axisLabel:{rotation:0,align:me.Center,horizontalCenter:me.Center,verticalCenter:Ae.Top,dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:me.Left,verticalCenter:Ae.Bottom,dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:me.Center,verticalCenter:Ae.Middle,dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:me.Center,valign:Ae.Middle,rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:me.Center,valign:Ae.Middle,rotation:270,wrap:!0},titleLabel:{align:me.Center,wrap:!0},subtitleLabel:{align:me.Center,wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:me.Right,align:me.Right,verticalCenter:Ae.Middle,wrap:!0},horizontalLineGuideLabels:{horizontalCenter:me.Right,align:me.Right,verticalCenter:Ae.Top,wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:me.Center,verticalCenter:Ae.Top,valign:Ae.Top},verticalLineGuideLabels:{horizontalCenter:me.Right,verticalCenter:Ae.Bottom,valign:Ae.Top,wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:Ce.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:me.Center,verticalCenter:Ae.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:me.Center,horizontalCenter:me.Center,valign:Ae.Bottom,verticalCenter:Ae.Top,dy:-3},dataLabelRotated:{align:me.Right,horizontalCenter:me.Right,valign:Ae.Middle,verticalCenter:Ae.Middle,dx:2},dataLabelStackedRotated:{align:me.Center,horizontalCenter:me.Center,valign:Ae.Middle,verticalCenter:Ae.Middle},dataLabelStackedNonRotated:{align:me.Center,horizontalCenter:me.Center,valign:Ae.Middle,verticalCenter:Ae.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:jo.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:yt.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:5,markerStyle:ha.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,defaultStatParameterValue:.5,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:rb,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:Hi.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:Ce.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:ze.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],lightTextColor:[255,255,255,255],darkTextColor:[0,0,0,255],grayColor:bs,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderBackground:[255,255,255,230],loaderSpinnerColor:[0,122,194,255],loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",markerTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalYCategoryValue:"arcgis_charts_original_category_y_value",originalDateValue:"arcgis_charts_original_date_value",typeOrDomainFieldName:"arcgis_charts_type_domain_field_name",typeOrDomainIdValue:"arcgis_charts_type_domain_id_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_axis_field",nullValue:"arcgis_charts_null",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:Ce.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:Ce.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:Ng.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_arcgis_charts_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",options:{hideEmptySeries:!0,replaceNoValueCategoryWithZero:!0,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",symbol:{type:Ce.SFS,color:bs,outline:{type:Ce.SLS,style:hr.Solid,color:bs,width:1}}},classBreaks:{breaksCount:5}},Qi={...P,chartPadding:5,footerContainer:{...P.footerContainer,paddingTop:0,paddingBottom:0},headerContainer:{...P.headerContainer,paddingBottom:0},chartContainer:{...P.chartContainer},dataLabel:{...P.dataLabel,verticalCenter:"bottom"},scrollbarPadding:12,zIndexes:{guide:100,scatterplotTrendLine:2,bulletMarkers:1},verticalSurfaceGuideLabels:{wrap:!0},verticalLineGuideLabels:{wrap:!0,rotation:90},horizontalSurfaceGuideLabels:{wrap:!0},horizontalLineGuideLabels:{wrap:!0},overlayId:{scatterplotTrendLine:"arcgis_charts_scatter_plot_trendline",histogramMean:"arcgis_charts_histogram_mean",histogramMedian:"arcgis_charts_histogram_median",histogramStdDev:"arcgis_charts_histogram_std_dev",histogramNormalDistribution:"arcgis_charts_histogram_normal_distribution"},axisLabelSpacing:{verticalAxisLabelSidePadding:8,horizontalAxisLabelPaddingTop:6},legendPadding:20,heatChart:{gradientHeatRules:{minColor:[255,255,200,255],maxColor:[255,0,0,255],outsideRangeLowerColor:[250,250,250,255],outsideRangeUpperColor:[0,0,255,255]},legend:{position:Ri.Bottom,chartPadding:40,legendPadding:20,width:70,bottomHeight:20,topHeight:50,titleHeight:10,titlePadding:10,gradientLabelsPadding:10},emptyCells:{symbol:{type:Ce.SFS,style:jr.Solid,color:P.grayColor},text:"null"},includeLeapDay:!1},heatChartLabelPadding:{paddingTop:2},heatChartFirstDayOfWeek:7,pieChartDataLabel:{minWidth:30},focusableThreshold:500};function nb(t){let{stringToTruncate:e,characterLimit:r,ellipsis:a=P.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 H1(t,e=":"){return t?`\u200F${e}`:`\u200E${e}`}function G1(t){return e=>{let r=typeof e!="string"?e?.toString()??"":e;return!Le(r)&&r!==P.htmlEmptyContent&&(r=nb({stringToTruncate:r,characterLimit:t})),r}}function sb(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 ob(t,e){let r="";return t!==void 0&&(r=`${e==="amChartsV5"?"fontStyle":"font-style"}:${t};`),r}function lb(t,e){let r="";return t===!0&&(r=`${e==="amChartsV5"?"letterSpacing":"letter-spacing"}:1px;`),r}function Q1(t){let{textSymbol:e,placeholderString:r,format:a,axisLabelsBehavior:i,defaults:n}=t,s=ob(e?.font?.style,a),o=lb(e?.kerning,a),l=r??e?.text??"";if(a==="html"){let{wrap:d,maxWidth:c}=n??{};i===Vo.Wrap&&(d=!0,c=c??P.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=sb(l),(s!==""||o!=="")&&(l=`[${s}${o}]${l}[/]`);return l}function db(t){return t?t.replace(/[A-Z]/gu,e=>`-${e.toLowerCase()}`):void 0}function wi(t){return Y(t?.series)===g.HeatSeries}function dt(t){return Y(t?.series)===g.BoxPlotSeries}function cb(t,e){return t[0].dataTransformationType!==e[0].dataTransformationType}function ub(t,e){return t[0].binCount!==e[0].binCount}function Z1(t,e){let r=!0,a=Y(t?.series),i=Y(e?.series);return a!==i&&(r=a===g.ComboLineAndBarSeries&&(i===g.BarSeries||i===g.LineSeries)||i===g.ComboLineAndBarSeries&&(a===g.BarSeries||a===g.LineSeries)||a===g.BarSeries&&i===g.LineSeries||a===g.LineSeries&&i===g.BarSeries),r}function Vs(t,e){return t!==void 0&&e!==void 0&&e>0}function J1(t){let{chartConfig:e,queryObject:r,chartData:a}=t,i=[],n=X(e.series),s=Cp(e),o=de(r),l=e.chartRenderer??o?.renderer?.toJSON();return i=e.series.map((d,c)=>{let u=Y([d]),h;return(u===g.BarSeries||u===g.LineSeries||u===g.RadarSeries)&&(d.type===g.BarSeries?h=d.fillSymbol?.color:(d.type===g.RadarSeries||d.type===g.LineSeries)&&(h=d.lineSymbol?.color),s?h=Cb({dataItem:a[0],seriesConfig:d,chartSubType:n,colorMatch:s,rendererType:l?.type})?.color:h===void 0&&(h=Nt({colorIndex:c}))),h}).filter(d=>d!==void 0),i}function Ws(t){return t!==C.PieNoAggregation&&t!==C.BarAndLineNoAggregation&&t!==C.BarAndLineSplitByNoAggregation}function pb(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 Zi(t){return dt(t)?t?.showMean??!1:!1}function hb(t){return dt(t)?t?.showOutliers:void 0}function K1(){return`{name} {${P.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`}var mi={ChartRenderer:1,LayerRenderer:2};function Y1(t){let{chartConfig:e,queryObject:r}=t,a=!1;if(e.chartRenderer)a=!0;else{let{series:i}=e,n=Y(i),s=X(i),o=Nr(e),l=ei({seriesConfig:o}),d=de(r)?.renderer;switch(d?.type){case Ke.Simple:a=n===g.HistogramSeries||n===g.ScatterSeries||s===C.BarAndLineMonoField||s===C.BoxPlotMonoField||s===C.BoxPlotMultiFields||s===C.BoxPlotMonoFieldAndCategory||s===C.BarAndLineNoAggregation&&i.length===1&&!l;break;case Ke.UniqueValue:{let c=d?.field,u=Ye(o.query?.where),{x:h}=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===h||s===C.BarAndLineNoAggregation||s===C.PieNoAggregation||n===g.ScatterSeries}break;case Ke.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 Ke.ClassBreaks:a=n===g.HeatSeries||n===g.ScatterSeries||s===C.BarAndLineNoAggregation||s===C.PieNoAggregation;break;case Ke.Dictionary:case Ke.DotDensity:case Ke.Heatmap:break}}return a}function fb(t,e){return db(t?.type)??e?.type}function mb(t){let e=P.rendererSymbolField,r=e in t?e:void 0;if(!r){let a=t[P.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 yb(t){return t?.type!==void 0&&(t.color!==void 0||t.label!==void 0||t.style!==void 0||t.outline!==void 0)}function ip(t){let{symbolField:e,dataItem:r,rendererSymbol:a,rendererOrigin:i}=t,n=!1;if(!yb(a))delete r[e];else{let s={...a};s.color!==void 0&&i===mi.LayerRenderer&&(s.color[3]=lt*255),i===mi.LayerRenderer&&(delete s.style,delete s.outline,delete s.label),r[e]=s,n=!0}return n}function gb(t){let{renderer:e,seriesConfig:r,chartSubType:a,dataItem:i,rendererOrigin:n}=t,s,o=!1,l=Y(r),{outline:d,attributes:c}=e;return c.forEach(u=>{let{field:h}=u,{color:p,label:f}=u,m;Array.isArray(p)&&p?.length===4?m=p:p&&"toRgba"in p&&(m=p.toRgba());let y=!1,b=!0;switch(l){case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:case g.RadarSeries:if(a!==C.BarAndLineFromFields){let v=r.find(S=>S.query?.outStatistics?.[0]?.onStatisticField===h);v!==void 0&&"y"in v?h=[v.y].flat()[0]:h=""}y=a!==C.BarAndLineFromFields||h===i[P.originalCategoryValue];break;case g.PieSeries:y=a===C.PieFromFields&&h===i[P.originalCategoryValue];break;case g.BoxPlotSeries:a===C.BoxPlotMonoField||a===C.BoxPlotMonoFieldAndCategory?y=h===r[0].y:h&&(a===C.BoxPlotMultiFields||a===C.BoxPlotMultiFieldsAndCategory)&&(y=r.map(v=>v.y).flat().includes(h)),b=!1;break}y&&m&&(s={type:Ce.SMS,color:m,label:b&&f?f:void 0},d!=null&&(s.outline=d),ip({dataItem:i,symbolField:a===C.BarAndLineFromFields||a===C.PieFromFields?P.rendererSymbolField:`${P.rendererSymbolField}_${h}`,rendererSymbol:s,rendererOrigin:n})&&(o=!0))}),{rendererSymbol:s,colorMatchApplied:o}}function bb(t){let{seriesConfig:e,chartSubType:r,rendererType:a}=t,i=P.rendererSymbolField;if(a===Ke.UniqueValue){if(Fp(r)){let n=ut({where:e.query?.where,keepSurroundingQuotes:!1,escape:!1});n===null?i=P.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===Ke.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 ap(t){let{seriesConfig:e,chartSubType:r,rendererType:a,dataItem:i}=t,n=bb({seriesConfig:e,chartSubType:r,rendererType:a});return n instanceof Array&&e.type===g.BoxPlotSeries&&a===Ke.PieChart&&i!==void 0&&(n=n.find(s=>s===i[Li])??n[0]),n=n!==P.rendererSymbolField?`${P.rendererSymbolField}_${n.toString()}`:n,n}function vb(t){let{chartRenderer:e,queryObject:r}=t,a=e!==void 0?{...de(r),renderer:Js.fromJSON(e)}:de(r);return new Sm({layer:a})}async function Sb(t){let{seriesConfig:e,dataItem:r,renderer:a,rendererType:i,rendererOrigin:n,chartSubType:s,splitByField:o,graphicTemplate:l,rendererFieldNames:d,mapAttributesToSymbol:c}=t,u,h=!1;if(i===Ke.PieChart){let p=gb({renderer:a,seriesConfig:e,chartSubType:s,dataItem:r,rendererOrigin:n});u=p.rendererSymbol,h=p.colorMatchApplied}else if(!Gp(r)){let{x:p}=e[0],f=new Map;o&&o.trim()!==""?e.forEach(m=>{if(m.type===g.BarSeries||m.type===g.LineSeries||m.type===g.BoxPlotSeries||m.type===g.RadarSeries){let y=ap({seriesConfig:m,chartSubType:s,rendererType:i,dataItem:r}),b=ut({where:m.query?.where,normalize:!0,keepSurroundingQuotes:!1,escape:!1});f.set(y,{...r,[o]:b})}}):e[0].type===g.HeatSeries&&i===Ke.ClassBreaks?f.set(P.rendererSymbolField,{[xe.valueField]:r[xe.valueField]}):f.set(P.rendererSymbolField,{...r,[p]:Tb(r)});try{let m=Array.from(f.entries()),y=l.clone();y.layer=l.layer;let b=a?.uniqueValueInfos;for(let v=0;v<m.length;v+=1){let[S,x]=m[v];if(Bc({mode:"encode",x:p,splitByField:o,attributes:x}),d&&d.length>0&&Object.keys(x).forEach(I=>{d.includes(I)||delete x[I]}),y.attributes=x,c?.has(JSON.stringify(x)))u=c.get(JSON.stringify(x));else{if(u=(await Ii.getDisplayedSymbol(y))?.toJSON(),u!=null){if(u.color===void 0){let O=(await Ii.getDisplayedColor(y))?.toJSON();O&&(u.color=O.length===4?O:[...O,255])}let I=await Ii.getLegendLabel(y);I!=null&&I!==""&&(u.label=I,u.uniqueValue=b?.find(O=>O.label===I)?.value??void 0)}c?.set(JSON.stringify(x),u)}Bc({mode:"revert",x:p,splitByField:o,attributes:r}),ip({dataItem:r,symbolField:S,rendererSymbol:u,rendererOrigin:n})&&(h=!0)}}catch{}}return{rendererSymbol:u,colorMatchApplied:h}}function wb(t){let e=t;return t?.type==="uniqueValue"&&(t.uniqueValueInfos=t.uniqueValueInfos.map(r=>{let a=r.value===null?P.nullValue:r.value;return{...r,value:a}})),e}function Bc(t){let{splitByField:e,attributes:r,x:a,mode:i}=t;[a,e??""].forEach(n=>{r[n]===(i==="encode"?null:P.nullValue)&&(r[n]=i==="encode"?P.nullValue:null)})}async function X1(t){let{data:e,queryObject:r,chartConfig:a,allowColorMatch:i}=t,n=!1,s=[];if(i){let{series:o,chartRenderer:l}=a,d=wb(l),c=d?mi.ChartRenderer:mi.LayerRenderer,u=r?de(r):void 0,h=d??u?.renderer,p;u&&c===mi.LayerRenderer?s=await rh(u):c===mi.ChartRenderer&&(s=Fb(h));let f=fb(d,u?.renderer),m=vb({chartRenderer:l,queryObject:r}),y=X(o),b=Nr(a),v=Ye(b.query?.where);p=new Map;for(let S=0;S<e.length;S+=1){let x=e[S],I=await Sb({seriesConfig:a.series,dataItem:x,renderer:h,rendererType:f,rendererOrigin:c,chartSubType:y,splitByField:v,graphicTemplate:m,mapAttributesToSymbol:p,rendererFieldNames:s});n=n||I.colorMatchApplied}}return{dataItems:e,colorMatchApplied:n,rendererFieldNames:s}}function Cb(t){let{dataItem:e,seriesConfig:r,chartSubType:a,colorMatch:i,rendererType:n}=t,s;if(i&&e!==void 0){let o=ap({seriesConfig:r,chartSubType:a,rendererType:n,dataItem:e});s=e[o]}return s}function eF(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};return r?.type===e.type&&r.style!==void 0&&(n.style=r.style),n.type!==Ce.SLS&&(n.outline={type:Ce.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 xb(t){let e=[];return t&&(e=t.series.flatMap(r=>r.query?.outStatistics?.map(a=>a.onStatisticField)).filter(r=>r!==void 0),e.length===0&&(e=tt(t.series))),e}function tF(t,e){let r=!1;if(t&&e&&e.length>0&&Cp(t)){let a=pb(t),i=Nr(t);a?r=xb(t).some(n=>e.includes(n)):r=e.includes(i.x)}return r}function Fb(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 Ib(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 Ji(t){let{value:e,dataContext:r,specificField:a,preferLabel:i,keepNullValues:n=!1,useRendererLabel:s=!1,config:o}=t,l=e,{originalCategoryValue:d,originalDateValue:c,typeOrDomainIdValue:u}=P;if(r!==void 0){let h=s?mb(r):void 0;a!==void 0&&r[a]!==void 0?l=r[a]:h!==void 0?l=h:i===!1&&r[u]!==void 0?l=r[u]:r[c]!==void 0?l=r[c]:r[d]!==void 0?l=r[d]:r[st]!==void 0&&(l=r[st]),!n&&l===null&&(l="null",o?.series?.[0].type===g.BarSeries&&(l=o.series?.[0]?.nullCategory?.text??Qi.nullCategory?.text??l))}return l}function Tb(t){return t?.[P.typeOrDomainIdValue]!==void 0?t?.[P.typeOrDomainIdValue]:t?.[P.originalCategoryValue]}function pn(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===ze.Descending&&i!==!0;e.sort((c,u)=>{let h=0,p=c[a];s===!0&&!l&&(p=Ji({value:`${c[a]?.toString()}`,dataContext:c,preferLabel:o}));let f=u[a];return s===!0&&!l&&(f=Ji({value:`${u[a]?.toString()}`,dataContext:u,preferLabel:o})),n===!0&&d&&s===!0&&(p=Number.isNaN(Number.parseFloat(`${p?.toString()}`))?p:Number.parseFloat(p),f=Number.isNaN(Number.parseFloat(`${f?.toString()}`))?f:Number.parseFloat(f)),s===!0&&(c[P.originalCategoryValue]===null||p===null)||c[Hi.defaultGroupOfSlicesId]===!0?h=1:s===!0&&(u[P.originalCategoryValue]===null||f===null)||u[Hi.defaultGroupOfSlicesId]===!0?h=-1:typeof p=="string"&&typeof f=="string"?(h=p.localeCompare(f,void 0,{numeric:!0}),d&&(h*=-1)):p===void 0?h=d?-1:1:f===void 0?h=d?1:-1:p!==null&&f!==null&&(p>f?h=d?-1:1:p<f&&(h=d?1:-1)),h})}}function Pb(t){let{arrayToSort:e,orderBy:r,sortingField:a,fieldList:i,isByFieldsChart:n,preferLabel:s}=t;e!==void 0&&e.length>1&&!Le(a)&&r!==void 0&&r.length>0&&e.sort((o,l)=>{let d=o[a];s&&n&&typeof d=="string"&&(d=Hs(i,d));let c=r.indexOf(d?.toString()??"");c===-1&&(c=r.length);let u=l[a];s&&n&&typeof u=="string"&&(u=Hs(i,u));let h=r.indexOf(u?.toString()??"");return h===-1&&(h=r.length),c-h})}function Ab(t,e){let r=t;if(e?.[0]!==void 0&&X(e)===C.PieFromFields){let{x:a,y:i}=e[0];(ua(t)?r:r.dataItems).forEach(n=>(st in n&&a!==st&&(n[a]=n[a]!==void 0?n[a]:n[st],delete n[st]),jt in n&&i!==jt&&(n[i]=n[i]!==void 0?n[i]:n[jt],delete n[jt]),n))}return r}function Ob(t,e){let r=Y(e),a=t,i=e?.[0];if((r===g.PieSeries||r===g.BoxPlotSeries||r===g.LineSeries||r===g.RadarSeries||r===g.BarSeries||r===g.HeatSeries||r===g.ComboLineAndBarSeries)&&i!==void 0){let n=ua(t),s=n?t:t.dataItems;if(t!==void 0){let{originalCategoryValue:o,originalDateValue:l,xAxisField:d,typeOrDomainIdValue:c}=P,u=r===g.HeatSeries?xe.xField:i.x;s=s.map(h=>{let p=h[u];h[c]!==void 0?p=h[c]:h[l]!==void 0?p=h[l]:h[o]!==void 0&&(p=h[o]);let f={...h,[u]:p};return delete f[l],delete f[c],delete f[o],delete f[d],f}),n?a=s:"dataItems"in a&&(a.dataItems=s)}}return a}function Mc(t){let e={...t};delete e[P.technicalSortingFieldBySum],delete e[P.technicalSortingFieldByPercent],delete e[P.pieChart.technicalFieldSlicePercent],delete e[P.pieChart.technicalFieldGroupedSlices],delete e[P.typeOrDomainFieldName],delete e[P.lastTemporalBin],delete e[P.originalServerBinningRange],delete e[P.technicalFieldSplitByField],delete e[Ne.uniqueIdsName],Object.keys(e).filter(a=>a.includes(P.rendererSymbolField)).forEach(a=>delete e[a]);let r=Fn(e);return r.isInItem&&delete e[r.expr??""],e}function Lb(t,e){let r=t,a=Y(e),i=ih(r);if(i!==void 0)switch(a){case g.ComboLineAndBarSeries:case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.PieSeries:{i=i.map(Mc),r={dataItems:i};let{timeIntervalInfo:n,serverLimitReached:s}=t??{};Ro(n)||(r.timeIntervalInfo=n),s!==void 0&&(r.serverLimitReached=s)}break;case g.ScatterSeries:r={...r,dataItems:i.map(Mc)};break}return r}function np(t){let{data:e,seriesConfig:r}=t,a=kr(e);return a!==void 0&&(a=Ob(a,r),a=Lb(a,r),a=Ab(a,r)),a}function sp(t){let{statsMap:e,dataContext:r,chartLimits:a}=t,i=!1;if(e!==void 0){let{maxScatterPointsBeforeAggregation:n}=Yr(a),{queryNumberOfFeatures:s}=P.scatterplotAggregationFields;i=(e.get(s)??Number.NaN)>=n}else r!==void 0&&(i=P.scatterplotAggregationFields.dataContextXMinField in r);return i}function Eb(t){let e=!0,r=Y(t.series);if(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries){let a=X(t.series);e=a!==C.BarAndLineNoAggregation&&a!==C.BarAndLineSplitByNoAggregation}return e}function Db(t){return X(t.series)!==C.PieNoAggregation}function Nb(t){let{dataContext:e,chartConfig:r,chartLimits:a}=t,i=!0;if(r!==void 0)switch(Y(r.series)){case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:i=Eb(r);break;case g.ScatterSeries:i=sp({dataContext:e,chartLimits:a});break;case g.PieSeries:i=Db(r);break}return i}function Bb(t,e){let r=t;switch(e){case Ge.Log:r=`log(${t})`;break;case Ge.Sqrt:r=`power(CAST(${t} AS FLOAT),0.5)`;break}return r}function Ci(t){let e=new Date(t).valueOf();return Number.isNaN(e)||(e=new Intl.DateTimeFormat("en-US",P.dateFormatUTC).format(t).replace(",","")),e}function hn(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]:Hs(i,o),[a]:e[o],[P.xAxisField]:o,[P.originalCategoryValue]:o};s!==void 0&&(l[Ir]=s),e[`${P.rendererSymbolField}_${o}`]!==void 0&&(l[P.rendererSymbolField]=e[`${P.rendererSymbolField}_${o}`]),n.push(l)}})}return n}function Mb(t,e){let r=!0;if(t!==void 0&&t.length>1&&!Le(e)){let a=0,i=0,n=0;t.forEach(s=>{let o=s[e];!Bv(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 za(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 op(t,e){let r,{maxBarChartSeriesCount:a,maxBarUniqueSeriesCountTotal:i,maxBarTwoSeriesCountPerSeries:n,maxBarTwoSeriesCountTotal:s,maxBarThreePlusSeriesCountPerSeries:o,maxBarThreePlusSeriesCountTotal:l,maxLineChartSeriesCount:d,maxLineUniqueSeriesCountTotal:c,maxLineTwoSeriesCountPerSeries:u,maxLineTwoSeriesCountTotal:h,maxLineThreePlusSeriesCountPerSeries:p,maxLineThreePlusSeriesCountTotal:f,maxPieChartSliceCountTotal:m,maxGaugeByFeaturesLimit:y}=Yr(e),b=Y(t.series),v=t.series.length===0?1:t.series.length,S=X(t.series);switch(b){case g.ComboLineAndBarSeries:case g.BarSeries:v<=a&&(v===1?r=i:v===2?r=za({countTotal:s,countPerSeries:n,numberOfSeries:v}):v>2&&(r=za({countTotal:l,countPerSeries:o,numberOfSeries:v})));break;case g.LineSeries:v<=d&&(v===1?r=c:v===2?r=za({countTotal:h,countPerSeries:u,numberOfSeries:v}):v>2&&(r=za({countTotal:f,countPerSeries:p,numberOfSeries:v})));break;case g.PieSeries:r=m;break;case g.GaugeSeries:r=y;break;case g.ScatterSeries:case g.HistogramSeries:case g.BoxPlotSeries:}return(S===C.BarAndLineNoAggregation||S===C.BarAndLineMultiFields)&&r!==void 0&&(r=Math.ceil(r/v)),r}function $c(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 $b(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 rF(t){let e;if($b(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 H={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"};var fn=function(){return fn=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},fn.apply(this,arguments)},_s={exports:{}},Be={},zs={exports:{}},Xr={};function lp(){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 qb(t,e,r){}function Rb(t,e,r){}var kb=/javascript\s*\:/img;function jb(t,e){return kb.test(e)?"":e}Xr.whiteList=lp();Xr.getDefaultWhiteList=lp;Xr.onAttr=qb;Xr.onIgnoreAttr=Rb;Xr.safeAttrValue=jb;var Vb={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,"")}},Vi=Vb;function Wb(t,e){t=Vi.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,a=!1,i=0,n=0,s="";function o(){if(!a){var c=Vi.trim(t.slice(i,n)),u=c.indexOf(":");if(u!==-1){var h=Vi.trim(c.slice(0,u)),p=Vi.trim(c.slice(u+1));if(h){var f=e(i,s.length,h,p,c);f&&(s+=f+"; ")}}}i=n+1}for(;n<r;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,i=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
5
+ `&&o()}return Vi.trim(s)}var _b=Wb,Ua=Xr,zb=_b;function qc(t){return t==null}function Ub(t){var e={};for(var r in t)e[r]=t[r];return e}function dp(t){t=Ub(t||{}),t.whiteList=t.whiteList||Ua.whiteList,t.onAttr=t.onAttr||Ua.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Ua.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Ua.safeAttrValue,this.options=t}dp.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=zb(t,function(l,d,c,u,h){var p=a[c],f=!1;if(p===!0?f=p:typeof p=="function"?f=p(u):p instanceof RegExp&&(f=p.test(u)),f!==!0&&(f=!1),u=s(c,u),!!u){var m={position:d,sourcePosition:l,source:h,isWhite:f};if(f){var y=i(c,u,m);return qc(y)?c+":"+u:y}else{var y=n(c,u,m);if(!qc(y))return y}}});return o};var Hb=dp;(function(t,e){var r=Xr,a=Hb;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]})(zs,zs.exports);var oo=zs.exports,lo={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}},Gb=oo.FilterCSS,Qb=oo.getDefaultWhiteList,mn=lo;function cp(){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 up=new Gb;function Zb(t,e,r){}function Jb(t,e,r){}function Kb(t,e,r){}function Yb(t,e,r){}function pp(t){return t.replace(ev,"&lt;").replace(tv,"&gt;")}function Xb(t,e,r,a){if(r=bp(r),e==="href"||e==="src"){if(r=mn.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(Ha.lastIndex=0,Ha.test(r))return""}else if(e==="style"){if(Rc.lastIndex=0,Rc.test(r)||(kc.lastIndex=0,kc.test(r)&&(Ha.lastIndex=0,Ha.test(r))))return"";a!==!1&&(a=a||up,r=a.process(r))}return r=vp(r),r}var ev=/</g,tv=/>/g,rv=/"/g,iv=/&quot;/g,av=/&#([a-zA-Z0-9]*);?/gim,nv=/&colon;?/gim,sv=/&newline;?/gim,Ha=/((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,Rc=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,kc=/u\s*r\s*l\s*\(.*/gi;function hp(t){return t.replace(rv,"&quot;")}function fp(t){return t.replace(iv,'"')}function mp(t){return t.replace(av,function(e,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function yp(t){return t.replace(nv,":").replace(sv," ")}function gp(t){for(var e="",r=0,a=t.length;r<a;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return mn.trim(e)}function bp(t){return t=fp(t),t=mp(t),t=yp(t),t=gp(t),t}function vp(t){return t=hp(t),t=pp(t),t}function ov(){return""}function lv(t,e){typeof e!="function"&&(e=function(){});var r=!Array.isArray(t);function a(s){return r?!0:mn.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 mn.forEach(i,function(d){o+=s.slice(l,d[0]),l=d[1]}),o+=s.slice(l),o}}}function dv(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 cv(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("")}Be.whiteList=cp();Be.getDefaultWhiteList=cp;Be.onTag=Zb;Be.onIgnoreTag=Jb;Be.onTagAttr=Kb;Be.onIgnoreTagAttr=Yb;Be.safeAttrValue=Xb;Be.escapeHtml=pp;Be.escapeQuote=hp;Be.unescapeQuote=fp;Be.escapeHtmlEntities=mp;Be.escapeDangerHtml5Entities=yp;Be.clearNonPrintableCharacter=gp;Be.friendlyAttrValue=bp;Be.escapeAttrValue=vp;Be.onIgnoreTagStripAll=ov;Be.StripTagBody=lv;Be.stripCommentTag=dv;Be.stripBlankChar=cv;Be.cssFilter=up;Be.getDefaultCSSWhiteList=Qb;var xn={},Sr=lo;function uv(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 pv(t){return t.slice(0,2)==="</"}function hv(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=uv(c),a+=e(n,a.length,d,c,pv(c)),i=o+1,n=!1;continue}if(u==='"'||u==="'")for(var h=1,p=t.charAt(o-h);p.trim()===""||p==="=";){if(p==="="){s=u;continue e}p=t.charAt(o-++h)}}else if(u===s){s=!1;continue}}return i<t.length&&(a+=r(t.substr(i))),a}var fv=/[^a-zA-Z0-9\\_:.-]/gim;function mv(t,e){var r=0,a=0,i=[],n=!1,s=t.length;function o(h,p){if(h=Sr.trim(h),h=h.replace(fv,"").toLowerCase(),!(h.length<1)){var f=e(h,p||"");f&&i.push(f)}}for(var l=0;l<s;l++){var d=t.charAt(l),c,u;if(n===!1&&d==="="){n=t.slice(r,l),r=l+1,a=t.charAt(r)==='"'||t.charAt(r)==="'"?r:gv(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=yv(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=bv(t,l-1),u===-1){c=Sr.trim(t.slice(r,l)),c=jc(c),o(n,c),n=!1,r=l+1;continue}else continue}return r<t.length&&(n===!1?o(t.slice(r)):o(n,jc(Sr.trim(t.slice(r))))),Sr.trim(i.join(" "))}function yv(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="="?e:-1}}function gv(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="'"||r==='"'?e:-1}}function bv(t,e){for(;e>0;e--){var r=t[e];if(r!==" ")return r==="="?e:-1}}function vv(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function jc(t){return vv(t)?t.substr(1,t.length-2):t}xn.parseTag=hv;xn.parseAttr=mv;var Sv=oo.FilterCSS,kt=Be,Sp=xn,wv=Sp.parseTag,Cv=Sp.parseAttr,tn=lo;function Ga(t){return t==null}function xv(t){var e=tn.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=tn.trim(t.slice(e+1,-1));var r=t[t.length-1]==="/";return r&&(t=tn.trim(t.slice(0,-1))),{html:t,closing:r}}function Fv(t){var e={};for(var r in t)e[r]=t[r];return e}function Iv(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 wp(t){t=Fv(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=kt.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=Iv(t.whiteList||t.allowList):t.whiteList=kt.whiteList,t.onTag=t.onTag||kt.onTag,t.onTagAttr=t.onTagAttr||kt.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||kt.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||kt.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||kt.safeAttrValue,t.escapeHtml=t.escapeHtml||kt.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new Sv(t.css))}wp.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=kt.stripBlankChar(t)),r.allowCommentTag||(t=kt.stripCommentTag(t));var u=!1;r.stripIgnoreTagBody&&(u=kt.StripTagBody(r.stripIgnoreTagBody,n),n=u.onIgnoreTag);var h=wv(t,function(p,f,m,y,b){var v={sourcePosition:p,position:f,isClosing:b,isWhite:Object.prototype.hasOwnProperty.call(a,m)},S=i(m,y,v);if(!Ga(S))return S;if(v.isWhite){if(v.isClosing)return"</"+m+">";var x=xv(y),I=a[m],O=Cv(x.html,function(q,L){var A=tn.indexOf(I,q)!==-1,M=s(m,q,L,A);return Ga(M)?A?(L=l(m,q,L,c),L?q+'="'+L+'"':q):(M=o(m,q,L,A),Ga(M)?void 0:M):M});return y="<"+m,O&&(y+=" "+O),x.closing&&(y+=" /"),y+=">",y}else return S=n(m,y,v),Ga(S)?d(y):S},d);return u&&(h=u.remove(h)),h};var Tv=wp;(function(t,e){var r=Be,a=xn,i=Tv;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)})(_s,_s.exports);var pi=_s.exports,Pv=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},Av=(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=fn(fn({},pi.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):pi.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 pi.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?pi.escapeAttrValue(e):!n&&!i?pi.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):pi.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(Pv(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})(),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"},iF={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function Cp(t){return t?.colorMatch??!1}function Vc(t){let e=Gi();if(t!==void 0){let r=Y(t.series);(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries||r===g.BoxPlotSeries)&&(e=t.rotated??Gi())}return e}function aF(t){return t?.map(e=>e.type)??[]}function co(t){let e=t?.stackedType;if(e===void 0&&t!==void 0){let r=Y(t.series);(r===g.BarSeries||r===g.LineSeries||r===g.ComboLineAndBarSeries||r===g.RadarSeries)&&(e=tb())}return e}function Ov(t){let e=t;return e=e.replace(/'/gu,"''"),e=e.replace(/[/\\"|[\]\\]/gu,"\\$&"),e}function Lv(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 Us(t){let e=t,r="";t.startsWith("'")&&t.endsWith("'")&&(e=t.slice(1,-1),r="'"),e=e.replace(/'/gu,"''");let a="";return Lv(e)&&(a="N"),`${a}${r}${e}${r}`}function xp(t){let{value:e,keepSurroundingQuotes:r,escape:a}=t,i=e?.trim();if(!Le(i)){let n="";i.startsWith("'")&&i.endsWith("'")&&(i=i.slice(1,-1),r&&(n="'")),a!==!1&&(i=Ov(i)),i=`${n}${i}${n}`}return i}function ir(t){let{count:e,seriesCount:r,chartType:a,chartLimits:i}=t,{behaviorAfterLimit:n}=i??{},s=!0;if(n!==Lr.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:d,maxBarTwoSeriesCountTotal:c,maxBarThreePlusSeriesCountPerSeries:u,maxBarThreePlusSeriesCountTotal:h,maxLineChartSeriesCount:p,maxLineUniqueSeriesCountTotal:f,maxLineTwoSeriesCountPerSeries:m,maxLineTwoSeriesCountTotal:y,maxLineThreePlusSeriesCountPerSeries:b,maxLineThreePlusSeriesCountTotal:v,maxPieChartSliceCountTotal:S,maxGaugeByFeaturesLimit:x,maxBoxPlotSeriesCount:I,maxBoxUniqueSeriesCountTotal:O,maxBoxTwoSeriesCountTotal:q,maxBoxTwoSeriesCountPerSeries:L,maxBoxThreePlusSeriesCountTotal:A,maxBoxThreePlusSeriesCountPerSeries:M,maxHeatChartCellLimit:N}=Yr(i);switch(a){case g.BarSeries:case g.ComboLineAndBarSeries:{let R=e/r;r<=o?r===0?s=!0:r===1?s=e<=l:r===2?s=e<=c&&R<=d:r>2&&(s=e<=h&&R<=u):s=!1}break;case g.LineSeries:case g.RadarSeries:{let R=e/r;r<=p?r===0?s=!0:r===1?s=e<=f:r===2?s=e<=y&&R<=m:r>2&&(s=e<=v&&R<=b):s=!1}break;case g.PieSeries:s=e<=S;break;case g.BoxPlotSeries:{let R=e/r;r<=I?r===0?s=!0:r===1?s=e<=O:r===2?s=e<=q&&R<=L:r>2&&(s=e<=A&&R<=M):s=!1}break;case g.HeatSeries:s=e<=N;break;case g.GaugeSeries:s=e<=x;break}}return s}function Hs(t=[],e){let r=t.find(a=>a.name===e)?.alias;return r!==""?r??e:e}function nF(t=[],e){let r=t.find(a=>a.alias===e)?.name;return r!==""?r??e:e}function sF(t){let e=!1;switch(Y(t)){case g.HeatSeries:case g.PieSeries:e=!0;break;case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.ComboLineAndBarSeries:case g.BoxPlotSeries:e=t.length>1;break;case g.HistogramSeries:case g.ScatterSeries:{let r=t[0];e=r.overlays!==void 0&&Object.values(r.overlays).some(a=>a.created===!0);break}}return e}function Ev(t){let e=!0;return Y(t.series)===g.ScatterSeries&&(e=t.series.length===1),e}function Dv(t){let e=!0;return Y(t.series)===g.HistogramSeries&&(e=t.series.length<=1&&t.series[0].type===g.HistogramSeries&&(!("dataTransformationType"in t.series[0])||t.series[0].dataTransformationType!==void 0&&Object.values(Ge).includes(t.series[0].dataTransformationType))),e}function Nv(t){let e=!0;return Y(t.series)===g.PieSeries&&(e=t.series.length<=1),e}function oF(t,e){let r=Y(e?.series),a=r!==void 0&&t.includes(r);if(a&&e!==void 0)switch(r){case g.HistogramSeries:a=Dv(e);break;case g.ScatterSeries:a=Ev(e);break;case g.PieSeries:a=Nv(e);break}return a}function Le(t){return t==null||typeof t=="string"&&t.trim()===""}function rn(t,e){let r=e.find(a=>a in t);return{isInItem:r!==void 0,expr:r}}function Fn(t){return rn(t,Xu)}function lF(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 dF(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 cF(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===g.HistogramSeries&&(n=e.series[0].overlays?.mean);break;case rr.Median:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.median);break;case rr.StdDev:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.standardDeviation);break;case rr.Normal:e.series[0].type===g.HistogramSeries&&(n=e.series[0].overlays?.comparisonDistribution);break;case rr.Trendline:e.series[0].type===g.ScatterSeries&&(n=e.series[0].overlays?.trendLine);break;default:n=e.series.find(s=>s.id===r);break}n!==void 0&&(n.visible=i)}}function uF(t){return new Av().sanitize(t)}function Bv(t){return t!=null&&!Number.isNaN(t)&&Number.isFinite(t)}function pF(t,e){let r={fieldToSort:""};if(!Le(t)){let a=t.trim(),i=a.split(" ").at(-1)?.toUpperCase();i===ze.Ascending||i===ze.Descending?r={fieldToSort:a.substring(0,a.lastIndexOf(" ")),orderBy:i}:(r={fieldToSort:a},e!==!1&&(r.orderBy=ze.Ascending))}return r}function Fp(t){return t===C.BarAndLineSplitBy||t===C.BarAndLineSplitByNoAggregation||t===C.BoxPlotMonoFieldAndSplitBy||t===C.BoxPlotMultiFieldsAndSplitBy||t===C.BoxPlotMonoFieldAndCategoryAndSplitBy}function hF(t){return t?.selectionOIDs===void 0||t.selectionOIDs.length===0}function fF(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 mF(t){return Y(t.series)!==g.BoxPlotSeries?P.xAxisField:t.series[0].x}function yF(t){let e=co(t);return e===yt.Stacked||e===yt.Stacked100}function Mv(t){let e,r=t?.orderOptions?.data;return t.series?.length>0&&r?.orderType===nt.MultiAxes&&(e=[],e.push({sortingField:r.orderByX!==void 0?xe.xField:"",orderBy:r.orderByX}),e.push({sortingField:r.orderByY!==void 0?xe.yField:"",orderBy:r.orderByY})),e}function $v(t){let e=X(t.series),r;if(t.orderOptions?.data!==void 0){let a=t.orderOptions?.data?.orderType??nt.Category,i=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0;if(a===nt.Category)a=t.series[0].x;else{a===nt.Mean?a=H.Average:a===nt.Median&&(a=H.Median);let n=e===C.BoxPlotMultiFieldsAndCategory&&typeof t.series[0].y=="string"?t.series[0].y:void 0,s=Ye(t.series[0].query?.where),o=ut({where:t.series[0].query?.where});a=Ue({key:a,y:n,chartSubType:e,splitBy:s,splitByValue:o}),Array.isArray(i)&&(i=ze.Ascending)}r={sortingField:a,orderBy:i??ze.Ascending,preferLabel:t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel??!0:!0}}return r}function qv(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){if(o=t.orderOptions?.data?.orderType??nt.Category,l=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0,o===nt.Category?o=i?st:r:o=i?jt:[a].flat()[0],o!==void 0&&o!==""){let d=co(t);if(Y(t.series)!==g.PieSeries&&o!==r&&t.series?.length>1)switch(d){case yt.Stacked:o=P.technicalSortingFieldBySum;break;case yt.Stacked100:o=P.technicalSortingFieldByPercent;break;case yt.Side:typeof a=="string"&&(o=a);break}s={sortingField:o,orderBy:l??ze.Ascending,preferLabel:t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel:!0}}}else(n||i)&&t.series[0].query?.outStatistics&&(l=t.series[0].query.outStatistics.map(d=>d.onStatisticField),l?.length>1&&(s={sortingField:Qi.originalCategoryValue,orderBy:l,preferLabel:!1}));return s}function Gs(t){let e,r=Y(t.series);if(t.series?.length>0){let a;switch(r){case g.HeatSeries:wi(t)&&(e=Mv(t));break;case g.BoxPlotSeries:dt(t)&&(a=$v(t));break;case g.LineSeries:case g.BarSeries:case g.RadarSeries:case g.PieSeries:a=qv(t);break}!e&&a&&(e=[],e.push(a))}return e}function gF(t){let{oldConfig:e,newConfig:r,dataWasUpdated:a}=t,i=Y(r.series),n=X(r.series),s=!1,o=!1;if(n!==C.BoxPlotMonoField&&n!==C.BoxPlotMonoFieldAndSplitBy&&r.orderOptions?.data!==void 0){let l=Gs(e),d=Gs(r);if(i===g.HeatSeries){let c=l?l[0]:void 0,u=d?d[0]:void 0,h=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||h?.sortingField!==p?.sortingField||h?.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 bF(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 Rv(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 Ip(t){return wi(t)&&Fr(t?.axes?.[0]?.valueFormat)&&Fr(t?.axes?.[1]?.valueFormat)}function yn(t){let{dataInfo:e,chartType:r,subError:a}=t;switch(e.valid=!1,r){case g.BarSeries:case g.ComboLineAndBarSeries:e.invalidType=se.BarElementExceedsLimit;break;case g.LineSeries:e.invalidType=se.LineChartExceedsLimit;break;case g.PieSeries:e.invalidType=se.PieChartExceedsLimit;break;case g.GaugeSeries:e.invalidType=se.GaugeExceedsLimit;break;case g.BoxPlotSeries:a?.outlierLimit===!0?e.invalidType=se.BoxPlotOutliersExceedsLimit:e.invalidType=se.BoxPlotExceedsLimit;break;case g.HeatSeries:e.invalidType=se.HeatChartExceedsLimit;break}}function kv(t,e){t.valid=!1,t.invalidType=e}function vF(t){let{invalidType:e,chartLimits:r,elementCount:a,seriesCount:i,queryObject:n,filterBySelection:s,formatLocale:o=oh(document.documentElement),isTemporalChart:l,errorStrings:d}=t,c=d.errors.defaultInvalidChart,u,h=new Intl.NumberFormat(o),p=Yr(r),{maxCategoryCount:f}=p,m=d.modalHeaders.invalidChart;switch(e){case se.BarElementExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxBarChartSeriesCount?i===1?(v=d.errors.uniqueSeriesBarCountCannotExceedLimit,y=p.maxBarUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBarCountCannotExceedLimit,y=p.maxBarTwoSeriesCountTotal,b=p.maxBarTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusSeriesBarCountCannotExceedLimit,y=p.maxBarThreePlusSeriesCountTotal,b=p.maxBarThreePlusSeriesCountPerSeries):(v=d.errors.barSeriesCountCannotExceedLimit,b=p.maxBarChartSeriesCount));let S=h.format(y),x=h.format(b),I=a!==void 0?h.format(a):"";c=qe(v,{totalLimit:S,seriesLimit:x,elementCount:I}),u={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b};break}case se.LineChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxLineChartSeriesCount?i===1?(v=l?d.errors.uniqueTemporalSeriesLineCountCannotExceedLimit:d.errors.uniqueSeriesLineCountCannotExceedLimit,y=p.maxLineUniqueSeriesCountTotal):i===2?(v=l?d.errors.twoTemporalSeriesLineCountCannotExceedLimit:d.errors.twoSeriesLineCountCannotExceedLimit,y=p.maxLineTwoSeriesCountTotal,b=p.maxLineTwoSeriesCountPerSeries):i>2&&(v=l?d.errors.threePlusTemporalSeriesLineCountCannotExceedLimit:d.errors.threePlusSeriesLineCountCannotExceedLimit,y=p.maxLineThreePlusSeriesCountTotal,b=p.maxLineThreePlusSeriesCountPerSeries):(v=d.errors.lineSeriesCountCannotExceedLimit,b=p.maxLineChartSeriesCount));let S=h.format(y),x=h.format(b),I=a!==void 0?h.format(a):"";c=qe(v,{elementCount:I,seriesLimit:x,totalLimit:S}),u={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b}}break;case se.BoxPlotExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,b=Number.NaN,v="";i!==void 0&&(i<=p.maxBoxPlotSeriesCount?i===1?(v=d.errors.uniqueSeriesBoxCountCannotExceedLimit,y=p.maxBoxUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBoxCountCannotExceedLimit,y=p.maxBoxTwoSeriesCountTotal,b=p.maxBoxTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusBoxLineCountCannotExceedLimit,y=p.maxBoxThreePlusSeriesCountTotal,b=p.maxBoxThreePlusSeriesCountPerSeries):(v=d.errors.boxSeriesCountCannotExceedLimit,b=p.maxBoxPlotSeriesCount));let S=h.format(y),x=h.format(b),I=a!==void 0?h.format(a):"";c=qe(v,{elementCount:I,seriesLimit:x,totalLimit:S}),u={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:b}}break;case se.BoxPlotOutliersExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.boxSeriesOutlierCannotExceedLimit,b=p.maxBoxPlotOutlierLimit,v=h.format(b);c=qe(y,{totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:b}}break;case se.HeatChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.heatChartCannotExceedLimit,b=p.maxHeatChartCellLimit,v=h.format(b),S=a!==void 0?h.format(a):"";c=qe(y,{featureCount:S,totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:b}}break;case se.PieChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.pieChartSlicesCannotExceedLimit,b=p.maxPieChartSliceCountTotal,v=h.format(b),S=a!==void 0?h.format(a):"";c=qe(y,{sliceCount:S,totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:b}}break;case se.GaugeExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.gaugeCannotExceedLimit,b=p.maxGaugeByFeaturesLimit,v=h.format(b),S=a!==void 0?h.format(a):"";c=qe(y,{featureCount:S,totalLimit:v}),u={actualCount:a??Number.NaN,totalLimit:b}}break;case se.PieChartMixOfNegativePositiveSlices:m=d.modalHeaders.cannotCombineNegativeAndPositiveSlices,c=d.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;break;case se.NegativeValueInSqrtCalculation:m=d.modalHeaders.invalidData,c=d.errors.negativeValueInDataForSqrtTransformation;break;case se.NegativeValueInLogCalculation:m=d.modalHeaders.invalidData,c=d.errors.negativeValueInDataForLogTransformation;break;case se.HistogramEmptyField:s===!0?(m=d.modalHeaders.noDataAvailable,c=d.errors.noDataFBSMessage):Or(n)?(m=d.modalHeaders.noDataAvailable,c=d.errors.noDataFBEMessage):(m=d.modalHeaders.invalidChart,c=d.errors.histogramEmptyField);break;case se.EmptyDataSet:m=d.modalHeaders.noDataAvailable,s===!0?c=d.errors.noDataFBSMessage:Or(n)?c=d.errors.noDataFBEMessage:c=d.errors.noDataMessage;break;case se.NegativeValueInXAxisLogScale:c=d.errors.logarithmicXAxisNotPossible;break;case se.NegativeValueInYAxisLogScale:c=d.errors.logarithmicYAxisNotPossible;break;case se.BadData:}if(c===d.errors.defaultInvalidChart&&(e===se.BarElementExceedsLimit||e===se.LineChartExceedsLimit||e===se.HeatChartExceedsLimit||e===se.PieChartExceedsLimit||e===se.GaugeExceedsLimit||e===se.BoxPlotExceedsLimit)&&typeof a=="number"&&typeof i=="number"&&a/i>f){let y=a/i;c=qe(d.errors.categoryCountCannotExceedLimit,{categoryCount:h.format(y),maxCategoryCount:h.format(f)})}return{keyword:e??se.BadData,header:m,message:c,params:u}}function xi(t,e){return`${e}_${t}`}function Qs(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:H.Average}),c=Ue({...l,key:H.StandardDeviation}),u=n??Number(e[d]),h=s??Number(e[c]);return Number.isFinite(u)&&Number.isFinite(h)&&Object.values(H).forEach(p=>{let f=Ue({key:p,y:a,chartSubType:r,splitByValue:i}),m=e[f];if(m!=null){let y=Number(m);if(Number.isFinite(y)){l={...l,key:p,showOutliers:!1,standardizeValues:!0};let b=Ue(l);if(o[b]=Qs({mean:u,stdDev:h,value:y}),p===H.Min||p===H.Max){l={...l,key:p,showOutliers:!0,standardizeValues:!0},b=Ue(l),l={...l,standardizeValues:!1,splitByValue:i};let v=Ue(l);y=Number(e[v]),Number.isFinite(y)&&(o[b]=Qs({mean:u,stdDev:h,value:y}))}}}}),o}function jv(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(P.rendererSymbolField)&&(o[l]=i[l]),o[P.boxPlot.boxPlotCategory]=s,a&&(o=uo({dataItem:o,chartSubType:C.BoxPlotMultiFields}))}),n.set(s,o)}),Array.from(n.values())}function Vv(t){let{data:e,splitByField:r,y:a}=t,i={[P.boxPlot.boxPlotCategory]:a};return e.forEach(n=>{let s=n[r];s!==void 0&&Object.keys(n).forEach(o=>{o===P.rendererSymbolField?i[`${o}_${s?.toString()}`]=n[o]:o===P.boxPlot.boxPlotMeanLineMarkerId?i[o]=n[o]:i[`${s?.toString()}_${o}`]=n[o]})}),[i]}function Wv(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={[P.boxPlot.boxPlotCategory]:d};Object.entries(o).forEach(([u,h])=>{u.startsWith(`${d}_`)?c[`${l}_${u.replace(`${d}_`,"")}`]=h:u.includes(P.rendererSymbolField)?c[`${u}_${l}`]=h:u===P.boxPlot.boxPlotMeanLineMarkerId&&(c[u]=o[u])}),i&&(c=uo({dataItem:c,chartSubType:C.BoxPlotMultiFieldsAndSplitBy,splitByValue:l,meanPerField:n?.[xi(d,j.Average)],stdDevPerField:n?.[xi(d,j.StandardDeviation)]})),s.set(d,{...s.get(d)??{},...c})})}),Array.from(s.values())}function _v(t){let{data:e,yList:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,n=e;return a&&n.forEach(s=>{r.forEach(o=>{uo({dataItem:s,chartSubType:C.BoxPlotMultiFieldsAndCategory,y:o,meanPerField:i?.[xi(o,j.Average)],stdDevPerField:i?.[xi(o,j.StandardDeviation)]})})}),n}function zv(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(P.rendererSymbolField))o[`${P.rendererSymbolField}_${l?.toString()}`]=c;else if(d===P.boxPlot.boxPlotMeanLineMarkerId)o[d]=n[d];else if(d!==e&&d!==r){let u=d!==P.xAxisField&&d!==P.originalCategoryValue&&d!==P.typeOrDomainIdValue&&d!==P.typeOrDomainFieldName?`${l?.toString()}_${d}`:d;o[u]=c}}),i.set(s,{...i.get(s)??{},...o})}),Array.from(i.values())}function Uv(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=ut({where:l.query?.where,normalize:!1,escape:!0});return d!==null&&`${d}`.startsWith("'")&&`${d}`.endsWith("'")&&(d=d.substring(1,d.length-1)),d});o.length===0&&o.push(" "),e.forEach(l=>{o.forEach(d=>{s.splitByValue=d;let c=Ue({...s,key:H.Min,showOutliers:!0}),u=Ue({...s,key:H.Min,showOutliers:!1}),h=Ue({...s,key:H.Max,showOutliers:!0}),p=Ue({...s,key:H.Max,showOutliers:!1});l[h]===void 0&&l[p]!==void 0&&(l[h]=l[p]),l[c]===void 0&&l[u]!==void 0&&(l[c]=l[u])})})}function Hv(t,e){let r,a,i=t[e[H.IQR]],n=t[e[H.FirstQuartile]],s=t[e[H.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 Wc(t){let{yField:e,xField:r,xValue:a,splitByField:i,splitByValue:n,outlierMaxThreshold:s,outlierMinThreshold:o,target:l}=t,d;if(r!==void 0&&a!==void 0){let h=typeof a!="string"?a:`'${Us(a)}'`;d=`${r}=${h.toString()}`}let c;if(i!==void 0&&n!==void 0){let h=typeof n!="string"?n:`'${Us(n)}'`;c=`${i}=${h.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(h=>h!==void 0).join(" AND ")}function Tp(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=vi(s),l=[],d=[],{maxOperandsPerWhereClause:c}=aa(),u=[],h=[],p=1;return e.forEach((f,m)=>{let{outlierMinThreshold:y,outlierMaxThreshold:b}=Hv(f,o);if(typeof y=="number"&&typeof b=="number"){let v={yField:r,outlierMinThreshold:y,outlierMaxThreshold:b};(i===C.BoxPlotMonoFieldAndCategory||i===C.BoxPlotMultiFieldsAndCategory||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&a!==void 0&&a in f&&(v.xField=a,v.xValue=Ji({value:f[a],dataContext:f,keepNullValues:!0,specificField:P.typeOrDomainIdValue})),(i===C.BoxPlotMonoFieldAndSplitBy||i===C.BoxPlotMultiFieldsAndSplitBy||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&n!==void 0&&n in f&&(v.splitByField=n,v.splitByValue=f[n]),u.push(Wc({...v,target:"outliers"})),h.push(Wc({...v,target:"alternativeData"})),(p%c===0||m===e.length-1)&&(l.push(be(u,"OR")),d.push(be(h,"OR")),u=[],h=[])}p+=1}),{outliersFilterBatches:l,dataWithoutOutliersFilterBatches:d}}function Gv(t){let{data:e,outlierDataItem:r,chartSubType:a,x:i,y:n,meanAndStdDevPerField:s,splitByField:o}=t,l=s?.[xi(n,j.Average)],d=s?.[xi(n,j.StandardDeviation)];if(l===void 0&&d===void 0)switch(a){case C.BoxPlotMultiFields:{let c=vi(n),u=e[0];l=Number(u[c[H.Average]]),d=Number(u[c[H.StandardDeviation]]);break}case C.BoxPlotMultiFieldsAndCategory:{let c=e.find(u=>u[i]===r[i]);if(c!==void 0){let u=vi(n);l=Number(c[u[H.Average]]),d=Number(c[u[H.StandardDeviation]])}break}case C.BoxPlotMultiFieldsAndSplitBy:{let c=e.find(u=>u[o]===r[o]);if(c!==void 0){let u=vi(n);l=Number(c[u[H.Average]]),d=Number(c[u[H.StandardDeviation]])}break}}return{mean:l,stdDev:d}}async function Qv(t){let{seriesConfig:e,data:r,uniqueQuery:a,queryObject:i,meanAndStdDevPerField:n,abortKey:s}=t,o=X(e),l=e[0],{x:d}=l,c=Ye(l.query?.where),u=de(i),h=Zt(u).idField,p=tt(e),f=[];for(let b=0;b<p.length;b+=1){let v=p[b],{outliersFilterBatches:S}=Tp({data:r,yField:v,x:d,chartSubType:o,splitByField:c});for(let x=0;x<S.length;x+=1){let I=S[x];if(I!==""){let O=[];d!==P.boxPlot.boxPlotCategory&&O.push(d),O.push(v),c!==""&&O.push(c),O.push(h);let q={...a,where:be([a.where,I]),groupByFieldsForStatistics:void 0,outStatistics:void 0,orderByFields:void 0,num:void 0,outFields:O};f.push(Bt({queryObject:i,queryConfig:q,featureCount:1,abortKey:s}))}}}let m=await Promise.all(f),y=new Map;for(let b=0;b<m.length;b+=1){let v=m[b],S=p[b];v.forEach(x=>{let I={...x.attributes};if(I[S]!==void 0){d===P.boxPlot.boxPlotCategory&&(I[P.boxPlot.boxPlotCategory]=S);let O={key:H.Outlier,chartSubType:o};switch(o){case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:O={...O,splitByValue:I[c]};break;case C.BoxPlotMultiFieldsAndCategory:O={...O,y:S};break}let q=Ue(O),L=I[S];I[q]=L;let A=`${I[d]}-${I[c]}-${L}`,M=y.get(A);if(I[Ne.uniqueIdsName]=[...M?.[Ne.uniqueIdsName]??[],I[h]],delete I[h],ah(o)){let N=Ue({...O,standardizeValues:!0}),{mean:R,stdDev:$}=Gv({data:r,outlierDataItem:I,chartSubType:o,x:d,y:S,splitByField:c,meanAndStdDevPerField:n});R!==void 0&&$!==void 0&&(I[N]=Qs({value:L,mean:R,stdDev:$}))}delete I[S],I[P.boxPlot.boxPlotOutlierId]=!0,y.set(A,I)}})}return Array.from(y.values())}async function Zv(t){let{data:e,queryObject:r,uniqueQuery:a,elementCount:i,chartConfig:n,chartLimits:s,abortKey:o}=t,l=[],{series:d,showMean:c}=n,u=Tn({showMean:c,seriesConfig:d}),h=X(d),p=Nr(n),{x:f}=p,m=Ye(p.query?.where),y=[];for(let v=0;v<u.length;v+=1){let S=u[v],{dataWithoutOutliersFilterBatches:x}=Tp({data:e,yField:S,x:f,chartSubType:h,splitByField:m});for(let I=0;I<x.length;I+=1){let O=x[I],q={...a,where:be([a.where,O])};q.outStatistics!==void 0&&(q.outStatistics=q.outStatistics?.filter(L=>(L.statisticType===j.Minimum||L.statisticType===j.Maximum)&&L.onStatisticField===S).map(L=>({...L,outStatisticFieldName:`${L.outStatisticFieldName}${P.boxPlot.boxPlotOutliersSuffix}`}))),y.push(In({queryObject:r,uniqueQuery:q,chartConfig:n,elementCount:i,isTimeBinningSeries:!1,showMean:c,chartLimits:s,abortKey:o}))}}let b=await Promise.all(y);for(let v=0;v<b.length;v+=1)l.push(...b[v]);return h!==C.BoxPlotMonoFieldAndCategoryAndSplitBy&&(l=Ki({data:l,x:m!==void 0&&m!==""?m:f})),l}async function Jv(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,abortKey:i}=t,n,{series:s,showMean:o}=a,l=X(s);if(l===C.BoxPlotMultiFieldsAndCategory||l===C.BoxPlotMultiFieldsAndSplitBy){let d=Tn({showMean:o,seriesConfig:s}),c={...r};delete c.outStatistics,delete c.groupByFieldsForStatistics,delete c.orderByFields;let u=[];for(let p=0;p<d.length;p+=1){let f=d[p];u.push({statisticType:j.Average,onStatisticField:f,outStatisticFieldName:`${j.Average}_${f}`},{statisticType:j.StandardDeviation,onStatisticField:f,outStatisticFieldName:`${j.StandardDeviation}_${f}`})}c.outStatistics=u;let h=await Bt({queryObject:e,queryConfig:c,featureCount:1,abortKey:i});h.length>0&&(n=h[0].attributes)}return n}function Kv(t){let{data:e,additionalData:r,chartConfig:a}=t,i=a.series[0],{x:n}=i,s=Ye(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=Nr(e),l=X(e.series),{x:d}=o,c=Tn({showMean:s,seriesConfig:n}),u=r;if(r?.[0]!==void 0){let h=Ye(o.query?.where);switch(l){case C.BoxPlotMonoField:u[0][P.boxPlot.boxPlotCategory]=c[0];break;case C.BoxPlotMultiFields:u=jv({data:r,yList:c,calculateZScore:a});break;case C.BoxPlotMonoFieldAndSplitBy:u=Vv({data:r,splitByField:h,y:c[0]});break;case C.BoxPlotMultiFieldsAndSplitBy:u=Wv({splitByField:h,data:r,yList:c,meanAndStdDevPerField:i,calculateZScore:a});break;case C.BoxPlotMultiFieldsAndCategory:u=_v({data:r,yList:c,meanAndStdDevPerField:i,calculateZScore:a});break;case C.BoxPlotMonoFieldAndCategoryAndSplitBy:u=zv({splitByField:h,x:d,data:r});break;case C.BoxPlotMonoFieldAndCategory:}}return Uv(e,u),u}async function Yv(t){let{data:e,queryObject:r,uniqueQuery:a,fetchFullBoxPlotData:i,chartConfig:n,elementCount:s,chartLimits:o,abortKey:l}=t,d=e,c=[];if(d!==void 0){let{series:u}=n,h=await Jv({queryObject:r,uniqueQuery:a,chartConfig:n,abortKey:l});if(i!==!1){c=await Qv({queryObject:r,uniqueQuery:a,seriesConfig:u,data:d,abortKey:l});let p=await Zv({queryObject:r,uniqueQuery:a,elementCount:s,data:e,chartConfig:n,chartLimits:o,abortKey:l});d=Kv({data:d,additionalData:p,chartConfig:n})}d=Pp({chartConfig:n,data:d,meanAndStdDevPerField:h,calculateZScore:!0})}return{dataItems:d,outliers:c}}function Ap(t){let{outTimeZone:e=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:r="UTC",runsOnClientQueryEngine:a}=t,i="",n=ae.now().setZone(e),s=n.offset/60,o=r?n.setZone(r).offset/60:0,l=s-o;if(l!==0)if(a)i=`${l>0?"+":"-"}1*INTERVAL '${Math.abs(l)}' HOUR `;else{let d=Math.abs(l%1),c=Math.round(d*60);l=Math.floor(l),i=l>0?`+INTERVAL '${Math.abs(l)}:${c!==0?c:"00"}:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(l)-(c!==0?0:1)}:${c!==0?String(c-1):"59"}:59' HOUR TO SECOND`}return i}function Xv(t){let{dateFieldName:e,unit:r,runsOnClientQueryEngine:a}=t,i=Ap({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 e0(t){let{whereValue:e,outStatistics:r,y:a}=t,i=Ne.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 t0(t){let e=new Map;for(let r=0;r<t.length;r+=1){let a=t[r],i=a.query?.where;if(i!==void 0&&"y"in a){let n=ut({where:i,normalize:!0,escape:!1});if(n!==""){let s=e0({whereValue:n,outStatistics:a.query?.outStatistics?.[0],y:a.y});a.y=s,e.set(n,s)}}}return e}function r0(t){let{uniqueQuery:e,splitByField:r,x:a}=t,i=[...e.groupByFieldsForStatistics??[],a,r].filter(n=>n!==void 0&&n.trim()!==""&&n!==Li);e.groupByFieldsForStatistics=Array.from(new Set(i))}function Op(t){return t.statisticType===j.ContinuousPercentile||t.statisticType===j.DiscretePercentile}function i0(t){let{uniqueQuery:e,y:r,useGenericOutStatFieldName:a,queryObject:i,chartSubType:n,isTimeBinningSeries:s,returnFeaturesExtent:o,splitByField:l}=t,d=Ne.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 h=c[u];h!==void 0&&Op(h)&&(s&&!Yi(i)?(c[u].statisticType=j.Count,delete c[u].statisticParameters):c[u]={...c[u],statisticParameters:c[u].statisticParameters??{value:P.defaultStatParameterValue}})}}else if(i!==void 0){let c=de(i),{idField:u,isTraditionalTypeOID:h}=Zt(c),p=h?u:"*";e.outStatistics=[{statisticType:d.statisticType,onStatisticField:p,outStatisticFieldName:a?d.outStatisticFieldName:[r].flat()[0]}]}o===!0&&(!s||Le(l))&&e.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"})}function a0(t){let{chartConfig:e,fetchFullBoxPlotData:r}=t,{series:a}=e,i=Zi(e),n=[{statisticType:j.Average,suffix:H.Average}];r===!0&&(n=[...n,{statisticType:j.Minimum,suffix:H.Min},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.25},suffix:H.FirstQuartile},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.5},suffix:H.Median},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.75},suffix:H.ThirdQuartile},{statisticType:j.Maximum,suffix:H.Max},{statisticType:j.StandardDeviation,suffix:H.StandardDeviation}]);let s=new Set;return i&&"y"in a[0]?[a[0].y].flat().forEach(o=>s.add(o)):a.forEach(o=>{"y"in o&&[o.y].flat().forEach(l=>s.add(l))}),[...s].flatMap(o=>n.map(l=>{let d={onStatisticField:o,statisticType:l.statisticType,outStatisticFieldName:`${o}_${l.suffix}`};return l.statisticType===j.ContinuousPercentile&&(d.statisticParameters=l.statisticParameters),d}))}function n0(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 s0(t){let{uniqueQuery:e,x:r,splitByField:a,unit:i,chartSubType:n,objectIdFields:s,runsOnClientQueryEngine:o}=t;if(i!==void 0){let l=Xv({dateFieldName:r,unit:i,runsOnClientQueryEngine:o});e.orderByFields=l,e.groupByFieldsForStatistics=l,n===C.BarAndLineSplitBy&&!Le(a)?e.groupByFieldsForStatistics.push(a):n===C.BarAndLineNoAggregation&&(e.groupByFieldsForStatistics=s,e.outStatistics=[{onStatisticField:s.length>1?"*":s[0],outStatisticFieldName:`COUNT_${s[0]}`,statisticType:j.Count}])}}function Lp(t){let{chartConfig:e,options:r,uniqueQuery:a}=t;if(r?.chartLimits?.behaviorAfterLimit===Lr.RenderUpToTheLimit){let i=op(e,r?.chartLimits);if(i!==void 0){let n=X(e.series);if(n===C.PieFromFields||n===C.BarAndLineFromFields){if(a.outStatistics?.[0]!==void 0){let s=(d,c)=>d.statisticType===j.EnvelopeAggregate===c,o=a.outStatistics.filter(d=>s(d,!0)),l=a.outStatistics.filter(d=>s(d,!1));l.splice(i),a.outStatistics=[...l,...o]}}else a.num=i}}}async function po(t){let{chartConfig:e,queryConfig:r,options:a,queryObject:i,timeIntervalInfo:n,fetchFullBoxPlotData:s}=t,{setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l}=a??{},d=e.series,c=X(d),u=Nr(e),{query:h,x:p}=u,f="y"in u?u.y:void 0,m=ei({xAxisValueFormatType:lr(e),setTimeBinningInfoWhenNotProvided:o,seriesConfig:u}),y=new Map,b=!1,v=!1,S=!1,x=!1,I=!1,O={};if(h!==void 0){O=kr(h);let k=Ye(h.where),z="";switch(r.fetchNullValues!==!0&&(p!==P.boxPlot.boxPlotCategory&&(z=`${p} IS NOT NULL`),k.trim()!==""&&k!==p&&!ar(h.where)&&(z=be([z,`${k} IS NOT NULL`]))),c){case C.BarAndLineSplitBy:{y=t0(d),x=!0,b=!0,v=!0;break}case C.BarAndLineMultiFields:n0(O,d),v=!0;break;case C.PieFromFields:case C.BarAndLineFromFields:z="",S=!0,v=!0;break;case C.BarAndLineMonoField:case C.PieFromCategory:v=!0;break;case C.BoxPlotMonoField:case C.BoxPlotMultiFields:S=!0,I=!0;break;case C.BoxPlotMonoFieldAndCategory:case C.BoxPlotMultiFieldsAndCategory:case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:{I=!0,x=!0,S=!0;break}case C.PieNoAggregation:case C.BarAndLineNoAggregation:case C.BarAndLineSplitByNoAggregation:}if(v&&i0({uniqueQuery:O,y:f,useGenericOutStatFieldName:b,queryObject:i,chartSubType:c,isTimeBinningSeries:m,returnFeaturesExtent:l,splitByField:k}),x&&r0({uniqueQuery:O,splitByField:k,x:p}),dt(e)&&I&&(O.outStatistics=a0({chartConfig:e,fetchFullBoxPlotData:s})),S?delete O.orderByFields:r.orderByFields!==void 0&&(O.orderByFields=r.orderByFields.filter(Z=>{let W=Z.split(" ");return!Le(W[0])})),m&&Wt(d[0])){let Z=de(i),{idFields:W}=Co(Z);(await Ct(i)).find(G=>G.name===p)?.type!==Te.DateOnly&&W&&s0({uniqueQuery:O,x:p,splitByField:Ye(h.where),unit:n?.unit??d[0].temporalBinning?.unit,chartSubType:c,objectIdFields:W,runsOnClientQueryEngine:Or(i)})}O.where=z}Lp({chartConfig:e,options:a,uniqueQuery:O});let{gdbVersion:q,geometry:L,distance:A,units:M,timeExtent:N,where:R,objectIds:$,spatialRelationship:E}=r;return q!==void 0&&(O.gdbVersion=q),L!==void 0&&(O.geometry=L),A!==void 0&&(O.distance=A),M!==void 0&&(O.units=M),N!==void 0&&(O.timeExtent=N),$!==void 0&&(O.objectIds=$),E!==void 0&&(O.spatialRelationship=E),R!==void 0&&(O.where=be([O.where,R])),{uniqueQuery:O,mapToStatField:y}}async function o0(t){let{queryObject:e,queryConfig:r,chartConfig:a,abortKey:i}=t,n=a.series[0],{x:s,valueConversion:o}=n,l=xo(a),d=await Bt({queryObject:e,queryConfig:r,featureCount:r.num??1,abortKey:i}),c=[{[s]:null}];if(l)c=d.map(u=>{fo(u.attributes,s);let h=$c(u.attributes[s],o);return{...u.attributes,[s]:h}});else if(d.length>0){let u=d[0].attributes[s]??d[0].attributes[s.toUpperCase()]??d[0].attributes[s.toLowerCase()];u=$c(u,o),c=[{[s]:u}]}return c}async function l0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:n}=t,{chartLimits:s}=i??{},o={valid:!0};if(e!==void 0){let{behaviorAfterLimit:l,maxGaugeByFeaturesLimit:d}=s??{},c=xo(r),u=!0,h;if(c&&(h=(await Up({chartConfig:r,queryObject:e,queryConfig:a,behaviorAfterLimit:l,numberMaxOfFeaturesToFetch:d,isGaugeByFeature:c})).elementCount,i?.chartLimits?.behaviorAfterLimit!==Lr.RenderUpToTheLimit&&(u=ir({count:h??0,seriesCount:r.series.length,chartType:g.GaugeSeries,chartLimits:s})),i&&(Number.isFinite(d)||Number.isFinite(h)))){let p=Math.min(d??Number.NaN,h??Number.NaN);Number.isFinite(p)&&(i.chartLimits={...s,maxGaugeByFeaturesLimit:p}),Lp({chartConfig:r,options:i,uniqueQuery:a})}if(Number.isNaN(u)||u){let p=await o0({queryObject:e,chartConfig:r,queryConfig:a,abortKey:n});o.data={dataItems:p},o.count=p.length}else o.count=h,yn({dataInfo:o,chartType:g.GaugeSeries})}return o}async function SF(t){let{queryObject:e,chartConfig:r,queryConfig:a}=t,{minimumFromField:i,maximumFromField:n}=r.axes[0],s=[],o="",l="";i!==void 0&&(typeof i=="string"?(o=`${j.Minimum}_${i}`,s.push({statisticType:j.Minimum,onStatisticField:i,outStatisticFieldName:o})):(o=`${i.statisticType}_${i.onStatisticField}`,s.push({...i,outStatisticFieldName:o}))),n!==void 0&&(typeof n=="string"?(l=`${j.Maximum}_${n}`,s.push({statisticType:j.Maximum,onStatisticField:n,outStatisticFieldName:l})):(l=`${n.statisticType}_${n.onStatisticField}`,s.push({...n,outStatisticFieldName:l})));let d={...a,outStatistics:s,orderByFields:void 0,groupByFieldsForStatistics:void 0,returnDistinctValues:void 0,fetchNullValues:void 0,num:void 0},c=await sa({queryObject:e,queryConfig:d}),u=c.get(o),h=c.get(l);return{minimumFromData:u,maximumFromData:h}}function d0(t=Ge.None,e){return t===Ge.None||t===Ge.Log&&e>0||t===Ge.Sqrt&&e>=0}function Ep(t,e){let r={valid:!1};return e===!0?r.invalidType=se.HistogramEmptyField:t===Ge.Log?r.invalidType=se.NegativeValueInLogCalculation:t===Ge.Sqrt&&(r.invalidType=se.NegativeValueInSqrtCalculation),r}function c0(t,e){let r=t;switch(e){case Ge.Log:r=Math.log(t);break;case Ge.Sqrt:r=Math.sqrt(t);break}return r}function u0(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 Dp(t){let e="field";switch(t){case Ge.Log:e="natural-log";break;case Ge.Sqrt:e="square-root";break;case Ge.None:}return e}async function p0(t){let{queryObject:e,fieldName:r,queryConfig:a,abortKey:i}=t,n=de(e),{idField:s,isTraditionalTypeOID:o}=Zt(n),l=o?s:"*",d=`${j.Count}_${s}`,c=`${j.Count}_${r}`,u=`${j.Minimum}_${r}`,h=`${j.Maximum}_${r}`,p={...a,outStatistics:[{statisticType:j.Count,onStatisticField:l,outStatisticFieldName:d},{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:c},{statisticType:j.Minimum,onStatisticField:r,outStatisticFieldName:u},{statisticType:j.Maximum,onStatisticField:r,outStatisticFieldName:h}]},f=await sa({queryObject:e,queryConfig:p,abortKey:i}),m=f.get(d)??Number.NaN,y=f.get(c)??Number.NaN,b=f.get(u)??Number.NaN,v=f.get(h)??Number.NaN;return{countExcludingNulls:y,countIncludingNulls:m,min:b,max:v}}async function h0(t){let{queryConfig:e,chartConfig:r,queryObject:a,abortKey:i}=t,n=r.series[0],{x:s,dataTransformationType:o}=n,l=[],{countIncludingNulls:d,countExcludingNulls:c,min:u,max:h}=await p0({queryObject:a,queryConfig:e,fieldName:s,abortKey:i}),p=d0(o,u),f=c<2||u===h,m={...e};return m.where=be([m.where,`${s} is not null`]),{rawData:l,dataCompatibleWithTransformation:p,dataCountIncompatible:f,countExcludingNulls:c,countIncludingNulls:d}}function f0(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 m0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,queryConfig:n}=t,{x:s,dataTransformationType:o}=e,l={layer:r,view:i,field:s,sqlWhere:ar(n.where)?void 0:n.where,useFeaturesInView:a};return o!==Ge.None&&(l={...l,normalizationType:Dp(o)}),l}function y0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,minValue:n,maxValue:s,queryConfig:o}=t,{x:l,binCount:d,dataTransformationType:c}=e,u={layer:r,view:i,field:l,minValue:n,maxValue:s,numBins:d??Bg,classificationMethod:"equal-interval",sqlWhere:ar(o.where)?void 0:o.where,useFeaturesInView:a};return c!==Ge.None&&(u={...u,normalizationType:Dp(c)}),u}function g0(t,e){let r=Number.NaN;return t!==void 0&&e!==void 0&&(r=t-e),r}async function b0(t){let{chartConfig:e,queryConfig:r,queryObject:a,countExcludingNulls:i,countIncludingNulls:n,options:s,errorStrings:o}=t,l=e.series[0],{dataTransformationType:d}=l,c={valid:!0};if(a!==void 0){let u=de(a),h=go(r?.geometry)?.extent?.toJSON()!==void 0,p=s?.view,f=m0({seriesConfig:l,layer:u,view:p,useFeaturesInView:h,queryConfig:r}),m;if(p!==void 0&&(m=new tc({geometry:p.extent}),p.extent!==void 0&&Zp(u))){let{distance:L,units:A}=r;L!==void 0&&(m.distance=L),A!==void 0&&(m.units=A)}if(r.timeExtent){let L={start:r.timeExtent[0],end:r.timeExtent[1]};m===void 0?m=new tc({timeExtent:L}):m.timeExtent=L}f.filter=m;let y;f.outStatisticTypes={exclude:["median"]};try{y=await rc(f)}catch(L){throw new ct(wt.QueryFeaturesError,o.errors.queryError,L)}f.outStatisticTypes={include:["median"]};try{let L=await rc(f);L?.median&&(y.median=L.median)}catch{}y=f0(y);let{avg:b,count:v,stddev:S,min:x,max:I,sum:O,median:q}=y;if(v===0)c={...Ep(d)};else{let L=y0({seriesConfig:l,layer:u,view:p,useFeaturesInView:h,minValue:u0(x),maxValue:I,valueExpression:f.valueExpression,queryConfig:r});L.filter=m;let A;try{A=await wm(L)}catch(N){throw new ct(wt.QueryFeaturesError,o.errors.queryError,N)}let M=g0(n,i);c.data={mean:b,stddev:S,min:x,max:I,median:Number(q),bins:A?.bins,count:i,nulls:M,sum:O??void 0},c.data.bins.length>0&&(c.data.bins[c.data.bins.length-1].isLastBin=!0)}}return c}async function Np(t){let{chartConfig:e,queryConfig:r,queryObject:a,options:i,abortKey:n,errorStrings:s}=t,{series:o}=e,l=o[0],{rawData:d,dataCompatibleWithTransformation:c,dataCountIncompatible:u,countIncludingNulls:h,countExcludingNulls:p}=await h0({queryObject:a,chartConfig:e,queryConfig:r,abortKey:n}),f={valid:!0};return!c||u?f=Ep(l.dataTransformationType,u):f=await b0({chartConfig:e,queryObject:a,queryConfig:r,countIncludingNulls:h,countExcludingNulls:p,options:i,errorStrings:s}),f}async function v0(t){let{queryObject:e,queryConfig:r,chartConfig:a,x:i}=t,{series:n}=a,{dataTransformationType:s}=n[0],o={...r,orderByFields:[i],outFields:[i]};return{valid:!0,data:{dataItems:(await Bt({queryObject:e,queryConfig:o})).map(l=>({[i]:c0(l.attributes[i],s)}))}}}var Jr={groupByCaseBegin:"CASE",groupByOutKeyword:"OUT",groupByCaseEnd:"ELSE 'OUT' END"},S0="{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";async function w0(t){let{chartConfig:e,queryObject:r,queryConfig:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,{dataContextCountDistinctX:l,dataContextCountDistinctY:d}=P.scatterplotAggregationFields,c={...a,outStatistics:[{statisticType:j.Count,outStatisticFieldName:l,onStatisticField:s},{statisticType:j.Count,outStatisticFieldName:d,onStatisticField:o}],returnDistinctValues:!0};return await sa({queryObject:r,queryConfig:c,abortKey:i})}async function C0(t){let{statsMap:e,chartConfig:r,queryObject:a,options:i,queryConfig:n,abortKey:s}=t,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:c,dataContextCountDistinctX:u,dataContextCountDistinctY:h}=P.scatterplotAggregationFields,p,f,m,y,b,v=e.get(o),S=e.get(l),x=e.get(d),I=e.get(c);if(v!=null&&x!==void 0&&x!==null&&S!==void 0&&S!==null&&I!==void 0&&I!==null&&!Number.isNaN(v+S+x+I)){let{maxScatterPointsAfterAggregation:O}=Yr(i?.chartLimits),q=Math.floor(Math.sqrt(O)),L=await w0({queryObject:a,chartConfig:r,queryConfig:n,abortKey:s});m=Math.min(L.get(h)??Number.NaN,q),y=Math.min(L.get(u)??Number.NaN,q),b=y*m,p=S===v?0:(S-v)/(y-1),f=I===x?0:(I-x)/(m-1),e.set(P.scatterplotAggregationFields.xStep,p),e.set(P.scatterplotAggregationFields.yStep,f),e.set(P.scatterplotAggregationFields.rowCount,m),e.set(P.scatterplotAggregationFields.columnCount,y),e.set(P.scatterplotAggregationFields.realGridSize,b)}}function x0(t){let{groupByFieldsForStatistics:e,x:r,y:a,xValue:i,yValue:n,xStep:s,yStep:o,endOfRow:l,endOfColumn:d}=t,c=e===""?Jr.groupByCaseBegin:e;return c=qe(S0,{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 F0(t){let{chartConfig:e,queryConfig:r,queryObject:a,xMin:i,xMax:n,yMin:s,yMax:o,abortKey:l}=t,d=e.series[0],{x:c,y:u}=d,h={...r};return h.where=be([h.where,`${c}>=${i}`,`${c}<=${n}`]),c!==u&&(h.where=be([h.where,`${u}>=${s}`,`${u}<=${o}`])),await Bt({queryObject:a,queryConfig:h,noBatch:!0,featureCount:1,abortKey:l})}async function I0(t){let{statsMap:e,chartConfig:r,queryObject:a,queryConfig:i,useQueryAttributeBins:n,errorStrings:s,abortKey:o}=t,l=r.series[0],{x:d,y:c}=l,{dataContextXMinField:u,dataContextXMaxField:h,dataContextYMinField:p,dataContextYMaxField:f,queryNumberOfFeatures:m,queryNumberOfAggregatedFeatures:y}=P.scatterplotAggregationFields,b,v=e?.get(u)??Number.NaN,S=e?.get(h)??Number.NaN,x=e?.get(m)??Number.NaN,I=e?.get(p)??v,O=e?.get(f)??S;if(v!=null&&I!==void 0&&I!==null&&S!==void 0&&S!==null&&O!==void 0&&O!==null&&!Number.isNaN(v+S+I+O)){let q=de(a),{idField:L,isTraditionalTypeOID:A}=Zt(q),M=A?L:"*",N=e?.get(P.scatterplotAggregationFields.xStep),R=e?.get(P.scatterplotAggregationFields.yStep),$=e?.get(P.scatterplotAggregationFields.realGridSize),E=e?.get(P.scatterplotAggregationFields.rowCount),k=e?.get(P.scatterplotAggregationFields.columnCount),z=new Map,Z=await Ct(a);if(Z?.forEach(W=>{Fi(W)&&z.set(W.name,{onStatisticField:W.name,outStatisticFieldName:W.name,statisticType:j.Maximum})}),(Z.filter(W=>l?.additionalTooltipFields?.includes(W.name))??[])?.forEach(W=>{Fi(W)||z.set(W.name,{onStatisticField:W.name,outStatisticFieldName:W.name,statisticType:j.Maximum})}),(await rh(q)).forEach(W=>{z.set(W,{onStatisticField:W,outStatisticFieldName:W,statisticType:j.Maximum})}),L!==""&&z.set(L,{onStatisticField:M,outStatisticFieldName:y,statisticType:j.Count}),z.set(d,{onStatisticField:d,outStatisticFieldName:d,statisticType:j.Maximum}).set(c,{onStatisticField:c,outStatisticFieldName:c,statisticType:j.Maximum}),N!==void 0&&R!==void 0){if(n){let W={...i,outStatistics:[...z.values()]};b=await JS({queryObject:a,queryConfig:W,xStep:N,xMin:v,xMax:S,x:d,y:c,yStep:R,errorStrings:s})}else if(E!==void 0&&k!==void 0){let W=0,{maxScatterCellsPerQuery:G,maxScatterCellsPerQueryForStandard:U}=aa(),ie=await vw(q)?U:G,Re=[],_e=!0,te=v,ye=I,Fe="",ke=1,xt=1,rt=Number.MAX_SAFE_INTEGER,Ie=Number.MIN_SAFE_INTEGER,ve=Number.MAX_SAFE_INTEGER,Ft=Number.MIN_SAFE_INTEGER;for(;xt<=k&&_e;){for(ye=I,ke=1;ke<=E&&_e;){if(Fe=x0({groupByFieldsForStatistics:Fe,x:d,y:c,xValue:te,yValue:ye,xStep:N,yStep:R,endOfRow:ke===E,endOfColumn:xt===k}),te<rt&&(rt=te),te+N>Ie&&(Ie=te+N),ye<ve&&(ve=ye),ye+N>Ft&&(Ft=ye+R),W+=1,W%ie===0||W===$||W===x){Fe=`${Fe} ${Jr.groupByCaseEnd}`;let He={...i,groupByFieldsForStatistics:[Fe],outStatistics:[...z.values()]};Re.push(F0({chartConfig:r,queryConfig:He,queryObject:a,xMin:rt,xMax:Ie,yMin:ve,yMax:Ft,abortKey:o})),rt=Number.MAX_SAFE_INTEGER,Ie=Number.MIN_SAFE_INTEGER,ve=Number.MAX_SAFE_INTEGER,Ft=Number.MIN_SAFE_INTEGER,Fe="",W===$&&(_e=!1)}ye+=R,ke+=1}te+=N,xt+=1}b=(await Promise.all(Re)).flat()}}}return b}var T0={dataFormat:"json",outputFormat:"json",typeKey:"analyticType",typeValue:"LinRegR2",fieldValue:"onAnalyticField",slopePropertyList:["Slope","SLOPE","slope"],interceptPropertyList:["Intercept","INTERCEPT","intercept"],r2PropertyList:["R2","r2"]};async function P0(t){let{queryObject:e}=t,r=!1,a=WS(e),i=de(e),n=Xe(i);if(a&&n.url!==void 0&&n.url!==null){let s=`${n.url}/${n.layerId}?f=json`;try{let o=(await an(s)).data,l=o?.advancedQueryCapabilities?.supportsQueryAnalytic===!0,d=o?.sqlParserVersion===void 0||n.version!=null&&n.version>=10.91;r=l&&d}catch{}}return r}function A0(t){let{x:e,y:r,trendlineXToY:a,data:i}=t,[n,s]=i?li(i,o=>o[e]):[Number.NaN,Number.NaN];return[{[e]:n??Number.NaN,[r]:a(n??Number.NaN)},{[e]:s??Number.NaN,[r]:a(s??Number.NaN)}]}function O0(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 L0(t){let{statsMap:e,queryObject:r,chartConfig:a,queryConfig:i}=t,n=a.series[0],{x:s,y:o}=n,l=Number.NaN,d=[{[s]:Number.NaN,[o]:Number.NaN},{[s]:Number.NaN,[o]:Number.NaN}],{dataFormat:c,outputFormat:u,typeKey:h,typeValue:p,fieldValue:f,slopePropertyList:m,interceptPropertyList:y,r2PropertyList:b}=T0,v=`[{"${h}": "${p}", "${f}":"${s},${o}"}]`,S=await GS({queryObject:r,queryConfig:i,outputFormat:u,dataFormat:c,outAnalytics:v});if(S!==void 0){let x=Number.NaN,I=Number.NaN,{expr:O}=rn(S,m),{expr:q}=rn(S,y),{expr:L}=rn(S,b);O!==void 0&&Number.isFinite(S[O])&&(x=S[O]),q!==void 0&&Number.isFinite(S[q])&&(I=S[q]),L!==void 0&&Number.isFinite(S[L])&&(l=S[L]);let{dataContextXMinField:A,dataContextXMaxField:M,dataContextYMinField:N,dataContextYMaxField:R}=P.scatterplotAggregationFields,$=e.get(A)??Number.NaN,E=e.get(M)??Number.NaN,k=e.get(N)??Number.NaN,z=e.get(R)??Number.NaN,Z=(E-$)/100,W=$-Z,G=Number.NaN;for(;!(G>=k&&G<=z)&&W<=E;)W+=Z,G=x*W+I;let U=E+Z,ie=Number.NaN;for(;!(ie>=k&&ie<=z)&&U>=$;)U-=Z,ie=x*U+I;d=[{[s]:W,[o]:G},{[s]:U,[o]:ie}]}return{r2:l,trendLinePoints:d}}function Bp(t){let{data:e,chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s,trendLinePoints:o}=P.scatterplotSeries,l=O0({data:e,x:i,y:n});if(l!==void 0){let d=Ho(l),c=Go(d);s=d.m===0?0:Qo(l,c),o=A0({x:i,y:n,trendlineXToY:c,data:e})}return{r2:s,trendLinePoints:o}}async function E0(t){let e=await P0(t),{chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s}=P.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 L0(t)}catch{d=!0}return(!e||d)&&(l=Bp(t)),l}async function D0(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,l=new Map,{dataContextXMinField:d,dataContextXMaxField:c,dataContextYMinField:u,dataContextYMaxField:h,queryNumberOfFeatures:p}=P.scatterplotAggregationFields,{idField:f,isTraditionalTypeOID:m}=Zt(de(a)),y=m?f:"*",b=[{statisticType:j.Count,onStatisticField:y,outStatisticFieldName:p},{statisticType:j.Minimum,outStatisticFieldName:d,onStatisticField:s},{statisticType:j.Maximum,outStatisticFieldName:c,onStatisticField:s}];s!==o&&b.push({statisticType:j.Minimum,outStatisticFieldName:u,onStatisticField:o},{statisticType:j.Maximum,outStatisticFieldName:h,onStatisticField:o});let v={...r};return v.outStatistics=b,l=await sa({queryObject:a,queryConfig:v,abortKey:i}),s===o&&(l.set(u,l.get(d)??Number.NaN),l.set(h,l.get(c)??Number.NaN)),l}function Qa(t){let{value:e,valueMin:r,valueMax:a}=t;return e===r||e===a?e:Math.random()*(a-r)+r}function N0(t){let{useQueryAttributeBins:e,graphic:r,x:a,y:i,yStep:n}=t,{groupByOutKeyword:s}=Jr,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:c}=P.scatterplotAggregationFields,u=[];if(e&&"stackedAttributes"in r&&r.stackedAttributes){let h=Jp(a,i),p=r.attributes[h.lowerBoundaryAlias],f=r.attributes[h.upperBoundaryAlias];r.stackedAttributes.forEach(m=>{let y=m[h.stackAlias],b;typeof y=="number"&&typeof n=="number"&&(y*=n),typeof y=="number"&&typeof n=="number"&&(b=y+n);let v=m[a],S=m[i];typeof y=="number"&&typeof b=="number"&&typeof v=="number"&&typeof S=="number"&&u.push({...m,[a]:Qa({value:v,valueMin:p,valueMax:f}),[i]:Qa({value:S,valueMin:y,valueMax:b}),[o]:Math.min(p,f),[l]:Math.max(p,f),[d]:y,[c]:b})})}else{let{expr:h,isInItem:p}=Fn(r.attributes);if(p&&h&&r.attributes[h]!==s){let[f,m,y,b]=r.attributes[h].split("|");f=Math.min(f,m),m=Math.max(f,m),y=Math.min(y,b),b=Math.max(y,b);let v={...r.attributes,[o]:f,[l]:m,[d]:y,[c]:b};v[a]=Qa({value:v[a],valueMin:f,valueMax:m}),v[i]=Qa({value:v[i],valueMin:y,valueMax:b}),u=[v]}}return u}function B0(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 fo(u[0],[o,l]),a?u=N0({useQueryAttributeBins:n,graphic:c,x:o,y:l,yStep:i}):u[0][Ne.uniqueIdsName]=c.getObjectId(),u});return d=d?.filter(c=>{let{expr:u}=Fn(c);return Number.isFinite(c[o])&&Number.isFinite(c[l])&&(u===void 0||c[u]!==Jr.groupByOutKeyword)}),d??[]}async function M0(t){let{queryObject:e,queryConfig:r,chartConfig:a,featureCount:i,abortKey:n}=t,s=a.series[0],{x:o,y:l}=s,d=de(e),c=[],u=await Ct(e),h=Co(d).idFields,p=(u?.filter(b=>Fi(b)&&b.name!==o&&b.name!==l)??[]).map(b=>b.name)??[],f=s?.additionalTooltipFields??[],m=Array.from(new Set([o,l,...h??[],...p,...f]));if(!Xe(d).isTable){let{rendererField:b,rendererNormalizationField:v}=pw(d?.renderer??void 0);Le(b)||m.push(b),Le(v)||m.push(v)}let y={...r,orderByFields:[`${o} ${ze.Ascending}`],outFields:m};return c=await Bt({queryObject:e,queryConfig:y,featureCount:i,abortKey:n}),c}async function $0(t){let e,{chartConfig:r,queryConfig:a,queryObject:i,statsMap:n,numberOfFeatures:s,isAggregationMode:o,useQueryAttributeBins:l,errorStrings:d,abortKey:c}=t,u=r.series[0],{x:h,y:p}=u;if(!Number.isNaN(s)&&s>0){let f={...a};f.where=be([f.where,`${h} IS NOT NULL`,`${p} IS NOT NULL`]),o?e=await I0({chartConfig:r,queryObject:i,queryConfig:f,statsMap:n,useQueryAttributeBins:l,errorStrings:d,abortKey:c}):e=await M0({queryObject:i,chartConfig:r,queryConfig:f,featureCount:s,abortKey:c})}return e}async function Mp(t){let{chartConfig:e,queryConfig:r,queryObject:a,sortData:i,calculateTrendLine:n,options:s,abortKey:o}=t,l=await D0({chartConfig:e,queryConfig:r,queryObject:a,abortKey:o}),{queryNumberOfFeatures:d,yStep:c}=P.scatterplotAggregationFields,{maxScatterPointsBeforeAggregation:u}=Yr(s?.chartLimits),h=l?.get(d)??Number.NaN,p=h>=u,f=zS(a);p&&await C0({statsMap:l,chartConfig:e,queryObject:a,options:s,queryConfig:r,abortKey:o});let m=await $0({...t,statsMap:l,numberOfFeatures:h,isAggregationMode:p,useQueryAttributeBins:f}),y=B0({chartConfig:e,rawData:m,isAggregationMode:p,yStep:l.get(c),useQueryAttributeBins:f});i!==!1&&pn({arrayToSort:y,sortingField:e.series[0].x,orderBy:ze.Ascending});let{r2:b,trendLinePoints:v}=n!==!1?await E0({data:y,statsMap:l,queryConfig:r,options:s,queryObject:a,chartConfig:e}):P.scatterplotSeries;return{dataItems:y,r2:b,trendLinePoints:v,aggregated:p}}function q0(t){let{itemsA:e,itemsB:r,isPieFromFields:a,x:i,y:n,outStatisticFieldName:s}=t,o=kr(e),l=kr(r),d=!1;if(o===void 0&&l!==void 0||o!==void 0&&l===void 0)d=!0;else if(!a){let c=[P.originalCategoryValue,P.originalYCategoryValue,P.originalDateValue,P.xAxisField,P.technicalSortingFieldBySum,P.technicalSortingFieldByPercent,P.pieChart.technicalFieldSlicePercent,P.pieChart.technicalFieldGroupedSlices,P.pieChart.technicalFieldSliceId,P.typeOrDomainFieldName,P.typeOrDomainIdValue,P.originalServerBinningRange,P.lastTemporalBin,P.technicalFieldSplitByField,Ne.uniqueIdsName,xe.valueField,...Xu],u=(m,y)=>{let b=y[P.typeOrDomainFieldName];typeof b=="string"&&y[b]!==void 0&&(y[b]=y[P.typeOrDomainIdValue]),i&&y[xe.xField]!==void 0&&(y[i]=y[P.originalCategoryValue]!==void 0?y[P.originalCategoryValue]:y[xe.xField],delete y[xe.xField]),n&&y[xe.yField]!==void 0&&(y[n]=y[P.originalYCategoryValue]!==void 0?y[P.originalYCategoryValue]:y[xe.yField],delete y[xe.yField]),s&&y[xe.valueField]!==void 0&&(y[s]=y[xe.valueField],delete y[xe.valueField]);let v={};return Object.keys(y).forEach(S=>{!c.includes(S)&&!S.includes(P.rendererSymbolField)&&(v[S]=y[S])}),m.push(v),m},h=(m,y)=>JSON.stringify(m).localeCompare(JSON.stringify(y)),p=o?.reduce(u,[])?.sort(h),f=l?.reduce(u,[])?.sort(h);p&&f&&i&&p.length!==f.length&&(p=Ki({data:p,x:i}),f=Ki({data:f,x:i})),d=p?.length!==f?.length||!er(p,f)}return d}function R0(t){let{chartConfig:e,currentSelectionDataItems:r,options:a}=t,{selectionData:i}=a??{},n=[];if(e!==void 0){let s=e.series,o=X(s),{selectionItems:l}=i??{};if(l!==void 0&&q0({itemsA:l,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})?n=l:n=r??[],s.length>1&&o!==C.BarAndLineNoAggregation&&o!==C.BarAndLineSplitByNoAggregation){let d=Ye(s[0].query?.where);n=Ki({data:n,x:s[0].x,splitByField:d})}na({arrayToSort:n,chartConfig:e})}return n??[]}function Pr(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 k0(t){let{dataContext:e,xAxisField:r,yAxisField:a,options:i}=t,n="",{dataContextXMinField:s,dataContextXMaxField:o,dataContextYMinField:l,dataContextYMaxField:d}=P.scatterplotAggregationFields;if(sp({dataContext:e,chartLimits:i?.chartLimits})){let{[s]:c,[o]:u}=e,h=r!==a?e[l]:c,p=r!==a?e[d]:u;if(!Number.isNaN(c)&&!Number.isNaN(u)&&!Number.isNaN(h)&&!Number.isNaN(p)){let f=[];c===u?f.push(`${r}=${c?.toString()}`):(f.push(`${r}>=${c?.toString()}`),f.push(`${r}<=${u?.toString()}`)),h===p?f.push(`${a}=${h?.toString()}`):(f.push(`${a}>=${h?.toString()}`),f.push(`${a}<=${p?.toString()}`)),n=be(f)}}else n=be([sr({where:Pr(r,e[r])}),a!==void 0?sr({where:Pr(a,e[a])}):""]);return n}function $p(t,e){let r="",a=e[P.originalServerBinningRange]??e[P.dateBinningRange];if(ua(a)&&a.length===2){let[i,n]=a;if(typeof i=="number"&&typeof n=="number"&&Number.isFinite(i)&&Number.isFinite(n)){i=Ci(i),n=Ci(n);let s=e[P.lastTemporalBin]===!0?"<=":"<";r=`${t}>='${i}' AND ${t}${s}'${n}'`}}return r}function qp(t,e){let r="";if(Number.isFinite(t)){let a=1/10**P.queryMaxFloatPrecision;r=`${e}>=${t-a} AND ${e}<=${t+a}`}return r}function Rp(t){let{xAxisField:e,yAxisField:r,splitBy:a,dataContext:i,xAxisFieldType:n,chartConfig:s}=t,o="";if(e!==void 0&&e!==P.boxPlot.boxPlotCategory){let c=Ji({value:i[e],dataContext:i,keepNullValues:!0,specificField:P.typeOrDomainIdValue});n===Te.Double?o=qp(c,e):(Qr(s.axes?.[0].valueFormat)&&(c=Ci(c)),o=sr({where:Pr(e,c),normalize:!1,escape:!0}))}let l=sr({where:a??"",normalize:!1,escape:!0}),d="";if(hb(s)){let c=X(s.series)===C.BoxPlotMultiFieldsAndCategory?r:void 0,u=Ue({key:H.Min,showOutliers:!0,splitBy:a,y:c}),h=Ue({key:H.Max,showOutliers:!0,splitBy:a,y:c}),p=e===P.boxPlot.boxPlotCategory?i[e]:r;if(!Le(p)){let f=i[u],m=i[h];Number.isFinite(f)&&Number.isFinite(m)&&(d=`${p?.toString()}>=${f?.toString()} AND ${p?.toString()}<=${m?.toString()}`)}}return be([o,l,d])}function j0(t){let{xAxisField:e,splitBy:r,dataContext:a,xAxisFieldType:i,chartConfig:n}=t,s="";if(P.dateBinningRange in a)s=$p(e,a);else if(X(n.series)!==C.BarAndLineFromFields){let l=Ji({value:a[e],dataContext:a,keepNullValues:!0,specificField:P.typeOrDomainIdValue});i===Te.Double?s=qp(l,e):(Qr(n.axes?.[0].valueFormat)&&(l=Ci(l)),s=sr({where:Pr(e,l),normalize:!1,escape:!0}))}let o=sr({where:r??"",normalize:!1,escape:!0});return be([s,o])}function V0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i=P.typeOrDomainIdValue in r?r[P.typeOrDomainIdValue]:r[P.originalCategoryValue];return i===void 0&&(i=r[e]),X(a.series)===C.PieFromFields?"":sr({where:Pr(e,i),normalize:!1,escape:!0})}function _c(t){let{field:e,fieldType:r,fieldValue:a,unit:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l,{expression:d}=vo({field:e,fieldType:r,unit:i,addIntervalStatement:!0,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o});return d&&(l=`${d}=${a}`),l}function W0(t){let{xAxisFieldType:e,yAxisFieldType:r,dataContext:a,chartConfig:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l=i.series[0],d="";if(l.type===g.HeatSeries){let c,u,h=a[xe.xField],p=a[P.originalCategoryValue],f=a[xe.yField],m=a[P.originalYCategoryValue],y=i.axes?.[0]?.valueFormat?.type,b=i.axes?.[1]?.valueFormat?.type;y===g.CategoryAxisFormat?c=sr({where:Pr(l.x,p===null?p:h),normalize:!1,escape:!0}):c=_c({field:l.x,fieldType:e,fieldValue:h,unit:l.xTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),b===g.CategoryAxisFormat?u=sr({where:Pr(l.y,m===null?m:f),normalize:!1,escape:!0}):u=_c({field:l.y,fieldType:r,fieldValue:f,unit:l.yTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),c&&(d=c),u&&(d=be([d,u]))}return d}function _0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i="",n=a.series[0],{minValue:s,maxValue:o}=r;if(Number.isFinite(s)&&Number.isFinite(o)&&n.type===g.HistogramSeries){let l=Bb(e,n.dataTransformationType),d=r.isLastBin?"<=":"<";i=be([`${l}>=${s?.toString()}`,`${l}${d}${o?.toString()}`])}return i}function wF(t){let{chartConfig:e}=t,r=Y(e.series),a="";switch(r){case g.ScatterSeries:a=k0(t);break;case g.HeatSeries:a=W0(t);break;case g.RadarSeries:case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:a=j0(t);break;case g.BoxPlotSeries:a=Rp(t);break;case g.HistogramSeries:a=_0(t);break;case g.PieSeries:a=V0(t);break}return a}async function z0(t){let{numberOfQueries:e,selectionOIDs:r,chartConfig:a,queryConfig:i,options:n,errorStrings:s,queryObject:o}=t,{setTimeBinningInfoWhenNotProvided:l}=n??{},{series:d}=a,c=Y(d),u=[],{maxOIDsPerSelectionQuery:h}=aa();for(let p=0;p<e;p+=1){let f=p*h,m=(p+1)*h-1,y=r.slice(f===0?0:f-1,m),b={...i};switch(b.objectIds=y,c){case g.HeatSeries:u.push(Hp({completeHeatChartDataset:!1,chartConfig:a,queryConfig:b,queryObject:o,errorStrings:s,options:n}));break;case g.PieSeries:case g.BarSeries:case g.LineSeries:case g.RadarSeries:case g.ComboLineAndBarSeries:if(ei({xAxisValueFormatType:lr(a),setTimeBinningInfoWhenNotProvided:l,seriesConfig:d[0]})){let v=a;"temporalBinning"in v.series[0]&&v.series[0].temporalBinning&&(v.series[0].temporalBinning.trimIncompleteTimeInterval=!1,Yi(o)&&(delete v.series[0].temporalBinning.start,delete v.series[0].temporalBinning.end)),u.push(mo({chartConfig:v,queryConfig:b,queryObject:o,options:n}))}else u.push(qS({queryObject:o,chartConfig:a,options:n,queryConfig:b}));break;case g.BoxPlotSeries:u.push(RS({queryObject:o,chartConfig:a,options:n,errorStrings:s,queryConfig:b}));break;case g.ScatterSeries:u.push(Mp({queryObject:o,chartConfig:a,queryConfig:b,options:n,errorStrings:s,sortData:!1,calculateTrendLine:!1}));break;case g.HistogramSeries:u.push(v0({queryObject:o,queryConfig:b,chartConfig:a,x:d[0].x}));break}}return await Promise.all(u)}function U0(t){let{dataFetchingResults:e,numberOfQueries:r,series:a}=t,i=Y(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===g.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===g.HeatSeries)r>0&&c.forEach(u=>{o.set(`${u[xe.xField]}-${u[xe.yField]}`,u)});else if(a[0].type===g.ScatterSeries){let{x:u,y:h}=a[0];s.push(...c.map(p=>({[u]:p[u],[h]:p[h]})))}else d.valid&&(n===C.PieFromFields?s=hn({dataToConvert:c[0],x:st,y:jt}):n===C.BarAndLineFromFields?s=hn({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 H0(t){let{chartConfig:e,queryConfig:r,chartData:a,currentSelectionOIDs:i,dataWasUpdated:n,queryObject:s,options:o,errorStrings:l}=t,{series:d}=e,{selectionData:c,viewExtentUpdated:u,returnSelectionOIDs:h,chartLimits:p}=o??{},{selectionItems:f,selectionOIDs:m}=c??{},y,b=Y(d),v=b!==g.HistogramSeries&&b!==g.HeatSeries&&f!==void 0&&f.length>0&&!(d[0].x in f[0])&&!(st in f[0])&&!(P.boxPlot.boxPlotCategory in f[0]);if(u!==!0&&h!==!1&&m!==void 0&&m.length>0&&(n===!0||v||m.length!==i?.length||!er(m,i))){let S=ih(a);if(S!==void 0&&!Nb({dataContext:S[0],chartConfig:e,chartLimits:p}))y=S.filter(x=>{let I=x[Ne.uniqueIdsName];return typeof I=="number"||typeof I=="string"?m?.includes(I):!1});else if(m?.[0]!==void 0&&r!==void 0){let{maxOIDsPerSelectionQuery:x}=aa(),I=Math.ceil(m.length/x),O=await z0({numberOfQueries:I,selectionOIDs:m,queryConfig:r,queryObject:s,options:o,errorStrings:l,chartConfig:e});y=U0({dataFetchingResults:O,numberOfQueries:I,series:d})}}return y}function*G0(t){let{filterList:e,queryObject:r,queryConfig:a}=t;for(let i=0;i<e.length;i+=1){let n={...a};n.where=be([n.where,e[i]]),yield XS({queryObject:r,queryConfig:n,uniqueFeature:!0})}}async function CF(t){let{whereList:e,queryObject:r,queryFilter:a,queryConfig:i}=t,n=[];if(e.length>0){let s=aa().maxElementsPerSelectionQuery,o=[],l=Math.ceil(e.length/s);for(let c=0;c<l;c+=1){let u=c*s,h=(c+1)*s,p=e.slice(u===0?0:u-1,h),f=be(p,"OR");f=be([a,f]),o.push(f)}let d=G0({filterList:o,queryObject:r,queryConfig:i});n=(await Promise.all(d)).flat(),n=Array.from(new Set(n))}return n}async function Q0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,options:n,errorStrings:s,abortKey:o}=t,l=X(a.series),d={valid:!0,data:{dataItems:[]}};if(i!==void 0&&i.length>0){let c=Nr(a),{x:u}=c,h="y"in c?c.y:"",p;e!==void 0&&(p=(await Ct(e)).find(S=>S.name===u)?.type);let f=[],m=i.reduce((S,x)=>{let I=[];if(Ne.uniqueIdsName in x)f.push(x[Ne.uniqueIdsName]);else{switch(l){case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:{let L=Ye(c.query?.where??""),A=`_${H.Average}`;Object.keys(x).forEach(M=>{if(M.includes(A)){let N=M.replace(A,"");N.trim()!==""&&I.push(Pr(L,N))}});break}}let O=[h].flat(),q=O.length===1?O[0]:"";if(l===C.BoxPlotMultiFieldsAndCategory){let L=`_${H.FirstQuartile}`,A=Object.keys(x).find(M=>M.includes(L));A!==void 0&&(q=A.replace(L,""))}I.length===0&&I.push(""),I.forEach(L=>{let A=Rp({chartConfig:a,xAxisField:u,yAxisField:q,splitBy:L,dataContext:x,xAxisFieldType:p});S.push(A)})}return S},[]),y=de(e);if(y!==void 0&&f.length>0){let S=Zt(y).idField;m.push(`${S} IN (${f.join(",")})`)}let b=m.join(" OR "),v={...r};v.where=be([v.where,b]),d=await ho({queryObject:e,chartConfig:a,queryConfig:v,options:n,errorStrings:s,abortKey:o})}return d}async function Z0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,abortKey:c}=t,{series:u}=a,h=Y(u),p=lr(a),f={valid:!0},m;s?m=await H0({chartConfig:a,queryConfig:r,chartData:o,currentSelectionOIDs:n,dataWasUpdated:!0,queryObject:e,options:l,errorStrings:d})??[]:m=R0({chartConfig:a,currentSelectionDataItems:i,options:l});let y=!1;switch(h){case g.HeatSeries:f.data={dataItems:m};break;case g.PieSeries:if(X(a.series)===C.PieFromFields){let{x:b,y:v}=a.series[0],S=kr(m);S.forEach(x=>{b in x&&(x[st]=x[b],delete x[b]),v in x&&(x[jt]=x[v],delete x[v])}),f.data={dataItems:S}}else f.data={dataItems:m};f.count=m.length,y=!0;break;case g.BoxPlotSeries:dt(a)&&(f=await Q0({...t,chartConfig:a}));break;case g.BarSeries:case g.ComboLineAndBarSeries:case g.RadarSeries:case g.LineSeries:if(m.length===0||!ei({xAxisValueFormatType:p,setTimeBinningInfoWhenNotProvided:l?.setTimeBinningInfoWhenNotProvided,seriesConfig:u[0]}))f.data={dataItems:m},f.count=m.length*u.length,y=!0;else{let b={...r};if(i!==void 0&&i.length>0){let v=i.map(x=>$p(u[0].x,x)),S=be(v,"OR");b.where=be([b.where,S])}f=await mo({queryObject:e,queryConfig:b,chartConfig:a,options:l})}break;case g.HistogramSeries:{if(m.length===0)f.data={mean:Number.NaN,median:Number.NaN,stddev:Number.NaN,max:Number.NaN,min:Number.NaN,bins:[]},f.count=0;else{let{x:b}=u[0],v=m.map((I,O)=>{let{minValue:q,maxValue:L}=I,A=O===m.length-1?"<=":"<";return`${b} >= ${q} AND ${b} ${A} ${L}`}),S=be(v,"OR"),x={...r};x.where=be([x.where,S]),f=await Np({queryObject:e,chartConfig:a,queryConfig:x,options:l,errorStrings:d,abortKey:c})}break}case g.ScatterSeries:{if(m.length===0){let{r2:b,trendLinePoints:v}=P.scatterplotSeries;f.data={dataItems:[],r2:b,trendLinePoints:v,count:0},f.count=0}else{let{r2:b,trendLinePoints:v}=Bp({data:m,chartConfig:a});f.data={dataItems:m,r2:b,trendLinePoints:v},f.count=m.length}break}}return y&&f.data!==void 0&&na({arrayToSort:"dataItems"in f.data?f.data.dataItems:f.data,chartConfig:a}),f}async function ho(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s}=t,o={valid:!0},l=Zi(r),d=await Zs({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!l,options:i,chartConfig:r,abortKey:s});if(!l)o=d;else{let c={dataItems:[]};c.meanLines=d.data.dataItems;let u=Rv(r),h=(await Zs({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!0,options:i,chartConfig:u,abortKey:s})).data;c.dataItems=h.dataItems,c.outliers=h.outliers,o.data=c}return o}async function J0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,{series:d}=r,{filterBySelection:c}=i??{},u=Y(d),h={valid:!0};if(c===!0)h=await Z0(t);else switch(u){case g.HeatSeries:h=await Hp(t);break;case g.BoxPlotSeries:dt(r)&&(h=await ho({...t,chartConfig:r}));break;case g.BarSeries:case g.ComboLineAndBarSeries:case g.PieSeries:case g.RadarSeries:case g.LineSeries:{let p={queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,fieldList:o,preFetchedQueryResponse:l};ei({xAxisValueFormatType:lr(r),setTimeBinningInfoWhenNotProvided:i?.setTimeBinningInfoWhenNotProvided,seriesConfig:d[0]})?h=await mo(p):h=await Zs(p);break}case g.ScatterSeries:h.data=await Mp({queryObject:e,queryConfig:a,options:i,chartConfig:r,errorStrings:n,abortKey:s});break;case g.HistogramSeries:h=await Np({queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,errorStrings:n});break;case g.GaugeSeries:h=await l0({queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:s});break}return h}async function xF(t){let{queryObject:e,chartConfig:r,abortKey:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,fieldList:c,preFetchedQueryResponse:u}=t,h={valid:!0},p=Cw({queryObject:e,chartConfig:r,runtimeDataFilters:l?.runtimeDataFilters,ignoreViewExtent:l?.ignoreViewExtent});return ew(a),h=await J0({chartConfig:r,queryObject:e,queryConfig:p,fullDatasetBeforeFBS:o,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,options:l,abortKey:a,errorStrings:d,fieldList:c,preFetchedQueryResponse:u}),h.queryConfig=p,h}function K0(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 Y0(t){let{seriesData:e,chartConfig:r,queryConfig:a,queryObject:i,categoryOrDateCount:n,behaviorAfterLimit:s,abortKey:o}=t,{series:l}=r,d=e,c=X(l),u=lr(r);if(s!==Lr.RenderUpToTheLimit&&i!==void 0&&n!==void 0&&n>e.length&&c!==C.BarAndLineFromFields&&c!==C.BarAndLineNoAggregation&&c!==C.PieNoAggregation&&u===g.CategoryAxisFormat){let{x:h}=l[0],p={...a,returnDistinctValues:!0,outFields:[h]};delete p.outStatistics,delete p.orderByFields,delete p.groupByFieldsForStatistics;let f=(await Bt({queryObject:i,queryConfig:p,featureCount:n,abortKey:o})).map(m=>m.attributes[h]).filter(m=>m!=null);f.length>e.length&&(d=K0(f,e,h))}return d}function X0(t,e){let r=t,{series:a}=e;if(lr(e)===g.CategoryAxisFormat&&a[0].query?.outStatistics?.[0].statisticType===j.Count){let i=a.reduce((n,s)=>{let o=s.query?.outStatistics?.[0].outStatisticFieldName??[s.y].flat()[0];return n[o]=0,n},{});for(let n=0;n<t.length;n+=1)t[n]={...i,...t[n]}}return r}var kp=[C.BarAndLineMonoField,C.BarAndLineMultiFields,C.PieNoAggregation,C.PieFromCategory,C.BoxPlotMonoFieldAndCategory,C.BoxPlotMultiFieldsAndCategory,C.BoxPlotMonoFieldAndCategoryAndSplitBy],eS=8e3;function jp(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 Ar(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 ae.fromMillis(e).plus({seconds:n}).valueOf();case Q.Minute:return ae.fromMillis(e).plus({minutes:n}).valueOf();case Q.Hour:return ae.fromMillis(e).plus({hours:n}).valueOf();case Q.Week:case Q.Day:return ae.fromMillis(e).plus({days:n}).valueOf();case Q.Month:return ae.fromMillis(e).plus({months:n}).valueOf();case Q.Year:return ae.fromMillis(e).plus({years:n}).valueOf()}}return e}function tS(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=Ar({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 h=d+1>=r.length,p=d;h&&r[p]!==void 0&&(p+=1);let f=h?Ar({date:l,unit:n,size:o,nextOrPrevious:"next"}):r[d][a];return{binStartDate:l,binEndDate:f,last:h,nextBinFirstOrLastIndex:d,sliceStartIndex:e,sliceEndIndex:p}}function rS(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=Ar({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 h=d-1<=0,p=e;return h&&r[p]!==void 0&&(p-=1),h&&(d=0),{binStartDate:h?Ar({date:l,unit:n,size:o,nextOrPrevious:"previous"}):r[d][a],binEndDate:l,nextBinFirstOrLastIndex:d,sliceStartIndex:d,sliceEndIndex:p,last:h}}function iS(t){let{binsToRegroup:e,statisticType:r,y:a,nullPolicy:i}=t,n;i!==at.Interpolate&&(n=i===at.Zero?0:null);let s=e.filter(o=>Number.isFinite(o[a]));if(s.length>0)switch(r){case j.Count:case j.Sum:n=ba(s,o=>o[a]);break;case j.Minimum:n=ya(s,o=>o[a]);break;case j.Maximum:n=ma(s,o=>o[a]);break;case j.Average:n=ga(s,o=>o[a]);break;case j.ContinuousPercentile:}return n}function aS(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,h;if(Wt(d)&&(h=d.temporalBinning?.nullPolicy,u=d.temporalBinning?.timeAggregationType),l>1||o===Q.Week||o===Q.Month||o===Q.Year){let{query:p}=r[0],f=tt(r),{statisticType:m}=p?.outStatistics?.[0]??pa,y=!1,b=u===Me.End?e.length-1:0,v={binFirstOrLastIndex:b,data:e,x:c,timeIntervalInfo:a};for(;!y;){let S={},{binStartDate:x,binEndDate:I,last:O,nextBinFirstOrLastIndex:q,sliceStartIndex:L,sliceEndIndex:A}=u===Me.End?rS(v):tS(v);if(y=O,S=u===Me.End?S=e[A-1]:S=e[b],I>n&&x<n||x<i&&I>i||x>=i&&I<=n){let M=e.slice(L,A).filter($=>!(P.dateBinModel in $));f.forEach($=>{S[$]=iS({binsToRegroup:M,statisticType:m,y:$,nullPolicy:h})});let N=M.map($=>$[Ir]).filter($=>$!==void 0),R=Ib(N);R!==void 0&&(S[Ir]=R),S[c]=x,S[P.xAxisField]=x,S[P.dateBinningRange]=[x,I],delete S[P.dateBinModel],s.push(S)}else O&&u!==Me.End&&s.length>0&&(s[s.length-1][P.dateBinningRange][1]=s[s.length-1][P.dateBinningRange][1]+1);b=q,v.binFirstOrLastIndex=q}u===Me.End&&(s=s.reverse())}else l===1?s=e.map((p,f)=>{let m=p[c],y=e[f+1]?.[c];return y=typeof y=="number"?y-1:Ar({date:m,unit:o,size:l,nextOrPrevious:"next"}),{...p,[P.dateBinningRange]:[m,y]}}):s=e;return s}function Vp(t){let{dateMinTimestamp:e,dateMaxTimestamp:r,timeIntervalInfo:a}=t,{size:i,unit:n}=a,s=0,o=0;if(i!==void 0&&Number.isFinite(i)&&Number.isFinite(e)&&Number.isFinite(r)){let l=-1,d=ae.fromMillis(e),c=ae.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 Wp(t){let e=t[0].temporalBinning?.nullPolicy;return t.reduce((r,a)=>{r[P.dateBinModel]=void 0;let i=a.query?.outStatistics?.[0].outStatisticFieldName??[a.y].flat()[0];return e!==at.Interpolate&&(r[i]=e===at.Zero?0:null),r},{})}function nS(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],h=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 f=Wp(n);if(c===Me.End){let m=i[0][d];for(let y=0;y<p;y+=1)m=Ar({date:m,unit:l,size:1,nextOrPrevious:"previous"}),i.push({...f,[d]:m,[P.xAxisField]:m});p>0&&(u=i[i.length-1][d])}else{let m=i[i.length-1][d];for(let y=0;y<p;y+=1)m=Ar({date:m,unit:l,size:1,nextOrPrevious:"next"}),i.push({...f,[d]:m,[P.xAxisField]:m});h=i[i.length-1][d]}}return{newDateMin:u,newDateMax:h}}function sS(t){let{numberOfSingleBinsWithinDataRange:e,dataLength:r,unit:a}=t;return jp(r,a)>=e}async function oS(t){let{queryObject:e,queryConfig:r,x:a}=t,i=`MIN_${a}`,n=`MAX_${a}`,s=`COUNT_${a}`,o={...r,outStatistics:[{statisticType:j.Minimum,onStatisticField:a,outStatisticFieldName:i},{statisticType:j.Maximum,onStatisticField:a,outStatisticFieldName:n},{statisticType:j.Count,onStatisticField:a,outStatisticFieldName:s}]};delete o.groupByFieldsForStatistics,delete o.orderByFields;let l=await sa({queryObject:e,queryConfig:o}),d=l.get(i),c=l.get(n),u=l.get(s);return typeof d=="string"&&(d=new Date(d).valueOf()),typeof c=="string"&&(c=new Date(c).valueOf()),{dateRange:{dateMinTimestamp:d,dateMaxTimestamp:c},numberOfFeatures:u}}function lS(t){let{newDateMin:e,newDateMax:r,seriesConfig:a,data:i,numberOfSingleBinsWithinDataRange:n,initialNumberOfBins:s,timeIntervalInfo:o}=t,{unit:l}=o,d=i;if(!sS({numberOfSingleBinsWithinDataRange:n,dataLength:s,unit:l})){let{x:c}=a[0],u=a[0].temporalBinning?.timeAggregationType,h=Wp(a),p=u===Me.End?r:e,f=u===Me.End?i.length-1:0;for(;f<i.length&&(u===Me.End&&p>e||u!==Me.End&&p<r);)p!==i[f][c]?d.push({...h,[c]:p,[P.xAxisField]:p}):f=u===Me.End?f-1:f+1,p=Ar({date:p,unit:l===Q.Month||l===Q.Year?Q.Day:l,size:1,nextOrPrevious:u===Me.End?"previous":"next"})}return d}function dS(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]?.[P.dateBinningRange]?.[0],l=e[e.length-1]?.[P.dateBinningRange]?.[1];if(s===Me.End?o<a:l>i)if(s===Me.End){let d=o;for(;d<a&&e.length>0;)e.shift(),e.length>0&&(d=e[0][P.dateBinningRange]?.[0])}else{let d=l;for(;d>i&&e.length>0;)e.pop(),e.length>0&&(d=e[e.length-1][P.dateBinningRange]?.[1])}}return n}function cS(t){let{groupByFieldsForStatistics:e,dateField:r,queryStartDate:a,queryEndDate:i,y:n,binIndex:s,lastBin:o}=t,l=e===""?Jr.groupByCaseBegin:e;return l=qe(lC,{groupByFieldsForStatistics:l,dateField:r,startDate:`${a}`,endDate:`${i}`,y:[n].flat()[0],binIndex:`${s}`,endDateOperand:o?"<=":"<"}),l}function*uS(t){let{queryObject:e,seriesConfig:r,queryConfig:a,completeData:i}=t;for(let n=0;n<r.length;n+=1){let s=r[n],{query:o,x:l,y:d}=s,c=[{onStatisticField:o?.outStatistics?.[0]?.onStatisticField??"",outStatisticFieldName:j.ContinuousPercentile,statisticType:j.ContinuousPercentile,statisticParameters:{value:.5}}],u=Jr.groupByCaseBegin;for(let p=0;p<i.length;p+=1){let f=i[p],[m,y]=f[P.dateBinningRange],b=Ci(m),v=Ci(y);u=cS({groupByFieldsForStatistics:u,queryStartDate:b,queryEndDate:v,dateField:l,y:[d].flat()[0],binIndex:p,lastBin:p===i.length-1})}u=`${u} ${Jr.groupByCaseEnd}`;let h={...a,groupByFieldsForStatistics:[u],outStatistics:c,orderByFields:void 0};yield Bt({queryObject:e,queryConfig:h,noBatch:!0})}}async function pS(t){let{queryObject:e,data:r,seriesConfig:a,queryConfig:i}=t,n=r,{statisticType:s}=a[0].query?.outStatistics?.[0]??pa;if(s===j.ContinuousPercentile&&n.length>0){let o=uS({queryObject:e,completeData:n,seriesConfig:a,queryConfig:i}),l=(await Promise.all(o)).flat();if(l.length>0){let{isInItem:d,expr:c}=Fn(l[0].attributes);d&&l.forEach(u=>{let h=u.attributes[`${c}`];if(h!==void 0){let[p,f]=h.split("|");if(f!==void 0){let m=u.attributes[j.ContinuousPercentile];n[f][`${p}`]=m}}})}}return n}async function hS(t){let{chartConfig:e,queryResults:r,mapToStatField:a,splitByField:i,x:n,y:s,nullPolicy:o,queryObject:l}=t,d=Yp(n),c=(await Ct(l)).find(m=>m.name===n)?.type,u=[],h=e.series[0],p="temporalBinning"in h?h.temporalBinning?.trimIncompleteTimeInterval:!1,f="temporalBinning"in h?h.temporalBinning?.timeAggregationType:!1;return r.forEach((m,y)=>{if(!(p&&(y===0&&f===Me.End||y===r.length-1&&f===Me.Start))){let{attributes:b,stackedAttributes:v}=m,S=b[d.lowerBoundaryAlias],x=b[d.upperBoundaryAlias],I=S,O=x,q=(A,M)=>{let N=A;if(M===Te.DateOnly&&(typeof A=="string"&&A.length===10||typeof A=="number"))if(typeof A=="string"){let R=A.split("-");R.length===3&&(N=ae.local(Number(R[0]),Number(R[1]),Number(R[2])).valueOf())}else N=new Date(A),N=new Date(N.valueOf()+N.getTimezoneOffset()*6e4),N=ae.local(N.getFullYear(),N.getMonth()+1,N.getDate()).valueOf();else typeof A=="string"&&["+","-"].forEach(R=>{R&&A.lastIndexOf(R)===A.length-6&&(N=new Date(A.slice(0,A.lastIndexOf(R))).valueOf())});return N};S=q(S,c),x=q(x,c);let L=(A,M)=>{if(M)switch(!0){case(o===at.Zero&&(A[M]===void 0||A[M]===null)):A[M]=0;break;case o===at.Null:break;case(o===at.Interpolate&&(A[M]===void 0||A[M]===null)):delete A[M];break}};if(typeof S=="number"&&typeof x=="number"){let A={...b};A[P.originalServerBinningRange]=[I,O],A[n]=S,A[P.xAxisField]=S,A[P.dateBinningRange]=[S,x],delete A[d.lowerBoundaryAlias],delete A[d.upperBoundaryAlias],v&&i&&!Le(i)&&a?v.forEach(R=>{let $=R[i];if($===null||typeof $=="string"||typeof $=="number"){let E=a?.get($);E!==void 0&&(A[E]=R[Ne.outStatistics?.outStatisticFieldName??""],L(A,E))}}):L(A,s);let{featureExtent:M,featureExtentKey:N}=_p({feature:m,splitByField:i});M&&(A[N]=M),u.push(A)}}}),u}async function fS(t){let{queryObject:e,queryResults:r,x:a,queryConfig:i,seriesConfig:n,dateRange:s,timeIntervalInfo:o}=t,l=r,{dateMinTimestamp:d,dateMaxTimestamp:c}=s;if(d&&c){let u=r.length;if(pn({arrayToSort:l,sortingField:a}),u>1){let{numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:p}=Vp({dateMinTimestamp:d,dateMaxTimestamp:c,timeIntervalInfo:o}),{newDateMin:f,newDateMax:m}=nS({dateMaxTimestamp:c,data:l,numberOfFinalBinsWithinDataRange:h,numberOfSingleBinsWithinDataRange:p,seriesConfig:n,timeIntervalInfo:o});l=lS({newDateMin:f,newDateMax:m,seriesConfig:n,data:l,initialNumberOfBins:u,numberOfSingleBinsWithinDataRange:p,timeIntervalInfo:o}),pn({arrayToSort:l,sortingField:a}),l=aS({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:c,timeIntervalInfo:o}),l=dS({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:c}),l=await pS({queryObject:e,data:l,seriesConfig:n,queryConfig:i})}}return l}function mS(t){return Math.floor(Math.min(Math.max(8,Math.sqrt(t??8)),128)+.5)}function yS(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=mS(r),l=(s-n)/o,d=Jc.findIndex(b=>b.threshold>l),c=Jc[d],{unitMs:u,preferredIntervalSize:h}=c;({unit:a}=c);let p=l/u,f=h.findIndex(b=>b>=p),m=h[f],y=f===0?h[0]:h[f-1];i=m-p<p-y?m:y}return{size:i,unit:a}}function gS(t){let{series:e,isTimeBinningSeries:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(Wt(e)&&r){let{unit:n,size:s}=e.temporalBinning??{};i=!Vs(n,s)&&a===!0}return i}function bS(t){let e=[];for(let r=1;r<=6;r+=1){let a=t[`EXPR_${r}`]??t[`Expr${r}`]??t[`expr${r}`]??t[`EXPR${r}`];a!==null&&e.push(a)}return ae.local(Number(e[0]??1969),Number(e[1]??1),Number(e[2]??1),Number(e[3]??0),Number(e[4]??0),Number(e[5]??0)).valueOf()}function _p(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 vS(t){let{input:e,x:r,splitByField:a}=t;return e.reduce((i,n)=>(a!==void 0&&a!==r&&!(P.technicalFieldSplitByField in n)&&delete n[a],Object.assign(i,n)),{})}function Ki(t){let{data:e,x:r,splitByField:a}=t,i=e;return e!==void 0&&e.length>0&&(i=[...Bn(e,n=>vS({input:n,x:r,splitByField:a}),n=>n[r]).values()]),i}function SS(t,e){let r=t,a=Y(e);if(a!==g.PieSeries&&a!==g.BoxPlotSeries){let i=tt(e),n=e[0].y;t.forEach(s=>{let o=0;if(i.forEach(l=>{let d=s[l];Number.isFinite(d)&&(o+=d)}),s[P.technicalSortingFieldBySum]=o,Number.isFinite(o)&&o>0){let l=s[n];if(Number.isFinite(l)){let d=l/o;s[P.technicalSortingFieldByPercent]=d}}})}return r}function wS(t,e){let r=e,a=tt(t),i=a.length===1;return a.forEach(n=>{let s=vi(i?void 0:n),o=r[s[H.FirstQuartile]],l=r[s[H.ThirdQuartile]];Number.isFinite(o)&&Number.isFinite(l)&&l>=o&&(r[s[H.IQR]]=l-o)}),r}function CS(t,e){let r=e.series[0],a=t;if(r.type===g.HeatSeries){let{x:i,y:n}=r;a[xe.xField]=a[i]?.toString(),delete a[i],a[xe.yField]=a[n]?.toString(),delete a[n];let s=r.query?.outStatistics?.[0]?.outStatisticFieldName;s&&(a[xe.valueField]=a[s],delete a[s])}return a}function fo(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 xS(t,e){let r=[];Ne.outStatistics.outStatisticFieldName&&Object.keys(t).includes(Ne.outStatistics.outStatisticFieldName)?r=[Ne.outStatistics.outStatisticFieldName]:r=Array.from(new Set(e.flatMap(a=>a.query?.outStatistics?.map(i=>i.outStatisticFieldName)))),fo(t,r)}function FS(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 IS(t){let{dataItem:e,splitByField:r,y:a,fieldOID:i}=t;if(e!==void 0&&!Le(r)&&!Le(a)){let n=e[r],s=`${a}_${n?.toString()}`;e[s]=e[a],i&&a!==i&&delete e[a]}}function TS(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 PS(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 AS(t){let{attributes:e,showMean:r,chartSubType:a}=t;r&&(a===C.BoxPlotMonoFieldAndSplitBy||a===C.BoxPlotMultiFieldsAndSplitBy||a===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&(e[P.boxPlot.boxPlotMeanLineMarkerId]=!0)}function OS(t){let{queryResponse:e,chartConfig:r,maxCategoryCount:a}=t,i=X(r.series);return a&&Number.isFinite(a)&&a<e.length&&kp.includes(i)?e.slice(0,a):e}function LS(t){let{attributes:e,uniqueCategoryList:r,maxCategoryCount:a,x:i,chartSubType:n}=t,s=!1;if(i&&a&&Number.isFinite(a)&&!kp.includes(n))if((n===C.BarAndLineFromFields||n===C.PieFromFields)&&Object.keys(e).length>a)Object.keys(e).filter(o=>o!==j.EnvelopeAggregate).forEach((o,l)=>{l>=a&&delete e[o]});else{let o=e[i];o!==void 0&&(r.size===a&&!r.has(o)?s=!0:r.add(o))}return s}function zp(t){let{queryObject:e,queryResponse:r,chartConfig:a,mapToStatField:i,splitByField:n,isDateField:s,isTimeBinningSeries:o,subtypeInfo:l,resultLimit:d,showMean:c,chartLimits:u,fieldList:h}=t,{series:p}=a,f=X(p),m=Y(p),{x:y}=p[0],b="y"in p[0]?p[0].y:void 0,v=p[0].query?.outStatistics??[],{originalCategoryValue:S,originalDateValue:x,typeOrDomainFieldName:I,typeOrDomainIdValue:O}=P,q=[],L=0,A=new Set,{maxCategoryCount:M}=Yr(u),N=OS({queryResponse:r,chartConfig:a,maxCategoryCount:M});for(let R=0;N[R]&&R<N.length&&!(d!==void 0&&L>=d);R+=1){L+=PS(f,a);let $=N[R],E={...$.attributes};if(LS({attributes:E,uniqueCategoryList:A,maxCategoryCount:M,x:y,chartSubType:f}))continue;if(xS(E,p),f===C.PieFromFields||f===C.BarAndLineFromFields)E=FS(E,v);else if(typeof b=="string"&&f===C.BarAndLineSplitByNoAggregation){let U=de(e),{idField:ie,isTraditionalTypeOID:Re}=Zt(U);IS({dataItem:E,splitByField:n,y:b,fieldOID:Re?ie:void 0})}else b&&(f===C.BoxPlotMonoField||f===C.BoxPlotMonoFieldAndCategory||f===C.BoxPlotMonoFieldAndSplitBy||f===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&TS(E,typeof b=="string"?b:b[0]);AS({attributes:E,showMean:c,chartSubType:f});let k=E[y];k===null&&p[0]?.query?.fetchNullValues===!0&&f!==C.PieFromFields&&(E[S]=null,k=P.nullValue),s&&typeof k=="string"?k=new Date(k).valueOf():o&&(k=bS(E));let{outStatisticFieldName:z}=Ne.outStatistics??{},{featureExtent:Z,featureExtentKey:W}=_p({feature:$,splitByField:n,chartSubType:f});if(Z&&(E[W]=Z),f===C.BarAndLineSplitBy&&z!==void 0){let U=E[n],ie=i?.get(U);ie!==void 0&&(U===n&&(E[P.technicalFieldSplitByField]=E[ie]),E[ie]=E[z]),delete E[z]}else(f===C.PieNoAggregation||f===C.BarAndLineNoAggregation||f===C.BarAndLineSplitByNoAggregation)&&(s?E[x]=k:k!==P.nullValue&&(E[S]=k),Dg({isXAxis:!0,chartType:m,valueFormat:a.axes?.[0]?.valueFormat})&&(E[P.xAxisField]=`${k}-${R}`),E[Ne.uniqueIdsName]=$.getObjectId());let G=gw({subtypeInfo:l,fieldList:h,fieldName:y,fieldValueToMatch:k});G!==void 0&&G!==k&&f!==C.PieFromFields&&(E[S]=G,E[I]=y,E[O]=k),m===g.BoxPlotSeries&&(E=wS(p,E)),m===g.PieSeries&&typeof k=="number"&&(E[S]===void 0&&(E[S]=E[y]),k=`${k}`),k!==void 0&&(E[S]===void 0&&(E[S]=E[y]),E[y]=G??k,E[y]===null&&(E[y]=m===g.HeatSeries?"null":P.nullValue),m===g.HeatSeries&&typeof b=="string"&&E[b]===null&&(E[b]="null",E[P.originalYCategoryValue]=null),E[P.xAxisField]===void 0&&(E[P.xAxisField]=E[O]??E[y])),E=CS(E,a),q.push(E)}return q}async function In(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,mapToStatField:i,abortKey:n,elementCount:s,isTimeBinningSeries:o,showMean:l,chartLimits:d,usePopupTemplateFieldsInfo:c,preFetchedQueryResponse:u}=t,{series:h}=a,p=X(h),f=[],m=p===C.BarAndLineSplitBy||p===C.BarAndLineSplitByNoAggregation?Ye(h[0].query?.where):"",y=u??await Bt({queryObject:e,queryConfig:r,featureCount:s,abortKey:n}),b=await Ct(e,c),v=mw(b),{x:S}=h[0],x=v.includes(S),I=th(e);return f=zp({queryObject:e,queryResponse:y,chartConfig:a,mapToStatField:i,splitByField:m,isDateField:x,isTimeBinningSeries:o,subtypeInfo:I,fieldList:b,resultLimit:r.num,showMean:l,chartLimits:d}),p!==C.BarAndLineSplitByNoAggregation&&p!==C.BarAndLineFromFields&&(m!==""&&(f=Ki({data:f,x:S,splitByField:m})),f=SS(f,h)),f}async function Up(t){let{chartConfig:e,queryObject:r,queryConfig:a,numberMaxOfFeaturesToFetch:i,behaviorAfterLimit:n,isGaugeByFeature:s}=t,{series:o}=e,l=X(o),{x:d}=o[0],c=o.length,u,h;if(l===C.BoxPlotMonoField||l===C.BoxPlotMonoFieldAndSplitBy?(h=c,u=h):l===C.BoxPlotMultiFields||l===C.BoxPlotMultiFieldsAndSplitBy?(h=e.series[0].y.length,u=h):l===C.PieFromFields||l===C.BarAndLineFromFields?(h=o[0].query?.outStatistics?.filter(p=>p.statisticType!==j.EnvelopeAggregate).length??0,u=h):u=await KS({queryObject:r,x:d,chartSubType:l,queryConfig:a,isGaugeByFeature:s}),u!==void 0){let p=l===C.BoxPlotMonoField||l===C.BoxPlotMonoFieldAndCategory||l===C.BoxPlotMonoFieldAndSplitBy;h=Ws(l)&&!p?u*c:u}return n===Lr.RenderUpToTheLimit&&h!==void 0&&i!==void 0&&i<h&&(h=i,u=Math.ceil(h/c)),{categoryOrDateCount:u,elementCount:h}}function zc(t){let{orderBy:e,axisFormatOptions:r}=t;return e!==void 0&&r!==void 0&&(!Array.isArray(e)||r?.type===g.CategoryAxisFormat)}function Uc(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===ze.Descending?typeof t=="string"&&typeof e=="string"?a=e.localeCompare(t,void 0,{numeric:!0}):a=(Number(e)||0)-(Number(t)||0):r===ze.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 ES(t){let{arrayToSort:e,chartConfig:r,dataOrderParameters:a}=t,i,n,s=!1,o=!1,l=!1;a&&a.length>=2&&e.length>1&&([i,n]=a,s=i&&i.sortingField.length>0&&zc({orderBy:i.orderBy,axisFormatOptions:r.axes?.[0]?.valueFormat}),o=n&&n.sortingField.length>0&&zc({orderBy:n.orderBy,axisFormatOptions:r.axes?.[1]?.valueFormat}),l=s||o),l&&e.sort((d,c)=>{let u=0;if(s&&i?.sortingField){let h=i.orderBy;u=Uc(d[i.sortingField],c[i.sortingField],h)}if(u===0&&o&&n?.sortingField){let h=n.orderBy;u=Uc(d[n.sortingField],c[n.sortingField],h)}return u})}function na(t){let{arrayToSort:e,chartConfig:r,fieldList:a,isTimeBinningSeries:i}=t;if(i!==!0){let{series:n}=r,s=X(n),o=Y(n),l=lr(r),d=Gs(r);if(wi(r)&&e!==void 0)ES({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],h=r.orderOptions?.data?.orderType===nt.Category,p=d[0].preferLabel!==!1,f=s===C.BarAndLineFromFields||s===C.PieFromFields||s===C.BoxPlotMultiFields||s===C.BoxPlotMultiFieldsAndSplitBy,m=f||o===g.PieSeries,y=s===C.PieNoAggregation||s===C.BarAndLineNoAggregation||s===C.BarAndLineSplitByNoAggregation,b=f?!1:e?.length>0&&e.some(v=>Object.hasOwn(v,P.typeOrDomainIdValue));if(h&&(!p||(o===g.LineSeries||o===g.RadarSeries)&&l===g.NumberAxisFormat)&&(b?u=P.typeOrDomainIdValue:m&&(u=P.originalCategoryValue)),Array.isArray(c))Pb({arrayToSort:e,orderBy:c,sortingField:u,fieldList:a,isByFieldsChart:f,preferLabel:p});else{let v=l===g.DateAxisFormat&&h;pn({arrayToSort:e,orderBy:c,sortingField:u,forceAscendingOrder:v,isNonAggregated:y,sortByCategory:h,preferLabel:p,isPieOrByFieldsChart:m})}}}}async function Zs(t){let{chartConfig:e,queryConfig:r,fetchFullBoxPlotData:a,options:i,queryObject:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,d="showMean"in e&&typeof e.showMean=="boolean"?e.showMean:!1,{chartLimits:c,usePopupTemplateFieldsInfo:u}=i??{},h=i?.replaceNoValueCategoryWithZero??P.options.replaceNoValueCategoryWithZero,{behaviorAfterLimit:p}=c??{},f={valid:!0},m,y=!1,b=e.series,v=b[0],S=X(e.series);if(v!==void 0&&n!==void 0){let x=Y(b),{uniqueQuery:I,mapToStatField:O}=await po({chartConfig:e,queryObject:n,queryConfig:r,fetchFullBoxPlotData:a,options:i}),{categoryOrDateCount:q,elementCount:L}=await Up({chartConfig:e,queryObject:n,queryConfig:r,behaviorAfterLimit:p,numberMaxOfFeaturesToFetch:I.num}),A=!Number.isFinite(L),M=A||ir({count:L??0,seriesCount:b.length,chartType:x,chartLimits:c});if(M&&(m=await In({queryObject:n,uniqueQuery:I,chartConfig:e,preFetchedQueryResponse:l,mapToStatField:O,elementCount:L,isTimeBinningSeries:!1,showMean:d,chartLimits:c,usePopupTemplateFieldsInfo:u,abortKey:s}),dt(e)&&m!==void 0&&(f.data=await Yv({data:m,queryObject:n,fetchFullBoxPlotData:a,uniqueQuery:I,chartConfig:e,elementCount:L,chartLimits:c,abortKey:s}),c?.maxBoxPlotOutlierLimit!==void 0&&(M=(f.data.outliers??[]).length<=c.maxBoxPlotOutlierLimit,y=!M)),A&&(q=m.length,L=Ws(S)?q*b.length:q,M=ir({count:L,seriesCount:b.length,chartType:x,chartLimits:c})),M)){if(x===g.PieSeries){S===C.PieFromFields&&(m=hn({dataToConvert:m[0],x:st,y:jt,fieldList:o}));let N="";S===C.PieFromFields?N=jt:"y"in v&&typeof v.y=="string"&&(N=v.y),Mb(m,N)?f.data={dataItems:m}:kv(f,se.PieChartMixOfNegativePositiveSlices)}else if((x===g.RadarSeries||x===g.BarSeries||x===g.LineSeries||x===g.ComboLineAndBarSeries)&&(S===C.BarAndLineFromFields&&"y"in v&&typeof v.y=="string"?m=hn({dataToConvert:m[0],x:v.x,y:v.y,fieldList:o}):m=await Y0({queryObject:n,seriesData:m,chartConfig:e,queryConfig:r,categoryOrDateCount:q,behaviorAfterLimit:p,abortKey:s}),L=Ws(S)?m.length*b.length:m.length,M=ir({count:L,seriesCount:b.length,chartType:x,chartLimits:c}),M)){h&&(m=X0(m,e)),na({arrayToSort:m,chartConfig:e,fieldList:o});let N={};if(Wt(v)){let{size:R,unit:$}=v.temporalBinning??{};R!==void 0&&$!==void 0&&(N={size:R,unit:$})}f.data={dataItems:m,timeIntervalInfo:N}}}M||yn({dataInfo:f,chartType:x,subError:{outlierLimit:y}}),f.count=L}return f}function DS(t){let e,{start:r,end:a}=vo({field:"",unit:t,addIntervalStatement:!1});return a&&(e=Array.from({length:a+(r===0?1:0)},(i,n)=>(n+(r??1)).toString())),e}function NS(t){return t.hideEmptyRowsAndColumns===!0&&(t.nullPolicy!==at.Zero||t.series[0].query?.outStatistics?.[0].statisticType===j.Count)}function BS(t){let{dataItems:e,valueField:r,valueToUse:a,xField:i,yField:n}=t,s=new Set(e.filter(l=>l[r]!==a).map(l=>l[i])),o=new Set(e.filter(l=>l[r]!==a).map(l=>l[n]));return e.filter(l=>s.has(l[i])&&o.has(l[n]))}function MS(t){let{dataItems:e,xUniqueValues:r,yUniqueValues:a,xField:i,yField:n,valueField:s,valueToUse:o}=t,l=new Set,d=new Set,c=new Set;for(let h of e){let p=String(h[i]),f=String(h[n]);l.add(`${p}|${f}`),d.add(p),c.add(f)}let u=[];for(let h of r){let p=String(h);for(let f of a){let m=String(f);!l.has(`${p}|${m}`)&&d.has(p)&&c.has(m)&&u.push({[P.originalCategoryValue]:h===null?null:h,[P.originalYCategoryValue]:f===null?null:f,[i]:h===null?"null":h,[n]:f===null?"null":f,[s]:o})}}return u}function Hc(t){let{day:e,month:r}=t;return r===2&&e>29||[4,6,9,11].includes(r)&&e>30}async function Hp(t){let{chartConfig:e,queryConfig:r,queryObject:a,completeHeatChartDataset:i=!0,errorStrings:n,options:s,abortKey:o}=t,l={valid:!0},d;if(wi(e)){let{nullPolicy:c}=e,u=e.series[0],{x:h,y:p,query:f,xTemporalBinning:m,yTemporalBinning:y}=u,b=f?.outStatistics?.[0]?.outStatisticFieldName??"";r?.outStatistics?.[0]&&Op(r.outStatistics[0])&&!("statisticParameters"in r?.outStatistics[0])&&(r.outStatistics[0].statisticParameters={value:P.defaultStatParameterValue});let v=NS(e),S=xe.xField,x=xe.yField,I=xe.valueField,O=c===at.Zero?0:null;if(Ip(e)){let q=await ZS({chartConfig:e,queryObject:a,queryConfig:r,returnFeaturesExtent:s?.returnFeaturesExtent,errorStrings:n,abortKey:o});if(!ir({count:q?.length??0,seriesCount:1,chartType:g.HeatSeries,chartLimits:s?.chartLimits}))yn({dataInfo:l,chartType:g.HeatSeries});else if(typeof q?.[0]=="object"){let L=await Ct(a,s?.usePopupTemplateFieldsInfo),A=th(a);d=zp({queryObject:a,queryResponse:q,chartConfig:e,splitByField:"",isDateField:!1,isTimeBinningSeries:!1,chartLimits:s?.chartLimits,resultLimit:r.num,subtypeInfo:A,fieldList:L});let M=await ws({queryObject:a,queryConfig:r,category:h,abortKey:o}),N=await ws({queryObject:a,queryConfig:r,category:p,abortKey:o});d.length!==M?.length*N?.length&&(v&&(d=BS({dataItems:d,valueField:I,valueToUse:O,xField:S,yField:x})),d=[...d,...MS({dataItems:d,xUniqueValues:M,yUniqueValues:N,xField:S,yField:x,valueField:I,valueToUse:O})])}}else{let q=await QS({chartConfig:e,queryObject:a,queryConfig:r,errorStrings:n}),L=y?DS(y.unit):await ws({queryObject:a,queryConfig:r,category:p,abortKey:o}),A=0;d=q?.features.flatMap(M=>{let N=[],{attributes:R,stackedAttributes:$}=M,E=[];if($?.forEach(k=>{let z=`${k[p]}`;E.push(z),N.push({[S]:`${R.lowerBoundary}`,[x]:z,[I]:k[b]})}),i&&L&&E.length!==L?.length){let k=L.filter(z=>!E.includes(z.toString()));v&&(k.length!==L.length||E.length===0)||k.forEach(z=>{Number.isFinite(Number(R.lowerBoundary))&&Number.isFinite(Number(z))&&(m?.unit===gt.DayOfMonth&&y?.unit===gt.MonthOfYear&&Hc({day:Number(R.lowerBoundary),month:Number(z)})||y?.unit===gt.DayOfMonth&&m?.unit===gt.MonthOfYear&&Hc({day:Number(z),month:Number(R.lowerBoundary)}))||N.push({[S]:`${R.lowerBoundary}`,[x]:z,[I]:c===at.Zero?0:null})})}return A+=N.length,N}),ir({count:A,seriesCount:1,chartType:g.HeatSeries,chartLimits:s?.chartLimits})||yn({dataInfo:l,chartType:g.HeatSeries})}}return d&&(na({arrayToSort:d,chartConfig:e}),l.data={dataItems:d}),l}function $S(t){let{chartConfig:e,options:r,data:a}=t,i=e.series,n=a,s=op(e,r?.chartLimits);if(s!==void 0){let o=tt(i);if(o.length===1)n=a.filter(l=>Number.isFinite(l[o[0]])).slice(0,s);else if(a.length*o.length>s){let l=[],d=0,c=0;for(;d<=s&&c<a.length;){let u=a[c];if(l.push(u),d+=o.filter(h=>Number.isFinite(u[h])).length,d>s){let h=d-s,p=o.length-1;for(;h!==0&&p>=0;){let f=o[p];Number.isFinite(u[f])&&(delete u[f],h-=1),p-=1}}c+=1}n=l}}return n}async function mo(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,preFetchedQueryResponse:s}=t,{chartLimits:o,usePopupTemplateFieldsInfo:l}=n??{},{behaviorAfterLimit:d}=o??{},c=e.series,u=c[0],{x:h}=u,p=Ye(u.query?.where),f={valid:!0},m;if(Wt(u)){let{temporalBinning:y}=u;if(a&&y){let{unit:b,size:v}=y,S=1,x={unit:b,size:v},I=!1,O=gS({series:u,isTimeBinningSeries:!0,setTimeBinningInfoWhenNotProvided:n?.setTimeBinningInfoWhenNotProvided}),q=!Yi(a)||O?await oS({queryObject:a,queryConfig:r,x:h}):void 0;O&&q&&q.numberOfFeatures>0&&q.dateRange.dateMaxTimestamp!==void 0&&q.dateRange.dateMinTimestamp!==void 0&&(x=yS(q),(await Ct(a)).find(N=>N.name===h)?.type===Te.DateOnly&&x.unit!==void 0&&[Q.Hour,Q.Minute,Q.Second].includes(x.unit)&&(x.unit=Q.Day,x.size=1),y.size=x.size,y.unit=x.unit);let{uniqueQuery:L,mapToStatField:A}=await po({chartConfig:e,queryConfig:r,queryObject:a,timeIntervalInfo:x,options:n}),M=ir({count:S??0,seriesCount:c.length,chartType:g.LineSeries,chartLimits:o});if(M){if(Yi(a)){let N=s?.[0]instanceof Cm?s:await tw({queryObject:a,dateField:h,splitByField:p,queryConfig:L,temporalBinning:y}),R="y"in u&&typeof u.y=="string"?u.y:void 0;if(m=await hS({chartConfig:e,queryResults:N,mapToStatField:A,splitByField:p,x:h,y:R,nullPolicy:y.nullPolicy,queryObject:a}),!ir({count:m.length,seriesCount:c.length,chartType:g.LineSeries,chartLimits:o})){let $=tt(c),E=m.filter(k=>$.some(z=>z in k&&Number.isFinite(k[z]))).length;ir({count:E,seriesCount:c.length,chartType:g.LineSeries,chartLimits:o})||(M=!1)}}else if(q?.dateRange.dateMinTimestamp&&q.dateRange.dateMaxTimestamp){let{numberOfFinalBinsWithinDataRange:N}=Vp({dateMinTimestamp:q.dateRange.dateMinTimestamp,dateMaxTimestamp:q.dateRange.dateMaxTimestamp,timeIntervalInfo:x});S=N*c.length,S=jp(S,x.unit),m=await In({queryObject:a,uniqueQuery:L,chartConfig:e,mapToStatField:A,elementCount:S,chartLimits:o,isTimeBinningSeries:!0,usePopupTemplateFieldsInfo:l,abortKey:i}),m=await fS({queryObject:a,queryConfig:r,queryResults:m,x:h,seriesConfig:c,dateRange:q.dateRange,timeIntervalInfo:x})}Qp(a)&&m&&m?.length===eS&&(I=!0),d===Lr.RenderUpToTheLimit&&m&&(m=$S({chartConfig:e,options:n,data:m}))}M||(f.valid=!1,f.invalidType=se.LineChartExceedsLimit),m&&m.length>0&&(m[m.length-1][P.lastTemporalBin]=!0),f.data={dataItems:m,timeIntervalInfo:x,serverLimitReached:I},f.count=S}}return f}async function qS(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n}=t,s=Zi(e),{setTimeBinningInfoWhenNotProvided:o,chartLimits:l,usePopupTemplateFieldsInfo:d}=n??{},c={valid:!0};if(a!==void 0){let u=e.series,h=ei({seriesConfig:u[0],xAxisValueFormatType:lr(e),setTimeBinningInfoWhenNotProvided:o}),{uniqueQuery:p,mapToStatField:f}=await po({chartConfig:e,queryObject:a,queryConfig:r,fetchFullBoxPlotData:!s,options:n}),m=await In({queryObject:a,uniqueQuery:p,elementCount:1,chartConfig:e,mapToStatField:f,isTimeBinningSeries:h,showMean:s,chartLimits:l,usePopupTemplateFieldsInfo:d,abortKey:i});dt(e)&&(m=Pp({chartConfig:e,data:m,calculateZScore:!1})),c.data={dataItems:m}}return c}async function RS(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,errorStrings:s}=t,o={valid:!0};if(dt(e)){let l=dt(e)?e.showMean:!1;o=await ho({queryObject:a,chartConfig:e,queryConfig:r,options:n,errorStrings:s,abortKey:i}),l&&o.data&&"dataItems"in o.data&&"meanLines"in o.data&&o.data.meanLines&&(o.data.dataItems=[...o.data.dataItems,...o.data.meanLines])}return o}function Gp(t){return t?.[Hi.defaultGroupOfSlicesId]===!0}function FF(t,e){let r=t.filter(a=>!Gp(a));return!er(r,e)}function kS(t,e){let r=t.reduce((a,i)=>{if(i[Hi.defaultGroupOfSlicesId]===!0){let n=i[P.pieChart.technicalFieldGroupedSlices];n!==void 0&&n.forEach(s=>{a.push(s)})}else a.push(i);return a},[]);return na({arrayToSort:r,chartConfig:e}),r=np({data:{dataItems:r},seriesConfig:e.series})?.dataItems??[],r}var _t={DataProcessComplete:"arcgisChartsJSDataProcessComplete",DataFetchComplete:"arcgisChartsJSDataFetchComplete",InvalidConfigWarningRaise:"arcgisChartsJSInvalidConfigWarningRaise",LegendItemVisibilityChange:"arcgisChartsJSLegendItemVisibilityChange",RenderingComplete:"arcgisChartsJSRenderingComplete",SeriesColorsChange:"arcgisChartsJSSeriesColorChange",AxesMinMaxChange:"arcgisChartsJSAxesMinMaxChange",SelectionComplete:"arcgisChartsJSSelectionComplete",TooManySelectedElements:"arcgisChartsJSTooManySelectedElements",BadDataWarningRaise:"arcgisChartsJSBadDataWarningRaise",SeriesOrder:"arcgisChartsJSSeriesOrder"};function zt(t){return{detail:t,composed:!0,cancelable:!0,bubbles:!0}}function IF(t){let{data:e,seriesConfig:r,htmlContainer:a}=t;if(a&&e){let i=np({data:e,seriesConfig:r});a.dispatchEvent(new window.CustomEvent(_t.DataProcessComplete,zt(i)))}}function TF(t){let{data:e,chartConfig:r,htmlContainer:a}=t;if(a&&e){let i={...e};Y(r.series)===g.PieSeries&&"dataItems"in i&&(i.dataItems=kS(i.dataItems,r)),a.dispatchEvent(new window.CustomEvent(_t.DataFetchComplete,zt(i)))}}function PF(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.LegendItemVisibilityChange,zt(t)))}function AF(t){t&&t.dispatchEvent(new window.CustomEvent(_t.RenderingComplete,zt()))}function OF(t){let{data:e,htmlContainer:r}=t;r&&r.dispatchEvent(new window.CustomEvent(_t.SelectionComplete,zt(e)))}function LF(t){t&&t.dispatchEvent(new window.CustomEvent(_t.TooManySelectedElements,zt()))}function EF(t){let{data:e,htmlContainer:r,chartId:a,colorMatchApplied:i}=t;r&&r.dispatchEvent(new window.CustomEvent(_t.SeriesColorsChange,zt({chartId:a,data:e,colorMatchApplied:i})))}function DF(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.AxesMinMaxChange,zt(t)))}function NF(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.BadDataWarningRaise,zt(t)))}function BF(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.InvalidConfigWarningRaise,zt(t)))}function jS(t){let{data:e,htmlContainer:r}=t;r&&e&&r.dispatchEvent(new window.CustomEvent(_t.SeriesOrder,zt(e)))}var ct=class extends Error{constructor(e,r,a){super(r),this.name=e,this.details=a}},wt={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound"};function MF(t){return t!==void 0&&(!("url"in t)||!t.url)}function Or(t){return t!==void 0&&"layer"in t}function Qp(t){return t!==void 0&&"type"in t&&t.type==="feature"}function VS(t){return t!==void 0&&"type"in t&&t.type==="subtype-group"}function yo(t){return t!==void 0&&"type"in t&&t.type==="subtype-sublayer"}function WS(t){return Qp(t)||yo(t)}function Xe(t){return yo(t)?t.parent:t}function Zp(t){return t.capabilities?.query?.supportsDistance||Xe(t).sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function _S(t,e){return t.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&t.capabilities?.queryAttributeBins?.supportsStackBy&&!Or(e)}function Yi(t,e){return t!==void 0&&(Or(t)||"capabilities"in t&&t.capabilities?.queryAttributeBins?.supportsDate===!0&&(Le(e)||t.capabilities?.queryAttributeBins?.supportsStackBy))}function zS(t){let e=!1,r=Xe(de(t)).sourceJSON;if(r){let a=r.queryBinsCapabilities?.supportsFixedIntervalBin,i=r.queryBinsCapabilities?.supportedStatisticTypes,n=[j.Maximum,j.Count].every(s=>i?.includes(s.toUpperCase())||i?.includes(s.toLowerCase()));e=a&&n}return e}function $F(t){let e;return Or(t)?e=t.layer:e=t,e}function de(t){let e;return Or(t)?e=t.layer:e=t,e}function US(t){let e=!1,r=Xe(t).sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],a=t.capabilities?.query.supportedSpatialAggregationStatistics??{};return e=r.includes("EnvelopeAggregate")||"envelope"in a&&a.envelope===!0,e}function qF(t){let{chartConfig:e,queryObject:r}=t,a,i=de(r);return i&&(a={id:i.id,layerType:"ArcGISFeatureLayer"},i.url&&(a.url=i.url)),{...e,iLayer:a}}var Xi=new Map;function HS(t){let e;switch(t){case Vr.Feet:e="esriSRUnit_Foot";break;case Vr.Miles:e="esriSRUnit_StatuteMile";break;case Vr.NauticalMiles:e="esriSRUnit_NauticalMile";break;case Vr.USNauticalMiles:e="esriSRUnit_USNauticalMile";break;case Vr.Meters:e="esriSRUnit_Meter";break;case Vr.Kilometers:e="esriSRUnit_Kilometer";break}return e}async function GS(t){let{queryObject:e,queryConfig:r,outputFormat:a,dataFormat:i,outAnalytics:n}=t,{where:s,geometry:o,distance:l,units:d,timeExtent:c}=r,u,h=de(e),p=Xe(h),f={where:be([s,p.definitionExpression])},m={query:f},y=go(o)?.extent?.toJSON();if(y!==void 0){let v=HS(d),{xmin:S,ymin:x,xmax:I,ymax:O}=y;f.geometryType="esriGeometryEnvelope",f.geometry=`${S},${x},${I},${O}`,l!==void 0&&(f.distance=l.toString()),v!==void 0&&(f.units=v,o?.spatialReference?.wkid!=null&&(f.inSR=o.spatialReference.wkid.toString()))}c&&(f.time=`${c[0]},${c[1]}`);let b=`${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${i}&outAnalytics=${n}`;try{u=(await an(b,m)).data?.features?.[0]?.attributes}catch(v){let S=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,S.errors.queryError,v)}return u}function Jp(t,e){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`,stackAlias:`charts_stack_alias_${e}`}}async function QS(t){let{chartConfig:e,queryObject:r,queryConfig:a,errorStrings:i}=t,n,s=de(r),o=_S(s,r);if(o&&r&&"queryAttributeBins"in r){let{x:l,y:d,xTemporalBinning:c,yTemporalBinning:u}=e.series[0],{outTimeZone:h,firstDayOfWeek:p,includeLeapDay:f}=e,m=await dw({queryObject:r,queryConfig:a,x:l,y:d,xTemporalBinning:c,yTemporalBinning:u,outTimeZone:h,firstDayOfWeek:p,includeLeapDay:f});try{n=await r.queryAttributeBins(m)}catch(y){throw new ct(wt.QueryFeaturesError,i.errors.queryError,y)}}if(!o)throw new ct(wt.QueryFeaturesError,i.errors.queryBinsNotSupported,i.errors.queryBinsNotSupported);return n}async function ZS(t){let{chartConfig:e,queryObject:r,queryConfig:a,returnFeaturesExtent:i,errorStrings:n,abortKey:s}=t,o=e.series[0],l,{x:d,y:c}=o;a.groupByFieldsForStatistics=[d],d!==c&&a.groupByFieldsForStatistics.push(c),a&&i===!0&&!a.outStatistics?.some(u=>u.statisticType===j.EnvelopeAggregate)&&a.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"});try{l=await Bt({queryObject:r,queryConfig:a,abortKey:s})}catch(u){throw new ct(wt.QueryFeaturesError,n.errors.queryError,u)}return l}async function JS(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l,errorStrings:d}=t,c;if(e&&"queryAttributeBins"in e&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(i)&&Number.isFinite(n)&&a>0&&l>0){let u=cw({queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l});try{c=await e.queryAttributeBins(u)}catch(h){throw new ct(wt.QueryFeaturesError,d.errors.queryError,h)}}return c}async function KS(t){let{queryConfig:e,x:r,queryObject:a,chartSubType:i,isGaugeByFeature:n}=t,s;if(a!==void 0){let o=de(a),{idField:l,isTraditionalTypeOID:d}=Zt(o),c=So({queryObject:a,queryConfig:e});c.outFields=n||i===C.PieNoAggregation||i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation?[d?l:"*"]:[r];try{s=await a.queryFeatureCount(c)}catch{s=Number.NaN}}return s}async function sa(t){let{queryObject:e,queryConfig:r,abortKey:a}=t,{outStatistics:i}=r,n=new Map;if(e!==void 0&&i!==void 0&&i.length>0){let s=i.map(c=>{let{statisticType:u,onStatisticField:h,outStatisticFieldName:p}=c;return{statisticType:u,onStatisticField:h,outStatisticFieldName:p?.toUpperCase()}});r.outStatistics=s,delete r.num,delete r.orderByFields;let o=So({queryObject:e,queryConfig:r}),l;try{l=await e.queryFeatures(o,{signal:a!==void 0?Xi.get(a)?.signal:void 0})}catch(c){if(!Ys.isAbortError(c)){let u=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,u.errors.queryError,c)}}let d=l?.features?.[0]?.attributes;d!==void 0&&i.forEach(c=>{let{outStatisticFieldName:u}=c;if(u!==void 0){let h=d[u.toLowerCase()]??d[u.toUpperCase()]??d[u];h!==void 0&&n.set(u,h)}})}return n}async function Kp(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:i}=t,n=[],s=de(e);if(e!==void 0){let o=uw(s),l=So({queryObject:e,queryConfig:r,maxRecordCountFactor:o});try{if(a===!0)if("queryObjectIds"in e)n=await e.queryObjectIds(l);else{let{idField:d,isTraditionalTypeOID:c}=Zt(s),u=c?d:"*";l.outFields=[u],n=(await e.queryFeatures(l,{signal:i!==void 0?Xi.get(i)?.signal:void 0})).features.map(h=>h.getObjectId())}else n=(await e.queryFeatures(l,{signal:i!==void 0?Xi.get(i)?.signal:void 0})).features}catch(d){if(!Ys.isAbortError(d)){let c=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,c.errors.queryError,d)}}}return n}async function YS(t){let e=[],{featureCount:r,maxRecords:a,queryConfig:i}=t,n=[],s=0,o=i?.start??0;for(;s<Ne.maxParallelRequests&&o<r;){let l={...t};l.queryConfig={...i,start:o,num:Math.min(a,r-o)},e.push(Kp(l)),o+=a,s+=1}return n=(await Promise.all(e)).flat(),n}async function Bt(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,featureCount:i,noBatch:n,abortKey:s}=t,o=[],l=de(e);if(e!==void 0){let d=i??1,c=Xp(l);if(n!==!0&&d>c&&l.capabilities?.query.supportsPagination){let u=0,h=0,p=Math.ceil(d/c),f=Math.ceil(p/Ne.maxParallelRequests),m=[];for(;h<f;){u=h*Ne.maxParallelRequests*c;let y=YS({queryConfig:{...r,start:u},queryObject:e,maxRecords:c,featureCount:d,returnUniqueIdsOnly:a,abortKey:s});m.push(y),h+=1}o=(await Promise.all(m)).flat()}else(Number.isNaN(d)||d>=0)&&(o=await Kp({queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:s}))}return o}async function XS(t){let{queryObject:e,queryConfig:r,uniqueFeature:a,abortKey:i}=t,n={...r,returnDistinctValues:!0};return await Bt({queryObject:e,abortKey:i,queryConfig:n,returnUniqueIdsOnly:!0,featureCount:a===!0?1:void 0})}function ew(t){if(t!==void 0){let e=Xi.get(t);e!==void 0&&e.abort(),Xi.set(t,new AbortController)}}function Yp(t){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`}}async function tw(t){let{queryObject:e,dateField:r,splitByField:a,queryConfig:i,temporalBinning:n}=t,s=[],o;if(n){let{unit:l}=n;try{if(l){let d=Xe(de(e));if(o=Yi(d,a),o&&e&&"queryAttributeBins"in e){let c=await ow({queryObject:e,queryConfig:i,temporalBinning:n,dateField:r,splitByField:a});s=(await e.queryAttributeBins(c)).features}}}catch(d){let c=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,c.errors.queryError,d)}}if(o===!1){let l=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings;throw new ct(wt.QueryFeaturesError,l.errors.queryBinsNotSupported,l.errors.queryBinsNotSupported)}return s}function rw(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 Xp(t){let e=Ne.maxRecords;if(t&&"sourceJSON"in t&&t.sourceJSON?.maxRecordCount){let{sourceJSON:r}=t;e=r.maxRecordCount,r.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0&&(e*=Ne.maxRecordCountFactor)}return e}function be(t,e){let r,a=Array.from(new Set(t)).filter(i=>i!=null&&i!==""&&!ar(i));return a.sort((i,n)=>n.length-i.length),a.length===1?[r]=a:a?.forEach(i=>{i!==void 0&&(Le(r)?r=`(${i})`:r?.includes(`(${i})`)||(r=`${r} ${e??"AND"} (${i})`))}),r??"1=1"}function iw(t,e){let r=e;if(t!==void 0){let a=de(t),i=Xe(a).timeExtent;i?.start!=null&&i?.end!=null&&(r=[i.start.valueOf(),i.end.valueOf()])}return r}function aw(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 go(t){let e;return t!==void 0&&(e=Ks.fromJSON(t)),e}function nw(t){return t===void 0?["*"]:Array.from(new Set(t))}function eh(t,e){let{where:r,outStatistics:a,geometry:i,distance:n,units:s,timeExtent:o,returnDistinctValues:l}=e??{},d=de(t),c=Xe(d).createQuery();if(c.where=be([c.where,r]),"returnDistinctValues"in c&&(c.returnDistinctValues=l??!1),a!==void 0){let h=US(d);c.outStatistics=a.filter(p=>p.statisticType!==j.EnvelopeAggregate||h).map(p=>Am.fromJSON(p))}let u=go(i);return u!==void 0&&(c.geometry=u,e?.spatialRelationship&&(c.spatialRelationship=e.spatialRelationship),Zp(d)&&(n!==void 0&&(c.distance=n),s!==void 0&&(c.units=s))),o&&(c.timeExtent=new Om({start:o?.[0],end:o?.[1]})),rw(c)&&(c.cacheHint=!0),c}function bo(t,e){let r=eh(t,e),a=new Pm(r.toJSON());return a.outStatistics=r.outStatistics,a}function sw(t){let e;switch(t){case Me.Start:e="first";break;case Me.End:e="last";break}return e}async function ow(t){let{queryObject:e,queryConfig:r,temporalBinning:a,dateField:i,splitByField:n}=t,s=de(e),o=(await Ct(e)).find(b=>b.name===i)?.type,l=bo(e,r),{unit:d,size:c,timeAggregationType:u,start:h,end:p,offset:f,outTimeZone:m}=a,y=Yp(i);if(l.lowerBoundaryAlias=y.lowerBoundaryAlias,l.upperBoundaryAlias=y.upperBoundaryAlias,o!==Te.DateOnly&&(l.outTimeZone=m??Intl.DateTimeFormat().resolvedOptions().timeZone),l.binParameters={type:"date",field:i,interval:{unit:d,value:c},start:h,end:p,offset:f?{unit:f.unit,value:f.size}:null},l.binParameters.type==="date"&&(s.capabilities?.queryAttributeBins?.supportsSnapToData&&(l.binParameters.snapToData=sw(u)),s.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(l.binParameters.returnFullIntervalBin=!0)),!Le(n)){let b=Xe(s).fields.find(v=>v.name===n)?.type;(!b||b==="string"||b==="integer"||b==="small-integer"||b==="big-integer"||b==="double")&&(l.binParameters.stackBy={type:"field",value:n,valueType:b==="string"?"string":"integer"})}return l}function vo(t){let{field:e,fieldType:r,unit:a,outTimeZone:i,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o,includeLeapDay:l}=t,d,c,u=1,h=1;switch(a){case gt.MinuteOfDay:r!==Te.DateOnly&&(c="MINUTE",u=0,h=59);break;case gt.HourOfDay:r!==Te.DateOnly&&(c="HOUR",u=0,h=23);break;case gt.DayOfWeek:c="DOW",h=7;break;case gt.DayOfMonth:c="DAY",h=31;break;case gt.DayOfYear:c="DOY",h=366;break;case gt.WeekOfYear:c="WEEK",h=53;break;case gt.MonthOfYear:c="MONTH",h=12;break;case gt.QuarterOfYear:c="QUARTER",h=4;break}if(c){let p=o?` ${Ap({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:i})}`:"";d=lw({includeLeapDay:l,temporalKey:c,field:e,intervalStatement:p})}return{expression:d,start:u,end:h}}function lw(t){let{includeLeapDay:e,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 Gc(t){let{temporalBinning:e,xOrY:r,xOrYFieldType:a,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,includeLeapDay:l}=t,{unit:d}=e??{},c,u,h,p;return a===Te.Date||a===Te.DateOnly||a===Te.TimestampOffset?{expression:u,start:h,end:p}=vo({field:r,fieldType:a,unit:d,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,includeLeapDay:l}):c=r,{field:c,expression:u,start:h,end:p}}async function dw(t){let{queryObject:e,queryConfig:r,x:a,y:i,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,outTimeZone:l,includeLeapDay:d}=t,c=await Ct(e),u=c.find(x=>x.name===a)?.type,h=c.find(x=>x.name===i)?.type,p=bo(e,r);p.binParameters={type:"fixed-interval",interval:1},u!==Te.DateOnly&&(p.outTimeZone=l??Intl.DateTimeFormat().resolvedOptions().timeZone),o!==void 0&&(p.binParameters.firstDayOfWeek=o);let f=Gc({temporalBinning:n,xOrY:a,xOrYFieldType:u,addIntervalStatement:!1,includeLeapDay:d}),{field:m,expression:y,start:b,end:v}=f;m?p.binParameters.field=m:y&&(p.binParameters.expression=y,p.binParameters.expressionValueType="integer",p.binParameters.type==="fixed-interval"&&(b!==void 0&&(p.binParameters.start=b),v!==void 0&&(p.binParameters.end=v)));let S=Gc({temporalBinning:s,xOrY:i,xOrYFieldType:h,addIntervalStatement:!1,includeLeapDay:d});return S.field?p.binParameters.stackBy={type:"field",value:S.field}:S.expression&&(p.binParameters.stackBy={type:"expression",value:S.expression,valueType:"integer",alias:i}),p}function cw(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l}=t,d=bo(e,r),c=Jp(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 So(t){let{queryObject:e,queryConfig:r,maxRecordCountFactor:a}=t,{groupByFieldsForStatistics:i,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:d}=r??{},c=eh(e,r);c.returnGeometry=!1;let u=de(e);return c.outFields=nw(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??Xp(u)),c}function uw(t){return t&&"sourceJSON"in t&&t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?Ne.maxRecordCountFactor:void 0}function pw(t){let e,r,a;return t!==void 0&&(e=t.type,(e===Ke.UniqueValue||e===Ke.ClassBreaks)&&(r=t.field??void 0,e===Ke.ClassBreaks&&(a=t.normalizationField??void 0))),{rendererType:e,rendererField:r,rendererNormalizationField:a}}var hw=(0,Yc.default)(async t=>{let e=t.featureCollection,r,a;if(e?.layers?.[0]!==void 0){let s=e.layers[0];r=s.featureSet,a=s.layerDefinition}else a=t.layerDefinition;let i={};if(r!==void 0){if(i.source=Tm.fromJSON(r).features,a?.fields!==void 0&&(i.fields=a.fields.map(s=>Fm.fromJSON(s))),a?.objectIdField!==void 0&&(i.objectIdField=a.objectIdField),a?.geometryType!==void 0){let s=Ks.fromJSON({geometryType:a.geometryType});s?.type!==void 0&&s?.type!=="extent"&&(i.geometryType=s.type)}a?.spatialReference!==void 0&&(i.spatialReference=a.spatialReference)}else i.id=t.id,a?.id!==void 0&&(i.layerId=a.id),t.url!==void 0&&(i.url=t.url),t.itemId!==void 0&&a?.id!==void 0&&(i.portalItem={id:t.itemId});if(a!==void 0){let s=a.drawingInfo;s?.renderer!==void 0&&(i.renderer=Js.fromJSON(s.renderer))}let n=new xm(i);return await n.load(),n});async function RF(t){let{layer:e,view:r,chartConfig:a,filterByExtent:i}=t,n;if(e!==void 0){let s=de(e),o=Xe(s);if(i&&r!==void 0&&!o.isTable){o.outFields=["*"];let l=c=>"highlight"in c,d=await r.whenLayerView(o);l(d)&&(n=d)}else n=e}else"iLayer"in a&&a.iLayer&&(n=await hw(a.iLayer));return n}async function Ct(t,e){let r=de(t),a=[];if(r!==void 0){await r.load();let i=e===!0&&r?.popupTemplate?.fieldInfos!==void 0;a=r.fields.map(n=>{let s=n.toJSON();if(i){let o=r.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===n.name.toLowerCase())?.label;o!==void 0&&o!==n.name&&(s.alias=o)}return s})}return a}function wo(t,e=[]){return e.find(r=>r.name===t)}function Co(t){let e,r=!1;if(t){let a=Xe(t);"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(t){let a=Co(t);r=a.isTraditionalTypeOID,a.idFields&&(e=a.idFields[0])}return{idField:e,isTraditionalTypeOID:r}}function Fi(t){return[Te.Single,Te.Double,Te.SmallInteger,Te.Integer,Te.BigInteger].includes(t.type)}function fw(t){return t.type===Te.Date||t.type===Te.DateOnly||t.type===Te.TimestampOffset}function kF(t){return[Te.SmallInteger,Te.Integer,Te.BigInteger].includes(t.type)}function mw(t){return t.filter(e=>fw(e)).map(e=>e.name)}function jF(t){return t.filter(e=>Fi(e)).map(e=>e.name)}function yw(t){let{subtypeInfo:e,fieldName:r,fieldValueToMatch:a}=t,i,n=s=>`${s.id}`==`${a}`;return e?.subtypeField===r&&e.subtypes?i=e.subtypes.find(n)?.name:e?.typeIdField===r&&e.types&&(i=e.types.find(n)?.name),i}function Qc(t,e){let r=[],a=VS(t)?t.subtypes:t[e];return a?.[0]!==void 0&&a.forEach(i=>{let{name:n,domains:s}=i,o="id"in i?i.id:void 0;!o&&"code"in i&&(o=i.code);let l=Object.entries(s??{}),d=[],c=l?.filter(([u,h])=>h?.type==="coded-value")?.map(([u,h])=>{let p={fieldName:u,name:n,codedValues:d};if(h&&"codedValues"in h){let f=h.codedValues.map(({code:m,name:y})=>({name:y,code:m}));p={fieldName:u,name:h.name,codedValues:f}}return p});r.push({id:o??"",name:n,domains:c})}),r.length===0?void 0:r}function th(t){let e;if(t!==void 0){let r=de(t);if(!yo(r)&&!Le(r?.typeIdField)){let a=Qc(r,"types");a!==void 0&&(e={typeIdField:r.typeIdField??void 0,types:a})}if(!Le(r?.subtypeField)){let a=Xe(r),i=Qc(a,"subtypes");i!==void 0&&(e={...e,subtypeField:a.subtypeField??void 0,subtypes:i})}}return e}function gw(t){let{fieldName:e,fieldValueToMatch:r,subtypeInfo:a,fieldList:i}=t,n;if((typeof r!="string"||!Le(r))&&!Le(e)&&(n=yw({subtypeInfo:a,fieldName:e,fieldValueToMatch:r}),n===void 0)){let s=wo(e,i);if(a?.types!==void 0){let o=a?.types;for(let l of o){let d=l.domains?.filter(c=>c.fieldName===s?.name)??[];for(let c of d)if(n=c?.codedValues?.find(u=>`${u.code}`===r)?.name,n!==void 0)break;if(n!==void 0)break}}n===void 0&&s?.domain?.type==="codedValue"&&(n=s.domain.codedValues?.find(o=>`${o.code}`==`${r}`)?.name)}return n}async function rh(t){let e=[];return!Xe(t).isTable&&t.fieldsIndex&&(e=await Kc.getRendererFields(t.renderer,t.fieldsIndex)),e}function bw(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 vw(t){let e=!0,r=".arcgis.com/",a=t.url,i=a?.includes(r);if(a&&i&&Xe(t).sourceJSON?.serviceItemId!==void 0){let n=bw(a);try{let s=(await an(n,{query:{f:"json"}})).data;if(s.owningTenant!==void 0&&s.owningSystemUrl!==void 0){let o=`${s.owningSystemUrl}/sharing/rest/portals/${s.owningTenant}`,l=(await an(o,{authMode:"auto",query:{f:"json"}})).data,d=new Im({sourceJSON:l});await d.load(),e=d?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return e}async function Sw(t){let{queryObject:e,fieldToMatch:r,returnUndefinedIfNotFound:a}=t,i=await Ct(e),n=ww(i,r),s=a?"":r;return n?.name??s}function ww(t,e){let r=t.find(a=>e===a.name);return r||(r=t.find(a=>e.toUpperCase()===a.name.toUpperCase())),r}async function VF(t){let{fieldsList:e,queryObject:r,returnUndefinedIfNotFound:a}=t,i=e;return i!==void 0&&(i=await Promise.all(i.map(async n=>await Sw({queryObject:r,fieldToMatch:n,returnUndefinedIfNotFound:a})))),i}function Cw(t){let{queryObject:e,chartConfig:r,runtimeDataFilters:a,ignoreViewExtent:i}=t,{series:n,dataFilters:s}=r,{where:o,gdbVersion:l,timeExtent:d,geometry:c,distance:u,units:h,objectIds:p,spatialRelationship:f}=s??{},{where:m,gdbVersion:y,timeExtent:b,geometry:v,distance:S,units:x,objectIds:I,spatialRelationship:O}=a??{},q=n[0],{query:L}=q,{where:A}=L??{},M=X(n),N={...L};return N.where=be([o,m]),M!==C.BarAndLineSplitBy&&M!==C.BoxPlotMonoFieldAndSplitBy&&M!==C.BoxPlotMonoFieldAndCategoryAndSplitBy&&M!==C.BoxPlotMultiFieldsAndSplitBy&&M!==C.BarAndLineSplitByNoAggregation&&(N.where=be([N.where,A])),r.orderOptions?.orderByFields!==void 0&&(N.orderByFields=r.orderOptions.orderByFields),N.gdbVersion=y??l,N.timeExtent=iw(e,b??d),N.geometry=aw({queryObject:e,defaultGeometry:v??c,ignoreViewExtent:i}),N.distance=S??u,N.units=x??h,N.objectIds=I??p,N.spatialRelationship=O??f,L?.outStatistics?.[0]?.statisticType===j.Count&&(N.returnDistinctValues=L?.returnDistinctValues??!1),N}var xw=t=>{let e;if("portalItem"in t){let r=t.portalItem?.id;typeof r=="string"&&(e=r)}return e};function WF(t){let{view:e,portalItemId:r}=t,a;if(e&&r){let i=Array.from(e.map?.allLayers??[]).find(n=>xw(n)===r);i&&(a=i)}return a}var Hr=["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"],Fw="1.0.0",Iw="unrecognized.version",Tw=[g.LineSeries,g.BarSeries,g.ComboLineAndBarSeries,g.RadarSeries];function vs(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 Pw(t){return t!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t):!1}function Aw(t){let e=pr.Same,r=[];if(Pw(t)&&t!==void 0){Hr.sort(vs);let a=vs(t,Hr[Hr.length-1]);if(a===1?e=pr.Newer:a===-1&&(e=pr.Older),e===pr.Newer||e===pr.Same)r.push(t);else{for(let i=Hr.length-2;i>=0;i-=1)if(vs(t,Hr[i])>=0){r=Hr.slice(i,Hr.length);break}r.length===0&&r.push(Fw)}}else e=pr.Unrecognized,r.push(Iw);return{versionStatus:e,versions:r}}function Nr(t){let{series:e}=t,r=("showMean"in t?t.showMean:!1)===!0?e.find(a=>a.type===g.LineSeries):e[0];return r??=e[0],r}function _F(t,e){let r=t!==null?t.toString():null,a=e!=null?e.toString():null;return a!==null&&a!==r?Ce.SFS:Ce.SLS}function Ye(t,e){let r="";return t!==void 0&&t.includes("=")&&(r=e!==!1?xp({value:t.split("=")[0]}):t.split("=")[0].trim()),r}function ut(t){let{where:e,normalize:r,keepSurroundingQuotes:a,escape:i}=t,n="";return e!==void 0&&e.includes("=")&&(n=e.split("=").slice(1).join("=").trim(),n==="null"?n=null:n.trim()!==""&&!Number.isNaN(Number(n))?n=Number(n):r===!1?i===!0&&(n=Us(n)):n=xp({value:n,keepSurroundingQuotes:a,escape:i})),n}function ar(t){let e=!1;if(t===void 0||t==="")e=!0;else if(t.includes("=")){let r=Ye(t,!1),a=ut({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=Ye(e),s=ut({where:e,normalize:i,keepSurroundingQuotes:!0,escape:a}),o=e;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function Ow(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 Lw(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:ar(r)?t.length>1&&(e=C.BarAndLineMultiFields):e=t[0].query?.outStatistics===void 0?C.BarAndLineSplitByNoAggregation:C.BarAndLineSplitBy,e}function Ew(t){let e=C.BoxPlotMonoField,r=t.length===1,a=t.find(o=>o.type===g.LineSeries)??t[0],{x:i}=a,n="y"in a?a.y:"",s=a.query?.where;switch(i){case Li:typeof n=="object"&&n.length>1?ar(s)?r&&(e=C.BoxPlotMultiFields):e=C.BoxPlotMultiFieldsAndSplitBy:r?e=C.BoxPlotMonoField:ar(s)||(e=C.BoxPlotMonoFieldAndSplitBy);break;default:r?e=C.BoxPlotMonoFieldAndCategory:ar(s)?e=C.BoxPlotMultiFieldsAndCategory:e=C.BoxPlotMonoFieldAndCategoryAndSplitBy;break}return e}function X(t){let e=C.NonSpecific;if(t?.[0]!==void 0)switch(Y(t)){case g.PieSeries:e=Ow(t);break;case g.RadarSeries:case g.BarSeries:case g.LineSeries:case g.ComboLineAndBarSeries:e=Lw(t);break;case g.BoxPlotSeries:e=Ew(t);break}return e}function ei(t){let{seriesConfig:e,xAxisValueFormatType:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(Wt(e)&&e.binTemporalData!==!1&&r===g.DateAxisFormat){let n=X([e]);if(e.temporalBinning&&n!==C.BarAndLineNoAggregation&&n!==C.BarAndLineSplitByNoAggregation){let{unit:s,size:o}=e.temporalBinning;i=a===!0||o!==void 0&&o>0&&s!==void 0}}return i}function Wt(t){return Tw.includes(t.type)}function Dw(t){let{previousConfig:e,newConfig:r,behaviorAfterLimit:a}=t,i=e.series,n=r.series,s=!1,o=!1;(a===Lr.RenderUpToTheLimit||e.orderOptions?.data===void 0||r.orderOptions?.data===void 0)&&(o=!er(e.orderOptions?.orderByFields,r.orderOptions?.orderByFields));let l=En(i.map(c=>c.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]),d=En(n.map(c=>c.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]);return s=!er(l,d),s||o}function Nw(t,e){return JSON.stringify(t.dataFilters)!==JSON.stringify(e.dataFilters)}function Bw(t,e){let r=!1;if(e[0].x!==t[0].x)r=!0;else{let a=Y(t);if(a!==g.HistogramSeries&&a!==g.GaugeSeries){let i=tt(t).sort(),n=tt(e).sort();r=JSON.stringify(i)!==JSON.stringify(n)}}return r}function Mw(t,e){return(t??!1)!==(e?.filterBySelection??!1)}function $w(t,e){return Wt(t.series[0])&&Wt(e.series[0])&&(t.series[0].binTemporalData??P.binTemporalData)!==(e.series[0].binTemporalData??P.binTemporalData)}function qw(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===g.DateAxisFormat&&a===g.NumberAxisFormat,o=r===g.NumberAxisFormat&&a===g.DateAxisFormat;return r!==a&&(n||s||o)}function Rw(t){let{previousSeries:e,newConfig:r,previousTimeIntervalInfo:a,setTimeBinningInfoWhenNotProvided:i}=t,n=r.series?.[0],s=!1,o=!1,l=!1;if(Wt(n)&&ei({seriesConfig:n,xAxisValueFormatType:lr(r),setTimeBinningInfoWhenNotProvided:i})){let d=e[0];s=JSON.stringify(d.temporalBinning)!==JSON.stringify(n.temporalBinning),o=a?.unit!==n.temporalBinning?.unit,l=i===!0&&(n.temporalBinning?.size??0)<=0}return{timeBinningChanged:s,timeIntervalUnitChanged:o,newTimeBinningWillBeCalculated:l}}function Zc(t,e){return e.length!==t.length}function kw(t,e){return Zi(t)!==Zi(e)}function jw(t,e){return JSON.stringify(t.series[0]?.valueConversion)!==JSON.stringify(e.series[0]?.valueConversion)}function Vw(t,e){return JSON.stringify(t.series[0]?.xTemporalBinning)!==JSON.stringify(e.series[0]?.xTemporalBinning)||JSON.stringify(t.series[0]?.yTemporalBinning)!==JSON.stringify(e.series[0]?.yTemporalBinning)||(t.firstDayOfWeek??7)!==(e.firstDayOfWeek??7)||t.outTimeZone!==e.outTimeZone||(t.nullPolicy??at.Null)!==(e.nullPolicy??at.Null)}function Ww(t,e){return(t.hideEmptyRowsAndColumns??!1)!==(e.hideEmptyRowsAndColumns??!1)}function _w(t,e){return(t.includeLeapDay??Qi.heatChart.includeLeapDay)!==(e.includeLeapDay??Qi.heatChart.includeLeapDay)}function zw(t){let{previousConfig:e,newConfig:r,fieldList:a}=t,i=e.series[0],n=r.series[0],s=!1;if(i.type===g.ScatterSeries&&n.type===g.ScatterSeries&&a&&a.length>0){let o=new Set(i.additionalTooltipFields||[]),l=new Set(n.additionalTooltipFields||[]);if(!er(o,l)){let d=Array.from(l).filter(c=>!o.has(c));d.length>0&&(s=a?.some(c=>d.includes(c.name)&&!Fi(c)))}}return s}function zF(t,e){return(t.colorMatch??!1)!==(e.colorMatch??!1)}function UF(t,e){return(t.stackedType??yt.Side)!==(e.stackedType??yt.Side)}function gn(t){let e={...t};return e.position===void 0&&(e.position=Qi.heatChart.legend.position),e}function HF(t,e){let r=t.legend??{type:g.Legend},a=e.legend??{type:g.Legend},i=gn(r),n=gn(a);return!er(i,n)}function GF(t,e){let r=t.legend??{type:g.Legend},a=e.legend??{type:g.Legend},i=gn(r),n=gn(a);return i.position!==n.position}function QF(t,e){return JSON.stringify(t.series[0]?.gradientRules)!==JSON.stringify(e.series[0]?.gradientRules)}function ZF(t,e){return t.series[0].heatRulesType!==e.series[0].heatRulesType}function JF(t){let{oldConfig:e,newConfig:r}=t,a=!1,i=e.series[0],n=r.series[0],s=Y(e.series),o=Y(r.series);if(s===g.PieSeries&&o===g.PieSeries){let{slices:l,sliceGrouping:d}=i,{slices:c,sliceGrouping:u}=n,h=l?.map(y=>({sliceId:y.sliceId,label:y.label})),p=c?.map(y=>({sliceId:y.sliceId,label:y.label})),f=d?.label,m=u?.label;a=JSON.stringify(h)!==JSON.stringify(p)||JSON.stringify(f)!==JSON.stringify(m)}return a}function Uw(t){let{previousSelectionOIDs:e,options:r}=t,a=!1;return r?.filterBySelection===!0&&(a=e?.length!==r?.selectionData?.selectionOIDs?.length||!er(e,r?.selectionData?.selectionOIDs)),a}function KF(t,e){return t?.length!==e?.length||t?.some((r,a)=>{let i=ut({where:r?.query?.where}),n=ut({where:e?.[a]?.query?.where});return i!==n})}function YF(t,e){let r=tt(t),a=tt(e);return JSON.stringify(r)!==JSON.stringify(a)}function XF(t,e){let r,a,i,n;return Wt(t.series[0])&&(r=t.series[0].temporalBinning?.unit,i=t.series[0].temporalBinning?.size),Wt(e.series[0])&&(a=e.series[0].temporalBinning?.unit,n=e.series[0].temporalBinning?.size),Vs(r,i)&&!Vs(a,n)}function eI(t,e){return t.axes?.length===3&&e.axes?.length===2||t.axes?.length===2&&e.axes?.length===3}function tI(t,e){return JSON.stringify(t.series.map(r=>r.assignToSecondValueAxis??!1))!==JSON.stringify(e.series.map(r=>r.assignToSecondValueAxis??!1))}function rI(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 iI(t,e){return Vc(t)!==Vc(e)}function aI(t,e){return(t.showOutliers??P.boxPlot.boxPlotOutliersVisibility)!==(e.showOutliers??P.boxPlot.boxPlotOutliersVisibility)}function nI(t,e){return(t.standardizeValues??P.boxPlot.boxPlotStandardizeValuesVisibility)!==(e.standardizeValues??P.boxPlot.boxPlotStandardizeValuesVisibility)}function sI(t,e){return JSON.stringify(t.chartRenderer)!==JSON.stringify(e.chartRenderer)}function oI(t,e){let r=t.axes?.[0].valueFormat.type===g.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0,a=e.axes?.[0].valueFormat.type===g.DateAxisFormat?e.axes[0].valueFormat.intlOptions.timeZone:void 0;return r!==a}function lI(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===g.ScatterSeries&&i.type===g.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=JSON.stringify(n)!==JSON.stringify(s)}return r}function dI(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===g.ScatterSeries&&i.type===g.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=n===void 0&&s!==void 0||n!==void 0&&s===void 0||n?.field!==s?.field}return r}function cI(t){let{previousConfig:e,newConfig:r,options:a,previousFilterBySelection:i,previousTimeIntervalInfo:n,previousSelectionOIDs:s,fieldList:o}=t,{series:l}=r,{series:d}=e,c=Y(l),u=!1,h=!1,p=!1,f={common:{layerChanged:!1,queryChanged:!1,xOrYChanged:!1,numberOfSeriesChanged:!1,configFiltersChanged:!1,filterBySelectionChanged:!1,dataForFilterBySelectionChanged:!1,binTemporalDataChanged:!1,timeBinningChanged:!1,timeIntervalUnitChanged:!1,newTimeBinningWillBeCalculated:!1,valueFormatChangeRequiresNewData:!1},histogram:{dataPropsChanged:!1},gauge:{valueConversionChanged:!1},boxPlot:{showMeanChanged:!1},heatChart:{binningChanged:!1,hideEmptyRowsAndColumnsChanged:!1,includeLeapDay:!1},scatterPlot:{tooltipFieldsChanged:!1}};switch(f.common.queryChanged=Dw({previousConfig:e,newConfig:r,behaviorAfterLimit:a?.chartLimits?.behaviorAfterLimit}),f.common.configFiltersChanged=Nw(e,r),f.common.xOrYChanged=Bw(d,l),f.common.filterBySelectionChanged=Mw(i,a),f.common.dataForFilterBySelectionChanged=Uw({previousSelectionOIDs:s,options:a}),f.common.binTemporalDataChanged=$w(e,r),f.common.valueFormatChangeRequiresNewData=qw(e,r),f.common={...f.common,...Rw({previousSeries:d,newConfig:r,previousTimeIntervalInfo:n,setTimeBinningInfoWhenNotProvided:a?.setTimeBinningInfoWhenNotProvided})},h=Object.values(f.common).some(m=>m),c){case g.HistogramSeries:f.histogram.dataPropsChanged=ub(d,l)||cb(d,l);break;case g.LineSeries:case g.BarSeries:case g.ComboLineAndBarSeries:f.common.numberOfSeriesChanged=Zc(d,l);break;case g.BoxPlotSeries:dt(e)&&dt(r)&&(f.common.numberOfSeriesChanged=Zc(d,l),f.boxPlot.showMeanChanged=kw(e,r));break;case g.GaugeSeries:f.gauge.valueConversionChanged=jw(e,r);break;case g.HeatSeries:wi(e)&&wi(r)&&(f.heatChart.binningChanged=Vw(e,r),f.heatChart.hideEmptyRowsAndColumnsChanged=Ww(e,r),f.heatChart.includeLeapDay=_w(e,r));break;case g.ScatterSeries:f.scatterPlot.tooltipFieldsChanged=zw({previousConfig:e,newConfig:r,fieldList:o});break}return(f.gauge.valueConversionChanged||f.histogram.dataPropsChanged||f.common.numberOfSeriesChanged||f.common.binTemporalDataChanged||f.boxPlot.showMeanChanged||f.heatChart.binningChanged||f.heatChart.hideEmptyRowsAndColumnsChanged||f.heatChart.includeLeapDay||f.scatterPlot.tooltipFieldsChanged)&&(p=!0),u=h||p,{dataUpdateNeeded:u,dataUpdateDetails:f}}function uI(t,e){let r=kr(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=Fp(s)?"splitByValue":"name"}else n="name";r.series.sort((s,o)=>{let l,d;n==="splitByValue"?(l=ut({where:s.query?.where})??"",d=ut({where:o.query?.where})??""):(l=s.name,d=o.name);let[c,u]=i.toUpperCase()===ze.Descending?[d,l]:[l,d];return typeof c=="string"&&typeof u=="string"?c.localeCompare(u):Number(c)-Number(u)})}}return jS({data:r?.series.map(a=>a.id),htmlContainer:e}),r}function vi(t){let e=t===void 0||t==="";return{[H.Average]:`${e?"":`${t}_`}${H.Average}`,[H.Min]:`${e?"":`${t}_`}${H.Min}`,[H.Max]:`${e?"":`${t}_`}${H.Max}`,[H.FirstQuartile]:`${e?"":`${t}_`}${H.FirstQuartile}`,[H.Median]:`${e?"":`${t}_`}${H.Median}`,[H.ThirdQuartile]:`${e?"":`${t}_`}${H.ThirdQuartile}`,[H.IQR]:`${e?"":`${t}_`}${H.IQR}`,[H.Outlier]:`${e?"":`${t}_`}${H.Outlier}`,[H.StandardDeviation]:`${e?"":`${t}_`}${H.StandardDeviation}`}}function xo(t){return"subType"in t&&t.subType===Wo.FeatureGauge}function ih(t){let e;return t!==void 0&&("bins"in t?e=t.bins:"dataItems"in t&&(e=t.dataItems)),e}function ah(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=vi(r)[e];return s===!0&&(e===H.Min||e===H.Max)&&(d=`${d}${ib}`),o===!0&&(ah(a)||e===H.Outlier)&&(d=`${d}${ab}`),(n===void 0||`${n}`.trim()==="")&&(l=ut({where:i,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(d=`${l}${d!==""?`_${d}`:""}`),d}function Ss(t){let{dataItem:e,y:r,splitBy:a,showOutliers:i}=t,n=Ue({key:H.FirstQuartile,y:r,splitBy:a,showOutliers:i}),s=Ue({key:H.ThirdQuartile,y:r,splitBy:a,showOutliers:i});return Number.isFinite(e[n])||Number.isFinite(e[s])}function Hw(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=Ss({dataItem:r,showOutliers:i});break;case C.BoxPlotMultiFieldsAndCategory:s=a.some(o=>Ss({dataItem:r,y:o,showOutliers:i}));break;case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:s=e.some(o=>Ss({dataItem:r,splitBy:o.query?.where,showOutliers:i}));break;default:s=!1;break}return s}function nh(t){return t.map(e=>e.id).filter(e=>e!==void 0)}function tt(t,e){let r=[],a=e??nh(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()}_${ut({where:n.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),s}).filter(n=>n!==void 0),Array.from(new Set(r.flat()))}function Tn(t){let{seriesConfig:e,filteredSeriesIds:r,showMean:a}=t,i=[];if(a===!0){let n=e.find(s=>s.type===g.BoxPlotSeries);n!==void 0&&"y"in n&&(i=[n.y].flat())}else i=tt(e,r);return i}function br(t,e){return t===null&&e===!0||Number.isFinite(t)}function Gw(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]))&&br(e[a],i)}function pI(t){let{chartConfig:e,nullAsValid:r=!1,dataSet:a}=t,i=!0;if(e!==void 0){let n=Y(e.series);if(a===void 0||a.length===0)i=!0;else{let s=tt(e.series);i=!a.some(o=>{let l=!1;switch(n){case g.HistogramSeries:{let d=o;l=br(d.minValue,r)&&br(d.maxValue,r)}break;case g.ScatterSeries:{let d=o,{x:c,y:u}=e.series[0];l=br(d[c],r)&&br(d[u],r)}break;case g.ComboLineAndBarSeries:case g.RadarSeries:case g.LineSeries:case g.BarSeries:{let d=o,{x:c}=e.series[0];l=s.some(u=>Gw({dataItem:d,x:c,y:u,nullAsValid:r}));break}case g.BoxPlotSeries:{if(dt(e)){let d=e.series;l=Hw({configSeries:d,boxPlotDataItem:o,yList:s,showOutliers:e.showOutliers})}break}case g.PieSeries:{let d=o,{x:c,y:u}=e.series[0];X(e.series)===C.PieFromFields&&(c=st,u=jt);let h=d[u];l=d[c]!==void 0&&d[c]!==null&&!ko(h)&&br(Number(h),r)}break;case g.GaugeSeries:{let{x:d}=e.series[0];l=br(o[d],r)}break;case g.HeatSeries:l=a.some(d=>br(d[xe.valueField],r));break}return l})}}return i}function Qw(t,e){let r=new Map,a=e??nh(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 Zw(t){let{seriesConfig:e,filteredSeriesIds:r,filteredData:a}=t,i=Qw(e,r),n=e.find(d=>d.type===g.LineSeries||d.type===g.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,l=!1;return a.forEach(d=>{i.forEach(c=>{if(n){let u=0,h=0,p=!1,f=!1;for(let m=0;m<c.length;m+=1){let y=d[c[m]];Number.isFinite(y)&&(y<0?(h+=y,f=!0,l=!0):(u+=y,p=!0))}s=p?Math.max(s,u):s,o=f?Math.min(o,h):o}else{let u=0;for(let h=0;h<c.length;h+=1){let p=d[c[h]];u+=p,s=Math.max(s,u),o=Math.min(o,u)}}})}),{stackedMinY:o,stackedMaxY:s,dataHasNegativeValues:l}}function Jw(t){let{dataItem:e,...r}=t,a=Ue({key:H.Min,...r}),i=Ue({key:H.Max,...r}),n=e[a],s=e[i];return{min:n,max:s}}function hI(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=s.filter(h=>h[d]!==null);[a,i]=li(c,h=>h[d]),n.axes?.[1]?.valueFormat.type===g.DateAxisFormat&&a!==void 0&&i!==void 0&&([a,i]=[new Date(a).valueOf(),new Date(i).valueOf()]);let u=Y(n.series);if(u===g.HistogramSeries&&s.length>0){let h=s[0]?.[Nc.Start],p=s[s.length-1]?.[Nc.End];a=typeof h=="number"?h:a,i=typeof p=="number"?p:i}else if(u===g.BoxPlotSeries){e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;let h=tt(l,o),p=X(l),f="standardizeValues"in n?n.standardizeValues===!0:void 0,m=n.series.map(y=>y.visible!==!1?ut({where:y.query?.where}):"");m.length===0&&m.push(" "),c.forEach(y=>{h.forEach(b=>{let v=p===C.BoxPlotMultiFieldsAndCategory?b:void 0;m.forEach(S=>{let{min:x,max:I}=Jw({y:v,splitByValue:S,chartSubType:p,showOutliers:!1,standardizeValues:f,dataItem:y});x!=null&&x<e&&(e=x),I!=null&&I>r&&(r=I)})})})}else switch(co(n)){case yt.Stacked100:{e=Number.NaN,r=Number.NaN;break}case yt.Stacked:{let{stackedMinY:h,stackedMaxY:p}=Zw({seriesConfig:l,filteredData:c,filteredSeriesIds:o});e=h,r=p;break}case yt.Side:default:{e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,tt(l,o).forEach(h=>{let[p,f]=li(c,m=>m[h]);p!==void 0&&p<e&&(e=p),f!==void 0&&f>r&&(r=f)});break}}}return{minY:e,maxY:r,minX:a,maxX:i}}var hi={$schema:"http://json-schema.org/draft-07/schema#",definitions:{ValueConversion:{type:"object",properties:{factor:{type:"number",description:"A numeric value multiplying the value to convert"},offset:{type:"number",description:"A numeric offset to apply to the value to convert"}},description:"Stores information regarding a numeric conversion.",title:"ValueConversion"},WebChartAxisScrollBar:{type:"object",properties:{visible:{type:"boolean",description:"Scrollbar visibility",default:!1},width:{type:"number",description:"Scrollbar width in pixels"},color:{$ref:"#/definitions/Color",description:"Scrollbar color"},gripSize:{type:"number",description:"Grip size in pixels"},margin:{type:"number",description:"Margin between the scrollbar and the series container in pixels"}},description:"Describes the properties of an axis scrollbar",title:"WebChartAxisScrollBar"},Color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,title:"Color"},WebChartTextSymbol:{type:"object",properties:{xoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container width.`},yoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container height.`},angle:{type:"number",description:"Rotation of the label"},style:{type:"string",description:"Label style"},type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],description:"Represents a text symbol.",title:"WebChartTextSymbol"},'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>':{$ref:"#/definitions/Pick%3CITextSymbol%2CExclude%3C(%22type%22%7C%22color%22%7C%22backgroundColor%22%7C%22borderLineSize%22%7C%22borderLineColor%22%7C%22haloSize%22%7C%22haloColor%22%7C%22verticalAlignment%22%7C%22horizontalAlignment%22%7C%22rightToLeft%22%7C%22kerning%22%7C%22font%22%7C%22text%22%7C%22angle%22%7C%22xoffset%22%7C%22yoffset%22%7C%22style%22%7Cstring)%2C(%22angle%22%7C%22style%22%7C%22xoffset%22%7C%22yoffset%22)%3E%3E",title:'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>'},'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>':{type:"object",properties:{type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>'},IFont:{type:"object",properties:{family:{type:"string"},size:{type:"number"},style:{type:"string",enum:["italic","normal","oblique"]},weight:{type:"string",enum:["bold","bolder","lighter","normal"]},decoration:{type:"string",enum:["line-through","none","underline"]}},title:"IFont"},WebChartText:{type:"object",properties:{type:{type:"string",const:"chartText",description:'Represents a unique string identifier for the ChartText object. For ChartText object, it is "chartText".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling info and text content. Details on **esriTS** are [here](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm)."}},required:["type","content"],description:"Stores info on how some text is rendered on the chart and whether it is visible or not.",title:"WebChartText"},WebChartCursorCrosshair:{type:"object",properties:{type:{type:"string",const:"cursorCrosshair",description:"Represents a unique string identifier for the chart cursor's crosshair."},style:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the chart cursor's crosshair should be rendered."},verticalLineVisible:{type:"boolean",description:"Indicates whether the vertical crosshair line should be displayed",default:!1},horizontalLineVisible:{type:"boolean",description:"Indicates whether the horizontal crosshair line should be displayed",default:!1}},required:["type"],description:"JSON representation of the cursor's crosshair for a chart.",title:"WebChartCursorCrosshair"},ISimpleLineSymbol:{type:"object",properties:{type:{type:"string",const:"esriSLS"},style:{$ref:"#/definitions/SimpleLineSymbolStyle"},color:{$ref:"#/definitions/Color"},width:{type:"number"}},required:["type"],title:"ISimpleLineSymbol"},ISymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"}},required:["type"],title:"ISymbol"},SymbolType:{type:"string",enum:["esriPFS","esriPMS","esriSFS","esriSLS","esriSMS","esriTS"],title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1}},required:["type"],description:"JSON representation of the Chart's legend box",title:"WebChartLegend"},WebChartLegendPositions:{type:"string",enum:["left","right","top","bottom"],title:"WebChartLegendPositions"},WebChartNullCategory:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use for the null category. If none is provided, the default `null` text will be used."},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied.",default:"1 - symbol.outline.width"}},title:"WebChartNullCategory"},ISimpleFillSymbol:{type:"object",properties:{type:{type:"string",const:"esriSFS"},style:{$ref:"#/definitions/SimpleFillSymbolStyle"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleFillSymbol"},SimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"SimpleFillSymbolStyle"},WebChartPieChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1},displayCategory:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed in the legend.",default:!0},displayNumericValue:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},displayPercentage:{type:"boolean",description:"Indicates whether the percentage to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},labelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200},valueLabelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for the Pie chart",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:'Represents a unique string identifier for the ChartOverlay object. For ChartOverlay object, it is "chartOverlay".'},created:{type:"boolean",description:"Determines whether the overlay is created under the hood. It may or may not be visible.",default:!1},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},symbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied."}},required:["type"],description:"JSON representation of the chart's overlays like trendline scatter plot, and median in histogram",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "number". It can help us to differentiate numerical (value) axis from other types of axes viz., date-time axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.NumberFormatOptions",description:"Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications."}},required:["type","intlOptions"],description:"Defines how the numerical(value) axis data should be formatted.",title:"NumberFormatOptions"},"Intl.NumberFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["lookup","best fit"]},style:{$ref:"#/definitions/Intl.NumberFormatOptionsStyle"},currency:{type:"string"},currencyDisplay:{$ref:"#/definitions/Intl.NumberFormatOptionsCurrencyDisplay"},useGrouping:{$ref:"#/definitions/Intl.NumberFormatOptionsUseGrouping"},minimumIntegerDigits:{type:"number"},minimumFractionDigits:{type:"number"},maximumFractionDigits:{type:"number"},minimumSignificantDigits:{type:"number"},maximumSignificantDigits:{type:"number"}},title:"Intl.NumberFormatOptions"},"Intl.NumberFormatOptionsStyle":{title:"Intl.NumberFormatOptionsStyle"},"Intl.NumberFormatOptionsCurrencyDisplay":{title:"Intl.NumberFormatOptionsCurrencyDisplay"},"Intl.NumberFormatOptionsUseGrouping":{type:"boolean",title:"Intl.NumberFormatOptionsUseGrouping"},WebChartDateTimeUnitFormatOptions:{type:"object",properties:{year:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},month:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},day:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},hour:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},minute:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},second:{$ref:"#/definitions/Intl.DateTimeFormatOptions"}},description:'Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis. For instance: "year": { year: "numeric" } "month": { month: "numeric" } "day": { day: "2-digit" } "hour": { day: "numeric" } "minute": { minute: "numeric" } "second": { second: "numeric" } Reference: https://tc39.es/ecma402/#sec-datetimeformat-abstracts',title:"WebChartDateTimeUnitFormatOptions"},"Intl.DateTimeFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["best fit","lookup"]},weekday:{type:"string",enum:["long","short","narrow"]},era:{type:"string",enum:["long","short","narrow"]},year:{type:"string",enum:["numeric","2-digit"]},month:{type:"string",enum:["numeric","2-digit","long","short","narrow"]},day:{type:"string",enum:["numeric","2-digit"]},hour:{type:"string",enum:["numeric","2-digit"]},minute:{type:"string",enum:["numeric","2-digit"]},second:{type:"string",enum:["numeric","2-digit"]},timeZoneName:{type:"string",enum:["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},formatMatcher:{type:"string",enum:["best fit","basic"]},hour12:{type:"boolean"},timeZone:{type:"string"}},title:"Intl.DateTimeFormatOptions"},DateTimeFormatOptions:{type:"object",properties:{type:{type:"string",const:"date",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "date". It can help us to differentiate date-time axis from other types of axes viz., numeric (value) axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.DateTimeFormatOptions",description:"Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications."},formatPerDateTimeUnit:{$ref:"#/definitions/WebChartDateTimeUnitFormatOptions",description:"Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`."}},required:["type","intlOptions"],description:"Defines how the DateTime axis data should be formatted.",title:"DateTimeFormatOptions"},CategoryFormatOptions:{type:"object",properties:{type:{type:"string",const:"category",description:'Represents a unique string identifier for the CategoryFormatOptions object. For CategoryFormatOptions object, it is "category". It can help us to differentiate category axis from other types of axes, viz., date-time axis and numeric (value) axis.'},characterLimit:{type:["number","null"],description:"Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done.",minimum:1,multipleOf:1}},required:["type"],description:"Defines how the category axis data (Categories) should be formatted.",title:"CategoryFormatOptions"},WebChartGuide:{type:"object",properties:{type:{type:"string",const:"chartGuide",description:'Represents a unique string identifier for the Guide object. For Guide class, it is "chartGuide".'},start:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should begin."},end:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should end. If it is not specified, we get a line guide, otherwise we get a fill/rectangular guide."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered. Line guide requires [esriSLS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format, and fill guide requires [esriSFS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the Chart Authoring UI to differentiate between different guides."},label:{$ref:"#/definitions/WebChartTextSymbol",description:"Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **esriTS** format."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},above:{type:"boolean",description:"Determines whether the guide should be rendered on top of (overlapping) the series or under the series.",default:!1},tooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).",default:!1}},required:["type","start","style","name"],description:"JSON representation of the chart's guide object. Can be used to represent both line and fill guides.",title:"WebChartGuide"},WebChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
6
6
 
7
7
  **Note**: This property only applies for axes of an XYChart, not Gauge.`,minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."}},required:["type","valueFormat","labels"],description:"JSON representation of the chart's axis object",title:"WebChartAxis"},TimeIntervalInfo:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},title:"TimeIntervalInfo"},WebChartTemporalBinningUnits:{type:"string",enum:["seconds","minutes","hours","days","weeks","months","quarters","years"],description:"The temporal binning units",title:"WebChartTemporalBinningUnits"},WebChartGaugeAxisTick:{type:"object",properties:{type:{type:"string",const:"gaugeAxisTick",description:'Represents a unique string identifier for the GaugeAxisTick object. For WebChartGaugeAxisTick object, it is "gaugeAxisTick".'},visible:{type:"boolean",description:"Determines the visibility of the axis ticks.",default:!0}},required:["type"],description:"JSON representation of the gauge axis ticks. Currently only used by WebChartGaugeAxis.",title:"WebChartGaugeAxisTick"},WebChartNeedle:{type:"object",properties:{type:{type:"string",const:"gaugeNeedle",description:'Represents a unique string identifier for the ChartNeedle object. For WebChartNeedle object, it is "gaugeNeedle".'},visible:{type:"boolean",description:"Hides or shows the needle.",default:!0},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the needle should be rendered"},startWidth:{type:["number","null"],description:"Represents the needle's thickness at the bottom (chart's center), in px",minimum:1,default:10},endWidth:{type:["number","null"],description:"Represents the needle's thickness at the top, in px",minimum:1,default:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in the middle of the chart. Can be visualized when guides are displayed.",minimum:0,maximum:100,default:25},displayPin:{type:"boolean",description:"Hides or shows the needle's pin (centroid circle)",default:!1}},required:["type"],description:"JSON representation of a gauge needle.",title:"WebChartNeedle"},WebChartGaugeAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
8
8
 
@@ -31,4 +31,4 @@ Currently this property is only used for bar and line series.`,default:"sideBySi
31
31
 
32
32
  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. If not provided the series will be displayed as they are ordered in the config."}},description:"Chart order options (data and series)"},hideEmptyRowsAndColumns:{type:"boolean",description:"Whether to hide entire rows or columns that are empty (i.e. contain no valid data).",default:!1},viewType:{$ref:"#/definitions/WebChartHeatChartViewTypes",description:`The calendar view type for the heat chart.
33
33
 
34
- **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-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873|undefined)1405062998,("data"|"orderByFields")>':{$ref:"#/definitions/Pick%3C(structure-1066060463-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873%7Cundefined)1405062998%2CExclude%3C(%22series%22%7C%22data%22%7C%22orderByFields%22)%2C(%22data%22%7C%22orderByFields%22)%3E%3E",title:'Omit<(structure-1066060463-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873|undefined)1405062998,("data"|"orderByFields")>'},'Pick<(structure-1066060463-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873|undefined)1405062998,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. If not provided the series will be displayed as they are ordered in the config."}},additionalProperties:!1,title:'Pick<(structure-1066060463-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873|undefined)1405062998,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"},g:{type:"number"},b:{type:"number"},a:{type:"number",default:1}},required:["r","g","b"],description:"JSON representation of the color object",title:"RGBObject"},IRendererSymbol:{type:"object",properties:{style:{type:"string"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},label:{type:"string"},uniqueValue:{type:"string"},type:{$ref:"#/definitions/SymbolType"}},required:["color","type"],title:"IRendererSymbol"},WebChartDataItemColor:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/RGBArray"},{$ref:"#/definitions/RGBObject"},{type:"string"}],title:"WebChartDataItemColor"},RGBArray:{type:"array",items:{type:"number"},minItems:3,maxItems:3,title:"RGBArray"},WebChartDataItemValue:{anyOf:[{type:"string",format:"date-time"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IRendererSymbol"},{type:"array",items:{type:"number"}},{type:"array",items:{type:"string"}},{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},{$ref:"#/definitions/WebChartDataItemColor"},{type:"boolean"},{type:"number"},{type:"string"},{type:"null"},{not:{}}],title:"WebChartDataItemValue"},WebChartDataItem:{$ref:"#/definitions/Record%3Cstring%2CWebChartDataItemValue%3E",description:"JSON representation of a typical data item",title:"WebChartDataItem"},"Record<string,WebChartDataItemValue>":{type:"object",additionalProperties:{$ref:"#/definitions/WebChartDataItemValue"},title:"Record<string,WebChartDataItemValue>"},WebChartBoxPlotDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},outliers:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},meanLines:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["dataItems"],description:"JSON representation of the processed data for a Box Plot",title:"WebChartBoxPlotDataItem"},ScatterplotTrendLineData:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2}},description:"JSON representation of the processed data for a Scatter plot trend line",title:"ScatterplotTrendLineData"},WebChartScatterplotDataItem:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2},dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},aggregated:{type:"boolean"}},required:["dataItems"],description:"JSON representation of the processed data for a Scatter plot",title:"WebChartScatterplotDataItem"},WebChartGenericDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},timeIntervalInfo:{$ref:"#/definitions/TimeIntervalInfo",description:"Time interval information, only for line charts"},serverLimitReached:{type:"boolean",description:"Indicates whether the server limit has been reached when fetching data. Currently applies only to the queries leveraging the /queryBins operation."}},required:["dataItems"],description:"JSON representation of the generic data structure for bar, line bar-line, gauge and pie chart",title:"WebChartGenericDataItem"},WebChartBin:{type:"object",properties:{count:{type:"number"},minValue:{type:"number",description:"Min value in the bin"},maxValue:{type:"number",description:"Max value in the bin"},symbol:{$ref:"#/definitions/WebChartDataItem",description:"Symbol associated with the bin."},isLastBin:{type:"boolean",description:"Whether this is the last bin."}},required:["count","minValue","maxValue"],description:"JSON representation of a Histogram bin",title:"WebChartBin"},WebChartHistogramDataItem:{type:"object",properties:{mean:{type:"number"},median:{type:"number"},stddev:{type:"number"},max:{type:"number"},min:{type:"number"},sum:{type:"number",description:"Sum of the values of all the points"},count:{type:"number",description:"Number of all the points/features in un-binned data (including only non-null entries)"},nulls:{type:"number",description:"Number of null entries in the pool of points"},bins:{type:"array",items:{$ref:"#/definitions/WebChartBin"}}},required:["mean","median","stddev","max","min","bins"],description:"JSON representation of the processed data for a Histogram",title:"WebChartHistogramDataItem"},WebChartDataTypes:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotDataItem"},{$ref:"#/definitions/WebChartGenericDataItem"},{$ref:"#/definitions/WebChartHistogramDataItem"},{$ref:"#/definitions/WebChartScatterplotDataItem"}],title:"WebChartDataTypes"},WebChartTypes:{type:"string",enum:["chart","chartText","chartOverlay","chartOverlays","chartLegend","cursorCrosshair","chartAxis","gaugeAxisTick","gaugeNeedle","category","number","date","chartGuide","scatterSeries","pieSeries","pieTick","gaugeSeries","lineSeries","barSeries","histogramSeries","boxPlotSeries","radarSeries","comboLineAndBarSeries","heatSeries","buffer","sizeScale","calendarDateParts"],title:"WebChartTypes"},WebChartStatisticType:{type:"string",enum:["count","sum","min","max","avg","stddev","var","percentile-continuous","percentile-discrete","envelope-aggregate","centroid-aggregate","convex-hull-aggregate","no_aggregation"],title:"WebChartStatisticType"},WebChartColoringPatterns:{type:"string",enum:["singleColor","colorMatch"],title:"WebChartColoringPatterns"},WebChartBoxPlotMultipleSeriesKinds:{type:"string",enum:["sideBySide","meanLines"],title:"WebChartBoxPlotMultipleSeriesKinds"},WebChartLineSmoothedKinds:{type:"string",enum:["bezier","monotoneX","monotoneY"],description:"Represents the different types of smoothing that can be applied to a line chart when the `lineSmoothed` property is set to `true`.",title:"WebChartLineSmoothedKinds"},WebChartCalendarBinningOffsetUnits:{type:"string",enum:["seconds","minutes","hours","days"],description:"The temporal binning units for the calendar based binning offset",title:"WebChartCalendarBinningOffsetUnits"},WebChartVersionStatus:{type:"string",enum:["same","newer","older","unrecognized"],title:"WebChartVersionStatus"},WebChartAxisTypes:{type:"string",enum:["value","date","category"],description:"Represents the different types of axes that can be used in a chart.",title:"WebChartAxisTypes"},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","esriFieldTypeTimestampOffset","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeString","esriFieldTypeXML"],title:"RESTFieldType"},RESTSimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"RESTSimpleLineSymbolStyle"},RESTSimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSX","esriSMSTriangle"],title:"RESTSimpleMarkerSymbolStyle"},RESTSimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"RESTSimpleFillSymbolStyle"},RESTHorizontalAlignment:{type:"string",enum:["left","right","center","justify"],title:"RESTHorizontalAlignment"},RESTVerticalAlignment:{type:"string",enum:["baseline","top","middle","bottom"],title:"RESTVerticalAlignment"},RESTSymbolType:{type:"string",enum:["esriSLS","esriSMS","esriSFS","esriPMS","esriPFS","esriTS"],title:"RESTSymbolType"},RESTFontStyle:{type:"string",enum:["italic","normal","oblique"],title:"RESTFontStyle"},RESTFontWeight:{type:"string",enum:["bold","bolder","lighter","normal"],title:"RESTFontWeight"},RESTFontDecoration:{type:"string",enum:["line-through","underline","none"],title:"RESTFontDecoration"},RESTRendererType:{type:"string",enum:["unique-value","simple","class-breaks","heatmap","dot-density","dictionary","pie-chart"],title:"RESTRendererType"},OverlayTerms:{type:"string",enum:["Mean","Median","Standard Deviation","Normal Distribution","Trendline"],title:"OverlayTerms"},CalculatedMinMaxBoundsPayload:{type:"object",properties:{isXAxis:{type:"boolean"},isSecondValueAxis:{type:"boolean"},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."}},required:["isXAxis"],description:"Represents a subset of the event payload carrying the chart's axes bounds. See event `arcgisChartsAxesMinMaxChange`.",title:"CalculatedMinMaxBoundsPayload"},ChartDeletePayload:{type:"object",properties:{chartId:{type:"string"}},required:["chartId"],description:"Represents the payload of the event sent when a chart is removed from the chart list (component arcgis-charts-config-view-charts).",title:"ChartDeletePayload"},LegendItemVisibility:{type:"object",properties:{visible:{type:"boolean"},seriesId:{type:"string"},overlayType:{$ref:"#/definitions/OverlayTerms"},sliceId:{type:"string"},sliceData:{$ref:"#/definitions/WebChartDataItem"}},required:["visible"],description:"Represents the payload of the event sent when an item is toggled in the chart's legend (slice or series).",title:"LegendItemVisibility"},IFeatureSet:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"},objectIdFieldName:{type:"string"},globalIdFieldName:{type:"string"},displayFieldName:{type:"string"},geometryType:{$ref:"#/definitions/GeometryType"},spatialReference:{$ref:"#/definitions/ISpatialReference"},fields:{type:"array",items:{$ref:"#/definitions/IField"}},features:{type:"array",items:{$ref:"#/definitions/IFeature"}},fieldAliases:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"}},required:["features"],description:'`IFeatureSet` can also be imported from the following packages:\n\n```js import { IFeatureSet } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureSet"},"Record<string,string>":{type:"object",additionalProperties:{type:"string"},title:"Record<string,string>"},ILocation:{type:"object",properties:{latitude:{type:"number"},longitude:{type:"number"},lat:{type:"number"},long:{type:"number"},z:{type:"number"}},description:'`ILocation` can also be imported from the following packages:\n\n```js import { ILocation } from "@esri/arcgis-rest-routing"; import { ILocation } from "@esri/arcgis-rest-geocoding"; ```',title:"ILocation"},IPolylineWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curvePaths:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curvePaths"],title:"IPolylineWithCurves"},ElipticArc:{$ref:"#/definitions/IArc",title:"ElipticArc"},SpatialRelationship:{type:"string",enum:["esriSpatialRelContains","esriSpatialRelCrosses","esriSpatialRelEnvelopeIntersects","esriSpatialRelIndexIntersects","esriSpatialRelIntersects","esriSpatialRelOverlaps","esriSpatialRelTouches","esriSpatialRelWithin"],description:'The spatial relationship used to compare input geometries\n\n`SpatialRelationship` can also be imported from the following packages:\n\n```js import { SpatialRelationship } from "@esri/arcgis-rest-feature-layer"; ```',title:"SpatialRelationship"},IMultipoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},points:{type:"array",items:{$ref:"#/definitions/Position"}}},required:["points"],description:"A multipoint contains an array of points.",title:"IMultipoint"},Units:{type:"string",enum:["esriSRUnit_Foot","esriSRUnit_Kilometer","esriSRUnit_Meter","esriSRUnit_NauticalMile","esriSRUnit_StatuteMile","esriSRUnit_USNauticalMile"],description:'`Units` can also be imported from the following packages:\n\n```js import { Units } from "@esri/arcgis-rest-feature-layer"; ```',title:"Units"},GroupMembership:{type:"string",enum:["admin","member","none","owner"],description:'`GroupMembership` can also be imported from the following packages:\n\n```js import { GroupMembership } from "@esri/arcgis-rest-portal"; ```',title:"GroupMembership"},IGroupAdd:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"}},required:["title","access"],description:'A [Group](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IGroupAdd` can also be imported from the following packages:\n\n```js import { IGroupAdd } from "@esri/arcgis-rest-portal"; ```',title:"IGroupAdd"},IGroup:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"},id:{type:"string"},created:{type:"number"},modified:{type:"number"},protected:{type:"boolean"},isOpenData:{type:"boolean"},isFav:{type:"boolean"},userMembership:{type:"object",properties:{username:{type:"string"},memberType:{$ref:"#/definitions/GroupMembership"},applications:{type:"number"}}},hasCategorySchema:{type:"boolean"}},required:["access","autoJoin","created","id","isFav","isInvitationOnly","isViewOnly","modified","owner","protected","tags","title"],description:'Existing Portal [Group](https://developers.arcgis.com/rest/users-groups-and-items/group.htm).\n\n`IGroup` can also be imported from the following packages:\n\n```js import { IGroup } from "@esri/arcgis-rest-portal"; ```',title:"IGroup"},IItemAdd:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}}},required:["title","type"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IItemAdd` can also be imported from the following packages:\n\n```js import { IItemAdd } from "@esri/arcgis-rest-portal"; ```',title:"IItemAdd"},IItemUpdate:{type:"object",properties:{id:{type:"string"}},required:["id"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) to be updated.\n\n`IItemUpdate` can also be imported from the following packages:\n\n```js import { IItemUpdate } from "@esri/arcgis-rest-portal"; ```',title:"IItemUpdate"},IItem:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}},id:{type:"string"},created:{type:"number"},modified:{type:"number"},numViews:{type:"number"},size:{type:"number"},protected:{type:"boolean"}},required:["created","id","modified","numViews","owner","size","tags","title","type"],description:'Existing Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/item.htm).\n\n`IItem` can also be imported from the following packages:\n\n```js import { IItem } from "@esri/arcgis-rest-portal"; ```',title:"IItem"},IFolder:{type:"object",properties:{username:{type:"string"},id:{type:"string"},title:{type:"string"},created:{type:"number"}},required:["username","id","title"],description:'Used for organizing content. See [Create Folder](https://developers.arcgis.com/rest/users-groups-and-items/create-folder.htm) for more details.\n\n`IFolder` can also be imported from the following packages:\n\n```js import { IFolder } from "@esri/arcgis-rest-portal"; ```',title:"IFolder"},IFeatureServiceDefinition:{type:"object",properties:{currentVersion:{type:"number"},serviceDescription:{type:"string"},hasVersionedData:{type:"boolean"},supportsDisconnectedEditing:{type:"boolean"},supportsReturnDeleteResults:{type:"boolean"},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},maxRecordCount:{type:"number",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsRelationshipsResource:{type:"boolean"},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. Query,Editing."},description:{type:"string",description:"String value of the layer as defined in the map service."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},advancedEditingCapabilities:{$ref:"#/definitions/Record%3Cstring%2Cboolean%3E"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry."},initialExtent:{$ref:"#/definitions/IExtent"},fullExtent:{$ref:"#/definitions/IExtent"},allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},units:{type:"string"},syncEnabled:{type:"boolean"},returnServiceEditsHaveSR:{type:"boolean"},validationSystemLayers:{type:"object",properties:{validationPointErrorlayerId:{type:"number"},validationLineErrorlayerId:{type:"number"},validationPolygonErrorlayerId:{type:"number"},validationObjectErrortableId:{type:"number"}},required:["validationPointErrorlayerId","validationLineErrorlayerId","validationPolygonErrorlayerId","validationObjectErrortableId"]},extractChangesCapabilities:{type:"object",properties:{supportsReturnIdsOnly:{type:"boolean"},supportsReturnExtentOnly:{type:"boolean"},supportsReturnAttachments:{type:"boolean"},supportsLayerQueries:{type:"boolean"},supportsSpatialFilter:{type:"boolean"},supportsReturnFeature:{type:"boolean"}},required:["supportsReturnIdsOnly","supportsReturnExtentOnly","supportsReturnAttachments","supportsLayerQueries","supportsSpatialFilter","supportsReturnFeature"]},syncCapabilities:{type:"object",properties:{supportsASync:{type:"boolean"},supportsRegisteringExistingData:{type:"boolean"},supportsSyncDirectionControl:{type:"boolean"},supportsPerLayerSync:{type:"boolean"},supportsPerReplicaSync:{type:"boolean"},supportsRollbackOnFailure:{type:"boolean"},supportedSyncDataOptions:{type:"number"}},required:["supportsASync","supportsRegisteringExistingData","supportsSyncDirectionControl","supportsPerLayerSync","supportsPerReplicaSync","supportsRollbackOnFailure","supportedSyncDataOptions"]},editorTrackingInfo:{type:"object",properties:{enableEditorTracking:{type:"boolean"},enableOwnershipAccessControl:{type:"boolean"},allowOthersToUpdate:{type:"boolean"},allowOthersToDelete:{type:"boolean"}},required:["enableEditorTracking","enableOwnershipAccessControl","allowOthersToUpdate","allowOthersToDelete"]},documentInfo:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"},layers:{type:"array",items:{$ref:"#/definitions/ILayerDefinition"}},tables:{type:"array",items:{$ref:"#/definitions/ITable"}},relationships:{type:"array",items:{type:"object",properties:{id:{type:"number"},name:{type:"string"},backwardPathLabel:{type:"string"},originLayerId:{type:"number"},originPrimaryKey:{type:"string"},forwardPathLabel:{type:"string"},destinationLayerId:{type:"number"},originForeignKey:{type:"string"},relationshipTableId:{type:"number"},destinationPrimaryKey:{type:"string"},destinationForeignKey:{type:"string"},rules:{type:"array",items:{type:"object",properties:{ruleID:{type:"number"},originSubtypeCode:{type:"number"},originMinimumCardinality:{type:"number"},originMaximumCardinality:{type:"number"},destinationSubtypeCode:{type:"number"},destinationMinimumCardinality:{type:"number"},destinationMaximumCardinality:{type:"number"}},required:["ruleID","originSubtypeCode","originMinimumCardinality","originMaximumCardinality","destinationSubtypeCode","destinationMinimumCardinality","destinationMaximumCardinality"]},minItems:1,maxItems:1},cardinality:{type:"string",enum:["esriRelCardinalityManyToMany","esriRelCardinalityOneToMany","esriRelCardinalityOneToOne"]},attributed:{type:"boolean"},composite:{type:"boolean"}},required:["id","name","backwardPathLabel","originLayerId","originPrimaryKey","forwardPathLabel","destinationLayerId","originForeignKey","relationshipTableId","destinationPrimaryKey","destinationForeignKey","rules","cardinality","attributed","composite"]},minItems:1,maxItems:1},enableZDefaults:{type:"boolean"},isLocationTrackingService:{type:"boolean"},isLocationTrackingView:{type:"boolean"},zDefault:{type:"number"}},required:["serviceDescription","hasVersionedData","supportsDisconnectedEditing","supportsReturnDeleteResults","maxRecordCount","supportedQueryFormats","supportsRelationshipsResource","capabilities","description","copyrightText","advancedEditingCapabilities","spatialReference","initialExtent","fullExtent","allowGeometryUpdates","units","syncEnabled","validationSystemLayers","extractChangesCapabilities","syncCapabilities","editorTrackingInfo","layers","tables","relationships","isLocationTrackingService","isLocationTrackingView"],description:'`IFeatureServiceDefinition` can also be imported from the following packages:\n\n```js import { IFeatureServiceDefinition } from "@esri/arcgis-rest-service-admin"; import { IFeatureServiceDefinition } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureServiceDefinition"},"Record<string,boolean>":{type:"object",additionalProperties:{type:"boolean"},title:"Record<string,boolean>"},ITable:{type:"object",properties:{name:{type:"string",description:"Table name"},capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service. Available operations include: 'Create', 'Delete', 'Query', 'Update', and 'Editing'."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Object indicating the definitionEditor used as a layer's interactive filter."},id:{type:"number",description:"Unique identifier for the table."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining a definition expression for the table."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"An object defining the content of popup windows when you query a record and the sort option for child related records."},title:{type:"string",description:"String value for the title of the table."},url:{type:"string",description:"String value indicating the URL reference of the hosted table."}},description:'Root element in the web map specifying an array of table objects.\n\n`ITable` can also be imported from the following packages:\n\n```js import { ITable } from "@esri-arcgis-rest-service-admin" ```',title:"ITable"},IServiceInfo:{type:"object",properties:{adminServiceInfo:{type:"object",properties:{name:{type:"string"},type:{type:"string"},status:{type:"string"},database:{type:"object",properties:{datasource:{type:"object",properties:{name:{type:"string"}},required:["name"]}},required:["datasource"]}},required:["name","type","status","database"]},layers:{type:"array",items:{$ref:"#/definitions/Record%3Cstring%2Cunknown%3E"}}},required:["adminServiceInfo","layers"],description:"Very generic structure representing the return value from the /arcgis/rest/admin/services/<service-name>/FeatureServer?f=json response",title:"IServiceInfo"},"Record<string,unknown>":{type:"object",additionalProperties:{},title:"Record<string,unknown>"},IViewServiceSource:{type:"object",properties:{name:{type:"string"},type:{type:"string"},url:{type:"string"},serviceItemId:{type:"string"}},required:["name","type","url","serviceItemId"],description:"Individual View Source entry",title:"IViewServiceSource"},IViewServiceSources:{type:"object",properties:{currentVersion:{type:"number"},services:{type:"array",items:{$ref:"#/definitions/IViewServiceSource"}}},required:["currentVersion","services"],description:"Response from the /sources end-point of a view service",title:"IViewServiceSources"},IServiceNameAvailable:{type:"object",properties:{available:{type:"boolean"}},required:["available"],description:"Response from the portals/Self/isServiceNameAvailable request",title:"IServiceNameAvailable"},IPictureSourced:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},title:"IPictureSourced"},IPictureFillSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPFS"},style:{type:"string"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},xscale:{type:"number"},yscale:{type:"number"}},required:["type"],title:"IPictureFillSymbol"},IPictureMarkerSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPMS"},style:{type:"string"}},required:["type"],title:"IPictureMarkerSymbol"},ITextSymbol:{type:"object",properties:{type:{type:"string",const:"esriTS"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:"ITextSymbol"},IUser:{type:"object",properties:{username:{type:"string"},fullName:{type:"string"},availableCredits:{type:"number"},assignedCredits:{type:"number"},firstName:{type:"string"},lastName:{type:"string"},preferredView:{},description:{type:"string"},email:{type:"string"},idpUsername:{type:"string"},favGroupId:{type:"string"},lastLogin:{type:"number"},mfaEnabled:{type:"boolean"},access:{type:"string"},storageUsage:{type:"number"},storageQuota:{type:"number"},orgId:{type:"string"},cOrgId:{type:"string"},role:{type:"string",enum:["org_admin","org_publisher","org_user"]},privileges:{type:"array",items:{type:"string"}},roleId:{type:"string"},level:{type:"string"},disabled:{type:"boolean"},units:{type:"string"},tags:{type:"array",items:{type:"string"}},culture:{type:"string"},region:{type:"string"},thumbnail:{type:"string"},created:{type:"number"},modified:{type:"number"},groups:{type:"array",items:{$ref:"#/definitions/IGroup"}},provider:{type:"string",enum:["arcgis","enterprise","facebook","google"]}},description:'An ArcGIS Online or Enterprise user\n\n`IUser` can also be imported from the following packages:\n\n```js import { IUser } from "@esri/arcgis-rest-auth"; import { IUser } from "@esri/arcgis-rest-portal"; ```',title:"IUser"},IPagingParams:{type:"object",properties:{start:{type:"number"},num:{type:"number"}},description:'Params for paging operations\n\n`IPagingParams` can also be imported from the following packages:\n\n```js import { IPagingParams } from "@esri/arcgis-rest-portal"; ```',title:"IPagingParams"},IPagedResponse:{type:"object",properties:{start:{type:"number"},num:{type:"number"},total:{type:"number",description:"total number of object across all pages"},nextStart:{type:"number",description:"next entry index or -1 for the last page"}},required:["total","nextStart"],description:'Paging properties for paged responses.\n\n`IPagedResponse` can also be imported from the following packages:\n\n```js import { IPagedResponse } from "@esri/arcgis-rest-portal"; ```',title:"IPagedResponse"},IWebMapBackground:{type:"object",properties:{color:{$ref:"#/definitions/Color",description:"To define the color of the background of the map (which is shown when no data is shown)."}},required:["color"],description:"Defines the appearance for the background of the map.",examples:[{background:{color:[255,255,255,255]}}],title:"IWebMapBackground"},IBookmark:{type:"object",properties:{extent:{$ref:"#/definitions/IExtent",description:"An extent object containing a spatial reference, a lower left coordinate, and an upper right coordinate defining the rectangular area of the bookmark. The spatial reference must be the same as the map spatial reference. Documentation for the envelope is in the Geometry Objects topic of the ArcGIS REST API help."},name:{type:"string",description:"A string name for the bookmark."}},required:["extent","name"],description:"Predefined bookmarks for use by the application. A bookmark is a saved map extent that allows end users to quickly navigate to a particular area of interest.",title:"IBookmark"},IMapRangeInfo:{type:"object",properties:{activeRangeName:{type:"string",description:"Active range ID that slider/picker acts upon."},currentRangeExtent:{type:"array",items:{type:"number"},description:"Current range for the active range."},fullRangeExtent:{type:"array",items:{type:"number"},description:"Full range extent for the active range to be presented in the UI."}},description:"Map range information",examples:[{mapRangeInfo:{activeRangeName:"floors",currentRangeExtent:[-2,10],fullRangeExtent:[-2,100]}}],title:"IMapRangeInfo"},IMapLocation:{type:"object",properties:{centerPoint:{$ref:"#/definitions/IPoint",description:"The center of the map specified using X/Y coordinates."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"Well-known ID (WKID) or well-known text (WKT)."}},required:["centerPoint","spatialReference"],description:"Contains location information within a presentation slide.",title:"IMapLocation"},IVisibleLayer:{type:"object",properties:{featureVisibility:{type:"array",items:{type:"array",items:{}},description:"An array of arrays."},id:{type:"number",description:"The id of the layer as listed on the operational layer."},subLayerIds:{type:"array",items:{type:"number"},description:"An array of integers."}},description:"An array of numbers indicating layer visibility.",examples:[{visibleLayer:{featureVisibility:[[1],[],[],[0]],id:"73128eb3-05ee-46a7-8c22-0c385a0b1827"}}],title:"IVisibleLayer"},IVisiblePopup:{type:"object",properties:{anchorPoint:{$ref:"#/definitions/IPoint",description:"Object with spatialReference, x, and y."},featureId:{type:"number",description:"An integer specifying the feature's id."},layerId:{type:"string",description:"A string specifying the layer id."},subLayerId:{type:"number",description:"An integer specifying the sublayer id."}},description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId.",title:"IVisiblePopup"},ISlide:{type:"object",properties:{baseMap:{$ref:"#/definitions/IBaseMap",description:"Basemaps give the web map a geographic context."},extent:{$ref:"#/definitions/IExtent",description:"The standard Esri extent object with spatialReference, xmax, xmin, ymax and ymin."},hidden:{type:"boolean",description:"Indicates whether the slide should be hidden within the presentation."},mapLocation:{$ref:"#/definitions/IMapLocation",description:"An object with a centerPoint object and sometimes a resolution."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"An array of two numbers. The first one indicates start time and the second one indicates end time."},title:{type:"string",description:"Title including text and formatting for each slide."},visibleLayers:{$ref:"#/definitions/IVisibleLayer",description:"An array of objects used to indicate layer visibility."},visiblePopup:{$ref:"#/definitions/IVisiblePopup",description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId."}},title:"ISlide"},IBaseMap:{type:"object",properties:{baseMapLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"An array of baseMapLayer objects defining the basemaps used in the web map."},title:{type:"string",description:"Required string title for the basemap that can be used in a table of contents. It takes the title of the first baseMapLayer in the array."}},required:["baseMapLayers","title"],description:"A basemap layer is a layer that provides geographic context to the map. A web map always contains a basemap. The basemap has a title and is the combination of each baseMapLayer. It is required that a baseMap be saved within the web map.",title:"IBaseMap"},IPresentation:{type:"object",properties:{displayTimeSlider:{type:"boolean",description:"Indicates whether to display the time slider (if accessible)."},showLegend:{type:"boolean",description:"Indicates whether to display a legend on all slides."},slideAdvancementInterval:{type:"number",description:"Number of seconds to show slide before proceeding to the next slide."},slides:{type:"array",items:{$ref:"#/definitions/ISlide"},description:"Array of slide objects."},useTimeExtentOfSlide:{type:"boolean",description:"Indicates whether to use the time extent (if applicable) of a slide."}},title:"IPresentation"},IWebmap:{type:"object",properties:{applicationProperties:{$ref:"#/definitions/IApplicationProperties",description:"Viewing and editing properties of the webmap"},authoringApp:{type:"string",description:"String value indicating the application which authored the webmap"},authoringAppVersion:{type:"string",description:"String value indicating the authoring App's version number"},background:{$ref:"#/definitions/IWebMapBackground",description:"Defines the appearance for the background of the map."},baseMap:{$ref:"#/definitions/IBaseMap",description:"[Required] Basemaps give the web map a geographic context"},bookmarks:{type:"array",items:{$ref:"#/definitions/IBookmark"},description:"A bookmark is a saved geographic extent that allows end users to quickly navigate to a particular area of interest"},mapRangeInfo:{$ref:"#/definitions/IMapRangeInfo",description:"Map Range Information"},operationalLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"Operational layers contain business data which are used to make thematic maps"},presentation:{description:"A presentation consists of multiple slides. Each slide has a different title, extent, basemap, layers etc"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"[Required] An object used to specify the spatial reference of the given geometry."},tables:{type:"array",items:{$ref:"#/definitions/ITable"},description:"Root element in the web map specifying an array of table objects. (optional)"},version:{type:"string",description:"[Required] Root element in the web map specifying a string value indicating the web map version."},widgets:{description:"The widgets object contains widgets that should be exposed to the user"}},required:["baseMap","spatialReference","version"],description:"The web map data lists the basemap, operational layers, and bookmarks to be used in the web map. It also contains information about popup windows and layer styling overrides to be used in the web map. A version property allows you to supply the version of the web map JSON format being used.",title:"IWebmap"},IApplicationProperties:{type:"object",properties:{editing:{anyOf:[{$ref:"#/definitions/IEditingProperties"},{type:"null"}],description:"If locationTracking is set and enabled, the Collector application will update the feature service at the defined interval with the current location of the user logged into the Collector app."},offline:{anyOf:[{$ref:"#/definitions/IOfflineInfo"},{type:"null"}],description:"Use if working with offline maps."},viewing:{anyOf:[{$ref:"#/definitions/IViewingInfo"},{type:"null"}],description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default."}},description:"The applicationProperties object is one of the objects at the top level of the JSON web map JSON schema. This is responsible for containing the viewing and editing properties of the web map. There are specific objects within this object that are applicable only to Collector and are explained within the property descriptions.",title:"IApplicationProperties"},IEditingProperties:{type:"object",properties:{locationTracking:{$ref:"#/definitions/ILocationTracking",description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application."}},required:["locationTracking"],description:"An object containing all the editing properties within the web map.",title:"IEditingProperties"},ILocationTracking:{type:"object",properties:{enabled:{type:"boolean",description:"A boolean value indicating whether or not location tracking is enabled on the webmap."},info:{$ref:"#/definitions/ILocationTrackingInfo",description:"An object of additional information specifying layer and update interval time."}},required:["enabled","info"],description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application.",title:"ILocationTracking"},ILocationTrackingInfo:{type:"object",properties:{layerId:{description:"A string value indicating the given layer id specified in the web map."},updateInterval:{description:"A numeric value indicating the time interval used to update the feature service. Default value is 300 seconds."}},required:["layerId"],description:"An object containing additional information specifying layer and update interval time used in the locationTracking object.",title:"ILocationTrackingInfo"},IOfflineInfo:{type:"object",properties:{editableLayers:{$ref:"#/definitions/IEditableLayers",description:"Object detailing the available offline editing options."},readonlyLayers:{$ref:"#/definitions/IReadOnlyLayers",description:"Object indicating what to do with attachments in read-only layers."}},required:["editableLayers","readonlyLayers"],description:"Use if working with offline maps.",title:"IOfflineInfo"},IEditableLayers:{type:"object",properties:{download:{type:"string",enum:["featuers","featuresAndAttachments","none"],description:"When editing layers, the edits are always sent to the server. This string value indicates which data is retrieved. For example, none indicates that only the schema is written since neither the features nor attachments are retrieved. For a full sync without downloading attachments, indicate features. Lastly, the default behavior is to have a full sync using featuresAndAttachments where both features and attachments are retrieved."},sync:{type:"string",enum:["syncFeaturesAndAttachments","syncFeaturesUploadAttachments","uploadFeaturesAndAttachments"],description:"This string value indicates how the data is synced."}},required:["download","sync"],description:"Object detailing the available offline editing options.",title:"IEditableLayers"},IReadOnlyLayers:{type:"object",properties:{downloadAttachments:{type:"boolean",description:"Indicates whether to include attachments with the read-only data."}},required:["downloadAttachments"],description:"Read-only layers as the features are always retrieved from the server.",title:"IReadOnlyLayers"},IViewingInfo:{type:"object",properties:{basemapGallery:{$ref:"#/definitions/IEnableable",description:"The basemap tool which will use the basemap group defined in the Portal."},measure:{$ref:"#/definitions/IEnableable",description:"Measure tool."},routing:{$ref:"#/definitions/IEnableable",description:"The route tool which will leverage the Portals defined route service."},search:{$ref:"#/definitions/ISearch",description:"An object specifying search parameters within the webmap."}},description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default.",title:"IViewingInfo"},IEnableable:{type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"],title:"IEnableable"},ISearch:{type:"object",properties:{enabled:{type:"boolean"},disablePlaceFinder:{description:"A boolean value indicating whether or not to disable the place finder."},hintText:{description:"A string value used to indicate the hint provided with the search dialog."},layers:{description:"An array of layer objects defining the styling, geometry, and attribute information for the features."}},required:["enabled"],description:"An object specifying the search parameters set within the web map.",title:"ISearch"},IRange:{type:"object",properties:{interactionMode:{type:"string",enum:["picker","slider"],description:"Indicates the mode in which the active range should be presented to the user. Must be one of the following values: slider, picker"},numberOfStops:{description:"This is used to generate the activeRangeValues if activeRangeValues are not specified."},stopInterval:{type:"number",description:"Interval in which stops should be generated."}},description:"Range object.",title:"IRange"},IWidget:{type:"object",properties:{range:{$ref:"#/definitions/IRange",description:"Active range."},timeSlider:{$ref:"#/definitions/ITimeSliderProperties",description:"Time animation is controlled by a configurable time slider. The time slider widget will act upon all the time aware layers in the map."}},description:"The widgets object contains widgets that should be exposed to the user.",title:"IWidget"},ITimeSliderProperties:{type:"object",properties:{currentTimeExtent:{type:"array",items:{type:"number"},description:"An optional array of numbers indicating the slider's start to end time extent."},endTime:{type:"number",description:"The optional end of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},numberOfStops:{type:"number",description:"Number of stops within the timeSlider widget."},startTime:{type:"number",description:"The optional start of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},thumbCount:{type:"number",description:"The default value for the thumbCount is 1."},thumbMovingRate:{type:"number",description:"Rate at which the time animation plays. Units are in milliseconds. Default is 1000."},timeStopInterval:{type:"number",description:"The interval which has been defined for the time slider."}},description:"Configurable properties used within the TimeSlider widget.",title:"ITimeSliderProperties"},ITimeSlider:{type:"object",properties:{properties:{$ref:"#/definitions/ITimeSliderProperties",description:"Configurable properties used within the TimeSlider widget."}},required:["properties"],description:"Time animation is controlled by a configurable time slider. Those configurations are saved to the web map as a timeSlider widget.",title:"ITimeSlider"},IBingLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",enum:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"],description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bingKey:{type:"string",description:"String value that unlocks the use of Bing layers in a web map."},canShareBingPublic:{type:"boolean",description:"Boolean value indicating whether the Bing key can be shared to the public."},portalUrl:{type:"string",description:"A string value representing the URL to the Portal/organization Self resource. Calls should be made to this property to retrieve the Bing key. If the key is not made accessible to the public or if canShareBingPublic is false, any web maps using Bing layers will not work."}},required:["id","layerType"],title:"IBingLayer"},IImageServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bandIds:{type:"array",items:{type:"number"},description:"An array of bandIds that are visible, can specify bands to export or rearrange band order(from image service)."},compressionQuality:{description:"Controls how much loss the image will be subjected to by the compression algorithm (from image service)."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Boolean property indicating whether to ignore popups defined by the service item."},format:{type:"string",enum:["bmp","gif","jpg","jpgpng","png","png8","png24","png32","tiff"],description:"String value representing image format."},interpolation:{type:"string",enum:["RSP_BilinearInterpolation","RSP_CubicConvolution","RSP_Majority","RSP_NearestNeighbor"],description:"The algorithm used for interpolation."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},noData:{description:"The pixel value that represents no information."},noDataInterpretation:{type:"string",enum:["esriNoDataMatchAll","esriNoDataMatchAny"],description:"A string value of interpretation of noData setting. Default is 'esriNoDataMatchAny' when noData is a number, and 'esriNoDataMatchAll' when noData is an array."},pixelType:{type:"string",enum:["C64","C128","F32","F64","S8","S16","S32","U1","U2","U4","U8","U16","U32","UNKNOWN"],description:"Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},renderingRule:{description:"Specifies the rendering rule for how the requested image should be rendered."}},required:["id","layerType"],title:"IImageServiceLayer"},IImageVectorLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceVectorLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceVectorLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{description:"Boolean property indicating whether to ignore popups defined by the service item."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},symbolTileSize:{description:"Number describing the size of the tile."}},required:["id","layerType"],title:"IImageVectorLayer"},IChildLayer:{type:"object",properties:{defaultVisibility:{description:"Default visibility of the layers in the map service."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"An object that provides interactive filters."},featureSet:{$ref:"#/definitions/IFeatureSet",description:"A featureSet object containing the geometry and attributes of the features in the layer. Used with feature collections only."},field:{type:"array",items:{$ref:"#/definitions/IField"},description:"Information about each field in a layer. Used with feature collections."},id:{type:"string",description:"A string indicating the index position of the layer in the map service or feature collection."},layerDefinition:{description:"The layerDefinition object defines the attribute schema and drawing information for the layer."},layerUrl:{description:"A string URL to a service that should be used for all queries against the layer. Used with hosted tiled map services on ArcGIS Online when there is an associated feature service that allows for queries."},maxScale:{description:"Represents the maximum scale at which the layer definition will be applied."},minScale:{description:"Represents the minimum scale at which the layer definition will be applied."},nextObjectId:{description:"Iterates within a featureset. Number objectId value is incremented +1 based on last Object ID defined for the feature in a featureset. Used with feature collections."},parentLayerId:{description:"If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the popup window content for the layer."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},subLayer:{description:"Array of numeric values indicating the layer index for layers nested directly under the parent layer."},subLayerIds:{description:"If the layer is a parent layer, it will have one or more sub layers included in an array."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."}},description:"A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service. This object also contains geographic features and their attributes when used in a feature collection.",title:"IChildLayer"},IMapServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining the styling, geometry, and attribute information for the features."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},thematicGroup:{$ref:"#/definitions/IThematicGroup",description:"(Optional) A thematicGroup object used in ArcGISMapServiceLayer layers."},visibleLayers:{type:"array",items:{type:"number"},description:"An array of sublayer ids that should appear visible. Used with map service layers that are not tiled."}},required:["id","layerType"],title:"IMapServiceLayer"},IThematicGroup:{type:"object",properties:{fieldNames:{type:"array",items:{type:"string"},description:"An array of string values indicating all the fields used within the webmap. All other fields can be disregarded and should not display in any field selection list."},layerIds:{type:"array",items:{type:"number"},description:"A zero-based array of integers indicating the layers to be used in the webmap. NOTE: All other layers should not be added to the TOC and may or may not be visible on the map as reference layers."},name:{type:"string",description:"String property indicating the name for the thematic grouping of layers."}},title:"IThematicGroup"},IDrawingInfo:{type:"object",properties:{fixedSymbols:{description:"Only used for feature collections with a renderer. The feature's symbol is defined by the layer's renderer."},labelingInfo:{description:"An object defining the properties used for labeling the layer."},renderer:{description:"An object defined which provides the symbology for the layer."},scaleSymbols:{description:"Boolean property indicating whether symbols should stay the same size in screen units as you zoom in. A value of true means the symbols stay the same size in screen units regardless of the map scale."},showLabels:{type:"boolean",description:"Defines whether labels should be shown or not. This is only valid for sublayers."},transparency:{type:"number",description:"Number value ranging between 0 (no transparency) to 100 (completely transparent)."}},title:"IDrawingInfo"},ITypeInfoDomain:{type:"object",properties:{type:{type:"string"}},required:["type"],title:"ITypeInfoDomain"},ITypeInfo:{type:"object",properties:{domains:{$ref:"#/definitions/Record%3Cstring%2CITypeInfoDomain%3E",description:"A comma-delimited series of domain objects for each domain in the type."},id:{type:["number","string"],description:"A unique string or numerical ID for the type."},name:{type:"string",description:"A user-friendly name for the type."},templates:{type:"array",items:{$ref:"#/definitions/ITemplate"},description:"Defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types."}},title:"ITypeInfo"},"Record<string,ITypeInfoDomain>":{type:"object",additionalProperties:{$ref:"#/definitions/ITypeInfoDomain"},title:"Record<string,ITypeInfoDomain>"},IOpenStreetMapLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"OpenStreetMap",description:"String indicating the layer type. Value of this property must be OpenStreetMap"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"OpenStreetMap",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."}},required:["id","layerType"],description:"Allows use of OpenStreetMap data for use in basemaps only.",title:"IOpenStreetMapLayer"},ITiledImageServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISTiledImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{type:"boolean",description:"Applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"ITiledImageServiceLayer"},IExclusionArea:{type:"object",properties:{geometry:{$ref:"#/definitions/IGeometry",description:"The geometry defining the area where no data will be fetched. Only extent is supported."},maxScale:{type:"number",description:"The zoom level where the exclusion ends."},maxZoom:{type:"number",description:"The zoom level where the exclusion ends."},minScale:{type:"number",description:"The zoom level where the exclusion starts."},minZoom:{type:"number",description:"The zoom level where the exclusion starts."}},description:"Exclusion areas define extent areas where no data will be fetched for a layer.",title:"IExclusionArea"},ITiledMapServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},displayLevels:{anyOf:[{type:"array",items:{type:"number"}},{type:"number"}],description:"NOTE: Applicable if used as a baseMapLayer. Integer value(s) indicating the display levels of the basemap layer. Only applicable for TiledMapService layers. All tiled map service layers should share the same tiling scheme. This property cannot be set via the Map Viewer UI."},exclusionAreas:{type:"array",items:{$ref:"#/definitions/IExclusionArea"},description:"NOTE: Applicable if used as a baseMapLayer. An array of exclusionArea objects defining the layer exclusions."},isReference:{description:"This property is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining a URL for queries and the popup window content."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"An ArcGIS Tiled Map Service layer displays map content from an ArcGIS Server Map service that has been cached (tiled).",title:"ITiledMapServiceLayer"},IVectorTileLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"VectorTileLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"VectorTileLayer",description:"Deprecated. User layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},styleUrl:{type:"string",description:"A url to a JSON file containing the stylesheet information used to render the layer. You may also pass an object containing the stylesheet information identical to the JSON file."}},required:["id","layerType"],description:"A vector tile layer references a set of web-accessible vector tiles and the corresponding style for how those tiles should be drawn.",title:"IVectorTileLayer"},ILod:{type:"object",properties:{level:{type:"number",description:"ID for each level."},levelValue:{type:"string",description:"String to be used when constructing URL to access a tile from this LOD."},resolution:{type:"number",description:"Resolution in map units of each pixel in a tile for each level."},scale:{type:"number",description:"Scale for each level."}},title:"ILod"},ITileInfo:{type:"object",properties:{cols:{description:"Requested tile's column."},compressionQuality:{description:"Compression quality of the tile."},dpi:{description:"The dpi of the tiling scheme."},format:{type:"string",enum:["bmp","emf","gif","jpg","lerc","mixed","pdf","png","png8","png24","png32","ps","svg","svgz"],description:"Image format of the cached tiles."},lods:{type:"array",items:{$ref:"#/definitions/ILod"},description:"An array of levels of detail that define the tiling scheme."},origin:{$ref:"#/definitions/IPoint",description:"The tiling scheme origin."},rows:{description:"Requested tile's row."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"The spatial reference of the tiling schema."}},description:"Tile information, returned from the WMTS OGC Web Service. The tileInfo will contain the spatial reference of the layer. tileInfo is the same json representation as the ArcGIS Map/Image service tileInfo except that it may contain a levelValue on the lod objects that should be used instead of the level in the templateUrl.",title:"ITileInfo"},IWebMapTileServiceInfo:{type:"object",properties:{customLayerParameters:{description:"A sequence of parameters used to append different custom parameters to a WMTS tile request. These parameters are applied to GetTile. The customLayerParameters property takes precedence if customParameters is also present."},customParameters:{description:"A sequence of parameters used to append custom parameters to all WMTS requests. These parameters are applied to GetCapabilities and GetTile. If used with the customLayerParameters property, customParameters will not take precedence."},layerIdentifier:{type:"string",description:"Identifier for the specific layer used in the WMTS service. Required input by the user."},tileMatrixSet:{description:"Tiling schema, set by the WMTS service."},url:{type:"string",description:"URL to the WMTS web service. Required input by the user."}},required:["layerIdentifier","url"],description:"Object defines and provides information about layers in a WMTSLayer service.",title:"IWebMapTileServiceInfo"},IWebTiledLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"WebTiledLayer",description:"String indicating the layer type. Value of this property must be WebTiledLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"WebTiledLayer",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},copyright:{description:"Attribution to the Web Tiled Layer provider. It is displayed in the attribution on the web map. Input required by the user when the layer is added to the web map."},fullExtent:{$ref:"#/definitions/IExtent",description:"An extent object representing the full extent envelope for the layer."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},subDomains:{description:"If subdomains are detected, they must be specified. The map viewer detects if the Web Tiled Layer has subdomains by parsing the templateURL value for {subDomain}."},templateUrl:{description:"URL to the Web Tiled Layer. Input required by the user when the layer is added to the web map. The template URL contains a parameterized URL. The URL can contain the following templated parameters: 'level', 'col', 'row', and 'subDomain'."},tileInfo:{$ref:"#/definitions/ITileInfo",description:"Contains the spatial reference and the tiling scheme of the layer. Typically retrieved from a WMTS OGC Web Service. If missing the layer must be in the WGS 1984 Web Mercator (Auxiliary Sphere) tiling scheme."},wmtsInfo:{$ref:"#/definitions/IWebMapTileServiceInfo",description:"Object containing information about the chosen WMTS service layer and tiling schema."}},required:["id","layerType"],title:"IWebTiledLayer"},ICsvLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"CSV",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"CSV",description:"Deprecated, use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},columnDelimiter:{type:"string",enum:[" ",",",";"," ","|"],description:"A string defining the character used to separate columns in a CSV file."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},locationInfo:{description:"A locationInfo object defining how location information will be retrieved from a CSV file."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"The CSV layer type references a CSV or TXT file from a publically-accessible web server. It then dynamically loads into the map at run time. The CSV layer will maintain a reference to the CSV resource.",title:"ICsvLayer"},IGeoRssLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"GeoRSS",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"GeoRSS",description:"Deprecated, please use layerType.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have lines, this property is not added to the layer JSON."},pointSymbol:{$ref:"#/definitions/IPictureMarkerSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have points, this property is not added to the layer JSON."},polygonSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have polygons, this property is not added to the layer JSON."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"IGeoRssLayer"},IKmlLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"KML",description:"String indicating the layer type."},maxScale:{description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},minScale:{description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},opacity:{description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"KML",description:"Deprecated, use layerType instead.",deprecated:"Use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},visibleFolders:{type:"array",items:{type:"number"},description:"Array of numeric IDs of folders that will be made visible."}},required:["id","layerType"],title:"IKmlLayer"},IArcGisStreamLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISStreamLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Indicates whether to ignore popups defined by the service item."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of pop-up windows when you click or query a feature."}},required:["id","layerType"],title:"IArcGisStreamLayer"}},$ref:"#/definitions/WebChart"},sh={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},gr={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},se={BadData:"badData",EmptyDataSet:"emptyDataSet",HistogramEmptyField:"histogramEmptyField",BarElementExceedsLimit:"barElementExceedsLimit",LineChartExceedsLimit:"lineChartExceedsLimit",BoxPlotExceedsLimit:"boxPlotExceedsLimit",BoxPlotOutliersExceedsLimit:"boxPlotOutliersExceedsLimit",HeatChartExceedsLimit:"heatChartExceedsLimit",PieChartExceedsLimit:"pieChartExceedsLimit",GaugeExceedsLimit:"gaugeExceedsLimit",PieChartMixOfNegativePositiveSlices:"PieChartMixOfNegativePositiveSlices",NegativeValueInSqrtCalculation:"negativeValueInSqrtCalculation",NegativeValueInLogCalculation:"negativeValueInLogCalculation",NegativeValueInXAxisLogScale:"negativeValueInXAxisLogScale",NegativeValueInYAxisLogScale:"negativeValueInYAxisLogScale"};function Kw(t){let e=t.lastIndexOf("/");return e!==-1?t.slice(e+1):t}async function Yw(t){let e=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings;return t.map(r=>{let a=r,i=r.dataPath.startsWith(".")?r.dataPath.substring(1):r.dataPath;switch(r.keyword){case gr.Required:a={...r,message:qe(e.errors.requiredProperty,{dataPath:i,missingProperty:r.params.missingProperty})};break;case gr.MinLength:a={...r,message:qe(e.errors.minLength,{dataPath:i,limit:r.params.limit.toString()})};break;case gr.MinItems:a={...r,message:qe(e.errors.minItems,{dataPath:i,limit:r.params.limit.toString()})};break;case gr.MaxItems:a={...r,message:qe(e.errors.maxItems,{dataPath:i,limit:r.params.limit.toString()})};break;case gr.Pattern:r.params.pattern==="\\w+"&&(a={...r,message:qe(e.errors.whiteSpacePattern,{dataPath:i}),params:{}});break;case gr.AdditionalProperties:a={...r,message:qe(e.errors.additionalProperty,{dataPath:i,additionalProperty:r.params.additionalProperty})};break;case gr.Enum:a={...r,message:qe(e.errors.enumValues,{dataPath:i,allowedValues:r.params.allowedValues.join(", ")})};break;case gr.AnyOf:{let n=[];r.schemaPath==="#/properties/legend/anyOf"&&(n=hi.definitions.WebChart.properties.legend.anyOf.map(s=>Kw(s.$ref))),a={...r,params:n,message:qe(e.errors.anyOfValues,{dataPath:i,schemaOptions:n.join(", ")})};break}}return a})}function Za(t,e){return{...t,$ref:`#/definitions/${e}`}}async function Xw(t){let e,r=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings,a=de(t);try{await a.load()}catch{let i=a?.url??"",n=Xe(a)?.portalItem?.id??"";e={keyword:wt.LayerLoadFailure,message:qe(r.errors.layerLoadFailure,{url:i,portalItemId:n}),params:{url:i,portalItemId:n}}}return e}function eC(){let t=new Xc.default({allErrors:!0});return async e=>{let r=[],a=Y(e?.series),i=hi;switch(a){case g.GaugeSeries:i=Za(hi,"WebGaugeChart");break;case g.BoxPlotSeries:i=Za(hi,"WebBoxPlot");break;case g.RadarSeries:i=Za(hi,"WebRadarChart");break;default:i=Za(hi,"WebChart");break}let n=t.compile(i);return n(e),n.errors!==null&&n.errors!==void 0&&(r=await Yw(n.errors)),r}}var tC=eC();async function rC(t){let{seriesConfigs:e,queryObject:r,allowUsingObjectIdStat:a}=t,i=[],n=await Ct(r),s=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings;for(let o=0;o<e.length;o+=1){let l=e[o].query?.outStatistics;if(l!==void 0)for(let d=0;d<l.length;d+=1){let c=l[d],u=wo(c.onStatisticField,n);if(u&&!(u.type===Te.OID&&a||Fi(u))&&c.statisticType!==j.Count){let h=`series[${o}].query.outStatistics[${d}]`;i.push({keyword:sh.NonNumericAggregation,message:qe(s.errors.nonNumericAggregation,{dataPath:h}),dataPath:h,params:{fieldName:c.onStatisticField,fieldType:u.type,aggregationRequested:c.statisticType}})}}}return i}async function iC(t){let e=[],r=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings;if(t!==void 0&&t.series.length>1){let a=new Set,i=0;t.series.forEach((n,s)=>{if(a.add(n.id),a.size===i){let o=`series[${s}].id`;e.push({keyword:sh.DuplicateSeriesID,message:qe(r.errors.duplicateSeriesID,{dataPath:o,seriesID:n.id,seriesName:n.name}),dataPath:o,params:{seriesId:n.id,seriesName:n.name}})}else i+=1})}return e}function aC(t){let e=new Set,r=Nr(t);if(r){let a=Y(t.series),i=X(t.series);a===g.GaugeSeries&&!xo(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===g.ScatterSeries||a===g.BoxPlotSeries||i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation||i===C.PieNoAggregation,s=[Li,st,Lm,jt,Em,Ne.outStatistics.outStatisticFieldName??""],o=[];if(dt(t)?o=Tn({showMean:t.showMean,seriesConfig:t.series}):o=t.series.map(l=>"y"in l?l.y:void 0).filter(l=>l!==void 0).flat(),n?o.forEach(l=>e.add(l)):s.push(...o),t.series.forEach(l=>{let{query:d}=l;d&&(ar(d.where)||e.add(Ye(d.where)),d.groupByFieldsForStatistics&&d.groupByFieldsForStatistics.forEach(c=>e.add(c)),d.outStatistics&&d.outStatistics.forEach(c=>e.add(c.onStatisticField)))}),a===g.GaugeSeries&&t.axes?.[0]!==void 0){let l=t.axes?.[0];l&&"minimumFromField"in l&&typeof l.minimumFromField=="string"&&e.add(l.minimumFromField),l&&"maximumFromField"in l&&typeof l.maximumFromField=="string"&&e.add(l.maximumFromField)}s.forEach(l=>{e.delete(l)})}return Array.from(e.values()).filter(a=>!Le(a))}async function nC(t,e){let r,a=(await $t(mt(document.documentElement).t9nLocale,Ot("./assets/common/t9n"),"messages.")).errorStrings,i=await Ct(e),n=aC(t).filter(s=>!wo(s,i));if(n.length>0){let s=n.join(", ");r={keyword:wt.LayerFieldsNotFound,message:qe(a.errors.layerFieldsNotFound,{fieldNames:s}),params:s}}return r}async function sC(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a}=t,i=[];if(r!==void 0){let n=await rC({seriesConfigs:e.series,queryObject:r,allowUsingObjectIdStat:a});i=i.concat(n)}return i=i.concat(await iC(e)),i}async function oC(t,e){let r=[];if(t!==void 0){let a=await Xw(t);if(a!==void 0)r=r.concat(a);else if(e!==void 0){let i=await nC(e,t);i!==void 0&&(r=r.concat(i))}}return r}async function fI(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a}=t,i;if(Ow(e?.version).versionStatus===pr.Newer)i={valid:!0,schemaErrors:[],customErrors:[],warnings:[]};else{let n=await tC(e),s=[],o=[];e!==void 0&&n.length===0&&(o=await oC(r,e),o.length===0&&(s=await sC({input:e,queryObject:r,allowUsingObjectIdStat:a}))),i={valid:n.length===0&&s.length===0&&o.length===0,schemaErrors:n,customErrors:o,warnings:s}}return i}function mI(t){let e=Y(t?.series),r=!1;switch(e){case g.HistogramSeries:{r=(t?.series?.[0]?.x?.trim()?.length??0)===0;break}case g.ScatterSeries:{let a=t?.series;r=(a?.[0]?.x?.length??0)===0||(a?.[0]?.y?.length??0)===0;break}case g.PieSeries:{let a=t?.series;X(a)===C.PieFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.length??0)===0||a?.[0]?.x===st;break}case g.BoxPlotSeries:{let a=t?.series;r=[a?.[0]?.y].flat().length===0||a?.[0]?.y==="";break}case g.ComboLineAndBarSeries:case g.RadarSeries:case g.BarSeries:case g.LineSeries:{let a=t?.series;X(a)===C.BarAndLineFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.trim()?.length??0)===0;break}case g.HeatSeries:{let a=t?.series,i=Le(a?.[0]?.x)||Le(a?.[0]?.y),n=t!==void 0&&Ip(t)?!1:a?.[0]?.xTemporalBinning===void 0;r=i||n;break}}return r}async function ws(t){let{queryObject:e,queryConfig:r,category:a,splitByField:i,chartLimits:n,abortKey:s}=t,o=i!==void 0,l=a!==Li?[a]:[];o&&l.push(i);let d=de(e),{idField:c,isTraditionalTypeOID:u}=Zt(d),h=u?c:"*",p={...r,groupByFieldsForStatistics:Array.from(new Set(l)),outStatistics:[{statisticType:j.Count,onStatisticField:h,outStatisticFieldName:`${j.Count}_OBJECTID`}],orderByFields:void 0,num:n?.maxBarThreePlusSeriesCountTotal},f=await Bt({queryObject:e,featureCount:1,queryConfig:p,abortKey:s});return Array.from(new Set(f.map(m=>m.attributes[o?i:a]))).sort((m,y)=>typeof m=="string"&&typeof y=="string"?m.localeCompare(y):Number(m)-Number(y))}var Jc=[{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]}],lC="{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'";async function yI(t){let e=Ot(`assets/common/t9n/messages.${t}.json`),r=await fetch(e);if(!r.ok)throw new Error(`Failed to load t9n file: ${e}`);return await r.json()}var dC=[...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 gI(t){let{t9nLocale:e}=mt(t??document.documentElement),r=oh(t??document.documentElement),a=qo(t??document.documentElement)==="rtl";return{locale:e,formatLocale:r,rtl:a}}function bI(t){let e;return t==="unknown"?e="UTC":t!==void 0&&t!=="system"&&(e=t),e}function vI(t,e){let r={year:"numeric",month:"2-digit",day:"2-digit",timeZone:e};return new Intl.DateTimeFormat("en-CA",r).format(t)}function SI(t,e){let r={hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:e};return new Intl.DateTimeFormat("en-US",r).format(t)}function wI(t,e){let[,r,,,,a]=1111.1.toLocaleString(e),i=t.replace(r,"").replace(a,".");return Number.parseFloat(i)}function cC(t){let e=Array.from(Dn);return dC.includes(t)&&!e.includes(t)}function oh(t){let{lang:e,t9nLocale:r}=mt(t);return cC(e)?e:r}return{a:zo,b:or,c:st,d:jt,e:Lm,f:Em,g:rr,h:ae,i:Nc,j:xg,k:lr,l:c1,m:ot,n:u1,o:Fr,p:Qr,q:p1,r:h1,s:Dg,t:f1,u:Ng,v:m1,w:re,x:Ne,y:y1,z:lt,A:$g,B:g1,C:b1,D:Hi,E:Li,F:xe,G:qg,H:v1,I:S1,J:Nt,K:tp,L:w1,M:Cn,N:fe,O:rp,P:oe,Q:ia,R:Rg,S:C1,T:js,U:x1,V:F1,W:Er,X:_a,Y:dr,Z:I1,_:jg,$:Vg,aa:Wg,ba:T1,ca:_g,da:zg,ea:Kr,fa:Hg,ga:Qg,ha:P1,ia:Zg,ja:O1,ka:A1,la:Jg,ma:Kg,na:L1,oa:E1,pa:Gi,qa:D1,ra:N1,sa:B1,ta:M1,ua:$1,va:q1,wa:k1,xa:R1,ya:Yg,za:Xg,Aa:eb,Ba:j1,Ca:V1,Da:W1,Ea:tb,Fa:_1,Ga:rb,Ha:ib,Ia:ab,Ja:z1,Ka:U1,La:P,Ma:Qi,Na:nb,Oa:H1,Pa:G1,Qa:sb,Ra:Q1,Sa:wi,Ta:dt,Ua:Z1,Va:J1,Wa:Ws,Xa:Zi,Ya:hb,Za:K1,_a:mi,$a:Y1,ab:fb,bb:vb,cb:Sb,db:X1,eb:Cb,fb:eF,gb:tF,hb:Ji,ib:Tb,jb:Ob,kb:Ab,lb:Mc,mb:np,nb:sp,ob:Nb,pb:$c,qb:rF,rb:H,sb:C,tb:iF,ub:Cp,vb:Vc,wb:aF,xb:co,yb:xp,zb:ir,Ab:Hs,Bb:nF,Cb:sF,Db:oF,Eb:Le,Fb:lF,Gb:dF,Hb:cF,Ib:uF,Jb:Bv,Kb:pF,Lb:hF,Mb:fF,Nb:mF,Ob:yF,Pb:gF,Qb:bF,Rb:kv,Sb:Ip,Tb:vF,Ub:po,Vb:SF,Wb:q0,Xb:wF,Yb:H0,Zb:CF,_b:xF,$b:Ki,ac:na,bc:Gp,cc:FF,dc:IF,ec:TF,fc:PF,gc:OF,hc:AF,ic:LF,jc:EF,kc:DF,lc:NF,mc:BF,nc:ct,oc:wt,pc:MF,qc:Ar,rc:Xe,sc:Yi,tc:$F,uc:de,vc:qF,wc:Xi,xc:Bt,yc:ew,zc:tw,Ac:be,Bc:hw,Cc:kF,Dc:Ct,Ec:Zt,Fc:Fi,Gc:fw,Hc:RF,Ic:mw,Jc:jF,Kc:th,Lc:gw,Mc:Sw,Nc:ww,Oc:VF,Pc:Cw,Qc:WF,Rc:Fw,Sc:Iw,Tc:Ow,Uc:Nr,Vc:_F,Wc:Ye,Xc:ut,Yc:ar,Zc:X,_c:ei,$c:Wt,ad:Nw,bd:Ww,cd:zF,dd:UF,ed:HF,fd:GF,gd:QF,hd:ZF,id:JF,jd:KF,kd:YF,ld:XF,md:eI,nd:tI,od:rI,pd:iI,qd:aI,rd:nI,sd:sI,td:oI,ud:lI,vd:dI,wd:cI,xd:uI,yd:xo,zd:ih,Ad:ah,Bd:Ue,Cd:Ss,Dd:tt,Ed:Gw,Fd:pI,Gd:Zw,Hd:hI,Id:sh,Jd:se,Kd:fI,Ld:mI,Md:ws,Nd:yI,Od:gI,Pd:bI,Qd:vI,Rd:SI,Sd:wI,Td:oh}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","layers/FeatureLayer","layers/support/Field","layers/support/fieldUtils","portal/Portal","rest/support/FeatureSet","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils")
34
+ **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-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873|undefined)1405062998,("data"|"orderByFields")>':{$ref:"#/definitions/Pick%3C(structure-1066060463-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873%7Cundefined)1405062998%2CExclude%3C(%22series%22%7C%22data%22%7C%22orderByFields%22)%2C(%22data%22%7C%22orderByFields%22)%3E%3E",title:'Omit<(structure-1066060463-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873|undefined)1405062998,("data"|"orderByFields")>'},'Pick<(structure-1066060463-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873|undefined)1405062998,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. If not provided the series will be displayed as they are ordered in the config."}},additionalProperties:!1,title:'Pick<(structure-1066060463-56199-57852-1066060463-56127-57853-1066060463-52147-57855-1066060463-0-60873|undefined)1405062998,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"},g:{type:"number"},b:{type:"number"},a:{type:"number",default:1}},required:["r","g","b"],description:"JSON representation of the color object",title:"RGBObject"},IRendererSymbol:{type:"object",properties:{style:{type:"string"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},label:{type:"string"},uniqueValue:{type:"string"},type:{$ref:"#/definitions/SymbolType"}},required:["color","type"],title:"IRendererSymbol"},WebChartDataItemColor:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/RGBArray"},{$ref:"#/definitions/RGBObject"},{type:"string"}],title:"WebChartDataItemColor"},RGBArray:{type:"array",items:{type:"number"},minItems:3,maxItems:3,title:"RGBArray"},WebChartDataItemValue:{anyOf:[{type:"string",format:"date-time"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IRendererSymbol"},{type:"array",items:{type:"number"}},{type:"array",items:{type:"string"}},{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},{$ref:"#/definitions/WebChartDataItemColor"},{type:"boolean"},{type:"number"},{type:"string"},{type:"null"},{not:{}}],title:"WebChartDataItemValue"},WebChartDataItem:{$ref:"#/definitions/Record%3Cstring%2CWebChartDataItemValue%3E",description:"JSON representation of a typical data item",title:"WebChartDataItem"},"Record<string,WebChartDataItemValue>":{type:"object",additionalProperties:{$ref:"#/definitions/WebChartDataItemValue"},title:"Record<string,WebChartDataItemValue>"},WebChartBoxPlotDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},outliers:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},meanLines:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["dataItems"],description:"JSON representation of the processed data for a Box Plot",title:"WebChartBoxPlotDataItem"},ScatterplotTrendLineData:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2}},description:"JSON representation of the processed data for a Scatter plot trend line",title:"ScatterplotTrendLineData"},WebChartScatterplotDataItem:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2},dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},aggregated:{type:"boolean"}},required:["dataItems"],description:"JSON representation of the processed data for a Scatter plot",title:"WebChartScatterplotDataItem"},WebChartGenericDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},timeIntervalInfo:{$ref:"#/definitions/TimeIntervalInfo",description:"Time interval information, only for line charts"},serverLimitReached:{type:"boolean",description:"Indicates whether the server limit has been reached when fetching data. Currently applies only to the queries leveraging the /queryBins operation."}},required:["dataItems"],description:"JSON representation of the generic data structure for bar, line bar-line, gauge and pie chart",title:"WebChartGenericDataItem"},WebChartBin:{type:"object",properties:{count:{type:"number"},minValue:{type:"number",description:"Min value in the bin"},maxValue:{type:"number",description:"Max value in the bin"},symbol:{$ref:"#/definitions/WebChartDataItem",description:"Symbol associated with the bin."},isLastBin:{type:"boolean",description:"Whether this is the last bin."}},required:["count","minValue","maxValue"],description:"JSON representation of a Histogram bin",title:"WebChartBin"},WebChartHistogramDataItem:{type:"object",properties:{mean:{type:"number"},median:{type:"number"},stddev:{type:"number"},max:{type:"number"},min:{type:"number"},sum:{type:"number",description:"Sum of the values of all the points"},count:{type:"number",description:"Number of all the points/features in un-binned data (including only non-null entries)"},nulls:{type:"number",description:"Number of null entries in the pool of points"},bins:{type:"array",items:{$ref:"#/definitions/WebChartBin"}}},required:["mean","median","stddev","max","min","bins"],description:"JSON representation of the processed data for a Histogram",title:"WebChartHistogramDataItem"},WebChartDataTypes:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotDataItem"},{$ref:"#/definitions/WebChartGenericDataItem"},{$ref:"#/definitions/WebChartHistogramDataItem"},{$ref:"#/definitions/WebChartScatterplotDataItem"}],title:"WebChartDataTypes"},WebChartTypes:{type:"string",enum:["chart","chartText","chartOverlay","chartOverlays","chartLegend","cursorCrosshair","chartAxis","gaugeAxisTick","gaugeNeedle","category","number","date","chartGuide","scatterSeries","pieSeries","pieTick","gaugeSeries","lineSeries","barSeries","histogramSeries","boxPlotSeries","radarSeries","comboLineAndBarSeries","heatSeries","buffer","sizeScale","calendarDateParts"],title:"WebChartTypes"},WebChartStatisticType:{type:"string",enum:["count","sum","min","max","avg","stddev","var","percentile-continuous","percentile-discrete","envelope-aggregate","centroid-aggregate","convex-hull-aggregate","no_aggregation"],title:"WebChartStatisticType"},WebChartColoringPatterns:{type:"string",enum:["singleColor","colorMatch"],title:"WebChartColoringPatterns"},WebChartBoxPlotMultipleSeriesKinds:{type:"string",enum:["sideBySide","meanLines"],title:"WebChartBoxPlotMultipleSeriesKinds"},WebChartLineSmoothedKinds:{type:"string",enum:["bezier","monotoneX","monotoneY"],description:"Represents the different types of smoothing that can be applied to a line chart when the `lineSmoothed` property is set to `true`.",title:"WebChartLineSmoothedKinds"},WebChartCalendarBinningOffsetUnits:{type:"string",enum:["seconds","minutes","hours","days"],description:"The temporal binning units for the calendar based binning offset",title:"WebChartCalendarBinningOffsetUnits"},WebChartVersionStatus:{type:"string",enum:["same","newer","older","unrecognized"],title:"WebChartVersionStatus"},WebChartAxisTypes:{type:"string",enum:["value","date","category"],description:"Represents the different types of axes that can be used in a chart.",title:"WebChartAxisTypes"},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","esriFieldTypeTimestampOffset","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeString","esriFieldTypeXML"],title:"RESTFieldType"},RESTSimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"RESTSimpleLineSymbolStyle"},RESTSimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSX","esriSMSTriangle"],title:"RESTSimpleMarkerSymbolStyle"},RESTSimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"RESTSimpleFillSymbolStyle"},RESTHorizontalAlignment:{type:"string",enum:["left","right","center","justify"],title:"RESTHorizontalAlignment"},RESTVerticalAlignment:{type:"string",enum:["baseline","top","middle","bottom"],title:"RESTVerticalAlignment"},RESTSymbolType:{type:"string",enum:["esriSLS","esriSMS","esriSFS","esriPMS","esriPFS","esriTS"],title:"RESTSymbolType"},RESTFontStyle:{type:"string",enum:["italic","normal","oblique"],title:"RESTFontStyle"},RESTFontWeight:{type:"string",enum:["bold","bolder","lighter","normal"],title:"RESTFontWeight"},RESTFontDecoration:{type:"string",enum:["line-through","underline","none"],title:"RESTFontDecoration"},RESTRendererType:{type:"string",enum:["unique-value","simple","class-breaks","heatmap","dot-density","dictionary","pie-chart"],title:"RESTRendererType"},OverlayTerms:{type:"string",enum:["Mean","Median","Standard Deviation","Normal Distribution","Trendline"],title:"OverlayTerms"},CalculatedMinMaxBoundsPayload:{type:"object",properties:{isXAxis:{type:"boolean"},isSecondValueAxis:{type:"boolean"},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."}},required:["isXAxis"],description:"Represents a subset of the event payload carrying the chart's axes bounds. See event `arcgisChartsAxesMinMaxChange`.",title:"CalculatedMinMaxBoundsPayload"},ChartDeletePayload:{type:"object",properties:{chartId:{type:"string"}},required:["chartId"],description:"Represents the payload of the event sent when a chart is removed from the chart list (component arcgis-charts-config-view-charts).",title:"ChartDeletePayload"},LegendItemVisibility:{type:"object",properties:{visible:{type:"boolean"},seriesId:{type:"string"},overlayType:{$ref:"#/definitions/OverlayTerms"},sliceId:{type:"string"},sliceData:{$ref:"#/definitions/WebChartDataItem"}},required:["visible"],description:"Represents the payload of the event sent when an item is toggled in the chart's legend (slice or series).",title:"LegendItemVisibility"},IFeatureSet:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"},objectIdFieldName:{type:"string"},globalIdFieldName:{type:"string"},displayFieldName:{type:"string"},geometryType:{$ref:"#/definitions/GeometryType"},spatialReference:{$ref:"#/definitions/ISpatialReference"},fields:{type:"array",items:{$ref:"#/definitions/IField"}},features:{type:"array",items:{$ref:"#/definitions/IFeature"}},fieldAliases:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"}},required:["features"],description:'`IFeatureSet` can also be imported from the following packages:\n\n```js import { IFeatureSet } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureSet"},"Record<string,string>":{type:"object",additionalProperties:{type:"string"},title:"Record<string,string>"},ILocation:{type:"object",properties:{latitude:{type:"number"},longitude:{type:"number"},lat:{type:"number"},long:{type:"number"},z:{type:"number"}},description:'`ILocation` can also be imported from the following packages:\n\n```js import { ILocation } from "@esri/arcgis-rest-routing"; import { ILocation } from "@esri/arcgis-rest-geocoding"; ```',title:"ILocation"},IPolylineWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curvePaths:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curvePaths"],title:"IPolylineWithCurves"},ElipticArc:{$ref:"#/definitions/IArc",title:"ElipticArc"},SpatialRelationship:{type:"string",enum:["esriSpatialRelContains","esriSpatialRelCrosses","esriSpatialRelEnvelopeIntersects","esriSpatialRelIndexIntersects","esriSpatialRelIntersects","esriSpatialRelOverlaps","esriSpatialRelTouches","esriSpatialRelWithin"],description:'The spatial relationship used to compare input geometries\n\n`SpatialRelationship` can also be imported from the following packages:\n\n```js import { SpatialRelationship } from "@esri/arcgis-rest-feature-layer"; ```',title:"SpatialRelationship"},IMultipoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},points:{type:"array",items:{$ref:"#/definitions/Position"}}},required:["points"],description:"A multipoint contains an array of points.",title:"IMultipoint"},Units:{type:"string",enum:["esriSRUnit_Foot","esriSRUnit_Kilometer","esriSRUnit_Meter","esriSRUnit_NauticalMile","esriSRUnit_StatuteMile","esriSRUnit_USNauticalMile"],description:'`Units` can also be imported from the following packages:\n\n```js import { Units } from "@esri/arcgis-rest-feature-layer"; ```',title:"Units"},GroupMembership:{type:"string",enum:["admin","member","none","owner"],description:'`GroupMembership` can also be imported from the following packages:\n\n```js import { GroupMembership } from "@esri/arcgis-rest-portal"; ```',title:"GroupMembership"},IGroupAdd:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"}},required:["title","access"],description:'A [Group](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IGroupAdd` can also be imported from the following packages:\n\n```js import { IGroupAdd } from "@esri/arcgis-rest-portal"; ```',title:"IGroupAdd"},IGroup:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"},id:{type:"string"},created:{type:"number"},modified:{type:"number"},protected:{type:"boolean"},isOpenData:{type:"boolean"},isFav:{type:"boolean"},userMembership:{type:"object",properties:{username:{type:"string"},memberType:{$ref:"#/definitions/GroupMembership"},applications:{type:"number"}}},hasCategorySchema:{type:"boolean"}},required:["access","autoJoin","created","id","isFav","isInvitationOnly","isViewOnly","modified","owner","protected","tags","title"],description:'Existing Portal [Group](https://developers.arcgis.com/rest/users-groups-and-items/group.htm).\n\n`IGroup` can also be imported from the following packages:\n\n```js import { IGroup } from "@esri/arcgis-rest-portal"; ```',title:"IGroup"},IItemAdd:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}}},required:["title","type"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IItemAdd` can also be imported from the following packages:\n\n```js import { IItemAdd } from "@esri/arcgis-rest-portal"; ```',title:"IItemAdd"},IItemUpdate:{type:"object",properties:{id:{type:"string"}},required:["id"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) to be updated.\n\n`IItemUpdate` can also be imported from the following packages:\n\n```js import { IItemUpdate } from "@esri/arcgis-rest-portal"; ```',title:"IItemUpdate"},IItem:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}},id:{type:"string"},created:{type:"number"},modified:{type:"number"},numViews:{type:"number"},size:{type:"number"},protected:{type:"boolean"}},required:["created","id","modified","numViews","owner","size","tags","title","type"],description:'Existing Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/item.htm).\n\n`IItem` can also be imported from the following packages:\n\n```js import { IItem } from "@esri/arcgis-rest-portal"; ```',title:"IItem"},IFolder:{type:"object",properties:{username:{type:"string"},id:{type:"string"},title:{type:"string"},created:{type:"number"}},required:["username","id","title"],description:'Used for organizing content. See [Create Folder](https://developers.arcgis.com/rest/users-groups-and-items/create-folder.htm) for more details.\n\n`IFolder` can also be imported from the following packages:\n\n```js import { IFolder } from "@esri/arcgis-rest-portal"; ```',title:"IFolder"},IFeatureServiceDefinition:{type:"object",properties:{currentVersion:{type:"number"},serviceDescription:{type:"string"},hasVersionedData:{type:"boolean"},supportsDisconnectedEditing:{type:"boolean"},supportsReturnDeleteResults:{type:"boolean"},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},maxRecordCount:{type:"number",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsRelationshipsResource:{type:"boolean"},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. Query,Editing."},description:{type:"string",description:"String value of the layer as defined in the map service."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},advancedEditingCapabilities:{$ref:"#/definitions/Record%3Cstring%2Cboolean%3E"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry."},initialExtent:{$ref:"#/definitions/IExtent"},fullExtent:{$ref:"#/definitions/IExtent"},allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},units:{type:"string"},syncEnabled:{type:"boolean"},returnServiceEditsHaveSR:{type:"boolean"},validationSystemLayers:{type:"object",properties:{validationPointErrorlayerId:{type:"number"},validationLineErrorlayerId:{type:"number"},validationPolygonErrorlayerId:{type:"number"},validationObjectErrortableId:{type:"number"}},required:["validationPointErrorlayerId","validationLineErrorlayerId","validationPolygonErrorlayerId","validationObjectErrortableId"]},extractChangesCapabilities:{type:"object",properties:{supportsReturnIdsOnly:{type:"boolean"},supportsReturnExtentOnly:{type:"boolean"},supportsReturnAttachments:{type:"boolean"},supportsLayerQueries:{type:"boolean"},supportsSpatialFilter:{type:"boolean"},supportsReturnFeature:{type:"boolean"}},required:["supportsReturnIdsOnly","supportsReturnExtentOnly","supportsReturnAttachments","supportsLayerQueries","supportsSpatialFilter","supportsReturnFeature"]},syncCapabilities:{type:"object",properties:{supportsASync:{type:"boolean"},supportsRegisteringExistingData:{type:"boolean"},supportsSyncDirectionControl:{type:"boolean"},supportsPerLayerSync:{type:"boolean"},supportsPerReplicaSync:{type:"boolean"},supportsRollbackOnFailure:{type:"boolean"},supportedSyncDataOptions:{type:"number"}},required:["supportsASync","supportsRegisteringExistingData","supportsSyncDirectionControl","supportsPerLayerSync","supportsPerReplicaSync","supportsRollbackOnFailure","supportedSyncDataOptions"]},editorTrackingInfo:{type:"object",properties:{enableEditorTracking:{type:"boolean"},enableOwnershipAccessControl:{type:"boolean"},allowOthersToUpdate:{type:"boolean"},allowOthersToDelete:{type:"boolean"}},required:["enableEditorTracking","enableOwnershipAccessControl","allowOthersToUpdate","allowOthersToDelete"]},documentInfo:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"},layers:{type:"array",items:{$ref:"#/definitions/ILayerDefinition"}},tables:{type:"array",items:{$ref:"#/definitions/ITable"}},relationships:{type:"array",items:{type:"object",properties:{id:{type:"number"},name:{type:"string"},backwardPathLabel:{type:"string"},originLayerId:{type:"number"},originPrimaryKey:{type:"string"},forwardPathLabel:{type:"string"},destinationLayerId:{type:"number"},originForeignKey:{type:"string"},relationshipTableId:{type:"number"},destinationPrimaryKey:{type:"string"},destinationForeignKey:{type:"string"},rules:{type:"array",items:{type:"object",properties:{ruleID:{type:"number"},originSubtypeCode:{type:"number"},originMinimumCardinality:{type:"number"},originMaximumCardinality:{type:"number"},destinationSubtypeCode:{type:"number"},destinationMinimumCardinality:{type:"number"},destinationMaximumCardinality:{type:"number"}},required:["ruleID","originSubtypeCode","originMinimumCardinality","originMaximumCardinality","destinationSubtypeCode","destinationMinimumCardinality","destinationMaximumCardinality"]},minItems:1,maxItems:1},cardinality:{type:"string",enum:["esriRelCardinalityManyToMany","esriRelCardinalityOneToMany","esriRelCardinalityOneToOne"]},attributed:{type:"boolean"},composite:{type:"boolean"}},required:["id","name","backwardPathLabel","originLayerId","originPrimaryKey","forwardPathLabel","destinationLayerId","originForeignKey","relationshipTableId","destinationPrimaryKey","destinationForeignKey","rules","cardinality","attributed","composite"]},minItems:1,maxItems:1},enableZDefaults:{type:"boolean"},isLocationTrackingService:{type:"boolean"},isLocationTrackingView:{type:"boolean"},zDefault:{type:"number"}},required:["serviceDescription","hasVersionedData","supportsDisconnectedEditing","supportsReturnDeleteResults","maxRecordCount","supportedQueryFormats","supportsRelationshipsResource","capabilities","description","copyrightText","advancedEditingCapabilities","spatialReference","initialExtent","fullExtent","allowGeometryUpdates","units","syncEnabled","validationSystemLayers","extractChangesCapabilities","syncCapabilities","editorTrackingInfo","layers","tables","relationships","isLocationTrackingService","isLocationTrackingView"],description:'`IFeatureServiceDefinition` can also be imported from the following packages:\n\n```js import { IFeatureServiceDefinition } from "@esri/arcgis-rest-service-admin"; import { IFeatureServiceDefinition } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureServiceDefinition"},"Record<string,boolean>":{type:"object",additionalProperties:{type:"boolean"},title:"Record<string,boolean>"},ITable:{type:"object",properties:{name:{type:"string",description:"Table name"},capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service. Available operations include: 'Create', 'Delete', 'Query', 'Update', and 'Editing'."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Object indicating the definitionEditor used as a layer's interactive filter."},id:{type:"number",description:"Unique identifier for the table."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining a definition expression for the table."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"An object defining the content of popup windows when you query a record and the sort option for child related records."},title:{type:"string",description:"String value for the title of the table."},url:{type:"string",description:"String value indicating the URL reference of the hosted table."}},description:'Root element in the web map specifying an array of table objects.\n\n`ITable` can also be imported from the following packages:\n\n```js import { ITable } from "@esri-arcgis-rest-service-admin" ```',title:"ITable"},IServiceInfo:{type:"object",properties:{adminServiceInfo:{type:"object",properties:{name:{type:"string"},type:{type:"string"},status:{type:"string"},database:{type:"object",properties:{datasource:{type:"object",properties:{name:{type:"string"}},required:["name"]}},required:["datasource"]}},required:["name","type","status","database"]},layers:{type:"array",items:{$ref:"#/definitions/Record%3Cstring%2Cunknown%3E"}}},required:["adminServiceInfo","layers"],description:"Very generic structure representing the return value from the /arcgis/rest/admin/services/<service-name>/FeatureServer?f=json response",title:"IServiceInfo"},"Record<string,unknown>":{type:"object",additionalProperties:{},title:"Record<string,unknown>"},IViewServiceSource:{type:"object",properties:{name:{type:"string"},type:{type:"string"},url:{type:"string"},serviceItemId:{type:"string"}},required:["name","type","url","serviceItemId"],description:"Individual View Source entry",title:"IViewServiceSource"},IViewServiceSources:{type:"object",properties:{currentVersion:{type:"number"},services:{type:"array",items:{$ref:"#/definitions/IViewServiceSource"}}},required:["currentVersion","services"],description:"Response from the /sources end-point of a view service",title:"IViewServiceSources"},IServiceNameAvailable:{type:"object",properties:{available:{type:"boolean"}},required:["available"],description:"Response from the portals/Self/isServiceNameAvailable request",title:"IServiceNameAvailable"},IPictureSourced:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},title:"IPictureSourced"},IPictureFillSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPFS"},style:{type:"string"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},xscale:{type:"number"},yscale:{type:"number"}},required:["type"],title:"IPictureFillSymbol"},IPictureMarkerSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPMS"},style:{type:"string"}},required:["type"],title:"IPictureMarkerSymbol"},ITextSymbol:{type:"object",properties:{type:{type:"string",const:"esriTS"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:"ITextSymbol"},IUser:{type:"object",properties:{username:{type:"string"},fullName:{type:"string"},availableCredits:{type:"number"},assignedCredits:{type:"number"},firstName:{type:"string"},lastName:{type:"string"},preferredView:{},description:{type:"string"},email:{type:"string"},idpUsername:{type:"string"},favGroupId:{type:"string"},lastLogin:{type:"number"},mfaEnabled:{type:"boolean"},access:{type:"string"},storageUsage:{type:"number"},storageQuota:{type:"number"},orgId:{type:"string"},cOrgId:{type:"string"},role:{type:"string",enum:["org_admin","org_publisher","org_user"]},privileges:{type:"array",items:{type:"string"}},roleId:{type:"string"},level:{type:"string"},disabled:{type:"boolean"},units:{type:"string"},tags:{type:"array",items:{type:"string"}},culture:{type:"string"},region:{type:"string"},thumbnail:{type:"string"},created:{type:"number"},modified:{type:"number"},groups:{type:"array",items:{$ref:"#/definitions/IGroup"}},provider:{type:"string",enum:["arcgis","enterprise","facebook","google"]}},description:'An ArcGIS Online or Enterprise user\n\n`IUser` can also be imported from the following packages:\n\n```js import { IUser } from "@esri/arcgis-rest-auth"; import { IUser } from "@esri/arcgis-rest-portal"; ```',title:"IUser"},IPagingParams:{type:"object",properties:{start:{type:"number"},num:{type:"number"}},description:'Params for paging operations\n\n`IPagingParams` can also be imported from the following packages:\n\n```js import { IPagingParams } from "@esri/arcgis-rest-portal"; ```',title:"IPagingParams"},IPagedResponse:{type:"object",properties:{start:{type:"number"},num:{type:"number"},total:{type:"number",description:"total number of object across all pages"},nextStart:{type:"number",description:"next entry index or -1 for the last page"}},required:["total","nextStart"],description:'Paging properties for paged responses.\n\n`IPagedResponse` can also be imported from the following packages:\n\n```js import { IPagedResponse } from "@esri/arcgis-rest-portal"; ```',title:"IPagedResponse"},IWebMapBackground:{type:"object",properties:{color:{$ref:"#/definitions/Color",description:"To define the color of the background of the map (which is shown when no data is shown)."}},required:["color"],description:"Defines the appearance for the background of the map.",examples:[{background:{color:[255,255,255,255]}}],title:"IWebMapBackground"},IBookmark:{type:"object",properties:{extent:{$ref:"#/definitions/IExtent",description:"An extent object containing a spatial reference, a lower left coordinate, and an upper right coordinate defining the rectangular area of the bookmark. The spatial reference must be the same as the map spatial reference. Documentation for the envelope is in the Geometry Objects topic of the ArcGIS REST API help."},name:{type:"string",description:"A string name for the bookmark."}},required:["extent","name"],description:"Predefined bookmarks for use by the application. A bookmark is a saved map extent that allows end users to quickly navigate to a particular area of interest.",title:"IBookmark"},IMapRangeInfo:{type:"object",properties:{activeRangeName:{type:"string",description:"Active range ID that slider/picker acts upon."},currentRangeExtent:{type:"array",items:{type:"number"},description:"Current range for the active range."},fullRangeExtent:{type:"array",items:{type:"number"},description:"Full range extent for the active range to be presented in the UI."}},description:"Map range information",examples:[{mapRangeInfo:{activeRangeName:"floors",currentRangeExtent:[-2,10],fullRangeExtent:[-2,100]}}],title:"IMapRangeInfo"},IMapLocation:{type:"object",properties:{centerPoint:{$ref:"#/definitions/IPoint",description:"The center of the map specified using X/Y coordinates."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"Well-known ID (WKID) or well-known text (WKT)."}},required:["centerPoint","spatialReference"],description:"Contains location information within a presentation slide.",title:"IMapLocation"},IVisibleLayer:{type:"object",properties:{featureVisibility:{type:"array",items:{type:"array",items:{}},description:"An array of arrays."},id:{type:"number",description:"The id of the layer as listed on the operational layer."},subLayerIds:{type:"array",items:{type:"number"},description:"An array of integers."}},description:"An array of numbers indicating layer visibility.",examples:[{visibleLayer:{featureVisibility:[[1],[],[],[0]],id:"73128eb3-05ee-46a7-8c22-0c385a0b1827"}}],title:"IVisibleLayer"},IVisiblePopup:{type:"object",properties:{anchorPoint:{$ref:"#/definitions/IPoint",description:"Object with spatialReference, x, and y."},featureId:{type:"number",description:"An integer specifying the feature's id."},layerId:{type:"string",description:"A string specifying the layer id."},subLayerId:{type:"number",description:"An integer specifying the sublayer id."}},description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId.",title:"IVisiblePopup"},ISlide:{type:"object",properties:{baseMap:{$ref:"#/definitions/IBaseMap",description:"Basemaps give the web map a geographic context."},extent:{$ref:"#/definitions/IExtent",description:"The standard Esri extent object with spatialReference, xmax, xmin, ymax and ymin."},hidden:{type:"boolean",description:"Indicates whether the slide should be hidden within the presentation."},mapLocation:{$ref:"#/definitions/IMapLocation",description:"An object with a centerPoint object and sometimes a resolution."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"An array of two numbers. The first one indicates start time and the second one indicates end time."},title:{type:"string",description:"Title including text and formatting for each slide."},visibleLayers:{$ref:"#/definitions/IVisibleLayer",description:"An array of objects used to indicate layer visibility."},visiblePopup:{$ref:"#/definitions/IVisiblePopup",description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId."}},title:"ISlide"},IBaseMap:{type:"object",properties:{baseMapLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"An array of baseMapLayer objects defining the basemaps used in the web map."},title:{type:"string",description:"Required string title for the basemap that can be used in a table of contents. It takes the title of the first baseMapLayer in the array."}},required:["baseMapLayers","title"],description:"A basemap layer is a layer that provides geographic context to the map. A web map always contains a basemap. The basemap has a title and is the combination of each baseMapLayer. It is required that a baseMap be saved within the web map.",title:"IBaseMap"},IPresentation:{type:"object",properties:{displayTimeSlider:{type:"boolean",description:"Indicates whether to display the time slider (if accessible)."},showLegend:{type:"boolean",description:"Indicates whether to display a legend on all slides."},slideAdvancementInterval:{type:"number",description:"Number of seconds to show slide before proceeding to the next slide."},slides:{type:"array",items:{$ref:"#/definitions/ISlide"},description:"Array of slide objects."},useTimeExtentOfSlide:{type:"boolean",description:"Indicates whether to use the time extent (if applicable) of a slide."}},title:"IPresentation"},IWebmap:{type:"object",properties:{applicationProperties:{$ref:"#/definitions/IApplicationProperties",description:"Viewing and editing properties of the webmap"},authoringApp:{type:"string",description:"String value indicating the application which authored the webmap"},authoringAppVersion:{type:"string",description:"String value indicating the authoring App's version number"},background:{$ref:"#/definitions/IWebMapBackground",description:"Defines the appearance for the background of the map."},baseMap:{$ref:"#/definitions/IBaseMap",description:"[Required] Basemaps give the web map a geographic context"},bookmarks:{type:"array",items:{$ref:"#/definitions/IBookmark"},description:"A bookmark is a saved geographic extent that allows end users to quickly navigate to a particular area of interest"},mapRangeInfo:{$ref:"#/definitions/IMapRangeInfo",description:"Map Range Information"},operationalLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"Operational layers contain business data which are used to make thematic maps"},presentation:{description:"A presentation consists of multiple slides. Each slide has a different title, extent, basemap, layers etc"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"[Required] An object used to specify the spatial reference of the given geometry."},tables:{type:"array",items:{$ref:"#/definitions/ITable"},description:"Root element in the web map specifying an array of table objects. (optional)"},version:{type:"string",description:"[Required] Root element in the web map specifying a string value indicating the web map version."},widgets:{description:"The widgets object contains widgets that should be exposed to the user"}},required:["baseMap","spatialReference","version"],description:"The web map data lists the basemap, operational layers, and bookmarks to be used in the web map. It also contains information about popup windows and layer styling overrides to be used in the web map. A version property allows you to supply the version of the web map JSON format being used.",title:"IWebmap"},IApplicationProperties:{type:"object",properties:{editing:{anyOf:[{$ref:"#/definitions/IEditingProperties"},{type:"null"}],description:"If locationTracking is set and enabled, the Collector application will update the feature service at the defined interval with the current location of the user logged into the Collector app."},offline:{anyOf:[{$ref:"#/definitions/IOfflineInfo"},{type:"null"}],description:"Use if working with offline maps."},viewing:{anyOf:[{$ref:"#/definitions/IViewingInfo"},{type:"null"}],description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default."}},description:"The applicationProperties object is one of the objects at the top level of the JSON web map JSON schema. This is responsible for containing the viewing and editing properties of the web map. There are specific objects within this object that are applicable only to Collector and are explained within the property descriptions.",title:"IApplicationProperties"},IEditingProperties:{type:"object",properties:{locationTracking:{$ref:"#/definitions/ILocationTracking",description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application."}},required:["locationTracking"],description:"An object containing all the editing properties within the web map.",title:"IEditingProperties"},ILocationTracking:{type:"object",properties:{enabled:{type:"boolean",description:"A boolean value indicating whether or not location tracking is enabled on the webmap."},info:{$ref:"#/definitions/ILocationTrackingInfo",description:"An object of additional information specifying layer and update interval time."}},required:["enabled","info"],description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application.",title:"ILocationTracking"},ILocationTrackingInfo:{type:"object",properties:{layerId:{description:"A string value indicating the given layer id specified in the web map."},updateInterval:{description:"A numeric value indicating the time interval used to update the feature service. Default value is 300 seconds."}},required:["layerId"],description:"An object containing additional information specifying layer and update interval time used in the locationTracking object.",title:"ILocationTrackingInfo"},IOfflineInfo:{type:"object",properties:{editableLayers:{$ref:"#/definitions/IEditableLayers",description:"Object detailing the available offline editing options."},readonlyLayers:{$ref:"#/definitions/IReadOnlyLayers",description:"Object indicating what to do with attachments in read-only layers."}},required:["editableLayers","readonlyLayers"],description:"Use if working with offline maps.",title:"IOfflineInfo"},IEditableLayers:{type:"object",properties:{download:{type:"string",enum:["featuers","featuresAndAttachments","none"],description:"When editing layers, the edits are always sent to the server. This string value indicates which data is retrieved. For example, none indicates that only the schema is written since neither the features nor attachments are retrieved. For a full sync without downloading attachments, indicate features. Lastly, the default behavior is to have a full sync using featuresAndAttachments where both features and attachments are retrieved."},sync:{type:"string",enum:["syncFeaturesAndAttachments","syncFeaturesUploadAttachments","uploadFeaturesAndAttachments"],description:"This string value indicates how the data is synced."}},required:["download","sync"],description:"Object detailing the available offline editing options.",title:"IEditableLayers"},IReadOnlyLayers:{type:"object",properties:{downloadAttachments:{type:"boolean",description:"Indicates whether to include attachments with the read-only data."}},required:["downloadAttachments"],description:"Read-only layers as the features are always retrieved from the server.",title:"IReadOnlyLayers"},IViewingInfo:{type:"object",properties:{basemapGallery:{$ref:"#/definitions/IEnableable",description:"The basemap tool which will use the basemap group defined in the Portal."},measure:{$ref:"#/definitions/IEnableable",description:"Measure tool."},routing:{$ref:"#/definitions/IEnableable",description:"The route tool which will leverage the Portals defined route service."},search:{$ref:"#/definitions/ISearch",description:"An object specifying search parameters within the webmap."}},description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default.",title:"IViewingInfo"},IEnableable:{type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"],title:"IEnableable"},ISearch:{type:"object",properties:{enabled:{type:"boolean"},disablePlaceFinder:{description:"A boolean value indicating whether or not to disable the place finder."},hintText:{description:"A string value used to indicate the hint provided with the search dialog."},layers:{description:"An array of layer objects defining the styling, geometry, and attribute information for the features."}},required:["enabled"],description:"An object specifying the search parameters set within the web map.",title:"ISearch"},IRange:{type:"object",properties:{interactionMode:{type:"string",enum:["picker","slider"],description:"Indicates the mode in which the active range should be presented to the user. Must be one of the following values: slider, picker"},numberOfStops:{description:"This is used to generate the activeRangeValues if activeRangeValues are not specified."},stopInterval:{type:"number",description:"Interval in which stops should be generated."}},description:"Range object.",title:"IRange"},IWidget:{type:"object",properties:{range:{$ref:"#/definitions/IRange",description:"Active range."},timeSlider:{$ref:"#/definitions/ITimeSliderProperties",description:"Time animation is controlled by a configurable time slider. The time slider widget will act upon all the time aware layers in the map."}},description:"The widgets object contains widgets that should be exposed to the user.",title:"IWidget"},ITimeSliderProperties:{type:"object",properties:{currentTimeExtent:{type:"array",items:{type:"number"},description:"An optional array of numbers indicating the slider's start to end time extent."},endTime:{type:"number",description:"The optional end of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},numberOfStops:{type:"number",description:"Number of stops within the timeSlider widget."},startTime:{type:"number",description:"The optional start of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},thumbCount:{type:"number",description:"The default value for the thumbCount is 1."},thumbMovingRate:{type:"number",description:"Rate at which the time animation plays. Units are in milliseconds. Default is 1000."},timeStopInterval:{type:"number",description:"The interval which has been defined for the time slider."}},description:"Configurable properties used within the TimeSlider widget.",title:"ITimeSliderProperties"},ITimeSlider:{type:"object",properties:{properties:{$ref:"#/definitions/ITimeSliderProperties",description:"Configurable properties used within the TimeSlider widget."}},required:["properties"],description:"Time animation is controlled by a configurable time slider. Those configurations are saved to the web map as a timeSlider widget.",title:"ITimeSlider"},IBingLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",enum:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"],description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bingKey:{type:"string",description:"String value that unlocks the use of Bing layers in a web map."},canShareBingPublic:{type:"boolean",description:"Boolean value indicating whether the Bing key can be shared to the public."},portalUrl:{type:"string",description:"A string value representing the URL to the Portal/organization Self resource. Calls should be made to this property to retrieve the Bing key. If the key is not made accessible to the public or if canShareBingPublic is false, any web maps using Bing layers will not work."}},required:["id","layerType"],title:"IBingLayer"},IImageServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bandIds:{type:"array",items:{type:"number"},description:"An array of bandIds that are visible, can specify bands to export or rearrange band order(from image service)."},compressionQuality:{description:"Controls how much loss the image will be subjected to by the compression algorithm (from image service)."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Boolean property indicating whether to ignore popups defined by the service item."},format:{type:"string",enum:["bmp","gif","jpg","jpgpng","png","png8","png24","png32","tiff"],description:"String value representing image format."},interpolation:{type:"string",enum:["RSP_BilinearInterpolation","RSP_CubicConvolution","RSP_Majority","RSP_NearestNeighbor"],description:"The algorithm used for interpolation."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},noData:{description:"The pixel value that represents no information."},noDataInterpretation:{type:"string",enum:["esriNoDataMatchAll","esriNoDataMatchAny"],description:"A string value of interpretation of noData setting. Default is 'esriNoDataMatchAny' when noData is a number, and 'esriNoDataMatchAll' when noData is an array."},pixelType:{type:"string",enum:["C64","C128","F32","F64","S8","S16","S32","U1","U2","U4","U8","U16","U32","UNKNOWN"],description:"Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},renderingRule:{description:"Specifies the rendering rule for how the requested image should be rendered."}},required:["id","layerType"],title:"IImageServiceLayer"},IImageVectorLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceVectorLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceVectorLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{description:"Boolean property indicating whether to ignore popups defined by the service item."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},symbolTileSize:{description:"Number describing the size of the tile."}},required:["id","layerType"],title:"IImageVectorLayer"},IChildLayer:{type:"object",properties:{defaultVisibility:{description:"Default visibility of the layers in the map service."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"An object that provides interactive filters."},featureSet:{$ref:"#/definitions/IFeatureSet",description:"A featureSet object containing the geometry and attributes of the features in the layer. Used with feature collections only."},field:{type:"array",items:{$ref:"#/definitions/IField"},description:"Information about each field in a layer. Used with feature collections."},id:{type:"string",description:"A string indicating the index position of the layer in the map service or feature collection."},layerDefinition:{description:"The layerDefinition object defines the attribute schema and drawing information for the layer."},layerUrl:{description:"A string URL to a service that should be used for all queries against the layer. Used with hosted tiled map services on ArcGIS Online when there is an associated feature service that allows for queries."},maxScale:{description:"Represents the maximum scale at which the layer definition will be applied."},minScale:{description:"Represents the minimum scale at which the layer definition will be applied."},nextObjectId:{description:"Iterates within a featureset. Number objectId value is incremented +1 based on last Object ID defined for the feature in a featureset. Used with feature collections."},parentLayerId:{description:"If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the popup window content for the layer."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},subLayer:{description:"Array of numeric values indicating the layer index for layers nested directly under the parent layer."},subLayerIds:{description:"If the layer is a parent layer, it will have one or more sub layers included in an array."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."}},description:"A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service. This object also contains geographic features and their attributes when used in a feature collection.",title:"IChildLayer"},IMapServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining the styling, geometry, and attribute information for the features."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},thematicGroup:{$ref:"#/definitions/IThematicGroup",description:"(Optional) A thematicGroup object used in ArcGISMapServiceLayer layers."},visibleLayers:{type:"array",items:{type:"number"},description:"An array of sublayer ids that should appear visible. Used with map service layers that are not tiled."}},required:["id","layerType"],title:"IMapServiceLayer"},IThematicGroup:{type:"object",properties:{fieldNames:{type:"array",items:{type:"string"},description:"An array of string values indicating all the fields used within the webmap. All other fields can be disregarded and should not display in any field selection list."},layerIds:{type:"array",items:{type:"number"},description:"A zero-based array of integers indicating the layers to be used in the webmap. NOTE: All other layers should not be added to the TOC and may or may not be visible on the map as reference layers."},name:{type:"string",description:"String property indicating the name for the thematic grouping of layers."}},title:"IThematicGroup"},IDrawingInfo:{type:"object",properties:{fixedSymbols:{description:"Only used for feature collections with a renderer. The feature's symbol is defined by the layer's renderer."},labelingInfo:{description:"An object defining the properties used for labeling the layer."},renderer:{description:"An object defined which provides the symbology for the layer."},scaleSymbols:{description:"Boolean property indicating whether symbols should stay the same size in screen units as you zoom in. A value of true means the symbols stay the same size in screen units regardless of the map scale."},showLabels:{type:"boolean",description:"Defines whether labels should be shown or not. This is only valid for sublayers."},transparency:{type:"number",description:"Number value ranging between 0 (no transparency) to 100 (completely transparent)."}},title:"IDrawingInfo"},ITypeInfoDomain:{type:"object",properties:{type:{type:"string"}},required:["type"],title:"ITypeInfoDomain"},ITypeInfo:{type:"object",properties:{domains:{$ref:"#/definitions/Record%3Cstring%2CITypeInfoDomain%3E",description:"A comma-delimited series of domain objects for each domain in the type."},id:{type:["number","string"],description:"A unique string or numerical ID for the type."},name:{type:"string",description:"A user-friendly name for the type."},templates:{type:"array",items:{$ref:"#/definitions/ITemplate"},description:"Defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types."}},title:"ITypeInfo"},"Record<string,ITypeInfoDomain>":{type:"object",additionalProperties:{$ref:"#/definitions/ITypeInfoDomain"},title:"Record<string,ITypeInfoDomain>"},IOpenStreetMapLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"OpenStreetMap",description:"String indicating the layer type. Value of this property must be OpenStreetMap"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"OpenStreetMap",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."}},required:["id","layerType"],description:"Allows use of OpenStreetMap data for use in basemaps only.",title:"IOpenStreetMapLayer"},ITiledImageServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISTiledImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{type:"boolean",description:"Applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"ITiledImageServiceLayer"},IExclusionArea:{type:"object",properties:{geometry:{$ref:"#/definitions/IGeometry",description:"The geometry defining the area where no data will be fetched. Only extent is supported."},maxScale:{type:"number",description:"The zoom level where the exclusion ends."},maxZoom:{type:"number",description:"The zoom level where the exclusion ends."},minScale:{type:"number",description:"The zoom level where the exclusion starts."},minZoom:{type:"number",description:"The zoom level where the exclusion starts."}},description:"Exclusion areas define extent areas where no data will be fetched for a layer.",title:"IExclusionArea"},ITiledMapServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},displayLevels:{anyOf:[{type:"array",items:{type:"number"}},{type:"number"}],description:"NOTE: Applicable if used as a baseMapLayer. Integer value(s) indicating the display levels of the basemap layer. Only applicable for TiledMapService layers. All tiled map service layers should share the same tiling scheme. This property cannot be set via the Map Viewer UI."},exclusionAreas:{type:"array",items:{$ref:"#/definitions/IExclusionArea"},description:"NOTE: Applicable if used as a baseMapLayer. An array of exclusionArea objects defining the layer exclusions."},isReference:{description:"This property is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining a URL for queries and the popup window content."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"An ArcGIS Tiled Map Service layer displays map content from an ArcGIS Server Map service that has been cached (tiled).",title:"ITiledMapServiceLayer"},IVectorTileLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"VectorTileLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"VectorTileLayer",description:"Deprecated. User layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},styleUrl:{type:"string",description:"A url to a JSON file containing the stylesheet information used to render the layer. You may also pass an object containing the stylesheet information identical to the JSON file."}},required:["id","layerType"],description:"A vector tile layer references a set of web-accessible vector tiles and the corresponding style for how those tiles should be drawn.",title:"IVectorTileLayer"},ILod:{type:"object",properties:{level:{type:"number",description:"ID for each level."},levelValue:{type:"string",description:"String to be used when constructing URL to access a tile from this LOD."},resolution:{type:"number",description:"Resolution in map units of each pixel in a tile for each level."},scale:{type:"number",description:"Scale for each level."}},title:"ILod"},ITileInfo:{type:"object",properties:{cols:{description:"Requested tile's column."},compressionQuality:{description:"Compression quality of the tile."},dpi:{description:"The dpi of the tiling scheme."},format:{type:"string",enum:["bmp","emf","gif","jpg","lerc","mixed","pdf","png","png8","png24","png32","ps","svg","svgz"],description:"Image format of the cached tiles."},lods:{type:"array",items:{$ref:"#/definitions/ILod"},description:"An array of levels of detail that define the tiling scheme."},origin:{$ref:"#/definitions/IPoint",description:"The tiling scheme origin."},rows:{description:"Requested tile's row."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"The spatial reference of the tiling schema."}},description:"Tile information, returned from the WMTS OGC Web Service. The tileInfo will contain the spatial reference of the layer. tileInfo is the same json representation as the ArcGIS Map/Image service tileInfo except that it may contain a levelValue on the lod objects that should be used instead of the level in the templateUrl.",title:"ITileInfo"},IWebMapTileServiceInfo:{type:"object",properties:{customLayerParameters:{description:"A sequence of parameters used to append different custom parameters to a WMTS tile request. These parameters are applied to GetTile. The customLayerParameters property takes precedence if customParameters is also present."},customParameters:{description:"A sequence of parameters used to append custom parameters to all WMTS requests. These parameters are applied to GetCapabilities and GetTile. If used with the customLayerParameters property, customParameters will not take precedence."},layerIdentifier:{type:"string",description:"Identifier for the specific layer used in the WMTS service. Required input by the user."},tileMatrixSet:{description:"Tiling schema, set by the WMTS service."},url:{type:"string",description:"URL to the WMTS web service. Required input by the user."}},required:["layerIdentifier","url"],description:"Object defines and provides information about layers in a WMTSLayer service.",title:"IWebMapTileServiceInfo"},IWebTiledLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"WebTiledLayer",description:"String indicating the layer type. Value of this property must be WebTiledLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"WebTiledLayer",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},copyright:{description:"Attribution to the Web Tiled Layer provider. It is displayed in the attribution on the web map. Input required by the user when the layer is added to the web map."},fullExtent:{$ref:"#/definitions/IExtent",description:"An extent object representing the full extent envelope for the layer."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},subDomains:{description:"If subdomains are detected, they must be specified. The map viewer detects if the Web Tiled Layer has subdomains by parsing the templateURL value for {subDomain}."},templateUrl:{description:"URL to the Web Tiled Layer. Input required by the user when the layer is added to the web map. The template URL contains a parameterized URL. The URL can contain the following templated parameters: 'level', 'col', 'row', and 'subDomain'."},tileInfo:{$ref:"#/definitions/ITileInfo",description:"Contains the spatial reference and the tiling scheme of the layer. Typically retrieved from a WMTS OGC Web Service. If missing the layer must be in the WGS 1984 Web Mercator (Auxiliary Sphere) tiling scheme."},wmtsInfo:{$ref:"#/definitions/IWebMapTileServiceInfo",description:"Object containing information about the chosen WMTS service layer and tiling schema."}},required:["id","layerType"],title:"IWebTiledLayer"},ICsvLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"CSV",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"CSV",description:"Deprecated, use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},columnDelimiter:{type:"string",enum:[" ",",",";"," ","|"],description:"A string defining the character used to separate columns in a CSV file."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},locationInfo:{description:"A locationInfo object defining how location information will be retrieved from a CSV file."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"The CSV layer type references a CSV or TXT file from a publically-accessible web server. It then dynamically loads into the map at run time. The CSV layer will maintain a reference to the CSV resource.",title:"ICsvLayer"},IGeoRssLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"GeoRSS",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"GeoRSS",description:"Deprecated, please use layerType.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have lines, this property is not added to the layer JSON."},pointSymbol:{$ref:"#/definitions/IPictureMarkerSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have points, this property is not added to the layer JSON."},polygonSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have polygons, this property is not added to the layer JSON."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"IGeoRssLayer"},IKmlLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"KML",description:"String indicating the layer type."},maxScale:{description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},minScale:{description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},opacity:{description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"KML",description:"Deprecated, use layerType instead.",deprecated:"Use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},visibleFolders:{type:"array",items:{type:"number"},description:"Array of numeric IDs of folders that will be made visible."}},required:["id","layerType"],title:"IKmlLayer"},IArcGisStreamLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISStreamLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Indicates whether to ignore popups defined by the service item."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of pop-up windows when you click or query a feature."}},required:["id","layerType"],title:"IArcGisStreamLayer"}},$ref:"#/definitions/WebChart"},sh={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},gr={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},se={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"};function Kw(t){let e=t.lastIndexOf("/");return e!==-1?t.slice(e+1):t}async function Yw(t){let e=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings;return t.map(r=>{let a=r,i=r.dataPath.startsWith(".")?r.dataPath.substring(1):r.dataPath;switch(r.keyword){case gr.Required:a={...r,message:qe(e.errors.requiredProperty,{dataPath:i,missingProperty:r.params.missingProperty})};break;case gr.MinLength:a={...r,message:qe(e.errors.minLength,{dataPath:i,limit:r.params.limit.toString()})};break;case gr.MinItems:a={...r,message:qe(e.errors.minItems,{dataPath:i,limit:r.params.limit.toString()})};break;case gr.MaxItems:a={...r,message:qe(e.errors.maxItems,{dataPath:i,limit:r.params.limit.toString()})};break;case gr.Pattern:r.params.pattern==="\\w+"&&(a={...r,message:qe(e.errors.whiteSpacePattern,{dataPath:i}),params:{}});break;case gr.AdditionalProperties:a={...r,message:qe(e.errors.additionalProperty,{dataPath:i,additionalProperty:r.params.additionalProperty})};break;case gr.Enum:a={...r,message:qe(e.errors.enumValues,{dataPath:i,allowedValues:r.params.allowedValues.join(", ")})};break;case gr.AnyOf:{let n=[];r.schemaPath==="#/properties/legend/anyOf"&&(n=hi.definitions.WebChart.properties.legend.anyOf.map(s=>Kw(s.$ref))),a={...r,params:n,message:qe(e.errors.anyOfValues,{dataPath:i,schemaOptions:n.join(", ")})};break}}return a})}function Za(t,e){return{...t,$ref:`#/definitions/${e}`}}async function Xw(t){let e,r=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings,a=de(t);try{await a.load()}catch{let i=a?.url??"",n=Xe(a)?.portalItem?.id??"";e={keyword:wt.LayerLoadFailure,message:qe(r.errors.layerLoadFailure,{url:i,portalItemId:n}),params:{url:i,portalItemId:n}}}return e}function eC(){let t=new Xc.default({allErrors:!0});return async e=>{let r=[],a=Y(e?.series),i=hi;switch(a){case g.GaugeSeries:i=Za(hi,"WebGaugeChart");break;case g.BoxPlotSeries:i=Za(hi,"WebBoxPlot");break;case g.RadarSeries:i=Za(hi,"WebRadarChart");break;default:i=Za(hi,"WebChart");break}let n=t.compile(i);return n(e),n.errors!==null&&n.errors!==void 0&&(r=await Yw(n.errors)),r}}var tC=eC();async function rC(t){let{seriesConfigs:e,queryObject:r,allowUsingObjectIdStat:a}=t,i=[],n=await Ct(r),s=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings;for(let o=0;o<e.length;o+=1){let l=e[o].query?.outStatistics;if(l!==void 0)for(let d=0;d<l.length;d+=1){let c=l[d],u=wo(c.onStatisticField,n);if(u&&!(u.type===Te.OID&&a||Fi(u))&&c.statisticType!==j.Count){let h=`series[${o}].query.outStatistics[${d}]`;i.push({keyword:sh.NonNumericAggregation,message:qe(s.errors.nonNumericAggregation,{dataPath:h}),dataPath:h,params:{fieldName:c.onStatisticField,fieldType:u.type,aggregationRequested:c.statisticType}})}}}return i}async function iC(t){let e=[],r=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings;if(t!==void 0&&t.series.length>1){let a=new Set,i=0;t.series.forEach((n,s)=>{if(a.add(n.id),a.size===i){let o=`series[${s}].id`;e.push({keyword:sh.DuplicateSeriesID,message:qe(r.errors.duplicateSeriesID,{dataPath:o,seriesID:n.id,seriesName:n.name}),dataPath:o,params:{seriesId:n.id,seriesName:n.name}})}else i+=1})}return e}function aC(t){let e=new Set,r=Nr(t);if(r){let a=Y(t.series),i=X(t.series);a===g.GaugeSeries&&!xo(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===g.ScatterSeries||a===g.BoxPlotSeries||i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation||i===C.PieNoAggregation,s=[Li,st,Lm,jt,Em,Ne.outStatistics.outStatisticFieldName??""],o=[];if(dt(t)?o=Tn({showMean:t.showMean,seriesConfig:t.series}):o=t.series.map(l=>"y"in l?l.y:void 0).filter(l=>l!==void 0).flat(),n?o.forEach(l=>e.add(l)):s.push(...o),t.series.forEach(l=>{let{query:d}=l;d&&(ar(d.where)||e.add(Ye(d.where)),d.groupByFieldsForStatistics&&d.groupByFieldsForStatistics.forEach(c=>e.add(c)),d.outStatistics&&d.outStatistics.forEach(c=>e.add(c.onStatisticField)))}),a===g.GaugeSeries&&t.axes?.[0]!==void 0){let l=t.axes?.[0];l&&"minimumFromField"in l&&typeof l.minimumFromField=="string"&&e.add(l.minimumFromField),l&&"maximumFromField"in l&&typeof l.maximumFromField=="string"&&e.add(l.maximumFromField)}s.forEach(l=>{e.delete(l)})}return Array.from(e.values()).filter(a=>!Le(a))}async function nC(t,e){let r,a=(await $t(mt(document.documentElement).t9nLocale,At("./assets/common/t9n"),"messages.")).errorStrings,i=await Ct(e),n=aC(t).filter(s=>!wo(s,i));if(n.length>0){let s=n.join(", ");r={keyword:wt.LayerFieldsNotFound,message:qe(a.errors.layerFieldsNotFound,{fieldNames:s}),params:s}}return r}async function sC(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a}=t,i=[];if(r!==void 0){let n=await rC({seriesConfigs:e.series,queryObject:r,allowUsingObjectIdStat:a});i=i.concat(n)}return i=i.concat(await iC(e)),i}async function oC(t,e){let r=[];if(t!==void 0){let a=await Xw(t);if(a!==void 0)r=r.concat(a);else if(e!==void 0){let i=await nC(e,t);i!==void 0&&(r=r.concat(i))}}return r}async function fI(t){let{input:e,queryObject:r,allowUsingObjectIdStat:a}=t,i;if(Aw(e?.version).versionStatus===pr.Newer)i={valid:!0,schemaErrors:[],customErrors:[],warnings:[]};else{let n=await tC(e),s=[],o=[];e!==void 0&&n.length===0&&(o=await oC(r,e),o.length===0&&(s=await sC({input:e,queryObject:r,allowUsingObjectIdStat:a}))),i={valid:n.length===0&&s.length===0&&o.length===0,schemaErrors:n,customErrors:o,warnings:s}}return i}function mI(t){let e=Y(t?.series),r=!1;switch(e){case g.HistogramSeries:{r=(t?.series?.[0]?.x?.trim()?.length??0)===0;break}case g.ScatterSeries:{let a=t?.series;r=(a?.[0]?.x?.length??0)===0||(a?.[0]?.y?.length??0)===0;break}case g.PieSeries:{let a=t?.series;X(a)===C.PieFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.length??0)===0||a?.[0]?.x===st;break}case g.BoxPlotSeries:{let a=t?.series;r=[a?.[0]?.y].flat().length===0||a?.[0]?.y==="";break}case g.ComboLineAndBarSeries:case g.RadarSeries:case g.BarSeries:case g.LineSeries:{let a=t?.series;X(a)===C.BarAndLineFromFields?r=(a?.[0]?.query?.outStatistics?.length??0)===0:r=(a?.[0]?.x?.trim()?.length??0)===0;break}case g.HeatSeries:{let a=t?.series,i=Le(a?.[0]?.x)||Le(a?.[0]?.y),n=t!==void 0&&Ip(t)?!1:a?.[0]?.xTemporalBinning===void 0;r=i||n;break}}return r}async function ws(t){let{queryObject:e,queryConfig:r,category:a,splitByField:i,chartLimits:n,abortKey:s}=t,o=i!==void 0,l=a!==Li?[a]:[];o&&l.push(i);let d=de(e),{idField:c,isTraditionalTypeOID:u}=Zt(d),h=u?c:"*",p={...r,groupByFieldsForStatistics:Array.from(new Set(l)),outStatistics:[{statisticType:j.Count,onStatisticField:h,outStatisticFieldName:`${j.Count}_OBJECTID`}],orderByFields:void 0,num:n?.maxBarThreePlusSeriesCountTotal},f=await Bt({queryObject:e,featureCount:1,queryConfig:p,abortKey:s});return Array.from(new Set(f.map(m=>m.attributes[o?i:a]))).sort((m,y)=>typeof m=="string"&&typeof y=="string"?m.localeCompare(y):Number(m)-Number(y))}var Jc=[{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]}],lC="{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'";async function yI(t){let e=At(`assets/common/t9n/messages.${t}.json`),r=await fetch(e);if(!r.ok)throw new Error(`Failed to load t9n file: ${e}`);return await r.json()}var dC=[...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 gI(t){let{t9nLocale:e}=mt(t??document.documentElement),r=oh(t??document.documentElement),a=qo(t??document.documentElement)==="rtl";return{locale:e,formatLocale:r,rtl:a}}function bI(t){let e;return t==="unknown"?e="UTC":t!==void 0&&t!=="system"&&(e=t),e}function vI(t,e){let r={year:"numeric",month:"2-digit",day:"2-digit",timeZone:e};return new Intl.DateTimeFormat("en-CA",r).format(t)}function SI(t,e){let r={hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:e};return new Intl.DateTimeFormat("en-US",r).format(t)}function wI(t,e){let[,r,,,,a]=1111.1.toLocaleString(e),i=t.replace(r,"").replace(a,".");return Number.parseFloat(i)}function cC(t){let e=Array.from(Dn);return dC.includes(t)&&!e.includes(t)}function oh(t){let{lang:e,t9nLocale:r}=mt(t);return cC(e)?e:r}return{a:zo,b:or,c:st,d:jt,e:Lm,f:Em,g:rr,h:ae,i:Nc,j:xg,k:lr,l:c1,m:ot,n:u1,o:Fr,p:Qr,q:p1,r:h1,s:Dg,t:f1,u:Ng,v:m1,w:re,x:Ne,y:y1,z:lt,A:$g,B:g1,C:b1,D:Hi,E:Li,F:xe,G:qg,H:v1,I:S1,J:Nt,K:tp,L:w1,M:Cn,N:fe,O:rp,P:oe,Q:ia,R:kg,S:C1,T:js,U:x1,V:F1,W:Er,X:_a,Y:dr,Z:I1,_:jg,$:Vg,aa:Wg,ba:T1,ca:_g,da:zg,ea:Kr,fa:Hg,ga:Qg,ha:P1,ia:Zg,ja:A1,ka:O1,la:Jg,ma:Kg,na:L1,oa:E1,pa:Gi,qa:D1,ra:N1,sa:B1,ta:M1,ua:$1,va:q1,wa:R1,xa:k1,ya:Yg,za:Xg,Aa:eb,Ba:j1,Ca:V1,Da:W1,Ea:tb,Fa:_1,Ga:rb,Ha:ib,Ia:ab,Ja:z1,Ka:U1,La:P,Ma:Qi,Na:nb,Oa:H1,Pa:G1,Qa:sb,Ra:Q1,Sa:wi,Ta:dt,Ua:Z1,Va:J1,Wa:Ws,Xa:Zi,Ya:hb,Za:K1,_a:mi,$a:Y1,ab:fb,bb:vb,cb:Sb,db:X1,eb:Cb,fb:eF,gb:tF,hb:Ji,ib:Tb,jb:Ab,kb:Ob,lb:Mc,mb:np,nb:sp,ob:Nb,pb:$c,qb:rF,rb:H,sb:C,tb:iF,ub:Cp,vb:Vc,wb:aF,xb:co,yb:xp,zb:ir,Ab:Hs,Bb:nF,Cb:sF,Db:oF,Eb:Le,Fb:lF,Gb:dF,Hb:cF,Ib:uF,Jb:Bv,Kb:pF,Lb:hF,Mb:fF,Nb:mF,Ob:yF,Pb:gF,Qb:bF,Rb:Rv,Sb:Ip,Tb:vF,Ub:po,Vb:SF,Wb:q0,Xb:wF,Yb:H0,Zb:CF,_b:xF,$b:Ki,ac:na,bc:Gp,cc:FF,dc:IF,ec:TF,fc:PF,gc:AF,hc:OF,ic:LF,jc:EF,kc:DF,lc:NF,mc:BF,nc:ct,oc:wt,pc:MF,qc:Or,rc:Xe,sc:Yi,tc:$F,uc:de,vc:qF,wc:Xi,xc:Bt,yc:ew,zc:tw,Ac:be,Bc:hw,Cc:RF,Dc:Ct,Ec:Zt,Fc:Fi,Gc:fw,Hc:kF,Ic:mw,Jc:jF,Kc:th,Lc:gw,Mc:Sw,Nc:ww,Oc:VF,Pc:Cw,Qc:WF,Rc:Fw,Sc:Iw,Tc:Aw,Uc:Nr,Vc:_F,Wc:Ye,Xc:ut,Yc:ar,Zc:X,_c:ei,$c:Wt,ad:Nw,bd:Ww,cd:zF,dd:UF,ed:HF,fd:GF,gd:QF,hd:ZF,id:JF,jd:KF,kd:YF,ld:XF,md:eI,nd:tI,od:rI,pd:iI,qd:aI,rd:nI,sd:sI,td:oI,ud:lI,vd:dI,wd:cI,xd:uI,yd:xo,zd:ih,Ad:ah,Bd:Ue,Cd:Ss,Dd:tt,Ed:Gw,Fd:pI,Gd:Zw,Hd:hI,Id:sh,Jd:se,Kd:fI,Ld:mI,Md:ws,Nd:yI,Od:gI,Pd:bI,Qd:vI,Rd:SI,Sd:wI,Td:oh}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","layers/FeatureLayer","layers/support/Field","layers/support/fieldUtils","portal/Portal","rest/support/FeatureSet","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils")