@arcgis/map-components 4.34.0-next.46 → 4.34.0-next.48

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 (324) hide show
  1. package/dist/cdn/{J7UK7SCU.js → 2KZALCHU.js} +2 -2
  2. package/dist/cdn/{FO4QABDY.js → 2VSCRKDZ.js} +2 -2
  3. package/dist/cdn/{MARACG3F.js → 3A5RI7F6.js} +2 -2
  4. package/dist/cdn/{F5EWUWFO.js → 3AW6YHW6.js} +2 -2
  5. package/dist/cdn/{F6S6YFJX.js → 3CFDNJLS.js} +2 -2
  6. package/dist/cdn/3VPFLXMX.js +4 -0
  7. package/dist/cdn/{6CDTB5SK.js → 3ZJGZKTD.js} +2 -2
  8. package/dist/cdn/{U3RTJZ22.js → 43ES2J4N.js} +2 -2
  9. package/dist/cdn/{L5EXWI2V.js → 4GBXHCZG.js} +2 -2
  10. package/dist/cdn/{3IIEAOJR.js → 5DJYKIIT.js} +2 -2
  11. package/dist/cdn/{TDKCF65R.js → 5EDS26DJ.js} +1 -1
  12. package/dist/cdn/{532P5FGZ.js → 5I2VCZMV.js} +2 -2
  13. package/dist/cdn/{ZFDT6LAZ.js → 5LD27FTX.js} +2 -2
  14. package/dist/cdn/{CEQCLWE2.js → 5U5STO5R.js} +2 -2
  15. package/dist/cdn/{LYPNWAEN.js → 5UZFJQD5.js} +2 -2
  16. package/dist/cdn/{4STLACA5.js → 5XXP6NLP.js} +2 -2
  17. package/dist/cdn/{VBAREUOO.js → 627QJXN5.js} +2 -2
  18. package/dist/cdn/{BASR2JIN.js → 63QSIJNJ.js} +2 -2
  19. package/dist/cdn/6NS6NOZ2.js +4 -0
  20. package/dist/cdn/{TINYV2CA.js → 6NSN2Q5O.js} +2 -2
  21. package/dist/cdn/{7LBI4GSX.js → 6O6P7IWS.js} +2 -2
  22. package/dist/cdn/{N74KE7Y3.js → 6WESVJFC.js} +2 -2
  23. package/dist/cdn/{KDGVM2OL.js → 73WRHSCN.js} +2 -2
  24. package/dist/cdn/{4H733DZT.js → 74EDJG4O.js} +1 -1
  25. package/dist/cdn/{3ULEY3CU.js → 77N7JYXC.js} +2 -2
  26. package/dist/cdn/{Z2WLVTOV.js → 7K6QGZ57.js} +2 -2
  27. package/dist/cdn/{4TKX2VCR.js → 7KAOEYJL.js} +2 -2
  28. package/dist/cdn/{V46IPC5L.js → 7KO4J4CX.js} +2 -2
  29. package/dist/cdn/{F3N2TSIM.js → 7MGB6FQG.js} +2 -2
  30. package/dist/cdn/{ACOZBVV2.js → AEHQOGIL.js} +2 -2
  31. package/dist/cdn/{HK5D6PSZ.js → AFL7LHDH.js} +2 -2
  32. package/dist/cdn/{ZCW2CDJ7.js → ALJT27S6.js} +2 -2
  33. package/dist/cdn/{YNM2XVI3.js → ANYK7ZRP.js} +2 -2
  34. package/dist/cdn/{555LHYQD.js → AR5D5FO6.js} +2 -2
  35. package/dist/cdn/{ODWBQ5LR.js → AVOEQM3V.js} +2 -2
  36. package/dist/cdn/{M4NBRIXA.js → AVQCCA37.js} +2 -2
  37. package/dist/cdn/{YGGFIEDD.js → AX5YHBKX.js} +2 -2
  38. package/dist/cdn/{6X4N2PWJ.js → AXDVPT2U.js} +2 -2
  39. package/dist/cdn/{35UGXTD7.js → B5OWOPPV.js} +2 -2
  40. package/dist/cdn/{F5JMCGOS.js → B6NHD4YI.js} +2 -2
  41. package/dist/cdn/BAQVH5QH.js +4 -0
  42. package/dist/cdn/{O7L7W7VZ.js → BBSVS65W.js} +2 -2
  43. package/dist/cdn/{LEFSTFHF.js → BKMJMVOB.js} +2 -2
  44. package/dist/cdn/{4ESNHHOK.js → BO6ZZP3X.js} +2 -2
  45. package/dist/cdn/{V77B2WP3.js → BUVV2JFS.js} +2 -2
  46. package/dist/cdn/{OTYAT57N.js → CEQCUF66.js} +2 -2
  47. package/dist/cdn/{CDE6L3R2.js → CFPIKX66.js} +2 -2
  48. package/dist/cdn/{XPKTMJSP.js → CTDRTURG.js} +2 -2
  49. package/dist/cdn/{OQA7CQ7Z.js → CX22OWDW.js} +2 -2
  50. package/dist/cdn/{XYFFIM4E.js → D4H3NLM2.js} +2 -2
  51. package/dist/cdn/{ZZZI6PMW.js → DHSEWS2B.js} +2 -2
  52. package/dist/cdn/{3S7GOICR.js → DPUDV3CJ.js} +2 -2
  53. package/dist/cdn/{7NR22YZO.js → DTZT66AA.js} +2 -2
  54. package/dist/cdn/DVITJR7O.js +4 -0
  55. package/dist/cdn/{A72BXT3B.js → DWP6P7UA.js} +2 -2
  56. package/dist/cdn/{5ZRBCP74.js → ECIW7U34.js} +2 -2
  57. package/dist/cdn/{4VGKKBUS.js → EFBY5HER.js} +2 -2
  58. package/dist/cdn/{5MC7FXKC.js → F22V646Z.js} +2 -2
  59. package/dist/cdn/{F4BP7VN2.js → F6MGGO3R.js} +2 -2
  60. package/dist/cdn/{ZDUBAY2E.js → F77CER66.js} +2 -2
  61. package/dist/cdn/{7ATX4VVG.js → FPTNSFGG.js} +1 -1
  62. package/dist/cdn/{CMAJK7UU.js → FUJXVM4N.js} +2 -2
  63. package/dist/cdn/{HAPKKESC.js → FYZG2CVD.js} +2 -2
  64. package/dist/cdn/{WITYTEEB.js → G7AES2B6.js} +2 -2
  65. package/dist/cdn/{CI2RYOET.js → GGD2YZSM.js} +2 -2
  66. package/dist/cdn/{DDFNQIGL.js → GHJXC5D3.js} +2 -2
  67. package/dist/cdn/{NYYFI7YB.js → GLJBNRAP.js} +2 -2
  68. package/dist/cdn/{67BOTPLT.js → GNLXV4QR.js} +2 -2
  69. package/dist/cdn/{MFUUTGSD.js → GPC32UGI.js} +2 -2
  70. package/dist/cdn/{XPRTGLLL.js → GVIXCJTQ.js} +2 -2
  71. package/dist/cdn/{3IVEE2IX.js → GWV2VONZ.js} +2 -2
  72. package/dist/cdn/{3AYQL3RG.js → H2R73SFN.js} +2 -2
  73. package/dist/cdn/{KZ5QYIU4.js → H35MYSN4.js} +2 -2
  74. package/dist/cdn/{JP5NYNDP.js → H3SKTNWI.js} +2 -2
  75. package/dist/cdn/{BAM3W2SD.js → HCNZO54N.js} +2 -2
  76. package/dist/cdn/{H6Y2YX4S.js → HEI7U3Q7.js} +2 -2
  77. package/dist/cdn/{RRWGQD4P.js → HV7SVNMW.js} +2 -2
  78. package/dist/cdn/{CNB27FFP.js → IHYDWMU6.js} +2 -2
  79. package/dist/cdn/{JEC5PH6Z.js → IY3Y7LPV.js} +2 -2
  80. package/dist/cdn/{PMRY7W2S.js → JCDCHZBQ.js} +1 -1
  81. package/dist/cdn/{TS4DZQ2X.js → JM4Q2ZX6.js} +2 -2
  82. package/dist/cdn/{TXSPSOKV.js → JMFHZNDU.js} +1 -1
  83. package/dist/cdn/{DZBNRPGA.js → K66347Q5.js} +2 -2
  84. package/dist/cdn/KCQN4WA4.js +4 -0
  85. package/dist/cdn/KKMHRB7W.js +4 -0
  86. package/dist/cdn/{3M2ZRA23.js → KO7WWRRL.js} +2 -2
  87. package/dist/cdn/{BUKZIU5F.js → KQW6EVND.js} +2 -2
  88. package/dist/cdn/{M5PPXPD6.js → KV6ZVMFO.js} +2 -2
  89. package/dist/cdn/{JTB5E3QP.js → KZLPZOGW.js} +2 -2
  90. package/dist/cdn/{XNZLALLL.js → KZTGZGWM.js} +2 -2
  91. package/dist/cdn/{JGJPR32F.js → L3TK2ZNY.js} +1 -1
  92. package/dist/cdn/{3L5C2LU7.js → LAELQYVW.js} +2 -2
  93. package/dist/cdn/{GIBMOUBB.js → LKJEGIOK.js} +1 -1
  94. package/dist/cdn/{H7YZ5CZY.js → LQOMSEJQ.js} +2 -2
  95. package/dist/cdn/{4MDUL73F.js → LTPLOJBK.js} +2 -2
  96. package/dist/cdn/{GXAH5HJM.js → LXBFHCTE.js} +1 -1
  97. package/dist/cdn/{QQNF3PDW.js → MU5YXS45.js} +2 -2
  98. package/dist/cdn/{DP6QBGDH.js → MUARCAWR.js} +2 -2
  99. package/dist/cdn/{PPLVRJGN.js → N2JWFJNY.js} +2 -2
  100. package/dist/cdn/{3OVWQENK.js → NIBBSH2R.js} +2 -2
  101. package/dist/cdn/{4N2O7JUU.js → NR7QOQ3P.js} +2 -2
  102. package/dist/cdn/{WOQFD5C4.js → NTDPYTEW.js} +2 -2
  103. package/dist/cdn/{EDXF5MVD.js → NYFXHV63.js} +2 -2
  104. package/dist/cdn/{X3QKF5D4.js → O4GQE57Z.js} +2 -2
  105. package/dist/cdn/{RCQSR7N3.js → OBMF3BLV.js} +2 -2
  106. package/dist/cdn/{NDAEKHC7.js → OCNUSTST.js} +2 -2
  107. package/dist/cdn/{3C5HXPW5.js → OX36J5MB.js} +2 -2
  108. package/dist/cdn/{B5SNDUEJ.js → OXQI2OKM.js} +2 -2
  109. package/dist/cdn/{YZAFLCGT.js → OXXD3SQ3.js} +2 -2
  110. package/dist/cdn/{VMX2GAWQ.js → OY4TF43H.js} +2 -2
  111. package/dist/cdn/{3BWJF5Q2.js → PJHAV2AH.js} +2 -2
  112. package/dist/cdn/{WXEWJG6Q.js → PRW7WT2G.js} +2 -2
  113. package/dist/cdn/{BGFAJRKB.js → PWZDUI7U.js} +2 -2
  114. package/dist/cdn/{VK6WYEAD.js → PXQ6AGGA.js} +2 -2
  115. package/dist/cdn/{RG63I4MB.js → PXXBV2MH.js} +2 -2
  116. package/dist/cdn/{3VYRF7CY.js → Q3GI4VJE.js} +2 -2
  117. package/dist/cdn/{KRU7LD7A.js → Q3ZT2C5O.js} +2 -2
  118. package/dist/cdn/{H6NCUEEV.js → Q46QTXM7.js} +2 -2
  119. package/dist/cdn/{S6O5X5E7.js → QADTT3TY.js} +2 -2
  120. package/dist/cdn/{K5VEH4Z4.js → QFXHGQSR.js} +2 -2
  121. package/dist/cdn/{2CYQIF6T.js → QHFFOA7Y.js} +2 -2
  122. package/dist/cdn/{CCG6ZAZJ.js → QHSCBSSE.js} +2 -2
  123. package/dist/cdn/{7AOLV2VB.js → QQNAJEMZ.js} +2 -2
  124. package/dist/cdn/{E7NRKYTV.js → QRSSMC4B.js} +2 -2
  125. package/dist/cdn/{WWAVOMAI.js → QU7O7EEP.js} +2 -2
  126. package/dist/cdn/{L3VZZTCN.js → R3Q27OZU.js} +1 -1
  127. package/dist/cdn/R67IWHM4.js +5 -0
  128. package/dist/cdn/{MN2JNV5K.js → RBVOLHPR.js} +2 -2
  129. package/dist/cdn/{4DR5KDU2.js → RIXLVBF6.js} +2 -2
  130. package/dist/cdn/{C4JV6I6R.js → RRESCTW2.js} +2 -2
  131. package/dist/cdn/{737U36AG.js → RUOJLCYU.js} +2 -2
  132. package/dist/cdn/RVEMFDJE.js +6 -0
  133. package/dist/cdn/S2OA7DQU.js +4 -0
  134. package/dist/cdn/{E4JKBM2S.js → S73BCVJ4.js} +2 -2
  135. package/dist/cdn/{PGEKLLEF.js → SE6GXECP.js} +2 -2
  136. package/dist/cdn/{7PYHXTKM.js → SEXGMDPJ.js} +2 -2
  137. package/dist/cdn/{IOTLEM7A.js → SKVNVUIT.js} +2 -2
  138. package/dist/cdn/{TQT2JVYY.js → SLH5ZNT7.js} +2 -2
  139. package/dist/cdn/{PLZPFNJG.js → SUI4IXCJ.js} +2 -2
  140. package/dist/cdn/{EX4ANQJN.js → SW3ZITUS.js} +2 -2
  141. package/dist/cdn/T2KDBYWG.js +3 -0
  142. package/dist/cdn/{X5LQ2RKX.js → T2PYGGNB.js} +2 -2
  143. package/dist/cdn/{Z2TJNNPQ.js → TCLRL5UD.js} +2 -2
  144. package/dist/cdn/{AYGOBONG.js → THJH47MC.js} +2 -2
  145. package/dist/cdn/{RFW5M6WS.js → TLZQJLLU.js} +2 -2
  146. package/dist/cdn/{BR27KULN.js → TQEROAZB.js} +2 -2
  147. package/dist/cdn/{C6WTSQ2H.js → U6ST4KO3.js} +2 -2
  148. package/dist/cdn/{RF6OMFIA.js → U7O3SUFA.js} +2 -2
  149. package/dist/cdn/{I6NWEJUK.js → UAW36MOB.js} +2 -2
  150. package/dist/cdn/{BVFWCTSK.js → UC3GAIWS.js} +2 -2
  151. package/dist/cdn/{Y3ENX264.js → V42VYYKQ.js} +2 -2
  152. package/dist/cdn/{RUQNU5TE.js → VCDWX3JF.js} +2 -2
  153. package/dist/cdn/{MI4E3K2Z.js → VGYG56O4.js} +2 -2
  154. package/dist/cdn/{6AL7XV5C.js → VQGZY53S.js} +2 -2
  155. package/dist/cdn/{5GAFVU22.js → VTZ2VT2D.js} +2 -2
  156. package/dist/cdn/{O2LZBCE6.js → VVACX446.js} +2 -2
  157. package/dist/cdn/W2MCQBD7.js +4 -0
  158. package/dist/cdn/{VF5EWLKX.js → W3OXRUTN.js} +2 -2
  159. package/dist/cdn/{AIUEVSI7.js → WGMIHD7D.js} +2 -2
  160. package/dist/cdn/{QE373MLW.js → WNM7KFTM.js} +2 -2
  161. package/dist/cdn/{GCGGBQXD.js → WYQ3CFXN.js} +2 -2
  162. package/dist/cdn/{I63T5SST.js → X2OOL5EA.js} +2 -2
  163. package/dist/cdn/{HAO73YRV.js → X2RKRTAV.js} +2 -2
  164. package/dist/cdn/{JSBQR4TP.js → X5CP7YZG.js} +2 -2
  165. package/dist/cdn/{XISDY6D6.js → XCLBWSTX.js} +2 -2
  166. package/dist/cdn/{ISFNSDVQ.js → XTUI3ZVL.js} +2 -2
  167. package/dist/cdn/{FSJSLG3W.js → YKOPEFA5.js} +2 -2
  168. package/dist/cdn/{TIV5VMUP.js → YOU326QJ.js} +2 -2
  169. package/dist/cdn/{YYPRUCDN.js → YQ3C6AMF.js} +2 -2
  170. package/dist/cdn/{ZSJMYEBK.js → YQ67ZRK4.js} +2 -2
  171. package/dist/cdn/{6J3TF3GU.js → YY75QJ3B.js} +2 -2
  172. package/dist/cdn/{XGBNW6E4.js → Z3YKGRPY.js} +2 -2
  173. package/dist/cdn/{RBCA4YPY.js → Z5OZ2ZJZ.js} +2 -2
  174. package/dist/cdn/{DDJSD2ER.js → Z7XWDFPW.js} +2 -2
  175. package/dist/cdn/{NXQTHQVM.js → ZF3KOW24.js} +2 -2
  176. package/dist/cdn/{HNM6R65V.js → ZFALS74M.js} +2 -2
  177. package/dist/cdn/{L2JMY3Y2.js → ZFBNRWMH.js} +2 -2
  178. package/dist/cdn/{JQLVBFBV.js → ZFDZOUGM.js} +2 -2
  179. package/dist/cdn/{GHMZXGZT.js → ZIXWGACG.js} +2 -2
  180. package/dist/cdn/{LWDAPTZ4.js → ZM4BA5K3.js} +2 -2
  181. package/dist/cdn/{AF4URRN5.js → ZP57Z6WU.js} +2 -2
  182. package/dist/cdn/{CHJ22WNA.js → ZPRS5HBQ.js} +2 -2
  183. package/dist/cdn/{CNWRZGPA.js → ZSF6CYNS.js} +1 -1
  184. package/dist/cdn/ZWB7OEN7.js +4 -0
  185. package/dist/cdn/index.js +2 -2
  186. package/dist/chunks/AnalysisViewModel.js +1 -1
  187. package/dist/chunks/async-utils.js +1 -1
  188. package/dist/chunks/basemap-gallery-resources.js +1 -1
  189. package/dist/chunks/chart-utils.js +1 -1
  190. package/dist/chunks/chartCommon.js +1 -1
  191. package/dist/chunks/component-utils.js +1 -1
  192. package/dist/chunks/createCloseEvent.js +1 -1
  193. package/dist/chunks/feature-utils.js +1 -1
  194. package/dist/chunks/globalCss.js +1 -1
  195. package/dist/chunks/heading.js +1 -1
  196. package/dist/chunks/layer-list.js +2 -2
  197. package/dist/chunks/legacyIcon.js +1 -1
  198. package/dist/chunks/maybe.js +1 -1
  199. package/dist/chunks/measurementUtils.js +1 -1
  200. package/dist/chunks/runtime.js +1 -1
  201. package/dist/chunks/useHandles.js +1 -1
  202. package/dist/chunks/useT9n.js +1 -1
  203. package/dist/chunks/useView.js +1 -1
  204. package/dist/chunks/useViewModel.js +1 -1
  205. package/dist/chunks/useWidget.js +1 -1
  206. package/dist/chunks/utils.js +1 -1
  207. package/dist/components/arcgis-area-measurement-2d/customElement.js +2 -2
  208. package/dist/components/arcgis-area-measurement-3d/customElement.js +18 -19
  209. package/dist/components/arcgis-attachments/customElement.js +2 -2
  210. package/dist/components/arcgis-basemap-gallery/customElement.js +18 -19
  211. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  212. package/dist/components/arcgis-basemap-layer-list/customElement.js +2 -2
  213. package/dist/components/arcgis-basemap-toggle/customElement.js +14 -15
  214. package/dist/components/arcgis-bookmarks/customElement.js +19 -20
  215. package/dist/components/arcgis-building-explorer/customElement.js +2 -2
  216. package/dist/components/arcgis-catalog-layer-list/customElement.js +2 -2
  217. package/dist/components/arcgis-compass/customElement.js +15 -16
  218. package/dist/components/arcgis-coordinate-conversion/customElement.js +2 -2
  219. package/dist/components/arcgis-daylight/customElement.js +2 -2
  220. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +12 -13
  221. package/dist/components/arcgis-directional-pad/customElement.js +20 -21
  222. package/dist/components/arcgis-directions/customElement.js +2 -2
  223. package/dist/components/arcgis-distance-measurement-2d/customElement.js +2 -2
  224. package/dist/components/arcgis-editor/customElement.js +2 -2
  225. package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
  226. package/dist/components/arcgis-expand/customElement.js +2 -2
  227. package/dist/components/arcgis-feature/customElement.js +2 -2
  228. package/dist/components/arcgis-feature-attachments/customElement.js +9 -10
  229. package/dist/components/arcgis-feature-content/customElement.js +8 -9
  230. package/dist/components/arcgis-feature-element-info/customElement.js +13 -14
  231. package/dist/components/arcgis-feature-expression/customElement.js +15 -16
  232. package/dist/components/arcgis-feature-fields/customElement.js +10 -11
  233. package/dist/components/arcgis-feature-form/customElement.js +2 -2
  234. package/dist/components/arcgis-feature-media/customElement.js +13 -14
  235. package/dist/components/arcgis-feature-table/customElement.js +2 -2
  236. package/dist/components/arcgis-feature-templates/customElement.js +2 -2
  237. package/dist/components/arcgis-features/customElement.js +2 -2
  238. package/dist/components/arcgis-floor-filter/customElement.js +2 -2
  239. package/dist/components/arcgis-fullscreen/customElement.js +11 -12
  240. package/dist/components/arcgis-grid-controls/customElement.js +15 -16
  241. package/dist/components/arcgis-histogram-range-slider/customElement.js +2 -2
  242. package/dist/components/arcgis-home/customElement.js +14 -15
  243. package/dist/components/arcgis-labeled-switch/customElement.js +10 -11
  244. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  245. package/dist/components/arcgis-layer-list-item/customElement.js +2 -2
  246. package/dist/components/arcgis-legend/customElement.js +2 -2
  247. package/dist/components/arcgis-line-of-sight/customElement.js +13 -14
  248. package/dist/components/arcgis-link-chart/customElement.js +2 -2
  249. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +17 -18
  250. package/dist/components/arcgis-locate/customElement.js +15 -16
  251. package/dist/components/arcgis-map/customElement.js +2 -2
  252. package/dist/components/arcgis-measurement/customElement.js +2 -2
  253. package/dist/components/arcgis-measurement-content/customElement.js +12 -13
  254. package/dist/components/arcgis-navigation-toggle/customElement.js +7 -8
  255. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +2 -2
  256. package/dist/components/arcgis-placement/customElement.js +2 -2
  257. package/dist/components/arcgis-print/customElement.js +14 -15
  258. package/dist/components/arcgis-print-custom-text-elements/customElement.js +2 -2
  259. package/dist/components/arcgis-print-dpi-input/customElement.js +2 -2
  260. package/dist/components/arcgis-print-export-button/customElement.js +2 -2
  261. package/dist/components/arcgis-print-exported-link/customElement.js +24 -25
  262. package/dist/components/arcgis-print-exports-panel/customElement.js +10 -11
  263. package/dist/components/arcgis-print-format-select/customElement.js +3 -3
  264. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +9 -10
  265. package/dist/components/arcgis-print-layout-panel/customElement.js +7 -8
  266. package/dist/components/arcgis-print-main-panel/customElement.js +5 -6
  267. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +6 -7
  268. package/dist/components/arcgis-print-map-only-panel/customElement.js +5 -6
  269. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +13 -14
  270. package/dist/components/arcgis-print-preview-input/customElement.js +2 -2
  271. package/dist/components/arcgis-print-scale-section/customElement.js +6 -7
  272. package/dist/components/arcgis-print-template-select/customElement.js +11 -12
  273. package/dist/components/arcgis-print-template-selector/customElement.js +9 -10
  274. package/dist/components/arcgis-scale-bar/customElement.js +3 -3
  275. package/dist/components/arcgis-scale-range-slider/customElement.js +2 -2
  276. package/dist/components/arcgis-scene/customElement.js +2 -2
  277. package/dist/components/arcgis-search/customElement.js +3 -3
  278. package/dist/components/arcgis-search-result-renderer/customElement.js +14 -15
  279. package/dist/components/arcgis-shadow-cast/customElement.js +2 -2
  280. package/dist/components/arcgis-sketch/customElement.js +2 -2
  281. package/dist/components/arcgis-slice/customElement.js +14 -15
  282. package/dist/components/arcgis-slider/customElement.js +2 -2
  283. package/dist/components/arcgis-swipe/customElement.js +26 -27
  284. package/dist/components/arcgis-table-list/customElement.js +2 -2
  285. package/dist/components/arcgis-time-slider/customElement.js +2 -2
  286. package/dist/components/arcgis-time-zone-label/customElement.js +10 -11
  287. package/dist/components/arcgis-track/customElement.js +14 -15
  288. package/dist/components/arcgis-unit-select/customElement.js +9 -10
  289. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  290. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  291. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  292. package/dist/components/arcgis-value-picker/customElement.js +2 -2
  293. package/dist/components/arcgis-version-management/customElement.js +2 -2
  294. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  295. package/dist/components/arcgis-version-management-version-item/customElement.js +2 -2
  296. package/dist/components/arcgis-version-management-version-list/customElement.js +5 -6
  297. package/dist/components/arcgis-version-management-version-properties/customElement.js +6 -7
  298. package/dist/components/arcgis-video/customElement.js +2 -2
  299. package/dist/components/arcgis-video-player/customElement.js +17 -18
  300. package/dist/components/arcgis-video-player-action-bar/customElement.js +11 -12
  301. package/dist/components/arcgis-video-player-actions-group/customElement.js +2 -2
  302. package/dist/components/arcgis-video-player-controls-group/customElement.js +2 -2
  303. package/dist/components/arcgis-video-player-metadata/customElement.js +9 -10
  304. package/dist/components/arcgis-video-player-settings/customElement.js +7 -8
  305. package/dist/components/arcgis-video-player-slider/customElement.js +6 -7
  306. package/dist/components/arcgis-weather/customElement.js +14 -15
  307. package/dist/components/arcgis-zoom/customElement.js +11 -12
  308. package/dist/docs/api.json +2 -2
  309. package/dist/docs/docs.json +2 -2
  310. package/dist/docs/web-types.json +1 -1
  311. package/dist/index.js +1 -1
  312. package/dist/loader.js +1 -1
  313. package/package.json +3 -3
  314. package/dist/cdn/47HNMFJJ.js +0 -4
  315. package/dist/cdn/6XKAKRRP.js +0 -4
  316. package/dist/cdn/CRSKH4MJ.js +0 -5
  317. package/dist/cdn/EEF4FFF4.js +0 -6
  318. package/dist/cdn/EF6RPQHB.js +0 -4
  319. package/dist/cdn/PLAHKQMG.js +0 -4
  320. package/dist/cdn/SAI56PHZ.js +0 -4
  321. package/dist/cdn/TDCEORZP.js +0 -4
  322. package/dist/cdn/WS57O7WT.js +0 -4
  323. package/dist/cdn/XNDROTA3.js +0 -4
  324. package/dist/cdn/Y3MFQRLP.js +0 -4
@@ -1,16 +1,15 @@
1
1
  import { c as h } from "../../chunks/runtime.js";
2
- import { html as f } from "lit-html";
2
+ import { css as f, html as y } from "lit";
3
3
  import { classes as i } from "@arcgis/components-utils";
4
4
  import { ignoreAbortErrors as l } from "@arcgis/core/core/promiseUtils.js";
5
5
  import { when as m } from "@arcgis/core/core/reactiveUtils.js";
6
- import { LitElement as y, createEvent as p, noShadowRoot as g, safeClassMap as r, nothing as u } from "@arcgis/lumina";
7
- import { usePropertyChange as z } from "@arcgis/lumina/controllers";
8
- import { u as b } from "../../chunks/useT9n.js";
9
- import { u as O } from "../../chunks/useView.js";
10
- import { css as Z } from "@lit/reactive-element/css-tag.js";
6
+ import { LitElement as g, createEvent as p, noShadowRoot as z, safeClassMap as r, nothing as u } from "@arcgis/lumina";
7
+ import { usePropertyChange as b } from "@arcgis/lumina/controllers";
8
+ import { u as O } from "../../chunks/useT9n.js";
9
+ import { u as Z } from "../../chunks/useView.js";
11
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
13
- v4.34.0-next.46 */
12
+ v4.34.0-next.48 */
14
13
  const a = {
15
14
  base: "arcgis-zoom",
16
15
  horizontalLayout: "arcgis-zoom--horizontal",
@@ -38,16 +37,16 @@ function d(t) {
38
37
  const o = t?.animation?.target;
39
38
  return (o && "then" in o ? void 0 : o?.scale) ?? t?.scale ?? 0;
40
39
  }
41
- const x = Z`@layer{arcgis-zoom,.arcgis-zoom{display:flex;flex-flow:column nowrap;box-shadow:0 1px 2px #0000004d}.arcgis-zoom__zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.arcgis-zoom--horizontal{flex-flow:row-reverse nowrap}.arcgis-zoom--horizontal .arcgis-zoom__zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}}`;
42
- class $ extends y {
40
+ const x = f`@layer{arcgis-zoom,.arcgis-zoom{display:flex;flex-flow:column nowrap;box-shadow:0 1px 2px #0000004d}.arcgis-zoom__zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.arcgis-zoom--horizontal{flex-flow:row-reverse nowrap}.arcgis-zoom--horizontal .arcgis-zoom__zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}}`;
41
+ class $ extends g {
43
42
  constructor() {
44
- super(...arguments), this.messages = b({}), this.view = O(this), this.canZoomIn = !1, this.canZoomOut = !1, this.autoDestroyDisabled = !1, this.icon = "magnifying-glass-plus", this.layout = "vertical", this.position = "top-left", this.state = "disabled", this.arcgisPropertyChange = z()("state"), this.arcgisReady = p();
43
+ super(...arguments), this.messages = O({}), this.view = Z(this), this.canZoomIn = !1, this.canZoomOut = !1, this.autoDestroyDisabled = !1, this.icon = "magnifying-glass-plus", this.layout = "vertical", this.position = "top-left", this.state = "disabled", this.arcgisPropertyChange = b()("state"), this.arcgisReady = p();
45
44
  }
46
45
  static {
47
46
  this.properties = { canZoomIn: 16, canZoomOut: 16, autoDestroyDisabled: 5, icon: 1, label: 1, layout: 3, messageOverrides: 0, position: 1, referenceElement: 1, state: 3 };
48
47
  }
49
48
  static {
50
- this.shadowRootOptions = g;
49
+ this.shadowRootOptions = z;
51
50
  }
52
51
  static {
53
52
  this.styles = x;
@@ -77,7 +76,7 @@ class $ extends y {
77
76
  const o = {
78
77
  [a.horizontalLayout]: this.layout === "horizontal"
79
78
  }, { canZoomIn: e, canZoomOut: s } = this, { zoomIn: n, zoomOut: c } = this.messages;
80
- return f`<div class=${r(i(a.base, o))}><calcite-button class=${r(i(a.button, a.zoomIn))} .disabled=${!e} icon-start=plus kind=neutral .label=${n} @click=${this.zoomIn} title=${n ?? u}></calcite-button><calcite-button class=${r(i(a.button, a.zoomOut))} .disabled=${!s} icon-start=minus kind=neutral .label=${c} @click=${this.zoomOut} title=${c ?? u}></calcite-button></div>`;
79
+ return y`<div class=${r(i(a.base, o))}><calcite-button class=${r(i(a.button, a.zoomIn))} .disabled=${!e} icon-start=plus kind=neutral .label=${n} @click=${this.zoomIn} title=${n ?? u}></calcite-button><calcite-button class=${r(i(a.button, a.zoomOut))} .disabled=${!s} icon-start=minus kind=neutral .label=${c} @click=${this.zoomOut} title=${c ?? u}></calcite-button></div>`;
81
80
  }
82
81
  }
83
82
  h("arcgis-zoom", $);
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2025-07-04T04:42:52",
2
+ "timestamp": "2025-07-06T04:42:58",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "4.34.0-next.46",
5
+ "version": "4.34.0-next.48",
6
6
  "typescriptVersion": "5.8.3"
7
7
  },
8
8
  "schemaVersion": "1.0.0",
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2025-07-04T04:42:52",
2
+ "timestamp": "2025-07-06T04:42:58",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "4.34.0-next.46",
5
+ "version": "4.34.0-next.48",
6
6
  "typescriptVersion": "5.8.3"
7
7
  },
8
8
  "components": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@arcgis/map-components",
4
- "version": "4.34.0-next.46",
4
+ "version": "4.34.0-next.48",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { s, g as t } from "./chunks/runtime.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.46 */
4
+ v4.34.0-next.48 */
5
5
  const a = s, A = t;
6
6
  export {
7
7
  A as getArcgisAssetPath,
package/dist/loader.js CHANGED
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
2
2
  import { makeDefineCustomElements as t } from "@arcgis/lumina";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
5
- v4.34.0-next.46 */
5
+ v4.34.0-next.48 */
6
6
  const o = t(e, {
7
7
  "arcgis-area-measurement-2d": [() => import("./components/arcgis-area-measurement-2d/customElement.js"), "autoDestroyDisabled,icon,label,position,referenceElement,snappingOptions:,state,unit,unitOptions:;clear,destroy,start"],
8
8
  "arcgis-area-measurement-3d": [() => import("./components/arcgis-area-measurement-3d/customElement.js"), "analysis:,autoDestroyDisabled,icon,label,position,referenceElement,state,unit,unitOptions:;clear,destroy,start"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/map-components",
3
- "version": "4.34.0-next.46",
3
+ "version": "4.34.0-next.48",
4
4
  "description": "ArcGIS Map Components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -43,8 +43,8 @@
43
43
  "license": "SEE LICENSE IN LICENSE.md",
44
44
  "dependencies": {
45
45
  "@amcharts/amcharts5": "^5.13.1",
46
- "@arcgis/components-utils": "4.34.0-next.46",
47
- "@arcgis/lumina": "4.34.0-next.46",
46
+ "@arcgis/components-utils": "4.34.0-next.48",
47
+ "@arcgis/lumina": "4.34.0-next.48",
48
48
  "lit": "^3.3.0",
49
49
  "tslib": "^2.8.1"
50
50
  },
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import{a as h}from"./OTYAT57N.js";import{b as y}from"./QQNF3PDW.js";import j from"./YGGFIEDD.js";import{a as R}from"./DDFNQIGL.js";import{a as d}from"./CNWRZGPA.js";import i from"./K5VEH4Z4.js";import e from"./555LHYQD.js";import{f}from"./VF5EWLKX.js";import"./B5SNDUEJ.js";import{i as w}from"./TDKCF65R.js";import{D as g,G as b,R as v,S as a,T as _,U as c,W as $,e as p,t as m,u as o}from"./EEF4FFF4.js";import"./JGJPR32F.js";export default $arcgis.t(([{watch:M},S,,,C])=>{var x=[-45,0,45,-90,90,-135,180,135],B={0:{label:"north",iconName:"chevron-up"},45:{label:"northEast",iconName:"chevron-up-right"},90:{label:"east",iconName:"chevron-right"},135:{label:"southEast",iconName:"chevron-down-right"},180:{label:"south",iconName:"chevron-down"},"-135":{label:"southWest",iconName:"chevron-down-left"},"-90":{label:"west",iconName:"chevron-left"},"-45":{label:"northWest",iconName:"chevron-up-left"}},n="arcgis-directional-pad",s={base:n,buttonsContainer:`${n}__buttons-container`,button:`${n}__button`,compassButton:`${n}__compass`,rotationContainer:`${n}__rotation-container`,rotationSliderContainer:`${n}__rotation-slider-container`,rotationReset:`${n}__rotation-reset-button`,error:`${n}__error`},E=m`@layer{.arcgis-directional-pad{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);outline:none;box-shadow:none!important;background-color:transparent!important;user-select:none;calcite-action-pad{display:contents}calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.arcgis-directional-pad__buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;--calcite-action-group-padding: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media (hover: none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.arcgis-directional-pad__rotation-container{display:block;width:100%;calcite-action{flex:.3}}.arcgis-directional-pad__rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}}`;function k(r){let{x:t,y:e,width:i,height:l}=r.getBoundingClientRect();return{x:t+i/2,y:e+l/2}}function D(r){return r?.spatialReference?.isWebMercator||r?.spatialReference?.isGeographic||!1}var N=C(S),u=class extends v{constructor(){super(...arguments),this.messages=R({}),this._onContextMenu=t=>t.preventDefault(),this._buttons={},this.viewModel=N(this),this.angle=this.viewModel.angle,this.rotation=this.viewModel.rotation,this.autoDestroyDisabled=!1,this.disabled=this.viewModel.disabled,this.hideDirectionalButtons=!1,this.icon="move",this.position="bottom-left",this.showRotationResetButton=!1,this.showRotationSlider=!1,this.state=this.viewModel.state,this.visualScale="s",this.arcgisPropertyChange=f()("state"),this.arcgisReady=g()}static{this.properties={_rotationEnabled:16,angle:16,rotation:16,autoDestroyDisabled:5,disabled:5,hideDirectionalButtons:5,icon:1,label:1,messageOverrides:0,position:3,referenceElement:1,showRotationResetButton:5,showRotationSlider:5,state:3,visualScale:1}}static{this.shadowRootOptions=b}static{this.styles=E}get _rotationEnabled(){return this.view?.ready?this.view.constraints.rotationEnabled??!1:!0}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[M(()=>this.viewModel.angle,()=>{this._buttonsContainer?.contains(document.activeElement)&&(this.viewModel.angle==null?w(this)?.focus():p(this._buttons[this.viewModel.angle]))})])}_rotateIcon(t){return{"--rotation":`rotate(${t}deg)`}}_setButtonContainerRef(t){t!==void 0?(this._buttonsContainer=t,queueMicrotask(()=>{this._buttons=Object.fromEntries(Array.from(t.children,e=>[Number.parseInt(e.getAttribute("data-angle")??""),e]))})):(this._buttonsContainer=void 0,this._buttons={})}_onButtonPointerDown(t){if(this._buttonsContainer===void 0)return;t.composedPath().find(i=>i.hasPointerCapture?.(t.pointerId))?.releasePointerCapture(t.pointerId);let e=k(this._buttonsContainer);this.viewModel.beginFollowingPointer(t,e)}_onSliderInput({currentTarget:t}){typeof t.value=="number"&&(this.viewModel.rotation=t.value)}_onRotationReset(){this.viewModel.rotation=0}_onClick(t){this.viewModel.moveOnce(t)}render(){let{label:t,disabled:e}=this,i=this.view==null||this.view.type==="2d";return o`<div .ariaLabel=${t??void 0} class=${a({[s.base]:!0,[d.widget]:!0,[d.disabled]:e})} tabindex=-1>${i?this._renderContent():this._renderUnsupportedMessage()}</div>`}_renderUnsupportedMessage(){return o`<section class=${a(s.error)}><p>${this.messages.unsupported}</p></section>`}_renderContent(){return[this.hideDirectionalButtons?void 0:this._renderDirectionalButtons(),this.showRotationSlider?this._renderRotation():void 0]}_renderDirectionalButtons(){return h("directional-buttons-container",o`<calcite-action-bar expand-disabled floating layout=grid overflow-actions-disabled><calcite-action-group class=${a(s.buttonsContainer)} dir=ltr @contextmenu=${{handleEvent:this._onContextMenu,capture:!0}} ${y(this._setButtonContainerRef)}>${x.slice(0,4).map(this._renderButton,this)}${this._renderCompass()}${x.slice(4).map(this._renderButton,this)}</calcite-action-group></calcite-action-bar>`)}_renderButton(t){let{label:e,iconName:i}=B[t],l=this.messages[e];return o`<calcite-action .active=${this.angle===t} alignment=center class=${a(s.button)} data-angle=${t??c} .disabled=${this.disabled} @click=${this._onClick.bind(this,t)} @pointerdown=${this._onButtonPointerDown} .scale=${this.visualScale} .text=${l??""} title=${l??c}><calcite-icon .icon=${i} .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderCompass(){let t=this.disabled||D(this.view)?"compass-needle":"arrow-up",e=this.rotation===0,i=this.messages.resetHeading;return o`<calcite-action alignment=center class=${a(s.compassButton)} .disabled=${this.disabled||!this._rotationEnabled||e} @click=${this._onRotationReset} .scale=${this.visualScale} style=${_(this._rotateIcon(this.rotation))} .text=${i??""} title=${i??c}>${!e&&o`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>`||""}</calcite-action>`}_renderRotation(){return h("slider-container",o`<calcite-action-bar expand-disabled floating layout=horizontal><calcite-action-group class=${a(s.rotationContainer)}>${this.showRotationResetButton?this._renderRotationResetButton():null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-bar>`)}_renderRotationResetButton(){let t=this.messages.resetHeading;return o`<calcite-action alignment=center class=${a(s.rotationReset)} .disabled=${this.disabled||!this._rotationEnabled} @click=${this._onRotationReset} .scale=${this.visualScale} .text=${t??""} title=${t??c}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderRotationSlider(){return o`<div class=${a(s.rotationSliderContainer)}><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled||!this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`}};$("arcgis-directional-pad",u);return u},"core/reactiveUtils","widgets/DirectionalPad/DirectionalPadViewModel",e,i,j)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import{a as p}from"./OTYAT57N.js";import{b as h}from"./QQNF3PDW.js";import{D as s,R as r,S as e,W as d,t as o,u as c}from"./EEF4FFF4.js";import"./JGJPR32F.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 r{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 ${h(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>`}};d("arcgis-labeled-switch",n);export{n as LabeledSwitch};
@@ -1,5 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import b from"./4H733DZT.js";import a from"./GIBMOUBB.js";import{a as W}from"./OTYAT57N.js";import{b as K}from"./QQNF3PDW.js";import{c as G}from"./VF5EWLKX.js";import"./B5SNDUEJ.js";import{G as H,R as O,S as y,U as w,W as j,f as B,t as D,u as C}from"./EEF4FFF4.js";import"./JGJPR32F.js";export default $arcgis.t(([{getColorsFromRenderer:oe},{substitute:le},{watch:de},ce,te,{renderingSanitizer:ae},{a:A,b:q,c:z,d:J,e:Q,f:Z,g:ee,h:N,i:P,j:S},{b:$}])=>{var me=D`@layer{arcgis-feature-media{display:block}.arcgis-feature-media__container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.arcgis-feature-media__container .arcgis-feature-media__pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.arcgis-feature-media__container .arcgis-feature-media__pagination-button:hover,.arcgis-feature-media__container .arcgis-feature-media__pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.arcgis-feature-media__item-title{margin:0;font-size:var(--calcite-font-size-md)}.arcgis-feature-media__item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size)}.arcgis-feature-media__item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.arcgis-feature-media__item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.arcgis-feature-media__item-text{margin-inline-end:var(--calcite-spacing-xs)}.arcgis-feature-media__pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.arcgis-feature-media__pagination:only-child{margin-inline-start:auto}.arcgis-feature-media__pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.arcgis-feature-media__item-container{flex:0 1 auto;width:100%}.arcgis-feature-media__item-container img{max-width:100%}.arcgis-feature-media__item-container img[src$=".SVG"],.arcgis-feature-media__item-container img[src$=".svg"]{width:100%}.arcgis-feature-media__chart{width:100%;height:155px}}`;function X(V){if(!A(V))return null;let[e,t]=V.split("/").slice(1);return{layerId:e,fieldName:t}}var M="arcgis-feature-media",I={base:M,mediaContainer:`${M}__container`,mediaItemContainer:`${M}__item-container`,mediaItem:`${M}__item`,mediaItemText:`${M}__item-text`,mediaItemTitle:`${M}__item-title`,mediaItemCaption:`${M}__item-caption`,mediaNavigation:`${M}__item-navigation`,mediaPagination:`${M}__pagination`,mediaPaginationText:`${M}__pagination-text`,mediaChart:`${M}__chart`,mediaPaginationButton:`${M}__pagination-button`,mediaPaginationIcon:`${M}__pagination-icon`,mediaChartRendered:`${M}__chart--rendered`},Y=15,b="category",T="value",ue="rgba(50, 50, 50, 1)",he=250,fe=500,pe=200,E=class extends O{constructor(){super(...arguments),this._prefersReducedMotion=G("(prefers-reduced-motion)"),this.activeMediaInfoIndex=0,this.chartAnimationDisabled=!1,this.isAggregate=!1,this.headingLevel=2}static{this.properties={_refreshIntervalInfo:16,messages:0,values:0,activeMediaInfoIndex:9,chartAnimationDisabled:5,activeMediaInfo:32,formattedMediaInfos:32,description:1,fieldInfoMap:0,layer:0,mediaInfos:0,popupTemplate:0,relatedInfos:0,formattedValues:0,expressionValues:0,heading:1,isAggregate:5,formattedMediaInfoCount:32,headingLevel:9}}static{this.styles=me}static{this.shadowRootOptions=H}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}setActiveMedia(e){this._setContentElementMedia(e)}loaded(){this.manager.onLifecycle(()=>[de(()=>[this.activeMediaInfo,this.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),{initial:!0}),{remove:()=>this._clearMediaRefreshTimer()}])}_setContentElementMedia(e){let{formattedMediaInfoCount:t}=this,a=(e+t)%t;this.activeMediaInfoIndex=a}_pageContentElementMedia(e){let{activeMediaInfoIndex:t}=this,a=t+e;this._setContentElementMedia(a)}_formatMediaInfos(){let{mediaInfos:e,layer:t}=this,a=this.values??{},i=this.formattedValues??{},n=this.expressionValues??{},s=this.fieldInfoMap??new Map;return e?.map(o=>{let r=o?.clone();if(!r)return null;if(r.title=S({values:a,fieldInfoMap:s,globalValues:i,expressionValues:n,layer:t,text:r.title}),r.caption=S({values:a,fieldInfoMap:s,globalValues:i,expressionValues:n,layer:t,text:r.caption}),r.altText=S({values:a,fieldInfoMap:s,globalValues:i,expressionValues:n,layer:t,text:r.altText}),r.type==="image"){if(!r.value)return null;let l=r.value;return this._setImageValue({value:l,formattedValues:i,layer:t}),l.sourceURL?r:void 0}if(r.type==="pie-chart"||r.type==="line-chart"||r.type==="column-chart"||r.type==="bar-chart"){if(!r.value)return null;let l=r.value;return this._setChartValue({value:l,chartType:r.type,values:a,formattedValues:i,layer:t,expressionValues:n}),r}return null}).filter(o=>o!=null)??[]}_setImageValue(e){let t=this.fieldInfoMap??new Map,{value:a,formattedValues:i,layer:n}=e,{linkURL:s,sourceURL:o}=a;if(o){let r=P(o,n);a.sourceURL=N({formattedValues:i,template:r,fieldInfoMap:t})}if(s){let r=P(s,n);a.linkURL=N({formattedValues:i,template:r,fieldInfoMap:t})}}_setChartValue(e){let{value:t,values:a,formattedValues:i,chartType:n,layer:s,expressionValues:o}=e,{popupTemplate:r,relatedInfos:l}=this,{fields:f,normalizeField:c}=t,d=s;if(t.fields=J(f,d),c&&(t.normalizeField=z(c,d)),!f.some(h=>!!(i[h]!=null||A(h)&&l?.size)))return;let u=r?.fieldInfos??[];f.forEach((h,m)=>{let p=t.colors?.[m];if(A(h)){t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:u,fieldName:h,formattedValues:i,chartType:n,value:t,color:p})];return}let g=this._getChartOption({value:t,values:a,chartType:n,formattedValues:i,expressionValues:o,fieldName:h,fieldInfos:u,color:p});t.series.push(g)})}_getRelatedChartInfos(e){let{fieldInfos:t,fieldName:a,formattedValues:i,chartType:n,value:s,color:o}=e,r=[],l=X(a),f=l&&this.relatedInfos?.get(l.layerId.toString());if(!f)return r;let{relatedFeatures:c,relation:d}=f;if(!d||!c)return r;let{cardinality:u}=d;return c.forEach(h=>{let m=h.attributes;m&&Object.keys(m).forEach(p=>{p===l.fieldName&&r.push(this._getChartOption({value:s,values:m,formattedValues:i,fieldName:a,chartType:n,relatedFieldName:p,hasMultipleRelatedFeatures:c?.length>1,fieldInfos:t,color:o}))})}),u&&(u==="one-to-many"||u==="many-to-many")?r:[r[0]]}_getTooltip({label:e,value:t,chartType:a}){return a==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){let{value:t,values:a,formattedValues:i,expressionValues:n,fieldName:s,relatedFieldName:o,fieldInfos:r,chartType:l,hasMultipleRelatedFeatures:f,color:c}=e,d=this.layer,u=this.fieldInfoMap??new Map,{normalizeField:h,tooltipField:m}=t,p=h?A(h)?a[X(h).fieldName]:a[h]:null,g=Q(s)&&n?.[s]!==void 0?n[s]:o&&a[o]!==void 0?a[o]:a[s]!==void 0?a[s]:i[s],v=g===void 0?null:g&&p&&typeof g=="number"&&typeof p=="number"?g/p:g,_=Z(r,s),x=z(s,d),L=(m&&i[m]!==void 0?i[m]:ee(_||new ce({fieldName:x}),this.popupTemplate?.expressionInfos))??"",R=i[x]??"",U=typeof v=="number"?v:Number(v);if(A(s)){let F=u.get(s.toLowerCase()),ie=m?u.get(m.toLowerCase()):null,re=F?.fieldName??s,k=f&&m?X(m).fieldName:ie?.fieldName??m,se=(f&&k?a[k]:i[k]??F?.label??F?.fieldName??o)??"",ne=(f&&o?a[o]:i[re])??"";return new te({fieldName:s,tooltip:this._getTooltip({label:se,value:ne,chartType:l}),color:c,value:U})}return new te({fieldName:s,tooltip:this._getTooltip({label:L,value:R,chartType:l}),color:c,value:U})}_getRenderer(){let e=this.layer;return this.isAggregate&&e?.featureReduction&&"renderer"in e.featureReduction?e.featureReduction.renderer:e?.renderer}async _getSeriesColors(e){let{color:t}=await import("./X5LQ2RKX.js"),a=new Map;return e.forEach(i=>{i.color&&a.set(i,t(i.color.toCss(!0)))}),a}async _getRendererColors(){let{color:e}=await import("./X5LQ2RKX.js"),t=new Map,a=this._getRenderer(),i="default";if(!a)return t;let n=await oe(a);return n.delete(i),Array.from(n.values()).every(s=>s?.length===1)&&Array.from(n.keys()).forEach(s=>{let o=n.get(s)?.[0]?.toCss(!0);o&&t.set(s,e(o))}),t}async _createChart(e){let{activeMediaInfo:t}=this;if(!e||!t)return;let{createRoot:a}=await import("./WS57O7WT.js").then(m=>m.default.then(e=>({createRoot:e}))),i=await a(e);this._chartRoot=i,this._renderChart({mediaInfo:t,root:i})}_handleMediaKeyup(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this.previous()),t==="ArrowRight"&&(e.stopPropagation(),this.next())}_canAnimateChart(){return!this.chartAnimationDisabled&&!this._prefersReducedMotion}_getChartAnimationMS(){return this._canAnimateChart()?he:0}_getChartSeriesAnimationMS(){return this._canAnimateChart()?fe:0}_getDirection(){return $(this.el)?"rtl":"ltr"}async _customizeChartTooltip(e,t="horizontal"){let{color:a}=await import("./X5LQ2RKX.js");e.setAll({pointerOrientation:t}),e.get("background")?.setAll({stroke:a(ue)}),e.label.setAll({direction:this._getDirection(),oversizedBehavior:"wrap",maxWidth:pe})}async _createPieChart(e,t){let[{Tooltip:a},{PieChart:i,PieSeries:n}]=await Promise.all([import("./X5LQ2RKX.js"),import("./GCGGBQXD.js")]),{mediaInfo:s,root:o}=e,{title:r}=s,l=5,f=s?.altText||s?.title||"",c=o.container.children.push(i.new(o,{role:"figure",ariaLabel:f,focusable:!0,paddingBottom:l,paddingTop:l,paddingLeft:l,paddingRight:l})),d=`{category}: {valuePercentTotal.formatNumber('0.00')}%
5
- ({value})`,u=a.new(o,{labelText:d}),h=c.series.push(n.new(o,{name:r,valueField:T,categoryField:b,tooltip:u}));h.ticks.template.set("forceHidden",!0),h.labels.template.set("forceHidden",!0),h.slices.template.states.create("active",{shiftRadius:l}),this._customizeChartTooltip(u),h.slices.template.setAll({ariaLabel:d,focusable:!0,templateField:"columnSettings"}),h.data.setAll(t),h.appear(this._getChartSeriesAnimationMS()),c.appear(this._getChartAnimationMS()),c.root.dom.classList.toggle(I.mediaChartRendered,!0)}_getMinSeriesValue(e){let t=0;return e.forEach(a=>t=Math.min(a.value,t)),t}async _createColumnChart(e,t,a){let[{Tooltip:i,Scrollbar:n},{CategoryAxis:s,AxisRendererX:o,AxisRendererY:r,ValueAxis:l,ColumnSeries:f}]=await Promise.all([import("./X5LQ2RKX.js"),import("./TS4DZQ2X.js")]),{mediaInfo:c,root:d}=t,{value:u,title:h}=c;e.setAll({wheelX:"panX",wheelY:"zoomX"});let m=e.xAxes.push(s.new(d,{renderer:o.new(d,{inversed:$(this.el)}),categoryField:b}));m.get("renderer").labels.template.setAll({forceHidden:!0});let p=e.yAxes.push(l.new(d,{renderer:r.new(d,{inside:!1}),min:this._getMinSeriesValue(u.series)}));p.get("renderer").labels.template.setAll({direction:this._getDirection()});let g="{categoryX}",v=i.new(d,{labelText:g}),_=e.series.push(f.new(d,{name:h,xAxis:m,yAxis:p,valueYField:T,categoryXField:b,tooltip:v}));this._customizeChartTooltip(v),_.columns.template.setAll({ariaLabel:g,focusable:!0,templateField:"columnSettings"}),u.series.length>Y&&e.set("scrollbarX",n.new(d,{orientation:"horizontal"})),m.data.setAll(a),_.data.setAll(a),_.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createBarChart(e,t,a){let[{Tooltip:i,Scrollbar:n},{CategoryAxis:s,AxisRendererX:o,AxisRendererY:r,ValueAxis:l,ColumnSeries:f}]=await Promise.all([import("./X5LQ2RKX.js"),import("./TS4DZQ2X.js")]),{mediaInfo:c,root:d}=t,{value:u,title:h}=c;e.setAll({wheelX:"panY",wheelY:"zoomY"});let m=e.yAxes.push(s.new(d,{renderer:r.new(d,{inversed:!0}),categoryField:b}));m.get("renderer").labels.template.setAll({forceHidden:!0});let p=e.xAxes.push(l.new(d,{renderer:o.new(d,{inside:!1,inversed:$(this.el)}),min:this._getMinSeriesValue(u.series)}));p.get("renderer").labels.template.setAll({direction:this._getDirection()});let g="{categoryY}",v=i.new(d,{labelText:g}),_=e.series.push(f.new(d,{name:h,xAxis:p,yAxis:m,valueXField:T,categoryYField:b,tooltip:v}));this._customizeChartTooltip(v,"vertical"),_.columns.template.setAll({ariaLabel:g,focusable:!0,templateField:"columnSettings"}),u.series.length>Y&&e.set("scrollbarY",n.new(d,{orientation:"vertical"})),m.data.setAll(a),_.data.setAll(a),_.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createLineChart(e,t,a){let[{Tooltip:i,Scrollbar:n},{CategoryAxis:s,AxisRendererX:o,AxisRendererY:r,ValueAxis:l,LineSeries:f}]=await Promise.all([import("./X5LQ2RKX.js"),import("./TS4DZQ2X.js")]),{root:c,mediaInfo:d}=t,{value:u,title:h}=d;e.setAll({wheelX:"panX",wheelY:"zoomX"});let m=e.xAxes.push(s.new(c,{renderer:o.new(c,{inversed:$(this.el)}),categoryField:b}));m.get("renderer").labels.template.setAll({forceHidden:!0});let p=e.yAxes.push(l.new(c,{renderer:r.new(c,{inside:!1}),min:this._getMinSeriesValue(u.series)}));p.get("renderer").labels.template.setAll({direction:this._getDirection()});let g="{categoryX}",v=a[0]?.lineSettings?.stroke,_=i.new(c,{getFillFromSprite:!v,labelText:g});v&&_.get("background")?.setAll({fill:v});let x=e.series.push(f.new(c,{name:h,xAxis:m,yAxis:p,valueYField:T,categoryXField:b,tooltip:_}));x.strokes.template.setAll({templateField:"lineSettings"}),this._customizeChartTooltip(_,"vertical"),u.series.length>Y&&e.set("scrollbarX",n.new(c,{orientation:"horizontal"})),m.data.setAll(a),x.data.setAll(a),x.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createXYChart(e,t){let{XYChart:a,XYCursor:i}=await import("./TS4DZQ2X.js"),{root:n,mediaInfo:s}=e,{type:o}=s,r=s?.altText||s?.title||"",l=n.container.children.push(a.new(n,{role:"figure",ariaLabel:r,focusable:!0,panX:!0,panY:!0}));l.set("cursor",i.new(n,{})),o==="column-chart"&&await this._createColumnChart(l,e,t),o==="bar-chart"&&await this._createBarChart(l,e,t),o==="line-chart"&&await this._createLineChart(l,e,t),l.root.dom.classList.toggle(I.mediaChartRendered,!0)}_clearMediaRefreshTimer(){let{_refreshTimer:e}=this;e&&(clearTimeout(e),this._refreshTimer=void 0)}_updateMediaInfoTimestamp(e){let t=Date.now();this._refreshIntervalInfo={timestamp:t,sourceURL:e&&this._getImageSource(e,t)}}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();let{activeMediaInfo:e}=this;e?.type==="image"&&e.refreshInterval>0&&this._setRefreshTimeout(e)}_setRefreshTimeout(e){let{refreshInterval:t,value:a}=e,i=t*6e4;this._updateMediaInfoTimestamp(a.sourceURL);let n=window.setInterval(()=>{this._updateMediaInfoTimestamp(a.sourceURL)},i);this._refreshTimer=n}_getImageSource(e,t){let a=e.includes("?")?"&":"?",[i,n=""]=e.split("#");return`${i}${a}timestamp=${t}${n?"#":""}${n}`}_updateChartElement(e){if(!e){this._chartRoot?.dispose(),this._chartRoot=void 0;return}this._createChart(e)}render(){return C`<div class=${y(I.base)} @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`}_renderMedia(){let{formattedMediaInfoCount:e,activeMediaInfoIndex:t}=this,a=this._renderMediaText();return e?C`<div class=${y(I.mediaContainer)}>${this._renderMediaInfo()}<div class=${y(I.mediaNavigation)}>${a}${e>1?C`<div class=${y(I.mediaPagination)}>${this._renderMediaPageButton("previous")}<span class=${y(I.mediaPaginationText)}>${le(this.messages?.pageText??"",{index:t+1,total:e})}</span>${this._renderMediaPageButton("next")}</div>`:null}</div></div>`:null}_renderMediaText(){let{activeMediaInfo:e}=this;if(!e)return null;let t=e?.title?C`<div class=${y(I.mediaItemTitle)} .innerHTML=${ae.sanitize(e.title)??""}></div>`:null,a=e?.caption?C`<div class=${y(I.mediaItemCaption)} .innerHTML=${ae.sanitize(e.caption)??""}></div>`:null;return t||a?C`<div class=${y(I.mediaItemText)}>${t}${a}</div>`:null}_renderImageMediaInfo(e){if(!e.value)return null;let{_refreshIntervalInfo:t}=this,{value:a,refreshInterval:i,altText:n,title:s}=e,{sourceURL:o,linkURL:r}=a,l=q(r??void 0)?"_blank":"_self",f=l==="_blank"?"noreferrer":"",c=i?t:null,d=c?c.sourceURL:o,u=C`<img alt=${(n||s)??w} src=${d??void 0??w}>`;return(r?C`<a href=${r??w} rel=${f??w} target=${l??w} title=${s??w}>${u}</a>`:null)??u}_renderChartMediaInfo(e){let{activeMediaInfoIndex:t,formattedMediaInfoCount:a}=this;return W(`media-${e.type}-${t}-${a}`,C`<div class=${y(I.mediaChart)} ${K(this._updateChartElement)}></div>`)}_renderMediaInfoType(){let{activeMediaInfo:e}=this;return e?e.type==="image"?this._renderImageMediaInfo(e):e.type.includes("chart")?this._renderChartMediaInfo(e):null:null}_renderMediaInfo(){let{activeMediaInfo:e}=this;return e?C`<div class=${y(I.mediaItemContainer)}><div class=${y(I.mediaItem)}>${this._renderMediaInfoType()}</div></div>`:null}_renderMediaPageButton(e){if(this.formattedMediaInfoCount<2)return null;let t=e==="previous",a=t?this.messages?.previous??"":this.messages?.next??"",i=t?"chevron-left":"chevron-right",n=t?this.previous:this.next;return C`<button .ariaLabel=${a} class=${y(I.mediaPaginationButton)} @click=${n} tabindex=0 title=${a??w} type=button><calcite-icon flip-rtl class=${y(I.mediaPaginationIcon)} .icon=${i} scale=s></calcite-icon></button>`}async _renderChart(e){let{root:t,mediaInfo:a}=e,{value:i,type:n}=a,[{default:s},{default:o},{default:r},{esriChartColorSet:l},{ColorSet:f,Theme:c}]=await Promise.all([import("./CNB27FFP.js"),import("./U3RTJZ22.js"),import("./3ULEY3CU.js"),import("./MN2JNV5K.js"),import("./X5LQ2RKX.js")]),d=c.new(t);d.rule("ColorSet").set("colors",l),d.rule("ColorSet").set("reuse",!0);let u=[r.new(t),d];B(this.el)==="dark"&&u.push(o.new(t)),this._canAnimateChart()&&u.push(s.new(t)),t.setThemes(u);let h=await this._getRendererColors(),m=await this._getSeriesColors(i.series),p=f.new(t,{}),g=m.get(i.series[0]),v=g?{lineSettings:{stroke:g}}:void 0,_=i.series.map((x,L)=>{let R=m.get(x)||h.get(x.fieldName)||p.getIndex(L);return{[b]:x.tooltip,[T]:x.value,columnSettings:{fill:R,stroke:R},...v}}).filter(x=>n==="pie-chart"?x.value!=null&&x.value>0:!0);n==="pie-chart"?this._createPieChart(e,_):this._createXYChart(e,_)}};j("arcgis-feature-media",E);return E},"renderers/support/utils","intl","core/reactiveUtils","popup/FieldInfo","popup/content/support/ChartMediaInfoValueSeries","applications/Components/sanitizerUtils",a,b)
@@ -1,6 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- var Es=(...o)=>{let t=[];for(let s=0;s<o.length;s++){let n=o[s];if(typeof n=="string")t.push(n);else if(Array.isArray(n))t.push.apply(t,n);else if(typeof n=="object")for(let r in n)n[r]&&t.push(r)}let e=t.join(" ");return t.length=0,e},v=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ye=(o,t)=>{let e=o;for(;e;){if(e===t)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},ge=(o,t,e)=>{let s=ve(t).subscribe;return s(n=>{n.some(i=>ye(o,i.target))&&e()})},ut={},ve=o=>{let t=o.join(","),e=ut[t];if(e!==void 0)return e;let s=new Set,n=new MutationObserver(i=>s.forEach(a=>a(i)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:o,subtree:!0});let r={subscribe:i=>(s.add(i),()=>{s.delete(i),s.size===0&&(n.disconnect(),ut[t]=void 0)})};return ut[t]=r,r},xt=(o,t)=>{let e=o;for(;e;){let s=e.closest?.(t);if(s)return s;let n=e.getRootNode?.();if(n===globalThis.document)return null;e=n.host}return null};var Ee=(o,t,e)=>xt(o,`[${t}]`)?.getAttribute(t)??e;var be=o=>typeof o.setFocus=="function";var bs=async o=>{o!=null&&(be(o)?await o.setFocus():o.focus())};function $s(o){let t=xt(o,".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=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},I=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}},M=o=>{let t="";for(let e=0;e<o;e++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t},As=()=>[M(2),M(1),M(1),M(1),M(3)].join("-"),$e="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),Ae=new Set($e),Q="en",_e={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},Ce=async(o,t,e="")=>{let s=`${t}/${e}`,n=`${s}${o}.json`;return ft[n]??(ft[n]=Dt(o,s)),await ft[n]},ft={},Dt=async(o,t)=>{let e=`${t}${o}.json`;try{let s=await fetch(e);if(s.ok)return await s.json()}catch(s){return console.error(s),{}}return o===Q?{}:await Dt(Q,t)},we=o=>{let t=Ee(o,"lang",globalThis.navigator?.language||Q);return{lang:t,t9nLocale:Ut(t)}},Ut=o=>{let[t,e]=o.split("-"),s=t.toLowerCase(),n=s;return e&&(n=`${s}-${e.toUpperCase()}`),n=_e[n]??n,Ae.has(n)?n:e?Ut(s):Q},_s=(o,t,e,s)=>{let n,r=()=>Oe(o,t(),s).then(i=>{(n?.lang!==i.lang||n.t9nLocale!==i.t9nLocale||n.t9nStrings!==i.t9nStrings)&&e(i),n=i}).catch(console.error);return queueMicrotask(r),ge(o,["lang"],r)},Oe=async(o,t,e=o.localName.split("-").slice(1).join("-"))=>{let{lang:s,t9nLocale:n}=we(o),r=`${t}/${e}/t9n`,a=e===null?{}:await Ce(n,r,"messages.");return{lang:s,t9nLocale:n,t9nStrings:a}};var Cs=o=>`\u200E${o??""}\u200E`;var Y=o=>o.replace(Te,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Te=/[A-Z]+(?![a-z])|[A-Z]/gu;var Rt=(o,t)=>{let e=t>Se?Ne:t/Pe,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},Se=4e3,Ne=2e3,Pe=4;var ws=(o,t,e=!1)=>{if(!o||!t)return!1;let s=new URL(o),n=new URL(t);return!e&&s.protocol!==n.protocol||s.host==null||n.host==null?!1:s.host.toLowerCase()===n.host.toLowerCase()&&s.port===n.port};var Z=globalThis,X=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),kt=new WeakMap,j=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(X&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&kt.set(e,t))}return t}toString(){return this.cssText}},Mt=o=>new j(typeof o=="string"?o:o+"",void 0,mt),Le=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new j(e,o,mt)},It=(o,t)=>{if(X)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Z.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},yt=X?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Mt(e)})(o):o;var vt=globalThis,tt=vt.trustedTypes,jt=tt?tt.createPolicy("lit-html",{createHTML:o=>o}):void 0,Et="$lit$",b=`lit$${Math.random().toFixed(9).slice(2)}$`,bt="?"+b,xe=`<${bt}>`,O=document,H=()=>O.createComment(""),V=o=>o===null||typeof o!="object"&&typeof o!="function",$t=Array.isArray,Wt=o=>$t(o)||typeof o?.[Symbol.iterator]=="function",gt=`[
5
- \f\r]`,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zt=/-->/g,Ht=/>/g,C=RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Bt=/"/g,qt=/^(?:script|style|textarea|title)$/i,At=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),Ss=At(1),Ns=At(2),Ps=At(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ft=new WeakMap,w=O.createTreeWalker(O,129);function Kt(o,t){if(!$t(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return jt!==void 0?jt.createHTML(t):t}var Gt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=z;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===z?u[1]==="!--"?i=zt:u[1]!==void 0?i=Ht:u[2]!==void 0?(qt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=C):u[3]!==void 0&&(i=C):i===C?u[0]===">"?(i=n??z,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?C:u[3]==='"'?Bt:Vt):i===Bt||i===Vt?i=C:i===zt||i===Ht?i=z:(i=C,n=void 0);let y=i===C&&o[a+1].startsWith("/>")?" ":"";r+=i===z?c+xe:h>=0?(s.push(l),c.slice(0,h)+Et+c.slice(h)+b+y):c+b+(h===-2?a:y)}return[Kt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Gt(t,e);if(this.el=o.createElement(l,s),w.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=w.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Et)){let m=u[i++],y=n.getAttribute(h).split(b),_=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:_[2],strings:y,ctor:_[1]==="."?st:_[1]==="?"?ot:_[1]==="@"?nt:S}),n.removeAttribute(h)}else h.startsWith(b)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(qt.test(n.tagName)){let h=n.textContent.split(b),m=h.length-1;if(m>0){n.textContent=tt?tt.emptyScript:"";for(let y=0;y<m;y++)n.append(h[y],H()),w.nextNode(),c.push({type:2,index:++r});n.append(h[m],H())}}}else if(n.nodeType===8)if(n.data===bt)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(b,h+1))!==-1;)c.push({type:7,index:r}),h+=b.length-1}r++}}static createElement(t,e){let s=O.createElement("template");return s.innerHTML=t,s}};function T(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=T(o,n._$AS(o,t.values),n,s)),t}var et=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??O).importNode(e,!0);w.currentNode=n;let r=w.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new U(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new rt(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=w.nextNode(),i++)}return w.currentNode=O,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Wt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new et(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Ft.get(t.strings);return e===void 0&&Ft.set(t.strings,e=new B(t)),e}k(t){$t(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(H()),this.O(H()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},S=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=T(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=T(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},st=class extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ot=class extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},nt=class extends S{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},rt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}},Jt={M:Et,P:b,A:bt,C:1,L:Gt,R:et,D:Wt,V:T,I:U,H:S,N:ot,U:nt,B:st,F:rt},De=vt.litHtmlPolyfillSupport;De?.(B,U),(vt.litHtmlVersions??=[]).push("3.3.0");var _t=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new U(t.insertBefore(H(),r),r,void 0,e??{})}return n._$AI(o),n};var{is:Ue,defineProperty:Re,getOwnPropertyDescriptor:ke,getOwnPropertyNames:Me,getOwnPropertySymbols:Ie,getPrototypeOf:je}=Object,at=globalThis,Qt=at.trustedTypes,ze=Qt?Qt.emptyScript:"",He=at.reactiveElementPolyfillSupport,F=(o,t)=>o,it={toAttribute(o,t){switch(t){case Boolean:o=o?ze:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},W=(o,t)=>!Ue(o,t),Yt={attribute:!0,type:String,converter:it,reflect:!1,useDefault:!1,hasChanged:W};Symbol.metadata??=Symbol("metadata"),at.litPropertyMetadata??=new WeakMap;var $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Yt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Re(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=ke(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Yt}static _$Ei(){if(this.hasOwnProperty(F("elementProperties")))return;let t=je(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(F("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(F("properties"))){let e=this.properties,s=[...Me(e),...Ie(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(yt(n))}else t!==void 0&&e.push(yt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return It(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:it).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:it;this._$Em=n,this[n]=i.fromAttribute(e,r.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let n=this.constructor,r=this[t];if(s??=n.getPropertyOptions(t),!((s.hasChanged??W)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[F("elementProperties")]=new Map,$[F("finalized")]=new Map,He?.({ReactiveElement:$}),(at.reactiveElementVersions??=[]).push("2.1.0");var Ct=globalThis,E=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=_t(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Ct.litElementHydrateSupport?.({LitElement:E});var Ve=Ct.litElementPolyfillSupport;Ve?.({LitElement:E});(Ct.litElementVersions??=[]).push("4.2.0");var K=Symbol.for("controller"),Be=o=>typeof o=="object"&&o!==null&&(K in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),qs=o=>typeof o?.then=="function",Ks=o=>o.M.length,q,P=o=>{q!==o&&(q=o,queueMicrotask(()=>q===o?q=void 0:0))},G=o=>q,N=[],Zt=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},Xt=()=>N,R,Gs=o=>{R!==o&&(R=o,queueMicrotask(()=>R===o?R=void 0:0))},Fe=()=>{let o=R;return R=void 0,o},te=async(o,t)=>{let e=lt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ee=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Be(o))return o;let s=Fe();if(s!==void 0)return s},ct=!1,Js=o=>{ct=!0;try{return o()}finally{ct=!1}};var We=(o,t,e)=>{let s=Object.keys(o),n=s.length;k===void 0&&queueMicrotask(ht),k??=new Map;let r=k.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},k.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},k,ht=()=>{k?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),k=void 0},qe=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Ke=(o=[G(),...Xt()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>We(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){qe(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},Ge=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&ht();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Ke(void 0,n=>o=n.key,s),s},Je=Ge.bind(null,""),ne;ne=K;var wt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#n=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new v,this.connectedCalled=!1,this.loadedCalled=!1,this[ne]=!0,this.#a=[];let e=this,s=t??G(new.target.name);e.#r=s,e.ready=e.P.promise,e.#i=oe(e),e.component=s,e.#r.addController(e),e.#r.manager===void 0||(Zt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#n;#c;#l;#p;#h;#d;#r;catchUpLifecycle(){let{manager:t}=this.#r;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#i;get exports(){return this.#i}set exports(t){let e=this.#i;e!==t&&(this.#i=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#r.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#i=e?oe(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#i);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return P(this.#r),te}get useRef(){return P(this.#r),ee}get useRefSync(){return P(this.#r),lt}controllerRemoved(){this.#r.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#r.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await I(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(I)),this.P.resolve(this.#i)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#o.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#n.forEach(se,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(se,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){P(this.#r);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#h.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#h.push(n.remove)})}};function se(o){p(o,void 0,this)}var re=wt,oe=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var ie=";",dt=",",ae=":";var Tt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},St={};function Nt(){}var Qe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,m]=l.split(ie),y=u?u?.split(dt).map(Ye):void 0,_=y?.map(([D])=>D),x=class extends Ot{static{this.observedAttributes=y?.map(([,D])=>D).filter(D=>D!=="")}static{this.C=_}static{this.E=h?h?.split(dt):void 0}static{this.D=m?.split(dt)}static{this.L=a}static{this.K=o}constructor(){!x.B&&(x.B=c(),x.F()),super()}};customElements.define(a,x)}},pt=Object.defineProperty,Ye=o=>{let t=o.split(ae);return t.length===1?[t[0],Y(t[0])]:t},Ze=globalThis.HTMLElement??Nt,Ot=class extends Ze{constructor(){super(),this.#e={},this.#s=[],this.I=new v,this.H=new v,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#o({a:e.A}):e.B.then(async s=>{await e.K.p,t.#o(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])pt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])pt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])pt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Tt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);ts(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(Xe,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function Xe([o,t]){this[o]=t}var ts=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},pt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var g={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},L=o=>(...t)=>({_$litDirective$:o,values:t}),A=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var ce=L(class extends A{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var le="important",ss=" !"+le,he=L(class extends A{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(ss);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?le:""):e[s]=n}}return f}});var{I:os}=Jt;var pe=o=>o.strings===void 0,de=()=>document.createComment(""),wo=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(de(),n),i=s.insertBefore(de(),n);e=new os(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=c.nextSibling;s.insertBefore(c,n),c=l}}}return e},Oo=(o,t,e=o)=>(o._$AI(t,e),o),ns={},ue=(o,t=ns)=>o._$AH=t,To=o=>o._$AH,So=o=>{o._$AP?.(!1,!0);let t=o._$AA,e=o._$AB.nextSibling;for(;t!==e;){let s=t.nextSibling;t.remove(),t=s}};var rs=L(class extends A{constructor(o){if(super(o),o.type!==g.PROPERTY&&o.type!==g.ATTRIBUTE&&o.type!==g.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!pe(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===g.PROPERTY){if(t===e[s])return f}else if(o.type===g.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===g.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ue(o),t}});var Pt=class extends re{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=Lt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Lt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),ht();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),P(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=Rt(t,fs)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},fs=1e3,Lt="autoDestroyDisabled",fe=class o extends E{constructor(){super(),this.M=[],this.manager=new Pt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#o=s?.H??new v,t.I=s?.I??new v,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Nt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===St;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??W,i={attribute:s&1&&typeof t=="string"?Y(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&a?.S(t,i)}}}static{this.lumina=!0}#t;#e;#s;#o;#n;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#o.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===St?this.el:this.el.attachShadow(s));if(t)return E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#l(){let t=this.el.G??Tt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(I(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(Lt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#c(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(K in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}},me=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Xo=o=>typeof o=="object"&&o!=null?ce(o):o,tn=o=>typeof o=="object"&&o!=null?he(o):o;var en=d;var J=me({defaultAssetPath:"https://jsdev.arcgis.com/next/map-components/",hydratedAttribute:"hydrated"}),{customElement:an,getAssetPath:cn,setAssetPath:ln}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{Es as a,ge as b,xt as c,Ee as d,bs as e,$s as f,As as g,we as h,_s as i,Cs as j,ws as k,qs as l,Ks as m,P as n,G as o,Zt as p,Xt as q,Gs as r,Js as s,Le as t,Ss as u,Ns as v,Ps as w,f as x,d as y,_t as z,qe as A,Ke as B,Ge as C,Je as D,wt as E,re as F,St as G,Qe as H,g as I,L as J,A as K,pe as L,wo as M,Oo as N,ue as O,To as P,So as Q,fe as R,Xo as S,tn as T,en as U,J as V,an as W,cn as X};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import{b}from"./QQNF3PDW.js";import d from"./YGGFIEDD.js";import{a as E}from"./DDFNQIGL.js";import{a as _}from"./CNWRZGPA.js";import c from"./K5VEH4Z4.js";import a from"./555LHYQD.js";import{f as T}from"./VF5EWLKX.js";import"./B5SNDUEJ.js";import"./TDKCF65R.js";import{D as w,G as C,R as I,S as s,U as m,W as M,a as h,g as y,t as S,u as n}from"./EEF4FFF4.js";import"./JGJPR32F.js";export default $arcgis.t(([R,p,{substitute:D},{watch:L},B,,,x])=>{function N(l){if(l==null||Number.isNaN(l))return 0;let e=l+180;return Math.trunc(k(e,360))}function W(l){let e=l;return e==null||(typeof e=="string"&&(e=Number.parseInt(e,10)),Number.isNaN(e))?0:k(Math.trunc(e),360)-180}function k(l,e){return(l%e+e)%e}var P={fromAttribute:l=>p.fromHex(l),toAttribute:l=>typeof l=="string"?l:l?.toHex()??""},G=S`@layer{calcite-block>.arcgis-grid-controls{background:none;padding:0}.arcgis-ui-corner .arcgis-expand .arcgis-widget--panel .arcgis-widget--panel.arcgis-grid-controls{overflow-y:visible}.arcgis-grid-controls{user-select:none;display:flex;flex-flow:column wrap;padding:var(--calcite-spacing-sm);.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)}}}`,A="arcgis-grid-controls",c={base:A,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=p.fromArray([115,115,115]),f=p.fromArray([200,200,200]),j=["interactive","place","rotate"],q=x(B),$=class extends I{constructor(){super(...arguments),this._labelUid=y(),this._messages=E({}),this._viewModel=q(this),this._placementModeButtonRefs=new Map,this.numericSpacingInputShouldBeVisible=this._viewModel.numericSpacingInputShouldBeVisible,this.position="bottom-right",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=T()("customColor","theme","spacing","rotation","majorLineInterval","rotateWithMap","dynamicScaling","snappingEnabled","interactivePlacementState","displayEnabled","gridOutOfScale","effectiveSpacingAfterDynamicScaling","gridControlsEnabled","gridColor"),this.arcgisReady=w()}static{this.properties={_placementModeButtonRefs:16,_warningIconTooltipRef:16,_themePopoverRef:16,numericSpacingInputShouldBeVisible:16,referenceElement:1,position:3,icon:1,customColor:[3,{converter:P}],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:P}],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=G}static{this.shadowRootOptions=C}get theme(){let e=this.gridColor;return!e||v.equals(e)?"dark":f.equals(e)?"light":"custom"}set theme(e){let t=this._viewModel.view;switch(e){case"dark":this.gridColor=v;break;case"custom":this.customColor==null&&(this.customColor=t?.theme?.accentColor??new R().accentColor),this.gridColor=this.customColor;break;case"light":default:this.gridColor=f;break}}async destroy(){await this.manager.destroy()}trySetDisplayEnabled(e){this._viewModel.trySetDisplayEnabled(e)}loaded(){this.manager.onLifecycle(()=>[L(()=>this._viewModel.gridColor,e=>{let t=e instanceof p?e:typeof e=="string"?p.fromHex(e):null;t&&!v.equals(e)&&!f.equals(t)?this.customColor=t:v.equals(t)?this.theme="dark":f.equals(t)&&(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 t=e.dataset.placementAction;this._placementModeButtonRefs.set(t,e)}else this._placementModeButtonRefs.clear()}render(){return n`<div class=${s(h(c.base,_.widget,_.panel))}><div class=${s(c.container)}>${this._renderContent()}</div></div>`}_renderContent(){let{hideGridEnabledToggle:e,hidePlacementButtons:t,hideNumericInputs:i,hideLineIntervalInput:a,hideGridSnapEnabledToggle:r,hideDynamicScaleToggle:o,hideRotateWithMapToggle:d,hideColorSelection:g}=this;return[e?void 0:this._renderEnabledToggle(),t?void 0:this._renderGridPlacementButtons(),i?void 0:this._renderNumericInputs(),a?void 0:this._renderIntervalInput(),!r&&this.snappingOptions?this._renderSnappingToggle():void 0,o?void 0:this._renderDynamicScaleToggle(),d?void 0:this._renderRotateToggle(),g?void 0:this._renderColorSelection()]}_renderGridPlacementButtons(){let{interactivePlacementState:e,placementDisabled:t,gridControlsEnabled:i}=this,a=t||!i;return n`<calcite-label scale=s>${this._messages.placementOptions}<calcite-action-bar expand-disabled layout=horizontal>${j.map(r=>this._renderPlacementModeButton(r,a,e))}</calcite-action-bar></calcite-label>`}_renderPlacementModeButton(e,t,i){let a=this._messages?.placementState?.[e],r=this._placementModeButtonRefs.get(e);return n`<div><calcite-action .active=${i===e} alignment=center .disabled=${t} .icon=${u.placementState[e]} data-placement-action=${e??m} @click=${()=>this._togglePlacementState(e)} .text=${a??""} ${b(this._setPlacementButtonRef)}></calcite-action>${r?n`<calcite-tooltip overlay-positioning=fixed placement=top .referenceElement=${r}>${a}</calcite-tooltip>`:void 0}</div>`}_renderNumericInputs(){let{rotation:e,spacing:t,effectiveSpacingAfterDynamicScaling:i,numericSpacingInputShouldBeVisible:a,gridControlsEnabled:r}=this,o=i!=null&&i!==t;return n`<div class=${s(h(c.numericInputsContainer))}>${[a?n`<calcite-label scale=s><span>${this._messages?.inputLabel?.spacing}${o?n`<calcite-icon class=${s(h(c.inlineIcon))} .icon=${u.warning} scale=s tabindex=0 ${b(this._setWarningIconRef)}></calcite-icon>`:void 0}</span><calcite-input-number .disabled=${!r} number-button-type=none .value=${t?.toFixed(2)} @calciteInputNumberChange=${({currentTarget:d})=>{let g=Number.parseFloat(d.value);this.spacing=g,g!==this.spacing&&(d.value=`${this.spacing}`)}}></calcite-input-number>${o&&this._warningIconTooltipRef?n`<calcite-tooltip overlay-positioning=fixed placement=leading .referenceElement=${this._warningIconTooltipRef}>${D(this._messages?.warnings?.dynamicSpacing??"",{actualSpacingIncludingUnit:i},{format:{actualSpacingIncludingUnit:{type:"number",intlOptions:{minimumFractionDigits:2,maximumFractionDigits:2,unit:this.unit??"meters",style:"decimal"}}}})}</calcite-tooltip>`:void 0}</calcite-label>`:void 0,n`<calcite-label scale=s>${this._messages?.inputLabel?.angle}<calcite-input-number .disabled=${!r} integer number-button-type=none suffix-text=\u00B0 .value=${`${N(e)}`} @calciteInputNumberChange=${({currentTarget:d})=>this.rotation=W(d.value)}></calcite-input-number></calcite-label>`]}</div>`}_renderIntervalInput(){let{majorLineInterval:e,gridControlsEnabled:t}=this;return n`<div class=${s(h(c.numericInputsContainer))}><calcite-label scale=s>${this._messages?.inputLabel?.interval}<calcite-input-number .disabled=${!t} integer max=15 min=1 number-button-type=vertical .value=${`${e}`} @calciteInputNumberChange=${({currentTarget:i})=>{let a=Number.parseInt(i.value,10);this.majorLineInterval=a,a!==this.majorLineInterval&&(i.value=`${this.majorLineInterval}`)}}></calcite-input-number></calcite-label></div>`}_renderSnappingToggle(){let{snappingOptions:e,gridControlsEnabled:t}=this,i=e?.gridEnabled??!1;return n`<arcgis-labeled-switch .checked=${!!i} .disabled=${!(t&&e)} .label=${this._messages?.switchLabel?.snap} @arcgisCheckedChanged=${a=>{a.stopPropagation(),this.snappingOptions?.set("gridEnabled",a.detail)}}></arcgis-labeled-switch>`}_renderDynamicScaleToggle(){let{_messages:e,gridOutOfScale:t,dynamicScaling:i,gridControlsEnabled:a}=this,r=!this.hideOutOfScaleWarning&&t;return n`<arcgis-labeled-switch .checked=${i} .disabled=${!a} .hint=${r?e?.warnings?.outOfScale:void 0} .hintIcon=${u.warning} hint-kind=warning .label=${e?.switchLabel?.scaling} @arcgisCheckedChanged=${o=>{o.stopPropagation(),this.dynamicScaling=o.detail}}></arcgis-labeled-switch>`}_renderRotateToggle(){let{gridControlsEnabled:e,rotateWithMap:t}=this;return n`<arcgis-labeled-switch .checked=${t} .disabled=${!e} .label=${this._messages?.switchLabel?.rotateWithMap??""} @arcgisCheckedChanged=${i=>{i.stopPropagation(),this.rotateWithMap=i.detail}}></arcgis-labeled-switch>`}_renderEnabledToggle(){return n`<div class=${s(c.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 n`<calcite-label scale=s>${this._messages?.inputLabel?.theme}<div class=${s(c.tileGroup)}>${[this._renderThemeTile({value:"dark"}),this._renderThemeTile({value:"light"}),this._renderThemeTile({value:"custom"}),this._themePopoverRef?n`<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=${t=>{let i=p.fromHex(t.currentTarget.value);i&&(this.customColor=i,this.theme="custom")}}></calcite-color-picker></calcite-popover>`:void 0]}</div></calcite-label>`}_renderThemeTile(e){let{theme:t,gridControlsEnabled:i}=this,{value:a}=e,r=this._messages?.gridTheme?.[a],o=`${this._labelUid}--theme_tile_${a}`,d=`${o}__label`,g=u.gridTheme[a];return n`<div class=${s(h({[c.tile]:!0,[c.tileDisabled]:!i}))} role=button ${b(a==="custom"?this._setPopoverRef:this._emptyFunction)}><input aria-labelledby=${d??m} .checked=${t===a} .disabled=${!i} id=${o??m} .name=${`${this._labelUid}--theme`} @change=${O=>{this.theme=a,O.currentTarget.focus()}} tabindex=0 type=radio><div class=${s(c.tileContent)}><calcite-icon .icon=${g} scale=l></calcite-icon><calcite-label .for=${o} id=${d??m}>${r}</calcite-label></div></div>`}};M("arcgis-grid-controls",$);return $},"views/Theme","Color","intl","core/reactiveUtils","widgets/support/GridControls/GridControlsViewModel",a,c,d)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import a from"./GIBMOUBB.js";import{b as f}from"./QQNF3PDW.js";import{G as s,R as l,S as i,W as g,t as o,u as r}from"./EEF4FFF4.js";import"./JGJPR32F.js";export default $arcgis.t(([{watch:p},{b:h,k:n}])=>{var v=o`@layer{arcgis-feature-content{display:block}.arcgis-feature-content__loader-container{display:flex;align-items:center;justify-content:center;padding:0;height:150px}.arcgis-feature-content{font-size:var(--calcite-font-size-md)}.arcgis-feature-content h1,.arcgis-feature-content h2,.arcgis-feature-content h3,.arcgis-feature-content h4,.arcgis-feature-content h5,.arcgis-feature-content h6{margin:var(--calcite-spacing-sm) 0;line-height:normal;letter-spacing:0;color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-semibold)}.arcgis-feature-content h1{font-size:var(--calcite-font-size-xxl)}.arcgis-feature-content h2{font-size:var(--calcite-font-size-xl)}.arcgis-feature-content h3{font-size:var(--calcite-font-size-lg)}.arcgis-feature-content h4,.arcgis-feature-content h5,.arcgis-feature-content h6{font-size:var(--calcite-font-size)}.arcgis-widget__heading.arcgis-feature-element-info__title{margin-top:0;margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-lg);font-weight:var(--calcite-font-weight-regular)}.arcgis-feature-element-info__description{margin-bottom:var(--calcite-spacing-xs);font-size:var(--calcite-font-weight-regular);font-weight:var(--calcite-font-weight-regular)}.arcgis-feature-content p{margin:0 0 var(--calcite-spacing-xs);font-size:var(--calcite-font-weight-regular)}.arcgis-feature-content p:last-child{margin-block-end:0}.arcgis-feature-content img{max-width:100%;max-height:100%;image-orientation:from-image}.arcgis-feature-content video{max-width:100%;max-height:100%}.arcgis-feature-content figure{margin:0;padding:0}.arcgis-feature-content figcaption{display:block;margin:var(--calcite-spacing-xs) 0 0;padding:0;font-size:var(--calcite-font-size-sm);font-style:italic}.arcgis-feature-content ul,.arcgis-feature-content ol{margin-block:var(--calcite-spacing-sm)}.arcgis-feature-content ul:first-child,.arcgis-feature-content ol:first-child{margin-block-start:0}.arcgis-feature-content a,.arcgis-feature-content a:hover,.arcgis-feature-content a:focus{color:var(--calcite-color-text-link)}}`,d="arcgis-feature-content",m={base:d,loaderContainer:`${d}__loader-container`},c=class extends l{static{this.properties={_loadingPromise:16,_created:16,creator:1,destroyer:0,graphic:0}}static{this.styles=v}static{this.shadowRootOptions=s}loaded(){this.manager.onLifecycle(()=>p(()=>this.creator,t=>{this._destroyContent(),this._createContent(t)},{initial:!0}))}async _createContent(t){let{graphic:e}=this;if(!e||!t)return;let a=n({type:"content",value:t,event:{graphic:e}});this._loadingPromise=a;let u=await a;a===this._loadingPromise&&(this._loadingPromise=void 0,this._created=u)}_destroyContent(){let{_created:t,graphic:e,destroyer:a}=this;t&&e&&(n({type:"content",value:a,event:{graphic:e}}),this._created=null)}_addTargetToAnchors(t){Array.from(t.querySelectorAll("a")).forEach(e=>{h(e.href)&&!e.hasAttribute("target")&&e.setAttribute("target","_blank")})}render(){return r`<div class=${i(m.base)}>${this._loadingPromise?this._renderLoading():this._renderCreated()}</div>`}_renderLoading(){return r`<div class=${i(m.loaderContainer)}><calcite-loader inline label></calcite-loader></div>`}_renderCreated(){let{_created:t}=this;return t instanceof HTMLElement?t:typeof t=="string"?r`<div .innerHTML=${t??""} ${f(this._addTargetToAnchors)}></div>`:null}};g("arcgis-feature-content",c);return c},"core/reactiveUtils",a)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import{b as R}from"./QQNF3PDW.js";import e from"./YGGFIEDD.js";import{a as L}from"./DDFNQIGL.js";import{a as v}from"./CNWRZGPA.js";import b from"./K5VEH4Z4.js";import a from"./555LHYQD.js";import"./VF5EWLKX.js";import"./B5SNDUEJ.js";import"./TDKCF65R.js";import{D as C,G as y,R as g,S as r,T as _,W as w,a as d,u as c}from"./EEF4FFF4.js";import"./JGJPR32F.js";export default $arcgis.t(([{getDefaultUnitForView:U},{watch:D},{formatNumber:S},x,,,B])=>{function M($=0,e=0){return{x:$,y:e}}var a="esri-scale-bar",t={base:a,labelContainer:`${a}__label-container`,rulerLabelContainer:`${a}__label-container--ruler`,lineLabelContainer:`${a}__label-container--line`,topLabelContainer:`${a}__label-container--top`,bottomLabelContainer:`${a}__label-container--bottom`,label:`${a}__label`,line:`${a}__line`,topLine:`${a}__line--top`,bottomLine:`${a}__line--bottom`,ruler:`${a}__ruler`,rulerBlock:`${a}__ruler-block`,barContainer:`${a}__bar-container`,rulerBarContainer:`${a}__bar-container--ruler`,lineBarContainer:`${a}__bar-container--line`},O=B(x),f=class extends g{constructor(){super(...arguments),this._defaultUnit="metric",this.messages=L(),this._scaleComputedFrom=M(),this.viewModel=O(this),this.autoDestroyDisabled=!1,this.barStyle="line",this.icon="actual-size",this.position="top-left",this.arcgisReady=C()}static{this.properties={autoDestroyDisabled:5,barStyle:1,icon:1,label:1,messageOverrides:0,position:3,referenceElement:1,unit:1}}static{this.shadowRootOptions=y}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(()=>D(()=>{let e=this.viewModel.view;return{defaultUnit:e?U(e):void 0,stationary:e?.stationary,center:e?.center,scale:e?.scale,zoom:e?.zoom}},({defaultUnit:e,stationary:i})=>{this._defaultUnit=e??"metric",i&&this.requestUpdate()}))}_handleContainerRef(e){e!==void 0&&this._handleRootCreateOrUpdate()}_handleRootCreateOrUpdate(){if(!this.viewModel)return;let e=this._scaleComputedFrom,i=this.el.getBoundingClientRect(),s=i.left+window.pageXOffset,l=i.top+window.pageYOffset,o=M(s,l);(o.x!==e.x||o.y!==e.y)&&(this._scaleComputedFrom=o)}_formatDistance(e,i){return S(e,{style:"unit",unit:i,unitDisplay:"short"})}render(){let e=this.viewModel.state==="disabled",i={[v.disabled]:e},s,l;if(!e){let{unit:o,barStyle:u}=this,b=o==="imperial"||o==="dual",p=o==="metric"||o==="dual",m=100,h=o==="dual"?"line":u;if(b){let n=this.viewModel.getScaleBarProperties(m,"imperial");n&&(l=h==="ruler"?this._renderRuler(n):this._renderLine(n,"bottom"))}if(p){let n=this.viewModel.getScaleBarProperties(m,"metric");n&&(s=h==="ruler"?this._renderRuler(n):this._renderLine(n,"top"))}}return c`<div class=${r(d(t.base,v.widget,i))} ${R(this._handleContainerRef)}>${s}${l}</div>`}_renderRuler(e){let{length:i,unit:s,value:l}=e,o=Math.round(i),u=this._formatDistance(l,s);return c`<div class=${r(d(t.barContainer,t.rulerBarContainer))}><div class=${r(t.ruler)} style=${_({width:`${o}px`})}><div class=${r(t.rulerBlock)}></div><div class=${r(t.rulerBlock)}></div><div class=${r(t.rulerBlock)}></div><div class=${r(t.rulerBlock)}></div></div><div class=${r(d(t.labelContainer,t.rulerLabelContainer))}><div class=${r(t.label)}>0</div><div class=${r(t.label)}>${u}</div></div></div>`}_renderLine(e,i){let{length:s,unit:l,value:o}=e,u=Math.round(s),b=this._formatDistance(o,l),p={[t.topLabelContainer]:i==="top",[t.bottomLabelContainer]:i==="bottom"},m=c`<div class=${r(d(t.labelContainer,t.lineLabelContainer,p))}><div class=${r(t.label)}>${b}</div></div>`,h={[t.topLine]:i==="top",[t.bottomLine]:i==="bottom"},n=c`<div class=${r(d(t.line,h))} style=${_({width:`${u}px`})}></div>`;return c`<div class=${r(d(t.barContainer,t.lineBarContainer))}>${[n,m]}</div>`}};w("arcgis-scale-bar",f);return f},"applications/Components/getDefaultUnits","core/reactiveUtils","intl","widgets/ScaleBar/ScaleBarViewModel",a,b,e)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import{a as q}from"./OTYAT57N.js";import{b as p}from"./QQNF3PDW.js";import{a as R}from"./NXQTHQVM.js";import"./3IVEE2IX.js";import c from"./YGGFIEDD.js";import{a as O}from"./DDFNQIGL.js";import{a as T}from"./CNWRZGPA.js";import b from"./K5VEH4Z4.js";import a from"./555LHYQD.js";import{f as N}from"./VF5EWLKX.js";import"./B5SNDUEJ.js";import"./TDKCF65R.js";import{D as E,G as A,R as M,S as l,U as v,W as L,a as w,g as D,t as U,u as r}from"./EEF4FFF4.js";import"./JGJPR32F.js";export default $arcgis.t(([Z,{formatDate:V,convertDateFormatToIntlOptions:H},{isHTTPSProtocol:$,isDataProtocol:x},{watch:S},z,{property:g,subclass:j},,,P])=>{var m="arcgis-bookmarks",y=`${m}__authoring`,C=`${m}__bookmark`,c={base:m,empty:`${m}__empty`,noBookmarksHeader:`${m}__no-bookmarks-heading`,noBookmarksDescription:`${m}__no-bookmarks-description`,form:`${m}__form`,list:`${m}__list`,loader:`${m}__loader`,filterNoResults:`${m}__filter-no-results`,formContent:`${m}__form-content`,addBookmarkButton:`${m}__add-bookmark-button`,editBookmarkInput:`${m}__edit-bookmark-input`,addBookmarkInput:`${m}__add-bookmark-input`,dragEnabled:`${m}--drag-enabled`,bookmarkImage:`${m}__image`,bookmarkImageContainer:`${C}-image-container`,bookmarkContent:`${C}-content`,bookmarkContentLabel:`${C}-content-label`,authoring:y,authoringImageContainer:`${y}-image-container`,authoringRefreshThumbnailButton:`${y}-refresh-thumbnail-button`},G=U`@layer{arcgis-bookmarks{display:block}.arcgis-bookmarks{display:flex;background-color:transparent}.arcgis-bookmarks__empty{display:flex;flex-flow:column wrap;align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);text-align:center;color:var(--calcite-color-text-1)}.arcgis-bookmarks .arcgis-widget__content--empty{background-color:var(--calcite-color-foreground-2)}.arcgis-bookmarks calcite-flow-item[loading]{min-height:150px}.arcgis-bookmarks__loader{margin-inline-end:0}.arcgis-bookmarks__filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.arcgis-bookmarks__bookmark-image-container{display:flex;position:relative;margin:0;margin-inline-start:var(--calcite-spacing-xs);min-width:16px;min-height:16px}.arcgis-bookmarks__bookmark-image-container .arcgis-bookmarks__image{max-width:64px;overflow:hidden}.arcgis-bookmarks--drag-enabled .arcgis-bookmarks__bookmark-image-container{margin-inline-start:0}.arcgis-bookmarks__no-bookmarks-heading{margin:0;margin-block-start:var(--calcite-spacing-md);font-size:16px;font-weight:400}.arcgis-bookmarks__authoring{display:flex;flex-direction:column}.arcgis-bookmarks__authoring-image-container{display:flex;align-items:middle;justify-content:center;margin-block-end:var(--calcite-spacing-md);margin-inline-end:var(--calcite-spacing-lg);background-image:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%);background-position:0 0,10px 10px;background-size:20px 20px;background-color:#fff;width:128px;height:128px;text-align:center}.arcgis-bookmarks__authoring-image-container .arcgis-bookmarks__image{max-width:128px;max-height:128px}.arcgis-bookmarks__form{display:flex;height:100%}.arcgis-bookmarks__form-content{padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}.arcgis-bookmarks__authoring-refresh-thumbnail-button{margin-block-end:var(--calcite-spacing-md)}.arcgis-bookmarks__bookmark-content-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--2)}.arcgis-bookmarks__bookmark-content calcite-table{margin-inline-start:-.25rem}.arcgis-bookmarks__bookmark-content calcite-table,.arcgis-bookmarks__bookmark-content calcite-table-row{--calcite-color-border-3: transparent;--calcite-color-text-1: var(--calcite-color-text-3);--calcite-internal-table-row-background: transparent;pointer-events:none}}`,J=Object.defineProperty,K=Object.getOwnPropertyDescriptor,h=(n,e,t,i)=>{for(var a=i>1?void 0:i?K(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(a=(i?s(e,t,a):s(a))||a);return i&&a&&J(e,t,a),a},u=class extends z{constructor(n){super(n)}get editedBookmark(){let{bookmark:n}=this;return n?this._get("editedBookmark")||n.clone():null}get customUrl(){if(this._customUrl)return this._customUrl;let n=this.editedBookmark?.thumbnail?.url??"";return n??($(n)?n:null)}set customUrl(n){this._customUrl=n}get screenshotUrl(){if(this._screenshotUrl)return this._screenshotUrl;let n=this.editedBookmark?.thumbnail?.url??"";return n??(x(n)?n:null)}set screenshotUrl(n){this._screenshotUrl=n}get state(){return this._get("state")}set state(n){this.validationState=void 0,this.creatingBookmark=void 0,this._set("state",n)}get thumbnailState(){if(this._thumbnailState)return this._thumbnailState;let n=this.editedBookmark?.thumbnail?.url;return n?$(n)?"url":"screenshot":"none"}set thumbnailState(n){this._thumbnailState=n}};h([g()],u.prototype,"bookmark",2);h([g({readOnly:!0})],u.prototype,"editedBookmark",1);h([g()],u.prototype,"_customUrl",2);h([g()],u.prototype,"customUrl",1);h([g()],u.prototype,"_screenshotUrl",2);h([g()],u.prototype,"screenshotUrl",1);h([g()],u.prototype,"state",1);h([g()],u.prototype,"_thumbnailState",2);h([g()],u.prototype,"thumbnailState",1);h([g()],u.prototype,"validationState",2);h([g()],u.prototype,"creatingBookmark",2);u=h([j("UserState")],u);var Q=P(Z),F=class extends M{constructor(){super(...arguments),this._guid=D(),this._addInputNode=null,this._editInputNode=null,this._urlEditInputNode=null,this._lastDragDetail=null,this.messages=O({}),this.viewModel=Q(this),this._storeEditFlowItemNode=e=>{this._editFlowItemEl=e},this._storeRootFlowItem=e=>{this._rootFlowItemEl=e},this._storeAddFlowItemNode=e=>{this._addFlowItemEl=e},this._userState=null,this._userCreatingBookmark=!1,this.editIncludeTimeExtent=!1,this.position="top-left",this.icon="icon",this.closed=!1,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultEditOptions=this.viewModel.defaultEditOptions,this.bookmarks=this.viewModel.bookmarks,this.disabled=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.goToOverride=this.viewModel.goToOverride,this.showAddBookmarkButton=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditBookmarkButton=!1,this.showFilter=!1,this.hideFlow=!1,this.showHeading=!1,this.hideThumbnail=!1,this.hideTime=!1,this.timeDisabled=this.viewModel.capabilities.time,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisBookmarkEdit=E(),this.arcgisBookmarkSelect=E(),this.arcgisPropertyChange=N()("state"),this.arcgisReady=E()}static{this.properties={_userState:16,_userStateValue:16,_userValidationState:16,_userThumbnailState:16,_userCreatingBookmark:16,editIncludeTimeExtent:16,referenceElement:1,position:3,icon:1,closed:5,defaultCreateOptions:0,defaultEditOptions:0,bookmarks:0,disabled:5,dragEnabled:5,filterPlaceholder:1,filterText:1,headingLevel:9,goToOverride:0,showAddBookmarkButton:5,showCloseButton:5,showCollapseButton:5,showEditBookmarkButton:5,showFilter:5,hideFlow:5,showHeading:5,hideThumbnail:5,hideTime:5,timeDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:3}}static{this.styles=G}static{this.shadowRootOptions=A}async destroy(){await this.manager.destroy()}goTo(e){return this.viewModel.goTo(e)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.on("bookmark-select",this.arcgisBookmarkSelect.emit),this.viewModel.on("bookmark-edit",this.arcgisBookmarkEdit.emit),S(()=>this._userState?.state,e=>this._userStateValue=e,{initial:!0}),S(()=>this._userState?.validationState,e=>this._userValidationState=e,{initial:!0}),S(()=>this._userState?.thumbnailState,e=>this._userThumbnailState=e,{initial:!0}),S(()=>this._userState?.creatingBookmark,e=>this._userCreatingBookmark=!!e,{initial:!0})])}startAddBookmark(){this._userState=new u({state:"add"}),requestAnimationFrame(()=>{this._addFlowItemEl?.setFocus()})}_clearState(){this._userState=null}_getTimeExtentStrings(e){let{hideTime:t}=this,{timeExtent:i}=e;if(!i)return{};let{start:a,end:o}=i,s=o!=null&&(a==null||a.getTime()!==o.getTime()),d=a?this._formatDate(a):"",b=a&&!t?this._formatTime(a):"";if(!s)return{startDate:d,startTime:b};let f=this._formatDate(o),k=t?"":this._formatTime(o);return{startDate:d,startTime:b,endDate:f,endTime:k}}_handleUrlEditInputChange(){let{_userState:e,_urlEditInputNode:t}=this,i=t?.value;if(!e?.editedBookmark||!i)return;e.validationState=void 0,x(e.editedBookmark.thumbnail?.url??"")&&(e.screenshotUrl=e.editedBookmark.thumbnail?.url);let a={url:i};$(a.url)&&(e.customUrl=i,e.editedBookmark.thumbnail=a)}_getBookmarkTitle(e){return(e?.name||this.messages.untitled)??""}_formatDate(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return V(e,{...H("short-date"),timeZone:i})}_formatTime(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return V(e,{...H("long-time"),timeZone:i})}_onCalciteListOrderChange(e){let{_lastDragDetail:t,bookmarks:i}=this,{toEl:a,fromEl:o,dragEl:s,newIndex:d}=e;if(!i.length)return;let b=t?.newIndex===d&&t?.dragEl===s&&t?.toEl===a&&t?.fromEl===o;if(!o||!a||b)return;this._lastDragDetail=e;let f=Array.from(o.children).filter(k=>k?.matches("calcite-list-item")).map(k=>k.value);i.sort((k,I)=>{let B=f.indexOf(k.uid),_=f.indexOf(I.uid);return B>_?1:B<_?-1:0})}_endAddBookmark(){this._clearState(),this._focusRootFlowItem()}_showEditBookmarkForm(e){e&&(this.editIncludeTimeExtent=!!e.timeExtent,this._userState=new u({bookmark:e,state:"edit"}),requestAnimationFrame(()=>{this._editFlowItemEl?.setFocus()}),this.viewModel.goTo(e))}async _createNewScreenshotUrl(){return(await this.viewModel.createBookmark()).thumbnail?.url??null}_storeCurrentUrl(){let{_userState:e}=this,t=e?.editedBookmark?.thumbnail?.url;t&&($(t)?e.customUrl=t:x(t)&&(e.screenshotUrl=t))}async _handleThumbnailTypeSelect(e){let{_userState:t}=this;if(!t)return;let{screenshotUrl:i,customUrl:a,editedBookmark:o}=t,s=e==="screenshot"?i??await this._createNewScreenshotUrl():e==="url"&&a?a:null;this._storeCurrentUrl(),o&&s&&(o.thumbnail={url:s}),t.validationState=void 0,t.thumbnailState=e}_focusRootFlowItem(){requestAnimationFrame(()=>{this._rootFlowItemEl?.setFocus()})}_closeEditBookmarkForm(){this._clearState(),this._focusRootFlowItem()}_addBookmarkSubmitClick(e){e.preventDefault(),this._addBookmarkSubmit()}async _addBookmarkSubmit(){let{_addInputNode:e,_userState:t,viewModel:i,viewModel:{bookmarks:a}}=this;if(!t)return;let o=e?e.value.trim():null;if(!o){t.validationState="name-required";return}t.creatingBookmark=!0;let s=await i.createBookmark();s.name=o,a.add(s),this._endAddBookmark()}async _editBookmarkAndClose(e,t){let{viewModel:i,viewModel:{defaultEditOptions:a}}=this;await i.editBookmark(e,{...a,...t}),this._closeEditBookmarkForm()}_editBookmarkSubmit(e){e.preventDefault();let{_userState:t,_editInputNode:i,editIncludeTimeExtent:a,_urlEditInputNode:o}=this;if(!t?.bookmark||!t.editedBookmark)return;t.validationState=void 0,t.customUrl=void 0,t.screenshotUrl=void 0;let s=i?.value.trim();if(!s){t.validationState="name-required";return}if(t.bookmark.name=s,t.bookmark.thumbnail=t.editedBookmark.thumbnail,a||(t.bookmark.timeExtent=null),t.thumbnailState==="url"&&o){let d={url:o.value};if(!$(d.url)){t.validationState="absolute-url-required";return}t.bookmark.thumbnail=d}else t.thumbnailState==="none"&&(t.bookmark.thumbnail=null);this._editBookmarkAndClose(t.bookmark,{takeScreenshot:!1,captureTimeExtent:a})}_storeEditInput(e){this._editInputNode=e}_storeAddInput(e){this._addInputNode=e}_storeUrlEditInput(e){this._urlEditInputNode=e}_deleteBookmark(e){this._closeEditBookmarkForm(),e&&(this.viewModel.bookmarks.remove(e),e.destroy())}_goToBookmark(e){this._clearState(),this.viewModel.goTo(e)}async _updateThumbnail(){let{_userState:e,viewModel:t}=this;e&&(e.validationState=void 0,await t.editBookmark(e.editedBookmark,{takeScreenshot:!0,captureViewpoint:!1,captureRotation:!1,captureScale:!1,captureTimeExtent:!1}))}_handleCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:a}=e;t.insertBefore(i,t.children[a])}render(){return r`<div class=${l(w(c.base,T.widget,{[T.panel]:!this.closed}))}>${this._renderBookmarksContainer()}</div>`}_renderNoBookmarksContainer(e){let{messages:t,viewModel:{state:i}}=this;return!e.length&&i!=="loading"?r`<div class=${l(c.empty)}><calcite-icon icon=bookmark scale=l></calcite-icon>${R({class:w(T.heading,c.noBookmarksHeader),level:this.headingLevel,children:t.noBookmarksHeading})}<p class=${l(c.noBookmarksDescription)}>${t.noBookmarksDescription}</p></div>`:null}_renderEditBookmarkFlowItems(){let e=this._userStateValue==="edit",t=this._userState?.editedBookmark;return!t||!e?[]:this._renderEditingBookmark(t)}_renderBookmarkItems(e){return e?e.toArray().map(t=>this._renderBookmark(t)):[]}_renderBookmarksContainer(){let{viewModel:{state:e,bookmarks:t},dragEnabled:i,messages:a,disabled:o,filterPlaceholder:s,filterText:d,closed:b,headingLevel:f}=this,k=t.filter(_=>_!=null),I=k.length?r`<calcite-list class=${l(c.list)} display-mode=flat .dragEnabled=${i} .filterEnabled=${this.showFilter} .filterPlaceholder=${s} .filterProps=${["label","description","metadata"]} .filterText=${d} .group=${`bookmarks-${this._guid}`} .label=${a.componentLabel??""} selection-appearance=border selection-mode=none @calciteListDragEnd=${_=>this._handleCalciteListDragEnd(_.detail)} @calciteListFilter=${_=>this.filterText=_.currentTarget?.filterText??""} @calciteListOrderChange=${_=>this._onCalciteListOrderChange(_.detail)}>${this._renderBookmarkItems(k)}${this.showFilter?r`<div class=${l(c.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full><div slot=message>${a.noBookmarksHeading}</div>;</calcite-notice></div>`:null}</calcite-list>`:null,B=[r`<calcite-flow-item .closable=${this.showCloseButton} .closed=${b} .collapsible=${this.showCollapseButton} .disabled=${o} .heading=${this.showHeading?a.componentLabel:void 0} .headingLevel=${f} .loading=${e==="loading"} .selected=${!this._userStateValue} @calciteFlowItemClose=${()=>this.closed=!0} ${p(this._storeRootFlowItem)}>${this._renderNoBookmarksContainer(k)}${I}${this._renderAddBookmarkButton()}</calcite-flow-item>`,this._renderAddingBookmark(),this._renderEditBookmarkFlowItems()];return b?null:this.hideFlow?B:r`<calcite-flow>${B}</calcite-flow>`}_renderAddBookmarkButton(){let{messages:e,disabled:t,viewModel:{view:i,state:a}}=this,o=this._userCreatingBookmark;return i&&a!=="loading"&&this.showAddBookmarkButton?r`<calcite-fab appearance=outline-fill class=${l(c.addBookmarkButton)} .disabled=${t||o} icon=plus kind=neutral .loading=${o} @click=${this.startAddBookmark} slot=fab .text=${e.addBookmark} text-enabled title=${e.addBookmark??v}></calcite-fab>`:null}_renderEditContainer(e){let{messages:t}=this,i=`${t.edit} ${this._getBookmarkTitle(e)}`;return this.showEditBookmarkButton?r`<calcite-action appearance=transparent icon=pencil @click=${()=>this._showEditBookmarkForm(e)} slot=actions-end .text=${i} title=${i??v}></calcite-action>`:null}_renderBookmarkImage(e,t){return t?r`<img alt class=${l(c.bookmarkImage)} src=${e.thumbnail?.url??v}>`:null}_renderBookmarkTimeSwitch(e){let{messages:t,viewModel:{view:i}}=this,{timeExtent:a}=e;return i?.timeExtent??a?r`<calcite-label layout=inline-space-between>${t.includeTimeExtent}<calcite-switch .checked=${!!a} @calciteSwitchChange=${o=>{this.editIncludeTimeExtent=!!o.currentTarget.checked}}></calcite-switch></calcite-label>`:null}_renderEditBookmarkTimeExtent(e){return this.editIncludeTimeExtent?this._renderBookmarkTimeExtent(e):null}_renderTimeExtentDescription(e){let{startDate:t,startTime:i,endDate:a,endTime:o}=this._getTimeExtentStrings(e);if(!t)return"";let s=`${t} ${i}`,d=`${a} ${o}`;return a?`${s} - ${d}`:s}_renderBookmarkTimeExtent(e,t=!1){let{messages:i}=this,{startDate:a,startTime:o,endDate:s,endTime:d}=this._getTimeExtentStrings(e),b=t?null:r`<calcite-table-row slot=table-header><calcite-table-header .heading=${i.startDate}></calcite-table-header>${s?r`<calcite-table-header .heading=${i.endDate}></calcite-table-header>`:null}</calcite-table-row>`;return a?r`<calcite-table .caption=${i.timeExtent??""} scale=s>${b}<calcite-table-row><calcite-table-cell>${a} ${o?[r`<br>`,o]:null}</calcite-table-cell>${s?r`<calcite-table-cell>${s}${d?[r`<br>`,d]:null}</calcite-table-cell>`:null}</calcite-table-row></calcite-table>`:null}_renderBookmarkActiveScrim(e,t){return this.viewModel.activeBookmark===e&&t?r`<calcite-scrim loading></calcite-scrim>`:null}_renderBookmarkActiveLoader(e,t){return this.viewModel.activeBookmark===e&&!t?r`<calcite-loader class=${l(c.loader)} inline .label=${this.messages.loading??""}></calcite-loader>`:null}_renderBookmarkImageIcon(e,t){return this.viewModel.activeBookmark!==e&&!t?r`<calcite-icon icon=bookmark scale=s></calcite-icon>`:null}_renderBookmarkThumbnail(e){let t=!this.hideThumbnail&&!!e.thumbnail?.url;return r`<div class=${l(c.bookmarkImageContainer)} slot=content-start>${this._renderBookmarkActiveScrim(e,t)}${this._renderBookmarkImage(e,t)}${this._renderBookmarkActiveLoader(e,t)}${this._renderBookmarkImageIcon(e,t)}</div>`}_renderBookmark(e){return q(e.uid,r`<calcite-list-item class=${l(w({[c.dragEnabled]:this.dragEnabled}))} .description=${this._renderTimeExtentDescription(e)} .label=${this._getBookmarkTitle(e)} .value=${e.uid} @calciteListItemSelect=${()=>this._goToBookmark(e)}>${this._renderBookmarkThumbnail(e)}${this._renderBookmarkContent(e)}${this._renderEditContainer(e)}</calcite-list-item>`)}_renderBookmarkContent(e){return r`<div class=${l(c.bookmarkContent)} slot=content><span class=${l(c.bookmarkContentLabel)}>${this._getBookmarkTitle(e)}</span>${this._renderBookmarkTimeExtent(e,!0)}</div>`}_renderEditingBookmarkName(e){let{messages:t}=this,i=this._userValidationState==="name-required";return r`<calcite-label>${t.title}<calcite-input class=${l(c.editBookmarkInput)} name=bookmark-name .placeholder=${t.titlePlaceholder} required type=text .value=${e.name} ${p(this._storeEditInput)}></calcite-input>${i?r`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderEditingBookmarkActions(){let{messages:e,_userState:t}=this,i=t?.bookmark;return[r`<calcite-button appearance=transparent kind=danger @click=${()=>this._deleteBookmark(i)} slot=footer type=button width=full>${e.delete}</calcite-button>`,r`<calcite-button appearance=outline @click=${this._closeEditBookmarkForm} slot=footer type=button width=full>${e.cancel}</calcite-button>`,r`<calcite-button slot=footer type=submit width=full>${e.save}</calcite-button>`]}_renderEditingTimeExtent(e){let{capabilities:t,view:i}=this.viewModel,{timeExtent:a}=e;return t.time&&(i?.timeExtent??a)?r`<div>${this._renderBookmarkTimeSwitch(e)}${this._renderEditBookmarkTimeExtent(e)}</div>`:null}_renderEditingBookmarkImage(e){let{_userThumbnailState:t}=this,i=e.thumbnail?.url??"",a=$(i)?t==="url":x(i)?t==="screenshot":null;if(a)return this._renderBookmarkImage(e,a)}_renderEditingThumbnail(e){let{_userThumbnailState:t,hideThumbnail:i}=this;return!i&&t!=="none"?r`<div class=${l(c.authoringImageContainer)}>${this._renderEditingBookmarkImage(e)}</div>`:null}_renderUpdateThumbnailButton(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return!e&&i==="screenshot"?r`<calcite-button appearance=outline class=${l(c.authoringRefreshThumbnailButton)} icon-start=refresh kind=neutral @click=${()=>void this._updateThumbnail()} width=full>${t.updateThumbnail}</calcite-button>`:null}_renderEditingBookmarkUrlInput(e){let{messages:t,_userValidationState:i,_userThumbnailState:a}=this,o=e.thumbnail?.url??"",s=$(o)?o:void 0,d=o&&i==="absolute-url-required";return a==="url"?r`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t?`https://<${t.imageUrlPlaceholder}>`:void 0} required title=${t.imageUrlTooltip??v} type=text .value=${s} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${p(this._storeUrlEditInput)}></calcite-input>${d?r`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidImageUrl}</calcite-input-message>`:null}</calcite-label>`:null}_renderThumbnailSelector(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return e?null:r`<calcite-label>${t.thumbnail}<calcite-chip-group .label=${t.thumbnail??""} selection-mode=single-persist @calciteChipGroupSelect=${a=>this._handleThumbnailTypeSelect(a.currentTarget.selectedItems[0].value)}><calcite-chip .label=${t.screenshot??""} .selected=${i==="screenshot"} value=screenshot>${t.screenshot}</calcite-chip><calcite-chip .label=${t.url??""} .selected=${i==="url"} value=url>${t.url}</calcite-chip><calcite-chip .label=${t.none??""} .selected=${i==="none"} value=none>${t.none}</calcite-chip></calcite-chip-group></calcite-label>`}_renderEditingBookmark(e){let{disabled:t,messages:i,headingLevel:a}=this;return e?r`<form class=${l(c.form)} @submit=${this._editBookmarkSubmit}><calcite-flow-item .disabled=${t} .heading=${i.edit??""} .headingLevel=${a} .selected=${this._userStateValue==="edit"} @calciteFlowItemBack=${o=>{o.preventDefault(),this._closeEditBookmarkForm()}} ${p(this._storeEditFlowItemNode)}><div class=${l(c.formContent)}><div class=${l(c.authoring)}>${this._renderEditingBookmarkName(e)}${this._renderThumbnailSelector()}${this._renderEditingThumbnail(e)}${this._renderEditingBookmarkUrlInput(e)}${this._renderUpdateThumbnailButton()}${this._renderEditingTimeExtent(e)}</div></div>${this._renderEditingBookmarkActions()}</calcite-flow-item></form>`:null}_renderAddingBookmarkName(){let{messages:e}=this,t=this._userValidationState==="name-required";return r`<calcite-label>${e.title}<calcite-input class=${l(c.addBookmarkInput)} name=bookmark-name .placeholder=${e.titlePlaceholder} required type=text value ${p(this._storeAddInput)}></calcite-input>${t?r`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${e.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderAddingBookmarkActions(){let{messages:e}=this;return[r`<calcite-button appearance=outline @click=${this._endAddBookmark} slot=footer type=button width=full>${e.cancel}</calcite-button>`,r`<calcite-button slot=footer type=submit width=full>${e.add}</calcite-button>`]}_renderAddingBookmark(){let{disabled:e,messages:t,headingLevel:i,_userStateValue:a}=this;return a==="add"?r`<form class=${l(c.form)} @submit=${this._addBookmarkSubmitClick}><calcite-flow-item .disabled=${e} .heading=${t.addBookmark} .headingLevel=${i} selected @calciteFlowItemBack=${o=>{o.preventDefault(),this._endAddBookmark()}} ${p(this._storeAddFlowItemNode)}><div class=${l(c.formContent)}>${this._renderAddingBookmarkName()}</div>${this._renderAddingBookmarkActions()}</calcite-flow-item></form>`:null}};L("arcgis-bookmarks",F);return F},"widgets/Bookmarks/BookmarksViewModel","intl","core/urlUtils","core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,b,c)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import{j as m}from"./VMX2GAWQ.js";import"./Y3ENX264.js";import"./HK5D6PSZ.js";import{t as p}from"./BUKZIU5F.js";import"./I6NWEJUK.js";import"./TXSPSOKV.js";import"./NYYFI7YB.js";import"./JGJPR32F.js";export default $arcgis.t(([{getLocale:a,getLocaleLanguage:n}])=>{p("AM5C241025748");var e="en-US",o=new Map([["ar",()=>import("./HAPKKESC.js")],["bg-BG",()=>import("./VK6WYEAD.js")],["bs-BA",()=>import("./RG63I4MB.js")],["ca-ES",()=>import("./FO4QABDY.js")],["cs-CZ",()=>import("./BVFWCTSK.js")],["da-DK",()=>import("./Z2TJNNPQ.js")],["de-DE",()=>import("./6J3TF3GU.js")],["de-CH",()=>import("./4ESNHHOK.js")],["el-GR",()=>import("./ZSJMYEBK.js")],["en-US",()=>import("./3C5HXPW5.js")],["en-CA",()=>import("./JSBQR4TP.js")],["es-ES",()=>import("./XYFFIM4E.js")],["et-EE",()=>import("./JTB5E3QP.js")],["fi-FI",()=>import("./3M2ZRA23.js")],["fr-FR",()=>import("./KZ5QYIU4.js")],["he-IL",()=>import("./MFUUTGSD.js")],["hr-HR",()=>import("./KDGVM2OL.js")],["hu-HU",()=>import("./JEC5PH6Z.js")],["id-ID",()=>import("./AYGOBONG.js")],["it-IT",()=>import("./CHJ22WNA.js")],["ja-JP",()=>import("./HAO73YRV.js")],["ko-KR",()=>import("./PLZPFNJG.js")],["lt-LT",()=>import("./A72BXT3B.js")],["lv-LV",()=>import("./JQLVBFBV.js")],["no-NO",()=>import("./H6NCUEEV.js")],["nb-NO",()=>import("./H6NCUEEV.js")],["nl-NL",()=>import("./XGBNW6E4.js")],["pl-PL",()=>import("./2CYQIF6T.js")],["pt-BR",()=>import("./C4JV6I6R.js")],["pt-PT",()=>import("./WXEWJG6Q.js")],["ro-RO",()=>import("./BGFAJRKB.js")],["ru-RU",()=>import("./E7NRKYTV.js")],["sk-SK",()=>import("./CI2RYOET.js")],["sl-SL",()=>import("./DP6QBGDH.js")],["sr-RS",()=>import("./ZDUBAY2E.js")],["sv-SE",()=>import("./F6S6YFJX.js")],["th-TH",()=>import("./TINYV2CA.js")],["tr-TR",()=>import("./ZCW2CDJ7.js")],["uk-UA",()=>import("./EX4ANQJN.js")],["vi-VN",()=>import("./F3N2TSIM.js")],["zh-CN",()=>import("./5ZRBCP74.js")],["zh-HK",()=>import("./F5EWUWFO.js")],["zh-TW",()=>import("./F5EWUWFO.js")]]);function s(t){if(!t)return e;if(o.has(t))return t;let r=n();return r&&o.has(r)?r:e}async function l(t,r=a()){let i=m.new(t);return i.locale=(await o.get(s(r))()).default,i}return l},"intl")
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import{b as g}from"./QQNF3PDW.js";import{a as d}from"./PMRY7W2S.js";import e from"./YGGFIEDD.js";import{a as C}from"./DDFNQIGL.js";import{a as x}from"./CNWRZGPA.js";import c from"./K5VEH4Z4.js";import a from"./555LHYQD.js";import{f as $}from"./VF5EWLKX.js";import"./B5SNDUEJ.js";import"./TDKCF65R.js";import{D as w,G as S,R as M,S as l,U as f,W as b,a as m,t as _,u as o,z as v}from"./EEF4FFF4.js";import"./JGJPR32F.js";export default $arcgis.t(([A,{isAbortError:D},{substitute:T},{watch:E},,{a:a},R])=>{var h="arcgis-search",u={base:h,autocomplete:`${h}__autocomplete`,dropdown:`${h}__dropdown`,container:`${h}__container`,form:`${h}__form`},I=_`@layer{arcgis-search{display:block}.arcgis-search{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:var(--arcgis-internal-search-width)}.arcgis-search__dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.arcgis-search__autocomplete{flex:1}.arcgis-search__container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.arcgis-search__form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}}`,N=R(A),p=class extends M{constructor(){super(...arguments),this.viewModel=N(this),this._currentLocationValue="search-use-current-location",this._autocompleteEl=void 0,this._searchResultRendererContainerEl=document.createElement("div"),this._searchResultRendererEl=void 0,this._suggestController=void 0,this._searchController=void 0,this._lastSearchTerm="",this.messages=C({}),this._setSearchResultRendererRef=e=>{this._searchResultRendererEl=e},this._locateFailed=!1,this._showNoResults=!1,this.position="top-left",this.goToOverride=this.viewModel.goToOverride,this.icon="search",this.activeMenu="none",this.activeSourceIndex=this.viewModel.activeSourceIndex,this.allPlaceholder=this.viewModel.allPlaceholder,this.allSources=this.viewModel.allSources,this.autoNavigateDisabled=this.viewModel.autoNavigate,this.autoSelectDisabled=this.viewModel.autoSelect,this.defaultSources=this.viewModel.defaultSources,this.disabled=!1,this.includeDefaultSourcesDisabled=this.viewModel.includeDefaultSources,this.locationDisabled=this.viewModel.locationEnabled,this.maxResults=this.viewModel.maxResults,this.maxSuggestions=this.viewModel.maxSuggestions,this.minSuggestCharacters=this.viewModel.minSuggestCharacters,this.popupDisabled=this.viewModel.popupEnabled,this.popupTemplate=this.viewModel.popupTemplate,this.portal=this.viewModel.portal,this.resultGraphic=this.viewModel.resultGraphic,this.resultGraphicDisabled=this.viewModel.resultGraphicEnabled,this.results=this.viewModel.results,this.searchAllDisabled=this.viewModel.searchAllEnabled,this.searchTerm=this.viewModel.searchTerm,this.selectedResult=this.viewModel.selectedResult,this.sources=this.viewModel.sources,this.suggestions=this.viewModel.suggestions,this.suggestionsDisabled=this.viewModel.suggestionsEnabled,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=$()("state"),this.arcgisReady=w(),this.arcgisSearchClear=a(()=>this.viewModel,"search-clear"),this.arcgisSearchComplete=a(()=>this.viewModel,"search-complete"),this.arcgisSearchStart=a(()=>this.viewModel,"search-start"),this.arcgisSelectResult=a(()=>this.viewModel,"select-result"),this.arcgisSuggestComplete=a(()=>this.viewModel,"suggest-complete"),this.arcgisSuggestStart=a(()=>this.viewModel,"suggest-start")}static{this.properties={_locateFailed:16,_showNoResults:16,_isDisabled:16,_showCurrentLocation:16,_effectiveActiveMenu:16,referenceElement:1,position:3,goToOverride:0,icon:1,activeMenu:1,activeSource:32,activeSourceIndex:9,allPlaceholder:1,allSources:0,autoNavigateDisabled:5,autoSelectDisabled:5,defaultSources:0,disabled:5,includeDefaultSourcesDisabled:5,locationDisabled:5,maxResults:9,maxSuggestions:9,minSuggestCharacters:9,popupDisabled:5,popupTemplate:0,portal:0,resultGraphic:0,resultGraphicDisabled:5,results:0,searchAllDisabled:5,searchTerm:1,selectedResult:0,sources:0,suggestions:0,suggestionsDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:3}}static{this.styles=I}static{this.shadowRootOptions=S}get _isDisabled(){let{state:e}=this.viewModel;return e==="disabled"||e==="loading"||this.disabled}get _showCurrentLocation(){return!this.locationDisabled&&!this.searchTerm?.trim()}get _effectiveActiveMenu(){return this._isDisabled?"none":this.activeMenu}get activeSource(){return this.viewModel?.activeSource}clear(){this._locateFailed=!1,this.viewModel.clear()}async destroy(){await this.manager.destroy(),await this._searchResultRendererEl?.destroy(),this._cancelQueries()}async search(e){this._cancelQueries();let t=new AbortController,{signal:s}=t;this._searchController=t;try{let i=await this.viewModel.search(e,{signal:s});return this._searchController!==t?void 0:(i?.numResults||(this._showNoResults=!0,this.activeMenu="suggestion"),this._searchController=void 0,i)}catch{if(this._searchController!==t)return;this._searchController=void 0;return}}async suggest(e){this._cancelSuggest();let t=new AbortController,{signal:s}=t;this._suggestController=t;try{let i=await this.viewModel.suggest(e,null,{signal:s});return this._suggestController!==t?void 0:(this._suggestController=void 0,i?.numResults&&(this.activeMenu="suggestion",this._scrollToTopSuggestion()),i)}catch{return this._suggestController!==t||(this._suggestController=void 0),null}}async setFocus(){await this._autocompleteEl?.setFocus()}loaded(){this.manager.onLifecycle(()=>E(()=>this.viewModel?.defaultPopupTemplate,e=>{if(e){let t=document.createElement("div");t.appendChild(this._searchResultRendererContainerEl),e.content=t}},{initial:!0}))}_addSearchResultRenderer(){v(o`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel} ${g(this._setSearchResultRendererRef)}></arcgis-search-result-renderer>`,this._searchResultRendererContainerEl)}_handleInputKeydown(e){e.key==="Tab"&&this._cancelSuggest()}_handleAutocompleteCreate(e){this._autocompleteEl=e}_handleCalciteAutocompleteTextInput(e){let t=e.target.inputValue;t!==this.viewModel.searchTerm&&(this.viewModel.searchTerm=t,t||this.clear(),this.suggest())}_handleAutocompleteOpen(){this.activeMenu="suggestion"}_handleAutocompleteClose(){this.activeMenu==="suggestion"&&(this.activeMenu="none")}_handleCalciteAutocompleteChange(e){let t=e.target.value;if(t===this._currentLocationValue){this._useCurrentLocation();return}let s=JSON.parse(t),i=this.viewModel.suggestions?.find(({sourceIndex:r})=>r===s.sourceIndex)?.results?.find(({key:r})=>`${r}`==`${s.key}`);i&&this.search(i)}async _useCurrentLocation(){this._cancelQueries();let e=new AbortController,{signal:t}=e;this._searchController=e;try{await this.viewModel.searchNearby({signal:t})}catch(s){D(s)||(this._locateFailed=!0,this.activeMenu="suggestion")}finally{this._searchController=void 0}}_handleSourceOpen(){this.activeMenu="source"}_handleSourceClose(){this.activeMenu==="source"&&(this.activeMenu="none")}_handleSourceSelect(e){let t=e.target.selectedItems[0].getAttribute("data-source-index");t&&(this.viewModel.activeSourceIndex=Number.parseInt(t,10))}_cancelSuggest(){this.activeMenu="none",this._locateFailed=!1,this._showNoResults=!1,this._suggestController=d(this._suggestController)}_cancelQueries(){this._cancelSuggest(),this._searchController=d(this._searchController)}_scrollToTopSuggestion(){this._autocompleteEl?.scrollContentTo({top:0})}_formSubmit(e){e.preventDefault(),this.activeMenu="none",this._lastSearchTerm=this.searchTerm,this.searchTerm&&this.search()}_getSourceName(e){let{messages:t}=this,{allSources:s}=this.viewModel,i=s.at(e);return(e===-1?t.all:i?.name||t.untitledSource)||""}render(){return this._addSearchResultRenderer(),o`<div class=${l(m(u.base,x.widget))}><div class=${l(u.container)}>${this._renderSourcesMenu()}${this._renderForm()}</div></div>`}_renderSourcesMenu(){let{messages:e,_isDisabled:t,_effectiveActiveMenu:s}=this,{allSources:i,searchAllEnabled:r}=this.viewModel;return i.length>1?o`<calcite-dropdown class=${l(u.dropdown)} .disabled=${t} .open=${s==="source"} overlay-positioning=fixed @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${e.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${e.searchIn}>${r?this._renderSource(-1):null}${i.map((c,n)=>this._renderSource(n)).toArray()}</calcite-dropdown-group></calcite-dropdown>`:null}_renderUseCurrentLocation(){let{_currentLocationValue:e}=this;return o`<calcite-autocomplete-item .heading=${this.messages.useCurrentLocation??""} icon-start=gps-on .value=${e}></calcite-autocomplete-item>`}_renderAutocomplete(){let{_effectiveActiveMenu:e,messages:t,_isDisabled:s}=this,{maxInputLength:i,placeholder:r,searchTerm:c,state:n}=this.viewModel,y=this.label??t.searchButtonTitle??"";return o`<calcite-autocomplete .autocomplete=${"off"} class=${l(u.autocomplete)} .disabled=${s} .icon=${this.icon||!1} .inputValue=${c} .label=${y} .loading=${n==="searching"} .maxLength=${i} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e==="suggestion"} overlay-positioning=fixed .placeholder=${r} title=${(c?"":r)??f} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${g(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`}_renderForm(){return o`<form class=${l(u.form)} @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}</form>`}_renderSuggestGroup(e){return e.results?.map(t=>this._renderSuggestion(t))}_renderSuggestions(){let{suggestions:e}=this.viewModel;return this._showNoResults?null:this._showCurrentLocation?this._renderUseCurrentLocation():e?.map(t=>this._renderSuggestResults(t))}_renderSuggestResults(e){let{allSources:t,activeSourceIndex:s}=this.viewModel,{sourceIndex:i}=e,r=e.results?.length,c=t.length>1&&s===-1,n=this._getSourceName(i);return r&&c?o`<calcite-autocomplete-item-group .heading=${n}>${this._renderSuggestGroup(e)}</calcite-autocomplete-item-group>`:this._renderSuggestGroup(e)}_renderSuggestion({key:e,sourceIndex:t,text:s}){let i={key:e,sourceIndex:t};return o`<calcite-autocomplete-item .heading=${s??this.messages.untitledResult??""} .value=${JSON.stringify(i)}></calcite-autocomplete-item>`}_renderSource(e){let t=this._getSourceName(e);return o`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e===this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`}_renderNoResultsWarning(e){let{messages:t}=this,s=e?T(t.noResultsFoundForValue??"",{value:`"${e}"`}):t.noResultsFound;return o`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${s}</div></calcite-notice>`}_renderLocateError(){return o`<calcite-notice icon=exclamation-mark-circle kind=danger open slot=content-bottom><div slot=message>${this.messages.locateError}</div></calcite-notice>`}_renderNotices(){return this._locateFailed?this._renderLocateError():this._showNoResults?this._renderNoResultsWarning(this._lastSearchTerm??this.viewModel.searchTerm):null}};b("arcgis-search",p);return p},"widgets/Search/SearchViewModel","core/promiseUtils","intl","core/reactiveUtils",a,c,e)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.46 */
4
- import{a as D}from"./7ATX4VVG.js";import d from"./3BWJF5Q2.js";import"./PMRY7W2S.js";import c from"./YGGFIEDD.js";import{a as R}from"./DDFNQIGL.js";import{a as w}from"./CNWRZGPA.js";import b from"./K5VEH4Z4.js";import a from"./555LHYQD.js";import{f as L}from"./VF5EWLKX.js";import"./B5SNDUEJ.js";import"./TDKCF65R.js";import{D as g,G as P,R as O,S as v,U as N,W as T,a as S,t as C,u as h}from"./EEF4FFF4.js";import"./JGJPR32F.js";export default $arcgis.t(([{watch:A},{property:n,subclass:F},m,{onLocaleChange:W},X,B,Z,G,Y,$,y,I,{geographicToWebMercator:ee},te,{project:oe},ie,,,U,{a:x,c:b}])=>{var re=C`@layer{arcgis-locate{display:block}}`,k=!1,ae={maximumAge:0,timeout:15e3,enableHighAccuracy:!0};function se(){let t="geolocation"in navigator;return t||console.warn("geolocation-unsupported","Geolocation unsupported."),t}function ne(){let t=window.isSecureContext;return t||k||(k=!0,console.warn("insecure-context","Geolocation requires a secure origin.")),t}function le(){return se()&&ne()}function ce(t){return t??=ae,new Promise((e,o)=>{setTimeout(()=>o(new m("geolocation:timeout","getting the current geolocation position timed out")),t?.timeout??15e3),navigator.geolocation.getCurrentPosition(e,o,t??void 0)})}function pe(t,e){let{position:o,view:r}=t,i=de(o)?.coords;if(!i)throw new m("geometry-service:no-coords","Geolocation has no coordinates");let a=me(i);return he(a,r,e)}function de(t){let e=t?.coords||{},o={accuracy:e.accuracy,altitude:e.altitude,altitudeAccuracy:e.altitudeAccuracy,heading:e.heading,latitude:e.latitude,longitude:e.longitude,speed:e.speed,toJSON(){return{}}};return t&&{coords:o,timestamp:t.timestamp,toJSON(){return{}}}}function me({longitude:t,latitude:e,altitude:o}){return new $({longitude:t,latitude:e,z:o||void 0,spatialReference:{wkid:4326}})}async function he(t,e,o){if(!e)return await Promise.resolve(t);let r=e.spatialReference;return r.isWGS84?await Promise.resolve(t):r.isWebMercator?await Promise.resolve(ee(t)):y.isLoaded()?await Promise.resolve(y.execute(t,r)):await ue(o).then(async i=>{if(!i)throw new m("geometry-service:missing-url","Geometry service URL is missing");let a=new ie({geometries:[t],outSpatialReference:r});return(await oe(i,a,o))[0]})}async function ue(t){if(I.geometryServiceUrl)return await Promise.resolve(I.geometryServiceUrl);let e=te.getDefault();try{await e.load(t)}catch{}return e.helperServices?.geometry?.url}var ge=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,p=(t,e,o,r)=>{for(var i=r>1?void 0:r?ye(e,o):e,a=t.length-1,s;a>=0;a--)(s=t[a])&&(i=(r?s(e,o,i):s(i))||i);return r&&i&&ge(e,o,i),i},fe=2500;function Q(t){let e={type:"CIMVectorMarker",enable:!0,anchorPoint:{x:0,y:0},anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:t==="background"?16:14,billboardMode3D:"FaceNearPlane",frame:{xmin:0,ymin:0,xmax:17,ymax:17},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[8.5,0],[7.02,.13],[5.59,.51],[4.25,1.14],[3.04,1.99],[1.99,3.04],[1.14,4.25],[.51,5.59],[.13,7.02],[0,8.5],[.13,9.98],[.51,11.41],[1.14,12.75],[1.99,13.96],[3.04,15.01],[4.25,15.86],[5.59,16.49],[7.02,16.87],[8.5,17],[9.98,16.87],[11.41,16.49],[12.75,15.86],[13.96,15.01],[15.01,13.96],[15.86,12.75],[16.49,11.41],[16.87,9.98],[17,8.5],[16.87,7.02],[16.49,5.59],[15.86,4.25],[15.01,3.04],[13.96,1.99],[12.75,1.14],[11.41,.51],[9.98,.13],[8.5,0]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,capStyle:"Round",joinStyle:"Round",lineStyle3D:"Strip",miterLimit:10,width:t==="background"?0:2,color:[255,255,255,255]},{type:"CIMSolidFill",enable:!0,color:t==="background"?[0,0,0,66]:[0,122,194,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0};return t==="background"&&(e.offsetX=0,e.offsetY=-1),e}var H={type:"CIMPictureMarker",primitiveName:"headingOverride",enable:!0,anchorPoint:{x:0,y:-.5},anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:36,billboardMode3D:"FaceNearPlane",invertBackfaceTexture:!0,scaleX:1,textureFilter:"Picture",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAkCAYAAACe0YppAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYaSURBVHgBvVfNb1VFFD/nzP16xRYJKYREEiJoDLLShQkrSNzoHv8I2QgxwY8FJWHhxoVxISEu2AordWNiQjAxEBeEsKAmhCCwkPDRAn1t33v33jnH37n3Fam0pa8kTjOde+/MnN/5+J0z85jW08yYTpxgfzx0bS+fO0R0YHqyeb9w7YEtLTv+9rSdOH7ciNleJJJX/Do1JQ3AltdlT35fiN6gG8kD8akdmzO+6w/zM7wdw725rUY78DBXtmATA6PZntFgm9Kjm6o/HFJpdi5Xhp+16sDBC+H+gUmZfjIXHKC+35U42ZHZfpe30BZS7okNFnhu8wTRk2ek5LEV2q+N8nEj6yuNVRjHddftrt4ahyJbOxF+Uppi/Rf47NlA05Pp9vkyRNkkD8sqUJHwOGfSpYFQFXhTJryQBaZSeAxbFus+U1K0gJm2oy3QKwuZzqeuSK5kpW6BEsE6+nCsAHDXQWuaOljzU8uP/ToxUW4KcwKg8QzOSdFL6Swm0hurAC7N2qIW7ncwNgYKF4la3/w7RnzrUK29KseXWqmTKXGl45Zrd9CLrsSjr96fcw4kS46mTsJznSTrVBR6VQJQdDbpZTWexxgCYCFz30cquD8oYVQgtUAUzfo8wGtqGoNRFmFZ1KKulJMQu3Vpm/I8Pup3ekvES57GaabXo4lsszEA6zrkhcmAAkBNshi59O9wVsokBLZUCQAxllXVBkyCDRQuTlLLiLSEqw3gfUqU0kVdsKymsnzyPLm8fXZxDxVZgvUhg9QyaKDI7AhpSlRVEaA83JM+/V8pGO0PMTHyZwra9FQVk4i1e0D6dPK9v5agkmXAhc0Bw5MjlAQQE0lSDbUmbBX4kGfsiiQWuSZtdle1S4F73cUKJgviyw4mmmqlVSoR/FAK2d1noWQZ8N79MySw0tgNzhN00jRFaPM6y3IyLWBxXuOdvMfhaIy1MQctmvnEMGrMq2Y/ekC3dHF14I84gmZP2s0pgiJFHVwYhIIrMC1zgT4fQgsS0CG48LWtslAsgeKZK5U1c5Slj+nEvvJZqOWubr5ks8iE3bVqCMQCz4p5aiUqpMrOdHz2qLFTxAMSPLwY8WpmntNwrXIMCWvESGH+7n9hVi6ZJ6/sR5gnycFFQgsCQEEB8T9TbsCGy4PrZrEBjGyIt4EApoGRXWKP6Mt3fnvOvhWBjR4gdjtJEDmGQQkBSCS6Teys5qECABTPWOBwcPWgAPIU+E2+Rq3J8lsrQawMHNPbqAXvRqasWcMB/mK42N3twM6/FsbJTZK2Fru15K7niPVIp6RHn++9vRKErAg8ta+MFq4LBxAJKY1EajpxLj5KUzFzOMTni4btxoUzXPzIIOwLnEPxGVqlyWoTdO/WNRUXJhDmAgNAJVd0eABj8FTCvLbpEnxdOycJlFNXVq6MDvzthwOQ654LaMGGVofQWIWtXhM9xaCQp85QIZFMPXcpuUPH3uquJj6htVonvySD+KY6c2AulPAzHdVaZElvPCGBgvkIRUECr1J4qmV6LdGyJvAnu+94HZMla1Eg1AuGVyQWnNCwzqsUXK5+AIsUyPRc1Rbpi93X1xK9tsXtkj9U7INWSWvU0DaZ6OlVAmUDiqgbrwY2Z3ThRVKFXrgi/R0x9GMplxAyER6ynAtZin1DQoLVznLMU+/mywMf3dlDpbyMlbjLQDhLw/Sh24sm5dhTrlHKgS/T0X2zLw/sLeGr5OlEbg2uHwAFw5reKuKsJj8kcIj0zq9H5PqAj+z6E8y+YRIaUhnAEOrcWgv9m3shQ1H7mz5duVJtDLhZqZcNlrEDwXKwCzncdFg+PJeVf1m3uPUupLR7Hq6tHNyLhw1TCmdGbm0BmaUjr63LzaMBH943D9f+yO5uZ7HfcLktqdwqMU0jtPUDN6vDOfzgKFrXtta6q83vfHU4M5KoURbT4W3zsPIqrgQFO8GozV8ocZGOTN4dRdRowN6CnOLmKkk5t7H1i+HPNGJj2kj7buYajoRXh2+36eOt+2nENrrF3ozODEmFC0D4hjbQNgYc+DSYjd9qqGSJXqL/tZ16/DWdfvw9bbCt41hcpYn9RAEX9Q22fwC74ny5v9iplQAAAABJRU5ErkJggg=="},ve=Q("layer"),we=Q("background"),be=new Y({data:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[ve,we,H],angleAlignment:"Map"},primitiveOverrides:[{type:"CIMPrimitiveOverride",primitiveName:"headingOverride",propertyName:"Rotation",valueExpressionInfo:{type:"CIMExpressionInfo",title:"Rotation override",expression:"360 - $feature.heading",returnType:"Default"}},{type:"CIMPrimitiveOverride",primitiveName:"headingOverride",propertyName:"TintColor",valueExpressionInfo:{type:"CIMExpressionInfo",title:"TintColor override",expression:"IIF(IsEmpty($feature.heading), [255, 255, 255, 0], [255, 255, 255, 1])",returnType:"Default"}}]}}),l=class extends Z{constructor(){super(...arguments),this._geolocationUsable=!0,this.goToLocationEnabled=!0,this.graphic=new G({symbol:be}),this.rotationEnabled=!0}initialize(){le()||(this._geolocationUsable=!1),this.addHandles([A(()=>this.view?.type,()=>this._handleViewTypeChange(),{initial:!0})])}destroy(){this._clearGraphic(),this.view=void 0}_clearGraphic(){let{view:t,graphic:e}=this;t&&e&&t.graphics.remove(e)}_addGraphic(){let{view:t,graphic:e}=this;!t?.graphics||!e||t.graphics.includes(e)||t.graphics.push(e)}_handleViewTypeChange(){H.enable=this.view?.type==="2d"}_getScaleWithinConstraints(t,e){if(!e)return t;if(e.type==="2d"){let{effectiveMaxScale:o,effectiveMinScale:r}=e.constraints;return Math.min(r,Math.max(o,t))}return t}_getScale(t){let{scale:e}=this,o=typeof e=="number"?e:fe;return this._getScaleWithinConstraints(o,t)}_getHeading(t,e){let o=e?.spatialReference,r=o?.isWebMercator||o?.isGeographic,i=t.coords?.heading;return!r||typeof i!="number"||Number.isNaN(i)||i<0||i>360?null:i}_addHeading(t){let{heading:e,target:o,view:r}=t;if(!(!r||e===null)){if(r.type==="3d"){o.heading=e;return}r.type==="2d"&&(o.rotation=360-e)}}async _animatePoint(t,e,o,r){let{view:i}=this;if(!this.goToLocationEnabled||!i)return;let a={target:t,scale:e};this.rotationEnabled&&this._addHeading({heading:o,target:a,view:i});let s={signal:r.signal};x(s),this.goToOverride&&i&&this.goToOverride(i,{target:a,options:s}),await i.goTo(a,s)}async updatePosition(t,e){try{let o=this.view,r=await pe({position:t,view:o},{signal:e.signal}),{graphic:i}=this,{timestamp:a,coords:s}=t,{accuracy:f,altitude:u,altitudeAccuracy:K,latitude:V,longitude:J,speed:j}=s,E=this._getHeading(t,o),q={timestamp:a,accuracy:f,altitude:u,altitudeAccuracy:K,heading:E,latitude:V,longitude:J,speed:j};i&&(i.geometry=r,i.attributes=q);let _=this._getScale(o);await this._animatePoint(r,_,E,e)}catch(o){if(!b(o))throw new m("geolocation-positioning:invalid-point","Cannot position invalid point",{error:o})}return t}};p([n()],l.prototype,"_geolocationUsable",2);p([n()],l.prototype,"geolocationOptions",2);p([n()],l.prototype,"goToLocationEnabled",2);p([n()],l.prototype,"goToOverride",2);p([n({type:G})],l.prototype,"graphic",2);p([n()],l.prototype,"scale",2);p([n()],l.prototype,"rotationEnabled",2);p([n()],l.prototype,"view",2);l=p([F("map-components.geolocation.GeolocationPositioning")],l);var Ae=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,d=(t,e,o,r)=>{for(var i=r>1?void 0:r?Me(e,o):e,a=t.length-1,s;a>=0;a--)(s=t[a])&&(i=(r?s(e,o,i):s(i))||i);return r&&i&&Ae(e,o,i),i},Ee=new B({icon:"trash",id:"remove-selected-feature",title:"{messages.remove}",className:"esri-icon-trash"});function Se(t){return new X({title:t.currentLocation,fieldInfos:[{fieldName:"timestamp",label:t.timestamp,format:{dateFormat:"short-date-short-time"}},{fieldName:"latitude",label:t.latitude,format:{places:4,digitSeparator:!0}},{fieldName:"longitude",label:t.longitude,format:{places:4,digitSeparator:!0}},{fieldName:"accuracy",label:t.accuracy,format:{places:0,digitSeparator:!0}},{fieldName:"altitude",label:t.altitude,format:{places:0,digitSeparator:!0}},{fieldName:"altitudeAccuracy",label:t.altitudeAccuracy,format:{places:0,digitSeparator:!0}},{fieldName:"heading",label:t.heading,format:{places:0,digitSeparator:!0}},{fieldName:"speed",label:t.speed,format:{places:0,digitSeparator:!0}}],actions:[Ee.clone()],content:[{type:"fields"}]})}var c=class extends l{constructor(t){super(t),this.popupEnabled=!0,this.locate=this.locate.bind(this)}initialize(){this.addHandles([W(()=>{let{graphic:t,view:e}=this;t&&e?.graphics?.includes(t)&&this._updatePopupTemplate(t)})])}destroy(){this.cancelLocate()}get state(){return this._geolocationUsable?this.view?.ready?this._locateController?"locating":this.error!=null?"error":"ready":"disabled":"feature-unsupported"}async locate(){if(this.cancelLocate(),this.state==="disabled")throw new m("locate:disabled-state","Cannot locate when disabled.");if(this.state==="feature-unsupported")throw new m("locate:feature-unsupported-state","Cannot locate in unsecure domain.");let t=new AbortController;this._locateController=t,this.error=void 0;try{let e=await ce(this.geolocationOptions);if(await this.updatePosition(e,t),this._locateController!==t)return null;let{graphic:o}=this;return o&&this._updatePopupTemplate(o),this._addGraphic(),this.currentPosition=e,this._locateController=void 0,e}catch(e){if(b(e))return null;throw t===this._locateController&&(this._locateController=void 0),this.error=e,e}}cancelLocate(){this._clearGraphic(),this._locateController&&this._locateController.abort(),this._locateController=void 0}_updatePopupTemplate(t){if(!this.popupEnabled)return;let e=Se(this.messages),o=t!==this.graphic;this.destroyed||o||(t.popupTemplate=e)}};d([n()],c.prototype,"_locateController",2);d([n()],c.prototype,"currentPosition",2);d([n()],c.prototype,"error",2);d([n()],c.prototype,"messages",2);d([n()],c.prototype,"popupEnabled",2);d([n({readOnly:!0})],c.prototype,"state",1);c=d([F("map-components.locate.LocateViewModel")],c);var Ce={base:"esri-locate"},z="gps-off",Pe=U(c),M=class extends O{constructor(){super(...arguments),this.messages=R(),this.viewModel=Pe(this),this.autoDestroyDisabled=!1,this.geolocationOptions=this.viewModel.geolocationOptions,this.goToLocationDisabled=this.viewModel.goToLocationEnabled,this.goToOverride=this.viewModel.goToOverride,this.graphic=this.viewModel.graphic,this.icon=z,this.popupDisabled=this.viewModel.popupEnabled,this.position="top-left",this.scale=this.viewModel.scale,this.state=this.viewModel.state,this.arcgisError=g(),this.arcgisPropertyChange=L()("state"),this.arcgisReady=g(),this.arcgisSuccess=g()}static{this.properties={autoDestroyDisabled:5,geolocationOptions:0,goToLocationDisabled:7,goToOverride:0,graphic:0,icon:1,label:1,messageOverrides:0,popupDisabled:5,position:3,referenceElement:1,scale:9,state:3}}static{this.shadowRootOptions=P}static{this.styles=re}async cancelLocate(){this.viewModel.cancelLocate()}async destroy(){await this.manager.destroy()}async locate(){return await this.viewModel.locate()}loaded(){this.viewModel.messages={...this.messages,...this.messageOverrides},this.manager.onLifecycle(()=>[A(()=>this.viewModel.error,e=>{this.arcgisError.emit({error:e})}),A(()=>this.viewModel.currentPosition,e=>{this.arcgisSuccess.emit({position:e})})])}_localizeError(e){if(e instanceof GeolocationPositionError)return e.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:e.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable;if(e instanceof Error)return e.message}_locate(){let{viewModel:e}=this;e.state==="locating"?e.cancelLocate():e.locate().catch(()=>{})}render(){let{viewModel:e,icon:o}=this,{state:r}=e,i=r==="locating",a=i?this.messages.cancel:this.messages.title,s=r==="feature-unsupported",f=D===void 0?z:void 0,u=this._localizeError(this.viewModel?.error);return h`<div class=${v(S(Ce.base,w.widget))}>${!s&&h`<calcite-button class=${v(w.widgetButton)} .disabled=${r==="disabled"} .iconStart=${i?void 0:o??f} kind=neutral .label=${a} @click=${this._locate} title=${a??N}>${i?h`<calcite-loader inline label></calcite-loader>`:null}</calcite-button>`||""}${u?h`<calcite-tooltip open overlay-positioning=fixed .referenceElement=${this.el}>${u}</calcite-tooltip>`:null}</div>`}};T("arcgis-locate",M);return M},"core/reactiveUtils","core/accessorSupport/decorators","core/Error","intl","PopupTemplate","support/actions/ActionButton","core/Accessor","Graphic","symbols/CIMSymbol","geometry/Point","geometry/operators/projectOperator","config","geometry/support/webMercatorUtils","portal/Portal","rest/geometryService","rest/support/ProjectParameters",a,b,c,d)