@esri/solutions-components 1.1.3 → 1.1.5

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 (514) hide show
  1. package/dist/cdn/{ELMBIWAD.js → 2C2YUOLH.js} +2 -2
  2. package/dist/cdn/{EEX52KRD.js → 2DCQYFBB.js} +2 -2
  3. package/dist/cdn/{TBUFAKRA.js → 2E4RD2X7.js} +2 -2
  4. package/dist/cdn/{RVZ5523E.js → 2ME5AFG6.js} +2 -2
  5. package/dist/cdn/{T6JEYXIT.js → 2PQDAK2K.js} +2 -2
  6. package/dist/cdn/{IJFAV2SW.js → 2PQFYQTM.js} +2 -2
  7. package/dist/cdn/{Z2HAYBD7.js → 35YMNKN7.js} +2 -2
  8. package/dist/cdn/{7RBYRXWN.js → 3BL7G7XQ.js} +2 -2
  9. package/dist/cdn/{3YP4K4OV.js → 3G2FSEP4.js} +2 -2
  10. package/dist/cdn/{2H3MHHNZ.js → 3GWQY4PS.js} +2 -2
  11. package/dist/cdn/{SDKKYG3T.js → 3I5HOJHY.js} +2 -2
  12. package/dist/cdn/{2FRLUANT.js → 3JE66ZGM.js} +2 -2
  13. package/dist/cdn/{6MYJZ4IH.js → 3JJFCPWE.js} +1 -1
  14. package/dist/cdn/{RRH6EQN7.js → 3LB6QRGI.js} +2 -2
  15. package/dist/cdn/{VDXBCG7S.js → 3N66IKUB.js} +2 -2
  16. package/dist/cdn/{KTB7RFWA.js → 3NJFBYP7.js} +2 -2
  17. package/dist/cdn/{HL7R6LGA.js → 3TVSXXWC.js} +2 -2
  18. package/dist/cdn/3VMHZC76.js +18 -0
  19. package/dist/cdn/{PR35P6F3.js → 3YQ5GA52.js} +3 -3
  20. package/dist/cdn/{LCEJEX63.js → 3ZA6SUHX.js} +2 -2
  21. package/dist/cdn/{WTCI433A.js → 42CDJOAG.js} +2 -2
  22. package/dist/cdn/{YTWTPLD5.js → 462W4TZ3.js} +1 -1
  23. package/dist/cdn/{O47Z7HFS.js → 4A2PDSET.js} +2 -2
  24. package/dist/cdn/{2ER6MOQG.js → 4BY7RVQ6.js} +2 -2
  25. package/dist/cdn/{D536U4EF.js → 4EUZGKKC.js} +2 -2
  26. package/dist/cdn/{NC734HGF.js → 4IRYB6TU.js} +2 -2
  27. package/dist/cdn/{TGCN4ZAH.js → 4LZ24JLH.js} +2 -2
  28. package/dist/cdn/{6PWGQ66L.js → 4M355TO2.js} +2 -2
  29. package/dist/cdn/{E27XXCF6.js → 4MGR2VZY.js} +2 -2
  30. package/dist/cdn/{7XJYGNID.js → 4NN4SBF3.js} +2 -2
  31. package/dist/cdn/{QAFIXELE.js → 4PPPEP2D.js} +2 -2
  32. package/dist/cdn/{D3UD7DVJ.js → 4UKLSZZH.js} +2 -2
  33. package/dist/cdn/4V4FGNHO.js +18 -0
  34. package/dist/cdn/{NTJX2CYR.js → 4ZHZK26G.js} +2 -2
  35. package/dist/cdn/{LHTSCULF.js → 53LXS2J5.js} +2 -2
  36. package/dist/cdn/{ZI64OXHY.js → 55UJGQ5T.js} +2 -2
  37. package/dist/cdn/{RYDP2HDZ.js → 56PAV2GW.js} +1 -1
  38. package/dist/cdn/{3ODSPQ4S.js → 5FZ4QAHO.js} +2 -2
  39. package/dist/cdn/{K6745DII.js → 5GVYMAX2.js} +2 -2
  40. package/dist/cdn/{QVWFQQ7G.js → 5HUVZF4J.js} +2 -2
  41. package/dist/cdn/{DTIAJXKU.js → 5X3NIR3F.js} +2 -2
  42. package/dist/cdn/{GWKZYWIC.js → 5Y4P32WK.js} +2 -2
  43. package/dist/cdn/{DYDT3L5U.js → 5ZPFAL43.js} +2 -2
  44. package/dist/cdn/{ALLFY4PP.js → 65KCCSCM.js} +2 -2
  45. package/dist/cdn/{4KFHBJLQ.js → 66BALOE7.js} +2 -2
  46. package/dist/cdn/{TA4P4U24.js → 6D2FDEC7.js} +2 -2
  47. package/dist/cdn/{VRNDBTDK.js → 6HINBBYY.js} +2 -2
  48. package/dist/cdn/{2ODJXVXK.js → 6JE42A26.js} +2 -2
  49. package/dist/cdn/{PPPHSH43.js → 6JKRMJTG.js} +1 -1
  50. package/dist/cdn/{REXGHNNN.js → 6LL65GG4.js} +2 -2
  51. package/dist/cdn/{HBKMPUP2.js → 6QLD4RZA.js} +1 -1
  52. package/dist/cdn/{73LPW6HI.js → 6SR62O3L.js} +2 -2
  53. package/dist/cdn/{WDMP52JQ.js → 6Y36Z3VD.js} +2 -2
  54. package/dist/cdn/6ZX57Y2E.js +4 -0
  55. package/dist/cdn/{5BA4B7KE.js → 7CCWACTT.js} +2 -2
  56. package/dist/cdn/{V2N77ZSU.js → 7ITJCGWV.js} +2 -2
  57. package/dist/cdn/{H7QIJQ37.js → 7LNZ6SY4.js} +2 -2
  58. package/dist/cdn/{H6KLL3NL.js → 7OJFHNND.js} +2 -2
  59. package/dist/cdn/{7NKFLJ7I.js → 7OK6AMVL.js} +2 -2
  60. package/dist/cdn/{RGVIDYQ6.js → A3Q7GREJ.js} +2 -2
  61. package/dist/cdn/{S5SB6QCX.js → A6LMQW4G.js} +2 -2
  62. package/dist/cdn/{V7ZZBRP2.js → AA5T27UA.js} +2 -2
  63. package/dist/cdn/{P2ACW7TM.js → AD53R4UT.js} +2 -2
  64. package/dist/cdn/{BE3Z4DUC.js → ADYEQUS5.js} +2 -2
  65. package/dist/cdn/AGCS637B.js +4 -0
  66. package/dist/cdn/{JZHCML6E.js → AITESDOH.js} +2 -2
  67. package/dist/cdn/{NE4DI6BW.js → AKNB5K45.js} +2 -2
  68. package/dist/cdn/{QRNGGKQC.js → ALPIMORP.js} +2 -2
  69. package/dist/cdn/{OHWEETJ4.js → AM6R2I4D.js} +3 -3
  70. package/dist/cdn/{P3PMEIEN.js → ARYNEQL7.js} +3 -3
  71. package/dist/cdn/{UPG7TEIP.js → AVFSW3TW.js} +2 -2
  72. package/dist/cdn/{CBOVDRFV.js → AXBSU3HJ.js} +2 -2
  73. package/dist/cdn/{PMDGKY44.js → B5UH25LU.js} +2 -2
  74. package/dist/cdn/{GK6NVFHZ.js → BB5ZN34L.js} +2 -2
  75. package/dist/cdn/{ZBFH2EFC.js → BDWA4NT7.js} +2 -2
  76. package/dist/cdn/{DB5QJHQQ.js → BFN553OS.js} +2 -2
  77. package/dist/cdn/{BK7UXXQ2.js → BHH5NNUU.js} +2 -2
  78. package/dist/cdn/{CCFY7P7U.js → BIT53VHC.js} +2 -2
  79. package/dist/cdn/{Y7XUD5FA.js → BLVMQ2ZJ.js} +3 -3
  80. package/dist/cdn/{4AAGIK4R.js → BMSVXQYR.js} +2 -2
  81. package/dist/cdn/{MCENYFMW.js → BTASWR67.js} +2 -2
  82. package/dist/cdn/{P57OTIDF.js → BUTBZOLQ.js} +2 -2
  83. package/dist/cdn/{KW5I4HR7.js → BXDXSN7S.js} +2 -2
  84. package/dist/cdn/BZZ2NKN7.js +4 -0
  85. package/dist/cdn/{Z5BGFLSU.js → C2L75ML6.js} +2 -2
  86. package/dist/cdn/{BNJHXW3M.js → CHMBU7ZZ.js} +2 -2
  87. package/dist/cdn/{ZD644HR2.js → CJXMS7YJ.js} +2 -2
  88. package/dist/cdn/{NQTQLODN.js → CPS5G7LV.js} +2 -2
  89. package/dist/cdn/{VYN7AW7M.js → CR5PKZ4W.js} +2 -2
  90. package/dist/cdn/{O54ZAB7T.js → CYTWYR7X.js} +2 -2
  91. package/dist/cdn/{DHK3XFOV.js → CZTW3CID.js} +2 -2
  92. package/dist/cdn/{BTLX7UFR.js → D6GRAJKG.js} +2 -2
  93. package/dist/cdn/{CVZQJMJQ.js → DASAW3AM.js} +2 -2
  94. package/dist/cdn/{JZ4VLHBS.js → DCTIOG7M.js} +1 -1
  95. package/dist/cdn/{AKJNSKCJ.js → DEYWKS7E.js} +2 -2
  96. package/dist/cdn/{H3A7OORI.js → DFDISZAD.js} +2 -2
  97. package/dist/cdn/{JZSRVZRU.js → DFQJCG5D.js} +2 -2
  98. package/dist/cdn/{DCZMQCXU.js → DGWMURIB.js} +2 -2
  99. package/dist/cdn/{GL7RXZ2L.js → DH47CO66.js} +1 -1
  100. package/dist/cdn/{ZEUQ2XUT.js → DHGCOXVG.js} +1 -1
  101. package/dist/cdn/{67EVCSMZ.js → DKMGPEMO.js} +2 -2
  102. package/dist/cdn/{HVOJV3PP.js → DOEOHOU6.js} +2 -2
  103. package/dist/cdn/{MERHP72Z.js → DS4CIOKP.js} +2 -2
  104. package/dist/cdn/{WSO7FXI5.js → DV3MAPII.js} +2 -2
  105. package/dist/cdn/{UBFTTJI2.js → DZWMPNPF.js} +2 -2
  106. package/dist/cdn/{CBKQTORK.js → E6WEKFDH.js} +2 -2
  107. package/dist/cdn/{4YPEHTUX.js → EDAOFXZZ.js} +1 -1
  108. package/dist/cdn/{4GVE6BFQ.js → EHBEDCBN.js} +2 -2
  109. package/dist/cdn/{AQVHN6AM.js → EJUJDS6X.js} +3 -3
  110. package/dist/cdn/{R3FQCNWE.js → EMAMN44B.js} +2 -2
  111. package/dist/cdn/{Q7GL2ZYT.js → EQKFP6G5.js} +3 -3
  112. package/dist/cdn/{NLXYJK4H.js → EVXTOWTJ.js} +1 -1
  113. package/dist/cdn/{PNBXXGLM.js → EWC7XR6K.js} +2 -2
  114. package/dist/cdn/{YQVWOTXV.js → EY44JFRF.js} +2 -2
  115. package/dist/cdn/{MJ3P67SN.js → EY4JC25Z.js} +2 -2
  116. package/dist/cdn/{EEKD7XQD.js → EYJTKSHW.js} +3 -3
  117. package/dist/cdn/{JL76YJRI.js → EZEI2XVT.js} +3 -3
  118. package/dist/cdn/{SVDLZBDS.js → F2OBR3YZ.js} +2 -2
  119. package/dist/cdn/F5S2PMDU.js +18 -0
  120. package/dist/cdn/{WYQUK6VR.js → FBC2PSH6.js} +2 -2
  121. package/dist/cdn/{MYUZRNSY.js → FBSR6LVS.js} +2 -2
  122. package/dist/cdn/{DJODCYWX.js → FEMMFUE7.js} +2 -2
  123. package/dist/cdn/{UTEGX7N5.js → FHSAJCRI.js} +1 -1
  124. package/dist/cdn/FKQWGBQ6.js +18 -0
  125. package/dist/cdn/{C72CDHNN.js → FOXWWTGP.js} +2 -2
  126. package/dist/cdn/{RH3BLC4Q.js → FUYDFHFY.js} +2 -2
  127. package/dist/cdn/{6ZZTUHA6.js → FXATR6VT.js} +1 -1
  128. package/dist/cdn/{OL25UL3O.js → FXID4LBF.js} +2 -2
  129. package/dist/cdn/{LENHDPW5.js → FYOSNG4O.js} +2 -2
  130. package/dist/cdn/{6WORDZKG.js → FZWZ4COT.js} +2 -2
  131. package/dist/cdn/G2SO3VA3.js +18 -0
  132. package/dist/cdn/{7VXHACMD.js → G5YDAD5J.js} +2 -2
  133. package/dist/cdn/{FVSZ6VOF.js → GCUKUGYL.js} +2 -2
  134. package/dist/cdn/{J5LVD6QC.js → GIYQCD77.js} +2 -2
  135. package/dist/cdn/{MZ5VTNHY.js → GR5W2JRK.js} +1 -1
  136. package/dist/cdn/{SG6ZK6MW.js → GY3Q55UV.js} +2 -2
  137. package/dist/cdn/{ZYIWU5R3.js → GYTTH3QM.js} +3 -3
  138. package/dist/cdn/{DF6KWCSV.js → H3RQQVHV.js} +2 -2
  139. package/dist/cdn/{ZGCNRT7I.js → H4R6RBSR.js} +2 -2
  140. package/dist/cdn/{3KAMA7IW.js → HAXFVOBD.js} +2 -2
  141. package/dist/cdn/{IIGTVH52.js → HFGXGOML.js} +2 -2
  142. package/dist/cdn/{6TD6ORJT.js → HFTLCY67.js} +1 -1
  143. package/dist/cdn/{O63FAHCT.js → HJ4CBAOI.js} +1 -1
  144. package/dist/cdn/{ICTMP3P3.js → HJAQTCS6.js} +1 -1
  145. package/dist/cdn/{5FQPSA2W.js → HNYRXGO4.js} +2 -2
  146. package/dist/cdn/{VKZHDM2Y.js → HPTION7V.js} +2 -2
  147. package/dist/cdn/{QJKMWAAC.js → HS3HXJAE.js} +2 -2
  148. package/dist/cdn/{FSQWEULB.js → HXGSRCIU.js} +2 -2
  149. package/dist/cdn/{AMFRPTVX.js → IAABYYHR.js} +3 -3
  150. package/dist/cdn/{UM3APEK5.js → IHONVMMQ.js} +2 -2
  151. package/dist/cdn/{H43YAQQN.js → IN4GUM3K.js} +1 -1
  152. package/dist/cdn/{VX5VG62X.js → INGJSHOC.js} +2 -2
  153. package/dist/cdn/{ZTMFKT2Q.js → INVWKXP4.js} +2 -2
  154. package/dist/cdn/{4JQQITKV.js → IPRVH4RI.js} +2 -2
  155. package/dist/cdn/IQO52XQI.js +4 -0
  156. package/dist/cdn/{2CJMFJBA.js → IT2BGFCD.js} +2 -2
  157. package/dist/cdn/{XNQ5QT6U.js → IWN5SZ6F.js} +3 -3
  158. package/dist/cdn/{HIVWWPPK.js → IWYNMFCO.js} +2 -2
  159. package/dist/cdn/{6LTQY6WH.js → IYNSYD6A.js} +2 -2
  160. package/dist/cdn/{MONKCYHH.js → J3GYQQE6.js} +2 -2
  161. package/dist/cdn/{4MTTBD2G.js → J3PGCQNO.js} +2 -2
  162. package/dist/cdn/{MQKM4EHF.js → J4CEND6E.js} +2 -2
  163. package/dist/cdn/{A2V4GLJF.js → JE4Y5P6H.js} +2 -2
  164. package/dist/cdn/JFV4L2BS.js +18 -0
  165. package/dist/cdn/{FRRUWG5E.js → JKT3GWJQ.js} +2 -2
  166. package/dist/cdn/JM7G4MEF.js +4 -0
  167. package/dist/cdn/{ZN24RTJW.js → JMHCQCEV.js} +1 -1
  168. package/dist/cdn/{JHSRUJD4.js → JO7JZRYA.js} +2 -2
  169. package/dist/cdn/{LXICUEGW.js → JQLSAJAY.js} +2 -2
  170. package/dist/cdn/{6DRUDUXD.js → JUHUWE6N.js} +2 -2
  171. package/dist/cdn/{URVV4JO7.js → K54VMEGQ.js} +2 -2
  172. package/dist/cdn/{Z3HE34UY.js → KKJYUEQV.js} +2 -2
  173. package/dist/cdn/{CTFHZAMW.js → KZLP7P6V.js} +2 -2
  174. package/dist/cdn/{FF7OJF4K.js → L6QRRVEI.js} +2 -2
  175. package/dist/cdn/{MIMKIEMB.js → L6S6YTH3.js} +2 -2
  176. package/dist/cdn/{ZJ6CHGOT.js → L7HOMDZU.js} +2 -2
  177. package/dist/cdn/{KBLPMITD.js → LAOJHBJU.js} +2 -2
  178. package/dist/cdn/LBI35WMC.js +18 -0
  179. package/dist/cdn/{6GAJQWJK.js → LCFNGDXM.js} +2 -2
  180. package/dist/cdn/LDGJRLE3.js +18 -0
  181. package/dist/cdn/{6OGJVPTT.js → LJXUWLDL.js} +2 -2
  182. package/dist/cdn/{HXWRLU4Z.js → LOSISHU3.js} +2 -2
  183. package/dist/cdn/LSSYIGV3.js +18 -0
  184. package/dist/cdn/{DBIIMNFE.js → LYD27ORL.js} +2 -2
  185. package/dist/cdn/{NWPHO7QU.js → M2CS4EMN.js} +2 -2
  186. package/dist/cdn/{U3I7HVKD.js → M4ISN42P.js} +2 -2
  187. package/dist/cdn/{WVCJRRZI.js → M4NZ7ACL.js} +2 -2
  188. package/dist/cdn/{OQBVEYHJ.js → MBGFUZAJ.js} +2 -2
  189. package/dist/cdn/{NFBFHGJM.js → MBQWZGFR.js} +1 -1
  190. package/dist/cdn/{WOKAPPDI.js → MCF6S7SI.js} +2 -2
  191. package/dist/cdn/{4BVRGUY2.js → MD4GFP2I.js} +2 -2
  192. package/dist/cdn/{OSLENSGJ.js → MDXIELV5.js} +3 -3
  193. package/dist/cdn/{55MHANOS.js → MIAM4WSN.js} +2 -2
  194. package/dist/cdn/{NZXLPD46.js → MLPHTVAZ.js} +2 -2
  195. package/dist/cdn/{DGRK3TQM.js → MM6ALYAZ.js} +2 -2
  196. package/dist/cdn/{XBYYQKMP.js → MME3KBVR.js} +2 -2
  197. package/dist/cdn/{IEAOBFZY.js → MNEYQVPV.js} +2 -2
  198. package/dist/cdn/{K7LJKKJU.js → MQ4D3TAQ.js} +2 -2
  199. package/dist/cdn/{D5KX77I4.js → MQD27EL6.js} +1 -1
  200. package/dist/cdn/{U7XWDKUG.js → MV45U2M4.js} +2 -2
  201. package/dist/cdn/{KDDYXVIK.js → MWJGZ3GM.js} +1 -1
  202. package/dist/cdn/{UB33CAPW.js → MWWNUJMG.js} +2 -2
  203. package/dist/cdn/{3Y6LJKSE.js → MYAFAQEX.js} +2 -2
  204. package/dist/cdn/{66K5WNGM.js → N2VUT2CM.js} +2 -2
  205. package/dist/cdn/{PKODL3IY.js → N66UCV4O.js} +2 -2
  206. package/dist/cdn/{BGWP4TWF.js → N7ACVHXU.js} +2 -2
  207. package/dist/cdn/NB52BCP7.js +4 -0
  208. package/dist/cdn/{J3RW66HD.js → NIH454OI.js} +2 -2
  209. package/dist/cdn/{7MZHWXYE.js → NJTTWM2O.js} +2 -2
  210. package/dist/cdn/{RJSKVAPJ.js → NLSPE5NE.js} +2 -2
  211. package/dist/cdn/{3RWNFAPL.js → NO34BS3Y.js} +2 -2
  212. package/dist/cdn/{BHGPZPHI.js → NOAD3FB4.js} +2 -2
  213. package/dist/cdn/{SK3BSYR6.js → NONG5KLI.js} +2 -2
  214. package/dist/cdn/{EQU7VQR5.js → NS3JF257.js} +2 -2
  215. package/dist/cdn/{JXLMZTLR.js → NUY2Z2SB.js} +2 -2
  216. package/dist/cdn/{VIAY63N5.js → O3CHJ5GR.js} +2 -2
  217. package/dist/cdn/{4GYIRCZH.js → O3ZLPXJL.js} +2 -2
  218. package/dist/cdn/{QFBNO2BR.js → OBJATNQT.js} +2 -2
  219. package/dist/cdn/{ISPJ6574.js → OCG4AVVF.js} +2 -2
  220. package/dist/cdn/{FHJ4M7DA.js → OI4GE5AO.js} +2 -2
  221. package/dist/cdn/{HW3QVY3J.js → OPMYWOFX.js} +2 -2
  222. package/dist/cdn/{TTPUU3XB.js → OQINWQHN.js} +2 -2
  223. package/dist/cdn/{3GOUCDDA.js → OQKZ3XHU.js} +3 -3
  224. package/dist/cdn/{MY3N7U5P.js → ORDACAET.js} +2 -2
  225. package/dist/cdn/ORMNGKPR.js +18 -0
  226. package/dist/cdn/{EC6U73YO.js → OSMUWE33.js} +4 -4
  227. package/dist/cdn/{FHNXSYL5.js → OVW3UKZG.js} +2 -2
  228. package/dist/cdn/{5Y5BCNBZ.js → OYM7PRZW.js} +1 -1
  229. package/dist/cdn/{WPG2KAE5.js → P55ATIMI.js} +2 -2
  230. package/dist/cdn/{OA35H2QI.js → P5MUHJOV.js} +2 -2
  231. package/dist/cdn/{D2SUNNM7.js → PAPCUPJA.js} +2 -2
  232. package/dist/cdn/PFFQPOXY.js +18 -0
  233. package/dist/cdn/{AI66XIFT.js → PG5OHQ7C.js} +2 -2
  234. package/dist/cdn/{A7MJEB4E.js → PH3GJLXH.js} +2 -2
  235. package/dist/cdn/{4U2ESZU7.js → PJZ4SPKQ.js} +2 -2
  236. package/dist/cdn/{CXXZCUA4.js → PLKRFEVD.js} +2 -2
  237. package/dist/cdn/{MXEEAG4T.js → PNN2Q75K.js} +2 -2
  238. package/dist/cdn/{HSYIVPVV.js → PRN73PNP.js} +2 -2
  239. package/dist/cdn/{KL4GBIBS.js → PWOXB7VX.js} +1 -1
  240. package/dist/cdn/{UD3IFRJD.js → Q2HZGMSC.js} +2 -2
  241. package/dist/cdn/{MFQJ5VIS.js → QBOMJSQQ.js} +2 -2
  242. package/dist/cdn/QEJIS5UR.js +4 -0
  243. package/dist/cdn/{NMKJX5UX.js → QGF7ZFJN.js} +2 -2
  244. package/dist/cdn/{YJWA6MWV.js → QGKPU7KR.js} +2 -2
  245. package/dist/cdn/QIXQVRBK.js +18 -0
  246. package/dist/cdn/QWVCH4SD.js +4 -0
  247. package/dist/cdn/{OMQWU6Y5.js → R43OR7W5.js} +2 -2
  248. package/dist/cdn/{D6EWYXTL.js → R4MIR22R.js} +1 -1
  249. package/dist/cdn/{XNOOSNTL.js → R6COI5BF.js} +2 -2
  250. package/dist/cdn/{J6MAICJS.js → RB5YEX2Z.js} +2 -2
  251. package/dist/cdn/{WTERFQYN.js → RBV7YLCJ.js} +2 -2
  252. package/dist/cdn/{JWCALNWP.js → RCEIWCOF.js} +2 -2
  253. package/dist/cdn/{NPRBSDU4.js → RDATT53Q.js} +2 -2
  254. package/dist/cdn/{A4CPLF7K.js → RDI7ZMKQ.js} +1 -1
  255. package/dist/cdn/{QN6RG3TG.js → RG3CO4VX.js} +1 -1
  256. package/dist/cdn/{HHXO7JFY.js → RLHKPRUD.js} +2 -2
  257. package/dist/cdn/{TAQYO7DA.js → RRUNAIZ6.js} +2 -2
  258. package/dist/cdn/{3TIVP7ZT.js → RYDCMXAK.js} +2 -2
  259. package/dist/cdn/{AKCNGWL7.js → RZDZPK7T.js} +2 -2
  260. package/dist/cdn/{JKYSWQNH.js → S2TWQ4CP.js} +2 -2
  261. package/dist/cdn/{CL3HIMLD.js → S44CBZC3.js} +2 -2
  262. package/dist/cdn/{JNXQOCX5.js → S5JGRR7J.js} +2 -2
  263. package/dist/cdn/{BD5DMPRX.js → SB75RNE4.js} +2 -2
  264. package/dist/cdn/{54MX64OW.js → SBT5QK3G.js} +2 -2
  265. package/dist/cdn/{UXEYORBF.js → SFJULDEM.js} +2 -2
  266. package/dist/cdn/{7NJMQPTF.js → SITOCVPD.js} +2 -2
  267. package/dist/cdn/{HK4T6EQA.js → SJIPL5ND.js} +1 -1
  268. package/dist/cdn/{4QWQTEX2.js → SLEP5FPP.js} +2 -2
  269. package/dist/cdn/{G3OMPKZM.js → SM3QZXOO.js} +1 -1
  270. package/dist/cdn/{3ZCXZTSQ.js → SPWZIAIS.js} +2 -2
  271. package/dist/cdn/{KS4OMGOD.js → SRZEDXVZ.js} +2 -2
  272. package/dist/cdn/{VPOEQXZU.js → T4JMND5P.js} +2 -2
  273. package/dist/cdn/{FB6CNJND.js → T6NTJXMA.js} +2 -2
  274. package/dist/cdn/{2Z76VPGI.js → T6S7BM5U.js} +2 -2
  275. package/dist/cdn/TD3IDPA7.js +4 -0
  276. package/dist/cdn/{AH4OTLQ3.js → TEI5U73N.js} +3 -3
  277. package/dist/cdn/{BJZZT5RK.js → TFDVKBSL.js} +2 -2
  278. package/dist/cdn/{UO4LB2TD.js → TKJKLDLJ.js} +2 -2
  279. package/dist/cdn/{7JZ5LMUI.js → TM22XK2S.js} +2 -2
  280. package/dist/cdn/{5Z7A2SAC.js → TRG2M7TD.js} +2 -2
  281. package/dist/cdn/{6D2BWWQ3.js → TSE4T2RO.js} +2 -2
  282. package/dist/cdn/{UJAV7SOQ.js → U7VDTXKM.js} +1 -1
  283. package/dist/cdn/{2QUKXPZR.js → UCM5SJBM.js} +1 -1
  284. package/dist/cdn/{MXA4ABJF.js → UDBSTG6M.js} +3 -3
  285. package/dist/cdn/{PS6QJQU2.js → UH72XJFE.js} +2 -2
  286. package/dist/cdn/{J3UJ5U4N.js → UHMAXMMA.js} +2 -2
  287. package/dist/cdn/{TMLIPXIG.js → US6JIWX6.js} +2 -2
  288. package/dist/cdn/{32ATILL5.js → UTIBE4GW.js} +2 -2
  289. package/dist/cdn/{ZV326LBT.js → UUI2EKSS.js} +2 -2
  290. package/dist/cdn/{64766I5C.js → UVXT5MFM.js} +2 -2
  291. package/dist/cdn/{VHFFJRBJ.js → UY4DZODA.js} +2 -2
  292. package/dist/cdn/{JX2FUTAK.js → UYRBQI24.js} +2 -2
  293. package/dist/cdn/{KTWNZFXC.js → V4OWJV6O.js} +2 -2
  294. package/dist/cdn/{VPMGMIME.js → V5OTK5GF.js} +2 -2
  295. package/dist/cdn/{NQIIEYW2.js → V7CY4CCG.js} +2 -2
  296. package/dist/cdn/{COTPDOLY.js → VBUY7UZD.js} +2 -2
  297. package/dist/cdn/{BLJWLTAA.js → VKCWXM4P.js} +2 -2
  298. package/dist/cdn/{QNKV7QXW.js → VNLXAJ6K.js} +2 -2
  299. package/dist/cdn/{V23JMWA3.js → VSX6NU7T.js} +2 -2
  300. package/dist/cdn/{UZNODMNX.js → VXVLX7HU.js} +2 -2
  301. package/dist/cdn/{ZJCS556L.js → W2AQFMX6.js} +3 -3
  302. package/dist/cdn/{4X5X3NXC.js → W3FLI2DJ.js} +1 -1
  303. package/dist/cdn/{S2FPTWXG.js → W4W2KD2Z.js} +2 -2
  304. package/dist/cdn/{LHDI547F.js → WAKNLU4H.js} +2 -2
  305. package/dist/cdn/{QAWH7MKI.js → WHBCGNOV.js} +2 -2
  306. package/dist/cdn/{TCID2DB5.js → WHX66U6W.js} +2 -2
  307. package/dist/cdn/{6HYYQES4.js → WK7M23ZV.js} +2 -2
  308. package/dist/cdn/{JHOQTN2S.js → WLNT25ZL.js} +1 -1
  309. package/dist/cdn/{4UCWAUCV.js → WRZVIHB2.js} +2 -2
  310. package/dist/cdn/{SX7UPBDJ.js → WSVBZSJV.js} +1 -1
  311. package/dist/cdn/{5AUXWWFV.js → WV5CYPT4.js} +2 -2
  312. package/dist/cdn/{45MDLMP7.js → WVZOAXTK.js} +2 -2
  313. package/dist/cdn/{QB4S3FEB.js → WYZY5MEG.js} +1 -1
  314. package/dist/cdn/{K3XMCHTM.js → X2HMOVDC.js} +1 -1
  315. package/dist/cdn/{2WMJ555U.js → X3IFM44Z.js} +2 -2
  316. package/dist/cdn/{BEVDAMCL.js → X7Q7WOAP.js} +2 -2
  317. package/dist/cdn/{FL4YGWKB.js → XCEVRWR2.js} +2 -2
  318. package/dist/cdn/{CW5ZISPI.js → XCI5GOCP.js} +2 -2
  319. package/dist/cdn/{4XM7DRTD.js → XF4Y7YWD.js} +2 -2
  320. package/dist/cdn/{NG6VFQFD.js → XJ4TOB2R.js} +1 -1
  321. package/dist/cdn/{6HRHOQDC.js → XJJLFFTP.js} +2 -2
  322. package/dist/cdn/{7QKWZ3QG.js → XLOESN2G.js} +1 -1
  323. package/dist/cdn/{N7ANNTFH.js → XSDSXIZG.js} +2 -2
  324. package/dist/cdn/{ZHMRFTFN.js → Y56EPUPH.js} +2 -2
  325. package/dist/cdn/{X7KPSSXW.js → Y6DBN623.js} +2 -2
  326. package/dist/cdn/{647SSUOR.js → Y6GBF64F.js} +2 -2
  327. package/dist/cdn/{46N6YTN4.js → YFHVP5OF.js} +1 -1
  328. package/dist/cdn/{EF4FU5MQ.js → YIDOMZG4.js} +2 -2
  329. package/dist/cdn/{ERGIC6D6.js → YNY5DID2.js} +2 -2
  330. package/dist/cdn/YTDVJSJX.js +18 -0
  331. package/dist/cdn/{ZBVYCUUE.js → YV47DKV7.js} +2 -2
  332. package/dist/cdn/{PA2GPNXE.js → Z3SZUCLO.js} +2 -2
  333. package/dist/cdn/{JPDMQZUK.js → Z4CHNTUR.js} +2 -2
  334. package/dist/cdn/{B47TEQB4.js → Z7DYXKP6.js} +2 -2
  335. package/dist/cdn/{3O5OPBC4.js → ZADKZYIV.js} +1 -1
  336. package/dist/cdn/{KPN3DJIV.js → ZDSUTEMS.js} +3 -3
  337. package/dist/cdn/{ZATVZJSM.js → ZFBF24KI.js} +2 -2
  338. package/dist/cdn/{Z24VIS5S.js → ZIRG4OIM.js} +2 -2
  339. package/dist/cdn/{PBKTRBPS.js → ZNYW4F3Z.js} +2 -2
  340. package/dist/cdn/{TDEPYWWK.js → ZPKXYV6G.js} +2 -2
  341. package/dist/cdn/ZPQEOXHC.js +18 -0
  342. package/dist/cdn/ZQ4VMSJQ.js +18 -0
  343. package/dist/cdn/{2RVFCA7L.js → ZZOCPA5X.js} +2 -2
  344. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -0
  345. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -0
  346. package/dist/cdn/assets/solution-details-card/t9n/messages.en.json +1 -1
  347. package/dist/cdn/assets/solution-details-card/t9n/messages.json +1 -1
  348. package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
  349. package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
  350. package/dist/cdn/assets/solution-resource-card/t9n/messages.en.json +1 -1
  351. package/dist/cdn/assets/solution-resource-card/t9n/messages.json +1 -1
  352. package/dist/cdn/assets/solutions-all-panel/t9n/messages.en.json +1 -1
  353. package/dist/cdn/assets/solutions-all-panel/t9n/messages.json +1 -1
  354. package/dist/cdn/assets/solutions-all-shell/t9n/messages.en.json +1 -1
  355. package/dist/cdn/assets/solutions-all-shell/t9n/messages.json +1 -1
  356. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.en.json +1 -1
  357. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.json +1 -1
  358. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.en.json +1 -1
  359. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.json +1 -1
  360. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
  361. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.json +1 -1
  362. package/dist/cdn/assets/solutions-resources/t9n/messages.en.json +1 -1
  363. package/dist/cdn/assets/solutions-resources/t9n/messages.json +1 -1
  364. package/dist/cdn/index.js +2 -2
  365. package/dist/chunks/Auth.js +14 -14
  366. package/dist/chunks/CardsFetcher.js +1 -1
  367. package/dist/chunks/appConfig.js +1 -1
  368. package/dist/chunks/cardFetchingUtils.js +1 -1
  369. package/dist/chunks/cardsHelpers.js +1 -1
  370. package/dist/chunks/common.js +1 -1
  371. package/dist/chunks/deployAppContexts.js +1 -1
  372. package/dist/chunks/downloadUtils.js +1 -1
  373. package/dist/chunks/getItemIcon.js +1 -1
  374. package/dist/chunks/helpers.js +1 -1
  375. package/dist/chunks/interfaces.js +1 -1
  376. package/dist/chunks/loadModules.js +1 -1
  377. package/dist/chunks/mapViewUtils.js +1 -1
  378. package/dist/chunks/pciUtils.js +1 -1
  379. package/dist/chunks/popupUtils.js +1 -1
  380. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  381. package/dist/chunks/privilegeUtils.js +1 -1
  382. package/dist/chunks/publicNotificationContext.js +1 -1
  383. package/dist/chunks/queryUtils.js +1 -1
  384. package/dist/chunks/runtime.js +1 -1
  385. package/dist/chunks/solution-store.js +1 -1
  386. package/dist/chunks/templates.js +1 -1
  387. package/dist/chunks/useT9n.js +1 -1
  388. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +117 -9
  389. package/dist/components/arcgis-solutions-assistant/customElement.js +243 -63
  390. package/dist/components/arcgis-solutions-assistant/index.d.ts +5 -5
  391. package/dist/components/arcgis-solutions-assistant/index.js +5 -5
  392. package/dist/components/arcgis-solutions-assistant/utils/querySolutions.d.ts +6 -0
  393. package/dist/components/basemap-gallery/customElement.js +1 -1
  394. package/dist/components/buffer-tools/customElement.js +1 -1
  395. package/dist/components/card-manager/customElement.js +1 -1
  396. package/dist/components/consent-manager/customElement.js +1 -1
  397. package/dist/components/create-feature/customElement.js +1 -1
  398. package/dist/components/create-related-feature/customElement.js +1 -1
  399. package/dist/components/crowdsource-manager/customElement.js +1 -1
  400. package/dist/components/crowdsource-reporter/customElement.js +3 -3
  401. package/dist/components/deduct-calculator/customElement.js +1 -1
  402. package/dist/components/delete-button/customElement.js +1 -1
  403. package/dist/components/delete-dialog/customElement.js +1 -1
  404. package/dist/components/edit-card/customElement.js +1 -1
  405. package/dist/components/feature-details/customElement.js +1 -1
  406. package/dist/components/feature-list/customElement.js +1 -1
  407. package/dist/components/field-selection/customElement.js +1 -1
  408. package/dist/components/floor-filter/customElement.js +1 -1
  409. package/dist/components/info-card/customElement.js +1 -1
  410. package/dist/components/json-editor/customElement.js +1 -1
  411. package/dist/components/layer-list/customElement.js +1 -1
  412. package/dist/components/layer-table/customElement.js +5 -5
  413. package/dist/components/map-card/customElement.js +8 -8
  414. package/dist/components/map-draw-tools/customElement.js +1 -1
  415. package/dist/components/map-fullscreen/customElement.js +1 -1
  416. package/dist/components/map-layer-picker/customElement.d.ts +6 -0
  417. package/dist/components/map-layer-picker/customElement.js +25 -19
  418. package/dist/components/map-legend/customElement.js +1 -1
  419. package/dist/components/map-picker/customElement.js +1 -1
  420. package/dist/components/map-search/customElement.js +1 -1
  421. package/dist/components/map-select-tools/customElement.js +1 -1
  422. package/dist/components/map-tools/customElement.js +1 -1
  423. package/dist/components/pci-calculator/customElement.js +1 -1
  424. package/dist/components/pdf-download/customElement.js +1 -1
  425. package/dist/components/public-notification/customElement.js +1 -1
  426. package/dist/components/refine-selection/customElement.js +1 -1
  427. package/dist/components/selection-tool/customElement.js +1 -1
  428. package/dist/components/solution-configuration/customElement.js +1 -1
  429. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  430. package/dist/components/solution-configure-titles/customElement.js +22 -19
  431. package/dist/components/solution-contents/customElement.js +1 -1
  432. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  433. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  434. package/dist/components/solution-deployed-card/customElement.js +1 -1
  435. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  436. package/dist/components/solution-details-card/customElement.js +7 -7
  437. package/dist/components/solution-details-panel/customElement.js +25 -28
  438. package/dist/components/solution-item/customElement.js +1 -1
  439. package/dist/components/solution-item-accordion/customElement.d.ts +2 -0
  440. package/dist/components/solution-item-accordion/customElement.js +13 -9
  441. package/dist/components/solution-item-details/customElement.js +1 -1
  442. package/dist/components/solution-item-diagram/customElement.js +1 -1
  443. package/dist/components/solution-item-icon/customElement.js +1 -1
  444. package/dist/components/solution-item-sharing/customElement.js +1 -1
  445. package/dist/components/solution-organization-variables/customElement.js +1 -1
  446. package/dist/components/solution-resource-card/customElement.js +2 -2
  447. package/dist/components/solution-resource-item/customElement.js +1 -1
  448. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  449. package/dist/components/solution-social-share/customElement.js +1 -1
  450. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  451. package/dist/components/solution-template-data/customElement.js +1 -1
  452. package/dist/components/solution-variables/customElement.js +1 -1
  453. package/dist/components/solutions-all-panel/customElement.d.ts +2 -0
  454. package/dist/components/solutions-all-panel/customElement.js +48 -40
  455. package/dist/components/solutions-all-panel/index.d.ts +1 -0
  456. package/dist/components/solutions-all-panel/index.js +1 -0
  457. package/dist/components/solutions-all-shell/customElement.js +44 -36
  458. package/dist/components/solutions-deploy-app/customElement.js +19 -20
  459. package/dist/components/solutions-deploy-app-nav/customElement.js +33 -27
  460. package/dist/components/solutions-deploy-app-nav/index.d.ts +5 -2
  461. package/dist/components/solutions-deploy-app-nav/index.js +5 -2
  462. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  463. package/dist/components/solutions-deployed-panel/customElement.js +7 -7
  464. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  465. package/dist/components/solutions-filter-panel/customElement.d.ts +12 -0
  466. package/dist/components/solutions-filter-panel/customElement.js +77 -60
  467. package/dist/components/solutions-filter-panel/index.d.ts +1 -0
  468. package/dist/components/solutions-filter-panel/index.js +1 -0
  469. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  470. package/dist/components/solutions-resources/customElement.js +77 -38
  471. package/dist/components/solutions-resources/index.d.ts +2 -1
  472. package/dist/components/solutions-resources/index.js +2 -1
  473. package/dist/components/solutions-resources-shell/customElement.js +12 -12
  474. package/dist/components/solutions-searchsort-toolbar/customElement.js +31 -29
  475. package/dist/components/spatial-ref/customElement.js +1 -1
  476. package/dist/components/store-manager/customElement.js +1 -1
  477. package/dist/docs/api.json +410 -32
  478. package/dist/docs/docs.json +372 -23
  479. package/dist/docs/vscode.html-custom-data.json +37 -5
  480. package/dist/docs/web-types.json +109 -17
  481. package/dist/index.d.ts +2 -1
  482. package/dist/index.js +1 -1
  483. package/dist/loader.js +5 -5
  484. package/dist/types/lumina.d.ts +5 -4
  485. package/dist/types/preact.d.ts +5 -4
  486. package/dist/types/preact10.d.ts +5 -4
  487. package/dist/types/react.d.ts +5 -4
  488. package/dist/types/stencil.d.ts +5 -4
  489. package/dist/utils/interfaces.d.ts +7 -2
  490. package/package.json +1 -1
  491. package/dist/cdn/2INAA7RT.js +0 -18
  492. package/dist/cdn/6KOI3W3R.js +0 -18
  493. package/dist/cdn/6TVC6S4Y.js +0 -18
  494. package/dist/cdn/6USF6QAM.js +0 -18
  495. package/dist/cdn/6ZBLXSXD.js +0 -18
  496. package/dist/cdn/7YHDNEYY.js +0 -18
  497. package/dist/cdn/CAWPXFWU.js +0 -18
  498. package/dist/cdn/CSXY6EW2.js +0 -18
  499. package/dist/cdn/EIMD5MST.js +0 -18
  500. package/dist/cdn/FHGDKMEF.js +0 -4
  501. package/dist/cdn/FSJAKDHQ.js +0 -18
  502. package/dist/cdn/GAH72T7S.js +0 -4
  503. package/dist/cdn/LOUGJ6XQ.js +0 -4
  504. package/dist/cdn/NPDEUPTW.js +0 -18
  505. package/dist/cdn/O3LRUXCM.js +0 -18
  506. package/dist/cdn/OY6GRXLH.js +0 -4
  507. package/dist/cdn/RWZ3Z5DO.js +0 -4
  508. package/dist/cdn/UHW7AOH5.js +0 -18
  509. package/dist/cdn/UZSZTWRW.js +0 -4
  510. package/dist/cdn/WZNP6TVG.js +0 -18
  511. package/dist/cdn/Y3A3KHKJ.js +0 -4
  512. package/dist/cdn/Z3V4ODRX.js +0 -18
  513. package/dist/cdn/Z4EEG2E3.js +0 -4
  514. package/dist/cdn/ZH5JETIN.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.3 */
4
- import{a as Pn}from"./FB6CNJND.js";import"./U7XWDKUG.js";import"./CBOVDRFV.js";import{b as En}from"./SK3BSYR6.js";import{E as jn,h as In,o as kn}from"./D6EWYXTL.js";import"./NFBFHGJM.js";function Xi(e={}){let{disabled:t,portal:n}=e;return t||n?.eueiEnabled===!1?!0:!(!n||Bi(n)||Qi(n)||Yi(n))}function Bi(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function Qi(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Yi(e){return!e.user&&e.ipCntryCode==="US"}var Le={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},Fr="esri-telemetry";function Zi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!to(e)||e.body)&&t()})}function eo(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${Fr}="${n}"]`)}function to(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:u=!1,onload:c,onerror:d}=e;if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");if(eo(e)){console.log(`script (${r||i}) is already present, skipping`);return}let p=no({id:r,dataAttribute:i,type:a,async:s,defer:u,body:t,src:n,onload:c,onerror:d});return o==="body"?document.body.appendChild(p):document.head.appendChild(p)}var nt=class extends Error{};function no({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:u}){let c=document.createElement("script");return e&&(c.id=e),t&&c.setAttribute(`data-${Fr}`,t),a&&(c.src=a),o&&(c.innerText=o),c.type=n,c.async=r,c.defer=i,s&&(c.onload=s),u&&(c.onerror=u),c}function ro(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var io=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],Ct=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=Xi(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=io.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:u})=>!s&&!u);if(!i.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=Le.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=1800*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){Le.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){Le.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(oo(n.omitComplexData,this.logger),{})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function oo(e,t){return function(n,[r,i]){return ao(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function ao(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function ln(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Mt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return ro(this._getScripts())}async init(){if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Zi(t))),this.injectConfig()}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=ln(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},Tn="TELEMETRY_COGNITO_CREDENTIALS";function so(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=Le.get(Tn);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(Le.set(Tn,o),o))}function Gr({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:co(t,r),value:e[r]}:{key:r,value:uo(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function uo(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function co(e,t){return`dimension${e[t]}`}var lo=["size","duration","position","number","count"];function Jr(e,t={}){return Object.keys(e).filter(n=>t[n]||lo.includes(n)).map(n=>t[n]?{key:fo(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function fo(e,t){return`metric${e[t]}`}function po({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=Jr(e,n),u=Gr({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),c=Object.assign(Object.assign({name:a},u),s);return typeof document<"u"&&document.referrer&&(c.referrer=document.referrer),typeof window<"u"&&!c.hostname&&(c.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),c.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,c}function go({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=Jr(n,i),a=Gr({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:u}=document||{},{hostname:c,pathname:d}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:c,path:e||d,pageUrl:e||d,pageName:u,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function Nn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var ho="function",mo="string",ie="undefined",yo="boolean",Dt="object",vo="array",bo="number",wo="symbol",xo="null",Oo=function(){},_n="__",So="form",Ao="input",Io="button",ko="select",rt=typeof process!==ie?process:{};rt.env&&rt.env.NODE_ENV;var Ke=typeof document!==ie;rt.versions!=null&&rt.versions.node!=null;typeof Deno!==ie&&Deno.core;Ke&&window.name==="nodejs"||typeof navigator!==ie&&typeof navigator.userAgent!==ie&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Xr(e,t){return t.charAt(0)[e]()+t.slice(1)}var jo=Xr.bind(null,"toUpperCase"),Eo=Xr.bind(null,"toLowerCase");function Po(e){return Br(e)?jo(xo):typeof e===Dt?_o(e):Object.prototype.toString.call(e).slice(8,-1)}function it(e,t){t===void 0&&(t=!0);var n=Po(e);return t?Eo(n):n}function Fe(e,t){return typeof t===e}var Ut=Fe.bind(null,ho),Lt=Fe.bind(null,mo);Fe.bind(null,ie);Fe.bind(null,yo);Fe.bind(null,wo);function Br(e){return e===null}function To(e){return it(e)===bo&&!isNaN(e)}function No(e){return it(e)===vo}function _o(e){return Ut(e.constructor)?e.constructor.name:null}function Co(e){return e instanceof Error||Lt(e.message)&&e.constructor&&To(e.constructor.stackTraceLimit)}function Qr(e,t){if(typeof t!="object"||Br(t))return!1;if(t instanceof e)return!0;var n=it(new e(""));if(Co(t))for(;t;){if(it(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Qr.bind(null,TypeError);Qr.bind(null,SyntaxError);function ct(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?Mo(e,t):n}function Mo(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function lt(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}lt(ct,So);lt(ct,Io);lt(ct,Ao);lt(ct,ko);function Do(e){return e?No(e)?e:[e]:[]}function Cn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Uo(){if(Ke){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function Lo(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Ro(e){return(function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=Cn(n[1]),a=Cn(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var u in r){var c=u.split("[");c.length>1&&(zo(r,c.map(function(d){return d.replace(/[?[\]\\ ]/g,"")}),r[u]),delete r[u])}return r})((function(t){return Ke&&window.location.search.substring(1)})())}function zo(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function Ae(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var we="global",Te=_n+we+_n,Ne=typeof self===Dt&&self.self===self&&self||typeof global===Dt&&global[we]===global&&global||void 0;function de(e){return Ne[Te][e]}function le(e,t){return Ne[Te][e]=t}function Ie(e){delete Ne[Te][e]}function pe(e,t,n){var r;try{if(ft(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Ne[Te]||(Ne[Te]={});var Xe={};function ft(e){if(typeof Xe[e]!==ie)return Xe[e];try{var t=window[e];t.setItem(ie,ie),t.removeItem(ie)}catch{return Xe[e]=!1}return Xe[e]=!0}var Mn,Ve="__",Rt=typeof process<"u"?process:{};(Mn=Rt.env)!=null&&Mn.NODE_ENV;var fe=typeof window<"u";Rt.versions!=null&&Rt.versions.node!=null;typeof Deno<"u"&&Deno.core;fe&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function dt(e,t){return typeof t===e}var ae=dt.bind(null,"function"),et=dt.bind(null,"string");dt.bind(null,"undefined");var $o=dt.bind(null,"boolean");function Wo(e){return Object.prototype.toString.call(e)==="[object Array]"}function Vo(e){return e&&(typeof e=="object"||e!==null)}function ne(e){if(!Vo(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ho(e){if(Array.isArray(e))return zt(e)}function qo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yr(e,t){if(e){if(typeof e=="string")return zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zt(e,t)}}function Ko(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
+ v1.1.5 */
4
+ import{a as Pn}from"./T6NTJXMA.js";import"./MV45U2M4.js";import"./AXBSU3HJ.js";import{b as En}from"./NONG5KLI.js";import{E as jn,h as In,o as kn}from"./R4MIR22R.js";import"./MBQWZGFR.js";function Xi(e={}){let{disabled:t,portal:n}=e;return t||n?.eueiEnabled===!1?!0:!(!n||Bi(n)||Qi(n)||Yi(n))}function Bi(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function Qi(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Yi(e){return!e.user&&e.ipCntryCode==="US"}var Le={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},Fr="esri-telemetry";function Zi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!to(e)||e.body)&&t()})}function eo(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${Fr}="${n}"]`)}function to(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:u=!1,onload:c,onerror:d}=e;if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");if(eo(e)){console.log(`script (${r||i}) is already present, skipping`);return}let p=no({id:r,dataAttribute:i,type:a,async:s,defer:u,body:t,src:n,onload:c,onerror:d});return o==="body"?document.body.appendChild(p):document.head.appendChild(p)}var nt=class extends Error{};function no({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:u}){let c=document.createElement("script");return e&&(c.id=e),t&&c.setAttribute(`data-${Fr}`,t),a&&(c.src=a),o&&(c.innerText=o),c.type=n,c.async=r,c.defer=i,s&&(c.onload=s),u&&(c.onerror=u),c}function ro(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var io=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],Ct=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=Xi(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=io.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:u})=>!s&&!u);if(!i.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=Le.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=1800*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){Le.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){Le.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(oo(n.omitComplexData,this.logger),{})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function oo(e,t){return function(n,[r,i]){return ao(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function ao(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function ln(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Mt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return ro(this._getScripts())}async init(){if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Zi(t))),this.injectConfig()}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=ln(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},Tn="TELEMETRY_COGNITO_CREDENTIALS";function so(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=Le.get(Tn);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(Le.set(Tn,o),o))}function Gr({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:co(t,r),value:e[r]}:{key:r,value:uo(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function uo(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function co(e,t){return`dimension${e[t]}`}var lo=["size","duration","position","number","count"];function Jr(e,t={}){return Object.keys(e).filter(n=>t[n]||lo.includes(n)).map(n=>t[n]?{key:fo(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function fo(e,t){return`metric${e[t]}`}function po({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=Jr(e,n),u=Gr({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),c=Object.assign(Object.assign({name:a},u),s);return typeof document<"u"&&document.referrer&&(c.referrer=document.referrer),typeof window<"u"&&!c.hostname&&(c.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),c.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,c}function go({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=Jr(n,i),a=Gr({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:u}=document||{},{hostname:c,pathname:d}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:c,path:e||d,pageUrl:e||d,pageName:u,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function Nn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var ho="function",mo="string",ie="undefined",yo="boolean",Dt="object",vo="array",bo="number",wo="symbol",xo="null",Oo=function(){},_n="__",So="form",Ao="input",Io="button",ko="select",rt=typeof process!==ie?process:{};rt.env&&rt.env.NODE_ENV;var Ke=typeof document!==ie;rt.versions!=null&&rt.versions.node!=null;typeof Deno!==ie&&Deno.core;Ke&&window.name==="nodejs"||typeof navigator!==ie&&typeof navigator.userAgent!==ie&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Xr(e,t){return t.charAt(0)[e]()+t.slice(1)}var jo=Xr.bind(null,"toUpperCase"),Eo=Xr.bind(null,"toLowerCase");function Po(e){return Br(e)?jo(xo):typeof e===Dt?_o(e):Object.prototype.toString.call(e).slice(8,-1)}function it(e,t){t===void 0&&(t=!0);var n=Po(e);return t?Eo(n):n}function Fe(e,t){return typeof t===e}var Ut=Fe.bind(null,ho),Lt=Fe.bind(null,mo);Fe.bind(null,ie);Fe.bind(null,yo);Fe.bind(null,wo);function Br(e){return e===null}function To(e){return it(e)===bo&&!isNaN(e)}function No(e){return it(e)===vo}function _o(e){return Ut(e.constructor)?e.constructor.name:null}function Co(e){return e instanceof Error||Lt(e.message)&&e.constructor&&To(e.constructor.stackTraceLimit)}function Qr(e,t){if(typeof t!="object"||Br(t))return!1;if(t instanceof e)return!0;var n=it(new e(""));if(Co(t))for(;t;){if(it(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Qr.bind(null,TypeError);Qr.bind(null,SyntaxError);function ct(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?Mo(e,t):n}function Mo(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function lt(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}lt(ct,So);lt(ct,Io);lt(ct,Ao);lt(ct,ko);function Do(e){return e?No(e)?e:[e]:[]}function Cn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Uo(){if(Ke){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function Lo(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Ro(e){return(function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=Cn(n[1]),a=Cn(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var u in r){var c=u.split("[");c.length>1&&(zo(r,c.map(function(d){return d.replace(/[?[\]\\ ]/g,"")}),r[u]),delete r[u])}return r})((function(t){return Ke&&window.location.search.substring(1)})())}function zo(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function Ae(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var we="global",Te=_n+we+_n,Ne=typeof self===Dt&&self.self===self&&self||typeof global===Dt&&global[we]===global&&global||void 0;function de(e){return Ne[Te][e]}function le(e,t){return Ne[Te][e]=t}function Ie(e){delete Ne[Te][e]}function pe(e,t,n){var r;try{if(ft(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Ne[Te]||(Ne[Te]={});var Xe={};function ft(e){if(typeof Xe[e]!==ie)return Xe[e];try{var t=window[e];t.setItem(ie,ie),t.removeItem(ie)}catch{return Xe[e]=!1}return Xe[e]=!0}var Mn,Ve="__",Rt=typeof process<"u"?process:{};(Mn=Rt.env)!=null&&Mn.NODE_ENV;var fe=typeof window<"u";Rt.versions!=null&&Rt.versions.node!=null;typeof Deno<"u"&&Deno.core;fe&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function dt(e,t){return typeof t===e}var ae=dt.bind(null,"function"),et=dt.bind(null,"string");dt.bind(null,"undefined");var $o=dt.bind(null,"boolean");function Wo(e){return Object.prototype.toString.call(e)==="[object Array]"}function Vo(e){return e&&(typeof e=="object"||e!==null)}function ne(e){if(!Vo(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ho(e){if(Array.isArray(e))return zt(e)}function qo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yr(e,t){if(e){if(typeof e=="string")return zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zt(e,t)}}function Ko(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
5
5
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(e){return Ho(e)||qo(e)||Yr(e)||Ko()}function Q(e){"@babel/helpers - typeof";return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(e)}function Dn(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){n(c);return}s.done?t(u):Promise.resolve(u).then(r,i)}function se(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(u){Dn(o,r,i,a,s,"next",u)}function s(u){Dn(o,r,i,a,s,"throw",u)}a(void 0)})}}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Un(Object(n),!0).forEach(function(r){he(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Zr={exports:{}};(function(e){var t=(function(n){var r=Object.prototype,i=r.hasOwnProperty,o,a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(h,b,l){return Object.defineProperty(h,b,{value:l,enumerable:!0,configurable:!0,writable:!0}),h[b]}try{d({},"")}catch{d=function(h,b,l){return h[b]=l}}function p(h,b,l,m){var O=b&&b.prototype instanceof w?b:w,k=Object.create(O.prototype),M=new q(m||[]);return k._invoke=C(h,l,M),k}n.wrap=p;function g(h,b,l){try{return{type:"normal",arg:h.call(b,l)}}catch(m){return{type:"throw",arg:m}}}var x="suspendedStart",y="suspendedYield",A="executing",v="completed",f={};function w(){}function j(){}function S(){}var E={};d(E,s,function(){return this});var P=Object.getPrototypeOf,T=P&&P(P(G([])));T&&T!==r&&i.call(T,s)&&(E=T);var L=S.prototype=w.prototype=Object.create(E);j.prototype=S,d(L,"constructor",S),d(S,"constructor",j),j.displayName=d(S,c,"GeneratorFunction");function R(h){["next","throw","return"].forEach(function(b){d(h,b,function(l){return this._invoke(b,l)})})}n.isGeneratorFunction=function(h){var b=typeof h=="function"&&h.constructor;return b?b===j||(b.displayName||b.name)==="GeneratorFunction":!1},n.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,S):(h.__proto__=S,d(h,c,"GeneratorFunction")),h.prototype=Object.create(L),h},n.awrap=function(h){return{__await:h}};function _(h,b){function l(k,M,U,W){var K=g(h[k],h,M);if(K.type==="throw")W(K.arg);else{var H=K.arg,V=H.value;return V&&typeof V=="object"&&i.call(V,"__await")?b.resolve(V.__await).then(function(X){l("next",X,U,W)},function(X){l("throw",X,U,W)}):b.resolve(V).then(function(X){H.value=X,U(H)},function(X){return l("throw",X,U,W)})}}var m;function O(k,M){function U(){return new b(function(W,K){l(k,M,W,K)})}return m=m?m.then(U,U):U()}this._invoke=O}R(_.prototype),d(_.prototype,u,function(){return this}),n.AsyncIterator=_,n.async=function(h,b,l,m,O){O===void 0&&(O=Promise);var k=new _(p(h,b,l,m),O);return n.isGeneratorFunction(b)?k:k.next().then(function(M){return M.done?M.value:k.next()})};function C(h,b,l){var m=x;return function(O,k){if(m===A)throw new Error("Generator is already running");if(m===v){if(O==="throw")throw k;return z()}for(l.method=O,l.arg=k;;){var M=l.delegate;if(M){var U=F(M,l);if(U){if(U===f)continue;return U}}if(l.method==="next")l.sent=l._sent=l.arg;else if(l.method==="throw"){if(m===x)throw m=v,l.arg;l.dispatchException(l.arg)}else l.method==="return"&&l.abrupt("return",l.arg);m=A;var W=g(h,b,l);if(W.type==="normal"){if(m=l.done?v:y,W.arg===f)continue;return{value:W.arg,done:l.done}}else W.type==="throw"&&(m=v,l.method="throw",l.arg=W.arg)}}}function F(h,b){var l=h.iterator[b.method];if(l===o){if(b.delegate=null,b.method==="throw"){if(h.iterator.return&&(b.method="return",b.arg=o,F(h,b),b.method==="throw"))return f;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var m=g(l,h.iterator,b.arg);if(m.type==="throw")return b.method="throw",b.arg=m.arg,b.delegate=null,f;var O=m.arg;if(!O)return b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,f;if(O.done)b[h.resultName]=O.value,b.next=h.nextLoc,b.method!=="return"&&(b.method="next",b.arg=o);else return O;return b.delegate=null,f}R(L),d(L,c,"Generator"),d(L,s,function(){return this}),d(L,"toString",function(){return"[object Generator]"});function $(h){var b={tryLoc:h[0]};1 in h&&(b.catchLoc=h[1]),2 in h&&(b.finallyLoc=h[2],b.afterLoc=h[3]),this.tryEntries.push(b)}function D(h){var b=h.completion||{};b.type="normal",delete b.arg,h.completion=b}function q(h){this.tryEntries=[{tryLoc:"root"}],h.forEach($,this),this.reset(!0)}n.keys=function(h){var b=[];for(var l in h)b.push(l);return b.reverse(),function m(){for(;b.length;){var O=b.pop();if(O in h)return m.value=O,m.done=!1,m}return m.done=!0,m}};function G(h){if(h){var b=h[s];if(b)return b.call(h);if(typeof h.next=="function")return h;if(!isNaN(h.length)){var l=-1,m=function O(){for(;++l<h.length;)if(i.call(h,l))return O.value=h[l],O.done=!1,O;return O.value=o,O.done=!0,O};return m.next=m}}return{next:z}}n.values=G;function z(){return{value:o,done:!0}}return q.prototype={constructor:q,reset:function(h){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(D),!h)for(var b in this)b.charAt(0)==="t"&&i.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=o)},stop:function(){this.done=!0;var h=this.tryEntries[0],b=h.completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(h){if(this.done)throw h;var b=this;function l(W,K){return k.type="throw",k.arg=h,b.next=W,K&&(b.method="next",b.arg=o),!!K}for(var m=this.tryEntries.length-1;m>=0;--m){var O=this.tryEntries[m],k=O.completion;if(O.tryLoc==="root")return l("end");if(O.tryLoc<=this.prev){var M=i.call(O,"catchLoc"),U=i.call(O,"finallyLoc");if(M&&U){if(this.prev<O.catchLoc)return l(O.catchLoc,!0);if(this.prev<O.finallyLoc)return l(O.finallyLoc)}else if(M){if(this.prev<O.catchLoc)return l(O.catchLoc,!0)}else if(U){if(this.prev<O.finallyLoc)return l(O.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(h,b){for(var l=this.tryEntries.length-1;l>=0;--l){var m=this.tryEntries[l];if(m.tryLoc<=this.prev&&i.call(m,"finallyLoc")&&this.prev<m.finallyLoc){var O=m;break}}O&&(h==="break"||h==="continue")&&O.tryLoc<=b&&b<=O.finallyLoc&&(O=null);var k=O?O.completion:{};return k.type=h,k.arg=b,O?(this.method="next",this.next=O.finallyLoc,f):this.complete(k)},complete:function(h,b){if(h.type==="throw")throw h.arg;return h.type==="break"||h.type==="continue"?this.next=h.arg:h.type==="return"?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):h.type==="normal"&&b&&(this.next=b),f},finish:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var l=this.tryEntries[b];if(l.finallyLoc===h)return this.complete(l.completion,l.afterLoc),D(l),f}},catch:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var l=this.tryEntries[b];if(l.tryLoc===h){var m=l.completion;if(m.type==="throw"){var O=m.arg;D(l)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(h,b,l){return this.delegate={iterator:G(h),resultName:b,nextLoc:l},this.method==="next"&&(this.arg=o),f}},n})(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(Zr);var B=Zr.exports,me="function",ue="undefined",ze="reducer",ei="@@redux/",$t=ei+"INIT",Fo=ei+Math.random().toString(36),Ln=(function(){return(typeof Symbol>"u"?"undefined":Q(Symbol))===me&&Symbol.observable||"@@observable"})(),Be=" != "+me;function ti(e,t,n){if(Q(t)===me&&Q(n)===ue&&(n=t,t=void 0),Q(n)!==ue){if(Q(n)!==me)throw new Error("enhancer"+Be);return n(ti)(e,t)}if(Q(e)!==me)throw new Error(ze+Be);var r=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){return i}function d(y){if(Q(y)!==me)throw new Error("Listener"+Be);var A=!0;return u(),a.push(y),function(){if(A){A=!1,u();var v=a.indexOf(y);a.splice(v,1)}}}function p(y){if(!ne(y))throw new Error("Act != obj");if(Q(y.type)===ue)throw new Error("ActType "+ue);if(s)throw new Error("Dispatch in "+ze);try{s=!0,i=r(i,y)}finally{s=!1}for(var A=o=a,v=0;v<A.length;v++){var f=A[v];f()}return y}function g(y){if(Q(y)!==me)throw new Error("next "+ze+Be);r=y,p({type:$t})}function x(){var y=d;return he({subscribe:function(A){if(Q(A)!=="object")throw new TypeError("Observer != obj");function v(){A.next&&A.next(c())}v();var f=y(v);return{unsubscribe:f}}},Ln,function(){return this})}return p({type:$t}),he({dispatch:p,subscribe:d,getState:c,replaceReducer:g},Ln,x)}function Go(e,t){var n=t&&t.type,r=n&&n.toString()||"?";return"action "+r+ze+" "+e+" returns "+ue}function Jo(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:$t});if(Q(r)===ue||Q(n(void 0,{type:Fo}))===ue)throw new Error(ze+" "+t+" "+ue)})}function Xo(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];Q(e[i])===me&&(n[i]=e[i])}var o=Object.keys(n),a;try{Jo(n)}catch(s){a=s}return function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;if(a)throw a;for(var c=!1,d={},p=0;p<o.length;p++){var g=o[p],x=n[g],y=s[g],A=x(y,u);if(Q(A)===ue){var v=Go(g,u);throw new Error(v)}d[g]=A,c=c||A!==y}return c?d:s}}function _e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function Bo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(i,o,a){var s=r(i,o,a),u=s.dispatch,c=[],d={getState:s.getState,dispatch:function(p){return u(p)}};return c=t.map(function(p){return p(d)}),u=_e.apply(void 0,Re(c))(s.dispatch),I(I({},s),{},{dispatch:u})}}}var ye=Ve+"anon_id",xe=Ve+"user_id",Ee=Ve+"user_traits",Wt="analytics",ge="userId",ke="anonymousId",Qo="https://lytics.dev/errors/",ot=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Vt=["name","EVENTS","config","loaded"],Yo={registerPluginType:function(e){return"registerPlugin:".concat(e)},pluginReadyType:function(e){return"ready:".concat(e)}},Zo=ot.reduce(function(e,t){return e[t]=t,e},Yo),N=Zo;function ea(e){return ot.includes(e)}var Rn=/^utm_/,zn=/^an_prop_/,$n=/^an_trait_/;function ta(e){var t=e.storage.setItem;return function(n){return function(r){return function(i){if(i.type===N.bootstrap){var o=i.params,a=i.user,s=i.persistedUser,u=i.initialUser,c=s.userId===a.userId;s.anonymousId!==a.anonymousId&&t(ye,a.anonymousId),c||t(xe,a.userId),u.traits&&t(Ee,I(I({},c&&s.traits?s.traits:{}),u.traits));var d=Object.keys(i.params);if(d.length){var p=o.an_uid,g=o.an_event,x=d.reduce(function(y,A){if(A.match(Rn)||A.match(/^(d|g)clid/)){var v=A.replace(Rn,""),f=v==="campaign"?"name":v;y.campaign[f]=o[A]}return A.match(zn)&&(y.props[A.replace(zn,"")]=o[A]),A.match($n)&&(y.traits[A.replace($n,"")]=o[A]),y},{campaign:{},props:{},traits:{}});n.dispatch(I(I({type:N.params,raw:o},x),p?{userId:p}:{})),p&&setTimeout(function(){return e.identify(p,x.traits)},0),g&&setTimeout(function(){return e.track(g,x.props)},0),Object.keys(x.campaign).length&&n.dispatch({type:N.campaign,campaign:x.campaign})}}return r(i)}}}}function na(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n.type===N.setItemEnd){if(n.key===ye)return I(I({},t),{anonymousId:n.value});if(n.key===xe)return I(I({},t),{userId:n.value})}switch(n.type){case N.identify:return Object.assign({},t,{userId:n.userId,traits:I(I({},t.traits),n.traits)});case N.reset:return[xe,ye,Ee].forEach(function(r){e.removeItem(r)}),Object.assign({},t,{userId:null,anonymousId:null,traits:{}});default:return t}}}function ni(e){return{userId:e.getItem(xe),anonymousId:e.getItem(ye),traits:e.getItem(Ee)}}var fn=function(e){return Ve+"TEMP"+Ve+e};function ra(e){return function(t,n,r){var i=n.getState("user")[t];if(i)return i;if(r&&ne(r)&&r[t])return r[t];var o=ni(e)[t];return o||de(fn(t))||null}}function ia(e){var t=e.storage,n=t.setItem,r=t.removeItem,i=t.getItem;return function(o){return function(a){return function(s){var u=s.userId,c=s.traits,d=s.options;if(s.type===N.reset&&([xe,Ee,ye].forEach(function(x){r(x)}),[ge,ke,"traits"].forEach(function(x){Ie(fn(x))})),s.type===N.identify){i(ye)||n(ye,Ae());var p=i(xe),g=i(Ee)||{};p&&p!==u&&o.dispatch({type:N.userIdChanged,old:{userId:p,traits:g},new:{userId:u,traits:c},options:d}),u&&n(xe,u),c&&n(Ee,I(I({},g),c))}return a(s)}}}}var Ue={};function ri(e,t){Ue[e]&&ae(Ue[e])&&(Ue[e](t),delete Ue[e])}function ii(e,t,n){return new Promise(function(r,i){return t()?r(e):n<1?i(I(I({},e),{},{queue:!0})):oa(10).then(function(o){return ii(e,t,n-10).then(r,i)})})}function oa(e){return new Promise(function(t){return setTimeout(t,e)})}function oi(e,t,n){var r=t(),i=e.getState(),o=i.plugins,a=i.context,s=i.queue,u=i.user,c=!a.offline;if(c&&s&&s.actions&&s.actions.length){var d=s.actions.reduce(function(g,x,y){var A=o[x.plugin].loaded;return A?(g.process.push(x),g.processIndex.push(y)):(g.requeue.push(x),g.requeueIndex.push(y)),g},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(d.processIndex&&d.processIndex.length){d.processIndex.forEach(function(g){var x=s.actions[g],y=x.plugin,A=x.payload.type,v=r[y][A];if(v&&ae(v)){var f=sa(x.payload,u);v({payload:f,config:o[y].config,instance:n});var w="".concat(A,":").concat(y);e.dispatch(I(I({},f),{},{type:w,_:{called:w,from:"queueDrain"}}))}});var p=s.actions.filter(function(g,x){return!~d.processIndex.indexOf(x)});s.actions=p}}}function aa(e,t,n){return setInterval(function(){return oi(e,t,n)},3e3)}function sa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return[ge,ke].reduce(function(n,r){return e.hasOwnProperty(r)&&t[r]&&t[r]!==e[r]&&(n[r]=t[r]),n},e)}function ua(e){if(Array.isArray(e))return e}function ca(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function la(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
6
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fa(e,t){return ua(e)||ca(e,t)||Yr(e,t)||la()}function da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(e).filter(function(r){var i=n.plugins||{};return $o(i[r])?i[r]:!(i.all===!1||t[r]&&t[r].enabled===!1)}).map(function(r){return e[r]})}var Ce=/Start$/,Wn=/^bootstrap/,Vn=/^ready/;function pa(e,t,n,r,i){return Ht.apply(this,arguments)}function Ht(){return Ht=se(B.mark(function e(t,n,r,i,o){var a,s,u,c,d,p,g,x,y,A,v;return B.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(a=ae(n)?n():n,s=t.type,u=s.replace(Ce,""),!(t._&&t._.called)){f.next=5;break}return f.abrupt("return",t);case 5:return c=r.getState(),d=da(a,c.plugins,t.options),s===N.initializeStart&&t.fromEnable&&(d=Object.keys(c.plugins).filter(function(w){var j=c.plugins[w];return t.plugins.includes(w)&&!j.initialized}).map(function(w){return a[w]})),p=d.map(function(w){return w.name}),g=ha(s,d),f.next=12,xt({action:t,data:{exact:g.before,namespaced:g.beforeNS},state:c,allPlugins:a,allMatches:g,instance:r,store:i,EVENTS:o});case 12:if(x=f.sent,!ai(x,p.length)){f.next=15;break}return f.abrupt("return",x);case 15:if(s!==u){f.next=19;break}y=x,f.next=22;break;case 19:return f.next=21,xt({action:I(I({},x),{},{type:u}),data:{exact:g.during,namespaced:g.duringNS},state:c,allPlugins:a,allMatches:g,instance:r,store:i,EVENTS:o});case 21:y=f.sent;case 22:if(!s.match(Ce)){f.next=28;break}return A="".concat(u,"End"),f.next=26,xt({action:I(I({},y),{},{type:A}),data:{exact:g.after,namespaced:g.afterNS},state:c,allPlugins:a,allMatches:g,instance:r,store:i,EVENTS:o});case 26:v=f.sent,v.meta&&v.meta.hasCallback&&ri(v.meta.rid,{payload:v});case 28:return f.abrupt("return",x);case 29:case"end":return f.stop()}},e)})),Ht.apply(this,arguments)}function xt(e){return qt.apply(this,arguments)}function qt(){return qt=se(B.mark(function e(t){var n,r,i,o,a,s,u,c,d,p,g,x,y,A,v,f,w,j;return B.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return n=t.data,r=t.action,i=t.instance,o=t.state,a=t.allPlugins,s=t.allMatches,u=t.store,c=t.EVENTS,d=o.plugins,p=o.context,g=r.type,x=g.match(Ce),y=n.exact.map(function(E){return E.pluginName}),x&&(y=s.during.map(function(E){return E.pluginName})),A=ma(i,y),v=n.exact.reduce(function(E,P){var T=P.pluginName,L=P.methodName,R=!1;return!L.match(/^initialize/)&&!L.match(/^reset/)&&(R=!d[T].loaded),p.offline&&L.match(/^(page|track|identify)/)&&(R=!0),E["".concat(T)]=R,E},{}),S.next=10,n.exact.reduce((function(){var E=se(B.mark(function P(T,L,R){var _,C,F;return B.wrap(function($){for(;;)switch($.prev=$.next){case 0:return _=L.pluginName,$.next=3,T;case 3:if(C=$.sent,!(n.namespaced&&n.namespaced[_])){$.next=11;break}return $.next=7,n.namespaced[_].reduce((function(){var D=se(B.mark(function q(G,z,h){var b,l,m,O;return B.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return l=function(M,U,W){return function(K,H){var V=W||U;return I(I({},M),{},{abort:{reason:K,plugins:H||[U],caller:g,from:V}})}},k.next=3,G;case 3:if(b=k.sent,!(!z.method||!ae(z.method))){k.next=6;break}return k.abrupt("return",b);case 6:return ba(z.methodName,z.pluginName),k.next=9,z.method({payload:b,instance:i,abort:l(b,_,z.pluginName),config:Hn(z.pluginName,d,a),plugins:d});case 9:return m=k.sent,O=ne(m)?m:{},k.abrupt("return",Promise.resolve(I(I({},b),O)));case 12:case"end":return k.stop()}},q)}));return function(q,G,z){return D.apply(this,arguments)}})(),Promise.resolve(r));case 7:F=$.sent,C[_]=F,$.next=12;break;case 11:C[_]=r;case 12:return $.abrupt("return",Promise.resolve(C));case 13:case"end":return $.stop()}},P)}));return function(P,T,L){return E.apply(this,arguments)}})(),Promise.resolve({}));case 10:return f=S.sent,S.next=13,n.exact.reduce((function(){var E=se(B.mark(function P(T,L,R){var _,C,F,$,D,q,G,z,h,b,l,m,O;return B.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return _=n.exact.length===R+1,C=L.pluginName,F=a[C],k.next=5,T;case 5:if($=k.sent,D=f[C]?f[C]:{},x&&(D=$),!St(D,C)){k.next=11;break}return Ot({data:D,method:g,instance:i,pluginName:C,store:u}),k.abrupt("return",Promise.resolve($));case 11:if(!St($,C)){k.next=14;break}return _&&Ot({data:$,method:g,instance:i,store:u}),k.abrupt("return",Promise.resolve($));case 14:if(!(v.hasOwnProperty(C)&&v[C]===!0)){k.next=17;break}return u.dispatch({type:"queue",plugin:C,payload:D,_:{called:"queue",from:"queueMechanism"}}),k.abrupt("return",Promise.resolve($));case 17:return q=A(f[C],a[C]),k.next=20,F[g]({abort:q.abort,payload:D,instance:i,config:Hn(C,d,a),plugins:d});case 20:return G=k.sent,z=ne(G)?G:{},h=I(I({},$),z),b=f[C],St(b,C)?Ot({data:b,method:g,instance:i,pluginName:C,store:u}):(l="".concat(g,":").concat(C),m=(l.match(/:/g)||[]).length,m<2&&!g.match(Wn)&&!g.match(Vn)&&(O=x?h:D,i.dispatch(I(I({},O),{},{type:l,_:{called:l,from:"submethod"}})))),k.abrupt("return",Promise.resolve(h));case 26:case"end":return k.stop()}},P)}));return function(P,T,L){return E.apply(this,arguments)}})(),Promise.resolve(r));case 13:if(w=S.sent,!(!g.match(Ce)&&!g.match(/^registerPlugin/)&&!g.match(Vn)&&!g.match(Wn)&&!g.match(/^params/)&&!g.match(/^userIdChanged/))){S.next=21;break}if(c.plugins.includes(g),!(w._&&w._.originalAction===g)){S.next=18;break}return S.abrupt("return",w);case 18:j=I(I({},w),{_:{originalAction:w.type,called:w.type,from:"engineEnd"}}),ai(w,n.exact.length)&&!g.match(/End$/)&&(j=I(I({},j),{type:w.type+"Aborted"})),u.dispatch(j);case 21:return S.abrupt("return",w);case 22:case"end":return S.stop()}},e)})),qt.apply(this,arguments)}function Ot(e){var t=e.data,n=e.method;e.instance;var r=e.pluginName,i=e.store,o=r?":"+r:"",a=n+"Aborted"+o;i.dispatch(I(I({},t),{},{type:a,_:{called:a,from:"abort"}}))}function Hn(e,t,n){var r=t[e]||n[e];return r&&r.config?r.config:{}}function qn(e,t){return t.reduce(function(n,r){return r[e]?n.concat({methodName:e,pluginName:r.name,method:r[e]}):n},[])}function ga(e){return e.replace(Ce,"")}function Kn(e,t){var n=ga(e),r=t?":".concat(t):"",i="".concat(e).concat(r),o="".concat(n).concat(r),a="".concat(n,"End").concat(r);return[i,o,a]}function ha(e,t,n){var r=Kn(e),i=r.map(function(o){return qn(o,t)});return t.reduce(function(o,a){var s=a.name,u=Kn(e,s),c=u.map(function(y){return qn(y,t)}),d=fa(c,3),p=d[0],g=d[1],x=d[2];return p.length&&(o.beforeNS[s]=p),g.length&&(o.duringNS[s]=g),x.length&&(o.afterNS[s]=x),o},{before:i[0],beforeNS:{},during:i[1],duringNS:{},after:i[2],afterNS:{}})}function St(e,t){var n=e.abort;return n?n===!0?!0:Fn(n,t)||n&&Fn(n.plugins,t):!1}function ai(e,t){var n=e.abort;if(!n)return!1;if(n===!0||et(n))return!0;var r=n.plugins;return He(n)&&n.length===t||He(r)&&r.length===t}function He(e){return Array.isArray(e)}function Fn(e,t){return!e||!He(e)?!1:e.includes(t)}function ma(e,t){return function(n,r,i){var o=r.config,a=r.name,s="".concat(a,".").concat(n.type);i&&(s=i.event);var u=n.type.match(Ce)?ya(a,s,t,i,n):va(n,s);return{payload:wa(n),instance:e,config:o||{},abort:u}}}function ya(e,t,n,r,i){return function(o,a){var s=r?r.name:e,u=a&&He(a)?a:n;if(r&&(u=a&&He(a)?a:[e],!u.includes(e)||u.length!==1))throw new Error("Method ".concat(t," can only abort ").concat(e," plugin. ").concat(JSON.stringify(u)," input valid"));return I(I({},i),{},{abort:{reason:o,plugins:u,caller:t,_:s}})}}function va(e,t){return function(){throw new Error(e.type+" action not cancellable. Remove abort in "+t)}}function ba(e,t){var n=Gn(e),r=n&&n.name===t;if(r){var i=Gn(n.method),o=i?"or "+i.method:"";throw new Error([t+" plugin is calling method "+e,"Plugins cant call self","Use ".concat(n.method," ").concat(o," in ").concat(t," plugin insteadof ").concat(e)].join(`
7
7
  `))}}function Gn(e){var t=e.match(/(.*):(.*)/);return t?{method:t[1],name:t[2]}:!1}function wa(e){return Object.keys(e).reduce(function(t,n){return n==="type"||(ne(e[n])?t[n]=Object.assign({},e[n]):t[n]=e[n]),t},{})}function xa(e,t,n){var r={};return function(i){return function(o){return(function(){var a=se(B.mark(function s(u){var c,d,p,g,x,y,A,v,f,w,j,S;return B.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(c=u.type,d=u.abort,p=u.plugins,g=u,!d){E.next=4;break}return E.abrupt("return",o(u));case 4:if(c===N.enablePlugin&&i.dispatch({type:N.initializeStart,plugins:p,disabled:[],fromEnable:!0,meta:u.meta}),c===N.disablePlugin&&setTimeout(function(){return ri(u.meta.rid,{payload:u})},0),c===N.initializeEnd&&(x=t(),y=Object.keys(x),A=y.filter(function(P){return p.includes(P)}).map(function(P){return x[P]}),v=[],f=[],w=u.disabled,j=A.map(function(P){var T=P.loaded,L=P.name;return ii(P,T,1e4).then(function(R){return r[L]||(i.dispatch({type:N.pluginReadyType(L),name:L,events:Object.keys(P).filter(function(_){return!Vt.includes(_)})}),r[L]=!0),v=v.concat(L),P}).catch(function(R){if(R instanceof Error)throw new Error(R);return f=f.concat(R.name),R})}),Promise.all(j).then(function(P){var T={plugins:v,failed:f,disabled:w};setTimeout(function(){y.length===j.length+w.length&&i.dispatch(I(I({},{type:N.ready}),T))},0)})),c===N.bootstrap){E.next=13;break}return/^ready:([^:]*)$/.test(c)&&setTimeout(function(){return oi(i,t,e)},0),E.next=11,pa(u,t,e,i,n);case 11:return S=E.sent,E.abrupt("return",o(S));case 13:return E.abrupt("return",o(g));case 14:case"end":return E.stop()}},s)}));return function(s){return a.apply(this,arguments)}})()}}}function Oa(e){return function(t){return function(n){return function(r){var i=r.type,o=r.key,a=r.value,s=r.options;if(i===N.setItem||i===N.removeItem){if(r.abort)return n(r);i===N.setItem?e.setItem(o,a,s):e.removeItem(o,s)}return n(r)}}}}function Sa(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ia=Sa(function e(){var t=this;Aa(this,e),he(this,"before",[]),he(this,"after",[]),he(this,"addMiddleware",function(n,r){t[r]=t[r].concat(n)}),he(this,"removeMiddleware",function(n,r){var i=t[r].findIndex(function(o){return o===n});i!==-1&&(t[r]=[].concat(Re(t[r].slice(0,i)),Re(t[r].slice(i+1))))}),he(this,"dynamicMiddlewares",function(n){return function(r){return function(i){return function(o){var a={getState:r.getState,dispatch:function(u){return r.dispatch(u)}},s=t[n].map(function(u){return u(a)});return _e.apply(void 0,Re(s))(i)(o)}}}})});function ka(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r={};if(n.type==="initialize:aborted")return t;if(/^registerPlugin:([^:]*)$/.test(n.type)){var i=Jn(n.type,"registerPlugin"),o=e()[i];if(!o||!i)return t;var a=n.enabled;return r[i]={enabled:a,initialized:a?!o.initialize:!1,loaded:a?!!o.loaded():!1,config:o.config||{}},I(I({},t),r)}if(/^initialize:([^:]*)$/.test(n.type)){var s=Jn(n.type,N.initialize),u=e()[s];return!u||!s?t:(r[s]=I(I({},t[s]),{initialized:!0,loaded:!!u.loaded()}),I(I({},t),r))}if(/^ready:([^:]*)$/.test(n.type))return r[n.name]=I(I({},t[n.name]),{loaded:!0}),I(I({},t),r);switch(n.type){case N.disablePlugin:return I(I({},t),Xn(n.plugins,!1,t));case N.enablePlugin:return I(I({},t),Xn(n.plugins,!0,t));default:return t}}}function Jn(e,t){return e.substring(t.length+1,e.length)}function Xn(e,t,n){return e.reduce(function(r,i){return r[i]=I(I({},n[i]),{enabled:t}),r},n)}function si(e){try{return JSON.parse(JSON.stringify(e))}catch{}return e}var ja={last:{},history:[]};function Ea(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ja,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.event,i=t.properties,o=t.options,a=t.meta;switch(n){case N.track:var s=si(I(I({event:r,properties:i},Object.keys(o).length&&{options:o}),{},{meta:a}));return I(I({},e),{last:s,history:e.history.concat(s)});default:return e}}var Pa={actions:[]};function Ta(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pa,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case"queue":var i;return r&&r.type&&r.type===N.identify?i=[t].concat(e.actions):i=e.actions.concat(t),I(I({},e),{},{actions:i});case"dequeue":return[];default:return e}}var ui=/#.*$/;function Na(){if(fe){for(var e=document.getElementsByTagName("link"),t=0,n;n=e[t];t++)if(n.getAttribute("rel")==="canonical")return n.getAttribute("href")}}function _a(e){var t=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g,n=t.exec(e),r=n&&n[3]?n[3].split("?")[0].replace(ui,""):"";return"/"+r}function Ca(e){var t=Na();return t?t.match(/\?/)?t:t+e:window.location.href.replace(ui,"")}var Ma=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!fe)return e;var t=document,n=t.title,r=t.referrer,i=window,o=i.location,a=i.innerWidth,s=i.innerHeight,u=o.hash,c=o.search,d=Ca(c),p={title:n,url:d,path:_a(d),hash:u,search:c,width:a,height:s};return r&&r!==""&&(p.referrer=r),I(I({},p),e)},Da={last:{},history:[]};function Ua(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Da,t=arguments.length>1?arguments[1]:void 0,n=t.properties,r=t.options,i=t.meta;switch(t.type){case N.page:var o=si(I({properties:n,meta:i},Object.keys(r).length&&{options:r}));return I(I({},e),{last:o,history:e.history.concat(o)});default:return e}}function La(){if(!fe)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"}var ci,li,fi,di;ci=La(),li=fe?document.referrer:null,fi=Uo(),di=Lo();var Bn={initialized:!1,sessionId:Ae(),app:null,version:null,debug:!1,offline:fe?!navigator.onLine:!1,os:{name:ci},userAgent:fe?navigator.userAgent:"node",library:{name:Wt,version:"0.10.22"},timezone:di,locale:fi,campaign:{},referrer:li};function Ra(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bn,t=arguments.length>1?arguments[1]:void 0,n=e.initialized,r=t.type,i=t.campaign;switch(r){case N.campaign:return I(I({},e),{campaign:i});case N.offline:return I(I({},e),{offline:!0});case N.online:return I(I({},e),{offline:!1});default:return n?e:I(I(I({},Bn),e),{initialized:!0})}}var za=["plugins","reducers","storage"];function $a(e){return Object.keys(e).reduce(function(t,n){return za.includes(n)||(t[n]=e[n]),t},{})}function Wa(e,t,n){if(fe){var r=window[(n?"add":"remove")+"EventListener"];e.split(" ").forEach(function(i){r(i,t)})}}function Va(){return Promise.resolve(!navigator.onLine)}function Ha(e){var t=function(r){return Va().then(e)},n=Wa.bind(null,"online offline",t);return n(!0),function(r){return n(!1)}}function pi(){return le(Wt,[]),function(e){return function(t,n,r){var i=e(t,n,r),o=i.dispatch,a=function(s){var u=s.action||s;return Ne[Te][Wt].push(u),o(s)};return Object.assign(i,{dispatch:a})}}}function Qn(e){return function(){return _e(_e.apply(null,arguments),pi())}}function At(e){return e?Wo(e)?e:[e]:[]}function qa(e){for(var t=e||Array.prototype.slice.call(arguments),n,r=0;r<t.length;r++)if(ae(t[r])){n=t[r];break}return n}function Ka(){return new Date().getTime()}function Fa(e,t){return function(n){t&&t(n),e(n)}}function Yn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=Ae();return t&&(Ue[r]=Fa(t,qa(n))),I(I({},e),{},{rid:r,ts:Ka()},t?{hasCallback:!0}:{})}function Ga(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.reducers||{},n=e.initialUser||{},r=(e.plugins||[]).reduce(function(l,m){if(ae(m))return l.middlewares=l.middlewares.concat(m),l;if(m.NAMESPACE&&(m.name=m.NAMESPACE),!m.name)throw new Error(Qo+"1");var O=m.EVENTS?Object.keys(m.EVENTS).map(function(H){return m.EVENTS[H]}):[],k=m.enabled!==!1,M=!(m.config&&m.config.enabled===!1);l.pluginEnabled[m.name]=k&&M,delete m.enabled,m.methods&&(l.methods[m.name]=Object.keys(m.methods).reduce(function(H,V){return H[V]=b(m.methods[V]),H},{}),delete m.methods);var U=Object.keys(m),W=U.concat(O),K=new Set(l.events.concat(W));if(l.events=Array.from(K),l.pluginsArray=l.pluginsArray.concat(m),l.plugins[m.name])throw new Error(m.name+"AlreadyLoaded");return l.plugins[m.name]=m,l.plugins[m.name].loaded||(l.plugins[m.name].loaded=function(){return!0}),l},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=e.storage?e.storage:{getItem:de,setItem:le,removeItem:Ie},o=ra(i),a=r.plugins,s=r.events.filter(function(l){return!Vt.includes(l)}).sort(),u=new Set(s.concat(ot).filter(function(l){return!Vt.includes(l)})),c=Array.from(u).sort(),d=function(){return a},p=new Ia,g=p.addMiddleware,x=p.removeMiddleware,y=p.dynamicMiddlewares,A=function(){throw new Error("Abort disabled inListener")},v=Ro(),f=ni(i),w=I(I(I(I({},f),n),v.an_uid?{userId:v.an_uid}:{}),v.an_aid?{anonymousId:v.an_aid}:{});w.anonymousId||(w.anonymousId=Ae());var j=I({enable:function(l,m){return new Promise(function(O){D.dispatch({type:N.enablePlugin,plugins:At(l),_:{originalAction:N.enablePlugin}},O,[m])})},disable:function(l,m){return new Promise(function(O){D.dispatch({type:N.disablePlugin,plugins:At(l),_:{originalAction:N.disablePlugin}},O,[m])})}},r.methods),S={identify:(function(){var l=se(B.mark(function O(k,M,U,W){var K,H,V,X,Ge;return B.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return K=et(k)?k:null,H=ne(k)?k:M,V=U||{},X=S.user(),le(fn(ge),K),Ge=K||H.userId||o(ge,S,H),Je.abrupt("return",new Promise(function(Ji){D.dispatch(I({type:N.identifyStart,userId:Ge,traits:H||{},options:V,anonymousId:X.anonymousId},X.id&&X.id!==K&&{previousId:X.id}),Ji,[M,U,W])}));case 7:case"end":return Je.stop()}},O)}));function m(O,k,M,U){return l.apply(this,arguments)}return m})(),track:(function(){var l=se(B.mark(function O(k,M,U,W){var K,H,V;return B.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(K=ne(k)?k.event:k,!(!K||!et(K))){X.next=3;break}throw new Error("EventMissing");case 3:return H=ne(k)?k:M||{},V=ne(U)?U:{},X.abrupt("return",new Promise(function(Ge){D.dispatch({type:N.trackStart,event:K,properties:H,options:V,userId:o(ge,S,M),anonymousId:o(ke,S,M)},Ge,[M,U,W])}));case 6:case"end":return X.stop()}},O)}));function m(O,k,M,U){return l.apply(this,arguments)}return m})(),page:(function(){var l=se(B.mark(function O(k,M,U){var W,K;return B.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return W=ne(k)?k:{},K=ne(M)?M:{},H.abrupt("return",new Promise(function(V){D.dispatch({type:N.pageStart,properties:Ma(W),options:K,userId:o(ge,S,W),anonymousId:o(ke,S,W)},V,[k,M,U])}));case 3:case"end":return H.stop()}},O)}));function m(O,k,M){return l.apply(this,arguments)}return m})(),user:function(l){if(l===ge||l==="id")return o(ge,S);if(l===ke||l==="anonId")return o(ke,S);var m=S.getState("user");return l?Nn(m,l):m},reset:function(l){return new Promise(function(m){D.dispatch({type:N.resetStart},m,l)})},ready:function(l){return S.on(N.ready,l)},on:function(l,m){if(!l||!ae(m))return!1;if(l===N.bootstrap)throw new Error(".on disabled for "+l);var O=/Start$|Start:/;if(l==="*"){var k=function(K){return function(H){return function(V){return V.type.match(O)&&m({payload:V,instance:S,plugins:a}),H(V)}}},M=function(K){return function(H){return function(V){return V.type.match(O)||m({payload:V,instance:S,plugins:a}),H(V)}}};return g(k,Qe),g(M,Ye),function(){x(k,Qe),x(M,Ye)}}var U=l.match(O)?Qe:Ye,W=function(K){return function(H){return function(V){return V.type===l&&m({payload:V,instance:S,plugins:a,abort:A}),H(V)}}};return g(W,U),function(){return x(W,U)}},once:function(l,m){if(!l||!ae(m))return!1;if(l===N.bootstrap)throw new Error(".once disabled for "+l);var O=S.on(l,function(k){var M=k.payload;m({payload:M,instance:S,plugins:a,abort:A}),O()});return O},getState:function(l){var m=D.getState();return l?Nn(m,l):Object.assign({},m)},dispatch:function(l){var m=et(l)?{type:l}:l;if(ea(m.type))throw new Error("reserved action "+m.type);var O=l._||{},k=I(I({},m),{},{_:I({originalAction:m.type},O)});D.dispatch(k)},enablePlugin:j.enable,disablePlugin:j.disable,plugins:j,storage:{getItem:i.getItem,setItem:function(l,m,O){D.dispatch({type:N.setItemStart,key:l,value:m,options:O})},removeItem:function(l,m){D.dispatch({type:N.removeItemStart,key:l,options:m})}},setAnonymousId:function(l,m){S.storage.setItem(ye,l,m)},events:{all:c,core:ot,plugins:s}},E=function(l){return function(m){return function(O){return O.meta||(O.meta=Yn()),m(O)}}},P=r.middlewares.concat([E,y(Qe),xa(S,d,{all:c,plugins:s}),Oa(i),ta(S),ia(S),y(Ye)]),T={context:Ra,user:na(i),page:Ua,track:Ea,plugins:ka(d),queue:Ta},L=_e,R=_e;if(fe&&e.debug){var _=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;_&&(L=_({trace:!0,traceLimit:25})),R=function(){return arguments.length===0?pi():ne(Q(arguments[0]))?Qn():Qn().apply(null,arguments)}}var C=$a(e),F=r.pluginsArray.reduce(function(l,m){var O=m.name,k=m.config,M=m.loaded,U=r.pluginEnabled[O];return l[O]={enabled:U,initialized:U?!m.initialize:!1,loaded:!!M(),config:k||{}},l},{}),$={context:C,user:w,plugins:F},D=ti(Xo(I(I({},T),t)),$,R(L(Bo.apply(void 0,Re(P)))));function q(l){return function(m,O,k){var M=Yn(m.meta,O,At(k)),U=I(I({},m),{meta:M});return l.apply(null,[U])}}D.dispatch=q(D.dispatch);var G=Object.keys(a);D.dispatch({type:N.bootstrap,plugins:G,config:C,params:v,user:w,initialUser:n,persistedUser:f});var z=G.filter(function(l){return r.pluginEnabled[l]}),h=G.filter(function(l){return!r.pluginEnabled[l]});D.dispatch({type:N.registerPlugins,plugins:G,enabled:r.pluginEnabled}),r.pluginsArray.map(function(l,m){var O=l.bootstrap,k=l.config,M=l.name;O&&ae(O)&&O({instance:S,config:k,payload:l}),D.dispatch({type:N.registerPluginType(M),name:M,enabled:r.pluginEnabled[M],plugin:l}),r.pluginsArray.length===m+1&&D.dispatch({type:N.initializeStart,plugins:z,disabled:h})}),Ha(function(l){D.dispatch({type:l?N.offline:N.online})}),aa(D,d,S);function b(l){return function(){for(var m=Array.prototype.slice.call(arguments),O=new Array(l.length),k=0;k<m.length;k++)O[k]=m[k];return O[O.length]=S,l.apply({instance:S},O)}}return S}var Qe="before",Ye="after",Oe="cookie",be=mi(),dn=pt,gi=pt;function hi(e){return be?pt(e,"",-1):Ie(e)}function mi(){if(be!==void 0)return be;var e=Oe+Oe;try{pt(e,e),be=document.cookie.indexOf(e)!==-1,hi(e)}catch{be=!1}return be}function pt(e,t,n,r,i,o){if(typeof window<"u"){var a=arguments.length>1;return be===!1&&(a?le(e,t):de(e)),a?document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var ce="localStorage",Ja=ft.bind(null,ce),pn=pe(ce,"getItem",de),Xa=pe(ce,"setItem",le),yi=pe(ce,"removeItem",Ie),$e="sessionStorage",Ba=ft.bind(null,"sessionStorage");pe("sessionStorage","getItem",de);pe("sessionStorage","setItem",le);pe("sessionStorage","removeItem",Ie);var Zn,vi="any",bi="*",Kt=typeof process<"u"?process:{};(Zn=Kt.env)!=null&&Zn.NODE_ENV;var Qa=typeof window<"u";Kt.versions!=null&&Kt.versions.node!=null;typeof Deno<"u"&&Deno.core;Qa&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function gt(e,t){return typeof t===e}gt.bind(null,"function");var Ya=gt.bind(null,"string"),je=gt.bind(null,"undefined");gt.bind(null,"boolean");function Za(e){return e&&(typeof e=="object"||e!==null)}function es(e){if(!Za(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Pe(e){var t=e;try{if((t=JSON.parse(e))==="true")return!0;if(t==="false")return!1;if(es(t))return t;parseFloat(t)===t&&(t=parseFloat(t))}catch{}if(t!==null&&t!=="")return t}var ts=Ja(),ns=Ba(),rs=mi();function wi(e,t){if(e){var n=gn(t),r=!vn(n),i=hn(n)?Pe(localStorage.getItem(e)):void 0;if(r&&!je(i))return i;var o=mn(n)?Pe(dn(e)):void 0;if(r&&o)return o;var a=yn(n)?Pe(sessionStorage.getItem(e)):void 0;if(r&&a)return a;var s=de(e);return r?s:{localStorage:i,sessionStorage:a,cookie:o,global:s}}}function is(e,t,n){if(e&&!je(t)){var r={},i=gn(n),o=JSON.stringify(t),a=!vn(i);return hn(i)&&(r[ce]=Ze(ce,t,Pe(localStorage.getItem(e))),localStorage.setItem(e,o),a)?r[ce]:mn(i)&&(r[Oe]=Ze(Oe,t,Pe(dn(e))),gi(e,o),a)?r[Oe]:yn(i)&&(r[$e]=Ze($e,t,Pe(sessionStorage.getItem(e))),sessionStorage.setItem(e,o),a)?r[$e]:(r[we]=Ze(we,t,de(e)),le(e,t),a?r[we]:r)}}function os(e,t){if(e){var n=gn(t),r=wi(e,bi),i={};return!je(r.localStorage)&&hn(n)&&(localStorage.removeItem(e),i[ce]=r.localStorage),!je(r.cookie)&&mn(n)&&(hi(e),i[Oe]=r.cookie),!je(r.sessionStorage)&&yn(n)&&(sessionStorage.removeItem(e),i[$e]=r.sessionStorage),!je(r.global)&&ht(n,we)&&(Ie(e),i[we]=r.global),i}}function gn(e){return e?Ya(e)?e:e.storage:vi}function hn(e){return ts&&ht(e,ce)}function mn(e){return rs&&ht(e,Oe)}function yn(e){return ns&&ht(e,$e)}function vn(e){return e===bi||e==="all"}function ht(e,t){return e===vi||e===t||vn(e)}function Ze(e,t,n){return{location:e,current:t,previous:n}}var as={setItem:is,getItem:wi,removeItem:os};function ss(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?er(Object(n),!0).forEach(function(r){ss(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function us(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={storage:as};return Ga(tr(tr({},t),e))}function re(e){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(e)}function cs(e,t){if(re(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(re(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ls(e){var t=cs(e,"string");return re(t)=="symbol"?t:t+""}function bn(e,t,n){return(t=ls(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nr(Object(n),!0).forEach(function(r){bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr={exports:{}},ir={exports:{}},or;function Oi(){return or||(or=1,(function(e){function t(n,r){this.v=n,this.k=r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ir)),ir.exports}var ar={exports:{}},sr={exports:{}},ur;function Si(){return ur||(ur=1,(function(e){function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}e.exports=t=function(s,u,c,d){function p(g,x){t(s,g,function(y){return this._invoke(g,x,y)})}u?a?a(s,u,{value:c,enumerable:!d,configurable:!d,writable:!d}):s[u]=c:(p("next",0),p("throw",1),p("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sr)),sr.exports}var cr;function Ai(){return cr||(cr=1,(function(e){var t=Si();function n(){var r,i,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(v,f,w,j){var S=f&&f.prototype instanceof d?f:d,E=Object.create(S.prototype);return t(E,"_invoke",(function(P,T,L){var R,_,C,F=0,$=L||[],D=!1,q={p:0,n:0,v:r,a:G,f:G.bind(r,4),d:function(z,h){return R=z,_=0,C=r,q.n=h,c}};function G(z,h){for(_=z,C=h,i=0;!D&&F&&!b&&i<$.length;i++){var b,l=$[i],m=q.p,O=l[2];z>3?(b=O===h)&&(C=l[(_=l[4])?5:(_=3,3)],l[4]=l[5]=r):l[0]<=m&&((b=z<2&&m<l[1])?(_=0,q.v=h,q.n=l[1]):m<O&&(b=z<3||l[0]>h||h>O)&&(l[4]=z,l[5]=h,q.n=O,_=0))}if(b||z>1)return c;throw D=!0,h}return function(z,h,b){if(F>1)throw TypeError("Generator is already running");for(D&&h===1&&G(h,b),_=h,C=b;(i=_<2?r:C)||!D;){R||(_?_<3?(_>1&&(q.n=-1),G(_,C)):q.n=C:q.v=C);try{if(F=2,R){if(_||(z="next"),i=R[z]){if(!(i=i.call(R,C)))throw TypeError("iterator result is not an object");if(!i.done)return i;C=i.value,_<2&&(_=0)}else _===1&&(i=R.return)&&i.call(R),_<2&&(C=TypeError("The iterator does not provide a '"+z+"' method"),_=1);R=r}else if((i=(D=q.n<0)?C:P.call(T,q))!==c)break}catch(l){R=r,_=1,C=l}finally{F=1}}return{value:i,done:D}}})(v,w,j),!0),E}var c={};function d(){}function p(){}function g(){}i=Object.getPrototypeOf;var x=[][a]?i(i([][a]())):(t(i={},a,function(){return this}),i),y=g.prototype=d.prototype=Object.create(x);function A(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,g):(v.__proto__=g,t(v,s,"GeneratorFunction")),v.prototype=Object.create(y),v}return p.prototype=g,t(y,"constructor",g),t(g,"constructor",p),p.displayName="GeneratorFunction",t(g,s,"GeneratorFunction"),t(y),t(y,s,"Generator"),t(y,a,function(){return this}),t(y,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:u,m:A}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(ar)),ar.exports}var lr={exports:{}},fr={exports:{}},dr={exports:{}},pr;function Ii(){return pr||(pr=1,(function(e){var t=Oi(),n=Si();function r(i,o){function a(u,c,d,p){try{var g=i[u](c),x=g.value;return x instanceof t?o.resolve(x.v).then(function(y){a("next",y,d,p)},function(y){a("throw",y,d,p)}):o.resolve(x).then(function(y){g.value=y,d(g)},function(y){return a("throw",y,d,p)})}catch(y){p(y)}}var s;this.next||(n(r.prototype),n(r.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(u,c,d){function p(){return new o(function(g,x){a(u,d,g,x)})}return s=s?s.then(p,p):p()},!0)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(dr)),dr.exports}var gr;function ki(){return gr||(gr=1,(function(e){var t=Ai(),n=Ii();function r(i,o,a,s,u){return new n(t().w(i,o,a,s),u||Promise)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(fr)),fr.exports}var hr;function fs(){return hr||(hr=1,(function(e){var t=ki();function n(r,i,o,a,s){var u=t(r,i,o,a,s);return u.next().then(function(c){return c.done?c.value:u.next()})}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(lr)),lr.exports}var mr={exports:{}},yr;function ds(){return yr||(yr=1,(function(e){function t(n){var r=Object(n),i=[];for(var o in r)i.unshift(o);return function a(){for(;i.length;)if((o=i.pop())in r)return a.value=o,a.done=!1,a;return a.done=!0,a}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mr)),mr.exports}var vr={exports:{}},br={exports:{}},wr;function ps(){return wr||(wr=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(br)),br.exports}var xr;function gs(){return xr||(xr=1,(function(e){var t=ps().default;function n(r){if(r!=null){var i=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],o=0;if(i)return i.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}}}throw new TypeError(t(r)+" is not iterable")}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(vr)),vr.exports}var Or;function hs(){return Or||(Or=1,(function(e){var t=Oi(),n=Ai(),r=fs(),i=ki(),o=Ii(),a=ds(),s=gs();function u(){var c=n(),d=c.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(d):d.__proto__).constructor;function g(A){var v=typeof A=="function"&&A.constructor;return!!v&&(v===p||(v.displayName||v.name)==="GeneratorFunction")}var x={throw:1,return:2,break:3,continue:3};function y(A){var v,f;return function(w){v||(v={stop:function(){return f(w.a,2)},catch:function(){return w.v},abrupt:function(j,S){return f(w.a,x[j],S)},delegateYield:function(j,S,E){return v.resultName=S,f(w.d,s(j),E)},finish:function(j){return f(w.f,j)}},f=function(j,S,E){w.p=v.prev,w.n=v.next;try{return j(S,E)}finally{v.next=w.n}}),v.resultName&&(v[v.resultName]=w.v,v.resultName=void 0),v.sent=w.v,v.next=w.n;try{return A.call(this,v)}finally{w.p=v.prev,w.n=v.next}}}return(e.exports=u=function(){return{wrap:function(A,v,f,w){return c.w(y(A),v,f,w&&w.reverse())},isGeneratorFunction:g,mark:c.m,awrap:function(A,v){return new t(A,v)},AsyncIterator:o,async:function(A,v,f,w,j){return(g(v)?i:r)(y(A),v,f,w,j)},keys:a,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports})(rr)),rr.exports}var It,Sr;function ms(){if(Sr)return It;Sr=1;var e=hs()();It=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return It}var ys=ms(),J=xi(ys);function Ar(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function oe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(u){Ar(o,r,i,a,s,"next",u)}function s(u){Ar(o,r,i,a,s,"throw",u)}a(void 0)})}}var Ir=function(){};function vs(e,t){var n,r,i,o=(t=t||{}).initial||[],a=t.max||1/0,s=t.interval||1e4,u=t.onEmpty||Ir,c=t.onPause||Ir;function d(g){clearInterval(n);var x=o.splice(0,a);return x.length&&e(x,o),o.length?g?d():p():(i=!1,u(o))}function p(){i=!0,n=setInterval(d,s)}return o.length&&p(),{flush:function(g){d(g)},resume:d,push:function(g){return(r=o.push(g))>=a&&!t.throttle&&d(),i||p(),r},size:function(){return o.length},pause:function(g){g&&d(),clearInterval(n),i=!1,c(o)}}}var mt="sessionStorage";ft.bind(null,mt);var bs=pe(mt,"getItem",de),ws=pe(mt,"setItem",le);pe(mt,"removeItem",Ie);var tt="__",yt="session",ji=tt+yt,Ei="page",kr=["id","createdAt","created"];function Ft(e){var t=e?new Date(e):new Date;return[t.toISOString(),t.getTime()]}function Pi(){var e=Ft(),t=e[0],n=e[1];return{id:Ae(),created:n,createdAt:t}}var xs={session:[bs,ws],page:[de,le]};function vt(e,t){for(var n=xs[e],r=n[0],i=n[1],o=Pi(),a=!1,s={},u=0;u<kr.length;u++){var c=kr[u],d=tt+e+tt+yt+tt+c,p=r(d);a=t||!p,(t||!t&&!p)&&i(d,o[c]);var g=p&&!t?p:o[c],x=c!=="created"?g:Number(g);s[c]=x}return wn(s,a)}function wn(e,t){var n=Date.now();return e.elapsed=n-e.created,e.expires&&(e.remaining=Math.max(e.expires-n,0),e.isExpired=e.remaining===0),e.isNew=t,e}function qe(e,t){e===void 0&&(e=30);var n=dn(ji),r=n?JSON.parse(n):at(e);return t?r:wn(r,!n)}function at(e,t,n){e===void 0&&(e=30);var r=n?qe(e,!0):Pi(),i=60*e,o=r.created;if(n){var a=Ft(),s=a[0],u=a[1];r.modified=u,r.modifiedAt=s,o=u}var c=Ft(o+1e3*i),d=c[0];return r.expires=c[1],r.expiresAt=d,r.duration=1e3*i,t&&(r=Object.assign(r,t)),gi(ji,JSON.stringify(r),i),wn(r,!n)}var Os=function(e,t){return at(e,t,!0)},Ti=vt.bind(null,yt),Ss=vt.bind(null,yt,!0),xn=vt.bind(null,Ei),jr=vt.bind(null,Ei,!0),Se=typeof window<"u";function As(e){return typeof e=="string"}function Er(e){return typeof e=="boolean"}var kt,Pr;function Is(){if(Pr)return kt;Pr=1;var e=function(f){return t(f)&&!n(f)};function t(f){return!!f&&typeof f=="object"}function n(f){var w=Object.prototype.toString.call(f);return w==="[object RegExp]"||w==="[object Date]"||o(f)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(f){return f.$$typeof===i}function a(f){return Array.isArray(f)?[]:{}}function s(f,w){return w.clone!==!1&&w.isMergeableObject(f)?A(a(f),f,w):f}function u(f,w,j){return f.concat(w).map(function(S){return s(S,j)})}function c(f,w){if(!w.customMerge)return A;var j=w.customMerge(f);return typeof j=="function"?j:A}function d(f){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(f).filter(function(w){return Object.propertyIsEnumerable.call(f,w)}):[]}function p(f){return Object.keys(f).concat(d(f))}function g(f,w){try{return w in f}catch{return!1}}function x(f,w){return g(f,w)&&!(Object.hasOwnProperty.call(f,w)&&Object.propertyIsEnumerable.call(f,w))}function y(f,w,j){var S={};return j.isMergeableObject(f)&&p(f).forEach(function(E){S[E]=s(f[E],j)}),p(w).forEach(function(E){x(f,E)||(g(f,E)&&j.isMergeableObject(w[E])?S[E]=c(E,j)(f[E],w[E],j):S[E]=s(w[E],j))}),S}function A(f,w,j){j=j||{},j.arrayMerge=j.arrayMerge||u,j.isMergeableObject=j.isMergeableObject||e,j.cloneUnlessOtherwiseSpecified=s;var S=Array.isArray(w),E=Array.isArray(f),P=S===E;return P?S?j.arrayMerge(f,w,j):y(f,w,j):s(w,j)}A.all=function(f,w){if(!Array.isArray(f))throw new Error("first argument should be an array");return f.reduce(function(j,S){return A(j,S,w)},{})};var v=A;return kt=v,kt}var ks=Is(),js=xi(ks);var Gt=new TextEncoder,Es={appstream2:"appstream",cloudhsmv2:"cloudhsm",email:"ses",marketplace:"aws-marketplace",mobile:"AWSMobileHubService",pinpoint:"mobiletargeting",queue:"sqs","git-codecommit":"codecommit","mturk-requester-sandbox":"mturk-requester","personalize-runtime":"personalize"},Ps=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]),Jt=class{constructor({accessKeyId:t,secretAccessKey:n,sessionToken:r,service:i,region:o,cache:a,retries:s,initRetryMs:u}){if(t==null)throw new TypeError("accessKeyId is a required option");if(n==null)throw new TypeError("secretAccessKey is a required option");this.accessKeyId=t,this.secretAccessKey=n,this.sessionToken=r,this.service=i,this.region=o,this.cache=a||new Map,this.retries=s??10,this.initRetryMs=u||50}async sign(t,n){if(t instanceof Request){let{method:o,url:a,headers:s,body:u}=t;n=Object.assign({method:o,url:a,headers:s},n),n.body==null&&s.has("Content-Type")&&(n.body=u!=null&&s.has("X-Amz-Content-Sha256")?u:await t.clone().arrayBuffer()),t=a}let r=new Xt(Object.assign({url:t.toString()},n,this,n&&n.aws)),i=Object.assign({},n,await r.sign());delete i.aws;try{return new Request(i.url.toString(),i)}catch(o){if(o instanceof TypeError)return new Request(i.url.toString(),Object.assign({duplex:"half"},i));throw o}}async fetch(t,n){for(let r=0;r<=this.retries;r++){let i=fetch(await this.sign(t,n));if(r===this.retries)return i;let o=await i;if(o.status<500&&o.status!==429)return o;await new Promise(a=>setTimeout(a,Math.random()*this.initRetryMs*Math.pow(2,r)))}throw new Error("An unknown error occurred, ensure retries is not negative")}},Xt=class{constructor({method:t,url:n,headers:r,body:i,accessKeyId:o,secretAccessKey:a,sessionToken:s,service:u,region:c,cache:d,datetime:p,signQuery:g,appendSessionToken:x,allHeaders:y,singleEncode:A}){if(n==null)throw new TypeError("url is a required option");if(o==null)throw new TypeError("accessKeyId is a required option");if(a==null)throw new TypeError("secretAccessKey is a required option");this.method=t||(i?"POST":"GET"),this.url=new URL(n),this.headers=new Headers(r||{}),this.body=i,this.accessKeyId=o,this.secretAccessKey=a,this.sessionToken=s;let v,f;(!u||!c)&&([v,f]=Ts(this.url,this.headers)),this.service=u||v||"",this.region=c||f||"us-east-1",this.cache=d||new Map,this.datetime=p||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=g,this.appendSessionToken=x||this.service==="iotdevicegateway",this.headers.delete("Host"),this.service==="s3"&&!this.signQuery&&!this.headers.has("X-Amz-Content-Sha256")&&this.headers.set("X-Amz-Content-Sha256","UNSIGNED-PAYLOAD");let w=this.signQuery?this.url.searchParams:this.headers;if(w.set("X-Amz-Date",this.datetime),this.sessionToken&&!this.appendSessionToken&&w.set("X-Amz-Security-Token",this.sessionToken),this.signableHeaders=["host",...this.headers.keys()].filter(S=>y||!Ps.has(S)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map(S=>S+":"+(S==="host"?this.url.host:(this.headers.get(S)||"").replace(/\s+/g," "))).join(`
@@ -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.3 */
4
- import{a as Y}from"./CBKQTORK.js";import{a as J}from"./KBLPMITD.js";import{a as F}from"./SX7UPBDJ.js";import{a as w}from"./O54ZAB7T.js";import{a as W,b as H}from"./73LPW6HI.js";import{d as N,g as B,h as V,i as X}from"./QJKMWAAC.js";import{b as h,c as E}from"./COTPDOLY.js";import{m as u,p as T}from"./XNOOSNTL.js";import"./5Y5BCNBZ.js";import"./EEX52KRD.js";import"./4YPEHTUX.js";import{b as S,d as C,f as R}from"./7QKWZ3QG.js";import"./O63FAHCT.js";import{i as j}from"./6D2BWWQ3.js";import"./6MYJZ4IH.js";import{a as m,c as M,e as P,i as l}from"./YTWTPLD5.js";import"./ZEUQ2XUT.js";import"./VKZHDM2Y.js";import"./3ZCXZTSQ.js";import{a as A,b as O}from"./3ODSPQ4S.js";import{s as L}from"./2H3MHHNZ.js";import"./ICTMP3P3.js";import"./PPPHSH43.js";import{a as f}from"./6PWGQ66L.js";import"./G3OMPKZM.js";import"./H43YAQQN.js";import{b as g}from"./6TD6ORJT.js";import"./NFBFHGJM.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
3
+ v1.1.5 */
4
+ import{a as Y}from"./E6WEKFDH.js";import{a as J}from"./LAOJHBJU.js";import{a as F}from"./WSVBZSJV.js";import{a as w}from"./CYTWYR7X.js";import{a as W,b as H}from"./6SR62O3L.js";import{d as N,g as B,h as V,i as X}from"./HS3HXJAE.js";import{b as h,c as E}from"./VBUY7UZD.js";import{m as u,p as T}from"./R6COI5BF.js";import"./OYM7PRZW.js";import"./2DCQYFBB.js";import"./EDAOFXZZ.js";import{b as S,d as C,f as R}from"./XLOESN2G.js";import"./HJ4CBAOI.js";import{i as j}from"./TSE4T2RO.js";import"./3JJFCPWE.js";import{a as m,c as M,e as P,i as l}from"./462W4TZ3.js";import"./DHGCOXVG.js";import"./HPTION7V.js";import"./SPWZIAIS.js";import{a as A,b as O}from"./5FZ4QAHO.js";import{s as L}from"./3GWQY4PS.js";import"./HJAQTCS6.js";import"./6JKRMJTG.js";import{a as f}from"./4M355TO2.js";import"./SM3QZXOO.js";import"./IN4GUM3K.js";import{b as g}from"./HFTLCY67.js";import"./MBQWZGFR.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
+ v1.1.5 */
4
+ import{b as m}from"./QBOMJSQQ.js";import{c as S}from"./UCM5SJBM.js";import{b as u}from"./A6LMQW4G.js";import{m as c}from"./EVXTOWTJ.js";import{a as g}from"./T6NTJXMA.js";import"./MV45U2M4.js";import"./AXBSU3HJ.js";import{b as d}from"./NONG5KLI.js";import{E as p,I as a,h,i as o,o as n}from"./R4MIR22R.js";import"./MBQWZGFR.js";var y=h`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */.toolbar-sizing{padding-right:0;padding-left:0;margin-left:auto;margin-right:auto;box-sizing:border-box}.flex-row{display:flex;flex-direction:row}.flex-grow-1{flex-grow:1}calcite-input-text{--calcite-input-text-border-color: transparent;--calcite-color-border-input: transparent;--calcite-color-focus: transparent}calcite-dropdown{--calcite-color-focus: transparent}`,l=class extends p{constructor(){super(),this.defaultSortType="relevance",this.isOrgSolutions=!1,this.isMobile=!1,this._activeSearchSortSettings=[{scope:"all-solutions",settings:{enabled:!0,isOrgSolutions:!1,searchTerm:"",sortType:"relevance"}},{scope:"deployments",settings:{enabled:!0,isOrgSolutions:!1,searchTerm:"",sortType:"created"}}],this._isOrgAdmin=!1,this._translations=g({name:"solutions-searchsort-toolbar",blocking:!0}),this._authContextConsumer=u({context:S,subscribe:!0}),this.searchChanged=n(),this.sortTypeChanged=n(),this.listenOn(window,"deployAppTabSelected",e=>{let t=e.detail;this.scope=t}),this.listenOn(window,"detailsCardSelected",()=>{this.scope=void 0}),this.listenOn(window,"searchTermSet",e=>{let t=e.detail;this.scope=t.scope,this.changeSearchFilter(t.searchTerm,!1)})}static{this.properties={defaultSortType:[0,{type:String,attribute:"default-sort-type"}],isOrgSolutions:5,isMobile:5,scope:1,_activeSearchSortSettings:16,_isOrgAdmin:16,_translations:16}}static{this.styles=y}changeOwnerFilter(e){this.isOrgSolutions=!e,this._activeSearchSortSettings=this._activeSearchSortSettings.map(s=>s.scope===this.scope?{...s,settings:{...s.settings,isOrgSolutions:this.isOrgSolutions}}:s);let t={displayValue:this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions,type:"owner",value:this.isOrgSolutions?c.ORGANIZATION:c.OWNER};this.searchChanged.emit({option:t,scope:this.scope})}changeSearchFilter(e,t){let s=this._activeSearchSortSettings.map(r=>r.scope===this.scope?{...r,settings:{...r.settings,searchTerm:e}}:r),i=JSON.stringify(this._activeSearchSortSettings)!==JSON.stringify(s);this._activeSearchSortSettings=s,t&&i&&this.searchChanged.emit({option:{searchTerm:e},scope:this.scope})}sortChanged(e){this._activeSearchSortSettings=this._activeSearchSortSettings.map(t=>t.scope===this.scope?{...t,settings:{...t.settings,sortType:e}}:t),this.sortTypeChanged.emit({sortType:e,scope:this.scope})}willUpdate(){this._authContextConsumer.value&&this._authContextConsumer.value.IsSignedIn!==this._isOrgAdmin&&(this._isOrgAdmin=m(this._authContextConsumer.value))}render(){let e=this.scope==="all-solutions"||this.scope==="deployments",t=e?this._getCurrentScopeSetting():void 0;return e?o`<div class="flex-row toolbar-sizing"><calcite-input-text class="flex-grow-1" clearable icon=search @keyup=${s=>{let i=s.target;s.key==="Enter"?this.changeSearchFilter(i.value,!0):this.changeSearchFilter(i.value,i.value.length>=3||i.value.length===0)}} @blur=${s=>{let i=s.target;this.changeSearchFilter(i.value,!0)}} .placeholder=${this._translations.search.solutions} scale=l slot=content-top .value=${t?.searchTerm}></calcite-input-text>${this.scope==="deployments"&&this._isOrgAdmin&&this._renderOwnerBlock()||""}${this._renderDropdown()}</div>`:""}_renderOwnerBlock(){return o`<calcite-dropdown width=m overlay-positioning=fixed><calcite-button appearance=transparent class="header-button-padding" .iconStart=${this.isOrgSolutions?"organization":"user"} kind=neutral slot=trigger>${this.isMobile?"":this.isOrgSolutions?this._translations.myOrgSolutions:this._translations.mySolutions}</calcite-button><calcite-dropdown-group group-title=${this._translations.owner??a}><calcite-dropdown-item icon-start=user @click=${()=>{this.changeOwnerFilter(!0)}} .selected=${!this.isOrgSolutions}>${this._translations.mySolutions}</calcite-dropdown-item><calcite-dropdown-item icon-start=organization @click=${()=>{this.changeOwnerFilter(!1)}} .selected=${this.isOrgSolutions}>${this._translations.myOrgSolutions}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_renderDropdown(){let e=[];e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"}],this.scope==="deployments"?e.push({displayValue:this._translations.sortByDateDeployed,sortType:"created"}):(e.push({displayValue:this._translations.sortByNew,sortType:"new"}),e.push({displayValue:this._translations.sortByUpdated,sortType:"updated"}),this._authContextConsumer.value&&this._authContextConsumer.value.IsSignedIn&&e.push({displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"}));let t=this._getCurrentScopeSetting();return o`<calcite-dropdown width=m><calcite-button appearance=transparent class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this.isMobile?"":this._getString(t.sortType)}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??a}>${e.map(s=>this._getDropdownItem(s.displayValue,s.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(e,t){return this._getCurrentScopeSetting().sortType!==t?o`<calcite-dropdown-item @click=${()=>this.sortChanged(t)}>${e}</calcite-dropdown-item>`:o`<calcite-dropdown-item @click=${()=>this.sortChanged(t)} selected>${e}</calcite-dropdown-item>`}_getString(e){let t="";switch(e){case"new":t=this._translations.sortByNew;break;case"relevance":t=this._translations.sortByRelevance;break;case"suggested":t=this._translations.sortBySuggestedForYou;break;case"title":t=this._translations.sortByTitle;break;case"updated":t=this._translations.sortByUpdated;break;case"created":t=this._translations.sortByDateDeployed;break}return t}_getCurrentScopeSetting(){return this._activeSearchSortSettings.filter(e=>e.scope===this.scope)[0].settings}};d("solutions-searchsort-toolbar",l);export{l as SolutionsSearchSortToolbar};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
+ v1.1.5 */
4
+ import{a,b}from"./RBV7YLCJ.js";import"./IN4GUM3K.js";import"./MBQWZGFR.js";export{a as ChannelEditorTypes,b as ChannelSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.3 */
4
- import{a as m,b as o,c as T,d as E}from"./EQU7VQR5.js";import{a as t,b as e}from"./UJAV7SOQ.js";import{a as n,c as i,e as a,f as r,i as s,k as p}from"./GL7RXZ2L.js";import"./NFBFHGJM.js";var l=()=>({$async:!0,required:["name","startDate","endDate","timeZone"],properties:{name:n,description:{type:"string"},_thumbnail:p,attendanceType:{type:"string",enum:[t.InPerson,t.Online,t.Both],default:t.InPerson},startDate:{type:"string",format:"date"},endDate:{type:"string",format:"date",formatMinimum:{$data:"1/startDate"}},startTime:{type:"string"},endTime:{type:"string"},isAllDay:{type:"boolean",default:!1},timeZone:{type:"string"},inPersonCapacity:{type:"number"},inPersonCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},location:Object.assign(Object.assign({},s),{allOf:[{if:{properties:{type:{enum:["custom","org"]}}},then:{required:["name"]}}]}),onlineUrl:{type:"string"},onlineDetails:{type:"string"},onlineCapacity:{type:"number"},onlineCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},summary:i,tags:a,categories:r},allOf:[o,m,T,E]});export{l as buildSchema};
3
+ v1.1.5 */
4
+ import{a as m,b as o,c as T,d as E}from"./NS3JF257.js";import{a as t,b as e}from"./U7VDTXKM.js";import{a as n,c as i,e as a,f as r,i as s,k as p}from"./DH47CO66.js";import"./MBQWZGFR.js";var l=()=>({$async:!0,required:["name","startDate","endDate","timeZone"],properties:{name:n,description:{type:"string"},_thumbnail:p,attendanceType:{type:"string",enum:[t.InPerson,t.Online,t.Both],default:t.InPerson},startDate:{type:"string",format:"date"},endDate:{type:"string",format:"date",formatMinimum:{$data:"1/startDate"}},startTime:{type:"string"},endTime:{type:"string"},isAllDay:{type:"boolean",default:!1},timeZone:{type:"string"},inPersonCapacity:{type:"number"},inPersonCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},location:Object.assign(Object.assign({},s),{allOf:[{if:{properties:{type:{enum:["custom","org"]}}},then:{required:["name"]}}]}),onlineUrl:{type:"string"},onlineDetails:{type:"string"},onlineCapacity:{type:"number"},onlineCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},summary:i,tags:a,categories:r},allOf:[o,m,T,E]});export{l as buildSchema};
@@ -1,6 +1,6 @@
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.3 */
3
+ v1.1.5 */
4
4
  var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},I=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var j=Symbol.for("controller"),ue=o=>typeof o=="object"&&o!==null&&(j in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),as=o=>typeof o?.then=="function";var k,O=o=>{k!==o&&(k=o,queueMicrotask(()=>k===o?k=void 0:0))},H=o=>k,w=[],Rt=o=>{if(o===void 0){w=[];return}let t=w.indexOf(o);w=t===-1?[...w,o]:w.slice(0,t+1),queueMicrotask(()=>w=[])},Mt=()=>w,L,cs=o=>{L!==o&&(L=o,queueMicrotask(()=>L===o?L=void 0:0))},fe=()=>{let o=L;return L=void 0,o},It=async(o,t)=>{let e=Y(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(r=>t(r,s))}return e.exports},kt=async o=>{let t=Y(o);return await t.ready,t},Y=o=>{let e=H().manager.X(o);if(e!==void 0)return e;if(ue(o))return o;let s=fe();if(s!==void 0)return s},Q=!1,ls=o=>{Q=!0;try{return o()}finally{Q=!1}};var Z=globalThis,X=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ut=Symbol(),jt=new WeakMap,z=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ut)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(X&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=jt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&jt.set(e,t))}return t}toString(){return this.cssText}},Ht=o=>new z(typeof o=="string"?o:o+"",void 0,ut),me=(o,...t)=>{let e=o.length===1?o[0]:t.reduce(((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1]),o[0]);return new z(e,o,ut)},zt=(o,t)=>{if(X)o.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),r=Z.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},ft=X?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Ht(e)})(o):o;var{is:ye,defineProperty:ge,getOwnPropertyDescriptor:ve,getOwnPropertyNames:Ee,getOwnPropertySymbols:$e,getPrototypeOf:be}=Object,et=globalThis,Vt=et.trustedTypes,_e=Vt?Vt.emptyScript:"",Ae=et.reactiveElementPolyfillSupport,V=(o,t)=>o,tt={toAttribute(o,t){switch(t){case Boolean:o=o?_e:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},B=(o,t)=>!ye(o,t),Bt={attribute:!0,type:String,converter:tt,reflect:!1,useDefault:!1,hasChanged:B};Symbol.metadata??=Symbol("metadata"),et.litPropertyMetadata??=new WeakMap;var b=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Bt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&ge(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){let{get:r,set:i}=ve(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Bt}static _$Ei(){if(this.hasOwnProperty(V("elementProperties")))return;let t=be(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(V("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(V("properties"))){let e=this.properties,s=[...Ee(e),...$e(e)];for(let r of s)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)e.unshift(ft(r))}else t!==void 0&&e.push(ft(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let i=(s.converter?.toAttribute!==void 0?s.converter:tt).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=s.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:tt;this._$Em=r;let a=n.fromAttribute(e,i.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let r=this.constructor,i=this[t];if(s??=r.getPropertyOptions(t),!((s.hasChanged??B)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:r,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,i]of s){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[V("elementProperties")]=new Map,b[V("finalized")]=new Map,Ae?.({ReactiveElement:b}),(et.reactiveElementVersions??=[]).push("2.1.1");var yt=globalThis,st=yt.trustedTypes,Wt=st?st.createPolicy("lit-html",{createHTML:o=>o}):void 0,gt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,vt="?"+_,Ce=`<${vt}>`,P=document,F=()=>P.createComment(""),q=o=>o===null||typeof o!="object"&&typeof o!="function",Et=Array.isArray,Qt=o=>Et(o)||typeof o?.[Symbol.iterator]=="function",mt=`[
5
5
  \f\r]`,W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,qt=/>/g,T=RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
6
6
  \f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,$t=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=$t(1),ys=$t(2),gs=$t(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Jt=new WeakMap,S=P.createTreeWalker(P,129);function Zt(o,t){if(!Et(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Xt=(o,t)=>{let e=o.length-1,s=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=W;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===W?u[1]==="!--"?n=Ft:u[1]!==void 0?n=qt:u[2]!==void 0?(Yt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=T):u[3]!==void 0&&(n=T):n===T?u[0]===">"?(n=r??W,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?T:u[3]==='"'?Kt:Gt):n===Kt||n===Gt?n=T:n===Ft||n===qt?n=W:(n=T,r=void 0);let g=n===T&&o[a+1].startsWith("/>")?" ":"";i+=n===W?c+Ce:h>=0?(s.push(l),c.slice(0,h)+gt+c.slice(h)+_+g):c+_+(h===-2?a:g)}return[Zt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},G=class o{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Xt(t,e);if(this.el=o.createElement(l,s),S.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=S.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(gt)){let y=u[n++],g=r.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?rt:C[1]==="?"?it:C[1]==="@"?nt:x}),r.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Yt.test(r.tagName)){let h=r.textContent.split(_),y=h.length-1;if(y>0){r.textContent=st?st.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],F()),S.nextNode(),c.push({type:2,index:++i});r.append(h[y],F())}}}else if(r.nodeType===8)if(r.data===vt)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:i}),h+=_.length-1}i++}}static createElement(t,e){let s=P.createElement("template");return s.innerHTML=t,s}};function N(o,t,e=o,s){if(t===f)return t;let r=s!==void 0?e._$Co?.[s]:e._$Cl,i=q(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=r:e._$Cl=r),r!==void 0&&(t=N(o,r._$AS(o,t.values),r,s)),t}var ot=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,r=(t?.creationScope??P).importNode(e,!0);S.currentNode=r;let i=S.nextNode(),n=0,a=0,c=s[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new R(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new at(i,this,t)),this._$AV.push(l),c=s[++a]}n!==c?.index&&(i=S.nextNode(),n++)}return S.currentNode=P,r}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},R=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=N(this,t,e),q(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&q(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=G.createElement(Zt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new ot(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Jt.get(t.strings);return e===void 0&&Jt.set(t.strings,e=new G(t)),e}k(t){Et(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,r=0;for(let i of t)r===e.length?e.push(s=new o(this.O(F()),this.O(F()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},x=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,r){let i=this.strings,n=!1;if(i===void 0)t=N(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=N(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),n||=!q(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends x{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},it=class extends x{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},nt=class extends x{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=N(this,t,e,0)??d)===f)return;let s=this._$AH,r=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},at=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}},te={M:gt,P:_,A:vt,C:1,L:Xt,R:ot,D:Qt,V:N,I:R,H:x,N:it,U:nt,B:rt,F:at},we=yt.litHtmlPolyfillSupport;we?.(G,R),(yt.litHtmlVersions??=[]).push("3.3.1");var bt=(o,t,e)=>{let s=e?.renderBefore??t,r=s._$litPart$;if(r===void 0){let i=e?.renderBefore??null;s._$litPart$=r=new R(t.insertBefore(F(),i),i,void 0,e??{})}return r._$AI(o),r};var _t=globalThis,A=class extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=bt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};A._$litElement$=!0,A.finalized=!0,_t.litElementHydrateSupport?.({LitElement:A});var Oe=_t.litElementPolyfillSupport;Oe?.({LitElement:A});(_t.litElementVersions??=[]).push("4.2.1");var $=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ee=(o,t)=>{let e=t>Te?Se:t/Pe,s=0,r=setInterval(()=>{s+=e,s>=t&&(clearInterval(r),o())},e);return r},Te=4e3,Se=2e3,Pe=4;var Ne=(o,t,e)=>{let s=Object.keys(o),r=s.length;M===void 0&&queueMicrotask(K),M??=new Map;let i=M.get(o);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(o,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(s)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},M,K=()=>{M?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),M=void 0},xe=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((r,i)=>p(t,void 0,e===i?r:void 0)),e},De=(o=[H(),...Mt()],t,e)=>{let s=Array.isArray(o)?o:[o],r=s.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};s.forEach(n=>Ne(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of s)if("manager"in n&&n.manager.component===n){xe(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ue=(o="",t={},e=H())=>{let s={emit:r=>{o===""&&K();let i=new CustomEvent(o,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return o===""&&De(void 0,r=>o=r.key,s),s},Le=Ue.bind(null,""),re;re=j;var At=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#r=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new $,this.connectedCalled=!1,this.loadedCalled=!1,this[re]=!0,this.#a=[];let e=this,s=t??H(new.target.name);e.#i=s,e.ready=e.P.promise,e.#n=oe(e),e.component=s,e.#i.addController(e),e.#i.manager===void 0||(Rt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#r;#c;#l;#p;#h;#d;#i;catchUpLifecycle(){let{manager:t}=this.#i;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#i.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?oe(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return O(this.#i),It}get useRef(){return O(this.#i),kt}get useRefSync(){return O(this.#i),Y}controllerRemoved(){this.#i.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#i.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await I(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(I)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#o.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(se,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(se,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){O(this.#i);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function se(o){p(o,void 0,this)}var ie=At,oe=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,r,i){if(!((r==="exports"||r==="_exports")&&r in s&&s[r]===e)&&(r in s||r in Promise.prototype||typeof r=="symbol"))return typeof s=="function"?s[r]:Reflect.get(s,r,i)}},e=new Proxy(o,t);return e};var ct=o=>o.replace(Re,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Re=/[A-Z]+(?![a-z])|[A-Z]/gu;var Is="randomUUID"in crypto;var Ot=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Tt={};function St(){}var ke=(o,t)=>function(s,r){if(!globalThis.customElements)return;let n=(r??s??{}).resourcesUrl;n&&o.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(je):void 0,C=g?.map(([U])=>U),D=class extends wt{static{this.observedAttributes=g?.map(([,U])=>U).filter(U=>U!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=o}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},lt=Object.defineProperty,je=o=>{let t=o.split(":");return t.length===1?[t[0],ct(t[0])]:t},He=globalThis.HTMLElement??St,wt=class extends He{constructor(){super(),this.#e={},this.#s=[],this.I=new $,this.H=new $,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#o({a:e.A}):e.B.then(async s=>{await e.K.p,t.#o(await(s.default?.then(r=>typeof r=="function"?{a:r}:r)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])lt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])lt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])lt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Ot(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===s),n=`${s}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);Ve(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ze,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ze([o,t]){this[o]=t}var Ve=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},lt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=o=>(...t)=>({_$litDirective$:o,values:t}),v=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:Be}=te;var ht=o=>o.strings===void 0,ne=()=>document.createComment(""),Gs=(o,t,e)=>{let s=o._$AA.parentNode,r=t===void 0?o._$AB:t._$AA;if(e===void 0){let i=s.insertBefore(ne(),r),n=s.insertBefore(ne(),r);e=new Be(i,n,o,o.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=c.nextSibling;s.insertBefore(c,r),c=l}}}return e},Ks=(o,t,e=o)=>(o._$AI(t,e),o),We={},ae=(o,t=We)=>o._$AH=t,Js=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var Fe=E(class extends v{constructor(o){if(super(o),o.type!==m.PROPERTY&&o.type!==m.ATTRIBUTE&&o.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===m.PROPERTY){if(t===e[s])return f}else if(o.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===m.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ae(o),t}});var J=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),J(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ce=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Ke(t)}};function qe(o){this._$AN!==void 0?(dt(this),this._$AM=o,ce(this)):this._$AM=o}function Ge(o,t=!1,e=0){let s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let i=e;i<s.length;i++)J(s[i],!1),dt(s[i]);else s!=null&&(J(s,!1),dt(s));else J(this,o)}var Ke=o=>{o.type==m.CHILD&&(o._$AP??=Ge,o._$AQ??=qe)},pt=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ce(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(J(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var uo=()=>new Nt,Nt=class{},Pt=new WeakMap,xt=E(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var le=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter((t=>o[t])).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter((s=>s!==""))));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var he="important",Qe=" !"+he,de=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce(((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let r=t[s];if(r!=null){this.ft.add(s);let i=typeof r=="string"&&r.endsWith(Qe);s.includes("-")||i?e.setProperty(s,i?r.slice(0,-11):r,i?he:""):e[s]=r}}return f}});var Dt=class extends ie{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=Ut in t&&typeof t.destroy=="function",A.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Ut} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),K();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),O(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=ee(t,is)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},is=1e3,Ut="autoDestroyDisabled",pe=class o extends A{constructor(){super(),this.M=[],this.manager=new Dt(this);let t=this,e=t.constructor,s=e.N,r=e.K.o,i=o.prototype.shouldUpdate;t.#o=s?.H??new $,t.I=s?.I??new $,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=St,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Tt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??B,n={attribute:s&1&&typeof t=="string"?ct(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){let r=this.K,i=super.getPropertyDescriptor(t,e,s);return s.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){let a=this.manager;if(s.readOnly&&!Q&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);i.set.call(this,n??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(K(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#o;#r;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#o.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===Tt?this.el:this.el.attachShadow(s));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Ot(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(I(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(Ut)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(r=>!r.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#c(t):super.update(t)}listen(t,e,s){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,e,s,r){let i=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(j in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var nr=o=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},s={...o,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=s,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(o.defaultAssetPath),s};var ar=o=>typeof o=="object"&&o!=null?le(o):o,cr=o=>typeof o=="object"&&o!=null?de(o):o;var Lt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,xt(this.#e)):xt(t)}},lr=E(Lt);var hr=d;export{as as a,O as b,H as c,Rt as d,Mt as e,cs as f,ls as g,me as h,ms as i,ys as j,f as k,d as l,xe as m,De as n,Le as o,At as p,ie as q,Tt as r,ke as s,m as t,E as u,v,Gs as w,Ks as x,ae as y,Js as z,Qs as A,Fe as B,uo as C,xt as D,pe as E,nr as F,ar as G,cr as H,hr as I};
@@ -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.3 */
4
- import{a as S}from"./EEX52KRD.js";import{b as d,c as g,i as y,j as N}from"./6D2BWWQ3.js";import{a as I}from"./YTWTPLD5.js";import{a as M,e as E,f as T,g as F}from"./3ZCXZTSQ.js";import{a as $,b as R}from"./2H3MHHNZ.js";import{d as l,e as p,f as c}from"./ICTMP3P3.js";import{a as A}from"./PPPHSH43.js";import{a as x}from"./G3OMPKZM.js";var G=new RegExp(/.+(?:map|feature|image)server/i);function b(t){let e=t.match(G);return e?e[0]:J(t)}function J(t){let e=t.split("?")[0];return c(e)}function xe(t){return l(c(t.url),t)}function Ue(t,e){let r=`${c(t).replace("/rest/services","/rest/admin/services")}/updateDefinition`;return e.params=Object.assign({updateDefinition:{}},e.params),e.updateDefinition&&(e.params.updateDefinition=e.updateDefinition),l(r,e)}function Re(t,e){let r=`${c(t).replace("/rest/services","/rest/admin/services")}/addToDefinition`;return e.params=Object.assign({addToDefinition:{}},e.params),e.layers&&e.layers.length>0&&(e.params.addToDefinition.layers=e.layers),e.tables&&e.tables.length>0&&(e.params.addToDefinition.tables=e.tables),l(r,e)}function Ee(t){let e=`${c(t.url)}/applyEdits`,r=p(t,["adds","updates","deletes","useGlobalIds","attachments","gdbVersion","returnEditMoment","rollbackOnFailure","trueCurveClient"],{params:Object.assign({},t.params)});return l(e,r)}function Le(t){return R(t).then(e=>{let r=Object.assign(Object.assign({},t),{rawResponse:!1}),n=`${$(t)}/content/users/${e}`,a=!r.folderId||r.folderId==="/"?"":"/"+r.folderId,o=`${n}${a}/createService`;return r.params=Object.assign({createParameters:r.item,outputType:"featureService"},r.params),l(o,r)})}function at(t){let e=p(t,["where","objectIds","relationParam","time","distance","units","outFields","geometry","geometryType","spatialRel","returnGeometry","maxAllowableOffset","geometryPrecision","inSR","outSR","gdbVersion","returnDistinctValues","returnIdsOnly","returnCountOnly","returnExtentOnly","orderByFields","groupByFieldsForStatistics","outStatistics","returnZ","returnM","multipatchOption","resultOffset","resultRecordCount","quantizationParameters","returnCentroid","resultType","historicMoment","returnTrueCurves","sqlFormat","returnExceededLimitFeatures","f"],{httpMethod:"GET",params:Object.assign({where:"1=1",outFields:"*"},t.params)});return l(`${c(t.url)}/query`,e)}function st(t){let e=p(t,["objectIds","relationshipId","definitionExpression","outFields"],{httpMethod:"GET",params:Object.assign({definitionExpression:"1=1",outFields:"*",relationshipId:0},t.params)});return l(`${c(t.url)}/queryRelatedRecords`,e)}function L(t,e,r={},n=!1){let a=e.split("."),o=t,i=a.length-1;a.forEach((s,u)=>{!o.hasOwnProperty(s)||o[s]==null?u===i?o[s]=r:o[s]={}:u===i&&(typeof o[s]=="object"&&!Array.isArray(o[s])?n?o[s]=I(r):o[s]=Object.assign(o[s],I(r)):o[s]=r),o=o[s]})}function Lt(t,e,r,n=!1){Array.isArray(t)&&(t=t.join(".")),L(r,t,e,n)}var Z=function(e,r,n,a){var o=(a[0]-n[0])*(e[1]-n[1])-(a[1]-n[1])*(e[0]-n[0]),i=(r[0]-e[0])*(e[1]-n[1])-(r[1]-e[1])*(e[0]-n[0]),s=(a[1]-n[1])*(r[0]-e[0])-(a[0]-n[0])*(r[1]-e[1]);if(s!==0){var u=o/s,f=i/s;if(u>=0&&u<=1&&f>=0&&f<=1)return!0}return!1},Q=function(e,r){for(var n=!1,a=-1,o=e.length,i=o-1;++a<o;i=a)(e[a][1]<=r[1]&&r[1]<e[i][1]||e[i][1]<=r[1]&&r[1]<e[a][1])&&r[0]<(e[i][0]-e[a][0])*(r[1]-e[a][1])/(e[i][1]-e[a][1])+e[a][0]&&(n=!n);return n},K=function(e,r){for(var n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0},j=function(e,r){for(var n=0;n<e.length-1;n++)for(var a=0;a<r.length-1;a++)if(Z(e[n],e[n+1],r[a],r[a+1]))return!0;return!1},U=function(e){return K(e[0],e[e.length-1])||e.push(e[0]),e},D=function(e){var r=0,n=0,a=e.length,o=e[n],i;for(n;n<a-1;n++)i=e[n+1],r+=(i[0]-o[0])*(i[1]+o[1]),o=i;return r>=0},z=function(e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r},Y=function(e,r){var n=j(e,r),a=Q(e,r[0]);return!!(!n&&a)},X=function(e){for(var r=[],n=[],a,o,i,s=0;s<e.length;s++){var u=U(e[s].slice(0));if(!(u.length<4))if(D(u)){var f=[u.slice().reverse()];r.push(f)}else n.push(u.slice().reverse())}for(var m=[];n.length;){i=n.pop();var k=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],Y(o,i)){r[a].push(i),k=!0;break}k||m.push(i)}for(;m.length;){i=m.pop();var w=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],j(o,i)){r[a].push(i),w=!0;break}w||r.push([i.reverse()])}return r.length===1?{type:"Polygon",coordinates:r[0]}:{type:"MultiPolygon",coordinates:r}},q=function(e,r){for(var n=r?[r,"OBJECTID","FID"]:["OBJECTID","FID"],a=0;a<n.length;a++){var o=n[a];if(o in e&&(typeof e[o]=="string"||typeof e[o]=="number"))return e[o]}throw Error("No valid id attribute found")},zt=function t(e,r){var n={};if(e.features){n.type="FeatureCollection",n.features=[];for(var a=0;a<e.features.length;a++)n.features.push(t(e.features[a],r))}if(typeof e.x=="number"&&typeof e.y=="number"&&(n.type="Point",n.coordinates=[e.x,e.y],typeof e.z=="number"&&n.coordinates.push(e.z)),e.points&&(n.type="MultiPoint",n.coordinates=e.points.slice(0)),e.paths&&(e.paths.length===1?(n.type="LineString",n.coordinates=e.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=e.paths.slice(0))),e.rings&&(n=X(e.rings.slice(0))),typeof e.xmin=="number"&&typeof e.ymin=="number"&&typeof e.xmax=="number"&&typeof e.ymax=="number"&&(n.type="Polygon",n.coordinates=[[[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax]]]),(e.geometry||e.attributes)&&(n.type="Feature",n.geometry=e.geometry?t(e.geometry):null,n.properties=e.attributes?z(e.attributes):null,e.attributes))try{n.id=q(e.attributes,r)}catch{}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),e.spatialReference&&e.spatialReference.wkid&&e.spatialReference.wkid!==4326&&console.warn("Object converted in non-standard crs - "+JSON.stringify(e.spatialReference)),n},B=function(e){var r=[],n=e.slice(0),a=U(n.shift().slice(0));if(a.length>=4){D(a)||a.reverse(),r.push(a);for(var o=0;o<n.length;o++){var i=U(n[o].slice(0));i.length>=4&&(D(i)&&i.reverse(),r.push(i))}}return r},ee=function(e){for(var r=[],n=0;n<e.length;n++)for(var a=B(e[n]),o=a.length-1;o>=0;o--){var i=a[o].slice(0);r.push(i)}return r},O=function t(e,r){r=r||"OBJECTID";var n={wkid:4326},a={},o;switch(e.type){case"Point":a.x=e.coordinates[0],a.y=e.coordinates[1],e.coordinates[2]!=null&&(a.z=e.coordinates[2]),a.spatialReference=n;break;case"MultiPoint":a.points=e.coordinates.slice(0),e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"LineString":a.paths=[e.coordinates.slice(0)],e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiLineString":a.paths=e.coordinates.slice(0),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Polygon":a.rings=B(e.coordinates.slice(0)),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiPolygon":a.rings=ee(e.coordinates.slice(0)),e.coordinates[0][0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Feature":e.geometry&&(a.geometry=t(e.geometry,r)),a.attributes=e.properties?z(e.properties):{},e.id&&(a.attributes[r]=e.id);break;case"FeatureCollection":for(a=[],o=0;o<e.features.length;o++)a.push(t(e.features[o],r));break;case"GeometryCollection":for(a=[],o=0;o<e.geometries.length;o++)a.push(t(e.geometries[o],r));break}return a};function h(t,e){return t.indexOf(e)!==-1}function Ht(t){return typeof t=="string"?t.trim().toLowerCase().replace(/ +/g,"-").replace(/[^\w-]/g,"").replace(/-+/g,"-"):t}function _t(t,e,r){if(!t||!t.thumbnail)return null;let{token:n,width:a}=r||{};!n&&typeof r=="string"&&(n=r);let o=N(t,e,n),[i,s]=o.split("?"),u=new URLSearchParams(s);u.delete("f"),a&&u.append("w",a+"");let f=u.toString(),m=`${i}/info/${t.thumbnail}`;return f?`${m}?${f}`:m}var H;(function(t){t.Continual="continual",t.Daily="daily",t.Weekly="weekly",t.Fortnightly="fortnightly",t.Monthly="monthly",t.Quarterly="quarterly",t.Biannually="biannually",t.Annually="annually",t.AsNeeded="as-needed",t.Irregular="irregular",t.NotPlanned="not-planned",t.Unknown="unknown",t.Semimonthly="semimonthly"})(H||(H={}));function C(t,e=[]){return t==="Site Application"||t==="Hub Site Application"||t==="Web Mapping Application"&&e.includes("hubSite")}function Qt(t={}){let e=t.type,r=t.typeKeywords||[];return C(t.type,r)&&(e="Hub Site Application"),(t.type==="Site Page"||t.type==="Web Mapping Application"&&h(r,"hubPage"))&&(e="Hub Page"),t.type==="Hub Initiative"&&h(r,"hubInitiativeTemplate")&&(e="Hub Initiative Template"),t.type==="Web Mapping Application"&&h(r,"hubSolutionTemplate")&&(e="Solution"),e}var v={devext:"dev",qaext:"qa",production:""};var te=t=>E(t)?Object.assign(Object.assign({},M(t)),{type:"extent"}):void 0,cr=t=>{let{properties:e,extent:r}=t,n=e?.location;if(n)return n;if(e?.boundary==="none")return{type:"none"};let a=te(r);if(a)return{type:C(t.type)?"org":"custom",extent:r,geometries:[a],spatialReference:a.spatialReference};try{let o=F(r),i={wkid:4326},s=Object.assign(Object.assign({type:"polygon"},O(r)),{spatialReference:T(o)?i:oe(t)||i});return{type:"custom",extent:o,geometries:[s],spatialReference:s.spatialReference}}catch{return{type:"none"}}};var ur=(t,e,r)=>{let n=ne(t,e,r)||ae(t,e,r),a=A(t);if(!n){let i=["app","dataset","document","map","template","project","initiative","discussion","event"],s="/content";a==="feedback"?s=e?"/feedback/surveys":"":re(t,r)?s="/pages":i.indexOf(a)>-1&&(s=`/${a}s`),n=e?`${s}/${e}`:`${s}`}return!e&&!["initiative","project"].includes(a)&&(n=""),n},re=(t,e=[])=>["Hub Page","Site Page"].includes(t)||e.includes("hubPage"),ne=(t,e,r)=>{let n;return t==="Solution"?r?.indexOf("Deployed")>-1?n=`/content/${e}/about`:n=`/templates/${e}/about`:t==="Web Mapping Application"&&r?.indexOf("hubSolutionTemplate")>-1&&(n=`/templates/${e}/about`),n},ae=(t,e,r)=>{if(t==="Hub Initiative"&&r?.indexOf("hubInitiativeTemplate")>-1||t==="Hub Initiative Template")return`/initiatives/templates/${e}/about`};var W;(function(t){t.Year="year",t.Month="month",t.Day="day",t.Time="time"})(W||(W={}));var oe=t=>{let e=t.spatialReference;if(!e||typeof e=="object")return e;let r=e+"",n=parseInt(r,10);return isNaN(n)?null:{wkid:n}},pr=(t,e,r)=>{let n=ie(e);return n&&n.map(a=>({name:a.orName,url:se(a,t,r),isDataSource:V(a,t)}))},ie=t=>{let e=[];return P(x(t,"metadata.distInfo")||[]).forEach(r=>{P(r.distTranOps||[]).forEach(n=>{P(n.onLineSrc||[]).forEach(a=>{e.push(a)})})}),e.length?e:null},P=t=>Array.isArray(t)?t:[t],V=(t,e)=>{let r=e.url&&b(e.url);return r&&t.linkage&&t.linkage.includes(r)},se=(t,e,r)=>{let n=t.linkage,a=x(r,"authentication.token");if(a&&V(t,e)){let o=new URL(t.linkage),i=new URLSearchParams(o.search);i.set("token",a),o.search=i.toString(),n=o.toString()}return n};var dr=(t,e)=>{let r;switch(le(t)){case"Dashboard":r=pe(t,e);break;case"Insights Workbook":r=me(t,e);break;case"Experience":r=ue(t,e);break;case"Web AppBuilder":r=de(t,e);break;case"Form":r=fe(t,e);break;case"StoryMap":r=ce(t,e);break;case"Urban Model":r=ge(t,e);break;default:r=y(t.id,e)}return r},le=t=>{let e=t.typeKeywords||[],r=t.type;return t.type==="StoryMap"||t.type==="Web Mapping Application"&&e.includes("Story Map")?r="StoryMap":t.type==="Insights Page"?r="Insights Page":t.type==="Insights Workbook"?r="Insights Workbook":t.type&&t.type.includes("Insights")?r="Insights":t.type==="Web Experience"||t.type==="Web Mapping Experience"&&e.includes("EXB Experience")?r="Experience":e.includes("Web AppBuilder")&&(r="Web AppBuilder"),r},ce=(t,e)=>{let r={devext:"storymapsdev",qaext:"storymapsqa",production:"storymaps"},n=d(e),a=g(n);return`${`https://${r[a]}.arcgis.com`}/stories/${t.id}/edit`},ue=(t,e)=>{let r=d(e),n=g(r);return`${`https://experience${v[n]}.arcgis.com`}/builder/?id=${t.id}`},pe=(t,e)=>{let r=d(e),n=`${r}/apps/opsdashboard/index.html#/${t.id}?mode=edit`;return t.typeKeywords&&t.typeKeywords.includes("ArcGIS Dashboards")&&(n=`${r}/apps/dashboards/${t.id}#mode=edit`),n},de=(t,e)=>`${d(e)}/apps/webappbuilder/index.html?id=${t.id}`,fe=(t,e)=>{let r=d(e),n=g(r),a=`https://survey123${v[n]}.arcgis.com`,o;return t.typeKeywords.includes("Survey123 Connect")?o=y(t.id,r):o=`${a}/surveys/${t.id}/design?portalUrl=${r}`,o},me=(t,e)=>{let r=d(e),n=g(r),a=`https://insights${v[n]}.arcgis.com`,o=y(t.id,r);return _(r)?o:`${a}/#/edit/${t.id}`},ge=(t,e)=>{let r=d(e),n=g(r),a=`https://urban${v[n]}.arcgis.com`,o=y(t.id,r);return _(r)?o:`${a}/?id=${t.id}`},_=t=>t.indexOf("arcgis.com")===-1;function fr(t,e){return`${ye(e)}/api/download/v1/items/${t}/schedule?token=${e.authentication.token}`}function ye(t){return S(t).replace(/\/api\/v3$/,"")}var mr=async(t,e)=>{let n=`${S(e)}/api/v3/jobs/item/${t}/forceUpdate`,a={method:"POST",headers:{"content-type":"application/json",authorization:e.authentication.token}};return(await fetch(n,a)).ok};export{Re as a,Ee as b,Le as c,b as d,xe as e,at as f,st as g,Ue as h,L as i,Lt as j,h as k,Ht as l,_t as m,zt as n,cr as o,ur as p,pr as q,dr as r,fr as s,mr as t,Qt as u};
3
+ v1.1.5 */
4
+ import{a as S}from"./2DCQYFBB.js";import{b as d,c as g,i as y,j as N}from"./TSE4T2RO.js";import{a as I}from"./462W4TZ3.js";import{a as M,e as E,f as T,g as F}from"./SPWZIAIS.js";import{a as $,b as R}from"./3GWQY4PS.js";import{d as l,e as p,f as c}from"./HJAQTCS6.js";import{a as A}from"./6JKRMJTG.js";import{a as x}from"./SM3QZXOO.js";var G=new RegExp(/.+(?:map|feature|image)server/i);function b(t){let e=t.match(G);return e?e[0]:J(t)}function J(t){let e=t.split("?")[0];return c(e)}function xe(t){return l(c(t.url),t)}function Ue(t,e){let r=`${c(t).replace("/rest/services","/rest/admin/services")}/updateDefinition`;return e.params=Object.assign({updateDefinition:{}},e.params),e.updateDefinition&&(e.params.updateDefinition=e.updateDefinition),l(r,e)}function Re(t,e){let r=`${c(t).replace("/rest/services","/rest/admin/services")}/addToDefinition`;return e.params=Object.assign({addToDefinition:{}},e.params),e.layers&&e.layers.length>0&&(e.params.addToDefinition.layers=e.layers),e.tables&&e.tables.length>0&&(e.params.addToDefinition.tables=e.tables),l(r,e)}function Ee(t){let e=`${c(t.url)}/applyEdits`,r=p(t,["adds","updates","deletes","useGlobalIds","attachments","gdbVersion","returnEditMoment","rollbackOnFailure","trueCurveClient"],{params:Object.assign({},t.params)});return l(e,r)}function Le(t){return R(t).then(e=>{let r=Object.assign(Object.assign({},t),{rawResponse:!1}),n=`${$(t)}/content/users/${e}`,a=!r.folderId||r.folderId==="/"?"":"/"+r.folderId,o=`${n}${a}/createService`;return r.params=Object.assign({createParameters:r.item,outputType:"featureService"},r.params),l(o,r)})}function at(t){let e=p(t,["where","objectIds","relationParam","time","distance","units","outFields","geometry","geometryType","spatialRel","returnGeometry","maxAllowableOffset","geometryPrecision","inSR","outSR","gdbVersion","returnDistinctValues","returnIdsOnly","returnCountOnly","returnExtentOnly","orderByFields","groupByFieldsForStatistics","outStatistics","returnZ","returnM","multipatchOption","resultOffset","resultRecordCount","quantizationParameters","returnCentroid","resultType","historicMoment","returnTrueCurves","sqlFormat","returnExceededLimitFeatures","f"],{httpMethod:"GET",params:Object.assign({where:"1=1",outFields:"*"},t.params)});return l(`${c(t.url)}/query`,e)}function st(t){let e=p(t,["objectIds","relationshipId","definitionExpression","outFields"],{httpMethod:"GET",params:Object.assign({definitionExpression:"1=1",outFields:"*",relationshipId:0},t.params)});return l(`${c(t.url)}/queryRelatedRecords`,e)}function L(t,e,r={},n=!1){let a=e.split("."),o=t,i=a.length-1;a.forEach((s,u)=>{!o.hasOwnProperty(s)||o[s]==null?u===i?o[s]=r:o[s]={}:u===i&&(typeof o[s]=="object"&&!Array.isArray(o[s])?n?o[s]=I(r):o[s]=Object.assign(o[s],I(r)):o[s]=r),o=o[s]})}function Lt(t,e,r,n=!1){Array.isArray(t)&&(t=t.join(".")),L(r,t,e,n)}var Z=function(e,r,n,a){var o=(a[0]-n[0])*(e[1]-n[1])-(a[1]-n[1])*(e[0]-n[0]),i=(r[0]-e[0])*(e[1]-n[1])-(r[1]-e[1])*(e[0]-n[0]),s=(a[1]-n[1])*(r[0]-e[0])-(a[0]-n[0])*(r[1]-e[1]);if(s!==0){var u=o/s,f=i/s;if(u>=0&&u<=1&&f>=0&&f<=1)return!0}return!1},Q=function(e,r){for(var n=!1,a=-1,o=e.length,i=o-1;++a<o;i=a)(e[a][1]<=r[1]&&r[1]<e[i][1]||e[i][1]<=r[1]&&r[1]<e[a][1])&&r[0]<(e[i][0]-e[a][0])*(r[1]-e[a][1])/(e[i][1]-e[a][1])+e[a][0]&&(n=!n);return n},K=function(e,r){for(var n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0},j=function(e,r){for(var n=0;n<e.length-1;n++)for(var a=0;a<r.length-1;a++)if(Z(e[n],e[n+1],r[a],r[a+1]))return!0;return!1},U=function(e){return K(e[0],e[e.length-1])||e.push(e[0]),e},D=function(e){var r=0,n=0,a=e.length,o=e[n],i;for(n;n<a-1;n++)i=e[n+1],r+=(i[0]-o[0])*(i[1]+o[1]),o=i;return r>=0},z=function(e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r},Y=function(e,r){var n=j(e,r),a=Q(e,r[0]);return!!(!n&&a)},X=function(e){for(var r=[],n=[],a,o,i,s=0;s<e.length;s++){var u=U(e[s].slice(0));if(!(u.length<4))if(D(u)){var f=[u.slice().reverse()];r.push(f)}else n.push(u.slice().reverse())}for(var m=[];n.length;){i=n.pop();var k=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],Y(o,i)){r[a].push(i),k=!0;break}k||m.push(i)}for(;m.length;){i=m.pop();var w=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],j(o,i)){r[a].push(i),w=!0;break}w||r.push([i.reverse()])}return r.length===1?{type:"Polygon",coordinates:r[0]}:{type:"MultiPolygon",coordinates:r}},q=function(e,r){for(var n=r?[r,"OBJECTID","FID"]:["OBJECTID","FID"],a=0;a<n.length;a++){var o=n[a];if(o in e&&(typeof e[o]=="string"||typeof e[o]=="number"))return e[o]}throw Error("No valid id attribute found")},zt=function t(e,r){var n={};if(e.features){n.type="FeatureCollection",n.features=[];for(var a=0;a<e.features.length;a++)n.features.push(t(e.features[a],r))}if(typeof e.x=="number"&&typeof e.y=="number"&&(n.type="Point",n.coordinates=[e.x,e.y],typeof e.z=="number"&&n.coordinates.push(e.z)),e.points&&(n.type="MultiPoint",n.coordinates=e.points.slice(0)),e.paths&&(e.paths.length===1?(n.type="LineString",n.coordinates=e.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=e.paths.slice(0))),e.rings&&(n=X(e.rings.slice(0))),typeof e.xmin=="number"&&typeof e.ymin=="number"&&typeof e.xmax=="number"&&typeof e.ymax=="number"&&(n.type="Polygon",n.coordinates=[[[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax]]]),(e.geometry||e.attributes)&&(n.type="Feature",n.geometry=e.geometry?t(e.geometry):null,n.properties=e.attributes?z(e.attributes):null,e.attributes))try{n.id=q(e.attributes,r)}catch{}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),e.spatialReference&&e.spatialReference.wkid&&e.spatialReference.wkid!==4326&&console.warn("Object converted in non-standard crs - "+JSON.stringify(e.spatialReference)),n},B=function(e){var r=[],n=e.slice(0),a=U(n.shift().slice(0));if(a.length>=4){D(a)||a.reverse(),r.push(a);for(var o=0;o<n.length;o++){var i=U(n[o].slice(0));i.length>=4&&(D(i)&&i.reverse(),r.push(i))}}return r},ee=function(e){for(var r=[],n=0;n<e.length;n++)for(var a=B(e[n]),o=a.length-1;o>=0;o--){var i=a[o].slice(0);r.push(i)}return r},O=function t(e,r){r=r||"OBJECTID";var n={wkid:4326},a={},o;switch(e.type){case"Point":a.x=e.coordinates[0],a.y=e.coordinates[1],e.coordinates[2]!=null&&(a.z=e.coordinates[2]),a.spatialReference=n;break;case"MultiPoint":a.points=e.coordinates.slice(0),e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"LineString":a.paths=[e.coordinates.slice(0)],e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiLineString":a.paths=e.coordinates.slice(0),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Polygon":a.rings=B(e.coordinates.slice(0)),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiPolygon":a.rings=ee(e.coordinates.slice(0)),e.coordinates[0][0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Feature":e.geometry&&(a.geometry=t(e.geometry,r)),a.attributes=e.properties?z(e.properties):{},e.id&&(a.attributes[r]=e.id);break;case"FeatureCollection":for(a=[],o=0;o<e.features.length;o++)a.push(t(e.features[o],r));break;case"GeometryCollection":for(a=[],o=0;o<e.geometries.length;o++)a.push(t(e.geometries[o],r));break}return a};function h(t,e){return t.indexOf(e)!==-1}function Ht(t){return typeof t=="string"?t.trim().toLowerCase().replace(/ +/g,"-").replace(/[^\w-]/g,"").replace(/-+/g,"-"):t}function _t(t,e,r){if(!t||!t.thumbnail)return null;let{token:n,width:a}=r||{};!n&&typeof r=="string"&&(n=r);let o=N(t,e,n),[i,s]=o.split("?"),u=new URLSearchParams(s);u.delete("f"),a&&u.append("w",a+"");let f=u.toString(),m=`${i}/info/${t.thumbnail}`;return f?`${m}?${f}`:m}var H;(function(t){t.Continual="continual",t.Daily="daily",t.Weekly="weekly",t.Fortnightly="fortnightly",t.Monthly="monthly",t.Quarterly="quarterly",t.Biannually="biannually",t.Annually="annually",t.AsNeeded="as-needed",t.Irregular="irregular",t.NotPlanned="not-planned",t.Unknown="unknown",t.Semimonthly="semimonthly"})(H||(H={}));function C(t,e=[]){return t==="Site Application"||t==="Hub Site Application"||t==="Web Mapping Application"&&e.includes("hubSite")}function Qt(t={}){let e=t.type,r=t.typeKeywords||[];return C(t.type,r)&&(e="Hub Site Application"),(t.type==="Site Page"||t.type==="Web Mapping Application"&&h(r,"hubPage"))&&(e="Hub Page"),t.type==="Hub Initiative"&&h(r,"hubInitiativeTemplate")&&(e="Hub Initiative Template"),t.type==="Web Mapping Application"&&h(r,"hubSolutionTemplate")&&(e="Solution"),e}var v={devext:"dev",qaext:"qa",production:""};var te=t=>E(t)?Object.assign(Object.assign({},M(t)),{type:"extent"}):void 0,cr=t=>{let{properties:e,extent:r}=t,n=e?.location;if(n)return n;if(e?.boundary==="none")return{type:"none"};let a=te(r);if(a)return{type:C(t.type)?"org":"custom",extent:r,geometries:[a],spatialReference:a.spatialReference};try{let o=F(r),i={wkid:4326},s=Object.assign(Object.assign({type:"polygon"},O(r)),{spatialReference:T(o)?i:oe(t)||i});return{type:"custom",extent:o,geometries:[s],spatialReference:s.spatialReference}}catch{return{type:"none"}}};var ur=(t,e,r)=>{let n=ne(t,e,r)||ae(t,e,r),a=A(t);if(!n){let i=["app","dataset","document","map","template","project","initiative","discussion","event"],s="/content";a==="feedback"?s=e?"/feedback/surveys":"":re(t,r)?s="/pages":i.indexOf(a)>-1&&(s=`/${a}s`),n=e?`${s}/${e}`:`${s}`}return!e&&!["initiative","project"].includes(a)&&(n=""),n},re=(t,e=[])=>["Hub Page","Site Page"].includes(t)||e.includes("hubPage"),ne=(t,e,r)=>{let n;return t==="Solution"?r?.indexOf("Deployed")>-1?n=`/content/${e}/about`:n=`/templates/${e}/about`:t==="Web Mapping Application"&&r?.indexOf("hubSolutionTemplate")>-1&&(n=`/templates/${e}/about`),n},ae=(t,e,r)=>{if(t==="Hub Initiative"&&r?.indexOf("hubInitiativeTemplate")>-1||t==="Hub Initiative Template")return`/initiatives/templates/${e}/about`};var W;(function(t){t.Year="year",t.Month="month",t.Day="day",t.Time="time"})(W||(W={}));var oe=t=>{let e=t.spatialReference;if(!e||typeof e=="object")return e;let r=e+"",n=parseInt(r,10);return isNaN(n)?null:{wkid:n}},pr=(t,e,r)=>{let n=ie(e);return n&&n.map(a=>({name:a.orName,url:se(a,t,r),isDataSource:V(a,t)}))},ie=t=>{let e=[];return P(x(t,"metadata.distInfo")||[]).forEach(r=>{P(r.distTranOps||[]).forEach(n=>{P(n.onLineSrc||[]).forEach(a=>{e.push(a)})})}),e.length?e:null},P=t=>Array.isArray(t)?t:[t],V=(t,e)=>{let r=e.url&&b(e.url);return r&&t.linkage&&t.linkage.includes(r)},se=(t,e,r)=>{let n=t.linkage,a=x(r,"authentication.token");if(a&&V(t,e)){let o=new URL(t.linkage),i=new URLSearchParams(o.search);i.set("token",a),o.search=i.toString(),n=o.toString()}return n};var dr=(t,e)=>{let r;switch(le(t)){case"Dashboard":r=pe(t,e);break;case"Insights Workbook":r=me(t,e);break;case"Experience":r=ue(t,e);break;case"Web AppBuilder":r=de(t,e);break;case"Form":r=fe(t,e);break;case"StoryMap":r=ce(t,e);break;case"Urban Model":r=ge(t,e);break;default:r=y(t.id,e)}return r},le=t=>{let e=t.typeKeywords||[],r=t.type;return t.type==="StoryMap"||t.type==="Web Mapping Application"&&e.includes("Story Map")?r="StoryMap":t.type==="Insights Page"?r="Insights Page":t.type==="Insights Workbook"?r="Insights Workbook":t.type&&t.type.includes("Insights")?r="Insights":t.type==="Web Experience"||t.type==="Web Mapping Experience"&&e.includes("EXB Experience")?r="Experience":e.includes("Web AppBuilder")&&(r="Web AppBuilder"),r},ce=(t,e)=>{let r={devext:"storymapsdev",qaext:"storymapsqa",production:"storymaps"},n=d(e),a=g(n);return`${`https://${r[a]}.arcgis.com`}/stories/${t.id}/edit`},ue=(t,e)=>{let r=d(e),n=g(r);return`${`https://experience${v[n]}.arcgis.com`}/builder/?id=${t.id}`},pe=(t,e)=>{let r=d(e),n=`${r}/apps/opsdashboard/index.html#/${t.id}?mode=edit`;return t.typeKeywords&&t.typeKeywords.includes("ArcGIS Dashboards")&&(n=`${r}/apps/dashboards/${t.id}#mode=edit`),n},de=(t,e)=>`${d(e)}/apps/webappbuilder/index.html?id=${t.id}`,fe=(t,e)=>{let r=d(e),n=g(r),a=`https://survey123${v[n]}.arcgis.com`,o;return t.typeKeywords.includes("Survey123 Connect")?o=y(t.id,r):o=`${a}/surveys/${t.id}/design?portalUrl=${r}`,o},me=(t,e)=>{let r=d(e),n=g(r),a=`https://insights${v[n]}.arcgis.com`,o=y(t.id,r);return _(r)?o:`${a}/#/edit/${t.id}`},ge=(t,e)=>{let r=d(e),n=g(r),a=`https://urban${v[n]}.arcgis.com`,o=y(t.id,r);return _(r)?o:`${a}/?id=${t.id}`},_=t=>t.indexOf("arcgis.com")===-1;function fr(t,e){return`${ye(e)}/api/download/v1/items/${t}/schedule?token=${e.authentication.token}`}function ye(t){return S(t).replace(/\/api\/v3$/,"")}var mr=async(t,e)=>{let n=`${S(e)}/api/v3/jobs/item/${t}/forceUpdate`,a={method:"POST",headers:{"content-type":"application/json",authorization:e.authentication.token}};return(await fetch(n,a)).ok};export{Re as a,Ee as b,Le as c,b as d,xe as e,at as f,st as g,Ue as h,L as i,Lt as j,h as k,Ht as l,_t as m,zt as n,cr as o,ur as p,pr as q,dr as r,fr as s,mr as t,Qt as u};
@@ -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.3 */
4
- import c from"./66K5WNGM.js";import a from"./DBIIMNFE.js";import{J as I,lb as b,mb as P,q as A}from"./TGCN4ZAH.js";import{g as p}from"./ICTMP3P3.js";export default $arcgis.t(([{e:R,f:E,g:D,j:f,k:y},{a:O,b:h,d:m}])=>{var J=class{constructor(e,r,s){this.cMissingImageDataURI="https://static.arcgis.com/images/solution.png",this.cardCache=[],this.cardCacheParams={q:"",categoriesAsStr:"[]",sortField:"title",sortOrder:"asc"},this.locale=e,this.orgUrl=r,this.portalUrl=s,this.anonAgolSession=new p({}),this.agolPortalUrl="https://www.arcgis.com"}addToCache(e){this.cardCache.push(e)}getCache(){return this.cardCache}removeFromCache(e){this.cardCache=this.cardCache.filter(r=>r.id!==e)}requestAvailableSolutionCards(e,r,s,t,a,i){let d=a?.start?a.start:1,n=a?.num?a.num:24,N=this.portalUrl+"/sharing/rest",K=this.agolPortalUrl+"/sharing/rest",T=this.anonAgolSession,U=JSON.stringify(e.categories);if(this.cardCacheParams.q!==e.q||this.cardCacheParams.categoriesAsStr!==U||e.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:e.q,categoriesAsStr:U,sortField:e.sortField,sortOrder:e.sortOrder}):(this.cardCacheParams.sortField!==e.sortField||this.cardCacheParams.sortOrder!==e.sortOrder)&&(this.cardCacheParams.sortField=e.sortField,this.cardCacheParams.sortOrder=e.sortOrder,this.cardCache=m(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let o;if(i&&i.size>0){let c=O(this.cardCache,i);o=h(c,d,n)}else o=h(this.cardCache,d,n);return Promise.resolve(o)}let F={filter:e.filter,sortField:e.sortField,sortOrder:e.sortOrder,categories:e?.categories?this.convertSearchCategories(e.categories):""},u=[];if(r){let o=t||new p({});u.push(P(r,e.q,o,F,N))}return s&&u.push(P(s,e.q,T,F,K)),Promise.allSettled(u).then(o=>{let c=[];o.forEach((l,k)=>{let S=!!r&&k===0;if(l.status==="fulfilled"){let w=l.value,C="",q=!1;S?C=this.portalUrl:(C=this.agolPortalUrl,q=!0),w.results.forEach(v=>{v.sourcePortalUrl=C,v.knownToBePublicSource=q}),c.push(w)}else if(l.status==="rejected")throw new Error(S?l.reason.message:"enterpriseCannotAccessAGO")}),c.length===0?this.cardCache=[]:c.length===1?this.cardCache=this.getCardsFromResponse(c[0]):this.cardCache=m(this.getCardsFromResponse(this.mergeResponses(c)),this.cardCacheParams.sortField,this.cardCacheParams.sortOrder);let g;if(i&&i.size>0){let l=O(this.cardCache,i);g=h(l,d,n)}else g=h(this.cardCache,d,n);return Promise.resolve(g)}).catch(o=>Promise.reject(new Error(o.message)))}requestDeployedSolutionCards(e,r){let s=this.portalUrl+"/sharing/rest";if(this.cardCacheParams.q!==e.q||this.cardCacheParams.categoriesAsStr!==JSON.stringify(e.q)||e.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:e.q,categoriesAsStr:"[]",sortField:e.sortField,sortOrder:e.sortOrder}):(this.cardCacheParams.sortField!==e.sortField||this.cardCacheParams.sortOrder!==e.sortOrder)&&(this.cardCacheParams.sortField=e.sortField,this.cardCacheParams.sortOrder=e.sortOrder,this.cardCache=m(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let a=h(this.cardCache,1,this.cardCache.length);return Promise.resolve(a)}let t={q:e.q,filter:e.filter,sortField:e.sortField,sortOrder:e.sortOrder,authentication:r,portal:s,categories:e?.categories?JSON.stringify(e.categories):""};return b(t).then(a=>{this.cardCache=this.getCardsFromResponse(a);let i=h(this.cardCache,1,this.cardCache.length);return Promise.resolve(i)}).catch(a=>Promise.reject(new Error(a)))}convertSearchCategories(e){return e&&(Array.isArray(e)?e=e.map(r=>JSON.stringify(Array.isArray(r)?r:[r])):e=JSON.stringify([e])),e}getCardsFromResponse(e){return e.results.length>0?A(e.results).map(r=>{let s={id:r.id,title:r.title,snippet:r.snippet||"",description:r.description||"",url:r.url||"",itemUrl:this.orgUrl+"/home/item.html"+E([{k:"id",v:r.id}])||"",thumbnailFilename:r.thumbnail,thumbnailUrl:D(r.id,r.thumbnail,this.cMissingImageDataURI,r.sourcePortalUrl?r.sourcePortalUrl:this.portalUrl),tryitUrl:r.url||"",typeKeywords:r.typeKeywords,learnMoreUrl:r.properties?.learnMoreUrl||"",createdMs:r.created,created:f(r.created,this.locale),modified:f(r.modified,this.locale),numViews:r.numViews,tags:r.tags,categories:r.groupCategories&&r.groupCategories.length>0?r.groupCategories:r.categories||[],licenseInfo:R(r.licenseInfo),deployCommonId:y(r.typeKeywords||[],"solutionid-"),deployVersion:y(r.typeKeywords||[],"solutionversion-"),canDelete:r.created>16183314e5,canDeploy:(r.typeKeywords||[]).indexOf("Display Only")<0,preview:this.preparePreviewImageUrls(r.id,r.properties?.preview,r.sourcePortalUrl?r.sourcePortalUrl:this.portalUrl),sourcePortalUrl:r.sourcePortalUrl||"",knownToBePublicSource:r.knownToBePublicSource||!1,waitId:"",relatedSolutions:I(r,"properties.relatedSolutions")||[],owner:r.owner};return s.deployCommonId!==""&&s.deployVersion!==""?s:null}).filter(r=>r!=null):[]}mergeResponses(e){let r=0;e.forEach(t=>r+=t.total);let s=[];return e.forEach(t=>s=s.concat(t.results)),{query:e[0].query,start:1,num:r,nextStart:-1,total:r,results:s}}preparePreviewImageUrls(e,r,s){return r?r.map(t=>(t.format==="image"&&(t.name=s+"/sharing/rest/content/items/"+e+"/resources/"+t.name),t)):[]}};return J},a,c)
3
+ v1.1.5 */
4
+ import c from"./N2VUT2CM.js";import a from"./LYD27ORL.js";import{J as I,lb as b,mb as P,q as A}from"./4LZ24JLH.js";import{g as p}from"./HJAQTCS6.js";export default $arcgis.t(([{e:R,f:E,g:D,j:f,k:y},{a:O,b:h,d:m}])=>{var J=class{constructor(e,r,s){this.cMissingImageDataURI="https://static.arcgis.com/images/solution.png",this.cardCache=[],this.cardCacheParams={q:"",categoriesAsStr:"[]",sortField:"title",sortOrder:"asc"},this.locale=e,this.orgUrl=r,this.portalUrl=s,this.anonAgolSession=new p({}),this.agolPortalUrl="https://www.arcgis.com"}addToCache(e){this.cardCache.push(e)}getCache(){return this.cardCache}removeFromCache(e){this.cardCache=this.cardCache.filter(r=>r.id!==e)}requestAvailableSolutionCards(e,r,s,t,a,i){let d=a?.start?a.start:1,n=a?.num?a.num:24,N=this.portalUrl+"/sharing/rest",K=this.agolPortalUrl+"/sharing/rest",T=this.anonAgolSession,U=JSON.stringify(e.categories);if(this.cardCacheParams.q!==e.q||this.cardCacheParams.categoriesAsStr!==U||e.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:e.q,categoriesAsStr:U,sortField:e.sortField,sortOrder:e.sortOrder}):(this.cardCacheParams.sortField!==e.sortField||this.cardCacheParams.sortOrder!==e.sortOrder)&&(this.cardCacheParams.sortField=e.sortField,this.cardCacheParams.sortOrder=e.sortOrder,this.cardCache=m(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let o;if(i&&i.size>0){let c=O(this.cardCache,i);o=h(c,d,n)}else o=h(this.cardCache,d,n);return Promise.resolve(o)}let F={filter:e.filter,sortField:e.sortField,sortOrder:e.sortOrder,categories:e?.categories?this.convertSearchCategories(e.categories):""},u=[];if(r){let o=t||new p({});u.push(P(r,e.q,o,F,N))}return s&&u.push(P(s,e.q,T,F,K)),Promise.allSettled(u).then(o=>{let c=[];o.forEach((l,k)=>{let S=!!r&&k===0;if(l.status==="fulfilled"){let w=l.value,C="",q=!1;S?C=this.portalUrl:(C=this.agolPortalUrl,q=!0),w.results.forEach(v=>{v.sourcePortalUrl=C,v.knownToBePublicSource=q}),c.push(w)}else if(l.status==="rejected")throw new Error(S?l.reason.message:"enterpriseCannotAccessAGO")}),c.length===0?this.cardCache=[]:c.length===1?this.cardCache=this.getCardsFromResponse(c[0]):this.cardCache=m(this.getCardsFromResponse(this.mergeResponses(c)),this.cardCacheParams.sortField,this.cardCacheParams.sortOrder);let g;if(i&&i.size>0){let l=O(this.cardCache,i);g=h(l,d,n)}else g=h(this.cardCache,d,n);return Promise.resolve(g)}).catch(o=>Promise.reject(new Error(o.message)))}requestDeployedSolutionCards(e,r){let s=this.portalUrl+"/sharing/rest";if(this.cardCacheParams.q!==e.q||this.cardCacheParams.categoriesAsStr!==JSON.stringify(e.q)||e.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:e.q,categoriesAsStr:"[]",sortField:e.sortField,sortOrder:e.sortOrder}):(this.cardCacheParams.sortField!==e.sortField||this.cardCacheParams.sortOrder!==e.sortOrder)&&(this.cardCacheParams.sortField=e.sortField,this.cardCacheParams.sortOrder=e.sortOrder,this.cardCache=m(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let a=h(this.cardCache,1,this.cardCache.length);return Promise.resolve(a)}let t={q:e.q,filter:e.filter,sortField:e.sortField,sortOrder:e.sortOrder,authentication:r,portal:s,categories:e?.categories?JSON.stringify(e.categories):""};return b(t).then(a=>{this.cardCache=this.getCardsFromResponse(a);let i=h(this.cardCache,1,this.cardCache.length);return Promise.resolve(i)}).catch(a=>Promise.reject(new Error(a)))}convertSearchCategories(e){return e&&(Array.isArray(e)?e=e.map(r=>JSON.stringify(Array.isArray(r)?r:[r])):e=JSON.stringify([e])),e}getCardsFromResponse(e){return e.results.length>0?A(e.results).map(r=>{let s={id:r.id,title:r.title,snippet:r.snippet||"",description:r.description||"",url:r.url||"",itemUrl:this.orgUrl+"/home/item.html"+E([{k:"id",v:r.id}])||"",thumbnailFilename:r.thumbnail,thumbnailUrl:D(r.id,r.thumbnail,this.cMissingImageDataURI,r.sourcePortalUrl?r.sourcePortalUrl:this.portalUrl),tryitUrl:r.url||"",typeKeywords:r.typeKeywords,learnMoreUrl:r.properties?.learnMoreUrl||"",createdMs:r.created,created:f(r.created,this.locale),modified:f(r.modified,this.locale),numViews:r.numViews,tags:r.tags,categories:r.groupCategories&&r.groupCategories.length>0?r.groupCategories:r.categories||[],licenseInfo:R(r.licenseInfo),deployCommonId:y(r.typeKeywords||[],"solutionid-"),deployVersion:y(r.typeKeywords||[],"solutionversion-"),canDelete:r.created>16183314e5,canDeploy:(r.typeKeywords||[]).indexOf("Display Only")<0,preview:this.preparePreviewImageUrls(r.id,r.properties?.preview,r.sourcePortalUrl?r.sourcePortalUrl:this.portalUrl),sourcePortalUrl:r.sourcePortalUrl||"",knownToBePublicSource:r.knownToBePublicSource||!1,waitId:"",relatedSolutions:I(r,"properties.relatedSolutions")||[],owner:r.owner};return s.deployCommonId!==""&&s.deployVersion!==""?s:null}).filter(r=>r!=null):[]}mergeResponses(e){let r=0;e.forEach(t=>r+=t.total);let s=[];return e.forEach(t=>s=s.concat(t.results)),{query:e[0].query,start:1,num:r,nextStart:-1,total:r,results:s}}preparePreviewImageUrls(e,r,s){return r?r.map(t=>(t.format==="image"&&(t.name=s+"/sharing/rest/content/items/"+e+"/resources/"+t.name),t)):[]}};return J},a,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.3 */
4
- import{b as t,c as e}from"./H43YAQQN.js";var r=["hub:channel:create","hub:channel:edit"],p={type:"object",properties:{name:{type:"string"},blockWords:{type:"string",format:"blockWords"},publicConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{anonymous:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead],default:t},id:{type:"string"}}},authenticated:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},orgConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[e.channelOwner],default:e.channelOwner},id:{type:"string"}}}}}}}},groupConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite,e.channelManage],default:t},id:{type:"string"}}}}}}}},userConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{user:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},allowAsAnonymous:{type:"boolean",default:!1}},required:["name"]};export{r as a,p as b};
3
+ v1.1.5 */
4
+ import{b as t,c as e}from"./IN4GUM3K.js";var r=["hub:channel:create","hub:channel:edit"],p={type:"object",properties:{name:{type:"string"},blockWords:{type:"string",format:"blockWords"},publicConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{anonymous:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead],default:t},id:{type:"string"}}},authenticated:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},orgConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[e.channelOwner],default:e.channelOwner},id:{type:"string"}}}}}}}},groupConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite,e.channelManage],default:t},id:{type:"string"}}}}}}}},userConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{user:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},allowAsAnonymous:{type:"boolean",default:!1}},required:["name"]};export{r as a,p as b};