@esri/solutions-components 1.1.0-next.20251001 → 1.1.0-next.20251003

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 (517) hide show
  1. package/dist/cdn/{KQ4H6ZTW.js → 255FFRN6.js} +2 -2
  2. package/dist/cdn/{Z5R7XKWW.js → 276ZHID6.js} +2 -2
  3. package/dist/cdn/{XY7TWMUT.js → 2ONRUQFV.js} +2 -2
  4. package/dist/cdn/{D4JDKVPO.js → 2VKF6PR4.js} +2 -2
  5. package/dist/cdn/{6R6HBCR7.js → 36GXCPP5.js} +2 -2
  6. package/dist/cdn/{IA4I4NRJ.js → 3FSQROF5.js} +1 -1
  7. package/dist/cdn/{NZ57XWD7.js → 3I72PCEP.js} +1 -1
  8. package/dist/cdn/{VL7U3QTN.js → 3MXHKKW3.js} +2 -2
  9. package/dist/cdn/{KBBDRB5Z.js → 3OKTZASX.js} +2 -2
  10. package/dist/cdn/{H7T7X4HP.js → 3OY3YMT5.js} +1 -1
  11. package/dist/cdn/{AISOOLMV.js → 3QTLO72X.js} +2 -2
  12. package/dist/cdn/{WDUFWHXT.js → 3SSM44AZ.js} +2 -2
  13. package/dist/cdn/{LCKLCLEY.js → 3VQ57FB7.js} +2 -2
  14. package/dist/cdn/{F36AN5IC.js → 3X2PJRLH.js} +2 -2
  15. package/dist/cdn/{D4MNK6SM.js → 45KKZE6P.js} +2 -2
  16. package/dist/cdn/4AINUYJB.js +18 -0
  17. package/dist/cdn/{JK3HSBOI.js → 4BLZZ4AN.js} +2 -2
  18. package/dist/cdn/{57JC2AOJ.js → 4DPOKY7J.js} +2 -2
  19. package/dist/cdn/{TLN45HTP.js → 4EXRQCTU.js} +2 -2
  20. package/dist/cdn/{VZDC2FGY.js → 4IGJLSVQ.js} +2 -2
  21. package/dist/cdn/{X3I4M6YD.js → 4K4JSGYM.js} +2 -2
  22. package/dist/cdn/{LRJZJH5Z.js → 4NXA4R4C.js} +2 -2
  23. package/dist/cdn/{NLJ3XYRA.js → 4O4I37QW.js} +2 -2
  24. package/dist/cdn/{HRJT2BUP.js → 4OIZKI5X.js} +2 -2
  25. package/dist/cdn/{WQULYHBT.js → 4PSBLA5A.js} +1 -1
  26. package/dist/cdn/{3HG4IWY4.js → 4QH5EQCM.js} +2 -2
  27. package/dist/cdn/{XYLLOZC2.js → 4QJZ6RTQ.js} +2 -2
  28. package/dist/cdn/{YGDYWFAS.js → 4RE4Y5FQ.js} +2 -2
  29. package/dist/cdn/{LY3YYF3O.js → 4SVJQ4LX.js} +1 -1
  30. package/dist/cdn/{3TGIKRH7.js → 4V6ENHCJ.js} +2 -2
  31. package/dist/cdn/{4D4DPYVV.js → 4V7S5IMD.js} +2 -2
  32. package/dist/cdn/{UEHEF6MX.js → 4Y5PAGVV.js} +2 -2
  33. package/dist/cdn/{5LRNOSUA.js → 4YRN5QU6.js} +2 -2
  34. package/dist/cdn/{G6KOHD7R.js → 525LHKW2.js} +2 -2
  35. package/dist/cdn/{G4CSXZSP.js → 52XXPOCM.js} +2 -2
  36. package/dist/cdn/{56ZCAZDE.js → 53YVFBD6.js} +3 -3
  37. package/dist/cdn/{QP2Y72HY.js → 555R5J5L.js} +2 -2
  38. package/dist/cdn/{45QRHUTZ.js → 5CY6O5VY.js} +2 -2
  39. package/dist/cdn/{6IUAUEKQ.js → 5PEPXZUQ.js} +2 -2
  40. package/dist/cdn/{S2YJSN3J.js → 5W566AFV.js} +2 -2
  41. package/dist/cdn/{KGRZPHJP.js → 5ZLN2E7F.js} +2 -2
  42. package/dist/cdn/{7ZOJTRAS.js → 62EH24ZG.js} +2 -2
  43. package/dist/cdn/{TONQJHXJ.js → 63PGF4KB.js} +11 -11
  44. package/dist/cdn/{N24LGDPN.js → 66BJFYWK.js} +3 -3
  45. package/dist/cdn/{4YDGDPGP.js → 6AN3IZTS.js} +2 -2
  46. package/dist/cdn/{56OE4A23.js → 6BSJZZWP.js} +2 -2
  47. package/dist/cdn/{5XMKURWD.js → 6CH5PJ3D.js} +2 -2
  48. package/dist/cdn/{RDILHWS2.js → 6F2I4B23.js} +2 -2
  49. package/dist/cdn/{UKNBKBH5.js → 6FQ5E7LZ.js} +2 -2
  50. package/dist/cdn/6SFMCZX5.js +32 -0
  51. package/dist/cdn/{GYWUMMDN.js → 6SJN3RI6.js} +1 -1
  52. package/dist/cdn/{GHYD4EBR.js → 6VAWBHQH.js} +2 -2
  53. package/dist/cdn/{SAHTQNWM.js → 6WUCMVS2.js} +2 -2
  54. package/dist/cdn/{VFJV7H6W.js → 6YK3D4GD.js} +2 -2
  55. package/dist/cdn/{HHD5Z5EN.js → 74AFVSP3.js} +2 -2
  56. package/dist/cdn/{LLO33EWF.js → 74BJAXNM.js} +2 -2
  57. package/dist/cdn/{B3AV5OAS.js → 74GRV4IA.js} +2 -2
  58. package/dist/cdn/{EKXIGTZ5.js → 76WTGL74.js} +2 -2
  59. package/dist/cdn/76YHYO6R.js +18 -0
  60. package/dist/cdn/77JHJDO3.js +4 -0
  61. package/dist/cdn/7APZNWWA.js +18 -0
  62. package/dist/cdn/{XFVJSFJ5.js → 7DW6E2G4.js} +2 -2
  63. package/dist/cdn/{XSUKV35L.js → 7RLPE2LE.js} +2 -2
  64. package/dist/cdn/{HWEFRIRN.js → 7TLTRTJJ.js} +2 -2
  65. package/dist/cdn/{4HGHRCLW.js → A47CEPD4.js} +2 -2
  66. package/dist/cdn/{LBUERUZL.js → AAN2GORT.js} +2 -2
  67. package/dist/cdn/{RBDUYYB7.js → AD2XEHSU.js} +2 -2
  68. package/dist/cdn/{LWGXYVCD.js → AMLT4MXJ.js} +2 -2
  69. package/dist/cdn/AQL2EEP6.js +4 -0
  70. package/dist/cdn/{7OIVSNIG.js → AUBGDSNS.js} +2 -2
  71. package/dist/cdn/{3HFAKXIL.js → AWHMTVRK.js} +2 -2
  72. package/dist/cdn/{XKIVIXXT.js → AXXSKOG7.js} +2 -2
  73. package/dist/cdn/{RBJBM64C.js → B32GA4ZY.js} +2 -2
  74. package/dist/cdn/{5NEMTW63.js → BA2ODWAV.js} +2 -2
  75. package/dist/cdn/{GPBHHSTI.js → BASYG5EI.js} +2 -2
  76. package/dist/cdn/{TCM5LALX.js → BCQ7PB5L.js} +1 -1
  77. package/dist/cdn/{CFERHXGG.js → BCT76NH3.js} +2 -2
  78. package/dist/cdn/{SQH2AZXR.js → BE6Y4SAS.js} +2 -2
  79. package/dist/cdn/{KOAORYN5.js → BFMO27HI.js} +2 -2
  80. package/dist/cdn/BLWJJIVF.js +4 -0
  81. package/dist/cdn/{SHNHKCKX.js → BTBBUCFG.js} +2 -2
  82. package/dist/cdn/{VEL6YRJA.js → BUK3AXVT.js} +4 -4
  83. package/dist/cdn/{5GUULURP.js → BWXOVTHE.js} +2 -2
  84. package/dist/cdn/{6ENWX6ZA.js → BXVIXLRN.js} +2 -2
  85. package/dist/cdn/{JZC7ZC6K.js → C3ULFDL6.js} +1 -1
  86. package/dist/cdn/{3QFZV5CC.js → C5JMA3VO.js} +2 -2
  87. package/dist/cdn/{WIJMHK3K.js → CFA55OMC.js} +2 -2
  88. package/dist/cdn/{NVEH2LVJ.js → CG6TQX5R.js} +2 -2
  89. package/dist/cdn/{N25455AK.js → CGO26IXO.js} +2 -2
  90. package/dist/cdn/{Q6KGU3WU.js → CNS57OWN.js} +2 -2
  91. package/dist/cdn/{O26E7HFU.js → CQK3BMBI.js} +2 -2
  92. package/dist/cdn/{EIIWKZ4U.js → CRSVD2NX.js} +2 -2
  93. package/dist/cdn/CRTVGF25.js +18 -0
  94. package/dist/cdn/{RLEZI3WV.js → CUAKPCDU.js} +2 -2
  95. package/dist/cdn/{DSDZMRAC.js → CV5QMNOP.js} +2 -2
  96. package/dist/cdn/{S7UEXHNT.js → CVHMW6KL.js} +2 -2
  97. package/dist/cdn/{2LRANYPI.js → D3RILYWV.js} +3 -3
  98. package/dist/cdn/{SC6MEQGJ.js → DDVJ3JLU.js} +2 -2
  99. package/dist/cdn/{52G24N4M.js → DEDFE33X.js} +2 -2
  100. package/dist/cdn/{GLYPNPSX.js → DFUNTOD4.js} +2 -2
  101. package/dist/cdn/{MI2DZFJY.js → DL3GVIIB.js} +2 -2
  102. package/dist/cdn/DLEBYLCL.js +4 -0
  103. package/dist/cdn/{ZENCSL6X.js → DM5TQ2UX.js} +2 -2
  104. package/dist/cdn/{W5PCSFQO.js → DMOU6E5N.js} +1 -1
  105. package/dist/cdn/{53CMIODC.js → DMYXBSFV.js} +2 -2
  106. package/dist/cdn/{EVLQFI7K.js → DO4C2ZFB.js} +2 -2
  107. package/dist/cdn/DPF7M6FH.js +4 -0
  108. package/dist/cdn/{VIN64XQ4.js → DSQLWDME.js} +2 -2
  109. package/dist/cdn/{KQC75OG6.js → E55QEAZU.js} +2 -2
  110. package/dist/cdn/{RTWANQJA.js → E6F3Q2WH.js} +1 -1
  111. package/dist/cdn/{I4GBNQJZ.js → ECU5P5XQ.js} +2 -2
  112. package/dist/cdn/{O44BGNFI.js → EFVSZIO5.js} +2 -2
  113. package/dist/cdn/{JRUZPNMF.js → EGJJCZ6T.js} +2 -2
  114. package/dist/cdn/{552L3HPD.js → EGSTJEDG.js} +2 -2
  115. package/dist/cdn/{VNO2UIQG.js → EHO2NULT.js} +2 -2
  116. package/dist/cdn/{J55FURXL.js → EIOQMWBZ.js} +1 -1
  117. package/dist/cdn/{MMO2FP5O.js → ENFNJDP4.js} +2 -2
  118. package/dist/cdn/{4YSFE6XJ.js → EOP427LW.js} +2 -2
  119. package/dist/cdn/{KUFS6NIN.js → EQT2HI7R.js} +2 -2
  120. package/dist/cdn/{MWEAFU2Z.js → ESXLY5ZV.js} +2 -2
  121. package/dist/cdn/{YZWMINM4.js → EXUIACSX.js} +2 -2
  122. package/dist/cdn/{C5BGS554.js → F6ZCZA77.js} +2 -2
  123. package/dist/cdn/{GFTEQUKH.js → FNU2KCAL.js} +2 -2
  124. package/dist/cdn/{2TV3MZL7.js → FNVLHQQW.js} +2 -2
  125. package/dist/cdn/{VWU64AAH.js → FQ34TDJ5.js} +2 -2
  126. package/dist/cdn/FTQB6L4P.js +18 -0
  127. package/dist/cdn/{4AXOAB6T.js → FY3IA2CD.js} +2 -2
  128. package/dist/cdn/{MKD6TWT3.js → FZPBKB2A.js} +2 -2
  129. package/dist/cdn/{IS3YSRQ5.js → G2HJS27Y.js} +2 -2
  130. package/dist/cdn/{7YLYAP3T.js → G2VAHTOZ.js} +2 -2
  131. package/dist/cdn/{3Z2VIKWZ.js → G433TJJM.js} +2 -2
  132. package/dist/cdn/{PIPMLOY2.js → G5A42QWN.js} +2 -2
  133. package/dist/cdn/{N6ZHWHWE.js → G5ID4AKW.js} +2 -2
  134. package/dist/cdn/{OAGDRYS7.js → G5QG243B.js} +2 -2
  135. package/dist/cdn/{SOTANKS4.js → G6OXKKII.js} +2 -2
  136. package/dist/cdn/{XG3F2JC3.js → GAJHKAP6.js} +2 -2
  137. package/dist/cdn/{7EZ2M6YH.js → GCCMX7HT.js} +2 -2
  138. package/dist/cdn/{J4JEMHD5.js → GF32HN3G.js} +2 -2
  139. package/dist/cdn/{PUYJFN4F.js → GL2DFPES.js} +2 -2
  140. package/dist/cdn/{SWN5RZ7X.js → GOMCCYIB.js} +2 -2
  141. package/dist/cdn/{EU7IJP35.js → GU2J27Y4.js} +2 -2
  142. package/dist/cdn/GW6MAVZB.js +18 -0
  143. package/dist/cdn/{JV5WVIVC.js → GYRPSJG5.js} +2 -2
  144. package/dist/cdn/{QSR7WBGC.js → GZTVZREB.js} +2 -2
  145. package/dist/cdn/{X24NKRET.js → H36WONTX.js} +1 -1
  146. package/dist/cdn/{JLE2GF7O.js → H6CR332J.js} +2 -2
  147. package/dist/cdn/{TGSOJKYY.js → HGTZZH7P.js} +2 -2
  148. package/dist/cdn/{7HAKKOFA.js → HL4CBUJV.js} +1 -1
  149. package/dist/cdn/{FGGQQ3DB.js → HMFIFRBW.js} +2 -2
  150. package/dist/cdn/{4DYLU6XK.js → HMM6LNIK.js} +2 -2
  151. package/dist/cdn/{65QWDJUV.js → HOAEW2HA.js} +2 -2
  152. package/dist/cdn/{B3ASOZF3.js → HOHL5YGO.js} +2 -2
  153. package/dist/cdn/{MQ45SGUO.js → HSOFX6JP.js} +2 -2
  154. package/dist/cdn/{YZGRGMNE.js → HW3AZE43.js} +1 -1
  155. package/dist/cdn/{LT63I22B.js → HYZPVUUU.js} +2 -2
  156. package/dist/cdn/{STEMMVS3.js → ICBOQVUT.js} +2 -2
  157. package/dist/cdn/{MPVIXVHZ.js → IEWCFRS3.js} +2 -2
  158. package/dist/cdn/{6WYUYMXH.js → IJ7XUCKZ.js} +2 -2
  159. package/dist/cdn/{Y6R22HXO.js → IO4BEC3B.js} +2 -2
  160. package/dist/cdn/{5YAUNXU6.js → IT2QFIDQ.js} +2 -2
  161. package/dist/cdn/{NRJXSAAZ.js → IYGRD77H.js} +2 -2
  162. package/dist/cdn/{7TO4LNVN.js → J3KF3PRN.js} +2 -2
  163. package/dist/cdn/{PDAR2ZPJ.js → J73WKE2A.js} +2 -2
  164. package/dist/cdn/{I45GAP23.js → JAPLJADD.js} +2 -2
  165. package/dist/cdn/{4U472JVE.js → JD2NWIUZ.js} +1 -1
  166. package/dist/cdn/{C7ZLOPKO.js → JJ5NAWQF.js} +2 -2
  167. package/dist/cdn/{CWUGRZCK.js → JJBMLBOD.js} +2 -2
  168. package/dist/cdn/{6Z5MU5XW.js → JMC5S3OP.js} +2 -2
  169. package/dist/cdn/{WDQVBUNM.js → JMNPNOMM.js} +2 -2
  170. package/dist/cdn/{6SJLGJJS.js → JMQYSN2U.js} +2 -2
  171. package/dist/cdn/{N427K3D5.js → JPAPTSIM.js} +2 -2
  172. package/dist/cdn/{L2GYRZF5.js → JPXZR7F6.js} +2 -2
  173. package/dist/cdn/{JYHVLZL5.js → JSG72U23.js} +2 -2
  174. package/dist/cdn/JSLBDCYN.js +4 -0
  175. package/dist/cdn/{DNR3MQNI.js → K4U36B2V.js} +2 -2
  176. package/dist/cdn/{CKZSKRM2.js → K7BJT7P5.js} +2 -2
  177. package/dist/cdn/{TKYSNSDW.js → K7E3FYY7.js} +1 -1
  178. package/dist/cdn/{LGURHBMI.js → KBYURVEW.js} +2 -2
  179. package/dist/cdn/{SB247VZP.js → KCRJ3JSU.js} +2 -2
  180. package/dist/cdn/{FUKBBSYW.js → KFVDMG2X.js} +2 -2
  181. package/dist/cdn/{45XEURWZ.js → KGFJINDZ.js} +2 -2
  182. package/dist/cdn/{TJ5GK2VX.js → L3HN5AEC.js} +2 -2
  183. package/dist/cdn/{LTIBCK2E.js → L7GNTOWS.js} +2 -2
  184. package/dist/cdn/{RB63O3J4.js → LDCLSTHK.js} +2 -2
  185. package/dist/cdn/LSNLFFRL.js +18 -0
  186. package/dist/cdn/{M5KITS5Z.js → LV5REHNL.js} +2 -2
  187. package/dist/cdn/LYQ3KTGD.js +6 -0
  188. package/dist/cdn/{SEMPHWDE.js → LZ3VYGB4.js} +2 -2
  189. package/dist/cdn/{XHNZFG7Z.js → M2HAF2GX.js} +2 -2
  190. package/dist/cdn/{5JO3NUM6.js → M3UIPWYF.js} +2 -2
  191. package/dist/cdn/{P5RH2V64.js → M3WLEKZY.js} +1 -1
  192. package/dist/cdn/{LTKYKBCW.js → MAV2E7IR.js} +2 -2
  193. package/dist/cdn/{XGMOUBQZ.js → MCCOBK4U.js} +2 -2
  194. package/dist/cdn/{UQJGKYGF.js → MDXWBTRA.js} +2 -2
  195. package/dist/cdn/{JWVHNF6G.js → MIBJXLGF.js} +2 -2
  196. package/dist/cdn/{FKXVA4AV.js → MIMNLENH.js} +2 -2
  197. package/dist/cdn/{3SG6LG4Q.js → MLGWC5WC.js} +2 -2
  198. package/dist/cdn/{PYNNQRZB.js → MLPRVROZ.js} +2 -2
  199. package/dist/cdn/{73ORVADS.js → MPOQCAB6.js} +2 -2
  200. package/dist/cdn/{BMTKDW7D.js → MTFQHJ7S.js} +2 -2
  201. package/dist/cdn/{YUAZN5VQ.js → MUKFRDRU.js} +2 -2
  202. package/dist/cdn/{3G2NE6CM.js → N2UEZKKT.js} +1 -1
  203. package/dist/cdn/{JGLVTYTS.js → N3SX4PJO.js} +2 -2
  204. package/dist/cdn/{VI6GC6WF.js → N6XFNMNC.js} +2 -2
  205. package/dist/cdn/{UX46QBO6.js → N7M4R6MB.js} +2 -2
  206. package/dist/cdn/{JYH2QJDR.js → NAAEMR7C.js} +2 -2
  207. package/dist/cdn/{X2AVAYNW.js → NB5Y75SB.js} +2 -2
  208. package/dist/cdn/{WZ2DKIAW.js → NBFNKQRL.js} +2 -2
  209. package/dist/cdn/{44B6UUZ3.js → NBPC3ZFT.js} +2 -2
  210. package/dist/cdn/{6C3IVA2N.js → NBVYJDDR.js} +2 -2
  211. package/dist/cdn/NDF3N6HW.js +4 -0
  212. package/dist/cdn/{REOWO3HH.js → NEWVUWSK.js} +2 -2
  213. package/dist/cdn/{PGPFMHUW.js → NGPTQFAY.js} +1 -1
  214. package/dist/cdn/{6AX3XQ7F.js → NITTCIVL.js} +2 -2
  215. package/dist/cdn/{E6X3WAGB.js → NKHE4IDW.js} +2 -2
  216. package/dist/cdn/{273PO6MK.js → NPTS3X7S.js} +2 -2
  217. package/dist/cdn/{X6NIULF3.js → NPZYRGJR.js} +1 -1
  218. package/dist/cdn/{NCGP5AHM.js → NRNJQ6LW.js} +1 -1
  219. package/dist/cdn/{HVOIXGE3.js → NVNJVDKY.js} +2 -2
  220. package/dist/cdn/{R3NQMOOR.js → NWK4W24O.js} +2 -2
  221. package/dist/cdn/{FNKBRYSX.js → O44LA7OL.js} +1 -1
  222. package/dist/cdn/{GNNZSEBA.js → O4BW2L5G.js} +2 -2
  223. package/dist/cdn/{RZOSVWSR.js → O5FSYFTO.js} +2 -2
  224. package/dist/cdn/{PIYUT7ED.js → O5IC74VW.js} +2 -2
  225. package/dist/cdn/{OSQ6H667.js → O73TK37S.js} +1 -1
  226. package/dist/cdn/{V576A4LT.js → OBINZMHB.js} +2 -2
  227. package/dist/cdn/{3KLAMPBT.js → ODRRKBUZ.js} +2 -2
  228. package/dist/cdn/{OSTYZFZB.js → OT7U2KKN.js} +1 -1
  229. package/dist/cdn/{3O5S7446.js → OXR3CLWM.js} +2 -2
  230. package/dist/cdn/{5YRFNERK.js → OZSUO2RI.js} +2 -2
  231. package/dist/cdn/{2DUXCIBQ.js → P4CH3JVD.js} +1 -1
  232. package/dist/cdn/{JFMCI5UM.js → PDSJLVCU.js} +1 -1
  233. package/dist/cdn/{JGZWT47Y.js → PGQILJGZ.js} +2 -2
  234. package/dist/cdn/{R6H5JT5Y.js → PJ6P5M6W.js} +2 -2
  235. package/dist/cdn/{YJNY7HRQ.js → PK5PHGBL.js} +2 -2
  236. package/dist/cdn/{VRUDJNQ5.js → PLJDLID2.js} +2 -2
  237. package/dist/cdn/{HGB5N5YY.js → PLVZ6KCL.js} +2 -2
  238. package/dist/cdn/{EIL2LBG3.js → PULWJVQ6.js} +1 -1
  239. package/dist/cdn/{RTFSXDXK.js → PUYL34E7.js} +2 -2
  240. package/dist/cdn/{ZUS74DVX.js → Q6F3I5ID.js} +2 -2
  241. package/dist/cdn/{YKV56CP7.js → QBYTLAAR.js} +2 -2
  242. package/dist/cdn/{5NOQHEUI.js → QD45UNRU.js} +1 -1
  243. package/dist/cdn/{AQGOARUP.js → QDGZPTOS.js} +2 -2
  244. package/dist/cdn/{RXP3QCOS.js → QF5SFD5P.js} +1 -1
  245. package/dist/cdn/QGM2IHP7.js +18 -0
  246. package/dist/cdn/{BZCZWRVE.js → QLEOLUNQ.js} +2 -2
  247. package/dist/cdn/{JPONN2WN.js → QLUF3CA4.js} +2 -2
  248. package/dist/cdn/QQMQZWHZ.js +4 -0
  249. package/dist/cdn/{D47MQ4PM.js → QT6NQCTF.js} +2 -2
  250. package/dist/cdn/{DEVZIWDQ.js → QXJZIFME.js} +2 -2
  251. package/dist/cdn/{FVDDBKWI.js → R2BTBE5Y.js} +1 -1
  252. package/dist/cdn/{QPSFN2UQ.js → R2VZTVWF.js} +2 -2
  253. package/dist/cdn/{XVE7NN2W.js → R5MOLXYO.js} +2 -2
  254. package/dist/cdn/{5362WPO4.js → REIIATFT.js} +2 -2
  255. package/dist/cdn/{QN3EXHLI.js → RG3HIFJ7.js} +2 -2
  256. package/dist/cdn/{EFWXAAAR.js → RGQ5Y5GC.js} +2 -2
  257. package/dist/cdn/{Y5XMW2RS.js → RRCJCS53.js} +2 -2
  258. package/dist/cdn/{2OBYJOKR.js → RSOXCIBH.js} +2 -2
  259. package/dist/cdn/{WJ2OAJ4B.js → RVYKZUI7.js} +2 -2
  260. package/dist/cdn/{TZZZZD5J.js → SG5MHJ4N.js} +2 -2
  261. package/dist/cdn/{DRJDDQ63.js → SGLIPS4K.js} +2 -2
  262. package/dist/cdn/{MN7WPB2H.js → SHSMDVKF.js} +2 -2
  263. package/dist/cdn/{YQNFSFGU.js → SHYHZYKZ.js} +2 -2
  264. package/dist/cdn/{ITVN7WBS.js → SKROSG35.js} +2 -2
  265. package/dist/cdn/{MCO5EK56.js → SKWHNZUO.js} +2 -2
  266. package/dist/cdn/SP5Q3OWO.js +4 -0
  267. package/dist/cdn/{IIFFVMSY.js → SQYDLSNS.js} +2 -2
  268. package/dist/cdn/{GWCOCOL3.js → SSNVKKF2.js} +2 -2
  269. package/dist/cdn/{67OEFDYU.js → T2IELMDA.js} +2 -2
  270. package/dist/cdn/{S6R7JLLH.js → T3AL5SL4.js} +2 -2
  271. package/dist/cdn/{YAK2RJWX.js → T7AEMZMX.js} +2 -2
  272. package/dist/cdn/{VTE2Z2LQ.js → TFM3Q342.js} +1 -1
  273. package/dist/cdn/{MGZ4FZSB.js → TG6OB6L6.js} +2 -2
  274. package/dist/cdn/{WLBFUOTA.js → TGEGZY2G.js} +2 -2
  275. package/dist/cdn/{NO6JAPC4.js → TKY57TEX.js} +2 -2
  276. package/dist/cdn/{QO2F624G.js → TKZN4NGF.js} +2 -2
  277. package/dist/cdn/{6YZKX2YS.js → TNOZQKKG.js} +1 -1
  278. package/dist/cdn/{ND2UM3Q6.js → TTBW4SM4.js} +2 -2
  279. package/dist/cdn/{6PV7ONPN.js → TZMCPBQ6.js} +2 -2
  280. package/dist/cdn/U45RA23S.js +4 -0
  281. package/dist/cdn/{SQT7NXFS.js → UFY4FKE4.js} +2 -2
  282. package/dist/cdn/{U3YRL76J.js → UG6DTQWC.js} +2 -2
  283. package/dist/cdn/{ZL7OSGNB.js → UGCZTLUJ.js} +2 -2
  284. package/dist/cdn/{CJ4OXYMV.js → ULYPTG4C.js} +2 -2
  285. package/dist/cdn/{ZKTGGIVP.js → UMLSM7SQ.js} +2 -2
  286. package/dist/cdn/{U5SBW2GG.js → UOQ75LBF.js} +2 -2
  287. package/dist/cdn/{HQRJVP5B.js → UOTCT3X2.js} +2 -2
  288. package/dist/cdn/{M7IVXQWP.js → UPP373IZ.js} +2 -2
  289. package/dist/cdn/{PZUHPEAK.js → USH2FWEI.js} +2 -2
  290. package/dist/cdn/{DRRC5BOC.js → UWPYZKRU.js} +2 -2
  291. package/dist/cdn/{SUMIEV7Y.js → UXHFA7TQ.js} +1 -1
  292. package/dist/cdn/{L6HVJIN6.js → UXQTOOQF.js} +2 -2
  293. package/dist/cdn/{LBG4SUYF.js → UZ3FNZON.js} +2 -2
  294. package/dist/cdn/{EJTEZKXU.js → V3ZZ5N4R.js} +2 -2
  295. package/dist/cdn/{4FO75I6N.js → V4AQKHXK.js} +2 -2
  296. package/dist/cdn/{QCIMGMB5.js → V4Z4WMMJ.js} +2 -2
  297. package/dist/cdn/{H55OHD43.js → VCKCORX7.js} +2 -2
  298. package/dist/cdn/{LA6CUBIO.js → VEPVOZOG.js} +2 -2
  299. package/dist/cdn/{2RKT7ZM5.js → VOMUURUC.js} +2 -2
  300. package/dist/cdn/{OBVKSQEU.js → VSD3M6NN.js} +2 -2
  301. package/dist/cdn/{ZAOYI7VI.js → VWW3LSRO.js} +2 -2
  302. package/dist/cdn/{3FQ7NOEN.js → VYKVHYXK.js} +2 -2
  303. package/dist/cdn/W7MYYAYF.js +4 -0
  304. package/dist/cdn/{HC5QYVJ2.js → WBFSXBTD.js} +2 -2
  305. package/dist/cdn/{MXHUWGWH.js → WGAW32YJ.js} +1 -1
  306. package/dist/cdn/{YZYPUNXQ.js → WLOLHBFB.js} +2 -2
  307. package/dist/cdn/{DRBJRFXQ.js → WSRJWIJL.js} +2 -2
  308. package/dist/cdn/{TH655CSJ.js → WTTVUTLF.js} +2 -2
  309. package/dist/cdn/{5XR5Z33A.js → WWWGD7IQ.js} +2 -2
  310. package/dist/cdn/{2AA6NYJP.js → WYKWWP7A.js} +2 -2
  311. package/dist/cdn/{6QZUTDMP.js → WZEVKWM7.js} +2 -2
  312. package/dist/cdn/{EBYZPTCH.js → WZIKGI4S.js} +2 -2
  313. package/dist/cdn/{SCVPTZEB.js → XCBEEW4Y.js} +2 -2
  314. package/dist/cdn/XIH4QECN.js +4 -0
  315. package/dist/cdn/{FSEHFYQN.js → XKTAGUXR.js} +2 -2
  316. package/dist/cdn/{VEUJ6N6V.js → XLOS4YK7.js} +2 -2
  317. package/dist/cdn/{4CM3ZBKR.js → XLOU4CT6.js} +1 -1
  318. package/dist/cdn/{J2C5QTAW.js → XQVP3LAD.js} +1 -1
  319. package/dist/cdn/{ZVTKIZVK.js → XSZKL3RH.js} +2 -2
  320. package/dist/cdn/{IKDE7TRJ.js → YDBXXYQT.js} +2 -2
  321. package/dist/cdn/{7UU2OGO4.js → YETXYXLA.js} +2 -2
  322. package/dist/cdn/{2UETDNR5.js → YLQDUOIF.js} +2 -2
  323. package/dist/cdn/{GJKBVR5V.js → YNBOJIO2.js} +1 -1
  324. package/dist/cdn/{3H44N4FR.js → YUNO2IBI.js} +2 -2
  325. package/dist/cdn/{PIELGC5E.js → YWR4TMJW.js} +2 -2
  326. package/dist/cdn/{GGJN4CY2.js → YX5XY52P.js} +2 -2
  327. package/dist/cdn/{RZYE3BNV.js → YZ3L2PZE.js} +2 -2
  328. package/dist/cdn/{6VB57DL2.js → Z2B6IWJT.js} +2 -2
  329. package/dist/cdn/{3FP7PHRR.js → Z3IFAZMT.js} +2 -2
  330. package/dist/cdn/{VVBIF2KT.js → Z5526TL4.js} +2 -2
  331. package/dist/cdn/{QOUB25WU.js → ZCNTFMFD.js} +1 -1
  332. package/dist/cdn/{FBGKT423.js → ZD2KMD76.js} +2 -2
  333. package/dist/cdn/{J6EJFNQR.js → ZIASRWEX.js} +2 -2
  334. package/dist/cdn/{XKERX3Y7.js → ZJICNLKM.js} +2 -2
  335. package/dist/cdn/{CCBKAPFC.js → ZLFAD7B6.js} +2 -2
  336. package/dist/cdn/{UFQESXOQ.js → ZN44SNEG.js} +2 -2
  337. package/dist/cdn/{LRKBWB34.js → ZPZAW75N.js} +2 -2
  338. package/dist/cdn/{V6LEW5RU.js → ZQCWMQNP.js} +1 -1
  339. package/dist/cdn/ZRJN3QPB.js +4 -0
  340. package/dist/cdn/{3IQDNOWP.js → ZVL3K67Z.js} +2 -2
  341. package/dist/cdn/{CA5VLB6E.js → ZYGVWDQR.js} +2 -2
  342. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ar.json +1 -0
  343. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.bg.json +1 -0
  344. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.bs.json +1 -0
  345. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ca.json +1 -0
  346. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.cs.json +1 -0
  347. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.da.json +1 -0
  348. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.de.json +1 -1
  349. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.el.json +1 -0
  350. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.en.json +1 -1
  351. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.es.json +1 -0
  352. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.et.json +1 -0
  353. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.fi.json +1 -0
  354. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.fr.json +1 -0
  355. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.he.json +1 -1
  356. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.hr.json +1 -0
  357. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.hu.json +1 -0
  358. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.id.json +1 -0
  359. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.it.json +1 -0
  360. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ja.json +1 -0
  361. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.json +1 -1
  362. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ko.json +1 -0
  363. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.lt.json +1 -0
  364. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.lv.json +1 -0
  365. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.nl.json +1 -0
  366. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.no.json +1 -0
  367. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.pl.json +1 -0
  368. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.pt-BR.json +1 -0
  369. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.pt-PT.json +1 -0
  370. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ro.json +1 -0
  371. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ru.json +1 -0
  372. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.sk.json +1 -0
  373. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.sl.json +1 -0
  374. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.sr.json +1 -0
  375. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.sv.json +1 -0
  376. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.th.json +1 -0
  377. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.tr.json +1 -0
  378. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.uk.json +1 -0
  379. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.vi.json +1 -0
  380. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.zh-CN.json +1 -0
  381. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.zh-HK.json +1 -0
  382. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.zh-TW.json +1 -0
  383. package/dist/cdn/index.js +2 -2
  384. package/dist/chunks/Auth.js +1 -1
  385. package/dist/chunks/CardsFetcher.js +1 -1
  386. package/dist/chunks/appConfig.js +1 -1
  387. package/dist/chunks/cardFetchingUtils.js +1 -1
  388. package/dist/chunks/cardsHelpers.js +1 -1
  389. package/dist/chunks/common.js +1 -1
  390. package/dist/chunks/deployAppContexts.js +1 -1
  391. package/dist/chunks/downloadUtils.js +1 -1
  392. package/dist/chunks/getItemIcon.js +1 -1
  393. package/dist/chunks/helpers.js +1 -1
  394. package/dist/chunks/interfaces.js +1 -1
  395. package/dist/chunks/loadModules.js +1 -1
  396. package/dist/chunks/mapViewUtils.js +1 -1
  397. package/dist/chunks/pciUtils.js +1 -1
  398. package/dist/chunks/popupUtils.js +1 -1
  399. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  400. package/dist/chunks/privilegeUtils.js +1 -1
  401. package/dist/chunks/publicNotificationContext.js +1 -1
  402. package/dist/chunks/queryUtils.js +1 -1
  403. package/dist/chunks/runtime.js +1 -1
  404. package/dist/chunks/solution-store.js +1 -1
  405. package/dist/chunks/templates.js +1 -1
  406. package/dist/chunks/useT9n.js +1 -1
  407. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  408. package/dist/components/basemap-gallery/customElement.js +1 -1
  409. package/dist/components/buffer-tools/customElement.js +8 -8
  410. package/dist/components/card-manager/customElement.js +1 -1
  411. package/dist/components/consent-manager/customElement.js +1 -1
  412. package/dist/components/create-feature/customElement.js +1 -1
  413. package/dist/components/create-related-feature/customElement.js +1 -1
  414. package/dist/components/crowdsource-manager/customElement.js +11 -11
  415. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  416. package/dist/components/deduct-calculator/customElement.js +1 -1
  417. package/dist/components/delete-button/customElement.js +1 -1
  418. package/dist/components/delete-dialog/customElement.js +1 -1
  419. package/dist/components/edit-card/customElement.js +1 -1
  420. package/dist/components/feature-details/customElement.js +1 -1
  421. package/dist/components/feature-list/customElement.js +1 -1
  422. package/dist/components/field-selection/customElement.js +1 -1
  423. package/dist/components/floor-filter/customElement.js +1 -1
  424. package/dist/components/info-card/customElement.js +1 -1
  425. package/dist/components/json-editor/customElement.js +1 -1
  426. package/dist/components/layer-list/customElement.js +1 -1
  427. package/dist/components/layer-table/customElement.js +1 -1
  428. package/dist/components/map-card/customElement.js +1 -1
  429. package/dist/components/map-draw-tools/customElement.js +34 -30
  430. package/dist/components/map-fullscreen/customElement.js +1 -1
  431. package/dist/components/map-layer-picker/customElement.js +1 -1
  432. package/dist/components/map-legend/customElement.js +1 -1
  433. package/dist/components/map-picker/customElement.js +1 -1
  434. package/dist/components/map-search/customElement.js +1 -1
  435. package/dist/components/map-select-tools/customElement.js +11 -11
  436. package/dist/components/map-tools/customElement.js +1 -1
  437. package/dist/components/pci-calculator/customElement.js +1 -1
  438. package/dist/components/pdf-download/customElement.js +1 -1
  439. package/dist/components/public-notification/customElement.js +15 -15
  440. package/dist/components/refine-selection/customElement.d.ts +1 -0
  441. package/dist/components/refine-selection/customElement.js +44 -41
  442. package/dist/components/selection-tool/customElement.js +1 -1
  443. package/dist/components/solution-article-card/customElement.js +1 -1
  444. package/dist/components/solution-configuration/customElement.js +1 -1
  445. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  446. package/dist/components/solution-configure-titles/customElement.js +1 -1
  447. package/dist/components/solution-contents/customElement.js +1 -1
  448. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  449. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  450. package/dist/components/solution-deployed-card/customElement.js +1 -1
  451. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  452. package/dist/components/solution-details-card/customElement.js +1 -1
  453. package/dist/components/solution-details-panel/customElement.js +1 -1
  454. package/dist/components/solution-item/customElement.js +1 -1
  455. package/dist/components/solution-item-accordion/customElement.js +1 -1
  456. package/dist/components/solution-item-details/customElement.js +1 -1
  457. package/dist/components/solution-item-diagram/customElement.js +1 -1
  458. package/dist/components/solution-item-icon/customElement.js +1 -1
  459. package/dist/components/solution-item-sharing/customElement.js +1 -1
  460. package/dist/components/solution-organization-variables/customElement.js +1 -1
  461. package/dist/components/solution-resource-item/customElement.js +1 -1
  462. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  463. package/dist/components/solution-social-share/customElement.js +1 -1
  464. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  465. package/dist/components/solution-template-data/customElement.js +1 -1
  466. package/dist/components/solution-variables/customElement.js +1 -1
  467. package/dist/components/solutions-all-panel/customElement.js +1 -1
  468. package/dist/components/solutions-all-shell/customElement.js +15 -15
  469. package/dist/components/solutions-article-panel/customElement.js +1 -1
  470. package/dist/components/solutions-articles/customElement.js +1 -1
  471. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  472. package/dist/components/solutions-deploy-app/customElement.js +9 -9
  473. package/dist/components/solutions-deploy-app-nav/customElement.d.ts +7 -0
  474. package/dist/components/solutions-deploy-app-nav/customElement.js +32 -16
  475. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  476. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  477. package/dist/components/solutions-deployed-shell/customElement.js +15 -15
  478. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  479. package/dist/components/spatial-ref/customElement.js +1 -1
  480. package/dist/components/store-manager/customElement.js +1 -1
  481. package/dist/docs/api.json +62 -4
  482. package/dist/docs/docs.json +40 -5
  483. package/dist/docs/vscode.html-custom-data.json +20 -1
  484. package/dist/docs/web-types.json +23 -4
  485. package/dist/index.js +1 -1
  486. package/dist/loader.js +2 -2
  487. package/dist/types/lumina.d.ts +1 -1
  488. package/dist/types/preact.d.ts +1 -1
  489. package/dist/types/preact10.d.ts +1 -1
  490. package/dist/types/react.d.ts +1 -1
  491. package/dist/types/stencil.d.ts +1 -1
  492. package/dist/utils/interfaces.d.ts +1 -1
  493. package/package.json +1 -1
  494. package/dist/cdn/63VQEHWN.js +0 -4
  495. package/dist/cdn/7Q24NAZO.js +0 -4
  496. package/dist/cdn/7XGDSTMO.js +0 -6
  497. package/dist/cdn/AX4T4DGX.js +0 -4
  498. package/dist/cdn/BIRD7YH7.js +0 -4
  499. package/dist/cdn/C7JUA4HX.js +0 -18
  500. package/dist/cdn/D7PJ7S5F.js +0 -4
  501. package/dist/cdn/DA57AJHT.js +0 -4
  502. package/dist/cdn/DARBIBVV.js +0 -18
  503. package/dist/cdn/DYFITLC3.js +0 -18
  504. package/dist/cdn/E427J4ZP.js +0 -4
  505. package/dist/cdn/HP4YH4K4.js +0 -4
  506. package/dist/cdn/MSS256QC.js +0 -18
  507. package/dist/cdn/MZYAXBIV.js +0 -18
  508. package/dist/cdn/O5PFZ4VJ.js +0 -4
  509. package/dist/cdn/SRIUS4NU.js +0 -20
  510. package/dist/cdn/T3HGF2A2.js +0 -4
  511. package/dist/cdn/WSVCBFI4.js +0 -18
  512. package/dist/cdn/WTZZSM6B.js +0 -18
  513. package/dist/cdn/X4TBVM25.js +0 -4
  514. package/dist/cdn/X6R7Z5LM.js +0 -18
  515. package/dist/cdn/YQOJOZII.js +0 -4
  516. package/dist/cdn/ZLKWEPL6.js +0 -4
  517. package/dist/solutions-components_commit.txt +0 -10
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
4
- import{a as Pn}from"./D4JDKVPO.js";import"./GWCOCOL3.js";import"./57JC2AOJ.js";import{b as En}from"./OBVKSQEU.js";import{E as jn,h as In,o as kn}from"./RXP3QCOS.js";import"./TCM5LALX.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.0-next.20251003 */
4
+ import{a as Pn}from"./2VKF6PR4.js";import"./SSNVKKF2.js";import"./4DPOKY7J.js";import{b as En}from"./VSD3M6NN.js";import{E as jn,h as In,o as kn}from"./QF5SFD5P.js";import"./BCQ7PB5L.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.0-next.20251001 */
4
- import b from"./SOTANKS4.js";import{a as $,b as k,e as B,f as U}from"./Y5XMW2RS.js";import a from"./RBJBM64C.js";import{a as T}from"./WZ2DKIAW.js";import{a as _}from"./DEVZIWDQ.js";import{a as L}from"./TH655CSJ.js";import{C as D}from"./MXHUWGWH.js";import{b as w}from"./OAGDRYS7.js";import"./GWCOCOL3.js";import"./57JC2AOJ.js";import{E as C,G as r,h as S,i as n,o as I}from"./RXP3QCOS.js";import"./TCM5LALX.js";export default $arcgis.t(([,{c:v,e:u,f:e,g:P,h:m,j:b,l:E,m:f}])=>{var R=S`:host{display:block}:host calcite-modal{--calcite-modal-content-padding: 0}:host .instant-apps-language-translator__header{display:flex;justify-content:space-between;width:100%}:host .instant-apps-language-translator__header-text{font-size:18px}:host .instant-apps-language-translator__saving-indicator{display:flex;align-items:center;font-size:14.5px;color:var(--calcite-color-brand)}:host .instant-apps-language-translator__writing-icon{display:flex;justify-content:center;align-items:center;margin-right:5px}:host .instant-apps-language-translator__close-button{width:175px}:host .instant-apps-language-translator__header-tip{padding:20px;max-width:45vw}:host .instant-apps-language-translator__top-bar{display:flex;width:100%;position:sticky;top:-2%;background:var(--calcite-color-foreground-1);z-index:1}:host .instant-apps-language-translator__top-bar calcite-label{--calcite-label-margin-bottom: 0;font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator__top-bar-section{box-sizing:border-box;display:flex;align-items:center;width:50%;padding:.5%}:host .instant-apps-language-translator__user-lang-text{font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator__top-bar-section:first-child{display:flex;justify-content:space-between}:host .instant-apps-language-translator__top-bar-section:nth-child(2) calcite-select{width:255px}:host .instant-apps-language-translator__collapse-search-container{display:flex;justify-content:space-between}:host .instant-apps-language-translator__collapse-search-container calcite-input{width:300px;margin-left:30px}:host .instant-apps-language-translator__primary-content{display:flex;align-items:center}:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__close-button,:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__saving-indicator,:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__last-auto-save{margin-right:20px}.ck.ck-reset.ck-editor.ck-rounded-corners{margin-top:10px!important;margin-left:55px!important}.ck-editor__editable{height:70px!important;font-size:.875rem!important;line-height:1.375!important}.ck.ck-editor__editable_inline>:first-child,.ck.ck-editor__editable_inline>:last-child{--ck-spacing-large: .5rem !important}:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__close-button,:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__saving-indicator,:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__last-auto-save{margin-right:unset;margin-left:20px}`,l="instant-apps-language-translator",i={header:`${l}__header`,headerText:`${l}__header-text`,savingIndicator:`${l}__saving-indicator`,closeButton:`${l}__close-button`,headerTip:`${l}__header-tip`,topBar:`${l}__top-bar`,topBarSection:`${l}__top-bar-section`,collapseSearchContainer:`${l}__collapse-search-container`,userLangText:`${l}__user-lang-text`,lastItem:`${l}--last-item`,primaryContent:`${l}__primary-content`,lastAutoSave:`${l}__last-auto-save`},y=class extends C{constructor(){super(),this._messages=L({name:"instant-apps-language-translator",blocking:!0}),this.saving=!1,this.isCollapse=!0,this.open=!1,this.translatorDataUpdated=I(),this.listenOn(window,"translatorItemDataUpdated",this.handleT9nItemUpdate)}static{this.properties={saving:16,isCollapse:16,portalItem:0,appSettings:0,locales:0,open:5,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=R}async batchWriteToPortalItemResource(t){e.set("saving",!0);try{let a=await this.getPortalItemResource();if(!a){e.set("saving",!1);return}let s=Date.now();e.set("lastSave",s);let o=[JSON.stringify({...t,lastSave:s})],g={type:"application/json"},p=new Blob(o,g);return await a.update(p),setTimeout(()=>e.set("saving",!1),1500),this.translatorDataUpdated.emit(),Promise.resolve()}catch(a){return console.error("Error writing to portal item resource: ",a),e.set("saving",!1),await Promise.reject(new Error("Failed to batch write to portal item resource"))}}async getPortalItemResource(){return e.get("portalItemResource")}async getTranslationData(){return e.get("portalItemResourceT9n")}async setTranslationData(t){e.set("portalItemResourceT9n",t)}load(){E()}willUpdate(t){(t.has("locales")||t.has("appSettings"))&&(this.initUIData(),this.initSelectLanguage())}async loaded(){await this.initialize()}handleT9nItemUpdate(){this.translatorDataUpdated.emit()}async initialize(){let[t]=await Promise.all([D()]);this.intl=t,this.initUIData(),await this.initPortalItemResourceT9nData(),this.initSelectLanguage()}initUIData(){let{appSettings:t,locales:a}=this,s=P(t,a);e.set("uiData",s)}initSelectLanguage(){if(!this.intl)return;let t=this.locales?.[0]?.locale??this.intl.getLocale(),a=e.get("currentLanguage");this.locales.filter(s=>s.locale===a).length===0&&e.set("currentLanguage",t)}async initPortalItemResourceT9nData(){try{let t=await U(this.portalItem);e.set("portalItemResource",t);let a=await B(t);e.set("lastSave",a.lastSave),e.set("portalItemResourceT9n",a??{})}catch{}}handleExpandCollapseAll(){this.isCollapse=!this.isCollapse;let t=new Map(u.uiData);m().forEach(a=>t.get(a).expanded=this.isCollapse),e.set("uiData",t)}onSuggestionSelect(t){let a=t.detail,s=new Map(u.uiData),o=m(),g=p=>{let c=s.get(p);if(p===a){c.selected=!0;return}c.selected=!1};o.forEach(g),e.set("uiData",s)}close(){this.open=!1}handleLanguageSelection(t){let a=t.target.value;e.set("currentLanguage",a)}render(){return n`${this.renderDialog()}${this.renderPopoverTip()}`}renderDialog(){return n`<calcite-dialog .open=${this.open} scale=l placement=cover @calciteDialogClose=${this.close}>${this.renderHeader()}${this.renderContent()}${this.renderPrimaryContent()}</calcite-dialog>`}renderPopoverTip(){return n`<calcite-popover label reference-element=headerTip placement=trailing auto-close closable><div class=${r(i.headerTip)}>${this._messages.headerTip}</div></calcite-popover>`}renderHeader(){return n`<header class=${r(i.header)} slot=header-content>${this.renderHeaderText()}</header>`}renderHeaderText(){return n`<div class=${r(i.headerText)}><span>${this._messages.header}</span><calcite-button id=headerTip appearance=transparent><calcite-icon .icon=${v.Popover} scale=s></calcite-icon></calcite-button></div>`}renderSavingIndicator(){return n`<div class=${r(i.savingIndicator)}><calcite-loader .label=${this._messages.saving} inline></calcite-loader><span>${this._messages.saving}</span></div>`}renderContent(){let t=b(this.locales);return n`<div>${this.renderTopBar()}${t?.length>0?this.renderUIData():this.renderNotice()}</div>`}renderTopBar(){return n`<div class=${r(i.topBar)}>${this.renderLeadingTopBarSection()}${this.renderTrailingTopBarSection()}</div>`}renderLeadingTopBarSection(){return n`<div class=${r(i.topBarSection)}>${this.renderUserLocale()}${this.renderCollapseSearchContainer()}</div>`}renderUserLocale(){let t=this._messages.languages,a=k(),s=t?.[a];return n`<div class=${r(i.userLangText)}>${s}</div>`}renderCollapseSearchContainer(){return n`<div class=${r(i.collapseSearchContainer)}>${this.renderExpandCollapseButton()}${this.renderSearch()}</div>`}renderExpandCollapseButton(){let{isCollapse:t,_messages:a}=this,s=t?a?.collapseAll:a?.expandAll;return n`<slot name=primary-custom-action></slot><slot name=secondary-custom-action></slot><calcite-button @click=${this.handleExpandCollapseAll} appearance=transparent .iconStart=${v.ExpandCollapse}>${s}</calcite-button>`}renderSearch(){return n`<instant-apps-language-translator-search @suggestionSelected=${this.onSuggestionSelect} .t9nPlaceholder=${this._messages.searchPlaceholder}></instant-apps-language-translator-search>`}renderTrailingTopBarSection(){return n`<div class=${r(i.topBarSection)}>${this.renderLanguageSelection()}<slot name=translation-custom-action></slot></div>`}renderLanguageSelection(){return n`<calcite-label layout=inline>${this._messages.translatedLanguage}<calcite-select label @calciteSelectChange=${this.handleLanguageSelection}>${this.renderTranslatedLangOptions()}</calcite-select></calcite-label>`}renderTranslatedLangOptions(){let t=e.get("uiData")?.get("locales"),a=b(t),s=Object.keys($.partial);return T(a,o=>`translated-lang-option-${o}`,o=>{let g=s.includes(o)?"partial":"full",p=$[g],{language:c,translated:d}=p[o],h=`${c} - ${d}`;return n`<calcite-option .value=${o}>${h}</calcite-option>`})}renderUIData(){if(!u?.uiData)return;let t=m();return n`<div>${t?.map((a,s)=>this.renderUIDataItem(a,s,t.length))}</div>`}renderNotice(){let t=this._messages.noLanguage;return n`<calcite-notice open icon=exclamation-mark-triangle kind=warning><div slot=title>${t?.title}</div><div slot=message>${t?.message}</div></calcite-notice>`}renderUIDataItem(t,a,s){let o=this.appSettings?.translatedLanguageLabels?.[u.currentLanguage],g=a===s-1?i.lastItem:"",p=this.appSettings.content.find(c=>c.id===t);return _(`${t}-${a}`,n`<instant-apps-language-translator-item class=${r(g)} .fieldName=${t} .translatedLanguageLabels=${o} .setting=${p} .userLocaleInputOnChangeCallback=${async(c,d)=>{try{await this.userLocaleInputOnChangeCallback(c,d);let h=e.get("portalItemResource");f(h)}catch{}}} .translatedLocaleInputOnChangeCallback=${async(c,d,h,x)=>{try{await this.translatedLocaleInputOnChangeCallback(c,d,h,x),f(x)}catch{}}}></instant-apps-language-translator-item>`)}renderPrimaryContent(){return n`<div class=${r(i.primaryContent)} slot=footer-end>${e.get("saving")?this.renderSavingIndicator():null}${e.get("lastSave")?_("last-save",n`<span class=${r(i.lastAutoSave)}>${this._messages.lastAutoSave} ${this.intl.formatDate(e.get("lastSave"))}</span>`):null}<calcite-button @click=${()=>this.open=!1} class=${r(i.closeButton)}>${this._messages.close}</calcite-button></div>`}};w("instant-apps-language-translator",y);return y},a,b)
3
+ v1.1.0-next.20251003 */
4
+ import b from"./G6OXKKII.js";import{a as $,b as k,e as B,f as U}from"./RRCJCS53.js";import a from"./B32GA4ZY.js";import{a as T}from"./NBFNKQRL.js";import{a as _}from"./QXJZIFME.js";import{a as L}from"./WTTVUTLF.js";import{C as D}from"./WGAW32YJ.js";import{b as w}from"./G5QG243B.js";import"./SSNVKKF2.js";import"./4DPOKY7J.js";import{E as C,G as r,h as S,i as n,o as I}from"./QF5SFD5P.js";import"./BCQ7PB5L.js";export default $arcgis.t(([,{c:v,e:u,f:e,g:P,h:m,j:b,l:E,m:f}])=>{var R=S`:host{display:block}:host calcite-modal{--calcite-modal-content-padding: 0}:host .instant-apps-language-translator__header{display:flex;justify-content:space-between;width:100%}:host .instant-apps-language-translator__header-text{font-size:18px}:host .instant-apps-language-translator__saving-indicator{display:flex;align-items:center;font-size:14.5px;color:var(--calcite-color-brand)}:host .instant-apps-language-translator__writing-icon{display:flex;justify-content:center;align-items:center;margin-right:5px}:host .instant-apps-language-translator__close-button{width:175px}:host .instant-apps-language-translator__header-tip{padding:20px;max-width:45vw}:host .instant-apps-language-translator__top-bar{display:flex;width:100%;position:sticky;top:-2%;background:var(--calcite-color-foreground-1);z-index:1}:host .instant-apps-language-translator__top-bar calcite-label{--calcite-label-margin-bottom: 0;font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator__top-bar-section{box-sizing:border-box;display:flex;align-items:center;width:50%;padding:.5%}:host .instant-apps-language-translator__user-lang-text{font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator__top-bar-section:first-child{display:flex;justify-content:space-between}:host .instant-apps-language-translator__top-bar-section:nth-child(2) calcite-select{width:255px}:host .instant-apps-language-translator__collapse-search-container{display:flex;justify-content:space-between}:host .instant-apps-language-translator__collapse-search-container calcite-input{width:300px;margin-left:30px}:host .instant-apps-language-translator__primary-content{display:flex;align-items:center}:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__close-button,:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__saving-indicator,:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__last-auto-save{margin-right:20px}.ck.ck-reset.ck-editor.ck-rounded-corners{margin-top:10px!important;margin-left:55px!important}.ck-editor__editable{height:70px!important;font-size:.875rem!important;line-height:1.375!important}.ck.ck-editor__editable_inline>:first-child,.ck.ck-editor__editable_inline>:last-child{--ck-spacing-large: .5rem !important}:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__close-button,:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__saving-indicator,:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__last-auto-save{margin-right:unset;margin-left:20px}`,l="instant-apps-language-translator",i={header:`${l}__header`,headerText:`${l}__header-text`,savingIndicator:`${l}__saving-indicator`,closeButton:`${l}__close-button`,headerTip:`${l}__header-tip`,topBar:`${l}__top-bar`,topBarSection:`${l}__top-bar-section`,collapseSearchContainer:`${l}__collapse-search-container`,userLangText:`${l}__user-lang-text`,lastItem:`${l}--last-item`,primaryContent:`${l}__primary-content`,lastAutoSave:`${l}__last-auto-save`},y=class extends C{constructor(){super(),this._messages=L({name:"instant-apps-language-translator",blocking:!0}),this.saving=!1,this.isCollapse=!0,this.open=!1,this.translatorDataUpdated=I(),this.listenOn(window,"translatorItemDataUpdated",this.handleT9nItemUpdate)}static{this.properties={saving:16,isCollapse:16,portalItem:0,appSettings:0,locales:0,open:5,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=R}async batchWriteToPortalItemResource(t){e.set("saving",!0);try{let a=await this.getPortalItemResource();if(!a){e.set("saving",!1);return}let s=Date.now();e.set("lastSave",s);let o=[JSON.stringify({...t,lastSave:s})],g={type:"application/json"},p=new Blob(o,g);return await a.update(p),setTimeout(()=>e.set("saving",!1),1500),this.translatorDataUpdated.emit(),Promise.resolve()}catch(a){return console.error("Error writing to portal item resource: ",a),e.set("saving",!1),await Promise.reject(new Error("Failed to batch write to portal item resource"))}}async getPortalItemResource(){return e.get("portalItemResource")}async getTranslationData(){return e.get("portalItemResourceT9n")}async setTranslationData(t){e.set("portalItemResourceT9n",t)}load(){E()}willUpdate(t){(t.has("locales")||t.has("appSettings"))&&(this.initUIData(),this.initSelectLanguage())}async loaded(){await this.initialize()}handleT9nItemUpdate(){this.translatorDataUpdated.emit()}async initialize(){let[t]=await Promise.all([D()]);this.intl=t,this.initUIData(),await this.initPortalItemResourceT9nData(),this.initSelectLanguage()}initUIData(){let{appSettings:t,locales:a}=this,s=P(t,a);e.set("uiData",s)}initSelectLanguage(){if(!this.intl)return;let t=this.locales?.[0]?.locale??this.intl.getLocale(),a=e.get("currentLanguage");this.locales.filter(s=>s.locale===a).length===0&&e.set("currentLanguage",t)}async initPortalItemResourceT9nData(){try{let t=await U(this.portalItem);e.set("portalItemResource",t);let a=await B(t);e.set("lastSave",a.lastSave),e.set("portalItemResourceT9n",a??{})}catch{}}handleExpandCollapseAll(){this.isCollapse=!this.isCollapse;let t=new Map(u.uiData);m().forEach(a=>t.get(a).expanded=this.isCollapse),e.set("uiData",t)}onSuggestionSelect(t){let a=t.detail,s=new Map(u.uiData),o=m(),g=p=>{let c=s.get(p);if(p===a){c.selected=!0;return}c.selected=!1};o.forEach(g),e.set("uiData",s)}close(){this.open=!1}handleLanguageSelection(t){let a=t.target.value;e.set("currentLanguage",a)}render(){return n`${this.renderDialog()}${this.renderPopoverTip()}`}renderDialog(){return n`<calcite-dialog .open=${this.open} scale=l placement=cover @calciteDialogClose=${this.close}>${this.renderHeader()}${this.renderContent()}${this.renderPrimaryContent()}</calcite-dialog>`}renderPopoverTip(){return n`<calcite-popover label reference-element=headerTip placement=trailing auto-close closable><div class=${r(i.headerTip)}>${this._messages.headerTip}</div></calcite-popover>`}renderHeader(){return n`<header class=${r(i.header)} slot=header-content>${this.renderHeaderText()}</header>`}renderHeaderText(){return n`<div class=${r(i.headerText)}><span>${this._messages.header}</span><calcite-button id=headerTip appearance=transparent><calcite-icon .icon=${v.Popover} scale=s></calcite-icon></calcite-button></div>`}renderSavingIndicator(){return n`<div class=${r(i.savingIndicator)}><calcite-loader .label=${this._messages.saving} inline></calcite-loader><span>${this._messages.saving}</span></div>`}renderContent(){let t=b(this.locales);return n`<div>${this.renderTopBar()}${t?.length>0?this.renderUIData():this.renderNotice()}</div>`}renderTopBar(){return n`<div class=${r(i.topBar)}>${this.renderLeadingTopBarSection()}${this.renderTrailingTopBarSection()}</div>`}renderLeadingTopBarSection(){return n`<div class=${r(i.topBarSection)}>${this.renderUserLocale()}${this.renderCollapseSearchContainer()}</div>`}renderUserLocale(){let t=this._messages.languages,a=k(),s=t?.[a];return n`<div class=${r(i.userLangText)}>${s}</div>`}renderCollapseSearchContainer(){return n`<div class=${r(i.collapseSearchContainer)}>${this.renderExpandCollapseButton()}${this.renderSearch()}</div>`}renderExpandCollapseButton(){let{isCollapse:t,_messages:a}=this,s=t?a?.collapseAll:a?.expandAll;return n`<slot name=primary-custom-action></slot><slot name=secondary-custom-action></slot><calcite-button @click=${this.handleExpandCollapseAll} appearance=transparent .iconStart=${v.ExpandCollapse}>${s}</calcite-button>`}renderSearch(){return n`<instant-apps-language-translator-search @suggestionSelected=${this.onSuggestionSelect} .t9nPlaceholder=${this._messages.searchPlaceholder}></instant-apps-language-translator-search>`}renderTrailingTopBarSection(){return n`<div class=${r(i.topBarSection)}>${this.renderLanguageSelection()}<slot name=translation-custom-action></slot></div>`}renderLanguageSelection(){return n`<calcite-label layout=inline>${this._messages.translatedLanguage}<calcite-select label @calciteSelectChange=${this.handleLanguageSelection}>${this.renderTranslatedLangOptions()}</calcite-select></calcite-label>`}renderTranslatedLangOptions(){let t=e.get("uiData")?.get("locales"),a=b(t),s=Object.keys($.partial);return T(a,o=>`translated-lang-option-${o}`,o=>{let g=s.includes(o)?"partial":"full",p=$[g],{language:c,translated:d}=p[o],h=`${c} - ${d}`;return n`<calcite-option .value=${o}>${h}</calcite-option>`})}renderUIData(){if(!u?.uiData)return;let t=m();return n`<div>${t?.map((a,s)=>this.renderUIDataItem(a,s,t.length))}</div>`}renderNotice(){let t=this._messages.noLanguage;return n`<calcite-notice open icon=exclamation-mark-triangle kind=warning><div slot=title>${t?.title}</div><div slot=message>${t?.message}</div></calcite-notice>`}renderUIDataItem(t,a,s){let o=this.appSettings?.translatedLanguageLabels?.[u.currentLanguage],g=a===s-1?i.lastItem:"",p=this.appSettings.content.find(c=>c.id===t);return _(`${t}-${a}`,n`<instant-apps-language-translator-item class=${r(g)} .fieldName=${t} .translatedLanguageLabels=${o} .setting=${p} .userLocaleInputOnChangeCallback=${async(c,d)=>{try{await this.userLocaleInputOnChangeCallback(c,d);let h=e.get("portalItemResource");f(h)}catch{}}} .translatedLocaleInputOnChangeCallback=${async(c,d,h,x)=>{try{await this.translatedLocaleInputOnChangeCallback(c,d,h,x),f(x)}catch{}}}></instant-apps-language-translator-item>`)}renderPrimaryContent(){return n`<div class=${r(i.primaryContent)} slot=footer-end>${e.get("saving")?this.renderSavingIndicator():null}${e.get("lastSave")?_("last-save",n`<span class=${r(i.lastAutoSave)}>${this._messages.lastAutoSave} ${this.intl.formatDate(e.get("lastSave"))}</span>`):null}<calcite-button @click=${()=>this.open=!1} class=${r(i.closeButton)}>${this._messages.close}</calcite-button></div>`}};w("instant-apps-language-translator",y);return y},a,b)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
3
+ v1.1.0-next.20251003 */
4
4
  var i=n=>{var l;return((l=n.links)===null||l===void 0?void 0:l.thumbnail)||n.thumbnailUrl};export{i as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
4
- import{a as t}from"./2DUXCIBQ.js";import{a}from"./TZZZZD5J.js";import{b as o}from"./WQULYHBT.js";var m=async(e,l,s)=>{let r={label:`{{${e}.sections.group.picker.facets.label:translate}}`,key:"groups",display:"single-select",operation:"OR",options:[{label:`{{${e}.sections.group.picker.facets.myGroups.label:translate}}`,key:"my-group",selected:!0,predicates:[{owner:s.currentUser.username,typekeywords:{not:t}}]},{label:`{{${e}.sections.group.picker.facets.myOrganization.label:translate}}`,key:"my-organization",selected:!1,predicates:[{orgid:s.currentUser.orgId,searchUserAccess:"groupMember",searchUserName:s.currentUser.username,typekeywords:{not:t}}]}]};return s.communityOrgId&&r.options.push({label:`{{${e}.sections.group.picker.facets.myCommunity.label:translate}}`,key:"my-community",selected:!1,predicates:[{orgid:s.communityOrgId,searchUserAccess:"groupMember",searchUserName:s.currentUser.username,typekeywords:{not:t}}]}),{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{headerTag:"h3"},elements:[{labelKey:`${e}.fields.name.label`,type:"Control",scope:"/properties/name",options:{control:"hub-field-input-input",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.channelNameRequiredError`,allowShowBeforeInteract:!0}]}}]},{type:"Section",labelKey:`${e}.sections.settings.label`,options:{headerTag:"h3"},elements:[{type:"Control",scope:"/properties/allowAsAnonymous",labelKey:`${e}.fields.allowAsAnonymous.label`,options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.allowAsAnonymous.helperText`}}},{type:"Control",scope:"/properties/blockWords",label:"Blocked words",labelKey:`${e}.fields.blockWords.label`,options:{control:"hub-field-input-input",type:"textarea",helperText:{labelKey:`${e}.fields.blockWords.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.blockWords.formatError`}]}}]},{type:"Section",labelKey:`${e}.sections.permissions.label`,options:{headerTag:"h3"},elements:[{type:"Section",labelKey:`${e}.sections.public.label`,options:{headerTag:"h4"},elements:[{type:"Control",scope:"/properties/publicConfigs",options:{control:"hub-field-permissions",roles:[{roleType:"anonymous",description:`{{${e}.fields.public.anonymous.description:translate}}`,label:`{{${e}.fields.public.anonymous.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`]},{roleType:"authenticated",description:`{{${e}.fields.public.authenticated.description:translate}}`,label:`{{${e}.fields.public.authenticated.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`]}]}}]},{type:"Section",labelKey:`${e}.sections.organization.label`,options:{headerTag:"h4",variant:"variant-layout-editor"},elements:[{type:"Control",scope:"/properties/orgConfigs",options:{control:"hub-field-permissions",roles:[{roleType:"member",description:`{{${e}.fields.organization.member.description:translate}}`,label:`{{${e}.fields.organization.member.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`]},{roleType:"admin",description:`{{${e}.fields.organization.admin.description:translate}}`,label:`{{${e}.fields.organization.admin.label:translate}}`,disabled:!0,permissionLabels:[`{{${e}.sections.permissions.options.owner:translate}}`]}]}}]},{type:"Section",labelKey:`${e}.sections.group.label`,options:{headerTag:"h4",variant:"variant-layout-editor"},elements:[{type:"Control",scope:"/properties/groupConfigs",options:{control:"hub-field-permissions",actions:[{label:`{{${e}.sections.group.picker.button:translate}}`,type:"add",options:{label:`{{${e}.sections.group.picker.title:translate}}`,entityType:"group",catalogs:[a(e,"allGroups","group",{user:s.currentUser})],facets:[r],defaultValues:{member:o,admin:o}}},{ariaLabel:`{{${e}.sections.group.remove.button:translate}}`,buttonStyle:"outline",buttonKind:"neutral",type:"remove",icon:"x"}],roles:[{roleType:"member",description:`{{${e}.fields.group.member.description:translate}}`,label:`{{${e}.fields.group.member.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`]},{roleType:"admin",description:`{{${e}.fields.group.admin.description:translate}}`,label:`{{${e}.fields.group.admin.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`,`{{${e}.sections.permissions.options.manage:translate}}`]}]}}]}]}]}};export{m as a};
3
+ v1.1.0-next.20251003 */
4
+ import{a as t}from"./P4CH3JVD.js";import{a}from"./SG5MHJ4N.js";import{b as o}from"./4PSBLA5A.js";var m=async(e,l,s)=>{let r={label:`{{${e}.sections.group.picker.facets.label:translate}}`,key:"groups",display:"single-select",operation:"OR",options:[{label:`{{${e}.sections.group.picker.facets.myGroups.label:translate}}`,key:"my-group",selected:!0,predicates:[{owner:s.currentUser.username,typekeywords:{not:t}}]},{label:`{{${e}.sections.group.picker.facets.myOrganization.label:translate}}`,key:"my-organization",selected:!1,predicates:[{orgid:s.currentUser.orgId,searchUserAccess:"groupMember",searchUserName:s.currentUser.username,typekeywords:{not:t}}]}]};return s.communityOrgId&&r.options.push({label:`{{${e}.sections.group.picker.facets.myCommunity.label:translate}}`,key:"my-community",selected:!1,predicates:[{orgid:s.communityOrgId,searchUserAccess:"groupMember",searchUserName:s.currentUser.username,typekeywords:{not:t}}]}),{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{headerTag:"h3"},elements:[{labelKey:`${e}.fields.name.label`,type:"Control",scope:"/properties/name",options:{control:"hub-field-input-input",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.channelNameRequiredError`,allowShowBeforeInteract:!0}]}}]},{type:"Section",labelKey:`${e}.sections.settings.label`,options:{headerTag:"h3"},elements:[{type:"Control",scope:"/properties/allowAsAnonymous",labelKey:`${e}.fields.allowAsAnonymous.label`,options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.allowAsAnonymous.helperText`}}},{type:"Control",scope:"/properties/blockWords",label:"Blocked words",labelKey:`${e}.fields.blockWords.label`,options:{control:"hub-field-input-input",type:"textarea",helperText:{labelKey:`${e}.fields.blockWords.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.blockWords.formatError`}]}}]},{type:"Section",labelKey:`${e}.sections.permissions.label`,options:{headerTag:"h3"},elements:[{type:"Section",labelKey:`${e}.sections.public.label`,options:{headerTag:"h4"},elements:[{type:"Control",scope:"/properties/publicConfigs",options:{control:"hub-field-permissions",roles:[{roleType:"anonymous",description:`{{${e}.fields.public.anonymous.description:translate}}`,label:`{{${e}.fields.public.anonymous.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`]},{roleType:"authenticated",description:`{{${e}.fields.public.authenticated.description:translate}}`,label:`{{${e}.fields.public.authenticated.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`]}]}}]},{type:"Section",labelKey:`${e}.sections.organization.label`,options:{headerTag:"h4",variant:"variant-layout-editor"},elements:[{type:"Control",scope:"/properties/orgConfigs",options:{control:"hub-field-permissions",roles:[{roleType:"member",description:`{{${e}.fields.organization.member.description:translate}}`,label:`{{${e}.fields.organization.member.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`]},{roleType:"admin",description:`{{${e}.fields.organization.admin.description:translate}}`,label:`{{${e}.fields.organization.admin.label:translate}}`,disabled:!0,permissionLabels:[`{{${e}.sections.permissions.options.owner:translate}}`]}]}}]},{type:"Section",labelKey:`${e}.sections.group.label`,options:{headerTag:"h4",variant:"variant-layout-editor"},elements:[{type:"Control",scope:"/properties/groupConfigs",options:{control:"hub-field-permissions",actions:[{label:`{{${e}.sections.group.picker.button:translate}}`,type:"add",options:{label:`{{${e}.sections.group.picker.title:translate}}`,entityType:"group",catalogs:[a(e,"allGroups","group",{user:s.currentUser})],facets:[r],defaultValues:{member:o,admin:o}}},{ariaLabel:`{{${e}.sections.group.remove.button:translate}}`,buttonStyle:"outline",buttonKind:"neutral",type:"remove",icon:"x"}],roles:[{roleType:"member",description:`{{${e}.fields.group.member.description:translate}}`,label:`{{${e}.fields.group.member.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`]},{roleType:"admin",description:`{{${e}.fields.group.admin.description:translate}}`,label:`{{${e}.fields.group.admin.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`,`{{${e}.sections.permissions.options.manage:translate}}`]}]}}]}]}]}};export{m as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
4
- import{a as h}from"./DEVZIWDQ.js";import{k as m}from"./YZGRGMNE.js";import{a as A}from"./D4JDKVPO.js";import"./GWCOCOL3.js";import"./57JC2AOJ.js";import{b as I}from"./OBVKSQEU.js";import{E as F,h as S,i as l,o as y}from"./RXP3QCOS.js";import"./TCM5LALX.js";var T=S`/** @license
3
+ v1.1.0-next.20251003 */
4
+ import{a as h}from"./QXJZIFME.js";import{k as m}from"./HW3AZE43.js";import{a as A}from"./2VKF6PR4.js";import"./SSNVKKF2.js";import"./4DPOKY7J.js";import{b as I}from"./VSD3M6NN.js";import{E as F,h as S,i as l,o as y}from"./QF5SFD5P.js";import"./BCQ7PB5L.js";var T=S`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
4
- import{a as d}from"./SB247VZP.js";import{a as u,b as t,c as h}from"./4CM3ZBKR.js";import"./5362WPO4.js";import{a as w}from"./P5RH2V64.js";import"./TCM5LALX.js";var f=e=>new Promise(o=>setTimeout(o,e));async function G(e){m(e);let o=P(e),{pollInterval:r,updateCache:n,progressCallback:s}=e,a;return n&&(a="updateCache"),E(o,r,a,s)}function m(e){let{layers:o=[]}=e;if(o.length===0)throw new d("fetchHubApiDownloadFileUrl","No layers provided for download");if(o.length>1)throw new d("fetchHubApiDownloadFileUrl","Multiple layer downloads are not yet supported")}function P(e){let{entity:o,format:r,context:n,layers:s,geometry:a,where:c}=e,i=new URLSearchParams({redirect:"false",layers:s[0].toString()});if(a){let l=a.toJSON();l.type=a.type,i.append("geometry",JSON.stringify(l))}[u.GEOJSON,u.KML].includes(r)&&i.append("spatialRefId","4326"),c&&i.append("where",c);let p=w(n,"hubRequestOptions.authentication.token");return p&&i.append("token",p),`${n.hubUrl}/api/download/v1/items/${o.id}/${r}?${i.toString()}`}async function E(e,o,r,n){let s=e;r&&(s=`${e}&${r}=true`);let a=await fetch(s);if(!a.ok){let g=await a.json();throw new h({rawMessage:g.message})}let{status:c,progressInPercent:i,resultUrl:p,cacheStatus:l}=await a.json(),S=C(c);if(S===t.FAILED)throw new d("fetchHubApiDownloadFileUrl","Download operation failed with a 200");return p?{type:"url",href:p,cacheStatus:l}:(n&&n(S,i),await f(o),E(e,o,"trackCacheUpdate",n))}function C(e){let o={Pending:t.PENDING,InProgress:t.PROCESSING,ExportingData:t.PROCESSING,ExportAttachments:t.PROCESSING,Completed:t.COMPLETED,CompletedWithErrors:t.FAILED,Failed:t.FAILED,ProvisioningReplica:t.PROCESSING,ImportChanges:t.PROCESSING,ExportChanges:t.PROCESSING,ExportingSnapshot:t.PROCESSING,ImportAttachments:t.PROCESSING,UnRegisteringReplica:t.PROCESSING},r={Pending:t.PENDING,InProgress:t.PROCESSING,PagingData:t.PROCESSING,ConvertingData:t.CONVERTING,Failed:t.FAILED,Completed:t.COMPLETED};return o[e]||r[e]}export{G as fetchHubApiDownloadFile};
3
+ v1.1.0-next.20251003 */
4
+ import{a as d}from"./KCRJ3JSU.js";import{a as u,b as t,c as h}from"./XLOU4CT6.js";import"./REIIATFT.js";import{a as w}from"./M3WLEKZY.js";import"./BCQ7PB5L.js";var f=e=>new Promise(o=>setTimeout(o,e));async function G(e){m(e);let o=P(e),{pollInterval:r,updateCache:n,progressCallback:s}=e,a;return n&&(a="updateCache"),E(o,r,a,s)}function m(e){let{layers:o=[]}=e;if(o.length===0)throw new d("fetchHubApiDownloadFileUrl","No layers provided for download");if(o.length>1)throw new d("fetchHubApiDownloadFileUrl","Multiple layer downloads are not yet supported")}function P(e){let{entity:o,format:r,context:n,layers:s,geometry:a,where:c}=e,i=new URLSearchParams({redirect:"false",layers:s[0].toString()});if(a){let l=a.toJSON();l.type=a.type,i.append("geometry",JSON.stringify(l))}[u.GEOJSON,u.KML].includes(r)&&i.append("spatialRefId","4326"),c&&i.append("where",c);let p=w(n,"hubRequestOptions.authentication.token");return p&&i.append("token",p),`${n.hubUrl}/api/download/v1/items/${o.id}/${r}?${i.toString()}`}async function E(e,o,r,n){let s=e;r&&(s=`${e}&${r}=true`);let a=await fetch(s);if(!a.ok){let g=await a.json();throw new h({rawMessage:g.message})}let{status:c,progressInPercent:i,resultUrl:p,cacheStatus:l}=await a.json(),S=C(c);if(S===t.FAILED)throw new d("fetchHubApiDownloadFileUrl","Download operation failed with a 200");return p?{type:"url",href:p,cacheStatus:l}:(n&&n(S,i),await f(o),E(e,o,"trackCacheUpdate",n))}function C(e){let o={Pending:t.PENDING,InProgress:t.PROCESSING,ExportingData:t.PROCESSING,ExportAttachments:t.PROCESSING,Completed:t.COMPLETED,CompletedWithErrors:t.FAILED,Failed:t.FAILED,ProvisioningReplica:t.PROCESSING,ImportChanges:t.PROCESSING,ExportChanges:t.PROCESSING,ExportingSnapshot:t.PROCESSING,ImportAttachments:t.PROCESSING,UnRegisteringReplica:t.PROCESSING},r={Pending:t.PENDING,InProgress:t.PROCESSING,PagingData:t.PROCESSING,ConvertingData:t.CONVERTING,Failed:t.FAILED,Completed:t.COMPLETED};return o[e]||r[e]}export{G as fetchHubApiDownloadFile};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
4
- import{a as e}from"./2OBYJOKR.js";var o={condition:{scope:"/properties/_metric/properties/type",schema:{const:"static"}},effect:e.SHOW},c={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"string"}}}}}},effect:e.SHOW},p={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"number"}}}}}},effect:e.SHOW},s={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"date"}}}}}},effect:e.SHOW},r={condition:{scope:"/properties/_metric/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},i={condition:{scope:"/properties/_metric/properties/shareable",schema:{const:!0}},effect:e.SHOW};export{o as a,c as b,p as c,s as d,r as e};
3
+ v1.1.0-next.20251003 */
4
+ import{a as e}from"./RSOXCIBH.js";var o={condition:{scope:"/properties/_metric/properties/type",schema:{const:"static"}},effect:e.SHOW},c={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"string"}}}}}},effect:e.SHOW},p={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"number"}}}}}},effect:e.SHOW},s={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"date"}}}}}},effect:e.SHOW},r={condition:{scope:"/properties/_metric/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},i={condition:{scope:"/properties/_metric/properties/shareable",schema:{const:!0}},effect:e.SHOW};export{o as a,c as b,p as c,s as d,r as e};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
4
- import{a as n}from"./J55FURXL.js";import{a as s}from"./3SG6LG4Q.js";import"./6VB57DL2.js";import"./TKYSNSDW.js";import"./V6LEW5RU.js";import"./3G2NE6CM.js";import{a as r,b as i}from"./6PV7ONPN.js";import"./ZAOYI7VI.js";import"./7UU2OGO4.js";import"./I45GAP23.js";import{a as o}from"./AISOOLMV.js";import{a}from"./2RKT7ZM5.js";import"./HVOIXGE3.js";import"./FVDDBKWI.js";import"./JFMCI5UM.js";import"./5362WPO4.js";import"./P5RH2V64.js";import"./2OBYJOKR.js";import"./DRBJRFXQ.js";import"./4U472JVE.js";import"./GNNZSEBA.js";import"./PGPFMHUW.js";import"./NCGP5AHM.js";import"./JRUZPNMF.js";import"./WQULYHBT.js";import"./CJ4OXYMV.js";import"./3H44N4FR.js";import"./56OE4A23.js";import"./EVLQFI7K.js";import"./R6H5JT5Y.js";import"./UFQESXOQ.js";import"./H55OHD43.js";import"./L2GYRZF5.js";import"./QP2Y72HY.js";import"./MKD6TWT3.js";import"./O26E7HFU.js";import"./EIIWKZ4U.js";import"./OSQ6H667.js";import"./6YZKX2YS.js";import"./GYWUMMDN.js";import"./TCM5LALX.js";var d=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},n(e),{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"page",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await i(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
3
+ v1.1.0-next.20251003 */
4
+ import{a as n}from"./EIOQMWBZ.js";import{a as s}from"./MLGWC5WC.js";import"./Z2B6IWJT.js";import"./K7E3FYY7.js";import"./ZQCWMQNP.js";import"./N2UEZKKT.js";import{a as r,b as i}from"./TZMCPBQ6.js";import"./VWW3LSRO.js";import"./YETXYXLA.js";import"./JAPLJADD.js";import{a as o}from"./3QTLO72X.js";import{a}from"./VOMUURUC.js";import"./NVNJVDKY.js";import"./R2BTBE5Y.js";import"./PDSJLVCU.js";import"./REIIATFT.js";import"./M3WLEKZY.js";import"./RSOXCIBH.js";import"./WSRJWIJL.js";import"./JD2NWIUZ.js";import"./O4BW2L5G.js";import"./NGPTQFAY.js";import"./NRNJQ6LW.js";import"./EGJJCZ6T.js";import"./4PSBLA5A.js";import"./ULYPTG4C.js";import"./YUNO2IBI.js";import"./6BSJZZWP.js";import"./DO4C2ZFB.js";import"./PJ6P5M6W.js";import"./ZN44SNEG.js";import"./VCKCORX7.js";import"./JPXZR7F6.js";import"./555R5J5L.js";import"./FZPBKB2A.js";import"./CQK3BMBI.js";import"./CRSVD2NX.js";import"./O73TK37S.js";import"./TNOZQKKG.js";import"./6SJN3RI6.js";import"./BCQ7PB5L.js";var d=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},n(e),{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"page",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await i(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
4
- import{b as e}from"./GYWUMMDN.js";var r={if:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"}}}}},then:{type:"object",properties:{_metric:{type:"object",required:["value"]}}}},p={if:{type:"object",properties:{_metric:{type:"object",properties:{sourceTitle:{not:{const:""}}},required:["sourceTitle"]}}},then:{type:"object",properties:{_metric:{type:"object",required:["sourceLink"]}}}},o={if:{type:"object",properties:{_metric:{type:"object",properties:{valueType:{enum:["string","date"]}}}}},then:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"string"}}}}},else:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"number"}}}}}},i={if:{type:"object",properties:{_metric:{properties:{type:{const:e.static}}}}},then:{type:"object",properties:{_metric:{properties:{sourceLink:{format:"url"}}}}}};export{r as a,p as b,o as c,i as d};
3
+ v1.1.0-next.20251003 */
4
+ import{b as e}from"./6SJN3RI6.js";var r={if:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"}}}}},then:{type:"object",properties:{_metric:{type:"object",required:["value"]}}}},p={if:{type:"object",properties:{_metric:{type:"object",properties:{sourceTitle:{not:{const:""}}},required:["sourceTitle"]}}},then:{type:"object",properties:{_metric:{type:"object",required:["sourceLink"]}}}},o={if:{type:"object",properties:{_metric:{type:"object",properties:{valueType:{enum:["string","date"]}}}}},then:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"string"}}}}},else:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"number"}}}}}},i={if:{type:"object",properties:{_metric:{properties:{type:{const:e.static}}}}},then:{type:"object",properties:{_metric:{properties:{sourceLink:{format:"url"}}}}}};export{r as a,p as b,o as c,i as d};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
4
- import{c as t}from"./OSQ6H667.js";import{a,c as i,d as e,e as o,f as n,g as s,h as E,i as p,j as c,k as r,l as T,n as _}from"./6YZKX2YS.js";var m={$async:!0,type:"object",required:["name"],properties:{name:a,summary:i,description:{type:"string"},access:e,location:p,tags:o,categories:n,isDiscussable:s,_thumbnail:r,_followers:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"]}),showFollowAction:{type:"boolean",default:!0},isDiscussable:s}},_associations:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"],default:"private"}),membershipAccess:{type:"string",enum:["organization","collaborators","anyone"],default:"organization"}}},view:{type:"object",properties:{embeds:{type:"array"},featuredContentIds:E,featuredImage:r,featuredImageAltText:{type:"string"},featuredImageName:{type:"string"},mapSettings:c,timeline:T,hero:{type:"string",default:t.map,enum:Object.keys(t)},heroActions:{type:"array"}}},_slug:_}};export{m as a};
3
+ v1.1.0-next.20251003 */
4
+ import{c as t}from"./O73TK37S.js";import{a,c as i,d as e,e as o,f as n,g as s,h as E,i as p,j as c,k as r,l as T,n as _}from"./TNOZQKKG.js";var m={$async:!0,type:"object",required:["name"],properties:{name:a,summary:i,description:{type:"string"},access:e,location:p,tags:o,categories:n,isDiscussable:s,_thumbnail:r,_followers:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"]}),showFollowAction:{type:"boolean",default:!0},isDiscussable:s}},_associations:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"],default:"private"}),membershipAccess:{type:"string",enum:["organization","collaborators","anyone"],default:"organization"}}},view:{type:"object",properties:{embeds:{type:"array"},featuredContentIds:E,featuredImage:r,featuredImageAltText:{type:"string"},featuredImageName:{type:"string"},mapSettings:c,timeline:T,hero:{type:"string",default:t.map,enum:Object.keys(t)},heroActions:{type:"array"}}},_slug:_}};export{m as a};
@@ -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.0-next.20251003 */
4
+ import{a as D}from"./3FSQROF5.js";import{a as P}from"./UZ3FNZON.js";import{a as C,d as I}from"./BUK3AXVT.js";import"./LYQ3KTGD.js";import"./DSQLWDME.js";import"./3I72PCEP.js";import"./7RLPE2LE.js";import"./JMQYSN2U.js";import"./NEWVUWSK.js";import"./E6F3Q2WH.js";import"./QD45UNRU.js";import"./Z2B6IWJT.js";import"./K7E3FYY7.js";import"./ZQCWMQNP.js";import"./N2UEZKKT.js";import"./YETXYXLA.js";import"./JAPLJADD.js";import"./NVNJVDKY.js";import"./R2BTBE5Y.js";import"./PDSJLVCU.js";import"./REIIATFT.js";import"./M3WLEKZY.js";import"./4PSBLA5A.js";import"./YNBOJIO2.js";import"./4SVJQ4LX.js";import{g as E,j as T}from"./YLQDUOIF.js";import{c as l,e as r,f as c}from"./HW3AZE43.js";import"./TFM3Q342.js";import{b as x}from"./3OY3YMT5.js";import{a as L}from"./2VKF6PR4.js";import"./SSNVKKF2.js";import"./4DPOKY7J.js";import{b as $,c as k}from"./VSD3M6NN.js";import{C as p,D as g,E as v,G as h,h as f,i as n,l as d,o as y,p as S,r as w}from"./QF5SFD5P.js";import"./BCQ7PB5L.js";var V=f`@layer{/** @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
+ */:host{display:block;--calcite-input-message-spacing-value: 0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00a0ff}.info-message{justify-content:center;display:grid}.font-bold{font-weight:700}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:.5rem}.float-right{float:right}.float-right[dir=rtl],.float-left{float:left}.float-left[dir=rtl]{float:right}.margin-top-0{margin-block-start:0!important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=rtl]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom: 0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3: var(--calcite-color-brand);--calcite-color-foreground-2: var(--calcite-color-brand-hover);--calcite-color-text-1: var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,u=class extends S{constructor(){super(),this.managedLayers={},this.managedTables=[],this.highlightHandles=[]}removeHandles(){this.highlightHandles.forEach(e=>{e?.remove()}),this.highlightHandles=[]}},b=class extends v{constructor(){super(),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=!1,this.defaultBufferDistance=0,this.defaultBufferUnit="feet",this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureHighlightEnabled=!1,this.noResultText="",this.initialNotice="",this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=c.PDF,this._fetchingData=!1,this._isMobile=!1,this._numDuplicates=0,this._pageType=l.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=L({name:"public-notification",blocking:!0}),this._downloadTools=p(),this._onboardingImageUrl="",this._popupsEnabled=!1,this._removeDuplicates=p(),this._selectTools=p(),this._titleElement=p(),this._titleValue=void 0,this._numSelected=0,this._pnStateContextProvider=P({context:D}),this.searchConfigurationChange=y(),this.listenOn(window,"selectionSetsChanged",this.selectionSetsChanged),this._pnState=new u,this._pnStateContextProvider.setValue(this._pnState)}static{this.properties={addresseeLayerIds:0,bufferColor:1,bufferOutlineColor:1,customLabelEnabled:5,defaultBufferDistance:9,defaultBufferUnit:1,defaultExportTitle:1,defaultNumLabelsPerPage:9,enableLayerFeatures:5,enableLayerFeaturesOnLoad:5,enableSearchDistance:5,enableSearchDistanceOnLoad:5,enableSketchTools:5,featureEffect:0,featureHighlightEnabled:5,mapView:0,noResultText:1,initialNotice:1,searchConfiguration:0,selectionLayerIds:0,showRefineSelection:5,showSearchSettings:5,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,_exportGraphics:16,_addMap:16,_addResults:16,_addTitle:16,_downloadActive:16,_exportType:16,_fetchingData:16,_isMobile:16,_numDuplicates:16,_pageType:16,_saveEnabled:16,_selectionSets:16,_translations:16}}static{this.styles=V}static{this.shadowRootOptions=w}willUpdate(e){e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView),e.has("searchConfiguration")&&this.searchConfiguration&&this.watchSearchConfigurationHandler(this.searchConfiguration,e.get("searchConfiguration")),e.has("sketchLineSymbol")&&this.sketchLineSymbolWatchHandler(this.sketchLineSymbol,e.get("sketchLineSymbol")),e.has("sketchPointSymbol")&&this.sketchPointSymbolWatchHandler(this.sketchPointSymbol,e.get("sketchPointSymbol")),e.has("sketchPolygonSymbol")&&this.sketchPolygonSymbolWatchHandler(this.sketchPolygonSymbol,e.get("sketchPolygonSymbol")),e.has("_pageType")&&(this.hasUpdated||this._pageType!==l.LIST)&&this.pageTypeWatchHandler(this._pageType,e.get("_pageType"))}async mapViewWatchHandler(e){e?.popup&&(this._popupsEnabled=e?.popupEnabled),this.searchConfiguration&&this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(e,t){let i=JSON.stringify(e);this.mapView&&(i!==JSON.stringify(t)||i&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(i),this._searchConfiguration&&this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setLineSymbol(e)}async sketchPointSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setPointSymbol(e)}async sketchPolygonSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setPolygonSymbol(e)}async pageTypeWatchHandler(e,t){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=e!==l.LIST?!1:this._popupsEnabled),e===l.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),(t===l.SELECT||t===l.REFINE)&&await this._clearSelection(),t===l.EXPORT&&this._removeExportGraphics(),e!==l.SELECT)return this._highlightFeatures()}selectionSetsChanged(e){this._selectionSets=[...e.detail]}connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 600px)"),this.listenOn(this._mediaQuery,"change",e=>this._setIsMobile(e))}async load(){await this._initModules(),this._initSymbols(),this._onboardingImageUrl=k("assets/public-notification/images/onboarding.png")}render(){let e=this._isMobile?"footer":"header";return n`<calcite-shell><calcite-action-bar class="border-bottom-1 action-bar-size" expand-disabled layout=horizontal slot=${e??d}>${this._getActionGroup("list-check",l.LIST,this._translations.myLists)}${this.showRefineSelection?this._getActionGroup("test-data",l.REFINE,this._translations.refineSelection):null}${this._getActionGroup("export",l.EXPORT,this._translations.export)}</calcite-action-bar>${this._getPage(this._pageType)}</calcite-shell>`}loaded(){this.searchConfiguration&&this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){super.disconnectedCallback()}async _initModules(){let[e,t,i]=await x(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=e,this._jsonUtils=t,this.Graphic=i}_initSearchConfiguration(e){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=e,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(e){let t=e?.type==="simple-line";this.sketchLineSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(e){let t=e?.type==="simple-marker";this.sketchPointSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(e){let t=e?.type==="simple-fill";this.sketchPolygonSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(e){this._isMobile=e.matches}_getActionGroup(e,t,i){let s=this.showRefineSelection?"w-1-3":"w-1-2";return n`<calcite-action-group class=${h(s)} layout=horizontal><div class="background-override"><calcite-action .active=${this._pageType===t} alignment=center class="width-full height-full" .icon=${e} id=${e??d} @click=${()=>{this._setPageType(t)}} text></calcite-action></div><calcite-tooltip label placement=bottom .referenceElement=${e}><span>${i}</span></calcite-tooltip></calcite-action-group>`}_setPageType(e){this._pageType=e}_getPage(e){let t;switch(e){case l.LIST:t=this._getListPage();break;case l.SELECT:t=this._getSelectPage();break;case l.EXPORT:t=this._getExportPage();break;case l.REFINE:t=this._getRefinePage();break}return t}_getListPage(){let e=this._hasSelections(),t=e?this._translations.listHasSetsTip:this.initialNotice!==""?this.initialNotice:this._translations.selectLayerAndAdd;return n`<calcite-panel>${this._getLabel(this._translations.myLists)}${this._getNotice(t||"","padding-sides-1 padding-bottom-1","word-wrap-anywhere")}${e?this._getSelectionSetList():this._getOnboardingImage()}<div class="display-flex padding-1"><calcite-button @click=${()=>{this._setPageType(l.SELECT)}} width=full><span class="font-weight-500">${this._translations.add}</span></calcite-button></div></calcite-panel>`}_getOnboardingImage(){return n`<div class="display-flex padding-sides-1"><img class="img-container" role=presentation src=${this._onboardingImageUrl??d}></div>`}_getSelectionSetList(){return n`<div class="padding-top-1-2 padding-bottom-1-2"><calcite-list class="list-border margin-sides-1" label>${this._selectionSets.reduce((e,t,i)=>{let s=this._getSelectionSetIds(t),a=!0;return t.workflowType===r.REFINE&&(a=Object.keys(t.refineInfos).reduce((o,_)=>{let m=t.refineInfos[_];return o+=m.addIds.length+m.removeIds.length,o},0)>0),a&&e.push(n`<calcite-list-item .label=${t.label} @click=${()=>this.mapView&&this._gotoSelection(t,this.mapView)}><div slot=content><div class="list-label">${t.label}</div><div class="list-description">${t?.layerView?.layer.title}</div><div class="list-description">${this._translations.selectedFeatures.replace("{{n}}",s.length.toString())}</div></div>${this._getAction(!0,"pencil","",o=>this._openSelection(t,o),!1,"actions-end")}${this._getAction(!0,"x","",o=>this._deleteSelection(i,o),!1,"actions-end")}</calcite-list-item>`),e},[])}</calcite-list></div>`}_getSelectionSetIds(e){return e.workflowType!==r.REFINE?e.selectedIds:Object.keys(e.refineInfos).reduce((t,i)=>[...t,...e.refineInfos[i].addIds],[])}_hasSelections(e=!1){let t=[],i=this._selectionSets.some(s=>s.workflowType===r.REFINE?(t=this._getSelectionSetIds(s),!0):!1);return e&&i?t.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){let e=this._getExportInfos(),t=this.mapView?.map&&await C(this.mapView.map,e),i=t&&I(t);return t&&i?t.length-i.length:0}_getExportInfos(){return this._selectionSets.reduce((e,t)=>{if(t.download)if(t.workflowType!==r.REFINE&&t?.layerView){let i=t.layerView.layer.id;i!==void 0&&this._updateIds(i,t.layerView,t.selectedIds,e)}else Object.keys(t.refineInfos).forEach(i=>{let s=t.refineInfos[i];s.addIds.length>0&&this._updateIds(i,s.layerView,s.addIds,e)});return e},{})}_updateIds(e,t,i,s){return s[e]?s[e].ids=s[e].ids.concat(i):s[e]={layerView:t,ids:i},s}_getSelectPage(){let e=this._translations.selectSearchTip;return n`<calcite-panel>${this._getLabel(this._translations?.stepTwoFull,!0)}${this._getNotice(e,"padding-1","word-wrap-anywhere")}<div><map-select-tools .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} class="font-bold" .customLabelEnabled=${this.customLabelEnabled} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableLayerFeatures=${this.enableLayerFeatures} .enableLayerFeaturesOnLoad=${this.enableLayerFeaturesOnLoad} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .enableSketchTools=${this.enableSketchTools} .enabledLayerIds=${this.addresseeLayerIds} .isUpdate=${!!this._activeSelection} .mapView=${this.mapView} .noResultText=${this.noResultText} @selectionSetChange=${this._updateForSelection} .searchConfiguration=${this._searchConfiguration} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} .selectionLayerIds=${this.selectionLayerIds} .selectionSet=${this._activeSelection} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .useLayerFeaturesEnabled=${this.enableLayerFeaturesOnLoad} ${g(this._selectTools)}></map-select-tools></div>${this._getPageNavButtons(this._translations.done,this._numSelected===0,()=>{this._saveSelection()},this._translations.cancel,!1,()=>{this._home()})}</calcite-panel>`}_getExportPage(){let e=this._hasSelections(this.showRefineSelection),t=this._numDuplicates>0?"display-block":"display-none";return n`<calcite-panel><div>${this._getLabel(this._translations.export,!1)}${e?n`<div>${this._getNotice(this._translations.exportTip,"padding-sides-1")}${this._getLabel(this._translations.exportListsLabel)}${this._getExportSelectionLists()}<div class=${`padding-sides-1 ${t}`}><div class="display-flex"><calcite-label layout=inline><calcite-checkbox ${g(this._removeDuplicates)}></calcite-checkbox><div class="display-flex">${this._translations.removeDuplicate}<div class="info-message padding-start-1-2"><calcite-input-message class="info-blue margin-top-0" scale=m>${` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`}</calcite-input-message></div></div></calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=remove-duplicates-icon scale=s></calcite-icon></div><calcite-popover closable label overlay-positioning=fixed reference-element=remove-duplicates-icon><span class="tooltip-message">${this._translations.duplicatesTip}</span></calcite-popover></div><div class="border-bottom"></div><div class="padding-top-sides-1"><calcite-segmented-control class="w-100" @calciteSegmentedControlChange=${this._exportTypeChange} width=full><calcite-segmented-control-item .checked=${this._exportType===c.PDF} class="w-50 end-border" .value=${c.PDF}><span class="font-weight-500">${this._translations.pdf}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${this._exportType===c.CSV} class="w-50" .value=${c.CSV}><span class="font-weight-500">${this._translations.csv}</span></calcite-segmented-control-item></calcite-segmented-control></div><div class="padding-bottom-1">${this._getExportOptions()}</div><div class="padding-1 display-flex"><calcite-button .disabled=${!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults} .loading=${this._fetchingData} @click=${()=>void this._export()} width=full><span class="font-weight-500">${this._translations.export}</span></calcite-button></div></div>`:this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")}</div></calcite-panel>`}_exportTypeChange(e){this._exportType=e.target.value}_getExportOptions(){let e=this._exportType===c.PDF?"display-block":"display-none",t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",a=this._addResults?"":"display-none";return n`<div class=${h(e)}>${this._getLabel(this._translations.pdfOptions,!0)}<div class="padding-top-sides-1"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addResults} @calciteCheckboxChange=${()=>this._addResults=!this._addResults}></calcite-checkbox>${this._translations.addResults}</calcite-label></div><div class=${`padding-top-sides-1 ${a}`}><calcite-label class="label-margin-0">${this._translations.selectPDFLabelOption}</calcite-label></div><div class=${`padding-sides-1 ${a}`}><pdf-download .defaultNumLabelsPerPage=${Number.parseInt(this.defaultNumLabelsPerPage.toString(),10)} .disabled=${!this._downloadActive} ${g(this._downloadTools)}></pdf-download></div><div class="padding-top-sides-1"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addTitle} @calciteCheckboxChange=${()=>this._addTitle=!this._addTitle}></calcite-checkbox>${this._translations.title}</calcite-label></div><div class=${h(t)}>${this._getLabel(this._translations.title,!0,"")}<calcite-input-text class="padding-sides-1" @calciteInputTextInput=${()=>this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${s} ${g(this._titleElement)}></calcite-input-text></div><div class="padding-top-sides-1"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addMap} @calciteCheckboxChange=${()=>this._handleAddMapChange()}></calcite-checkbox>${this._translations.includeMap}</calcite-label></div><div class=${`padding-top-sides-1 ${i}`}><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._exportGraphics} @calciteCheckboxChange=${()=>this._handleExportGraphicsChange()}></calcite-checkbox>${this._translations.listGraphics}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=list-graphics-icon scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=list-graphics-icon><span class="tooltip-message">${this._translations.listGraphicsTip}</span></calcite-popover></div></div>`}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(e){let t,i=this._pnStateContextProvider.value;return Object.keys(i.managedLayers).some(s=>{let a=this.mapView?.map.layers.findIndex(o=>o.title===s);return i.managedLayers[s]===e&&a!==void 0?(t=this.mapView?.map.layers.getItemAt(a),!0):!1}),t}_updateExportGraphics(e=!1){(e||!this._exportGraphics||!this._addMap)&&this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){let e=this._getManagedLayer("sketch"),t=this._getManagedLayer("buffer");e&&e.graphics.removeAll(),t&&t.graphics.removeAll()}_addExportGraphics(){let e=this._getManagedLayer("sketch"),t=this._getManagedLayer("buffer");this._selectionSets.forEach(i=>{if(i.download&&(e&&i.sketchGraphic&&e.graphics.add(i.sketchGraphic),t)){let s={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},a=this.Graphic&&new this.Graphic({geometry:i.buffer,symbol:s});a&&t.graphics.add(a)}})}_getRefinePage(){let e=this._hasSelections();return n`<calcite-panel>${this._getLabel(this._translations.refineSelection)}${e?n`<div>${this._getNotice(this._translations.refineTip,"padding-sides-1")}<refine-selection .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} .selectionSets=${this._selectionSets} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad}></refine-selection></div>`:this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1")}</calcite-panel>`}_getPageNavButtons(e,t,i,s,a,o){return n`<div class="padding-bottom-1"><div class="display-flex padding-top-sides-1"><calcite-button .disabled=${t} @click=${i} width=full><span class="font-weight-500">${e}</span></calcite-button></div><div class="display-flex padding-top-1-2 padding-sides-1"><calcite-button appearance=outline .disabled=${a} @click=${o} width=full><span class="font-weight-500">${s}</span></calcite-button></div></div>`}_changeTitle(){this._titleElement.value?.value&&(this._titleValue=this._titleElement.value.value||"")}_getNotice(e,t="padding-1",i=""){return n`<calcite-notice class=${h(t)} icon=lightbulb kind=success open><div class=${h(i)} slot=message>${e}</div></calcite-notice>`}_getLabel(e,t=!1,i="font-bold"){return i+=t?" label-margin-0":"",n`<div class=padding-top-sides-1><calcite-label class=${h(i)}>${e}</calcite-label></div>`}_getExportSelectionLists(){return this._selectionSets.reduce((e,t)=>{let i=this._getSelectionSetIds(t),s=t.workflowType!==r.REFINE||i.length>0;return!this._downloadActive&&t.download&&s&&(this._downloadActive=!0),s&&e.push(n`<div class="display-flex padding-sides-1 padding-bottom-1"><calcite-checkbox .checked=${t.download} class="align-center" @calciteCheckboxChange=${()=>{this._toggleDownload(t.id)}}></calcite-checkbox><calcite-list class="list-border margin-start-1-2 width-full" id=download-list label><calcite-list-item .disabled=${!t.download} .label=${t.label} @click=${()=>{this._toggleDownload(t.id)}}><div slot=content><div class="list-label">${t.label}</div><div class="list-description">${t?.layerView?.layer.title}</div><div class="list-description">${this._translations.selectedFeatures.replace("{{n}}",i.length.toString())}</div></div></calcite-list-item></calcite-list></div>`),e},[])||n`<div></div>`}async _toggleDownload(e){let t=!1;this._selectionSets=this._selectionSets.map(i=>(i.download=i.id===e?!i.download:i.download,t=i.download?!0:t,i)),this._updateExportGraphics(!0),this._downloadActive=t,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){let e=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===c.PDF){let t="";this._addMap&&this.mapView&&(t=(await this.mapView.takeScreenshot({width:1500,height:2e3}))?.dataUrl),this._fetchingData=!0,this._downloadTools.value&&this._removeDuplicates.value&&this.mapView?.map&&await this._downloadTools.value.downloadPDF(this.mapView.map,e,this._removeDuplicates.value.checked,this._addTitle&&this._titleElement.value?this._titleElement.value.value:"",t),this._fetchingData=!1}this._exportType===c.CSV&&(this._fetchingData=!0,this._downloadTools.value&&this.mapView?.map&&await this._downloadTools.value.downloadCSV(this.mapView.map,e,this._removeDuplicates.value?.checked||!1),this._fetchingData=!1)}_getSelectionIdsAndViews(e,t=!1){return(t?e.filter(i=>i.download):e).reduce((i,s)=>{if(s.workflowType===r.REFINE)Object.keys(s.refineInfos).forEach(a=>{let o=s.refineInfos[a];if(o.addIds){let _=o.layerView.layer.id;i=this._updateExportInfos(i,_,s.label,o.addIds,o.layerView)}});else{let a=s?.layerView?.layer.id;a!==void 0&&s.layerView&&(i=this._updateExportInfos(i,a,s.label,s.selectedIds,s.layerView))}return i},{})}_updateExportInfos(e,t,i,s,a){return t&&Object.keys(e).indexOf(t)>-1?(e[t].ids=[...new Set([...e[t].ids,...s])],e[t].selectionSetNames.push(i)):t&&(e[t]={ids:s,layerView:a,selectionSetNames:[i]}),e}_getAction(e,t,i,s,a=!1,o=""){return n`<calcite-action .disabled=${!e} .icon=${t} icon-flip-rtl .indicator=${a} @click=${s} slot=${o??d} .text=${i}></calcite-action>`}_updateForSelection(e){this._numSelected=e.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(l.LIST)}async _saveSelection(){let e=await this._selectTools.value?.getSelection();if(e){let t=this._selectTools.value?.isUpdate;this._selectionSets=t?this._selectionSets.map(i=>i.id===e.id?e:i):[...this._selectionSets,e]}return this._home()}async _clearSelection(){await this._selectTools.value?.clearSelection(),this._numSelected=0,this._activeSelection=void 0}async _deleteSelection(e,t){return t.stopPropagation(),this._selectionSets=this._selectionSets.filter((i,s)=>s!==e?i:!1),this._highlightFeatures()}_gotoSelection(e,t){e.selectedIds&&e.layerView&&T(e.selectedIds,e.layerView,t,this.featureHighlightEnabled,this.featureEffect)}_openSelection(e,t){t.stopPropagation(),this._activeSelection=e,this._pageType=e.workflowType===r.REFINE?l.REFINE:l.SELECT}async _highlightFeatures(){let e=this._pnStateContextProvider.value;this._clearHighlight();let t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===l.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){let a=t[i[s]];if(a.layerView&&this.mapView){let o=await E(a.ids,a.layerView,this.mapView);e.highlightHandles.push(o)}}}_checkPopups(){typeof this._popupsEnabled!="boolean"&&(this._popupsEnabled=!!this.mapView?.popupEnabled)}_clearHighlight(){let e=this._pnStateContextProvider.value;e&&e.highlightHandles&&e.removeHandles()}};$("public-notification",b);export{u as PNStateController,b as PublicNotification};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20251001 */
4
- import{a,b}from"./R6H5JT5Y.js";import"./EIIWKZ4U.js";import"./OSQ6H667.js";import"./6YZKX2YS.js";import"./TCM5LALX.js";export{a as TemplateEditorTypes,b as TemplateSchema};
3
+ v1.1.0-next.20251003 */
4
+ import{a,b}from"./PJ6P5M6W.js";import"./CRSVD2NX.js";import"./O73TK37S.js";import"./TNOZQKKG.js";import"./BCQ7PB5L.js";export{a as TemplateEditorTypes,b as TemplateSchema};