@arcgis/map-components 5.0.0-next.85 → 5.0.0-next.87

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 (420) hide show
  1. package/dist/cdn/{KTAF5DQG.js → 27X354V2.js} +2 -2
  2. package/dist/cdn/{VIDMCTQR.js → 2BYNODEC.js} +2 -2
  3. package/dist/cdn/2EMHQOVL.js +4 -0
  4. package/dist/cdn/{BCOH4IPM.js → 2JG2YOPZ.js} +2 -2
  5. package/dist/cdn/{2LH4PKFW.js → 2JOXV5ZY.js} +2 -2
  6. package/dist/cdn/{GFW5BE7U.js → 2OFK2RN2.js} +2 -2
  7. package/dist/cdn/{PIN3RRCH.js → 2PQLZPMI.js} +2 -2
  8. package/dist/cdn/{TL6Y3SL7.js → 3AKCOVFY.js} +2 -2
  9. package/dist/cdn/{FOJSILKR.js → 3HBVRWQH.js} +2 -2
  10. package/dist/cdn/{VM6DDSQW.js → 3WSAZIWS.js} +2 -2
  11. package/dist/cdn/{UKUPXN3Y.js → 4ANSUD6M.js} +3 -3
  12. package/dist/cdn/{7F4LJG3J.js → 4B6JJCYJ.js} +2 -2
  13. package/dist/cdn/{TTNYQHBP.js → 4EP6RKPV.js} +2 -2
  14. package/dist/cdn/4ONWIDHW.js +4 -0
  15. package/dist/cdn/{EP6TF6MV.js → 4RQXUDXM.js} +2 -2
  16. package/dist/cdn/{2LQDBTQR.js → 4WCP5CJU.js} +2 -2
  17. package/dist/cdn/{CQAWUUH7.js → 4XHWTM3W.js} +2 -2
  18. package/dist/cdn/{ZSZJ2CA5.js → 4YN5P354.js} +1 -1
  19. package/dist/cdn/{D4YP5F7C.js → 53NBSHBR.js} +2 -2
  20. package/dist/cdn/{R7YSXTQP.js → 54WB3M62.js} +2 -2
  21. package/dist/cdn/{UD5STG5G.js → 5BVHH6JR.js} +2 -2
  22. package/dist/cdn/{VFIKWREN.js → 5DMOLSHU.js} +2 -2
  23. package/dist/cdn/{HAZFFN5N.js → 5JQ5HF3R.js} +2 -2
  24. package/dist/cdn/{ANXTY2FG.js → 5XJ55CYT.js} +2 -2
  25. package/dist/cdn/{E4A6O2OU.js → 64TX3GS3.js} +1 -1
  26. package/dist/cdn/{G7K4UMS3.js → 6AHAHMGF.js} +2 -2
  27. package/dist/cdn/{H2FEU5YQ.js → 6CROFQRG.js} +2 -2
  28. package/dist/cdn/{45V7T4OS.js → 6EHJ7AZK.js} +2 -2
  29. package/dist/cdn/{ITCRPAW3.js → 6HUQBD4F.js} +2 -2
  30. package/dist/cdn/{AG2BFPQW.js → 6NBWLAFO.js} +2 -2
  31. package/dist/cdn/{KQ6IFA5Y.js → 6PUPEHFL.js} +2 -2
  32. package/dist/cdn/{ZXEDPEVX.js → 6SMRV3NU.js} +2 -2
  33. package/dist/cdn/{WTBL7L72.js → 6T4RZV4E.js} +2 -2
  34. package/dist/cdn/{I6ZUZ77R.js → 6XRDIUFD.js} +2 -2
  35. package/dist/cdn/{NG262TQH.js → 6YLVHWY3.js} +2 -2
  36. package/dist/cdn/{B37DSCMV.js → 73C2MEPQ.js} +2 -2
  37. package/dist/cdn/{Z5SHH7QK.js → 777WT7E2.js} +2 -2
  38. package/dist/cdn/{TZTBEFIS.js → 7NHBVX2Q.js} +2 -2
  39. package/dist/cdn/{WLQ3LMXU.js → 7OO2P5HM.js} +2 -2
  40. package/dist/cdn/{NNZHCC6X.js → 7QYV5UI3.js} +2 -2
  41. package/dist/cdn/{EP3NMFQK.js → A4AJQUWP.js} +2 -2
  42. package/dist/cdn/{PLURJ6TE.js → A5D75BO5.js} +2 -2
  43. package/dist/cdn/{TSYQG7NU.js → A7Q3LLPS.js} +2 -2
  44. package/dist/cdn/{545TSY3H.js → AGFX2ADJ.js} +2 -2
  45. package/dist/cdn/{X7FDDBW3.js → AOLBJF6X.js} +1 -1
  46. package/dist/cdn/{C4YYIO3F.js → B5J3PFNL.js} +2 -2
  47. package/dist/cdn/{TDSU72QA.js → BAOCMSNV.js} +2 -2
  48. package/dist/cdn/{DOVFMEKL.js → BGAYEFNL.js} +2 -2
  49. package/dist/cdn/{MUAUR7IJ.js → BGLGKNNG.js} +2 -2
  50. package/dist/cdn/{HRNFWGMO.js → BQKKZAX3.js} +2 -2
  51. package/dist/cdn/{S7DJLVYS.js → CBIC3FEL.js} +2 -2
  52. package/dist/cdn/{LIFSSYNH.js → CLK32UFP.js} +2 -2
  53. package/dist/cdn/{WMYSIRZT.js → CS6DPYWM.js} +2 -2
  54. package/dist/cdn/{SVYKXXST.js → CS6X52WM.js} +2 -2
  55. package/dist/cdn/{3QXFBVMF.js → CTEPX6UF.js} +2 -2
  56. package/dist/cdn/{ZHEPCKXZ.js → CUVII5Q2.js} +2 -2
  57. package/dist/cdn/{AD5HML3V.js → CWA2F4ZC.js} +2 -2
  58. package/dist/cdn/{WBE5IEJG.js → CZH7PM6Z.js} +2 -2
  59. package/dist/cdn/{QMC6CCHO.js → CZPABUXZ.js} +2 -2
  60. package/dist/cdn/{HFABGDDU.js → D6UVCRII.js} +2 -2
  61. package/dist/cdn/{KPKWWBAU.js → D7KYZMAG.js} +2 -2
  62. package/dist/cdn/{KFKGULMG.js → DALNQUIE.js} +2 -2
  63. package/dist/cdn/{LFE2O3AO.js → DF5NCLDH.js} +2 -2
  64. package/dist/cdn/{JDNULBIF.js → DJQPNZMX.js} +2 -2
  65. package/dist/cdn/{5CS32X2I.js → DWFZRP2J.js} +2 -2
  66. package/dist/cdn/{F4SWYUOK.js → E2VEVV67.js} +2 -2
  67. package/dist/cdn/{R2LLCIDN.js → E5T2UM62.js} +2 -2
  68. package/dist/cdn/{VT4ZYZFI.js → EDVUDYVR.js} +2 -2
  69. package/dist/cdn/{Y5GT2BK7.js → EEMW2Q5R.js} +2 -2
  70. package/dist/cdn/{NPXERHQI.js → EG6JUOF4.js} +2 -2
  71. package/dist/cdn/{T5HGJ7Y6.js → EOA5PL7V.js} +2 -2
  72. package/dist/cdn/{QGZS6G2Z.js → ERUOLKXI.js} +2 -2
  73. package/dist/cdn/{4XH7SLWI.js → ETDLLCQG.js} +2 -2
  74. package/dist/cdn/{G344FTQZ.js → EVB77BY6.js} +2 -2
  75. package/dist/cdn/{C37COPYA.js → EVL2OVXG.js} +2 -2
  76. package/dist/cdn/{CL45NSIJ.js → EYMRYSLI.js} +2 -2
  77. package/dist/cdn/{73HJ6F5R.js → EYR26AJY.js} +2 -2
  78. package/dist/cdn/{R4XPQHDW.js → EZDJROR3.js} +2 -2
  79. package/dist/cdn/{HHPKMRHQ.js → FGCJRZXK.js} +2 -2
  80. package/dist/cdn/{QIJCPGKE.js → FQRQXXNP.js} +2 -2
  81. package/dist/cdn/{Y63M4DOH.js → G4W65QOS.js} +2 -2
  82. package/dist/cdn/{REKULFBS.js → G7NQOQIB.js} +2 -2
  83. package/dist/cdn/{FRXOQYDM.js → GLSQZF74.js} +2 -2
  84. package/dist/cdn/{YJUPJABX.js → GMC3CZH2.js} +1 -1
  85. package/dist/cdn/{EVPHJCVF.js → GMQMLGTX.js} +2 -2
  86. package/dist/cdn/{DV7WDGW5.js → GNMQMWSC.js} +2 -2
  87. package/dist/cdn/{ZQ3GJKZX.js → GQMMGC32.js} +2 -2
  88. package/dist/cdn/{W4OBOYUF.js → GRO47A6Y.js} +2 -2
  89. package/dist/cdn/{DLH5TLBQ.js → GSLSEBGH.js} +2 -2
  90. package/dist/cdn/{AROK5NM6.js → HEN5F7B5.js} +2 -2
  91. package/dist/cdn/{WUJBSTFD.js → HFNJ2LC6.js} +2 -2
  92. package/dist/cdn/{45C7FHNX.js → HG6K4Z5J.js} +2 -2
  93. package/dist/cdn/{BBHRIND7.js → HVAU52EH.js} +2 -2
  94. package/dist/cdn/{UODWMSEN.js → HWJ3NQYK.js} +2 -2
  95. package/dist/cdn/{UV325HSA.js → IAPLVUAX.js} +2 -2
  96. package/dist/cdn/{LVPPYYXH.js → IDCRYNQY.js} +1 -1
  97. package/dist/cdn/{TFW3ROIO.js → IHKFFYF7.js} +2 -2
  98. package/dist/cdn/{G2SLL5RM.js → IL74MXOT.js} +2 -2
  99. package/dist/cdn/{TPE6A53T.js → IMCCBQ5M.js} +2 -2
  100. package/dist/cdn/{YZU55T55.js → ISEXM6TN.js} +2 -2
  101. package/dist/cdn/{CCUEBPQ5.js → J4Q6ANAB.js} +2 -2
  102. package/dist/cdn/{3TZYSFM3.js → J5LCPKDW.js} +2 -2
  103. package/dist/cdn/{EK6UUXTH.js → JBCIP434.js} +2 -2
  104. package/dist/cdn/{E7M3XO3D.js → JCIBKEX3.js} +2 -2
  105. package/dist/cdn/{VGF3ROSE.js → JCQLD5KP.js} +2 -2
  106. package/dist/cdn/{FZIT2DHJ.js → JHB4BWDH.js} +2 -2
  107. package/dist/cdn/{OAZXAPGP.js → JKKFLWMT.js} +2 -2
  108. package/dist/cdn/{WCFKBHX4.js → JLKYQEKG.js} +2 -2
  109. package/dist/cdn/{4FK3E43S.js → JT27EM2N.js} +2 -2
  110. package/dist/cdn/{ZZAXGCNG.js → JWOWCBTW.js} +2 -2
  111. package/dist/cdn/{R4ZZRLUD.js → JZ2OZJ3M.js} +1 -1
  112. package/dist/cdn/{5UZFZ3N6.js → KBSSYHN6.js} +2 -2
  113. package/dist/cdn/{F42KQLMU.js → KC2XKP4I.js} +2 -2
  114. package/dist/cdn/{CCFA5JCR.js → KEQKB7D5.js} +2 -2
  115. package/dist/cdn/KKHZIJJ5.js +4 -0
  116. package/dist/cdn/{23SRZKBS.js → KLUWEXIC.js} +2 -2
  117. package/dist/cdn/{V2WTIF2C.js → KPRBFB4D.js} +1 -1
  118. package/dist/cdn/{HFYDFZW6.js → KRAB4N64.js} +2 -2
  119. package/dist/cdn/{QPEQCAPS.js → KSAPQRQ7.js} +2 -2
  120. package/dist/cdn/{ETGCHWBE.js → KUW5QSD4.js} +2 -2
  121. package/dist/cdn/{6A4VVPO5.js → KVXULRVT.js} +2 -2
  122. package/dist/cdn/{KSVU2OGY.js → L2ND35CU.js} +2 -2
  123. package/dist/cdn/{THVR67GQ.js → LJGVQHAZ.js} +2 -2
  124. package/dist/cdn/{XFBSKTEB.js → LXOAIMPX.js} +2 -2
  125. package/dist/cdn/{AXVH6RXR.js → MG5S7GLE.js} +2 -2
  126. package/dist/cdn/{FC4NHG3U.js → ML5EOAHS.js} +2 -2
  127. package/dist/cdn/{UGTN4NAD.js → MOITPDFD.js} +1 -1
  128. package/dist/cdn/{WVMLJPZM.js → N26ELVVV.js} +2 -2
  129. package/dist/cdn/{65LOSI5S.js → N4DDLF5S.js} +2 -2
  130. package/dist/cdn/{RJ7WEJC2.js → N6ZGENEI.js} +2 -2
  131. package/dist/cdn/{ZEEEKBY7.js → NDHQAJQF.js} +2 -2
  132. package/dist/cdn/{NVMEIL5L.js → NOZXGSQS.js} +2 -2
  133. package/dist/cdn/{ZT546Q2T.js → NPBFMVNZ.js} +2 -2
  134. package/dist/cdn/{5UPCSSTA.js → NU44AZFZ.js} +2 -2
  135. package/dist/cdn/{WMBMH5CK.js → NUJN4JQ2.js} +2 -2
  136. package/dist/cdn/{YOLXFZMM.js → O3SKGUYY.js} +2 -2
  137. package/dist/cdn/{TRCJN3HJ.js → O5QNN3RZ.js} +2 -2
  138. package/dist/cdn/{WAER5GJR.js → O7EROEVZ.js} +2 -2
  139. package/dist/cdn/{TB2E5CUO.js → ODAVINVD.js} +2 -2
  140. package/dist/cdn/{GXD6GTQI.js → OEJBZFQ2.js} +2 -2
  141. package/dist/cdn/{643PKAG3.js → OF6IVIRL.js} +2 -2
  142. package/dist/cdn/{YGJBOHF2.js → OH3OU7SS.js} +2 -2
  143. package/dist/cdn/{ZHFUUDM4.js → OHAVKDG4.js} +2 -2
  144. package/dist/cdn/{EDSQV3ZZ.js → PCZETSRX.js} +2 -2
  145. package/dist/cdn/{DP6T7RM3.js → PGROL3JO.js} +2 -2
  146. package/dist/cdn/{PCKNY2C6.js → PHJOPJ5Q.js} +2 -2
  147. package/dist/cdn/{23Y6RPZK.js → PJBL3SDE.js} +2 -2
  148. package/dist/cdn/{4XZKTQVT.js → PKLUZV6X.js} +2 -2
  149. package/dist/cdn/{RCD3HC4K.js → PP3MVOR6.js} +2 -2
  150. package/dist/cdn/{MRGSEPPW.js → PTJRBC6U.js} +2 -2
  151. package/dist/cdn/{3IG4U5FC.js → PVDACCAE.js} +1 -1
  152. package/dist/cdn/{LW3F6GQE.js → Q7ISZX3P.js} +2 -2
  153. package/dist/cdn/{M5RTRCLT.js → QNCL6QXE.js} +2 -2
  154. package/dist/cdn/{N4NA2SN3.js → QRKHATVY.js} +2 -2
  155. package/dist/cdn/{ZVSKQ62K.js → QRMHXFEH.js} +2 -2
  156. package/dist/cdn/{2FKNP7LB.js → QWJSFZ5P.js} +2 -2
  157. package/dist/cdn/{ZDZ323ZF.js → R2X3OA5N.js} +2 -2
  158. package/dist/cdn/{PMEIUGYR.js → R6TEEJEA.js} +2 -2
  159. package/dist/cdn/{IANUEVU7.js → RB54UWSP.js} +2 -2
  160. package/dist/cdn/{YR5P3HVL.js → REHJ2RCS.js} +2 -2
  161. package/dist/cdn/{YRZACWSO.js → RIGFCMSX.js} +2 -2
  162. package/dist/cdn/{EYENMHYF.js → S6A3X4JS.js} +2 -2
  163. package/dist/cdn/{JJFSGVS3.js → SAIA6E7W.js} +2 -2
  164. package/dist/cdn/{PWI43EIR.js → SEKJQRIP.js} +2 -2
  165. package/dist/cdn/{LV5N2ZIQ.js → SIV53MWS.js} +2 -2
  166. package/dist/cdn/{BCDPXJ6Z.js → SJMO5YZZ.js} +2 -2
  167. package/dist/cdn/{UE37VDZV.js → SLZ43ZOK.js} +1 -1
  168. package/dist/cdn/{UFF6F3ES.js → SQNYM4UJ.js} +2 -2
  169. package/dist/cdn/{4GYETX3H.js → SU6NHQT5.js} +1 -1
  170. package/dist/cdn/{LCX26DPC.js → SUXWUTYL.js} +1 -1
  171. package/dist/cdn/{5FFKG7U6.js → T2JJGCYP.js} +2 -2
  172. package/dist/cdn/{IEM3Z3HI.js → T5TAKE4M.js} +2 -2
  173. package/dist/cdn/{GIQNKYJQ.js → TALNCAUT.js} +2 -2
  174. package/dist/cdn/{L46KMBZW.js → TCWMXQMF.js} +2 -2
  175. package/dist/cdn/{6TNRWKZM.js → THQN76C6.js} +2 -2
  176. package/dist/cdn/{UF4PTXHJ.js → TJ4ZUOAI.js} +2 -2
  177. package/dist/cdn/{52M3Q7A5.js → TKTGZFAY.js} +2 -2
  178. package/dist/cdn/{74D6IFCH.js → TRJISMJB.js} +2 -2
  179. package/dist/cdn/{AFLUPZV2.js → TTUDCXQX.js} +2 -2
  180. package/dist/cdn/U6IL3HKG.js +4 -0
  181. package/dist/cdn/{NOOZM7UZ.js → UAVOFUTQ.js} +2 -2
  182. package/dist/cdn/{M22BUUWJ.js → UEWT6OM3.js} +2 -2
  183. package/dist/cdn/{S65XO6U6.js → UJPQQWRU.js} +2 -2
  184. package/dist/cdn/{JDMLZLMA.js → URCSLSTI.js} +2 -2
  185. package/dist/cdn/{V7APVJS6.js → V37MDH4Q.js} +2 -2
  186. package/dist/cdn/{Y2TZZCCN.js → VI4M4ZEU.js} +2 -2
  187. package/dist/cdn/{XCFSDTNR.js → VJH2EHZX.js} +2 -2
  188. package/dist/cdn/{C5DLJ763.js → VK3DAWLX.js} +2 -2
  189. package/dist/cdn/{QNGNK4TM.js → VLU5VGSC.js} +2 -2
  190. package/dist/cdn/{NLHHMBAY.js → VMPVUIXY.js} +2 -2
  191. package/dist/cdn/{ZHMVIY7F.js → VRHMVYVT.js} +2 -2
  192. package/dist/cdn/{5PAF5U6J.js → VTAW5YR3.js} +2 -2
  193. package/dist/cdn/{5W7ZUJLF.js → VUYUYUBE.js} +2 -2
  194. package/dist/cdn/{VBKYCCXS.js → VV6LED4I.js} +2 -2
  195. package/dist/cdn/{XV5B4TQB.js → VWUH7QLK.js} +2 -2
  196. package/dist/cdn/{GDPBHQSR.js → VXCY4UNU.js} +2 -2
  197. package/dist/cdn/{K4MYINMX.js → VY5FYXAM.js} +2 -2
  198. package/dist/cdn/{VAVJYOHA.js → VY663NNF.js} +2 -2
  199. package/dist/cdn/{M66KDVTN.js → VZIG2ZB6.js} +2 -2
  200. package/dist/cdn/{XPWI2BIF.js → W2KUWKVL.js} +2 -2
  201. package/dist/cdn/{2KC24RBA.js → W3IW6PSI.js} +2 -2
  202. package/dist/cdn/{44YVNSW5.js → WB7BOB6K.js} +2 -2
  203. package/dist/cdn/{67OUU2NE.js → WG6LF7I3.js} +2 -2
  204. package/dist/cdn/{T3UFYGGK.js → WHVF5KSV.js} +2 -2
  205. package/dist/cdn/{N3DMX47X.js → WJKRVPI7.js} +2 -2
  206. package/dist/cdn/WOO4IELV.js +4 -0
  207. package/dist/cdn/{LGGGDZVB.js → WW6L7RRU.js} +2 -2
  208. package/dist/cdn/{GRS6C55W.js → X4V2UEQT.js} +1 -1
  209. package/dist/cdn/{XENCLWDT.js → X6UH54F2.js} +1 -1
  210. package/dist/cdn/XG3PHZ6U.js +4 -0
  211. package/dist/cdn/{Z6JYJBEV.js → XHNOM3RN.js} +2 -2
  212. package/dist/cdn/{GEPGZG2Z.js → XI3AK2QV.js} +2 -2
  213. package/dist/cdn/{WADQAAY4.js → XIQDJQHL.js} +2 -2
  214. package/dist/cdn/{HHL2LWFN.js → XO2ODZUU.js} +2 -2
  215. package/dist/cdn/{ZH2SEHLX.js → XY5WUUSW.js} +2 -2
  216. package/dist/cdn/{SQUXDP5E.js → XYUFKWTN.js} +2 -2
  217. package/dist/cdn/{Y65K6RWO.js → Y6ALGYMS.js} +2 -2
  218. package/dist/cdn/{3AE2IFKK.js → YBHJBGKH.js} +2 -2
  219. package/dist/cdn/{4KSISQHQ.js → YFLCAWWN.js} +1 -1
  220. package/dist/cdn/{M44ZKD55.js → YGVV4KDL.js} +2 -2
  221. package/dist/cdn/{HGAWRQH7.js → YJ4YKAZX.js} +2 -2
  222. package/dist/cdn/{RHO4QGFP.js → YN24UDDB.js} +2 -2
  223. package/dist/cdn/{FAY3FV2R.js → YPIGZG7C.js} +2 -2
  224. package/dist/cdn/{J52QBZTH.js → YRAZ5HSW.js} +2 -2
  225. package/dist/cdn/{TNSEVLRP.js → YSK5DCPZ.js} +2 -2
  226. package/dist/cdn/{5O6P6L5V.js → YSRMPSZ6.js} +1 -1
  227. package/dist/cdn/{T5JF2CZO.js → YWTAMHBC.js} +2 -2
  228. package/dist/cdn/{Z52I4BRG.js → YXWFTRNT.js} +1 -1
  229. package/dist/cdn/{KGZYWLXJ.js → YYYYSZVU.js} +2 -2
  230. package/dist/cdn/{PHFRZE5N.js → Z2LIHOG2.js} +2 -2
  231. package/dist/cdn/{GTHABISD.js → ZCBYGIET.js} +2 -2
  232. package/dist/cdn/{E43IYVHZ.js → ZN3AKVFU.js} +2 -2
  233. package/dist/cdn/{KOJW2UBT.js → ZOABTXJK.js} +2 -2
  234. package/dist/cdn/index.js +2 -2
  235. package/dist/chunks/AnalysisViewModel.js +1 -1
  236. package/dist/chunks/action-utils.js +1 -1
  237. package/dist/chunks/async-utils.js +1 -1
  238. package/dist/chunks/basemap-gallery-resources.js +1 -1
  239. package/dist/chunks/chart-utils.js +1 -1
  240. package/dist/chunks/chartCommon.js +1 -1
  241. package/dist/chunks/component-utils.js +1 -1
  242. package/dist/chunks/constants.js +1 -1
  243. package/dist/chunks/createCloseEvent.js +1 -1
  244. package/dist/chunks/esri-main.js +2 -2
  245. package/dist/chunks/feature-utils.js +1 -1
  246. package/dist/chunks/globalCss.js +1 -1
  247. package/dist/chunks/handle.js +1 -1
  248. package/dist/chunks/heading.js +1 -1
  249. package/dist/chunks/layer-list.js +1 -1
  250. package/dist/chunks/legacyIcon.js +1 -1
  251. package/dist/chunks/maybe.js +1 -1
  252. package/dist/chunks/measurementUtils.js +1 -1
  253. package/dist/chunks/runtime.js +1 -1
  254. package/dist/chunks/screenLocation.js +1 -1
  255. package/dist/chunks/slots.js +2 -2
  256. package/dist/chunks/svgUtils.js +1 -1
  257. package/dist/chunks/time-utils.js +1 -1
  258. package/dist/chunks/univariateUtils.js +1 -1
  259. package/dist/chunks/useArcgisViewReadyError.js +1 -1
  260. package/dist/chunks/useHandles.js +1 -1
  261. package/dist/chunks/useT9n.js +1 -1
  262. package/dist/chunks/useView.js +1 -1
  263. package/dist/chunks/useViewModel.js +1 -1
  264. package/dist/chunks/useWidget.js +1 -1
  265. package/dist/chunks/utils.js +1 -1
  266. package/dist/chunks/utils2.js +1 -1
  267. package/dist/chunks/visible-element.js +1 -1
  268. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  269. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  270. package/dist/components/arcgis-attachments/customElement.js +1 -1
  271. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  272. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  273. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  274. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  275. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  276. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  277. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  278. package/dist/components/arcgis-color-select/customElement.js +1 -1
  279. package/dist/components/arcgis-compass/customElement.js +1 -1
  280. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  281. package/dist/components/arcgis-daylight/customElement.js +1 -1
  282. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  283. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  284. package/dist/components/arcgis-directions/customElement.js +1 -1
  285. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  286. package/dist/components/arcgis-editor/customElement.js +1 -1
  287. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  288. package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
  289. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  290. package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
  291. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
  292. package/dist/components/arcgis-expand/customElement.js +1 -1
  293. package/dist/components/arcgis-feature/customElement.js +1 -1
  294. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  295. package/dist/components/arcgis-feature-content/customElement.js +1 -1
  296. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  297. package/dist/components/arcgis-feature-expression/customElement.js +1 -1
  298. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  299. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  300. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  301. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  302. package/dist/components/arcgis-feature-table/customElement.d.ts +10 -8
  303. package/dist/components/arcgis-feature-table/customElement.js +15 -15
  304. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  305. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
  306. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  307. package/dist/components/arcgis-features/customElement.js +1 -1
  308. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  309. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  310. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  311. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  312. package/dist/components/arcgis-home/customElement.js +1 -1
  313. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  314. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  315. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  316. package/dist/components/arcgis-legend/customElement.js +1 -1
  317. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  318. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  319. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  320. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
  321. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
  322. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  323. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  324. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  325. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  326. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
  327. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
  328. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  329. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
  330. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  331. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  332. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  333. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  334. package/dist/components/arcgis-locate/customElement.js +1 -1
  335. package/dist/components/arcgis-map/customElement.js +1 -1
  336. package/dist/components/arcgis-measurement/customElement.js +1 -1
  337. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  338. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  339. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  340. package/dist/components/arcgis-placement/customElement.js +1 -1
  341. package/dist/components/arcgis-popup/customElement.js +1 -1
  342. package/dist/components/arcgis-presentation/customElement.js +1 -1
  343. package/dist/components/arcgis-print/customElement.js +1 -1
  344. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  345. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  346. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  347. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  348. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  349. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  350. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  351. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  352. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  353. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  354. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  355. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  356. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  357. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  358. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  359. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  360. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  361. package/dist/components/arcgis-scene/customElement.js +1 -1
  362. package/dist/components/arcgis-search/customElement.js +1 -1
  363. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  364. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  365. package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
  366. package/dist/components/arcgis-shadow-cast-duration-config/customElement.js +1 -1
  367. package/dist/components/arcgis-shadow-cast-threshold-config/customElement.js +1 -1
  368. package/dist/components/arcgis-sketch/customElement.js +1 -1
  369. package/dist/components/arcgis-slice/customElement.js +1 -1
  370. package/dist/components/arcgis-spinner/customElement.js +1 -1
  371. package/dist/components/arcgis-swipe/customElement.js +1 -1
  372. package/dist/components/arcgis-table-list/customElement.js +1 -1
  373. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  374. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  375. package/dist/components/arcgis-track/customElement.js +1 -1
  376. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  377. package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
  378. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  379. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
  380. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  381. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
  382. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
  383. package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
  384. package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
  385. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  386. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  387. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  388. package/dist/components/arcgis-version-management/customElement.js +1 -1
  389. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  390. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  391. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  392. package/dist/components/arcgis-video/customElement.js +1 -1
  393. package/dist/components/arcgis-video-player/customElement.js +1 -1
  394. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  395. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  396. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  397. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  398. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  399. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  400. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  401. package/dist/components/arcgis-weather/customElement.js +1 -1
  402. package/dist/components/arcgis-zoom/customElement.js +1 -1
  403. package/dist/docs/api.json +38 -11
  404. package/dist/docs/docs.json +30 -9
  405. package/dist/docs/vscode.html-custom-data.json +6 -1
  406. package/dist/docs/web-types.json +19 -7
  407. package/dist/index.js +1 -1
  408. package/dist/loader.js +2 -2
  409. package/dist/types/lumina.d.ts +1 -1
  410. package/dist/types/preact.d.ts +1 -1
  411. package/dist/types/preact10.d.ts +1 -1
  412. package/dist/types/react.d.ts +1 -1
  413. package/dist/types/stencil.d.ts +1 -1
  414. package/package.json +3 -3
  415. package/dist/cdn/3724VLCE.js +0 -4
  416. package/dist/cdn/I2GAQWIW.js +0 -4
  417. package/dist/cdn/NEAGCRR5.js +0 -4
  418. package/dist/cdn/SCWNZZLV.js +0 -4
  419. package/dist/cdn/XUIQVZAX.js +0 -4
  420. package/dist/cdn/YHOJPXHT.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.85 */
4
- import{c as l,g as u}from"./XENCLWDT.js";var f="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(","),d=new Set(f),c="en",L={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},$=async(n,o,r="")=>{let e=`${o}/${r}`,t=`${e}${n}.json`;return i[t]??(i[t]=g(n,e)),await i[t]},i={},g=async(n,o)=>{let r=`${o}${n}.json`;try{let e=await fetch(r);if(e.ok)return await e.json()}catch(e){return console.error(e),{}}return n===c?{}:await g(c,o)},b=n=>{let o=u(n,"lang",globalThis.navigator?.language||c);return{lang:o,t9nLocale:p(o)}},p=n=>{let[o,r]=n.split("-"),e=o.toLowerCase(),t=e;return r&&(t=`${e}-${r.toUpperCase()}`),t=L[t]??t,d.has(t)?t:r?p(e):c},z=(n,o,r,e)=>{let t,a=()=>v(n,o(),e).then(s=>{(t?.lang!==s.lang||t.t9nLocale!==s.t9nLocale||t.t9nStrings!==s.t9nStrings)&&r(s),t=s}).catch(console.error);return queueMicrotask(a),l(n,["lang"],a)},v=async(n,o,r=n.localName.split("-").slice(1).join("-"))=>{let{lang:e,t9nLocale:t}=b(n),a=`${o}/${r}/t9n`,h=r===null?{}:await $(t,a,"messages.");return{lang:e,t9nLocale:t,t9nStrings:h}};export{b as a,z as b};
3
+ v5.0.0-next.87 */
4
+ import{c as l,g as u}from"./X6UH54F2.js";var f="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(","),d=new Set(f),c="en",L={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},$=async(n,o,r="")=>{let e=`${o}/${r}`,t=`${e}${n}.json`;return i[t]??(i[t]=g(n,e)),await i[t]},i={},g=async(n,o)=>{let r=`${o}${n}.json`;try{let e=await fetch(r);if(e.ok)return await e.json()}catch(e){return console.error(e),{}}return n===c?{}:await g(c,o)},b=n=>{let o=u(n,"lang",globalThis.navigator?.language||c);return{lang:o,t9nLocale:p(o)}},p=n=>{let[o,r]=n.split("-"),e=o.toLowerCase(),t=e;return r&&(t=`${e}-${r.toUpperCase()}`),t=L[t]??t,d.has(t)?t:r?p(e):c},z=(n,o,r,e)=>{let t,a=()=>v(n,o(),e).then(s=>{(t?.lang!==s.lang||t.t9nLocale!==s.t9nLocale||t.t9nStrings!==s.t9nStrings)&&r(s),t=s}).catch(console.error);return queueMicrotask(a),l(n,["lang"],a)},v=async(n,o,r=n.localName.split("-").slice(1).join("-"))=>{let{lang:e,t9nLocale:t}=b(n),a=`${o}/${r}/t9n`,h=r===null?{}:await $(t,a,"messages.");return{lang:e,t9nLocale:t,t9nStrings:h}};export{b as a,z as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.85 */
4
- import c from"./3IG4U5FC.js";import{b as d}from"./XENCLWDT.js";import{I as f,J as i,K as v,L as g,O as $,a as b,b as a}from"./V2WTIF2C.js";import"./5O6P6L5V.js";export default $arcgis.t(([{a:m,b:w,d:u,g:y,h:p}])=>{var z=b`.arcgis-legend__layer-table{display:flex;flex-flow:column;margin-bottom:var(--calcite-spacing-md);width:100%}.arcgis-legend__layer-table--size-ramp{display:table}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-cell{display:table-cell}.arcgis-legend__layer-caption{display:table-caption;padding:var(--calcite-spacing-sm) 0;word-break:break-word}.arcgis-legend__layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .arcgis-legend__layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.arcgis-legend__layer-row{display:flex}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-row{display:table-row}.arcgis-legend__layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word;display:flex;align-items:center}.arcgis-legend__layer-cell--info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-legend__imagery-layer-image--stretched{display:block;margin-bottom:-2px}.arcgis-legend__imagery-layer-info--stretched{padding:0 2px;vertical-align:top}.arcgis-legend__layer-cell--symbols{min-width:10px;text-align:center}.arcgis-legend__symbol{display:flex;justify-content:center}`,s={layerTable:"arcgis-legend__layer-table",layerTableSizeRamp:"arcgis-legend__layer-table--size-ramp",layerCaption:"arcgis-legend__layer-caption",layerBody:"arcgis-legend__layer-body",layerRow:"arcgis-legend__layer-row",layerInfo:"arcgis-legend__layer-cell arcgis-legend__layer-cell--info",imageryLayerStretchedImage:"arcgis-legend__imagery-layer-image--stretched",imageryLayerInfoStretched:"arcgis-legend__imagery-layer-info--stretched",symbolContainer:"arcgis-legend__layer-cell arcgis-legend__layer-cell--symbols",symbol:"arcgis-legend__symbol"},h=class extends f{static{this.properties={cssEffectFilter:1,layer:0,legendElement:0,messages:0}}static{this.styles=z}render(){let e=this._renderLegendElement(),l=w(this.legendElement,this.messages),r=l?a`<div class=${i(s.layerCaption)}>${l}</div>`:null,t={[s.layerTableSizeRamp]:this.legendElement.type==="size-ramp"};return a`<section class=${i(d(s.layerTable,t))}>${r}${e}</section>`}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return a`<arcgis-legend-classic-size-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-classic-size-ramp>`;case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return a`<arcgis-legend-classic-color-ramp .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-color-ramp>`;case"relationship-ramp":return a`<arcgis-legend-relationship-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .opacity=${this.layer.opacity} .messages=${this.messages}></arcgis-legend-relationship-ramp>`;case"pie-chart-ramp":{let{preview:e}=this.legendElement;return p(e,this.messages.previewPieChartAriaLabel),a`<div>${e}</div>`}case"univariate-above-and-below-ramp":return a`<arcgis-legend-classic-univariate-above-and-below-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-above-and-below-ramp>`;case"univariate-color-size-ramp":return a`<arcgis-legend-classic-univariate-color-size-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-color-size-ramp>`;default:return null}}_renderSymbolTable(e){let l=e.infos.map(r=>this._renderElementInfo(r,e.legendType)).filter(Boolean);return l.length?a`<div class=${i(s.layerBody)}>${l}</div>`:null}_renderElementInfo(e,l){let{layer:r}=this,t="label"in e?e.label:null;if("type"in e&&e.type)return e?a`<arcgis-legend-classic-element .cssEffectFilter=${this.cssEffectFilter} .layer=${r} .legendElement=${e} .messages=${this.messages}></arcgis-legend-classic-element>`:null;if(!("preview"in e&&e.preview)&&!("src"in e&&e.src))return null;let n=u(r,l),c={[s.imageryLayerInfoStretched]:n},o={[s.imageryLayerInfoStretched]:n};return a`<div class=${i(s.layerRow)}><div class=${i(d(s.symbolContainer,o))}>${this._renderPreview(e,n)}</div><div class=${i(d(s.layerInfo,c))}>${m(this.messages,t,!1)||""}</div></div>`}_renderPreview(e,l){let{layer:r}=this;if("preview"in e&&e.preview){let{preview:t}=e,n="previewAriaLabel"in e?e.previewAriaLabel:null,c="label"in e?m(this.messages,e.label,!1):null;return p(t,y(this.messages,n||c)),a`<div class=${i(s.symbol)}>${t}</div>`}return"src"in e&&e.src?this._renderImage(e,r,l):null}_renderImage(e,l,r){let{previewAriaLabel:t,src:n,opacity:c}=e,o=m(this.messages,e.label,!1),E={[s.imageryLayerStretchedImage]:r,[s.symbol]:!r},x={opacity:`${c??l.opacity}`},_=y(this.messages,t||o);return a`<img alt=${_??g} .ariaLabel=${_} class=${i(d(E))} height=${e.height??void 0??g} src=${n??g} style=${v(x)} width=${e.width??void 0??g}>`}};$("arcgis-legend-classic-element",h);return h},c)
3
+ v5.0.0-next.87 */
4
+ import c from"./PVDACCAE.js";import{b as d}from"./X6UH54F2.js";import{I as f,J as i,K as v,L as g,O as $,a as b,b as a}from"./KPRBFB4D.js";import"./YSRMPSZ6.js";export default $arcgis.t(([{a:m,b:w,d:u,g:y,h:p}])=>{var z=b`.arcgis-legend__layer-table{display:flex;flex-flow:column;margin-bottom:var(--calcite-spacing-md);width:100%}.arcgis-legend__layer-table--size-ramp{display:table}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-cell{display:table-cell}.arcgis-legend__layer-caption{display:table-caption;padding:var(--calcite-spacing-sm) 0;word-break:break-word}.arcgis-legend__layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .arcgis-legend__layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.arcgis-legend__layer-row{display:flex}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-row{display:table-row}.arcgis-legend__layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word;display:flex;align-items:center}.arcgis-legend__layer-cell--info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-legend__imagery-layer-image--stretched{display:block;margin-bottom:-2px}.arcgis-legend__imagery-layer-info--stretched{padding:0 2px;vertical-align:top}.arcgis-legend__layer-cell--symbols{min-width:10px;text-align:center}.arcgis-legend__symbol{display:flex;justify-content:center}`,s={layerTable:"arcgis-legend__layer-table",layerTableSizeRamp:"arcgis-legend__layer-table--size-ramp",layerCaption:"arcgis-legend__layer-caption",layerBody:"arcgis-legend__layer-body",layerRow:"arcgis-legend__layer-row",layerInfo:"arcgis-legend__layer-cell arcgis-legend__layer-cell--info",imageryLayerStretchedImage:"arcgis-legend__imagery-layer-image--stretched",imageryLayerInfoStretched:"arcgis-legend__imagery-layer-info--stretched",symbolContainer:"arcgis-legend__layer-cell arcgis-legend__layer-cell--symbols",symbol:"arcgis-legend__symbol"},h=class extends f{static{this.properties={cssEffectFilter:1,layer:0,legendElement:0,messages:0}}static{this.styles=z}render(){let e=this._renderLegendElement(),l=w(this.legendElement,this.messages),r=l?a`<div class=${i(s.layerCaption)}>${l}</div>`:null,t={[s.layerTableSizeRamp]:this.legendElement.type==="size-ramp"};return a`<section class=${i(d(s.layerTable,t))}>${r}${e}</section>`}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return a`<arcgis-legend-classic-size-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-classic-size-ramp>`;case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return a`<arcgis-legend-classic-color-ramp .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-color-ramp>`;case"relationship-ramp":return a`<arcgis-legend-relationship-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .opacity=${this.layer.opacity} .messages=${this.messages}></arcgis-legend-relationship-ramp>`;case"pie-chart-ramp":{let{preview:e}=this.legendElement;return p(e,this.messages.previewPieChartAriaLabel),a`<div>${e}</div>`}case"univariate-above-and-below-ramp":return a`<arcgis-legend-classic-univariate-above-and-below-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-above-and-below-ramp>`;case"univariate-color-size-ramp":return a`<arcgis-legend-classic-univariate-color-size-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-color-size-ramp>`;default:return null}}_renderSymbolTable(e){let l=e.infos.map(r=>this._renderElementInfo(r,e.legendType)).filter(Boolean);return l.length?a`<div class=${i(s.layerBody)}>${l}</div>`:null}_renderElementInfo(e,l){let{layer:r}=this,t="label"in e?e.label:null;if("type"in e&&e.type)return e?a`<arcgis-legend-classic-element .cssEffectFilter=${this.cssEffectFilter} .layer=${r} .legendElement=${e} .messages=${this.messages}></arcgis-legend-classic-element>`:null;if(!("preview"in e&&e.preview)&&!("src"in e&&e.src))return null;let n=u(r,l),c={[s.imageryLayerInfoStretched]:n},o={[s.imageryLayerInfoStretched]:n};return a`<div class=${i(s.layerRow)}><div class=${i(d(s.symbolContainer,o))}>${this._renderPreview(e,n)}</div><div class=${i(d(s.layerInfo,c))}>${m(this.messages,t,!1)||""}</div></div>`}_renderPreview(e,l){let{layer:r}=this;if("preview"in e&&e.preview){let{preview:t}=e,n="previewAriaLabel"in e?e.previewAriaLabel:null,c="label"in e?m(this.messages,e.label,!1):null;return p(t,y(this.messages,n||c)),a`<div class=${i(s.symbol)}>${t}</div>`}return"src"in e&&e.src?this._renderImage(e,r,l):null}_renderImage(e,l,r){let{previewAriaLabel:t,src:n,opacity:c}=e,o=m(this.messages,e.label,!1),E={[s.imageryLayerStretchedImage]:r,[s.symbol]:!r},x={opacity:`${c??l.opacity}`},_=y(this.messages,t||o);return a`<img alt=${_??g} .ariaLabel=${_} class=${i(d(E))} height=${e.height??void 0??g} src=${n??g} style=${v(x)} width=${e.width??void 0??g}>`}};$("arcgis-legend-classic-element",h);return h},c)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.85 */
3
+ v5.0.0-next.87 */
4
4
  function a(o){o?.abort()}function e(o){o?.remove()}export{a,e as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.85 */
4
- import{b as g,c as x}from"./KTAF5DQG.js";import{a as c}from"./YJUPJABX.js";import{a as o}from"./X7FDDBW3.js";import{I as d,J as p,O as m,a as n,b as i}from"./V2WTIF2C.js";import"./5O6P6L5V.js";var f=n`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}.label{display:block}.discrete-label-text{font-weight:var(--calcite-font-weight-medium);opacity:var(--calcite-opacity-disabled)}.label-open{&:not(.label-empty){margin-bottom:var(--calcite-spacing-xs)}.discrete-label-text{opacity:1}}arcgis-shadow-cast-discrete-config{padding:0 var(--calcite-spacing-xs)}`,r=class extends d{constructor(){super(...arguments),this.scale="s",this.minThreshold=0,this.maxThreshold=c(8,"hours","milliseconds"),this.hideColorPicker=!1,this.hideSlider=!1,this.hideContextOptions=!1,this.hideContextToggle=!1,this.hideContextColorPicker=!1,this.hideContextInterval=!1}static{this.properties={options:0,scale:1,minThreshold:9,maxThreshold:9,messages:0,hideColorPicker:5,hideSlider:5,hideContextOptions:5,hideContextToggle:5,hideContextColorPicker:5,hideContextInterval:5}}static{this.styles=f}render(){let{options:l,scale:s}=this,e=this.messages?.threshold;return i`${o({hidden:this.hideSlider,children:i`<calcite-label .scale=${s}>${e?.thresholdLabel}<calcite-slider fill-placement=end .labelFormatter=${t=>Math.round(c(t,"milliseconds","hours")).toFixed(0)} label-ticks .max=${this.maxThreshold} .min=${this.minThreshold} snap .step=${x} .scale=${s} .ticks=${g} .value=${l.minDuration} @calciteSliderInput=${t=>{l.minDuration=t.currentTarget.value}}></calcite-slider></calcite-label>`})}${o({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${this.options.color} .label=${e?.colorLabel} @arcgisColorChanged=${t=>{l.color=t.detail}}></arcgis-color-select>`})}${o({hidden:this.hideContextOptions,children:this._renderContextOptions()})}`}_renderContextOptions(){let{options:l,scale:s}=this,e=l.contextEnabled,t=this.messages?.threshold,a=!this.hideContextToggle,C=!this.hideContextColorPicker,$=!this.hideContextInterval,h=C||$;if(!(!a&&(!e||!h)))return i`<div><calcite-label class=${p({label:!0,"label-open":e,"label-empty":!h})} .layout=${a?"inline-space-between":"default"} .scale=${s}><span class="discrete-label-text">${t?.discreteLabel??"foo"}</span>${o({hidden:!a,children:i`<calcite-switch .checked=${e} .scale=${s} @calciteSwitchChange=${b=>{this.options.contextEnabled=b.target.checked}}></calcite-switch>`})}</calcite-label>${o({hidden:!e,children:i`<arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideContextColorPicker} .hideInterval=${this.hideContextInterval} .messages=${this.messages} .options=${this.options.contextOptions} .scale=${s}></arcgis-shadow-cast-discrete-config>`})}</div>`}};m("arcgis-shadow-cast-threshold-config",r);export{r as ArcgisShadowCastThresholdConfig};
3
+ v5.0.0-next.87 */
4
+ import{b as g,c as x}from"./27X354V2.js";import{a as c}from"./GMC3CZH2.js";import{a as o}from"./AOLBJF6X.js";import{I as d,J as p,O as m,a as n,b as i}from"./KPRBFB4D.js";import"./YSRMPSZ6.js";var f=n`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}.label{display:block}.discrete-label-text{font-weight:var(--calcite-font-weight-medium);opacity:var(--calcite-opacity-disabled)}.label-open{&:not(.label-empty){margin-bottom:var(--calcite-spacing-xs)}.discrete-label-text{opacity:1}}arcgis-shadow-cast-discrete-config{padding:0 var(--calcite-spacing-xs)}`,r=class extends d{constructor(){super(...arguments),this.scale="s",this.minThreshold=0,this.maxThreshold=c(8,"hours","milliseconds"),this.hideColorPicker=!1,this.hideSlider=!1,this.hideContextOptions=!1,this.hideContextToggle=!1,this.hideContextColorPicker=!1,this.hideContextInterval=!1}static{this.properties={options:0,scale:1,minThreshold:9,maxThreshold:9,messages:0,hideColorPicker:5,hideSlider:5,hideContextOptions:5,hideContextToggle:5,hideContextColorPicker:5,hideContextInterval:5}}static{this.styles=f}render(){let{options:l,scale:s}=this,e=this.messages?.threshold;return i`${o({hidden:this.hideSlider,children:i`<calcite-label .scale=${s}>${e?.thresholdLabel}<calcite-slider fill-placement=end .labelFormatter=${t=>Math.round(c(t,"milliseconds","hours")).toFixed(0)} label-ticks .max=${this.maxThreshold} .min=${this.minThreshold} snap .step=${x} .scale=${s} .ticks=${g} .value=${l.minDuration} @calciteSliderInput=${t=>{l.minDuration=t.currentTarget.value}}></calcite-slider></calcite-label>`})}${o({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${this.options.color} .label=${e?.colorLabel} @arcgisColorChanged=${t=>{l.color=t.detail}}></arcgis-color-select>`})}${o({hidden:this.hideContextOptions,children:this._renderContextOptions()})}`}_renderContextOptions(){let{options:l,scale:s}=this,e=l.contextEnabled,t=this.messages?.threshold,a=!this.hideContextToggle,C=!this.hideContextColorPicker,$=!this.hideContextInterval,h=C||$;if(!(!a&&(!e||!h)))return i`<div><calcite-label class=${p({label:!0,"label-open":e,"label-empty":!h})} .layout=${a?"inline-space-between":"default"} .scale=${s}><span class="discrete-label-text">${t?.discreteLabel??"foo"}</span>${o({hidden:!a,children:i`<calcite-switch .checked=${e} .scale=${s} @calciteSwitchChange=${b=>{this.options.contextEnabled=b.target.checked}}></calcite-switch>`})}</calcite-label>${o({hidden:!e,children:i`<arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideContextColorPicker} .hideInterval=${this.hideContextInterval} .messages=${this.messages} .options=${this.options.contextOptions} .scale=${s}></arcgis-shadow-cast-discrete-config>`})}</div>`}};m("arcgis-shadow-cast-threshold-config",r);export{r as ArcgisShadowCastThresholdConfig};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.85 */
4
- import{a as l}from"./NNZHCC6X.js";import d from"./EK6UUXTH.js";import c from"./WVMLJPZM.js";import b from"./45C7FHNX.js";import{g as a}from"./FZIT2DHJ.js";import"./4FK3E43S.js";import"./Z52I4BRG.js";import"./XENCLWDT.js";import"./4GYETX3H.js";import{I as r,O as o,a as t,s as i}from"./V2WTIF2C.js";import"./5O6P6L5V.js";export default $arcgis.t(([c,,{a:s},n])=>{var d=t`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-table-list{display:flex;width:100%}.esri-table-list__filter-no-results{padding:12px 15px}.esri-table-list__item{--calcite-list-item-icon-center: 8.5px}.esri-table-list__status-indicator{visibility:hidden;color:var(--calcite-color-text-1);margin-inline:0}.esri-table-list__item-action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 16px;width:16px;height:16px;font-size:var(--calcite-font-size)}.esri-table-list__action-menu .esri-table-list__action-group{display:none}.esri-table-list__action-menu[open] .esri-table-list__action-group{display:flex}.esri-table-list__publishing{visibility:visible;color:var(--calcite-color-text-3);animation:2s infinite esri-table-layer-list__publishing-anim}.esri-table-list__item-content-bottom{margin:12px 15px}.esri-table-list__item-content-bottom .esri-legend__service{padding:0 0 12px}.esri-table-list__item-message{margin:12px 15px}@keyframes esri-table-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`,p=n(c),e=class extends r{constructor(){super(...arguments),this.widget=p(this),this.viewModel=this.widget.viewModel,this.arcgisClose=l(this),this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=this.widget.collapsed,this.dragEnabled=this.widget.dragEnabled,this.filterPlaceholder=this.widget.filterPlaceholder,this.filterPredicate=this.widget.filterPredicate,this.filterText=this.widget.filterText,this.icon=this.widget.icon,this.label=this.widget.label,this.listItemCreatedFunction=this.widget.listItemCreatedFunction,this.map=this.widget.map,this.minDragEnabledItems=this.widget.minDragEnabledItems,this.minFilterItems=this.widget.minFilterItems,this.selectedItems=this.widget.selectedItems,this.selectionMode=this.widget.selectionMode,this.state=this.viewModel.state,this.showCloseButton=this.widget.visibleElements.closeButton,this.showCollapseButton=this.widget.visibleElements.collapseButton,this.showErrors=this.widget.visibleElements.errors,this.showFilter=this.widget.visibleElements.filter,this.hideFlow=this.widget.visibleElements.flow,this.showHeading=this.widget.visibleElements.heading,this.hideStatusIndicators=this.widget.visibleElements.statusIndicators,this.showTemporaryTableIndicators=this.widget.visibleElements.temporaryTableIndicators,this.arcgisPropertyChange=a()("state"),this.arcgisReady=i(),this.arcgisTriggerAction=s(()=>this.widget,"trigger-action")}static{this.properties={autoDestroyDisabled:5,closed:5,collapsed:7,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,icon:1,label:1,listItemCreatedFunction:0,map:0,minDragEnabledItems:9,minFilterItems:9,position:1,referenceElement:1,selectedItems:0,selectionMode:1,state:3,tableItems:32,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,hideFlow:5,showHeading:5,hideStatusIndicators:5,showTemporaryTableIndicators:5,view:0}}static{this.styles=d}get tableItems(){return this.widget.tableItems}async destroy(){await this.manager.destroy()}};o("arcgis-table-list",e);return e},"widgets/TableList",b,c,d)
3
+ v5.0.0-next.87 */
4
+ import{a as l}from"./7QYV5UI3.js";import d from"./JBCIP434.js";import c from"./N26ELVVV.js";import b from"./HG6K4Z5J.js";import{g as a}from"./JHB4BWDH.js";import"./JT27EM2N.js";import"./YXWFTRNT.js";import"./X6UH54F2.js";import"./SU6NHQT5.js";import{I as r,O as o,a as t,s as i}from"./KPRBFB4D.js";import"./YSRMPSZ6.js";export default $arcgis.t(([c,,{a:s},n])=>{var d=t`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-table-list{display:flex;width:100%}.esri-table-list__filter-no-results{padding:12px 15px}.esri-table-list__item{--calcite-list-item-icon-center: 8.5px}.esri-table-list__status-indicator{visibility:hidden;color:var(--calcite-color-text-1);margin-inline:0}.esri-table-list__item-action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 16px;width:16px;height:16px;font-size:var(--calcite-font-size)}.esri-table-list__action-menu .esri-table-list__action-group{display:none}.esri-table-list__action-menu[open] .esri-table-list__action-group{display:flex}.esri-table-list__publishing{visibility:visible;color:var(--calcite-color-text-3);animation:2s infinite esri-table-layer-list__publishing-anim}.esri-table-list__item-content-bottom{margin:12px 15px}.esri-table-list__item-content-bottom .esri-legend__service{padding:0 0 12px}.esri-table-list__item-message{margin:12px 15px}@keyframes esri-table-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`,p=n(c),e=class extends r{constructor(){super(...arguments),this.widget=p(this),this.viewModel=this.widget.viewModel,this.arcgisClose=l(this),this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=this.widget.collapsed,this.dragEnabled=this.widget.dragEnabled,this.filterPlaceholder=this.widget.filterPlaceholder,this.filterPredicate=this.widget.filterPredicate,this.filterText=this.widget.filterText,this.icon=this.widget.icon,this.label=this.widget.label,this.listItemCreatedFunction=this.widget.listItemCreatedFunction,this.map=this.widget.map,this.minDragEnabledItems=this.widget.minDragEnabledItems,this.minFilterItems=this.widget.minFilterItems,this.selectedItems=this.widget.selectedItems,this.selectionMode=this.widget.selectionMode,this.state=this.viewModel.state,this.showCloseButton=this.widget.visibleElements.closeButton,this.showCollapseButton=this.widget.visibleElements.collapseButton,this.showErrors=this.widget.visibleElements.errors,this.showFilter=this.widget.visibleElements.filter,this.hideFlow=this.widget.visibleElements.flow,this.showHeading=this.widget.visibleElements.heading,this.hideStatusIndicators=this.widget.visibleElements.statusIndicators,this.showTemporaryTableIndicators=this.widget.visibleElements.temporaryTableIndicators,this.arcgisPropertyChange=a()("state"),this.arcgisReady=i(),this.arcgisTriggerAction=s(()=>this.widget,"trigger-action")}static{this.properties={autoDestroyDisabled:5,closed:5,collapsed:7,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,icon:1,label:1,listItemCreatedFunction:0,map:0,minDragEnabledItems:9,minFilterItems:9,position:1,referenceElement:1,selectedItems:0,selectionMode:1,state:3,tableItems:32,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,hideFlow:5,showHeading:5,hideStatusIndicators:5,showTemporaryTableIndicators:5,view:0}}static{this.styles=d}get tableItems(){return this.widget.tableItems}async destroy(){await this.manager.destroy()}};o("arcgis-table-list",e);return e},"widgets/TableList",b,c,d)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.85 */
4
- import{a as _}from"./4KSISQHQ.js";import f from"./AG2BFPQW.js";import{a as $}from"./LCX26DPC.js";import e from"./VFIKWREN.js";import{a as B}from"./R4ZZRLUD.js";import d from"./FRXOQYDM.js";import{a as U}from"./OAZXAPGP.js";import{a as u}from"./ZSZJ2CA5.js";import c from"./WVMLJPZM.js";import a from"./45C7FHNX.js";import{g as k}from"./FZIT2DHJ.js";import"./4FK3E43S.js";import"./Z52I4BRG.js";import"./XENCLWDT.js";import"./4GYETX3H.js";import{H as x,I as C,J as v,L as g,O as S,a as w,b as l,s as b}from"./V2WTIF2C.js";import"./5O6P6L5V.js";export default $arcgis.t(([{ignoreAbortErrors:D},F,{getDefaultUnitForView:E},{property:a,subclass:A},{watch:m},{createChart:I},,,M,{a:O,d:f},z])=>{var T=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--esri-widget-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{--internal-chart-height: 180px;--internal-gap: var(--calcite-spacing-sm-plus);width:550px;isolation:isolate;padding:var(--esri-widget-padding);position:relative;container-type:inline-size}.container{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--internal-gap)}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:calc(var(--internal-gap) * -1)}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--calcite-spacing-xs)}.action-button{width:auto;min-height:32px}.main-container{display:flex;position:relative;flex-flow:column;width:100%;height:var(--internal-chart-height)}.chart-container{position:relative;width:100%;height:100%}.prompt-container{box-sizing:border-box;display:grid;place-content:center;padding-inline:var(--calcite-spacing-md);height:100%;text-align:center}.prompt-message{margin:0;width:100%}.spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity .15s ease-in-out;transition-delay:0;opacity:0;&.visible{transition-delay:50ms;opacity:1}&.small{inset-inline-start:0;top:-22px;left:unset;transform:none;color:var(--calcite-color-brand)}}@container (max-width: 400px){.esri-widget--panel{height:auto}.actions{flex-direction:column}.action-button{align-self:stretch}}`;function L({geometry:t}){return t!=null&&t.type==="polyline"&&t.paths.length>0&&t.paths.every(e=>e.length>=2)}function Z({geometry:t}){return t?.type==="polyline"&&t.paths.reduce((e,i)=>e+i.length,0)>0}function H(t){return t?.samples?.some(e=>e.z!=null)??!1}function j(t){return t?.type==="polyline"}async function R(t,e,i){let r=await q(t,e);return O(i),G(r)?r.highlight(e):$()}async function q(t,e){let i=e?.layer;if(!(!i||i.type==="subtype-sublayer"||i.type==="sublayer"||i.type==="building-component"))return await t.whenLayerView(i)}function G(t){return t!=null&&"highlight"in t&&typeof t.highlight=="function"}var J=Object.defineProperty,N=Object.getOwnPropertyDescriptor,s=(t,e,i,r)=>{for(var o=r>1?void 0:r?N(e,i):e,c=t.length-1,d;c>=0;c--)(d=t[c])&&(o=(r?d(e,i,o):d(o))||o);return r&&o&&J(e,i,o),o},n=class extends z{constructor(){super(...arguments),this.highlightDisabled=!1,this.uniformChartScaling=!1,this.shouldForceInteractive=!1,this.supportedViewType="both",this.unsupportedErrorMessage=""}get _measurementSystem(){return this.view?E(this.view):void 0}get _hasSamples(){let{progress:t}=this;return this._analysisView?.results?.some(e=>e.available&&(t<1||H(e)))??!1}get doneButtonAvailable(){if(this.featureIsSelected)return!1;let{geometry:t}=this.analysis;return j(t)&&t.paths.length>0&&t.paths[0].length>2}get effectiveDisplayUnits(){return this.analysisView?.effectiveDisplayUnits}get errorState(){if(!L(this.analysis))return"no-valid-input";let t=this.analysisView?.error;if(t)switch(t.name){case"too-complex":return"too-complex";case"elevation-query-error":return"no-valid-input";default:return"unknown"}return this._hasSamples?"none":"no-available-profiles"}get feature(){return this._selectedFeature}set feature(t){t?t!==this.feature&&(this.analysis.setGeometryFromFeature(t),this._selectedFeature=t):this._selectedFeature=void 0}get featureIsSelected(){return this.feature!=null}get hasVertices(){return Z(this.analysis)}get hoveredPosition(){return this.analysisView?.hoveredPosition??void 0}get geometry(){return this.analysis.geometry}set geometry(t){this.analysis.geometry=t}get elevationInfo(){return this.analysis.elevationInfo}set elevationInfo(t){this.analysis.elevationInfo=t}get profiles(){return this.analysis.profiles}set profiles(t){this.analysis.profiles=t}get progress(){return this.analysisView?.progress??0}get results(){return this.analysisView?.results??[]}get selectButtonAvailable(){for(let t of this.view?.map?.allLayers.toArray()??[])if(t.type==="graphics"&&!("internal"in t&&t.internal)&&t.graphics.some(e=>e.geometry?.type==="polyline")||"geometryType"in t&&t.geometryType==="polyline")return!0;return!!this.view?.graphics?.some(t=>t.geometry?.type==="polyline")}get state(){return this.disabled||!this.ready?"disabled":this._selectingPromise?"selecting":this.operationState==="active"?"creating":this.analysis.valid?this.featureIsSelected?"selected":"created":"ready"}get distanceUnit(){return P(this._userDistanceUnit??this.analysis.displayUnits?.distance??void 0,this.distanceUnitOptions,this._measurementSystem)}set distanceUnit(t){this._userDistanceUnit=t}get distanceUnitOptions(){return V(this._userDistanceUnitOptions)}set distanceUnitOptions(t){this._userDistanceUnitOptions=t}get elevationUnit(){return P(this._userElevationUnit??this.analysis.displayUnits?.elevation??void 0,this.elevationUnitOptions,this._measurementSystem)}set elevationUnit(t){this._userElevationUnit=t}get elevationUnitOptions(){return V(this._userElevationUnitOptions)}set elevationUnitOptions(t){this._userElevationUnitOptions=t}initialize(){this.addHandles([m(()=>({analysis:this.analysis,unitDistance:this.distanceUnit,unitElevation:this.elevationUnit}),({analysis:t,unitDistance:e,unitElevation:i})=>{if(t!=null){let r=t.displayUnits;r.elevation=i,r.distance=e}},{sync:!0,initial:!0}),m(()=>({selectedFeature:this.feature,profiles:this.analysis.profiles.toArray()}),({selectedFeature:t,profiles:e},i)=>{this._highlightSelectedFeature(this.highlightDisabled?void 0:t),this.analysis.viewOptions.geometryVisualizationVisible=!this.highlightDisabled&&t==null;let r=i?.selectedFeature;e.forEach(o=>{switch(o.type){case"scene":this._excludeSelectedFeatureFromProfile(o,t,r);break;case"input":o.chartOptions.lineVisible=t!=null,o.viewOptions.lineVisible=t!=null;break}})},{initial:!0})])}destroy(){this._removeSelectionHighlight()}async select(){let t=this.analysisView;if(!t)return;let e=super.start({operation:async i=>{let r=await t.pickFeature(i);i?.signal?.aborted||(t.interactive=!1,this.feature=r.feature)},clear:!1});e.finally(()=>{this._selectingPromise===e&&(this._selectingPromise=void 0)}),this._selectingPromise=e,await e.catch()}async place(t){await this.analysisView?.place(t)}clearAnalysis(){this.geometry=null,this.elevationInfo=null,this.feature=void 0}constructAnalysis(){return new F}_highlightSelectedFeature(t){this._removeSelectionHighlight();let e=this.view;!e||!t||(this._selectionHighlightTask=f(async i=>await R(e,t,{signal:i})))}_removeSelectionHighlight(){this._selectionHighlightTask?.value?.remove(),this._selectionHighlightTask=B(this._selectionHighlightTask)}_excludeSelectedFeatureFromProfile(t,e,i){let r=new Set(t.exclude??[]);i&&r.delete(i),e&&r.add(e),t.exclude=Array.from(r)}};s([a()],n.prototype,"_userDistanceUnit",2);s([a()],n.prototype,"_userDistanceUnitOptions",2);s([a()],n.prototype,"_userElevationUnit",2);s([a()],n.prototype,"_userElevationUnitOptions",2);s([a({readOnly:!0})],n.prototype,"_measurementSystem",1);s([a()],n.prototype,"_selectingPromise",2);s([a()],n.prototype,"_selectedFeature",2);s([a()],n.prototype,"_selectionHighlightTask",2);s([a()],n.prototype,"_hasSamples",1);s([a()],n.prototype,"doneButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"effectiveDisplayUnits",1);s([a({readOnly:!0})],n.prototype,"errorState",1);s([a()],n.prototype,"feature",1);s([a()],n.prototype,"featureIsSelected",1);s([a({readOnly:!0})],n.prototype,"hasVertices",1);s([a()],n.prototype,"highlightDisabled",2);s([a()],n.prototype,"hoveredPosition",1);s([a()],n.prototype,"geometry",1);s([a()],n.prototype,"elevationInfo",1);s([a()],n.prototype,"profiles",1);s([a({readOnly:!0})],n.prototype,"progress",1);s([a({readOnly:!0})],n.prototype,"results",1);s([a({readOnly:!0})],n.prototype,"selectButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"state",1);s([a()],n.prototype,"uniformChartScaling",2);s([a()],n.prototype,"distanceUnit",1);s([a()],n.prototype,"distanceUnitOptions",1);s([a()],n.prototype,"elevationUnit",1);s([a()],n.prototype,"elevationUnitOptions",1);n=s([A("components.elevation-profile.ElevationProfileViewModel")],n);function P(t,e,i){return t&&e.includes(t)?t:i&&e.includes(i)?i:e[0]}function V(t){let e=t?.filter(i=>_.includes(i));return e&&e.length>0?e:_.slice()}var Q=M(n),y=class extends C{constructor(){super(...arguments),this.viewModel=Q(this),this._messages=U(),this._hideZoomOutButton=!0,this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.effectiveDisplayUnits=this.viewModel.effectiveDisplayUnits,this.feature=this.viewModel.feature,this.hideChart=!1,this.hideClearButton=!1,this.hideLegend=!1,this.hideSelectButton=!1,this.hideSettingsButton=!1,this.hideSketchButton=!1,this.hideUniformChartScalingToggle=!1,this.hideUnitSelector=!1,this.highlightDisabled=this.viewModel.highlightDisabled,this.hoveredPosition=this.viewModel.hoveredPosition,this.icon="altitude",this.geometry=this.viewModel.geometry,this.elevationInfo=this.viewModel.elevationInfo,this.profiles=this.viewModel.profiles,this.progress=this.viewModel.progress,this.state=this.viewModel.state,this.uniformChartScaling=this.viewModel.uniformChartScaling,this.distanceUnit=this.viewModel.distanceUnit,this.distanceUnitOptions=this.viewModel.distanceUnitOptions,this.elevationUnit=this.viewModel.elevationUnit,this.elevationUnitOptions=this.viewModel.elevationUnitOptions,this.arcgisPropertyChange=k()("geometry","effectiveDisplayUnits","progress","state"),this.arcgisReady=b()}static{this.properties={_hideZoomOutButton:16,_chartContainer:16,analysis:0,view:0,autoDestroyDisabled:5,effectiveDisplayUnits:32,feature:0,hideChart:5,hideClearButton:5,hideLegend:5,hideSelectButton:5,hideSettingsButton:5,hideSketchButton:5,hideUniformChartScalingToggle:5,hideUnitSelector:5,highlightDisabled:5,hoveredPosition:8,icon:3,geometry:0,elevationInfo:0,label:1,messageOverrides:0,position:1,referenceElement:1,profiles:0,progress:40,state:3,uniformChartScaling:5,distanceUnit:1,distanceUnitOptions:0,elevationUnit:1,elevationUnitOptions:0}}static{this.styles=T}get _selectButtonVisible(){return!this.hideSelectButton&&this.viewModel.selectButtonAvailable}get _chart(){return this._chartInitializationTask?.value}async destroy(){await this.manager.destroy()}async select(){D(this.viewModel.select())}async start(){D(this.viewModel.start())}async stop(){this.viewModel.stop()}async clear(){this.viewModel.clear()}load(){this.manager.onLifecycle(()=>[m(()=>({container:this._chartContainer}),({container:e})=>{this._destroyChart(),e&&(this._chartInitializationTask=f(async i=>await I({view:this.viewModel.view,analysisView:this.viewModel.analysisView,container:e,messages:this._messages,signal:i,uniformScaling:this.viewModel.uniformChartScaling,onRangeChange:(r,o)=>{this._hideZoomOutButton=r===1&&o===1},onCursorPositionChange:(r,o)=>{let{analysisView:c}=this.viewModel;c&&(c.hoveredPosition=r)}})))},{sync:!0,initial:!0}),m(()=>({chart:this._chart,view:this.viewModel.view,analysisView:this.viewModel.analysisView,uniformScaling:this.viewModel.uniformChartScaling}),({chart:e,view:i,analysisView:r,uniformScaling:o})=>{e&&(e.view=i,e.analysisView=r,e.uniformScaling=o)},{sync:!0,initial:!0}),{remove:()=>this._destroyChart()}])}_destroyChart(){let e=this._chart;this._chartInitializationTask?.abort(),this._chartInitializationTask=void 0,e?.destroy()}_onCancelButtonClick(){this.viewModel.stop(),this.viewModel.clear()}_onDoneButtonClick(){this.viewModel.stop()}_getErrorMessage(){let e=W[this.viewModel.errorState];return e?this._messages?.errors?.[e]:void 0}_onClearButtonClick(){this.viewModel.clear()}_onZoomOutButtonClick(){this._chart?.zoomOut()}_onChartContainerRef(e){this._chartContainer=e}render(){return l`<div aria-label=${this._messages.componentLabel??g} class=${v({container:!0,[u.widget]:!0,[u.widgetDisabled]:this.viewModel.state==="disabled",[u.panel]:!0})} role=presentation>${this._renderContentForState()}</div>`}_renderContentForState(){switch(this.viewModel.state){case"ready":return this._renderContentForReadyState();case"selecting":return this._renderContentForSelectingState();case"creating":return this._renderContentForCreatingState();case"selected":return this._renderContentForSelectedState();case"created":return this._renderContentForCreatedState();case"disabled":return this._renderContentForReadyState()}}_renderContentForReadyState(){let{_messages:e,hideSelectButton:i,hideSketchButton:r}=this,{selectButtonAvailable:o}=this.viewModel,c=!i&&o,d;return!r&&c?d=e.readyPrompt:r?c?d=e.readyPromptSelectOnly:d=e.errors?.noProfile:d=e.readyPromptCreateOnly,this._renderContent({prompt:d,chart:!1,actions:p})}_renderContentForSelectingState(){let{view:e}=this.viewModel;if(!e)return;let i=this._messages[`selectingPrompt-${e.type}`];return this._renderContent({prompt:i,chart:!1,actions:[{type:"select-cancel"}]})}_renderContentForCreatingState(){let{viewModel:e}=this,{view:i}=e;if(!i)return;let r=e.hasVertices?[{type:"sketch-cancel"},{type:"sketch-done",disabled:!e.doneButtonAvailable}]:[{type:"select"},{type:"sketch",disabled:!0}];if(e.errorState==="no-valid-input"){let c=this._messages[`creatingPrompt-${i.type}`];return this._renderContent({chart:!1,actions:r,prompt:c})}let o=this._getErrorMessage();return o?this._renderContent({chart:!1,actions:r,prompt:o}):this._renderContent({chart:!0,actions:r})}_renderContentForSelectedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContentForCreatedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContent(e){let{viewModel:i}=this,r=i.geometry!=null;return l`<header class="header">${h({hidden:this._hideZoomOutButton,children:this._renderZoomOutButton()})}${h({hidden:this.hideClearButton||!r,children:this._renderClearButton()})}${h({hidden:this.hideSettingsButton,children:this._renderSettingsButton()})}</header><div class="main-container">${e.prompt!=null?this._renderPrompt(e.prompt):e.chart?this._renderChart():void 0}</div>${h({hidden:this.hideLegend,children:this._renderLegend()})}${this._renderActions(e)}`}_renderPrompt(e){return[l`<div class="prompt-container"><p class="prompt-message">${e}</p></div>`]}_renderZoomOutButton(){let e=this._messages.zoomOut??"";return l`<calcite-action appearance=transparent icon=magnifying-glass-minus @click=${this._onZoomOutButtonClick} scale=s .text=${e} title=${e??g}></calcite-action>`}_renderChart(){if(this.hideChart)return;let e=this._chart;return l`${this._renderSpinner({size:e?.chartVisible?"small":"large",visible:e?.spinnerVisible??!1})}<div class="chart-container" ${x(this._onChartContainerRef)}></div>`}_renderSpinner(e){let i=e.size==="small",r=e.visible??!0;return l`<calcite-loader class=${v({spinner:!0,small:i,visible:r})} .inline=${i} label scale=s></calcite-loader>`}_renderClearButton(){let e=this._messages.clearProfile??"";return l`<calcite-action appearance=transparent icon=trash @click=${this._onClearButtonClick} scale=s .text=${e} title=${e??g}></calcite-action>`}_renderLegend(){return l`<arcgis-elevation-profile-legend .effectiveDisplayUnits=${this.viewModel.effectiveDisplayUnits} .featureSelected=${this.viewModel.featureIsSelected} .messages=${this._messages} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`}_renderSettingsButton(){return l`<arcgis-elevation-profile-settings .analysis=${this.viewModel.analysis} .hideUniformChartScalingToggle=${this.hideUniformChartScalingToggle} .hideUnitSelector=${this.hideUnitSelector} .messages=${this._messages} .uniformChartScaling=${this.viewModel.uniformChartScaling} .unitOptionsDistance=${this.viewModel.distanceUnitOptions} .unitOptionsElevation=${this.viewModel.elevationUnitOptions} @arcgisElevationProfileSettingsUniformChartScalingChange=${e=>{this.viewModel.uniformChartScaling=e.detail}}></arcgis-elevation-profile-settings>`}_renderActions({actions:e}){let i=this._messages,r=e.map(o=>{switch(o.type){case"sketch":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.sketchButtonLabel,primary:!0,onClick:()=>void this.start()})});case"sketch-cancel":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});case"sketch-done":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.doneButtonLabel,primary:!0,onClick:this._onDoneButtonClick})});case"select":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.selectButtonLabel,primary:!1,onClick:()=>void this.select()})});case"select-cancel":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});default:return}}).filter(Boolean);return r.length?l`<footer class="actions">${r}</footer>`:void 0}_renderAction({action:e,label:i,onClick:r,primary:o}){return l`<calcite-button .appearance=${o?"solid":"outline-fill"} class="action-button" .disabled=${e.disabled||void 0} @click=${r}>${i}</calcite-button>`}};function h(t){return t.hidden?void 0:t.children}var p=[{type:"select"},{type:"sketch"}],W={none:void 0,"no-valid-input":"noProfile","no-available-profiles":"noProfile","too-complex":"tooComplex",unknown:"unknown"};S("arcgis-elevation-profile",y);return y},"core/promiseUtils","analysis/ElevationProfileAnalysis","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,c,d,e,f)
3
+ v5.0.0-next.87 */
4
+ import{a as _}from"./YFLCAWWN.js";import f from"./6NBWLAFO.js";import{a as $}from"./SUXWUTYL.js";import e from"./5DMOLSHU.js";import{a as B}from"./JZ2OZJ3M.js";import d from"./GLSQZF74.js";import{a as U}from"./JKKFLWMT.js";import{a as u}from"./4YN5P354.js";import c from"./N26ELVVV.js";import a from"./HG6K4Z5J.js";import{g as k}from"./JHB4BWDH.js";import"./JT27EM2N.js";import"./YXWFTRNT.js";import"./X6UH54F2.js";import"./SU6NHQT5.js";import{H as x,I as C,J as v,L as g,O as S,a as w,b as l,s as b}from"./KPRBFB4D.js";import"./YSRMPSZ6.js";export default $arcgis.t(([{ignoreAbortErrors:D},F,{getDefaultUnitForView:E},{property:a,subclass:A},{watch:m},{createChart:I},,,M,{a:O,d:f},z])=>{var T=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--esri-widget-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{--internal-chart-height: 180px;--internal-gap: var(--calcite-spacing-sm-plus);width:550px;isolation:isolate;padding:var(--esri-widget-padding);position:relative;container-type:inline-size}.container{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--internal-gap)}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:calc(var(--internal-gap) * -1)}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--calcite-spacing-xs)}.action-button{width:auto;min-height:32px}.main-container{display:flex;position:relative;flex-flow:column;width:100%;height:var(--internal-chart-height)}.chart-container{position:relative;width:100%;height:100%}.prompt-container{box-sizing:border-box;display:grid;place-content:center;padding-inline:var(--calcite-spacing-md);height:100%;text-align:center}.prompt-message{margin:0;width:100%}.spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity .15s ease-in-out;transition-delay:0;opacity:0;&.visible{transition-delay:50ms;opacity:1}&.small{inset-inline-start:0;top:-22px;left:unset;transform:none;color:var(--calcite-color-brand)}}@container (max-width: 400px){.esri-widget--panel{height:auto}.actions{flex-direction:column}.action-button{align-self:stretch}}`;function L({geometry:t}){return t!=null&&t.type==="polyline"&&t.paths.length>0&&t.paths.every(e=>e.length>=2)}function Z({geometry:t}){return t?.type==="polyline"&&t.paths.reduce((e,i)=>e+i.length,0)>0}function H(t){return t?.samples?.some(e=>e.z!=null)??!1}function j(t){return t?.type==="polyline"}async function R(t,e,i){let r=await q(t,e);return O(i),G(r)?r.highlight(e):$()}async function q(t,e){let i=e?.layer;if(!(!i||i.type==="subtype-sublayer"||i.type==="sublayer"||i.type==="building-component"))return await t.whenLayerView(i)}function G(t){return t!=null&&"highlight"in t&&typeof t.highlight=="function"}var J=Object.defineProperty,N=Object.getOwnPropertyDescriptor,s=(t,e,i,r)=>{for(var o=r>1?void 0:r?N(e,i):e,c=t.length-1,d;c>=0;c--)(d=t[c])&&(o=(r?d(e,i,o):d(o))||o);return r&&o&&J(e,i,o),o},n=class extends z{constructor(){super(...arguments),this.highlightDisabled=!1,this.uniformChartScaling=!1,this.shouldForceInteractive=!1,this.supportedViewType="both",this.unsupportedErrorMessage=""}get _measurementSystem(){return this.view?E(this.view):void 0}get _hasSamples(){let{progress:t}=this;return this._analysisView?.results?.some(e=>e.available&&(t<1||H(e)))??!1}get doneButtonAvailable(){if(this.featureIsSelected)return!1;let{geometry:t}=this.analysis;return j(t)&&t.paths.length>0&&t.paths[0].length>2}get effectiveDisplayUnits(){return this.analysisView?.effectiveDisplayUnits}get errorState(){if(!L(this.analysis))return"no-valid-input";let t=this.analysisView?.error;if(t)switch(t.name){case"too-complex":return"too-complex";case"elevation-query-error":return"no-valid-input";default:return"unknown"}return this._hasSamples?"none":"no-available-profiles"}get feature(){return this._selectedFeature}set feature(t){t?t!==this.feature&&(this.analysis.setGeometryFromFeature(t),this._selectedFeature=t):this._selectedFeature=void 0}get featureIsSelected(){return this.feature!=null}get hasVertices(){return Z(this.analysis)}get hoveredPosition(){return this.analysisView?.hoveredPosition??void 0}get geometry(){return this.analysis.geometry}set geometry(t){this.analysis.geometry=t}get elevationInfo(){return this.analysis.elevationInfo}set elevationInfo(t){this.analysis.elevationInfo=t}get profiles(){return this.analysis.profiles}set profiles(t){this.analysis.profiles=t}get progress(){return this.analysisView?.progress??0}get results(){return this.analysisView?.results??[]}get selectButtonAvailable(){for(let t of this.view?.map?.allLayers.toArray()??[])if(t.type==="graphics"&&!("internal"in t&&t.internal)&&t.graphics.some(e=>e.geometry?.type==="polyline")||"geometryType"in t&&t.geometryType==="polyline")return!0;return!!this.view?.graphics?.some(t=>t.geometry?.type==="polyline")}get state(){return this.disabled||!this.ready?"disabled":this._selectingPromise?"selecting":this.operationState==="active"?"creating":this.analysis.valid?this.featureIsSelected?"selected":"created":"ready"}get distanceUnit(){return P(this._userDistanceUnit??this.analysis.displayUnits?.distance??void 0,this.distanceUnitOptions,this._measurementSystem)}set distanceUnit(t){this._userDistanceUnit=t}get distanceUnitOptions(){return V(this._userDistanceUnitOptions)}set distanceUnitOptions(t){this._userDistanceUnitOptions=t}get elevationUnit(){return P(this._userElevationUnit??this.analysis.displayUnits?.elevation??void 0,this.elevationUnitOptions,this._measurementSystem)}set elevationUnit(t){this._userElevationUnit=t}get elevationUnitOptions(){return V(this._userElevationUnitOptions)}set elevationUnitOptions(t){this._userElevationUnitOptions=t}initialize(){this.addHandles([m(()=>({analysis:this.analysis,unitDistance:this.distanceUnit,unitElevation:this.elevationUnit}),({analysis:t,unitDistance:e,unitElevation:i})=>{if(t!=null){let r=t.displayUnits;r.elevation=i,r.distance=e}},{sync:!0,initial:!0}),m(()=>({selectedFeature:this.feature,profiles:this.analysis.profiles.toArray()}),({selectedFeature:t,profiles:e},i)=>{this._highlightSelectedFeature(this.highlightDisabled?void 0:t),this.analysis.viewOptions.geometryVisualizationVisible=!this.highlightDisabled&&t==null;let r=i?.selectedFeature;e.forEach(o=>{switch(o.type){case"scene":this._excludeSelectedFeatureFromProfile(o,t,r);break;case"input":o.chartOptions.lineVisible=t!=null,o.viewOptions.lineVisible=t!=null;break}})},{initial:!0})])}destroy(){this._removeSelectionHighlight()}async select(){let t=this.analysisView;if(!t)return;let e=super.start({operation:async i=>{let r=await t.pickFeature(i);i?.signal?.aborted||(t.interactive=!1,this.feature=r.feature)},clear:!1});e.finally(()=>{this._selectingPromise===e&&(this._selectingPromise=void 0)}),this._selectingPromise=e,await e.catch()}async place(t){await this.analysisView?.place(t)}clearAnalysis(){this.geometry=null,this.elevationInfo=null,this.feature=void 0}constructAnalysis(){return new F}_highlightSelectedFeature(t){this._removeSelectionHighlight();let e=this.view;!e||!t||(this._selectionHighlightTask=f(async i=>await R(e,t,{signal:i})))}_removeSelectionHighlight(){this._selectionHighlightTask?.value?.remove(),this._selectionHighlightTask=B(this._selectionHighlightTask)}_excludeSelectedFeatureFromProfile(t,e,i){let r=new Set(t.exclude??[]);i&&r.delete(i),e&&r.add(e),t.exclude=Array.from(r)}};s([a()],n.prototype,"_userDistanceUnit",2);s([a()],n.prototype,"_userDistanceUnitOptions",2);s([a()],n.prototype,"_userElevationUnit",2);s([a()],n.prototype,"_userElevationUnitOptions",2);s([a({readOnly:!0})],n.prototype,"_measurementSystem",1);s([a()],n.prototype,"_selectingPromise",2);s([a()],n.prototype,"_selectedFeature",2);s([a()],n.prototype,"_selectionHighlightTask",2);s([a()],n.prototype,"_hasSamples",1);s([a()],n.prototype,"doneButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"effectiveDisplayUnits",1);s([a({readOnly:!0})],n.prototype,"errorState",1);s([a()],n.prototype,"feature",1);s([a()],n.prototype,"featureIsSelected",1);s([a({readOnly:!0})],n.prototype,"hasVertices",1);s([a()],n.prototype,"highlightDisabled",2);s([a()],n.prototype,"hoveredPosition",1);s([a()],n.prototype,"geometry",1);s([a()],n.prototype,"elevationInfo",1);s([a()],n.prototype,"profiles",1);s([a({readOnly:!0})],n.prototype,"progress",1);s([a({readOnly:!0})],n.prototype,"results",1);s([a({readOnly:!0})],n.prototype,"selectButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"state",1);s([a()],n.prototype,"uniformChartScaling",2);s([a()],n.prototype,"distanceUnit",1);s([a()],n.prototype,"distanceUnitOptions",1);s([a()],n.prototype,"elevationUnit",1);s([a()],n.prototype,"elevationUnitOptions",1);n=s([A("components.elevation-profile.ElevationProfileViewModel")],n);function P(t,e,i){return t&&e.includes(t)?t:i&&e.includes(i)?i:e[0]}function V(t){let e=t?.filter(i=>_.includes(i));return e&&e.length>0?e:_.slice()}var Q=M(n),y=class extends C{constructor(){super(...arguments),this.viewModel=Q(this),this._messages=U(),this._hideZoomOutButton=!0,this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.effectiveDisplayUnits=this.viewModel.effectiveDisplayUnits,this.feature=this.viewModel.feature,this.hideChart=!1,this.hideClearButton=!1,this.hideLegend=!1,this.hideSelectButton=!1,this.hideSettingsButton=!1,this.hideSketchButton=!1,this.hideUniformChartScalingToggle=!1,this.hideUnitSelector=!1,this.highlightDisabled=this.viewModel.highlightDisabled,this.hoveredPosition=this.viewModel.hoveredPosition,this.icon="altitude",this.geometry=this.viewModel.geometry,this.elevationInfo=this.viewModel.elevationInfo,this.profiles=this.viewModel.profiles,this.progress=this.viewModel.progress,this.state=this.viewModel.state,this.uniformChartScaling=this.viewModel.uniformChartScaling,this.distanceUnit=this.viewModel.distanceUnit,this.distanceUnitOptions=this.viewModel.distanceUnitOptions,this.elevationUnit=this.viewModel.elevationUnit,this.elevationUnitOptions=this.viewModel.elevationUnitOptions,this.arcgisPropertyChange=k()("geometry","effectiveDisplayUnits","progress","state"),this.arcgisReady=b()}static{this.properties={_hideZoomOutButton:16,_chartContainer:16,analysis:0,view:0,autoDestroyDisabled:5,effectiveDisplayUnits:32,feature:0,hideChart:5,hideClearButton:5,hideLegend:5,hideSelectButton:5,hideSettingsButton:5,hideSketchButton:5,hideUniformChartScalingToggle:5,hideUnitSelector:5,highlightDisabled:5,hoveredPosition:8,icon:3,geometry:0,elevationInfo:0,label:1,messageOverrides:0,position:1,referenceElement:1,profiles:0,progress:40,state:3,uniformChartScaling:5,distanceUnit:1,distanceUnitOptions:0,elevationUnit:1,elevationUnitOptions:0}}static{this.styles=T}get _selectButtonVisible(){return!this.hideSelectButton&&this.viewModel.selectButtonAvailable}get _chart(){return this._chartInitializationTask?.value}async destroy(){await this.manager.destroy()}async select(){D(this.viewModel.select())}async start(){D(this.viewModel.start())}async stop(){this.viewModel.stop()}async clear(){this.viewModel.clear()}load(){this.manager.onLifecycle(()=>[m(()=>({container:this._chartContainer}),({container:e})=>{this._destroyChart(),e&&(this._chartInitializationTask=f(async i=>await I({view:this.viewModel.view,analysisView:this.viewModel.analysisView,container:e,messages:this._messages,signal:i,uniformScaling:this.viewModel.uniformChartScaling,onRangeChange:(r,o)=>{this._hideZoomOutButton=r===1&&o===1},onCursorPositionChange:(r,o)=>{let{analysisView:c}=this.viewModel;c&&(c.hoveredPosition=r)}})))},{sync:!0,initial:!0}),m(()=>({chart:this._chart,view:this.viewModel.view,analysisView:this.viewModel.analysisView,uniformScaling:this.viewModel.uniformChartScaling}),({chart:e,view:i,analysisView:r,uniformScaling:o})=>{e&&(e.view=i,e.analysisView=r,e.uniformScaling=o)},{sync:!0,initial:!0}),{remove:()=>this._destroyChart()}])}_destroyChart(){let e=this._chart;this._chartInitializationTask?.abort(),this._chartInitializationTask=void 0,e?.destroy()}_onCancelButtonClick(){this.viewModel.stop(),this.viewModel.clear()}_onDoneButtonClick(){this.viewModel.stop()}_getErrorMessage(){let e=W[this.viewModel.errorState];return e?this._messages?.errors?.[e]:void 0}_onClearButtonClick(){this.viewModel.clear()}_onZoomOutButtonClick(){this._chart?.zoomOut()}_onChartContainerRef(e){this._chartContainer=e}render(){return l`<div aria-label=${this._messages.componentLabel??g} class=${v({container:!0,[u.widget]:!0,[u.widgetDisabled]:this.viewModel.state==="disabled",[u.panel]:!0})} role=presentation>${this._renderContentForState()}</div>`}_renderContentForState(){switch(this.viewModel.state){case"ready":return this._renderContentForReadyState();case"selecting":return this._renderContentForSelectingState();case"creating":return this._renderContentForCreatingState();case"selected":return this._renderContentForSelectedState();case"created":return this._renderContentForCreatedState();case"disabled":return this._renderContentForReadyState()}}_renderContentForReadyState(){let{_messages:e,hideSelectButton:i,hideSketchButton:r}=this,{selectButtonAvailable:o}=this.viewModel,c=!i&&o,d;return!r&&c?d=e.readyPrompt:r?c?d=e.readyPromptSelectOnly:d=e.errors?.noProfile:d=e.readyPromptCreateOnly,this._renderContent({prompt:d,chart:!1,actions:p})}_renderContentForSelectingState(){let{view:e}=this.viewModel;if(!e)return;let i=this._messages[`selectingPrompt-${e.type}`];return this._renderContent({prompt:i,chart:!1,actions:[{type:"select-cancel"}]})}_renderContentForCreatingState(){let{viewModel:e}=this,{view:i}=e;if(!i)return;let r=e.hasVertices?[{type:"sketch-cancel"},{type:"sketch-done",disabled:!e.doneButtonAvailable}]:[{type:"select"},{type:"sketch",disabled:!0}];if(e.errorState==="no-valid-input"){let c=this._messages[`creatingPrompt-${i.type}`];return this._renderContent({chart:!1,actions:r,prompt:c})}let o=this._getErrorMessage();return o?this._renderContent({chart:!1,actions:r,prompt:o}):this._renderContent({chart:!0,actions:r})}_renderContentForSelectedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContentForCreatedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContent(e){let{viewModel:i}=this,r=i.geometry!=null;return l`<header class="header">${h({hidden:this._hideZoomOutButton,children:this._renderZoomOutButton()})}${h({hidden:this.hideClearButton||!r,children:this._renderClearButton()})}${h({hidden:this.hideSettingsButton,children:this._renderSettingsButton()})}</header><div class="main-container">${e.prompt!=null?this._renderPrompt(e.prompt):e.chart?this._renderChart():void 0}</div>${h({hidden:this.hideLegend,children:this._renderLegend()})}${this._renderActions(e)}`}_renderPrompt(e){return[l`<div class="prompt-container"><p class="prompt-message">${e}</p></div>`]}_renderZoomOutButton(){let e=this._messages.zoomOut??"";return l`<calcite-action appearance=transparent icon=magnifying-glass-minus @click=${this._onZoomOutButtonClick} scale=s .text=${e} title=${e??g}></calcite-action>`}_renderChart(){if(this.hideChart)return;let e=this._chart;return l`${this._renderSpinner({size:e?.chartVisible?"small":"large",visible:e?.spinnerVisible??!1})}<div class="chart-container" ${x(this._onChartContainerRef)}></div>`}_renderSpinner(e){let i=e.size==="small",r=e.visible??!0;return l`<calcite-loader class=${v({spinner:!0,small:i,visible:r})} .inline=${i} label scale=s></calcite-loader>`}_renderClearButton(){let e=this._messages.clearProfile??"";return l`<calcite-action appearance=transparent icon=trash @click=${this._onClearButtonClick} scale=s .text=${e} title=${e??g}></calcite-action>`}_renderLegend(){return l`<arcgis-elevation-profile-legend .effectiveDisplayUnits=${this.viewModel.effectiveDisplayUnits} .featureSelected=${this.viewModel.featureIsSelected} .messages=${this._messages} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`}_renderSettingsButton(){return l`<arcgis-elevation-profile-settings .analysis=${this.viewModel.analysis} .hideUniformChartScalingToggle=${this.hideUniformChartScalingToggle} .hideUnitSelector=${this.hideUnitSelector} .messages=${this._messages} .uniformChartScaling=${this.viewModel.uniformChartScaling} .unitOptionsDistance=${this.viewModel.distanceUnitOptions} .unitOptionsElevation=${this.viewModel.elevationUnitOptions} @arcgisElevationProfileSettingsUniformChartScalingChange=${e=>{this.viewModel.uniformChartScaling=e.detail}}></arcgis-elevation-profile-settings>`}_renderActions({actions:e}){let i=this._messages,r=e.map(o=>{switch(o.type){case"sketch":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.sketchButtonLabel,primary:!0,onClick:()=>void this.start()})});case"sketch-cancel":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});case"sketch-done":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.doneButtonLabel,primary:!0,onClick:this._onDoneButtonClick})});case"select":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.selectButtonLabel,primary:!1,onClick:()=>void this.select()})});case"select-cancel":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});default:return}}).filter(Boolean);return r.length?l`<footer class="actions">${r}</footer>`:void 0}_renderAction({action:e,label:i,onClick:r,primary:o}){return l`<calcite-button .appearance=${o?"solid":"outline-fill"} class="action-button" .disabled=${e.disabled||void 0} @click=${r}>${i}</calcite-button>`}};function h(t){return t.hidden?void 0:t.children}var p=[{type:"select"},{type:"sketch"}],W={none:void 0,"no-valid-input":"noProfile","no-available-profiles":"noProfile","too-complex":"tooComplex",unknown:"unknown"};S("arcgis-elevation-profile",y);return y},"core/promiseUtils","analysis/ElevationProfileAnalysis","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,c,d,e,f)
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
+ v5.0.0-next.87 */
4
+ import{j as m}from"./JLKYQEKG.js";import"./SEKJQRIP.js";import"./5BVHH6JR.js";import{t as p}from"./DALNQUIE.js";import"./O7EROEVZ.js";import"./IDCRYNQY.js";import"./7NHBVX2Q.js";import"./YSRMPSZ6.js";export default $arcgis.t(([{getLocale:a,getLocaleLanguage:n}])=>{p("AM5C241025748");var e="en-US",o=new Map([["ar",()=>import("./VLU5VGSC.js")],["bg-BG",()=>import("./NUJN4JQ2.js")],["bs-BA",()=>import("./TJ4ZUOAI.js")],["ca-ES",()=>import("./4RQXUDXM.js")],["cs-CZ",()=>import("./6XRDIUFD.js")],["da-DK",()=>import("./XO2ODZUU.js")],["de-DE",()=>import("./SIV53MWS.js")],["de-CH",()=>import("./CZPABUXZ.js")],["el-GR",()=>import("./W2KUWKVL.js")],["en-US",()=>import("./JCIBKEX3.js")],["en-CA",()=>import("./R2X3OA5N.js")],["es-ES",()=>import("./XHNOM3RN.js")],["et-EE",()=>import("./XIQDJQHL.js")],["fi-FI",()=>import("./TKTGZFAY.js")],["fr-FR",()=>import("./VTAW5YR3.js")],["he-IL",()=>import("./VJH2EHZX.js")],["hr-HR",()=>import("./EZDJROR3.js")],["hu-HU",()=>import("./4EP6RKPV.js")],["id-ID",()=>import("./HVAU52EH.js")],["it-IT",()=>import("./OF6IVIRL.js")],["ja-JP",()=>import("./777WT7E2.js")],["ko-KR",()=>import("./PGROL3JO.js")],["lt-LT",()=>import("./NU44AZFZ.js")],["lv-LV",()=>import("./VXCY4UNU.js")],["no-NO",()=>import("./3AKCOVFY.js")],["nb-NO",()=>import("./3AKCOVFY.js")],["nl-NL",()=>import("./OHAVKDG4.js")],["pl-PL",()=>import("./Y6ALGYMS.js")],["pt-BR",()=>import("./TRJISMJB.js")],["pt-PT",()=>import("./YSK5DCPZ.js")],["ro-RO",()=>import("./BAOCMSNV.js")],["ru-RU",()=>import("./VY5FYXAM.js")],["sk-SK",()=>import("./J5LCPKDW.js")],["sl-SL",()=>import("./CLK32UFP.js")],["sr-RS",()=>import("./UEWT6OM3.js")],["sv-SE",()=>import("./PCZETSRX.js")],["th-TH",()=>import("./WHVF5KSV.js")],["tr-TR",()=>import("./TALNCAUT.js")],["uk-UA",()=>import("./BGLGKNNG.js")],["vi-VN",()=>import("./OEJBZFQ2.js")],["zh-CN",()=>import("./T2JJGCYP.js")],["zh-HK",()=>import("./W3IW6PSI.js")],["zh-TW",()=>import("./W3IW6PSI.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 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.85 */
4
- import{a as A}from"./OAZXAPGP.js";import"./FZIT2DHJ.js";import"./4FK3E43S.js";import"./XENCLWDT.js";import{a as c}from"./4GYETX3H.js";import{I as T,J as p,O as x,a as v,b as g,s as y}from"./V2WTIF2C.js";import"./5O6P6L5V.js";export default $arcgis.t(([$,b,u,P,S,G,I,_])=>{var B=v`.arcgis-utility-network-trace-location calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-location calcite-notice{padding:var(--calcite-spacing-xs)}.arcgis-utility-network-trace-location__add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.arcgis-utility-network-trace-location__button-container{justify-content:center;display:grid}.arcgis-utility-network-trace-location__clear-button{--calcite-button-border-color: transparent}`,f="arcgis-utility-network-trace-location",m={base:f,buttonContainer:`${f}__button-container`,clearButton:`${f}__clear-button`,addLocationButton:`${f}__add-location-button`},L=class extends T{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.traceLocationType="starting-point",this.spatialTolerance=.05,this.arcgisTraceLocationChange=y(),this.arcgisTraceLocationSelectEnd=y(),this.arcgisTraceLocationSelectStart=y()}static{this.properties={view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,flagLayer:0,spatialTolerance:9,utilityNetwork:0}}static{this.styles=B}async load(){u.isLoaded()||await u.load()}_createPolyline(e,t){return new P({hasZ:!1,hasM:!0,paths:e,spatialReference:new S({wkid:t})})}_calculatePercentAlong(e,t){let r=e.spatialReference,a=this._createPolyline(e.paths,r.wkid),i=t.x-.5,o=t.x+.5,n=t.y-.5,s=t.y+.5,l=[[[i,n],[o,s]]],w=this._createPolyline(l,t.spatialReference.wkid),h=u.execute(w,r);if(!h)return c("error",this,"Unable to project flag geometry to source geometry spatial reference."),.5;let d=$.execute(a,h);if(d.length>0){let C=b.execute(a,{unit:"feet"}),k;return d[0].paths[0][0][0]===a.paths[0][0][0]?k=b.execute(d[0],{unit:"feet"}):k=b.execute(d[1],{unit:"feet"}),k/C}return c("warn",this,"Unable to cut the source geometry with the flag geometry."),.5}async _ensureNecessaryAttributes(e){let t=(e.layer?.type,e.layer),r=t.fieldsIndex?.get("assetgroup")??!1,a=t.fieldsIndex?.get("assetgroup")?.name??"assetgroup",i=t.fieldsIndex?.get("assettype")??!1,o=t.fieldsIndex?.get("assettype")?.name??"assettype",n=e.getGlobalId(),s=e.getObjectId(),l=r?!!e.getAttribute(a):!0,w=i?!!e.getAttribute(o):!0;if(n&&s&&l&&w)return e;let h=t.createQuery();return h.objectIds=[s],(await t.queryFeatures(h))?.features[0]||null}async _ensureNecessaryAttributesAndGenerateTraceLocation(e,t){let{view:r}=this;if(!r||e.length===0){c("error",this,"`view` is unavailable or there are no results to process.");return}let a=e[0].graphic,i=await this._ensureNecessaryAttributes(a);if(!i){c("error",this,"Unable to ensure necessary attributes on the selected graphic.");return}this._generateTraceLocation(i,t)}_createFlagSymbol(){let{traceLocationType:e}=this,t=[244,21,21,.6],r=[21,244,21,.6];return e==="stopping-point"?new _({color:t,style:"x",size:12,outline:{color:t,width:2}}):e==="barrier"?new _({color:t,style:"square",size:12,outline:{color:t,width:0}}):new _({color:r,style:"circle",size:12,outline:{color:r,width:0}})}_addFlagGraphic(e,t,r){let{flagLayer:a,view:i}=this;if(!a||!i)return c("error",this,"The properties `flagLayer` and `view` are required but either one or both are missing."),null;let o=t.geometry?.type;if(this.traceLocations?.some(l=>l.traceLocation.globalId===e)&&o!=="polyline")return c("warn",this,"A flag with the same globalId already exists."),null;let n=this._createFlagSymbol(),s=new G({geometry:r,symbol:n,attributes:t.attributes});return a.add(s),s}async _generateItemTitle(e){let{messages:t}=this,r=(e.layer?.type,e.layer);return("getFeatureTitle"in r?await r.getFeatureTitle(e):null)||e?.getObjectId()?.toString()||t.labels.unknown}async _generateFlagInfo(e,t){let{traceLocationType:r,utilityNetwork:a}=this,i=e.getGlobalId()??"",o=e.geometry?.type,n=await this._generateItemTitle(e);if(o==="point"||o==="polygon"){let s=a?.getTerminalConfiguration(e),l=s?s.terminals[0].id:1;return{traceLocation:new I({type:r,isFilterBarrier:!1,globalId:i,terminalId:l}),flagProperties:{title:n,expanded:!1,terminalConfiguration:s??void 0,selectedTerminals:s?new Set([l]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(o==="polyline"){let s=this._calculatePercentAlong(e.geometry,t);return{traceLocation:new I({type:r,isFilterBarrier:!1,globalId:i,percentAlong:s}),flagProperties:{title:n,expanded:!1},spatialProperties:{mapPoint:t,mapGraphic:e}}}return null}async _generateTraceLocation(e,t){let{traceLocations:r}=this,a=e.getGlobalId()??"",i=e.geometry?.type,o=await this._generateFlagInfo(e,t);if(!o){c("error",this,"Unable to generate flag info for trace location.");return}let n=r?.filter(s=>s.spatialProperties.mapGraphic?.getGlobalId()===a)??[];if(n.length===0||i==="polyline"){if(i==="polyline"&&n.length>0&&n.some(l=>Math.abs(l.traceLocation.percentAlong-o.traceLocation.percentAlong)<=this.spatialTolerance)){c("warn",this,"A flag with the same globalId already exists within tolerance.");return}let s=this._addFlagGraphic(a,e,t);if(!s){c("warn",this,"Unable to add flag graphic.");return}o.spatialProperties.flagGraphic=s,r?.add(o);return}c("warn",this,"A flag with the same globalId already exists.")}async _hitTest(e){let{view:t,utilityNetwork:r}=this;if(!t||!r){c("error",this,"Either `utilityNetwork` or `view` is unavailable for hit test.");return}let a=e.graphic?.geometry,i=this.view?.toScreen(a);if(!i){c("warn",this,"No screen point available for hit test.");return}let o=(await t.hitTest(i,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(o.length===0){c("info",this,"No usable hit test results found.");return}this._ensureNecessaryAttributesAndGenerateTraceLocation(o,a)}_resetAfterSketch(){let{view:e}=this;if(!e){c("error",this,"View is not available to reset after sketch.");return}this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in e&&e.acquireCursor("default"),this.arcgisTraceLocationSelectEnd.emit()}_handleSketchComplete(e){let{sketchViewModel:t,view:r}=this;if(!t||!r){c("error",this,"Either `sketchViewModel` or `view` is not available in sketch complete handler.");return}e.state==="complete"&&e.graphic&&(t.layer.remove(e.graphic),this._hitTest(e)),(e.state==="cancel"||e.state==="complete")&&this._resetAfterSketch()}_handleAddButtonClick(){if(this.arcgisTraceLocationSelectStart.emit().defaultPrevented)return;let{view:e,sketchViewModel:t}=this;if(!(e&&t)){c("error",this,"Cannot add trace location; view not found.");return}this._clickHandler?.remove(),this._clickHandler=t.on("create",this._handleSketchComplete.bind(this)),"acquireCursor"in e&&e.acquireCursor("crosshair"),this.sketchViewModel?.create("point")}_handleClearButtonClick(){let{flagLayer:e,traceLocations:t}=this;t?.forEach(r=>{r.spatialProperties.flagGraphic&&e&&e.remove(r.spatialProperties.flagGraphic)}),t?.removeAll()}renderAddLocationBlock(){let{traceLocationType:e,messages:t,traceLocations:r}=this,a=e==="starting-point"?t.types.startingPoint:e==="barrier"?t.types.barrier:t.types.stoppingPoint,i=a.heading,o=a.description,n=a.buttonText;return g`<calcite-block .heading=${i} .label=${i} expanded .description=${o}>${r?.length?g`<calcite-button class=${p(m.clearButton)} slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>`:null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e}></arcgis-utility-network-trace-location-list><div class=${p(m.buttonContainer)}><calcite-button class=${p(m.addLocationButton)} icon-start=select appearance=outline .label=${n} @click=${()=>this._handleAddButtonClick()}>${n}</calcite-button></div></calcite-block>`}render(){return g`<div class=${p(m.base)}>${this.renderAddLocationBlock()}</div>`}};x("arcgis-utility-network-trace-location",L);return L},"geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/Polyline","geometry/SpatialReference","Graphic","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol")
3
+ v5.0.0-next.87 */
4
+ import{a as A}from"./JKKFLWMT.js";import"./JHB4BWDH.js";import"./JT27EM2N.js";import"./X6UH54F2.js";import{a as c}from"./SU6NHQT5.js";import{I as T,J as p,O as x,a as v,b as g,s as y}from"./KPRBFB4D.js";import"./YSRMPSZ6.js";export default $arcgis.t(([$,b,u,P,S,G,I,_])=>{var B=v`.arcgis-utility-network-trace-location calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-location calcite-notice{padding:var(--calcite-spacing-xs)}.arcgis-utility-network-trace-location__add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.arcgis-utility-network-trace-location__button-container{justify-content:center;display:grid}.arcgis-utility-network-trace-location__clear-button{--calcite-button-border-color: transparent}`,f="arcgis-utility-network-trace-location",m={base:f,buttonContainer:`${f}__button-container`,clearButton:`${f}__clear-button`,addLocationButton:`${f}__add-location-button`},L=class extends T{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.traceLocationType="starting-point",this.spatialTolerance=.05,this.arcgisTraceLocationChange=y(),this.arcgisTraceLocationSelectEnd=y(),this.arcgisTraceLocationSelectStart=y()}static{this.properties={view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,flagLayer:0,spatialTolerance:9,utilityNetwork:0}}static{this.styles=B}async load(){u.isLoaded()||await u.load()}_createPolyline(e,t){return new P({hasZ:!1,hasM:!0,paths:e,spatialReference:new S({wkid:t})})}_calculatePercentAlong(e,t){let r=e.spatialReference,a=this._createPolyline(e.paths,r.wkid),i=t.x-.5,o=t.x+.5,n=t.y-.5,s=t.y+.5,l=[[[i,n],[o,s]]],w=this._createPolyline(l,t.spatialReference.wkid),h=u.execute(w,r);if(!h)return c("error",this,"Unable to project flag geometry to source geometry spatial reference."),.5;let d=$.execute(a,h);if(d.length>0){let C=b.execute(a,{unit:"feet"}),k;return d[0].paths[0][0][0]===a.paths[0][0][0]?k=b.execute(d[0],{unit:"feet"}):k=b.execute(d[1],{unit:"feet"}),k/C}return c("warn",this,"Unable to cut the source geometry with the flag geometry."),.5}async _ensureNecessaryAttributes(e){let t=(e.layer?.type,e.layer),r=t.fieldsIndex?.get("assetgroup")??!1,a=t.fieldsIndex?.get("assetgroup")?.name??"assetgroup",i=t.fieldsIndex?.get("assettype")??!1,o=t.fieldsIndex?.get("assettype")?.name??"assettype",n=e.getGlobalId(),s=e.getObjectId(),l=r?!!e.getAttribute(a):!0,w=i?!!e.getAttribute(o):!0;if(n&&s&&l&&w)return e;let h=t.createQuery();return h.objectIds=[s],(await t.queryFeatures(h))?.features[0]||null}async _ensureNecessaryAttributesAndGenerateTraceLocation(e,t){let{view:r}=this;if(!r||e.length===0){c("error",this,"`view` is unavailable or there are no results to process.");return}let a=e[0].graphic,i=await this._ensureNecessaryAttributes(a);if(!i){c("error",this,"Unable to ensure necessary attributes on the selected graphic.");return}this._generateTraceLocation(i,t)}_createFlagSymbol(){let{traceLocationType:e}=this,t=[244,21,21,.6],r=[21,244,21,.6];return e==="stopping-point"?new _({color:t,style:"x",size:12,outline:{color:t,width:2}}):e==="barrier"?new _({color:t,style:"square",size:12,outline:{color:t,width:0}}):new _({color:r,style:"circle",size:12,outline:{color:r,width:0}})}_addFlagGraphic(e,t,r){let{flagLayer:a,view:i}=this;if(!a||!i)return c("error",this,"The properties `flagLayer` and `view` are required but either one or both are missing."),null;let o=t.geometry?.type;if(this.traceLocations?.some(l=>l.traceLocation.globalId===e)&&o!=="polyline")return c("warn",this,"A flag with the same globalId already exists."),null;let n=this._createFlagSymbol(),s=new G({geometry:r,symbol:n,attributes:t.attributes});return a.add(s),s}async _generateItemTitle(e){let{messages:t}=this,r=(e.layer?.type,e.layer);return("getFeatureTitle"in r?await r.getFeatureTitle(e):null)||e?.getObjectId()?.toString()||t.labels.unknown}async _generateFlagInfo(e,t){let{traceLocationType:r,utilityNetwork:a}=this,i=e.getGlobalId()??"",o=e.geometry?.type,n=await this._generateItemTitle(e);if(o==="point"||o==="polygon"){let s=a?.getTerminalConfiguration(e),l=s?s.terminals[0].id:1;return{traceLocation:new I({type:r,isFilterBarrier:!1,globalId:i,terminalId:l}),flagProperties:{title:n,expanded:!1,terminalConfiguration:s??void 0,selectedTerminals:s?new Set([l]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(o==="polyline"){let s=this._calculatePercentAlong(e.geometry,t);return{traceLocation:new I({type:r,isFilterBarrier:!1,globalId:i,percentAlong:s}),flagProperties:{title:n,expanded:!1},spatialProperties:{mapPoint:t,mapGraphic:e}}}return null}async _generateTraceLocation(e,t){let{traceLocations:r}=this,a=e.getGlobalId()??"",i=e.geometry?.type,o=await this._generateFlagInfo(e,t);if(!o){c("error",this,"Unable to generate flag info for trace location.");return}let n=r?.filter(s=>s.spatialProperties.mapGraphic?.getGlobalId()===a)??[];if(n.length===0||i==="polyline"){if(i==="polyline"&&n.length>0&&n.some(l=>Math.abs(l.traceLocation.percentAlong-o.traceLocation.percentAlong)<=this.spatialTolerance)){c("warn",this,"A flag with the same globalId already exists within tolerance.");return}let s=this._addFlagGraphic(a,e,t);if(!s){c("warn",this,"Unable to add flag graphic.");return}o.spatialProperties.flagGraphic=s,r?.add(o);return}c("warn",this,"A flag with the same globalId already exists.")}async _hitTest(e){let{view:t,utilityNetwork:r}=this;if(!t||!r){c("error",this,"Either `utilityNetwork` or `view` is unavailable for hit test.");return}let a=e.graphic?.geometry,i=this.view?.toScreen(a);if(!i){c("warn",this,"No screen point available for hit test.");return}let o=(await t.hitTest(i,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(o.length===0){c("info",this,"No usable hit test results found.");return}this._ensureNecessaryAttributesAndGenerateTraceLocation(o,a)}_resetAfterSketch(){let{view:e}=this;if(!e){c("error",this,"View is not available to reset after sketch.");return}this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in e&&e.acquireCursor("default"),this.arcgisTraceLocationSelectEnd.emit()}_handleSketchComplete(e){let{sketchViewModel:t,view:r}=this;if(!t||!r){c("error",this,"Either `sketchViewModel` or `view` is not available in sketch complete handler.");return}e.state==="complete"&&e.graphic&&(t.layer.remove(e.graphic),this._hitTest(e)),(e.state==="cancel"||e.state==="complete")&&this._resetAfterSketch()}_handleAddButtonClick(){if(this.arcgisTraceLocationSelectStart.emit().defaultPrevented)return;let{view:e,sketchViewModel:t}=this;if(!(e&&t)){c("error",this,"Cannot add trace location; view not found.");return}this._clickHandler?.remove(),this._clickHandler=t.on("create",this._handleSketchComplete.bind(this)),"acquireCursor"in e&&e.acquireCursor("crosshair"),this.sketchViewModel?.create("point")}_handleClearButtonClick(){let{flagLayer:e,traceLocations:t}=this;t?.forEach(r=>{r.spatialProperties.flagGraphic&&e&&e.remove(r.spatialProperties.flagGraphic)}),t?.removeAll()}renderAddLocationBlock(){let{traceLocationType:e,messages:t,traceLocations:r}=this,a=e==="starting-point"?t.types.startingPoint:e==="barrier"?t.types.barrier:t.types.stoppingPoint,i=a.heading,o=a.description,n=a.buttonText;return g`<calcite-block .heading=${i} .label=${i} expanded .description=${o}>${r?.length?g`<calcite-button class=${p(m.clearButton)} slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>`:null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e}></arcgis-utility-network-trace-location-list><div class=${p(m.buttonContainer)}><calcite-button class=${p(m.addLocationButton)} icon-start=select appearance=outline .label=${n} @click=${()=>this._handleAddButtonClick()}>${n}</calcite-button></div></calcite-block>`}render(){return g`<div class=${p(m.base)}>${this.renderAddLocationBlock()}</div>`}};x("arcgis-utility-network-trace-location",L);return L},"geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/Polyline","geometry/SpatialReference","Graphic","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol")
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.85 */
3
+ v5.0.0-next.87 */
4
4
  var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),Mt=new WeakMap,k=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==gt)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(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Mt.set(e,t))}return t}toString(){return this.cssText}},It=o=>new k(typeof o=="string"?o:o+"",void 0,gt),vt=(o,...t)=>{let e=o.length===1?o[0]:t.reduce(((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1]),o[0]);return new k(e,o,gt)},kt=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),r=Y.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},Et=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return It(e)})(o):o;var{is:ye,defineProperty:ge,getOwnPropertyDescriptor:ve,getOwnPropertyNames:Ee,getOwnPropertySymbols:$e,getPrototypeOf:be}=Object,tt=globalThis,jt=tt.trustedTypes,_e=jt?jt.emptyScript:"",Ae=tt.reactiveElementPolyfillSupport,j=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?_e: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}},H=(o,t)=>!ye(o,t),Ht={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),tt.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=Ht){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(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&ge(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){let{get:r,set:i}=ve(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ht}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=be(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,s=[...Ee(e),...$e(e)];for(let r of s)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,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 r of s)e.unshift(Et(r))}else t!==void 0&&e.push(Et(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 kt(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),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let i=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=s.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:X;this._$Em=r,this[r]=n.fromAttribute(e,i.type)??this._$Ej?.get(r)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let r=this.constructor,i=this[t];if(s??=r.getPropertyOptions(t),!((s.hasChanged??H)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:r,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),r===!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[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,i]of s){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,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"},_[j("elementProperties")]=new Map,_[j("finalized")]=new Map,Ae?.({ReactiveElement:_}),(tt.reactiveElementVersions??=[]).push("2.1.0");var bt=globalThis,et=bt.trustedTypes,zt=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,_t="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+A,Ce=`<${At}>`,T=document,V=()=>T.createComment(""),B=o=>o===null||typeof o!="object"&&typeof o!="function",Ct=Array.isArray,Gt=o=>Ct(o)||typeof o?.[Symbol.iterator]=="function",$t=`[
5
5
  \f\r]`,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,Bt=/>/g,w=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
6
6
  \f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,Ft=/"/g,Kt=/^(?:script|style|textarea|title)$/i,wt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ls=wt(1),hs=wt(2),ds=wt(3),m=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),qt=new WeakMap,O=T.createTreeWalker(T,129);function Qt(o,t){if(!Ct(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return zt!==void 0?zt.createHTML(t):t}var Jt=(o,t)=>{let e=o.length-1,s=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=z;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===z?u[1]==="!--"?n=Vt:u[1]!==void 0?n=Bt:u[2]!==void 0?(Kt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??z,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?Ft:Wt):n===Ft||n===Wt?n=w:n===Vt||n===Bt?n=z:(n=w,r=void 0);let g=n===w&&o[a+1].startsWith("/>")?" ":"";i+=n===z?c+Ce:h>=0?(s.push(l),c.slice(0,h)+_t+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Qt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},W=class o{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Jt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(_t)){let y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Kt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],V()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],V())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===m)return t;let r=s!==void 0?e._$Co?.[s]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=r:e._$Cl=r),r!==void 0&&(t=S(o,r._$AS(o,t.values),r,s)),t}var st=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,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let i=O.nextNode(),n=0,a=0,c=s[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=s[++a]}n!==c?.index&&(i=O.nextNode(),n++)}return O.currentNode=T,r}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,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=r?.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=S(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==m&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Gt(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&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=W.createElement(Qt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=qt.get(t.strings);return e===void 0&&qt.set(t.strings,e=new W(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,r=0;for(let i of t)r===e.length?e.push(s=new o(this.O(V()),this.O(V()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$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))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,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,r){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==m,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[s+c],e,c),l===m&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===m)return;let s=this._$AH,r=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||r);r&&this.element.removeEventListener(this.name,this,s),i&&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)}},nt=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){S(this,t)}},Yt={M:_t,P:A,A:At,C:1,L:Jt,R:st,D:Gt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},we=bt.litHtmlPolyfillSupport;we?.(W,U),(bt.litHtmlVersions??=[]).push("3.3.0");var at=(o,t,e)=>{let s=e?.renderBefore??t,r=s._$litPart$;if(r===void 0){let i=e?.renderBefore??null;s._$litPart$=r=new U(t.insertBefore(V(),i),i,void 0,e??{})}return r._$AI(o),r};var Ot=globalThis,$=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=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return m}};$._$litElement$=!0,$.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:$});var Oe=Ot.litElementPolyfillSupport;Oe?.({LitElement:$});(Ot.litElementVersions??=[]).push("4.2.0");var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},F=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var G=Symbol.for("controller"),Te=o=>typeof o=="object"&&o!==null&&(G in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),ws=o=>typeof o?.then=="function",Os=o=>o.M.length,q,N=o=>{q!==o&&(q=o,queueMicrotask(()=>q===o?q=void 0:0))},K=o=>q,x=[],Zt=o=>{if(o===void 0){x=[];return}let t=x.indexOf(o);x=t===-1?[...x,o]:x.slice(0,t+1),queueMicrotask(()=>x=[])},Xt=()=>x,R,Ts=o=>{R!==o&&(R=o,queueMicrotask(()=>R===o?R=void 0:0))},Se=()=>{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(r=>t(r,s))}return e.exports},ee=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=K().manager.X(o);if(e!==void 0)return e;if(Te(o))return o;let s=Se();if(s!==void 0)return s},ct=!1,Ss=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},se=(o,t)=>{let e=t>Pe?xe:t/Ne,s=0,r=setInterval(()=>{s+=e,s>=t&&(clearInterval(r),o())},e);return r},Pe=4e3,xe=2e3,Ne=4;var De=(o,t,e)=>{let s=Object.keys(o),r=s.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(o);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(o,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(s)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),M=void 0},Le=(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((r,i)=>p(t,void 0,e===i?r:void 0)),e},Ue=(o=[K(),...Xt()],t,e)=>{let s=Array.isArray(o)?o:[o],r=s.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};s.forEach(n=>De(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of s)if("manager"in n&&n.manager.component===n){Le(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Re=(o="",t={},e=K())=>{let s={emit:r=>{o===""&&I();let i=new CustomEvent(o,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return o===""&&Ue(void 0,r=>o=r.key,s),s},Me=Re.bind(null,""),ie;ie=G;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#r=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[ie]=!0,this.#a=[];let e=this,s=t??K(new.target.name);e.#i=s,e.ready=e.P.promise,e.#n=re(e),e.component=s,e.#i.addController(e),e.#i.manager===void 0||(Zt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#r;#c;#l;#p;#h;#d;#i;catchUpLifecycle(){let{manager:t}=this.#i;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#i.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?re(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return N(this.#i),te}get useRef(){return N(this.#i),ee}get useRefSync(){return N(this.#i),lt}controllerRemoved(){this.#i.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.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#i.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 F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}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.#r.forEach(oe,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(oe,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){N(this.#i);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function oe(o){p(o,void 0,this)}var ne=Tt,re=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,r,i){if(!((r==="exports"||r==="_exports")&&r in s&&s[r]===e)&&(r in s||r in Promise.prototype||typeof r=="symbol"))return typeof s=="function"?s[r]:Reflect.get(s,r,i)}},e=new Proxy(o,t);return e};var ht=o=>o.replace(Ie,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ie=/[A-Z]+(?![a-z])|[A-Z]/gu;var Is=o=>`\u200E${o??""}\u200E`,ke="randomUUID"in crypto,ks=()=>{if(ke)return crypto.randomUUID();let o=crypto.getRandomValues(new Uint16Array(8));o[3]=o[3]&4095|16384,o[4]=o[4]&16383|32768;let t=e=>o[e].toString(16).padStart(4,"0");return`${t(0)+t(1)}-${t(2)}-${t(3)}-${t(4)}-${t(5)}${t(6)}${t(7)}`};var{I:je}=Yt;var dt=o=>o.strings===void 0,ae=()=>document.createComment(""),zs=(o,t,e)=>{let s=o._$AA.parentNode,r=t===void 0?o._$AB:t._$AA;if(e===void 0){let i=s.insertBefore(ae(),r),n=s.insertBefore(ae(),r);e=new je(i,n,o,o.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=c.nextSibling;s.insertBefore(c,r),c=l}}}return e},Vs=(o,t,e=o)=>(o._$AI(t,e),o),He={},ce=(o,t=He)=>o._$AH=t,Bs=o=>o._$AH,Ws=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 f={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=o=>(...t)=>({_$litDirective$:o,values:t}),v=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 Q=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),Q(s,t);return!0},pt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},le=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Be(t)}};function ze(o){this._$AN!==void 0?(pt(this),this._$AM=o,le(this)):this._$AM=o}function Ve(o,t=!1,e=0){let s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let i=e;i<s.length;i++)Q(s[i],!1),pt(s[i]);else s!=null&&(Q(s,!1),pt(s));else Q(this,o)}var Be=o=>{o.type==f.CHILD&&(o._$AP??=Ve,o._$AQ??=ze)},ut=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),le(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),pt(this))}setValue(t){if(dt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var to=()=>new Pt,Pt=class{},St=new WeakMap,xt=E(class extends ut{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Dt=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},Lt={};function Ut(){}var Fe=(o,t)=>function(s,r){if(!globalThis.customElements)return;let n=(r??s??{}).resourcesUrl;n&&o.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(qe):void 0,C=g?.map(([L])=>L),D=class extends Nt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=o}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},mt=Object.defineProperty,qe=o=>{let t=o.split(":");return t.length===1?[t[0],ht(t[0])]:t},Ge=globalThis.HTMLElement??Ut,Nt=class extends Ge{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,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(r=>typeof r=="function"?{a:r}:r)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(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??[])mt(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=Dt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===s),n=`${s}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);Qe(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(Ke,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function Ke([o,t]){this[o]=t}var Qe=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var ft=class extends ne{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=yt in t&&typeof t.destroy=="function",$.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 ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();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),N(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=se(t,Je)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(r=>r(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)}},Je=1e3,yt="autoDestroyDisabled";var de=E(class extends v{constructor(o){if(super(o),o.type!==f.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 r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return m}});var pe="important",Ye=" !"+pe,ue=E(class extends v{constructor(o){if(super(o),o.type!==f.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 r=t[s];if(r!=null){this.ft.add(s);let i=typeof r=="string"&&r.endsWith(Ye);s.includes("-")||i?e.setProperty(s,i?r.slice(0,-11):r,i?pe:""):e[s]=r}}return m}});var Ze=E(class extends v{constructor(o){if(super(o),o.type!==f.PROPERTY&&o.type!==f.ATTRIBUTE&&o.type!==f.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===m||t===d)return t;let e=o.element,s=o.name;if(o.type===f.PROPERTY){if(t===e[s])return m}else if(o.type===f.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return m}else if(o.type===f.ATTRIBUTE&&e.getAttribute(s)===t+"")return m;return ce(o),t}});var me=class o extends ${constructor(){super(),this.M=[],this.manager=new ft(this);let t=this,e=t.constructor,s=e.N,r=e.K.o,i=o.prototype.shouldUpdate;t.#o=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;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,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??H,n={attribute:s&1&&typeof t=="string"?ht(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,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){let r=this.K,i=super.getPropertyDescriptor(t,e,s);return s.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){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 "${n}"`);i.set.call(this,n??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#o;#r;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=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.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===Lt?this.el:this.el.attachShadow(s));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(r=>!r.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#c(t):super.update(t)}listen(t,e,s){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,e,s,r){let i=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var fe=o=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},s={...o,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=s,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(o.defaultAssetPath),s};var br=o=>typeof o=="object"&&o!=null?de(o):o,_r=o=>typeof o=="object"&&o!=null?ue(o):o;var Rt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,xt(this.#e)):xt(t)}},Ar=E(Rt);var Cr=d;var wr=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var rs=vt`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`,J=fe({defaultAssetPath:"https://jsdev.arcgis.com/5.0.0-next/map-components/",hydratedAttribute:"hydrated",commonStyles:rs}),{customElement:Nr,getAssetPath:Dr,setAssetPath:Lr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{vt as a,ls as b,hs as c,ds as d,m as e,d as f,at as g,ws as h,Os as i,N as j,K as k,Zt as l,Xt as m,Ts as n,Ss as o,Le as p,Ue as q,Re as r,Me as s,Tt as t,ne as u,Is as v,ks as w,Fe as x,f as y,E as z,v as A,zs as B,Vs as C,ce as D,Bs as E,Ws as F,to as G,xt as H,me as I,br as J,_r as K,Cr as L,wr as M,J as N,Nr as O,Dr as P};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.85 */
4
- import{a as f}from"./GRS6C55W.js";import a from"./M66KDVTN.js";import{a as M}from"./T5HGJ7Y6.js";import{b as E}from"./XENCLWDT.js";import"./4GYETX3H.js";import{G as Q,H as j,I as k,J as h,M as R,O as B,a as D,b as o}from"./V2WTIF2C.js";import"./5O6P6L5V.js";export default $arcgis.t(([{templateHasKey:H,stripHTML:K},{isRelatableFeatureSupportedLayer:U,findRelatedLayer:X},{substitute:Y,formatNumber:T},{watch:F,on:ee},Z,W,{ignoreAbortErrors:N},te,{h:V}])=>{var re=D`:host{position:relative;flex:1 1 auto}.arcgis-feature-relationship__list{min-height:var(--calcite-spacing-xxxl)}.arcgis-feature-relationship__list-item--hidden{display:none}.arcgis-feature-relationship__feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-feature-relationship__sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,ie=_=>{let e=[];if(_.formTemplate){let{description:t,title:r}=_.formTemplate;_.fields?.forEach(i=>{let s=r&&H(r,i.name),a=t&&H(t,i.name);(s||a)&&e.push(i.name)})}return e},O=100,se="arcgis-feature",c=`${se}-relationship`,u={base:c,listContainer:`${c}__list`,listItem:`${c}__list-item`,listItemHidden:`${c}__list-item--hidden`,listContainerQuerying:`${c}__list--querying`,featureObserver:`${c}__feature-observer`,stickySpinnerContainer:`${c}__sticky-loading-container`,loadingSpinnerContainer:`${c}__loading-container`},x=class extends k{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await N(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=f(this._queryController,O),this._queryFeatureCountDebounced=f(this._queryFeatureCountController,O),this._queryPageDebounced=f(this._queryPageController,O),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=Q(),this.relatedFeatures=new Z,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new Z,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=re}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=V(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&U(e.parent)?e.parent:e;return X(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return Y(e?.numberRecords??"",{number:T(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[F(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),F(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),F(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),F(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),ee(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:v}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:$}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:A}=await $({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),q=A.map(({count:y,value:m})=>{let C=t.subtypes?.find(L=>L.code===m)?.name;return m!=null&&C?{count:y,value:m,name:C}:void 0}).filter(y=>y!=null);this.allCategories=q}return}let{historicMoment:b,gdbVersion:w}=e,I=new W({cacheHint:v,gdbVersion:w,historicMoment:b,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),p=await e.queryRelatedFeaturesCount(I,{signal:r?.signal});this.allCategories=void 0,this.featureCount=p[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:v,showAllEnabled:b,supportsCacheHint:w}=this,{canQuery:I,objectId:p}=this;if(!I||!a||!l||p==null)return[];let $=b?((i-1)*s+r)%r:0,A=b?s:t,q=l.objectIdField,y="subtypeField"in l?l.subtypeField:void 0,m=[...n.map(d=>d.field),...ie(l),...g,q,y].filter(d=>d!=null),C=n.map(d=>`${d.field} ${d.order}`),{historicMoment:L,gdbVersion:z}=a,G=new W({orderByFields:C,start:$,num:A,outFields:m,cacheHint:w,historicMoment:L,gdbVersion:z,relationshipId:v,returnGeometry:!1,objectIds:[p],where:this._getRelationshipWhereClause(l)}),P=(await a.queryRelatedFeatures(G,{signal:e?.signal}))[p]?.features||[];return l.type==="subtype-group"&&y?P.forEach(d=>{let J=d.attributes[y],S=l.findSublayerForSubtypeCode?.(J);d.sourceLayer=S,d.layer=S}):P.forEach(d=>{d.sourceLayer=l,d.layer=l}),P}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(R(M(e,o`<arcgis-feature .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(R(M(t,o`<arcgis-feature-relationship .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new te({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class=${h(u.base)}><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class=${h(u.stickySpinnerContainer)}>${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class=${h(u.loadingSpinnerContainer)}>${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=T(t);return o`<calcite-list-item class=${h(u.listItem)} .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,title:a}=e,n={...i?.global,...r},l=(t&&n?.[t])??"",g=s==="loading";return o`<calcite-list-item class=${h(E(u.listItem,{[u.listItemHidden]:g}))} .description=${K(l.toString())} .label=${K(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class=${h(u.featureObserver)} ${j(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${h(E(u.listContainer,{[u.listContainerQuerying]:t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};B("arcgis-feature-relationship",x);return x},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a)
3
+ v5.0.0-next.87 */
4
+ import{a as f}from"./X4V2UEQT.js";import a from"./VZIG2ZB6.js";import{a as M}from"./EOA5PL7V.js";import{b as E}from"./X6UH54F2.js";import"./SU6NHQT5.js";import{G as Q,H as j,I as k,J as h,M as R,O as B,a as D,b as o}from"./KPRBFB4D.js";import"./YSRMPSZ6.js";export default $arcgis.t(([{templateHasKey:H,stripHTML:K},{isRelatableFeatureSupportedLayer:U,findRelatedLayer:X},{substitute:Y,formatNumber:T},{watch:F,on:ee},Z,W,{ignoreAbortErrors:N},te,{h:V}])=>{var re=D`:host{position:relative;flex:1 1 auto}.arcgis-feature-relationship__list{min-height:var(--calcite-spacing-xxxl)}.arcgis-feature-relationship__list-item--hidden{display:none}.arcgis-feature-relationship__feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-feature-relationship__sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,ie=_=>{let e=[];if(_.formTemplate){let{description:t,title:r}=_.formTemplate;_.fields?.forEach(i=>{let s=r&&H(r,i.name),a=t&&H(t,i.name);(s||a)&&e.push(i.name)})}return e},O=100,se="arcgis-feature",c=`${se}-relationship`,u={base:c,listContainer:`${c}__list`,listItem:`${c}__list-item`,listItemHidden:`${c}__list-item--hidden`,listContainerQuerying:`${c}__list--querying`,featureObserver:`${c}__feature-observer`,stickySpinnerContainer:`${c}__sticky-loading-container`,loadingSpinnerContainer:`${c}__loading-container`},x=class extends k{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await N(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=f(this._queryController,O),this._queryFeatureCountDebounced=f(this._queryFeatureCountController,O),this._queryPageDebounced=f(this._queryPageController,O),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=Q(),this.relatedFeatures=new Z,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new Z,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=re}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=V(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&U(e.parent)?e.parent:e;return X(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return Y(e?.numberRecords??"",{number:T(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[F(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),F(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),F(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),F(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),ee(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:v}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:$}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:A}=await $({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),q=A.map(({count:y,value:m})=>{let C=t.subtypes?.find(L=>L.code===m)?.name;return m!=null&&C?{count:y,value:m,name:C}:void 0}).filter(y=>y!=null);this.allCategories=q}return}let{historicMoment:b,gdbVersion:w}=e,I=new W({cacheHint:v,gdbVersion:w,historicMoment:b,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),p=await e.queryRelatedFeaturesCount(I,{signal:r?.signal});this.allCategories=void 0,this.featureCount=p[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:v,showAllEnabled:b,supportsCacheHint:w}=this,{canQuery:I,objectId:p}=this;if(!I||!a||!l||p==null)return[];let $=b?((i-1)*s+r)%r:0,A=b?s:t,q=l.objectIdField,y="subtypeField"in l?l.subtypeField:void 0,m=[...n.map(d=>d.field),...ie(l),...g,q,y].filter(d=>d!=null),C=n.map(d=>`${d.field} ${d.order}`),{historicMoment:L,gdbVersion:z}=a,G=new W({orderByFields:C,start:$,num:A,outFields:m,cacheHint:w,historicMoment:L,gdbVersion:z,relationshipId:v,returnGeometry:!1,objectIds:[p],where:this._getRelationshipWhereClause(l)}),P=(await a.queryRelatedFeatures(G,{signal:e?.signal}))[p]?.features||[];return l.type==="subtype-group"&&y?P.forEach(d=>{let J=d.attributes[y],S=l.findSublayerForSubtypeCode?.(J);d.sourceLayer=S,d.layer=S}):P.forEach(d=>{d.sourceLayer=l,d.layer=l}),P}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(R(M(e,o`<arcgis-feature .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(R(M(t,o`<arcgis-feature-relationship .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new te({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class=${h(u.base)}><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class=${h(u.stickySpinnerContainer)}>${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class=${h(u.loadingSpinnerContainer)}>${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=T(t);return o`<calcite-list-item class=${h(u.listItem)} .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,title:a}=e,n={...i?.global,...r},l=(t&&n?.[t])??"",g=s==="loading";return o`<calcite-list-item class=${h(E(u.listItem,{[u.listItemHidden]:g}))} .description=${K(l.toString())} .label=${K(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class=${h(u.featureObserver)} ${j(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${h(E(u.listContainer,{[u.listContainerQuerying]:t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};B("arcgis-feature-relationship",x);return x},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a)