@esri/solutions-components 1.0.2 → 1.0.3

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 (476) hide show
  1. package/dist/cdn/{JQKAETCU.js → 23KPU4GQ.js} +1 -1
  2. package/dist/cdn/{CH2V66RG.js → 25MVNDYY.js} +2 -2
  3. package/dist/cdn/{RVQFI2GI.js → 26CFA6NB.js} +2 -2
  4. package/dist/cdn/{TA2KPG6T.js → 2F4XUH2B.js} +2 -2
  5. package/dist/cdn/{MW46SBLS.js → 2H7MTCHN.js} +2 -2
  6. package/dist/cdn/{6Y37L4Y2.js → 2JUQQJOQ.js} +1 -1
  7. package/dist/cdn/{AGXQF5CB.js → 2KV5NHCA.js} +2 -2
  8. package/dist/cdn/{MFT2YTZE.js → 2MGMAN6M.js} +2 -2
  9. package/dist/cdn/{MDBE6QB6.js → 2S6VPY6M.js} +2 -2
  10. package/dist/cdn/{J5SSKOUJ.js → 2TLBO4KI.js} +2 -2
  11. package/dist/cdn/36DIJFDW.js +18 -0
  12. package/dist/cdn/{NF6VWQKC.js → 374EIYTN.js} +2 -2
  13. package/dist/cdn/{UZSGGRRN.js → 3K2JVPRP.js} +2 -2
  14. package/dist/cdn/{7DSO57VG.js → 3O5UNJZ5.js} +2 -2
  15. package/dist/cdn/{ORFCQZNQ.js → 3RYX2KRP.js} +2 -2
  16. package/dist/cdn/{I2QY6RRM.js → 3U5MCBML.js} +2 -2
  17. package/dist/cdn/{OMJT2NGS.js → 3WBD7HCV.js} +2 -2
  18. package/dist/cdn/{KMK3IXHT.js → 42D6SGED.js} +2 -2
  19. package/dist/cdn/{LMJVHANR.js → 4L6E3M5G.js} +2 -2
  20. package/dist/cdn/{5BS5RPN3.js → 4PHIBFBK.js} +2 -2
  21. package/dist/cdn/{TK6UBBJX.js → 54VXW2B6.js} +2 -2
  22. package/dist/cdn/{XPTTFHFY.js → 5FB3DI4G.js} +2 -2
  23. package/dist/cdn/{URAHLQ3P.js → 5JPHH76I.js} +2 -2
  24. package/dist/cdn/{EXPP7EHV.js → 5QYTBWNM.js} +2 -2
  25. package/dist/cdn/{T757ITK2.js → 5VTF2S3V.js} +2 -2
  26. package/dist/cdn/{QZWC4VIB.js → 5Y3YCWRM.js} +2 -2
  27. package/dist/cdn/{R6VHQQOK.js → 62ZWA6O7.js} +1 -1
  28. package/dist/cdn/{XF3EBBPG.js → 662JMFYU.js} +2 -2
  29. package/dist/cdn/{6YWQEJ3R.js → 67BKTI47.js} +2 -2
  30. package/dist/cdn/{Y3DUHGHO.js → 6BX7KLOB.js} +1 -1
  31. package/dist/cdn/{UHULYTFL.js → 6DFZGD4Y.js} +1 -1
  32. package/dist/cdn/{N765GK5M.js → 6EP36Y7F.js} +2 -2
  33. package/dist/cdn/{CBU5ZJTL.js → 6FHHBRRB.js} +2 -2
  34. package/dist/cdn/{5UIQ5XPI.js → 6GCYWKFS.js} +1 -1
  35. package/dist/cdn/{HE7ELDIR.js → 6IAXNX3E.js} +1 -1
  36. package/dist/cdn/{SB6IKLS3.js → 6ILYUU4G.js} +2 -2
  37. package/dist/cdn/{ZM76BYQX.js → 6QV3LFXT.js} +2 -2
  38. package/dist/cdn/{4B47MLZ4.js → 6TTGY74E.js} +2 -2
  39. package/dist/cdn/{O7SEZIYA.js → 6XG23GK2.js} +2 -2
  40. package/dist/cdn/{M4Q44Y7R.js → 757B2YT4.js} +2 -2
  41. package/dist/cdn/{QUB3JPGL.js → 7ANMAQXN.js} +1 -1
  42. package/dist/cdn/{T5ORGPHJ.js → 7CDY7L44.js} +2 -2
  43. package/dist/cdn/{2DREXAAI.js → 7QEYVLH4.js} +2 -2
  44. package/dist/cdn/{AWOD4YMZ.js → 7SATBHPG.js} +2 -2
  45. package/dist/cdn/{HISSLYMD.js → 7VB4EGOH.js} +2 -2
  46. package/dist/cdn/{MRDF2627.js → 7XCWAN5G.js} +2 -2
  47. package/dist/cdn/{5D4L7E7B.js → A4H6OMJ4.js} +2 -2
  48. package/dist/cdn/{K3UTGJMU.js → A7TRZP7N.js} +1 -1
  49. package/dist/cdn/{VVZJIYXL.js → AD4OROQI.js} +2 -2
  50. package/dist/cdn/AGKANRB2.js +4 -0
  51. package/dist/cdn/{MWZRE5PN.js → AHAZLVQ4.js} +2 -2
  52. package/dist/cdn/{NHKMUTOW.js → ASBGMXK6.js} +2 -2
  53. package/dist/cdn/{CU4HDBVA.js → B34U6ISQ.js} +2 -2
  54. package/dist/cdn/{MX2NQ664.js → B6P5GUKS.js} +2 -2
  55. package/dist/cdn/{UGWIFJHW.js → B75MQOOF.js} +1 -1
  56. package/dist/cdn/{CBAXU66B.js → BEQE76XU.js} +2 -2
  57. package/dist/cdn/{PA6X2UX4.js → BGK6GNQ2.js} +2 -2
  58. package/dist/cdn/{DVKB52PG.js → BJDRPNDP.js} +2 -2
  59. package/dist/cdn/{AXPTSMNQ.js → BK4BKQMD.js} +2 -2
  60. package/dist/cdn/{OJUIATLV.js → BQIN6I6Z.js} +2 -2
  61. package/dist/cdn/{PT2PN6JX.js → BR63TLFP.js} +2 -2
  62. package/dist/cdn/{BTHJLT2K.js → BT6EYE4X.js} +2 -2
  63. package/dist/cdn/{QIVGXNMA.js → C23KGGFI.js} +2 -2
  64. package/dist/cdn/{OWFH6YUK.js → C4OSLESX.js} +2 -2
  65. package/dist/cdn/{NS7LWOIF.js → CDJIJD2S.js} +1 -1
  66. package/dist/cdn/{T7XUVORP.js → CM4AL2I7.js} +2 -2
  67. package/dist/cdn/{45JENHBT.js → COF6OUJT.js} +2 -2
  68. package/dist/cdn/CYFSOW6X.js +18 -0
  69. package/dist/cdn/{H236KX4X.js → D33LMOKH.js} +2 -2
  70. package/dist/cdn/{RZBKYA4H.js → DDZUXMVO.js} +1 -1
  71. package/dist/cdn/{J4QVOH72.js → DLYWKQDY.js} +2 -2
  72. package/dist/cdn/{UJYMNOGA.js → DP4UK5MF.js} +2 -2
  73. package/dist/cdn/DT6LXM6J.js +4 -0
  74. package/dist/cdn/{YFRUN4NK.js → DYAASCEQ.js} +2 -2
  75. package/dist/cdn/{UHMFK7KR.js → E5MMH3QZ.js} +2 -2
  76. package/dist/cdn/{JFXEOOWV.js → EFD7INAF.js} +2 -2
  77. package/dist/cdn/{6RC6X7JL.js → EFQOQ4XM.js} +2 -2
  78. package/dist/cdn/{CXHBMY3H.js → EGOHB7G6.js} +2 -2
  79. package/dist/cdn/{P6I2SMSL.js → EKILMPMP.js} +2 -2
  80. package/dist/cdn/{V72LELKA.js → EL2ASFX3.js} +2 -2
  81. package/dist/cdn/{WPQTSQ5W.js → ENWJIRTW.js} +2 -2
  82. package/dist/cdn/{KYJLH6UV.js → EOIHR5PX.js} +2 -2
  83. package/dist/cdn/{QBKQBYYD.js → EQDEFLKQ.js} +2 -2
  84. package/dist/cdn/{XL6DAOQU.js → ERJKLBV2.js} +2 -2
  85. package/dist/cdn/{KK5EFX35.js → ESRPIZDO.js} +2 -2
  86. package/dist/cdn/{XNRASUFU.js → ETUG5HUX.js} +2 -2
  87. package/dist/cdn/{EJ2ZYQDN.js → EV4XJGO3.js} +2 -2
  88. package/dist/cdn/{OU5FGKZQ.js → EXLYOLGD.js} +2 -2
  89. package/dist/cdn/{NDXSJLKV.js → EYRRGEDQ.js} +1 -1
  90. package/dist/cdn/{YEK5YHI4.js → F4YYWP73.js} +2 -2
  91. package/dist/cdn/F7LDLM6P.js +4 -0
  92. package/dist/cdn/{57ICJINS.js → FAZP4TDB.js} +2 -2
  93. package/dist/cdn/{VC3OUF74.js → FCK3OBGA.js} +2 -2
  94. package/dist/cdn/{HMOPCXOD.js → FGYAYTAY.js} +2 -2
  95. package/dist/cdn/{M6VJRRQ6.js → FJG2Y4MT.js} +2 -2
  96. package/dist/cdn/{ME3PJXJC.js → FJMY5BVP.js} +2 -2
  97. package/dist/cdn/{FYGEDZYU.js → FL6PET5V.js} +2 -2
  98. package/dist/cdn/{EUJJCM4N.js → FNWEYQDD.js} +1 -1
  99. package/dist/cdn/{6ZPPQS7Z.js → FP7ZUAH6.js} +2 -2
  100. package/dist/cdn/{QMCJ7WTH.js → FR3CBOZY.js} +2 -2
  101. package/dist/cdn/{Z3W52BA5.js → FSDJA4MR.js} +2 -2
  102. package/dist/cdn/{TF5NNCNV.js → FSH3VY4W.js} +2 -2
  103. package/dist/cdn/{L6MHQFEW.js → FX4GM76R.js} +2 -2
  104. package/dist/cdn/{MMQ4KQ2B.js → G4JWUXWW.js} +2 -2
  105. package/dist/cdn/{2N4CQXHT.js → G5TN4YYX.js} +2 -2
  106. package/dist/cdn/{PZ4I46YP.js → GGXBJUNZ.js} +2 -2
  107. package/dist/cdn/{BIVUMER5.js → GKSL27GK.js} +1 -1
  108. package/dist/cdn/{EU66V4DL.js → GNONOVEA.js} +2 -2
  109. package/dist/cdn/{TYK6M57O.js → GTEHENBQ.js} +2 -2
  110. package/dist/cdn/{4CA5Q4HU.js → GTFFXKQ2.js} +2 -2
  111. package/dist/cdn/{GSHJMUOL.js → H5NKKY63.js} +2 -2
  112. package/dist/cdn/{VOP3WFWQ.js → HE4HDKLZ.js} +2 -2
  113. package/dist/cdn/{SZVMRJ24.js → HQGW6OLO.js} +1 -1
  114. package/dist/cdn/{BH7LJ72A.js → HUHLOYKI.js} +2 -2
  115. package/dist/cdn/{SMUXGPZR.js → HWGQUCPH.js} +2 -2
  116. package/dist/cdn/{DQCGIKDE.js → HYI5EZI4.js} +2 -2
  117. package/dist/cdn/{AXNLHEND.js → HYZDGSVF.js} +2 -2
  118. package/dist/cdn/{MPH25RN2.js → HZQ2DNC7.js} +2 -2
  119. package/dist/cdn/{IJNIOO5S.js → I2QMTG55.js} +2 -2
  120. package/dist/cdn/{N4NNCHK6.js → I75QXGU6.js} +2 -2
  121. package/dist/cdn/{YX2IMVKL.js → IAGXR3NP.js} +1 -1
  122. package/dist/cdn/{5Q6ZKF23.js → ICTEUNHA.js} +1 -1
  123. package/dist/cdn/{34K3UEZZ.js → IGGGIS6G.js} +2 -2
  124. package/dist/cdn/{XHXK6QN7.js → IGM6T5LG.js} +2 -2
  125. package/dist/cdn/{X26TSF65.js → IKXIA6DX.js} +2 -2
  126. package/dist/cdn/{Q2BUQJJY.js → IP5TND75.js} +2 -2
  127. package/dist/cdn/{3L5CUNW3.js → IU5ETFJQ.js} +2 -2
  128. package/dist/cdn/{J6BS2SYI.js → IYR7CWGB.js} +2 -2
  129. package/dist/cdn/{W23X7NWO.js → IYVUU2KK.js} +2 -2
  130. package/dist/cdn/{PJC5OY32.js → IZG3VEFG.js} +1 -1
  131. package/dist/cdn/{MRHAUAK5.js → J5Z6XBH5.js} +1 -1
  132. package/dist/cdn/{2KQCEICX.js → JDBACJRP.js} +4 -4
  133. package/dist/cdn/{3QXMAC7L.js → JEJY27MQ.js} +2 -2
  134. package/dist/cdn/{627BP4CQ.js → JFAFRMBB.js} +2 -2
  135. package/dist/cdn/{BBCZTH66.js → JFDXJGIJ.js} +1 -1
  136. package/dist/cdn/{IDOBPHGE.js → JGLFDJFF.js} +2 -2
  137. package/dist/cdn/{FQRP6IK4.js → JGYXU6MT.js} +2 -2
  138. package/dist/cdn/{W5Q4PI4D.js → JI7QBF2J.js} +2 -2
  139. package/dist/cdn/{BWY46B5P.js → JIYQEZGV.js} +2 -2
  140. package/dist/cdn/{YX4KF34C.js → JMGTSAK6.js} +2 -2
  141. package/dist/cdn/{XINOQA62.js → JMQV4UK4.js} +1 -1
  142. package/dist/cdn/{RDBY4KOY.js → JVJODSGL.js} +2 -2
  143. package/dist/cdn/{427VOQVY.js → JZNSQN5C.js} +2 -2
  144. package/dist/cdn/{IGNOSAEB.js → JZUBI6LB.js} +1 -1
  145. package/dist/cdn/{QTN6BMW2.js → K6A5BZGW.js} +1 -1
  146. package/dist/cdn/{RQZHVOZW.js → KDL2CC6G.js} +2 -2
  147. package/dist/cdn/{2RQJQWZN.js → KJ5OTXP6.js} +2 -2
  148. package/dist/cdn/{IQVXZDV3.js → KJDCKGFK.js} +2 -2
  149. package/dist/cdn/{P5VXHMBV.js → KJL5HNOR.js} +2 -2
  150. package/dist/cdn/{JCJADZGS.js → KJOKXQZU.js} +2 -2
  151. package/dist/cdn/{WDJYH74E.js → KLABUUYY.js} +2 -2
  152. package/dist/cdn/{LYLGDYC3.js → KQRJJTQ5.js} +2 -2
  153. package/dist/cdn/{RUMM4LRY.js → KQTQK4OJ.js} +2 -2
  154. package/dist/cdn/{RQNGE4QQ.js → KU6NIERJ.js} +2 -2
  155. package/dist/cdn/{YWS4DWQO.js → KUJTRCCI.js} +2 -2
  156. package/dist/cdn/L36YOWRK.js +4 -0
  157. package/dist/cdn/{5X2CUO2G.js → LHUMSMJ6.js} +2 -2
  158. package/dist/cdn/{NVRFL7NL.js → LIGPP436.js} +2 -2
  159. package/dist/cdn/{J67A6WYJ.js → LN5LFFQL.js} +2 -2
  160. package/dist/cdn/{E7DQW7XG.js → LN6SBKS6.js} +2 -2
  161. package/dist/cdn/{ZLEZXMKN.js → LPDDFOTY.js} +2 -2
  162. package/dist/cdn/{XWBLDO6F.js → LVGWOKF7.js} +1 -1
  163. package/dist/cdn/{XOZFNKXY.js → M5R3XZG4.js} +2 -2
  164. package/dist/cdn/{GJYS7J5Y.js → M5UPX2J7.js} +2 -2
  165. package/dist/cdn/{3XT4LMZL.js → M7HTAQHD.js} +1 -1
  166. package/dist/cdn/{34FKJAYZ.js → METZPEKO.js} +2 -2
  167. package/dist/cdn/{Z2FRFIOF.js → MGVUU433.js} +2 -2
  168. package/dist/cdn/{PQ55EL2N.js → MKX2QKK2.js} +2 -2
  169. package/dist/cdn/MMLZ4JEL.js +4 -0
  170. package/dist/cdn/{DMOKBYTT.js → N372V6ZZ.js} +2 -2
  171. package/dist/cdn/{KQ6WZUPW.js → NCB45ISZ.js} +2 -2
  172. package/dist/cdn/{R2RYAQ6J.js → ND6B7H5G.js} +2 -2
  173. package/dist/cdn/{FGX5VXCN.js → NIIZBG5D.js} +2 -2
  174. package/dist/cdn/{BPHSFWBE.js → NMDV24RB.js} +2 -2
  175. package/dist/cdn/{SFYHUOTM.js → NNUFXWGF.js} +2 -2
  176. package/dist/cdn/{5PEEQTOJ.js → NPHCFVY5.js} +2 -2
  177. package/dist/cdn/{G57AFF3K.js → NRBFWIU7.js} +1 -1
  178. package/dist/cdn/{MJ6UHJO5.js → NUECMUNR.js} +2 -2
  179. package/dist/cdn/{623OCGUZ.js → NUUEBECA.js} +2 -2
  180. package/dist/cdn/{MCOVXOZE.js → NZJICJCJ.js} +2 -2
  181. package/dist/cdn/{OGNLV67M.js → O2PJYMGL.js} +1 -1
  182. package/dist/cdn/{N6WPLWG3.js → OA6N3UPU.js} +2 -2
  183. package/dist/cdn/{5IMGOBVR.js → OCMNVWI4.js} +2 -2
  184. package/dist/cdn/{MS7LIRHZ.js → OF36TDKR.js} +2 -2
  185. package/dist/cdn/{BSBALSW3.js → OHTIVF6F.js} +2 -2
  186. package/dist/cdn/{TSJWAHST.js → OHVFUCPD.js} +2 -2
  187. package/dist/cdn/{GLKAIY7B.js → OIKCCXRR.js} +2 -2
  188. package/dist/cdn/{N2SRPBDD.js → OVCAOTN3.js} +1 -1
  189. package/dist/cdn/OW7UYJ4J.js +4 -0
  190. package/dist/cdn/{SEWOHKIX.js → PKYOZYLI.js} +2 -2
  191. package/dist/cdn/{QKUXZWFL.js → PLA5JT3G.js} +2 -2
  192. package/dist/cdn/PQAE7N6I.js +4 -0
  193. package/dist/cdn/{Q7OC2577.js → PRIAU7QU.js} +2 -2
  194. package/dist/cdn/{3VJVSHZ3.js → PVTQGF36.js} +2 -2
  195. package/dist/cdn/{EIG2RIEW.js → QA65PTZZ.js} +2 -2
  196. package/dist/cdn/{DAE4AFWE.js → QDY6ZNGH.js} +2 -2
  197. package/dist/cdn/{6CHYPF6P.js → QEC76CAD.js} +2 -2
  198. package/dist/cdn/{53U2O7QU.js → QIQSY5XY.js} +2 -2
  199. package/dist/cdn/{VSEHM5KR.js → QLVDQY5R.js} +2 -2
  200. package/dist/cdn/{NJBLOY6O.js → QQUJHAOI.js} +2 -2
  201. package/dist/cdn/{6ULIHKIX.js → QSBF5CAO.js} +1 -1
  202. package/dist/cdn/{YWLH4TVT.js → QSMNEUAM.js} +2 -2
  203. package/dist/cdn/{WQUBINLR.js → QZN2ALHA.js} +2 -2
  204. package/dist/cdn/{AX3GHSA4.js → R47YRNRP.js} +2 -2
  205. package/dist/cdn/{ZUKAASU2.js → RC5OYDLU.js} +2 -2
  206. package/dist/cdn/{MBB3DRUX.js → RCCJWWIB.js} +2 -2
  207. package/dist/cdn/{E6YH3G2I.js → RHHKJQMD.js} +1 -1
  208. package/dist/cdn/{SPYEGWSA.js → RIVVWLOA.js} +2 -2
  209. package/dist/cdn/{4V6HHPEY.js → RM45AKVD.js} +2 -2
  210. package/dist/cdn/{ITWRX5NJ.js → RMNBDS6F.js} +2 -2
  211. package/dist/cdn/{LHDC2KUS.js → RRF3ACRD.js} +2 -2
  212. package/dist/cdn/{DNSP25OL.js → S4E4IPBZ.js} +1 -1
  213. package/dist/cdn/{BVYE77GY.js → S7NHJP4N.js} +2 -2
  214. package/dist/cdn/{N6AFW5X5.js → SCRDPL23.js} +2 -2
  215. package/dist/cdn/{UGDEHIGY.js → SJO75TT4.js} +2 -2
  216. package/dist/cdn/{HX4VINVI.js → SL2K7YIF.js} +1 -1
  217. package/dist/cdn/{6OP4PP3P.js → SSP7KXPL.js} +2 -2
  218. package/dist/cdn/{C7N6NXZS.js → SUWPBAZX.js} +2 -2
  219. package/dist/cdn/{ZPQ43SZ3.js → SWMF2YA5.js} +2 -2
  220. package/dist/cdn/{IARLSMD2.js → SXUAMVZO.js} +2 -2
  221. package/dist/cdn/{3UIKDYVX.js → SYSMKBTI.js} +1 -1
  222. package/dist/cdn/{OX6RYCMB.js → T3FQL6TN.js} +2 -2
  223. package/dist/cdn/{H7J6NVIQ.js → T3TRA4FC.js} +2 -2
  224. package/dist/cdn/{OXHWMQRP.js → T4OHAC5G.js} +2 -2
  225. package/dist/cdn/{RSH2UKEC.js → T5PIC2NF.js} +2 -2
  226. package/dist/cdn/{3OPTGOTN.js → T6ANMRE3.js} +2 -2
  227. package/dist/cdn/{C5LL6JKL.js → T7OXALTG.js} +2 -2
  228. package/dist/cdn/{X7CS7ZS5.js → TFH7GJUO.js} +2 -2
  229. package/dist/cdn/{XYDJHJLZ.js → TI3IPN2K.js} +1 -1
  230. package/dist/cdn/{EW2G5EHV.js → TJ4EAB2X.js} +2 -2
  231. package/dist/cdn/{3BCY5VBO.js → TJMDZV66.js} +2 -2
  232. package/dist/cdn/{42CBSGWQ.js → TSUZDZYM.js} +2 -2
  233. package/dist/cdn/{UDSTQRSC.js → TTOLHIJV.js} +2 -2
  234. package/dist/cdn/{UPVA5Z5X.js → U3K7MHYO.js} +2 -2
  235. package/dist/cdn/{A2LA4B77.js → U3NZPNKZ.js} +2 -2
  236. package/dist/cdn/{2TV52QIG.js → U4FYJZJP.js} +2 -2
  237. package/dist/cdn/{TND7GPH7.js → UCX6I6GZ.js} +1 -1
  238. package/dist/cdn/{U5EERXBG.js → UDOULYDC.js} +2 -2
  239. package/dist/cdn/{G4VDYGGB.js → UEYWAQCQ.js} +2 -2
  240. package/dist/cdn/{G2U2FC5M.js → UIZ5RNY5.js} +2 -2
  241. package/dist/cdn/{N4BYA7EI.js → UKWTBSYT.js} +2 -2
  242. package/dist/cdn/{2HCC42DE.js → USL5VVU7.js} +2 -2
  243. package/dist/cdn/{DKB2YHXU.js → UY2ZBEHZ.js} +2 -2
  244. package/dist/cdn/{QH7FXF55.js → UYB7XUC7.js} +2 -2
  245. package/dist/cdn/{MEIJQ75E.js → UYOJLBLJ.js} +2 -2
  246. package/dist/cdn/{QNUW3X3Y.js → V2FHJSTQ.js} +2 -2
  247. package/dist/cdn/{HVCG3MNH.js → V2V2PODO.js} +2 -2
  248. package/dist/cdn/{3J3GWPGS.js → VJOELFDU.js} +2 -2
  249. package/dist/cdn/{CST36BMZ.js → VLQOV3NQ.js} +2 -2
  250. package/dist/cdn/{J6SZZA33.js → VS4BFKL3.js} +1 -1
  251. package/dist/cdn/{DHZBJPEI.js → WCEI4GB5.js} +2 -2
  252. package/dist/cdn/{OSZNMAJF.js → WFX5NIY6.js} +2 -2
  253. package/dist/cdn/{ZRIOHEOT.js → WMIMNCJL.js} +2 -2
  254. package/dist/cdn/{RHC7DNDW.js → WOW7ES6W.js} +1 -1
  255. package/dist/cdn/{C6RAYAOF.js → X24JTDBX.js} +2 -2
  256. package/dist/cdn/{AGN7ST2V.js → X6CICXR6.js} +2 -2
  257. package/dist/cdn/{KF6SZPRF.js → XIXNUDIE.js} +2 -2
  258. package/dist/cdn/{ZQRUDWGJ.js → XNBFYXGC.js} +2 -2
  259. package/dist/cdn/{DDIKF3Y6.js → XNRVLUGL.js} +2 -2
  260. package/dist/cdn/{SLARORK6.js → XPXOPI63.js} +2 -2
  261. package/dist/cdn/{SEVUDBYU.js → XRFRTU7J.js} +2 -2
  262. package/dist/cdn/{XYDZ75MI.js → XUHIMDFC.js} +2 -2
  263. package/dist/cdn/{PK2KYHCB.js → XUYTRG7D.js} +2 -2
  264. package/dist/cdn/{BJQ5IZYR.js → XX3BIAK6.js} +2 -2
  265. package/dist/cdn/{2WXZBSU3.js → Y4H3CA2O.js} +2 -2
  266. package/dist/cdn/{TGECS5FN.js → Y4V6VBRL.js} +2 -2
  267. package/dist/cdn/{V3KV4ZPK.js → YAAW6QK6.js} +1 -1
  268. package/dist/cdn/{WONNB7ZA.js → YBKACDGP.js} +2 -2
  269. package/dist/cdn/{BY7442LE.js → YDXJCA4W.js} +2 -2
  270. package/dist/cdn/{D3MKS27U.js → YEGN6TNL.js} +2 -2
  271. package/dist/cdn/{TL4CBL4J.js → YGDA57Y2.js} +2 -2
  272. package/dist/cdn/{WS7S5Z7C.js → YXUJQUV6.js} +2 -2
  273. package/dist/cdn/{B2AUDLTO.js → YYRFIXIU.js} +2 -2
  274. package/dist/cdn/{F3ITEU5L.js → Z4655QBA.js} +2 -2
  275. package/dist/cdn/{3UITRYPY.js → Z5LX6R34.js} +1 -1
  276. package/dist/cdn/{QPQDH5UO.js → ZA5MIGE2.js} +2 -2
  277. package/dist/cdn/{CDC2AGQU.js → ZIBNROWW.js} +2 -2
  278. package/dist/cdn/{Q4KUEUUN.js → ZJO4B77W.js} +2 -2
  279. package/dist/cdn/{BN32H2NI.js → ZMPOAOPQ.js} +2 -2
  280. package/dist/cdn/{PBS5CVH6.js → ZMWBSBOD.js} +2 -2
  281. package/dist/cdn/{HY3PBNPE.js → ZSTVKND7.js} +2 -2
  282. package/dist/cdn/{PWAA6UKX.js → ZVCG3MTM.js} +2 -2
  283. package/dist/cdn/{6OFBEWUU.js → ZWTSIAER.js} +1 -1
  284. package/dist/cdn/assets/layer-table/t9n/messages.ar.json +1 -1
  285. package/dist/cdn/assets/layer-table/t9n/messages.bg.json +1 -1
  286. package/dist/cdn/assets/layer-table/t9n/messages.bs.json +1 -1
  287. package/dist/cdn/assets/layer-table/t9n/messages.ca.json +1 -1
  288. package/dist/cdn/assets/layer-table/t9n/messages.cs.json +1 -1
  289. package/dist/cdn/assets/layer-table/t9n/messages.da.json +1 -1
  290. package/dist/cdn/assets/layer-table/t9n/messages.de.json +1 -1
  291. package/dist/cdn/assets/layer-table/t9n/messages.el.json +1 -1
  292. package/dist/cdn/assets/layer-table/t9n/messages.es.json +1 -1
  293. package/dist/cdn/assets/layer-table/t9n/messages.et.json +1 -1
  294. package/dist/cdn/assets/layer-table/t9n/messages.fi.json +1 -1
  295. package/dist/cdn/assets/layer-table/t9n/messages.fr.json +1 -1
  296. package/dist/cdn/assets/layer-table/t9n/messages.he.json +1 -1
  297. package/dist/cdn/assets/layer-table/t9n/messages.hr.json +1 -1
  298. package/dist/cdn/assets/layer-table/t9n/messages.hu.json +1 -1
  299. package/dist/cdn/assets/layer-table/t9n/messages.id.json +1 -1
  300. package/dist/cdn/assets/layer-table/t9n/messages.it.json +1 -1
  301. package/dist/cdn/assets/layer-table/t9n/messages.ja.json +1 -1
  302. package/dist/cdn/assets/layer-table/t9n/messages.ko.json +1 -1
  303. package/dist/cdn/assets/layer-table/t9n/messages.lt.json +1 -1
  304. package/dist/cdn/assets/layer-table/t9n/messages.lv.json +1 -1
  305. package/dist/cdn/assets/layer-table/t9n/messages.nl.json +1 -1
  306. package/dist/cdn/assets/layer-table/t9n/messages.no.json +1 -1
  307. package/dist/cdn/assets/layer-table/t9n/messages.pl.json +1 -1
  308. package/dist/cdn/assets/layer-table/t9n/messages.pt-BR.json +1 -1
  309. package/dist/cdn/assets/layer-table/t9n/messages.pt-PT.json +1 -1
  310. package/dist/cdn/assets/layer-table/t9n/messages.ro.json +1 -1
  311. package/dist/cdn/assets/layer-table/t9n/messages.ru.json +1 -1
  312. package/dist/cdn/assets/layer-table/t9n/messages.sk.json +1 -1
  313. package/dist/cdn/assets/layer-table/t9n/messages.sl.json +1 -1
  314. package/dist/cdn/assets/layer-table/t9n/messages.sr.json +1 -1
  315. package/dist/cdn/assets/layer-table/t9n/messages.sv.json +1 -1
  316. package/dist/cdn/assets/layer-table/t9n/messages.th.json +1 -1
  317. package/dist/cdn/assets/layer-table/t9n/messages.tr.json +1 -1
  318. package/dist/cdn/assets/layer-table/t9n/messages.uk.json +1 -1
  319. package/dist/cdn/assets/layer-table/t9n/messages.vi.json +1 -1
  320. package/dist/cdn/assets/layer-table/t9n/messages.zh-CN.json +1 -1
  321. package/dist/cdn/assets/layer-table/t9n/messages.zh-HK.json +1 -1
  322. package/dist/cdn/assets/layer-table/t9n/messages.zh-TW.json +1 -1
  323. package/dist/cdn/assets/map-card/t9n/messages.ar.json +1 -1
  324. package/dist/cdn/assets/map-card/t9n/messages.bg.json +1 -1
  325. package/dist/cdn/assets/map-card/t9n/messages.bs.json +1 -1
  326. package/dist/cdn/assets/map-card/t9n/messages.ca.json +1 -1
  327. package/dist/cdn/assets/map-card/t9n/messages.cs.json +1 -1
  328. package/dist/cdn/assets/map-card/t9n/messages.da.json +1 -1
  329. package/dist/cdn/assets/map-card/t9n/messages.de.json +1 -1
  330. package/dist/cdn/assets/map-card/t9n/messages.el.json +1 -1
  331. package/dist/cdn/assets/map-card/t9n/messages.es.json +1 -1
  332. package/dist/cdn/assets/map-card/t9n/messages.et.json +1 -1
  333. package/dist/cdn/assets/map-card/t9n/messages.fi.json +1 -1
  334. package/dist/cdn/assets/map-card/t9n/messages.fr.json +1 -1
  335. package/dist/cdn/assets/map-card/t9n/messages.he.json +1 -1
  336. package/dist/cdn/assets/map-card/t9n/messages.hr.json +1 -1
  337. package/dist/cdn/assets/map-card/t9n/messages.hu.json +1 -1
  338. package/dist/cdn/assets/map-card/t9n/messages.id.json +1 -1
  339. package/dist/cdn/assets/map-card/t9n/messages.it.json +1 -1
  340. package/dist/cdn/assets/map-card/t9n/messages.ja.json +1 -1
  341. package/dist/cdn/assets/map-card/t9n/messages.ko.json +1 -1
  342. package/dist/cdn/assets/map-card/t9n/messages.lt.json +1 -1
  343. package/dist/cdn/assets/map-card/t9n/messages.lv.json +1 -1
  344. package/dist/cdn/assets/map-card/t9n/messages.nl.json +1 -1
  345. package/dist/cdn/assets/map-card/t9n/messages.no.json +1 -1
  346. package/dist/cdn/assets/map-card/t9n/messages.pl.json +1 -1
  347. package/dist/cdn/assets/map-card/t9n/messages.pt-BR.json +1 -1
  348. package/dist/cdn/assets/map-card/t9n/messages.pt-PT.json +1 -1
  349. package/dist/cdn/assets/map-card/t9n/messages.ro.json +1 -1
  350. package/dist/cdn/assets/map-card/t9n/messages.ru.json +1 -1
  351. package/dist/cdn/assets/map-card/t9n/messages.sk.json +1 -1
  352. package/dist/cdn/assets/map-card/t9n/messages.sl.json +1 -1
  353. package/dist/cdn/assets/map-card/t9n/messages.sr.json +1 -1
  354. package/dist/cdn/assets/map-card/t9n/messages.sv.json +1 -1
  355. package/dist/cdn/assets/map-card/t9n/messages.th.json +1 -1
  356. package/dist/cdn/assets/map-card/t9n/messages.tr.json +1 -1
  357. package/dist/cdn/assets/map-card/t9n/messages.uk.json +1 -1
  358. package/dist/cdn/assets/map-card/t9n/messages.vi.json +1 -1
  359. package/dist/cdn/assets/map-card/t9n/messages.zh-CN.json +1 -1
  360. package/dist/cdn/assets/map-card/t9n/messages.zh-HK.json +1 -1
  361. package/dist/cdn/assets/map-card/t9n/messages.zh-TW.json +1 -1
  362. package/dist/cdn/index.js +2 -2
  363. package/dist/chunks/Auth.js +1 -1
  364. package/dist/chunks/appConfig.js +1 -1
  365. package/dist/chunks/cardFetchingUtils.js +1 -1
  366. package/dist/chunks/common.js +1 -1
  367. package/dist/chunks/deployAppContexts.js +1 -1
  368. package/dist/chunks/downloadUtils.js +1 -1
  369. package/dist/chunks/helpers.js +1 -1
  370. package/dist/chunks/index.js +1 -1
  371. package/dist/chunks/interfaces.js +1 -1
  372. package/dist/chunks/loadModules.js +1 -1
  373. package/dist/chunks/mapViewUtils.js +1 -1
  374. package/dist/chunks/pciUtils.js +1 -1
  375. package/dist/chunks/popupUtils.js +1 -1
  376. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  377. package/dist/chunks/privilegeUtils.js +1 -1
  378. package/dist/chunks/publicNotificationStore.js +1 -1
  379. package/dist/chunks/queryUtils.js +1 -1
  380. package/dist/chunks/runtime.js +1 -1
  381. package/dist/chunks/solution-store.js +1 -1
  382. package/dist/chunks/templates.js +1 -1
  383. package/dist/chunks/useT9n.js +1 -1
  384. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  385. package/dist/components/basemap-gallery/customElement.js +1 -1
  386. package/dist/components/buffer-tools/customElement.js +1 -1
  387. package/dist/components/card-manager/customElement.js +1 -1
  388. package/dist/components/consent-manager/customElement.js +1 -1
  389. package/dist/components/create-feature/customElement.js +1 -1
  390. package/dist/components/create-related-feature/customElement.js +1 -1
  391. package/dist/components/crowdsource-manager/customElement.js +1 -1
  392. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  393. package/dist/components/deduct-calculator/customElement.js +1 -1
  394. package/dist/components/delete-button/customElement.js +1 -1
  395. package/dist/components/delete-dialog/customElement.js +1 -1
  396. package/dist/components/edit-card/customElement.js +1 -1
  397. package/dist/components/feature-details/customElement.js +1 -1
  398. package/dist/components/feature-list/customElement.js +1 -1
  399. package/dist/components/field-selection/customElement.js +1 -1
  400. package/dist/components/floor-filter/customElement.js +1 -1
  401. package/dist/components/info-card/customElement.js +1 -1
  402. package/dist/components/json-editor/customElement.js +1 -1
  403. package/dist/components/layer-list/customElement.js +1 -1
  404. package/dist/components/layer-table/customElement.js +1 -1
  405. package/dist/components/map-card/customElement.js +1 -1
  406. package/dist/components/map-draw-tools/customElement.js +1 -1
  407. package/dist/components/map-fullscreen/customElement.js +1 -1
  408. package/dist/components/map-layer-picker/customElement.js +1 -1
  409. package/dist/components/map-legend/customElement.js +1 -1
  410. package/dist/components/map-picker/customElement.js +1 -1
  411. package/dist/components/map-search/customElement.js +1 -1
  412. package/dist/components/map-select-tools/customElement.js +1 -1
  413. package/dist/components/map-tools/customElement.js +1 -1
  414. package/dist/components/pci-calculator/customElement.js +1 -1
  415. package/dist/components/pdf-download/customElement.js +1 -1
  416. package/dist/components/public-notification/customElement.js +1 -1
  417. package/dist/components/refine-selection/customElement.js +1 -1
  418. package/dist/components/selection-tool/customElement.js +1 -1
  419. package/dist/components/solution-article-card/customElement.js +1 -1
  420. package/dist/components/solution-configuration/customElement.js +1 -1
  421. package/dist/components/solution-configure-dialog/customElement.d.ts +7 -1
  422. package/dist/components/solution-configure-dialog/customElement.js +36 -22
  423. package/dist/components/solution-configure-titles/customElement.js +1 -1
  424. package/dist/components/solution-contents/customElement.js +1 -1
  425. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  426. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  427. package/dist/components/solution-deployed-card/customElement.d.ts +13 -0
  428. package/dist/components/solution-deployed-card/customElement.js +39 -30
  429. package/dist/components/solution-deployed-card/index.d.ts +2 -1
  430. package/dist/components/solution-deployed-card/index.js +2 -1
  431. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  432. package/dist/components/solution-details-card/customElement.js +1 -1
  433. package/dist/components/solution-details-panel/customElement.js +1 -1
  434. package/dist/components/solution-item/customElement.js +1 -1
  435. package/dist/components/solution-item-accordion/customElement.js +1 -1
  436. package/dist/components/solution-item-details/customElement.js +1 -1
  437. package/dist/components/solution-item-diagram/customElement.js +1 -1
  438. package/dist/components/solution-item-icon/customElement.js +1 -1
  439. package/dist/components/solution-item-sharing/customElement.js +1 -1
  440. package/dist/components/solution-organization-variables/customElement.js +1 -1
  441. package/dist/components/solution-resource-item/customElement.js +1 -1
  442. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  443. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  444. package/dist/components/solution-template-data/customElement.js +1 -1
  445. package/dist/components/solution-variables/customElement.js +1 -1
  446. package/dist/components/solutions-all-panel/customElement.js +1 -1
  447. package/dist/components/solutions-all-shell/customElement.js +1 -1
  448. package/dist/components/solutions-article-panel/customElement.js +1 -1
  449. package/dist/components/solutions-articles/customElement.js +1 -1
  450. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  451. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  452. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  453. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  454. package/dist/components/spatial-ref/customElement.js +1 -1
  455. package/dist/components/store-manager/customElement.js +1 -1
  456. package/dist/docs/api.json +126 -1
  457. package/dist/docs/docs.json +133 -2
  458. package/dist/docs/vscode.html-custom-data.json +7 -2
  459. package/dist/docs/web-types.json +34 -5
  460. package/dist/index.d.ts +15 -1
  461. package/dist/index.js +1 -1
  462. package/dist/loader.js +3 -3
  463. package/dist/types/lumina.d.ts +2 -1
  464. package/dist/types/preact.d.ts +2 -1
  465. package/dist/types/react.d.ts +2 -1
  466. package/dist/types/stencil.d.ts +2 -1
  467. package/package.json +1 -1
  468. package/dist/cdn/4UFLKP6T.js +0 -4
  469. package/dist/cdn/6FBUKPW2.js +0 -4
  470. package/dist/cdn/BP6NB6LJ.js +0 -18
  471. package/dist/cdn/NZUFRJWD.js +0 -4
  472. package/dist/cdn/S5AIQSGG.js +0 -18
  473. package/dist/cdn/T4PEWJBT.js +0 -4
  474. package/dist/cdn/V3STUVBX.js +0 -4
  475. package/dist/cdn/XMOLE7SD.js +0 -4
  476. package/dist/cdn/ZXBKW6YA.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{$ as x,$a as rr,$b as Lr,A as pt,Aa as de,Ab as yr,B as Ge,Ba as To,Bb as Pr,C as Pe,Ca as Ut,Cb as xr,D as P,Da as Wt,Db as re,E as ut,Ea as Nt,Eb as wr,F as ft,Fa as Lt,Fb as Sr,G as u,Ga as Vt,Gb as Er,H as lt,Ha as $t,Hb as br,Ia as Bt,Ib as Tr,J as xe,Ja as zt,Jb as vr,K as E,Ka as Gt,Kb as Fr,L as we,La as jt,Lb as _r,M as It,Ma as Kt,Mb as Or,N as Po,Na as Ht,Nb as Rr,O as xo,Oa as qt,Ob as kr,P as je,Pa as Jt,Pb as Ar,Q as K,Qa as vo,Qb as Mr,R as gt,Ra as De,Rb as Cr,S as ht,Sa as Dt,T as yt,Ta as Zt,Tb as Ur,U as L,Ua as Qt,Ub as Qe,V as Pt,Va as te,Vb as Oo,W as z,Wa as Yt,Wb as Ee,X as Ke,Xa as Xt,Xb as Ye,Y as xt,Ya as er,Yb as Wr,Z as wo,Za as or,Zb as Nr,_ as oe,_a as tr,a as Ae,aa as b,ab as nr,ac as Vr,ba as J,bb as sr,c as B,ca as He,cb as ir,cc as $r,d as X,da as wt,db as mr,ea as St,eb as Se,f,fa as So,fb as v,fc as Br,g as ho,ga as Et,gb as Ze,gc as be,h as se,ha as bt,hc as Xe,i as We,ia as Tt,ic as eo,j as me,ja as vt,jb as ar,jc as zr,k as Ne,ka as Ft,kb as cr,kc as oo,l as Le,la as _t,lb as V,lc as Gr,m as yo,ma as A,mb as dr,n as it,na as ce,nb as pe,o as Ve,oa as H,ob as q,p as mt,pa as qe,pb as pr,q as $e,qa as Je,qb as Fo,r as Be,ra as Ot,rb as ur,s as ee,sb as _o,t as ae,ta as Rt,tb as fr,u as at,ua as kt,ub as lr,v as I,va as At,vb as Ir,w as ct,wa as Eo,x as dt,xa as bo,xb as gr,y as ze,ya as Mt,z as C,za as Ct,zb as hr}from"./UPVA5Z5X.js";import{a as ie,g as ye}from"./LHDC2KUS.js";import{a as W}from"./XINOQA62.js";import{a as j,b as Me,c as Ce,d as Ue}from"./NDXSJLKV.js";import{e as G,f as rt,j as Oe,l as Re,o as nt,s as ke}from"./SPYEGWSA.js";import{a as tt}from"./3UIKDYVX.js";import{a as st}from"./NHKMUTOW.js";import{a as N}from"./3UITRYPY.js";import{d as U}from"./QTN6BMW2.js";function ue(e,o="application/octet-stream"){if(typeof Blob<"u"){let r=[];for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);let t=new Uint8Array(r);return new Blob([t],{type:o})}else throw new Error("stringToBlob is not currently supported on Node")}function jr(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var to={};U(to,{_mostRecentlyEditedLayer:()=>Ro,convertItemToTemplate:()=>Ts,createItemFromTemplate:()=>vs,postProcess:()=>Fs});function Ts(e,o,r,t){return new Promise((n,s)=>{let i=z(e);ir(e.groupDesignations)?Nt(i,r).then(a=>n(a),a=>s(P(a))):(i.estimatedDeploymentCostFactor=10,H(i.item.id,r).then(a=>{i.data=a,rr(i,r).then(c=>{c.item.modified=Math.max(c.item.modified,Ro(i.properties.layers),Ro(i.properties.tables)),er(c,r).then(d=>{c.dependencies=d.map(p=>p.id),n(Mt(c,d,!1,t))},d=>s(P(d)))},c=>s(P(c)))}))})}function vs(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),delete s.item.thumbnail,Ge(s,"properties.service.size");let i=Ct(s.data);Qt(s,r,o).then(m=>{m.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?(s=To(s,o,m),$t(s,o,i,r).then(()=>{s=To(s,o,m),pe({...s.item,url:void 0},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?A(s.itemId,r).then(a=>{s.item=a,u(s,"item.url")&&!s.item.url.endsWith("/")&&(s.item.url+="/"),n({item:s,id:m.serviceItemId,type:s.type,postProcess:oe({item:s.item,data:s.data})||vo(s)})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function Fs(e,o,r,t,n,s,i){return new Promise((m,a)=>{q(e,s,i).then(c=>{vo(t)?(t=x(t,s),De(t,i,t.item.url,s).then(m,a)):m(c)},a)})}function Ro(e){let o=0;return e.forEach(r=>{o=r.editingInfo?.lastEditDate?Math.max(o,r.editingInfo.lastEditDate):o}),o}var l={};U(l,{convertItemToTemplate:()=>_s,createItemFromTemplate:()=>Os});function _s(e,o,r){return new Promise(t=>{let n=z(e);n.item.id=b(n.item.id,n.item.id,".itemId");let s=new Promise(m=>{ce(n.itemId,n.item.name,r).then(a=>{!a||a.size===0?m(null):m(a)})}),i=Promise.resolve({});Promise.all([s,i]).then(m=>{let[a]=m;if(a){let c=Wr(a,n.item.name);n.properties[c.filename]=c.mimeType;let d=Ye(n.itemId,c.blob.name,1,c.blob.name===c.filename?Ee.data:Ee.fakezip),p={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=p,n.resources.push(d.folder+"/"+d.filename),t(n)}else t(n)})})}function Os(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(i=>{t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,i.id)?(s.itemId=i.id,o[e.itemId]={itemId:i.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,i.id),n({item:s,id:i.id,type:s.type,postProcess:!1})):(t(e.itemId,f.Cancelled,0),v(i.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}var Ho={};U(Ho,{_getFormDataFilename:()=>On,_replaceFeatureServiceURLs:()=>Sn,_replaceItemIds:()=>En,_replacePortalBaseUrls:()=>bn,_replaceWorkflowManagerBaseUrls:()=>Tn,_updateZipObjectTextContent:()=>vn,convertItemToTemplate:()=>pi,createItemFromTemplate:()=>ui,postProcess:()=>_n,postProcessFormItems:()=>li,swizzleFormObject:()=>jo,templatizeFormData:()=>Ko});function qr(e,o){return Rs(e,o)}function Rs(e,o){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(t=>{let n=u(e,t);Array.isArray(n)&&n.forEach(s=>{s.type==="mapWidget"&&(e.dependencies.indexOf(s.itemId)<0&&e.dependencies.push(s.itemId),s.itemId=b(s.itemId,s.itemId,".itemId")),Array.isArray(s.datasets)&&ks(s,e,o)})}),e}function ks(e,o,r){e.datasets.forEach(t=>{if(u(t,"dataSource.type")!=="arcadeDataSource"){let s=u(t,"dataSource.itemId");if(s){o.dependencies.indexOf(s)<0&&o.dependencies.push(s);let i=u(t,"dataSource.layerId");de(i?.toString(),s,"",r),t.dataSource.itemId=b(s,s,".itemId")}}})}function Jr(e,o){let r=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return r.forEach(t=>{let n=u(e,t);As(n,o)}),r.forEach(t=>{Ms(e,t,o)}),e}function As(e,o){e&&Array.isArray(e)&&e.forEach(r=>{Array.isArray(r.datasets)&&r.datasets.forEach(t=>{let n=Po(u(t,"dataSource.itemId"));if(n){let s=xo(u(t,"dataSource.layerId"));o.some(i=>i.itemId===n&&i.layerId===s?(Hr(i,r.id),!0):!1)}else{let s=u(t,"dataSource.id");if(s){let i=s.split("#")[1];o.some(m=>m.ids.indexOf(i)>-1?(Hr(m,r.id),!0):!1)}}})})}function Ms(e,o,r){let t=u(e,o);t&&E(e,o,Cs(t,r))}function Cs(e,o){return Array.isArray(e)?e.map(r=>{let t=r;return Array.isArray(t.events)&&(t.events=t.events.map(n=>{let s=n;return Array.isArray(s.actions)&&(s.actions=s.actions.map(i=>{let m=i;if(m.fieldMap&&m.targetId&&m.targetId.indexOf("#")>-1){let a=Kr(m,o);if(a){let c=u(a,"fields"),d=u(a,"basePath");Array.isArray(c)&&d&&(m.fieldMap=m.fieldMap.map(p=>{let g=p;return g.targetName=J(g.targetName,c,d),g}))}}return m})),s})),Array.isArray(t.datasets)&&(t.datasets=t.datasets.map(n=>{let s=n;if(s.type==="serviceDataset"){let i=Kr(n,o);if(i){let m=u(i,"fields"),a=u(i,"basePath");Array.isArray(m)&&a&&(t=J(t,m,a),s=J(s,m,a))}}return s})),t}):e}function Kr(e,o){let r,t=u(e,"dataSource.id")||u(e,"targetId");if(t){let n=t.split("#")[1];if(!o.some(s=>(r=s.ids.indexOf(n)>-1?s:r,s.ids.indexOf(n)>-1))){let s=t.split("#")[0];o.some(i=>{let a=(i.references||[]).indexOf(s)>-1;return r=a?i:r,a})}}else{let n=Po(u(e,"dataSource.itemId")),s=xo(u(e,"dataSource.layerId"));n&&o.some(i=>{let m=n===i.itemId&&s===i.layerId;return r=m?i:r,m})}return r}function Hr(e,o){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(o)<0&&e.references.push(o)}var fe={};U(fe,{convertItemToTemplate:()=>js,convertNotebookToTemplate:()=>$o,createItemFromTemplate:()=>Ks,deleteProps:()=>sn,fineTuneCreatedItem:()=>Vo,postProcess:()=>qs,postProcessNotebookTemplates:()=>Hs});function Qr(e,o,r,t){return new Promise((n,s)=>{let i="";if(e.item.url){let m=e.item.url,a=m.indexOf("//");e.item.url=L(K)+m.substring(m.indexOf("/",a+2),m.lastIndexOf("=")+1)+e.item.id,i=m.replace(m.substring(m.indexOf("/",a+2)),"")}e.dependencies=Ns(e),E(e,"data.folderId","{{folderId}}"),$s(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),Xr(e,"data.appItemId",e.itemId),No(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],L(K)),E(e,"data.geometryService",L(gt)),Us(e,r,i,t).then(()=>{Zr(e,r,i,"data.widgetPool.widgets").then(m=>{Zr(m,r,i,"data.widgetOnScreen.widgets",!0).then(a=>{Ws(a,r,i,"data.values").then(c=>{n(c)},c=>s(P(c)))},a=>s(P(a)))},m=>s(P(m)))},m=>s(P(m)))})}function Us(e,o,r,t){return new Promise((n,s)=>{let i=u(e,"data.dataSource.dataSources");if(i&&Object.keys(i).length>0){let m=new Array;Object.keys(i).forEach(a=>{let c=i[a];E(c,"portalUrl",L(K));let d=u(c,"itemId");if(u(c,"url")){if(d){let g=c.url.substr(c.url.lastIndexOf("/")+1);de(g.toString(),d,c.url,t),c.itemId=b(d,d,".layer"+g+".itemId")}let p=Wo(c.url,r,[],[],o);m.push(new Promise((g,h)=>{Uo(p.serviceRequests,p.requestUrls,p.testString).then(y=>{c.url=y,g()},y=>h(P(y)))}))}else d&&(c.itemId=b(d,d,".itemId"))}),Promise.all(m).then(()=>n(e),a=>s(P(a)))}else n(e)})}function Zr(e,o,r,t,n=!1){return new Promise((s,i)=>{let m=u(e,t)||[],a=[],c=[];if(m.forEach(d=>{!n&&u(d,"icon")&&No(d,["icon"],L(K));let p=d.config;if(p){let g=JSON.stringify(p),h=Wo(g,r,c,a,o);d.config=JSON.parse(h.testString),a=h.serviceRequests,c=h.requestUrls}}),a.length>0){let d=JSON.stringify(m);Uo(a,c,d).then(p=>{E(e,t,JSON.parse(p)),s(e)},p=>i(P(p)))}else s(e)})}function Ws(e,o,r,t){return new Promise((n,s)=>{let i=u(e,t),m=[],a=[];if(i){u(i,"icon")&&No(i,["icon"],L(K));let c=JSON.stringify(i),d=Wo(c,r,a,m,o);i=JSON.parse(d.testString),m=d.serviceRequests,a=d.requestUrls}if(m.length>0){let c=JSON.stringify(i);Uo(m,a,c).then(d=>{E(e,t,JSON.parse(d)),n(e)},d=>s(P(d)))}else n(e)})}function Uo(e,o,r){return new Promise((t,n)=>{if(e&&e.length>0){let s=0;Promise.all(e).then(i=>{i.forEach(m=>{if(u(m,"serviceItemId")){let a="{{"+m.serviceItemId+(m.hasOwnProperty("id")?".layer"+m.id:"")+".url}}";r=ro(r,o[s],a,!0)}s++}),t(r)},i=>n(P(i)))}else t(r)})}function Wo(e,o,r,t,n){let s={f:"json",authentication:n},i=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return i&&i.length&&i.forEach(m=>{m.indexOf("NAServer")>-1?e=ro(e,m,L(yt)):m.indexOf("GeocodeServer")>-1?e=ro(e,m,L(ht)):o&&m.indexOf(o)>-1?e=ro(e,o,L(K)):m.indexOf("FeatureServer")>-1&&r.indexOf(m)===-1&&(r.push(m),t.push(B(m,s)))}),{testString:e,requestUrls:r,serviceRequests:t}}function ro(e,o,r,t=!1){let n=t&&e.indexOf('"')>-1,s=new RegExp(n?'"'+o+'"':o,"gmi");return e.replace(s,n?'"'+r+'"':r)}function No(e,o,r){o.forEach(t=>{let n=u(e,t);if(n){let s=n.substring(n.indexOf("/",n.indexOf("//")+2));E(e,t,s!==n?r+s:r)}})}function Yr(e,o,r,t){return new Promise(n=>{if(we(e,["WAB2D","WAB3D","Web AppBuilder"])){let s={id:o.itemId,url:o.item.url,data:o.data},i=V(s,t),m={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:o.itemId,url:Be(x(L(K),r))+"sharing/rest/content/items/"+o.itemId+"/package"},a=te(m,{},t,r.folderId);Promise.all([i,a]).then(()=>n(null),()=>n(null))}else n(null)})}function Ns(e){let o=Ls;return we(e,["WAB2D","WAB3D","Web AppBuilder"])&&(o=Vs),o(e)}function Ls(e){return lt(e,["data.values.webmap","data.values.group"])}function Vs(e){let o=[],r=u(e,"data.map.itemId");r&&o.push(r);let t=u(e,"data.dataSource.dataSources");return t&&Object.keys(t).forEach(n=>{let s=t[n];s.itemId&&o.push(s.itemId)}),o}function $s(e,o){o.forEach(r=>{let t=u(e,r);Xr(e,r,t)})}function Xr(e,o,r){E(e,o,b(r,r,".itemId"))}function en(e,o){let r=u(e,"data.dataSource.dataSources");r&&Object.keys(r).length>0&&(Object.keys(r).forEach(s=>{let i=r[s];r[s]=Mo(i,o)}),E(e,"data.dataSource.dataSources",r)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(s=>{let i=u(e,s);i&&E(e,s,Bs(i,o))});let n=u(e,"data.values");return n&&E(e,"data.values",Mo(n,o)),e}function Mo(e,o,r=!1){return e=Gs(e,o,r),zs(e,o).forEach(n=>{e=J(e,n.fields,n.basePath,r)}),e}function Bs(e,o){let r=["SmartEditor","Screening"];return e.map(t=>{if(t.config){let n=r.indexOf(t.name)>-1;t.config=Mo(t.config,o,n)}return t})}function zs(e,o){let r=JSON.stringify(e);return o.filter(n=>Ao(n,r)<4).sort((n,s)=>Ao(n,r)-Ao(s,r))}function Ao(e,o){let r=e.url,t=e.itemId,n=e.layerId,s;return r&&!isNaN(n)&&(s=new RegExp(r.replace(/[.]/,".layer"+n+"."),"gm")),s&&s.test(o)||e.ids.length>0&&e.ids.some(i=>new RegExp(i,"gm").test(o))?1:r&&new RegExp(r,"gm").test(o)?2:t&&new RegExp(t,"gm").test(o)?3:4}function Gs(e,o,r){let t=JSON.stringify(e),n=o.filter(s=>{let i;s.url&&!isNaN(s.layerId)&&(i=new RegExp(s.url.replace(/[.]/,".layer"+s.layerId+"."),"gm"));let m=!1;if(s.ids.length>0&&(m=s.ids.some(a=>new RegExp(a,"gm").test(t))),m||i&&i.test(t))return s});return n.length>0&&n.forEach(s=>{e=Co(e,s,r),s.ids.length>0&&s.ids.forEach(i=>{e=no(e,s,i,r)})}),e}function Co(e,o,r){let t={},n=o.url,s=o.layerId,i;if(n&&!isNaN(s)&&(i=new RegExp(n.replace(/[.]/,".layer"+s+"."),"gm")),Array.isArray(e))t=e.map(m=>Co(m,o,r));else if(typeof e=="object")for(let m in e)e[m]!=null&&typeof e[m]=="object"?t[m]=Co(e[m],o,r):(i&&i.test(e[m])&&(e=J(e,o.fields,o.basePath,r)),t[m]=e[m]);else t=e;return t}function no(e,o,r,t){let n={},s=new RegExp(r,"gm");if(Array.isArray(e))n=e.map(i=>no(i,o,r,t));else if(typeof e=="object")for(let i in e)if(e[i]!==null){let m;try{m=JSON.parse(e[i])}catch{m=void 0}m&&typeof m=="object"?n[i]=JSON.stringify(no(m,o,r,t)):typeof e[i]=="object"?(s.test(i)&&t&&(e[i]=J(e[i],o.fields,o.basePath,t)),n[i]=no(e[i],o,r,t)):(s.test(e[i])&&(e=J(e,o.fields,o.basePath,t)),n[i]=e[i])}else n[i]=e[i];else n=e;return n}function on(e,o,r,t){return Jt(e,r,t)}function tn(e,o,r){return De(e,o,"",r)}function D(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0))t(e.itemId,f.Ignored,0),n(I(e.type));else{let s=C(e);s=x(s,o);let i;e.type==="Web Mapping Application"&&e.data?s=JSON.parse(x(JSON.stringify(s),o)):e.type==="QuickCapture Project"&&e.data&&(i=JSON.stringify(s.data.application),delete s.data),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(m=>{if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.id))t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else{o[e.itemId]={itemId:m.id,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+m.id},s.itemId=m.id,s.type==="Web Mapping Application"&&e.data&&E(s,"data.appItemId",m.id);let a=oe(s.data),c=s.item.url;s=x(s,o);let d=Promise.resolve([]);if(s.relatedItems){let g=x(He(s.relatedItems),o);d=Dt(s.itemId,g,r)}let p;if(e.type==="Web Mapping Application"&&e.data&&we(e,["WAB2D","WAB3D","Web AppBuilder"]))p=Yr(e,s,o,r);else if(e.type==="Workforce Project")p=tn(s,r,o);else if(e.type==="QuickCapture Project"){if(i){let g=ze(x(JSON.parse(i),o),"qc.project.json");p=Br(g,s.itemId,"",g.name,r)}}else e.type==="Notebook"?p=Vo(e,s,o,r):c!==s.item.url?p=new Promise((g,h)=>{pr(m.id,s.item.url,r).then(()=>g(),h)}):p=Promise.resolve(null);Promise.all([d,p]).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.id)?n({item:s,id:m.id,type:s.type,postProcess:a}):(t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}})}function js(e,o,r,t){return Z(e,o,r,t)}function Ks(e,o,r,t){return D(e,o,r,t)}function $o(e){return new Promise(o=>{sn(e.data),o(e)})}function Hs(e,o){if(e.some(t=>t.type==="Notebook")){let t=Object.keys(o).filter(s=>s.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((s,i)=>(s=[...new Set([...s,...i.dependencies,i.itemId])],s),[]);e=e.map(s=>{if(s.type==="Notebook"){let i=s.data&&JSON.stringify(s.data);return n.forEach(m=>{new RegExp(m,"gim").test(i)&&(i=i.replace(m,"{{"+m+".itemId}}"),s.dependencies.indexOf(m)<0&&s.dependencies.push(m))}),t.forEach(m=>{let a=new RegExp(m,"gim");if(a.test(i)){let c=o[m];i=i.replace(a,c);let d=/[0-9A-F]{32}/gim,p=c.match(d)[0];s.dependencies.indexOf(p)<0&&s.dependencies.push(p)}}),s.data=JSON.parse(i),s}})}return e}function sn(e){if(e){let o=["metadata.interpreter","metadata.papermill"];Pe(e,o),(e.cells||[]).forEach(r=>{Pe(r,o)})}}function Vo(e,o,r,t){return new Promise((n,s)=>{let i={id:o.itemId,url:o.item.url,data:ze(o.data,o.itemId+".ipynb")};V(i,t).then(()=>n(null),s)})}function qs(e,o,r,t,n,s,i){return q(e,s,i)}function an(e,o,r){return new Promise((t,n)=>{Js(e,r).then(s=>{e.dependencies=s.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=mn(e.data.properties.ServiceURL,s.urlHash),e.data.properties.OverviewURL=mn(e.data.properties.OverviewURL,s.urlHash)),t(e)},s=>n(P(s)))})}function Js(e,o){return new Promise((r,t)=>{let n=[];if(e.data?.properties){let s=[];e.data.properties.ServiceURL&&s.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&s.push(e.data.properties.OverviewURL),Ds(s,n,o).then(i=>{r(i)},i=>t(P(i)))}else r({dependencies:n,urlHash:{}})})}function Ds(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d){let p=/.+FeatureServer/g.exec(d),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g]]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function mn(e,o){let r=e;if(e){let t=o[e];if(t){let n=e.substr(e.lastIndexOf("/")+1);r=b(t,t,".layer"+n+".url")}r=He(r.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return r}var Te={};U(Te,{_templatizeAdminEmail:()=>pn,_templatizeApplication:()=>dn,_templatizeId:()=>Bo,_templatizeUrl:()=>fn,_updateDependencies:()=>un,convertItemToTemplate:()=>Qs,convertQuickCaptureToTemplate:()=>zo,createItemFromTemplate:()=>Ys});function Qs(e,o,r,t){return Z(e,o,r,t)}function zo(e){return E(e,"data.application",dn(e.data.application,e)),e}function dn(e,o){Bo(e,"itemId"),pn(e);let r=e?.dataSources;return r&&Array.isArray(r)&&r.forEach(t=>{let n=t.featureServiceItemId;n&&(un(n,o),fn(t,"featureServiceItemId","url"),Bo(t,"featureServiceItemId"))}),e}function pn(e){u(e,"preferences.adminEmail")&&E(e,"preferences.adminEmail","{{user.email}}")}function un(e,o){o.dependencies.indexOf(e)===-1&&o.dependencies.push(e)}function fn(e,o,r){let t=u(e,o),n=u(e,r);if(n){let s=n.substr(n.lastIndexOf("/")+1);E(e,r,b(t,t,".layer"+s+".url"))}}function Bo(e,o){let r=u(e,o);r&&E(e,o,b(r,r,".itemId"))}function Ys(e,o,r,t){return D(e,o,r,t)}var Xs="home/webmap/viewer.html?webmap=";function ln(e,o,r,t){return new Promise((n,s)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?Be(L(K))+Xs+e.item.id:e.item.url),ei(e,r).then(i=>{e.dependencies=i.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&Go(e.data.baseMap.baseMapLayers,i.urlHash,t),e.data.operationalLayers&&Go(e.data.operationalLayers,i.urlHash,t),Go(e.data.tables,i.urlHash,t),oi(e.data)),n(e)},i=>s(P(i)))})}function ei(e,o){return new Promise((r,t)=>{let n=[];if(e.data){let s=e.data.baseMap?.baseMapLayers||[],i=e.data.operationalLayers||[],m=e.data.tables||[],a=s.concat(i).concat(m);ti(a,n,o).then(c=>{r(c)},c=>t(P(c)))}else r({dependencies:n,urlHash:{}})})}function oi(e){Ge(e,"initialState")}function ti(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return m.push(A(d.itemId,r)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let p=/.+FeatureServer/g.exec(d.url),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d.url,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(c[g].layerType==="VectorTileLayer"){let h=u(p,"typeKeywords");if(h&&h.includes("Vector Tile Style Editor")){o.indexOf(p.id)<0&&o.push(p.id),c[g].templatizeId=!0;let y=c[g].styleUrl.indexOf(p.id)+p.id.length;c[g].styleUrl=b(c[g].styleUrl.replace(c[g].styleUrl.substring(0,y),p.id),p.id,".itemUrl")}}else if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g].url]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function Go(e=[],o,r){e.forEach(t=>{if(t.itemId&&t.layerType==="VectorTileLayer")t.templatizeId&&(t.itemId=b(t.itemId,t.itemId,".itemId"),delete t.templatizeId);else if(t.url){let n=t.url.substr(t.url.lastIndexOf("/")+1),s=Object.keys(o).indexOf(t.url)>-1?o[t.url]:void 0;s&&(de(n,s,t.url,r),t.url=b(s,s,".layer"+n+".url"),t.itemId=b(s,s,".layer"+n+".itemId"))}})}function In(e,o){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(t=>ri(e,o,t)),e}function ri(e,o,r){let t=u(e,r);t&&E(e,r,ni(t,o))}function ni(e,o){return e.forEach(r=>{let t=si(r,o);if(t){let n=t.fields.map(i=>i.name);Gt(r,t,t.basePath,t.itemId,n),Kt(r,t.basePath,n),r.layerDefinition&&(qt(r.layerDefinition,t.basePath,n),Ht(r.layerDefinition,t.basePath,n));let s=u(r,"field.name");s&&E(r,"field.name",jt(s,r,t.itemId,t.basePath))}}),e}function si(e,o){let r;return o.some(t=>t.ids.indexOf(e.id)>-1?(r=t,!0):!1),r}function Z(e,o,r,t){return new Promise((n,s)=>{let i=z(e);i.item.id=b(i.item.id,i.item.id,".itemId");let m=qe(i.itemId,"forward",r),a=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":a=new Promise(d=>{H(i.itemId,r).then(p=>d(p))});break;case"Form":a=ce(i.itemId,i.item.name,r);break;case"QuickCapture Project":c=Je(i.itemId,r);break}Promise.all([a,m,c]).then(d=>{let[p,g,h]=d;Gr(i,t),i.data=oo(p,e.type,t);let y=g;i.dependencies=[],i.relatedItems=[],y.forEach(w=>{w.relationshipType!=="WMA2Code"&&(i.relatedItems.push(w),w.relatedItemIds.forEach(F=>{i.dependencies.indexOf(F)<0&&i.dependencies.push(F)}))}),e.type==="Data Pipeline"&&(i.dependencies=i.dependencies.concat(ii(p)));let S=Promise.resolve(i);switch(e.type){case"Dashboard":qr(i,t);break;case"Notebook":S=$o(i);break;case"Oriented Imagery Catalog":S=an(i,o,r);break;case"QuickCapture Project":i.resources=h,S=new Promise(async w=>{let F=null,R=-1;h&&(h.some((Ie,$)=>{let M=Ie.name==="qc.project.json";return M&&(F=Ie,R=$),M}),R>=0&&h.splice(R,1)),F&&(i.data={application:{...await $e(F)},name:"qc.project.json"}),i.data.application?.basemap?.type==="Web Map"&&i.dependencies.push(i.data.application.basemap.itemId);let Q=zo(i);w(Q)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":S=ln(i,o,r,t);break;case"Web Mapping Application":p&&(S=Qr(i,o,r,t));break;case"Workforce Project":S=on(i,o,r,t);break}S.then(n,w=>s(P(w)))})})}function ii(e){let o=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(t=>{if(t.type==="FeatureServiceSource"||t.type==="FeatureServiceSink"){let n=u(t,"parameters.layer.value.itemId");n&&o.push(n)}}),o}var _={};U(_,{convertItemToTemplate:()=>mi,createItemFromTemplate:()=>ai,postProcess:()=>di,postProcessFieldReferences:()=>ci});function mi(e,o,r,t){return Z(e,o,r,t)}function ai(e,o,r,t){return D(e,o,r,t)}function ci(e,o,r){switch(r){case"Web Mapping Application":en(e,o);break;case"Dashboard":Jr(e,o);break;case"Web Map":In(e,o);break}return e}function di(e,o,r,t,n,s,i){return q(e,s,i)}function pi(e,o,r,t){return _.convertItemToTemplate(e,o,r,t)}function so(e){return!!u(e,"properties.services")}function yn(e,o="https://survey123.arcgis.com"){let r=`${o}/api/survey/create`,t={credentials:"same-origin",method:"POST",body:tt({f:"json",...e},!0)};return fetch(r,t).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var Pn=function(o){let r=C(o),t=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(i,m)=>(i&&i[m]&&(i[m]=encodeURIComponent(i[m])),i);t.forEach(([i,m])=>n(r[i],m));let s=i=>n(i,"description");return r.questions=(r.questions||[]).map(i=>i.questions?{...i,questions:i.questions.map(s)}:s(i)),r};function xn(e,o,r){let{item:{title:t,description:n,tags:s,typeKeywords:i},properties:{form:m}}=e,{user:{username:a},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:p}}}=o,{token:g}=r.toCredential();return Rt(d,p,r).then(h=>{let y="Survey-",S=It(`${y}${t}`,o,"user.folders").replace(y,"");if(m.questions){let F=R=>(R.maps&&(R.maps=R.maps.map(Q=>({...Q,itemId:h.id}))),R);m.questions=m.questions.map(R=>R.questions?{...R,questions:R.questions.map(F)}:F(R))}let w=Pn(m);return{description:n,form:w,portalUrl:c,tags:s,title:S,token:g,typeKeywords:i,username:a}})}function wn(e,o,r,t){let n=x(e,o),{survey123Url:s}=o;return xn(n,o,r).then(i=>yn(i,s)).then(i=>{let{formId:m,featureServiceId:a}=i,c=Promise.resolve(null);return e.item.thumbnail&&(c=pe({id:m},null,r,e.item.thumbnail)),c.then(()=>A(m,r)).then(d=>(o[n.itemId]={itemId:m},o[n.properties.info.serviceInfo.itemId]={itemId:a},t(n.itemId,f.Finished,n.estimatedDeploymentCostFactor,m),{item:{...e,item:d,itemId:m},id:m,type:"Form",postProcess:!0}))}).catch(i=>{throw t(n.itemId,f.Failed,0),i})}function ui(e,o,r,t){return so(e)?wn(e,o,r,t):_.createItemFromTemplate(e,o,r,t)}async function jo(e,o){let r=await _o(e),t=new Date;return t=new Date(t.valueOf()-864e5-t.getTimezoneOffset()*1e3*60),r.forEach(n=>{if(typeof n.content=="string"){let s=vn(n,o);e.file(n.file,s,{date:t})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:t})}),Promise.resolve(e)}async function Ko(e,o){return(await _o(e)).forEach(t=>{if(t.file.endsWith(".info")||t.file.endsWith(".itemInfo")||t.file.endsWith(".json")||t.file.endsWith(".webform")||t.file.endsWith(".xml")){let n=t.content,s=/\b([0-9A-Fa-f]){32}_type/g;n=En(n,o,s),n=Sn(n,o,s),n=bn(n,o),n=Tn(n,o),e.file(t.file,n)}}),Promise.resolve(e)}function Sn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type==="Feature Service").forEach(s=>{let i=o[s].url,m=o[i];m&&(t=t.replace(new RegExp(i,"g"),m))}),t}function En(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type!=="Feature Service").map(s=>s.replace("_type","")).forEach(s=>{t=t.replace(new RegExp(s,"g"),`{{${s}.itemId}}`)}),t}function bn(e,o){let r=e;return o.portalBaseUrl&&(r=r.replace(new RegExp(o.portalBaseUrl,"g"),"{{portalBaseUrl}}")),r}function Tn(e,o){let r=e;return o.workflowBaseUrl&&(r=r.replace(new RegExp(o.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),r}function vn(e,o){let r=ct(),t=e.content;return t=x(e.content,o),ae(t.match(r)??[]).forEach(s=>{let i=o[s];typeof i?.itemId=="string"&&(t=t.replace(new RegExp(s,"g"),`${i.itemId}`))}),t}function Fn(e,o,r,t,n,s,i){let m=t.properties.info.serviceInfo.itemId,{itemId:a}=s[m],c=x(t,s);return A(a,i).then(d=>{let p=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:a,extent:c.item.extent,typeKeywords:[`source-${m}`].concat(d.typeKeywords)}],g=y=>V(y,i),h=p.map(g);return Promise.all(h).then(()=>{let y=[e,a],S=F=>G({itemId:F,folderId:s.folderId,authentication:i}),w=y.map(S);return Promise.all(w)}).then(()=>mr(d.ownerFolder,i)).then(()=>{let y=z(d);return n.push(y),t.dependencies.push(d.id),!0})})}async function _n(e,o,r,t,n,s,i){let m=await ce(e,"Form",i);if(m){let a=await Fo(m),c=await jo(a,s);Qe(c,e,i)}else return await at(5e3),_n(e,o,r,t,n,s,i);return so(t)?Fn(e,o,r,t,n,s,i):q(e,s,i)}async function li(e,o){for(let r of e)if(r.type==="Form"){let t=r.data;if(r.data=null,t){let n=await Fo(t);n=await Ko(n,o),r.item.name=On(r.item.name,t.name,`${r.itemId}.zip`);let s=await fr(n,r.item.name),i=Ye(r.itemId,r.item.name,1,Ee.data),m={itemId:r.itemId,file:s,folder:i.folder,filename:r.item.name};r.dataFile=m,r.resources.push(i.folder+"/"+i.filename)}}return Promise.resolve(e)}function On(e,o,r){let t=e||o;return t&&t!=="undefined"?t:r}var qo={};U(qo,{_initializeNewGroup:()=>Rn,convertItemToTemplate:()=>Ii,createItemFromTemplate:()=>gi,postProcess:()=>hi});function Ii(e,o,r){return new Promise(t=>{let n=Pt(e);n.item.id=b(n.item.id,n.item.id,".itemId"),_t(e.id,r).then(s=>{n.type="Group",Ft(e.id,r).then(i=>{i.id=n.item.id,n.item={...i,type:"Group"},n.dependencies=s.concat(ft(i.tags)),t(n)},()=>t(n))},()=>t(n))})}function gi(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),s.item.thumbnail=e.item.thumbnail;let i=Rn(s.item);Xt(i.title,i,o,r,bo(s)?o.locationTracking.owner:void 0).then(m=>{if(m.success)if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(s.itemId=m.group.id,o[e.itemId]={itemId:m.group.id},s=x(s,o),o[e.itemId].itemId=m.group.id,!t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(bo(s)){let a=o.locationTracking.owner;ar(m.group.id,a,r).then(c=>{c.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?cr(m.group.id,[r.username],r).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))})}else n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)});else t(e.itemId,f.Failed,0),n(I(e.type))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function hi(e,o,r,t,n,s,i){let m=Promise.resolve({success:!0});return r.some(a=>{if(a.id===e){let c=a.item.item;return oe(c)&&(c=x(c,s),m=dr(c,i)),!0}}),m}function Rn(e){let o={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(t=>{e.hasOwnProperty(t)&&(o[t]=e[t])}),o}var ve={};U(ve,{convertItemToTemplate:()=>yi,createItemFromTemplate:()=>Pi,isAPage:()=>wi,postProcess:()=>xi});function kn(e,o,r,t){return e=me(e,r,{}),Er(e,{...t,allowList:[]}).then(()=>!0)}function io(e){let o=j(e);return(e.dependencies||[]).forEach(t=>{let n=new RegExp(t,"g"),s=`{{${t}.itemId}}`;o.item=se(o.item,n,s),o.data=se(o.data,n,s),e.properties&&(o.properties=se(o.properties,n,s))}),o}function mo(e,o,r){let t=W(G,{success:!0}),n=[t({itemId:e.item.id,folderId:o,authentication:r})];return N(e,"item.properties.parentInitiativeId")&&n.push(t({itemId:e.item.properties.parentInitiativeId,folderId:o,authentication:r})),Promise.all(n)}function yi(e,o,r=null){let t=0,n=0;return Promise.all([ye(e.id,{authentication:o}),re(o)]).then(([s,i])=>(t=s.item.created,n=s.item.modified,Tr(s,i))).then(s=>(s.item.created=t,s.item.modified=n,s.item.typeKeywords=Me(s.item.typeKeywords,"doNotDelete"),s.groups=[],s.estimatedDeploymentCostFactor=2,s.resources=[],N(s,"properties")||(s.properties={}),s=io(s),s))}function Pi(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));if(e.assets&&e.resources&&delete e.assets,o.solutionItemExtent){let c=o.solutionItemExtent.split(",");o.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,vr(e,o,s,m))).then(c=>{let d=c,p={assets:d.assets||[]};return br(d,p,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(Sr,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function xi(e,o,r,t,n,s,i){let m;return re(i).then(a=>(m=a,ye(e,{authentication:i}))).then(a=>kn(a,r,s,m))}function wi(e){let o=!1;return(e==="Hub Page"||e==="Site Page")&&(o=!0),o}var Fe={};U(Fe,{convertItemToTemplate:()=>Si,createItemFromTemplate:()=>Ei,isASite:()=>Ti,postProcess:()=>bi});function An(e,o,r){let t=o.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(t.map(n=>ye(n,r))).then(n=>Cr(e,n,r))}function Mn(e,o,r,t){let n=o.filter(a=>a.id!==e.item.id),s=n.map(a=>({item:{id:a.id,type:a.type}})),i=[];i=i.concat(Mr(e,s,t)),i=i.concat(An(e,n,t));let m=n.map(a=>a.id);return e.item.properties.children=m,e=Rr(e,r,{}),i.push(Fr(e,{...t,allowList:void 0})),Promise.all(i).then(()=>!0)}function Si(e,o,r=null){let t=0,n=0,s,i,m;return re(o).then(a=>(m=a,yo(e.id,m))).then(a=>(t=a.item.created,n=a.item.modified,s=a.item.title,i=a.data.values.title,Ar(a,m))).then(a=>(a.item.created=t,a.item.modified=n,a.item.title=s,a.item.typeKeywords=Me(a.item.typeKeywords,"doNotDelete"),a.data.values.title=i,a.groups=[],a.estimatedDeploymentCostFactor=2,a.resources=[],u(a,"properties")||(a.properties={}),a.dependencies=ae(a.dependencies),a=io(a),a))}function Ei(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));e.assets&&e.resources&&delete e.assets,o.solution||(o.solution={}),o.solution.title=o.title;let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,kr(e,o,s,m))).then(c=>{let d={assets:c.assets||[]};return Or(c,d,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(_r,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function bi(e,o,r,t,n,s,i){let m;return re(i,s).then(a=>(m=a,yo(e,m))).then(a=>Mn(a,r,s,m)).then(()=>Promise.resolve(!0))}function Ti(e){let o=!1;return(e==="Hub Site Application"||e==="Site Application")&&(o=!0),o}var co={};U(co,{convertItemToTemplate:()=>_i,createItemFromTemplate:()=>Oi,isAStoryMap:()=>Ri});function Cn(e={}){let o=0;return Object.keys(e).reduce((r,t)=>(N(e,`${t}.type`)==="webmap"&&t!==`webmap${o}`&&(r.push({original:t,updated:`webmap${o}`}),o++),r),[])}function Un(e){let o=N(e,"data.resources")||{};return Object.keys(o).reduce((r,t)=>(N(o,`${t}.type`)==="webmap"&&r.push(N(o,`${t}.data.itemId`)),r),[])}function Nn(e){let o=Ke(e.item.id,e.item.type);o.key=`${We(e.item.title)}_${Ce("i")}`;let r=j(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Le(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{storyMapTemplateUrl}}",Cn(o.data.resources).forEach(m=>{o.data.resources[m.updated]=j(o.data.resources[m.original]),delete o.data.resources[m.original],o.data.nodes=se(o.data.nodes,m.original,m.updated)}),o.item.typeKeywords.indexOf(Wn)!==-1&&(o.item.typeKeywords=[vi].concat(o.item.typeKeywords.filter(m=>m!==Wn))),o.properties={},o.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(o.properties,Fi),o.dependencies=Un(e),Promise.resolve(o)}var Wn="smstatusunpublishedchanges",vi="smstatuspublished",Fi={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
3
+ v1.0.3 */
4
+ import{$ as x,$a as rr,$b as Lr,A as pt,Aa as de,Ab as yr,B as Ge,Ba as To,Bb as Pr,C as Pe,Ca as Ut,Cb as xr,D as P,Da as Wt,Db as re,E as ut,Ea as Nt,Eb as wr,F as ft,Fa as Lt,Fb as Sr,G as u,Ga as Vt,Gb as Er,H as lt,Ha as $t,Hb as br,Ia as Bt,Ib as Tr,J as xe,Ja as zt,Jb as vr,K as E,Ka as Gt,Kb as Fr,L as we,La as jt,Lb as _r,M as It,Ma as Kt,Mb as Or,N as Po,Na as Ht,Nb as Rr,O as xo,Oa as qt,Ob as kr,P as je,Pa as Jt,Pb as Ar,Q as K,Qa as vo,Qb as Mr,R as gt,Ra as De,Rb as Cr,S as ht,Sa as Dt,T as yt,Ta as Zt,Tb as Ur,U as L,Ua as Qt,Ub as Qe,V as Pt,Va as te,Vb as Oo,W as z,Wa as Yt,Wb as Ee,X as Ke,Xa as Xt,Xb as Ye,Y as xt,Ya as er,Yb as Wr,Z as wo,Za as or,Zb as Nr,_ as oe,_a as tr,a as Ae,aa as b,ab as nr,ac as Vr,ba as J,bb as sr,c as B,ca as He,cb as ir,cc as $r,d as X,da as wt,db as mr,ea as St,eb as Se,f,fa as So,fb as v,fc as Br,g as ho,ga as Et,gb as Ze,gc as be,h as se,ha as bt,hc as Xe,i as We,ia as Tt,ic as eo,j as me,ja as vt,jb as ar,jc as zr,k as Ne,ka as Ft,kb as cr,kc as oo,l as Le,la as _t,lb as V,lc as Gr,m as yo,ma as A,mb as dr,n as it,na as ce,nb as pe,o as Ve,oa as H,ob as q,p as mt,pa as qe,pb as pr,q as $e,qa as Je,qb as Fo,r as Be,ra as Ot,rb as ur,s as ee,sb as _o,t as ae,ta as Rt,tb as fr,u as at,ua as kt,ub as lr,v as I,va as At,vb as Ir,w as ct,wa as Eo,x as dt,xa as bo,xb as gr,y as ze,ya as Mt,z as C,za as Ct,zb as hr}from"./U3K7MHYO.js";import{a as ie,g as ye}from"./RRF3ACRD.js";import{a as W}from"./JMQV4UK4.js";import{a as j,b as Me,c as Ce,d as Ue}from"./EYRRGEDQ.js";import{e as G,f as rt,j as Oe,l as Re,o as nt,s as ke}from"./RIVVWLOA.js";import{a as tt}from"./SYSMKBTI.js";import{a as st}from"./ASBGMXK6.js";import{a as N}from"./Z5LX6R34.js";import{d as U}from"./K6A5BZGW.js";function ue(e,o="application/octet-stream"){if(typeof Blob<"u"){let r=[];for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);let t=new Uint8Array(r);return new Blob([t],{type:o})}else throw new Error("stringToBlob is not currently supported on Node")}function jr(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var to={};U(to,{_mostRecentlyEditedLayer:()=>Ro,convertItemToTemplate:()=>Ts,createItemFromTemplate:()=>vs,postProcess:()=>Fs});function Ts(e,o,r,t){return new Promise((n,s)=>{let i=z(e);ir(e.groupDesignations)?Nt(i,r).then(a=>n(a),a=>s(P(a))):(i.estimatedDeploymentCostFactor=10,H(i.item.id,r).then(a=>{i.data=a,rr(i,r).then(c=>{c.item.modified=Math.max(c.item.modified,Ro(i.properties.layers),Ro(i.properties.tables)),er(c,r).then(d=>{c.dependencies=d.map(p=>p.id),n(Mt(c,d,!1,t))},d=>s(P(d)))},c=>s(P(c)))}))})}function vs(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),delete s.item.thumbnail,Ge(s,"properties.service.size");let i=Ct(s.data);Qt(s,r,o).then(m=>{m.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?(s=To(s,o,m),$t(s,o,i,r).then(()=>{s=To(s,o,m),pe({...s.item,url:void 0},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?A(s.itemId,r).then(a=>{s.item=a,u(s,"item.url")&&!s.item.url.endsWith("/")&&(s.item.url+="/"),n({item:s,id:m.serviceItemId,type:s.type,postProcess:oe({item:s.item,data:s.data})||vo(s)})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function Fs(e,o,r,t,n,s,i){return new Promise((m,a)=>{q(e,s,i).then(c=>{vo(t)?(t=x(t,s),De(t,i,t.item.url,s).then(m,a)):m(c)},a)})}function Ro(e){let o=0;return e.forEach(r=>{o=r.editingInfo?.lastEditDate?Math.max(o,r.editingInfo.lastEditDate):o}),o}var l={};U(l,{convertItemToTemplate:()=>_s,createItemFromTemplate:()=>Os});function _s(e,o,r){return new Promise(t=>{let n=z(e);n.item.id=b(n.item.id,n.item.id,".itemId");let s=new Promise(m=>{ce(n.itemId,n.item.name,r).then(a=>{!a||a.size===0?m(null):m(a)})}),i=Promise.resolve({});Promise.all([s,i]).then(m=>{let[a]=m;if(a){let c=Wr(a,n.item.name);n.properties[c.filename]=c.mimeType;let d=Ye(n.itemId,c.blob.name,1,c.blob.name===c.filename?Ee.data:Ee.fakezip),p={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=p,n.resources.push(d.folder+"/"+d.filename),t(n)}else t(n)})})}function Os(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(i=>{t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,i.id)?(s.itemId=i.id,o[e.itemId]={itemId:i.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,i.id),n({item:s,id:i.id,type:s.type,postProcess:!1})):(t(e.itemId,f.Cancelled,0),v(i.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}var Ho={};U(Ho,{_getFormDataFilename:()=>On,_replaceFeatureServiceURLs:()=>Sn,_replaceItemIds:()=>En,_replacePortalBaseUrls:()=>bn,_replaceWorkflowManagerBaseUrls:()=>Tn,_updateZipObjectTextContent:()=>vn,convertItemToTemplate:()=>pi,createItemFromTemplate:()=>ui,postProcess:()=>_n,postProcessFormItems:()=>li,swizzleFormObject:()=>jo,templatizeFormData:()=>Ko});function qr(e,o){return Rs(e,o)}function Rs(e,o){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(t=>{let n=u(e,t);Array.isArray(n)&&n.forEach(s=>{s.type==="mapWidget"&&(e.dependencies.indexOf(s.itemId)<0&&e.dependencies.push(s.itemId),s.itemId=b(s.itemId,s.itemId,".itemId")),Array.isArray(s.datasets)&&ks(s,e,o)})}),e}function ks(e,o,r){e.datasets.forEach(t=>{if(u(t,"dataSource.type")!=="arcadeDataSource"){let s=u(t,"dataSource.itemId");if(s){o.dependencies.indexOf(s)<0&&o.dependencies.push(s);let i=u(t,"dataSource.layerId");de(i?.toString(),s,"",r),t.dataSource.itemId=b(s,s,".itemId")}}})}function Jr(e,o){let r=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return r.forEach(t=>{let n=u(e,t);As(n,o)}),r.forEach(t=>{Ms(e,t,o)}),e}function As(e,o){e&&Array.isArray(e)&&e.forEach(r=>{Array.isArray(r.datasets)&&r.datasets.forEach(t=>{let n=Po(u(t,"dataSource.itemId"));if(n){let s=xo(u(t,"dataSource.layerId"));o.some(i=>i.itemId===n&&i.layerId===s?(Hr(i,r.id),!0):!1)}else{let s=u(t,"dataSource.id");if(s){let i=s.split("#")[1];o.some(m=>m.ids.indexOf(i)>-1?(Hr(m,r.id),!0):!1)}}})})}function Ms(e,o,r){let t=u(e,o);t&&E(e,o,Cs(t,r))}function Cs(e,o){return Array.isArray(e)?e.map(r=>{let t=r;return Array.isArray(t.events)&&(t.events=t.events.map(n=>{let s=n;return Array.isArray(s.actions)&&(s.actions=s.actions.map(i=>{let m=i;if(m.fieldMap&&m.targetId&&m.targetId.indexOf("#")>-1){let a=Kr(m,o);if(a){let c=u(a,"fields"),d=u(a,"basePath");Array.isArray(c)&&d&&(m.fieldMap=m.fieldMap.map(p=>{let g=p;return g.targetName=J(g.targetName,c,d),g}))}}return m})),s})),Array.isArray(t.datasets)&&(t.datasets=t.datasets.map(n=>{let s=n;if(s.type==="serviceDataset"){let i=Kr(n,o);if(i){let m=u(i,"fields"),a=u(i,"basePath");Array.isArray(m)&&a&&(t=J(t,m,a),s=J(s,m,a))}}return s})),t}):e}function Kr(e,o){let r,t=u(e,"dataSource.id")||u(e,"targetId");if(t){let n=t.split("#")[1];if(!o.some(s=>(r=s.ids.indexOf(n)>-1?s:r,s.ids.indexOf(n)>-1))){let s=t.split("#")[0];o.some(i=>{let a=(i.references||[]).indexOf(s)>-1;return r=a?i:r,a})}}else{let n=Po(u(e,"dataSource.itemId")),s=xo(u(e,"dataSource.layerId"));n&&o.some(i=>{let m=n===i.itemId&&s===i.layerId;return r=m?i:r,m})}return r}function Hr(e,o){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(o)<0&&e.references.push(o)}var fe={};U(fe,{convertItemToTemplate:()=>js,convertNotebookToTemplate:()=>$o,createItemFromTemplate:()=>Ks,deleteProps:()=>sn,fineTuneCreatedItem:()=>Vo,postProcess:()=>qs,postProcessNotebookTemplates:()=>Hs});function Qr(e,o,r,t){return new Promise((n,s)=>{let i="";if(e.item.url){let m=e.item.url,a=m.indexOf("//");e.item.url=L(K)+m.substring(m.indexOf("/",a+2),m.lastIndexOf("=")+1)+e.item.id,i=m.replace(m.substring(m.indexOf("/",a+2)),"")}e.dependencies=Ns(e),E(e,"data.folderId","{{folderId}}"),$s(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),Xr(e,"data.appItemId",e.itemId),No(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],L(K)),E(e,"data.geometryService",L(gt)),Us(e,r,i,t).then(()=>{Zr(e,r,i,"data.widgetPool.widgets").then(m=>{Zr(m,r,i,"data.widgetOnScreen.widgets",!0).then(a=>{Ws(a,r,i,"data.values").then(c=>{n(c)},c=>s(P(c)))},a=>s(P(a)))},m=>s(P(m)))},m=>s(P(m)))})}function Us(e,o,r,t){return new Promise((n,s)=>{let i=u(e,"data.dataSource.dataSources");if(i&&Object.keys(i).length>0){let m=new Array;Object.keys(i).forEach(a=>{let c=i[a];E(c,"portalUrl",L(K));let d=u(c,"itemId");if(u(c,"url")){if(d){let g=c.url.substr(c.url.lastIndexOf("/")+1);de(g.toString(),d,c.url,t),c.itemId=b(d,d,".layer"+g+".itemId")}let p=Wo(c.url,r,[],[],o);m.push(new Promise((g,h)=>{Uo(p.serviceRequests,p.requestUrls,p.testString).then(y=>{c.url=y,g()},y=>h(P(y)))}))}else d&&(c.itemId=b(d,d,".itemId"))}),Promise.all(m).then(()=>n(e),a=>s(P(a)))}else n(e)})}function Zr(e,o,r,t,n=!1){return new Promise((s,i)=>{let m=u(e,t)||[],a=[],c=[];if(m.forEach(d=>{!n&&u(d,"icon")&&No(d,["icon"],L(K));let p=d.config;if(p){let g=JSON.stringify(p),h=Wo(g,r,c,a,o);d.config=JSON.parse(h.testString),a=h.serviceRequests,c=h.requestUrls}}),a.length>0){let d=JSON.stringify(m);Uo(a,c,d).then(p=>{E(e,t,JSON.parse(p)),s(e)},p=>i(P(p)))}else s(e)})}function Ws(e,o,r,t){return new Promise((n,s)=>{let i=u(e,t),m=[],a=[];if(i){u(i,"icon")&&No(i,["icon"],L(K));let c=JSON.stringify(i),d=Wo(c,r,a,m,o);i=JSON.parse(d.testString),m=d.serviceRequests,a=d.requestUrls}if(m.length>0){let c=JSON.stringify(i);Uo(m,a,c).then(d=>{E(e,t,JSON.parse(d)),n(e)},d=>s(P(d)))}else n(e)})}function Uo(e,o,r){return new Promise((t,n)=>{if(e&&e.length>0){let s=0;Promise.all(e).then(i=>{i.forEach(m=>{if(u(m,"serviceItemId")){let a="{{"+m.serviceItemId+(m.hasOwnProperty("id")?".layer"+m.id:"")+".url}}";r=ro(r,o[s],a,!0)}s++}),t(r)},i=>n(P(i)))}else t(r)})}function Wo(e,o,r,t,n){let s={f:"json",authentication:n},i=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return i&&i.length&&i.forEach(m=>{m.indexOf("NAServer")>-1?e=ro(e,m,L(yt)):m.indexOf("GeocodeServer")>-1?e=ro(e,m,L(ht)):o&&m.indexOf(o)>-1?e=ro(e,o,L(K)):m.indexOf("FeatureServer")>-1&&r.indexOf(m)===-1&&(r.push(m),t.push(B(m,s)))}),{testString:e,requestUrls:r,serviceRequests:t}}function ro(e,o,r,t=!1){let n=t&&e.indexOf('"')>-1,s=new RegExp(n?'"'+o+'"':o,"gmi");return e.replace(s,n?'"'+r+'"':r)}function No(e,o,r){o.forEach(t=>{let n=u(e,t);if(n){let s=n.substring(n.indexOf("/",n.indexOf("//")+2));E(e,t,s!==n?r+s:r)}})}function Yr(e,o,r,t){return new Promise(n=>{if(we(e,["WAB2D","WAB3D","Web AppBuilder"])){let s={id:o.itemId,url:o.item.url,data:o.data},i=V(s,t),m={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:o.itemId,url:Be(x(L(K),r))+"sharing/rest/content/items/"+o.itemId+"/package"},a=te(m,{},t,r.folderId);Promise.all([i,a]).then(()=>n(null),()=>n(null))}else n(null)})}function Ns(e){let o=Ls;return we(e,["WAB2D","WAB3D","Web AppBuilder"])&&(o=Vs),o(e)}function Ls(e){return lt(e,["data.values.webmap","data.values.group"])}function Vs(e){let o=[],r=u(e,"data.map.itemId");r&&o.push(r);let t=u(e,"data.dataSource.dataSources");return t&&Object.keys(t).forEach(n=>{let s=t[n];s.itemId&&o.push(s.itemId)}),o}function $s(e,o){o.forEach(r=>{let t=u(e,r);Xr(e,r,t)})}function Xr(e,o,r){E(e,o,b(r,r,".itemId"))}function en(e,o){let r=u(e,"data.dataSource.dataSources");r&&Object.keys(r).length>0&&(Object.keys(r).forEach(s=>{let i=r[s];r[s]=Mo(i,o)}),E(e,"data.dataSource.dataSources",r)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(s=>{let i=u(e,s);i&&E(e,s,Bs(i,o))});let n=u(e,"data.values");return n&&E(e,"data.values",Mo(n,o)),e}function Mo(e,o,r=!1){return e=Gs(e,o,r),zs(e,o).forEach(n=>{e=J(e,n.fields,n.basePath,r)}),e}function Bs(e,o){let r=["SmartEditor","Screening"];return e.map(t=>{if(t.config){let n=r.indexOf(t.name)>-1;t.config=Mo(t.config,o,n)}return t})}function zs(e,o){let r=JSON.stringify(e);return o.filter(n=>Ao(n,r)<4).sort((n,s)=>Ao(n,r)-Ao(s,r))}function Ao(e,o){let r=e.url,t=e.itemId,n=e.layerId,s;return r&&!isNaN(n)&&(s=new RegExp(r.replace(/[.]/,".layer"+n+"."),"gm")),s&&s.test(o)||e.ids.length>0&&e.ids.some(i=>new RegExp(i,"gm").test(o))?1:r&&new RegExp(r,"gm").test(o)?2:t&&new RegExp(t,"gm").test(o)?3:4}function Gs(e,o,r){let t=JSON.stringify(e),n=o.filter(s=>{let i;s.url&&!isNaN(s.layerId)&&(i=new RegExp(s.url.replace(/[.]/,".layer"+s.layerId+"."),"gm"));let m=!1;if(s.ids.length>0&&(m=s.ids.some(a=>new RegExp(a,"gm").test(t))),m||i&&i.test(t))return s});return n.length>0&&n.forEach(s=>{e=Co(e,s,r),s.ids.length>0&&s.ids.forEach(i=>{e=no(e,s,i,r)})}),e}function Co(e,o,r){let t={},n=o.url,s=o.layerId,i;if(n&&!isNaN(s)&&(i=new RegExp(n.replace(/[.]/,".layer"+s+"."),"gm")),Array.isArray(e))t=e.map(m=>Co(m,o,r));else if(typeof e=="object")for(let m in e)e[m]!=null&&typeof e[m]=="object"?t[m]=Co(e[m],o,r):(i&&i.test(e[m])&&(e=J(e,o.fields,o.basePath,r)),t[m]=e[m]);else t=e;return t}function no(e,o,r,t){let n={},s=new RegExp(r,"gm");if(Array.isArray(e))n=e.map(i=>no(i,o,r,t));else if(typeof e=="object")for(let i in e)if(e[i]!==null){let m;try{m=JSON.parse(e[i])}catch{m=void 0}m&&typeof m=="object"?n[i]=JSON.stringify(no(m,o,r,t)):typeof e[i]=="object"?(s.test(i)&&t&&(e[i]=J(e[i],o.fields,o.basePath,t)),n[i]=no(e[i],o,r,t)):(s.test(e[i])&&(e=J(e,o.fields,o.basePath,t)),n[i]=e[i])}else n[i]=e[i];else n=e;return n}function on(e,o,r,t){return Jt(e,r,t)}function tn(e,o,r){return De(e,o,"",r)}function D(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0))t(e.itemId,f.Ignored,0),n(I(e.type));else{let s=C(e);s=x(s,o);let i;e.type==="Web Mapping Application"&&e.data?s=JSON.parse(x(JSON.stringify(s),o)):e.type==="QuickCapture Project"&&e.data&&(i=JSON.stringify(s.data.application),delete s.data),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(m=>{if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.id))t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else{o[e.itemId]={itemId:m.id,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+m.id},s.itemId=m.id,s.type==="Web Mapping Application"&&e.data&&E(s,"data.appItemId",m.id);let a=oe(s.data),c=s.item.url;s=x(s,o);let d=Promise.resolve([]);if(s.relatedItems){let g=x(He(s.relatedItems),o);d=Dt(s.itemId,g,r)}let p;if(e.type==="Web Mapping Application"&&e.data&&we(e,["WAB2D","WAB3D","Web AppBuilder"]))p=Yr(e,s,o,r);else if(e.type==="Workforce Project")p=tn(s,r,o);else if(e.type==="QuickCapture Project"){if(i){let g=ze(x(JSON.parse(i),o),"qc.project.json");p=Br(g,s.itemId,"",g.name,r)}}else e.type==="Notebook"?p=Vo(e,s,o,r):c!==s.item.url?p=new Promise((g,h)=>{pr(m.id,s.item.url,r).then(()=>g(),h)}):p=Promise.resolve(null);Promise.all([d,p]).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.id)?n({item:s,id:m.id,type:s.type,postProcess:a}):(t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}})}function js(e,o,r,t){return Z(e,o,r,t)}function Ks(e,o,r,t){return D(e,o,r,t)}function $o(e){return new Promise(o=>{sn(e.data),o(e)})}function Hs(e,o){if(e.some(t=>t.type==="Notebook")){let t=Object.keys(o).filter(s=>s.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((s,i)=>(s=[...new Set([...s,...i.dependencies,i.itemId])],s),[]);e=e.map(s=>{if(s.type==="Notebook"){let i=s.data&&JSON.stringify(s.data);return n.forEach(m=>{new RegExp(m,"gim").test(i)&&(i=i.replace(m,"{{"+m+".itemId}}"),s.dependencies.indexOf(m)<0&&s.dependencies.push(m))}),t.forEach(m=>{let a=new RegExp(m,"gim");if(a.test(i)){let c=o[m];i=i.replace(a,c);let d=/[0-9A-F]{32}/gim,p=c.match(d)[0];s.dependencies.indexOf(p)<0&&s.dependencies.push(p)}}),s.data=JSON.parse(i),s}})}return e}function sn(e){if(e){let o=["metadata.interpreter","metadata.papermill"];Pe(e,o),(e.cells||[]).forEach(r=>{Pe(r,o)})}}function Vo(e,o,r,t){return new Promise((n,s)=>{let i={id:o.itemId,url:o.item.url,data:ze(o.data,o.itemId+".ipynb")};V(i,t).then(()=>n(null),s)})}function qs(e,o,r,t,n,s,i){return q(e,s,i)}function an(e,o,r){return new Promise((t,n)=>{Js(e,r).then(s=>{e.dependencies=s.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=mn(e.data.properties.ServiceURL,s.urlHash),e.data.properties.OverviewURL=mn(e.data.properties.OverviewURL,s.urlHash)),t(e)},s=>n(P(s)))})}function Js(e,o){return new Promise((r,t)=>{let n=[];if(e.data?.properties){let s=[];e.data.properties.ServiceURL&&s.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&s.push(e.data.properties.OverviewURL),Ds(s,n,o).then(i=>{r(i)},i=>t(P(i)))}else r({dependencies:n,urlHash:{}})})}function Ds(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d){let p=/.+FeatureServer/g.exec(d),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g]]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function mn(e,o){let r=e;if(e){let t=o[e];if(t){let n=e.substr(e.lastIndexOf("/")+1);r=b(t,t,".layer"+n+".url")}r=He(r.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return r}var Te={};U(Te,{_templatizeAdminEmail:()=>pn,_templatizeApplication:()=>dn,_templatizeId:()=>Bo,_templatizeUrl:()=>fn,_updateDependencies:()=>un,convertItemToTemplate:()=>Qs,convertQuickCaptureToTemplate:()=>zo,createItemFromTemplate:()=>Ys});function Qs(e,o,r,t){return Z(e,o,r,t)}function zo(e){return E(e,"data.application",dn(e.data.application,e)),e}function dn(e,o){Bo(e,"itemId"),pn(e);let r=e?.dataSources;return r&&Array.isArray(r)&&r.forEach(t=>{let n=t.featureServiceItemId;n&&(un(n,o),fn(t,"featureServiceItemId","url"),Bo(t,"featureServiceItemId"))}),e}function pn(e){u(e,"preferences.adminEmail")&&E(e,"preferences.adminEmail","{{user.email}}")}function un(e,o){o.dependencies.indexOf(e)===-1&&o.dependencies.push(e)}function fn(e,o,r){let t=u(e,o),n=u(e,r);if(n){let s=n.substr(n.lastIndexOf("/")+1);E(e,r,b(t,t,".layer"+s+".url"))}}function Bo(e,o){let r=u(e,o);r&&E(e,o,b(r,r,".itemId"))}function Ys(e,o,r,t){return D(e,o,r,t)}var Xs="home/webmap/viewer.html?webmap=";function ln(e,o,r,t){return new Promise((n,s)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?Be(L(K))+Xs+e.item.id:e.item.url),ei(e,r).then(i=>{e.dependencies=i.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&Go(e.data.baseMap.baseMapLayers,i.urlHash,t),e.data.operationalLayers&&Go(e.data.operationalLayers,i.urlHash,t),Go(e.data.tables,i.urlHash,t),oi(e.data)),n(e)},i=>s(P(i)))})}function ei(e,o){return new Promise((r,t)=>{let n=[];if(e.data){let s=e.data.baseMap?.baseMapLayers||[],i=e.data.operationalLayers||[],m=e.data.tables||[],a=s.concat(i).concat(m);ti(a,n,o).then(c=>{r(c)},c=>t(P(c)))}else r({dependencies:n,urlHash:{}})})}function oi(e){Ge(e,"initialState")}function ti(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return m.push(A(d.itemId,r)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let p=/.+FeatureServer/g.exec(d.url),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d.url,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(c[g].layerType==="VectorTileLayer"){let h=u(p,"typeKeywords");if(h&&h.includes("Vector Tile Style Editor")){o.indexOf(p.id)<0&&o.push(p.id),c[g].templatizeId=!0;let y=c[g].styleUrl.indexOf(p.id)+p.id.length;c[g].styleUrl=b(c[g].styleUrl.replace(c[g].styleUrl.substring(0,y),p.id),p.id,".itemUrl")}}else if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g].url]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function Go(e=[],o,r){e.forEach(t=>{if(t.itemId&&t.layerType==="VectorTileLayer")t.templatizeId&&(t.itemId=b(t.itemId,t.itemId,".itemId"),delete t.templatizeId);else if(t.url){let n=t.url.substr(t.url.lastIndexOf("/")+1),s=Object.keys(o).indexOf(t.url)>-1?o[t.url]:void 0;s&&(de(n,s,t.url,r),t.url=b(s,s,".layer"+n+".url"),t.itemId=b(s,s,".layer"+n+".itemId"))}})}function In(e,o){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(t=>ri(e,o,t)),e}function ri(e,o,r){let t=u(e,r);t&&E(e,r,ni(t,o))}function ni(e,o){return e.forEach(r=>{let t=si(r,o);if(t){let n=t.fields.map(i=>i.name);Gt(r,t,t.basePath,t.itemId,n),Kt(r,t.basePath,n),r.layerDefinition&&(qt(r.layerDefinition,t.basePath,n),Ht(r.layerDefinition,t.basePath,n));let s=u(r,"field.name");s&&E(r,"field.name",jt(s,r,t.itemId,t.basePath))}}),e}function si(e,o){let r;return o.some(t=>t.ids.indexOf(e.id)>-1?(r=t,!0):!1),r}function Z(e,o,r,t){return new Promise((n,s)=>{let i=z(e);i.item.id=b(i.item.id,i.item.id,".itemId");let m=qe(i.itemId,"forward",r),a=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":a=new Promise(d=>{H(i.itemId,r).then(p=>d(p))});break;case"Form":a=ce(i.itemId,i.item.name,r);break;case"QuickCapture Project":c=Je(i.itemId,r);break}Promise.all([a,m,c]).then(d=>{let[p,g,h]=d;Gr(i,t),i.data=oo(p,e.type,t);let y=g;i.dependencies=[],i.relatedItems=[],y.forEach(w=>{w.relationshipType!=="WMA2Code"&&(i.relatedItems.push(w),w.relatedItemIds.forEach(F=>{i.dependencies.indexOf(F)<0&&i.dependencies.push(F)}))}),e.type==="Data Pipeline"&&(i.dependencies=i.dependencies.concat(ii(p)));let S=Promise.resolve(i);switch(e.type){case"Dashboard":qr(i,t);break;case"Notebook":S=$o(i);break;case"Oriented Imagery Catalog":S=an(i,o,r);break;case"QuickCapture Project":i.resources=h,S=new Promise(async w=>{let F=null,R=-1;h&&(h.some((Ie,$)=>{let M=Ie.name==="qc.project.json";return M&&(F=Ie,R=$),M}),R>=0&&h.splice(R,1)),F&&(i.data={application:{...await $e(F)},name:"qc.project.json"}),i.data.application?.basemap?.type==="Web Map"&&i.dependencies.push(i.data.application.basemap.itemId);let Q=zo(i);w(Q)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":S=ln(i,o,r,t);break;case"Web Mapping Application":p&&(S=Qr(i,o,r,t));break;case"Workforce Project":S=on(i,o,r,t);break}S.then(n,w=>s(P(w)))})})}function ii(e){let o=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(t=>{if(t.type==="FeatureServiceSource"||t.type==="FeatureServiceSink"){let n=u(t,"parameters.layer.value.itemId");n&&o.push(n)}}),o}var _={};U(_,{convertItemToTemplate:()=>mi,createItemFromTemplate:()=>ai,postProcess:()=>di,postProcessFieldReferences:()=>ci});function mi(e,o,r,t){return Z(e,o,r,t)}function ai(e,o,r,t){return D(e,o,r,t)}function ci(e,o,r){switch(r){case"Web Mapping Application":en(e,o);break;case"Dashboard":Jr(e,o);break;case"Web Map":In(e,o);break}return e}function di(e,o,r,t,n,s,i){return q(e,s,i)}function pi(e,o,r,t){return _.convertItemToTemplate(e,o,r,t)}function so(e){return!!u(e,"properties.services")}function yn(e,o="https://survey123.arcgis.com"){let r=`${o}/api/survey/create`,t={credentials:"same-origin",method:"POST",body:tt({f:"json",...e},!0)};return fetch(r,t).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var Pn=function(o){let r=C(o),t=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(i,m)=>(i&&i[m]&&(i[m]=encodeURIComponent(i[m])),i);t.forEach(([i,m])=>n(r[i],m));let s=i=>n(i,"description");return r.questions=(r.questions||[]).map(i=>i.questions?{...i,questions:i.questions.map(s)}:s(i)),r};function xn(e,o,r){let{item:{title:t,description:n,tags:s,typeKeywords:i},properties:{form:m}}=e,{user:{username:a},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:p}}}=o,{token:g}=r.toCredential();return Rt(d,p,r).then(h=>{let y="Survey-",S=It(`${y}${t}`,o,"user.folders").replace(y,"");if(m.questions){let F=R=>(R.maps&&(R.maps=R.maps.map(Q=>({...Q,itemId:h.id}))),R);m.questions=m.questions.map(R=>R.questions?{...R,questions:R.questions.map(F)}:F(R))}let w=Pn(m);return{description:n,form:w,portalUrl:c,tags:s,title:S,token:g,typeKeywords:i,username:a}})}function wn(e,o,r,t){let n=x(e,o),{survey123Url:s}=o;return xn(n,o,r).then(i=>yn(i,s)).then(i=>{let{formId:m,featureServiceId:a}=i,c=Promise.resolve(null);return e.item.thumbnail&&(c=pe({id:m},null,r,e.item.thumbnail)),c.then(()=>A(m,r)).then(d=>(o[n.itemId]={itemId:m},o[n.properties.info.serviceInfo.itemId]={itemId:a},t(n.itemId,f.Finished,n.estimatedDeploymentCostFactor,m),{item:{...e,item:d,itemId:m},id:m,type:"Form",postProcess:!0}))}).catch(i=>{throw t(n.itemId,f.Failed,0),i})}function ui(e,o,r,t){return so(e)?wn(e,o,r,t):_.createItemFromTemplate(e,o,r,t)}async function jo(e,o){let r=await _o(e),t=new Date;return t=new Date(t.valueOf()-864e5-t.getTimezoneOffset()*1e3*60),r.forEach(n=>{if(typeof n.content=="string"){let s=vn(n,o);e.file(n.file,s,{date:t})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:t})}),Promise.resolve(e)}async function Ko(e,o){return(await _o(e)).forEach(t=>{if(t.file.endsWith(".info")||t.file.endsWith(".itemInfo")||t.file.endsWith(".json")||t.file.endsWith(".webform")||t.file.endsWith(".xml")){let n=t.content,s=/\b([0-9A-Fa-f]){32}_type/g;n=En(n,o,s),n=Sn(n,o,s),n=bn(n,o),n=Tn(n,o),e.file(t.file,n)}}),Promise.resolve(e)}function Sn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type==="Feature Service").forEach(s=>{let i=o[s].url,m=o[i];m&&(t=t.replace(new RegExp(i,"g"),m))}),t}function En(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type!=="Feature Service").map(s=>s.replace("_type","")).forEach(s=>{t=t.replace(new RegExp(s,"g"),`{{${s}.itemId}}`)}),t}function bn(e,o){let r=e;return o.portalBaseUrl&&(r=r.replace(new RegExp(o.portalBaseUrl,"g"),"{{portalBaseUrl}}")),r}function Tn(e,o){let r=e;return o.workflowBaseUrl&&(r=r.replace(new RegExp(o.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),r}function vn(e,o){let r=ct(),t=e.content;return t=x(e.content,o),ae(t.match(r)??[]).forEach(s=>{let i=o[s];typeof i?.itemId=="string"&&(t=t.replace(new RegExp(s,"g"),`${i.itemId}`))}),t}function Fn(e,o,r,t,n,s,i){let m=t.properties.info.serviceInfo.itemId,{itemId:a}=s[m],c=x(t,s);return A(a,i).then(d=>{let p=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:a,extent:c.item.extent,typeKeywords:[`source-${m}`].concat(d.typeKeywords)}],g=y=>V(y,i),h=p.map(g);return Promise.all(h).then(()=>{let y=[e,a],S=F=>G({itemId:F,folderId:s.folderId,authentication:i}),w=y.map(S);return Promise.all(w)}).then(()=>mr(d.ownerFolder,i)).then(()=>{let y=z(d);return n.push(y),t.dependencies.push(d.id),!0})})}async function _n(e,o,r,t,n,s,i){let m=await ce(e,"Form",i);if(m){let a=await Fo(m),c=await jo(a,s);Qe(c,e,i)}else return await at(5e3),_n(e,o,r,t,n,s,i);return so(t)?Fn(e,o,r,t,n,s,i):q(e,s,i)}async function li(e,o){for(let r of e)if(r.type==="Form"){let t=r.data;if(r.data=null,t){let n=await Fo(t);n=await Ko(n,o),r.item.name=On(r.item.name,t.name,`${r.itemId}.zip`);let s=await fr(n,r.item.name),i=Ye(r.itemId,r.item.name,1,Ee.data),m={itemId:r.itemId,file:s,folder:i.folder,filename:r.item.name};r.dataFile=m,r.resources.push(i.folder+"/"+i.filename)}}return Promise.resolve(e)}function On(e,o,r){let t=e||o;return t&&t!=="undefined"?t:r}var qo={};U(qo,{_initializeNewGroup:()=>Rn,convertItemToTemplate:()=>Ii,createItemFromTemplate:()=>gi,postProcess:()=>hi});function Ii(e,o,r){return new Promise(t=>{let n=Pt(e);n.item.id=b(n.item.id,n.item.id,".itemId"),_t(e.id,r).then(s=>{n.type="Group",Ft(e.id,r).then(i=>{i.id=n.item.id,n.item={...i,type:"Group"},n.dependencies=s.concat(ft(i.tags)),t(n)},()=>t(n))},()=>t(n))})}function gi(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),s.item.thumbnail=e.item.thumbnail;let i=Rn(s.item);Xt(i.title,i,o,r,bo(s)?o.locationTracking.owner:void 0).then(m=>{if(m.success)if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(s.itemId=m.group.id,o[e.itemId]={itemId:m.group.id},s=x(s,o),o[e.itemId].itemId=m.group.id,!t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(bo(s)){let a=o.locationTracking.owner;ar(m.group.id,a,r).then(c=>{c.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?cr(m.group.id,[r.username],r).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))})}else n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)});else t(e.itemId,f.Failed,0),n(I(e.type))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function hi(e,o,r,t,n,s,i){let m=Promise.resolve({success:!0});return r.some(a=>{if(a.id===e){let c=a.item.item;return oe(c)&&(c=x(c,s),m=dr(c,i)),!0}}),m}function Rn(e){let o={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(t=>{e.hasOwnProperty(t)&&(o[t]=e[t])}),o}var ve={};U(ve,{convertItemToTemplate:()=>yi,createItemFromTemplate:()=>Pi,isAPage:()=>wi,postProcess:()=>xi});function kn(e,o,r,t){return e=me(e,r,{}),Er(e,{...t,allowList:[]}).then(()=>!0)}function io(e){let o=j(e);return(e.dependencies||[]).forEach(t=>{let n=new RegExp(t,"g"),s=`{{${t}.itemId}}`;o.item=se(o.item,n,s),o.data=se(o.data,n,s),e.properties&&(o.properties=se(o.properties,n,s))}),o}function mo(e,o,r){let t=W(G,{success:!0}),n=[t({itemId:e.item.id,folderId:o,authentication:r})];return N(e,"item.properties.parentInitiativeId")&&n.push(t({itemId:e.item.properties.parentInitiativeId,folderId:o,authentication:r})),Promise.all(n)}function yi(e,o,r=null){let t=0,n=0;return Promise.all([ye(e.id,{authentication:o}),re(o)]).then(([s,i])=>(t=s.item.created,n=s.item.modified,Tr(s,i))).then(s=>(s.item.created=t,s.item.modified=n,s.item.typeKeywords=Me(s.item.typeKeywords,"doNotDelete"),s.groups=[],s.estimatedDeploymentCostFactor=2,s.resources=[],N(s,"properties")||(s.properties={}),s=io(s),s))}function Pi(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));if(e.assets&&e.resources&&delete e.assets,o.solutionItemExtent){let c=o.solutionItemExtent.split(",");o.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,vr(e,o,s,m))).then(c=>{let d=c,p={assets:d.assets||[]};return br(d,p,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(Sr,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function xi(e,o,r,t,n,s,i){let m;return re(i).then(a=>(m=a,ye(e,{authentication:i}))).then(a=>kn(a,r,s,m))}function wi(e){let o=!1;return(e==="Hub Page"||e==="Site Page")&&(o=!0),o}var Fe={};U(Fe,{convertItemToTemplate:()=>Si,createItemFromTemplate:()=>Ei,isASite:()=>Ti,postProcess:()=>bi});function An(e,o,r){let t=o.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(t.map(n=>ye(n,r))).then(n=>Cr(e,n,r))}function Mn(e,o,r,t){let n=o.filter(a=>a.id!==e.item.id),s=n.map(a=>({item:{id:a.id,type:a.type}})),i=[];i=i.concat(Mr(e,s,t)),i=i.concat(An(e,n,t));let m=n.map(a=>a.id);return e.item.properties.children=m,e=Rr(e,r,{}),i.push(Fr(e,{...t,allowList:void 0})),Promise.all(i).then(()=>!0)}function Si(e,o,r=null){let t=0,n=0,s,i,m;return re(o).then(a=>(m=a,yo(e.id,m))).then(a=>(t=a.item.created,n=a.item.modified,s=a.item.title,i=a.data.values.title,Ar(a,m))).then(a=>(a.item.created=t,a.item.modified=n,a.item.title=s,a.item.typeKeywords=Me(a.item.typeKeywords,"doNotDelete"),a.data.values.title=i,a.groups=[],a.estimatedDeploymentCostFactor=2,a.resources=[],u(a,"properties")||(a.properties={}),a.dependencies=ae(a.dependencies),a=io(a),a))}function Ei(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));e.assets&&e.resources&&delete e.assets,o.solution||(o.solution={}),o.solution.title=o.title;let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,kr(e,o,s,m))).then(c=>{let d={assets:c.assets||[]};return Or(c,d,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(_r,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function bi(e,o,r,t,n,s,i){let m;return re(i,s).then(a=>(m=a,yo(e,m))).then(a=>Mn(a,r,s,m)).then(()=>Promise.resolve(!0))}function Ti(e){let o=!1;return(e==="Hub Site Application"||e==="Site Application")&&(o=!0),o}var co={};U(co,{convertItemToTemplate:()=>_i,createItemFromTemplate:()=>Oi,isAStoryMap:()=>Ri});function Cn(e={}){let o=0;return Object.keys(e).reduce((r,t)=>(N(e,`${t}.type`)==="webmap"&&t!==`webmap${o}`&&(r.push({original:t,updated:`webmap${o}`}),o++),r),[])}function Un(e){let o=N(e,"data.resources")||{};return Object.keys(o).reduce((r,t)=>(N(o,`${t}.type`)==="webmap"&&r.push(N(o,`${t}.data.itemId`)),r),[])}function Nn(e){let o=Ke(e.item.id,e.item.type);o.key=`${We(e.item.title)}_${Ce("i")}`;let r=j(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Le(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{storyMapTemplateUrl}}",Cn(o.data.resources).forEach(m=>{o.data.resources[m.updated]=j(o.data.resources[m.original]),delete o.data.resources[m.original],o.data.nodes=se(o.data.nodes,m.original,m.updated)}),o.item.typeKeywords.indexOf(Wn)!==-1&&(o.item.typeKeywords=[vi].concat(o.item.typeKeywords.filter(m=>m!==Wn))),o.properties={},o.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(o.properties,Fi),o.dependencies=Un(e),Promise.resolve(o)}var Wn="smstatusunpublishedchanges",vi="smstatuspublished",Fi={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
5
5
  <oembed>
6
6
  <version>1.0</version>
7
7
  <type>rich</type>
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{w as a}from"./SPYEGWSA.js";async function g(s,n,o){try{let e={q:`orgid:${n}`,countFields:"tags",countSize:200,authentication:o.authentication},i=await a(e),[r]=i.aggregations.counts.map(t=>({mode:"terms",field:t.fieldName,values:t.fieldValues})),c=s||[];return[...new Set([...r.values.map(t=>t.value),...c])].filter(t=>t).map(t=>({value:t}))}catch{return[]}}export{g as a};
3
+ v1.0.3 */
4
+ import{w as a}from"./RIVVWLOA.js";async function g(s,n,o){try{let e={q:`orgid:${n}`,countFields:"tags",countSize:200,authentication:o.authentication},i=await a(e),[r]=i.aggregations.counts.map(t=>({mode:"terms",field:t.fieldName,values:t.fieldValues})),c=s||[];return[...new Set([...r.values.map(t=>t.value),...c])].filter(t=>t).map(t=>({value:t}))}catch{return[]}}export{g as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as c}from"./DQCGIKDE.js";import{k as E,m as o}from"./V3KV4ZPK.js";import{a as y}from"./J67A6WYJ.js";import{D as m,c as d,d as s,n as p,p as g,y as S}from"./6ULIHKIX.js";import"./QTN6BMW2.js";var O=d`@layer{/** @license
3
+ v1.0.3 */
4
+ import{a as c}from"./HYI5EZI4.js";import{k as E,m as o}from"./YAAW6QK6.js";import{a as y}from"./LN5LFFQL.js";import{D as m,c as d,d as s,n as p,p as g,y as S}from"./QSBF5CAO.js";import"./K6A5BZGW.js";var O=d`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{e as t,g as i}from"./OSZNMAJF.js";function n(r){let o=r&&r.hubApiUrl;return o||i(t(r))}export{n as a};
3
+ v1.0.3 */
4
+ import{e as t,g as i}from"./WFX5NIY6.js";function n(r){let o=r&&r.hubApiUrl;return o||i(t(r))}export{n as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as r}from"./K3UTGJMU.js";import{a as o,b as h}from"./IGNOSAEB.js";import{b as i}from"./5Q6ZKF23.js";import{a as l,c as t,d,e as p,f as g}from"./6CHYPF6P.js";import"./QTN6BMW2.js";var _=":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;--instant-apps-header-actions-end-height:auto;width:100%}:host .image.image_resized img{width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;text-decoration:var(--instant-apps-header-title-text-link-decoration);overflow:hidden}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}:host .instant-apps-header__sign-in-container{height:inherit;display:flex;align-items:center}:host .instant-apps-header__sign-in-container calcite-dropdown,:host .instant-apps-header__sign-in-container calcite-navigation-user{height:100%}:host .instant-apps-header__sign-in-container calcite-button{margin:0 10px}:host .instant-apps-header__sign-in-container calcite-dropdown-group{min-width:140px}",f=_,a={base:"instant-apps-header--standard",headerContainer:"instant-apps-header__header-container",headerContent:"instant-apps-header__header-content",flipRtl:"instant-apps-header--rtl",logoScale:"instant-apps-header__logo-scale--",logoHeight:"instant-apps-header__logo-height--",standardHeight:"instant-apps-header__standard-height",actionsEndContainer:"instant-apps-header__actions-end-container",alignment:{center:"instant-apps-header__header-content--center",right:"instant-apps-header__header-content--right"}},u=class{constructor(e){l(this,e),this.infoIsOpenChanged=g(this,"infoIsOpenChanged",6),this._sanitizer=new h({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.dir=void 0,this.titleText="",this.titleTextLink=void 0,this.backgroundColor=void 0,this.textColor=void 0,this.logoImage=void 0,this.logoScale="m",this.logoImageAltText=void 0,this.logoLink=void 0,this.infoButton=!1,this.infoIsOpen=!1,this.infoTitleText=void 0,this.customHeaderHtml=void 0,this.headerAlignment="left",this.customHeaderCss=void 0,this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=r.medium[1],this.initialScale="m"}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}componentWillLoad(){this.dir=i(this.el),this.handleMobileBreakpoints(),this.dir=i(this.el),this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}render(){let e=this.logoImage==="undefined"||this.logoImage?.split("?")?.[0]==="undefined"||this.logoImage?.split("?")?.[0]===""||!this.logoImage,s=this.renderLogo(e),n=this.renderTitle(),c=this.headerAlignment==="right"||this.headerAlignment==="center"?a.headerContent.concat(" ",a.alignment[this.headerAlignment]):a.headerContent,m=o(this.fontFamily);return t(d,{key:"67508c680a63356bffe44968e023768d34a3a8d1"},this.customHeaderHtml?[t("style",null,this.customHeaderCss),t("div",{id:"customHeader",innerHTML:this.customHeaderHtml})]:t("header",{class:`${a.base}${this.dir==="rtl"?` ${a.flipRtl}`:""}${this.logoImage&&!e?` ${a.logoHeight}${this.logoScale}`:` ${a.standardHeight}`}`,style:{backgroundColor:this.backgroundColor,fontFamily:m}},t("div",{class:a.headerContainer},t("span",{class:c},s,n,this.infoButton?t("calcite-button",{style:{"--calcite-color-text-1":this.textColor},id:"infoButton",alignment:"start",appearance:"transparent",kind:"neutral","icon-start":"information-f",scale:"s",label:this.infoTitleText,title:this.infoTitleText,onClick:this.toggleInfo.bind(this)}):null),t("div",{class:a.actionsEndContainer},t("slot",{name:"actions-end"})))))}renderLogo(e){let s=this.logoScale??"m",n=`${a.logoScale}${s}`;return e?"":this.logoImage&&this.logoLink?t("a",{href:this.logoLink,target:"_blank"},t("img",{class:n,src:this.logoImage,alt:this.logoImageAltText})):this.logoImage?t("img",{class:n,src:this.logoImage,alt:this.logoImageAltText}):""}renderTitle(){return this.titleText&&this.titleTextLink?t("a",{style:{color:this.textColor},href:this.titleTextLink,rel:"noopener noreferrer",target:"_blank"},t("h1",{style:{color:this.textColor}},this.titleText)):t("h1",{style:{color:this.textColor}},this.titleText)}async toggleInfo(){return this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen),await Promise.resolve()}mqlCallback(){return e=>{let{matches:s}=e;if(s){this.logoScale="s";return}this.logoScale=this.initialScale}}handleMobileBreakpoints(){this.initialScale=this.logoScale;let e=`(max-width: ${this.mobileWidthBreakpoint}px)`,s=window.matchMedia(e);s.matches&&(this.logoScale="s"),s.addEventListener("change",this.mqlCallback())}get el(){return p(this)}static get watchers(){return{customHeaderHtml:["sanitizeCustomHeaderHtml"]}}};u.style=f;export{u as instant_apps_header};
3
+ v1.0.3 */
4
+ import{a as r}from"./A7TRZP7N.js";import{a as o,b as h}from"./JZUBI6LB.js";import{b as i}from"./ICTEUNHA.js";import{a as l,c as t,d,e as p,f as g}from"./QEC76CAD.js";import"./K6A5BZGW.js";var _=":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;--instant-apps-header-actions-end-height:auto;width:100%}:host .image.image_resized img{width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;text-decoration:var(--instant-apps-header-title-text-link-decoration);overflow:hidden}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}:host .instant-apps-header__sign-in-container{height:inherit;display:flex;align-items:center}:host .instant-apps-header__sign-in-container calcite-dropdown,:host .instant-apps-header__sign-in-container calcite-navigation-user{height:100%}:host .instant-apps-header__sign-in-container calcite-button{margin:0 10px}:host .instant-apps-header__sign-in-container calcite-dropdown-group{min-width:140px}",f=_,a={base:"instant-apps-header--standard",headerContainer:"instant-apps-header__header-container",headerContent:"instant-apps-header__header-content",flipRtl:"instant-apps-header--rtl",logoScale:"instant-apps-header__logo-scale--",logoHeight:"instant-apps-header__logo-height--",standardHeight:"instant-apps-header__standard-height",actionsEndContainer:"instant-apps-header__actions-end-container",alignment:{center:"instant-apps-header__header-content--center",right:"instant-apps-header__header-content--right"}},u=class{constructor(e){l(this,e),this.infoIsOpenChanged=g(this,"infoIsOpenChanged",6),this._sanitizer=new h({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.dir=void 0,this.titleText="",this.titleTextLink=void 0,this.backgroundColor=void 0,this.textColor=void 0,this.logoImage=void 0,this.logoScale="m",this.logoImageAltText=void 0,this.logoLink=void 0,this.infoButton=!1,this.infoIsOpen=!1,this.infoTitleText=void 0,this.customHeaderHtml=void 0,this.headerAlignment="left",this.customHeaderCss=void 0,this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=r.medium[1],this.initialScale="m"}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}componentWillLoad(){this.dir=i(this.el),this.handleMobileBreakpoints(),this.dir=i(this.el),this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}render(){let e=this.logoImage==="undefined"||this.logoImage?.split("?")?.[0]==="undefined"||this.logoImage?.split("?")?.[0]===""||!this.logoImage,s=this.renderLogo(e),n=this.renderTitle(),c=this.headerAlignment==="right"||this.headerAlignment==="center"?a.headerContent.concat(" ",a.alignment[this.headerAlignment]):a.headerContent,m=o(this.fontFamily);return t(d,{key:"67508c680a63356bffe44968e023768d34a3a8d1"},this.customHeaderHtml?[t("style",null,this.customHeaderCss),t("div",{id:"customHeader",innerHTML:this.customHeaderHtml})]:t("header",{class:`${a.base}${this.dir==="rtl"?` ${a.flipRtl}`:""}${this.logoImage&&!e?` ${a.logoHeight}${this.logoScale}`:` ${a.standardHeight}`}`,style:{backgroundColor:this.backgroundColor,fontFamily:m}},t("div",{class:a.headerContainer},t("span",{class:c},s,n,this.infoButton?t("calcite-button",{style:{"--calcite-color-text-1":this.textColor},id:"infoButton",alignment:"start",appearance:"transparent",kind:"neutral","icon-start":"information-f",scale:"s",label:this.infoTitleText,title:this.infoTitleText,onClick:this.toggleInfo.bind(this)}):null),t("div",{class:a.actionsEndContainer},t("slot",{name:"actions-end"})))))}renderLogo(e){let s=this.logoScale??"m",n=`${a.logoScale}${s}`;return e?"":this.logoImage&&this.logoLink?t("a",{href:this.logoLink,target:"_blank"},t("img",{class:n,src:this.logoImage,alt:this.logoImageAltText})):this.logoImage?t("img",{class:n,src:this.logoImage,alt:this.logoImageAltText}):""}renderTitle(){return this.titleText&&this.titleTextLink?t("a",{style:{color:this.textColor},href:this.titleTextLink,rel:"noopener noreferrer",target:"_blank"},t("h1",{style:{color:this.textColor}},this.titleText)):t("h1",{style:{color:this.textColor}},this.titleText)}async toggleInfo(){return this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen),await Promise.resolve()}mqlCallback(){return e=>{let{matches:s}=e;if(s){this.logoScale="s";return}this.logoScale=this.initialScale}}handleMobileBreakpoints(){this.initialScale=this.logoScale;let e=`(max-width: ${this.mobileWidthBreakpoint}px)`,s=window.matchMedia(e);s.matches&&(this.logoScale="s"),s.addEventListener("change",this.mqlCallback())}get el(){return p(this)}static get watchers(){return{customHeaderHtml:["sanitizeCustomHeaderHtml"]}}};u.style=f;export{u as instant_apps_header};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
3
+ v1.0.3 */
4
4
  var a={xsmall:[545],small:[545,768],medium:[769,992],large:[993,1200],xlarge:[1200]};export{a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as d}from"./G57AFF3K.js";import{e as h}from"./I2QY6RRM.js";import{c as l}from"./6OFBEWUU.js";import"./5Q6ZKF23.js";import{a as v,c as a,d as m,e as u}from"./6CHYPF6P.js";import"./QTN6BMW2.js";var p={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}},f=new Map;Object.keys(p).forEach(t=>{f.set(t,`<svg viewBox="0 0 32 32" width="32" height="32" fill="${p[t].fill}"><path d="${p[t].path}"/></svg>`)});function o(t){return f.get(t)||""}var _=":host{display:block;--instant-apps-create-action-background:var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-create-action-background-press:var(--calcite-color-foreground-3);--instant-apps-create-action-height:100%;--instant-apps-create-action-width:fit-content;--instant-apps-create-action-icon-color:var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-create-background:var(--calcite-color-foreground-1);--instant-apps-create-text-color:var(--calcite-color-text-1);--instant-apps-create-popover-width:450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1:var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1:var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 0.5rem 0;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:fit-content;margin-bottom:0.5rem;cursor:pointer;--calcite-color-text-link:var(--calcite-color-text-1);align-items:stretch;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.instant-apps-create__option:first-of-type{margin-top:0.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:0.75rem;color:var(--calcite-color-text-2);padding:0.75rem 0 0 0.75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:0.25rem;color:rgb(126, 126, 126);--tw-translate-x:0px;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x:0.5rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}",A=_,i={baseDark:"instant-apps-create calcite-mode-dark",baseLight:"instant-apps-create calcite-mode-light",inlineContainer:"instant-apps-create__inline-container",popoverContainer:"instant-apps-create__popover-container",hidden:"instant-apps-create__visually-hidden",header:"instant-apps-create__header",options:"instant-apps-create__options",option:"instant-apps-create__option",optionIcon:"instant-apps-create__option-icon",optionText:"instant-apps-create__option-text",optionTextWrapper:"instant-apps-create__option-text-wrapper",optionTitle:"instant-apps-create__option-title",optionSubtitle:"instant-apps-create__option-subtitle",optionLink:"instant-apps-create__option-link"},y=class{constructor(t){v(this,t),this.popoverIcon="grid",this.mode="inline",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.showHeader=!0,this.content=void 0,this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"],this.portal=void 0,this.baseClass=i.baseLight,this.messages=void 0,this.CreateOptionsLookup=void 0}contentChanged(){this.CreateOptionsLookup&&Object.keys(this.CreateOptionsLookup).forEach(t=>{this.CreateOptionsLookup[t].href=this.hrefLookup(t)})}async componentWillLoad(){return this.baseClass=d(this.el)==="dark"?i.baseDark:i.baseLight,await this.initializeModules(),await h(this).then(()=>{this.initializePredefinedOptions()})}disconnectedCallback(){this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel();return a(m,{key:"662bf8aee21aafd15b22d1c64f63e242229c932b"},a("div",{key:"51f0a144f417a0c4fda1a8db71a7d67472e6b7fb",class:this.baseClass},t))}async initializeModules(){return this.handles=await l(),await Promise.resolve()}initializePredefinedOptions(){let{instantApps:t,instantAppsDesc:e,mapViewer:n,mapViewerDesc:s,arcgisStoryMaps:r,storyMapsDesc:c,experienceBuilder:g,experienceBuilderDesc:w,dashboards:b,dashboardsDesc:x}=this.messages;this.CreateOptionsLookup={"instant-apps":{title:t,subtitle:e,img:o("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:n,subtitle:s,img:o("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:r,subtitle:c,img:o("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:g,subtitle:w,img:o("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:b,subtitle:x,img:o("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){let e=this.getBaseUrl(this.portal),n=this._getEnvironment(e),s=this.contentHref();switch(t){case"instant-apps":return`${e}/apps/instantgallery/index.html?${s}`;case"dashboards":return this.content!=null&&"portalItem"in this.content?`${e}/apps/dashboards/new#id=${this.content?.portalItem?.id}`:`${e}/apps/dashboards/new`;case"map-viewer":return`${e}/apps/mapviewer/index.html?${s}`;case"story-maps":return`https://storymaps${n==="prod"?"":n}.arcgis.com/stories/new?${s}`;case"experience-builder":return`https://experience${n==="prod"?"":n}.arcgis.com/builder/page/template/?${s}`}return""}contentHref(){return this?.content?.portalItem?.type==="Web Map"?`webmap=${this.content?.portalItem?.id}`:this?.content?.portalItem?.type==="Web Scene"?`webscene=${this.content?.portalItem?.id}`:typeof this?.content?.fetchMembers=="function"?`group=${this.content.id}`:""}getBaseUrl(t){if(!t)return"";let{customBaseUrl:e,portalHostname:n,urlKey:s}=t,{protocol:r}=window.location,c=s?`${s}.${e}`:n;return`${r}//${c}`}_getEnvironment(t){let e="";try{e=new URL(t)?.hostname}catch{}return e?.includes("arcgis.com")?e.includes("devext")&&"dev"||e.includes("qaext")&&"qa"||"prod":"dev"}renderPopover(){let t=this.renderPanel();return[a("calcite-popover",{referenceElement:"create-popover-btn",overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:e=>this.popoverEl=e,label:this.messages?.createLabel},t),a("calcite-action",{id:"create-popover-btn",alignment:"center",icon:this.popoverIcon,title:this.messages?.create,text:this.messages?.create})]}renderPanel(){let t=this.showHeader?this.renderHeader():null,e=this.renderOptions(),n=this.mode==="inline"?i.inlineContainer:i.popoverContainer;return a("div",{class:n},t,e)}renderHeader(){let{create:t,createSubheading:e}=this.messages;return a("div",{class:i.header},a("h3",null,t),a("p",null,e))}renderOptions(){return a("nav",null,this.options.map(t=>this.renderOption(t)))}renderOption(t){if(typeof t=="string"&&(t=this.CreateOptionsLookup?.[t]),t==null)return a("div",null);let{title:e,subtitle:n,img:s,href:r}=t;return a("a",{class:i.option,href:r,target:"_blank"},a("span",{class:i.optionIcon,innerHTML:s}),a("span",{class:i.optionText},a("span",{class:i.optionTextWrapper},a("h3",{class:i.optionTitle},e),a("calcite-icon",{scale:"s",icon:"launch"})),a("p",{class:i.optionSubtitle},n)))}get el(){return u(this)}static get watchers(){return{content:["contentChanged"]}}};y.style=A;export{y as instant_apps_create};
3
+ v1.0.3 */
4
+ import{a as d}from"./NRBFWIU7.js";import{e as h}from"./3U5MCBML.js";import{c as l}from"./ZWTSIAER.js";import"./ICTEUNHA.js";import{a as v,c as a,d as m,e as u}from"./QEC76CAD.js";import"./K6A5BZGW.js";var p={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}},f=new Map;Object.keys(p).forEach(t=>{f.set(t,`<svg viewBox="0 0 32 32" width="32" height="32" fill="${p[t].fill}"><path d="${p[t].path}"/></svg>`)});function o(t){return f.get(t)||""}var _=":host{display:block;--instant-apps-create-action-background:var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-create-action-background-press:var(--calcite-color-foreground-3);--instant-apps-create-action-height:100%;--instant-apps-create-action-width:fit-content;--instant-apps-create-action-icon-color:var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-create-background:var(--calcite-color-foreground-1);--instant-apps-create-text-color:var(--calcite-color-text-1);--instant-apps-create-popover-width:450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1:var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1:var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 0.5rem 0;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:fit-content;margin-bottom:0.5rem;cursor:pointer;--calcite-color-text-link:var(--calcite-color-text-1);align-items:stretch;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.instant-apps-create__option:first-of-type{margin-top:0.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:0.75rem;color:var(--calcite-color-text-2);padding:0.75rem 0 0 0.75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:0.25rem;color:rgb(126, 126, 126);--tw-translate-x:0px;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x:0.5rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}",A=_,i={baseDark:"instant-apps-create calcite-mode-dark",baseLight:"instant-apps-create calcite-mode-light",inlineContainer:"instant-apps-create__inline-container",popoverContainer:"instant-apps-create__popover-container",hidden:"instant-apps-create__visually-hidden",header:"instant-apps-create__header",options:"instant-apps-create__options",option:"instant-apps-create__option",optionIcon:"instant-apps-create__option-icon",optionText:"instant-apps-create__option-text",optionTextWrapper:"instant-apps-create__option-text-wrapper",optionTitle:"instant-apps-create__option-title",optionSubtitle:"instant-apps-create__option-subtitle",optionLink:"instant-apps-create__option-link"},y=class{constructor(t){v(this,t),this.popoverIcon="grid",this.mode="inline",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.showHeader=!0,this.content=void 0,this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"],this.portal=void 0,this.baseClass=i.baseLight,this.messages=void 0,this.CreateOptionsLookup=void 0}contentChanged(){this.CreateOptionsLookup&&Object.keys(this.CreateOptionsLookup).forEach(t=>{this.CreateOptionsLookup[t].href=this.hrefLookup(t)})}async componentWillLoad(){return this.baseClass=d(this.el)==="dark"?i.baseDark:i.baseLight,await this.initializeModules(),await h(this).then(()=>{this.initializePredefinedOptions()})}disconnectedCallback(){this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel();return a(m,{key:"662bf8aee21aafd15b22d1c64f63e242229c932b"},a("div",{key:"51f0a144f417a0c4fda1a8db71a7d67472e6b7fb",class:this.baseClass},t))}async initializeModules(){return this.handles=await l(),await Promise.resolve()}initializePredefinedOptions(){let{instantApps:t,instantAppsDesc:e,mapViewer:n,mapViewerDesc:s,arcgisStoryMaps:r,storyMapsDesc:c,experienceBuilder:g,experienceBuilderDesc:w,dashboards:b,dashboardsDesc:x}=this.messages;this.CreateOptionsLookup={"instant-apps":{title:t,subtitle:e,img:o("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:n,subtitle:s,img:o("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:r,subtitle:c,img:o("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:g,subtitle:w,img:o("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:b,subtitle:x,img:o("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){let e=this.getBaseUrl(this.portal),n=this._getEnvironment(e),s=this.contentHref();switch(t){case"instant-apps":return`${e}/apps/instantgallery/index.html?${s}`;case"dashboards":return this.content!=null&&"portalItem"in this.content?`${e}/apps/dashboards/new#id=${this.content?.portalItem?.id}`:`${e}/apps/dashboards/new`;case"map-viewer":return`${e}/apps/mapviewer/index.html?${s}`;case"story-maps":return`https://storymaps${n==="prod"?"":n}.arcgis.com/stories/new?${s}`;case"experience-builder":return`https://experience${n==="prod"?"":n}.arcgis.com/builder/page/template/?${s}`}return""}contentHref(){return this?.content?.portalItem?.type==="Web Map"?`webmap=${this.content?.portalItem?.id}`:this?.content?.portalItem?.type==="Web Scene"?`webscene=${this.content?.portalItem?.id}`:typeof this?.content?.fetchMembers=="function"?`group=${this.content.id}`:""}getBaseUrl(t){if(!t)return"";let{customBaseUrl:e,portalHostname:n,urlKey:s}=t,{protocol:r}=window.location,c=s?`${s}.${e}`:n;return`${r}//${c}`}_getEnvironment(t){let e="";try{e=new URL(t)?.hostname}catch{}return e?.includes("arcgis.com")?e.includes("devext")&&"dev"||e.includes("qaext")&&"qa"||"prod":"dev"}renderPopover(){let t=this.renderPanel();return[a("calcite-popover",{referenceElement:"create-popover-btn",overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:e=>this.popoverEl=e,label:this.messages?.createLabel},t),a("calcite-action",{id:"create-popover-btn",alignment:"center",icon:this.popoverIcon,title:this.messages?.create,text:this.messages?.create})]}renderPanel(){let t=this.showHeader?this.renderHeader():null,e=this.renderOptions(),n=this.mode==="inline"?i.inlineContainer:i.popoverContainer;return a("div",{class:n},t,e)}renderHeader(){let{create:t,createSubheading:e}=this.messages;return a("div",{class:i.header},a("h3",null,t),a("p",null,e))}renderOptions(){return a("nav",null,this.options.map(t=>this.renderOption(t)))}renderOption(t){if(typeof t=="string"&&(t=this.CreateOptionsLookup?.[t]),t==null)return a("div",null);let{title:e,subtitle:n,img:s,href:r}=t;return a("a",{class:i.option,href:r,target:"_blank"},a("span",{class:i.optionIcon,innerHTML:s}),a("span",{class:i.optionText},a("span",{class:i.optionTextWrapper},a("h3",{class:i.optionTitle},e),a("calcite-icon",{scale:"s",icon:"launch"})),a("p",{class:i.optionSubtitle},n)))}get el(){return u(this)}static get watchers(){return{content:["contentChanged"]}}};y.style=A;export{y as instant_apps_create};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.3 */
4
+ import{a,b}from"./IGGGIS6G.js";import"./RHHKJQMD.js";import"./K6A5BZGW.js";export{a as ChannelEditorTypes,b as ChannelSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as e}from"./XHXK6QN7.js";import{b as t,g as s,m as i}from"./Y3DUHGHO.js";var u=["hub:site:edit","hub:site:create","hub:site:followers","hub:site:discussions","hub:site:settings"],a=o=>Object.assign(Object.assign({$async:!0},e),{properties:Object.assign(Object.assign({},e.properties),{name:t,_discussions:s,telemetry:i,_urlInfo:{type:"object",isUniqueDomain:{siteId:o},required:["subdomain"],properties:{subdomain:{type:"string",format:"slug"}}}})});export{u as a,a as b};
3
+ v1.0.3 */
4
+ import{a as e}from"./IGM6T5LG.js";import{b as t,g as s,m as i}from"./6BX7KLOB.js";var u=["hub:site:edit","hub:site:create","hub:site:followers","hub:site:discussions","hub:site:settings"],a=o=>Object.assign(Object.assign({$async:!0},e),{properties:Object.assign(Object.assign({},e.properties),{name:t,_discussions:s,telemetry:i,_urlInfo:{type:"object",isUniqueDomain:{siteId:o},required:["subdomain"],properties:{subdomain:{type:"string",format:"slug"}}}})});export{u as a,a 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/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as e}from"./3UITRYPY.js";function i(r,n,o){let t=e(r,n);return t!==void 0?t:o}export{i as a};
3
+ v1.0.3 */
4
+ import{a as e}from"./Z5LX6R34.js";function i(r,n,o){let t=e(r,n);return t!==void 0?t:o}export{i as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as X}from"./AGN7ST2V.js";import{a as s}from"./R6VHQQOK.js";import{c as x}from"./J6SZZA33.js";import{a as J,b as H}from"./MMQ4KQ2B.js";import{h as V,i as z}from"./LHDC2KUS.js";import{b as R,c as w}from"./BTHJLT2K.js";import{d as U,e as M,h as I,j as h,m as K,p as P,q as T,r as N,s as C,t as B}from"./VSEHM5KR.js";import"./YX2IMVKL.js";import"./MRDF2627.js";import"./XINOQA62.js";import"./MRHAUAK5.js";import{a as S,b as c,c as f,d as L,e as E,f as k}from"./BN32H2NI.js";import"./UHULYTFL.js";import{i as G}from"./OSZNMAJF.js";import"./QUB3JPGL.js";import{a as p}from"./NDXSJLKV.js";import"./N2SRPBDD.js";import"./SEVUDBYU.js";import"./6ZPPQS7Z.js";import"./BWY46B5P.js";import{k as O,s as j}from"./SPYEGWSA.js";import"./3UIKDYVX.js";import"./3XT4LMZL.js";import"./NHKMUTOW.js";import{a as d}from"./3UITRYPY.js";import"./E6YH3G2I.js";import"./HX4VINVI.js";import"./QTN6BMW2.js";function b(e,t){if(e===t)return!0;if(e&&t&&x(e)&&x(t)){if(Array.isArray(e)!==Array.isArray(t))return!1;let o=Object.keys(e);return o.length!==Object.keys(t).length?!1:o.every(r=>b(e[r],t[r]))}return!1}var le=/\/[a-zA-Z]+server(\/|\/(\d+))?$/i;function Q(e){return le.test(e)}var pe=async(e,t)=>{let o=await fetch(C(e,t)),r=await o.json();if(!o.ok||r.statusCode===404)return{message:`Download schedule not found for item ${e}`,statusCode:404,schedule:null};if(r.mode==="manual")return{schedule:{mode:"manual"},message:`Download schedule found for item ${e}`,statusCode:200};switch(delete r.itemId,r.cadence){case"daily":case"weekly":case"monthly":case"yearly":return{schedule:Object.assign(Object.assign({},r),{mode:"scheduled"}),message:`Download schedule found for item ${e}`,statusCode:200}}},ce=async(e,t,o)=>{let r=p(t);r.mode!=="manual"&&delete r.mode;let a=C(e,o),i={method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify(Object.assign(Object.assign({},r),{itemId:e}))},n=await fetch(a,i);return Object.assign(Object.assign({},await n.json()),{statusCode:n.status})},me=async(e,t)=>{let o=C(e,t),a=await fetch(o,{method:"DELETE",headers:{accept:"application/json"}});return Object.assign(Object.assign({},await a.json()),{statusCode:a.status})},$=async(e,t)=>{let o=await pe(e.id,t);return e.schedule.mode==="automatic"&&o.statusCode===404?{message:"No schedule set, and incoming schedule is automatic.",statusCode:404}:b(e.schedule,o.schedule)?{message:"No action needed as schedules deepEqual each other."}:e.schedule.mode==="automatic"?await me(e.id,t):await ce(e.id,e.schedule,t)},Y=(e,t)=>{var o,r;let a=(o=e.authentication)===null||o===void 0?void 0:o.token;return((r=e.portal)===null||r===void 0?void 0:r.includes("arcgis.com"))&&t==="public"&&!!a};function v(){let e=J();return e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"licenseInfo",storeKey:"item.licenseInfo"}),e.push({entityKey:"size",storeKey:"item.size"}),e}function W(e,t,o,r={}){let a;o.authentication&&(a=o.authentication.token),t=H(e.item,t);let i=K(e.item,o,a);if(t.thumbnailUrl=i,t.links={self:G(t.id,o),siteRelative:P(t.type,t.slug||t.id,t.typeKeywords),siteRelativeEntityType:P(t.type),workspaceRelative:X("content",t.id),thumbnail:i,contentEditUrl:N(e.item,o)},t.licenseInfo=e.item.licenseInfo||"",t.schedule=r.schedule,t.extendedProps=Q(t.url)?ue(e.item,r,o):fe(e.item,r,o),r.server){t.serverQueryCapability=f(c.QUERY,r.server),t.serverExtractCapability=f(c.EXTRACT,r.server);let n=d(r,"server.supportedExportFormats");t.serverExtractFormats=n&&n.split(",")}return r.metadata&&(t.additionalResources=T(e.item,r.metadata,o)),t}function ue(e,t,o){let r=Z(e,t,o),a=Object.assign(Object.assign({},r),{kind:"service"});if(t.server){a.server=t.server,a.serverQueryCapability=f(c.QUERY,t.server),a.serverExtractCapability=f(c.EXTRACT,t.server);let i=d(t,"server.supportedExportFormats");a.serverExtractFormats=i&&i.split(",")}return a}function fe(e,t,o){let r=Z(e,t,o);return Object.assign(Object.assign({},r),{kind:"content"})}function Z(e,t,o){return{kind:null,metadata:t.metadata,additionalResources:T(e,t.metadata,o),downloads:d(e,"properties.downloads")}}function q(e,t,o){let a=new w(v()).storeToEntity(e,{});return W(e,a,t,o)}var A=[s.JPG,s.PNG,s.PNG8,s.PNG24,s.PNG32],ee=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML],te=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB],D=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB,s.FEATURE_COLLECTION,s.EXCEL,s.GEO_PACKAGE,s.SQLITE,s.JSON];function oe(e){let t=e.serverExtractFormats||[],o=D.filter(a=>t.includes(a)),r=t.filter(a=>!D.includes(a));return[...o,...r].map(a=>({type:"dynamic",format:a}))}function re(e){return((d(e,"extendedProps.server.currentVersion")||0)<10.2?A.filter(r=>r!==s.PNG32):A).map(r=>({type:"dynamic",format:r}))}function ae(){return ee.map(e=>({type:"dynamic",format:e}))}function se(){return te.map(e=>({type:"dynamic",format:e}))}function ie(e,t){let o=[],r={createReplica:()=>{o=oe(t)},paging:()=>{o=ae()},fgdb:()=>{o=se()},exportImage:()=>{o=re(t)}};return r[e]&&r[e](),o}function ne(e){let t=E(e),o=ie(t,e),r=d(e,"extendedProps.additionalResources")||[],a=d(e,"extendedProps.downloads"),i=o.map(l=>({key:l.format,hidden:!1}));if(r.forEach((l,m)=>{i.push({key:`additionalResource::${m}`,hidden:!1})}),a&&a.flowType===t){let l=i.filter(u=>!a.formats.find(g=>g.key===u.key)),m=a.formats.filter(u=>i.find(g=>g.key===u.key));return{flowType:t,formats:[...m,...l]}}return{flowType:t,formats:i}}var ge={item:{title:"No Title Provided",description:"",snippet:"",tags:[],typeKeywords:[]},data:null};async function Ft(e,t){let o=Object.assign({},e);o.typeKeywords=R(o.typeKeywords,o.isDiscussable);let r=new w(v()),a=r.entityToStore(o,p(ge));return a=await V(a,t),r.storeToEntity(a,{})}async function xt(e,t){let o=await O(e.id,t),r={item:o};e.typeKeywords=R(e.typeKeywords,e.isDiscussable);let i=new w(v()).entityToStore(e,r),n=E(e),l=d(e,"extendedProps.downloads.formats"),m=S(e)&&n!=="createReplica";if(k(e)&&n&&l&&!m){let y=p(e.extendedProps.downloads);h("item.properties.downloads",y,i,!0)}let g=await z(i,t),F={};if(S(e)){let y=await M(Object.assign(Object.assign({},t),{url:e.url}));if(f(c.EXTRACT,y)!==e.serverExtractCapability){let _=L(c.EXTRACT,y),de={capabilities:_.capabilities};await I(U(e.url),{authentication:t.authentication,updateDefinition:de}),F.server=_}else F.server=y}return Y(t,e.access)&&(b(e._forceUpdate,[!0])&&await B(o.id,t),delete e._forceUpdate,await $(e,t)),q(g,t,F)}async function ht(e,t){let o=Object.assign(Object.assign({},t),{id:e});await j(o)}function St(e,t){var o;let r=p(e);delete r.downloadFormats;let a=p(r);if(E(a)&&e.downloadFormats){let n=ne(a),l=e.downloadFormats.map(m=>{let u=p(m);return delete u.label,u});n.formats=l,h("extendedProps.downloads",n,a,!0)}return a.extent=((o=e.location)===null||o===void 0?void 0:o.extent)||[],a}export{Ft as createContent,ht as deleteContent,St as editorToContent,xt as updateContent};
3
+ v1.0.3 */
4
+ import{a as X}from"./X6CICXR6.js";import{a as s}from"./62ZWA6O7.js";import{c as x}from"./VS4BFKL3.js";import{a as J,b as H}from"./G4JWUXWW.js";import{h as V,i as z}from"./RRF3ACRD.js";import{b as R,c as w}from"./BT6EYE4X.js";import{d as U,e as M,h as I,j as h,m as K,p as P,q as T,r as N,s as C,t as B}from"./QLVDQY5R.js";import"./IAGXR3NP.js";import"./7XCWAN5G.js";import"./JMQV4UK4.js";import"./J5Z6XBH5.js";import{a as S,b as c,c as f,d as L,e as E,f as k}from"./ZMPOAOPQ.js";import"./6DFZGD4Y.js";import{i as G}from"./WFX5NIY6.js";import"./7ANMAQXN.js";import{a as p}from"./EYRRGEDQ.js";import"./OVCAOTN3.js";import"./XRFRTU7J.js";import"./FP7ZUAH6.js";import"./JIYQEZGV.js";import{k as O,s as j}from"./RIVVWLOA.js";import"./SYSMKBTI.js";import"./M7HTAQHD.js";import"./ASBGMXK6.js";import{a as d}from"./Z5LX6R34.js";import"./RHHKJQMD.js";import"./SL2K7YIF.js";import"./K6A5BZGW.js";function b(e,t){if(e===t)return!0;if(e&&t&&x(e)&&x(t)){if(Array.isArray(e)!==Array.isArray(t))return!1;let o=Object.keys(e);return o.length!==Object.keys(t).length?!1:o.every(r=>b(e[r],t[r]))}return!1}var le=/\/[a-zA-Z]+server(\/|\/(\d+))?$/i;function Q(e){return le.test(e)}var pe=async(e,t)=>{let o=await fetch(C(e,t)),r=await o.json();if(!o.ok||r.statusCode===404)return{message:`Download schedule not found for item ${e}`,statusCode:404,schedule:null};if(r.mode==="manual")return{schedule:{mode:"manual"},message:`Download schedule found for item ${e}`,statusCode:200};switch(delete r.itemId,r.cadence){case"daily":case"weekly":case"monthly":case"yearly":return{schedule:Object.assign(Object.assign({},r),{mode:"scheduled"}),message:`Download schedule found for item ${e}`,statusCode:200}}},ce=async(e,t,o)=>{let r=p(t);r.mode!=="manual"&&delete r.mode;let a=C(e,o),i={method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify(Object.assign(Object.assign({},r),{itemId:e}))},n=await fetch(a,i);return Object.assign(Object.assign({},await n.json()),{statusCode:n.status})},me=async(e,t)=>{let o=C(e,t),a=await fetch(o,{method:"DELETE",headers:{accept:"application/json"}});return Object.assign(Object.assign({},await a.json()),{statusCode:a.status})},$=async(e,t)=>{let o=await pe(e.id,t);return e.schedule.mode==="automatic"&&o.statusCode===404?{message:"No schedule set, and incoming schedule is automatic.",statusCode:404}:b(e.schedule,o.schedule)?{message:"No action needed as schedules deepEqual each other."}:e.schedule.mode==="automatic"?await me(e.id,t):await ce(e.id,e.schedule,t)},Y=(e,t)=>{var o,r;let a=(o=e.authentication)===null||o===void 0?void 0:o.token;return((r=e.portal)===null||r===void 0?void 0:r.includes("arcgis.com"))&&t==="public"&&!!a};function v(){let e=J();return e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"licenseInfo",storeKey:"item.licenseInfo"}),e.push({entityKey:"size",storeKey:"item.size"}),e}function W(e,t,o,r={}){let a;o.authentication&&(a=o.authentication.token),t=H(e.item,t);let i=K(e.item,o,a);if(t.thumbnailUrl=i,t.links={self:G(t.id,o),siteRelative:P(t.type,t.slug||t.id,t.typeKeywords),siteRelativeEntityType:P(t.type),workspaceRelative:X("content",t.id),thumbnail:i,contentEditUrl:N(e.item,o)},t.licenseInfo=e.item.licenseInfo||"",t.schedule=r.schedule,t.extendedProps=Q(t.url)?ue(e.item,r,o):fe(e.item,r,o),r.server){t.serverQueryCapability=f(c.QUERY,r.server),t.serverExtractCapability=f(c.EXTRACT,r.server);let n=d(r,"server.supportedExportFormats");t.serverExtractFormats=n&&n.split(",")}return r.metadata&&(t.additionalResources=T(e.item,r.metadata,o)),t}function ue(e,t,o){let r=Z(e,t,o),a=Object.assign(Object.assign({},r),{kind:"service"});if(t.server){a.server=t.server,a.serverQueryCapability=f(c.QUERY,t.server),a.serverExtractCapability=f(c.EXTRACT,t.server);let i=d(t,"server.supportedExportFormats");a.serverExtractFormats=i&&i.split(",")}return a}function fe(e,t,o){let r=Z(e,t,o);return Object.assign(Object.assign({},r),{kind:"content"})}function Z(e,t,o){return{kind:null,metadata:t.metadata,additionalResources:T(e,t.metadata,o),downloads:d(e,"properties.downloads")}}function q(e,t,o){let a=new w(v()).storeToEntity(e,{});return W(e,a,t,o)}var A=[s.JPG,s.PNG,s.PNG8,s.PNG24,s.PNG32],ee=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML],te=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB],D=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB,s.FEATURE_COLLECTION,s.EXCEL,s.GEO_PACKAGE,s.SQLITE,s.JSON];function oe(e){let t=e.serverExtractFormats||[],o=D.filter(a=>t.includes(a)),r=t.filter(a=>!D.includes(a));return[...o,...r].map(a=>({type:"dynamic",format:a}))}function re(e){return((d(e,"extendedProps.server.currentVersion")||0)<10.2?A.filter(r=>r!==s.PNG32):A).map(r=>({type:"dynamic",format:r}))}function ae(){return ee.map(e=>({type:"dynamic",format:e}))}function se(){return te.map(e=>({type:"dynamic",format:e}))}function ie(e,t){let o=[],r={createReplica:()=>{o=oe(t)},paging:()=>{o=ae()},fgdb:()=>{o=se()},exportImage:()=>{o=re(t)}};return r[e]&&r[e](),o}function ne(e){let t=E(e),o=ie(t,e),r=d(e,"extendedProps.additionalResources")||[],a=d(e,"extendedProps.downloads"),i=o.map(l=>({key:l.format,hidden:!1}));if(r.forEach((l,m)=>{i.push({key:`additionalResource::${m}`,hidden:!1})}),a&&a.flowType===t){let l=i.filter(u=>!a.formats.find(g=>g.key===u.key)),m=a.formats.filter(u=>i.find(g=>g.key===u.key));return{flowType:t,formats:[...m,...l]}}return{flowType:t,formats:i}}var ge={item:{title:"No Title Provided",description:"",snippet:"",tags:[],typeKeywords:[]},data:null};async function Ft(e,t){let o=Object.assign({},e);o.typeKeywords=R(o.typeKeywords,o.isDiscussable);let r=new w(v()),a=r.entityToStore(o,p(ge));return a=await V(a,t),r.storeToEntity(a,{})}async function xt(e,t){let o=await O(e.id,t),r={item:o};e.typeKeywords=R(e.typeKeywords,e.isDiscussable);let i=new w(v()).entityToStore(e,r),n=E(e),l=d(e,"extendedProps.downloads.formats"),m=S(e)&&n!=="createReplica";if(k(e)&&n&&l&&!m){let y=p(e.extendedProps.downloads);h("item.properties.downloads",y,i,!0)}let g=await z(i,t),F={};if(S(e)){let y=await M(Object.assign(Object.assign({},t),{url:e.url}));if(f(c.EXTRACT,y)!==e.serverExtractCapability){let _=L(c.EXTRACT,y),de={capabilities:_.capabilities};await I(U(e.url),{authentication:t.authentication,updateDefinition:de}),F.server=_}else F.server=y}return Y(t,e.access)&&(b(e._forceUpdate,[!0])&&await B(o.id,t),delete e._forceUpdate,await $(e,t)),q(g,t,F)}async function ht(e,t){let o=Object.assign(Object.assign({},t),{id:e});await j(o)}function St(e,t){var o;let r=p(e);delete r.downloadFormats;let a=p(r);if(E(a)&&e.downloadFormats){let n=ne(a),l=e.downloadFormats.map(m=>{let u=p(m);return delete u.label,u});n.formats=l,h("extendedProps.downloads",n,a,!0)}return a.extent=((o=e.location)===null||o===void 0?void 0:o.extent)||[],a}export{Ft as createContent,ht as deleteContent,St as editorToContent,xt as updateContent};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{b as C}from"./2DREXAAI.js";import a from"./X7CS7ZS5.js";import{a as T,e as E}from"./RHC7DNDW.js";import{a as D,c as s}from"./JQKAETCU.js";import{G as y,ma as P}from"./UPVA5Z5X.js";import"./42CBSGWQ.js";import"./J6SZZA33.js";import"./LHDC2KUS.js";import"./VSEHM5KR.js";import"./MRDF2627.js";import"./XINOQA62.js";import"./MRHAUAK5.js";import"./OSZNMAJF.js";import"./QUB3JPGL.js";import"./NDXSJLKV.js";import"./N2SRPBDD.js";import"./6ZPPQS7Z.js";import"./BWY46B5P.js";import"./SPYEGWSA.js";import{g as r}from"./3UIKDYVX.js";import"./3XT4LMZL.js";import"./NHKMUTOW.js";import"./3UITRYPY.js";import"./E6YH3G2I.js";import{a as A}from"./J67A6WYJ.js";import{B as f,D as N,c as o,d as m,n as i,p as w,x as d,y as b}from"./6ULIHKIX.js";import"./QTN6BMW2.js";export default $arcgis.t(([{a:G,c:M,e:I,f:F,g:R,h:u,i:S}])=>{var h=o`@layer{/** @license
3
+ v1.0.3 */
4
+ import{b as C}from"./7QEYVLH4.js";import a from"./TFH7GJUO.js";import{a as T,e as E}from"./WOW7ES6W.js";import{a as D,c as s}from"./23KPU4GQ.js";import{G as y,ma as P}from"./U3K7MHYO.js";import"./TSUZDZYM.js";import"./VS4BFKL3.js";import"./RRF3ACRD.js";import"./QLVDQY5R.js";import"./7XCWAN5G.js";import"./JMQV4UK4.js";import"./J5Z6XBH5.js";import"./WFX5NIY6.js";import"./7ANMAQXN.js";import"./EYRRGEDQ.js";import"./OVCAOTN3.js";import"./FP7ZUAH6.js";import"./JIYQEZGV.js";import"./RIVVWLOA.js";import{g as r}from"./SYSMKBTI.js";import"./M7HTAQHD.js";import"./ASBGMXK6.js";import"./Z5LX6R34.js";import"./RHHKJQMD.js";import{a as A}from"./LN5LFFQL.js";import{B as f,D as N,c as o,d as m,n as i,p as w,x as d,y as b}from"./QSBF5CAO.js";import"./K6A5BZGW.js";export default $arcgis.t(([{a:G,c:M,e:I,f:F,g:R,h:u,i:S}])=>{var h=o`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
3
+ v1.0.3 */
4
4
  var l=e=>({labelKey:`${e}.fields.slug.label`,scope:"/properties/_slug",type:"Control",options:{control:"hub-field-input-input",messages:[{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.slug.patternError`},{type:"ERROR",keyword:"isUniqueSlug",icon:!0,labelKey:`${e}.fields.slug.isUniqueError`}]}});export{l as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as p,b as f,g as V,j as U,l as q,m as B,n as O,t as w,u as S,v as $,w as k}from"./Z2FRFIOF.js";import{a as E}from"./NJBLOY6O.js";import"./RQNGE4QQ.js";import{E as N,h as M,i as A}from"./6OFBEWUU.js";import{a as u,c as s,e as L,f as T,h as R}from"./6CHYPF6P.js";import"./QTN6BMW2.js";var X=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}",Y=X,D={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},ee=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption?.expanded}async componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){return s("div",{key:"cf9f8f643477fc66b5ab9d4f69faa3591664e1a0",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${D.service} ${D.groupLayer}`},s("instant-apps-interactive-legend-layer-element-caption",{key:"10339df7a9d65d87f20c6bf8f84f4bd578495085",ref:e=>this.layerCaption=e,class:$(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),s("div",{key:"c41488c758479a0c3820187641b27d97a7de824d",class:`${D.groupContent} ${this.expanded?"show":"hide"}`},s("slot",{key:"4778c2674ac10a464aa4cca6ec080dfbdca53afa",name:"content"})))}get el(){return L(this)}};ee.style=Y;var te=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}",ne=te,z={service:"esri-legend__service",groupLayerChild:"esri-legend__group-layer-child",layer:"esri-legend__layer"},ae=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){let e=this.activeLayerInfo.parent?` ${z.groupLayerChild}`:"";return s("div",{key:"aa39da1dd64aae1630988e2a1af8a2b7faea97d9",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${z.service}${e}`,tabIndex:0},s("instant-apps-interactive-legend-layer-element-caption",{key:"e7013faace5d61da9062c53c3336bddc3f87c1b4",ref:n=>{n&&(this.layerCaption=n)},legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:$(this.el)}),s("div",{key:"c54f12b6f0a1b1c17ff97c368fac17795e62e74a",id:`${this.activeLayerInfo?.layer?.id}-legend-layer`,class:`${z.layer}${this.expanded?" show":" hide"}`},s("slot",{key:"af29568610f22a76e2d9792c178b0b220cc0bb5d",name:"content"})))}get el(){return L(this)}};ae.style=ne;var ie=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}",se=ie,v={layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerTable:"esri-legend__layer-table",nestedUniqueSymbol:"instant-apps-interactive-legend__nested-unique-symbol",nonInteractive:"instant-apps-interactive-legend__non-interactive"},le=class{constructor(e){u(this,e),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText="",this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){let e=this.isChild?v.layerChildTable:v.layerTable,n=this.legendElement?.infos?.length===1&&!this.activeLayerInfo?.layer?.renderer?.field,t=(this.isSizeRamp||!this.isChild)&&!this.isColorRamp?` ${v.layerTableSizeRamp}`:"",a=this.isInteractive?"":` ${v.nonInteractive}`,i=w(this.activeLayerInfo)?` ${v.nestedUniqueSymbol}`:"",l=n&&!this.expanded&&!this.zoomTo?!0:this.expanded;if(this.isRelationshipRamp){let c=f.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id];l=c===void 0?!0:c}return s("div",{key:"cea3abec3b0d96dd275cadbf6c2446d92c4d39dd",class:`${e}${t}${a}${i}`},s("div",{key:"6124c13d37dee96cb88498f25b275196fd899af5",id:`${this.activeLayerInfo?.layer?.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&n?"hide":"show"},s("instant-apps-interactive-legend-legend-element-caption",{key:"2c89bf0cb37046f020bdfed08e15abadd6513a1c",ref:r=>{r&&(this.legendLayerCaption=r)},legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),s("div",{key:"content",id:`${this.activeLayerInfo?.layer?.id}-legend-element-content-${this.legendElementIndex}`,class:l?"show":"hide"},s("slot",{key:"3ddd3cfe429bcd1a21c020dccc307395d89ba5c9",name:"content"})))}};le.style=se;var re=".sc-instant-apps-interactive-legend-legend-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption{--instant-apps-interactive-legend-ui-padding:5px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;justify-content:flex-end;width:100%}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__show-all-btn.sc-instant-apps-interactive-legend-legend-element-caption{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-ui-brand);font-weight:var(--calcite-font-weight-medium);font-size:0.75rem;padding-inline-start:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__zoom-to-btn.sc-instant-apps-interactive-legend-legend-element-caption{--calcite-icon-color:var(--calcite-ui-brand);--calcite-color-transparent-hover:transparent}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;font-size:0.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-legend-element-caption-h:dir(rtl) .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}",oe=re,b;(function(e){e.ZoomTo="magnifying-glass-plus",e.ShowAll="list-check-all"})(b||(b={}));var g={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},ce=class{constructor(e){u(this,e),this.showAllSelectedEvent=T(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=T(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){let e=w(this.activeLayerInfo),n=U(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:t}=this,a=f.get("compact"),i=a?` ${g.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText&&s("span",{class:g.layerCaptionText,title:this.titleText},this.titleText),r=(this.isInteractive||n)&&this.renderLegendElementCaptionControls();return s("div",{class:`${g.layerCaption}${i}`},s("calcite-action",{onClick:this.toggleExpanded(),icon:t?"chevron-down":"chevron-up",appearance:"transparent",text:t?this.messages?.collapse:this.messages?.expand,label:t?this.messages?.collapse:this.messages?.expand,scale:"s"}),a?[l,r]:[r,l])}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${g.layerCaptionBtnContainerNoText}`;return s("div",{key:"layer-caption-btn-container",class:`${g.layerCaptionBtnContainer}${e}`},this.renderShowAllZoomToButtons())}renderShowAllZoomToButtons(){return f.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="zoomToCompact",i=this.zoomTo&&[s("calcite-action",{id:a,class:g.zoomTo,onClick:this.handleZoomTo(),icon:b.ZoomTo,appearance:"transparent",scale:"s",text:this.messages?.zoomTo}),s("calcite-tooltip",{"reference-element":a,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)],l=t&&s("button",{onClick:this.handleShowAll(),class:g.showAll},this.messages?.showAll);return[i,l]}renderButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="showAll",i="zoomTo",l=t&&[s("calcite-button",{key:"show-all-button",id:a,label:this.messages?.showAll,onClick:this.handleShowAll(),iconStart:b.ShowAll,appearance:"outline",round:!0}),s("calcite-tooltip",{referenceElement:a,placement:"top",label:this.messages?.showAll},this.messages?.showAll)],r=this.zoomTo&&[s("calcite-button",{key:"zoom-to-button",id:i,label:this.messages?.zoomTo,onClick:this.handleZoomTo(),iconStart:b.ZoomTo,appearance:"outline",round:!0}),s("calcite-tooltip",{"reference-element":i,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)];return[l,r]}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(this.activeLayerInfo?.legendElements?.filter(n=>n.type==="relationship-ramp")).length>0&&f.set("relationshipRampExpandStates",{...p.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=V(this.layer),n=S(e,this.legendElement);O(e,this.legendvm.view,n)}}handleShowAll(){return()=>{let e=()=>{let i=B(t,this.legendElement.title);k({intLegendLayerData:i,layerId:this.layer.id})},n=()=>{let i=q(t);k({intLegendLayerData:i,layerId:this.layer.id})},t=p.data?.[this.layer?.id];if(S(t,this.legendElement)){e();return}n(),this.showAllSelectedEvent.emit()}}get el(){return L(this)}};ce.style=oe;var P=new Map([["HH",[1,0,3,2,null]],["LH",[3,2,1,0,4,null]],["LL",[2,3,0,1,null]]]),de=new Map([["HH",[2,1,0,5,4,3,8,7,6]],["LH",[8,7,6,5,4,3,2,1,0]],["LL",[6,7,8,3,void 0,void 0,0,1,2]]]),pe=new Map([["HH",[3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12]],["LH",[15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]],["LL",[12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3]]]);function he(e,n){return n===null?P.get("HH")[e]:P.get(n)?.[e]??null}function ge(e,n){return n===null?e:de.get(n)?.[e]??e}function J(e,n){return n===null?J(e,"HH"):pe.get(n)?.[e]??null}var ue=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-color-brand);color:#151515}",me=ue,fe=".sc-instant-apps-interactive-legend-relationship svg",Z=".sc-instant-apps-interactive-legend-relationship svg g:first-of-type",ve=".sc-instant-apps-interactive-legend-relationship svg g:last-of-type",y="esri-interactive-legend--selected-cell",j="esri-interactive-legend--instructional-text",G=2,W=3,ye=4,be=Object.freeze({0:"L",1:"H"}),xe=Object.freeze({0:"L",1:"M",2:"H"}),Le=Object.freeze({0:"L",1:"M1",2:"M2",3:"H"}),Ie={instructionalText:"instant-apps-interactive-legend-relationship__instructional-text"},Ce=class{constructor(e){u(this,e),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){let e=p.data[this.activeLayerInfo.layer.id].queryExpressions.length===0,n=this.relationshipRamp.querySelector(Z),t=Array.from(n.children);e&&t?.forEach(a=>{a.removeAttribute("stroke"),a.removeAttribute("stroke-width"),a.removeAttribute("stroke-opacity"),a.setAttribute("aria-pressed","false"),a.classList.remove(y)})}async componentWillLoad(){let e=await N();this.symbolUtils=e}render(){return s("div",{key:"f5cf665a22adaa3f9e5529937fd96d7334e51933",ref:e=>{if(e&&!e?.querySelector("relationshipStyles")){let t=document.createElement("style");t.id="relationshipStyles",t.innerHTML=`
3
+ v1.0.3 */
4
+ import{a as p,b as f,g as V,j as U,l as q,m as B,n as O,t as w,u as S,v as $,w as k}from"./MGVUU433.js";import{a as E}from"./QQUJHAOI.js";import"./KU6NIERJ.js";import{E as N,h as M,i as A}from"./ZWTSIAER.js";import{a as u,c as s,e as L,f as T,h as R}from"./QEC76CAD.js";import"./K6A5BZGW.js";var X=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}",Y=X,D={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},ee=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption?.expanded}async componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){return s("div",{key:"cf9f8f643477fc66b5ab9d4f69faa3591664e1a0",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${D.service} ${D.groupLayer}`},s("instant-apps-interactive-legend-layer-element-caption",{key:"10339df7a9d65d87f20c6bf8f84f4bd578495085",ref:e=>this.layerCaption=e,class:$(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),s("div",{key:"c41488c758479a0c3820187641b27d97a7de824d",class:`${D.groupContent} ${this.expanded?"show":"hide"}`},s("slot",{key:"4778c2674ac10a464aa4cca6ec080dfbdca53afa",name:"content"})))}get el(){return L(this)}};ee.style=Y;var te=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}",ne=te,z={service:"esri-legend__service",groupLayerChild:"esri-legend__group-layer-child",layer:"esri-legend__layer"},ae=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){let e=this.activeLayerInfo.parent?` ${z.groupLayerChild}`:"";return s("div",{key:"aa39da1dd64aae1630988e2a1af8a2b7faea97d9",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${z.service}${e}`,tabIndex:0},s("instant-apps-interactive-legend-layer-element-caption",{key:"e7013faace5d61da9062c53c3336bddc3f87c1b4",ref:n=>{n&&(this.layerCaption=n)},legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:$(this.el)}),s("div",{key:"c54f12b6f0a1b1c17ff97c368fac17795e62e74a",id:`${this.activeLayerInfo?.layer?.id}-legend-layer`,class:`${z.layer}${this.expanded?" show":" hide"}`},s("slot",{key:"af29568610f22a76e2d9792c178b0b220cc0bb5d",name:"content"})))}get el(){return L(this)}};ae.style=ne;var ie=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}",se=ie,v={layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerTable:"esri-legend__layer-table",nestedUniqueSymbol:"instant-apps-interactive-legend__nested-unique-symbol",nonInteractive:"instant-apps-interactive-legend__non-interactive"},le=class{constructor(e){u(this,e),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText="",this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){let e=this.isChild?v.layerChildTable:v.layerTable,n=this.legendElement?.infos?.length===1&&!this.activeLayerInfo?.layer?.renderer?.field,t=(this.isSizeRamp||!this.isChild)&&!this.isColorRamp?` ${v.layerTableSizeRamp}`:"",a=this.isInteractive?"":` ${v.nonInteractive}`,i=w(this.activeLayerInfo)?` ${v.nestedUniqueSymbol}`:"",l=n&&!this.expanded&&!this.zoomTo?!0:this.expanded;if(this.isRelationshipRamp){let c=f.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id];l=c===void 0?!0:c}return s("div",{key:"cea3abec3b0d96dd275cadbf6c2446d92c4d39dd",class:`${e}${t}${a}${i}`},s("div",{key:"6124c13d37dee96cb88498f25b275196fd899af5",id:`${this.activeLayerInfo?.layer?.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&n?"hide":"show"},s("instant-apps-interactive-legend-legend-element-caption",{key:"2c89bf0cb37046f020bdfed08e15abadd6513a1c",ref:r=>{r&&(this.legendLayerCaption=r)},legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),s("div",{key:"content",id:`${this.activeLayerInfo?.layer?.id}-legend-element-content-${this.legendElementIndex}`,class:l?"show":"hide"},s("slot",{key:"3ddd3cfe429bcd1a21c020dccc307395d89ba5c9",name:"content"})))}};le.style=se;var re=".sc-instant-apps-interactive-legend-legend-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption{--instant-apps-interactive-legend-ui-padding:5px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;justify-content:flex-end;width:100%}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__show-all-btn.sc-instant-apps-interactive-legend-legend-element-caption{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-ui-brand);font-weight:var(--calcite-font-weight-medium);font-size:0.75rem;padding-inline-start:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__zoom-to-btn.sc-instant-apps-interactive-legend-legend-element-caption{--calcite-icon-color:var(--calcite-ui-brand);--calcite-color-transparent-hover:transparent}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;font-size:0.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-legend-element-caption-h:dir(rtl) .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}",oe=re,b;(function(e){e.ZoomTo="magnifying-glass-plus",e.ShowAll="list-check-all"})(b||(b={}));var g={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},ce=class{constructor(e){u(this,e),this.showAllSelectedEvent=T(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=T(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){let e=w(this.activeLayerInfo),n=U(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:t}=this,a=f.get("compact"),i=a?` ${g.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText&&s("span",{class:g.layerCaptionText,title:this.titleText},this.titleText),r=(this.isInteractive||n)&&this.renderLegendElementCaptionControls();return s("div",{class:`${g.layerCaption}${i}`},s("calcite-action",{onClick:this.toggleExpanded(),icon:t?"chevron-down":"chevron-up",appearance:"transparent",text:t?this.messages?.collapse:this.messages?.expand,label:t?this.messages?.collapse:this.messages?.expand,scale:"s"}),a?[l,r]:[r,l])}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${g.layerCaptionBtnContainerNoText}`;return s("div",{key:"layer-caption-btn-container",class:`${g.layerCaptionBtnContainer}${e}`},this.renderShowAllZoomToButtons())}renderShowAllZoomToButtons(){return f.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="zoomToCompact",i=this.zoomTo&&[s("calcite-action",{id:a,class:g.zoomTo,onClick:this.handleZoomTo(),icon:b.ZoomTo,appearance:"transparent",scale:"s",text:this.messages?.zoomTo}),s("calcite-tooltip",{"reference-element":a,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)],l=t&&s("button",{onClick:this.handleShowAll(),class:g.showAll},this.messages?.showAll);return[i,l]}renderButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="showAll",i="zoomTo",l=t&&[s("calcite-button",{key:"show-all-button",id:a,label:this.messages?.showAll,onClick:this.handleShowAll(),iconStart:b.ShowAll,appearance:"outline",round:!0}),s("calcite-tooltip",{referenceElement:a,placement:"top",label:this.messages?.showAll},this.messages?.showAll)],r=this.zoomTo&&[s("calcite-button",{key:"zoom-to-button",id:i,label:this.messages?.zoomTo,onClick:this.handleZoomTo(),iconStart:b.ZoomTo,appearance:"outline",round:!0}),s("calcite-tooltip",{"reference-element":i,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)];return[l,r]}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(this.activeLayerInfo?.legendElements?.filter(n=>n.type==="relationship-ramp")).length>0&&f.set("relationshipRampExpandStates",{...p.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=V(this.layer),n=S(e,this.legendElement);O(e,this.legendvm.view,n)}}handleShowAll(){return()=>{let e=()=>{let i=B(t,this.legendElement.title);k({intLegendLayerData:i,layerId:this.layer.id})},n=()=>{let i=q(t);k({intLegendLayerData:i,layerId:this.layer.id})},t=p.data?.[this.layer?.id];if(S(t,this.legendElement)){e();return}n(),this.showAllSelectedEvent.emit()}}get el(){return L(this)}};ce.style=oe;var P=new Map([["HH",[1,0,3,2,null]],["LH",[3,2,1,0,4,null]],["LL",[2,3,0,1,null]]]),de=new Map([["HH",[2,1,0,5,4,3,8,7,6]],["LH",[8,7,6,5,4,3,2,1,0]],["LL",[6,7,8,3,void 0,void 0,0,1,2]]]),pe=new Map([["HH",[3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12]],["LH",[15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]],["LL",[12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3]]]);function he(e,n){return n===null?P.get("HH")[e]:P.get(n)?.[e]??null}function ge(e,n){return n===null?e:de.get(n)?.[e]??e}function J(e,n){return n===null?J(e,"HH"):pe.get(n)?.[e]??null}var ue=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-color-brand);color:#151515}",me=ue,fe=".sc-instant-apps-interactive-legend-relationship svg",Z=".sc-instant-apps-interactive-legend-relationship svg g:first-of-type",ve=".sc-instant-apps-interactive-legend-relationship svg g:last-of-type",y="esri-interactive-legend--selected-cell",j="esri-interactive-legend--instructional-text",G=2,W=3,ye=4,be=Object.freeze({0:"L",1:"H"}),xe=Object.freeze({0:"L",1:"M",2:"H"}),Le=Object.freeze({0:"L",1:"M1",2:"M2",3:"H"}),Ie={instructionalText:"instant-apps-interactive-legend-relationship__instructional-text"},Ce=class{constructor(e){u(this,e),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){let e=p.data[this.activeLayerInfo.layer.id].queryExpressions.length===0,n=this.relationshipRamp.querySelector(Z),t=Array.from(n.children);e&&t?.forEach(a=>{a.removeAttribute("stroke"),a.removeAttribute("stroke-width"),a.removeAttribute("stroke-opacity"),a.setAttribute("aria-pressed","false"),a.classList.remove(y)})}async componentWillLoad(){let e=await N();this.symbolUtils=e}render(){return s("div",{key:"f5cf665a22adaa3f9e5529937fd96d7334e51933",ref:e=>{if(e&&!e?.querySelector("relationshipStyles")){let t=document.createElement("style");t.id="relationshipStyles",t.innerHTML=`
5
5
  rect:hover {
6
6
  cursor: pointer;
7
7
  opacity: 0.8;