@esri/solutions-components 1.1.0-next.20250821 → 1.1.0-next.20250821.2

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 (410) hide show
  1. package/dist/cdn/{CJKVNGQM.js → 22D2GNVK.js} +2 -2
  2. package/dist/cdn/{CJK7M7UJ.js → 235ZLOWS.js} +2 -2
  3. package/dist/cdn/{NYOJ3QGM.js → 25FWEEDO.js} +2 -2
  4. package/dist/cdn/{GOYCGXAF.js → 26QJ6HVY.js} +2 -2
  5. package/dist/cdn/{UJURMAMA.js → 2L2LYXAF.js} +2 -2
  6. package/dist/cdn/{BEMU5FKM.js → 2MPP7TLB.js} +2 -2
  7. package/dist/cdn/{4UV3BT2K.js → 2OCWJGO5.js} +2 -2
  8. package/dist/cdn/{PPMMNT6Y.js → 2ONRGEDI.js} +1 -1
  9. package/dist/cdn/{5T27YZ75.js → 2Q6RFLIR.js} +2 -2
  10. package/dist/cdn/2SXEZ7CP.js +4 -0
  11. package/dist/cdn/{KWKHW4US.js → 2SXOYN6G.js} +2 -2
  12. package/dist/cdn/{I4H2DWMO.js → 2W6KIE5P.js} +2 -2
  13. package/dist/cdn/{W4PYMPE3.js → 3253F3UY.js} +2 -2
  14. package/dist/cdn/{WHGMRK4V.js → 3GD3JAJJ.js} +2 -2
  15. package/dist/cdn/{4JIFT5VF.js → 3J23AOO7.js} +1 -1
  16. package/dist/cdn/{ZPRRPMJN.js → 3NCTD2EX.js} +2 -2
  17. package/dist/cdn/3P4C36A4.js +4 -0
  18. package/dist/cdn/{GUMOIUYC.js → 3TAJ7NC2.js} +2 -2
  19. package/dist/cdn/{4U7JO3AR.js → 3XIKAT2B.js} +2 -2
  20. package/dist/cdn/{GHMYCSWK.js → 3XJVGSL6.js} +2 -2
  21. package/dist/cdn/{MOO7QXNB.js → 4AXYFP6H.js} +2 -2
  22. package/dist/cdn/{X4O3XPRE.js → 4DSFARVO.js} +1 -1
  23. package/dist/cdn/{ZE7MCDOL.js → 4EM5LGWW.js} +2 -2
  24. package/dist/cdn/{XAEXUZGI.js → 4FWQ3PCZ.js} +2 -2
  25. package/dist/cdn/{3QWJFCEJ.js → 4GGPYMIY.js} +2 -2
  26. package/dist/cdn/{AKIRVLWZ.js → 4HA4HORS.js} +2 -2
  27. package/dist/cdn/{I3IWAK7W.js → 4IGGDWXU.js} +2 -2
  28. package/dist/cdn/{KWA5SRQH.js → 4J5FMWGE.js} +2 -2
  29. package/dist/cdn/{NLEAAUBR.js → 4PI6FXSY.js} +2 -2
  30. package/dist/cdn/4UDK7B7E.js +4 -0
  31. package/dist/cdn/{OGSBDN7A.js → 4WH5U7J5.js} +2 -2
  32. package/dist/cdn/{DWA3O3CJ.js → 57CWLS5B.js} +1 -1
  33. package/dist/cdn/{KM6ZHTVH.js → 5E3SWD22.js} +2 -2
  34. package/dist/cdn/{Q4UTDQYS.js → 5F4MLI72.js} +2 -2
  35. package/dist/cdn/{SYTRT7BE.js → 5GZLTD5C.js} +1 -1
  36. package/dist/cdn/{FMXITXLP.js → 5IQ36CWQ.js} +2 -2
  37. package/dist/cdn/{UQCY544V.js → 5LUICGWK.js} +2 -2
  38. package/dist/cdn/{XCDLVCZ3.js → 5VAAY35S.js} +2 -2
  39. package/dist/cdn/{PDMPES3S.js → 5VXIJT2B.js} +2 -2
  40. package/dist/cdn/{JXFSX77O.js → 5WXG753H.js} +1 -1
  41. package/dist/cdn/{46FU7QSN.js → 67NVU3K2.js} +2 -2
  42. package/dist/cdn/{EWYC4BEQ.js → 67RFX4YC.js} +2 -2
  43. package/dist/cdn/{3KKV75BY.js → 67ZETFD5.js} +2 -2
  44. package/dist/cdn/{T3R73YD3.js → 6DBOXLNP.js} +1 -1
  45. package/dist/cdn/{LCXVXJGO.js → 6DEYLEFF.js} +4 -4
  46. package/dist/cdn/{T5MZL6GX.js → 6GCMHMMB.js} +2 -2
  47. package/dist/cdn/{F7DXQINX.js → 6L5ERBSS.js} +2 -2
  48. package/dist/cdn/{ABG2PPIK.js → 6WTFWOJG.js} +2 -2
  49. package/dist/cdn/{CWGVOJHS.js → 6ZW62KPY.js} +2 -2
  50. package/dist/cdn/{26UZMSQF.js → 72C67EMH.js} +2 -2
  51. package/dist/cdn/{BJU3DIBO.js → 72Y6PQRX.js} +2 -2
  52. package/dist/cdn/{ZGS2YSRD.js → 7CD7AAYK.js} +2 -2
  53. package/dist/cdn/{VMPPSG7A.js → 7CQQ34I7.js} +2 -2
  54. package/dist/cdn/{X4SPIF5Q.js → 7D7PU7OO.js} +2 -2
  55. package/dist/cdn/{F2EDPF57.js → 7MRRUVFN.js} +1 -1
  56. package/dist/cdn/{3FHLI5KF.js → 7NTWBVQ5.js} +2 -2
  57. package/dist/cdn/{5NUSFNXH.js → 7QRF2ECB.js} +2 -2
  58. package/dist/cdn/{7FVCX5KT.js → 7RLVSCO2.js} +2 -2
  59. package/dist/cdn/{HX42TSNN.js → 7RTJEJB4.js} +1 -1
  60. package/dist/cdn/{HFMLXKWB.js → A3EIPCJ6.js} +2 -2
  61. package/dist/cdn/{QEZWWVQK.js → A4RPIULL.js} +1 -1
  62. package/dist/cdn/{Z24TR7AJ.js → ACK6BSS2.js} +2 -2
  63. package/dist/cdn/{LFZMKPEC.js → ADKDRGWO.js} +2 -2
  64. package/dist/cdn/{LG6XZNP6.js → AG3ILNSJ.js} +1 -1
  65. package/dist/cdn/{SARNA2Y5.js → AL47HGBU.js} +2 -2
  66. package/dist/cdn/{QLDMK4LT.js → B7U2SXWQ.js} +1 -1
  67. package/dist/cdn/{4WGVU5V7.js → BDZTM3ZY.js} +2 -2
  68. package/dist/cdn/{34Z5XSQH.js → BEJSBRDT.js} +2 -2
  69. package/dist/cdn/{NQGECILS.js → BFFA7RG7.js} +2 -2
  70. package/dist/cdn/{DJSOZGP4.js → BNP4IWJK.js} +2 -2
  71. package/dist/cdn/{VYRZVJHK.js → BSCO2QHI.js} +2 -2
  72. package/dist/cdn/{5BAJJPIT.js → C2XGQ36E.js} +2 -2
  73. package/dist/cdn/{KHUDAK4U.js → CDWAH2WV.js} +1 -1
  74. package/dist/cdn/{H7S25TH6.js → CEY4X7HF.js} +2 -2
  75. package/dist/cdn/{XGDELCZ4.js → CNLXEAWS.js} +2 -2
  76. package/dist/cdn/{GJE7SAYK.js → CRGA7SBE.js} +2 -2
  77. package/dist/cdn/{YQYVXMKR.js → CTDCYCZ5.js} +2 -2
  78. package/dist/cdn/{5UOBFUD7.js → CZEG4PXJ.js} +2 -2
  79. package/dist/cdn/{NTXPZBRE.js → DFNUDBH6.js} +2 -2
  80. package/dist/cdn/{ZDAEWRWE.js → DHWAG6ES.js} +2 -2
  81. package/dist/cdn/{66NVXPWT.js → DK7CN6FA.js} +2 -2
  82. package/dist/cdn/{FKXYT7EY.js → DKOAK7A2.js} +2 -2
  83. package/dist/cdn/{HX4BQZKY.js → DNXMTQ56.js} +2 -2
  84. package/dist/cdn/{5P76J3HO.js → DOT7KVHF.js} +1 -1
  85. package/dist/cdn/{Y5M54HOH.js → DSTBRSHD.js} +2 -2
  86. package/dist/cdn/{HH5YA2JF.js → DUI6YFUX.js} +2 -2
  87. package/dist/cdn/{VQ4P66JP.js → DV2EV7X5.js} +2 -2
  88. package/dist/cdn/{Y5A5ZSIJ.js → DVZ2CEEK.js} +1 -1
  89. package/dist/cdn/{GORXM5HD.js → DYGCUCS5.js} +2 -2
  90. package/dist/cdn/{VYQOZEPB.js → DZPOUMWV.js} +2 -2
  91. package/dist/cdn/{RFBBYJR3.js → EA2J4E7K.js} +2 -2
  92. package/dist/cdn/{6WOE43KF.js → EB7KPOC2.js} +2 -2
  93. package/dist/cdn/{6NITDX2J.js → ECXGB6JO.js} +1 -1
  94. package/dist/cdn/{6BXNQMRE.js → EFZS6ECU.js} +2 -2
  95. package/dist/cdn/{NU33F4OK.js → EJ6QXYLA.js} +2 -2
  96. package/dist/cdn/{KFOQZFCV.js → EKQNIUD5.js} +1 -1
  97. package/dist/cdn/{7U5QGEBS.js → EY66U5YX.js} +2 -2
  98. package/dist/cdn/{I3JVE6DZ.js → F2K2LMIP.js} +2 -2
  99. package/dist/cdn/{324NOGFE.js → FE6I6UKL.js} +2 -2
  100. package/dist/cdn/{FTC4MFNY.js → FGY7SBZ7.js} +2 -2
  101. package/dist/cdn/{XSWPMMH2.js → FI2XYNST.js} +2 -2
  102. package/dist/cdn/{TPQ4R7GL.js → FLIKWNOK.js} +2 -2
  103. package/dist/cdn/FODLMNUK.js +4 -0
  104. package/dist/cdn/{QYAEU4BM.js → FZ2SU5XQ.js} +2 -2
  105. package/dist/cdn/G5HGYGJC.js +18 -0
  106. package/dist/cdn/{5Q5RESO7.js → G6YJXYAC.js} +1 -1
  107. package/dist/cdn/{2M7DDGSQ.js → GEB6FFHF.js} +2 -2
  108. package/dist/cdn/{C3DYNYUP.js → GEC5HUDM.js} +2 -2
  109. package/dist/cdn/{7LVZ4IWA.js → GFC5L42C.js} +2 -2
  110. package/dist/cdn/{QENKIS2C.js → GIV63LP5.js} +2 -2
  111. package/dist/cdn/{5QWWYFDP.js → GJRILFIB.js} +2 -2
  112. package/dist/cdn/{5BDOR52R.js → GOFIYE6T.js} +2 -2
  113. package/dist/cdn/{AURL4FJE.js → GRT5RI2Z.js} +2 -2
  114. package/dist/cdn/{B422LOZQ.js → H3647ALI.js} +2 -2
  115. package/dist/cdn/{OZDBD6AB.js → HBMWR4KR.js} +2 -2
  116. package/dist/cdn/{TRXFO3X7.js → HFDHSN5A.js} +2 -2
  117. package/dist/cdn/{ILBT2IMN.js → HJ6U4KMS.js} +1 -1
  118. package/dist/cdn/{HFWZY4YX.js → HJRX5DVQ.js} +2 -2
  119. package/dist/cdn/{6W5ZUWHI.js → HN6NENNQ.js} +2 -2
  120. package/dist/cdn/{RZINNKVG.js → HNZDIHAM.js} +2 -2
  121. package/dist/cdn/{VVHDSYPX.js → HOKAZXQ6.js} +2 -2
  122. package/dist/cdn/HPXDUFIA.js +4 -0
  123. package/dist/cdn/{QTYM4RQZ.js → HTD6FQ57.js} +2 -2
  124. package/dist/cdn/{PC5HFST4.js → HTQ4CNV5.js} +2 -2
  125. package/dist/cdn/{7HLJ7X74.js → HZBLGTKN.js} +2 -2
  126. package/dist/cdn/{3ZOWMH3D.js → ICUVP2SD.js} +2 -2
  127. package/dist/cdn/{NRS3PCJU.js → ICZYQN4L.js} +2 -2
  128. package/dist/cdn/{EYGZDR25.js → IERUJQ7A.js} +2 -2
  129. package/dist/cdn/{VWVSM4UX.js → IGYSQ5RX.js} +2 -2
  130. package/dist/cdn/{QPT7HOMV.js → II5VNJMW.js} +2 -2
  131. package/dist/cdn/{TTENIVA2.js → IKRAYIIV.js} +2 -2
  132. package/dist/cdn/{5SEGZE3J.js → INRHA7B4.js} +2 -2
  133. package/dist/cdn/{6YBNP4WN.js → IYEI6NBF.js} +2 -2
  134. package/dist/cdn/{3GT7MI3F.js → J26WVBKN.js} +2 -2
  135. package/dist/cdn/{FWZBE7DP.js → J3CYR3SE.js} +2 -2
  136. package/dist/cdn/{NEZWZV6W.js → J6YDOSKR.js} +2 -2
  137. package/dist/cdn/{SDAGM53M.js → JHOA5ULB.js} +2 -2
  138. package/dist/cdn/{KH2QF3MS.js → JNUQHNPE.js} +2 -2
  139. package/dist/cdn/{HN4W4GH4.js → JWV42KCO.js} +2 -2
  140. package/dist/cdn/K436XCO7.js +4 -0
  141. package/dist/cdn/{HXB3B43P.js → KFZR5RML.js} +2 -2
  142. package/dist/cdn/{QCUP4XOF.js → KJULMP7K.js} +2 -2
  143. package/dist/cdn/{3L6WZW6K.js → KNXYJPPW.js} +2 -2
  144. package/dist/cdn/{PWCILC2Y.js → KTKLTG5F.js} +2 -2
  145. package/dist/cdn/{I63CKZHD.js → KTZ4DR7O.js} +2 -2
  146. package/dist/cdn/{IKKQ5VDL.js → L4GQXK2K.js} +2 -2
  147. package/dist/cdn/{YJFJ2YYE.js → L5AQCYF7.js} +2 -2
  148. package/dist/cdn/{4AGGPAZO.js → LA4AZXV7.js} +2 -2
  149. package/dist/cdn/{NPA6AD5F.js → LAD657YO.js} +1 -1
  150. package/dist/cdn/{67F73YAE.js → LBMPQZOE.js} +2 -2
  151. package/dist/cdn/{KV4JOJDS.js → LHU7BBX4.js} +2 -2
  152. package/dist/cdn/{L6RA53F6.js → LHWT5M7Y.js} +1 -1
  153. package/dist/cdn/{ONGQXRMS.js → LL6H6R2M.js} +2 -2
  154. package/dist/cdn/{652XRH4J.js → LLOACCOD.js} +2 -2
  155. package/dist/cdn/{PC26DPDG.js → LLXTU6JG.js} +1 -1
  156. package/dist/cdn/{U75AHKVY.js → LPCM254I.js} +2 -2
  157. package/dist/cdn/{JI3WQ3NH.js → LPI6A3CS.js} +2 -2
  158. package/dist/cdn/{VR45WCFG.js → LQ4K5UXA.js} +2 -2
  159. package/dist/cdn/{OAWSFXI2.js → LQXLMUCY.js} +2 -2
  160. package/dist/cdn/{7AG6IBKR.js → LVJDZOTD.js} +2 -2
  161. package/dist/cdn/{A4OMUJQB.js → LXTFNRQF.js} +2 -2
  162. package/dist/cdn/{POW4MNCT.js → LY6IETPF.js} +2 -2
  163. package/dist/cdn/{ZBTKJGP6.js → M4TQQW4B.js} +2 -2
  164. package/dist/cdn/{4OXEF25E.js → M5R4QFWT.js} +2 -2
  165. package/dist/cdn/{DJJN2WMP.js → M6VQFP25.js} +2 -2
  166. package/dist/cdn/{754MW2GP.js → MATHUKG5.js} +2 -2
  167. package/dist/cdn/{UA6IY342.js → MGG24MZE.js} +2 -2
  168. package/dist/cdn/{4NRXPWFY.js → MGHYG3C7.js} +2 -2
  169. package/dist/cdn/{V6MJ7SG6.js → MJOLWMV3.js} +1 -1
  170. package/dist/cdn/{BXXG3MCY.js → MKPL5WIV.js} +2 -2
  171. package/dist/cdn/{N5UFO6LC.js → MKZ7I4E7.js} +1 -1
  172. package/dist/cdn/{QNPLVYPS.js → MOS25L6I.js} +2 -2
  173. package/dist/cdn/{XKVYYXUY.js → MSSQIWGQ.js} +2 -2
  174. package/dist/cdn/{3OKBOLNF.js → MU2MQEF7.js} +2 -2
  175. package/dist/cdn/{CXOBE6WP.js → MZIWREBJ.js} +2 -2
  176. package/dist/cdn/{KMZ7TD4G.js → N6K2SQMD.js} +2 -2
  177. package/dist/cdn/{N2GMDOMV.js → N7IYPK44.js} +2 -2
  178. package/dist/cdn/{UWUVHUS5.js → ND6B7QXV.js} +2 -2
  179. package/dist/cdn/{NWBIXJRU.js → NEE7XYRC.js} +2 -2
  180. package/dist/cdn/{SFSL67FT.js → NFU6BM43.js} +1 -1
  181. package/dist/cdn/{5SXZLHAK.js → NI35527Z.js} +2 -2
  182. package/dist/cdn/{4727WHKU.js → NN73YGAG.js} +2 -2
  183. package/dist/cdn/{ASHVXKEK.js → NT446MKH.js} +2 -2
  184. package/dist/cdn/{G5CSMVP6.js → NYILF6EE.js} +2 -2
  185. package/dist/cdn/{CY7EIYJ4.js → O65N3Q3Q.js} +2 -2
  186. package/dist/cdn/{4D77ZL63.js → O7CE6CJX.js} +2 -2
  187. package/dist/cdn/{Q7NGN736.js → O7NRP5ZM.js} +2 -2
  188. package/dist/cdn/{LA7QZABV.js → OAQ6F5XI.js} +2 -2
  189. package/dist/cdn/{A7IBVBYO.js → ODKVGI7C.js} +2 -2
  190. package/dist/cdn/{KI4KQRA2.js → OLMSZ33F.js} +2 -2
  191. package/dist/cdn/{LPAJPL4I.js → OPUVT2E4.js} +2 -2
  192. package/dist/cdn/{OQ6HXAR5.js → OUA5MN7Q.js} +2 -2
  193. package/dist/cdn/{ZQQ3ZFMJ.js → OVZH363F.js} +2 -2
  194. package/dist/cdn/{DIDT4E5J.js → P5MCWT5K.js} +2 -2
  195. package/dist/cdn/{5WKYIJG7.js → PGEHETS4.js} +2 -2
  196. package/dist/cdn/{PYKJ5RZ3.js → PHQXVAYC.js} +2 -2
  197. package/dist/cdn/{TVRAVDQQ.js → PKPETRRY.js} +2 -2
  198. package/dist/cdn/{4EVKICCW.js → Q6PN7IYZ.js} +2 -2
  199. package/dist/cdn/{C2DWJMEU.js → QAE3QVEM.js} +2 -2
  200. package/dist/cdn/{Z25S6NHQ.js → QC3EJ7RF.js} +2 -2
  201. package/dist/cdn/{442QTTDM.js → QCMPPQ6P.js} +2 -2
  202. package/dist/cdn/{RJBPHIIE.js → QQC3A6XE.js} +1 -1
  203. package/dist/cdn/{B3KNMJJ3.js → QQF6AYVF.js} +2 -2
  204. package/dist/cdn/{R5GVDU6B.js → QU2FDLB2.js} +2 -2
  205. package/dist/cdn/{26EZMRPF.js → R6JWGLMT.js} +2 -2
  206. package/dist/cdn/{ZXUVBFGG.js → R6RJ5DKH.js} +2 -2
  207. package/dist/cdn/{HKBN35PY.js → RCYSJTLV.js} +1 -1
  208. package/dist/cdn/{3XOBLDNK.js → RFRFKYLK.js} +2 -2
  209. package/dist/cdn/{CV4VFUGX.js → RGLR76RT.js} +2 -2
  210. package/dist/cdn/{2JHFJBMA.js → RQNFOYPS.js} +2 -2
  211. package/dist/cdn/{SY4C346J.js → RRMI35JG.js} +2 -2
  212. package/dist/cdn/{K2UNWEI2.js → RTZYL5OO.js} +2 -2
  213. package/dist/cdn/{QLU4LAE3.js → RUYIYE6Q.js} +1 -1
  214. package/dist/cdn/{YATDCQVH.js → RY5YR46A.js} +2 -2
  215. package/dist/cdn/{MWLWUDV2.js → S2MPCRRG.js} +2 -2
  216. package/dist/cdn/{XZIJ5WM3.js → S6VODQOO.js} +2 -2
  217. package/dist/cdn/{K7AH3QMK.js → SEOIIYXG.js} +2 -2
  218. package/dist/cdn/{I2CVPVQU.js → SFLTQAQV.js} +1 -1
  219. package/dist/cdn/{ZYOCWXAT.js → SGLL5B7D.js} +2 -2
  220. package/dist/cdn/{FZ6NGXXV.js → SHDA2EET.js} +2 -2
  221. package/dist/cdn/{RG4J5NNN.js → SJW7XW2D.js} +2 -2
  222. package/dist/cdn/{6GVZOF5W.js → SK7YKPRG.js} +2 -2
  223. package/dist/cdn/{XBH5IQ5K.js → SLXUO3IO.js} +2 -2
  224. package/dist/cdn/{LEMJCYUU.js → SQGGV3CR.js} +2 -2
  225. package/dist/cdn/{3H7AUDQD.js → SRW7JMDH.js} +2 -2
  226. package/dist/cdn/{57AVHZJP.js → SWWZRIFA.js} +1 -1
  227. package/dist/cdn/{5BO53K4Z.js → T4YZZ2EP.js} +2 -2
  228. package/dist/cdn/{BT4RJVT2.js → T62ZACJ3.js} +2 -2
  229. package/dist/cdn/{IA2ASRRN.js → T6L5KVDF.js} +2 -2
  230. package/dist/cdn/TBR2PYI7.js +4 -0
  231. package/dist/cdn/{NXKJKWDE.js → TH2ZVPVU.js} +2 -2
  232. package/dist/cdn/{EWVSSTVG.js → TKEN37X2.js} +2 -2
  233. package/dist/cdn/{LSSTS32X.js → TO2IGJ6I.js} +2 -2
  234. package/dist/cdn/{XUHFYVZV.js → TT33C32K.js} +2 -2
  235. package/dist/cdn/{Y3LAC4AU.js → TU7HOYL4.js} +2 -2
  236. package/dist/cdn/{ZK277QXZ.js → U345EXTE.js} +1 -1
  237. package/dist/cdn/{XSJ3OMDX.js → U3FBEWKT.js} +2 -2
  238. package/dist/cdn/{FGBBVNBM.js → U7T2FT5I.js} +1 -1
  239. package/dist/cdn/{TXHLR4D2.js → UBM5EWWL.js} +2 -2
  240. package/dist/cdn/{LJQRKKOG.js → UEZV5F7Z.js} +1 -1
  241. package/dist/cdn/{OCYBZKWN.js → UFZVMBY5.js} +2 -2
  242. package/dist/cdn/{ZRS5KN2C.js → UGQ7YOCK.js} +2 -2
  243. package/dist/cdn/{WDMLYO6C.js → UN4FJ5ME.js} +2 -2
  244. package/dist/cdn/{TOKDFIHZ.js → UTGYC6TX.js} +2 -2
  245. package/dist/cdn/{BWVP6KL2.js → UVTAZX6K.js} +2 -2
  246. package/dist/cdn/{WV5CZ6GC.js → UWPDTKEX.js} +2 -2
  247. package/dist/cdn/{XRHHM3MJ.js → UZ3MF2VH.js} +2 -2
  248. package/dist/cdn/{4XRD6Y4A.js → UZI7TM5Q.js} +2 -2
  249. package/dist/cdn/{53WZY4CQ.js → V3OUDD2C.js} +2 -2
  250. package/dist/cdn/{33GKTFRR.js → V5LDPJ3S.js} +2 -2
  251. package/dist/cdn/{33LZ7L7J.js → VHNFY5G4.js} +2 -2
  252. package/dist/cdn/{YGH2CDXF.js → VNVMRSTN.js} +1 -1
  253. package/dist/cdn/{HZZBARF4.js → VOIL7H3F.js} +2 -2
  254. package/dist/cdn/{LI22CJAR.js → VOPLTYDK.js} +2 -2
  255. package/dist/cdn/{B5OAOB7Q.js → VPUXRKMP.js} +1 -1
  256. package/dist/cdn/{RXZ3TOXV.js → VQXAIEGC.js} +2 -2
  257. package/dist/cdn/{45P47EQV.js → VRXKYI3X.js} +2 -2
  258. package/dist/cdn/{3M5GVYTW.js → VS4YEHXM.js} +2 -2
  259. package/dist/cdn/{7MTIC2U3.js → VZE36YRV.js} +2 -2
  260. package/dist/cdn/{XT23KHOC.js → W72VEUHA.js} +1 -1
  261. package/dist/cdn/{FC775XZF.js → WB7TGR6E.js} +2 -2
  262. package/dist/cdn/{7JPTN4J5.js → WBVTIKJ4.js} +2 -2
  263. package/dist/cdn/{OULKM7TY.js → WCFFROVL.js} +2 -2
  264. package/dist/cdn/{OADAK2PK.js → WQJJOF3T.js} +2 -2
  265. package/dist/cdn/{6Y2QLYT6.js → WX7WXK3Q.js} +2 -2
  266. package/dist/cdn/{L2365MFW.js → X4XY6I2O.js} +2 -2
  267. package/dist/cdn/{XIKKZEOR.js → XAIYAJF6.js} +2 -2
  268. package/dist/cdn/{CPF5MP7P.js → XIGK6ZJV.js} +2 -2
  269. package/dist/cdn/{TR6F377Q.js → XJ7MYRCO.js} +2 -2
  270. package/dist/cdn/{6NTOPNRT.js → XLRRVO3N.js} +2 -2
  271. package/dist/cdn/{CLI6G5FC.js → XMGXLMZ3.js} +2 -2
  272. package/dist/cdn/{FL3QZUBR.js → XW2YCY3G.js} +2 -2
  273. package/dist/cdn/{IWDWB3M3.js → XX5ML2ZE.js} +2 -2
  274. package/dist/cdn/Y7OMOCGV.js +4 -0
  275. package/dist/cdn/{V7GXUTAY.js → Y7TIPS2F.js} +2 -2
  276. package/dist/cdn/{4LUAODNR.js → YCJHECRE.js} +2 -2
  277. package/dist/cdn/{3WPD6674.js → YE4NSO6E.js} +1 -1
  278. package/dist/cdn/{FPED6CWS.js → YG24KG4L.js} +2 -2
  279. package/dist/cdn/{A2ADVG4S.js → YHWBJAXQ.js} +2 -2
  280. package/dist/cdn/{D2C67PGB.js → YIL6U6QS.js} +2 -2
  281. package/dist/cdn/{ZLGWFXQ6.js → YQHOJUK5.js} +2 -2
  282. package/dist/cdn/{ZQR5NR7P.js → YVBRVF36.js} +2 -2
  283. package/dist/cdn/{GBTWDVVA.js → YWFK7XQ4.js} +1 -1
  284. package/dist/cdn/{JUTAC3CD.js → YZCCKORE.js} +2 -2
  285. package/dist/cdn/{HGH453DZ.js → Z4UN47VL.js} +2 -2
  286. package/dist/cdn/{G2AKELVO.js → Z52BJJDB.js} +2 -2
  287. package/dist/cdn/{2H7UL655.js → ZA3BPLIF.js} +2 -2
  288. package/dist/cdn/{46VUBVJD.js → ZCQ6ZKD4.js} +2 -2
  289. package/dist/cdn/{CAUSRU4M.js → ZD5F2PAL.js} +2 -2
  290. package/dist/cdn/{QXCZPBOK.js → ZDMIR62Y.js} +2 -2
  291. package/dist/cdn/{YYSOQEMY.js → ZEC2BOMT.js} +2 -2
  292. package/dist/cdn/{SILLVKX6.js → ZHL3LRPG.js} +2 -2
  293. package/dist/cdn/{KZJTWG52.js → ZO32IE32.js} +2 -2
  294. package/dist/cdn/{G2MGRAP7.js → ZSRZI2TY.js} +1 -1
  295. package/dist/cdn/{SH3OL7NI.js → ZYYIMZU4.js} +2 -2
  296. package/dist/cdn/{73IUFA6E.js → ZZXGIL2G.js} +2 -2
  297. package/dist/cdn/index.js +2 -2
  298. package/dist/chunks/Auth.js +1 -1
  299. package/dist/chunks/appConfig.js +1 -1
  300. package/dist/chunks/cardFetchingUtils.js +1 -1
  301. package/dist/chunks/common.js +1 -1
  302. package/dist/chunks/deployAppContexts.js +1 -1
  303. package/dist/chunks/downloadUtils.js +1 -1
  304. package/dist/chunks/getItemIcon.js +1 -1
  305. package/dist/chunks/helpers.js +1 -1
  306. package/dist/chunks/index.js +1 -1
  307. package/dist/chunks/interfaces.js +1 -1
  308. package/dist/chunks/loadModules.js +1 -1
  309. package/dist/chunks/mapViewUtils.js +1 -1
  310. package/dist/chunks/pciUtils.js +1 -1
  311. package/dist/chunks/popupUtils.js +1 -1
  312. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  313. package/dist/chunks/privilegeUtils.js +1 -1
  314. package/dist/chunks/publicNotificationStore.js +1 -1
  315. package/dist/chunks/queryUtils.js +1 -1
  316. package/dist/chunks/runtime.js +1 -1
  317. package/dist/chunks/solution-store.js +1 -1
  318. package/dist/chunks/templates.js +1 -1
  319. package/dist/chunks/useT9n.js +1 -1
  320. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  321. package/dist/components/basemap-gallery/customElement.js +1 -1
  322. package/dist/components/buffer-tools/customElement.js +1 -1
  323. package/dist/components/card-manager/customElement.js +1 -1
  324. package/dist/components/consent-manager/customElement.js +1 -1
  325. package/dist/components/create-feature/customElement.js +1 -1
  326. package/dist/components/create-related-feature/customElement.js +1 -1
  327. package/dist/components/crowdsource-manager/customElement.js +1 -1
  328. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  329. package/dist/components/deduct-calculator/customElement.js +1 -1
  330. package/dist/components/delete-button/customElement.js +1 -1
  331. package/dist/components/delete-dialog/customElement.js +1 -1
  332. package/dist/components/edit-card/customElement.js +1 -1
  333. package/dist/components/feature-details/customElement.js +1 -1
  334. package/dist/components/feature-list/customElement.js +1 -1
  335. package/dist/components/field-selection/customElement.js +1 -1
  336. package/dist/components/floor-filter/customElement.js +1 -1
  337. package/dist/components/info-card/customElement.js +1 -1
  338. package/dist/components/json-editor/customElement.js +1 -1
  339. package/dist/components/layer-list/customElement.js +1 -1
  340. package/dist/components/layer-table/customElement.js +1 -1
  341. package/dist/components/map-card/customElement.js +1 -1
  342. package/dist/components/map-draw-tools/customElement.js +1 -1
  343. package/dist/components/map-fullscreen/customElement.js +1 -1
  344. package/dist/components/map-layer-picker/customElement.js +1 -1
  345. package/dist/components/map-legend/customElement.js +1 -1
  346. package/dist/components/map-picker/customElement.js +1 -1
  347. package/dist/components/map-search/customElement.js +1 -1
  348. package/dist/components/map-select-tools/customElement.js +1 -1
  349. package/dist/components/map-tools/customElement.js +1 -1
  350. package/dist/components/pci-calculator/customElement.js +1 -1
  351. package/dist/components/pdf-download/customElement.js +1 -1
  352. package/dist/components/public-notification/customElement.js +1 -1
  353. package/dist/components/refine-selection/customElement.js +1 -1
  354. package/dist/components/selection-tool/customElement.js +1 -1
  355. package/dist/components/solution-article-card/customElement.js +1 -1
  356. package/dist/components/solution-configuration/customElement.js +1 -1
  357. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  358. package/dist/components/solution-configure-titles/customElement.js +1 -1
  359. package/dist/components/solution-contents/customElement.js +1 -1
  360. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  361. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  362. package/dist/components/solution-deployed-card/customElement.js +1 -1
  363. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  364. package/dist/components/solution-details-card/customElement.js +1 -1
  365. package/dist/components/solution-details-panel/customElement.js +1 -1
  366. package/dist/components/solution-item/customElement.js +1 -1
  367. package/dist/components/solution-item-accordion/customElement.js +1 -1
  368. package/dist/components/solution-item-details/customElement.js +1 -1
  369. package/dist/components/solution-item-diagram/customElement.js +1 -1
  370. package/dist/components/solution-item-icon/customElement.js +1 -1
  371. package/dist/components/solution-item-sharing/customElement.js +1 -1
  372. package/dist/components/solution-organization-variables/customElement.js +1 -1
  373. package/dist/components/solution-resource-item/customElement.js +1 -1
  374. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  375. package/dist/components/solution-social-share/customElement.js +1 -1
  376. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  377. package/dist/components/solution-template-data/customElement.js +1 -1
  378. package/dist/components/solution-variables/customElement.js +1 -1
  379. package/dist/components/solutions-all-panel/customElement.js +1 -1
  380. package/dist/components/solutions-all-shell/customElement.js +1 -1
  381. package/dist/components/solutions-article-panel/customElement.js +1 -1
  382. package/dist/components/solutions-articles/customElement.js +1 -1
  383. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  384. package/dist/components/solutions-deploy-app/customElement.d.ts +1 -0
  385. package/dist/components/solutions-deploy-app/customElement.js +13 -13
  386. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  387. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  388. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  389. package/dist/components/spatial-ref/customElement.js +1 -1
  390. package/dist/components/store-manager/customElement.js +1 -1
  391. package/dist/docs/api.json +26 -1
  392. package/dist/docs/docs.json +22 -1
  393. package/dist/docs/vscode.html-custom-data.json +4 -0
  394. package/dist/docs/web-types.json +11 -1
  395. package/dist/index.js +1 -1
  396. package/dist/loader.js +2 -2
  397. package/dist/types/lumina.d.ts +1 -1
  398. package/dist/types/preact.d.ts +1 -1
  399. package/dist/types/react.d.ts +1 -1
  400. package/dist/types/stencil.d.ts +1 -1
  401. package/package.json +1 -1
  402. package/dist/cdn/4DG75K7Z.js +0 -18
  403. package/dist/cdn/A3WX7QWI.js +0 -4
  404. package/dist/cdn/HUO5XA53.js +0 -4
  405. package/dist/cdn/TRGPHDUP.js +0 -4
  406. package/dist/cdn/TSBJ5GOM.js +0 -4
  407. package/dist/cdn/UHIJO37I.js +0 -4
  408. package/dist/cdn/VK6ZYKQV.js +0 -4
  409. package/dist/cdn/YP43ALUY.js +0 -4
  410. package/dist/cdn/ZF5K52UW.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{a as t}from"./F2EDPF57.js";function s(a){let e;switch(a.type){case"Hub Site Application":case"Site Application":e="site";break;case"Hub Page":case"Site Page":e="page";break;case"Hub Project":e="project";break;case"Hub Initiative":e="initiative";break;case"Discussion":e="discussion";break;case"Solution":e="template";break;case"Channel":e="channel";break;case"Group":e="group";break;case"Form":e="survey";break;case"Hub Initiative Template":e="initiativeTemplate";break;case"Event":e="event";break;case"User":e="user";break;default:["app","content","dataset","document","map"].includes(t(a.type||""))&&(e="content")}return e}export{s as a};
3
+ v1.1.0-next.20250821.2 */
4
+ import{a as t}from"./7MRRUVFN.js";function s(a){let e;switch(a.type){case"Hub Site Application":case"Site Application":e="site";break;case"Hub Page":case"Site Page":e="page";break;case"Hub Project":e="project";break;case"Hub Initiative":e="initiative";break;case"Discussion":e="discussion";break;case"Solution":e="template";break;case"Channel":e="channel";break;case"Group":e="group";break;case"Form":e="survey";break;case"Hub Initiative Template":e="initiativeTemplate";break;case"Event":e="event";break;case"User":e="user";break;default:["app","content","dataset","document","map"].includes(t(a.type||""))&&(e="content")}return e}export{s 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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{a as e,b as t}from"./HX42TSNN.js";var n={if:{properties:{isAllDay:{const:!1}}},then:{required:["startTime","endTime"],properties:{endTime:{format:"timePickerTime",formatExclusiveMinimum:{$data:"1/startTime"}}}}},r={if:{properties:{attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineUrl"],properties:{onlineUrl:{format:"url"}}}},o={if:{properties:{onlineCapacityType:{const:t.Fixed},attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineCapacity"],properties:{onlineCapacity:{minimum:1}}}},p={if:{properties:{inPersonCapacityType:{const:t.Fixed},attendanceType:{enum:[e.InPerson,e.Both]}}},then:{required:["inPersonCapacity"],properties:{inPersonCapacity:{minimum:1}}}};export{n as a,r as b,o as c,p as d};
3
+ v1.1.0-next.20250821.2 */
4
+ import{a as e,b as t}from"./7RTJEJB4.js";var n={if:{properties:{isAllDay:{const:!1}}},then:{required:["startTime","endTime"],properties:{endTime:{format:"timePickerTime",formatExclusiveMinimum:{$data:"1/startTime"}}}}},r={if:{properties:{attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineUrl"],properties:{onlineUrl:{format:"url"}}}},o={if:{properties:{onlineCapacityType:{const:t.Fixed},attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineCapacity"],properties:{onlineCapacity:{minimum:1}}}},p={if:{properties:{inPersonCapacityType:{const:t.Fixed},attendanceType:{enum:[e.InPerson,e.Both]}}},then:{required:["inPersonCapacity"],properties:{inPersonCapacity:{minimum:1}}}};export{n as a,r as b,o as c,p as d};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{a as m}from"./DJJN2WMP.js";import{a as p}from"./OCYBZKWN.js";import"./4AGGPAZO.js";import"./QLU4LAE3.js";import"./ZK277QXZ.js";import"./YGH2CDXF.js";import{a,b as n}from"./OADAK2PK.js";import"./R5GVDU6B.js";import"./FC775XZF.js";import"./QPT7HOMV.js";import{a as r}from"./ONGQXRMS.js";import{a as s}from"./6WOE43KF.js";import"./CV4VFUGX.js";import"./SYTRT7BE.js";import"./F2EDPF57.js";import"./K7AH3QMK.js";import"./PPMMNT6Y.js";import{a as i}from"./3ZOWMH3D.js";import"./RG4J5NNN.js";import"./57AVHZJP.js";import"./CXOBE6WP.js";import"./UA6IY342.js";import"./652XRH4J.js";import"./XZIJ5WM3.js";import"./Q4UTDQYS.js";import"./SARNA2Y5.js";import"./G5CSMVP6.js";import"./FGBBVNBM.js";import"./26EZMRPF.js";import"./HX42TSNN.js";import"./Y5A5ZSIJ.js";import"./NRS3PCJU.js";import"./C3DYNYUP.js";import"./I63CKZHD.js";import"./3WPD6674.js";import"./NEZWZV6W.js";import"./NWBIXJRU.js";import"./IA2ASRRN.js";import"./B5OAOB7Q.js";import"./QLDMK4LT.js";import"./PC26DPDG.js";var g=async(e,t,l)=>{var o;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},...p(e,t.thumbnail,t.thumbnailUrl,"initiative",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await s(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await r(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await a(t.location,l.hubRequestOptions),options:await n(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.status.label`,elements:[{scope:"/properties/status",type:"Control",labelKey:`${e}.fields.status.label`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}},{type:"Section",labelKey:`${e}.sections.timeline.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.timeline.helperText`}},elements:[{scope:"/properties/view/properties/timeline",type:"Control",options:{control:"arcgis-hub-timeline-editor",showTitleAndDescription:!1}}]}]},{type:"Section",labelKey:"shared.sections.heroBanner.label",elements:[{type:"Section",labelKey:"shared.sections.heroBannerAppearance.label",options:{section:"block",helperText:{labelKey:"shared.sections.heroBannerAppearance.helperText"}},elements:[{labelKey:`${e}.fields.hero.label`,scope:"/properties/view/properties/hero",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.hero.map.label:translate}}`,`{{${e}.fields.hero.image.label:translate}}`],descriptions:[`{{${e}.fields.hero.map.description:translate}}`,`{{${e}.fields.hero.image.description:translate}}`],icons:["map-pin","image"]}},{labelKey:`${e}.fields.featuredImage.label`,scope:"/properties/view/properties/featuredImage",type:"Control",rule:{effect:i.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}},options:{control:"hub-field-input-image-picker",imgSrc:m((o=t.view)===null||o===void 0?void 0:o.featuredImageUrl,l.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,sizeDescription:{labelKey:`${e}.fields.featuredImage.sizeDescription`}}},{labelKey:`${e}.fields.featuredImage.altText.label`,scope:"/properties/view/properties/featuredImageAltText",type:"Control",rule:{effect:i.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}}}]}]}]}};export{g as buildUiSchema};
3
+ v1.1.0-next.20250821.2 */
4
+ import{a as m}from"./M6VQFP25.js";import{a as p}from"./UFZVMBY5.js";import"./LA4AZXV7.js";import"./RUYIYE6Q.js";import"./U345EXTE.js";import"./VNVMRSTN.js";import{a,b as n}from"./WQJJOF3T.js";import"./QU2FDLB2.js";import"./WB7TGR6E.js";import"./II5VNJMW.js";import{a as r}from"./LL6H6R2M.js";import{a as s}from"./EB7KPOC2.js";import"./RGLR76RT.js";import"./5GZLTD5C.js";import"./7MRRUVFN.js";import"./SEOIIYXG.js";import"./2ONRGEDI.js";import{a as i}from"./ICUVP2SD.js";import"./SJW7XW2D.js";import"./SWWZRIFA.js";import"./MZIWREBJ.js";import"./MGG24MZE.js";import"./LLOACCOD.js";import"./S6VODQOO.js";import"./5F4MLI72.js";import"./AL47HGBU.js";import"./NYILF6EE.js";import"./U7T2FT5I.js";import"./R6JWGLMT.js";import"./7RTJEJB4.js";import"./DVZ2CEEK.js";import"./ICZYQN4L.js";import"./GEC5HUDM.js";import"./KTZ4DR7O.js";import"./YE4NSO6E.js";import"./J6YDOSKR.js";import"./NEE7XYRC.js";import"./T6L5KVDF.js";import"./VPUXRKMP.js";import"./B7U2SXWQ.js";import"./LLXTU6JG.js";var g=async(e,t,l)=>{var o;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},...p(e,t.thumbnail,t.thumbnailUrl,"initiative",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await s(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await r(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await a(t.location,l.hubRequestOptions),options:await n(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.status.label`,elements:[{scope:"/properties/status",type:"Control",labelKey:`${e}.fields.status.label`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}},{type:"Section",labelKey:`${e}.sections.timeline.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.timeline.helperText`}},elements:[{scope:"/properties/view/properties/timeline",type:"Control",options:{control:"arcgis-hub-timeline-editor",showTitleAndDescription:!1}}]}]},{type:"Section",labelKey:"shared.sections.heroBanner.label",elements:[{type:"Section",labelKey:"shared.sections.heroBannerAppearance.label",options:{section:"block",helperText:{labelKey:"shared.sections.heroBannerAppearance.helperText"}},elements:[{labelKey:`${e}.fields.hero.label`,scope:"/properties/view/properties/hero",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.hero.map.label:translate}}`,`{{${e}.fields.hero.image.label:translate}}`],descriptions:[`{{${e}.fields.hero.map.description:translate}}`,`{{${e}.fields.hero.image.description:translate}}`],icons:["map-pin","image"]}},{labelKey:`${e}.fields.featuredImage.label`,scope:"/properties/view/properties/featuredImage",type:"Control",rule:{effect:i.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}},options:{control:"hub-field-input-image-picker",imgSrc:m((o=t.view)===null||o===void 0?void 0:o.featuredImageUrl,l.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,sizeDescription:{labelKey:`${e}.fields.featuredImage.sizeDescription`}}},{labelKey:`${e}.fields.featuredImage.altText.label`,scope:"/properties/view/properties/featuredImageAltText",type:"Control",rule:{effect:i.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}}}]}]}]}};export{g as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
3
+ v1.1.0-next.20250821.2 */
4
4
  var E=typeof window<"u",l={Promise:E?window.Promise:void 0},m="4.25",u="next";function p(r){if(r.toLowerCase()===u)return u;var e=r&&r.match(/^(\d)\.(\d+)/);return e&&{major:parseInt(e[1],10),minor:parseInt(e[2],10)}}function w(r){return r===void 0&&(r=m),"https://js.arcgis.com/".concat(r,"/")}function g(r){r===void 0&&(r=m);var e=w(r),t=p(r);if(t!==u&&t.major===3){var n=t.minor<=10?"js/":"";return"".concat(e).concat(n,"esri/css/esri.css")}else return"".concat(e,"esri/themes/light/main.css")}function A(r){var e=document.createElement("link");return e.rel="stylesheet",e.href=r,e}function P(r,e){if(e){var t=document.querySelector(e);t.parentNode.insertBefore(r,t)}else document.head.appendChild(r)}function S(r){return document.querySelector('link[href*="'.concat(r,'"]'))}function q(r){return!r||p(r)?g(r):r}function I(r,e){var t=q(r),n=S(t);return n||(n=A(t),P(n,e)),n}var L={};function b(r){var e=document.createElement("script");return e.type="text/javascript",e.src=r,e.setAttribute("data-esri-loader","loading"),e}function f(r,e,t){var n;t&&(n=j(r,t));var o=function(){e(r),r.removeEventListener("load",o,!1),n&&r.removeEventListener("error",n,!1)};r.addEventListener("load",o,!1)}function j(r,e){var t=function(n){e(n.error||new Error("There was an error attempting to load ".concat(r.src))),r.removeEventListener("error",t,!1)};return r.addEventListener("error",t,!1),t}function h(){return document.querySelector("script[data-esri-loader]")}function s(){var r=window.require;return r&&r.on}function C(r){r===void 0&&(r={});var e={};[L,r].forEach(function(o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])});var t=e.version,n=e.url||w(t);return new l.Promise(function(o,i){var a=h();if(a){var d=a.getAttribute("src");d!==n?i(new Error("The ArcGIS API for JavaScript is already loaded (".concat(d,")."))):s()?o(a):f(a,o,i)}else if(s())i(new Error("The ArcGIS API for JavaScript is already loaded."));else{var c=e.css;if(c){var y=c===!0;I(y?t:c,e.insertCssBefore)}a=b(n),f(a,function(){a.setAttribute("data-esri-loader","loaded"),o(a)},i),document.body.appendChild(a)}})}function v(r){return new l.Promise(function(e,t){var n=window.require.on("error",t);window.require(r,function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n.remove(),e(o)})})}function T(r,e){if(e===void 0&&(e={}),s())return v(r);var t=h(),n=t&&t.getAttribute("src");return!e.url&&n&&(e.url=n),C(e).then(function(){return v(r)})}var k=async(r,e)=>(await T(r,e)).map(t=>t.__esModule&&t.default?t.default:t);export{T as a,k 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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import c from"./KI4KQRA2.js";import b from"./4D77ZL63.js";import"./DIDT4E5J.js";import a from"./BXXG3MCY.js";import{a as K}from"./BEMU5FKM.js";import{C as Pe,E as Te,c as ze,z as Ie}from"./5P76J3HO.js";import{b as Se}from"./LEMJCYUU.js";import"./IKKQ5VDL.js";import{D as Re,E as Ee,G as w,H as E,h as ke,i as L,j as ge,l as oe}from"./L6RA53F6.js";import{b as st,d as lt}from"./PC26DPDG.js";export default $arcgis.t(([,{a:B,b:W},{a:Fe,b:ce,d:Me,e:Ue,f:ue,g:He,i:Be,o:de,s:De,t:Y,u:me,v:qe,w:We}])=>{var Je=st((fe,Ge)=>{(function(b,t){typeof fe=="object"&&typeof Ge<"u"?t(fe):typeof define=="function"&&define.amd?define(["exports"],t):(b=typeof globalThis<"u"?globalThis:b||self,t(b.maquette={}))})(fe,(function(b){"use strict";var t="http://www.w3.org/",s="".concat(t,"2000/svg"),o="".concat(t,"1999/xlink"),a=[],r=function(e,i){var n={};return Object.keys(e).forEach(function(l){n[l]=e[l]}),i&&Object.keys(i).forEach(function(l){n[l]=i[l]}),n},g=function(e,i){return e.vnodeSelector!==i.vnodeSelector?!1:e.properties&&i.properties?e.properties.key!==i.properties.key?!1:e.properties.bind===i.properties.bind:!e.properties&&!i.properties},u=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},_=function(e,i,n){if(i.vnodeSelector!==""){for(var l=n;l<e.length;l++)if(g(e[l],i))return l}return-1},$=function(e,i,n,l){var h=e[i];if(h.vnodeSelector!==""){var c=h.properties,A=c?c.key===void 0?c.bind:c.key:void 0;if(!A){for(var f=0;f<e.length;f++)if(f!==i){var d=e[f];if(g(d,h))throw{error:new Error("".concat(n.vnodeSelector," had a ").concat(h.vnodeSelector," child ").concat(l==="added"?l:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:n,childNode:h}}}}},P=function(e){if(e.properties){var i=e.properties.enterAnimation;i&&i(e.domNode,e.properties)}},x=[],C=!1,S=function(e){(e.children||[]).forEach(S),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},z=function(){C=!1,x.forEach(S),x.length=0},I=function(e){x.push(e),C||(C=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(z,{timeout:16}):setTimeout(z,16))},R=function(e){var i=e.domNode;if(e.properties){var n=e.properties.exitAnimation;if(n){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),I(e))};n(i,l,e.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),I(e))},M=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function D(e){return!M.includes(e)}var ee=function(e,i,n){if(i)for(var l=n.eventHandlerInterceptor,h=Object.keys(i).filter(D),c=h.length,A=0;A<c;A++){var f=h[A],d=i[f];if(f==="className")throw new Error('Property "className" is not supported, use "class".');if(f==="class")te(e,d,!0);else if(f==="classes")for(var v=Object.keys(d),k=v.length,y=0;y<k;y++){var m=v[y];d[m]&&e.classList.add(m)}else if(f==="styles")for(var U=Object.keys(d),T=U.length,y=0;y<T;y++){var J=U[y],O=d[J];O&&(u(O),n.styleApplyer(e,J,O))}else if(f==="on"&&d)for(var ae=0,re=Object.entries(i.on);ae<re.length;ae++){var se=re[ae],X=se[0],q=se[1],N=typeof q=="function"?q:q.listener;l&&(N=l(X,N,e,i)),N&&e.addEventListener(X,N,typeof q=="function"?void 0:q.options)}else if(f!=="key"&&d!==null&&d!==void 0){var le=typeof d;le==="function"?(f.lastIndexOf("on",0)===0&&l&&(d=l(f,d,e,i)),e[f]=d):n.namespace===s?f==="href"?e.setAttributeNS(o,f,d):e.setAttribute(f,d):le==="string"&&f!=="value"&&f!=="innerHTML"?e.setAttribute(f,d):e[f]=d}}},Q=function(e,i,n){if(i)for(var l=0,h=i;l<h.length;l++){var c=h[l];F(c,e,void 0,n)}},H=function(e,i,n){Q(e,i.children,n),i.text&&(e.textContent=i.text),ee(e,i.properties,n),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,n,i.vnodeSelector,i.properties,i.children])},F=function(e,i,n,l){var h,c,A=0,f=e.vnodeSelector,d=i.ownerDocument;if(f==="")e.domNode?e.domNode.nodeValue=e.text:(c=e.domNode=d.createTextNode(e.text),n!==void 0?i.insertBefore(c,n):i.appendChild(c));else{for(var v=0;v<=f.length;++v){var k=f.charAt(v);if(v===f.length||k==="."||k==="#"){var y=f.charAt(A-1),m=f.slice(A,v);y==="."?c.classList.add(m):y==="#"?c.id=m:(m==="svg"&&(l=r(l,{namespace:s})),l.namespace!==void 0?c=e.domNode=d.createElementNS(l.namespace,m):(c=e.domNode=e.domNode||(!((h=e.properties)===null||h===void 0)&&h.is?d.createElement(m,{is:e.properties.is}):d.createElement(m)),m==="input"&&e.properties&&e.properties.type!==void 0&&c.setAttribute("type",e.properties.type)),n!==void 0?i.insertBefore(c,n):c.parentNode!==i&&i.appendChild(c)),A=v+1}}H(c,e,l)}},G,te=function(e,i,n){i&&i.split(" ").forEach(function(l){l&&e.classList.toggle(l,n)})},he=function(e,i,n,l){if(n){for(var h=!1,c=Object.keys(n).filter(D),A=c.length,f=0;f<A;f++){var d=c[f],v=n[d],k=i[d];if(d==="class")k!==v&&(te(e,k,!1),te(e,v,!0));else if(d==="classes")for(var y=e.classList,m=Object.keys(v),U=m.length,T=0;T<U;T++){var J=m[T],O=!!v[J],ae=!!k[J];O!==ae&&(h=!0,O?y.add(J):y.remove(J))}else if(d==="styles")for(var re=Object.keys(v),se=re.length,T=0;T<se;T++){var X=re[T],q=v[X],N=k[X];q!==N&&(h=!0,q?(u(q),l.styleApplyer(e,X,q)):l.styleApplyer(e,X,""))}else if(!v&&typeof k=="string"&&(v=""),d==="value"){var le=e[d];le!==v&&v!==k&&(e[d]=v),v!==k&&(h=!0)}else if(v!==k){var Ce=typeof v;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===s?d==="href"?e.setAttributeNS(o,d,v):e.setAttribute(d,v):Ce==="string"&&d!=="innerHTML"?d==="role"&&v===""?e.removeAttribute(d):e.setAttribute(d,v):e[d]!==v&&(e[d]=v),h=!0)}}return h}},Oe=function(e,i,n,l,h){if(n===l)return!1;n=n||a,l=l||a;for(var c=n.length,A=l.length,f=0,d=0,v,k=!1;d<A;){var y=f<c?n[f]:void 0,m=l[d];if(y!==void 0&&g(y,m))k=G(y,m,h,i,n)||k,f++;else{var U=_(n,m,f+1);if(U>=0){for(v=f;v<U;v++)R(n[v]),$(n,v,e,"removed");k=G(n[U],m,h,i,n)||k,f=U+1}else F(m,i,f<c?n[f].domNode:void 0,h),P(m),$(l,d,e,"added")}d++}if(c>f)for(v=f;v<c;v++)R(n[v]),$(n,v,e,"removed");return k};G=function(e,i,n,l,h){var c=e.domNode,A=!1;if(e===i)return!1;var f=!1;if(i.vnodeSelector===""){if(i.text!==e.text){var d=c.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,c)}catch{l.replaceChild(d,l.childNodes[h.indexOf(e)])}return i.domNode=d,A=!0,A}i.domNode=c}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(n=r(n,{namespace:s})),e.text!==i.text&&(f=!0,i.text===void 0?c.removeChild(c.firstChild):c.textContent=i.text),i.domNode=c,f=Oe(i,c,e.children,i.children,n)||f,f=he(c,e.properties,i.properties,n)||f,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[c,n,i.vnodeSelector,i.properties,i.children]);return f&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(c,i.properties,e.properties),A};var ie=function(e,i){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var l=e;e=n,G(l,n,i,l.domNode.parentNode,[l])},domNode:e.domNode}},Ne={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,n){i.charAt(0)==="-"?e.style.setProperty(i,n):e.style[i]=n}},Z=function(e){return r(Ne,e)},ne={create:function(e,i){return i=Z(i),F(e,document.createElement("div"),void 0,i),ie(e,i)},append:function(e,i,n){return n=Z(n),F(i,e,void 0,n),ie(i,n)},insertBefore:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),ie(i,n)},merge:function(e,i,n){return n=Z(n),i.domNode=e,H(e,i,n),ie(i,n)},replace:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),e.parentNode.removeChild(e),ie(i,n)}},je=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},xe=function(e,i,n){for(var l=0,h=i.length;l<h;l++){var c=i[l];Array.isArray(c)?xe(e,c,n):c!=null&&c!==!1&&(typeof c=="string"&&(c=je(c)),n.push(c))}};function Ve(e,i,n){if(Array.isArray(i))n=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||n&&(typeof n=="string"||n.vnodeSelector))throw new Error("h called with invalid arguments");var l,h;return n&&n.length===1&&typeof n[0]=="string"?l=n[0]:n&&(h=[],xe(e,n,h),h.length===0&&(h=void 0)),{vnodeSelector:e,properties:i,children:h,text:l===""?void 0:l,domNode:null}}var et=function(e,i){for(var n=[];e&&e!==i;)n.push(e),e=e.parentNode;return n},pe;Array.prototype.find?pe=function(e,i){return e.find(i)}:pe=function(e,i){return e.filter(i)[0]};var tt=function(e,i){var n=e;return i.forEach(function(l){n=n&&n.children?pe(n.children,function(h){return h.domNode===l}):void 0}),n},it=function(e,i,n){return function(h,c,A,f){return l};function l(h){var c,A;n("domEvent",h);var f=i(),d=et(h.currentTarget,f.domNode);d.reverse();var v=tt(f.getLastRender(),d);e.scheduleRender();var k;if(v){var y=(A=(c=v.properties["on".concat(h.type)])!==null&&c!==void 0?c:v.properties.on[h.type].listener)!==null&&A!==void 0?A:v.properties.on[h.type];k=y.apply(v.properties.bind||this,arguments)}return n("domEventProcessed",h),k}},nt=function(e){var i,n=Z(e),l=n.performanceLogger,h=!0,c,A=!1,f=[],d=[],v=function(y,m,U){var T,J=function(){return T};n.eventHandlerInterceptor=it(i,J,l),T=y(m,U(),n),f.push(T),d.push(U)},k=function(){if(c=void 0,!!h){h=!1,l("renderStart",void 0);for(var y=0;y<f.length;y++){var m=d[y]();l("rendered",void 0),f[y].update(m),l("patched",void 0)}l("renderDone",void 0),h=!0}};return i={renderNow:k,scheduleRender:function(){!c&&!A&&(c=requestAnimationFrame(k))},stop:function(){c&&(cancelAnimationFrame(c),c=void 0),A=!0},resume:function(){A=!1,h=!0,i.scheduleRender()},append:function(y,m){v(ne.append,y,m)},insertBefore:function(y,m){v(ne.insertBefore,y,m)},merge:function(y,m){v(ne.merge,y,m)},replace:function(y,m){v(ne.replace,y,m)},detach:function(y){for(var m=0;m<d.length;m++)if(d[m]===y)return d.splice(m,1),f.splice(m,1)[0];throw new Error("renderFunction was not found")}},i},at=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(n,l){if(e)for(var h=0;h<n.length;h++)e[h]!==n[h]&&(i=void 0);return i||(i=l(),e=n),i}}},rt=function(e,i,n){var l=[],h=[];return{results:h,map:function(c){for(var A=c.map(e),f=h.slice(),d=0,v=0;v<c.length;v++){var k=c[v],y=A[v];if(y===l[d])h[v]=f[d],n(k,f[d],v),d++;else{for(var m=!1,U=1;U<l.length+1;U++){var T=(d+U)%l.length;if(l[T]===y){h[v]=f[T],n(c[v],f[T],v),d=T+1,m=!0;break}}m||(h[v]=i(k,v))}}h.length=c.length,l=A}}};b.createCache=at,b.createMapping=rt,b.createProjector=nt,b.dom=ne,b.h=Ve}))});var Ye=lt(Je(),1);var ot=96;function V(b){return b?b/72*ot:0}var ct=(0,Ye.createProjector)(),Qe=10,_e=20,ve=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function dt(b="vertical"){let t={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return b==="vertical"?L`<svg height=4 width=10>${ge`<line x1=0 y1=2 x2=10 y2=2 style=${E(t)} />`}</svg>`:L`<svg height=10 width=10>${ge`<line x1=5 y1=0 x2=5 y2=10 style=${E(t)} />`}</svg>`}function ft(b,t="vertical"){let s=document.createElement("div");return s.style.height=`${_e}px`,s.className=Ae.univariateAboveAndBelowSymbol,b!=null&&(s.style.opacity=b.toString()),ct.append(s,dt.bind(null,t)),s}function Ze(b,t,s="vertical",o){b.infos.forEach((a,r)=>{if(o&&r===2)a.preview=ft(t,s);else{let{size:g}=a,u=V(g)+(s==="horizontal"?Le:ve),_=a.preview.tagName.toLowerCase()==="div",$=_?a.preview:document.createElement("div");$&&($.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?$&&($.style.width=`${u}px`):$&&($.style.height=`${u}px`),_||$&&$.appendChild(a.preview),a.preview=$}})}function Ke(b,t="classic"){let s=b.infos,o=s[0].size,a=s[s.length-1].size;return t==="classic"?(V(o)+ve)/2:(V(o)-V(a))/2}function ye(b,t,s){if(!b)return null;let o=b.infos.map(r=>r.color),a=t.renderColorRampPreviewHTML(s.type==="full"?o:s.type==="above"?o.slice(0,3):o.slice(2,5),{width:s.width,height:s.height,align:s.rampAlignment,effectList:s.effectList});return a.className=Ae.colorRamp,s.opacity!=null&&(a.style.opacity=s.opacity.toString()),a}function vt(b,t,s,o="vertical"){let a=0,r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g;for(let $=u;$<=_;$++)if(s&&$===g)a+=o==="horizontal"?Qe:_e;else{let P=r[$].size,x=V(P)+(o==="horizontal"?Le:ve);a+=x}return Math.round(a)}function $e(b,t,s,o="vertical"){let a=vt(b,t,s,o),r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g,$=t==="full"?r[u].size+r[_].size:t==="above"?r[u].size:r[_].size,P=s?o==="vertical"?_e:Qe:0,x=o==="vertical"?ve*(t==="full"?2:1):Le*(t==="full"?2:1);return Math.round(a-(V($)/2+P/2+x/2))}function ht(b,t,s="vertical"){let o=b.infos,a=o.find(({type:g})=>g==="size-ramp"),r=o.find(({type:g})=>g==="color-ramp");return a&&(a={...a},a.infos=[...a.infos],Ze(a,t,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(a?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:a,colorRampElement:r}}function pt(b,t="vertical"){let s=b.infos,o=s.find(({type:r})=>r==="size-ramp"),a=s.find(({type:r})=>r==="color-ramp");return o&&(o={...o},o.infos=[...o.infos],Ze(o,null,t,!1)),a&&(a={...a},a.infos=[...a.infos]),t==="horizontal"&&(o?.infos.reverse(),a?.infos.reverse()),{sizeRampElement:o,colorRampElement:a}}function gt(b,t){return!0}var ut=ke`:host{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: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark: #009af2;--instant-apps-interactive-legend-info-item-background--hover: #e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark: #4a4a4a;--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-margin: 20px 15px;--instant-apps-interactive-legend-ui-padding: 20px 15px}:host .esri-legend__service{padding:0}:host .esri-legend__layer-body,:host .esri-legend__layer,:host .esri-legend__layer-table,:host .esri-legend__group-layer-child,:host .esri-legend__layer-child-table{margin:0;overflow:hidden}:host .esri-legend__layer-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)}:host .esri-legend__layer-caption calcite-action{margin-right:5px}:host .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}:host .esri-legend__layer-cell,:host .esri-legend__layer-row{display:flex;align-items:center}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}:host .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}:host .esri-legend__layer-cell--symbols{justify-content:center;width:20%}:host .esri-legend__layer-cell--info{width:65%}:host .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}:host .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-row,:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .instant-apps-interactive-legend__layer-row--interactive{position:relative}:host .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}:host .hide{display:none}.instant-apps-interactive-legend__compact .esri-legend__layer-row{--instant-apps-interactive-legend-ui-padding: 10px 5px}.instant-apps-interactive-legend__compact .esri-legend__layer-row .esri-legend__layer-cell--info{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){:host .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}:host .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}:host .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}`,p={layer:"esri-legend__layer",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},mt=24,Xe={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},we=class extends Ee{constructor(){super(...arguments),this.calculatingFeatureCount=!1,this.isLoading=!0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"}}static{this.properties={isLoading:16,legendvm:0,zoomTo:5,featureCount:5,filterMode:0,messages:0}}static{this.styles=ut}async connectedCallback(){super.connectedCallback(),!this.handles&&(this.handles=await ze())}async load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0});let[t,s]=await Promise.all([Pe(),Ie()]),o=await Te();this.reactiveUtils=s,this.intl=t,this.symbolUtils=o}willUpdate(t){t.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&qe(this.filterMode,this.legendvm.view)}async loaded(){await this.initLegend()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let t=async()=>{try{let s=this.legendvm?.view?.map;await s?.load(),await s?.basemap?.load();let o=s?.allLayers?.map(async u=>await u.load()),a=(await Promise.allSettled(o)).map(u=>u?.status==="fulfilled"&&u?.value?u.value:null).filter(u=>!!u),r=[];a.forEach(u=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(u))}),await Promise.allSettled(r);let g=await ce(this.legendvm,this.reactiveUtils);W.set("data",{...B.data,...g}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(s){console.error(s),this.isLoading=!1}};this.legendvm?.view?.when(t),this.legendvm?.view?.map?.layers?.on("after-changes",t)}catch{this.isLoading=!1}}getStretchStopLabel(t){let s=this.messages[t.label];return t.label?`${s}: ${typeof t.value=="string"?t.value:this.intl.formatNumber(t.value,{style:"decimal",notation:t.value.toString().includes("e")?"scientific":"standard"})}`:""}getTitle(t,s){if(!t)return;if(typeof t=="string"||typeof t=="number")return t;if("value"in t||"unit"in t){let r=typeof this.messages?.dotValue=="string"?this.messages.dotValue:"";return this.intl.substitute(r,t)}if("colorName"in t||"bandName"in t){let{colorName:r,bandName:g}=t,u=this.messages[r],_=typeof this.messages[g]=="string"?this.messages[g]:g;return`${u}: ${_}`}if("showCount"in t)return t.showCount?this.messages.clusterCountTitle:null;let o=null;if(s){let r=t;o=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null}else if(this.isRendererTitle(s)){let r=t;o=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let a=o==="showField"?"{field}":typeof o=="string"?this.messages[o]:"";return o?this.intl?.substitute(a,{field:t.field,normField:t.normField}):""}isRendererTitle(t){return!t}async setupWatchersAndListeners(){let t=this.legendvm?.view?.map?.allLayers?.filter(a=>a?.type==="feature"),s=[];for(let a of t)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(a));let o=[];try{o=await Promise.all(s)}catch(a){console.error(a)}for(let a of o){let r=`fLayerViewScale-${a.layer.id}`;!this.handles?.has(r)&&a&&this.handles?.add(a.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(a.layer).catch(g=>{console.error(g)})}),r)}t?.forEach(a=>{let r=`fLayer-${a?.id}`;this.handles?.has(r)||this.handles?.add(this.reactiveUtils?.watch(()=>a?.visible,()=>{this.createDataForLayer(a).catch(g=>{console.error(g)})}),r)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",a=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>a.children,"change",()=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).catch(r=>{console.error(r)})}))}).catch(r=>{console.error(r)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})}))}async createDataForLayer(t){let s=W.get("data")?.[t?.id],o=We(this.legendvm?.activeLayerInfos)?.find(a=>a?.layer?.id===t?.id);if(!s&&o){let a=await Fe(this.legendvm,o,this.reactiveUtils);if(me({intLegendLayerData:a,layerId:t?.id}),this.featureCount){let r=await de(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(t,s,o,a){return async()=>{let r={...B.data?.[s?.id]};a?await ue(r,t,o,this.filterMode,a):await ue(r,t,o,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let t=this.renderFilteredLayers(),s=W.get("compact")?` ${p.compact}`:"";return this.isLoading?K("interactive-legend-loader",L`<calcite-loader scale=m .label=${this.messages?.loading} .text=${this.messages?.loading}></calcite-loader>`):K("interactive-legend-classic-container",L`<div class=${`${Y(this.el)}${s}`}>${t?.length>0?t:L`<div class=${w(p.message)}>${this.messages?.noLegend}</div>`}</div>`)}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(t=>this.renderLegendForLayer(t)).filter(t=>!!t)}renderLegendForLayer(t,s){if(!t.ready)return null;if(t.children.length){let r=t.children.map(g=>this.renderLegendForLayer(g,!0)).toArray();return L`<instant-apps-interactive-legend-group-legend-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${s}><div style=${E({paddingLeft:"20px"})} .id=${`${t?.layer?.id}-legend-layer`} slot=content>${r}</div></instant-apps-interactive-legend-group-legend-element>`}let o=t.legendElements;if(o&&!o.length)return null;let a=o.map((r,g)=>this.renderLegendForElement(r,t.layer,t.effectList,t,g)).filter(r=>!!r);return a.length?L`<instant-apps-interactive-legend-layer-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${!!s}><div slot=content .id=${`${t?.layer?.id}-legend-layer`} class=${w(p.layer)}>${a}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(t,s,o,a,r,g,u){let _=t.type==="color-ramp",$=t.type==="opacity-ramp",P=t.type==="size-ramp",x=null,C=Be(a,t,r),S=t?.type==="relationship-ramp";if(t.type==="symbol-table"||P){let R=t.infos.map((M,D)=>this.renderLegendForElementInfo(M,s,o,P,t,a,r,D,C,u)).filter(M=>!!M);R.length&&(x=L`<div class=${w(p.layerBody)}>${R}</div>`)}else if(t.type==="color-ramp"||t.type==="opacity-ramp"||t.type==="heatmap-ramp"||t.type==="stretch-ramp"){let R=t;x=this.renderLegendForRamp(R,s.opacity)}else if(S)x=K("relationship-ramp",L`<instant-apps-interactive-legend-relationship class=${w(Y(this.el))} .filterMode=${this.filterMode} .activeLayerInfo=${a} .legendElement=${t}></instant-apps-interactive-legend-relationship>`);else if(t.type==="pie-chart-ramp"){let R=t;x=this.renderPieChartRamp(R)}else if(t.type==="univariate-above-and-below-ramp"){let R=t;x=this.renderUnivariateAboveAndBelowRamp(R,s.opacity,o)}else if(t.type==="univariate-color-size-ramp"){let R=t;x=this.renderUnivariateColorSizeRamp(R,s.opacity,o)}if(!x)return null;let z=t.title,I=null;if(typeof z=="string")I=z;else if(z){let R=z,M=this.getTitle(R,_||$);this.isRendererTitle(_||$)?"title"in z&&(I=`${z.title} (${M})`):I=M}return L`<instant-apps-interactive-legend-legend-element class=${w(Y(this.el))} .activeLayerInfo=${a} .isSizeRamp=${P} .isChild=${!!g} .isColorRamp=${_} .isRelationshipRamp=${S} .isInteractive=${C} .zoomTo=${this.zoomTo} .legendElement=${t} .titleText=${I} .legendvm=${this.legendvm} .legendElementIndex=${r}><div slot=content>${x}</div></instant-apps-interactive-legend-legend-element>`}renderPieChartRamp(t){return L`<div .innerHTML=${`${t.preview?.outerHTML}`}></div>`}renderUnivariateAboveAndBelowRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=ht(t,s);if(!a)return null;let g=$e(a,"above",!0),u=$e(a,"below",!0),_=12,$=ye(r,this.symbolUtils,{width:_,height:g,rampAlignment:"vertical",opacity:s,type:"above",effectList:o}),P=ye(r,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:s,type:"below",effectList:o}),x=Ke(a),C=a.infos.map(H=>H.label),S=C.map((H,F)=>F===0?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:F===2?L`<div></div>`:null),z=C.length-1,I=Math.floor(C.length/2),R=C.map((H,F)=>F===I||F===z?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:null),M={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${x}px`},ee={height:`${g}px`},Q={height:`${u}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map((H,F)=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(M)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!$&&F%2===0?L`<div class=${w(p.layerInfo)}>${C[F]}</div>`:null}</div>`)}</div>${$?K("color-ramp-preview",L`<div style=${E(D)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(ee)}>${S}</div></div></div><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${P}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(Q)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=pt(t);if(!a)return null;let g=Ke(a),u=12,_=$e(a,"full",!1),$=ye(r,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:s,type:"full",effectList:o}),P=a.infos.length-1,x=a.infos.map((I,R)=>R===0||R===P?L`<div class=${w(I.label?r?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${I.label}</div>`:null),C={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${g}px`},z={height:`${_}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map(I=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(C)} .innerHTML=${I?.preview?.outerHTML??""??""}></div></div>`)}</div>${K("color-ramp-preview",L`<div style=${E(S)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(z)}>${x}</div></div></div></div>`)}</div>`)}renderLegendForRamp(t,s){let o=t.infos,a=t.type==="opacity-ramp",r=t.type==="heatmap-ramp",g=t.type==="stretch-ramp",u=t.preview,_=a?p.opacityRamp:"";u&&(u.classList.add(p.colorRamp),_&&u.classList.add(_)),s!=null&&u&&(u.style.opacity=s.toString());let $=o.map(C=>{let S;if(r){let z=this.messages[C.label];S=typeof z=="string"?z:C.label}else g?S="value"in C?this.getStretchStopLabel(C):C.label:S=C.label;return L`<div class=${w(C.label?p.rampLabel:"")}>${S}</div>`}),P={width:`${mt}px`},x={height:u?.style?.height};return L`<div class=${w(p.layerRow)}><div class=${w(p.symbolContainer)} style=${E({...P})}><div class=${w(p.rampContainer)} ${Re(C=>{C?.firstChild&&C?.firstChild?.remove(),C?.appendChild(u)})}></div></div><div class=${w(p.layerInfo)}><div class=${w(p.rampLabelsContainer)} style=${E({...x})}>${$}</div></div></div>`}renderLegendForElementInfo(t,s,o,a,r,g,u,_,$,P){if("infos"in t)return this.renderLegendForElement(t,s,o,g,u,!0,t);let x=null,C=!gt(s,r.type);if("preview"in t){let{outerHTML:G}=t.preview;x=L`<div class=${w(p.symbol)} .innerHTML=${G??""}></div>`}else"src"in t&&(x=this.renderImage(t,s,C));if(!x)return null;let S="",z=a?` ${p.sizeRamp}`:"",I,R=Ue(s),M=De(R,P);if(B.data){let G=Me(R,s,t,M,_),te=M?M?.nestedInfos:R,he=He(te);I=R?.categories?.size===1?!G?.selected:he||G?.selected}let D="label"in t?t.label:null,ee=M&&!("value"in t)?!1:$,Q=W.get("compact"),H=this.getTitle(D,!1)||"",F=M?r.title:D??s?.id;return ee?L`<button @click=${this.applyFilter(t,s,_,P)} class=${`${p.layerRow} ${p.interactiveLayerRow}${I?` ${p.infoSelected}`:""}`} title=${(Q?`${H}`:void 0)??oe} .ariaPressed=${I?"true":"false"}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${this.getTitle(D,!1)||""}</div>${this.featureCount&&!Q?L`<instant-apps-interactive-legend-count class=${w(Y(this.el))} .categoryId=${F} .activeLayerInfo=${g} .legendvm=${this.legendvm} .selected=${!!I} .legendElement=${r} .infoIndex=${_}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${w(p.layerRow)}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${H}</div></div>`}renderImage(t,s,o){let{label:a,src:r,opacity:g}=t,u=o?` ${p.imageryLayerStretchedImage}`:"",_=o?"":` ${p.symbol}`,$={opacity:`${g??s.opacity}`};return L`<img alt=${this.getTitle(a,!1)??oe} src=${r??oe} width=${t.width} height=${t.height} class=${`$${u}${_}`} style=${E($)}>`}};Se("instant-apps-interactive-legend-classic",we);return we},a,b,c)
3
+ v1.1.0-next.20250821.2 */
4
+ import c from"./OLMSZ33F.js";import b from"./O7CE6CJX.js";import"./P5MCWT5K.js";import a from"./MKPL5WIV.js";import{a as K}from"./2MPP7TLB.js";import{C as Pe,E as Te,c as ze,z as Ie}from"./DOT7KVHF.js";import{b as Se}from"./SQGGV3CR.js";import"./L4GQXK2K.js";import{D as Re,E as Ee,G as w,H as E,h as ke,i as L,j as ge,l as oe}from"./LHWT5M7Y.js";import{b as st,d as lt}from"./LLXTU6JG.js";export default $arcgis.t(([,{a:B,b:W},{a:Fe,b:ce,d:Me,e:Ue,f:ue,g:He,i:Be,o:de,s:De,t:Y,u:me,v:qe,w:We}])=>{var Je=st((fe,Ge)=>{(function(b,t){typeof fe=="object"&&typeof Ge<"u"?t(fe):typeof define=="function"&&define.amd?define(["exports"],t):(b=typeof globalThis<"u"?globalThis:b||self,t(b.maquette={}))})(fe,(function(b){"use strict";var t="http://www.w3.org/",s="".concat(t,"2000/svg"),o="".concat(t,"1999/xlink"),a=[],r=function(e,i){var n={};return Object.keys(e).forEach(function(l){n[l]=e[l]}),i&&Object.keys(i).forEach(function(l){n[l]=i[l]}),n},g=function(e,i){return e.vnodeSelector!==i.vnodeSelector?!1:e.properties&&i.properties?e.properties.key!==i.properties.key?!1:e.properties.bind===i.properties.bind:!e.properties&&!i.properties},u=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},_=function(e,i,n){if(i.vnodeSelector!==""){for(var l=n;l<e.length;l++)if(g(e[l],i))return l}return-1},$=function(e,i,n,l){var h=e[i];if(h.vnodeSelector!==""){var c=h.properties,A=c?c.key===void 0?c.bind:c.key:void 0;if(!A){for(var f=0;f<e.length;f++)if(f!==i){var d=e[f];if(g(d,h))throw{error:new Error("".concat(n.vnodeSelector," had a ").concat(h.vnodeSelector," child ").concat(l==="added"?l:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:n,childNode:h}}}}},P=function(e){if(e.properties){var i=e.properties.enterAnimation;i&&i(e.domNode,e.properties)}},x=[],C=!1,S=function(e){(e.children||[]).forEach(S),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},z=function(){C=!1,x.forEach(S),x.length=0},I=function(e){x.push(e),C||(C=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(z,{timeout:16}):setTimeout(z,16))},R=function(e){var i=e.domNode;if(e.properties){var n=e.properties.exitAnimation;if(n){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),I(e))};n(i,l,e.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),I(e))},M=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function D(e){return!M.includes(e)}var ee=function(e,i,n){if(i)for(var l=n.eventHandlerInterceptor,h=Object.keys(i).filter(D),c=h.length,A=0;A<c;A++){var f=h[A],d=i[f];if(f==="className")throw new Error('Property "className" is not supported, use "class".');if(f==="class")te(e,d,!0);else if(f==="classes")for(var v=Object.keys(d),k=v.length,y=0;y<k;y++){var m=v[y];d[m]&&e.classList.add(m)}else if(f==="styles")for(var U=Object.keys(d),T=U.length,y=0;y<T;y++){var J=U[y],O=d[J];O&&(u(O),n.styleApplyer(e,J,O))}else if(f==="on"&&d)for(var ae=0,re=Object.entries(i.on);ae<re.length;ae++){var se=re[ae],X=se[0],q=se[1],N=typeof q=="function"?q:q.listener;l&&(N=l(X,N,e,i)),N&&e.addEventListener(X,N,typeof q=="function"?void 0:q.options)}else if(f!=="key"&&d!==null&&d!==void 0){var le=typeof d;le==="function"?(f.lastIndexOf("on",0)===0&&l&&(d=l(f,d,e,i)),e[f]=d):n.namespace===s?f==="href"?e.setAttributeNS(o,f,d):e.setAttribute(f,d):le==="string"&&f!=="value"&&f!=="innerHTML"?e.setAttribute(f,d):e[f]=d}}},Q=function(e,i,n){if(i)for(var l=0,h=i;l<h.length;l++){var c=h[l];F(c,e,void 0,n)}},H=function(e,i,n){Q(e,i.children,n),i.text&&(e.textContent=i.text),ee(e,i.properties,n),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,n,i.vnodeSelector,i.properties,i.children])},F=function(e,i,n,l){var h,c,A=0,f=e.vnodeSelector,d=i.ownerDocument;if(f==="")e.domNode?e.domNode.nodeValue=e.text:(c=e.domNode=d.createTextNode(e.text),n!==void 0?i.insertBefore(c,n):i.appendChild(c));else{for(var v=0;v<=f.length;++v){var k=f.charAt(v);if(v===f.length||k==="."||k==="#"){var y=f.charAt(A-1),m=f.slice(A,v);y==="."?c.classList.add(m):y==="#"?c.id=m:(m==="svg"&&(l=r(l,{namespace:s})),l.namespace!==void 0?c=e.domNode=d.createElementNS(l.namespace,m):(c=e.domNode=e.domNode||(!((h=e.properties)===null||h===void 0)&&h.is?d.createElement(m,{is:e.properties.is}):d.createElement(m)),m==="input"&&e.properties&&e.properties.type!==void 0&&c.setAttribute("type",e.properties.type)),n!==void 0?i.insertBefore(c,n):c.parentNode!==i&&i.appendChild(c)),A=v+1}}H(c,e,l)}},G,te=function(e,i,n){i&&i.split(" ").forEach(function(l){l&&e.classList.toggle(l,n)})},he=function(e,i,n,l){if(n){for(var h=!1,c=Object.keys(n).filter(D),A=c.length,f=0;f<A;f++){var d=c[f],v=n[d],k=i[d];if(d==="class")k!==v&&(te(e,k,!1),te(e,v,!0));else if(d==="classes")for(var y=e.classList,m=Object.keys(v),U=m.length,T=0;T<U;T++){var J=m[T],O=!!v[J],ae=!!k[J];O!==ae&&(h=!0,O?y.add(J):y.remove(J))}else if(d==="styles")for(var re=Object.keys(v),se=re.length,T=0;T<se;T++){var X=re[T],q=v[X],N=k[X];q!==N&&(h=!0,q?(u(q),l.styleApplyer(e,X,q)):l.styleApplyer(e,X,""))}else if(!v&&typeof k=="string"&&(v=""),d==="value"){var le=e[d];le!==v&&v!==k&&(e[d]=v),v!==k&&(h=!0)}else if(v!==k){var Ce=typeof v;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===s?d==="href"?e.setAttributeNS(o,d,v):e.setAttribute(d,v):Ce==="string"&&d!=="innerHTML"?d==="role"&&v===""?e.removeAttribute(d):e.setAttribute(d,v):e[d]!==v&&(e[d]=v),h=!0)}}return h}},Oe=function(e,i,n,l,h){if(n===l)return!1;n=n||a,l=l||a;for(var c=n.length,A=l.length,f=0,d=0,v,k=!1;d<A;){var y=f<c?n[f]:void 0,m=l[d];if(y!==void 0&&g(y,m))k=G(y,m,h,i,n)||k,f++;else{var U=_(n,m,f+1);if(U>=0){for(v=f;v<U;v++)R(n[v]),$(n,v,e,"removed");k=G(n[U],m,h,i,n)||k,f=U+1}else F(m,i,f<c?n[f].domNode:void 0,h),P(m),$(l,d,e,"added")}d++}if(c>f)for(v=f;v<c;v++)R(n[v]),$(n,v,e,"removed");return k};G=function(e,i,n,l,h){var c=e.domNode,A=!1;if(e===i)return!1;var f=!1;if(i.vnodeSelector===""){if(i.text!==e.text){var d=c.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,c)}catch{l.replaceChild(d,l.childNodes[h.indexOf(e)])}return i.domNode=d,A=!0,A}i.domNode=c}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(n=r(n,{namespace:s})),e.text!==i.text&&(f=!0,i.text===void 0?c.removeChild(c.firstChild):c.textContent=i.text),i.domNode=c,f=Oe(i,c,e.children,i.children,n)||f,f=he(c,e.properties,i.properties,n)||f,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[c,n,i.vnodeSelector,i.properties,i.children]);return f&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(c,i.properties,e.properties),A};var ie=function(e,i){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var l=e;e=n,G(l,n,i,l.domNode.parentNode,[l])},domNode:e.domNode}},Ne={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,n){i.charAt(0)==="-"?e.style.setProperty(i,n):e.style[i]=n}},Z=function(e){return r(Ne,e)},ne={create:function(e,i){return i=Z(i),F(e,document.createElement("div"),void 0,i),ie(e,i)},append:function(e,i,n){return n=Z(n),F(i,e,void 0,n),ie(i,n)},insertBefore:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),ie(i,n)},merge:function(e,i,n){return n=Z(n),i.domNode=e,H(e,i,n),ie(i,n)},replace:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),e.parentNode.removeChild(e),ie(i,n)}},je=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},xe=function(e,i,n){for(var l=0,h=i.length;l<h;l++){var c=i[l];Array.isArray(c)?xe(e,c,n):c!=null&&c!==!1&&(typeof c=="string"&&(c=je(c)),n.push(c))}};function Ve(e,i,n){if(Array.isArray(i))n=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||n&&(typeof n=="string"||n.vnodeSelector))throw new Error("h called with invalid arguments");var l,h;return n&&n.length===1&&typeof n[0]=="string"?l=n[0]:n&&(h=[],xe(e,n,h),h.length===0&&(h=void 0)),{vnodeSelector:e,properties:i,children:h,text:l===""?void 0:l,domNode:null}}var et=function(e,i){for(var n=[];e&&e!==i;)n.push(e),e=e.parentNode;return n},pe;Array.prototype.find?pe=function(e,i){return e.find(i)}:pe=function(e,i){return e.filter(i)[0]};var tt=function(e,i){var n=e;return i.forEach(function(l){n=n&&n.children?pe(n.children,function(h){return h.domNode===l}):void 0}),n},it=function(e,i,n){return function(h,c,A,f){return l};function l(h){var c,A;n("domEvent",h);var f=i(),d=et(h.currentTarget,f.domNode);d.reverse();var v=tt(f.getLastRender(),d);e.scheduleRender();var k;if(v){var y=(A=(c=v.properties["on".concat(h.type)])!==null&&c!==void 0?c:v.properties.on[h.type].listener)!==null&&A!==void 0?A:v.properties.on[h.type];k=y.apply(v.properties.bind||this,arguments)}return n("domEventProcessed",h),k}},nt=function(e){var i,n=Z(e),l=n.performanceLogger,h=!0,c,A=!1,f=[],d=[],v=function(y,m,U){var T,J=function(){return T};n.eventHandlerInterceptor=it(i,J,l),T=y(m,U(),n),f.push(T),d.push(U)},k=function(){if(c=void 0,!!h){h=!1,l("renderStart",void 0);for(var y=0;y<f.length;y++){var m=d[y]();l("rendered",void 0),f[y].update(m),l("patched",void 0)}l("renderDone",void 0),h=!0}};return i={renderNow:k,scheduleRender:function(){!c&&!A&&(c=requestAnimationFrame(k))},stop:function(){c&&(cancelAnimationFrame(c),c=void 0),A=!0},resume:function(){A=!1,h=!0,i.scheduleRender()},append:function(y,m){v(ne.append,y,m)},insertBefore:function(y,m){v(ne.insertBefore,y,m)},merge:function(y,m){v(ne.merge,y,m)},replace:function(y,m){v(ne.replace,y,m)},detach:function(y){for(var m=0;m<d.length;m++)if(d[m]===y)return d.splice(m,1),f.splice(m,1)[0];throw new Error("renderFunction was not found")}},i},at=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(n,l){if(e)for(var h=0;h<n.length;h++)e[h]!==n[h]&&(i=void 0);return i||(i=l(),e=n),i}}},rt=function(e,i,n){var l=[],h=[];return{results:h,map:function(c){for(var A=c.map(e),f=h.slice(),d=0,v=0;v<c.length;v++){var k=c[v],y=A[v];if(y===l[d])h[v]=f[d],n(k,f[d],v),d++;else{for(var m=!1,U=1;U<l.length+1;U++){var T=(d+U)%l.length;if(l[T]===y){h[v]=f[T],n(c[v],f[T],v),d=T+1,m=!0;break}}m||(h[v]=i(k,v))}}h.length=c.length,l=A}}};b.createCache=at,b.createMapping=rt,b.createProjector=nt,b.dom=ne,b.h=Ve}))});var Ye=lt(Je(),1);var ot=96;function V(b){return b?b/72*ot:0}var ct=(0,Ye.createProjector)(),Qe=10,_e=20,ve=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function dt(b="vertical"){let t={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return b==="vertical"?L`<svg height=4 width=10>${ge`<line x1=0 y1=2 x2=10 y2=2 style=${E(t)} />`}</svg>`:L`<svg height=10 width=10>${ge`<line x1=5 y1=0 x2=5 y2=10 style=${E(t)} />`}</svg>`}function ft(b,t="vertical"){let s=document.createElement("div");return s.style.height=`${_e}px`,s.className=Ae.univariateAboveAndBelowSymbol,b!=null&&(s.style.opacity=b.toString()),ct.append(s,dt.bind(null,t)),s}function Ze(b,t,s="vertical",o){b.infos.forEach((a,r)=>{if(o&&r===2)a.preview=ft(t,s);else{let{size:g}=a,u=V(g)+(s==="horizontal"?Le:ve),_=a.preview.tagName.toLowerCase()==="div",$=_?a.preview:document.createElement("div");$&&($.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?$&&($.style.width=`${u}px`):$&&($.style.height=`${u}px`),_||$&&$.appendChild(a.preview),a.preview=$}})}function Ke(b,t="classic"){let s=b.infos,o=s[0].size,a=s[s.length-1].size;return t==="classic"?(V(o)+ve)/2:(V(o)-V(a))/2}function ye(b,t,s){if(!b)return null;let o=b.infos.map(r=>r.color),a=t.renderColorRampPreviewHTML(s.type==="full"?o:s.type==="above"?o.slice(0,3):o.slice(2,5),{width:s.width,height:s.height,align:s.rampAlignment,effectList:s.effectList});return a.className=Ae.colorRamp,s.opacity!=null&&(a.style.opacity=s.opacity.toString()),a}function vt(b,t,s,o="vertical"){let a=0,r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g;for(let $=u;$<=_;$++)if(s&&$===g)a+=o==="horizontal"?Qe:_e;else{let P=r[$].size,x=V(P)+(o==="horizontal"?Le:ve);a+=x}return Math.round(a)}function $e(b,t,s,o="vertical"){let a=vt(b,t,s,o),r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g,$=t==="full"?r[u].size+r[_].size:t==="above"?r[u].size:r[_].size,P=s?o==="vertical"?_e:Qe:0,x=o==="vertical"?ve*(t==="full"?2:1):Le*(t==="full"?2:1);return Math.round(a-(V($)/2+P/2+x/2))}function ht(b,t,s="vertical"){let o=b.infos,a=o.find(({type:g})=>g==="size-ramp"),r=o.find(({type:g})=>g==="color-ramp");return a&&(a={...a},a.infos=[...a.infos],Ze(a,t,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(a?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:a,colorRampElement:r}}function pt(b,t="vertical"){let s=b.infos,o=s.find(({type:r})=>r==="size-ramp"),a=s.find(({type:r})=>r==="color-ramp");return o&&(o={...o},o.infos=[...o.infos],Ze(o,null,t,!1)),a&&(a={...a},a.infos=[...a.infos]),t==="horizontal"&&(o?.infos.reverse(),a?.infos.reverse()),{sizeRampElement:o,colorRampElement:a}}function gt(b,t){return!0}var ut=ke`:host{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: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark: #009af2;--instant-apps-interactive-legend-info-item-background--hover: #e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark: #4a4a4a;--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-margin: 20px 15px;--instant-apps-interactive-legend-ui-padding: 20px 15px}:host .esri-legend__service{padding:0}:host .esri-legend__layer-body,:host .esri-legend__layer,:host .esri-legend__layer-table,:host .esri-legend__group-layer-child,:host .esri-legend__layer-child-table{margin:0;overflow:hidden}:host .esri-legend__layer-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)}:host .esri-legend__layer-caption calcite-action{margin-right:5px}:host .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}:host .esri-legend__layer-cell,:host .esri-legend__layer-row{display:flex;align-items:center}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}:host .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}:host .esri-legend__layer-cell--symbols{justify-content:center;width:20%}:host .esri-legend__layer-cell--info{width:65%}:host .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}:host .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-row,:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .instant-apps-interactive-legend__layer-row--interactive{position:relative}:host .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}:host .hide{display:none}.instant-apps-interactive-legend__compact .esri-legend__layer-row{--instant-apps-interactive-legend-ui-padding: 10px 5px}.instant-apps-interactive-legend__compact .esri-legend__layer-row .esri-legend__layer-cell--info{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){:host .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}:host .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}:host .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}`,p={layer:"esri-legend__layer",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},mt=24,Xe={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},we=class extends Ee{constructor(){super(...arguments),this.calculatingFeatureCount=!1,this.isLoading=!0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"}}static{this.properties={isLoading:16,legendvm:0,zoomTo:5,featureCount:5,filterMode:0,messages:0}}static{this.styles=ut}async connectedCallback(){super.connectedCallback(),!this.handles&&(this.handles=await ze())}async load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0});let[t,s]=await Promise.all([Pe(),Ie()]),o=await Te();this.reactiveUtils=s,this.intl=t,this.symbolUtils=o}willUpdate(t){t.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&qe(this.filterMode,this.legendvm.view)}async loaded(){await this.initLegend()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let t=async()=>{try{let s=this.legendvm?.view?.map;await s?.load(),await s?.basemap?.load();let o=s?.allLayers?.map(async u=>await u.load()),a=(await Promise.allSettled(o)).map(u=>u?.status==="fulfilled"&&u?.value?u.value:null).filter(u=>!!u),r=[];a.forEach(u=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(u))}),await Promise.allSettled(r);let g=await ce(this.legendvm,this.reactiveUtils);W.set("data",{...B.data,...g}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(s){console.error(s),this.isLoading=!1}};this.legendvm?.view?.when(t),this.legendvm?.view?.map?.layers?.on("after-changes",t)}catch{this.isLoading=!1}}getStretchStopLabel(t){let s=this.messages[t.label];return t.label?`${s}: ${typeof t.value=="string"?t.value:this.intl.formatNumber(t.value,{style:"decimal",notation:t.value.toString().includes("e")?"scientific":"standard"})}`:""}getTitle(t,s){if(!t)return;if(typeof t=="string"||typeof t=="number")return t;if("value"in t||"unit"in t){let r=typeof this.messages?.dotValue=="string"?this.messages.dotValue:"";return this.intl.substitute(r,t)}if("colorName"in t||"bandName"in t){let{colorName:r,bandName:g}=t,u=this.messages[r],_=typeof this.messages[g]=="string"?this.messages[g]:g;return`${u}: ${_}`}if("showCount"in t)return t.showCount?this.messages.clusterCountTitle:null;let o=null;if(s){let r=t;o=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null}else if(this.isRendererTitle(s)){let r=t;o=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let a=o==="showField"?"{field}":typeof o=="string"?this.messages[o]:"";return o?this.intl?.substitute(a,{field:t.field,normField:t.normField}):""}isRendererTitle(t){return!t}async setupWatchersAndListeners(){let t=this.legendvm?.view?.map?.allLayers?.filter(a=>a?.type==="feature"),s=[];for(let a of t)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(a));let o=[];try{o=await Promise.all(s)}catch(a){console.error(a)}for(let a of o){let r=`fLayerViewScale-${a.layer.id}`;!this.handles?.has(r)&&a&&this.handles?.add(a.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(a.layer).catch(g=>{console.error(g)})}),r)}t?.forEach(a=>{let r=`fLayer-${a?.id}`;this.handles?.has(r)||this.handles?.add(this.reactiveUtils?.watch(()=>a?.visible,()=>{this.createDataForLayer(a).catch(g=>{console.error(g)})}),r)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",a=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>a.children,"change",()=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).catch(r=>{console.error(r)})}))}).catch(r=>{console.error(r)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})}))}async createDataForLayer(t){let s=W.get("data")?.[t?.id],o=We(this.legendvm?.activeLayerInfos)?.find(a=>a?.layer?.id===t?.id);if(!s&&o){let a=await Fe(this.legendvm,o,this.reactiveUtils);if(me({intLegendLayerData:a,layerId:t?.id}),this.featureCount){let r=await de(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(t,s,o,a){return async()=>{let r={...B.data?.[s?.id]};a?await ue(r,t,o,this.filterMode,a):await ue(r,t,o,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let t=this.renderFilteredLayers(),s=W.get("compact")?` ${p.compact}`:"";return this.isLoading?K("interactive-legend-loader",L`<calcite-loader scale=m .label=${this.messages?.loading} .text=${this.messages?.loading}></calcite-loader>`):K("interactive-legend-classic-container",L`<div class=${`${Y(this.el)}${s}`}>${t?.length>0?t:L`<div class=${w(p.message)}>${this.messages?.noLegend}</div>`}</div>`)}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(t=>this.renderLegendForLayer(t)).filter(t=>!!t)}renderLegendForLayer(t,s){if(!t.ready)return null;if(t.children.length){let r=t.children.map(g=>this.renderLegendForLayer(g,!0)).toArray();return L`<instant-apps-interactive-legend-group-legend-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${s}><div style=${E({paddingLeft:"20px"})} .id=${`${t?.layer?.id}-legend-layer`} slot=content>${r}</div></instant-apps-interactive-legend-group-legend-element>`}let o=t.legendElements;if(o&&!o.length)return null;let a=o.map((r,g)=>this.renderLegendForElement(r,t.layer,t.effectList,t,g)).filter(r=>!!r);return a.length?L`<instant-apps-interactive-legend-layer-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${!!s}><div slot=content .id=${`${t?.layer?.id}-legend-layer`} class=${w(p.layer)}>${a}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(t,s,o,a,r,g,u){let _=t.type==="color-ramp",$=t.type==="opacity-ramp",P=t.type==="size-ramp",x=null,C=Be(a,t,r),S=t?.type==="relationship-ramp";if(t.type==="symbol-table"||P){let R=t.infos.map((M,D)=>this.renderLegendForElementInfo(M,s,o,P,t,a,r,D,C,u)).filter(M=>!!M);R.length&&(x=L`<div class=${w(p.layerBody)}>${R}</div>`)}else if(t.type==="color-ramp"||t.type==="opacity-ramp"||t.type==="heatmap-ramp"||t.type==="stretch-ramp"){let R=t;x=this.renderLegendForRamp(R,s.opacity)}else if(S)x=K("relationship-ramp",L`<instant-apps-interactive-legend-relationship class=${w(Y(this.el))} .filterMode=${this.filterMode} .activeLayerInfo=${a} .legendElement=${t}></instant-apps-interactive-legend-relationship>`);else if(t.type==="pie-chart-ramp"){let R=t;x=this.renderPieChartRamp(R)}else if(t.type==="univariate-above-and-below-ramp"){let R=t;x=this.renderUnivariateAboveAndBelowRamp(R,s.opacity,o)}else if(t.type==="univariate-color-size-ramp"){let R=t;x=this.renderUnivariateColorSizeRamp(R,s.opacity,o)}if(!x)return null;let z=t.title,I=null;if(typeof z=="string")I=z;else if(z){let R=z,M=this.getTitle(R,_||$);this.isRendererTitle(_||$)?"title"in z&&(I=`${z.title} (${M})`):I=M}return L`<instant-apps-interactive-legend-legend-element class=${w(Y(this.el))} .activeLayerInfo=${a} .isSizeRamp=${P} .isChild=${!!g} .isColorRamp=${_} .isRelationshipRamp=${S} .isInteractive=${C} .zoomTo=${this.zoomTo} .legendElement=${t} .titleText=${I} .legendvm=${this.legendvm} .legendElementIndex=${r}><div slot=content>${x}</div></instant-apps-interactive-legend-legend-element>`}renderPieChartRamp(t){return L`<div .innerHTML=${`${t.preview?.outerHTML}`}></div>`}renderUnivariateAboveAndBelowRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=ht(t,s);if(!a)return null;let g=$e(a,"above",!0),u=$e(a,"below",!0),_=12,$=ye(r,this.symbolUtils,{width:_,height:g,rampAlignment:"vertical",opacity:s,type:"above",effectList:o}),P=ye(r,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:s,type:"below",effectList:o}),x=Ke(a),C=a.infos.map(H=>H.label),S=C.map((H,F)=>F===0?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:F===2?L`<div></div>`:null),z=C.length-1,I=Math.floor(C.length/2),R=C.map((H,F)=>F===I||F===z?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:null),M={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${x}px`},ee={height:`${g}px`},Q={height:`${u}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map((H,F)=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(M)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!$&&F%2===0?L`<div class=${w(p.layerInfo)}>${C[F]}</div>`:null}</div>`)}</div>${$?K("color-ramp-preview",L`<div style=${E(D)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(ee)}>${S}</div></div></div><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${P}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(Q)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=pt(t);if(!a)return null;let g=Ke(a),u=12,_=$e(a,"full",!1),$=ye(r,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:s,type:"full",effectList:o}),P=a.infos.length-1,x=a.infos.map((I,R)=>R===0||R===P?L`<div class=${w(I.label?r?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${I.label}</div>`:null),C={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${g}px`},z={height:`${_}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map(I=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(C)} .innerHTML=${I?.preview?.outerHTML??""??""}></div></div>`)}</div>${K("color-ramp-preview",L`<div style=${E(S)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(z)}>${x}</div></div></div></div>`)}</div>`)}renderLegendForRamp(t,s){let o=t.infos,a=t.type==="opacity-ramp",r=t.type==="heatmap-ramp",g=t.type==="stretch-ramp",u=t.preview,_=a?p.opacityRamp:"";u&&(u.classList.add(p.colorRamp),_&&u.classList.add(_)),s!=null&&u&&(u.style.opacity=s.toString());let $=o.map(C=>{let S;if(r){let z=this.messages[C.label];S=typeof z=="string"?z:C.label}else g?S="value"in C?this.getStretchStopLabel(C):C.label:S=C.label;return L`<div class=${w(C.label?p.rampLabel:"")}>${S}</div>`}),P={width:`${mt}px`},x={height:u?.style?.height};return L`<div class=${w(p.layerRow)}><div class=${w(p.symbolContainer)} style=${E({...P})}><div class=${w(p.rampContainer)} ${Re(C=>{C?.firstChild&&C?.firstChild?.remove(),C?.appendChild(u)})}></div></div><div class=${w(p.layerInfo)}><div class=${w(p.rampLabelsContainer)} style=${E({...x})}>${$}</div></div></div>`}renderLegendForElementInfo(t,s,o,a,r,g,u,_,$,P){if("infos"in t)return this.renderLegendForElement(t,s,o,g,u,!0,t);let x=null,C=!gt(s,r.type);if("preview"in t){let{outerHTML:G}=t.preview;x=L`<div class=${w(p.symbol)} .innerHTML=${G??""}></div>`}else"src"in t&&(x=this.renderImage(t,s,C));if(!x)return null;let S="",z=a?` ${p.sizeRamp}`:"",I,R=Ue(s),M=De(R,P);if(B.data){let G=Me(R,s,t,M,_),te=M?M?.nestedInfos:R,he=He(te);I=R?.categories?.size===1?!G?.selected:he||G?.selected}let D="label"in t?t.label:null,ee=M&&!("value"in t)?!1:$,Q=W.get("compact"),H=this.getTitle(D,!1)||"",F=M?r.title:D??s?.id;return ee?L`<button @click=${this.applyFilter(t,s,_,P)} class=${`${p.layerRow} ${p.interactiveLayerRow}${I?` ${p.infoSelected}`:""}`} title=${(Q?`${H}`:void 0)??oe} .ariaPressed=${I?"true":"false"}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${this.getTitle(D,!1)||""}</div>${this.featureCount&&!Q?L`<instant-apps-interactive-legend-count class=${w(Y(this.el))} .categoryId=${F} .activeLayerInfo=${g} .legendvm=${this.legendvm} .selected=${!!I} .legendElement=${r} .infoIndex=${_}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${w(p.layerRow)}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${H}</div></div>`}renderImage(t,s,o){let{label:a,src:r,opacity:g}=t,u=o?` ${p.imageryLayerStretchedImage}`:"",_=o?"":` ${p.symbol}`,$={opacity:`${g??s.opacity}`};return L`<img alt=${this.getTitle(a,!1)??oe} src=${r??oe} width=${t.width} height=${t.height} class=${`$${u}${_}`} style=${E($)}>`}};Se("instant-apps-interactive-legend-classic",we);return we},a,b,c)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{b as p,d as n,e as h,f as R}from"./SYTRT7BE.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
3
+ v1.1.0-next.20250821.2 */
4
+ import{b as p,d as n,e as h,f as R}from"./5GZLTD5C.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import g from"./KI4KQRA2.js";import e from"./4D77ZL63.js";import"./DIDT4E5J.js";import c from"./BXXG3MCY.js";import{a as d}from"./BEMU5FKM.js";import{a as b}from"./GJE7SAYK.js";import"./5P76J3HO.js";import{b as x}from"./LEMJCYUU.js";import"./TR6F377Q.js";import"./IKKQ5VDL.js";import{E as u,G as p,I as f,h as _,i as a,o as h}from"./L6RA53F6.js";import"./PC26DPDG.js";export default $arcgis.t(([,{a:r,b:g},{e:$,h:w,j:T,k:z,l:E,r:C,s:m,u:v}])=>{var k=_`:host{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: .875rem;--instant-apps-interactive-legend-info-font-size: .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}:host .esri-legend__layer-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)}:host .esri-legend__layer-caption calcite-action{margin-left:20px}:host .instant-apps-interactive-legend__layer-caption--compact{--instant-apps-interactive-legend-ui-padding: 5px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;justify-content:flex-end;width:100%}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container .instant-apps-interactive-legend__show-all-btn{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-ui-brand);font-weight:var(--calcite-font-weight-medium);font-size:.75rem;padding-inline-start:20px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__zoom-to-btn{--calcite-icon-color: var(--calcite-ui-brand);--calcite-color-transparent-hover: transparent}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;font-size:.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-interactive-legend__legend-layer-caption-text{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}:host .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host:dir(rtl) .esri-legend__layer-caption calcite-action{margin-left:unset;margin-right:20px}`,s={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"},y=class extends u{constructor(){super(...arguments),this._messages=b({name:"instant-apps-interactive-legend",blocking:!0}),this.expanded=!0,this.legendLayerExpandUpdated=h(),this.showAllSelected=h()}static{this.properties={legendvm:0,activeLayerInfo:0,layer:0,titleText:1,legendElementIndex:9,zoomTo:5,isInteractive:5,legendElement:0,expanded:5}}static{this.styles=k}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdated.emit(),(this.activeLayerInfo?.legendElements?.filter(e=>e.type==="relationship-ramp")).length>0&&g.set("relationshipRampExpandStates",{...r.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=$(this.layer),i=m(e,this.legendElement);E(e,this.legendvm.view,i)}}handleShowAll(){return()=>{let e=()=>{let t=z(n,this.legendElement.title);v({intLegendLayerData:t,layerId:this.layer.id})},i=()=>{let t=T(n);v({intLegendLayerData:t,layerId:this.layer.id})},n=r.data?.[this.layer?.id];if(m(n,this.legendElement)){e();return}i(),this.showAllSelected.emit()}}render(){let e=C(this.activeLayerInfo),i=w(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:n}=this,t=g.get("compact"),o=t?` ${s.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText?a`<span class=${p(s.layerCaptionText)} title=${this.titleText??f}>${this.titleText}</span>`:null,c=this.isInteractive||i?this.renderLegendElementCaptionControls():"";return a`<div class=${`${s.layerCaption}${o}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${n?this._messages.collapse:this._messages.expand} .label=${n?this._messages.collapse:this._messages.expand} scale=s></calcite-action>${t?[l,c]:[c,l]}</div>`}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${s.layerCaptionBtnContainerNoText}`;return d("layer-caption-btn-container",a`<div class=${`${s.layerCaptionBtnContainer}${e}`}>${this.renderShowAllZoomToButtons()}</div>`)}renderShowAllZoomToButtons(){return g.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="zoomToCompact",o=this.zoomTo&&[a`<calcite-action id=${t} class=${p(s.zoomTo)} @click=${this.handleZoomTo()} .icon=${"magnifying-glass-plus"} appearance=transparent scale=s .text=${this._messages.zoomTo}></calcite-action>`,a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"",l=n?a`<button @click=${this.handleShowAll()} class=${p(s.showAll)}>${this._messages.showAll}</button>`:null;return[o,l]}renderButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="showAll",o="zoomTo",l=n&&[d("show-all-button",a`<calcite-button id=${t} .label=${this._messages.showAll} @click=${this.handleShowAll()} .iconStart=${"list-check-all"} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.showAll}>${this._messages.showAll}</calcite-tooltip>`]||"",c=this.zoomTo&&[d("zoom-to-button",a`<calcite-button id=${o} .label=${this._messages.zoomTo} @click=${this.handleZoomTo()} .iconStart=${"magnifying-glass-plus"} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${o} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"";return[l,c]}};x("instant-apps-interactive-legend-legend-element-caption",y);return y},c,e,g)
3
+ v1.1.0-next.20250821.2 */
4
+ import g from"./OLMSZ33F.js";import e from"./O7CE6CJX.js";import"./P5MCWT5K.js";import c from"./MKPL5WIV.js";import{a as d}from"./2MPP7TLB.js";import{a as b}from"./CRGA7SBE.js";import"./DOT7KVHF.js";import{b as x}from"./SQGGV3CR.js";import"./XJ7MYRCO.js";import"./L4GQXK2K.js";import{E as u,G as p,I as f,h as _,i as a,o as h}from"./LHWT5M7Y.js";import"./LLXTU6JG.js";export default $arcgis.t(([,{a:r,b:g},{e:$,h:w,j:T,k:z,l:E,r:C,s:m,u:v}])=>{var k=_`:host{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: .875rem;--instant-apps-interactive-legend-info-font-size: .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}:host .esri-legend__layer-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)}:host .esri-legend__layer-caption calcite-action{margin-left:20px}:host .instant-apps-interactive-legend__layer-caption--compact{--instant-apps-interactive-legend-ui-padding: 5px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;justify-content:flex-end;width:100%}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container .instant-apps-interactive-legend__show-all-btn{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-ui-brand);font-weight:var(--calcite-font-weight-medium);font-size:.75rem;padding-inline-start:20px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__zoom-to-btn{--calcite-icon-color: var(--calcite-ui-brand);--calcite-color-transparent-hover: transparent}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;font-size:.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-interactive-legend__legend-layer-caption-text{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}:host .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host:dir(rtl) .esri-legend__layer-caption calcite-action{margin-left:unset;margin-right:20px}`,s={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"},y=class extends u{constructor(){super(...arguments),this._messages=b({name:"instant-apps-interactive-legend",blocking:!0}),this.expanded=!0,this.legendLayerExpandUpdated=h(),this.showAllSelected=h()}static{this.properties={legendvm:0,activeLayerInfo:0,layer:0,titleText:1,legendElementIndex:9,zoomTo:5,isInteractive:5,legendElement:0,expanded:5}}static{this.styles=k}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdated.emit(),(this.activeLayerInfo?.legendElements?.filter(e=>e.type==="relationship-ramp")).length>0&&g.set("relationshipRampExpandStates",{...r.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=$(this.layer),i=m(e,this.legendElement);E(e,this.legendvm.view,i)}}handleShowAll(){return()=>{let e=()=>{let t=z(n,this.legendElement.title);v({intLegendLayerData:t,layerId:this.layer.id})},i=()=>{let t=T(n);v({intLegendLayerData:t,layerId:this.layer.id})},n=r.data?.[this.layer?.id];if(m(n,this.legendElement)){e();return}i(),this.showAllSelected.emit()}}render(){let e=C(this.activeLayerInfo),i=w(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:n}=this,t=g.get("compact"),o=t?` ${s.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText?a`<span class=${p(s.layerCaptionText)} title=${this.titleText??f}>${this.titleText}</span>`:null,c=this.isInteractive||i?this.renderLegendElementCaptionControls():"";return a`<div class=${`${s.layerCaption}${o}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${n?this._messages.collapse:this._messages.expand} .label=${n?this._messages.collapse:this._messages.expand} scale=s></calcite-action>${t?[l,c]:[c,l]}</div>`}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${s.layerCaptionBtnContainerNoText}`;return d("layer-caption-btn-container",a`<div class=${`${s.layerCaptionBtnContainer}${e}`}>${this.renderShowAllZoomToButtons()}</div>`)}renderShowAllZoomToButtons(){return g.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="zoomToCompact",o=this.zoomTo&&[a`<calcite-action id=${t} class=${p(s.zoomTo)} @click=${this.handleZoomTo()} .icon=${"magnifying-glass-plus"} appearance=transparent scale=s .text=${this._messages.zoomTo}></calcite-action>`,a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"",l=n?a`<button @click=${this.handleShowAll()} class=${p(s.showAll)}>${this._messages.showAll}</button>`:null;return[o,l]}renderButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="showAll",o="zoomTo",l=n&&[d("show-all-button",a`<calcite-button id=${t} .label=${this._messages.showAll} @click=${this.handleShowAll()} .iconStart=${"list-check-all"} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.showAll}>${this._messages.showAll}</calcite-tooltip>`]||"",c=this.zoomTo&&[d("zoom-to-button",a`<calcite-button id=${o} .label=${this._messages.zoomTo} @click=${this.handleZoomTo()} .iconStart=${"magnifying-glass-plus"} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${o} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"";return[l,c]}};x("instant-apps-interactive-legend-legend-element-caption",y);return y},c,e,g)
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{b as h,c as m}from"./LCXVXJGO.js";import"./7U5QGEBS.js";import"./ILBT2IMN.js";import"./MWLWUDV2.js";import"./ZBTKJGP6.js";import"./JI3WQ3NH.js";import"./NQGECILS.js";import"./QEZWWVQK.js";import"./JXFSX77O.js";import"./4AGGPAZO.js";import"./QLU4LAE3.js";import"./ZK277QXZ.js";import"./YGH2CDXF.js";import"./FC775XZF.js";import"./QPT7HOMV.js";import"./CV4VFUGX.js";import"./SYTRT7BE.js";import"./F2EDPF57.js";import"./K7AH3QMK.js";import"./PPMMNT6Y.js";import"./57AVHZJP.js";import"./SFSL67FT.js";import"./GBTWDVVA.js";import"./6NITDX2J.js";import{b as d}from"./HKBN35PY.js";import{a as c}from"./GORXM5HD.js";import"./TR6F377Q.js";import"./IKKQ5VDL.js";import{b as g}from"./4OXEF25E.js";import{C as o,D as p,E as b,h as n,i as s}from"./L6RA53F6.js";import"./PC26DPDG.js";var u=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),D=n`/** @license
3
+ v1.1.0-next.20250821.2 */
4
+ import{b as h,c as m}from"./6DEYLEFF.js";import"./EY66U5YX.js";import"./HJ6U4KMS.js";import"./S2MPCRRG.js";import"./M4TQQW4B.js";import"./LPI6A3CS.js";import"./BFFA7RG7.js";import"./A4RPIULL.js";import"./5WXG753H.js";import"./LA4AZXV7.js";import"./RUYIYE6Q.js";import"./U345EXTE.js";import"./VNVMRSTN.js";import"./WB7TGR6E.js";import"./II5VNJMW.js";import"./RGLR76RT.js";import"./5GZLTD5C.js";import"./7MRRUVFN.js";import"./SEOIIYXG.js";import"./2ONRGEDI.js";import"./SWWZRIFA.js";import"./NFU6BM43.js";import"./YWFK7XQ4.js";import"./ECXGB6JO.js";import{b as d}from"./RCYSJTLV.js";import{a as c}from"./DYGCUCS5.js";import"./XJ7MYRCO.js";import"./L4GQXK2K.js";import{b as g}from"./M5R4QFWT.js";import{C as o,D as p,E as b,h as n,i as s}from"./LHWT5M7Y.js";import"./LLXTU6JG.js";var u=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),D=n`/** @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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{a,b}from"./NWBIXJRU.js";import"./IA2ASRRN.js";import"./B5OAOB7Q.js";import"./QLDMK4LT.js";import"./PC26DPDG.js";export{a as DiscussionEditorTypes,b as DiscussionSchema};
3
+ v1.1.0-next.20250821.2 */
4
+ import{a,b}from"./NEE7XYRC.js";import"./T6L5KVDF.js";import"./VPUXRKMP.js";import"./B7U2SXWQ.js";import"./LLXTU6JG.js";export{a as DiscussionEditorTypes,b as DiscussionSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
3
+ v1.1.0-next.20250821.2 */
4
4
  function a(t){let e=t;return t.match(/(qaext|\.mapsqa)\.arcgis.com/)?e="https://qaext.arcgis.com":t.match(/(devext|\.mapsdevext)\.arcgis.com/)?e="https://devext.arcgis.com":t.match(/(www|\.maps)\.arcgis.com/)&&(e="https://www.arcgis.com"),e}export{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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{a as r}from"./OZDBD6AB.js";import"./I2CVPVQU.js";import{e as n}from"./7U5QGEBS.js";import"./ILBT2IMN.js";import"./MWLWUDV2.js";import"./ZBTKJGP6.js";import"./JI3WQ3NH.js";import"./NQGECILS.js";import"./QEZWWVQK.js";import"./JXFSX77O.js";import"./4AGGPAZO.js";import"./QLU4LAE3.js";import"./ZK277QXZ.js";import"./YGH2CDXF.js";import"./FC775XZF.js";import"./QPT7HOMV.js";import"./CV4VFUGX.js";import"./SYTRT7BE.js";import"./F2EDPF57.js";import"./K7AH3QMK.js";import"./PPMMNT6Y.js";import"./57AVHZJP.js";import{b as i}from"./LG6XZNP6.js";import{a as f}from"./GORXM5HD.js";import"./TR6F377Q.js";import"./IKKQ5VDL.js";import{b as _}from"./4OXEF25E.js";import{E as u,G as p,H as m,h,i as a,l as o}from"./L6RA53F6.js";import"./PC26DPDG.js";var b=h`/** @license
3
+ v1.1.0-next.20250821.2 */
4
+ import{a as r}from"./HBMWR4KR.js";import"./SFLTQAQV.js";import{e as n}from"./EY66U5YX.js";import"./HJ6U4KMS.js";import"./S2MPCRRG.js";import"./M4TQQW4B.js";import"./LPI6A3CS.js";import"./BFFA7RG7.js";import"./A4RPIULL.js";import"./5WXG753H.js";import"./LA4AZXV7.js";import"./RUYIYE6Q.js";import"./U345EXTE.js";import"./VNVMRSTN.js";import"./WB7TGR6E.js";import"./II5VNJMW.js";import"./RGLR76RT.js";import"./5GZLTD5C.js";import"./7MRRUVFN.js";import"./SEOIIYXG.js";import"./2ONRGEDI.js";import"./SWWZRIFA.js";import{b as i}from"./AG3ILNSJ.js";import{a as f}from"./DYGCUCS5.js";import"./XJ7MYRCO.js";import"./L4GQXK2K.js";import{b as _}from"./M5R4QFWT.js";import{E as u,G as p,H as m,h,i as a,l as o}from"./LHWT5M7Y.js";import"./LLXTU6JG.js";var b=h`/** @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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{a as p}from"./ZK277QXZ.js";import{a as n}from"./PPMMNT6Y.js";var l=1,f=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],u=e=>[{orgId:e}],O={item:f,event:u};function j(e){if(n(e,"schemaVersion")===l)return e;{let t=p(e);return t=d(t),t}}function d(e){if(n(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=n(e,"groups")||[],c=[];Array.isArray(s)&&s.length?c=s:typeof s=="string"&&(c=[s]),c.length&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>Object.assign(Object.assign({},o),{[r[0]]:Object.assign(Object.assign({},r[1]),{filters:[{predicates:[{group:c}]}]})}),{}));let i=n(e,"orgId");return i&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>{let a=r[0],g=r[1];return Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},g),{filters:[...g.filters,{operation:"AND",predicates:O[a](i)}]})})},{})),t}}export{j as a};
3
+ v1.1.0-next.20250821.2 */
4
+ import{a as p}from"./U345EXTE.js";import{a as n}from"./2ONRGEDI.js";var l=1,f=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],u=e=>[{orgId:e}],O={item:f,event:u};function j(e){if(n(e,"schemaVersion")===l)return e;{let t=p(e);return t=d(t),t}}function d(e){if(n(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=n(e,"groups")||[],c=[];Array.isArray(s)&&s.length?c=s:typeof s=="string"&&(c=[s]),c.length&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>Object.assign(Object.assign({},o),{[r[0]]:Object.assign(Object.assign({},r[1]),{filters:[{predicates:[{group:c}]}]})}),{}));let i=n(e,"orgId");return i&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>{let a=r[0],g=r[1];return Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},g),{filters:[...g.filters,{operation:"AND",predicates:O[a](i)}]})})},{})),t}}export{j 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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{a as e,c as t,e as a,g as s,k as o}from"./QLDMK4LT.js";var u=["hub:group:edit","hub:group:settings","hub:group:discussions","hub:group:create:followers","hub:group:create:association","hub:group:create:view","hub:group:create:edit","hub:group:create"],i={required:["name"],type:"object",properties:{name:e,summary:Object.assign(Object.assign({},t),{maxLength:250}),description:{type:"string"},_thumbnail:o,access:{type:"string",enum:["private","org","public"],default:"private"},isSharedUpdate:{type:"boolean",enum:[!1,!0],default:!1},leavingDisallowed:{type:"boolean",enum:[!1,!0],default:!1},isOpenData:{type:"boolean",enum:[!1,!0],default:!1},membershipAccess:{type:"string",enum:["organization","collaborators","anyone"],default:"organization"},isViewOnly:{type:"boolean",enum:[!1,!0],default:!1},_join:{type:"string",enum:["invite","request","auto"],default:"invite"},hiddenMembers:{type:"boolean",enum:[!1,!0],default:!1},isDiscussable:s,tags:a}};export{u as a,i as b};
3
+ v1.1.0-next.20250821.2 */
4
+ import{a as e,c as t,e as a,g as s,k as o}from"./B7U2SXWQ.js";var u=["hub:group:edit","hub:group:settings","hub:group:discussions","hub:group:create:followers","hub:group:create:association","hub:group:create:view","hub:group:create:edit","hub:group:create"],i={required:["name"],type:"object",properties:{name:e,summary:Object.assign(Object.assign({},t),{maxLength:250}),description:{type:"string"},_thumbnail:o,access:{type:"string",enum:["private","org","public"],default:"private"},isSharedUpdate:{type:"boolean",enum:[!1,!0],default:!1},leavingDisallowed:{type:"boolean",enum:[!1,!0],default:!1},isOpenData:{type:"boolean",enum:[!1,!0],default:!1},membershipAccess:{type:"string",enum:["organization","collaborators","anyone"],default:"organization"},isViewOnly:{type:"boolean",enum:[!1,!0],default:!1},_join:{type:"string",enum:["invite","request","auto"],default:"invite"},hiddenMembers:{type:"boolean",enum:[!1,!0],default:!1},isDiscussable:s,tags:a}};export{u as a,i 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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
4
- import{a as e}from"./PPMMNT6Y.js";function i(r,n,o){let t=e(r,n);return t!==void 0?t:o}export{i as a};
3
+ v1.1.0-next.20250821.2 */
4
+ import{a as e}from"./2ONRGEDI.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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250821 */
3
+ v1.1.0-next.20250821.2 */
4
4
  var v={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},be=Object.defineProperty,Ne=(e,t)=>{for(var s in t)be(e,s,{get:t[s],enumerable:!0})},we=new WeakMap,xe=e=>we.get(e),I=(e,t)=>t in e,z=(e,t)=>(0,console.error)(e,t),X="http://www.w3.org/1999/xlink",re=typeof window<"u"?window:{},A=re.document||{head:{}},N={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},Te=e=>Promise.resolve(e),P=!1,G=[],$e=[],Re=(e,t)=>s=>{e.push(s),P||(P=!0,t&&N.$flags$&4?Se(U):N.raf(U))},J=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){z(s)}e.length=0},U=()=>{J(G),J($e),(P=G.length>0)&&N.raf(U)},Se=e=>Te().then(e),ke=Re($e,!0),V={},Ee="http://www.w3.org/2000/svg",Ce="http://www.w3.org/1999/xhtml",Ae=e=>e!=null,ae=e=>(e=typeof e,e==="object"||e==="function"),Le={};Ne(Le,{err:()=>ie,map:()=>Oe,ok:()=>W,unwrap:()=>De,unwrapErr:()=>Me});var W=e=>({isOk:!0,isErr:!1,value:e}),ie=e=>({isOk:!1,isErr:!0,value:e});function Oe(e,t){if(e.isOk){let s=t(e.value);return s instanceof Promise?s.then(n=>W(n)):W(s)}if(e.isErr){let s=e.value;return ie(s)}throw"should never get here"}var De=e=>{if(e.isOk)return e.value;throw e.value},Me=e=>{if(e.isErr)return e.value;throw e.value},L=(e,t="")=>()=>{},Fe=(e,t,...s)=>{let n=null,o=null,l=null,a=!1,i=!1,c=[],p=d=>{for(let $=0;$<d.length;$++)n=d[$],Array.isArray(n)?p(n):n!=null&&typeof n!="boolean"&&((a=!ae(n))&&(n=String(n)),a&&i?c[c.length-1].$text$+=n:c.push(a?B(null,n):n),i=a)};p(s);let u=B(e,null);return u.$attrs$=t,c.length>0&&(u.$children$=c),u.$key$=o,u.$name$=l,u},B=(e,t)=>{let s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},je={},Pe=e=>e&&e.$tag$===je,Y=(e,t,s,n,o,l)=>{if(s!==n){let a=I(e,t),i=t.toLowerCase();if(t==="class"){let c=e.classList,p=Z(s),u=Z(n);c.remove(...p.filter(d=>d&&!u.includes(d))),c.add(...u.filter(d=>d&&!p.includes(d)))}else if(t==="style"){for(let c in s)(!n||n[c]==null)&&(c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(let c in n)(!s||n[c]!==s[c])&&(c.includes("-")?e.style.setProperty(c,n[c]):e.style[c]=n[c])}else if(t!=="key")if(t==="ref")n&&n(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):I(re,i)?t=i.slice(2):t=i[2]+t.slice(3),s||n){let c=t.endsWith(ce);t=t.replace(We,""),s&&N.rel(e,t,s,c),n&&N.ael(e,t,n,c)}}else{let c=ae(n);if((a||c&&n!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=n;else{let u=n??"";t==="list"?a=!1:(s==null||e[t]!=u)&&(e[t]=u)}}catch{}let p=!1;i!==(i=i.replace(/^xlink\:?/,""))&&(t=i,p=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(p?e.removeAttributeNS(X,t):e.removeAttribute(t)):(!a||l&4||o)&&!c&&(n=n===!0?"":n,p?e.setAttributeNS(X,t,n):e.setAttribute(t,n))}}},Ue=/\s/,Z=e=>e?e.split(Ue):[],ce="Capture",We=new RegExp(ce+"$"),de=(e,t,s)=>{let n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||V,l=t.$attrs$||V;for(let a of ee(Object.keys(o)))a in l||Y(n,a,o[a],void 0,s,t.$flags$);for(let a of ee(Object.keys(l)))Y(n,a,o[a],l[a],s,t.$flags$)};function ee(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var T,H,k,O=!1,D=!1,q=!1,g=!1,M=(e,t,s,n)=>{var o;let l=t.$children$[s],a=0,i,c,p;if(O||(q=!0,l.$tag$==="slot"&&(T&&n.classList.add(T+"-s"),l.$flags$|=l.$children$?2:1)),l.$text$!==null)i=l.$elm$=A.createTextNode(l.$text$);else if(l.$flags$&1)i=l.$elm$=A.createTextNode("");else{if(g||(g=l.$tag$==="svg"),i=l.$elm$=A.createElementNS(g?Ee:Ce,!O&&v.slotRelocation&&l.$flags$&2?"slot-fb":l.$tag$),g&&l.$tag$==="foreignObject"&&(g=!1),de(null,l,g),i.getRootNode().querySelector("body")&&v.scoped&&Ae(T)&&i["s-si"]!==T&&i.classList.add(i["s-si"]=T),Q(i,n),l.$children$)for(a=0;a<l.$children$.length;++a)c=M(e,l,a,i),c&&i.appendChild(c);l.$tag$==="svg"?g=!1:i.tagName==="foreignObject"&&(g=!0)}return i["s-hn"]=k,l.$flags$&3&&(i["s-sr"]=!0,i["s-cr"]=H,i["s-sn"]=l.$name$||"",i["s-rf"]=(o=l.$attrs$)==null?void 0:o.ref,p=e&&e.$children$&&e.$children$[s],p&&p.$tag$===l.$tag$&&e.$elm$&&E(e.$elm$,!1)),i},E=(e,t)=>{N.$flags$|=1;let s=Array.from(e.childNodes);e["s-sr"]&&v.experimentalSlotFixes;for(let n=s.length-1;n>=0;n--){let o=s[n];o["s-hn"]!==k&&o["s-ol"]&&(w(pe(o),o,K(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,q=!0),t&&E(o,t)}N.$flags$&=-2},fe=(e,t,s,n,o,l)=>{let a=e["s-cr"]&&e["s-cr"].parentNode||e,i;for(a.shadowRoot&&a.tagName===k&&(a=a.shadowRoot);o<=l;++o)n[o]&&(i=M(null,s,o,e),i&&(n[o].$elm$=i,w(a,i,K(t))))},ue=(e,t,s)=>{for(let n=t;n<=s;++n){let o=e[n];if(o){let l=o.$elm$;ge(o),l&&(D=!0,l["s-ol"]?l["s-ol"].remove():E(l,!0),l.remove())}}},Be=(e,t,s,n,o=!1)=>{let l=0,a=0,i=0,c=0,p=t.length-1,u=t[0],d=t[p],$=n.length-1,r=n[0],f=n[$],h,y;for(;l<=p&&a<=$;)if(u==null)u=t[++l];else if(d==null)d=t[--p];else if(r==null)r=n[++a];else if(f==null)f=n[--$];else if(C(u,r,o))R(u,r,o),u=t[++l],r=n[++a];else if(C(d,f,o))R(d,f,o),d=t[--p],f=n[--$];else if(C(u,f,o))(u.$tag$==="slot"||f.$tag$==="slot")&&E(u.$elm$.parentNode,!1),R(u,f,o),w(e,u.$elm$,d.$elm$.nextSibling),u=t[++l],f=n[--$];else if(C(d,r,o))(u.$tag$==="slot"||f.$tag$==="slot")&&E(d.$elm$.parentNode,!1),R(d,r,o),w(e,d.$elm$,u.$elm$),d=t[--p],r=n[++a];else{for(i=-1,c=l;c<=p;++c)if(t[c]&&t[c].$key$!==null&&t[c].$key$===r.$key$){i=c;break}i>=0?(y=t[i],y.$tag$!==r.$tag$?h=M(t&&t[a],s,i,e):(R(y,r,o),t[i]=void 0,h=y.$elm$),r=n[++a]):(h=M(t&&t[a],s,a,e),r=n[++a]),h&&w(pe(u.$elm$),h,K(u.$elm$))}l>p?fe(e,n[$+1]==null?null:n[$+1].$elm$,s,n,a,$):a>$&&ue(t,l,p)},C=(e,t,s=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?"$nodeId$"in e&&s&&e.$elm$.nodeType!==8?!1:e.$name$===t.$name$:s?!0:e.$key$===t.$key$:!1,K=e=>e&&e["s-ol"]||e,pe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,R=(e,t,s=!1)=>{let n=t.$elm$=e.$elm$,o=e.$children$,l=t.$children$,a=t.$tag$,i=t.$text$,c;i===null?(g=a==="svg"?!0:a==="foreignObject"?!1:g,a==="slot"&&!O||de(e,t,g),o!==null&&l!==null?Be(n,o,t,l,s):l!==null?(e.$text$!==null&&(n.textContent=""),fe(n,null,t,l,0,l.length-1)):!s&&v.updatable&&o!==null&&ue(o,0,o.length-1),g&&a==="svg"&&(g=!1)):(c=n["s-cr"])?c.parentNode.textContent=i:e.$text$!==i&&(n.data=i)},he=e=>{let t=e.childNodes;for(let s of t)if(s.nodeType===1){if(s["s-sr"]){let n=s["s-sn"];s.hidden=!1;for(let o of t)if(o!==s){if(o["s-hn"]!==s["s-hn"]||n!==""){if(o.nodeType===1&&(n===o.getAttribute("slot")||n===o["s-sn"])||o.nodeType===3&&n===o["s-sn"]){s.hidden=!0;break}}else if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){s.hidden=!0;break}}}he(s)}},b=[],me=e=>{let t,s,n;for(let o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.childNodes;let l=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(te(t,l)){let a=b.find(i=>i.$nodeToRelocate$===t);D=!0,t["s-sn"]=t["s-sn"]||l,a?(a.$nodeToRelocate$["s-sh"]=o["s-hn"],a.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],b.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&b.map(i=>{te(i.$nodeToRelocate$,t["s-sn"])&&(a=b.find(c=>c.$nodeToRelocate$===t),a&&!i.$slotRefNode$&&(i.$slotRefNode$=a.$slotRefNode$))})}else b.some(a=>a.$nodeToRelocate$===t)||b.push({$nodeToRelocate$:t})}o.nodeType===1&&me(o)}},te=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",ge=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ge)},w=(e,t,s)=>{let n=e?.insertBefore(t,s);return Q(t,e),n},ye=e=>{let t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...ye(e.parentElement)),t},Q=(e,t,s=!1)=>{var n;if(e&&t&&e.nodeType===1){let o=new Set(ye(t).filter(Boolean));if(o.size&&((n=e.classList)==null||n.add(...e["s-scs"]=[...o]),e["s-ol"]||s))for(let l of Array.from(e.childNodes))Q(l,e,!0)}},He=(e,t,s=!1)=>{var n,o,l,a,i;let c=e.$hostElement$,p=e.$cmpMeta$,u=e.$vnode$||B(null,null),d=Pe(t)?t:Fe(null,null,t);if(k=c.tagName,p.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},p.$attrsToReflect$.map(([$,r])=>d.$attrs$[r]=c[$])),s&&d.$attrs$)for(let $ of Object.keys(d.$attrs$))c.hasAttribute($)&&!["key","ref","style","class"].includes($)&&(d.$attrs$[$]=c[$]);d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=u.$elm$=c.shadowRoot||c,T=c["s-sc"],O=(p.$flags$&1)!==0,H=c["s-cr"],D=!1,R(u,d,s);{if(N.$flags$|=1,q){me(d.$elm$);for(let $ of b){let r=$.$nodeToRelocate$;if(!r["s-ol"]){let f=A.createTextNode("");f["s-nr"]=r,w(r.parentNode,r["s-ol"]=f,r)}}for(let $ of b){let r=$.$nodeToRelocate$,f=$.$slotRefNode$;if(f){let h=f.parentNode,y=f.nextSibling;{let x=(n=r["s-ol"])==null?void 0:n.previousSibling;for(;x;){let m=(o=x["s-nr"])!=null?o:null;if(m&&m["s-sn"]===r["s-sn"]&&h===m.parentNode){for(m=m.nextSibling;m===r||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}x=x.previousSibling}}(!y&&h!==r.parentNode||r.nextSibling!==y)&&r!==y&&(!r["s-hn"]&&r["s-ol"]&&(r["s-hn"]=r["s-ol"].parentNode.nodeName),w(h,r,y),r.nodeType===1&&(r.hidden=(l=r["s-ih"])!=null?l:!1)),r&&typeof f["s-rf"]=="function"&&f["s-rf"](r)}else r.nodeType===1&&(s&&(r["s-ih"]=(a=r.hidden)!=null?a:!1),r.hidden=!0)}}D&&he(d.$elm$),N.$flags$&=-2,b.length=0}if(v.experimentalScopedSlotChanges&&p.$flags$&2)for(let $ of d.$elm$.childNodes)$["s-hn"]!==k&&!$["s-sh"]&&(s&&$["s-ih"]==null&&($["s-ih"]=(i=$.hidden)!=null?i:!1),$.hidden=!0);H=void 0},_e=(e,t)=>{},ze=(e,t)=>(e.$flags$|=16,_e(e,e.$ancestorComponent$),ke(()=>qe(e,t))),qe=(e,t)=>{let s=e.$hostElement$,n=L("scheduleUpdate",e.$cmpMeta$.$tagName$),o=s;if(!o)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=S(o,"componentWillUpdate"),l=ne(l,()=>S(o,"componentWillRender")),n(),ne(l,()=>Qe(e,o,t))},ne=(e,t)=>Ke(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),Ke=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=async(e,t,s)=>{let n=e.$hostElement$,o=L("update",e.$cmpMeta$.$tagName$);n["s-rc"];let l=L("render",e.$cmpMeta$.$tagName$);Ie(e,t,n,s),l(),o(),Xe(e)},_=null,Ie=(e,t,s,n)=>{try{_=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(v.hasRenderFn||v.reflect)&&(v.vdomRender||v.reflect)&&(v.hydrateServerSide||He(e,t,n))}catch(o){z(o,e.$hostElement$)}return _=null,null},se=()=>_,Xe=e=>{let t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,n=L("postUpdate",t),o=s;e.$ancestorComponent$,S(o,"componentDidRender"),e.$flags$&64?(S(o,"componentDidUpdate"),n()):(e.$flags$|=64,S(o,"componentDidLoad"),n())},oe=e=>{{let t=xe(e),s=t.$hostElement$.isConnected;return s&&(t.$flags$&18)===2&&ze(t,!1),s}},S=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(n){z(n)}},Ge=(e,t,s)=>{let n=e.get(t);n?n.includes(s)||n.push(s):e.set(t,[s])},Je=(e,t)=>{let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>{s=0,e(...n)},t)}},Ve=e=>!("isConnected"in e)||e.isConnected,le=Je(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(Ve))},2e3),Ye=()=>{if(typeof se!="function")return{};let e=new Map;return{dispose:()=>e.clear(),get:t=>{let s=se();s&&Ge(e,t,s)},set:t=>{let s=e.get(t);s&&e.set(t,s.filter(oe)),le(e)},reset:()=>{e.forEach(t=>t.forEach(oe)),le(e)}}},F=e=>typeof e=="function"?e():e,Ze=(e,t=(s,n)=>s!==n)=>{let s=F(e),n=new Map(Object.entries(s??{})),o={dispose:[],get:[],set:[],reset:[]},l=new Map,a=()=>{n=new Map(Object.entries(F(e)??{})),o.reset.forEach($=>$())},i=()=>{o.dispose.forEach($=>$()),a()},c=$=>(o.get.forEach(r=>r($)),n.get($)),p=($,r)=>{let f=n.get($);t(r,f,$)&&(n.set($,r),o.set.forEach(h=>h($,r,f)))},u=typeof Proxy>"u"?{}:new Proxy(s,{get($,r){return c(r)},ownKeys($){return Array.from(n.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has($,r){return n.has(r)},set($,r,f){return p(r,f),!0}}),d=($,r)=>(o[$].push(r),()=>{j(o[$],r)});return{state:u,get:c,set:p,on:d,onChange:($,r)=>{let f=(m,ve)=>{m===$&&r(ve)},h=()=>r(F(e)[$]),y=d("set",f),x=d("reset",h);return l.set(r,{setHandler:f,resetHandler:h,propName:$}),()=>{y(),x(),l.delete(r)}},use:(...$)=>{let r=$.reduce((f,h)=>(h.set&&f.push(d("set",h.set)),h.get&&f.push(d("get",h.get)),h.reset&&f.push(d("reset",h.reset)),h.dispose&&f.push(d("dispose",h.dispose)),f),[]);return()=>r.forEach(f=>f())},dispose:i,reset:a,forceUpdate:$=>{let r=n.get($);o.set.forEach(f=>f($,r,r))},removeListener:($,r)=>{let f=l.get(r);f&&f.propName===$&&(j(o.set,f.setHandler),j(o.reset,f.resetHandler),l.delete(r))}}},j=(e,t)=>{let s=e.indexOf(t);s>=0&&(e[s]=e[e.length-1],e.length--)},et=(e,t)=>{let s=Ze(e,t);return s.use(Ye()),s};export{et as a};