@arcgis/map-components 5.0.0-next.30 → 5.0.0-next.32

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 (462) hide show
  1. package/dist/cdn/{OF5TKTLJ.js → 27WL544W.js} +2 -2
  2. package/dist/cdn/{EANAURQW.js → 2F2K3SJN.js} +2 -2
  3. package/dist/cdn/{3OVNUSGR.js → 35UD4VQT.js} +2 -2
  4. package/dist/cdn/{HBEKTKXB.js → 3B75VFRH.js} +1 -1
  5. package/dist/cdn/{EL2VJ6RS.js → 3CVW7OMG.js} +2 -2
  6. package/dist/cdn/{DCVY57UJ.js → 3O46PT32.js} +2 -2
  7. package/dist/cdn/{NVQTDJG4.js → 3S7Y2VAX.js} +2 -2
  8. package/dist/cdn/{HKSFUMS2.js → 4LZKYNPA.js} +2 -2
  9. package/dist/cdn/{6YGA3ZTW.js → 4M5W4PET.js} +2 -2
  10. package/dist/cdn/{JC3Y3H2J.js → 4RQOMC7P.js} +2 -2
  11. package/dist/cdn/{S5SBZVDO.js → 4T6C57DS.js} +2 -2
  12. package/dist/cdn/{HT3PGW7M.js → 4WIA3SQP.js} +2 -2
  13. package/dist/cdn/{MIWATNX7.js → 4XFVLHH7.js} +2 -2
  14. package/dist/cdn/{OQPWIH5D.js → 4YNXOZOB.js} +2 -2
  15. package/dist/cdn/{3U4M6EMC.js → 53FMVPHP.js} +2 -2
  16. package/dist/cdn/{LG6IQO74.js → 55TNDMUS.js} +1 -1
  17. package/dist/cdn/{UV6BXD7O.js → 57FRFA7O.js} +2 -2
  18. package/dist/cdn/{REGCZKJO.js → 5ARNNCOX.js} +2 -2
  19. package/dist/cdn/{SKUATZL2.js → 5CQF3JB5.js} +2 -2
  20. package/dist/cdn/{374IBN5E.js → 5GJQ5R6C.js} +2 -2
  21. package/dist/cdn/{XGIGLVS7.js → 5MYSHWYM.js} +3 -3
  22. package/dist/cdn/{3PNHYPR5.js → 5N5NHAGG.js} +2 -2
  23. package/dist/cdn/{L2S6UPIL.js → 5PBIVBCI.js} +2 -2
  24. package/dist/cdn/{FOLKGWCG.js → 5SJ6HP3Q.js} +2 -2
  25. package/dist/cdn/{SNFN2BKO.js → 5WE6777A.js} +2 -2
  26. package/dist/cdn/{GKBYAVVU.js → 5ZGFDX3X.js} +2 -2
  27. package/dist/cdn/{LUPWZHEN.js → 6BNGVQ7J.js} +2 -2
  28. package/dist/cdn/{ZWSRYLIE.js → 6FYLMGCT.js} +2 -2
  29. package/dist/cdn/{MYHT3FNL.js → 6HN6UTV4.js} +2 -2
  30. package/dist/cdn/{SZCYMTSH.js → 6IGZRULF.js} +2 -2
  31. package/dist/cdn/{3ZCQG6W2.js → 6JATIPHA.js} +2 -2
  32. package/dist/cdn/{CUG6PNIA.js → 6LMM4W6V.js} +2 -2
  33. package/dist/cdn/6MMYGD3O.js +4 -0
  34. package/dist/cdn/{GHB4S7FZ.js → 6SC3F2CW.js} +2 -2
  35. package/dist/cdn/{Z5MMZXMP.js → 6U5UZ75P.js} +2 -2
  36. package/dist/cdn/{EYVOMZXY.js → 6WOQBLNG.js} +1 -1
  37. package/dist/cdn/{PZJX66WF.js → 6ZF5Y4OA.js} +2 -2
  38. package/dist/cdn/{UNJHMZ3F.js → 7CLUJRNY.js} +2 -2
  39. package/dist/cdn/{U3Y4NEIU.js → 7DACD5RO.js} +2 -2
  40. package/dist/cdn/{SCZ6FM7D.js → 7RRUQC5K.js} +2 -2
  41. package/dist/cdn/{RNHHSJBN.js → A72G4Q6X.js} +2 -2
  42. package/dist/cdn/{BID2IGTA.js → A7KKZCED.js} +2 -2
  43. package/dist/cdn/{4EURR2HO.js → AHQGRKHI.js} +2 -2
  44. package/dist/cdn/{BYDZCBXS.js → APTWIVD4.js} +1 -1
  45. package/dist/cdn/{LHKVE7QW.js → AWSKYQI6.js} +2 -2
  46. package/dist/cdn/{CKWHFRUK.js → B2DQCFD5.js} +2 -2
  47. package/dist/cdn/{5RXPN4ZA.js → B7WRR74P.js} +2 -2
  48. package/dist/cdn/{PPG44XNA.js → BHCWGDRN.js} +2 -2
  49. package/dist/cdn/BQMRWMR7.js +4 -0
  50. package/dist/cdn/{27WBIJ7W.js → C2EI7DSY.js} +2 -2
  51. package/dist/cdn/{GX5MB57E.js → C66E24ZR.js} +2 -2
  52. package/dist/cdn/{VVG7FBHC.js → C7MOJ4OL.js} +2 -2
  53. package/dist/cdn/{TGAFLU6F.js → CDBV4KG7.js} +2 -2
  54. package/dist/cdn/{EZRA4T3B.js → CM56KXVU.js} +2 -2
  55. package/dist/cdn/{FJSDHTDE.js → D6QJKAK5.js} +2 -2
  56. package/dist/cdn/{AUBNL7NN.js → DD6IXKAB.js} +1 -1
  57. package/dist/cdn/DUSA4QX5.js +4 -0
  58. package/dist/cdn/{25PCEBHD.js → DV2QM6SU.js} +2 -2
  59. package/dist/cdn/{E57VVYYO.js → E3OPMOQE.js} +2 -2
  60. package/dist/cdn/{2S7NPB67.js → E6YRH53O.js} +2 -2
  61. package/dist/cdn/{5622NXQG.js → EFYQWVUJ.js} +2 -2
  62. package/dist/cdn/{PDDWIQ7N.js → EKHKDHOE.js} +2 -2
  63. package/dist/cdn/{BPZWPZSL.js → ELS3P2WS.js} +2 -2
  64. package/dist/cdn/{BGIPXNCI.js → ER5OGEJG.js} +2 -2
  65. package/dist/cdn/{MGSBWHU6.js → ETG3XRO3.js} +2 -2
  66. package/dist/cdn/{4I6KXDCS.js → FHENHMGM.js} +2 -2
  67. package/dist/cdn/{KWO4P6X3.js → FWXJNWJV.js} +2 -2
  68. package/dist/cdn/{UIEHONGS.js → FXW5JMXQ.js} +2 -2
  69. package/dist/cdn/{TNU7CJYU.js → G6VA6QNE.js} +2 -2
  70. package/dist/cdn/{NB6FYZSP.js → GAFNTBMC.js} +1 -1
  71. package/dist/cdn/{3TDUGLWP.js → GCG4T3MP.js} +2 -2
  72. package/dist/cdn/{NIVNICTN.js → GJ63U4PO.js} +2 -2
  73. package/dist/cdn/{CYBCIT4Y.js → GJG6UNDT.js} +1 -1
  74. package/dist/cdn/{DKQDFHBQ.js → GPE5KYA7.js} +2 -2
  75. package/dist/cdn/{SGL4GRLW.js → GQ6H5GGF.js} +2 -2
  76. package/dist/cdn/GVT4DHLZ.js +4 -0
  77. package/dist/cdn/{OCLQXJGF.js → HBIFIZKG.js} +2 -2
  78. package/dist/cdn/{6QMZX7TX.js → HDH6CQ3P.js} +2 -2
  79. package/dist/cdn/{RYEBGC2T.js → HHE5IWHA.js} +2 -2
  80. package/dist/cdn/{63P5OPEW.js → HHS3S24G.js} +2 -2
  81. package/dist/cdn/{PP47N6OQ.js → HNFRMBQJ.js} +2 -2
  82. package/dist/cdn/{Q7MP7GCA.js → HNNQRXLU.js} +2 -2
  83. package/dist/cdn/{3Q4TZZN5.js → HNOYYHJL.js} +2 -2
  84. package/dist/cdn/{WOZWBFU3.js → HNUQJFAK.js} +2 -2
  85. package/dist/cdn/{2CJC5LPR.js → HR5HOQMZ.js} +2 -2
  86. package/dist/cdn/{Y3U2JDPE.js → HSR2LKEQ.js} +2 -2
  87. package/dist/cdn/{BCB3OHT5.js → HVLL5J2O.js} +1 -1
  88. package/dist/cdn/{Q5KRWXQZ.js → HYOWGJMM.js} +2 -2
  89. package/dist/cdn/{CNTHUZWZ.js → I545W7IP.js} +2 -2
  90. package/dist/cdn/{ZI2HBMIO.js → I6ICLYFK.js} +2 -2
  91. package/dist/cdn/{4KAVQQCL.js → I6WNCKGQ.js} +2 -2
  92. package/dist/cdn/{FWUUE67P.js → IAF7LPRE.js} +2 -2
  93. package/dist/cdn/{NUWJO552.js → IDEHN3HQ.js} +2 -2
  94. package/dist/cdn/{BBF2UUMF.js → II73U7PI.js} +1 -1
  95. package/dist/cdn/{LMHRSVIK.js → IJSYHHFZ.js} +2 -2
  96. package/dist/cdn/{VWNSIY3Z.js → IJVMDOOV.js} +2 -2
  97. package/dist/cdn/{ZYOD4BBB.js → IMKQNDII.js} +2 -2
  98. package/dist/cdn/{MPGBF2CR.js → IRBOOKFY.js} +2 -2
  99. package/dist/cdn/{V2HPTG5E.js → IS2HCMFG.js} +2 -2
  100. package/dist/cdn/{SNEAUADR.js → IS7QRHPO.js} +2 -2
  101. package/dist/cdn/{7BW7BEKS.js → IU4OWDP6.js} +2 -2
  102. package/dist/cdn/{YRSPO3RH.js → J3GSZOKI.js} +2 -2
  103. package/dist/cdn/{RXKG57HU.js → J67QLMP7.js} +2 -2
  104. package/dist/cdn/{UHRRVA5A.js → J7L3BPW5.js} +2 -2
  105. package/dist/cdn/{FRHKHEQC.js → JHJQ3GWA.js} +2 -2
  106. package/dist/cdn/{QYWKUYX6.js → JJ3VFSYA.js} +2 -2
  107. package/dist/cdn/{SSN4WU5P.js → JPHBEVAU.js} +2 -2
  108. package/dist/cdn/{5MBPCAXE.js → JYVEFSVZ.js} +2 -2
  109. package/dist/cdn/{SQ5KXPKM.js → K5F75E6W.js} +2 -2
  110. package/dist/cdn/{I656AJFF.js → K5TMPKUZ.js} +2 -2
  111. package/dist/cdn/{J5IGACIV.js → KN6YYIZP.js} +2 -2
  112. package/dist/cdn/{W4OV7AC2.js → KOATS2BK.js} +2 -2
  113. package/dist/cdn/{VTBJGFMG.js → KQXNGIH3.js} +2 -2
  114. package/dist/cdn/{TFZ4RUW2.js → KTFBMLYN.js} +2 -2
  115. package/dist/cdn/{74D735ZE.js → KTJFB7KU.js} +2 -2
  116. package/dist/cdn/{LGRVJOKM.js → KTKICQ4M.js} +2 -2
  117. package/dist/cdn/{5CCZDJS6.js → L6AMW7QK.js} +2 -2
  118. package/dist/cdn/{6LLHP446.js → L7YE6JC4.js} +2 -2
  119. package/dist/cdn/{ZUOJPC77.js → LIJVGK4Y.js} +2 -2
  120. package/dist/cdn/LJPEVIIA.js +4 -0
  121. package/dist/cdn/{MEK3PSMR.js → LK6TBCAY.js} +2 -2
  122. package/dist/cdn/{XJZXQDR2.js → LR77QYVQ.js} +2 -2
  123. package/dist/cdn/{7LW2MJ34.js → LRVGHBBE.js} +2 -2
  124. package/dist/cdn/{E7LECLZS.js → LYZ5TXUR.js} +2 -2
  125. package/dist/cdn/{ONNIQKMO.js → M33BOZTZ.js} +2 -2
  126. package/dist/cdn/{XCXSBECM.js → M4P5Q4XW.js} +2 -2
  127. package/dist/cdn/{66XSUGOO.js → MFUDXTRF.js} +2 -2
  128. package/dist/cdn/MLPIE3IG.js +4 -0
  129. package/dist/cdn/{XDXAENM3.js → MQIKFOGB.js} +2 -2
  130. package/dist/cdn/{TEGTWZFB.js → MWMG7QPF.js} +2 -2
  131. package/dist/cdn/{J3ZLMJL7.js → MZ6CHNUG.js} +2 -2
  132. package/dist/cdn/{4ZDH3LUI.js → N2YODYKZ.js} +2 -2
  133. package/dist/cdn/{IUZBJNIT.js → NAAYAVAP.js} +2 -2
  134. package/dist/cdn/{FDJQS7A5.js → NC5TPFHV.js} +2 -2
  135. package/dist/cdn/{JNHWTLF5.js → NG2LBZ2C.js} +2 -2
  136. package/dist/cdn/{FKA23U6F.js → NH5DW4NW.js} +2 -2
  137. package/dist/cdn/{OLIVWOUG.js → NIYTGJUB.js} +2 -2
  138. package/dist/cdn/{7R25WXBY.js → NN2X735Q.js} +1 -1
  139. package/dist/cdn/{KHN4WS5O.js → NN47WFCA.js} +2 -2
  140. package/dist/cdn/{GSPGZZIN.js → NO7THMCS.js} +2 -2
  141. package/dist/cdn/{J5JIUE4E.js → NPZYNJCM.js} +2 -2
  142. package/dist/cdn/{VX7XHWH3.js → OCJYQALK.js} +2 -2
  143. package/dist/cdn/{76PSKS56.js → ODM6AEQ3.js} +2 -2
  144. package/dist/cdn/{BP3EIAXM.js → OHUPTLDS.js} +2 -2
  145. package/dist/cdn/{CLULAXQD.js → OQCPCWNG.js} +2 -2
  146. package/dist/cdn/{DDTFGXJB.js → OXHWUBNX.js} +2 -2
  147. package/dist/cdn/{MROF6ZLY.js → P2FZUDYZ.js} +2 -2
  148. package/dist/cdn/{W4RATWQC.js → P56UTFX4.js} +2 -2
  149. package/dist/cdn/{B5J2VO23.js → PJTKARHH.js} +2 -2
  150. package/dist/cdn/{YSBP4YU4.js → PQEMWXDB.js} +2 -2
  151. package/dist/cdn/{WFFXOIVG.js → PX54SZBH.js} +2 -2
  152. package/dist/cdn/{7BZ6ZZWG.js → PYEMINAR.js} +2 -2
  153. package/dist/cdn/{6JOMTTMO.js → QAFD5UBK.js} +2 -2
  154. package/dist/cdn/{IT3NFXVO.js → QL23MGDY.js} +2 -2
  155. package/dist/cdn/{IAEK5W65.js → QMZ2CQ2D.js} +2 -2
  156. package/dist/cdn/{EIA2HRVX.js → QNHVSZK6.js} +2 -2
  157. package/dist/cdn/{GJULE3KX.js → R4SDZEOP.js} +2 -2
  158. package/dist/cdn/{I5OZYAAG.js → RAR3BCVV.js} +2 -2
  159. package/dist/cdn/{5T4NERJA.js → RIRQX2JJ.js} +2 -2
  160. package/dist/cdn/{56LJCIRJ.js → RJF3TARL.js} +2 -2
  161. package/dist/cdn/{A7WF3SII.js → RRIU5SYB.js} +2 -2
  162. package/dist/cdn/{4S63FYIQ.js → RTKGXV2J.js} +2 -2
  163. package/dist/cdn/{LTRRBRH6.js → RUJC3ZR7.js} +2 -2
  164. package/dist/cdn/{BFGOCVTQ.js → RVXGWU2F.js} +2 -2
  165. package/dist/cdn/{PCLAY3FC.js → RXLMVRNK.js} +2 -2
  166. package/dist/cdn/{HWBYBOFO.js → SFBMULYA.js} +2 -2
  167. package/dist/cdn/{CZJ42KVB.js → SGTCPH4O.js} +2 -2
  168. package/dist/cdn/SOUBXY44.js +4 -0
  169. package/dist/cdn/{I7DVVSQ5.js → SZIGVITW.js} +2 -2
  170. package/dist/cdn/TDTXZVX7.js +4 -0
  171. package/dist/cdn/{X2P5ZICY.js → TE6PYVSZ.js} +2 -2
  172. package/dist/cdn/{6264Y6OB.js → TKQZODT7.js} +2 -2
  173. package/dist/cdn/{FN2HVGXN.js → TKXXF4OO.js} +2 -2
  174. package/dist/cdn/{HLYYV5IJ.js → TM6KU5LV.js} +2 -2
  175. package/dist/cdn/{JD6SZBTI.js → TMFUWV53.js} +1 -1
  176. package/dist/cdn/{LG3E3FEI.js → TR6JGVKQ.js} +2 -2
  177. package/dist/cdn/{7N7RFZDC.js → TSYQKTXW.js} +2 -2
  178. package/dist/cdn/{GW4QU3CW.js → TTP5KAH4.js} +2 -2
  179. package/dist/cdn/{AYDYS5XP.js → TUI2OURV.js} +2 -2
  180. package/dist/cdn/{OP7UWDJC.js → U4YI57QE.js} +2 -2
  181. package/dist/cdn/{OISWBYPZ.js → U5XJI4JL.js} +2 -2
  182. package/dist/cdn/{ZZ5AKBHE.js → ULHATBWA.js} +1 -1
  183. package/dist/cdn/{DNH555Q6.js → UMUME4WO.js} +2 -2
  184. package/dist/cdn/{AJVA5KJZ.js → UQ2HO4JC.js} +2 -2
  185. package/dist/cdn/{DX7CIW2P.js → UQQE52PW.js} +2 -2
  186. package/dist/cdn/{DGTCJPUJ.js → UTIWENBE.js} +1 -1
  187. package/dist/cdn/{IRAFVG6N.js → V4JVNVQD.js} +2 -2
  188. package/dist/cdn/{TJXNZQ6E.js → V4NAOSP3.js} +2 -2
  189. package/dist/cdn/{N4IBOVID.js → V5FZN75Q.js} +2 -2
  190. package/dist/cdn/{EJNPIPYI.js → VAH4233E.js} +2 -2
  191. package/dist/cdn/{QUIRGW73.js → VDNBDRJM.js} +2 -2
  192. package/dist/cdn/{22PBEW6E.js → VMH7OOSE.js} +2 -2
  193. package/dist/cdn/{I5KPSSMS.js → VOKWQ4S5.js} +2 -2
  194. package/dist/cdn/{NGRN6PRP.js → VSAKIYC7.js} +2 -2
  195. package/dist/cdn/{JC6BPG6L.js → VTKPG6IQ.js} +2 -2
  196. package/dist/cdn/{WSDNUWO4.js → WAF3HWY5.js} +2 -2
  197. package/dist/cdn/{V4GYQU7T.js → WAT2RMDP.js} +2 -2
  198. package/dist/cdn/{J75FAWOX.js → WGPHRCIE.js} +1 -1
  199. package/dist/cdn/{RBQBAWXT.js → WJDDPVSD.js} +2 -2
  200. package/dist/cdn/WLC3ML3U.js +4 -0
  201. package/dist/cdn/{OLTPA66L.js → WLFIXFMI.js} +2 -2
  202. package/dist/cdn/{FZ5UYVXE.js → WP4IBNQO.js} +2 -2
  203. package/dist/cdn/{T36L76YW.js → WQN4LOGX.js} +2 -2
  204. package/dist/cdn/{ZQY6XVS2.js → WSEJTG4B.js} +2 -2
  205. package/dist/cdn/{R3XM3W55.js → X22S7RGV.js} +2 -2
  206. package/dist/cdn/{IUZRROGZ.js → X4SYPHP2.js} +2 -2
  207. package/dist/cdn/{FN45TY5U.js → X5B7I5V7.js} +2 -2
  208. package/dist/cdn/{MW27JFII.js → XGFFIFX5.js} +2 -2
  209. package/dist/cdn/{EK2C6MIA.js → XN75A2AO.js} +2 -2
  210. package/dist/cdn/{LXMJA6SN.js → XNVE26KC.js} +2 -2
  211. package/dist/cdn/{5I77EKDP.js → XVIN3XWL.js} +2 -2
  212. package/dist/cdn/{K4HH7Q7F.js → XZ363IBS.js} +1 -1
  213. package/dist/cdn/{WXL3L2FD.js → Y5ZQXPW2.js} +2 -2
  214. package/dist/cdn/{R4UWGEKU.js → YDOIWLBR.js} +2 -2
  215. package/dist/cdn/{JD3UYAHR.js → YDS7A3GL.js} +2 -2
  216. package/dist/cdn/{TI47WRKB.js → YF6N5TJM.js} +2 -2
  217. package/dist/cdn/{RGDYDUVM.js → YH7SP46I.js} +2 -2
  218. package/dist/cdn/{DZMHLJTL.js → YKOT4F42.js} +2 -2
  219. package/dist/cdn/{Y7H7Z7BU.js → YMHLPZCH.js} +2 -2
  220. package/dist/cdn/{IDCRXCZH.js → YYCKWN7I.js} +2 -2
  221. package/dist/cdn/{S6TGNN5K.js → Z65DIGTW.js} +2 -2
  222. package/dist/cdn/{2CRWDE5K.js → ZGZXJHLW.js} +2 -2
  223. package/dist/cdn/{DVMZQU3S.js → ZNJCNBYA.js} +2 -2
  224. package/dist/cdn/{GRCCF7NK.js → ZXKAJPFK.js} +2 -2
  225. package/dist/cdn/assets/weather/t9n/messages.en.json +1 -1
  226. package/dist/cdn/index.js +2 -2
  227. package/dist/chunks/AnalysisViewModel.js +1 -1
  228. package/dist/chunks/action-utils.js +1 -1
  229. package/dist/chunks/async-utils.js +1 -1
  230. package/dist/chunks/basemap-gallery-resources.js +1 -1
  231. package/dist/chunks/chart-utils.js +1 -1
  232. package/dist/chunks/chartCommon.js +1 -1
  233. package/dist/chunks/component-utils.js +1 -1
  234. package/dist/chunks/createCloseEvent.js +1 -1
  235. package/dist/chunks/esri-main.js +1 -1
  236. package/dist/chunks/feature-utils.js +1 -1
  237. package/dist/chunks/globalCss.js +1 -1
  238. package/dist/chunks/handle.js +1 -1
  239. package/dist/chunks/heading.js +1 -1
  240. package/dist/chunks/layer-list.js +1 -1
  241. package/dist/chunks/legacyIcon.js +1 -1
  242. package/dist/chunks/maybe.js +1 -1
  243. package/dist/chunks/measurementUtils.js +1 -1
  244. package/dist/chunks/runtime.js +1 -1
  245. package/dist/chunks/screenLocation.js +1 -1
  246. package/dist/chunks/slots.js +1 -1
  247. package/dist/chunks/svgUtils.js +1 -1
  248. package/dist/chunks/univariateUtils.js +1 -1
  249. package/dist/chunks/useArcgisViewReadyError.js +1 -1
  250. package/dist/chunks/useHandles.js +1 -1
  251. package/dist/chunks/useT9n.js +1 -1
  252. package/dist/chunks/useView.js +1 -1
  253. package/dist/chunks/useViewModel.js +1 -1
  254. package/dist/chunks/useWidget.js +1 -1
  255. package/dist/chunks/utils.js +1 -1
  256. package/dist/chunks/utils2.js +1 -1
  257. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +1 -1
  258. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  259. package/dist/components/arcgis-area-measurement-3d/customElement.js +2 -2
  260. package/dist/components/arcgis-attachments/customElement.d.ts +1 -1
  261. package/dist/components/arcgis-attachments/customElement.js +1 -1
  262. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +2 -2
  263. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  264. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  265. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +2 -2
  266. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  267. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +2 -2
  268. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  269. package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -1
  270. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  271. package/dist/components/arcgis-building-explorer/customElement.d.ts +2 -2
  272. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  273. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +2 -2
  274. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  275. package/dist/components/arcgis-compass/customElement.d.ts +2 -2
  276. package/dist/components/arcgis-compass/customElement.js +1 -1
  277. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +2 -2
  278. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  279. package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
  280. package/dist/components/arcgis-daylight/customElement.js +1 -1
  281. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  282. package/dist/components/arcgis-directional-pad/customElement.d.ts +1 -1
  283. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  284. package/dist/components/arcgis-directions/customElement.d.ts +1 -1
  285. package/dist/components/arcgis-directions/customElement.js +1 -1
  286. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +1 -1
  287. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  288. package/dist/components/arcgis-editor/customElement.d.ts +1 -1
  289. package/dist/components/arcgis-editor/customElement.js +1 -1
  290. package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -2
  291. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  292. package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
  293. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  294. package/dist/components/arcgis-elevation-profile-next/customElement.d.ts +1 -1
  295. package/dist/components/arcgis-elevation-profile-next/customElement.js +1 -1
  296. package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
  297. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
  298. package/dist/components/arcgis-expand/ExpandViewModel.d.ts +48 -0
  299. package/dist/components/arcgis-expand/customElement.d.ts +3 -3
  300. package/dist/components/arcgis-expand/customElement.js +148 -41
  301. package/dist/components/arcgis-feature/customElement.d.ts +2 -2
  302. package/dist/components/arcgis-feature/customElement.js +1 -1
  303. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  304. package/dist/components/arcgis-feature-content/customElement.js +1 -1
  305. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  306. package/dist/components/arcgis-feature-expression/customElement.js +1 -1
  307. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  308. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  309. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  310. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  311. package/dist/components/arcgis-feature-table/customElement.d.ts +3 -3
  312. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  313. package/dist/components/arcgis-feature-templates/customElement.d.ts +1 -1
  314. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  315. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
  316. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  317. package/dist/components/arcgis-features/customElement.d.ts +1 -1
  318. package/dist/components/arcgis-features/customElement.js +2 -2
  319. package/dist/components/arcgis-floor-filter/customElement.d.ts +1 -1
  320. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  321. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  322. package/dist/components/arcgis-grid-controls/customElement.d.ts +1 -1
  323. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  324. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  325. package/dist/components/arcgis-home/customElement.d.ts +1 -1
  326. package/dist/components/arcgis-home/customElement.js +1 -1
  327. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  328. package/dist/components/arcgis-layer-list/customElement.d.ts +2 -2
  329. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  330. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  331. package/dist/components/arcgis-legend/customElement.d.ts +1 -1
  332. package/dist/components/arcgis-legend/customElement.js +1 -1
  333. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  334. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  335. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  336. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
  337. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
  338. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  339. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  340. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  341. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  342. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
  343. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
  344. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  345. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
  346. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  347. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  348. package/dist/components/arcgis-link-chart/customElement.d.ts +3 -3
  349. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  350. package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +2 -2
  351. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  352. package/dist/components/arcgis-locate/customElement.js +1 -1
  353. package/dist/components/arcgis-map/customElement.d.ts +2 -2
  354. package/dist/components/arcgis-map/customElement.js +1 -1
  355. package/dist/components/arcgis-measurement/customElement.d.ts +1 -1
  356. package/dist/components/arcgis-measurement/customElement.js +1 -1
  357. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  358. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  359. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +2 -2
  360. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  361. package/dist/components/arcgis-placement/customElement.js +1 -1
  362. package/dist/components/arcgis-popup/customElement.d.ts +1 -1
  363. package/dist/components/arcgis-popup/customElement.js +1 -1
  364. package/dist/components/arcgis-print/customElement.d.ts +1 -1
  365. package/dist/components/arcgis-print/customElement.js +1 -1
  366. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  367. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  368. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  369. package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
  370. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  371. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  372. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  373. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  374. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  375. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  376. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  377. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  378. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  379. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  380. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  381. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  382. package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -1
  383. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  384. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +2 -2
  385. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  386. package/dist/components/arcgis-scene/customElement.d.ts +2 -2
  387. package/dist/components/arcgis-scene/customElement.js +1 -1
  388. package/dist/components/arcgis-search/customElement.d.ts +2 -2
  389. package/dist/components/arcgis-search/customElement.js +1 -1
  390. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  391. package/dist/components/arcgis-shadow-cast/customElement.d.ts +4 -4
  392. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  393. package/dist/components/arcgis-sketch/customElement.d.ts +12 -3
  394. package/dist/components/arcgis-sketch/customElement.js +7 -7
  395. package/dist/components/arcgis-slice/customElement.js +1 -1
  396. package/dist/components/arcgis-spinner/customElement.js +1 -1
  397. package/dist/components/arcgis-swipe/customElement.d.ts +3 -1
  398. package/dist/components/arcgis-swipe/customElement.js +1 -1
  399. package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
  400. package/dist/components/arcgis-table-list/customElement.js +1 -1
  401. package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
  402. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  403. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  404. package/dist/components/arcgis-track/customElement.d.ts +1 -1
  405. package/dist/components/arcgis-track/customElement.js +1 -1
  406. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  407. package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
  408. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +1 -1
  409. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  410. package/dist/components/arcgis-utility-network-result-feature-list/customElement.js +1 -1
  411. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
  412. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +1 -1
  413. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  414. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +2 -2
  415. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +19 -18
  416. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +8 -2
  417. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +79 -70
  418. package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
  419. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  420. package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +2 -2
  421. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  422. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  423. package/dist/components/arcgis-version-management/customElement.d.ts +1 -1
  424. package/dist/components/arcgis-version-management/customElement.js +1 -1
  425. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  426. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  427. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  428. package/dist/components/arcgis-video/customElement.d.ts +1 -1
  429. package/dist/components/arcgis-video/customElement.js +1 -1
  430. package/dist/components/arcgis-video-player/customElement.d.ts +1 -1
  431. package/dist/components/arcgis-video-player/customElement.js +1 -1
  432. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  433. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  434. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  435. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  436. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  437. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  438. package/dist/components/arcgis-weather/LabeledSlider.d.ts +3 -2
  439. package/dist/components/arcgis-weather/customElement.d.ts +16 -0
  440. package/dist/components/arcgis-weather/customElement.js +150 -132
  441. package/dist/components/arcgis-zoom/customElement.js +1 -1
  442. package/dist/docs/api.json +152 -59
  443. package/dist/docs/docs.json +123 -54
  444. package/dist/docs/vscode.html-custom-data.json +7 -6
  445. package/dist/docs/web-types.json +28 -20
  446. package/dist/index.js +1 -1
  447. package/dist/loader.js +3 -3
  448. package/dist/types/lumina.d.ts +2 -2
  449. package/dist/types/preact.d.ts +2 -2
  450. package/dist/types/preact10.d.ts +2 -2
  451. package/dist/types/react.d.ts +2 -2
  452. package/dist/types/stencil.d.ts +2 -2
  453. package/package.json +4 -4
  454. package/dist/cdn/425YBS5O.js +0 -4
  455. package/dist/cdn/42EAA7ZK.js +0 -4
  456. package/dist/cdn/E47J5GZF.js +0 -4
  457. package/dist/cdn/E6LAZTCZ.js +0 -4
  458. package/dist/cdn/I4VWHCEV.js +0 -4
  459. package/dist/cdn/PSXK4TAG.js +0 -4
  460. package/dist/cdn/SBWVZPEI.js +0 -4
  461. package/dist/cdn/UA3NEZD2.js +0 -4
  462. package/dist/cdn/XOKCQ5UG.js +0 -4
@@ -1,4 +1,4 @@
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.30 */
4
- import e from"./63P5OPEW.js";import{a as C}from"./SCZ6FM7D.js";import{a as f}from"./BYDZCBXS.js";import c from"./EANAURQW.js";import b from"./WSDNUWO4.js";import"./FWUUE67P.js";import"./BCB3OHT5.js";import{b as d}from"./CYBCIT4Y.js";import{I as y,J as k,K as a,L as u,P as $,a as w,b as g,s as x}from"./K4HH7Q7F.js";import"./BBF2UUMF.js";export default $arcgis.t(([{getDefaultUnitForView:M},{watch:L},{formatNumber:R},B,,,z])=>{function D(v=0,e=0){return{x:v,y:e}}var t="esri-scale-bar",i={base:t,labelContainer:`${t}__label-container`,rulerLabelContainer:`${t}__label-container--ruler`,lineLabelContainer:`${t}__label-container--line`,topLabelContainer:`${t}__label-container--top`,bottomLabelContainer:`${t}__label-container--bottom`,label:`${t}__label`,line:`${t}__line`,topLine:`${t}__line--top`,bottomLine:`${t}__line--bottom`,ruler:`${t}__ruler`,barContainer:`${t}__bar-container`,rulerBarContainer:`${t}__bar-container--ruler`,lineBarContainer:`${t}__bar-container--line`},U=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-scale-bar{box-shadow:none!important;background:0 0}.esri-component.esri-scale-bar.esri-widget,.esri-scale-bar.esri-widget{box-shadow:none;background:0 0}.esri-scale-bar__bar-container{align-items:flex-end;font-size:var(--calcite-font-size-sm);transition:width .25s ease-in-out;display:flex;position:relative}.esri-scale-bar__bar-container--ruler{flex-direction:column}.esri-scale-bar__ruler{--color-ruler-background: var(--calcite-color-inverse);--color-ruler-foreground: var(--calcite-color-foreground-1);height:var(--calcite-spacing-xs);box-shadow:0 0 0 1px var(--calcite-color-text-1),0 1px 2px var(--calcite-color-foreground-1)}.esri-scale-bar__ruler:before,.esri-scale-bar__ruler:after{content:"";display:block;height:50%;background-image:linear-gradient(to right,var(--color-ruler-foreground) 0%,var(--color-ruler-foreground) 25%,var(--color-ruler-background) 25%,var(--color-ruler-background) 50%,var(--color-ruler-foreground) 50%,var(--color-ruler-foreground) 75%,var(--color-ruler-background) 75%,var(--color-ruler-background) 100%)}.esri-scale-bar__ruler:after{transform:scaleX(-1)}.esri-scale-bar__bar-container--line:last-child{align-items:flex-start}.esri-scale-bar__line{--line-thickness: 2px;--tic-height: 1.5em;--border-style: var(--line-thickness) solid var(--calcite-color-text-1);background-color:color-mix(in srgb,var(--calcite-color-foreground-1) 50%,transparent);height:var(--tic-height);position:relative;left:0}.esri-scale-bar__line--top{border-bottom:var(--border-style)}.esri-scale-bar__line--bottom{border-top:var(--border-style);top:calc(-1 * var(--line-thickness))}.esri-scale-bar__line--top:before,.esri-scale-bar__line--top:after,.esri-scale-bar__line--bottom:before,.esri-scale-bar__line--bottom:after{content:"";background-color:color-mix(in srgb,var(--calcite-color-foreground-1) 50%,transparent);border-right:var(--border-style);width:1px;height:var(--tic-height);display:block;position:absolute}.esri-scale-bar__line--top:before{bottom:calc(-1 * var(--line-thickness));left:0}.esri-scale-bar__line--top:after{bottom:calc(-1 * var(--line-thickness));right:0}.esri-scale-bar__line--bottom:before{top:calc(-1 * var(--line-thickness));left:0}.esri-scale-bar__line--bottom:after{height:var(--tic-height);top:calc(-1 * var(--line-thickness));right:0}.esri-scale-bar__label-container--line{position:absolute;left:0}.esri-scale-bar__label-container--ruler{justify-content:space-between;width:100%;display:flex;position:relative}.esri-scale-bar__label-container--ruler .esri-scale-bar__label{text-shadow:1px 0 var(--calcite-color-foreground-1),0 1px var(--calcite-color-foreground-1),1px 1px var(--calcite-color-foreground-1),-1px 0 var(--calcite-color-foreground-1),0 -1px var(--calcite-color-foreground-1),-1px -1px var(--calcite-color-foreground-1);padding:6px 0 0}.esri-scale-bar__label-container--top{bottom:0}.esri-scale-bar__label-container--bottom{top:1px}.esri-scale-bar__label{white-space:nowrap;color:var(--calcite-color-text-1);font-size:inherit;padding:0 7px;font-weight:var(--calcite-font-weight-semibold)}:dir(rtl) .esri-scale-bar__ruler{margin:0 .5ch 0 2ch}:dir(rtl) .esri-scale-bar__label-container--line{left:auto;right:0}`,S=z(B),m=class extends k{constructor(){super(...arguments),this._defaultUnit="metric",this.messages=C(),this.viewModel=S(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.barStyle="line",this.icon="actual-size",this.arcgisReady=x()}static{this.properties={view:0,autoDestroyDisabled:5,barStyle:1,icon:1,label:1,messageOverrides:0,position:3,referenceElement:1,unit:1}}static{this.styles=U}get unit(){return this._unit??this._defaultUnit}set unit(e){this._unit=e}async destroy(){await this.manager.destroy()}updated(){this._handleRootCreateOrUpdate()}loaded(){this.manager.onLifecycle(()=>L(()=>({defaultUnit:this.viewModel.view?M(this.viewModel.view):void 0,stationary:this.viewModel.view?.stationary,center:this.viewModel.view?.center,scale:this.viewModel.view?.scale,zoom:this.viewModel.view?.zoom}),({defaultUnit:e,stationary:r})=>{this._defaultUnit=e??"metric",r&&this.requestUpdate()},{initial:!0}))}_handleContainerRef(e){e!==void 0&&this._handleRootCreateOrUpdate()}_handleRootCreateOrUpdate(){let e=this.el;if(!this.viewModel&&!e.childElem)return;let r=e.childElem?.getBoundingClientRect();if(!r)return;let{scaleComputedFrom:l}=this.viewModel,c=r.left+window.pageXOffset,o=r.top+window.pageYOffset,n=D(c,o);(n.x!==l.x||n.y!==l.y)&&(this.viewModel.scaleComputedFrom=n)}_formatDistance(e,r){return R(e,{style:"unit",unit:r,unitDisplay:"short"})}render(){let e=this.viewModel.state==="disabled",r={[f.disabled]:e},l,c;if(!e){let{unit:o,barStyle:n}=this,_=o==="imperial"||o==="dual",h=o==="metric"||o==="dual",p=100,b=o==="dual"?"line":n;if(_){let s=this.viewModel.getScaleBarProperties(p,"imperial");s&&(c=b==="ruler"?this._renderRuler(s):this._renderLine(s,"bottom"))}if(h){let s=this.viewModel.getScaleBarProperties(p,"metric");s&&(l=b==="ruler"?this._renderRuler(s):this._renderLine(s,"top"))}}return g`<div class=${a(d(i.base,f.widget,r))} ${y(this._handleContainerRef)}>${l}${c}</div>`}_renderRuler(e){let{length:r,unit:l,value:c}=e,o=Math.round(r),n=this._formatDistance(c,l);return g`<div class=${a(d(i.barContainer,i.rulerBarContainer))}><div class=${a(i.ruler)} style=${u({width:`${o}px`})}></div><div class=${a(d(i.labelContainer,i.rulerLabelContainer))}><div class=${a(i.label)}>0</div><div class=${a(i.label)}>${n}</div></div></div>`}_renderLine(e,r){let{length:l,unit:c,value:o}=e,n=Math.round(l),_=this._formatDistance(o,c),h={[i.topLabelContainer]:r==="top",[i.bottomLabelContainer]:r==="bottom"},p=g`<div class=${a(d(i.labelContainer,i.lineLabelContainer,h))}><div class=${a(i.label)}>${_}</div></div>`,b={[i.topLine]:r==="top",[i.bottomLine]:r==="bottom"},s=g`<div class=${a(d(i.line,b))} style=${u({width:`${n}px`})}></div>`;return g`<div class=${a(d(i.barContainer,i.lineBarContainer))}>${[s,p]}</div>`}};$("arcgis-scale-bar",m);return m},"applications/Components/getDefaultUnits","core/reactiveUtils","intl","widgets/ScaleBar/ScaleBarViewModel",b,c,e)
3
+ v5.0.0-next.32 */
4
+ import e from"./HHS3S24G.js";import{a as C}from"./7RRUQC5K.js";import{a as f}from"./APTWIVD4.js";import c from"./2F2K3SJN.js";import b from"./WAF3HWY5.js";import"./IAF7LPRE.js";import"./HVLL5J2O.js";import{b as d}from"./GJG6UNDT.js";import{I as y,J as k,K as a,L as u,P as $,a as w,b as g,s as x}from"./XZ363IBS.js";import"./II73U7PI.js";export default $arcgis.t(([{getDefaultUnitForView:M},{watch:L},{formatNumber:R},B,,,z])=>{function D(v=0,e=0){return{x:v,y:e}}var t="esri-scale-bar",i={base:t,labelContainer:`${t}__label-container`,rulerLabelContainer:`${t}__label-container--ruler`,lineLabelContainer:`${t}__label-container--line`,topLabelContainer:`${t}__label-container--top`,bottomLabelContainer:`${t}__label-container--bottom`,label:`${t}__label`,line:`${t}__line`,topLine:`${t}__line--top`,bottomLine:`${t}__line--bottom`,ruler:`${t}__ruler`,barContainer:`${t}__bar-container`,rulerBarContainer:`${t}__bar-container--ruler`,lineBarContainer:`${t}__bar-container--line`},U=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-scale-bar{box-shadow:none!important;background:0 0}.esri-component.esri-scale-bar.esri-widget,.esri-scale-bar.esri-widget{box-shadow:none;background:0 0}.esri-scale-bar__bar-container{align-items:flex-end;font-size:var(--calcite-font-size-sm);transition:width .25s ease-in-out;display:flex;position:relative}.esri-scale-bar__bar-container--ruler{flex-direction:column}.esri-scale-bar__ruler{--color-ruler-background: var(--calcite-color-inverse);--color-ruler-foreground: var(--calcite-color-foreground-1);height:var(--calcite-spacing-xs);box-shadow:0 0 0 1px var(--calcite-color-text-1),0 1px 2px var(--calcite-color-foreground-1)}.esri-scale-bar__ruler:before,.esri-scale-bar__ruler:after{content:"";display:block;height:50%;background-image:linear-gradient(to right,var(--color-ruler-foreground) 0%,var(--color-ruler-foreground) 25%,var(--color-ruler-background) 25%,var(--color-ruler-background) 50%,var(--color-ruler-foreground) 50%,var(--color-ruler-foreground) 75%,var(--color-ruler-background) 75%,var(--color-ruler-background) 100%)}.esri-scale-bar__ruler:after{transform:scaleX(-1)}.esri-scale-bar__bar-container--line:last-child{align-items:flex-start}.esri-scale-bar__line{--line-thickness: 2px;--tic-height: 1.5em;--border-style: var(--line-thickness) solid var(--calcite-color-text-1);background-color:color-mix(in srgb,var(--calcite-color-foreground-1) 50%,transparent);height:var(--tic-height);position:relative;left:0}.esri-scale-bar__line--top{border-bottom:var(--border-style)}.esri-scale-bar__line--bottom{border-top:var(--border-style);top:calc(-1 * var(--line-thickness))}.esri-scale-bar__line--top:before,.esri-scale-bar__line--top:after,.esri-scale-bar__line--bottom:before,.esri-scale-bar__line--bottom:after{content:"";background-color:color-mix(in srgb,var(--calcite-color-foreground-1) 50%,transparent);border-right:var(--border-style);width:1px;height:var(--tic-height);display:block;position:absolute}.esri-scale-bar__line--top:before{bottom:calc(-1 * var(--line-thickness));left:0}.esri-scale-bar__line--top:after{bottom:calc(-1 * var(--line-thickness));right:0}.esri-scale-bar__line--bottom:before{top:calc(-1 * var(--line-thickness));left:0}.esri-scale-bar__line--bottom:after{height:var(--tic-height);top:calc(-1 * var(--line-thickness));right:0}.esri-scale-bar__label-container--line{position:absolute;left:0}.esri-scale-bar__label-container--ruler{justify-content:space-between;width:100%;display:flex;position:relative}.esri-scale-bar__label-container--ruler .esri-scale-bar__label{text-shadow:1px 0 var(--calcite-color-foreground-1),0 1px var(--calcite-color-foreground-1),1px 1px var(--calcite-color-foreground-1),-1px 0 var(--calcite-color-foreground-1),0 -1px var(--calcite-color-foreground-1),-1px -1px var(--calcite-color-foreground-1);padding:6px 0 0}.esri-scale-bar__label-container--top{bottom:0}.esri-scale-bar__label-container--bottom{top:1px}.esri-scale-bar__label{white-space:nowrap;color:var(--calcite-color-text-1);font-size:inherit;padding:0 7px;font-weight:var(--calcite-font-weight-semibold)}:dir(rtl) .esri-scale-bar__ruler{margin:0 .5ch 0 2ch}:dir(rtl) .esri-scale-bar__label-container--line{left:auto;right:0}`,S=z(B),m=class extends k{constructor(){super(...arguments),this._defaultUnit="metric",this.messages=C(),this.viewModel=S(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.barStyle="line",this.icon="actual-size",this.arcgisReady=x()}static{this.properties={view:0,autoDestroyDisabled:5,barStyle:1,icon:1,label:1,messageOverrides:0,position:3,referenceElement:1,unit:1}}static{this.styles=U}get unit(){return this._unit??this._defaultUnit}set unit(e){this._unit=e}async destroy(){await this.manager.destroy()}updated(){this._handleRootCreateOrUpdate()}loaded(){this.manager.onLifecycle(()=>L(()=>({defaultUnit:this.viewModel.view?M(this.viewModel.view):void 0,stationary:this.viewModel.view?.stationary,center:this.viewModel.view?.center,scale:this.viewModel.view?.scale,zoom:this.viewModel.view?.zoom}),({defaultUnit:e,stationary:r})=>{this._defaultUnit=e??"metric",r&&this.requestUpdate()},{initial:!0}))}_handleContainerRef(e){e!==void 0&&this._handleRootCreateOrUpdate()}_handleRootCreateOrUpdate(){let e=this.el;if(!this.viewModel&&!e.childElem)return;let r=e.childElem?.getBoundingClientRect();if(!r)return;let{scaleComputedFrom:l}=this.viewModel,c=r.left+window.pageXOffset,o=r.top+window.pageYOffset,n=D(c,o);(n.x!==l.x||n.y!==l.y)&&(this.viewModel.scaleComputedFrom=n)}_formatDistance(e,r){return R(e,{style:"unit",unit:r,unitDisplay:"short"})}render(){let e=this.viewModel.state==="disabled",r={[f.disabled]:e},l,c;if(!e){let{unit:o,barStyle:n}=this,_=o==="imperial"||o==="dual",h=o==="metric"||o==="dual",p=100,b=o==="dual"?"line":n;if(_){let s=this.viewModel.getScaleBarProperties(p,"imperial");s&&(c=b==="ruler"?this._renderRuler(s):this._renderLine(s,"bottom"))}if(h){let s=this.viewModel.getScaleBarProperties(p,"metric");s&&(l=b==="ruler"?this._renderRuler(s):this._renderLine(s,"top"))}}return g`<div class=${a(d(i.base,f.widget,r))} ${y(this._handleContainerRef)}>${l}${c}</div>`}_renderRuler(e){let{length:r,unit:l,value:c}=e,o=Math.round(r),n=this._formatDistance(c,l);return g`<div class=${a(d(i.barContainer,i.rulerBarContainer))}><div class=${a(i.ruler)} style=${u({width:`${o}px`})}></div><div class=${a(d(i.labelContainer,i.rulerLabelContainer))}><div class=${a(i.label)}>0</div><div class=${a(i.label)}>${n}</div></div></div>`}_renderLine(e,r){let{length:l,unit:c,value:o}=e,n=Math.round(l),_=this._formatDistance(o,c),h={[i.topLabelContainer]:r==="top",[i.bottomLabelContainer]:r==="bottom"},p=g`<div class=${a(d(i.labelContainer,i.lineLabelContainer,h))}><div class=${a(i.label)}>${_}</div></div>`,b={[i.topLine]:r==="top",[i.bottomLine]:r==="bottom"},s=g`<div class=${a(d(i.line,b))} style=${u({width:`${n}px`})}></div>`;return g`<div class=${a(d(i.barContainer,i.lineBarContainer))}>${[s,p]}</div>`}};$("arcgis-scale-bar",m);return m},"applications/Components/getDefaultUnits","core/reactiveUtils","intl","widgets/ScaleBar/ScaleBarViewModel",b,c,e)
@@ -1,4 +1,4 @@
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.30 */
4
- import{a as g,c as p}from"./ZZ5AKBHE.js";import j from"./EL2VJ6RS.js";import"./7R25WXBY.js";import i from"./XJZXQDR2.js";import"./EYVOMZXY.js";import e from"./63P5OPEW.js";import{a as y}from"./SCZ6FM7D.js";import{a as c}from"./BYDZCBXS.js";import d from"./EANAURQW.js";import a from"./WSDNUWO4.js";import{g as x}from"./FWUUE67P.js";import"./BCB3OHT5.js";import"./CYBCIT4Y.js";import{J as w,K as f,M as v,P as b,a as m,b as h,s as _}from"./K4HH7Q7F.js";import"./BBF2UUMF.js";export default $arcgis.t(([$,{hasValidAreaResult:U},{getDefaultUnitForView:A},{property:n,subclass:D},{watch:j},,,k,{e:z},M])=>{var C=m`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--esri-widget-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--esri-widget-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,E=Object.defineProperty,V=Object.getOwnPropertyDescriptor,s=(e,t,i,o)=>{for(var a=o>1?void 0:o?V(t,i):t,l=e.length-1,d;l>=0;l--)(d=e[l])&&(a=(o?d(t,i,a):d(a))||a);return o&&a&&E(t,i,a),a},r=class extends M{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Area Measurement 3D component is only supported in 3D views."}initialize(){this.addHandles(j(()=>({analysis:this.analysis,unit:this.unit}),({analysis:e,unit:t})=>{e!=null&&(e.unit=t)},{sync:!0,initial:!0}))}get state(){return this.disabled||!this.ready?"disabled":this.operationState==="inactive"?this.analysis.valid?"measured":"ready":"measuring"}get displayState(){if(!this.supported)return"unsupported";switch(this.state){case"disabled":case"ready":return"ready";case"measuring":return this.analysis.geometry==null?"measuring":"measured";case"measured":return"measured"}}get measurement(){let{analysisView:e}=this,t=e?.result,i=t?.mode??"euclidean",o=e!=null&&U(e);return{mode:i,area:p(t?.area,o),perimeter:p(t?.perimeter,o)}}get unitOptions(){let e=this._userUnitOptions?.filter(t=>g.includes(t));return e&&e.length>0?e:g.slice()}set unitOptions(e){this._userUnitOptions=e}get unit(){let e=this._userUnit??this.analysis.unit,t=this.unitOptions;if(e&&t.includes(e))return e;let i=this._defaultUnit;return i&&t.includes(i)?i:t[0]}set unit(e){this._userUnit=e}get _defaultUnit(){return this.view?A(this.view):void 0}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new $}};s([n({readOnly:!0})],r.prototype,"state",1);s([n({readOnly:!0})],r.prototype,"displayState",1);s([n({readOnly:!0})],r.prototype,"measurement",1);s([n()],r.prototype,"unitOptions",1);s([n()],r.prototype,"_userUnitOptions",2);s([n()],r.prototype,"unit",1);s([n()],r.prototype,"_userUnit",2);s([n()],r.prototype,"_defaultUnit",1);r=s([D("components.area-measurement-3d.AreaMeasurement3dViewModel")],r);var L="arcgis-area-measurement-3d",P={base:L},S=k(r),u=class extends w{constructor(){super(...arguments),this.viewModel=S(this),this.messages=y({blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.icon="measure-area",this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=x()("analysis","state"),this.arcgisReady=_()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,icon:3,label:1,position:1,referenceElement:1,state:35,unit:1,unitOptions:0}}static{this.styles=C}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){z(this.viewModel.start())}render(){let{messages:t,unit:i,unitOptions:o,viewModel:a}=this,{measurement:l,state:d}=a;return h`<div aria-label=${t.componentLabel??v} class=${f({[P.base]:!0,[c.widget]:!0,[c.panel]:!0})} role=presentation><arcgis-measurement-content .state=${a.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[{title:t.area,measurement:l.area},{title:t.perimeterLength,measurement:l.perimeter}]}><arcgis-unit-select slot=settings .options=${o} .selectLabel=${t.unit} .value=${i} @arcgisUnitSelectChange=${O=>{this.unit=O.detail}}></arcgis-unit-select><calcite-button slot=actions .disabled=${d==="disabled"} @click=${this.start}>${t.newMeasurement}</calcite-button></arcgis-measurement-content></div>`}};b("arcgis-area-measurement-3d",u);return u},"analysis/AreaMeasurementAnalysis","applications/Components/analysisUtils","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils",a,d,e,i,j)
3
+ v5.0.0-next.32 */
4
+ import{a as g,c as p}from"./ULHATBWA.js";import j from"./3CVW7OMG.js";import"./NN2X735Q.js";import i from"./LR77QYVQ.js";import"./6WOQBLNG.js";import e from"./HHS3S24G.js";import{a as y}from"./7RRUQC5K.js";import{a as c}from"./APTWIVD4.js";import d from"./2F2K3SJN.js";import a from"./WAF3HWY5.js";import{g as x}from"./IAF7LPRE.js";import"./HVLL5J2O.js";import"./GJG6UNDT.js";import{J as w,K as f,M as v,P as b,a as m,b as h,s as _}from"./XZ363IBS.js";import"./II73U7PI.js";export default $arcgis.t(([$,{hasValidAreaResult:U},{getDefaultUnitForView:A},{property:n,subclass:D},{watch:j},,,k,{e:z},M])=>{var C=m`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--esri-widget-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--esri-widget-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,E=Object.defineProperty,V=Object.getOwnPropertyDescriptor,s=(e,t,i,o)=>{for(var a=o>1?void 0:o?V(t,i):t,l=e.length-1,d;l>=0;l--)(d=e[l])&&(a=(o?d(t,i,a):d(a))||a);return o&&a&&E(t,i,a),a},r=class extends M{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Area Measurement 3D component is only supported in 3D views."}initialize(){this.addHandles(j(()=>({analysis:this.analysis,unit:this.unit}),({analysis:e,unit:t})=>{e!=null&&(e.unit=t)},{sync:!0,initial:!0}))}get state(){return this.disabled||!this.ready?"disabled":this.operationState==="inactive"?this.analysis.valid?"measured":"ready":"measuring"}get displayState(){if(!this.supported)return"unsupported";switch(this.state){case"disabled":case"ready":return"ready";case"measuring":return this.analysis.geometry==null?"measuring":"measured";case"measured":return"measured"}}get measurement(){let{analysisView:e}=this,t=e?.result,i=t?.mode??"euclidean",o=e!=null&&e.type==="area-measurement-view-3d"&&U(e);return{mode:i,area:p(t?.area,o),perimeter:p(t?.perimeter,o)}}get unitOptions(){let e=this._userUnitOptions?.filter(t=>g.includes(t));return e&&e.length>0?e:g.slice()}set unitOptions(e){this._userUnitOptions=e}get unit(){let e=this._userUnit??this.analysis.unit,t=this.unitOptions;if(e&&t.includes(e))return e;let i=this._defaultUnit;return i&&t.includes(i)?i:t[0]}set unit(e){this._userUnit=e}get _defaultUnit(){return this.view?A(this.view):void 0}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new $}};s([n({readOnly:!0})],r.prototype,"state",1);s([n({readOnly:!0})],r.prototype,"displayState",1);s([n({readOnly:!0})],r.prototype,"measurement",1);s([n()],r.prototype,"unitOptions",1);s([n()],r.prototype,"_userUnitOptions",2);s([n()],r.prototype,"unit",1);s([n()],r.prototype,"_userUnit",2);s([n()],r.prototype,"_defaultUnit",1);r=s([D("components.area-measurement-3d.AreaMeasurement3dViewModel")],r);var L="arcgis-area-measurement-3d",P={base:L},S=k(r),u=class extends w{constructor(){super(...arguments),this.viewModel=S(this),this.messages=y({blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.icon="measure-area",this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=x()("analysis","state"),this.arcgisReady=_()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,icon:3,label:1,position:1,referenceElement:1,state:35,unit:1,unitOptions:0}}static{this.styles=C}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){z(this.viewModel.start())}render(){let{messages:t,unit:i,unitOptions:o,viewModel:a}=this,{measurement:l,state:d}=a;return h`<div aria-label=${t.componentLabel??v} class=${f({[P.base]:!0,[c.widget]:!0,[c.panel]:!0})} role=presentation><arcgis-measurement-content .state=${a.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[{title:t.area,measurement:l.area},{title:t.perimeterLength,measurement:l.perimeter}]}><arcgis-unit-select slot=settings .options=${o} .selectLabel=${t.unit} .value=${i} @arcgisUnitSelectChange=${O=>{this.unit=O.detail}}></arcgis-unit-select><calcite-button slot=actions .disabled=${d==="disabled"} @click=${this.start}>${t.newMeasurement}</calcite-button></arcgis-measurement-content></div>`}};b("arcgis-area-measurement-3d",u);return u},"analysis/AreaMeasurementAnalysis","applications/Components/analysisUtils","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils",a,d,e,i,j)
@@ -1,4 +1,4 @@
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.30 */
4
- import e from"./63P5OPEW.js";import{a as I}from"./SCZ6FM7D.js";import{a as f}from"./BYDZCBXS.js";import d from"./EANAURQW.js";import a from"./WSDNUWO4.js";import{g as k}from"./FWUUE67P.js";import"./BCB3OHT5.js";import{b as p}from"./CYBCIT4Y.js";import{I as b,J as S,K as c,M as m,P as C,a as x,b as r,s as y,w as $}from"./K4HH7Q7F.js";import"./BBF2UUMF.js";export default $arcgis.t(([O,h,{substitute:D},{watch:R},z,,,M])=>{function L(n){if(n==null||Number.isNaN(n))return 0;let e=n+180;return Math.trunc(T(e,360))}function B(n){let e=n;return e==null||(typeof e=="string"&&(e=Number.parseInt(e,10)),Number.isNaN(e))?0:T(Math.trunc(e),360)-180}function T(n,e){return(n%e+e)%e}var E={fromAttribute:n=>h.fromHex(n),toAttribute:n=>typeof n=="string"?n:n?.toHex()??""},N=x`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex}.arcgis-grid-controls{user-select:none;display:flex;flex-flow:column wrap;padding:var(--calcite-spacing-sm);overflow-y:auto;width:100%;.container{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--calcite-spacing-sm)}.numeric-inputs-container{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;gap:var(--calcite-spacing-sm)}arcgis-labeled-switch{margin-block-end:var(--calcite-spacing-sm)}.switch--bordered{border-width:0 0 var(--calcite-spacing-px) 0;border-style:solid;border-color:var(--calcite-color-border-1);padding-block-end:var(--calcite-spacing-sm)}.tile-group{display:flex;column-gap:var(--calcite-spacing-md);align-items:start;margin-bottom:calc(0px - var(--calcite-spacing-sm))}.tile{position:relative;.content{display:flex;flex-direction:column;row-gap:var(--calcite-spacing-md);align-items:center;padding:var(--calcite-spacing-md);color:var(--calcite-color-text-2)}&.disabled{opacity:var(--calcite-opacity-disabled)}&:focus-within{outline:var(--calcite-spacing-base) solid var(--calcite-color-brand);outline-offset:var(--calcite-spacing-base)}input[type=radio]{appearance:none;position:absolute;inset:0;opacity:.001;border:var(--calcite-spacing-px) solid transparent;cursor:pointer;&:checked+.content{border:var(--calcite-spacing-px) solid var(--calcite-color-brand)}+.content{border:var(--calcite-spacing-px) solid transparent;calcite-label{margin-bottom:calc(0px - var(--calcite-label-margin-bottom, .75rem));font-weight:var(--calcite-font-weight-medium)}}}}.inline-icon{margin-left:var(--calcite-spacing-xs);vertical-align:top;color:var(--calcite-color-status-warning)}}`,W="arcgis-grid-controls",s={base:W,borderedSwitch:"switch--bordered",container:"container",numericInputsContainer:"numeric-inputs-container",tileGroup:"tile-group",tile:"tile",tileDisabled:"disabled",tileContent:"content",inlineIcon:"inline-icon"},u={componentIcon:"grid-unit",gridTheme:{light:"circle",dark:"circle-area",custom:"palette"},placementState:{interactive:"maximum-territory-distance",place:"move",rotate:"rotate"},warning:"exclamation-mark-triangle"},v=h.fromArray([115,115,115]),_=h.fromArray([200,200,200]),j=["interactive","place","rotate"],A=M(z),w=class extends S{constructor(){super(...arguments),this._labelUid=$(),this._messages=I({}),this._viewModel=A(this),this._placementModeButtonRefs=new Map,this.numericSpacingInputShouldBeVisible=this._viewModel.numericSpacingInputShouldBeVisible,this.view=this._viewModel.view,this.icon=u.componentIcon,this.snappingOptions=this._viewModel.snappingOptions,this.hideColorSelection=!1,this.hideDynamicScaleToggle=!1,this.hideGridEnabledToggle=!1,this.hideNumericInputs=!1,this.hideGridSnapEnabledToggle=!1,this.hideLineIntervalInput=!1,this.hideOutOfScaleWarning=!1,this.hidePlacementButtons=!1,this.hideRotateWithMapToggle=!1,this.rotation=this._viewModel.rotation,this.rotateWithMap=this._viewModel.rotateWithMap,this.spacing=this._viewModel.spacing,this.majorLineInterval=this._viewModel.majorLineInterval,this.gridColor=this._viewModel.gridColor,this.displayEnabled=this._viewModel.displayEnabled,this.gridOutOfScale=this._viewModel.gridOutOfScale,this.unit=this._viewModel.unit,this.dynamicScaling=this._viewModel.dynamicScaling,this.gridControlsEnabled=this._viewModel.gridControlsEnabled,this.interactivePlacementState=this._viewModel.interactivePlacementState,this.snappingEnabled=this._viewModel.snappingEnabled,this.effectiveSpacingAfterDynamicScaling=this._viewModel.effectiveSpacingAfterDynamicScaling,this.placementDisabled=this._viewModel.placementDisabled,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=k()("customColor","theme","spacing","rotation","majorLineInterval","rotateWithMap","dynamicScaling","snappingEnabled","interactivePlacementState","displayEnabled","gridOutOfScale","effectiveSpacingAfterDynamicScaling","gridControlsEnabled","gridColor"),this.arcgisReady=y()}static{this.properties={_placementModeButtonRefs:16,_warningIconTooltipRef:16,_themePopoverRef:16,numericSpacingInputShouldBeVisible:16,view:0,referenceElement:1,position:3,icon:1,customColor:[3,{converter:E}],snappingOptions:0,theme:1,hideColorSelection:5,hideDynamicScaleToggle:5,hideGridEnabledToggle:5,hideNumericInputs:5,hideGridSnapEnabledToggle:5,hideLineIntervalInput:5,hideOutOfScaleWarning:5,hidePlacementButtons:5,hideRotateWithMapToggle:5,rotation:11,rotateWithMap:5,spacing:11,majorLineInterval:11,gridColor:[3,{converter:E}],displayEnabled:4,gridOutOfScale:7,unit:1,dynamicScaling:5,gridControlsEnabled:4,interactivePlacementState:3,snappingEnabled:5,effectiveSpacingAfterDynamicScaling:43,placementDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1}}static{this.styles=N}get theme(){let e=this.gridColor;return!e||v.equals(e)?"dark":_.equals(e)?"light":"custom"}set theme(e){let i=this._viewModel.view;switch(e){case"dark":this.gridColor=v;break;case"custom":this.customColor==null&&(this.customColor=i?.theme?.accentColor??new O().accentColor),this.gridColor=this.customColor;break;case"light":default:this.gridColor=_;break}}async destroy(){await this.manager.destroy()}trySetDisplayEnabled(e){this._viewModel.trySetDisplayEnabled(e)}loaded(){this.manager.onLifecycle(()=>[R(()=>this._viewModel.gridColor,e=>{let i=e instanceof h?e:typeof e=="string"?h.fromHex(e):null;i&&!v.equals(e)&&!_.equals(i)?this.customColor=i:v.equals(i)?this.theme="dark":_.equals(i)&&(this.theme="light")})])}_togglePlacementState(e){this.interactivePlacementState=this.interactivePlacementState===e?null:e}_setWarningIconRef(e){this._warningIconTooltipRef=e}_setPopoverRef(e){this._themePopoverRef=e}_emptyFunction(e){}_setPlacementButtonRef(e){if(e){let i=e.dataset.placementAction;this._placementModeButtonRefs.set(i,e)}else this._placementModeButtonRefs.clear()}render(){return r`<div class=${c(p(s.base,f.widget,f.panel))}><div class=${c(s.container)}>${this._renderContent()}</div></div>`}_renderContent(){let{hideGridEnabledToggle:e,hidePlacementButtons:i,hideNumericInputs:t,hideLineIntervalInput:a,hideGridSnapEnabledToggle:o,hideDynamicScaleToggle:l,hideRotateWithMapToggle:d,hideColorSelection:g}=this;return[e?void 0:this._renderEnabledToggle(),i?void 0:this._renderGridPlacementButtons(),t?void 0:this._renderNumericInputs(),a?void 0:this._renderIntervalInput(),!o&&this.snappingOptions?this._renderSnappingToggle():void 0,l?void 0:this._renderDynamicScaleToggle(),d?void 0:this._renderRotateToggle(),g?void 0:this._renderColorSelection()]}_renderGridPlacementButtons(){let{interactivePlacementState:e,placementDisabled:i,gridControlsEnabled:t}=this,a=i||!t;return r`<calcite-label scale=s>${this._messages.placementOptions}<calcite-action-bar expand-disabled layout=horizontal>${j.map(o=>this._renderPlacementModeButton(o,a,e))}</calcite-action-bar></calcite-label>`}_renderPlacementModeButton(e,i,t){let a=this._messages?.placementState?.[e],o=this._placementModeButtonRefs.get(e);return r`<div><calcite-action .active=${t===e} alignment=center .disabled=${i} .icon=${u.placementState[e]} data-placement-action=${e??m} @click=${()=>this._togglePlacementState(e)} .text=${a??""} ${b(this._setPlacementButtonRef)}></calcite-action>${o?r`<calcite-tooltip overlay-positioning=fixed placement=top .referenceElement=${o}>${a}</calcite-tooltip>`:void 0}</div>`}_renderNumericInputs(){let{rotation:e,spacing:i,effectiveSpacingAfterDynamicScaling:t,numericSpacingInputShouldBeVisible:a,gridControlsEnabled:o}=this,l=t!=null&&t!==i;return r`<div class=${c(p(s.numericInputsContainer))}>${[a?r`<calcite-label scale=s><span>${this._messages?.inputLabel?.spacing}${l?r`<calcite-icon class=${c(p(s.inlineIcon))} .icon=${u.warning} scale=s tabindex=0 ${b(this._setWarningIconRef)}></calcite-icon>`:void 0}</span><calcite-input-number .disabled=${!o} number-button-type=none .value=${i?.toFixed(2)} @calciteInputNumberChange=${({currentTarget:d})=>{let g=Number.parseFloat(d.value);this.spacing=g,g!==this.spacing&&(d.value=`${this.spacing}`)}}></calcite-input-number>${l&&this._warningIconTooltipRef?r`<calcite-tooltip overlay-positioning=fixed placement=leading .referenceElement=${this._warningIconTooltipRef}>${D(this._messages?.warnings?.dynamicSpacing??"",{actualSpacingIncludingUnit:t},{format:{actualSpacingIncludingUnit:{type:"number",intlOptions:{minimumFractionDigits:2,maximumFractionDigits:2,unit:this.unit??"meters",style:"decimal"}}}})}</calcite-tooltip>`:void 0}</calcite-label>`:void 0,r`<calcite-label scale=s>${this._messages?.inputLabel?.angle}<calcite-input-number .disabled=${!o} integer number-button-type=none suffix-text=\u00B0 .value=${`${L(e)}`} @calciteInputNumberChange=${({currentTarget:d})=>this.rotation=B(d.value)}></calcite-input-number></calcite-label>`]}</div>`}_renderIntervalInput(){let{majorLineInterval:e,gridControlsEnabled:i}=this;return r`<div class=${c(p(s.numericInputsContainer))}><calcite-label scale=s>${this._messages?.inputLabel?.interval}<calcite-input-number .disabled=${!i} integer max=15 min=1 number-button-type=vertical .value=${`${e}`} @calciteInputNumberChange=${({currentTarget:t})=>{let a=Number.parseInt(t.value,10);this.majorLineInterval=a,a!==this.majorLineInterval&&(t.value=`${this.majorLineInterval}`)}}></calcite-input-number></calcite-label></div>`}_renderSnappingToggle(){let{snappingOptions:e,gridControlsEnabled:i}=this,t=e?.gridEnabled??!1;return r`<arcgis-labeled-switch .checked=${!!t} .disabled=${!(i&&e)} .label=${this._messages?.switchLabel?.snap} @arcgisCheckedChanged=${a=>{a.stopPropagation(),this.snappingOptions?.set("gridEnabled",a.detail)}}></arcgis-labeled-switch>`}_renderDynamicScaleToggle(){let{_messages:e,gridOutOfScale:i,dynamicScaling:t,gridControlsEnabled:a}=this,o=!this.hideOutOfScaleWarning&&i;return r`<arcgis-labeled-switch .checked=${t} .disabled=${!a} .hint=${o?e?.warnings?.outOfScale:void 0} .hintIcon=${u.warning} hint-kind=warning .label=${e?.switchLabel?.scaling} @arcgisCheckedChanged=${l=>{l.stopPropagation(),this.dynamicScaling=l.detail}}></arcgis-labeled-switch>`}_renderRotateToggle(){let{gridControlsEnabled:e,rotateWithMap:i}=this;return r`<arcgis-labeled-switch .checked=${i} .disabled=${!e} .label=${this._messages?.switchLabel?.rotateWithMap??""} @arcgisCheckedChanged=${t=>{t.stopPropagation(),this.rotateWithMap=t.detail}}></arcgis-labeled-switch>`}_renderEnabledToggle(){return r`<div class=${c(s.borderedSwitch)}><arcgis-labeled-switch .checked=${this.displayEnabled} .disabled=${!!this.interactivePlacementState} .label=${this._messages?.switchLabel?.display} @arcgisCheckedChanged=${e=>{e.stopPropagation(),this.trySetDisplayEnabled(e.detail)}}></arcgis-labeled-switch></div>`}_renderColorSelection(){let{customColor:e}=this;return r`<calcite-label scale=s>${this._messages?.inputLabel?.theme}<div class=${c(s.tileGroup)}>${[this._renderThemeTile({value:"dark"}),this._renderThemeTile({value:"light"}),this._renderThemeTile({value:"custom"}),this._themePopoverRef?r`<calcite-popover auto-close .label=${this._messages?.gridLineColorPopoverLabel??""} overlay-positioning=fixed .referenceElement=${this._themePopoverRef}><calcite-color-picker alpha-channel saved-disabled .value=${e?.toHex({digits:8})??"#000000ff"} @calciteColorPickerChange=${i=>{let t=h.fromHex(i.currentTarget.value);t&&(this.customColor=t,this.theme="custom")}}></calcite-color-picker></calcite-popover>`:void 0]}</div></calcite-label>`}_renderThemeTile(e){let{theme:i,gridControlsEnabled:t}=this,{value:a}=e,o=this._messages?.gridTheme?.[a],l=`${this._labelUid}--theme_tile_${a}`,d=`${l}__label`,g=u.gridTheme[a];return r`<div class=${c(p({[s.tile]:!0,[s.tileDisabled]:!t}))} role=button ${b(a==="custom"?this._setPopoverRef:this._emptyFunction)}><input aria-labelledby=${d??m} .checked=${i===a} .disabled=${!t} id=${l??m} .name=${`${this._labelUid}--theme`} @change=${P=>{this.theme=a,P.currentTarget.focus()}} tabindex=0 type=radio><div class=${c(s.tileContent)}><calcite-icon .icon=${g} scale=l></calcite-icon><calcite-label .for=${l} id=${d??m}>${o}</calcite-label></div></div>`}};C("arcgis-grid-controls",w);return w},"views/Theme","Color","intl","core/reactiveUtils","widgets/support/GridControls/GridControlsViewModel",a,d,e)
3
+ v5.0.0-next.32 */
4
+ import e from"./HHS3S24G.js";import{a as I}from"./7RRUQC5K.js";import{a as f}from"./APTWIVD4.js";import d from"./2F2K3SJN.js";import a from"./WAF3HWY5.js";import{g as k}from"./IAF7LPRE.js";import"./HVLL5J2O.js";import{b as p}from"./GJG6UNDT.js";import{I as b,J as S,K as c,M as m,P as C,a as x,b as r,s as y,w as $}from"./XZ363IBS.js";import"./II73U7PI.js";export default $arcgis.t(([O,h,{substitute:D},{watch:R},z,,,M])=>{function L(n){if(n==null||Number.isNaN(n))return 0;let e=n+180;return Math.trunc(T(e,360))}function B(n){let e=n;return e==null||(typeof e=="string"&&(e=Number.parseInt(e,10)),Number.isNaN(e))?0:T(Math.trunc(e),360)-180}function T(n,e){return(n%e+e)%e}var E={fromAttribute:n=>h.fromHex(n),toAttribute:n=>typeof n=="string"?n:n?.toHex()??""},N=x`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex}.arcgis-grid-controls{user-select:none;display:flex;flex-flow:column wrap;padding:var(--calcite-spacing-sm);overflow-y:auto;width:100%;.container{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--calcite-spacing-sm)}.numeric-inputs-container{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;gap:var(--calcite-spacing-sm)}arcgis-labeled-switch{margin-block-end:var(--calcite-spacing-sm)}.switch--bordered{border-width:0 0 var(--calcite-spacing-px) 0;border-style:solid;border-color:var(--calcite-color-border-1);padding-block-end:var(--calcite-spacing-sm)}.tile-group{display:flex;column-gap:var(--calcite-spacing-md);align-items:start;margin-bottom:calc(0px - var(--calcite-spacing-sm))}.tile{position:relative;.content{display:flex;flex-direction:column;row-gap:var(--calcite-spacing-md);align-items:center;padding:var(--calcite-spacing-md);color:var(--calcite-color-text-2)}&.disabled{opacity:var(--calcite-opacity-disabled)}&:focus-within{outline:var(--calcite-spacing-base) solid var(--calcite-color-brand);outline-offset:var(--calcite-spacing-base)}input[type=radio]{appearance:none;position:absolute;inset:0;opacity:.001;border:var(--calcite-spacing-px) solid transparent;cursor:pointer;&:checked+.content{border:var(--calcite-spacing-px) solid var(--calcite-color-brand)}+.content{border:var(--calcite-spacing-px) solid transparent;calcite-label{margin-bottom:calc(0px - var(--calcite-label-margin-bottom, .75rem));font-weight:var(--calcite-font-weight-medium)}}}}.inline-icon{margin-left:var(--calcite-spacing-xs);vertical-align:top;color:var(--calcite-color-status-warning)}}`,W="arcgis-grid-controls",s={base:W,borderedSwitch:"switch--bordered",container:"container",numericInputsContainer:"numeric-inputs-container",tileGroup:"tile-group",tile:"tile",tileDisabled:"disabled",tileContent:"content",inlineIcon:"inline-icon"},u={componentIcon:"grid-unit",gridTheme:{light:"circle",dark:"circle-area",custom:"palette"},placementState:{interactive:"maximum-territory-distance",place:"move",rotate:"rotate"},warning:"exclamation-mark-triangle"},v=h.fromArray([115,115,115]),_=h.fromArray([200,200,200]),j=["interactive","place","rotate"],A=M(z),w=class extends S{constructor(){super(...arguments),this._labelUid=$(),this._messages=I({}),this._viewModel=A(this),this._placementModeButtonRefs=new Map,this.numericSpacingInputShouldBeVisible=this._viewModel.numericSpacingInputShouldBeVisible,this.view=this._viewModel.view,this.icon=u.componentIcon,this.snappingOptions=this._viewModel.snappingOptions,this.hideColorSelection=!1,this.hideDynamicScaleToggle=!1,this.hideGridEnabledToggle=!1,this.hideNumericInputs=!1,this.hideGridSnapEnabledToggle=!1,this.hideLineIntervalInput=!1,this.hideOutOfScaleWarning=!1,this.hidePlacementButtons=!1,this.hideRotateWithMapToggle=!1,this.rotation=this._viewModel.rotation,this.rotateWithMap=this._viewModel.rotateWithMap,this.spacing=this._viewModel.spacing,this.majorLineInterval=this._viewModel.majorLineInterval,this.gridColor=this._viewModel.gridColor,this.displayEnabled=this._viewModel.displayEnabled,this.gridOutOfScale=this._viewModel.gridOutOfScale,this.unit=this._viewModel.unit,this.dynamicScaling=this._viewModel.dynamicScaling,this.gridControlsEnabled=this._viewModel.gridControlsEnabled,this.interactivePlacementState=this._viewModel.interactivePlacementState,this.snappingEnabled=this._viewModel.snappingEnabled,this.effectiveSpacingAfterDynamicScaling=this._viewModel.effectiveSpacingAfterDynamicScaling,this.placementDisabled=this._viewModel.placementDisabled,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=k()("customColor","theme","spacing","rotation","majorLineInterval","rotateWithMap","dynamicScaling","snappingEnabled","interactivePlacementState","displayEnabled","gridOutOfScale","effectiveSpacingAfterDynamicScaling","gridControlsEnabled","gridColor"),this.arcgisReady=y()}static{this.properties={_placementModeButtonRefs:16,_warningIconTooltipRef:16,_themePopoverRef:16,numericSpacingInputShouldBeVisible:16,view:0,referenceElement:1,position:3,icon:1,customColor:[3,{converter:E}],snappingOptions:0,theme:1,hideColorSelection:5,hideDynamicScaleToggle:5,hideGridEnabledToggle:5,hideNumericInputs:5,hideGridSnapEnabledToggle:5,hideLineIntervalInput:5,hideOutOfScaleWarning:5,hidePlacementButtons:5,hideRotateWithMapToggle:5,rotation:11,rotateWithMap:5,spacing:11,majorLineInterval:11,gridColor:[3,{converter:E}],displayEnabled:4,gridOutOfScale:7,unit:1,dynamicScaling:5,gridControlsEnabled:4,interactivePlacementState:3,snappingEnabled:5,effectiveSpacingAfterDynamicScaling:43,placementDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1}}static{this.styles=N}get theme(){let e=this.gridColor;return!e||v.equals(e)?"dark":_.equals(e)?"light":"custom"}set theme(e){let i=this._viewModel.view;switch(e){case"dark":this.gridColor=v;break;case"custom":this.customColor==null&&(this.customColor=i?.theme?.accentColor??new O().accentColor),this.gridColor=this.customColor;break;case"light":default:this.gridColor=_;break}}async destroy(){await this.manager.destroy()}trySetDisplayEnabled(e){this._viewModel.trySetDisplayEnabled(e)}loaded(){this.manager.onLifecycle(()=>[R(()=>this._viewModel.gridColor,e=>{let i=e instanceof h?e:typeof e=="string"?h.fromHex(e):null;i&&!v.equals(e)&&!_.equals(i)?this.customColor=i:v.equals(i)?this.theme="dark":_.equals(i)&&(this.theme="light")})])}_togglePlacementState(e){this.interactivePlacementState=this.interactivePlacementState===e?null:e}_setWarningIconRef(e){this._warningIconTooltipRef=e}_setPopoverRef(e){this._themePopoverRef=e}_emptyFunction(e){}_setPlacementButtonRef(e){if(e){let i=e.dataset.placementAction;this._placementModeButtonRefs.set(i,e)}else this._placementModeButtonRefs.clear()}render(){return r`<div class=${c(p(s.base,f.widget,f.panel))}><div class=${c(s.container)}>${this._renderContent()}</div></div>`}_renderContent(){let{hideGridEnabledToggle:e,hidePlacementButtons:i,hideNumericInputs:t,hideLineIntervalInput:a,hideGridSnapEnabledToggle:o,hideDynamicScaleToggle:l,hideRotateWithMapToggle:d,hideColorSelection:g}=this;return[e?void 0:this._renderEnabledToggle(),i?void 0:this._renderGridPlacementButtons(),t?void 0:this._renderNumericInputs(),a?void 0:this._renderIntervalInput(),!o&&this.snappingOptions?this._renderSnappingToggle():void 0,l?void 0:this._renderDynamicScaleToggle(),d?void 0:this._renderRotateToggle(),g?void 0:this._renderColorSelection()]}_renderGridPlacementButtons(){let{interactivePlacementState:e,placementDisabled:i,gridControlsEnabled:t}=this,a=i||!t;return r`<calcite-label scale=s>${this._messages.placementOptions}<calcite-action-bar expand-disabled layout=horizontal>${j.map(o=>this._renderPlacementModeButton(o,a,e))}</calcite-action-bar></calcite-label>`}_renderPlacementModeButton(e,i,t){let a=this._messages?.placementState?.[e],o=this._placementModeButtonRefs.get(e);return r`<div><calcite-action .active=${t===e} alignment=center .disabled=${i} .icon=${u.placementState[e]} data-placement-action=${e??m} @click=${()=>this._togglePlacementState(e)} .text=${a??""} ${b(this._setPlacementButtonRef)}></calcite-action>${o?r`<calcite-tooltip overlay-positioning=fixed placement=top .referenceElement=${o}>${a}</calcite-tooltip>`:void 0}</div>`}_renderNumericInputs(){let{rotation:e,spacing:i,effectiveSpacingAfterDynamicScaling:t,numericSpacingInputShouldBeVisible:a,gridControlsEnabled:o}=this,l=t!=null&&t!==i;return r`<div class=${c(p(s.numericInputsContainer))}>${[a?r`<calcite-label scale=s><span>${this._messages?.inputLabel?.spacing}${l?r`<calcite-icon class=${c(p(s.inlineIcon))} .icon=${u.warning} scale=s tabindex=0 ${b(this._setWarningIconRef)}></calcite-icon>`:void 0}</span><calcite-input-number .disabled=${!o} number-button-type=none .value=${i?.toFixed(2)} @calciteInputNumberChange=${({currentTarget:d})=>{let g=Number.parseFloat(d.value);this.spacing=g,g!==this.spacing&&(d.value=`${this.spacing}`)}}></calcite-input-number>${l&&this._warningIconTooltipRef?r`<calcite-tooltip overlay-positioning=fixed placement=leading .referenceElement=${this._warningIconTooltipRef}>${D(this._messages?.warnings?.dynamicSpacing??"",{actualSpacingIncludingUnit:t},{format:{actualSpacingIncludingUnit:{type:"number",intlOptions:{minimumFractionDigits:2,maximumFractionDigits:2,unit:this.unit??"meters",style:"decimal"}}}})}</calcite-tooltip>`:void 0}</calcite-label>`:void 0,r`<calcite-label scale=s>${this._messages?.inputLabel?.angle}<calcite-input-number .disabled=${!o} integer number-button-type=none suffix-text=\u00B0 .value=${`${L(e)}`} @calciteInputNumberChange=${({currentTarget:d})=>this.rotation=B(d.value)}></calcite-input-number></calcite-label>`]}</div>`}_renderIntervalInput(){let{majorLineInterval:e,gridControlsEnabled:i}=this;return r`<div class=${c(p(s.numericInputsContainer))}><calcite-label scale=s>${this._messages?.inputLabel?.interval}<calcite-input-number .disabled=${!i} integer max=15 min=1 number-button-type=vertical .value=${`${e}`} @calciteInputNumberChange=${({currentTarget:t})=>{let a=Number.parseInt(t.value,10);this.majorLineInterval=a,a!==this.majorLineInterval&&(t.value=`${this.majorLineInterval}`)}}></calcite-input-number></calcite-label></div>`}_renderSnappingToggle(){let{snappingOptions:e,gridControlsEnabled:i}=this,t=e?.gridEnabled??!1;return r`<arcgis-labeled-switch .checked=${!!t} .disabled=${!(i&&e)} .label=${this._messages?.switchLabel?.snap} @arcgisCheckedChanged=${a=>{a.stopPropagation(),this.snappingOptions?.set("gridEnabled",a.detail)}}></arcgis-labeled-switch>`}_renderDynamicScaleToggle(){let{_messages:e,gridOutOfScale:i,dynamicScaling:t,gridControlsEnabled:a}=this,o=!this.hideOutOfScaleWarning&&i;return r`<arcgis-labeled-switch .checked=${t} .disabled=${!a} .hint=${o?e?.warnings?.outOfScale:void 0} .hintIcon=${u.warning} hint-kind=warning .label=${e?.switchLabel?.scaling} @arcgisCheckedChanged=${l=>{l.stopPropagation(),this.dynamicScaling=l.detail}}></arcgis-labeled-switch>`}_renderRotateToggle(){let{gridControlsEnabled:e,rotateWithMap:i}=this;return r`<arcgis-labeled-switch .checked=${i} .disabled=${!e} .label=${this._messages?.switchLabel?.rotateWithMap??""} @arcgisCheckedChanged=${t=>{t.stopPropagation(),this.rotateWithMap=t.detail}}></arcgis-labeled-switch>`}_renderEnabledToggle(){return r`<div class=${c(s.borderedSwitch)}><arcgis-labeled-switch .checked=${this.displayEnabled} .disabled=${!!this.interactivePlacementState} .label=${this._messages?.switchLabel?.display} @arcgisCheckedChanged=${e=>{e.stopPropagation(),this.trySetDisplayEnabled(e.detail)}}></arcgis-labeled-switch></div>`}_renderColorSelection(){let{customColor:e}=this;return r`<calcite-label scale=s>${this._messages?.inputLabel?.theme}<div class=${c(s.tileGroup)}>${[this._renderThemeTile({value:"dark"}),this._renderThemeTile({value:"light"}),this._renderThemeTile({value:"custom"}),this._themePopoverRef?r`<calcite-popover auto-close .label=${this._messages?.gridLineColorPopoverLabel??""} overlay-positioning=fixed .referenceElement=${this._themePopoverRef}><calcite-color-picker alpha-channel saved-disabled .value=${e?.toHex({digits:8})??"#000000ff"} @calciteColorPickerChange=${i=>{let t=h.fromHex(i.currentTarget.value);t&&(this.customColor=t,this.theme="custom")}}></calcite-color-picker></calcite-popover>`:void 0]}</div></calcite-label>`}_renderThemeTile(e){let{theme:i,gridControlsEnabled:t}=this,{value:a}=e,o=this._messages?.gridTheme?.[a],l=`${this._labelUid}--theme_tile_${a}`,d=`${l}__label`,g=u.gridTheme[a];return r`<div class=${c(p({[s.tile]:!0,[s.tileDisabled]:!t}))} role=button ${b(a==="custom"?this._setPopoverRef:this._emptyFunction)}><input aria-labelledby=${d??m} .checked=${i===a} .disabled=${!t} id=${l??m} .name=${`${this._labelUid}--theme`} @change=${P=>{this.theme=a,P.currentTarget.focus()}} tabindex=0 type=radio><div class=${c(s.tileContent)}><calcite-icon .icon=${g} scale=l></calcite-icon><calcite-label .for=${l} id=${d??m}>${o}</calcite-label></div></div>`}};C("arcgis-grid-controls",w);return w},"views/Theme","Color","intl","core/reactiveUtils","widgets/support/GridControls/GridControlsViewModel",a,d,e)
@@ -1,4 +1,4 @@
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.30 */
4
- import{a as p}from"./Z5MMZXMP.js";import{I as r,J as d,K as e,P as h,a as o,b as c,s}from"./K4HH7Q7F.js";import"./BBF2UUMF.js";var w=o`.label{--calcite-label-margin-bottom: 0}.label-content{display:flex;flex:1;gap:var(--calcite-spacing-sm);align-items:center;text-wrap:balance}.label-content>div{flex-grow:1}.icon{margin-top:-1px;&.info{color:var(--calcite-color-status-info)}&.warning{color:var(--calcite-color-status-warning)}}.tooltip{text-wrap:wrap}`,t={label:"label",labelContent:"label-content",iconInfo:"icon info",iconWarning:"icon warning",tooltip:"tooltip"},n=class extends d{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.hintKind="info",this.arcgisCheckedChanged=s()}static{this.properties={_icon:16,checked:7,disabled:7,label:1,hint:1,hintIcon:1,hintKind:1}}static{this.styles=w}async destroy(){await this.manager.destroy()}_setIconRef(i){this._icon=i}render(){let{label:i,hint:l,hintKind:b,hintIcon:g,checked:m,disabled:f}=this;return c`<calcite-label class=${e(t.label)} layout=inline-space-between scale=s>${l?p("label-content",c`<div class=${e(t.labelContent)}><div>${i}</div><calcite-icon class=${e(b!=="warning"?t.iconInfo:t.iconWarning)} .icon=${g??"information"} @click=${a=>a.stopPropagation()} scale=s tabindex=0 ${r(this._setIconRef)}></calcite-icon><calcite-tooltip class=${e(t.tooltip)} overlay-positioning=fixed .referenceElement=${this._icon??void 0}>${l}</calcite-tooltip></div>`):i}<calcite-switch .checked=${m} .disabled=${f} scale=s @calciteSwitchChange=${a=>{this.checked=a.target.checked,this.arcgisCheckedChanged.emit(a.target.checked)}}></calcite-switch></calcite-label>`}};h("arcgis-labeled-switch",n);export{n as LabeledSwitch};
3
+ v5.0.0-next.32 */
4
+ import{a as p}from"./6U5UZ75P.js";import{I as r,J as d,K as e,P as h,a as o,b as c,s}from"./XZ363IBS.js";import"./II73U7PI.js";var w=o`.label{--calcite-label-margin-bottom: 0}.label-content{display:flex;flex:1;gap:var(--calcite-spacing-sm);align-items:center;text-wrap:balance}.label-content>div{flex-grow:1}.icon{margin-top:-1px;&.info{color:var(--calcite-color-status-info)}&.warning{color:var(--calcite-color-status-warning)}}.tooltip{text-wrap:wrap}`,t={label:"label",labelContent:"label-content",iconInfo:"icon info",iconWarning:"icon warning",tooltip:"tooltip"},n=class extends d{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.hintKind="info",this.arcgisCheckedChanged=s()}static{this.properties={_icon:16,checked:7,disabled:7,label:1,hint:1,hintIcon:1,hintKind:1}}static{this.styles=w}async destroy(){await this.manager.destroy()}_setIconRef(i){this._icon=i}render(){let{label:i,hint:l,hintKind:b,hintIcon:g,checked:m,disabled:f}=this;return c`<calcite-label class=${e(t.label)} layout=inline-space-between scale=s>${l?p("label-content",c`<div class=${e(t.labelContent)}><div>${i}</div><calcite-icon class=${e(b!=="warning"?t.iconInfo:t.iconWarning)} .icon=${g??"information"} @click=${a=>a.stopPropagation()} scale=s tabindex=0 ${r(this._setIconRef)}></calcite-icon><calcite-tooltip class=${e(t.tooltip)} overlay-positioning=fixed .referenceElement=${this._icon??void 0}>${l}</calcite-tooltip></div>`):i}<calcite-switch .checked=${m} .disabled=${f} scale=s @calciteSwitchChange=${a=>{this.checked=a.target.checked,this.arcgisCheckedChanged.emit(a.target.checked)}}></calcite-switch></calcite-label>`}};h("arcgis-labeled-switch",n);export{n as LabeledSwitch};
@@ -1,4 +1,4 @@
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.30 */
4
- import{C as c,d as o,fa as R,i as f,k as m}from"./NUWJO552.js";import{a as d}from"./NB6FYZSP.js";import{g as h}from"./SBWVZPEI.js";var n=class extends c{constructor(){super(...arguments),Object.defineProperty(this,"ix",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"iy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_generator",{enumerable:!0,configurable:!0,writable:!0,value:R()})}_getTooltipPoint(){let i=this.get("tooltipX"),t=this.get("tooltipY"),s=0,a=0;h(i)&&(s=i),h(t)&&(a=t);let r=this.get("radius",0),e=this.get("innerRadius",0),l=this.get("dRadius",0),u=this.get("dInnerRadius",0);return r+=l,e+=u,e<0&&(e=r+e),i instanceof d&&(s=this.ix*(e+(r-e)*i.value)),t instanceof d&&(a=this.iy*(e+(r-e)*t.value)),this.get("arc")>=360&&e==0&&(s=0,a=0),{x:s,y:a}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let i=this.get("startAngle",0),t=this.get("arc",0),s=this._generator;t<0&&(i=i+t,t=t*-1),t>.1&&s.cornerRadius(this.get("cornerRadius",0)),s.context(this._display);let a=this.get("radius",0),r=this.get("innerRadius",0),e=this.get("dRadius",0),l=this.get("dInnerRadius",0);a+=e,r+=l,r<0&&(r=a+r),s({innerRadius:r,outerRadius:a,startAngle:(i+90)*o,endAngle:(i+t+90)*o});let u=i+t/2;this.ix=m(u),this.iy=f(u);let g=this.get("shiftRadius",0);this.setRaw("dx",this.ix*g),this.setRaw("dy",this.iy*g),this.markDirtyPosition()}}};Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Slice"});Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:c.classNames.concat([n.className])});export{n as a};
3
+ v5.0.0-next.32 */
4
+ import{C as c,d as o,fa as R,i as f,k as m}from"./IDEHN3HQ.js";import{a as d}from"./GAFNTBMC.js";import{g as h}from"./TDTXZVX7.js";var n=class extends c{constructor(){super(...arguments),Object.defineProperty(this,"ix",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"iy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_generator",{enumerable:!0,configurable:!0,writable:!0,value:R()})}_getTooltipPoint(){let i=this.get("tooltipX"),t=this.get("tooltipY"),s=0,a=0;h(i)&&(s=i),h(t)&&(a=t);let r=this.get("radius",0),e=this.get("innerRadius",0),l=this.get("dRadius",0),u=this.get("dInnerRadius",0);return r+=l,e+=u,e<0&&(e=r+e),i instanceof d&&(s=this.ix*(e+(r-e)*i.value)),t instanceof d&&(a=this.iy*(e+(r-e)*t.value)),this.get("arc")>=360&&e==0&&(s=0,a=0),{x:s,y:a}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let i=this.get("startAngle",0),t=this.get("arc",0),s=this._generator;t<0&&(i=i+t,t=t*-1),t>.1&&s.cornerRadius(this.get("cornerRadius",0)),s.context(this._display);let a=this.get("radius",0),r=this.get("innerRadius",0),e=this.get("dRadius",0),l=this.get("dInnerRadius",0);a+=e,r+=l,r<0&&(r=a+r),s({innerRadius:r,outerRadius:a,startAngle:(i+90)*o,endAngle:(i+t+90)*o});let u=i+t/2;this.ix=m(u),this.iy=f(u);let g=this.get("shiftRadius",0);this.setRaw("dx",this.ix*g),this.setRaw("dy",this.iy*g),this.markDirtyPosition()}}};Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Slice"});Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:c.classNames.concat([n.className])});export{n as a};
@@ -1,4 +1,4 @@
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.30 */
4
- import a from"./AUBNL7NN.js";import{K as w,L as u,N as x,b as v,c as g}from"./K4HH7Q7F.js";export default $arcgis.t(([{renderColorRampPreviewHTML:L},{e:p,g:$,h:E}])=>{var A=10,y=20,h=10,b=20,z={univariateAboveAndBelowSymbol:"arcgis-univariate-above-and-below-ramp__symbol",colorRamp:"arcgis-legend__color-ramp"};function m(n){return typeof n=="number"}function C(n="vertical"){let e="stroke:rgb(200, 200, 200);stroke-width:1";return n==="vertical"?v`<svg height=4 width=10>${g`<line style=${u(e)} x1=0 x2=10 y1=2 y2=2 />`}</svg>`:v`<svg height=10 width=10>${g`<line style=${u(e)} x1=5 x2=5 y1=0 y2=10 />`}</svg>`}function _(n,e="vertical"){let s={height:`${y}px`,opacity:n?.toString()};return v`<div class=${w(z.univariateAboveAndBelowSymbol)} style=${u(s)}>${C(e)}</div>`}function M(n,e,s,o="vertical",i){n.infos.forEach((t,l)=>{if(i&&l===2){t.preview=x(_(s,o));return}else{let a=(m(t.size)?p(t.size):0)+(o==="horizontal"?b:h),f=t.preview,c=f?.tagName.toLowerCase()==="div",r=c?f:document.createElement("div");r.className=z.univariateAboveAndBelowSymbol,o==="horizontal"?r.style.width=`${a}px`:r.style.height=`${a}px`,!c&&f&&r.appendChild(f),E(r,$(e,t.label)),t.preview=r}})}function I(n,e="classic"){let s=n.infos,o=s.at(0),i=s.at(-1),t=m(o.size)?p(o.size):0,l=m(i.size)?p(i.size):0;return e==="classic"?(t+h)/2:(t-l)/2}function P(n,e){if(!n)return null;let s=n.infos.map(i=>i.color),o=L(e.type==="full"?s:e.type==="above"?s.slice(0,3):s.slice(2,5),{width:e.width??void 0,height:e.height??void 0,align:e.rampAlignment,cssEffectFilter:e.cssEffectFilter,ariaLabel:e.ariaLabel??void 0});return o.className=z.colorRamp,e.opacity!=null&&(o.style.opacity=e.opacity.toString()),o}function k(n,e,s,o="vertical"){let i=0,t=n.infos,l=Math.floor(t.length/2),a=e==="full"||e==="above"?0:l,f=e==="full"||e==="below"?t.length-1:l;for(let c=a;c<=f;c++)if(s&&c===l)i+=o==="horizontal"?A:y;else{let r=t[c].size,d=(m(r)?p(r):0)+(o==="horizontal"?b:h);i+=d}return Math.round(i)}function T(n,e,s,o="vertical"){let i=k(n,e,s,o),t=n.infos,l=Math.floor(t.length/2),a=e==="full"||e==="above"?0:l,f=e==="full"||e==="below"?t.length-1:l,c=m(t[a].size)?t[a].size:0,r=m(t[f].size)?t[f].size:0,d=e==="full"?c+r:e==="above"?c:r,R=s?o==="vertical"?y:A:0,S=o==="vertical"?h*(e==="full"?2:1):b*(e==="full"?2:1);return Math.round(i-(p(d)/2+R/2+S/2))}function j(n,e,s,o="vertical"){let i=n.infos,t=i.find(({type:a})=>a==="size-ramp"),l=i.find(({type:a})=>a==="color-ramp");return t&&(t={...t},t.infos=[...t.infos],M(t,e,s,o,!0)),l&&(l={...l},l.infos=[...l.infos]),o==="horizontal"&&(t?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:t,colorRampElement:l}}function q(n,e,s="vertical"){let o=n.infos,i=o.find(({type:l})=>l==="size-ramp"),t=o.find(({type:l})=>l==="color-ramp");return i&&(i={...i},i.infos=[...i.infos],M(i,e,null,s,!1)),t&&(t={...t},t.infos=[...t.infos]),s==="horizontal"&&(i?.infos.reverse(),t?.infos.reverse()),{sizeRampElement:i,colorRampElement:t}}var D={marginLeft:"3px"},U={display:"table-cell",verticalAlign:"middle"},W={display:"flex",alignItems:"flex-start"};return{a:I,b:P,c:k,d:T,e:j,f:q,g:D,h:U,i:W}},"symbols/support/symbolUtils",a)
3
+ v5.0.0-next.32 */
4
+ import a from"./DD6IXKAB.js";import{K as w,L as u,N as x,b as v,c as g}from"./XZ363IBS.js";export default $arcgis.t(([{renderColorRampPreviewHTML:L},{e:p,g:$,h:E}])=>{var A=10,y=20,h=10,b=20,z={univariateAboveAndBelowSymbol:"arcgis-univariate-above-and-below-ramp__symbol",colorRamp:"arcgis-legend__color-ramp"};function m(n){return typeof n=="number"}function C(n="vertical"){let e="stroke:rgb(200, 200, 200);stroke-width:1";return n==="vertical"?v`<svg height=4 width=10>${g`<line style=${u(e)} x1=0 x2=10 y1=2 y2=2 />`}</svg>`:v`<svg height=10 width=10>${g`<line style=${u(e)} x1=5 x2=5 y1=0 y2=10 />`}</svg>`}function _(n,e="vertical"){let s={height:`${y}px`,opacity:n?.toString()};return v`<div class=${w(z.univariateAboveAndBelowSymbol)} style=${u(s)}>${C(e)}</div>`}function M(n,e,s,o="vertical",i){n.infos.forEach((t,l)=>{if(i&&l===2){t.preview=x(_(s,o));return}else{let a=(m(t.size)?p(t.size):0)+(o==="horizontal"?b:h),f=t.preview,c=f?.tagName.toLowerCase()==="div",r=c?f:document.createElement("div");r.className=z.univariateAboveAndBelowSymbol,o==="horizontal"?r.style.width=`${a}px`:r.style.height=`${a}px`,!c&&f&&r.appendChild(f),E(r,$(e,t.label)),t.preview=r}})}function I(n,e="classic"){let s=n.infos,o=s.at(0),i=s.at(-1),t=m(o.size)?p(o.size):0,l=m(i.size)?p(i.size):0;return e==="classic"?(t+h)/2:(t-l)/2}function P(n,e){if(!n)return null;let s=n.infos.map(i=>i.color),o=L(e.type==="full"?s:e.type==="above"?s.slice(0,3):s.slice(2,5),{width:e.width??void 0,height:e.height??void 0,align:e.rampAlignment,cssEffectFilter:e.cssEffectFilter,ariaLabel:e.ariaLabel??void 0});return o.className=z.colorRamp,e.opacity!=null&&(o.style.opacity=e.opacity.toString()),o}function k(n,e,s,o="vertical"){let i=0,t=n.infos,l=Math.floor(t.length/2),a=e==="full"||e==="above"?0:l,f=e==="full"||e==="below"?t.length-1:l;for(let c=a;c<=f;c++)if(s&&c===l)i+=o==="horizontal"?A:y;else{let r=t[c].size,d=(m(r)?p(r):0)+(o==="horizontal"?b:h);i+=d}return Math.round(i)}function T(n,e,s,o="vertical"){let i=k(n,e,s,o),t=n.infos,l=Math.floor(t.length/2),a=e==="full"||e==="above"?0:l,f=e==="full"||e==="below"?t.length-1:l,c=m(t[a].size)?t[a].size:0,r=m(t[f].size)?t[f].size:0,d=e==="full"?c+r:e==="above"?c:r,R=s?o==="vertical"?y:A:0,S=o==="vertical"?h*(e==="full"?2:1):b*(e==="full"?2:1);return Math.round(i-(p(d)/2+R/2+S/2))}function j(n,e,s,o="vertical"){let i=n.infos,t=i.find(({type:a})=>a==="size-ramp"),l=i.find(({type:a})=>a==="color-ramp");return t&&(t={...t},t.infos=[...t.infos],M(t,e,s,o,!0)),l&&(l={...l},l.infos=[...l.infos]),o==="horizontal"&&(t?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:t,colorRampElement:l}}function q(n,e,s="vertical"){let o=n.infos,i=o.find(({type:l})=>l==="size-ramp"),t=o.find(({type:l})=>l==="color-ramp");return i&&(i={...i},i.infos=[...i.infos],M(i,e,null,s,!1)),t&&(t={...t},t.infos=[...t.infos]),s==="horizontal"&&(i?.infos.reverse(),t?.infos.reverse()),{sizeRampElement:i,colorRampElement:t}}var D={marginLeft:"3px"},U={display:"table-cell",verticalAlign:"middle"},W={display:"flex",alignItems:"flex-start"};return{a:I,b:P,c:k,d:T,e:j,f:q,g:D,h:U,i:W}},"symbols/support/symbolUtils",a)
@@ -1,4 +1,4 @@
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.30 */
3
+ v5.0.0-next.32 */
4
4
  var n=class t{constructor(e){Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=e}get value(){return this._value/100}get percent(){return this._value}toString(){return""+this._value+"%"}interpolate(e,r){return e+this.value*(r-e)}static normalize(e,r,o){return e instanceof t?e:r===o?new t(0):new t(Math.min(Math.max((e-r)*(1/(o-r)),0),1)*100)}};function u(t){return new n(t)}var a=u(0),i=u(100),s=u(50);function l(t){return t instanceof n}export{n as a,u as b,a as c,i as d,s as e,l as f};
@@ -1,4 +1,4 @@
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.30 */
4
- import{a as ve}from"./UIEHONGS.js";import{B as de,C as q,K as re,M as fe,N as _e,ba as ue,c as R,ea as xe,i as P,j as v,k as A,l as me,la as ce,m as he,ma as ae,n as be,na as we,o as te}from"./NUWJO552.js";import{N as O,a as H,u as k}from"./NGRN6PRP.js";import{a as ge,b as ee,d as T,e as f}from"./NB6FYZSP.js";import{U as j,V as ye,g as X,o as w}from"./SBWVZPEI.js";import"./BBF2UUMF.js";var ie=class extends ye{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this.rule.bind(this);e("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:we.new(this._root,{}),width:T,height:T}),e("PieChart").setAll({radius:ee(80),startAngle:-90,endAngle:270}),e("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),e("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),e("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),e("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),e("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),e("Slice",["pie"]).states.create("hover",{scale:1.04}),e("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),e("Tick",["pie"]).setAll({location:1}),e("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),e("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),e("FunnelSlice").setAll({interactive:!0,expandDistance:0}),e("FunnelSlice").states.create("hover",{expandDistance:.15}),e("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["funnel"]).setAll({location:1}),e("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),e("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),e("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),e("PyramidSeries").setAll({valueIs:"area"}),e("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),e("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),e("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),e("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),e("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),e("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["pyramid"]).setAll({location:1}),e("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),e("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),e("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),e("Tick",["pictorial"]).setAll({location:.5});{let i=e("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),_e(i,"fill",t,"alternativeBackground")}}};var $=class extends ce{_afterNew(){this._defaultThemes.push(ie.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(t){super._processSeries(t),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};Object.defineProperty($,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentChart"});Object.defineProperty($,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ce.classNames.concat([$.className])});var C=class extends ue{constructor(){super(...arguments),Object.defineProperty(this,"slicesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"ticksContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"_lLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_rLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_hLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeSlices())}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLabels())}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeTicks())})}makeSlice(t){let e=this.slicesContainer.children.push(this.slices.make());return e.on("fill",()=>{this.updateLegendMarker(t)}),e.on("fillPattern",()=>{this.updateLegendMarker(t)}),e.on("stroke",()=>{this.updateLegendMarker(t)}),e._setDataItem(t),t.set("slice",e),this.slices.push(e),e}makeLabel(t){let e=this.labelsContainer.children.push(this.labels.make());return e._setDataItem(t),t.set("label",e),this.labels.push(e),e}_shouldMakeBullet(t){return t.get("value")!=null}makeTick(t){let e=this.ticksContainer.children.push(this.ticks.make());return e._setDataItem(t),t.set("tick",e),this.ticks.push(e),e}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let t=this.get("colors");t&&t.reset();let e=this.get("patterns");e&&e.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let t=0,e=0,i=0,s=1/0,r=0;w(this._dataItems,a=>{let l=a.get("valueWorking",0);t+=l,e+=Math.abs(l)}),w(this._dataItems,a=>{let l=a.get("valueWorking",0);l>i&&(i=l),l<s&&(s=l),r++;let n=l/e;e==0&&(n=0),a.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",t),this.setPrivateRaw("valueAverage",t/r),this.setPrivateRaw("valueAbsoluteSum",e)}}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.show.call(this,t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.hide.call(this,t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&w(this._dataItems,t=>{t.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&w(this._dataItems,t=>{this.updateLegendValue(t)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),w(this.dataItems,t=>{this._updateTick(t)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(t){if(super.processDataItem(t),t.get("fill")==null){let e=this.get("colors");e&&t.setRaw("fill",e.next())}if(t.get("fillPattern")==null){let e=this.get("patterns");e&&t.setRaw("fillPattern",e.next())}}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];X(e)||(e=this.get("stateAnimationDuration",0));let r=this.get("stateAnimationEasing"),a=t.get("value"),l=t.animate({key:"valueWorking",to:a,duration:e,easing:r});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.show(e));let u=t.get("label");u&&s.push(u.show(e));let o=t.get("slice");o&&s.push(o.show(e)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],r=this.states.create("hidden",{});X(e)||(e=r.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let a=r.get("stateAnimationEasing",this.get("stateAnimationEasing")),l=t.animate({key:"valueWorking",to:0,duration:e,easing:a});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.hide(e));let u=t.get("label");u&&s.push(u.hide(e));let o=t.get("slice");o.hideTooltip(),o&&s.push(o.hide(e)),yield Promise.all(s)})}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("label");e&&(this.labels.removeValue(e),e.dispose());let i=t.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=t.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(t){let e=t.get("slice");e&&!e.isHidden()&&e.hover()}unhoverDataItem(t){let e=t.get("slice");e&&e.unhover()}updateLegendMarker(t){if(t){let e=t.get("slice");if(e){let i=t.get("legendDataItem");if(i){let s=i.get("markerRectangle");w(de,r=>{e.get(r)!=null&&s.set(r,e.get(r))})}}}}_arrangeDown(t){if(t){let e=this._getNextDown();t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.top;i.y+r<e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(t){if(t){let e=this._getNextUp();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.bottom;i.y+r>e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.top})}}_arrangeRight(t){if(t){let e=0;t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.left;i.y+r<e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.right})}}_arrangeLeft(t){if(t){let e=this.labelsContainer.maxWidth();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.right;i.y+r>e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(t){}_dispose(){super._dispose();let t=this.chart;t&&t.series.removeValue(this)}};Object.defineProperty(C,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentSeries"});Object.defineProperty(C,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ue.classNames.concat([C.className])});var G=class extends ${constructor(){super(...arguments),Object.defineProperty(this,"_maxRadius",{enumerable:!0,configurable:!0,writable:!0,value:1})}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_prepareChildren(){super._prepareChildren();let t=this.chartContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.get("startAngle",0),r=this.get("endAngle",0),a=this.get("innerRadius"),l=he(0,0,s,r,1),n=e/(l.right-l.left),u=i/(l.bottom-l.top),o={left:0,right:0,top:0,bottom:0};if(a instanceof ge){let p=a.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,e))/g,o=he(0,0,s,r,p),this.setPrivateRaw("irModifyer",p/a.value)}l=be([l,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=k(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(l.bottom+l.top)/2,dx:-h*(l.right+l.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(t){let e=k(this.get("radius",0),this._maxRadius),i=k(this.get("innerRadius",0),e);if(t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("radius");return a!=null?i+k(a,e-i):i+(e-i)/r*(s+1)}return e}innerRadius(t){let e=this.radius(),i=k(this.get("innerRadius",0),e);if(i<0&&(i=e+i),t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("innerRadius");return a!=null?i+k(a,e-i):i+(e-i)/r*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};Object.defineProperty(G,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieChart"});Object.defineProperty(G,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([G.className])});var U=class extends C{_makeSlices(){return new R(j.new({}),()=>ve._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>xe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e.on("scale",()=>{this._updateTick(t)}),e.on("shiftRadius",()=>{this._updateTick(t)}),e.events.on("positionchanged",()=>{this._updateTick(t)});let i=this.makeLabel(t);i.events.on("positionchanged",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let t=this.chart;return t?t._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let t=this.chart;return t?-t._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let t=this.chart;if(t){if(this.isDirty("alignLabels")){let e=this.labels.template;if(this.get("alignLabels"))e.set("textType","aligned");else{let i=e.get("textType");(i==null||i=="aligned")&&e.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let e=this.get("startAngle",t.get("startAngle",-90)),s=this.get("endAngle",t.get("endAngle",270))-e,r=e,a=t.radius(this);this.setPrivateRaw("radius",a);let l=t.innerRadius(this)*t.getPrivate("irModifyer",1);l<0&&(l=a+l),w(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",a),o.set("innerRadius",l),o.set("startAngle",r),o.set("arc",u);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=me(r+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",a),h.setPrivate("innerRadius",l),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=a+h.get("radius",0),g=a*P(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",T),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",a*P(m))}r+=u,this._updateTick(n)})}}}_updateTick(t){let e=t.get("tick"),i=t.get("label"),s=t.get("slice"),r=e.get("location",1);if(e&&i&&s){let a=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*r,l=i.get("labelAngle",0),n=A(l),u=P(l),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let c=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),_=i.get("labelAngle",0);p=y*A(_),g=y*P(_)}let b=-h;i.getPrivate("left")&&(b=m),c=[{x:s.x()+a*n,y:s.y()+a*u},{x:p+b,y:g},{x:p,y:g}]}e.set("points",c)}}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.get("innerRadius",0),a=s.get("radius",0),l=s.get("startAngle",0),n=s.get("arc",0),u=t.get("locationX",.5),o=t.get("locationY",.5),m=l+n*u,h=r+(a-r)*o;e.setAll({x:A(m)*h,y:P(m)*h})}}}};Object.defineProperty(U,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieSeries"});Object.defineProperty(U,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([U.className])});var M=class extends q{constructor(){super(...arguments),Object.defineProperty(this,"_projectionDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tlx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_trx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_try",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_blx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_brx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cprx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cplx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cpry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cply",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){super._afterNew(),this.set("draw",t=>{let e=this.width(),i=this.height(),s=Math.min(e,i)/2,r=k(this.get("cornerRadiusTL",0),s),a=k(this.get("cornerRadiusTR",0),s),l=k(this.get("cornerRadiusBR",0),s),n=k(this.get("cornerRadiusBL",0),s),u=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,c=this._blx,b=this._bly;o==h&&(o=o-.01),g==b&&(g=g-.01);let y=te({x:m,y:h},{x:u,y:o}),_=te({x:u,y:o},{x:p,y:g}),x=te({x:p,y:g},{x:c,y:b}),d=te({x:c,y:b},{x:m,y:h});this.get("orientation")=="horizontal"?(r=Math.min(r,Math.abs(h-o)/2),a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(b-g)/2),n=Math.min(n,Math.abs(b-g)/2)):(r=Math.min(r,Math.abs(m-u)/2),a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let D=m-r*v((y-d)/2)*A(d),S=h-r*v((y-d)/2)*P(d),Y=m-r*v((d-y)/2)*A(y),Z=h-r*v((d-y)/2)*P(y),N=u-a*v((_-y)/2)*A(y),ne=o-a*v((_-y)/2)*P(y),z=u-a*v((y-_)/2)*A(_),B=o-a*v((y-_)/2)*P(_),J=p-l*v((x-_)/2)*A(_),F=g-l*v((x-_)/2)*P(_),Q=p-l*v((_-x)/2)*A(x),I=g-l*v((_-x)/2)*P(x),pe=c-n*v((d-x)/2)*A(x),se=b-n*v((d-x)/2)*P(x),oe=c-n*v((x-d)/2)*A(d),Ae=b-n*v((x-d)/2)*P(d);t.moveTo(Y,Z),t.lineTo(N,ne),t.arcTo(u,o,z,B,a),t.quadraticCurveTo(this._cprx,this._cpry,J,F),t.arcTo(p,g,Q,I,l),t.lineTo(pe,se),t.arcTo(c,b,oe,Ae,n),t.quadraticCurveTo(this._cplx,this._cply,D,S),t.arcTo(m,h,Y,Z,r)})}getPoint(t,e){let i=this.width(),s=this.height(),r=this.get("topWidth",0),a=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*e,h=n+(u-n)*e;return{x:m+(h-m)*t,y:s*e}}else{let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*t,h=n+(u-n)*t;return{x:i*t,y:m+(h-m)*e}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")){let t=this.width(),e=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let r=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=e,this._blx=-s/2,this._bly=e,this._cprx=this._trx+(this._brx-this._trx)/2+r*e,this._cpry=this._try+.5*e,this._cplx=this._tlx+(this._blx-this._tlx)/2-r*e,this._cply=this._tly+.5*e):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=t,this._bly=s/2,this._blx=t,this._cpry=this._try+(this._bry-this._try)/2-r*t,this._cprx=this._trx+.5*t,this._cply=this._tly+(this._bly-this._tly)/2+r*t,this._cplx=this._tlx+.5*t)}super._changed()}};Object.defineProperty(M,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSlice"});Object.defineProperty(M,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:q.classNames.concat([M.className])});var W=class extends C{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"funnel"}),Object.defineProperty(this,"links",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLinks())}),Object.defineProperty(this,"_total",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_count",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_nextCoord",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_opposite",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_makeSlices(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>fe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(t){let e=this.slicesContainer.children.push(this.links.make());return e._setDataItem(t),t.set("link",e),this.links.push(e),e}_afterNew(){super._afterNew();let t=this.slicesContainer;t.setAll({isMeasured:!0,position:"relative",width:ee(100),height:ee(100)}),t.onPrivate("width",()=>{this.markDirtySize()}),t.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e._setDataItem(t),t.set("slice",e),this.makeLink(t);let i=this.makeLabel(t);i.on("x",()=>{this._updateTick(t)}),i.on("y",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()}),e.events.on("boundschanged",()=>{let s=e.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let t=0,e=0;if(w(this.dataItems,i=>{let s=i.get("value");X(s)&&(e++,s>0?t+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?e--:t+=1)}),this._total=1/e*t,this._count=e,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty)){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let r=0;w(this._dataItems,a=>{this.updateLegendValue(a),a.set("index",r),r++;let l=a.get("slice"),n=a.get("tick"),u=a.get("label"),o=a.get("link"),m=a.get("fill"),h=a.get("fillPattern");l._setDefault("fill",m),l._setDefault("stroke",m),l._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=a.get("value");X(p)&&(p==0&&this.get("ignoreZeroValues")?(l.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(l.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(a),this.isLast(a)?o.setPrivate("visible",!1):a.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let t=this.get("orientation"),e=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(e.set("position","relative"),e.setAll({isMeasured:!0}),t=="vertical"?(this.set("layout",this._root.horizontalLayout),i.setAll({centerX:T,x:T})):(this.set("layout",this._root.verticalLayout),i.setAll({centerX:0,x:0}))):(e.setAll({isMeasured:!1,position:"absolute"}),t=="vertical"?(e.setAll({x:f}),i.setAll({centerX:f,x:0})):(e.setAll({y:f}),i.setAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(t){let e=t.get("index"),i=t.get("valueWorking",0);if(e<this.dataItems.length-1){let s=this.dataItems[e+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(t){let e=t.get("index");if(e==this.dataItems.length-1)return!0;for(let i=e+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(t){let e=this.get("orientation"),i=t.get("slice"),s=t.get("label"),r=t.get("link"),a=this.slicesContainer,l=a.innerWidth(),n=a.innerHeight(),u=l;e=="horizontal"&&(u=n);let o=this.getNextValue(t),m=t.get("value",0),h=Math.abs(t.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):t.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let b=h/g*u,y=(h-(h-o)*p)/g*u;i.setAll({topWidth:b,bottomWidth:y,orientation:e}),r.setAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:e});let _=this.get("startLocation",0),x=this.get("endLocation",1);if(e=="vertical"){let d=r.height()*c;n=n*(x-_)+d,i.set("y",this._nextCoord);let D=Math.min(1e5,Math.max(0,n/this._count*c/this._total-d));i.setAll({height:D,x:l/2});let S=this._nextCoord+D/2;s.set("y",S),this._nextCoord+=D+d,r.setAll({y:this._nextCoord-d,x:l/2})}else{let d=r.width()*c;l=l*(x-_)+d,i.set("x",this._nextCoord);let D=Math.min(1e5,Math.max(0,l/this._count*c/this._total-d));i.setAll({width:D,y:n/2});let S=this._nextCoord+D/2;s.set("x",S),this._nextCoord+=D+d,r.setAll({x:this._nextCoord-d,y:n/2})}}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").hide(e),i.hideDataItem.call(this,t,e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").show(e),i.showDataItem.call(this,t,e)})}_updateTick(t){if(this.get("alignLabels")){let e=t.get("tick"),i=t.get("label"),s=t.get("slice");if(e&&s&&i){let r=this.labelsContainer,a=this.slicesContainer,l=e.get("location",.5),n=r.width(),u=r.height(),o=r.get("paddingLeft",0),m=r.get("paddingRight",0),h=r.get("paddingTop",0),p=r.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},b={x:0,y:0};this._opposite&&(l=1-l),this.get("orientation")=="vertical"?(g=s.getPoint(l,.5),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.x=n,c.y=i.y(),b.x=n-o,b.y=c.y):(c.x=a.x()+a.width(),c.y=i.y(),b.x=c.x+n-i.width()-m,b.y=c.y)):(g=s.getPoint(.5,l),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.y=u,c.x=i.x(),b.y=u-h,b.x=c.x):(c.y=a.y()+a.height(),c.x=i.x(),b.y=c.y+u-i.height()-p,b.x=c.x)),e.set("points",[g,c,b])}}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("link");e&&(this.links.removeValue(e),e.dispose())}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.width(),a=s.height(),l=t.get("locationX",.5),n=t.get("locationY",.5),u=0,o=0;this.get("orientation")=="horizontal"?o=a/2:u=r/2,e.setAll({x:s.x()+r*l-u,y:s.y()-o+a*n})}}}};Object.defineProperty(W,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSeries"});Object.defineProperty(W,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([W.className])});var V=class extends W{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pyramid"}),Object.defineProperty(this,"_nextSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0}decorateSlice(t){let e=this.get("orientation"),i=this.slicesContainer,s=t.get("slice"),r=t.get("label"),a=t.get("link"),l=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let u=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",T),p=Math.abs(t.get("valueWorking",0)),g=t.get("value",0),c,b,y=i.innerHeight(),_=i.innerWidth(),x=a.width(),d=a.height();e=="horizontal"&&([_,y]=[y,_],[x,d]=[d,x]);let D=_/2,S=1;g!=0?S=p/Math.abs(g):t.isHidden()&&(S=1e-6),d*=S,y=y*(o-u)-d*(this._count*this._total-1);let Y=k(m,_);X(this._nextSize)||(this._nextSize=Y);let Z=k(h,_),N=this._nextSize,ne=Math.atan2(y,Y-Z),z=Math.tan(Math.PI/2-ne);if(z==0&&(z=1e-8),l=="area"){let se=(Y+Z)/2*y*p/n,oe=Math.abs(N*N-2*se*z);c=(N-Math.sqrt(oe))/z,c>0?b=(2*se-c*N)/c:b=N}else c=y*p/n,b=N-c*z;let B=this._nextCoord+c/2,J=D,F=this._nextCoord,Q=D,I=F+c;e=="vertical"?(r.set("y",B),r.get("opacity")>0&&this._rLabels.push({label:r,y:B}),s.set("height",c)):(r.set("x",B),r.get("opacity")>0&&this._hLabels.push({label:r,y:B}),[J,F]=[F,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:e,bottomWidth:b,topWidth:N,x:J,y:F}),a.setAll({orientation:e,x:Q,y:I,topWidth:b,bottomWidth:b}),this._nextSize=b,this._nextCoord+=c+d}};Object.defineProperty(V,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PyramidSeries"});Object.defineProperty(V,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:W.classNames.concat([V.className])});var K=class extends V{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pictorial"}),Object.defineProperty(this,"seriesMask",{enumerable:!0,configurable:!0,writable:!0,value:q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f})}),Object.defineProperty(this,"seriesGraphics",{enumerable:!0,configurable:!0,writable:!0,value:this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f}))})}_afterNew(){super._afterNew(),this.set("topWidth",T),this.set("bottomWidth",T),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let t=this.slicesContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.seriesMask,r=this.seriesGraphics,a=s.get("scale",1),l=s.localBounds(),n=l.right-l.left,u=l.bottom-l.top;this.get("orientation")=="horizontal"?a=e/n:a=i/u,a!=1/0&&a!=NaN&&(s.set("scale",a),s.set("x",e/2),s.set("y",i/2),r.set("scale",a),r.set("x",e/2),r.set("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let t=this.get("svgPath");this.seriesMask.set("svgPath",t),this.seriesGraphics.set("svgPath",t)}this._updateScale()}};Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PictorialStackedSeries"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:V.classNames.concat([K.className])});var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};Object.defineProperty(E,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SlicedChart"});Object.defineProperty(E,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([E.className])});export{ie as DefaultTheme,W as FunnelSeries,M as FunnelSlice,$ as PercentChart,C as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,V as PyramidSeries,E as SlicedChart};
3
+ v5.0.0-next.32 */
4
+ import{a as ve}from"./FXW5JMXQ.js";import{B as de,C as q,K as re,M as fe,N as _e,ba as ue,c as R,ea as xe,i as P,j as v,k as A,l as me,la as ce,m as he,ma as ae,n as be,na as we,o as te}from"./IDEHN3HQ.js";import{N as O,a as H,u as k}from"./VSAKIYC7.js";import{a as ge,b as ee,d as T,e as f}from"./GAFNTBMC.js";import{U as j,V as ye,g as X,o as w}from"./TDTXZVX7.js";import"./II73U7PI.js";var ie=class extends ye{setupDefaultRules(){super.setupDefaultRules();let t=this._root.interfaceColors,e=this.rule.bind(this);e("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:we.new(this._root,{}),width:T,height:T}),e("PieChart").setAll({radius:ee(80),startAngle:-90,endAngle:270}),e("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),e("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),e("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),e("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),e("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),e("Slice",["pie"]).states.create("hover",{scale:1.04}),e("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),e("Tick",["pie"]).setAll({location:1}),e("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),e("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),e("FunnelSlice").setAll({interactive:!0,expandDistance:0}),e("FunnelSlice").states.create("hover",{expandDistance:.15}),e("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["funnel"]).setAll({location:1}),e("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),e("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),e("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),e("PyramidSeries").setAll({valueIs:"area"}),e("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),e("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),e("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),e("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),e("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),e("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),e("Tick",["pyramid"]).setAll({location:1}),e("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),e("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),e("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),e("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),e("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),e("Tick",["pictorial"]).setAll({location:.5});{let i=e("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),_e(i,"fill",t,"alternativeBackground")}}};var $=class extends ce{_afterNew(){this._defaultThemes.push(ie.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(t){super._processSeries(t),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};Object.defineProperty($,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentChart"});Object.defineProperty($,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ce.classNames.concat([$.className])});var C=class extends ue{constructor(){super(...arguments),Object.defineProperty(this,"slicesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"ticksContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(re.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"_lLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_rLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_hLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeSlices())}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLabels())}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeTicks())})}makeSlice(t){let e=this.slicesContainer.children.push(this.slices.make());return e.on("fill",()=>{this.updateLegendMarker(t)}),e.on("fillPattern",()=>{this.updateLegendMarker(t)}),e.on("stroke",()=>{this.updateLegendMarker(t)}),e._setDataItem(t),t.set("slice",e),this.slices.push(e),e}makeLabel(t){let e=this.labelsContainer.children.push(this.labels.make());return e._setDataItem(t),t.set("label",e),this.labels.push(e),e}_shouldMakeBullet(t){return t.get("value")!=null}makeTick(t){let e=this.ticksContainer.children.push(this.ticks.make());return e._setDataItem(t),t.set("tick",e),this.ticks.push(e),e}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let t=this.get("colors");t&&t.reset();let e=this.get("patterns");e&&e.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let t=0,e=0,i=0,s=1/0,r=0;w(this._dataItems,a=>{let l=a.get("valueWorking",0);t+=l,e+=Math.abs(l)}),w(this._dataItems,a=>{let l=a.get("valueWorking",0);l>i&&(i=l),l<s&&(s=l),r++;let n=l/e;e==0&&(n=0),a.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",t),this.setPrivateRaw("valueAverage",t/r),this.setPrivateRaw("valueAbsoluteSum",e)}}show(t){let e=Object.create(null,{show:{get:()=>super.show}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.show.call(this,t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)})}hide(t){let e=Object.create(null,{hide:{get:()=>super.hide}});return H(this,void 0,void 0,function*(){let i=[];i.push(e.hide.call(this,t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&w(this._dataItems,t=>{t.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&w(this._dataItems,t=>{this.updateLegendValue(t)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),w(this.dataItems,t=>{this._updateTick(t)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(t){if(super.processDataItem(t),t.get("fill")==null){let e=this.get("colors");e&&t.setRaw("fill",e.next())}if(t.get("fillPattern")==null){let e=this.get("patterns");e&&t.setRaw("fillPattern",e.next())}}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,t,e)];X(e)||(e=this.get("stateAnimationDuration",0));let r=this.get("stateAnimationEasing"),a=t.get("value"),l=t.animate({key:"valueWorking",to:a,duration:e,easing:r});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.show(e));let u=t.get("label");u&&s.push(u.show(e));let o=t.get("slice");o&&s.push(o.show(e)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,t,e)],r=this.states.create("hidden",{});X(e)||(e=r.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let a=r.get("stateAnimationEasing",this.get("stateAnimationEasing")),l=t.animate({key:"valueWorking",to:0,duration:e,easing:a});l&&s.push(l.waitForStop());let n=t.get("tick");n&&s.push(n.hide(e));let u=t.get("label");u&&s.push(u.hide(e));let o=t.get("slice");o.hideTooltip(),o&&s.push(o.hide(e)),yield Promise.all(s)})}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("label");e&&(this.labels.removeValue(e),e.dispose());let i=t.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=t.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(t){let e=t.get("slice");e&&!e.isHidden()&&e.hover()}unhoverDataItem(t){let e=t.get("slice");e&&e.unhover()}updateLegendMarker(t){if(t){let e=t.get("slice");if(e){let i=t.get("legendDataItem");if(i){let s=i.get("markerRectangle");w(de,r=>{e.get(r)!=null&&s.set(r,e.get(r))})}}}}_arrangeDown(t){if(t){let e=this._getNextDown();t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.top;i.y+r<e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(t){if(t){let e=this._getNextUp();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.bottom;i.y+r>e&&(i.y=e-r),i.label.set("y",i.y),e=i.y+s.top})}}_arrangeRight(t){if(t){let e=0;t.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.left;i.y+r<e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.right})}}_arrangeLeft(t){if(t){let e=this.labelsContainer.maxWidth();t.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),w(t,i=>{let s=i.label.adjustedLocalBounds(),r=s.right;i.y+r>e&&(i.y=e-r),i.label.set("x",i.y),e=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(t){}_dispose(){super._dispose();let t=this.chart;t&&t.series.removeValue(this)}};Object.defineProperty(C,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentSeries"});Object.defineProperty(C,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ue.classNames.concat([C.className])});var G=class extends ${constructor(){super(...arguments),Object.defineProperty(this,"_maxRadius",{enumerable:!0,configurable:!0,writable:!0,value:1})}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_prepareChildren(){super._prepareChildren();let t=this.chartContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.get("startAngle",0),r=this.get("endAngle",0),a=this.get("innerRadius"),l=he(0,0,s,r,1),n=e/(l.right-l.left),u=i/(l.bottom-l.top),o={left:0,right:0,top:0,bottom:0};if(a instanceof ge){let p=a.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,e))/g,o=he(0,0,s,r,p),this.setPrivateRaw("irModifyer",p/a.value)}l=be([l,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=k(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(l.bottom+l.top)/2,dx:-h*(l.right+l.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(t){let e=k(this.get("radius",0),this._maxRadius),i=k(this.get("innerRadius",0),e);if(t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("radius");return a!=null?i+k(a,e-i):i+(e-i)/r*(s+1)}return e}innerRadius(t){let e=this.radius(),i=k(this.get("innerRadius",0),e);if(i<0&&(i=e+i),t){let s=this.series.indexOf(t),r=this.series.length,a=t.get("innerRadius");return a!=null?i+k(a,e-i):i+(e-i)/r*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};Object.defineProperty(G,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieChart"});Object.defineProperty(G,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([G.className])});var U=class extends C{_makeSlices(){return new R(j.new({}),()=>ve._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>xe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e.on("scale",()=>{this._updateTick(t)}),e.on("shiftRadius",()=>{this._updateTick(t)}),e.events.on("positionchanged",()=>{this._updateTick(t)});let i=this.makeLabel(t);i.events.on("positionchanged",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let t=this.chart;return t?t._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let t=this.chart;return t?-t._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let t=this.chart;if(t){if(this.isDirty("alignLabels")){let e=this.labels.template;if(this.get("alignLabels"))e.set("textType","aligned");else{let i=e.get("textType");(i==null||i=="aligned")&&e.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let e=this.get("startAngle",t.get("startAngle",-90)),s=this.get("endAngle",t.get("endAngle",270))-e,r=e,a=t.radius(this);this.setPrivateRaw("radius",a);let l=t.innerRadius(this)*t.getPrivate("irModifyer",1);l<0&&(l=a+l),w(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",a),o.set("innerRadius",l),o.set("startAngle",r),o.set("arc",u);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=me(r+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",a),h.setPrivate("innerRadius",l),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=a+h.get("radius",0),g=a*P(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",T),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",a*P(m))}r+=u,this._updateTick(n)})}}}_updateTick(t){let e=t.get("tick"),i=t.get("label"),s=t.get("slice"),r=e.get("location",1);if(e&&i&&s){let a=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*r,l=i.get("labelAngle",0),n=A(l),u=P(l),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let c=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),_=i.get("labelAngle",0);p=y*A(_),g=y*P(_)}let b=-h;i.getPrivate("left")&&(b=m),c=[{x:s.x()+a*n,y:s.y()+a*u},{x:p+b,y:g},{x:p,y:g}]}e.set("points",c)}}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.get("innerRadius",0),a=s.get("radius",0),l=s.get("startAngle",0),n=s.get("arc",0),u=t.get("locationX",.5),o=t.get("locationY",.5),m=l+n*u,h=r+(a-r)*o;e.setAll({x:A(m)*h,y:P(m)*h})}}}};Object.defineProperty(U,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieSeries"});Object.defineProperty(U,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([U.className])});var M=class extends q{constructor(){super(...arguments),Object.defineProperty(this,"_projectionDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tlx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_trx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_try",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_blx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bly",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_brx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cprx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cplx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cpry",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_cply",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){super._afterNew(),this.set("draw",t=>{let e=this.width(),i=this.height(),s=Math.min(e,i)/2,r=k(this.get("cornerRadiusTL",0),s),a=k(this.get("cornerRadiusTR",0),s),l=k(this.get("cornerRadiusBR",0),s),n=k(this.get("cornerRadiusBL",0),s),u=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,c=this._blx,b=this._bly;o==h&&(o=o-.01),g==b&&(g=g-.01);let y=te({x:m,y:h},{x:u,y:o}),_=te({x:u,y:o},{x:p,y:g}),x=te({x:p,y:g},{x:c,y:b}),d=te({x:c,y:b},{x:m,y:h});this.get("orientation")=="horizontal"?(r=Math.min(r,Math.abs(h-o)/2),a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(b-g)/2),n=Math.min(n,Math.abs(b-g)/2)):(r=Math.min(r,Math.abs(m-u)/2),a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let D=m-r*v((y-d)/2)*A(d),S=h-r*v((y-d)/2)*P(d),Y=m-r*v((d-y)/2)*A(y),Z=h-r*v((d-y)/2)*P(y),N=u-a*v((_-y)/2)*A(y),ne=o-a*v((_-y)/2)*P(y),z=u-a*v((y-_)/2)*A(_),B=o-a*v((y-_)/2)*P(_),J=p-l*v((x-_)/2)*A(_),F=g-l*v((x-_)/2)*P(_),Q=p-l*v((_-x)/2)*A(x),I=g-l*v((_-x)/2)*P(x),pe=c-n*v((d-x)/2)*A(x),se=b-n*v((d-x)/2)*P(x),oe=c-n*v((x-d)/2)*A(d),Ae=b-n*v((x-d)/2)*P(d);t.moveTo(Y,Z),t.lineTo(N,ne),t.arcTo(u,o,z,B,a),t.quadraticCurveTo(this._cprx,this._cpry,J,F),t.arcTo(p,g,Q,I,l),t.lineTo(pe,se),t.arcTo(c,b,oe,Ae,n),t.quadraticCurveTo(this._cplx,this._cply,D,S),t.arcTo(m,h,Y,Z,r)})}getPoint(t,e){let i=this.width(),s=this.height(),r=this.get("topWidth",0),a=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*e,h=n+(u-n)*e;return{x:m+(h-m)*t,y:s*e}}else{let l=-r/2,n=r/2,u=a/2,o=-a/2,m=l+(o-l)*t,h=n+(u-n)*t;return{x:i*t,y:m+(h-m)*e}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")){let t=this.width(),e=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let r=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=e,this._blx=-s/2,this._bly=e,this._cprx=this._trx+(this._brx-this._trx)/2+r*e,this._cpry=this._try+.5*e,this._cplx=this._tlx+(this._blx-this._tlx)/2-r*e,this._cply=this._tly+.5*e):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=t,this._bly=s/2,this._blx=t,this._cpry=this._try+(this._bry-this._try)/2-r*t,this._cprx=this._trx+.5*t,this._cply=this._tly+(this._bly-this._tly)/2+r*t,this._cplx=this._tlx+.5*t)}super._changed()}};Object.defineProperty(M,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSlice"});Object.defineProperty(M,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:q.classNames.concat([M.className])});var W=class extends C{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"funnel"}),Object.defineProperty(this,"links",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLinks())}),Object.defineProperty(this,"_total",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_count",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_nextCoord",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_opposite",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_makeSlices(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new R(j.new({}),()=>fe._new(this._root,{themeTags:O(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new R(j.new({}),()=>ae._new(this._root,{themeTags:O(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new R(j.new({}),()=>M._new(this._root,{themeTags:O(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(t){let e=this.slicesContainer.children.push(this.links.make());return e._setDataItem(t),t.set("link",e),this.links.push(e),e}_afterNew(){super._afterNew();let t=this.slicesContainer;t.setAll({isMeasured:!0,position:"relative",width:ee(100),height:ee(100)}),t.onPrivate("width",()=>{this.markDirtySize()}),t.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(t){super.processDataItem(t);let e=this.makeSlice(t);e._setDataItem(t),t.set("slice",e),this.makeLink(t);let i=this.makeLabel(t);i.on("x",()=>{this._updateTick(t)}),i.on("y",()=>{this._updateTick(t)}),this.makeTick(t),e.events.on("positionchanged",()=>{i.markDirty()}),e.events.on("boundschanged",()=>{let s=e.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let t=0,e=0;if(w(this.dataItems,i=>{let s=i.get("value");X(s)&&(e++,s>0?t+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?e--:t+=1)}),this._total=1/e*t,this._count=e,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty)){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let r=0;w(this._dataItems,a=>{this.updateLegendValue(a),a.set("index",r),r++;let l=a.get("slice"),n=a.get("tick"),u=a.get("label"),o=a.get("link"),m=a.get("fill"),h=a.get("fillPattern");l._setDefault("fill",m),l._setDefault("stroke",m),l._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=a.get("value");X(p)&&(p==0&&this.get("ignoreZeroValues")?(l.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(l.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(a),this.isLast(a)?o.setPrivate("visible",!1):a.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let t=this.get("orientation"),e=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(e.set("position","relative"),e.setAll({isMeasured:!0}),t=="vertical"?(this.set("layout",this._root.horizontalLayout),i.setAll({centerX:T,x:T})):(this.set("layout",this._root.verticalLayout),i.setAll({centerX:0,x:0}))):(e.setAll({isMeasured:!1,position:"absolute"}),t=="vertical"?(e.setAll({x:f}),i.setAll({centerX:f,x:0})):(e.setAll({y:f}),i.setAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(t){let e=t.get("index"),i=t.get("valueWorking",0);if(e<this.dataItems.length-1){let s=this.dataItems[e+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(t){let e=t.get("index");if(e==this.dataItems.length-1)return!0;for(let i=e+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(t){let e=this.get("orientation"),i=t.get("slice"),s=t.get("label"),r=t.get("link"),a=this.slicesContainer,l=a.innerWidth(),n=a.innerHeight(),u=l;e=="horizontal"&&(u=n);let o=this.getNextValue(t),m=t.get("value",0),h=Math.abs(t.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):t.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let b=h/g*u,y=(h-(h-o)*p)/g*u;i.setAll({topWidth:b,bottomWidth:y,orientation:e}),r.setAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:e});let _=this.get("startLocation",0),x=this.get("endLocation",1);if(e=="vertical"){let d=r.height()*c;n=n*(x-_)+d,i.set("y",this._nextCoord);let D=Math.min(1e5,Math.max(0,n/this._count*c/this._total-d));i.setAll({height:D,x:l/2});let S=this._nextCoord+D/2;s.set("y",S),this._nextCoord+=D+d,r.setAll({y:this._nextCoord-d,x:l/2})}else{let d=r.width()*c;l=l*(x-_)+d,i.set("x",this._nextCoord);let D=Math.min(1e5,Math.max(0,l/this._count*c/this._total-d));i.setAll({width:D,y:n/2});let S=this._nextCoord+D/2;s.set("x",S),this._nextCoord+=D+d,r.setAll({x:this._nextCoord-d,y:n/2})}}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").hide(e),i.hideDataItem.call(this,t,e)})}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return H(this,void 0,void 0,function*(){return t.get("link").show(e),i.showDataItem.call(this,t,e)})}_updateTick(t){if(this.get("alignLabels")){let e=t.get("tick"),i=t.get("label"),s=t.get("slice");if(e&&s&&i){let r=this.labelsContainer,a=this.slicesContainer,l=e.get("location",.5),n=r.width(),u=r.height(),o=r.get("paddingLeft",0),m=r.get("paddingRight",0),h=r.get("paddingTop",0),p=r.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},b={x:0,y:0};this._opposite&&(l=1-l),this.get("orientation")=="vertical"?(g=s.getPoint(l,.5),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.x=n,c.y=i.y(),b.x=n-o,b.y=c.y):(c.x=a.x()+a.width(),c.y=i.y(),b.x=c.x+n-i.width()-m,b.y=c.y)):(g=s.getPoint(.5,l),g.x+=s.x()+a.x(),g.y+=s.y()+a.y(),this._opposite?(c.y=u,c.x=i.x(),b.y=u-h,b.x=c.x):(c.y=a.y()+a.height(),c.x=i.x(),b.y=c.y+u-i.height()-p,b.x=c.x)),e.set("points",[g,c,b])}}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("link");e&&(this.links.removeValue(e),e.dispose())}_positionBullet(t){let e=t.get("sprite");if(e){let s=e.dataItem.get("slice");if(s){let r=s.width(),a=s.height(),l=t.get("locationX",.5),n=t.get("locationY",.5),u=0,o=0;this.get("orientation")=="horizontal"?o=a/2:u=r/2,e.setAll({x:s.x()+r*l-u,y:s.y()-o+a*n})}}}};Object.defineProperty(W,"className",{enumerable:!0,configurable:!0,writable:!0,value:"FunnelSeries"});Object.defineProperty(W,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:C.classNames.concat([W.className])});var V=class extends W{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pyramid"}),Object.defineProperty(this,"_nextSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0}decorateSlice(t){let e=this.get("orientation"),i=this.slicesContainer,s=t.get("slice"),r=t.get("label"),a=t.get("link"),l=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let u=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",T),p=Math.abs(t.get("valueWorking",0)),g=t.get("value",0),c,b,y=i.innerHeight(),_=i.innerWidth(),x=a.width(),d=a.height();e=="horizontal"&&([_,y]=[y,_],[x,d]=[d,x]);let D=_/2,S=1;g!=0?S=p/Math.abs(g):t.isHidden()&&(S=1e-6),d*=S,y=y*(o-u)-d*(this._count*this._total-1);let Y=k(m,_);X(this._nextSize)||(this._nextSize=Y);let Z=k(h,_),N=this._nextSize,ne=Math.atan2(y,Y-Z),z=Math.tan(Math.PI/2-ne);if(z==0&&(z=1e-8),l=="area"){let se=(Y+Z)/2*y*p/n,oe=Math.abs(N*N-2*se*z);c=(N-Math.sqrt(oe))/z,c>0?b=(2*se-c*N)/c:b=N}else c=y*p/n,b=N-c*z;let B=this._nextCoord+c/2,J=D,F=this._nextCoord,Q=D,I=F+c;e=="vertical"?(r.set("y",B),r.get("opacity")>0&&this._rLabels.push({label:r,y:B}),s.set("height",c)):(r.set("x",B),r.get("opacity")>0&&this._hLabels.push({label:r,y:B}),[J,F]=[F,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:e,bottomWidth:b,topWidth:N,x:J,y:F}),a.setAll({orientation:e,x:Q,y:I,topWidth:b,bottomWidth:b}),this._nextSize=b,this._nextCoord+=c+d}};Object.defineProperty(V,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PyramidSeries"});Object.defineProperty(V,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:W.classNames.concat([V.className])});var K=class extends V{constructor(){super(...arguments),Object.defineProperty(this,"_tag",{enumerable:!0,configurable:!0,writable:!0,value:"pictorial"}),Object.defineProperty(this,"seriesMask",{enumerable:!0,configurable:!0,writable:!0,value:q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f})}),Object.defineProperty(this,"seriesGraphics",{enumerable:!0,configurable:!0,writable:!0,value:this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f}))})}_afterNew(){super._afterNew(),this.set("topWidth",T),this.set("bottomWidth",T),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let t=this.slicesContainer,e=t.innerWidth(),i=t.innerHeight(),s=this.seriesMask,r=this.seriesGraphics,a=s.get("scale",1),l=s.localBounds(),n=l.right-l.left,u=l.bottom-l.top;this.get("orientation")=="horizontal"?a=e/n:a=i/u,a!=1/0&&a!=NaN&&(s.set("scale",a),s.set("x",e/2),s.set("y",i/2),r.set("scale",a),r.set("x",e/2),r.set("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let t=this.get("svgPath");this.seriesMask.set("svgPath",t),this.seriesGraphics.set("svgPath",t)}this._updateScale()}};Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PictorialStackedSeries"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:V.classNames.concat([K.className])});var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};Object.defineProperty(E,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SlicedChart"});Object.defineProperty(E,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$.classNames.concat([E.className])});export{ie as DefaultTheme,W as FunnelSeries,M as FunnelSlice,$ as PercentChart,C as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,V as PyramidSeries,E as SlicedChart};
@@ -1,4 +1,4 @@
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.30 */
4
- import e from"./63P5OPEW.js";import{a as v}from"./SCZ6FM7D.js";import{a as _}from"./BYDZCBXS.js";import b from"./EANAURQW.js";import a from"./WSDNUWO4.js";import{g as m}from"./FWUUE67P.js";import"./BCB3OHT5.js";import{b as g}from"./CYBCIT4Y.js";import{H as l,I as n,J as h,K as c,P as u,a as d,b as i,s}from"./K4HH7Q7F.js";import"./BBF2UUMF.js";export default $arcgis.t(([p,{watch:t},,,f])=>{var w=d`:host{--arcgis-video-player-controls-spacing: 16px;width:531px;height:100%}.arcgis-video-player{height:100%}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`,V={base:"arcgis-video-player"},M=f(p),a=class extends h{constructor(){super(...arguments),this.messages=v({blocking:!0}),this.viewModel=M(this),this._videoViewRef=l(),this._metadataVisible=!1,this._duration=0,this._currentTime=0,this._bufferedValue=0,this._currentValue=0,this._isBuffering=!1,this._videoViewReady=!1,this.icon="video-web",this.state=this.viewModel.state,this.layer=this.viewModel.layer,this.autoDestroyDisabled=!1,this.hideHeader=!1,this.view=this.viewModel.view,this.arcgisPropertyChange=m()("state","layer"),this.arcgisReady=s(),this.arcgisVideoReady=s()}static{this.properties={_metadataVisible:16,_duration:16,_currentTime:16,_bufferedValue:16,_currentValue:16,_isBuffering:16,_videoViewReady:16,_layerTitle:16,_isLive:16,referenceElement:1,position:3,icon:1,state:3,followingMode:1,layer:0,autoDestroyDisabled:5,messageOverrides:0,label:3,hideHeader:5,view:0}}static{this.styles=w}get followingMode(){return this.viewModel.followingMode}set followingMode(e){this.viewModel.followingMode=e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[t(()=>[this.viewModel.currentTime,this.viewModel.duration,this.viewModel.duration,this.viewModel.ended],()=>{let{buffered:e,currentTime:o,duration:r,ended:y}=this.viewModel;this._duration=r,this._currentTime=o,this._bufferedValue=e/(r||1),this._currentValue=o/(r||1),this._isBuffering=!y&&this._bufferedValue<this._currentValue}),t(()=>this._videoViewRef.value?.ready,e=>{this._videoViewReady=!!e},{initial:!0}),t(()=>this.layer?.title,e=>{this._layerTitle=e??void 0},{initial:!0}),t(()=>this.layer?.isLive,e=>{this._isLive=e??void 0},{initial:!0}),t(()=>this.viewModel.view?.map,()=>this.requestUpdate())])}render(){return i`<div class=${c(g(V.base,_.widget))}><calcite-panel .heading=${this.hideHeader?void 0:this._layerTitle??this.messages.videoPlayer}>${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</calcite-panel></div>`}_renderLoadingScrim(){return this._videoViewReady?null:i`<calcite-scrim .loading=${this.state!=="error"}>${this.state==="error"?this.messages.errorLoadingLayer:null}</calcite-scrim>`}_renderBuffering(){return this._isBuffering?i`<calcite-progress type=indeterminate></calcite-progress>`:null}_renderVideoSection(){return i`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} @arcgisViewReadyChange=${()=>this.arcgisVideoReady.emit()} ${n(this._videoViewRef)}></arcgis-video>`}_renderSlider(){return this._isLive?null:i`<arcgis-video-player-slider .buffered=${this._bufferedValue} .value=${this._currentValue*100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`}_renderActionBar(){return i`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${()=>this._metadataVisible=!this._metadataVisible} .viewModel=${this.viewModel}></arcgis-video-player-action-bar>`}_renderMetadataSection(){return this._metadataVisible?i`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>`:null}};u("arcgis-video-player",a);return a},"widgets/VideoPlayer/VideoPlayerViewModel","core/reactiveUtils",a,b,e)
3
+ v5.0.0-next.32 */
4
+ import e from"./HHS3S24G.js";import{a as v}from"./7RRUQC5K.js";import{a as _}from"./APTWIVD4.js";import b from"./2F2K3SJN.js";import a from"./WAF3HWY5.js";import{g as m}from"./IAF7LPRE.js";import"./HVLL5J2O.js";import{b as g}from"./GJG6UNDT.js";import{H as l,I as n,J as h,K as c,P as u,a as d,b as i,s}from"./XZ363IBS.js";import"./II73U7PI.js";export default $arcgis.t(([p,{watch:t},,,f])=>{var w=d`:host{--arcgis-video-player-controls-spacing: 16px;width:531px;height:100%}.arcgis-video-player{height:100%}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`,V={base:"arcgis-video-player"},M=f(p),a=class extends h{constructor(){super(...arguments),this.messages=v({blocking:!0}),this.viewModel=M(this),this._videoViewRef=l(),this._metadataVisible=!1,this._duration=0,this._currentTime=0,this._bufferedValue=0,this._currentValue=0,this._isBuffering=!1,this._videoViewReady=!1,this.icon="video-web",this.state=this.viewModel.state,this.layer=this.viewModel.layer,this.autoDestroyDisabled=!1,this.hideHeader=!1,this.view=this.viewModel.view,this.arcgisPropertyChange=m()("state","layer"),this.arcgisReady=s(),this.arcgisVideoReady=s()}static{this.properties={_metadataVisible:16,_duration:16,_currentTime:16,_bufferedValue:16,_currentValue:16,_isBuffering:16,_videoViewReady:16,_layerTitle:16,_isLive:16,referenceElement:1,position:3,icon:1,state:3,followingMode:1,layer:0,autoDestroyDisabled:5,messageOverrides:0,label:3,hideHeader:5,view:0}}static{this.styles=w}get followingMode(){return this.viewModel.followingMode}set followingMode(e){this.viewModel.followingMode=e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[t(()=>[this.viewModel.currentTime,this.viewModel.duration,this.viewModel.duration,this.viewModel.ended],()=>{let{buffered:e,currentTime:o,duration:r,ended:y}=this.viewModel;this._duration=r,this._currentTime=o,this._bufferedValue=e/(r||1),this._currentValue=o/(r||1),this._isBuffering=!y&&this._bufferedValue<this._currentValue}),t(()=>this._videoViewRef.value?.ready,e=>{this._videoViewReady=!!e},{initial:!0}),t(()=>this.layer?.title,e=>{this._layerTitle=e??void 0},{initial:!0}),t(()=>this.layer?.isLive,e=>{this._isLive=e??void 0},{initial:!0}),t(()=>this.viewModel.view?.map,()=>this.requestUpdate())])}render(){return i`<div class=${c(g(V.base,_.widget))}><calcite-panel .heading=${this.hideHeader?void 0:this._layerTitle??this.messages.videoPlayer}>${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</calcite-panel></div>`}_renderLoadingScrim(){return this._videoViewReady?null:i`<calcite-scrim .loading=${this.state!=="error"}>${this.state==="error"?this.messages.errorLoadingLayer:null}</calcite-scrim>`}_renderBuffering(){return this._isBuffering?i`<calcite-progress type=indeterminate></calcite-progress>`:null}_renderVideoSection(){return i`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} @arcgisViewReadyChange=${()=>this.arcgisVideoReady.emit()} ${n(this._videoViewRef)}></arcgis-video>`}_renderSlider(){return this._isLive?null:i`<arcgis-video-player-slider .buffered=${this._bufferedValue} .value=${this._currentValue*100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`}_renderActionBar(){return i`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${()=>this._metadataVisible=!this._metadataVisible} .viewModel=${this.viewModel}></arcgis-video-player-action-bar>`}_renderMetadataSection(){return this._metadataVisible?i`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>`:null}};u("arcgis-video-player",a);return a},"widgets/VideoPlayer/VideoPlayerViewModel","core/reactiveUtils",a,b,e)
@@ -1,4 +1,4 @@
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.30 */
3
+ v5.0.0-next.32 */
4
4
  function m(e,t){let n=e.assignedElements({flatten:!0});return t?n.filter(s=>s.matches(t)):n}var g=(...e)=>{let t=[];for(let s=0;s<e.length;s++){let o=e[s];if(typeof o=="string")t.push(o);else if(Array.isArray(o))t.push.apply(t,o);else if(typeof o=="object")for(let r in o)o[r]&&t.push(r)}let n=t.join(" ");return t.length=0,n},l=(e,t)=>{let n=e;for(;n;){if(n===t)return!0;if(!n.parentNode)return!1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode}return!1},E=(e,t,n)=>{let s=d(t).subscribe;return s(o=>{o.some(i=>l(e,i.target))&&n()})},c={},d=e=>{let t=e.join(","),n=c[t];if(n!==void 0)return n;let s=new Set,o=new MutationObserver(i=>s.forEach(a=>a(i)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let r={subscribe:i=>(s.add(i),()=>{s.delete(i),s.size===0&&(o.disconnect(),c[t]=void 0)})};return c[t]=r,r},u=(e,t)=>{let n=e;for(;n;){let s=n.closest?.(t);if(s)return s;let o=n.getRootNode?.();if(o===globalThis.document)return;n=o.host}};function b(e){let t=u(e,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return t?.classList.contains("calcite-mode-dark")||t?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var p=e=>f(e,"dir","ltr"),f=(e,t,n)=>u(e,`[${t}]`)?.getAttribute(t)??n,v=async e=>{e!=null&&(h(e)?await e.setFocus():e.focus())},h=e=>typeof e.setFocus=="function";export{m as a,g as b,E as c,u as d,b as e,p as f,f as g,v as h};
@@ -1,4 +1,4 @@
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.30 */
4
- import c from"./OISWBYPZ.js";import{a as w,c as u}from"./5I77EKDP.js";import{a as y}from"./B5J2VO23.js";import b from"./EANAURQW.js";import"./FWUUE67P.js";import{d,e as g}from"./BCB3OHT5.js";import"./CYBCIT4Y.js";import{H as r,I as h,J as l,K as n,P as v,b as s,s as a}from"./K4HH7Q7F.js";import"./BBF2UUMF.js";export default $arcgis.t(([{watch:c},E,C,R,{a:e,b:o,f:m},{a:f,b:V,c:b}])=>{var A=o(C,{}),k=o(E,{}),p=class extends l{constructor(){super(),this._containerRef=r(),this._mapRef=r(),this._uiController=new f(this),this.extraContent=new R,this.arcgisLoadError=V(this),this.arcgisViewReadyError=b(this),this._map=A(this),this.view=k(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=e(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=e(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=e(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=a(),this.arcgisViewClick=e(()=>this.view,"click"),this.arcgisViewDoubleClick=e(()=>this.view,"double-click"),this.arcgisViewDrag=e(()=>this.view,"drag"),this.arcgisViewHold=e(()=>this.view,"hold"),this.arcgisViewImmediateClick=e(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=e(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=e(()=>this.view,"key-down"),this.arcgisViewKeyUp=e(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=e(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=e(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=e(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=e(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=e(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=e(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=e(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=e(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=e(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=a(),this.view.ui={components:["attribution"]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,allLayerViews:0,analyses:0,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,highlights:0,highlightOptions:0,interacting:32,ipsInfo:0,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,popup:0,popupDisabled:5,ready:4,resizeAlign:1,resolution:8,rotation:9,scale:9,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:7,theme:0,timeExtent:0,timeZone:1,updating:4,viewpoint:0,visibleArea:0,zoom:9,loadErrorSources:0}}static{this.styles=[y,u]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get center(){return this.view.center}set center(i){let t=g(i,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){d(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,t){this.map?.add(i,t)}async addLayers(i,t){this.map?.addMany(i,t)}async addTable(i){this.map?.tables.add(i)}async addTables(i,t){this.map?.tables.addMany(i,t)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,t){return await this.view.goTo(i,t)}async hitTest(i,t){return await this.view.hitTest(i,t)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,t){return this.view.toScreen(i,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(t)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[c(()=>this.map,t=>{t&&(this._map=t)},{initial:!0,sync:!0}),c(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),c(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready})])}renderMain(){return s`<div class=${n(w.base)} ${h(this._mapRef)}></div>`}render(){return s`<section class=${n(w.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>${this.renderMain()}`}};v("arcgis-map",p);return p},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,c)
3
+ v5.0.0-next.32 */
4
+ import c from"./U5XJI4JL.js";import{a as w,c as u}from"./XVIN3XWL.js";import{a as y}from"./PJTKARHH.js";import b from"./2F2K3SJN.js";import"./IAF7LPRE.js";import{d,e as g}from"./HVLL5J2O.js";import"./GJG6UNDT.js";import{H as r,I as h,J as l,K as n,P as v,b as s,s as a}from"./XZ363IBS.js";import"./II73U7PI.js";export default $arcgis.t(([{watch:c},E,C,R,{a:e,b:o,f:m},{a:f,b:V,c:b}])=>{var A=o(C,{}),k=o(E,{}),p=class extends l{constructor(){super(),this._containerRef=r(),this._mapRef=r(),this._uiController=new f(this),this.extraContent=new R,this.arcgisLoadError=V(this),this.arcgisViewReadyError=b(this),this._map=A(this),this.view=k(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=e(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=e(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=e(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=a(),this.arcgisViewClick=e(()=>this.view,"click"),this.arcgisViewDoubleClick=e(()=>this.view,"double-click"),this.arcgisViewDrag=e(()=>this.view,"drag"),this.arcgisViewHold=e(()=>this.view,"hold"),this.arcgisViewImmediateClick=e(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=e(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=e(()=>this.view,"key-down"),this.arcgisViewKeyUp=e(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=e(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=e(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=e(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=e(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=e(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=e(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=e(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=e(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=e(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=a(),this.view.ui={components:["attribution"]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,allLayerViews:0,analyses:0,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,highlights:0,highlightOptions:0,interacting:32,ipsInfo:0,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,popup:0,popupDisabled:5,ready:4,resizeAlign:1,resolution:8,rotation:9,scale:9,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:7,theme:0,timeExtent:0,timeZone:1,updating:4,viewpoint:0,visibleArea:0,zoom:9,loadErrorSources:0}}static{this.styles=[y,u]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get center(){return this.view.center}set center(i){let t=g(i,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){d(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,t){this.map?.add(i,t)}async addLayers(i,t){this.map?.addMany(i,t)}async addTable(i){this.map?.tables.add(i)}async addTables(i,t){this.map?.tables.addMany(i,t)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,t){return await this.view.goTo(i,t)}async hitTest(i,t){return await this.view.hitTest(i,t)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,t){return this.view.toScreen(i,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(t)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[c(()=>this.map,t=>{t&&(this._map=t)},{initial:!0,sync:!0}),c(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),c(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready})])}renderMain(){return s`<div class=${n(w.base)} ${h(this._mapRef)}></div>`}render(){return s`<section class=${n(w.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>${this.renderMain()}`}};v("arcgis-map",p);return p},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,c)